/* =============================================================================
 * Interview-Prep — Practice Test Hub — design system
 * "Editorial light": warm paper canvas, near-black ink, one cobalt accent,
 * serif display + mono eyebrows + clean sans body. Hairlines over shadows.
 * Tokens are shared with (and deliberately match) the Pymetrics trainer so the
 * two apps can merge under one hub later. Test modules reference these tokens +
 * shared classes, so the whole app re-themes from this one file.
 * ========================================================================== */

/* Clerical monospace — JetBrains Mono (SIL OFL, see assets/fonts/OFL.txt),
 * self-hosted so the l/I/1 and O/0 confusables in the Error Checking test stay
 * legible on any OS. Exposed ONLY via --font-mono-clerical below; the global
 * --font-mono is deliberately left untouched. */
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/JetBrainsMono-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/JetBrainsMono-Medium.woff2") format("woff2");
}

:root {
  color-scheme: light;    /* keep native controls (buttons, inputs, scrollbars) in step with the theme */
  /* canvas + surfaces */
  --bg: #f7f5f1;          /* warm paper */
  --bg-2: #efece5;        /* inset paper */
  --panel: #ffffff;       /* cards / surfaces */
  --panel-2: #f4f1ec;     /* chips / insets on white */

  /* ink */
  --ink: #18181b;         /* near-black, faint warm */
  --ink-soft: #565660;
  --ink-faint: #8d8d97;

  /* one accent: cobalt */
  --accent: #2740ea;
  --accent-2: #1c2fae;
  --accent-wash: #eef0ff;

  /* tile accent groups — colour-codes each suite-card's left rule by theme group */
  --grp-aptitude: var(--accent);
  --grp-behavioural: #7c5cff;
  --grp-personality: #0e9488;
  --grp-strengths: #c67c1e;
  --grp-situational: #d1477a;
  --grp-consulting: #5b54d6;
  --grp-quant: #12885a;

  /* semantic */
  --good: #0c8f5f;
  --good-wash: #e6f5ee;
  --bad: #d23b3b;
  --bad-wash: #fbeaea;
  --warn: #a96a12;
  --warn-wash: #fbf0db;

  /* structure */
  --line: #e7e3da;
  --line-strong: #d8d3c8;
  --radius: 7px;
  --radius-lg: 10px;
  --shadow: 0 1px 2px rgba(24,24,30,.04), 0 10px 30px rgba(24,24,30,.06);
  --shadow-hover: 0 2px 6px rgba(24,24,30,.06), 0 18px 44px rgba(24,24,30,.10);

  /* type */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  /* clerical override: JetBrains Mono for the Error Checking test's confusable-
     prone fields (l/I/1, O/0); falls back to --font-mono if the webfont fails. */
  --font-mono-clerical: "JetBrains Mono", var(--font-mono);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font); background: var(--bg); color: var(--ink);
  min-height: 100vh; line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: var(--accent); color: #fff; }
kbd {
  font-family: var(--font-mono); font-size: .82em; background: var(--panel-2);
  border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 5px;
  padding: 1px 6px; color: var(--ink-soft);
}

/* ---- Header — sticky professional banner, populated by app.js renderHeader */
.site-header {
  position: sticky; top: 0; z-index: 40; background: var(--panel);
  border-bottom: 1px solid var(--line-strong);
}
body.in-runner .site-header { display: none; }  /* exam focus: hide the banner while running */

.header-bar {
  max-width: 1180px; margin: 0 auto; padding: 14px 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.header-brand {
  display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: inherit;
  cursor: pointer; border: none; background: none; font: inherit; padding: 0;
}
.header-mark {
  font-family: var(--font-display); font-weight: 700; font-size: 1.32rem;
  letter-spacing: -.01em; color: var(--ink);
}
.header-tagline {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .04em;
  color: var(--ink-faint); white-space: nowrap;
}

/* ---- Header action group (banner right side) --------------------------- */
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-btn {
  font: inherit; font-size: .86rem; font-weight: 600; white-space: nowrap;
  color: var(--ink); background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.header-btn:hover { border-color: var(--ink); }
.header-btn-primary { color: #fff; background: var(--accent); border-color: var(--accent); }
.header-btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.header-icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  font: inherit; font-size: 1.05rem; color: var(--ink-soft); background: var(--panel-2);
  border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.header-icon-btn:hover { border-color: var(--ink); color: var(--ink); }

/* ---- Header account area + dropdown ------------------------------------- */
.header-account { position: relative; }
.header-account-btn {
  display: flex; align-items: center; gap: 8px; font: inherit; font-size: .88rem; font-weight: 600;
  color: var(--ink); background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px 6px 8px; cursor: pointer; transition: border-color .15s ease, background .15s ease;
}
.header-account-btn:hover { border-color: var(--ink); }
.header-avatar {
  display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px;
  border-radius: 50%; background: var(--accent); color: #fff; font-size: .74rem; font-weight: 700;
}
.header-email {
  max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.header-caret { color: var(--ink-faint); font-size: .7rem; transition: transform .15s ease; }
.header-account.open .header-caret { transform: rotate(180deg); }

.header-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 190px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-hover); padding: 6px; display: none; flex-direction: column; gap: 2px;
  z-index: 50;
}
.header-account.open .header-menu { display: flex; }
.header-menu-item {
  text-align: left; font: inherit; font-size: .88rem; color: var(--ink); background: none; border: none;
  border-radius: 5px; padding: 9px 12px; cursor: pointer; transition: background .12s ease;
}
.header-menu-item:hover { background: var(--panel-2); }

main#app { max-width: 1180px; margin: 0 auto; padding: 30px 44px 80px; }
body.in-runner main#app { max-width: none; padding: 0; }

/* =============================================================================
 * AUTH GATE — professional, centered login card (auth/gate.js)
 * ========================================================================== */
.auth-shell {
  min-height: calc(100vh - 200px); display: flex; align-items: center; justify-content: center;
  padding: 40px 16px;
}
.auth-card {
  width: 100%; max-width: 400px; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 36px 32px;
}
.auth-brand { text-align: center; margin-bottom: 28px; }
.auth-mark {
  font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; letter-spacing: -.01em;
  color: var(--ink);
}
.auth-tagline {
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .04em; color: var(--ink-faint);
  margin-top: 6px;
}

.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-label {
  font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--ink-faint); font-weight: 600;
}
.auth-input {
  font: inherit; font-size: .96rem; color: var(--ink); background: var(--panel);
  border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 11px 13px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.auth-input:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash);
}
.auth-submit { width: 100%; text-align: center; margin-top: 4px; }

.auth-msg { font-size: .84rem; line-height: 1.4; min-height: 0; color: var(--ink-soft); }
.auth-msg:empty { display: none; }
.auth-msg.error { color: var(--bad); }
.auth-msg.success { color: var(--good); }

.auth-links { display: flex; justify-content: center; margin-top: 14px; }
.auth-forgot, .auth-toggle {
  font: inherit; font-size: .84rem; color: var(--accent); background: none; border: none;
  cursor: pointer; padding: 2px; text-decoration: underline; text-underline-offset: 2px;
}
.auth-forgot:hover, .auth-toggle:hover { color: var(--accent-2); }

.auth-divider {
  display: flex; align-items: center; gap: 12px; margin: 20px 0;
  font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--ink-faint);
}
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.auth-google {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 600; font-size: .92rem; color: var(--ink); background: var(--panel);
  border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 10px 16px; cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.auth-google:hover { border-color: var(--ink); background: var(--panel-2); }
.auth-google:disabled, .auth-submit:disabled { opacity: .5; cursor: default; }

.auth-switch { display: flex; justify-content: center; margin-top: 22px; }

@media (max-width: 480px) {
  .auth-card { padding: 28px 22px; border-radius: var(--radius); }
  .auth-shell { padding: 24px 12px; }
}

/* ---- Hub ---------------------------------------------------------------- */
.hub-intro { margin: 4px 0 26px; }
.hub-lead { color: var(--ink-soft); max-width: 740px; line-height: 1.6; font-size: 1.04rem; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }

.hub-card {
  position: relative; text-align: left; cursor: pointer; color: inherit; font: inherit;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px 18px; display: flex; flex-direction: column; gap: 10px;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.hub-card:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.hub-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.card-eyebrow { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-faint); display: flex; align-items: center; gap: 7px; }
.card-num { color: var(--accent); font-weight: 700; }
.card-eyebrow .sep { color: var(--line-strong); }

.card-title { margin: 2px 0 0; font-family: var(--font-display); font-weight: 600;
  font-size: 1.36rem; line-height: 1.12; letter-spacing: -.005em; }
.card-tagline { margin: 0; color: var(--ink-soft); font-size: .92rem; line-height: 1.5; flex: 1; }

.card-facts { display: flex; gap: 18px; margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); }
.card-fact { display: flex; flex-direction: column; gap: 2px; }
.cf-val { font-family: var(--font-mono); font-weight: 700; font-size: 1.02rem; }
.cf-lbl { font-family: var(--font-mono); font-size: .6rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-faint); }

