:root {
  color-scheme: light;
  font-family: "Noto Sans Bengali", "Nirmala UI", "Bangla Sangam MN", system-ui, sans-serif;
  color: #17234b;
  background: #f5f6ff;
  line-height: 1.65;
  --accent: #30478f;
  --accent-strong: #243675;
  --gold: #e9c87b;
  --border: #c9d1eb;
  --muted: #505c79;
  --surface: #fcfcff;
}

* { box-sizing: border-box; }
body { min-height: 100vh; margin: 0; background: radial-gradient(ellipse at 85% 7%, #d7defb 0%, transparent 42%), radial-gradient(ellipse at 12% 50%, #efddfb 0%, transparent 50%), #f5f6ff; }
a { color: var(--accent); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid #344f9f; outline-offset: 3px; }
.shell { width: min(100% - 2rem, 72rem); margin-inline: auto; }
.site-header { border-bottom: 1px solid #d3d9f1; background: #f9faffdb; }
.header-inner { display: flex; min-height: 4.6rem; align-items: center; justify-content: space-between; gap: .6rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: #18254d; font: 450 clamp(.93rem, 2vw, 1.13rem) / 1.25 system-ui, sans-serif; text-decoration: none; white-space: nowrap; }
.brand strong { font-weight: 760; }
.brand-mark { display: grid; place-items: center; width: 2.15rem; aspect-ratio: 1; border: 1px solid #bf9e50; border-radius: .6rem .6rem .6rem .18rem; background: linear-gradient(145deg,#3554a4,#202557); color: #f5d795; font: 1.45rem Georgia, serif; }
nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .2rem clamp(.46rem, 3vw, 1.3rem); }
nav a, .link-button { display: inline-flex; align-items: center; min-height: 44px; }
.link-button { font: inherit; color: var(--accent); border: 0; background: none; cursor: pointer; padding: 0; text-decoration: underline; }
h1, h2, h3, p { margin-block-start: 0; }
h1 { font-size: clamp(1.86rem, 5vw, 2.8rem); line-height: 1.28; margin-block-end: .65rem; letter-spacing: -.024em; }
h2 { margin-block-end: .8rem; }
p { color: var(--muted); }
.account-card, .empty-state, .tile { border: 1px solid var(--border); border-radius: 1.1rem; background: var(--surface); }
.account-card { position: relative; max-width: 35rem; margin: clamp(1.7rem, 6vw, 5rem) auto; padding: clamp(1.2rem, 4vw, 2.6rem); box-shadow: 0 1.2rem 3rem #25326418; }
.account-card::before { content: ""; position: absolute; inset: 0 1.3rem auto; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg,#657cc8,#b598d6,var(--gold)); }
.account-card form > div { margin-block-end: 1rem; }
label { display: block; font-weight: 650; margin-block-end: .3rem; }
input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]), select, textarea {
  font: inherit;
  font-size: max(1rem,16px);
  width: 100%;
  min-height: 48px;
  padding: .45rem .75rem;
  background: white;
  color: inherit;
  border: 1px solid #8f9ec7;
  border-radius: .58rem;
}
.helptext { font-size: .875rem; color: var(--muted); }
.errorlist { color: #a02542; padding-inline-start: 1.25rem; }
.primary { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: .55rem 1.15rem; border: 1px solid var(--accent); border-radius: .62rem; font: inherit; font-weight: 700; color: white; background: var(--accent); text-decoration: none; cursor: pointer; transition: background-color 150ms ease; }
.primary:hover { background: var(--accent-strong); }
.account-card form .primary { width: 100%; }
.account-footer { margin: 1.35rem 0 0; }
.account-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.dashboard { padding-block: clamp(1.5rem, 6vw, 5rem); }
.dashboard-heading { margin-block-end: 1.65rem; padding: clamp(1rem, 4vw, 2rem); border: 1px solid #c8d1f0; border-radius: 1rem; background: linear-gradient(133deg,#f8f9ff,#e3eaff 64%,#eee2fa); }
.dashboard-heading p { margin-block-end: 0; overflow-wrap: anywhere; }
.inventory { margin-block-end: 2.25rem; }
.tile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: .85rem; }
.tile, .empty-state { padding: clamp(1rem, 3vw, 1.5rem); }
.tile p, .tile h3 { overflow-wrap: anywhere; margin-block-end: .35rem; }
.tile .membership-role { display: inline-block; margin-bottom: .65rem; padding: .2rem .6rem; border-radius: .45rem; background: #e3eaff; color: #233e82; font-size: .9rem; font-weight: 650; }
.tile dl { margin-block-end: 0; }
.tile dl div { display: flex; gap: .6rem; justify-content: space-between; border-top: 1px solid var(--border); padding-block: .5rem; }
.tile dd { margin-inline-start: 0; text-align: end; overflow-wrap: anywhere; }
.empty-state p { margin-block-end: .25rem; }
.empty-state .primary { margin-block-start: .8rem; }
.portal-nav { justify-content: flex-start; gap: .45rem 1rem; padding-block: .65rem; border-bottom: 1px solid var(--border); }
.portal-nav a { padding-inline: .35rem; }
.portal-footer { min-height: 48px; display: flex; align-items: center; }
.portal-footer a, .portal-action { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
.portal-list { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.portal-messages { margin-top: 1rem; padding: .75rem 1rem; list-style: none; border-radius: .65rem; background: #e3eaff; color: #1d3973; }
.unread { padding: .13rem .48rem; border-radius: 1rem; background: #e3eaff; color: #233e82; }
.portal-document { max-width: 50rem; margin-inline: auto; }
.portal-document h1, .tile h2, .notice-body { overflow-wrap: anywhere; }
.notice-body p:last-child { margin-bottom: 0; }
.document-signature { margin-inline: 0; }
.document-signature input[type="checkbox"] { width: 1.4rem; height: 1.4rem; vertical-align: middle; }
.document-signature form > div:has(input[type="checkbox"]) label { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 25rem) {
  .brand { gap: .33rem; }
  .brand-mark { width: 1.85rem; }
  .header-inner { gap: .4rem; }
  nav { font-size: .91rem; }
}

@media (prefers-reduced-motion: reduce) {
  .primary { transition: none; }
}

[hidden] { display: none !important; }
.notice-badge { display: inline-flex; justify-content: center; align-items: center; min-width: 1.55rem; height: 1.55rem; margin-inline-start: .35rem; padding-inline: .3rem; border-radius: 99px; background: #b31536; color: #fff; font: 750 .85rem/1 system-ui,sans-serif; vertical-align: middle; }
.notice-eyebrow { color: #a11b38; font-weight: 750; }
.attention-panel { padding: clamp(1rem,3vw,1.5rem); border: 1px solid #ddabbb; border-radius: 1rem; background: #fff7fa; }
.attention-card { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; justify-content: space-between; }
.attention-card .primary { flex-shrink: 0; }
.notice-dialog { box-sizing: border-box; width: min(100% - 2rem, 32rem); padding: clamp(1.2rem,4vw,2rem); border: 1px solid var(--border); border-radius: 1.1rem; color: #17234b; background: var(--surface); box-shadow: 0 1rem 4rem #14245640; }
.notice-dialog::backdrop { background: #14214396; }
.notice-dialog h2 { overflow-wrap: anywhere; }
.dialog-dismiss { margin-inline-start: 1rem; }
.push-panel { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-block: 1.25rem 2rem; }
.push-panel > div { flex: 1 1 18rem; }
.push-panel h2 { font-size: 1.1rem; margin-bottom: .3rem; }
.push-panel p { font-size: .9rem; margin-bottom: 0; }
.decision-choices { margin: 0 0 1.25rem; padding: .8rem; border: 1px solid var(--border); border-radius: .65rem; }
.decision-choices legend { font-weight: 700; padding-inline: .3rem; }
.decision-choices label, .decision-consent label { display: flex; gap: .65rem; align-items: center; min-height: 48px; }
.decision-choices input, .decision-consent input { flex-shrink: 0; width: 22px; height: 22px; margin: 0; accent-color: var(--accent); }
#signature-pad { display: block; width: 100%; height: auto; border: 2px dashed #7a88b4; border-radius: .5rem; background: white; touch-action: none; }
.signature-clear { min-height: 44px; margin-top: .4rem; padding: .4rem .8rem; background: #e3eaff; color: #233e82; border: 1px solid #a4b1d1; border-radius: .4rem; font: inherit; cursor: pointer; }
.response-signature { display: block; max-width: 100%; width: 360px; height: auto; margin-block: .8rem; border: 1px solid #a4b1d1; background: white; }
.decision-record { margin-top: 1rem; }
.receipt-digest { font-size: .85rem; overflow-wrap: anywhere; }
.print-receipt { margin-top: 1rem; margin-right: 1rem; }
@media print {
  body { background: white; }
  .site-header, .portal-nav, .portal-footer, .print-receipt, .portal-action, .portal-messages { display: none !important; }
  .shell { width: 100%; }
  .dashboard { padding: 0; }
  .dashboard-heading, .tile { box-shadow: none; border-color: #888; background: white; }
}
