/* Sophemy design system.
   Brand: a confident blue for action, certificate gold for achievement, deep navy for
   the moments that set the tone (hero, closing call to action, footer). Green and red are
   kept for right and wrong. One typeface, Inter, self-hosted: Inter Display for headlines,
   Inter for everything else. The test screen stays calm and focused, like real exam software. */

/* ---------- Fonts (self-hosted, SIL Open Font License, see /fonts/OFL.txt) ---------- */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/Inter-Regular.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-style: italic; font-weight: 400; font-display: swap; src: url('/fonts/Inter-Italic.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/Inter-Medium.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/Inter-SemiBold.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/Inter-Bold.woff') format('woff'); }
@font-face { font-family: 'Inter Display'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/InterDisplay-SemiBold.woff') format('woff'); }
@font-face { font-family: 'Inter Display'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/InterDisplay-Bold.woff') format('woff'); }
@font-face { font-family: 'Inter Display'; font-style: normal; font-weight: 800; font-display: swap; src: url('/fonts/InterDisplay-ExtraBold.woff') format('woff'); }

/* ---------- Tokens ---------- */
:root {
  --bg: #FFFFFF;
  --bg-alt: #F4F6FB;
  --surface: #FFFFFF;
  --surface-2: #F8FAFD;
  --surface-3: #ECF0F7;
  --line: #E2E7F0;
  --line-strong: #7D8AA2;
  --ink: #0E1630;
  --ink-2: #44506A;
  --ink-3: #5B667E;
  --brand: #2F54EB;
  --brand-strong: #2443C4;
  --brand-soft: #EEF2FF;
  --brand-ink: #FFFFFF;
  --navy: #0B1533;
  --navy-2: #15234D;
  --on-navy: #FFFFFF;
  --on-navy-2: #C3CDE6;
  --gold: #F5B63B;
  --gold-ink: #8A5A00;
  --gold-soft: #FFF5DE;
  --ok: #0E8A62;
  --ok-soft: #E3F6EF;
  --bad: #D03445;
  --bad-soft: #FDECEE;
  --flag: #A86400;
  --flag-soft: #FFF3DC;
  --mark: #FFE58A;
  --mark-ink: #0E1630;
  --select: #D6E0FF;
  --focus: #2F54EB;
  --btn-bg: #2F54EB;
  --btn-fg: #FFFFFF;
  --on-solid: #FFFFFF;
  /* domain colors, in blueprint order */
  --d1: #2F54EB; --d2: #12A5A0; --d3: #F2A900; --d4: #8B5CF6; --d5: #EF5A6A; --d6: #1F9D61; --d7: #3B9EEB; --d8: #B7791F;
  --shadow-sm: 0 1px 2px rgba(14, 22, 48, 0.06), 0 1px 3px rgba(14, 22, 48, 0.04);
  --shadow: 0 1px 2px rgba(14, 22, 48, 0.04), 0 10px 28px -10px rgba(14, 22, 48, 0.14);
  --shadow-lg: 0 28px 64px -24px rgba(11, 21, 51, 0.45);
  --backdrop: rgba(11, 21, 51, 0.5);

  --font-display: 'Inter Display', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-read: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'Cascadia Code', Menlo, Consolas, monospace;

  --t-xs: 0.8125rem;
  --t-sm: 0.875rem;
  --t-md: 1rem;
  --t-lg: 1.125rem;
  --t-xl: 1.375rem;
  --t-2xl: 1.75rem;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --wrap: 1200px;
  --gutter: 16px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0A0F1F; --bg-alt: #0D1427; --surface: #121A30; --surface-2: #162039; --surface-3: #1D2844;
    --line: #253150; --line-strong: #7C89A6;
    --ink: #EAF0FB; --ink-2: #B9C3D8; --ink-3: #9BA6BE;
    --brand: #8AA4FF; --brand-strong: #ABBEFF; --brand-soft: rgba(138, 164, 255, 0.14); --brand-ink: #0A0F1F;
    --navy: #070C1C; --navy-2: #101A38;
    --gold: #F7C25A; --gold-ink: #F7C25A; --gold-soft: rgba(247, 194, 90, 0.13);
    --ok: #43D6A2; --ok-soft: rgba(67, 214, 162, 0.13); --bad: #FF7D89; --bad-soft: rgba(255, 125, 137, 0.13);
    --flag: #FFC266; --flag-soft: rgba(255, 194, 102, 0.13);
    --mark: #E6CB5A; --mark-ink: #0A0F1F; --select: #2A3D78;
    --focus: #8AA4FF; --btn-bg: #8AA4FF; --btn-fg: #0A0F1F; --on-solid: #0A0F1F;
    --d1: #8AA4FF; --d2: #3FD0CA; --d3: #F7C25A; --d4: #B69BFF; --d5: #FF8D99; --d6: #4FD08F; --d7: #73BBF5; --d8: #E0A85A;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4); --shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.6); --shadow-lg: 0 30px 70px -24px rgba(0, 0, 0, 0.8);
    --backdrop: rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #0A0F1F; --bg-alt: #0D1427; --surface: #121A30; --surface-2: #162039; --surface-3: #1D2844;
  --line: #253150; --line-strong: #7C89A6;
  --ink: #EAF0FB; --ink-2: #B9C3D8; --ink-3: #9BA6BE;
  --brand: #8AA4FF; --brand-strong: #ABBEFF; --brand-soft: rgba(138, 164, 255, 0.14); --brand-ink: #0A0F1F;
  --navy: #070C1C; --navy-2: #101A38;
  --gold: #F7C25A; --gold-ink: #F7C25A; --gold-soft: rgba(247, 194, 90, 0.13);
  --ok: #43D6A2; --ok-soft: rgba(67, 214, 162, 0.13); --bad: #FF7D89; --bad-soft: rgba(255, 125, 137, 0.13);
  --flag: #FFC266; --flag-soft: rgba(255, 194, 102, 0.13);
  --mark: #E6CB5A; --mark-ink: #0A0F1F; --select: #2A3D78;
  --focus: #8AA4FF; --btn-bg: #8AA4FF; --btn-fg: #0A0F1F; --on-solid: #0A0F1F;
  --d1: #8AA4FF; --d2: #3FD0CA; --d3: #F7C25A; --d4: #B69BFF; --d5: #FF8D99; --d6: #4FD08F; --d7: #73BBF5; --d8: #E0A85A;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4); --shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.6); --shadow-lg: 0 30px 70px -24px rgba(0, 0, 0, 0.8);
  --backdrop: rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: var(--t-md); line-height: 1.6;
  font-feature-settings: 'cv11', 'ss01'; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
body::before { content: ''; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 40; background: var(--surface); }
main { flex: 1; outline: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand-strong); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; color: var(--ink); text-wrap: balance; }
h1, h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: var(--t-2xl); }
h3 { font-size: 1.1875rem; font-weight: 650; letter-spacing: -0.01em; }
h4 { font-size: var(--t-md); font-weight: 650; }
p { margin: 0; }
p + p { margin-top: 0.75em; }
code { font-family: var(--font-mono); font-size: 0.88em; background: var(--surface-3); border-radius: 5px; padding: 0.1em 0.36em; overflow-wrap: anywhere; color: var(--ink); }
pre { margin: 1em 0; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); overflow-x: auto; font-size: var(--t-sm); line-height: 1.55; }
pre code { background: none; padding: 0; font-size: inherit; overflow-wrap: normal; }
ul, ol { padding-left: 1.3em; }
table { border-collapse: collapse; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1[tabindex='-1']:focus, h2[tabindex='-1']:focus, h3[tabindex='-1']:focus, .q-stem[tabindex='-1']:focus { outline: none; }
::selection { background: var(--select); color: var(--ink); }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--btn-bg); color: var(--btn-fg); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 700; }
.skip:focus { top: 12px; }
.muted { color: var(--ink-2); }
.fine { color: var(--ink-3); font-size: var(--t-sm); }
.empty { color: var(--ink-2); padding: 20px 0; }
.mono { font-family: var(--font-mono); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }

.page { padding-block: 36px 80px; }
.section { padding-block: 72px; }
@media (max-width: 700px) { .section { padding-block: 52px; } }
.section-alt { background: var(--bg-alt); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(1.75rem, 3.2vw, 2.375rem); }
.section-head .sub { margin-top: 10px; color: var(--ink-2); max-width: 62ch; font-size: var(--t-lg); line-height: 1.55; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.section-head.center .sub { margin-inline: auto; }
.page-head { margin-bottom: 28px; max-width: 760px; }
.page-head .lede { margin-top: 10px; }
.row-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; max-width: none; }
.lede { font-size: var(--t-lg); color: var(--ink-2); max-width: 60ch; line-height: 1.6; }
.display { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 4.6vw, 3.6rem); line-height: 1.06; letter-spacing: -0.03em; }
.display-sm { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4vw, 2.875rem); line-height: 1.1; letter-spacing: -0.025em; }
.display-xs { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 2.4vw, 1.75rem); line-height: 1.2; letter-spacing: -0.015em; }
.sub-h { margin-top: 32px; margin-bottom: 4px; font-size: 1.1875rem; }
.text-link { font-weight: 600; }

/* ---------- Surfaces ---------- */
.card, .panel, .frame, .facts-wrap, .qmap-panel, .review-item, .table-wrap, dialog, .login-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
}
.card, .panel { padding: 24px; min-width: 0; }
@media (min-width: 640px) { .card, .panel { padding: 30px; } }
.frame { position: relative; box-shadow: var(--shadow); }