.card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 8px; }
.card-play { font-family: var(--font-mono); font-size: .8rem; font-weight: 600; letter-spacing: .03em;
  color: var(--ink); white-space: nowrap; transition: color .15s ease, transform .15s ease; }
.hub-card:hover .card-play { color: var(--accent); transform: translateX(3px); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-soft); background: var(--panel-2); border: 1px solid var(--line); padding: 3px 8px; border-radius: 4px; }

/* ---- Test view (brief / results) --------------------------------------- */
.test-view { max-width: 880px; margin: 0 auto; }
.results-view { max-width: 920px; }
.test-header { display: flex; align-items: center; gap: 20px; margin: 8px 0 26px;
  padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.test-name { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.7rem; letter-spacing: -.01em; }
.test-publisher { font-family: var(--font-mono); color: var(--ink-faint); font-size: .72rem;
  text-transform: uppercase; letter-spacing: .14em; margin-top: 3px; }
.back { white-space: nowrap; }

.stage { display: flex; flex-direction: column; align-items: center; }

.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 30px; max-width: 760px; width: 100%; box-shadow: var(--shadow);
}
.panel h3 { margin: 0 0 16px; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }

/* brief */
.fact-grid { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 22px; }
.fact { flex: 1 1 130px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; }
.fact-val { font-family: var(--font-mono); font-weight: 700; font-size: 1.05rem; }
.fact-lbl { font-family: var(--font-mono); font-size: .62rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--ink-faint); margin-top: 3px; }
.brief-blurb { color: var(--ink-soft); line-height: 1.6; margin: 0 0 22px; }
.bullets { margin: 0 0 22px; padding-left: 0; list-style: none; }
.bullets li { position: relative; margin: 11px 0; padding-left: 26px; color: var(--ink-soft); line-height: 1.55; }
.bullets li::before { content: ''; position: absolute; left: 4px; top: 9px; width: 6px; height: 6px;
  background: var(--accent); border-radius: 50%; }

