/* Hallmark · shape: app design system · genre: modern-minimal · theme: Cobalt (deal cobalt) · scope: app · redesign: full
 * Vantage (light): cool near-white paper, blue-black ink; signature: lime "found/passed" signal, flat pill controls, square corner-tick panels, figure-with-unit ledgers; type: Geologica throughout
 * axes: light/grotesk-sans/cool · posture: restrained · contrast: pass · fold: pass · dark mode + large-text toggle + pass/fail semantics preserved · v2.0.0 */
/* Hallmark · pre-emit critique: Pok Hok Eok Sok Rok Vok · weakest: density — kept app control sizes (36-44px) and bevelled only top-level panels so dense tables stay calm */
/* app-scope deviations from theme, on record: filled status badges kept (scannability in an ATS) rather than text-only chips; warm semantic colours kept for pass/fail/warn (meaning over palette purity) */
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/plex-sans-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/plex-sans-500.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/plex-sans-600.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/plex-sans-700.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Serif"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/plex-serif-600.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Serif"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/plex-serif-700.woff2") format("woff2"); }
@font-face { font-family: "Familjen Grotesk"; font-weight: 500 600; font-style: normal; font-display: swap; src: url("fonts/familjen-grotesk-latin.woff2") format("woff2"); }
@font-face { font-family: "Geologica"; font-weight: 200 800; font-style: normal; font-display: swap; src: url("fonts/geologica-latin.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400 500; font-style: normal; font-display: swap; src: url("fonts/jetbrains-mono-latin.woff2") format("woff2"); }

:root {
  /* Cobalt: a cool near-white paper -> blue-black ink ramp, mapped onto the slate scale the app already uses */
  --slate-50: oklch(96.2% 0.008 252);  /* page ground (paper-2) */
  --slate-100: oklch(93% 0.011 252);   /* tint / rail (paper-3) */
  --slate-200: oklch(90% 0.009 252);   /* hairline rule */
  --slate-300: oklch(83% 0.012 252);   /* rule-2 / input border */
  --slate-400: oklch(66% 0.016 256);   /* faint ink / icon stroke */
  --slate-500: oklch(50% 0.018 258);   /* muted */
  --slate-600: oklch(42% 0.02 259);    /* ink-2 soft */
  --slate-700: oklch(36% 0.022 260);   /* ink-2 */
  --slate-900: oklch(21% 0.028 262);   /* ink */
  --accent: oklch(44% 0.15 143);       /* Vantage lime signal (deep), the working "do this / found" signal; passes 4.5:1 on paper */
  --accent-hover: oklch(38% 0.15 143); /* lime deep */
  --accent-soft: oklch(94% 0.08 128);  /* lime wash */
  --accent-ring: oklch(60% 0.16 140);  /* visible lime focus ring */
  --accent-line: oklch(80% 0.18 128);  /* bright lime hairline / tick */
  --accent-edge: oklch(42% 0.14 142);  /* edge */
  --accent-bright: oklch(84% 0.205 128);/* the bright lime fill for pills, bars and chips */
  --accent-on: oklch(26% 0.06 142);    /* ink for text that sits on bright lime */
  --brand-line: linear-gradient(90deg, #38bdf8, #8b5cf6 55%, #ec4899);  /* the logo's own colors -- used only where it earns its keep: timed progress */
  --ok: oklch(44% 0.15 143); --ok-soft: oklch(94% 0.08 128);   /* lime -- reserved for "passed / found" */
  --bad: #be123c; --bad-soft: #fff1f3;     /* rose-700 */
  --warn: #92400e; --warn-soft: #fff8ee;   /* amber-800 */
  --radius-md: 2px; --radius-lg: 2px; --radius-xl: 0px;
  --cut: 0px; --cut-l: 0px;                 /* Vantage panels are square with corner ticks */
  --tick: 14px;                            /* corner-tick arm length */
  --tracking-display: -.028em; --display-weight: 600;
  --shadow-sm: 0 1px 2px oklch(21% 0.028 262 / .06);
  --shadow-md: 0 4px 14px -6px oklch(21% 0.028 262 / .18), 0 1px 2px oklch(21% 0.028 262 / .06);
  --shadow-key: 0 2px 0 0 var(--slate-300);          /* keycap bottom edge */
  --shadow-key-accent: 0 2px 0 0 var(--accent-edge);
  --font: "Geologica", "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Geologica", "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --font-serif: "Geologica", "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --surface: oklch(98.6% 0.005 250); --on-accent: oklch(98.6% 0.005 250);
  --bad-border: #f6c9d2; --warn-border: #f1d7a4; --ok-border: oklch(80% 0.14 130);
  /* Inset panel tint + hairline, used by prompt boxes (writing, email) and report cards. Defined as themed
     tokens so they track light/dark; previously only inline hardcoded light fallbacks existed, which left a
     light box with theme-driven near-white text in dark mode -- i.e. unreadable white-on-white prompts. */
  --panel-bg: var(--slate-100); --border-color: var(--slate-200);
  color-scheme: light;
}
/* Dark theme: only when a candidate chooses it in the Display menu (an accessibility choice). Staff pages are always light. Slate scale is inverted so the same rules work. */
:root[data-theme="dark"] {
  /* Cobalt graphite: the dark material, in lightness steps toward pale ink */
  --slate-50: oklch(21% 0.024 262);    /* graphite ground */
  --slate-100: oklch(26.5% 0.026 262); /* graphite-2 */
  --slate-200: oklch(32% 0.02 262);    /* rule on graphite */
  --slate-300: oklch(40% 0.02 261);    /* stronger rule / input border */
  --slate-400: oklch(55% 0.02 259);
  --slate-500: oklch(69% 0.022 256);   /* graphite muted */
  --slate-600: oklch(78% 0.018 254);
  --slate-700: oklch(86% 0.012 252);
  --slate-900: oklch(93% 0.010 250);   /* graphite ink */
  --surface: oklch(26.5% 0.026 262); --on-accent: oklch(14% 0.02 262);
  --accent: oklch(82% 0.19 128); --accent-hover: oklch(88% 0.2 128); --accent-soft: oklch(32% 0.08 140); --accent-ring: oklch(82% 0.19 128); --accent-line: oklch(55% 0.15 136); --accent-edge: oklch(45% 0.13 140); --accent-bright: oklch(84% 0.205 128); --accent-on: oklch(20% 0.05 142);
  --brand-line: linear-gradient(90deg, #38bdf8, #8b5cf6 55%, #ec4899);  /* the logo's own colors */
  --ok: oklch(82% 0.19 128); --ok-soft: oklch(28% 0.07 142); --ok-border: oklch(45% 0.13 140);
  --bad: #fb7185; --bad-soft: #3a0d18; --bad-border: #9f1239;
  --warn: #fbbf24; --warn-soft: #33250a; --warn-border: #92400e;
  --shadow-sm: none; --shadow-md: none; --shadow-key: 0 2px 0 0 oklch(14% 0.02 262); --shadow-key-accent: 0 2px 0 0 oklch(40% 0.14 260);
  color-scheme: dark;
}
/* Larger text: everything is sized in rem, so one change scales the whole page. */
:root[data-text="large"] { font-size: 118.75%; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.6; color: var(--slate-900); background: var(--slate-50); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5rem; letter-spacing: -.01em; }
h1 { font-family: var(--font-serif); font-size: 2rem; font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: 1.25rem; font-weight: 600; }
h3 { font-size: 1rem; font-weight: 600; }
p { margin: 0 0 1rem; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent-ring); outline-offset: 2px; border-radius: 4px; }
/* headings receive programmatic focus for screen readers; no ring needed there */
h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus { outline: none; }
.muted { color: var(--slate-600); }
.small { font-size: .875rem; }
.num { font-variant-numeric: tabular-nums; }
.tnum { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--slate-900); color: var(--slate-50); padding: .5rem 1rem; border-radius: var(--radius-md); z-index: 100; }
.skip-link:focus { top: .5rem; }

/* ---- top bar */
.topbar { background: var(--surface); border-bottom: 1px solid var(--slate-200); }
.topbar-inner { max-width: 72rem; margin: 0 auto; padding: .75rem 1rem; display: flex; align-items: center; gap: 1rem; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--slate-900); font-weight: 600; font-size: 1.125rem; letter-spacing: -.01em; }
.brand-lockup { display: block; height: 2rem; width: auto; }
.brand-lockup-dark { display: none; }
:root[data-theme="dark"] .brand-lockup-light { display: none; }
:root[data-theme="dark"] .brand-lockup-dark { display: block; }
.topnav { display: flex; align-items: center; gap: 1.25rem; font-size: .875rem; }
.topnav a { color: var(--slate-600); text-decoration: none; font-weight: 500; }
.topnav a:hover { color: var(--slate-900); }
.topnav a[aria-current=page] { color: var(--slate-900); box-shadow: inset 0 -2px 0 var(--accent); }
.topnav-user { display: inline-flex; flex-direction: column; line-height: 1.2; padding-left: 1.25rem; border-left: 1px solid var(--slate-200); }
.topnav-org { font-size: .75rem; color: var(--slate-500); font-weight: 400; }
@media (max-width: 48rem) { .topbar-inner { flex-wrap: wrap; } .topnav { flex-wrap: wrap; gap: .75rem 1rem; } .topnav-user { border-left: 0; padding-left: 0; } }
.topnav form { margin: 0; }
.topbar-status { font-size: .875rem; color: var(--slate-600); display: flex; gap: 1rem; align-items: center; }

/* ---- layout */
main { display: block; max-width: 72rem; margin: 0 auto; padding: 2rem 1rem 4rem; }
main:focus { outline: none; }
.main-candidate, .main-test { max-width: 48rem; }
.stack > * + * { margin-top: 1.5rem; }
.card { background: var(--surface); border: 1px solid var(--slate-200); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); padding: 1.5rem; }
.card-lg { padding: 2rem; }
.grid-2 { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.row-between { justify-content: space-between; }
.eyebrow { font-size: .875rem; font-weight: 600; color: var(--accent-hover); margin-bottom: .375rem; }

/* ---- forms */
label, .label { display: block; font-size: .875rem; font-weight: 500; color: var(--slate-700); margin-bottom: .25rem; }
.field { margin-bottom: 1rem; }
.hint { font-size: .8125rem; color: var(--slate-500); margin-top: .25rem; overflow-wrap: anywhere; }
.link-preview { list-style: none; margin: .25rem 0; padding: 0; display: grid; gap: .25rem; font-size: .8125rem; color: var(--slate-500); }
.link-preview .num { display: block; overflow-wrap: anywhere; color: var(--slate-700); }
input[type=text], input[type=url], input[type=email], input[type=password], input[type=number], input[type=date], input[type=search], select, textarea {
  width: 100%; font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--slate-300); border-radius: var(--radius-lg);
  padding: .625rem .75rem; min-height: 2.75rem; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-ring) 45%, transparent); }