/* stat tiles: labelled values in a row */
.form-box, .es-facts, .facts { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.form-box > div, .es-facts > div, .facts > div { flex: 1 1 130px; min-width: 0; padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); }
.form-box dt, .es-facts dt, .facts dt { font-size: var(--t-xs); font-weight: 500; color: var(--ink-3); line-height: 1.3; }
.form-box dd, .es-facts dd, .facts dd { margin: 3px 0 0; font-weight: 650; line-height: 1.35; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- Buttons & controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px;
  border-radius: 10px; border: 1px solid transparent; font: 600 0.9375rem/1.1 var(--font-body);
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); box-shadow: 0 1px 2px rgba(14, 22, 48, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.btn-primary:hover:not([disabled]) { background: color-mix(in srgb, var(--btn-bg) 88%, #000); }
.btn-quiet { color: var(--ink); background: var(--surface); border-color: var(--line-strong); }
.btn-quiet:hover:not([disabled]) { border-color: var(--brand); color: var(--brand-strong); background: var(--brand-soft); }
.btn-gold { background: var(--gold); color: #0E1630; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); }
.btn-gold:hover { background: color-mix(in srgb, var(--gold) 88%, #fff); }
.btn-ghost-light { color: var(--on-navy); border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.04); }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }
.btn-danger { background: var(--bad); color: var(--on-solid); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: var(--t-sm); border-radius: 9px; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 1rem; }
.btn[disabled], .btn[aria-disabled='true'] { opacity: 0.45; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; background: var(--surface); color: var(--ink-2); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.icon-btn:hover { border-color: var(--brand); color: var(--brand-strong); }
.icon-btn svg { width: 19px; height: 19px; }
.chip { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-strong); font-weight: 650; font-size: var(--t-sm); }
.badge { display: inline-block; padding: 1px 9px; border-radius: 999px; vertical-align: 2px; background: var(--ok-soft); color: var(--ok); font-size: var(--t-xs); font-weight: 700; }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.pill-list li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: var(--t-sm); color: var(--ink-2); }
.pill-list b { color: var(--ink); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-weight: 600; font-size: var(--t-sm); }
.hint { color: var(--ink-2); font-size: var(--t-sm); margin-top: -2px; }
input:not([type='checkbox']):not([type='radio']), select, textarea {
  font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; min-height: 46px; padding: 10px 14px; width: 100%;
}
textarea { resize: vertical; line-height: 1.5; }
select { appearance: none; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid color-mix(in srgb, var(--focus) 35%, transparent); outline-offset: 0; border-color: var(--focus); }
input[type='checkbox'], input[type='radio'] { width: 18px; height: 18px; accent-color: var(--brand); margin: 0; }
.field.check { flex-direction: row; align-items: center; gap: 10px; }
.field.check label { font-weight: 500; font-size: var(--t-md); }

/* ---------- Logo ---------- */
.logo { width: 32px; height: 32px; flex: none; }
.logo .lg-tile { fill: var(--brand); }
.logo .lg-page { fill: #FFFFFF; }
.logo .lg-page-2 { fill: #D9E1FF; }
.logo .lg-spark { fill: var(--gold); }
:root[data-theme='dark'] .logo .lg-tile { fill: #2F54EB; }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .logo .lg-tile { fill: #2F54EB; } }

/* ---------- Header & footer ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: color-mix(in srgb, var(--surface) 92%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 750 1.3rem/1 var(--font-display); letter-spacing: -0.02em; }
.site-nav { margin-left: 12px; }
.site-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: 0.9375rem; border-radius: 8px; }
.site-nav a:hover { color: var(--ink); background: var(--surface-3); }
.site-nav a[aria-current='page'] { color: var(--brand-strong); }
.site-nav a[aria-current='page']::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -12px; height: 2px; border-radius: 2px; background: var(--brand); }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.theme-toggle .when-dark { display: none; }
:root[data-theme='dark'] .theme-toggle .when-dark { display: block; }
:root[data-theme='dark'] .theme-toggle .when-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .theme-toggle .when-dark { display: block; }
  :root:not([data-theme='light']) .theme-toggle .when-light { display: none; }
}
@media (max-width: 760px) {
  .header-inner { flex-wrap: wrap; gap: 0 10px; padding-top: 8px; }
  .site-nav { order: 3; width: 100%; margin: 0 -6px; overflow-x: auto; }
  .site-nav a { padding: 0 8px; }
  .site-nav a[aria-current='page']::after { left: 8px; right: 8px; bottom: 4px; }
  .header-cta { display: none; }
}

.site-footer { background: var(--navy); color: var(--on-navy-2); padding-block: 56px 36px; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; } }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--on-navy); font: 750 1.25rem var(--font-display); letter-spacing: -0.02em; }
.footer-about { margin-top: 14px; max-width: 46ch; font-size: var(--t-sm); line-height: 1.6; }
.footer-col h2 { font: 650 var(--t-sm)/1.3 var(--font-body); color: var(--on-navy); letter-spacing: 0; margin-bottom: 12px; }
.footer-links { display: grid; gap: 8px; list-style: none; padding: 0; margin: 0; font-size: var(--t-sm); }
.footer-links a { color: var(--on-navy-2); text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: var(--t-xs); line-height: 1.6; color: #A3AECB; }
.footer-legal p { max-width: 110ch; }
.site-footer :focus-visible { outline-color: var(--gold); }

/* ---------- Home: hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--on-navy);
  background-color: var(--navy);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(160deg, var(--navy) 30%, var(--navy-2));
  background-size: 48px 48px, 48px 48px, 100% 100%;
  padding-block: 64px 120px;
}
.hero::after { content: ''; position: absolute; right: -180px; top: -200px; width: 620px; height: 620px; border-radius: 50%; border: 90px solid rgba(47, 84, 235, 0.22); pointer-events: none; }
.hero :focus-visible { outline-color: var(--gold); }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; align-items: center; }
@media (min-width: 1040px) { .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; } .hero { padding-block: 84px 150px; } }
.hero h1 { color: #fff; }
.hero .lede { color: var(--on-navy-2); margin-top: 22px; font-size: 1.1875rem; }
.hero .actions { margin-top: 32px; }
.announce { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 5px 14px 5px 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); color: #E4E9F7; font-size: var(--t-sm); font-weight: 500; text-decoration: none; }
.announce b { padding: 2px 9px; border-radius: 999px; background: var(--gold); color: #0E1630; font-size: var(--t-xs); font-weight: 700; }
.announce:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 30px 0 0; padding: 0; list-style: none; color: var(--on-navy-2); font-size: var(--t-sm); }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--gold); }

/* product shot: a screenshot in a browser window */
.shot { position: relative; border-radius: 14px; background: #F3F5FA; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: var(--shadow-lg); overflow: hidden; }
.shot-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; background: #E6EAF2; border-bottom: 1px solid #D5DBE6; }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: #C4CBD8; }
.shot-bar i:nth-child(1) { background: #F2716B; } .shot-bar i:nth-child(2) { background: #F6BE4F; } .shot-bar i:nth-child(3) { background: #5BC567; }
.shot-bar span { flex: 1; max-width: 340px; margin-left: 10px; height: 20px; border-radius: 6px; background: #fff; color: #5B667E; font: 500 11px/20px var(--font-body); padding: 0 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.shot img { width: 100%; }
.hero-visual { position: relative; min-width: 0; }
@media (min-width: 1040px) { .hero-visual .shot { transform: perspective(1800px) rotateY(-6deg) rotateX(2deg); transform-origin: left center; } }
.float-card { position: absolute; z-index: 2; background: var(--surface); color: var(--ink); border-radius: 14px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 14px 16px; }
.float-score { left: -28px; bottom: -40px; width: 232px; }
.float-score .fs-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: var(--t-xs); color: var(--ink-3); font-weight: 500; }
.float-score .fs-num { font: 800 2.1rem/1 var(--font-display); letter-spacing: -0.03em; margin-top: 6px; }
.float-score .fs-pass { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-weight: 700; }
.float-score .fs-pass svg { width: 12px; height: 12px; }
.float-score .fs-bars { display: grid; gap: 5px; margin-top: 12px; }
.float-score .fs-bars span { height: 6px; border-radius: 4px; background: var(--surface-3); position: relative; overflow: hidden; }
.float-score .fs-bars span::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--v); background: var(--c); border-radius: 4px; }
.float-tip { right: -18px; top: 52px; display: flex; align-items: center; gap: 10px; font-size: var(--t-sm); font-weight: 600; max-width: 240px; }
.float-tip .ft-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--gold-soft); color: var(--gold-ink); flex: none; }
.float-tip .ft-icon svg { width: 18px; height: 18px; }
.float-tip small { display: block; font-weight: 500; color: var(--ink-3); font-size: var(--t-xs); }
@media (max-width: 1039px) { .float-score { left: 12px; } .float-tip { right: 12px; } }
@media (max-width: 640px) { .float-card { display: none; } .hero { padding-bottom: 104px; } }

/* stats band overlapping the hero */
.stats { position: relative; z-index: 2; margin-top: -64px; }
.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow); overflow: hidden; margin: 0; }
@media (min-width: 860px) { .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stats-grid > div { display: flex; flex-direction: column-reverse; padding: 24px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 860px) { .stats-grid > div { border-bottom: 0; } .stats-grid > div:last-child { border-right: 0; } }
@media (max-width: 859px) { .stats-grid > div:nth-child(2n) { border-right: 0; } .stats-grid > div:nth-child(n+3) { border-bottom: 0; } }
.stats-grid dt { color: var(--ink-3); font-size: var(--t-sm); font-weight: 500; margin-top: 4px; }
.stats-grid dd { margin: 0; font: 800 clamp(1.75rem, 3vw, 2.25rem)/1.1 var(--font-display); letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }

/* how it works */
.steps { display: grid; gap: 20px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; } }
.steps li { position: relative; padding: 28px 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.step-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-strong); margin-bottom: 18px; }
.step-icon svg { width: 26px; height: 26px; }
.steps li:nth-child(2) .step-icon { background: var(--gold-soft); color: var(--gold-ink); }
.steps li:nth-child(3) .step-icon { background: var(--ok-soft); color: var(--ok); }
.step-num { position: absolute; top: 24px; right: 24px; font: 800 2.4rem/1 var(--font-display); color: var(--surface-3); letter-spacing: -0.04em; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--ink-2); }