/* ---- Learning layer (optional brief/guide sections) --------------------- */
.brief-sec { margin: 0 0 22px; }
.brief-sec h3 { margin: 0 0 12px; }
.brief-copy { color: var(--ink-soft); line-height: 1.6; margin: 0 0 8px; }
.tip-method { color: var(--ink); line-height: 1.55; margin: 0 0 12px; }
.bullets.traps li::before { background: var(--danger, #c2410c); border-radius: 1px; }
.bullets.traits li { padding-left: 26px; }
.bullets.traits li strong { color: var(--ink); }
.faq-item { border-top: 1px solid var(--line, rgba(0,0,0,.08)); padding: 10px 0; }
.faq-item summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.faq-item p { color: var(--ink-soft); line-height: 1.6; margin: 8px 0 0; }

/* ---- Game trait map (suite-level overview) ------------------------------ */
.games-overview { margin: 0 0 22px; border: 1px solid var(--line, rgba(0,0,0,.08)); border-radius: var(--radius); padding: 12px 16px; }
.games-overview > summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.gm-scroll { overflow-x: auto; margin-top: 12px; }
.gm-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.gm-table th, .gm-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line, rgba(0,0,0,.06)); vertical-align: top; }
.gm-table th { color: var(--ink-faint); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.gm-table .gm-name { font-weight: 600; color: var(--ink); white-space: nowrap; }
.gm-table .gm-meas { color: var(--ink-soft); line-height: 1.5; }
.rb-timer.untimed { color: var(--ink-faint); font-variant-numeric: tabular-nums; }

/* ---- Buttons ------------------------------------------------------------ */
.btn-primary, .btn-ghost {
  font: inherit; font-weight: 600; font-size: .96rem; border-radius: var(--radius); cursor: pointer;
  padding: 11px 22px; transition: transform .08s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--ink); color: var(--bg); border: 1px solid var(--ink); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { opacity: .4; cursor: default; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost.mini { padding: 6px 12px; font-size: .82rem; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* =============================================================================
 * RUNNER — exam chrome (top bar + stage + navigator)
 * ========================================================================== */
.runner { display: flex; flex-direction: column; min-height: 100vh; }
.runner-bar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 24px; background: var(--panel); border-bottom: 1px solid var(--line-strong);
  box-shadow: 0 1px 0 rgba(24,24,30,.03);
}
.rb-left { display: flex; align-items: center; gap: 16px; min-width: 0; }
.rb-exit { font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; color: var(--ink-soft);
  background: transparent; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 7px 12px; }
.rb-exit:hover { border-color: var(--ink); color: var(--ink); }
.rb-title { display: flex; flex-direction: column; min-width: 0; }
.rb-name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.rb-pub { font-family: var(--font-mono); font-size: .62rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--ink-faint); }

.rb-timer {
  font-family: var(--font-mono); font-weight: 700; font-size: 1.5rem; letter-spacing: .02em;
  padding: 4px 16px; border-radius: var(--radius); background: var(--panel-2); border: 1px solid var(--line);
  color: var(--ink); font-variant-numeric: tabular-nums; min-width: 96px; text-align: center;
}
.rb-timer.warn { color: var(--warn); background: var(--warn-wash); border-color: #ecd8ab; }
.rb-timer.danger { color: var(--bad); background: var(--bad-wash); border-color: #f1c4c4; animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }

.rb-right { display: flex; align-items: center; gap: 8px; }
.rb-btn { font: inherit; font-weight: 600; font-size: .88rem; cursor: pointer; padding: 8px 14px;
  border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--panel); color: var(--ink); white-space: nowrap; }
.rb-btn:hover { border-color: var(--ink); }
.rb-btn.on { background: var(--accent-wash); border-color: var(--accent); color: var(--accent-2); }
.rb-flag.on { background: var(--warn-wash); border-color: #ecd8ab; color: var(--warn); }
.rb-finish { background: var(--ink); color: #fff; border-color: var(--ink); }
.rb-finish:hover { background: var(--accent); border-color: var(--accent); }

/* Slim linear progress row, navigator tests only — sits under the exam bar. */
.runner-progress { display: flex; flex-direction: column; padding: 8px 24px; border-bottom: 1px solid var(--line); }
.rp-label { font-family: var(--font-mono); font-size: .72rem; color: var(--ink-faint);
  font-variant-numeric: tabular-nums; margin-bottom: 5px; }
.rp-track { height: 4px; background: var(--line); border-radius: 999px; overflow: hidden; width: 100%; }
.rp-fill { height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width .3s ease; }

.runner-body { display: grid; grid-template-columns: 1fr 248px; gap: 24px; align-items: start;
  max-width: 1180px; width: 100%; margin: 0 auto; padding: 26px 24px 64px; }
.runner-body.no-nav { grid-template-columns: 1fr; }
.runner-stage { align-items: stretch; min-height: 60vh; }

/* navigator */
.nav-panel { position: sticky; top: 84px; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow); }
.nav-head { font-family: var(--font-mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .14em;
  color: var(--ink-faint); margin-bottom: 12px; }
.nav-grid { display: flex; flex-wrap: wrap; gap: 7px; }
.nav-gap { flex-basis: 100%; height: 0; margin: 1px 0; border-top: 1px dashed var(--line); }
.nav-cell { width: 34px; height: 34px; border-radius: 6px; border: 1px solid var(--line-strong);
  background: var(--panel); color: var(--ink-soft); font-family: var(--font-mono); font-weight: 600; font-size: .85rem;
  cursor: pointer; transition: all .12s ease; }
.nav-cell:hover { border-color: var(--ink); }
.nav-cell.is-answered { background: var(--accent); border-color: var(--accent); color: #fff; }
.nav-cell.is-flagged { box-shadow: 0 0 0 2px var(--warn) inset; border-color: var(--warn); }
.nav-cell.is-current { outline: 2px solid var(--ink); outline-offset: 1px; }

.nav-progress { font-family: var(--font-mono); font-size: .76rem; color: var(--ink-soft); margin: 14px 0 10px; }
.nav-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; margin-bottom: 14px; }
.leg { display: flex; align-items: center; gap: 7px; font-size: .74rem; color: var(--ink-soft); }
.leg-dot { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line-strong); background: var(--panel); }
.leg-dot.answered { background: var(--accent); border-color: var(--accent); }
.leg-dot.current { outline: 2px solid var(--ink); outline-offset: 1px; }
.leg-dot.flagged { box-shadow: 0 0 0 2px var(--warn) inset; border-color: var(--warn); }
.nav-steps { display: flex; gap: 8px; }
.nav-step { flex: 1; padding: 9px 0; font-size: .85rem; }

/* ---- Question (rendered by the test into .stage) ----------------------- */
.q-wrap { width: 100%; display: flex; flex-direction: column; gap: 18px; }
.q-meta { display: flex; align-items: center; gap: 10px; }
.q-counter { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-faint); }
.q-type { font-family: var(--font-mono); font-size: .64rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--accent-2); background: var(--accent-wash); border: 1px solid #dfe3ff; padding: 2px 8px; border-radius: 4px; }
.stimulus { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 20px 22px; box-shadow: var(--shadow); }
.stimulus-title { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; margin: 0 0 14px; }
.q-prompt { font-family: var(--font-display); font-size: 1.28rem; font-weight: 600; line-height: 1.35; margin: 2px 0; }

/* data tables */
.data-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .96rem; }
.data-table caption { text-align: left; font-family: var(--font-mono); font-size: .66rem; text-transform: uppercase;
  letter-spacing: .1em; color: var(--ink-faint); margin-bottom: 8px; }
.data-table th, .data-table td { padding: 9px 14px; border-bottom: 1px solid var(--line); text-align: right; }
.data-table thead th { font-family: var(--font-mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .04em;
  color: var(--ink-soft); border-bottom: 1.5px solid var(--line-strong); }
.data-table th:first-child, .data-table td:first-child { text-align: left; font-weight: 600; }
.data-table tbody tr:hover { background: var(--panel-2); }

/* charts */
.chart { display: block; width: 100%; height: auto; max-width: 560px; margin: 0 auto; }
.chart text { font-family: var(--font); fill: var(--ink-soft); }
.chart .axis { stroke: var(--line-strong); stroke-width: 1; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .bar { fill: var(--accent); }
.chart .bar.alt { fill: #7d8cf2; }
.chart .barlabel { fill: var(--ink); font-weight: 600; font-size: 11px; }
.chart .axislabel { fill: var(--ink-faint); font-size: 11px; }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2.5; }
.chart .dot { fill: var(--accent); }
.chart .legend text { fill: var(--ink-soft); font-size: 11px; }

/* option list */
.option-list { display: flex; flex-direction: column; gap: 10px; }
.option { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; cursor: pointer;
  font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 14px 16px; transition: border-color .12s ease, background .12s ease, box-shadow .12s ease; }
.option:hover { border-color: var(--ink); }
.option.selected { border-color: var(--accent); background: var(--accent-wash); box-shadow: 0 0 0 1px var(--accent) inset; }
.option-key { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px;
  flex: none; border-radius: 6px; border: 1px solid var(--line-strong); font-family: var(--font-mono); font-weight: 700;
  font-size: .85rem; color: var(--ink-soft); }
.option.selected .option-key { background: var(--accent); border-color: var(--accent); color: #fff; }
.option-text { font-family: var(--font-mono); font-size: 1.02rem; font-variant-numeric: tabular-nums; }

.q-nav-inline { display: flex; justify-content: space-between; gap: 10px; margin-top: 4px; }

/* =============================================================================
 * RESULTS
 * ========================================================================== */
.res-panel { max-width: none; margin: 0 auto 18px; }
.res-headline { text-align: center; padding: 8px 0; }
.big-score { font-family: var(--font-display); font-size: 3.2rem; font-weight: 600; line-height: 1;
  color: var(--accent); letter-spacing: -.02em; }
.big-score.band-good { color: var(--good); }
.big-score.band-mid { color: var(--warn); }
.big-score.band-low { color: var(--bad); }
.score-line { font-size: 1.1rem; color: var(--ink); margin-top: 8px; font-weight: 600; }
.score-sub { font-family: var(--font-mono); color: var(--ink-soft); margin-top: 4px; font-size: .9rem; }
.score-delta { display: inline-block; margin-top: 10px; padding: 4px 12px; border-radius: 999px;
  font-family: var(--font-mono); font-size: .78rem; font-weight: 600; letter-spacing: .01em; }
.score-delta.up { color: var(--good); background: var(--good-wash); }
.score-delta.down { color: var(--bad); background: var(--bad-wash); }
.score-delta.same, .score-delta.first { color: var(--ink-soft); background: var(--panel-2); }

/* Shared by pymetrics game HUDs (centred, fixed) and results pacing (stretched). */
.hud { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin: 2px 0 22px; }
.hud .stat { text-align: center; min-width: 96px; padding: 12px 16px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.hud .stat .num { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 600; line-height: 1; letter-spacing: -.01em; }
.hud .stat .lbl { font-family: var(--font-mono); font-size: .64rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--ink-faint); margin-top: 6px; }
.hud.pacing { justify-content: flex-start; margin: 0; }
.hud.pacing .stat { flex: 1 1 110px; background: var(--panel-2); padding: 14px 16px; }
.hud.pacing .stat .num { font-size: 1.4rem; font-weight: 700; }

.breakdown { display: flex; flex-direction: column; gap: 12px; }
.bd-row { display: grid; grid-template-columns: 130px 1fr 52px; align-items: center; gap: 14px; }
.bd-label { font-size: .92rem; text-transform: capitalize; }
.bd-track { height: 12px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.bd-fill { height: 100%; background: var(--accent); border-radius: 999px; transition: width .4s ease; }
.bd-val { font-family: var(--font-mono); font-weight: 600; font-size: .9rem; text-align: right; }

.bands { display: flex; gap: 14px; flex-wrap: wrap; }
.band { flex: 1 1 200px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.band-val { font-family: var(--font-mono); font-weight: 700; font-size: 1.4rem; color: var(--accent-2); }
.band-lbl { font-weight: 600; margin-top: 4px; }
.band-note { font-size: .82rem; color: var(--warn); margin-top: 8px; line-height: 1.45;
  background: var(--warn-wash); border-left: 2px solid #ecd8ab; padding: 8px 10px; border-radius: 0 5px 5px 0; }

.result-rows { display: flex; flex-direction: column; }
.result-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.result-row:first-child { border-top: 1px solid var(--line); }
.result-label { color: var(--ink-soft); }
.result-value { font-weight: 600; font-family: var(--font-mono); font-size: .95rem; }
.result-detail { color: var(--ink-soft); line-height: 1.6; font-size: .95rem; margin: 0; }
.takeaway { max-width: 920px; margin: 0 auto 18px; padding: 16px 18px; background: var(--accent-wash);
  border: 1px solid #dfe3ff; border-radius: var(--radius); color: #2a2f55; line-height: 1.55; font-size: .96rem; }

.pill { display: inline-block; padding: 3px 10px; border-radius: 5px; font-weight: 600; font-size: .76rem;
  font-family: var(--font-mono); letter-spacing: .02em; white-space: nowrap; }
.pill.good { background: var(--good-wash); color: var(--good); }
.pill.bad { background: var(--bad-wash); color: var(--bad); }
.pill.warn { background: var(--warn-wash); color: var(--warn); }
.pill.part { background: var(--accent-wash); color: var(--accent-2); }

/* review */
/* Sticky filter/expand toolbar for the review panel. The panel (.panel) has its
   own 28px/30px padding; the toolbar breaks out of that with a matching negative
   margin + equal padding so its background/border span the full panel width
   (flush with the panel's rounded corners) while it's pinned under the 64px-tall
   app header during scroll. Mirrored in the 620px breakpoint below. */
.review-head {
  position: sticky; top: 64px; z-index: 5; background: var(--panel);
  display: flex; flex-direction: column; gap: 10px;
  margin: -28px -30px 14px; padding: 16px 30px 14px; border-bottom: 1px solid var(--line);
}
.review-head-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.review-head h3 { margin: 0; }
.review-tools { display: flex; gap: 8px; }
.review-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.review-filter .chip {
  font: inherit; font-size: .78rem; font-weight: 600; color: var(--ink-soft);
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 12px; cursor: pointer; transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.review-filter .chip:hover { border-color: var(--ink); color: var(--ink); }
.review-filter .chip.on { color: var(--bg); background: var(--ink); border-color: var(--ink); }
.review-count { font-family: var(--font-mono); font-size: .72rem; color: var(--ink-faint); }
.rv-item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; background: var(--panel); }
.rv-item.good { border-left: 3px solid var(--good); }
.rv-item.bad { border-left: 3px solid var(--bad); }
.rv-item.warn { border-left: 3px solid var(--warn); }
.rv-item.part { border-left: 3px solid var(--accent); }
.rv-summary { display: flex; align-items: center; gap: 10px; padding: 13px 16px; cursor: pointer; list-style: none; flex-wrap: wrap; }
.rv-summary::-webkit-details-marker { display: none; }
.rv-summary::marker { content: ''; }
.rv-num { font-family: var(--font-mono); font-weight: 700; color: var(--ink); }
.rv-type { font-family: var(--font-mono); font-size: .64rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink-faint); background: var(--panel-2); border: 1px solid var(--line); padding: 2px 7px; border-radius: 4px; }
.rv-flag { font-size: .72rem; color: var(--warn); font-weight: 600; }
.rv-prompt { color: var(--ink-soft); font-size: .92rem; flex: 1 1 240px; min-width: 0; }
.rv-body { padding: 4px 16px 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.rv-stim { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-top: 14px; }
.rv-stimref { font-family: var(--font-mono); font-size: .8rem; color: var(--ink-faint); margin-top: 14px; }
.rv-options { display: flex; flex-direction: column; gap: 7px; }
.rv-opt { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 6px; }
.rv-opt.correct { background: var(--good-wash); border-color: #b6e2cd; }
.rv-opt.chosen-wrong { background: var(--bad-wash); border-color: #f1c4c4; }
.rv-opt.chosen-partial { background: var(--accent-wash); border-color: #c9d0ff; }
.rv-opt-key { font-family: var(--font-mono); font-weight: 700; color: var(--ink-soft); width: 18px; }
.rv-opt-text { font-family: var(--font-mono); font-variant-numeric: tabular-nums; flex: 1; }
.rv-opt-tag { font-family: var(--font-mono); font-size: .72rem; font-weight: 600; color: var(--ink-soft); }
.rv-opt.correct .rv-opt-tag { color: var(--good); }
.rv-opt.chosen-wrong .rv-opt-tag { color: var(--bad); }
.rv-opt.chosen-partial .rv-opt-tag { color: var(--accent-2); }
.rv-solution { background: #fbfaf7; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.rv-sol-head { font-family: var(--font-mono); font-size: .64rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--accent-2); margin-bottom: 8px; }
.rv-sol-body { color: var(--ink); line-height: 1.65; font-size: .95rem; }
.rv-sol-body b { color: var(--accent-2); }
.res-actions { max-width: 920px; margin: 4px auto 0; }

/* =============================================================================
 * CALCULATOR (shell-owned floating widget)
 * ========================================================================== */
.calc { position: fixed; right: 24px; bottom: 24px; z-index: 60; width: 248px; background: var(--panel);
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow-hover); overflow: hidden; }
.calc-head { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px;
  background: var(--ink); color: #fff; font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.calc-close { background: transparent; border: none; color: #fff; font-size: 1.2rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.calc-display { font-family: var(--font-mono); font-size: 1.7rem; font-weight: 700; text-align: right;
  padding: 14px 16px; background: var(--panel-2); color: var(--ink); overflow: hidden; white-space: nowrap;
  border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; min-height: 56px; }
.calc-keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); }
.calc-key { font: inherit; font-size: 1.05rem; font-weight: 600; padding: 14px 0; background: var(--panel);
  border: none; cursor: pointer; color: var(--ink); transition: background .1s ease; }
.calc-key:hover { background: var(--panel-2); }
.calc-key:active { background: var(--accent-wash); }
.calc-key.op { color: var(--accent-2); font-weight: 700; }
.calc-key.fn { color: var(--ink-soft); font-size: .95rem; }
.calc-key.eq { background: var(--ink); color: #fff; }
.calc-key.eq:hover { background: var(--accent); }
.calc-note { font-size: .68rem; color: var(--ink-faint); line-height: 1.4; padding: 9px 12px; border-top: 1px solid var(--line); }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 920px) {
  .runner-body { grid-template-columns: 1fr; }
  .nav-panel { position: static; order: -1; }
  .nav-grid { justify-content: center; }
}
/* Tagline is a desktop / large-tablet flourish. Hide it at/below 820px so the
   brand + full action row never overflow through the landscape-phone and
   tablet-portrait range (667/736 phones, 768/810/820 iPads, split-view). Above
   820px the banner has ~60px+ of slack, so the tagline returns comfortably. */
@media (max-width: 820px) { .header-tagline { display: none; } }

@media (max-width: 620px) {
  main#app { padding-left: 18px; padding-right: 18px; }
  /* Compact banner so brand + actions fit a phone without horizontal scroll.
     Down to ~360px: shrink the icon buttons + pills, drop the label gap, and
     hide the redundant 'Log in' pill (Sign up opens the same gate) and the
     account email (avatar + caret stay). */
  .header-bar { padding: 12px 16px; gap: 8px; }
  .header-actions { gap: 7px; }
  .header-icon-btn { width: 33px; height: 33px; font-size: 1rem; }
  .header-btn { padding: 6px 12px; font-size: .8rem; }
  .header-account-btn { padding: 5px 9px 5px 6px; }
  .header-btn-login { display: none; }
  .header-email { display: none; }
  /* Module masthead: stack the back link above a full-width title instead of
     cramming the title into the leftover half-width beside the back button. */
  .test-header { flex-direction: column; align-items: stretch; gap: 12px; }
  .test-header .back { align-self: flex-start; }
  .test-name { font-size: 1.5rem; }
  .card-grid { grid-template-columns: 1fr; }
  .panel { padding: 22px 18px; }
  .runner-bar { flex-wrap: wrap; gap: 10px; padding: 10px 16px; }
  .rb-timer { font-size: 1.25rem; min-width: 80px; }
  .runner-progress { padding: 8px 16px; }
  .bd-row { grid-template-columns: 96px 1fr 46px; }
  .calc { right: 12px; bottom: 12px; }
  .review-head { margin: -22px -18px 14px; padding: 14px 18px 12px; }
}

/* =============================================================================
 * LANDING — the two-suite chooser
 * ========================================================================== */
/* ---- Landing index grid — colourful 4-up tiles, name only --------------- */
/* Flex (not grid) so the trailing partial row of 3 centres under the four above. */
.suite-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }

.suite-card {
  position: relative; flex: 1 1 calc(25% - 15px); max-width: calc(25% - 15px);
  padding: 20px 22px 18px 26px; min-height: 150px; gap: 12px; overflow: hidden;
  justify-content: flex-start; align-items: flex-start;  /* name on top, tags at the foot */
  background: var(--panel);
  border: 1px solid var(--line);
  transition: translate .24s cubic-bezier(.34, 1.4, .5, 1), scale .24s cubic-bezier(.34, 1.4, .5, 1),
              background .24s ease, border-color .24s ease, box-shadow .24s ease;
}
/* left accent rule — the one bit of colour we keep; widens on hover.
   Colour-coded per theme group via --tile-accent (set below, per [data-group]). */
.suite-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--tile-accent, var(--accent));
  transition: width .24s cubic-bezier(.34, 1.4, .5, 1);
}
.suite-card[data-group="Aptitude"]    { --tile-accent: var(--grp-aptitude); }
.suite-card[data-group="Behavioural"] { --tile-accent: var(--grp-behavioural); }
.suite-card[data-group="Personality"] { --tile-accent: var(--grp-personality); }
.suite-card[data-group="Strengths"]   { --tile-accent: var(--grp-strengths); }
.suite-card[data-group="Situational"] { --tile-accent: var(--grp-situational); }
.suite-card[data-group="Consulting"]  { --tile-accent: var(--grp-consulting); }
.suite-card[data-group="Quant"]       { --tile-accent: var(--grp-quant); }
.suite-card .card-title,
.suite-card .suite-title {
  font-size: 1.34rem; line-height: 1.18; margin: 0; letter-spacing: -.008em;
  color: var(--ink); transition: color .2s ease;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Meta block — kicker + module count, fills the gap between title and firm tags */
.card-meta { margin-top: 8px; display: flex; flex-direction: column; gap: 3px; }
.card-kicker {
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .04em; color: var(--ink-faint);
}
.card-count { font-size: .82rem; font-weight: 500; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* "Used by" firm tags — pinned to the foot of each tile */
.card-firms { margin-top: auto; width: 100%; }
.card-firms-label {
  display: block; font-family: var(--font-mono); font-size: .57rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: 6px;
}
/* wrap stays on so fitFirmTags can detect the line break; overflow clips any
   residual second line as a safety net until JS trims it. */
.firm-tags { display: flex; flex-wrap: wrap; gap: 5px; max-height: 24px; overflow: hidden; }
.firm-tag {
  font-size: .66rem; font-weight: 500; color: var(--ink-soft); white-space: nowrap;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 4px; padding: 2px 7px;
}
.firm-more { color: var(--ink-faint); }

/* Hover — lift + gentle overshoot, faint cobalt wash, wider rule. Uses
   `translate`/`scale` (not `transform`) so it composes with the reveal. */
.suite-card:hover,
.suite-card:focus-visible {
  transform: none;                 /* neutralise the base .hub-card translateY */
  translate: 0 -7px; scale: 1.03;
  background: var(--accent-wash);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
}
.suite-card:hover .card-title,
.suite-card:focus-visible .card-title { color: var(--accent); }
.suite-card:hover::before, .suite-card:focus-visible::before { width: 10px; }
.suite-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Scroll-reveal — shared by landing tiles, hub sub-cards and the hub lead.
   animationend strips these classes (see observeReveal) so the persisted
   transform never blocks the hover transforms above. */
.reveal { opacity: 0; }
.hub-card.reveal.in-view,
.suite-lead.reveal.in-view {
  animation: reveal-up .58s cubic-bezier(.22, .61, .36, 1) both;
  animation-delay: calc(var(--col, 0) * 75ms);
}
@keyframes reveal-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; }
  .hub-card.reveal.in-view, .suite-lead.reveal.in-view { animation: none; }
  .suite-card:hover, .suite-card:focus-visible { translate: none; scale: 1; }
  .brief-sticky-cta { transition: none; }
}

/* Category description on the suite hub — where the landing blurbs moved to. */
.suite-lead {
  margin: 2px 0 26px; max-width: 780px; color: var(--ink-soft);
  font-size: 1.02rem; line-height: 1.62;
}

/* ---- Landing controls: search + filter chips --------------------------- */
.landing-controls { display: flex; flex-direction: column; gap: 14px; margin: 0 0 22px; }
.search-wrap { position: relative; max-width: 560px; }
.search-icon {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%) scaleX(-1);
  color: var(--ink-faint); font-size: 1.1rem; pointer-events: none;
}
/* Search magnifier — handle on the right (mirror the glyph). Scoped so the
   shared .ib-glyph theme-toggle icon is not flipped. */
.ib-glyph-search { display: inline-block; transform: scaleX(-1); }
.landing-search {
  width: 100%; font: inherit; font-size: .96rem; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 11px 18px 11px 40px; outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.landing-search::placeholder { color: var(--ink-faint); }
.landing-search:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }

.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn {
  font: inherit; font-size: .82rem; font-weight: 600; color: var(--ink-soft);
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; cursor: pointer;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.chip-btn:hover { border-color: var(--ink); color: var(--ink); }
.chip-btn.active { color: var(--bg); background: var(--ink); border-color: var(--ink); }

.landing-empty {
  padding: 48px 8px; text-align: center; color: var(--ink-faint);
  font-size: 1rem; font-family: var(--font-display); font-style: italic;
}

/* ---- Stats strip + Continue row --------------------------------------- */
.section-label {
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: 10px;
}
.stats-strip {
  display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0 0 22px;
  padding-bottom: 18px; border-bottom: 1px solid var(--line);
}
.stat { display: inline-flex; align-items: baseline; gap: 6px; color: var(--ink-soft); font-size: .92rem; }
.stat b { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--ink); }
.stat-lbl { color: var(--ink-faint); }

.continue-block { margin: 0 0 26px; }
.continue-row {
  display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px;
  scroll-snap-type: x proximity; scroll-padding-left: 6px;
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.continue-row::-webkit-scrollbar { height: 6px; }
.continue-row::-webkit-scrollbar-track { background: transparent; }
.continue-row::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; }
.continue-card {
  flex: 0 0 214px; text-align: left; cursor: pointer; font: inherit; color: inherit;
  background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--radius); padding: 13px 15px;
  display: flex; flex-direction: column; gap: 3px; scroll-snap-align: start;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.continue-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: var(--line-strong); }
.continue-name { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.continue-meta { font-size: .74rem; color: var(--ink-faint); }
.continue-score { font-size: .78rem; font-weight: 500; color: var(--ink-soft); font-variant-numeric: tabular-nums; margin-top: 2px; }
.continue-bar { height: 3px; border-radius: 999px; background: var(--line); overflow: hidden; }
.continue-bar-fill { height: 100%; background: var(--accent); transition: width .3s ease; }
.continue-cta { margin-top: 6px; font-family: var(--font-mono); font-size: .74rem; font-weight: 600; color: var(--accent); }

/* ---- Horizontal-scroll affordance (Continue + Recommended rows) -------- */
.hscroll { position: relative; }
.hscroll::before, .hscroll::after {
  content: ''; position: absolute; top: 0; bottom: 4px; width: 48px; z-index: 1;
  pointer-events: none; opacity: 0; transition: opacity .2s ease;
}
.hscroll::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.hscroll::after { right: 0; background: linear-gradient(to left, var(--bg), transparent); }
.hscroll.can-left::before { opacity: 1; }
.hscroll.can-right::after { opacity: 1; }
.hscroll-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 34px; height: 34px; padding: 0; border-radius: 50%;
  background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow);
  color: var(--ink-soft); font-size: 1.05rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease, border-color .15s ease, color .15s ease;
}
.hscroll-arrow.prev { left: -6px; }
.hscroll-arrow.next { right: -6px; }
.hscroll.can-left .hscroll-arrow.prev { opacity: 1; pointer-events: auto; }
.hscroll.can-right .hscroll-arrow.next { opacity: 1; pointer-events: auto; }
.hscroll-arrow:hover { border-color: var(--line-strong); color: var(--ink); }
@media (hover: none) { .hscroll-arrow { display: none; } }

/* ---- Tile extras: favourite star + progress bar ----------------------- */
.suite-card .card-title { padding-right: 22px; }   /* keep the name clear of the star */
.tile-star {
  position: absolute; top: 11px; right: 12px; z-index: 2;
  width: 26px; height: 26px; padding: 0; border: none; background: none; cursor: pointer;
  color: var(--ink-faint); font-size: 1.05rem; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 6px; transition: color .15s ease, transform .15s ease;
}
.tile-star:hover { color: var(--accent); transform: scale(1.12); }
.tile-star.on { color: var(--accent); }
.tile-star:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.tile-progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--line);
}
.tile-progress-fill { height: 100%; background: var(--accent); transition: width .3s ease; }

/* ---- Footer ------------------------------------------------------------ */
.site-footer { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-direction: column; gap: 6px; }
.footer-counts { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .04em; color: var(--ink-soft); }
.footer-note { font-size: .76rem; color: var(--ink-faint); line-height: 1.5; max-width: 640px; }

@media (max-width: 640px) { .stat b { font-size: 1.2rem; } .continue-card { flex-basis: 180px; } }

/* Responsive column counts — step down gracefully from the 4-up desktop grid.
   Basis math keeps rows full while the 20px flex gap stays constant. */
@media (max-width: 1120px) { .suite-card { flex-basis: calc(33.333% - 13.34px); max-width: calc(33.333% - 13.34px); } }
@media (max-width: 800px)  { .suite-card { flex-basis: calc(50% - 10px); max-width: calc(50% - 10px); } }
@media (max-width: 520px)  { .suite-card { flex-basis: 100%; max-width: 100%; min-height: 0; } }

/* =============================================================================
 * PYMETRICS GAME PRIMITIVES — shared classes the 12 game modules render into
 * (each game also injects its own scoped CSS via PM.style). Tokens are shared,
 * so games re-theme from this file too.
 * ========================================================================== */
.game-view .stage { min-height: 58vh; justify-content: center; }

.instructions ul { margin: 0 0 22px; padding-left: 0; list-style: none; }
.instructions li { position: relative; margin: 11px 0; padding-left: 26px; color: var(--ink-soft); line-height: 1.55; }
.instructions li::before { content: ''; position: absolute; left: 4px; top: 9px; width: 6px; height: 6px;
  background: var(--accent); border-radius: 50%; }
.measures { color: var(--ink-faint); font-size: .9rem; margin: 0 0 22px; padding: 12px 14px;
  background: var(--panel-2); border-left: 2px solid var(--line-strong); border-radius: 0 5px 5px 0; }

.playfield {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg);
  width: 100%; max-width: 720px; min-height: 380px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; position: relative; padding: 28px; box-shadow: var(--shadow);
}
.prompt { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; text-align: center; }
.subtle { color: var(--ink-soft); }
.center-col { display: flex; flex-direction: column; align-items: center; gap: 16px; }