input[aria-invalid=true] { border-color: var(--bad); }
.check { display: flex; gap: .625rem; align-items: flex-start; font-weight: 400; color: var(--slate-700); }
.check input { width: 1.125rem; height: 1.125rem; margin-top: .2rem; accent-color: var(--accent); flex: none; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; }

/* ---- buttons */
.btn { white-space: nowrap;  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.75rem; padding: .5rem 1.125rem;
  font: inherit; font-weight: 600; font-size: .9375rem; border-radius: var(--radius-lg); border: 1px solid transparent; cursor: pointer;
  text-decoration: none; transition: background-color .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-secondary { background: var(--surface); color: var(--slate-700); border-color: var(--slate-300); }
.btn-secondary:hover { background: var(--slate-50); color: var(--slate-900); }
.btn-danger { background: var(--surface); color: var(--bad); border-color: var(--bad-border); }
.btn-danger:hover { background: var(--bad-soft); }
.btn-sm { min-height: 2.25rem; padding: .25rem .75rem; font-size: .875rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled=true] { opacity: .5; cursor: not-allowed; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--slate-600); cursor: pointer; font-weight: 500; }
.linklike:hover { color: var(--slate-900); text-decoration: underline; }

/* ---- notices & badges */
.notice { border-radius: var(--radius-lg); padding: .75rem 1rem; margin-bottom: 1.5rem; font-size: .9375rem; border: 1px solid; }
.notice-ok { background: var(--ok-soft); color: var(--ok); border-color: var(--ok-border); }
.notice-error { background: var(--bad-soft); color: var(--bad); border-color: var(--bad-border); }
.notice-warn { background: var(--warn-soft); color: var(--warn); border-color: var(--warn-border); }
.notice-info { background: var(--accent-soft); color: var(--accent-hover); border-color: var(--accent-ring); }
.badge { display: inline-block; font-size: .75rem; font-weight: 600; padding: .125rem .5rem; border-radius: 999px; background: var(--slate-100); color: var(--slate-700); white-space: nowrap; }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-bad { background: var(--bad-soft); color: var(--bad); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-accent { background: var(--accent-soft); color: var(--accent-hover); }

/* ---- tables */
.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--slate-200); border-radius: var(--radius-xl); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .875rem; }
th, td { text-align: left; padding: .75rem 1rem; border-bottom: 1px solid var(--slate-100); vertical-align: top; }
th { font-size: .75rem; font-weight: 600; letter-spacing: 0; color: var(--slate-500); background: var(--slate-50); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; }

/* ---- stat tiles */
.stats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.stat { background: var(--surface); border: 1px solid var(--slate-200); border-radius: var(--radius-xl); padding: 1rem 1.25rem; }
.stat-label { font-size: .8125rem; color: var(--slate-500); font-weight: 500; }
.stat-value { font-family: var(--mono); font-size: 1.75rem; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat-sub { font-size: .8125rem; color: var(--slate-600); }
.meter { height: .375rem; background: var(--slate-100); border-radius: 999px; overflow: hidden; margin-top: .5rem; }
.meter > span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }

/* ---- candidate home */
.hero { margin-bottom: 2rem; }
.hero h1 { font-size: 2.25rem; }
.section-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.section-list li { display: flex; gap: .75rem; align-items: flex-start; }
.section-list .dot { flex: none; width: 1.75rem; height: 1.75rem; border-radius: 999px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: .8125rem; }

/* ---- runner */
.progress { display: flex; gap: .375rem; margin-bottom: 1.5rem; list-style: none; padding: 0; }
.progress li { flex: 1; }
.progress .bar { height: .375rem; border-radius: 999px; background: var(--slate-200); }
.progress .done .bar { background: var(--accent); }
.progress .active .bar { background: var(--accent-ring); }
.progress .name { font-size: .75rem; color: var(--slate-500); margin-top: .375rem; display: block; }
.progress .active .name { color: var(--slate-900); font-weight: 600; }
.timer { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 600; color: var(--slate-900); background: var(--slate-100); padding: .25rem .625rem; border-radius: var(--radius-md); }
.timer.low { background: var(--warn-soft); color: var(--warn); }
.item-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1rem; }
.item-count { font-size: .875rem; color: var(--slate-500); font-variant-numeric: tabular-nums; }
.passage { font-size: 1.125rem; line-height: 1.8; background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: var(--radius-lg);
  padding: 1rem 1.25rem; margin-bottom: 1rem; user-select: none; -webkit-user-select: none; font-family: var(--font); white-space: pre-wrap; overflow-wrap: anywhere; }
.passage .c-ok { color: var(--slate-500); }
.passage .c-bad { color: var(--bad); background: var(--bad-soft); text-decoration: underline; }
.passage .c-cur { border-left: 2px solid var(--accent); margin-left: -2px; }
textarea.answer { min-height: 7rem; font-size: 1.0625rem; line-height: 1.6; resize: vertical; }
.typing-meta { display: flex; gap: 1.5rem; font-size: .875rem; color: var(--slate-600); margin: .5rem 0 1rem; font-variant-numeric: tabular-nums; }
.read-aloud { font-size: 1.375rem; line-height: 1.6; font-weight: 500; letter-spacing: -.01em; padding: 1.25rem 1.5rem; background: var(--accent-soft);
  border-radius: var(--radius-lg); border: 1px solid var(--accent-line); margin-bottom: 1rem; }