/* feature rows: text beside a product shot */
.features { display: grid; gap: 96px; }
@media (max-width: 860px) { .features { gap: 64px; } }
.feature { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
@media (min-width: 960px) { .feature { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 64px; } .feature.flip { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); } .feature.flip .feature-text { order: 2; } }
.feature-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; font-weight: 650; font-size: var(--t-sm); color: var(--brand-strong); }
.feature-kicker svg { width: 18px; height: 18px; }
.feature h3 { font: 750 clamp(1.5rem, 2.6vw, 2rem)/1.15 var(--font-display); letter-spacing: -0.02em; }
.feature p { margin-top: 14px; color: var(--ink-2); font-size: var(--t-lg); max-width: 52ch; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { width: 22px; height: 22px; flex: none; padding: 3px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); margin-top: 1px; }
.feature-visual { min-width: 0; position: relative; }
.feature-visual::before { content: ''; position: absolute; inset: 28px -14px -14px 28px; border-radius: 18px; background: var(--brand-soft); z-index: 0; }
.feature.flip .feature-visual::before { inset: 28px 28px -14px -14px; background: var(--gold-soft); }
@media (max-width: 640px) { .feature-visual::before, .feature.flip .feature-visual::before { inset: 18px -8px -8px 18px; } }
.feature-visual .shot { position: relative; z-index: 1; border-color: var(--line); box-shadow: var(--shadow); }

/* try a question */
.try-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: start; }
@media (min-width: 1000px) { .try-grid { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 56px; } }
.try-copy .checks { margin-top: 26px; }
.hero-try { overflow: hidden; border-radius: var(--r-xl); }
.try-title { display: flex; align-items: center; gap: 10px; padding: 14px 24px; border-bottom: 1px solid var(--line); background: var(--surface-2); font: 650 var(--t-sm)/1.3 var(--font-body); color: var(--ink-2); }
.try-title::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.try-body { padding: 22px 22px 24px; }
@media (min-width: 640px) { .try-body { padding: 26px 30px 30px; } }
.try-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; color: var(--ink-3); font-size: var(--t-sm); margin-bottom: 14px; }
.try-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; }

/* FAQ */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font-weight: 650; font-size: 1.0625rem; border-radius: var(--r); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 24px; height: 24px; border-radius: 50%; background-color: var(--brand-soft); background-image: linear-gradient(var(--brand-strong), var(--brand-strong)), linear-gradient(var(--brand-strong), var(--brand-strong)); background-size: 10px 2px, 2px 10px; background-position: center; background-repeat: no-repeat; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 22px 20px; color: var(--ink-2); max-width: 72ch; }

/* closing call to action */
.cta-band { position: relative; overflow: hidden; padding: 56px 40px; border-radius: var(--r-xl); color: #fff; text-align: center;
  background-color: #2F54EB; background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.16) 1px, transparent 0); background-size: 22px 22px; }
:root[data-theme='dark'] .cta-band { background-color: #2443C4; }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .cta-band { background-color: #2443C4; } }
.cta-band h2 { color: #fff; font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
.cta-band p { margin: 12px auto 0; max-width: 54ch; color: #E3E9FF; font-size: var(--t-lg); }
.cta-band .actions { justify-content: center; }
.cta-band :focus-visible { outline-color: var(--gold); }
@media (max-width: 640px) { .cta-band { padding: 44px 22px; } }

/* ---------- Interior page header band ---------- */
.page-band { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding-block: 44px 40px; }
.page-band .crumbs ol { margin-bottom: 16px; }
.page-band .lede { margin-top: 12px; }

/* ---------- Exam cards & blueprint ---------- */
.exam-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 900px) { .exam-list { grid-template-columns: 1fr 1fr; } }
.exam-strip { display: flex; flex-direction: column; padding: 0; overflow: hidden; transition: box-shadow 0.2s, border-color 0.2s; }
.exam-strip:hover { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.es-cover { position: relative; height: 150px; color: #fff; overflow: hidden; background: #0B1533; }
.es-cover svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.es-cover .es-code { position: absolute; left: 24px; bottom: 18px; z-index: 1; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.95); color: #0E1630; font-weight: 750; font-size: var(--t-sm); letter-spacing: 0.01em; }
.es-cover .es-level { position: absolute; left: 24px; top: 18px; z-index: 1; padding: 3px 10px; border-radius: 999px; background: rgba(11, 21, 51, 0.55); color: #fff; font-size: var(--t-xs); font-weight: 650; }
.es-body { display: flex; flex-direction: column; gap: 14px; padding: 22px 24px 24px; flex: 1; }
.es-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: var(--ink-3); font-size: var(--t-sm); }
.es-title { font: 750 1.375rem/1.25 var(--font-display); letter-spacing: -0.015em; }
.es-title a { color: var(--ink); text-decoration: none; }
.es-title a:hover { color: var(--brand-strong); }
.es-tagline { color: var(--ink-2); max-width: 60ch; }
.es-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 6px; }
.vendor-h { font-size: var(--t-xl); margin-bottom: 16px; }

.bp { display: flex; gap: 3px; width: 100%; height: 10px; }
.bp-compact { height: 8px; }
.bp-seg { flex: 0 0 calc(var(--w) - 3px); min-width: 6px; border-radius: 4px; position: relative; }
.bp-label { display: none; }
.bp-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; list-style: none; font-size: var(--t-xs); color: var(--ink-2); }
.bp-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.pat-1 { background: var(--d1); } .pat-2 { background: var(--d2); } .pat-3 { background: var(--d3); } .pat-4 { background: var(--d4); }
.pat-5 { background: var(--d5); } .pat-6 { background: var(--d6); } .pat-7 { background: var(--d7); } .pat-8 { background: var(--d8); }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: 0; margin-right: 8px; }

/* small demos */
.demo { min-width: 0; }
.mini-opts { display: grid; gap: 8px; }
.mini-opts div { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: 0.9375rem; }
.mini-opts div.ok { border-color: var(--ok); background: var(--ok-soft); }
.mini-opts div.no { border-color: var(--bad); background: var(--bad-soft); }
.mini-opts b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line-strong); font: 700 12px var(--font-body); flex: none; }
.mini-opts .ok b { background: var(--ok); border-color: var(--ok); color: var(--on-solid); }
.mini-opts .no b { background: var(--bad); border-color: var(--bad); color: var(--on-solid); }