.flash-good { animation: flashGood .3s ease; }
.flash-bad { animation: flashBad .3s ease; }
@keyframes flashGood { 0% { box-shadow: 0 0 0 3px var(--good) inset; } 100% { box-shadow: var(--shadow); } }
@keyframes flashBad { 0% { box-shadow: 0 0 0 3px var(--bad) inset; } 100% { box-shadow: var(--shadow); } }

/* =============================================================================
 * COMMAND PALETTE (⌘K)
 * ========================================================================== */
.palette-overlay {
  position: fixed; inset: 0; z-index: 200; display: flex; justify-content: center;
  align-items: flex-start; padding: 12vh 16px 16px;
  background: rgba(24, 24, 30, .38); backdrop-filter: blur(3px);
  animation: paletteFade .12s ease;
}
@keyframes paletteFade { from { opacity: 0; } to { opacity: 1; } }
.palette-panel {
  width: 100%; max-width: 580px; background: var(--panel);
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover); overflow: hidden; display: flex; flex-direction: column;
  max-height: 62vh; animation: paletteRise .16s cubic-bezier(.22, .61, .36, 1);
}
@keyframes paletteRise { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.palette-search { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.palette-kbd {
  font-family: var(--font-mono); font-size: .7rem; color: var(--ink-faint);
  border: 1px solid var(--line-strong); border-radius: 5px; padding: 2px 6px; white-space: nowrap;
}
.palette-input { flex: 1; font: inherit; font-size: 1.02rem; color: var(--ink); background: none; border: none; outline: none; }
.palette-input::placeholder { color: var(--ink-faint); }
.palette-list { overflow-y: auto; padding: 6px; }
.palette-item {
  width: 100%; display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  text-align: left; font: inherit; color: var(--ink); background: none; border: none; cursor: pointer;
  padding: 10px 12px; border-radius: 7px;
}
.palette-item.sel { background: var(--accent-wash); }
.pi-label { font-weight: 600; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pi-sub { font-family: var(--font-mono); font-size: .68rem; color: var(--ink-faint); white-space: nowrap; }
.palette-empty { padding: 22px 12px; text-align: center; color: var(--ink-faint); font-style: italic; }

/* =============================================================================
 * DARK THEME — token overrides; the whole app re-themes from these.
 * ========================================================================== */
:root[data-theme="dark"] {
  color-scheme: dark;     /* so bare <button>/<input> UA text isn't left black-on-dark */
  --bg: #131319; --bg-2: #1a1a22; --panel: #1c1c25; --panel-2: #262631;
  --ink: #ececf1; --ink-soft: #b6b6c2; --ink-faint: #82828f;
  --accent: #6d84ff; --accent-2: #93a6ff; --accent-wash: #23273f;
  --grp-aptitude: var(--accent);
  --grp-behavioural: #9c85ff;
  --grp-personality: #2bbfae;
  --grp-strengths: #e0a24a;
  --grp-situational: #ea6fa0;
  --grp-consulting: #8b85f0;
  --grp-quant: #2bbf80;
  --good: #37b986; --good-wash: #16352a; --bad: #f0716f; --bad-wash: #3a1f22;
  --warn: #e0a24a; --warn-wash: #382e18;
  --line: #2d2d38; --line-strong: #3b3b48;
  --shadow: 0 1px 2px rgba(0, 0, 0, .45), 0 10px 30px rgba(0, 0, 0, .5);
  --shadow-hover: 0 2px 6px rgba(0, 0, 0, .5), 0 18px 44px rgba(0, 0, 0, .62);
}
:root[data-theme="dark"] .palette-overlay { background: rgba(0, 0, 0, .55); }
:root[data-theme="dark"] .header-btn-primary { color: #0e0e14; }   /* dark text reads better on the lighter dark-accent */

/* =============================================================================
 * TOASTS
 * ========================================================================== */
.toast-host { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 300;
  display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--ink); color: var(--bg); font-size: .88rem; font-weight: 600;
  padding: 10px 18px; border-radius: 999px; box-shadow: var(--shadow-hover);
  opacity: 0; transform: translateY(10px); transition: opacity .25s ease, transform .25s ease; }
.toast.in { opacity: 1; transform: none; }

/* ---- "View progress" link on the stats strip -------------------------- */
.stats-link { margin-left: auto; align-self: center; font: inherit; font-size: .82rem; font-weight: 600;
  color: var(--accent); background: none; border: none; cursor: pointer; padding: 4px 2px; }
.stats-link:hover { text-decoration: underline; }

/* =============================================================================
 * RECOMMENDED-FOR-YOU ROW (target-firm driven)
 * ========================================================================== */
.rec-block { margin: 0 0 26px; }
.rec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.rec-head .section-label { margin: 0; }
.rec-edit { font: inherit; font-size: .78rem; font-weight: 600; color: var(--accent); background: none; border: none; cursor: pointer; }
.rec-edit:hover { text-decoration: underline; }
.rec-card { flex: 0 0 214px; text-align: left; cursor: pointer; font: inherit; color: inherit;
  background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--accent);
  border-radius: var(--radius); padding: 14px 15px; display: flex; flex-direction: column; gap: 4px;
  scroll-snap-align: start;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.rec-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.rec-name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; line-height: 1.2; }
.rec-why { font-size: .78rem; color: var(--ink-faint); }

/* =============================================================================
 * ONBOARDING — target-firm picker
 * ========================================================================== */
/* Themed confirm/alert modal (replaces native window.confirm/alert). */
.cm-overlay {
  position: fixed; inset: 0; z-index: 1000; display: flex;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(24, 24, 30, .42); backdrop-filter: blur(3px);
  animation: paletteFade .12s ease;
}
:root[data-theme="dark"] .cm-overlay { background: rgba(0, 0, 0, .58); }
.cm-panel {
  width: 100%; max-width: 420px; background: var(--panel);
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover); padding: 22px 22px 18px;
  animation: paletteRise .16s ease;
}
.cm-title { margin: 0 0 8px; font-size: 1.15rem; color: var(--ink); }
.cm-msg { margin: 0 0 18px; color: var(--ink-soft); line-height: 1.5; }
.cm-actions { display: flex; justify-content: flex-end; gap: 10px; }
.btn-primary.cm-danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn-primary.cm-danger:hover { filter: brightness(1.06); }

.onb-overlay { position: fixed; inset: 0; z-index: 210; display: flex; align-items: flex-start; justify-content: center;
  padding: 9vh 16px 16px; background: rgba(24, 24, 30, .42); backdrop-filter: blur(3px); animation: paletteFade .12s ease; }
:root[data-theme="dark"] .onb-overlay { background: rgba(0, 0, 0, .58); }
.onb-panel { width: 100%; max-width: 620px; background: var(--panel); border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-hover); padding: 26px 26px 20px; max-height: 82vh;
  display: flex; flex-direction: column; animation: paletteRise .16s cubic-bezier(.22, .61, .36, 1); }