.listen-box { display: flex; flex-direction: column; align-items: center; gap: .75rem; padding: 1.5rem; background: var(--slate-50); border-radius: var(--radius-lg); margin-bottom: 1rem; border: 1px solid var(--slate-200); }
.play-btn, .mic-btn { width: 4.5rem; height: 4.5rem; border-radius: 999px; border: 0; background: var(--accent); color: var(--on-accent); cursor: pointer;
  display: grid; place-items: center; box-shadow: var(--shadow-md); transition: background-color .15s, transform .15s; }
.play-btn:hover:not([disabled]), .mic-btn:hover:not([disabled]) { background: var(--accent-hover); }
.play-btn[disabled], .mic-btn[disabled] { background: var(--slate-300); box-shadow: none; cursor: not-allowed; }
.play-btn svg, .mic-btn svg { width: 1.75rem; height: 1.75rem; fill: currentColor; }
.mic-btn.recording { background: var(--bad); animation: pulse 1.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgb(190 18 60 / .45); } 80%, 100% { box-shadow: 0 0 0 16px rgb(190 18 60 / 0); } }
.plays-left { font-size: .875rem; color: var(--slate-600); }
.options { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); margin-top: 1rem; }
.options.text-opts { grid-template-columns: 1fr; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opt .opt-face { display: flex; align-items: center; gap: .75rem; padding: .625rem .875rem; border: 2px solid var(--slate-200); border-radius: var(--radius-lg);
  background: var(--surface); transition: border-color .15s, background-color .15s; min-height: 2.75rem; height: 100%; }
.options:not(.text-opts) .opt-face { flex-direction: column; justify-content: center; padding: .5rem; }
.opt .letter { flex: none; width: 1.5rem; height: 1.5rem; border-radius: 999px; border: 1px solid var(--slate-300); display: grid; place-items: center; font-size: .75rem; font-weight: 600; color: var(--slate-600); }
.opt input:hover + .opt-face { border-color: var(--slate-400); }
.opt input:checked + .opt-face { border-color: var(--accent); background: var(--accent-soft); }
.opt input:checked + .opt-face .letter { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.opt input:focus-visible + .opt-face { outline: 3px solid var(--accent-ring); outline-offset: 2px; }
.opt svg { max-width: 100%; height: auto; }
.stem { font-size: 1.125rem; line-height: 1.7; }
.blank { display: inline-block; min-width: 4rem; border-bottom: 2px solid var(--slate-400); margin: 0 .125rem; }
.item-nav { display: flex; justify-content: space-between; gap: .75rem; margin-top: 1.5rem; flex-wrap: wrap; }
.dots { display: flex; flex-wrap: wrap; gap: .375rem; margin-top: 1rem; }
.dots button { width: 2rem; height: 2rem; border-radius: var(--radius-md); border: 1px solid var(--slate-300); background: var(--surface); font: inherit; font-size: .75rem; cursor: pointer; color: var(--slate-600); font-variant-numeric: tabular-nums; }
.dots button.answered { background: var(--accent-soft); border-color: var(--accent-ring); color: var(--accent-hover); }
.dots button[aria-current=true] { border-color: var(--accent); border-width: 2px; color: var(--slate-900); font-weight: 600; }
.transcript { font-style: italic; color: var(--slate-700); min-height: 1.6em; }
.save-state { font-size: .8125rem; color: var(--slate-500); min-height: 1.25rem; }

/* ---- abstract-reasoning figures */
.lg-figure { display: flex; justify-content: center; margin: .5rem 0 0; overflow-x: auto; padding-bottom: .25rem; }
.lg-strip, .lg-analogy { display: flex; gap: .5rem; align-items: center; flex-wrap: nowrap; }
.lg-grid { display: grid; grid-template-columns: repeat(3, 84px); gap: .375rem; }
.lg-op { font-size: .8125rem; color: var(--slate-500); white-space: nowrap; }
.lg-numseq { display: flex; flex-wrap: wrap; gap: .5rem; font-size: 1.5rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.lg-numseq span { min-width: 3rem; text-align: center; padding: .375rem .625rem; background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: var(--radius-lg); }
.lg-numseq .lg-q { border-style: dashed; color: var(--slate-500); }
@media (max-width: 40rem) {
  .progress .name { display: none; }
  .progress .active .name { display: block; white-space: nowrap; }
  .progress li.active { flex: 2; }
  .lg-strip svg, .lg-analogy svg { width: 60px; height: 60px; }
  .lg-grid { grid-template-columns: repeat(3, 72px); }
  .lg-grid svg { width: 72px; height: 72px; }
  .card { padding: 1.25rem; }
  h1, .hero h1 { font-size: 1.5rem; }
}

/* ---- reading, personality, attention to detail */
.reading-passage { background: var(--slate-50); border: 1px solid var(--slate-200); border-left: 4px solid var(--accent); border-radius: var(--radius-lg);
  padding: 1rem 1.25rem; margin-bottom: 1rem; font-size: 1.0625rem; line-height: 1.75; }
.reading-passage p { margin: 0; }
.statement { font-size: 1.375rem; line-height: 1.5; font-weight: 500; letter-spacing: -.01em; margin: .5rem 0 1.5rem; }
.options.likert { grid-template-columns: repeat(5, 1fr); }
.options.likert .opt-face { justify-content: center; text-align: center; font-size: .875rem; font-weight: 500; min-height: 3.5rem; padding: .5rem; }
@media (max-width: 40rem) { .options.likert { grid-template-columns: 1fr; } .options.likert .opt-face { min-height: 2.75rem; } }
.dt-figure { margin: .5rem 0 0; }
.dt-wrap { overflow-x: auto; border: 1px solid var(--slate-200); border-radius: var(--radius-lg); }
.dt-table { font-size: .9375rem; }
.dt-table th, .dt-table td { padding: .5rem .75rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dt-table tbody th { background: none; text-transform: none; letter-spacing: 0; font-size: .875rem; color: var(--slate-700); font-weight: 600; }
.dt-sentence { font-size: 1.125rem; line-height: 1.7; background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: var(--radius-lg); padding: 1rem 1.25rem; margin: 0; }
.dt-nums { display: flex; flex-wrap: wrap; gap: .5rem; }
.dt-nums span { font-size: 1.25rem; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .04em; padding: .375rem .75rem; background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: var(--radius-md); }
.dt-ref { display: flex; flex-wrap: wrap; align-items: baseline; gap: .75rem; margin: 0; }
.dt-ref-label { font-size: .8125rem; color: var(--slate-500); font-weight: 600; letter-spacing: .04em; }
.dt-code { font-size: 1.5rem; font-weight: 600; letter-spacing: .06em; font-variant-numeric: tabular-nums; }

/* ---- personality profile (admin) */
.trait-row { display: grid; grid-template-columns: minmax(9rem, 13rem) 1fr 3rem minmax(5.5rem, max-content); gap: .75rem; align-items: center; padding: .625rem 0; border-bottom: 1px solid var(--slate-100); }
.trait-row:last-child { border-bottom: 0; }
.trait-name { font-weight: 600; font-size: .9375rem; }
.trait-desc { font-size: .8125rem; color: var(--slate-500); }
.trait-bar { position: relative; height: .5rem; background: var(--slate-100); border-radius: 999px; }
.trait-bar > span { position: absolute; inset: 0 auto 0 0; background: var(--accent); border-radius: 999px; }
.trait-bar::before, .trait-bar::after { content: ""; position: absolute; top: -3px; bottom: -3px; width: 1px; background: var(--slate-300); }
.trait-bar::before { left: 35%; } .trait-bar::after { left: 65%; }
.trait-bar.no-band::before, .trait-bar.no-band::after { content: none; }
@media (max-width: 40rem) { .trait-row { grid-template-columns: 1fr 3rem; } .trait-row .trait-bar, .trait-row .badge { grid-column: 1 / -1; } }

/* ---- admin */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.page-head p { margin: 0; }
.cfg-section { border: 1px solid var(--slate-200); border-radius: var(--radius-xl); padding: 1.25rem; background: var(--surface); }
.cfg-section + .cfg-section { margin-top: 1rem; }
/* Switched-off tests keep their description visible but hide settings (no faded, low-contrast text). */
.cfg-section[data-enabled=false] .cfg-body > :not(.hint) { display: none; }
.cfg-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); margin-top: 1rem; }
.level-picks { display: flex; gap: 1rem; flex-wrap: wrap; }
.copy-field { display: flex; gap: .5rem; }
.copy-field input { font-family: var(--mono); font-size: .8125rem; }
.compare { display: grid; gap: .25rem; }
.compare .k { font-size: .75rem; color: var(--slate-500); letter-spacing: .04em; }
.diff-word-bad { background: var(--bad-soft); color: var(--bad); border-radius: 3px; padding: 0 2px; }
details summary { cursor: pointer; font-weight: 600; }
details summary::marker { color: var(--slate-400); }

@media print {
  .topbar, .no-print, .skip-link { display: none !important; }
  body { background: var(--surface); }
  .card, .stat, .table-wrap { box-shadow: none; break-inside: avoid; }
  main { padding: 0; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.field-error { color: var(--bad); font-size: .8125rem; margin: .25rem 0 0; }
.mic-help { text-align: center; margin: .75rem 0 0; }
.table-wrap:focus-visible, .dt-wrap:focus-visible { outline: 3px solid var(--accent-ring); outline-offset: 2px; }
/* Phones: each row becomes a labelled card so Original and Copy sit one above the other */
@media (max-width: 40rem) {
  .dt-wrap { overflow: visible; border: 0; }
  .dt-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .dt-table, .dt-table tbody, .dt-table tr, .dt-table th, .dt-table td { display: block; width: 100%; }
  .dt-table tr { border: 1px solid var(--slate-200); border-radius: var(--radius-lg); margin-bottom: .5rem; padding: .25rem 0; background: var(--surface); }
  .dt-table th, .dt-table td { white-space: normal; border: 0; padding: .25rem .75rem; display: flex; gap: .75rem; overflow-wrap: anywhere; }
  .dt-table th[data-label]::before, .dt-table td[data-label]::before { content: attr(data-label); flex: 0 0 6.5rem; font-size: .75rem; font-weight: 600; letter-spacing: 0; color: var(--slate-500); padding-top: .15rem; }
  .dt-table tbody th { background: var(--slate-50); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
}

/* ---------- staff accounts */
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.5rem; margin: 0; }
.kv dt { color: var(--slate-600); font-size: .875rem; padding-top: .125rem; }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.reveal { border-color: var(--accent); border-left-width: 4px; background: var(--accent-soft); margin-bottom: 1.5rem; }
details > summary.btn { list-style: none; display: inline-flex; }
details > summary.btn::-webkit-details-marker { display: none; }
@media (max-width: 30rem) { .kv { grid-template-columns: 1fr; gap: .125rem; } .kv dd { margin-bottom: .5rem; } }

/* ---------- licenses */
.text-bad { color: var(--bad); font-weight: 600; }
.text-warn { color: var(--warn); font-weight: 600; }
fieldset.license-picker { border: 0; padding: 0; margin: 0 0 1.25rem; min-width: 0; }
fieldset.license-picker legend { font-weight: 600; font-size: .875rem; margin-bottom: .5rem; padding: 0; }
.license-opt { display: flex; gap: .75rem; align-items: flex-start; padding: .75rem 1rem; border: 1px solid var(--slate-200); border-radius: var(--radius-lg); margin-bottom: .5rem; cursor: pointer; background: var(--surface); }
.license-opt input { margin-top: .3rem; accent-color: var(--accent); width: 1.125rem; height: 1.125rem; flex: none; }
.license-opt > span { display: flex; flex-direction: column; }
.license-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.license-more { margin: 0 0 .75rem 2.875rem; }
.license-more[hidden] { display: none; }
.license-now { display: flex; gap: 2rem; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; border-left-width: 4px; border-left-color: var(--ok); }
.license-now.is-warn { border-left-color: var(--warn); }
.license-now.is-bad { border-left-color: var(--bad); }
.license-big { font-family: var(--mono); font-size: 1.5rem; font-weight: 600; letter-spacing: -.01em; margin: .125rem 0 .25rem; font-variant-numeric: tabular-nums; }
.license-now.is-bad .license-big { color: var(--bad); }
.license-now.is-warn .license-big { color: var(--warn); }
.license-action { flex: 0 1 20rem; min-width: 14rem; }
@media (max-width: 30rem) { .license-more { margin-left: 0; } }

/* ---------- client branding (candidate pages) */
.brand-client { display: flex; flex-direction: column; gap: .125rem; align-items: flex-start; }
.brand-logo { display: block; max-height: 2.5rem; max-width: 10rem; width: auto; height: auto; }
.brand-name { font-weight: 700; font-size: 1.125rem; letter-spacing: -.01em; color: var(--slate-900); }
.brand-powered { font-size: .75rem; color: var(--slate-600); font-weight: 400; }
.brand-grid { align-items: start; }
.color-input { width: 3.5rem; height: 2.75rem; padding: .25rem; border: 1px solid var(--slate-300); border-radius: var(--radius-lg); background: var(--surface); cursor: pointer; }
.brand-preview { border: 1px solid var(--slate-200); border-radius: var(--radius-xl); overflow: hidden; background: var(--slate-50); }
.bp-top { background: var(--surface); border-bottom: 1px solid var(--slate-200); padding: .625rem 1rem; display: flex; flex-direction: column; gap: .125rem; }
.bp-top img { max-height: 2rem; max-width: 8rem; align-self: flex-start; }
.bp-top span { font-size: .6875rem; color: var(--slate-600); }
.bp-body { padding: 1.25rem 1rem 1.5rem; display: flex; flex-direction: column; gap: .375rem; align-items: flex-start; }
.bp-eyebrow { font-size: .75rem; font-weight: 600; color: var(--accent-hover); }
.bp-h { font-size: 1.125rem; font-weight: 600; color: var(--slate-900); }
.bp-btn { margin-top: .5rem; background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: .875rem; padding: .5rem 1rem; border-radius: var(--radius-lg); }

/* ---------- test top bar: position, timer toggle, time notices */
.status-pos { color: var(--slate-600); }
.status-label { font-weight: 500; color: var(--slate-700); }
.timer-toggle { font-size: .8125rem; color: var(--slate-600); text-decoration: underline; text-underline-offset: 2px; min-height: 2.75rem; padding: 0 .25rem; }
.timer-toggle:hover { color: var(--slate-900); }
.time-toast { font-size: .8125rem; font-weight: 600; color: var(--warn); background: var(--warn-soft); border: 1px solid var(--warn-border); padding: .25rem .625rem; border-radius: 999px; opacity: 0; transition: opacity .3s; pointer-events: none; }
.time-toast:empty { display: none; }
.time-toast.show { opacity: 1; }
@media (max-width: 40rem) {
  .topbar-status { flex-wrap: wrap; gap: .25rem .75rem; width: 100%; }
  .status-pos { display: block; font-size: .75rem; }
  .status-label { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .time-toast { transition: none; } }

/* ---------- ranked results */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.chip { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.25rem; padding: .25rem .875rem; border: 1px solid var(--slate-200); border-radius: 999px; background: var(--surface); color: var(--slate-700); text-decoration: none; font-size: .875rem; font-weight: 500; }
.chip:hover { border-color: var(--slate-400); color: var(--slate-900); }
.chip[aria-current="page"] { background: var(--slate-900); border-color: var(--slate-900); color: var(--slate-50); }
.chip-n { font-variant-numeric: tabular-nums; font-size: .75rem; color: inherit; opacity: .75; }
.compare-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .625rem 1rem; margin-bottom: .75rem; background: var(--surface); border: 1px solid var(--slate-200); border-radius: var(--radius-xl); position: sticky; top: .5rem; z-index: 5; }
.compare-bar .btn:disabled { opacity: .5; cursor: not-allowed; }
.results td { vertical-align: top; }
.col-pick { width: 2.75rem; text-align: center; }
.col-pick input { width: 1.125rem; height: 1.125rem; accent-color: var(--accent); margin-top: .25rem; }
.rank { display: inline-grid; place-items: center; min-width: 1.5rem; height: 1.5rem; padding: 0 .375rem; margin-right: .375rem; border-radius: 999px; background: var(--slate-100); color: var(--slate-700); font-size: .75rem; font-weight: 700; font-variant-numeric: tabular-nums; vertical-align: 1px; }
.results .overall { font-size: 1.125rem; font-weight: 600; }
.minibars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); gap: .25rem 1rem; min-width: 16rem; }
.minibars li { display: grid; grid-template-columns: 2.25rem 1fr 1.75rem; align-items: center; gap: .375rem; font-size: .75rem; }
.minibars li.is-sorted { font-weight: 700; }
.mb-l { color: var(--slate-600); font-weight: 600; letter-spacing: .02em; }
.mb-bar { display: block; height: .4375rem; background: var(--slate-100); border-radius: 999px; overflow: hidden; }
.mb-bar > span { display: block; height: 100%; border-radius: 999px; }
.mb-bar .is-ok { background: var(--ok); }
.mb-bar .is-bad { background: var(--bad); }
.mb-v { text-align: right; font-variant-numeric: tabular-nums; color: var(--slate-900); }
.mb-text { grid-column: 2 / 4; color: var(--slate-600); }
.mb-flag { display: inline-grid; place-items: center; width: 1rem; height: 1rem; border-radius: 999px; background: var(--warn-soft); color: var(--warn); font-weight: 700; }

/* ---------- compare */
.cmp-table { table-layout: fixed; min-width: 40rem; }
.cmp-table th[scope="row"] { width: 12rem; text-transform: none; letter-spacing: 0; font-size: .875rem; text-align: left; font-weight: 600; color: var(--slate-700); background: var(--slate-50); vertical-align: top; }
.cmp-table td { vertical-align: top; }
.cmp-corner { background: var(--slate-50); }
.cmp-head { text-transform: none; letter-spacing: 0; font-size: .875rem; color: var(--slate-900); vertical-align: bottom; }
.cmp-head > * { display: block; }
.cmp-name { font-size: 1rem; font-weight: 600; }
.cmp-big { font-family: var(--mono); font-size: 1.75rem; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.cmp-num { font-weight: 600; font-variant-numeric: tabular-nums; }
.cmp-score { display: grid; grid-template-columns: 3rem 1fr; align-items: center; gap: .5rem; margin-bottom: .125rem; }
.cmp-table td.is-best { background: var(--ok-soft); }
.best-tag { display: inline-block; margin-top: .25rem; font-size: .6875rem; font-weight: 700; letter-spacing: .05em; color: var(--ok); }
.cmp-overall td, .cmp-overall th { border-bottom-width: 2px; }
@media print {
  .compare-bar, .chips, .topbar, .page-head .btn { display: none !important; }
  .cmp-table td.is-best { background: none; outline: 2px solid var(--ok); outline-offset: -2px; }
}
.cmp-table .cmp-col-label { width: 12rem; }

/* ---------- staff sidebar */
body.has-sidenav { display: grid; grid-template-columns: 15rem minmax(0, 1fr); min-height: 100vh; }
.sidenav { background: var(--surface); border-right: 1px solid var(--slate-200); position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; overflow-y: auto; }
.sidenav-top { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; }
.sidenav-menu { display: flex; flex-direction: column; flex: 1; padding: 0 .75rem 1rem; }
.sidenav-org { margin: .25rem .5rem 1rem; font-size: .8125rem; font-weight: 600; color: var(--accent-hover); }
.sidenav nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .125rem; }
.sidenav nav a, .sidenav-user a { display: flex; align-items: center; gap: .75rem; min-height: 2.75rem; padding: .5rem .75rem; border-radius: var(--radius-lg); color: var(--slate-700); text-decoration: none; font-weight: 500; font-size: .9375rem; }
.sidenav nav a svg { width: 1.25rem; height: 1.25rem; fill: var(--slate-500); flex: none; }
.sidenav nav a:hover, .sidenav-user a:hover { background: var(--slate-100); color: var(--slate-900); }
.sidenav nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-hover); font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }
.sidenav nav a[aria-current="page"] svg { fill: var(--accent); }
.sidenav-user { margin-top: auto; border-top: 1px solid var(--slate-200); padding-top: .75rem; display: grid; gap: .25rem; }
.sidenav-user a[aria-current="page"] { background: var(--accent-soft); }
.avatar { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 999px; background: var(--slate-900); color: var(--slate-50); font-weight: 600; font-size: .875rem; flex: none; }
.su-name { display: block; font-weight: 600; color: var(--slate-900); line-height: 1.2; }
.su-sub { display: block; font-size: .75rem; color: var(--slate-600); font-weight: 400; }
.sidenav-user form { padding: 0 .75rem; }
.sidenav-user .linklike { min-height: 2.75rem; font-size: .875rem; }
.sidenav-toggle { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: 0 .875rem; border: 1px solid var(--slate-300); border-radius: var(--radius-lg); background: var(--surface); font: inherit; font-weight: 600; font-size: .875rem; color: var(--slate-900); cursor: pointer; }
.sidenav-toggle[hidden] { display: none; }
.sidenav-toggle svg { width: 1.25rem; height: 1.25rem; fill: currentColor; }
.shell-main { min-width: 0; }
.shell-main > main { max-width: 76rem; padding-top: 2rem; }
@media (max-width: 63.99rem) {
  body.has-sidenav { display: block; }
  .sidenav { position: sticky; height: auto; border-right: 0; border-bottom: 1px solid var(--slate-200); z-index: 20; overflow: visible; }
  .sidenav-top { padding: .75rem 1rem; }
  .sidenav-menu { padding: 0 1rem 1rem; }
  .sidenav-menu.is-closed { display: none; }
  .shell-main > main { padding-top: 1.25rem; }
}
@media print {
  .sidenav { display: none !important; }
  body.has-sidenav { display: block; }
}