/* ---------- Readiness ring & domain bars ---------- */
.ring { position: relative; width: 170px; height: 170px; margin: 6px auto 0; color: var(--brand); }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .arc { stroke: var(--brand); stroke-linecap: round; transition: stroke-dashoffset 1.2s cubic-bezier(0.2, 0.8, 0.2, 1); }
.ring .track { stroke: var(--surface-3); }
.ring .cutdot { fill: var(--gold); stroke: var(--surface); }
.ring .center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring .big { font: 800 2.6rem/1 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ring small { display: block; color: var(--ink-3); font-size: var(--t-sm); margin-top: 4px; }
.ring-sm { width: 128px; height: 128px; }
.ring-sm .big { font-size: 2rem; }

.dom-rows { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.dom-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; }
.dom-name { font-weight: 600; min-width: 0; }
.dom-name .muted { font-weight: 400; font-size: var(--t-sm); }
.dom-bar { grid-column: 1 / -1; position: relative; height: 10px; border-radius: 6px; background: var(--surface-3); }
.dom-bar > span { position: absolute; inset: 0 auto 0 0; width: var(--v); border-radius: 6px; background: var(--bad); }
.dom-bar > span.hi { background: var(--ok); }
.dom-bar > i { position: absolute; top: -4px; bottom: -4px; left: var(--c); width: 2px; border-radius: 2px; background: var(--ink); }
.dom-val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.acc-good { color: var(--ok); font-weight: 700; }
.acc-low { color: var(--bad); font-weight: 700; }

/* ---------- Exam page ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 20px; font-size: var(--t-sm); color: var(--ink-2); }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); }
.exam-band { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding-block: 36px 44px; }
.exam-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }
@media (min-width: 1000px) { .exam-hero { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; } }
.exam-hero .es-meta { margin-bottom: 12px; }
.exam-hero .lede { margin-top: 14px; }
.exam-hero .bp { margin-top: 26px; }
.facts-wrap { padding: 22px; box-shadow: var(--shadow); }
.facts-h { font: 650 var(--t-md)/1.3 var(--font-body); letter-spacing: 0; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.facts-h::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.facts-wrap .facts > div { flex-basis: 150px; }
.facts-wrap .fine { margin-top: 14px; }
.legend-gap { margin-top: 12px; }
.exam-page { padding-top: 32px; }
.blueprint { margin-top: 28px; }
.table-scroll { overflow-x: auto; }
.domain-table { width: 100%; }
.domain-table th, .domain-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.domain-table thead th { color: var(--ink-3); font-size: var(--t-xs); font-weight: 600; background: var(--surface-2); }
.domain-table thead th:first-child { border-top-left-radius: 8px; } .domain-table thead th:last-child { border-top-right-radius: 8px; }
.domain-table tbody tr:last-child > * { border-bottom: 0; }
.domain-table tbody tr:hover > * { background: var(--surface-2); }
.domain-table tbody th { font-weight: 550; }
.domain-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.domain-table .drill-cell { text-align: right; width: 1%; padding-block: 6px; }
.d-code { font-weight: 700; color: var(--ink-3); margin-right: 4px; }
.section-intro { margin: -12px 0 18px; }
@media (max-width: 640px) { .domain-table thead th:nth-child(3), .domain-table td:nth-child(3) { display: none; } .domain-table th, .domain-table td { padding-inline: 6px; } }
.exam-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
@media (min-width: 1024px) { .exam-grid { grid-template-columns: minmax(0, 1fr) 350px; } .your-progress { position: sticky; top: 92px; } }
.practice > .section-head { margin-bottom: 16px; }
.practice .section-head h2, .your-progress .section-head h2, .blueprint .section-head h2, .tips-card .section-head h2 { font-size: 1.5rem; }
.time-pref { max-width: 460px; }
.run-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.run-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); transition: border-color 0.15s, box-shadow 0.15s; }
.run-row:hover { border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); box-shadow: var(--shadow-sm); }
.run-info { flex: 1 1 240px; min-width: 0; display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; }
.run-info::before { content: ''; grid-row: span 3; width: 40px; height: 40px; border-radius: 10px; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F54EB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='3.5' width='14' height='17' rx='2.5'/%3E%3Cpath d='M9 8.5h6M9 12h6M9 15.5h3.5'/%3E%3C/svg%3E") center / 22px no-repeat; }
.run-info h4 { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: 1rem; }
.run-info .muted { font-size: var(--t-sm); margin-top: 2px; }
.run-actions { display: flex; gap: 8px; }
.run-last { font-size: var(--t-sm); margin-top: 4px; color: var(--ink-2); }
.run-last:empty { display: none; }
.your-progress .section-head { margin-bottom: 10px; }
.your-progress .fine { margin-top: 14px; }
.yp-list { list-style: none; padding: 0; margin: 14px 0 0; }
.yp-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: var(--t-sm); }
.yp-list li:last-child { border-bottom: 0; }
.yp-list a { font-weight: 600; }
.yp-score { font-weight: 700; font-variant-numeric: tabular-nums; }
.overview { max-width: 780px; }
.prose p, .prose ul, .prose ol, .prose dl { margin-top: 0.85em; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin-top: 1.6em; font-size: var(--t-xl); }
.prose li + li { margin-top: 0.35em; }
.def-list { display: grid; gap: 12px; margin-top: 16px; }
@media (min-width: 760px) { .def-list { grid-template-columns: 1fr 1fr; } }
.def-list div { padding: 16px 18px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.def-list dt { font-weight: 650; }
.def-list dd { margin: 6px 0 0; color: var(--ink-2); }
.about { max-width: 880px; }

/* ---------- Questions ---------- */
.q-stem { font: 400 1.125rem/1.72 var(--font-read); max-width: 72ch; color: var(--ink); }
.q-stem p + p, .q-stem p + ul, .q-stem ul + p { margin-top: 0.8em; }
.q-stem ul, .q-stem ol { margin: 0.6em 0 0; }
.q-pick { margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-ink); font-weight: 650; font-size: var(--t-sm); }
.q-domain { display: inline-flex; font-size: var(--t-sm); color: var(--brand-strong); font-weight: 600; }
.q-options { border: 0; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; min-width: 0; }
.opt {
  position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 4px 14px; align-items: start;
  padding: 13px 16px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r);
  cursor: pointer; font: 400 1.0625rem/1.55 var(--font-read); transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}
.opt:hover { border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); background: var(--surface-2); }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.opt:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.opt-key { display: grid; place-items: center; width: 30px; height: 30px; margin-top: -2px; border: 1.5px solid var(--line-strong); color: var(--ink-2); background: var(--surface); font: 650 0.8125rem/1 var(--font-body); transition: background-color 0.12s, color 0.12s, border-color 0.12s; }
.opt[data-kind='single'] .opt-key { border-radius: 50%; }
.opt[data-kind='multi'] .opt-key { border-radius: 8px; }
.opt-text { min-width: 0; padding-top: 1px; }
.opt-text p + p { margin-top: 0.5em; }
.opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent); }
.opt:has(input:checked) .opt-key { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.opt.is-locked { cursor: default; }
.opt.is-locked:hover { border-color: var(--line); background: var(--surface); }
.opt-why { grid-column: 2; font-size: var(--t-sm); line-height: 1.55; color: var(--ink-2); border-top: 1px dashed var(--line); padding-top: 9px; margin-top: 4px; }
.opt-tag { grid-column: 2; display: inline-flex; align-items: center; gap: 6px; font: 700 var(--t-sm) var(--font-body); }
.opt-tag svg { width: 16px; height: 16px; }
.opt.is-locked.is-correct { border-color: var(--ok); background: var(--ok-soft); box-shadow: none; }
.opt.is-locked.is-correct .opt-key { background: var(--ok); border-color: var(--ok); color: var(--on-solid); }
.opt.is-locked.is-correct .opt-tag { color: var(--ok); }
.opt.is-locked.is-wrong { border-color: var(--bad); background: var(--bad-soft); box-shadow: none; }
.opt.is-locked.is-wrong .opt-key { background: var(--bad); border-color: var(--bad); color: var(--on-solid); }
.opt.is-locked.is-wrong .opt-tag { color: var(--bad); }

/* rule out: the button sits beside each option */
.opt-row { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 6px; align-items: stretch; }
.opt-strike { display: grid; place-items: center; min-height: 44px; padding: 0; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--ink-3); cursor: pointer; }
.opt-strike svg { width: 20px; height: 20px; }
.opt-strike:hover { color: var(--bad); border-color: var(--line); background: var(--surface); }
.opt-strike[aria-pressed='true'] { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); background: var(--bad-soft); }
.opt-row.is-struck .opt { background: var(--surface-2); border-style: dashed; }
.opt-row.is-struck .opt-text { text-decoration: line-through; text-decoration-thickness: 1.5px; text-decoration-color: var(--ink-3); color: var(--ink-3); }
.opt-row.is-struck .opt-key { color: var(--ink-3); border-style: dashed; }