.onb-eyebrow { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.onb-title { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; letter-spacing: -.01em; margin: 8px 0 6px; }
.onb-sub { color: var(--ink-soft); margin: 0 0 16px; font-size: .98rem; }
.onb-search { width: 100%; font: inherit; font-size: .95rem; color: var(--ink); background: var(--panel-2);
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 10px 16px; outline: none; margin-bottom: 14px; }
.onb-search:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.onb-chips { display: flex; flex-wrap: wrap; gap: 8px; overflow-y: auto; max-height: 42vh; padding: 2px; align-content: flex-start; }
.onb-chip { font: inherit; font-size: .84rem; font-weight: 500; color: var(--ink-soft); background: var(--panel-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; cursor: pointer;
  transition: color .12s ease, background .12s ease, border-color .12s ease; }
.onb-chip:hover { border-color: var(--ink); color: var(--ink); }
.onb-chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.onb-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.onb-count { font-size: .82rem; color: var(--ink-faint); }
.onb-actions { display: flex; gap: 10px; }

/* =============================================================================
 * MY PROGRESS dashboard
 * ========================================================================== */
.prog-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 4px 0 30px; }
.prog-tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 14px; text-align: center; }
.prog-n { font-family: var(--font-display); font-weight: 700; font-size: 1.8rem; line-height: 1; letter-spacing: -.01em; }
.prog-l { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-top: 8px; }
@media (max-width: 680px) { .prog-tiles { grid-template-columns: repeat(2, 1fr); } }