/* ---------- report */
.report-hero { padding: 1.75rem; margin-bottom: 1.5rem; }
.rh-top { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 1.25rem; border-bottom: 1px solid var(--slate-200); margin-bottom: .5rem; }
.rh-verdict { display: flex; flex-direction: column; align-items: flex-end; gap: .375rem; text-align: right; max-width: 22rem; }
.rh-badge { font-size: .9375rem; padding: .3rem .875rem; }
.rh-overall { display: flex; align-items: baseline; gap: .5rem; }
.rh-num { font-family: var(--mono); font-size: 2.25rem; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; line-height: 1; }
.rh-peer { margin: 0; }
.sec-scores { list-style: none; margin: 0; padding: 0; }
.sec-scores li { display: grid; grid-template-columns: minmax(10rem, 14rem) 1fr 3.5rem 7.5rem; gap: 1rem; align-items: center; padding: .875rem 0; border-bottom: 1px solid var(--slate-100); }
.ss-name { display: flex; flex-direction: column; }
.ss-bar { display: flex; flex-direction: column; gap: .375rem; min-width: 0; }
.ss-track { position: relative; height: .5rem; overflow: visible; }
.ss-mark { position: absolute; top: -.25rem; width: 2px; height: 1rem; background: var(--slate-900); border-radius: 1px; }
.ss-score { font-size: 1.25rem; font-weight: 600; text-align: right; }
.ss-out { justify-self: start; }
.rh-flags { margin: 1rem 0 0; }
.rh-actions { margin-top: 1rem; }
details.evidence > summary { font-size: 1rem; }
@media (max-width: 48rem) {
  .rh-verdict { align-items: flex-start; text-align: left; }
  .sec-scores li { grid-template-columns: 1fr auto; gap: .5rem 1rem; }
  .ss-name { grid-column: 1; }
  .ss-score { grid-column: 2; grid-row: 1; }
  .ss-bar { grid-column: 1 / -1; }
  .ss-out { grid-column: 1 / -1; }
}
@media print {
  .report-hero { box-shadow: none; border: 1px solid var(--slate-300); }
  details.evidence { break-inside: auto; }
  .mb-bar .is-ok, .mb-bar .is-bad { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- before you begin */
.overview .ov-h2 { font-size: 1rem; margin: 0 0 .5rem; }
.ov-sections { list-style: none; margin: 0; padding: 0; border: 1px solid var(--slate-200); border-radius: var(--radius-lg); }
.ov-sections li { display: grid; grid-template-columns: 2rem 1fr auto; align-items: center; gap: .75rem; padding: .625rem 1rem; border-bottom: 1px solid var(--slate-100); }
.ov-sections li:last-child { border-bottom: 0; }
.ov-n { display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-hover); font-weight: 700; font-size: .8125rem; }
.ov-name { font-weight: 600; }
.ov-meta { font-size: .875rem; color: var(--slate-600); font-variant-numeric: tabular-nums; }
.ov-needs { margin: 0; padding-left: 1.25rem; display: grid; gap: .375rem; }
.practice { border: 1px dashed var(--slate-300); border-radius: var(--radius-lg); padding: 1rem 1.25rem; background: var(--slate-50); }
.practice-fb { margin: .75rem 0 0; font-size: .9375rem; font-weight: 500; }
.practice-fb.is-ok { color: var(--ok); }
.practice-fb.is-bad { color: var(--warn); }
.mic-meter { display: inline-block; width: 10rem; height: .5rem; background: var(--slate-200); border-radius: 999px; overflow: hidden; }
.mic-meter > span { display: block; height: 100%; width: 0; background: var(--ok); transition: width .08s linear; }
@media (max-width: 40rem) { .ov-sections li { grid-template-columns: 2rem 1fr; } .ov-meta { grid-column: 2; } }
@media (prefers-reduced-motion: reduce) { .mic-meter > span { transition: none; } }
/* Sidebar panel color runs the full page height, however long the page is. */
@media (min-width: 64rem) {
  body.has-sidenav { background: linear-gradient(to right, var(--surface) 15rem, var(--slate-200) 15rem, var(--slate-200) calc(15rem + 1px), var(--slate-50) calc(15rem + 1px)); }
  .sidenav { border-right: 0; background: transparent; }
}
@media print { body.has-sidenav { background: var(--surface); } }

/* Dark theme: art drawn for light backgrounds (client logos, reasoning puzzles) sits on a light panel. */
:root[data-theme="dark"] .brand-logo { background: #fff; padding: .25rem .5rem; border-radius: var(--radius-md); box-sizing: content-box; }
:root[data-theme="dark"] .lg-figure, :root[data-theme="dark"] .opt-face svg { background: #fff; border-radius: var(--radius-md); }
:root[data-theme="dark"] .lg-figure { padding: .5rem; }

/* ---------- candidate Display menu */
.topbar-right { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: flex-end; }
.display-menu { position: relative; }
.display-menu > summary { list-style: none; display: inline-flex; align-items: center; gap: .375rem; min-height: 2.75rem; padding: 0 .75rem; border: 1px solid var(--slate-200); border-radius: var(--radius-lg); background: var(--surface); color: var(--slate-700); font-size: .875rem; font-weight: 500; cursor: pointer; }
.display-menu > summary::-webkit-details-marker { display: none; }
.display-menu > summary svg { width: 1.125rem; height: 1.125rem; fill: currentColor; }
.display-menu[open] > summary { border-color: var(--accent); color: var(--slate-900); }
.display-panel { position: absolute; right: 0; top: calc(100% + .375rem); z-index: 30; width: 15rem; padding: 1rem; background: var(--surface); border: 1px solid var(--slate-200); border-radius: var(--radius-xl); box-shadow: 0 10px 30px -8px rgb(15 23 42 / .25); display: grid; gap: .75rem; }
.display-panel fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: .25rem; }
.display-panel legend { font-size: .75rem; font-weight: 600; letter-spacing: .05em; color: var(--slate-600); margin-bottom: .25rem; padding: 0; }
.display-panel .check { min-height: 2.25rem; align-items: center; }
.display-panel input { accent-color: var(--accent); width: 1.125rem; height: 1.125rem; }
@media (max-width: 40rem) { .topbar-right { width: 100%; justify-content: space-between; } }

/* ---------- hiring-run cards */
.run-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); gap: 1rem; }
.run { display: flex; flex-direction: column; padding: 1.25rem; margin: 0; }
.run.is-closed { background: var(--slate-50); }
.run.is-closed .run-name { color: var(--slate-600); }
.run-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; }
.run-name { font-size: 1.0625rem; margin: 0 0 .125rem; }
.run-tests { color: var(--slate-700); margin: .625rem 0 .875rem; }
.funnel { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin: 0 0 .75rem; padding: .75rem; background: var(--slate-50); border-radius: var(--radius-lg); }
.run.is-closed .funnel { background: var(--slate-100); }
.funnel div { min-width: 0; }
.funnel dt { font-size: .6875rem; font-weight: 600; letter-spacing: .05em; color: var(--slate-600); }
.funnel dd { margin: 0; display: grid; gap: .25rem; }
.funnel dd .num { font-size: 1.375rem; font-weight: 600; line-height: 1.2; }
.fbar { display: block; height: .3125rem; border-radius: 999px; background: var(--slate-200); overflow: hidden; }
.fbar > span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.fbar.is-ok > span { background: var(--ok); }
.run .copy-field { margin-top: auto; }
.run-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }

/* ---------- hiring stages and notes */
.print-only { display: none; }
@media print { .print-only { display: block; } }
.stage { display: inline-block; font-size: .75rem; font-weight: 600; padding: .125rem .5rem; border-radius: 999px; border: 1px solid var(--slate-200); color: var(--slate-700); background: var(--surface); }
.stage-shortlisted { border-color: var(--accent-ring); color: var(--accent-hover); background: var(--accent-soft); }
.stage-interview { border-color: var(--ok-border); color: var(--ok); background: var(--ok-soft); }
.stage-rejected { color: var(--slate-600); background: var(--slate-100); text-decoration: line-through; text-decoration-color: var(--slate-400); }
.stage-line { margin-top: .375rem; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.bulk-actions { gap: .5rem; }
.bulk-actions select { min-height: 2.25rem; padding-top: .25rem; padding-bottom: .25rem; font-size: .875rem; }
.rh-actions { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.stage-form { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.note-form textarea { min-height: 5rem; resize: vertical; }
.notes { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 0; }
.notes li { padding: .875rem 0 .875rem 1rem; border-left: 2px solid var(--slate-200); position: relative; }
.notes li::before { content: ""; position: absolute; left: -5px; top: 1.15rem; width: 8px; height: 8px; border-radius: 999px; background: var(--accent); }
.notes li.is-stage::before { background: var(--slate-400); }
.notes li.is-stage .note-body { color: var(--slate-600); font-size: .875rem; font-style: italic; }
.note-meta { color: var(--slate-600); margin-bottom: .125rem; }
.note-body { white-space: normal; overflow-wrap: anywhere; }
.notes form { margin-top: .25rem; }
.display-menu { margin-left: auto; }
.display-panel { max-width: calc(100vw - 2rem); }
@media (max-width: 40rem) {
  .lg-strip, .lg-analogy { gap: .25rem; }
  .lg-strip svg, .lg-analogy svg { width: clamp(2.5rem, 13vw, 60px); height: auto; }
  :root[data-theme="dark"] .lg-figure { padding: .25rem; }
}
.diff-word-unclear { text-decoration: underline wavy var(--warn); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.engine-box { display: grid; gap: .375rem; }
.engine-status { margin: 0; }
.engine-status.is-bad { color: var(--bad); font-weight: 500; }
.engine-bar { width: 100%; max-width: 18rem; }
.engine-bar > span { background: var(--accent); }
.engine-pick { border: 0; padding: 0; margin: .25rem 0 0; display: grid; gap: .5rem; }
.engine-pick legend { font-weight: 600; font-size: .875rem; margin-bottom: .25rem; padding: 0; }
.pc-icon { width: 3rem; height: 3rem; fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- stay-in-the-test overlay */
.guard { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 1rem; background: rgb(15 23 42 / .72); backdrop-filter: blur(6px); }
.guard-card { max-width: 30rem; background: var(--surface); color: var(--slate-900); border-radius: var(--radius-xl); padding: 1.75rem; border-top: 4px solid var(--warn); box-shadow: 0 20px 50px -10px rgb(0 0 0 / .45); }
.guard-card h2 { margin-top: 0; }
@media (prefers-reduced-motion: no-preference) { .guard { animation: guard-in .15s ease-out; } @keyframes guard-in { from { opacity: 0; } } }
.anticheat-banner { background: var(--warn-soft); border: 2px solid var(--warn-border); border-left: 6px solid var(--warn); border-radius: var(--radius-lg); padding: 1.125rem 1.25rem; margin: 0 0 1.5rem; }
.anticheat-banner h2 { margin: 0 0 .5rem; display: flex; align-items: center; gap: .5rem; font-size: 1.0625rem; color: var(--warn); }
.anticheat-banner .ac-icon { display: inline-flex; flex-shrink: 0; }
.anticheat-banner .ac-icon svg { width: 1.375rem; height: 1.375rem; fill: currentColor; }
.anticheat-banner .ac-lead { margin: 0; font-weight: 600; }
.anticheat-banner ul { margin: .5rem 0 0; padding-left: 1.25rem; display: grid; gap: .375rem; }
.anticheat-banner .ac-limit { margin: .75rem 0 0; font-weight: 700; }
.anticheat-banner.is-compact { margin-bottom: 1.25rem; }
.anticheat-banner.is-compact h2 { font-size: .9375rem; }
.integrity-log { margin-top: 1rem; }
.integrity-log ol { margin: .5rem 0 0; padding-left: 1.25rem; display: grid; gap: .25rem; }

/* ---- position templates (assessment builder) */
.tpl-grid { list-style: none; margin: .75rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: .75rem; }
.tpl-card { display: flex; flex-direction: column; gap: .25rem; height: 100%; padding: .875rem 1rem; border: 1px solid var(--slate-200); border-radius: var(--radius-lg);
  background: var(--surface); color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.tpl-card strong { color: var(--slate-900); font-size: .9375rem; }
.tpl-card:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.tpl-card:focus-visible { outline: 2px solid var(--accent-ring); outline-offset: 2px; }
.tpl-card[aria-current="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.tpl-tests { margin-top: auto; padding-top: .375rem; color: var(--slate-600); line-height: 1.4; }
.tpl-summary { margin: .5rem 0 0; padding-left: 1.25rem; columns: 2 16rem; column-gap: 2rem; }
.tpl-why { margin: .75rem 0 0; color: var(--slate-700); }
@media (prefers-reduced-motion: reduce) { .tpl-card { transition: none; } }

/* ---- earlier settings applied from a previous assessment name */
.prior-note:empty { display: none; }
.prior-note p { margin: 0 0 1rem; padding: .625rem .875rem; border-radius: var(--radius-lg); background: var(--accent-soft); color: var(--slate-900); font-size: .875rem; }
.prior-note .linklike { color: var(--slate-900); text-decoration: underline; font-weight: 600; }
.run-lob { margin: 0 0 .125rem; font-size: .75rem; font-weight: 600; letter-spacing: .02em; color: var(--slate-600); }
.field-half { max-width: 24rem; }
.apptype { display: inline-block; margin: .125rem 0; font-size: .75rem; font-weight: 600; color: var(--slate-700); }
.apptype-transfer, .apptype-promotion { color: var(--accent-hover); }

/* ---- local norms + validation */
.trait-pct { color: var(--accent-hover); font-weight: 600; margin-top: .125rem; }
.pct-unit { font-size: .7em; font-weight: 600; margin-left: 1px; }
.outcome-form { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: end; }
.outcome-form .field { margin: 0; min-width: min(100%, 15rem); }
.steps-inline { margin: .25rem 0 1rem; padding-left: 1.25rem; }
.steps-inline li { margin: .25rem 0; }
.read-list { margin: 0; padding-left: 1.25rem; }
.read-list li { margin: .375rem 0; }
.val-table th[scope="row"] { font-weight: 600; white-space: normal; min-width: 11rem; }
.val-table td { min-width: 15rem; vertical-align: top; }
.rbar { position: relative; display: block; height: .5rem; margin: .25rem 0 .375rem; background: var(--slate-100); border-radius: 999px; max-width: 14rem; }
.rbar::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--slate-400); }
.rbar > span { position: absolute; top: 0; bottom: 0; border-radius: 999px; }
.rbar .is-pos { background: var(--accent); }
.rbar .is-neg { background: var(--warn); }
.r-val { font-weight: 700; color: var(--slate-900); }
.r-word { font-size: .875rem; }
.r-meta { display: block; margin-top: .125rem; }
.rh-why { margin: .375rem 0 0; max-width: 26rem; margin-left: auto; color: var(--slate-700); }
.rh-why.is-bad { color: var(--bad, #be123c); font-weight: 500; }
.rh-rule { margin: .125rem 0 0; }
.verdict-why { display: inline-block; max-width: 16rem; color: var(--slate-600); line-height: 1.35; margin-top: .25rem; }
.count-warn { color: var(--warn); }

/* ---- integrations */
.hook-row { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between; align-items: center; padding: .875rem 0; border-top: 1px solid var(--slate-200); }
.hook-main { min-width: 0; flex: 1 1 22rem; }
.hook-url { margin: 0 0 .25rem; font-weight: 600; overflow-wrap: anywhere; }
.hook-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.guide { padding-left: 1.25rem; margin: 0 0 1rem; }
.guide li { margin: 0 0 1rem; }
.guide pre { margin: .5rem 0 0; padding: .75rem 1rem; background: #0f172a; color: #e2e8f0; border: 1px solid #1e293b; border-radius: var(--radius-lg); overflow-x: auto; font-size: .8125rem; line-height: 1.5; }
.guide pre code { background: none; color: inherit; padding: 0; }
input[readonly] { background: var(--slate-50); color: var(--slate-700); cursor: default; }

/* v3.16: view-only integrations, email */
.view-only { border-left: 4px solid var(--warn, #b45309); }
.invite-lines { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .875rem; min-height: 9rem; }
.mail-status { white-space: nowrap; }

/* The logo's rounded X keeps its own three-color line, but only where it is measuring something real: timed progress. */
.topbar { position: relative; }
.progress .done .bar { background: var(--brand-line); background-size: 100vw 100%; background-attachment: fixed; }
.meter > span { background: var(--brand-line); }
.btn-primary { font-weight: 600; }
.sidenav nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent-ring); }
:root[data-theme="dark"] .sidenav nav a[aria-current="page"] { color: var(--slate-900); }
:root[data-theme="dark"] .card { border-color: var(--slate-200); }
/* Sign-in: the brand panel is the one bold moment; the form beside it stays plain. */
.auth { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); max-width: 56rem; margin: 2.5rem auto; background: var(--surface); border: 1px solid var(--slate-200); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-md); }
.auth-brand { position: relative; padding: 2.5rem 2.25rem; background: radial-gradient(120% 90% at 0% 0%, var(--accent-soft) 0%, transparent 60%), radial-gradient(90% 80% at 100% 100%, var(--ok-soft) 0%, transparent 55%), var(--slate-50); border-right: 1px solid var(--slate-200); }
.auth-logo { height: 3.75rem; width: auto; display: block; }
.auth-logo-client { max-height: 3.75rem; max-width: 14rem; height: auto; width: auto; object-fit: contain; }
.auth-logo.brand-lockup-dark { display: none; }
:root[data-theme="dark"] .auth-logo.brand-lockup-light { display: none; }
:root[data-theme="dark"] .auth-logo.brand-lockup-dark { display: block; }
.auth-tag { margin: .75rem 0 2rem; font-size: .9375rem; font-weight: 600; letter-spacing: .02em; color: var(--slate-600); }
.auth-points { list-style: none; margin: 0; padding: 0; display: grid; gap: .875rem; }
.auth-points li { position: relative; padding-left: 1.5rem; color: var(--slate-700); font-size: .9375rem; line-height: 1.5; }
.auth-points li::before { content: ""; position: absolute; left: 0; top: .4em; width: .625rem; height: .625rem; border-radius: 50%; }
.auth-form { padding: 2.5rem 2.25rem; }
.auth-form h1 { font-size: 1.5rem; }
:root[data-theme="dark"] .auth-brand { background: radial-gradient(110% 80% at 0% 0%, rgb(251 146 60 / .14) 0%, transparent 60%), radial-gradient(90% 80% at 100% 100%, rgb(45 212 191 / .14) 0%, transparent 60%), #0a0d16; }
.auth-points li:first-child::before { background: var(--accent); }
.auth-points li:nth-child(2)::before { background: var(--ok); }
.auth-points li:nth-child(3)::before { background: var(--slate-400); }
@media (max-width: 48rem) { .auth { grid-template-columns: 1fr; margin: 1rem auto; } .auth-brand { border-right: 0; border-bottom: 1px solid var(--slate-200); padding: 2rem 1.5rem; } .auth-form { padding: 2rem 1.5rem; } .auth-points { display: none; } .auth-tag { margin-bottom: 0; } }
/* Long assessment names must not push a filter bar past a phone screen. */
.row > select, .row select { max-width: 100%; text-overflow: ellipsis; }
.page-head > form { min-width: 0; max-width: 100%; }
.otp-input { font-size: 1.5rem; letter-spacing: .3em; text-align: center; }

/* ---------- dashboard charts: funnel and score spread for whatever is in view */
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 1rem; }
.chart { padding: 1.25rem; }
.chart h2 { font-size: 1rem; margin-bottom: 1rem; }
.hfunnel { list-style: none; margin: 0; padding: 0; display: grid; gap: .875rem; }
.hfunnel li { display: grid; grid-template-columns: 4.5rem 1fr 2.5rem; column-gap: .75rem; align-items: center; }
.hf-k { font-size: .875rem; font-weight: 500; }
.hf-bar { height: 1.25rem; border-radius: var(--radius-md); background: var(--slate-100); overflow: hidden; }
.hf-bar > span { display: block; height: 100%; min-width: 2px; background: var(--slate-400); border-radius: var(--radius-md); }
.hf-bar.is-ok > span { background: var(--ok); }
.hf-n { font-family: var(--mono); font-weight: 600; text-align: right; }
.hf-p { grid-column: 2 / -1; min-height: 1.25rem; }
.hist { display: grid; grid-template-columns: repeat(10, 1fr); gap: .25rem; height: 9rem; align-items: end; border-bottom: 1px solid var(--slate-300); }
.hist-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; position: relative; }
.hist-n { font-size: .75rem; color: var(--slate-600); line-height: 1.4; }
.hist-stack { display: flex; flex-direction: column; width: 100%; border-radius: 3px 3px 0 0; overflow: hidden; gap: 2px; max-height: calc(100% - 1.1rem); }
.hist-no { background: var(--slate-400); }
.hist-ok { background: var(--ok); }
.hist-x { position: absolute; bottom: -1.375rem; left: 0; font-size: .6875rem; color: var(--slate-500); }
.hist-key { margin: 1.75rem 0 0; display: flex; align-items: center; gap: .375rem; }
.hist-key span { display: inline-block; width: .75rem; height: .75rem; border-radius: 2px; }
.hist-key .key-ok { background: var(--ok); }
.hist-key .key-no { background: var(--slate-400); margin-left: .75rem; }
.verdict-more { margin-top: .25rem; }
.verdict-more summary { font-weight: 500; color: var(--slate-600); }

/* ---------- report: skills profile and the branded print header */
.rh-top .rh-who { flex: 1 1 15rem; }
.rh-radar { width: 21rem; max-width: 100%; height: auto; flex: 0 1 21rem; margin: -.75rem 0; }
.rh-radar .rr-ring { fill: none; stroke: var(--slate-200); stroke-width: 1; }
.rh-radar .rr-pass { fill: none; stroke: var(--slate-500); stroke-width: 1.5; stroke-dasharray: 4 3; }
.rh-radar .rr-score { fill: var(--accent); fill-opacity: .18; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.rh-radar text { font-size: 13px; fill: var(--slate-600); font-family: var(--font); }
@media print {
  .print-brand { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-bottom: .75rem; margin-bottom: 1rem; border-bottom: 2px solid var(--slate-900); }
  .print-brand img { max-height: 40px; max-width: 160px; }
  .print-brand strong { font-family: var(--font-serif); font-size: 1.25rem; }
  .print-foot { margin-top: 1.5rem; padding-top: .75rem; border-top: 1px solid var(--slate-200); }
  .rh-radar { break-inside: avoid; }
  .charts, .co-tabs, .builder-bar { display: none !important; }
}

/* ---------- assessment builder: folded tests and the running total */
.cfg-section.is-collapsed[data-enabled=true] .cfg-body { display: none; }
.cfg-section[data-enabled=false] .cfg-edit, .cfg-section[data-enabled=false] .cfg-summary { display: none; }
.cfg-section .cfg-edit { margin-left: auto; }
.cfg-section .row-between > .muted { margin-left: auto; }
.cfg-section .row-between > .cfg-edit { margin-left: 0; }
.cfg-summary { margin: .375rem 0 0 1.75rem; }
.cfg-section:not(.is-collapsed) .cfg-summary { display: none; }
.builder-bar { position: sticky; bottom: 0; z-index: 5; margin-top: 1.5rem; padding: .875rem 1.25rem; background: var(--surface); border: 1px solid var(--slate-200); border-radius: var(--radius-xl) var(--radius-xl) 0 0; box-shadow: 0 -6px 16px -8px rgb(16 23 42 / .18); }
.builder-warn { margin: .125rem 0 0; color: var(--warn); max-width: 34rem; }

/* ---------- company page tabs */
.co-tabs { margin-bottom: 1.5rem; }
button.chip { font: inherit; font-weight: 500; font-size: .875rem; cursor: pointer; }

/* ---------- candidate: progress with many tests, and the finish screen */
.progress-wrap { margin-bottom: 1.5rem; }
.progress-wrap .progress { margin-bottom: 0; gap: .25rem; }
.progress-caption { margin: 0 0 .5rem; color: var(--slate-700); }
.progress-many .name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.done-next-h { font-size: 1rem; margin: .5rem 0 0; }
.done-next { margin: 0; padding-left: 1.25rem; display: grid; gap: .375rem; }

/* ============================================================================
   Cobalt materials (Hallmark redesign) — layered on top of the token remap.
   Heads in the grotesk display face, links with a cobalt underline, keycap
   controls with a real bottom edge, and top-level panels cut on two corners.
   ============================================================================ */
h1, h2, h3 { font-family: var(--font-display); letter-spacing: var(--tracking-display); }
h1, h2 { font-weight: 600; }
h3 { font-weight: 500; }
a { text-decoration-color: var(--slate-300); text-underline-offset: .18em; }
a:hover { text-decoration-color: var(--accent); }

/* Vantage controls: flat pills; the primary is a bright lime key with ink text. */
.btn { border-radius: 999px; box-shadow: none; transition: background-color .15s, border-color .15s, color .15s, transform .08s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent-bright); color: var(--accent-on); border-color: transparent; }
.btn-primary:hover { background: oklch(79% 0.2 128); color: var(--accent-on); }

/* Table heads in the display face, sentence case (Vantage uses no tracked capitals). */
th { font-family: var(--font-display); font-weight: 600; }

/* Vantage corner-tick frames: top-level panels stay square (radius 0 via tokens),
   with hairline ticks marking the corners. Applied to the main card so dense
   tables and chips stay calm. */
.card { position: relative; }
.card::before, .card::after { content: ""; position: absolute; width: var(--tick); height: var(--tick); border: 2px solid var(--slate-400); pointer-events: none; }
.card::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.card::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* Locked (unlicensed) builder options — AI add-on shown but grayed with a "contact to purchase" hint. */
.check.is-locked { opacity: .5; }
.check.is-locked input { cursor: not-allowed; }
.check.is-locked strong { font-weight: 600; }

/* Inline link-style button (e.g. "Use suggested pass" on calibration hints). */
.btn-link { background: none; border: 0; padding: 0; margin: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.btn-link:hover { opacity: .8; }