/* highlighter */
mark.hl { background: var(--mark); color: var(--mark-ink); border-radius: 3px; padding: 0.04em 0; -webkit-box-decoration-break: clone; box-decoration-break: clone; cursor: pointer; }
.hl-pop { position: absolute; z-index: 20; display: flex; gap: 2px; padding: 4px; background: #0E1630; color: #fff; border-radius: 10px; box-shadow: var(--shadow-lg); }
.hl-pop[hidden] { display: none; }
.hl-pop button { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: inherit; font: 600 var(--t-sm) var(--font-body); cursor: pointer; }
.hl-pop button:hover { background: rgba(255, 255, 255, 0.14); }
.hl-pop i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: #FFE58A; }

.feedback { margin-top: 20px; padding: 18px 20px; border-radius: var(--r); border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); background: var(--ok-soft); }
.feedback.bad { border-color: color-mix(in srgb, var(--bad) 35%, transparent); background: var(--bad-soft); }
.feedback-h { display: flex; align-items: center; gap: 10px; font: 700 var(--t-lg)/1.3 var(--font-body); letter-spacing: 0; margin-bottom: 10px; }
.feedback.ok .feedback-h { color: var(--ok); }
.feedback.bad .feedback-h { color: var(--bad); }
.feedback-h svg { width: 22px; height: 22px; flex: none; }
.feedback-sub { font-weight: 500; color: var(--ink-2); }
.feedback .prose { font: 400 1.0625rem/1.65 var(--font-read); color: var(--ink); }
.takeaway { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 16px; padding: 12px 16px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--gold); font: 600 1.0625rem/1.45 var(--font-read); color: var(--ink); }
.takeaway-label { display: inline-flex; align-items: center; gap: 6px; font: 700 var(--t-sm) var(--font-body); color: var(--gold-ink); }
.takeaway-label svg { width: 15px; height: 15px; }
.hint-box { margin-top: 14px; padding: 12px 16px; border-radius: 10px; background: var(--gold-soft); border: 1px solid color-mix(in srgb, var(--gold) 50%, transparent); font: 400 1.0625rem/1.5 var(--font-read); }
.hint-box[hidden] { display: none; }
.tips-card { margin-top: 24px; }
.tips-card .prose ul { padding-left: 1.2em; }
.tips-card .fine { margin-top: 14px; }
.refs { margin-top: 14px; font-size: var(--t-sm); }
.refs h4 { font-size: var(--t-sm); color: var(--ink-2); margin-bottom: 4px; }
.refs ul { margin: 0; padding-left: 1.1em; }

/* ---------- Diagrams ---------- */
.diagram { margin: 16px 0 4px; padding: 14px 14px 10px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); container-type: inline-size; }
.diagram figcaption { display: flex; align-items: center; gap: 8px; font: 700 var(--t-sm) var(--font-body); color: var(--ink-2); margin-bottom: 8px; }
.diagram-right figcaption { color: var(--ok); }
.diagram-wrong figcaption { color: var(--bad); }
.diagram-right figcaption::before, .diagram-wrong figcaption::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.dg-scroll { overflow-x: auto; border-radius: 8px; }
.dg-scroll.is-scrollable { padding-bottom: 6px; scrollbar-width: thin; }
.dg-scroll.is-scrollable:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.dg { width: auto; max-width: 100%; height: auto; margin-inline: auto; font-family: var(--font-body); }
.dg-narrow { display: none; }
@container (max-width: 560px) { .dg-wide { display: none; } .dg-narrow { display: block; } }
.dg-node { fill: var(--surface-2); stroke: var(--line-strong); stroke-width: 1.5; }
.dg-good { fill: var(--ok-soft); stroke: var(--ok); stroke-width: 2; }
.dg-bad { fill: var(--bad-soft); stroke: var(--bad); stroke-width: 2; stroke-dasharray: 5 4; }
.dg-store { fill: var(--brand-soft); stroke: var(--brand); }
.dg-store-rim { fill: none; stroke: var(--brand); stroke-width: 1.5; }
.dg-person { fill: var(--gold-soft); stroke: var(--gold-ink); }
.dg-text { fill: var(--ink); font-size: 14px; font-weight: 600; }
.dg-text-good { fill: var(--ok); }
.dg-text-bad { fill: var(--bad); }
.dg-edge { fill: none; stroke: var(--ink-3); stroke-width: 1.6; }
.dg-edge.dg-dash { stroke-dasharray: 6 5; }
.dg-edge.dg-to-good { stroke: var(--ok); }
.dg-edge.dg-to-bad { stroke: var(--bad); }
.dg-arrow { fill: var(--ink-3); stroke: none; }
.dg-arrow.dg-to-good { fill: var(--ok); }
.dg-arrow.dg-to-bad { fill: var(--bad); }
.dg-label-bg { fill: var(--surface); stroke: var(--line); }
.dg-label { fill: var(--ink-2); font-size: 12px; font-weight: 600; }

/* ---------- Test runner ---------- */
.is-runner { background: var(--bg-alt); }
.runner-top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.runner-top-inner { display: flex; align-items: center; gap: 10px 14px; min-height: 64px; flex-wrap: wrap; padding-block: 8px; }
.runner-title { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 240px; }
.runner-title .brand span:not(.logo) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.runner-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.runner-name .muted { font-weight: 400; }
.runner-tools { display: flex; align-items: center; gap: 8px; }
@media (max-width: 560px) {
  .runner-title { flex-basis: 100%; }
  .runner-tools { width: 100%; }
  .runner-tools [data-finish] { margin-left: auto; }
  .runner-tools [data-open-map] { padding-inline: 10px; }
  .runner-tools [data-open-map] span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.timer { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-strong); font: 700 1rem/1 var(--font-body); font-variant-numeric: tabular-nums; }