.prog-block { margin: 0 0 30px; }
.prog-chart-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.prog-chart { width: 100%; height: 190px; display: block; }
.pc-area { fill: var(--accent-wash); }
.pc-line { fill: none; stroke: var(--accent); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.pc-grid { stroke: var(--line-strong); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 4 4; }
.pc-dot { fill: var(--accent); }

.pbars { display: flex; flex-direction: column; gap: 10px; }
.pbar-row { display: grid; grid-template-columns: 180px 1fr 48px; align-items: center; gap: 14px; }
.pbar-name { font-size: .9rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pbar-track { height: 10px; background: var(--panel-2); border-radius: 999px; overflow: hidden; }
.pbar-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 999px; }
.pbar-val { font-family: var(--font-mono); font-size: .82rem; font-weight: 700; text-align: right; }
@media (max-width: 560px) { .pbar-row { grid-template-columns: 110px 1fr 44px; gap: 10px; } }

.hist-list { display: flex; flex-direction: column; }
.hist-row { display: grid; grid-template-columns: 1fr auto 64px 72px; align-items: center; gap: 14px; text-align: left;
  font: inherit; color: inherit; background: none; border: none; border-bottom: 1px solid var(--line); padding: 12px 4px; cursor: pointer; }
.hist-row:hover { background: var(--panel-2); }
.hist-name { font-weight: 600; font-size: .94rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hist-cat { font-size: .78rem; color: var(--ink-faint); white-space: nowrap; }
.hist-score { font-family: var(--font-mono); font-weight: 700; font-size: .9rem; text-align: right; }
.hist-when { font-size: .76rem; color: var(--ink-faint); text-align: right; }
@media (max-width: 560px) { .hist-row { grid-template-columns: 1fr 60px; } .hist-cat, .hist-when { display: none; } }

/* =============================================================================
 * SEARCH ROW + SURPRISE ME
 * ========================================================================== */
.search-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.search-row .search-wrap { flex: 1 1 320px; max-width: 560px; }
.surprise-wrap { position: relative; flex: none; }
.surprise-btn {
  display: inline-flex; align-items: center; gap: 7px;
  font: inherit; font-size: .9rem; font-weight: 600; color: var(--ink); white-space: nowrap;
  background: var(--panel); border: 1px solid var(--line-strong); border-radius: 999px; padding: 10px 18px; cursor: pointer;
  transition: border-color .15s ease, color .15s ease, transform .15s ease;
}
.surprise-btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.surprise-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.surprise-caret { font-size: .68rem; color: var(--ink-faint); transition: transform .15s ease; }
.surprise-wrap.open .surprise-caret { transform: rotate(180deg); }
.surprise-menu {
  position: absolute; top: calc(100% + 6px); right: 0; min-width: 226px; z-index: 50;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-hover);
  padding: 6px; display: none; flex-direction: column; gap: 2px;
}
.surprise-wrap.open .surprise-menu { display: flex; }
.surprise-item {
  text-align: left; font: inherit; font-size: .9rem; color: var(--ink); background: none; border: none;
  border-radius: 6px; padding: 9px 12px; cursor: pointer; transition: background .12s ease; white-space: nowrap;
}
.surprise-item:hover { background: var(--panel-2); }
.surprise-item.is-disabled { color: var(--ink-faint); }

/* =============================================================================
 * SKELETON LOADERS (first landing paint)
 * ========================================================================== */
.skeleton { pointer-events: none; }
.skeleton::before { background: var(--line-strong) !important; }
.sk-line, .sk-chip {
  background: linear-gradient(90deg, var(--panel-2) 25%, var(--line) 50%, var(--panel-2) 75%);
  background-size: 300% 100%; animation: sk-shimmer 1.3s ease-in-out infinite; border-radius: 6px;
}
@keyframes sk-shimmer { 0% { background-position: 150% 0; } 100% { background-position: -150% 0; } }
.sk-title { height: 22px; width: 60%; margin-bottom: 12px; }
.sk-sub { height: 12px; width: 38%; }
.sk-tags { display: flex; gap: 6px; margin-top: auto; }
.sk-chip { height: 18px; width: 52px; border-radius: 4px; }

/* =============================================================================
 * BREADCRUMBS
 * ========================================================================== */
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 2px 0 14px; }
.crumb { font: inherit; font-size: .82rem; color: var(--ink-faint); background: none; border: none; padding: 0; cursor: pointer; transition: color .15s ease; }
.crumb:hover { color: var(--accent); }
.crumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.crumb-current { color: var(--ink-soft); font-weight: 600; cursor: default; }
.crumb-sep { color: var(--line-strong); font-size: .82rem; }

