/* Men in Motion — shared styles for registration and dashboard pages */
:root {
  --navy-950: #061330; --navy-900: #0a1c44; --navy-800: #0f2a5f; --navy-700: #163a7f;
  --blue-600: #1d5fd6; --blue-500: #2f7fe6; --blue-100: #e8f0ff; --sky-400: #4cb4f2;
  --gold-500: #f2b632; --gold-600: #d99a1b; --gold-100: #fff4d6;
  --ink: #13203d; --ink-2: #4a5874; --ink-3: #5b6781; /* was #6f7c96: 4.20:1 on white, 3.91:1 on bg-soft (WCAG 1.4.3) */
  --line: #e2e8f2; --line-strong: #8592a8; --line-2: #eef2f8; --bg: #ffffff; --bg-soft: #f4f7fc; --sand: #fbf6ea;
  --ok: #187645; /* was #1f8a52: 4.36:1 */ --ok-bg: #e6f5ec; --warn: #8a5900; /* was #9a6400: 4.37:1 on --info-bg */ --warn-bg: #fff3d6; --bad: #b42318; --bad-bg: #fdecea; --info: #1d5fd6; --info-bg: #e8f0ff;
  --radius: 14px; --shadow: 0 18px 40px -18px rgba(10,28,68,.35); --shadow-sm: 0 6px 18px -10px rgba(10,28,68,.3);
  --display: 'Montserrat', 'Avenir Next', system-ui, sans-serif; --body: 'Inter', 'Helvetica Neue', system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--bg-soft); line-height: 1.55; font-size: 15px; -webkit-font-smoothing: antialiased; }