.timer svg { width: 17px; height: 17px; }
.timer.is-low { color: var(--flag); background: var(--flag-soft); }
.timer.is-critical { color: var(--bad); background: var(--bad-soft); }
.progress-line { height: 4px; background: var(--surface-3); overflow: hidden; }
.progress-line > span { display: block; height: 100%; width: var(--p, 0%); background: var(--brand); border-radius: 0 4px 4px 0; transition: width 0.3s; }
.runner-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 28px 120px; align-items: start; }
@media (min-width: 1100px) { .runner-body { grid-template-columns: minmax(0, 1fr) 300px; } }
.q-panel { padding: 22px 20px 24px; border-radius: var(--r-xl); }
@media (min-width: 640px) { .q-panel { padding: 30px 36px 32px; } }
.q-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 14px; }
.q-count { font: 700 1.125rem/1.2 var(--font-body); letter-spacing: 0; outline: none; }
.q-count .muted { font-weight: 500; }
.flag-btn[aria-pressed='true'] { background: var(--flag-soft); border-color: var(--flag); color: var(--flag); }
.q-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.q-nav-right { display: flex; gap: 10px; flex-wrap: wrap; margin-left: auto; }
.q-util { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 14px; font-size: var(--t-sm); }
.link-btn { background: none; border: 0; padding: 0; min-height: 32px; color: var(--ink-2); font: inherit; font-weight: 500; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.link-btn:hover { color: var(--brand-strong); }
.link-btn[hidden] { display: none; }
.qmap-panel { position: sticky; top: 92px; padding: 20px; border-radius: var(--r-xl); }
.qmap-panel h2 { font: 700 var(--t-md) var(--font-body); letter-spacing: 0; margin-bottom: 14px; }
@media (max-width: 1099px) { .qmap-panel { display: none; } }
.qmap { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; list-style: none; padding: 0; margin: 0; }
dialog .qmap { grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); }
.qmap button { position: relative; width: 100%; aspect-ratio: 1; min-height: 34px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; color: var(--ink-2); font: 600 var(--t-xs) var(--font-body); font-variant-numeric: tabular-nums; cursor: pointer; }
.qmap button:hover { border-color: var(--brand); color: var(--brand-strong); }
.qmap .is-answered { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); color: var(--brand-strong); }
.qmap .is-current { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--brand); color: var(--ink); font-weight: 750; }
.qmap .is-flagged::after { content: ''; position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); border: 2px solid var(--surface); }
.qmap .is-right { border-color: var(--ok); background: var(--ok-soft); color: var(--ok); }
.qmap .is-wrong { border-color: var(--bad); background: var(--bad-soft); color: var(--bad); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; font-size: var(--t-xs); color: var(--ink-2); list-style: none; padding: 0; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; border: 1px solid var(--line-strong); margin-right: 5px; vertical-align: -1px; background: var(--surface); }
.legend .lg-answered { background: var(--brand-soft); border-color: var(--brand); }
.legend .lg-flagged { background: var(--gold); border-color: var(--gold); border-radius: 50%; }
.qmap-summary { margin-top: 12px; font-size: var(--t-sm); color: var(--ink-2); }
.bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px -12px rgba(14, 22, 48, 0.25);
  padding: 10px max(var(--gutter), env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px)); display: flex; gap: 10px; justify-content: space-between; }
@media (min-width: 760px) { .bottom-bar { display: none; } }
@media (max-width: 759px) { .q-nav { display: none; } .runner-body { padding-bottom: 100px; } }
html:has(body.is-runner) { scroll-padding-top: 100px; }
#q-count, .feedback-h, .fc-side { scroll-margin-top: 100px; }

/* ---------- Dialogs ---------- */
dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; color: var(--ink); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); }
dialog::backdrop { background: var(--backdrop); backdrop-filter: blur(2px); }
.dialog-body { padding: 26px; }
.dialog-body h2 { font-size: var(--t-xl); margin-bottom: 12px; }
.dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.kbd-list { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; }
.kbd-list dt { font-weight: 600; }
kbd { font-family: var(--font-mono); font-size: 0.85em; padding: 1px 7px; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; background: var(--surface-2); }