/* =============================================================================
 * KEYBOARD-SHORTCUTS PANEL
 * ========================================================================== */
.sc-overlay { position: fixed; inset: 0; z-index: 220; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(24, 24, 30, .42); backdrop-filter: blur(3px); animation: paletteFade .12s ease; }
:root[data-theme="dark"] .sc-overlay { background: rgba(0, 0, 0, .58); }
.sc-panel { width: 100%; max-width: 460px; background: var(--panel); border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-hover); overflow: hidden; animation: paletteRise .16s cubic-bezier(.22, .61, .36, 1); }
.sc-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.sc-title { font-family: var(--font-display); font-weight: 600; font-size: 1.24rem; margin: 0; }
.sc-close { font: inherit; font-size: 1rem; color: var(--ink-faint); background: none; border: none; cursor: pointer; padding: 4px; }
.sc-close:hover { color: var(--ink); }
.sc-list { padding: 8px 20px 18px; }
.sc-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.sc-row:last-child { border-bottom: none; }
.sc-keys { display: flex; gap: 5px; flex: none; }
.sc-kbd { font-family: var(--font-mono); font-size: .78rem; min-width: 24px; text-align: center; color: var(--ink-soft);
  background: var(--panel-2); border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; padding: 3px 8px; }
.sc-desc { color: var(--ink-soft); font-size: .92rem; text-align: right; }

/* =============================================================================
 * BRIEF STICKY CTA — sticky bottom bar mirroring the brief's primary Start
 * button, so it's reachable without scrolling a long brief. Hidden (via
 * IntersectionObserver in app.js) once the real bottom .btn-row is on screen.
 * ========================================================================== */
.brief-sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: var(--panel); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, .06);
  transition: transform .22s ease, opacity .22s ease;
}
.brief-sticky-cta.hidden { transform: translateY(110%); opacity: 0; pointer-events: none; }
.bsc-inner {
  max-width: 1180px; margin: 0 auto; padding: 12px 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.bsc-name { font-weight: 600; color: var(--ink); font-size: .98rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bsc-actions { display: flex; gap: 10px; flex: none; }
@media (max-width: 560px) {
  .bsc-inner { padding: 10px 16px; }
  .bsc-name { display: none; }
}

/* ======================================================================
 * Track chooser — the two-section front door (Online Assessments · HireVue)
 * ==================================================================== */
.tracks-stage { max-width: 1000px; margin: 0 auto; padding: clamp(30px, 7vh, 74px) 20px 44px; }
.tracks-head { text-align: center; max-width: 660px; margin: 0 auto clamp(28px, 5vh, 50px); }
.tracks-kicker {
  font-family: var(--font-mono); font-size: .72rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--accent);
}
.tracks-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.95rem, 4.6vw, 3rem); line-height: 1.06; letter-spacing: -.015em;
  margin: 13px 0 0; color: var(--ink);
}
.tracks-sub { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.62; margin: 16px auto 0; max-width: 54ch; }