a { color: var(--blue-600); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--navy-900); line-height: 1.2; margin: 0; }
:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--gold-500); color: var(--navy-950); padding: 10px 16px; border-radius: 8px; font-weight: 700; z-index: 100; text-decoration: none; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* preview strip */
.preview { background: var(--gold-100); color: #6b4a00; font-size: 13px; text-align: center; padding: 6px 16px; border-bottom: 1px solid #f3dea0; }
.preview strong { color: #5a3d00; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 14.5px var(--body); padding: 11px 18px; border-radius: 999px; border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: background .15s, transform .15s, border-color .15s; white-space: nowrap; color: var(--ink); background: none; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn svg { width: 17px; height: 17px; }
.btn-gold { background: var(--gold-500); color: var(--navy-950); }
.btn-gold:hover { background: #ffc443; }
.btn-navy { background: var(--navy-900); color: #fff; }
.btn-navy:hover { background: var(--navy-700); }
.btn-ghost { border-color: var(--line); color: var(--navy-900); background: #fff; }
.btn-ghost:hover { border-color: var(--navy-900); }
.btn-ok { background: var(--ok); color: #fff; }
.btn-danger { border-color: #f1b8b2; color: var(--bad); background: #fff; }
.btn-danger:hover { border-color: var(--bad); }
.btn-sm { padding: 7px 13px; font-size: 13px; }
.btn-link { background: none; border: none; color: var(--blue-600); font-weight: 700; padding: 0; cursor: pointer; font: 700 14px var(--body); }

/* pills / status — always text + colour */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; line-height: 1.3; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.info { background: var(--info-bg); color: var(--info); }
.pill.neutral { background: var(--line-2); color: var(--ink-2); }
.pill.plain::before { display: none; }

/* alerts */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; font-size: 14px; border: 1px solid transparent; }
.alert svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.alert b { color: inherit; }
.alert.info { background: var(--info-bg); color: #18407f; border-color: #cddcfb; }
.alert.ok { background: var(--ok-bg); color: #145c37; border-color: #bfe3cd; }
.alert.warn { background: var(--warn-bg); color: #6b4a00; border-color: #f3dea0; }
.alert.bad { background: var(--bad-bg); color: #8f1d1d; border-color: #f3c1bb; }

/* cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.card-head h3, .card-head h2 { font-size: 16px; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }

/* forms */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > label, .field > .lbl { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.field .hint { font-size: 12.5px; color: var(--ink-3); }
.field .err { font-size: 12.5px; color: var(--bad); font-weight: 600; display: none; }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #e48a80; }
/* input:not([type]) — the one-time-code and NIB inputs carry inputmode but no type, and an
   attribute selector does not match a type the browser only defaults to. */
input:not([type]), input[type=text], input[type=email], input[type=tel], input[type=password], input[type=date], input[type=datetime-local], input[type=time], input[type=number], input[type=search], select, textarea {
  font: 15px var(--body); color: var(--ink); padding: 11px 13px; border-radius: 10px; border: 1.5px solid var(--line-strong); background: #fff; width: 100%; }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(47,127,230,.15); }
/* The halo alone is 1.2:1; checkboxes and switches need the real ring (WCAG 2.4.7). */
input:focus:not(:focus-visible), select:focus:not(:focus-visible), textarea:focus:not(:focus-visible) { outline: none; }
input[type=checkbox]:focus-visible, .switch input:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 3px; }
input:disabled, select:disabled, textarea:disabled { background: var(--bg-soft); color: var(--ink-2); cursor: not-allowed; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); cursor: pointer; margin-bottom: 12px; }
.check input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--blue-600); }
.prefix { display: flex; }
.prefix span { display: grid; place-items: center; padding: 0 12px; white-space: nowrap; border: 1.5px solid var(--line-strong); border-right: 0; border-radius: 10px 0 0 10px; background: var(--bg-soft); color: var(--ink-2); font-weight: 600; font-size: 14px; }
.prefix input { border-radius: 0 10px 10px 0; }

/* choice cards (radio / checkbox as cards) */
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-bottom: 16px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: block; height: 100%; border: 1.5px solid var(--line-strong); border-radius: 12px; padding: 13px 14px; background: #fff; transition: border-color .15s, background .15s; }
.choice b { display: block; font-size: 14.5px; color: var(--navy-900); }
.choice small { display: block; color: var(--ink-3); font-size: 12.5px; margin-top: 2px; }
.choice input:checked + span { border-color: var(--blue-600); background: var(--blue-100); box-shadow: inset 0 0 0 1px var(--blue-600); }
.choice input:focus-visible + span { outline: 3px solid var(--blue-600); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chips .choice input:checked + span::before { content: "✓ "; }
.chips .choice span { border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: 14px; color: var(--navy-900); }

/* toggle switch */
.switch { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.switch:last-child { border-bottom: 0; }
.switch b { display: block; font-size: 14.5px; }
.switch small { color: var(--ink-3); font-size: 12.5px; }
.switch input { appearance: none; -webkit-appearance: none; width: 44px; height: 26px; border-radius: 999px; background: #8592a8; position: relative; cursor: pointer; flex-shrink: 0; transition: background .2s; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.switch input:checked { background: var(--blue-600); }
.switch input:checked::after { transform: translateX(18px); }

/* file drop */
.drop { display: flex; align-items: center; gap: 14px; border: 2px dashed #c9d4e6; border-radius: 12px; padding: 16px; background: #fbfcfe; cursor: pointer; }
.drop svg { width: 28px; height: 28px; color: var(--blue-600); flex-shrink: 0; }
.drop b { display: block; font-size: 14px; }
.drop small { color: var(--ink-3); }
.drop.has-file { border-style: solid; border-color: #bfe3cd; background: var(--ok-bg); }
/* Visually hidden, NOT display:none — a display:none file input cannot be
   reached by keyboard, and the drop zone is its only way in (WCAG 2.1.1). */
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.drop { position: relative; }
.drop:focus-within { outline: 3px solid var(--blue-600); outline-offset: 2px; }

/* OTP */
.otp { display: flex; gap: 8px; }
.otp input { width: 46px; height: 52px; text-align: center; font-size: 20px; font-weight: 700; padding: 0; }

/* auth / registration layout */
.app-top { background: #fff; border-bottom: 1px solid var(--line); }
.app-top .in { max-width: 1180px; margin: 0 auto; padding: 0 24px; height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.app-top img.logo { height: 56px; width: auto; }
.app-top nav { display: flex; gap: 18px; align-items: center; font-size: 14px; }
.app-top nav a { text-decoration: none; font-weight: 600; color: var(--ink-2); }
.app-top nav a:hover { color: var(--blue-600); }
.reg { max-width: 1180px; margin: 0 auto; padding: 36px 24px 72px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.reg-main { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-sm); overflow: hidden; }
.reg-head { padding: 28px 32px 0; }
.reg-head .kick { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-600); }
.reg-head h1 { font-size: 28px; font-weight: 800; margin: 6px 0 4px; }
.reg-head p { margin: 0; color: var(--ink-2); }
.reg-body { padding: 24px 32px 8px; }
.reg-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 32px; border-top: 1px solid var(--line); background: #fbfcfe; }
.reg-head + .reg-foot { margin-top: 24px; } /* a card with no body (404) */
.step-title { font-size: 19px; font-weight: 800; margin-bottom: 4px; }
.step-sub { color: var(--ink-2); margin: 0 0 20px; font-size: 14.5px; }
.side { display: grid; gap: 16px; position: sticky; top: 20px; }
.side .card h3, .side .card h2 { font-size: 15px; margin-bottom: 10px; }
.side ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 14px; color: var(--ink-2); }
.side li { display: flex; gap: 10px; }
.side li svg { width: 18px; height: 18px; color: var(--ok); flex-shrink: 0; margin-top: 2px; }
.side .navy { background: linear-gradient(160deg, var(--navy-900), var(--navy-700)); color: #dfe7f8; border: 0; }
.side .navy h3, .side .navy h2 { color: #fff; }

/* stepper */
.stepper { display: flex; gap: 6px; list-style: none; padding: 22px 32px 0; margin: 0; counter-reset: st; }
.stepper li { flex: 1; counter-increment: st; font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.stepper li::before { content: ""; display: block; height: 5px; border-radius: 999px; background: var(--line); margin-bottom: 8px; }
.stepper li span::before { content: counter(st) ". "; }
.stepper li.done::before { background: var(--ok); }
.stepper li.done { color: var(--ok); }
.stepper li.current::before { background: var(--blue-600); }
.stepper li.current { color: var(--blue-600); }

/* result / verify panels */
.verify { border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-top: 6px; }
.verify h4 { font-size: 15px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.verify h4 svg { width: 20px; height: 20px; flex-shrink: 0; }
.verify ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.verify li { display: flex; align-items: center; gap: 10px; }
.verify li svg { width: 18px; height: 18px; flex-shrink: 0; }
.verify .y { color: var(--ok); } .verify .n { color: var(--warn); }
.cklist { list-style: none; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.cklist li { display: flex; align-items: center; gap: 10px; }
.cklist li svg { width: 18px; height: 18px; flex-shrink: 0; }
.cklist .y svg { color: var(--ok); } .cklist .n svg { color: var(--warn); }
.spinner { width: 20px; height: 20px; border: 3px solid var(--blue-100); border-top-color: var(--blue-600); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.success { text-align: center; padding: 20px 0 10px; }
.success .badge { width: 74px; height: 74px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; margin: 0 auto 16px; }
.success .badge svg { width: 38px; height: 38px; }
.success h2 { font-size: 26px; margin-bottom: 6px; }
.next { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0 10px; text-align: left; }
.next a { display: block; text-decoration: none; border: 1px solid var(--line); border-radius: 12px; padding: 14px; color: var(--ink); }
.next a:hover { border-color: var(--blue-600); }
.next b { display: block; color: var(--navy-900); }
.next small { color: var(--ink-3); }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; position: relative; padding-bottom: 18px; }
.timeline li::before { content: ""; position: absolute; left: 13px; top: 26px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline .dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--line-2); color: var(--ink-3); font-size: 12px; font-weight: 700; z-index: 1; }
.timeline .done .dot { background: var(--ok); color: #fff; }
.timeline .now .dot { background: var(--blue-600); color: #fff; box-shadow: 0 0 0 5px var(--blue-100); }
.timeline b { display: block; font-size: 14.5px; }
.timeline small { color: var(--ink-3); font-size: 13px; }

/* summary list */
dl.sum { display: grid; grid-template-columns: 180px 1fr; gap: 8px 16px; margin: 0 0 18px; font-size: 14px; }
dl.sum dt { color: var(--ink-3); font-weight: 600; }
dl.sum dd { margin: 0; color: var(--ink); }
.sum-h { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin: 18px 0 10px; display: flex; justify-content: space-between; }

/* tables */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding: 11px 14px; background: #fbfcfe; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl-wrap { position: relative; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: #fafcff; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .t-main b { display: block; color: var(--navy-900); font-size: 14.5px; }
.tbl .t-main small { color: var(--ink-3); }

/* dashboard shell */
.shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; background: linear-gradient(90deg, #fff 251px, var(--line) 251px 252px, transparent 252px); }
.shell:has(.sidebar.dark) { background: linear-gradient(90deg, var(--navy-950) 252px, transparent 252px); }
.sidebar { background: #fff; border-right: 1px solid var(--line); padding: 18px 14px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar .brand { padding: 2px 8px 16px; }
.sidebar .brand img { height: 54px; width: auto; }
/* Sentence case, as written in the markup (the user, 2026-10-27): no capitals by CSS. */
.sidebar .grp { font-size: 12.5px; font-weight: 700; color: var(--ink-3); padding: 14px 10px 6px; }
.sidebar a.nav { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 14.5px; }
.sidebar a.nav svg { width: 19px; height: 19px; flex-shrink: 0; }
.sidebar a.nav:hover { background: var(--bg-soft); color: var(--navy-900); }
.sidebar a.nav.active { background: var(--blue-100); color: var(--blue-600); }
.sidebar a.nav .count { margin-left: auto; font-size: 12px; background: var(--gold-500); color: var(--navy-950); border-radius: 999px; padding: 1px 8px; font-weight: 700; }
.sidebar .foot { margin-top: auto; padding: 14px 10px 4px; font-size: 12.5px; color: var(--ink-3); }
.sidebar.dark { background: var(--navy-950); border-right: 0; }
.sidebar.dark .grp { color: #7f93bd; }
.sidebar.dark a.nav { color: #c7d3ee; }
.sidebar.dark a.nav:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar.dark a.nav.active { background: rgba(76,180,242,.16); color: #fff; }
.sidebar.dark .foot { color: #7f93bd; }
.main { min-width: 0; }
.topbar { display: flex; align-items: center; gap: 16px; padding: 14px 28px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
/* WCAG 2.4.11: a control scrolled into view must not land under the sticky bar. */
html:has(.topbar) { scroll-padding-top: 88px; }
.topbar .search { flex: 1; max-width: 460px; position: relative; }
.topbar .search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-3); }
.topbar .search input { padding-left: 40px; background: var(--bg-soft); border-color: transparent; }
.topbar .right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.icon-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; position: relative; color: var(--navy-900); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn .dot { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: #e5484d; border: 2px solid #fff; }
.me { display: flex; align-items: center; gap: 10px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-900); color: #fff; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.me b { display: block; font-size: 14px; line-height: 1.2; }
.me small { color: var(--ink-3); font-size: 12px; }
.menu-btn { display: none; }
.content { padding: 26px 32px 60px; }
.page-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-h h1 { font-size: 26px; font-weight: 800; }
.page-h p { margin: 4px 0 0; color: var(--ink-2); }
.grid { display: grid; gap: 18px; }
.grid > * { min-width: 0; }
.g2 { grid-template-columns: 1fr 1fr; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g-main { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; text-decoration: none; color: inherit; display: block; }
.kpi:hover { border-color: #c7d6f1; }
.kpi .l { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.kpi .v { font-family: var(--body); font-weight: 700; font-size: 28px; color: var(--navy-900); margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.kpi .d { font-size: 12.5px; color: var(--ink-3); }
.kpi .d.warn { color: var(--warn); font-weight: 600; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.list li:last-child { border-bottom: 0; }
.list .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; background: var(--blue-100); color: var(--blue-600); }
.list .ic svg { width: 19px; height: 19px; }
.list .tx { flex: 1; min-width: 0; }
.list .tx b { display: block; font-size: 14.5px; color: var(--navy-900); }
.list .tx small { color: var(--ink-3); font-size: 13px; }
.datebox { width: 52px; text-align: center; border-radius: 10px; background: var(--navy-900); color: #fff; padding: 6px 0; flex-shrink: 0; }
.datebox b { display: block; font-size: 19px; line-height: 1; }
.datebox span { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; color: var(--gold-500); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.filters select, .filters input { width: auto; min-width: 160px; padding: 9px 12px; font-size: 14px; }
.filters input[type=checkbox] { min-width: 0; width: 18px; padding: 0; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 14px; font: 600 14px var(--body); color: var(--ink-2); cursor: pointer; margin-bottom: -1px; }
.tabs button.on { color: var(--blue-600); border-bottom-color: var(--blue-600); }

/* drawer */
.scrim { position: fixed; inset: 0; background: rgba(6,19,48,.45); z-index: 60; opacity: 0; pointer-events: none; transition: opacity .2s; }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(620px, 100%); background: #fff; z-index: 70; transform: translateX(100%); transition: transform .25s ease, visibility .25s; display: flex; flex-direction: column; visibility: hidden; }
.drawer.open { transform: none; visibility: visible; box-shadow: -20px 0 50px -20px rgba(6,19,48,.4); }
.drawer-h { padding: 20px 24px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.drawer-h h2 { font-size: 20px; }
.drawer-b { padding: 20px 24px; overflow-y: auto; flex: 1; }
.drawer-f { padding: 16px 24px; border-top: 1px solid var(--line); display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; background: #fbfcfe; }
.close-x { background: none; border: 1px solid var(--line); border-radius: 10px; width: 38px; height: 38px; cursor: pointer; display: grid; place-items: center; flex-shrink: 0; }
.close-x svg { width: 18px; height: 18px; }
.lock { display: flex; gap: 10px; align-items: flex-start; background: #f1f4f9; border-radius: 12px; padding: 12px 14px; font-size: 13.5px; color: var(--ink-2); margin-top: 8px; }
.lock svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; color: var(--ink-3); }

/* toast */
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 90; }
.toast { background: var(--navy-950); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; box-shadow: var(--shadow); display: flex; gap: 10px; align-items: center; animation: toastIn .25s ease; }
.toast svg { width: 18px; height: 18px; color: #6fe3a5; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }

/* charts */
.chart { position: relative; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .tip { position: absolute; pointer-events: none; background: var(--navy-950); color: #fff; font-size: 12.5px; padding: 7px 10px; border-radius: 8px; white-space: nowrap; transform: translate(-50%, calc(-100% - 10px)); opacity: 0; transition: opacity .1s; }
.chart .tip b { font-variant-numeric: tabular-nums; }
.chart-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
details.tview summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--blue-600); }
details.tview table { margin-top: 8px; }

/* responsive */
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .g-main, .g3 { grid-template-columns: 1fr; }
}
@media (max-width: 920px) {
  .reg { grid-template-columns: 1fr; }
  .side { position: static; }
  /* Separate rules: a browser without :has() (Chrome < 105) drops a whole selector list that contains it. */
  .shell { grid-template-columns: 1fr; background: none; }
  .shell:has(.sidebar.dark) { grid-template-columns: 1fr; background: none; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 270px; z-index: 80; transform: translateX(-100%); transition: transform .25s, visibility 0s .25s; visibility: hidden; }
  .sidebar.open { transform: none; visibility: visible; transition: transform .25s; box-shadow: 20px 0 50px -20px rgba(6,19,48,.4); }
  .menu-btn { display: grid; }
  .topbar .search { display: none; }
  .g2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .reg { padding: 18px 12px 48px; }
  .reg-head, .reg-body { padding-left: 18px; padding-right: 18px; }
  .reg-foot { padding: 14px 18px; }
  .stepper { padding: 18px 18px 0; }
  .stepper li span { display: none; }
  .row2, .row3, .next { grid-template-columns: 1fr; }
  dl.sum { grid-template-columns: 1fr; gap: 2px; }
  dl.sum dd { margin-bottom: 8px; }
  .content { padding: 18px 14px 48px; }
  .topbar { padding: 12px 14px; }
  .me div { display: none; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .app-top nav .hide-sm { display: none; }
  .otp input { width: 40px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---- a member's reading settings (/profile), applied to <html> by head.php ---- */
html.t-lg .content, html.t-lg main.reg, html.t-lg main.help-public { zoom: 1.1; }
html.t-xl .content, html.t-xl main.reg, html.t-xl main.help-public { zoom: 1.22; }
html.hc { --ink-2: #26304a; --ink-3: #3c475f; --line: #9aa6bb; --line-2: #c3cbd8; --bg-soft: #eef1f6; --line-strong: #5b6781; }
html.hc .sidebar a.nav { color: var(--ink); }
/* Extra-large text (zoom on .content) must still reflow at 320px (WCAG 1.4.10). */
.hello .pill, .card-head .pill { white-space: normal; }
html.t-lg .btn, html.t-xl .btn { white-space: normal; max-width: 100%; text-align: center; }

/* The sign-in wall a visitor meets instead of a members-only page
   (views/partials/member-wall.php — Get help, Services & programmes). */
.member-wall { padding: 40px 36px; text-align: center; }
.member-wall .mw-ic { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 18px; background: #edf1f8; color: var(--navy-800); }
.member-wall .mw-ic svg { width: 28px; height: 28px; }
.member-wall h2 { margin: 0 0 10px; font-size: 24px; color: var(--navy-900); }
.member-wall > p { max-width: 520px; margin: 0 auto; font-size: 15.5px; line-height: 1.65; color: var(--ink-2); }
.member-wall .mw-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 24px 0 0; }
.member-wall > p.mw-919 { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line-2); font-size: 14px; color: var(--ink-3); }
.member-wall .mw-919 a { font-weight: 800; color: var(--navy-900); }
@media (max-width: 640px) { .member-wall { padding: 30px 20px; } }