/* ---------- Results ---------- */
.score-hero { padding: 26px 22px; display: grid; gap: 24px; border-radius: var(--r-xl); }
@media (min-width: 860px) { .score-hero { grid-template-columns: auto 1fr; align-items: center; padding: 34px 40px; gap: 48px; } }
.score-big { font: 800 clamp(3.6rem, 10vw, 5.5rem)/0.95 var(--font-display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.score-big small { font-size: 0.42em; margin-left: 2px; color: var(--ink-3); letter-spacing: 0; }
.verdict { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 6px 14px; border-radius: 999px; font: 700 var(--t-sm)/1.2 var(--font-body); }
.verdict svg { width: 16px; height: 16px; }
.verdict.pass { color: var(--ok); background: var(--ok-soft); }
.verdict.fail { color: var(--bad); background: var(--bad-soft); }
.score-detail h1 { font: 750 var(--t-xl)/1.2 var(--font-display); margin-bottom: 4px; }
.score-stats { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 14px; color: var(--ink-2); font-size: var(--t-sm); }
.score-stats strong { color: var(--ink); font-size: var(--t-md); }
.scale { position: relative; margin-top: 28px; padding-top: 22px; }
.scale-track { position: relative; height: 12px; background: var(--surface-3); border-radius: 8px; }
.scale-fill { position: absolute; inset: 0 auto 0 0; width: var(--v, 0%); border-radius: 8px; background: var(--bad); }
.scale-fill.pass { background: var(--ok); }
.scale-cut { position: absolute; top: -24px; bottom: -6px; left: var(--c); width: 0; border-left: 2px dashed var(--ink); }
.scale-cut span { position: absolute; top: 0; left: 6px; white-space: nowrap; font-size: var(--t-xs); font-weight: 700; color: var(--ink); }
.scale-ticks { display: flex; justify-content: space-between; margin-top: 8px; font-size: var(--t-xs); color: var(--ink-3); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: no-preference) {
  .scale-fill.animate { animation: fill 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s both; }
  @keyframes fill { from { width: 0; } }
}
.filter-group { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-3); }
.filter-group label { position: relative; display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; cursor: pointer; font-weight: 600; font-size: var(--t-sm); color: var(--ink-2); border-radius: 9px; }
.filter-group input { position: absolute; opacity: 0; }
.filter-group label:has(input:checked) { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.filter-group label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 1px; }
.review-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.review-item { border-radius: var(--r); }
.review-item > summary { list-style: none; cursor: pointer; padding: 14px 18px; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; border-radius: var(--r); }
.review-item > summary::-webkit-details-marker { display: none; }
.review-item > summary:focus-visible { outline-offset: -3px; }
.ri-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; }
.ri-mark svg { width: 16px; height: 16px; }
.ri-mark.ok { color: var(--ok); background: var(--ok-soft); }
.ri-mark.bad { color: var(--bad); background: var(--bad-soft); }
.ri-mark.skip { color: var(--ink-3); background: var(--surface-3); }
.ri-title { min-width: 0; }
.ri-title strong { display: block; }
.ri-title > span { display: block; color: var(--ink-2); font-size: var(--t-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ri-chev { width: 20px; height: 20px; color: var(--ink-2); transition: transform 0.2s; }
.review-item[open] .ri-chev { transform: rotate(180deg); }
.review-body { padding: 4px 18px 20px; border-top: 1px solid var(--line); }
.review-body .q-stem { margin-top: 14px; font-size: 1.0625rem; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.result-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
@media (min-width: 900px) { .result-grid { grid-template-columns: 300px 1fr; } }

/* ---------- Progress page ---------- */
.prog-exam { display: grid; gap: 18px; margin-bottom: 28px; }
.prog-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; align-items: baseline; }
.prog-stats { display: flex; flex-wrap: wrap; gap: 6px 24px; color: var(--ink-2); font-size: var(--t-sm); }
.prog-stats strong { color: var(--ink); }
.prog-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
@media (min-width: 900px) { .prog-grid { grid-template-columns: 270px 1fr; } }
.table-wrap { overflow-x: auto; }
table.data { width: 100%; font-size: var(--t-sm); }
table.data th, table.data td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data thead th { color: var(--ink-3); font-size: var(--t-xs); font-weight: 600; white-space: nowrap; background: var(--surface-2); }
table.data tbody tr:last-child > * { border-bottom: 0; }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; }
table.data tbody th { font-weight: 550; }

/* ---------- Flashcards ---------- */
.flash-page .field { max-width: 460px; }
.fc-stage { margin-top: 8px; perspective: 1600px; }
.fc-card { position: relative; min-height: 340px; padding: 0; border-radius: var(--r-xl); border-top: 4px solid var(--brand); }
.fc-face { padding: 26px 24px; }
@media (min-width: 640px) { .fc-face { padding: 32px 38px; } }
.fc-face[hidden] { display: none; }
.fc-side { display: inline-flex; font: 700 var(--t-xs) var(--font-body); color: var(--brand-strong); background: var(--brand-soft); padding: 3px 10px; border-radius: 999px; margin-bottom: 14px; }
.fc-answer { font: 700 var(--t-lg)/1.4 var(--font-read); margin-bottom: 10px; }
.fc-opts { font-family: var(--font-read); }
.fc-opts li + li { margin-top: 6px; }
.fc-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.fc-count { color: var(--ink-2); font-variant-numeric: tabular-nums; font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .fc-card.flip-anim { animation: cardflip 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  @keyframes cardflip { 0% { transform: rotateY(0); } 50% { transform: rotateY(90deg); } 100% { transform: rotateY(0); } }
}

/* ---------- Alerts ---------- */
.alert { padding: 14px 18px; border-radius: var(--r); margin-bottom: 22px; border: 1px solid; }
.alert-ok { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.alert-bad { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 35%, transparent); }
.alert-h { font: 700 var(--t-md) var(--font-body); margin-bottom: 4px; }
.alert ul { margin: 6px 0 0; }

/* ---------- Admin ---------- */
.admin-header .site-nav { margin-left: 18px; }
.admin-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.admin-tools form { margin: 0; }
@media (max-width: 860px) { .admin-header .site-nav { order: 3; width: 100%; margin-left: 0; } }
fieldset.panel { margin: 0 0 22px; }
fieldset.panel > legend { font: 700 var(--t-lg) var(--font-display); padding: 0 8px; margin-left: -8px; }
.panel-h { font: 700 var(--t-lg) var(--font-display); margin-bottom: 12px; }
.panel.danger { border-color: var(--bad); }
.grid-2, .grid-3 { display: grid; gap: 0 20px; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.rows { display: grid; gap: 8px; }
.rows .row { display: grid; grid-template-columns: 90px 1fr 110px; gap: 8px; align-items: center; }
.rows-sets .row { grid-template-columns: 140px 1fr 1fr 90px; }
.rows-refs .row { grid-template-columns: 1fr 1.4fr; gap: 0 16px; }
.row-head-labels span { font-size: var(--t-sm); font-weight: 600; color: var(--ink-2); }
@media (max-width: 700px) {
  .rows .row, .rows-sets .row, .rows-refs .row { grid-template-columns: 1fr; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
  .row-head-labels { display: none !important; }
}
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 32px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.inline-form .field { margin: 0; }
.editor-grid { display: grid; gap: 24px; }
@media (min-width: 1180px) { .editor-grid { grid-template-columns: minmax(0, 1fr) 440px; } .preview { position: sticky; top: 24px; align-self: start; max-height: calc(100vh - 48px); overflow: auto; } }
.option-row { display: grid; grid-template-columns: 40px 1fr; gap: 0 14px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.option-row:last-child { border-bottom: 0; }
.option-row .opt-letter { grid-row: span 3; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-strong); font: 700 0.875rem var(--font-body); }
.option-row .field { margin-bottom: 10px; }
.option-row.is-spare.js-hidden { display: none; }
.filters { display: flex; flex-wrap: wrap; gap: 0 14px; align-items: flex-end; margin-bottom: 18px; }
.filters .field { margin-bottom: 10px; min-width: 150px; }
.filters .grow { flex: 1 1 220px; }
.filters .btn { margin-bottom: 10px; }
.bulk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.bulk-bar p { margin-right: auto; }
.actions-cell { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.status { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: var(--t-xs); font-weight: 700; }
.status-published { color: var(--ok); background: var(--ok-soft); }
.status-draft { color: var(--ink-2); background: var(--surface-3); }
.row-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.report-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.report-meta { margin-bottom: 8px; }
.report blockquote { margin: 0 0 12px; padding: 8px 14px; border-left: 3px solid var(--line-strong); color: var(--ink-2); }
.login { display: grid; place-items: center; min-height: 80vh; }
.login-card { width: min(440px, 100%); padding: 32px; }
.login-card h1 { margin-bottom: 20px; }
details.panel > summary { cursor: pointer; font-weight: 700; }
details.panel pre { white-space: pre-wrap; }

/* ---------- Reduced motion, forced colors, print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .opt:has(input:checked), .opt.is-correct, .opt.is-wrong, .takeaway { border: 3px solid CanvasText; }
  mark.hl { forced-color-adjust: none; background: Mark; color: MarkText; }
  .bp-seg, .scale-fill, .dom-bar > span, .swatch, .logo { forced-color-adjust: none; }
}
@media print {
  .site-header, .site-footer, .runner-top, .bottom-bar, .qmap-panel, .result-actions { display: none !important; }
  body { background: #fff; }
}