.tracks { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 26px); }
@media (max-width: 760px) { .tracks { grid-template-columns: 1fr; } }

.track-card {
  --tk: var(--accent);
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; align-items: flex-start;
  min-height: 344px; padding: clamp(26px, 3vw, 38px);
  text-align: left; width: 100%; cursor: pointer; font: inherit; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s, border-color .3s;
  opacity: 0; animation: trackIn .62s cubic-bezier(.2,.7,.2,1) both;
}
.track-card::before {           /* top accent hairline */
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--tk), transparent 72%);
}
.track-card::after {            /* soft accent wash from the top-right */
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .85;
  background: radial-gradient(130% 88% at 100% 0%, color-mix(in srgb, var(--tk) 13%, transparent), transparent 62%);
  transition: opacity .3s;
}
.track-card:hover, .track-card:focus-visible {
  transform: translateY(-6px); box-shadow: var(--shadow-hover);
  border-color: color-mix(in srgb, var(--tk) 55%, var(--line)); outline: none;
}
.track-card:hover::after { opacity: 1; }
.track-card:focus-visible { box-shadow: var(--shadow-hover), 0 0 0 3px color-mix(in srgb, var(--tk) 42%, transparent); }

.track-glyph {
  position: absolute; top: -22px; right: -8px; z-index: -1; pointer-events: none;
  font-size: 200px; line-height: 1; font-family: var(--font-display);
  color: var(--tk); opacity: .07; transform: rotate(-8deg);
  transition: opacity .3s, transform .3s;
}
.track-card:hover .track-glyph { opacity: .14; transform: rotate(-4deg) scale(1.05); }

.track-kicker {
  font-family: var(--font-mono); font-size: .7rem; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase; color: var(--tk);
}
.track-name {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.55rem, 2.7vw, 2.05rem); line-height: 1.1; letter-spacing: -.015em; margin: 11px 0 0;
}
.track-blurb { color: var(--ink-soft); font-size: .99rem; line-height: 1.56; margin: 13px 0 0; max-width: 36ch; }
.track-meta {
  margin-top: auto; padding-top: 20px; font-size: .82rem; color: var(--ink-faint);
  border-top: 1px solid var(--line); width: 100%;
}
.track-meta b { color: var(--ink); font-weight: 600; }
.track-cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 15px;
  font-weight: 600; font-size: .96rem; color: var(--tk);
}
.track-arrow { transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.track-card:hover .track-arrow, .track-card:focus-visible .track-arrow { transform: translateX(5px); }

.track-oas { --tk: var(--accent); }
.track-video { --tk: var(--grp-personality); }

@keyframes trackIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .track-card { animation: none; opacity: 1; }
  .track-card:hover, .track-card:focus-visible { transform: none; }
  .track-arrow, .track-glyph, .track-card { transition: none; }
}

/* the "← All sections" bar atop a section-filtered landing */
.section-topbar { display: flex; align-items: center; gap: 14px; margin: 0 0 20px; }
.section-here {
  font-family: var(--font-mono); font-size: .72rem; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase; color: var(--ink-faint);
}

/* ======================================================================
 * Video Interview — bespoke standalone landing (hero · flow · presets)
 * ==================================================================== */
.vil-hub { --tk: var(--grp-personality); }         /* teal accent for this track */
.vil-hero { max-width: 680px; margin: 4px 0 clamp(26px, 4vh, 40px); }
.vil-kicker {
  font-family: var(--font-mono); font-size: .7rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--tk);
}
.vil-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.9rem, 4.2vw, 2.8rem); line-height: 1.05; letter-spacing: -.02em;
  margin: 12px 0 0; color: var(--ink);
}
.vil-sub { color: var(--ink-soft); font-size: 1.06rem; line-height: 1.6; margin: 16px 0 0; max-width: 56ch; }
.vil-start {
  display: inline-flex; align-items: center; gap: 9px; margin: 26px 0 0;
  padding: 13px 24px; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 1rem; color: #fff;
  background: var(--tk); box-shadow: 0 6px 18px color-mix(in srgb, var(--tk) 34%, transparent);
  transition: transform .2s cubic-bezier(.2,.7,.2,1), box-shadow .2s, filter .2s;
}
.vil-start:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 10px 26px color-mix(in srgb, var(--tk) 42%, transparent); }
.vil-start:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--tk) 42%, transparent); }
.vil-start-arrow { transition: transform .2s cubic-bezier(.2,.7,.2,1); }
.vil-start:hover .vil-start-arrow { transform: translateX(4px); }

.vil-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: 6px; margin: 0 0 clamp(22px, 3vh, 30px); }
.vil-step {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(18px, 2vw, 24px); box-shadow: var(--shadow);
}
.vil-step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; font-family: var(--font-mono);
  font-weight: 700; font-size: .95rem; color: var(--tk);
  background: color-mix(in srgb, var(--tk) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--tk) 35%, transparent);
}
.vil-step-name { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; margin: 12px 0 0; color: var(--ink); }
.vil-step-text { color: var(--ink-soft); font-size: .9rem; line-height: 1.5; margin: 7px 0 0; }
.vil-step-join { align-self: center; color: var(--tk); opacity: .5; font-size: 1.3rem; }
@media (max-width: 720px) {
  .vil-flow { grid-template-columns: 1fr; }
  .vil-step-join { transform: rotate(90deg); justify-self: center; padding: 2px 0; }
}

.vil-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 0 0 14px; }
.vil-presets-label {
  font-family: var(--font-mono); font-size: .68rem; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase; color: var(--ink-faint);
}
.vil-preset-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.vil-preset-chip {
  padding: 5px 12px; border-radius: 999px; font-size: .8rem; color: var(--ink-soft);
  background: var(--panel-2); border: 1px solid var(--line);
}
.vil-note { color: var(--ink-faint); font-size: .84rem; line-height: 1.5; max-width: 60ch; margin: 4px 0 0; }
@media (prefers-reduced-motion: reduce) {
  .vil-start:hover { transform: none; }
  .vil-start, .vil-start-arrow { transition: none; }
}

/* ---- Practice preferences: exam conditions + accessibility ------------- */
.rb-mode {
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; white-space: nowrap;
}
.nav-cell.is-locked { opacity: .4; pointer-events: none; }
/* Text-size accommodation: proportional zoom of the app content (not the header). */
body.pref-large main#app { zoom: 1.1; }
body.pref-xlarge main#app { zoom: 1.22; }
/* Reading-friendly spacing: a more legible font + wider spacing on reading areas. */
body.pref-dyslexia .runner-stage,
body.pref-dyslexia .rv-body,
body.pref-dyslexia .rv-prompt,
body.pref-dyslexia .brief-copy,
body.pref-dyslexia .brief-blurb,
body.pref-dyslexia .qod-q,
body.pref-dyslexia .test-name {
  font-family: Verdana, Tahoma, "Trebuchet MS", sans-serif;
  letter-spacing: .02em; word-spacing: .08em; line-height: 1.75;
}
/* High contrast: darker ink + stronger lines, per theme. */
body.pref-contrast { --ink: #05050a; --ink-soft: #1f1f28; --line: #b7b1a4; --line-strong: #837e70; }
:root[data-theme="dark"] body.pref-contrast { --ink: #ffffff; --ink-soft: #dcdce6; --line: #55556a; --line-strong: #6c6c86; }

/* ---- Video interview: teleprompter (opt-in coach's notes) --------------- */
.vi-teleprompter { margin: 10px 0 0; border: 1px dashed var(--line-strong); border-radius: 8px; background: var(--panel-2); }
.vi-teleprompter summary { cursor: pointer; padding: 8px 12px; font-size: .82rem; color: var(--ink-soft); font-weight: 600; list-style: none; }
.vi-teleprompter summary::-webkit-details-marker { display: none; }
.vi-teleprompter-list { margin: 0 0 10px; padding: 2px 14px 0 30px; color: var(--ink-soft); line-height: 1.65; font-size: .9rem; }
