/* Blackmont SAT practice site. Calm, Bluebook-like: white, dark text, one accent (deep navy). */
:root {
  --navy: #1F2A44;
  --navy-2: #2c3a5e;
  --navy-soft: #e9ecf3;
  --ink: #1b1b1f;
  --muted: #5b6170;
  --line: #c9cdd6;
  --line-soft: #e3e6ec;
  --bg: #ffffff;
  --bg-soft: #f5f6f9;
  --flag: #a4262c;
  --ok: #1f6b45;
  --bad: #a4262c;
  --radius: 8px;
  --font: Roboto, "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --read: 17px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--navy); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.loading { padding: 40px; text-align: center; color: var(--muted); }
.print-only { display: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #6f8fd8; outline-offset: 2px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 22px; border-radius: 999px;
  border: 1.5px solid var(--navy); background: #fff; color: var(--navy); font-weight: 500; text-decoration: none; white-space: nowrap; }
.btn.primary { background: var(--navy); color: #fff; }
.btn.primary:hover:not(:disabled) { background: var(--navy-2); }
.btn.outline:hover:not(:disabled) { background: var(--navy-soft); }
.btn:disabled { opacity: .4; cursor: default; }
.btn.big { min-height: 48px; padding: 0 34px; font-size: 17px; }
.btn.danger { border-color: var(--bad); color: var(--bad); }
.btn.primary.danger { background: var(--bad); color: #fff; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 0; background: transparent; border-radius: 6px; color: var(--ink); }
.icon-btn:hover { background: var(--bg-soft); }
.icon-btn svg { width: 16px; height: 16px; }
.linklike { border: 0; background: none; padding: 0; color: var(--navy); text-decoration: underline; font-size: 14px; }
.linklike.danger { color: var(--bad); }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 500; background: var(--bg-soft); color: var(--muted); border: 1px solid var(--line-soft); white-space: nowrap; }
.pill.prog { background: var(--navy-soft); color: var(--navy); border-color: #cbd2e3; }
.pill.done { background: var(--navy); color: #fff; border-color: var(--navy); }
.pill.soon { background: #fff; }

/* ---------- site pages (home, hub, results) ---------- */
.page { min-height: 100vh; background: var(--bg); }
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 32px; border-bottom: 1px solid var(--line-soft); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; background: var(--navy); color: #fff; font-weight: 700; font-size: 15px; letter-spacing: 0; font-family: Georgia, "Times New Roman", serif; }
.brand-name { font-size: 13px; font-weight: 700; letter-spacing: .18em; }
.site-title { font-size: 14px; color: var(--muted); }
.home, .hub, .results-wrap { max-width: 980px; margin: 0 auto; padding: 36px 32px 64px; }
.hub { max-width: 760px; }
h1 { font-size: 32px; line-height: 1.2; margin: 0 0 12px; font-weight: 500; color: var(--ink); }
h2 { font-size: 22px; font-weight: 500; margin: 0 0 12px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.hero { margin-bottom: 28px; }
.hero p { font-size: 18px; color: var(--muted); max-width: 720px; margin: 0; }
.code-card { border: 1px solid var(--line); border-radius: 12px; padding: 24px 28px; margin-bottom: 36px; background: var(--bg-soft); }
.code-card h2 { font-size: 19px; }
.code-form { display: flex; gap: 10px; max-width: 460px; }
.code-form input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; color: #1b1b1f; caret-color: #1b1b1f; font-size: 17px; letter-spacing: .04em; }
.code-form input:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px var(--navy-soft); }
.form-msg { margin: 10px 0 0; font-size: 15px; font-weight: 500; }
.form-msg.err { color: var(--bad); }
.form-msg.ok { color: var(--ok); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.card { display: block; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; text-decoration: none; color: var(--ink); background: #fff; }
.test-card:hover { border-color: var(--navy); box-shadow: 0 2px 10px rgba(31, 42, 68, .08); }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 500; }
.card p { margin: 0 0 10px; color: var(--muted); font-size: 15px; }
.card-cta { font-weight: 500; color: var(--navy); }
.muted-card { background: var(--bg-soft); }
.dev-card { border-style: dashed; }
.test-list { list-style: none; padding: 0; margin: 0; }
.test-list li { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-top: 1px solid var(--line-soft); }
.home-foot { margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 14px; }
.home-foot p { margin: 0 0 8px; }

/* hub: choose the section */
.hub p { font-size: 16px; color: var(--muted); }
.choose-form { display: grid; gap: 12px; margin-top: 22px; }
.choose-opt { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; }
.choose-opt:has(input:checked) { border-color: var(--navy); box-shadow: 0 0 0 2px var(--navy) inset; }
.choose-opt.is-done { opacity: .65; cursor: default; }
.choose-opt input { width: 20px; height: 20px; accent-color: var(--navy); }
.co-body { flex: 1; display: grid; }
.co-body b { font-weight: 500; font-size: 17px; }
.co-body span { color: var(--muted); font-size: 14px; }
.hub-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 10px; }

/* ---------- full-screen steps (intro, break) ---------- */
.screen { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; background: var(--bg-soft); }
.intro-card, .break-card { width: min(720px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 34px 40px; }
.intro-card h1 { font-size: 26px; }
.intro-facts { display: flex; gap: 14px; margin: 18px 0; }
.intro-facts div { flex: 1; border: 1px solid var(--line-soft); border-radius: 10px; padding: 10px 14px; display: grid; }
.intro-facts b { font-size: 22px; font-weight: 500; color: var(--navy); }
.intro-facts span { font-size: 13px; color: var(--muted); }
.intro-dir p { margin: 0 0 10px; }
.intro-tips { margin: 14px 0 0; padding-left: 20px; color: var(--muted); font-size: 15px; }
.intro-tips li { margin-bottom: 4px; }
.intro-actions { display: flex; justify-content: space-between; margin-top: 26px; }
.break-card { text-align: center; }
.break-timer { font-size: 64px; font-weight: 300; color: var(--navy); font-variant-numeric: tabular-nums; line-height: 1.1; }
.break-sub { margin: 4px 0 22px; color: var(--muted); }
.break-card h2 { margin-top: 10px; }
.break-card p { text-align: left; }
.break-card p.break-sub { text-align: center; }

/* ---------- the player ---------- */
.player { height: 100vh; height: 100dvh; display: flex; flex-direction: column; background: #fff; overflow: hidden; }
.player > .topbar, .player > .warn-banner, .player > .bottombar { flex: none; }
.topbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 70px; padding: 8px 28px; background: var(--bg-soft);
  border-bottom: 2px dashed #b9bfcc; }
.tb-title { font-size: 18px; font-weight: 500; line-height: 1.25; }
.tb-link { border: 0; background: none; padding: 2px 0; color: var(--ink); font-size: 14px; display: inline-flex; align-items: center; gap: 4px; }
.tb-link svg { width: 12px; height: 12px; }
.tb-center { display: grid; justify-items: center; gap: 2px; }
.timer { font-size: 21px; font-weight: 500; font-variant-numeric: tabular-nums; min-height: 28px; display: grid; place-items: center; }
.timer svg { width: 24px; height: 24px; }
.timer.low { color: var(--bad); }
.pill-btn { border: 1.5px solid #6f7685; background: #fff; border-radius: 999px; padding: 0 12px; font-size: 13px; line-height: 22px; }
.tb-right { display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
.tool { display: grid; justify-items: center; gap: 2px; min-width: 70px; border: 0; background: none; padding: 4px 6px; border-radius: 6px; font-size: 13px; color: var(--ink); }
.tool svg { width: 22px; height: 22px; }
.tool:hover, .tool.on { background: #e4e7ee; }
.more-wrap { position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .14); padding: 6px; display: grid; }
.menu button { text-align: left; border: 0; background: none; padding: 9px 12px; border-radius: 6px; }
.menu button:hover { background: var(--bg-soft); }
.menu .danger { color: var(--bad); }
.warn-banner { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 8px 16px; background: #fff4e5; border-bottom: 1px solid #f0d4a8; color: #5c3b00; font-size: 15px; }
.warn-banner span { display: inline-flex; align-items: center; gap: 8px; }
.warn-banner svg { width: 18px; height: 18px; }
.work { position: relative; display: flex; flex: 1; min-height: 0; }
.stage { flex: 1; min-width: 0; overflow: auto; position: relative; outline: none; }

/* two panes */
.panes { --left: 50%; display: grid; grid-template-columns: minmax(0, var(--left)) 14px minmax(0, 1fr); height: 100%; }
.pane { overflow: auto; min-width: 0; }
.pane-inner { padding: 30px 34px 40px; max-width: 760px; margin: 0 auto; }
.pane-left .pane-inner { font-size: var(--read); line-height: 1.6; }
.divider { position: relative; cursor: col-resize; display: grid; place-items: center; background: transparent; touch-action: none; }
.divider::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; transform: translateX(-50%); background: #d4d8e0; }
.divider .grip { position: relative; display: flex; gap: 3px; padding: 10px 4px; background: #fff; border: 1.5px solid #8a909c; border-radius: 8px; }
.divider .grip i { width: 2px; height: 16px; background: #8a909c; border-radius: 1px; }
.divider:hover::before, .divider.drag::before { background: var(--navy); }

/* one column (Math) */
.one-col { height: 100%; overflow: auto; }
.col-inner { max-width: 760px; margin: 0 auto; padding: 30px 34px 40px; }

/* question */
.qhead { display: flex; align-items: center; gap: 12px; background: var(--bg-soft); border-bottom: 2px dashed #b9bfcc; padding: 0 0 0 0; margin-bottom: 18px; height: 40px; }
.qnum { display: grid; place-items: center; min-width: 34px; height: 40px; padding: 0 8px; background: var(--ink); color: #fff; font-weight: 700; font-size: 17px; }
.mark { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 4px 6px; font-size: 15px; color: var(--ink); border-radius: 6px; }
.mark svg { width: 14px; height: 18px; color: var(--ink); }
.mark.on { font-weight: 500; }
.mark.on svg { --flag-fill: var(--flag); color: var(--flag); }
.mark:hover { background: #e4e7ee; }
.spacer { flex: 1; }
.elim-toggle { margin-right: 6px; border: 1.5px solid #6f7685; background: #fff; border-radius: 6px; padding: 1px 6px; height: 28px; }
.elim-toggle .abc { position: relative; font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.elim-toggle .abc::after { content: ""; position: absolute; left: -3px; right: -3px; top: 50%; height: 1.5px; background: currentColor; transform: rotate(-14deg); }
.elim-toggle.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.stem { font-size: var(--read); line-height: 1.6; margin-bottom: 16px; }
.stem p, .passage p { margin: 0 0 12px; }
.passage { font-size: var(--read); line-height: 1.6; }
.passage ul, .stem ul { margin: 0 0 12px; padding-left: 22px; }
.passage li { margin-bottom: 6px; }
.math-line { text-align: center; }
.blank { display: inline-block; width: 4.2em; height: 1em; border-bottom: 1.5px solid currentColor; vertical-align: baseline; margin: 0 2px; }
.tex-fallback { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9em; background: #f2f2f2; padding: 0 3px; }
.katex { font-size: 1.08em; }

.choices { display: grid; gap: 12px; }
.choice-row { display: flex; align-items: center; gap: 10px; }
.choice { flex: 1; display: flex; align-items: center; gap: 14px; min-height: 52px; text-align: left; padding: 8px 14px; border: 1.5px solid #6f7685;
  border-radius: 9px; background: #fff; font-size: var(--read); line-height: 1.45; }
.choice:hover { box-shadow: 0 0 0 1px #6f7685 inset; }
.bubble { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--ink); font-size: 14px; font-weight: 700; }
.ctext { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.choice-row.selected .choice { border-color: var(--navy); box-shadow: 0 0 0 2px var(--navy) inset; }
.choice-row.selected .bubble { background: var(--navy); border-color: var(--navy); color: #fff; }
.choice-row.crossed .choice { color: #8b909b; border-color: #b8bcc5; }
.choice-row.crossed .ctext, .choice-row.crossed .bubble { text-decoration: line-through; }
.choice-row.crossed .choice { position: relative; }
.choice-row.crossed .choice::after { content: ""; position: absolute; left: 8px; right: 8px; top: 50%; height: 1.5px; background: #3c4250; }
.xout { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid #6f7685; background: #fff; font-size: 13px; font-weight: 700; position: relative; }
.xout::after { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 1.5px; background: currentColor; }
.undo { flex: none; width: 46px; border: 0; background: none; text-decoration: underline; font-weight: 500; font-size: 14px; padding: 0; }

/* student-produced response */
.spr { margin-top: 6px; }
.spr-label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.spr-input { background: #fff; color: #1b1b1f; caret-color: #1b1b1f; width: 172px; height: 50px; padding: 0 12px; border: 1.5px solid #6f7685; border-radius: 8px; font-size: 22px; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.spr-input:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 2px var(--navy) inset; }
.spr-preview { margin-top: 14px; font-size: 16px; min-height: 40px; }
.spr-preview .pv { margin-left: 6px; }
.spr-rules { font-size: 15px; line-height: 1.5; }
.spr-rules h3 { font-size: 17px; margin: 0 0 10px; font-weight: 500; }
.spr-rules ul { padding-left: 20px; margin: 0 0 16px; }
.spr-rules li { margin-bottom: 6px; }
.spr-examples { border-collapse: collapse; font-size: 14px; }
.spr-examples th, .spr-examples td { border: 1px solid var(--line); padding: 5px 12px; text-align: center; vertical-align: top; }
.spr-examples th { background: var(--bg-soft); font-weight: 500; }

/* figures */
.fig { margin: 0 0 18px; }
.fig-title { font-weight: 700; font-size: 15px; text-align: center; margin: 0 0 8px; line-height: 1.35; }
.fig-note { font-size: 13px; color: var(--muted); font-style: italic; margin-top: 6px; text-align: center; }
.fig-img { text-align: center; }
.fig-img img { max-width: 100%; height: auto; display: inline-block; }
.table-wrap { overflow-x: auto; }
.fig-table table { border-collapse: collapse; margin: 0 auto; font-size: 15px; line-height: 1.35; }
.fig-table th, .fig-table td { border: 1px solid #8a8f99; padding: 6px 12px; text-align: left; vertical-align: middle; }
.fig-table th { background: #e9eaee; font-weight: 700; }
.fig-table th.num { text-align: center; }
.fig-table td.num { text-align: center; font-variant-numeric: tabular-nums; }
.fig-table .nc { display: inline-block; text-align: right; }

/* bottom bar, navigator */
.bottombar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 64px; padding: 8px 28px; background: var(--bg-soft); border-top: 2px dashed #b9bfcc; }
.bb-left { font-size: 15px; font-weight: 500; color: var(--muted); }
.bb-center { position: relative; }
.qnav-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; border: 0; border-radius: 8px; padding: 8px 16px; font-weight: 500; font-size: 15px; }
.qnav-btn svg { width: 14px; height: 14px; }
.bb-right { display: flex; justify-content: flex-end; gap: 10px; }
.qnav-pop { position: absolute; bottom: calc(100% + 16px); left: 50%; transform: translateX(-50%); width: min(560px, 92vw); background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 10px 34px rgba(0, 0, 0, .18); padding: 16px 20px 18px; z-index: 50; }
.qnav-pop::after { content: ""; position: absolute; left: 50%; bottom: -9px; width: 16px; height: 16px; background: #fff; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: translateX(-50%) rotate(45deg); }
.qnav-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line-soft); }
.qnav-head b { font-weight: 500; font-size: 16px; text-align: center; flex: 1; }
.legend { display: flex; justify-content: center; gap: 22px; padding: 10px 0 12px; font-size: 14px; color: var(--ink); border-bottom: 1px solid var(--line-soft); margin-bottom: 14px; }
.lg { display: inline-flex; align-items: center; gap: 6px; }
.lg svg { width: 13px; height: 16px; color: var(--navy); }
.lg-flag svg { --flag-fill: var(--flag); color: var(--flag); }
.lg-un { width: 16px; height: 16px; border: 1.5px dashed #6f7685; display: inline-block; border-radius: 2px; }
.qgrid { display: grid; grid-template-columns: repeat(10, 36px); gap: 26px 12px; justify-content: center; padding-top: 8px; }
.qgrid.big { grid-template-columns: repeat(10, 44px); gap: 26px 18px; }
.gq { position: relative; width: 36px; height: 36px; border: 1.5px dashed #6f7685; background: #fff; color: var(--navy); font-weight: 700; font-size: 15px; border-radius: 3px; padding: 0; }
.qgrid.big .gq { width: 44px; height: 44px; font-size: 17px; }
.gq.answered { background: var(--navy); border: 1.5px solid var(--navy); color: #fff; }
.gq:hover { box-shadow: 0 0 0 2px #6f8fd8; }
.gq .gflag { position: absolute; top: -9px; right: -7px; width: 13px; height: 16px; }
.gq .gflag svg { width: 13px; height: 16px; --flag-fill: var(--flag); color: var(--flag); display: block; filter: drop-shadow(0 0 1px #fff); }
.gq .here { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); width: 14px; height: 17px; color: var(--ink); }
.gq .here svg { width: 14px; height: 17px; display: block; }
.qnav-foot { display: flex; justify-content: center; margin-top: 18px; }

/* Check Your Work */
.review-page { max-width: 860px; margin: 0 auto; padding: 34px 32px 48px; text-align: center; }
.review-page h1 { font-size: 30px; }
.review-page > p { color: var(--ink); max-width: 640px; margin: 0 auto 24px; }
.review-card { border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 2px 14px rgba(0, 0, 0, .06); padding: 18px 26px 28px; text-align: left; }
.rc-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; border-bottom: 1px solid var(--line-soft); margin-bottom: 18px; }
.rc-head b { font-weight: 500; font-size: 18px; }
.rc-head .legend { border: 0; margin: 0; padding: 8px 0; }

/* calculator and reference */
.calc-panel { position: relative; width: 440px; flex: none; border-right: 1px solid var(--line); display: grid; grid-template-rows: auto 1fr; background: #fff; }
.calc-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px 6px 16px; border-bottom: 1px solid var(--line-soft); }
.calc-body { min-height: 0; }
.calc-resize { position: absolute; top: 0; right: -5px; width: 10px; height: 100%; cursor: col-resize; z-index: 5; touch-action: none; }
.ref-panel { position: fixed; top: 84px; right: 24px; width: min(620px, 92vw); max-height: calc(100vh - 170px); overflow: auto; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 10px 34px rgba(0, 0, 0, .2); z-index: 45; }
.ref-head { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 8px 10px 8px 18px; background: var(--ink); color: #fff; cursor: move; touch-action: none; }
.ref-head .icon-btn { color: #fff; }
.ref-head .icon-btn:hover { background: rgba(255, 255, 255, .15); }
.ref-body { padding: 16px 18px; }
.ref-table { border-collapse: collapse; width: 100%; font-size: 15px; }
.ref-table th, .ref-table td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: middle; }
.ref-table th { background: var(--bg-soft); font-weight: 500; white-space: nowrap; }
.ref-note { font-size: 14px; color: var(--muted); margin: 12px 0 0; }

/* modal, toast */
.modal-backdrop { position: fixed; inset: 0; background: rgba(20, 24, 34, .45); display: grid; place-items: center; z-index: 100; padding: 16px; }
.modal { width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 14px; box-shadow: 0 16px 50px rgba(0, 0, 0, .25); }
.modal.wide { width: min(720px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 16px 6px 24px; }
.modal-head h2 { margin: 0; font-size: 20px; }
.modal-body { padding: 4px 24px 8px; }
.modal-body h3 { font-size: 16px; font-weight: 500; margin: 16px 0 6px; }
.modal-body p { margin: 0 0 10px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 24px 20px; }
.kbd-table { border-collapse: collapse; width: 100%; }
.kbd-table td { padding: 6px 4px; border-bottom: 1px solid var(--line-soft); }
kbd { display: inline-block; min-width: 26px; padding: 1px 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; background: var(--bg-soft); font-family: var(--font); font-size: 13px; text-align: center; }
#toast { position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 10px; font-size: 15px; z-index: 200; box-shadow: 0 6px 20px rgba(0, 0, 0, .2); max-width: 90vw; }

/* ---------- results ---------- */
.results-wrap h1 { margin-bottom: 22px; }
.results-section { margin: 0 0 40px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 14px; }
.section-head h2 { margin: 0; }
.score-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 12px; }
.score-card { border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.score-card.total { background: var(--navy); border-color: var(--navy); color: #fff; }
.score-card.total .sc-scale, .score-card.total .sc-soon { color: #c9d0e0; }
.sc-name { font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.sc-range { font-size: 38px; font-weight: 300; line-height: 1.15; margin-top: 6px; font-variant-numeric: tabular-nums; }
.sc-scale { font-size: 13px; color: var(--muted); }
.sc-soon { font-size: 17px; margin: 10px 0 4px; color: var(--muted); }
.sc-raw { margin-top: 10px; font-size: 15px; }
.sc-raw.big { font-size: 20px; }
.sc-raw b { font-size: 1.25em; }
.sc-route { font-size: 13px; color: var(--muted); margin-top: 4px; }
.score-card.wide { display: grid; gap: 8px; }
.m1-in { font-size: 15px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.m1-in input { background: #fff; color: #1b1b1f; caret-color: #1b1b1f; width: 74px; height: 38px; border: 1.5px solid var(--line); border-radius: 8px; padding: 0 8px; font-size: 17px; }
.sc-est { font-size: 16px; min-height: 30px; }
.sc-est .err { color: var(--bad); font-size: 14px; }
.m1-in input.invalid { border-color: var(--bad); }
.sc-est b { font-size: 22px; font-weight: 500; color: var(--navy); }
.next-step { border-left: 4px solid var(--navy); background: var(--bg-soft); padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 12px 0; }
.next-step p { margin: 0 0 10px; }
.start-here { font-size: 21px; padding: 16px 20px; border: 2px solid var(--navy); border-radius: 12px; margin: 14px 0 8px; }
.start-here .sh-label { color: var(--navy); font-weight: 700; }
.start-here b { font-weight: 500; }
.start-here.none { font-size: 17px; }
.study-order { margin: 12px 0 18px; padding-left: 24px; columns: 2; column-gap: 32px; }
.study-order li { margin-bottom: 6px; break-inside: avoid; }
.study-order b { font-weight: 500; }
.so-meta { display: block; font-size: 13px; color: var(--muted); }
.map-tables { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.map-area { font-size: 16px; font-weight: 500; margin: 6px 0 8px; }
.study-more { font-size: 14px; color: var(--muted); margin: -8px 0 16px; }
.map-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.map-table th, .map-table td { border-bottom: 1px solid var(--line-soft); padding: 6px 6px; text-align: center; }
.map-table th { background: var(--bg-soft); font-weight: 500; border-bottom: 1px solid var(--line); }
.map-table th:first-child, .map-table td:first-child { text-align: left; }
.map-table tr.top td { background: var(--navy-soft); font-weight: 500; }
.map-table td.mm { line-height: 1.2; }
.mm-n { display: block; font-weight: 500; font-size: 15px; }
.mm-sub { display: block; font-size: 12px; color: var(--muted); }
.map-key { margin-top: 12px; }
.th-sub { font-size: 12px; color: var(--muted); font-weight: 400; }
.rank { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 11px; font-weight: 700; margin-right: 8px; }
.rank.empty { background: transparent; }
.sec-cell { display: flex; align-items: flex-start; }
.sec-cell .rank { flex: none; margin-top: 1px; }
.seg { display: inline-flex; border: 1.5px solid var(--navy); border-radius: 999px; overflow: hidden; }
.seg button { border: 0; background: #fff; padding: 5px 14px; font-size: 14px; color: var(--navy); }
.seg button.on { background: var(--navy); color: #fff; }
.rv-module h3 { font-size: 18px; font-weight: 500; margin: 22px 0 8px; }
.rv-list { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.rv-item { border-top: 1px solid var(--line-soft); }
.rv-item:first-child { border-top: 0; }
.only-bad .rv-item.ok:not(.marked) { display: none; }
.rv-item summary { display: grid; grid-template-columns: 34px 46px 96px 150px 130px 92px 1fr; align-items: center; gap: 8px; padding: 9px 14px; cursor: pointer; list-style: none; font-size: 14px; }
.rv-item summary::-webkit-details-marker { display: none; }
.rv-item summary:hover { background: var(--bg-soft); }
.rv-n { display: grid; place-items: center; width: 28px; height: 28px; background: var(--ink); color: #fff; font-weight: 700; border-radius: 3px; }
.rv-dots { color: var(--navy); letter-spacing: 1px; font-size: 12px; }
.rv-res { font-weight: 500; }
.rv-item.ok .rv-res { color: var(--ok); }
.rv-item.bad .rv-res { color: var(--bad); }
.rv-flag { display: inline-flex; align-items: center; gap: 4px; color: var(--flag); font-size: 13px; }
.rv-flag svg { width: 11px; height: 14px; --flag-fill: var(--flag); }
.rv-sec { color: var(--muted); font-size: 13px; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-body { padding: 4px 22px 18px; border-top: 1px dashed var(--line-soft); }
.rv-q { margin: 14px 0; }
.rv-q .passage, .rv-q .stem { font-size: 16px; }
.choices.static .choice { cursor: default; font-size: 16px; min-height: 46px; }
.choices.static .choice:hover { box-shadow: none; }
.choice-row.is-key .choice { border-color: var(--ok); box-shadow: 0 0 0 1.5px var(--ok) inset; }
.choice-row.is-key .bubble { background: var(--ok); border-color: var(--ok); color: #fff; }
.choice-row.is-wrong .choice { border-color: var(--bad); }
.choice-row.is-wrong .bubble { background: var(--bad); border-color: var(--bad); color: #fff; }
.tag { flex: none; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.tag.ok { background: #e3f1e9; color: var(--ok); }
.tag.you { background: var(--bg-soft); color: var(--ink); border: 1px solid var(--line); }
.rv-expl { background: var(--bg-soft); border-radius: 10px; padding: 14px 18px; font-size: 16px; line-height: 1.6; }
.rv-expl h4 { margin: 0 0 6px; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rv-expl p { margin: 0 0 10px; }
.review-line { font-weight: 500; color: var(--navy); margin-top: 12px !important; }
.spr-key { font-size: 16px; }
.results-actions { display: flex; gap: 12px; justify-content: flex-end; }

/* ---------- tablets and small laptops ---------- */
@media (max-width: 1100px) {
  .topbar, .bottombar { padding: 6px 14px; }
  .tb-title { font-size: 16px; }
  .tool { min-width: 58px; font-size: 12px; }
  .pane-inner, .col-inner { padding: 22px 20px 32px; }
  :root { --read: 16px; }
  .rv-item summary { grid-template-columns: 34px 44px 90px 1fr 1fr 80px; }
  .rv-sec { display: none; }
}
@media (max-width: 820px) {
  .map-tables { grid-template-columns: 1fr; }
  .study-order { columns: 1; }
  .home, .hub, .results-wrap { padding: 24px 16px 48px; }
  .site-head { padding: 12px 16px; }
  .site-title { display: none; }
  .bb-left { display: none; }
  .bottombar { grid-template-columns: auto 1fr; }
  .bb-center { justify-self: start; }
  /* the question button sits at the left here: anchor the popup to it so it stays on screen */
  .qnav-pop { left: 0; transform: none; }
  .qnav-pop::after { left: 40px; }
  .qgrid { grid-template-columns: repeat(7, 36px); }
  .qgrid.big { grid-template-columns: repeat(6, 44px); }
  .rv-item summary { grid-template-columns: 34px 40px 1fr; }
  .rv-ans, .rv-key, .rv-flag { grid-column: 2 / -1; }
  .intro-card, .break-card { padding: 24px 20px; }
}

/* ---------- print (the Diagnostic Map, or the whole results page) ---------- */
@media print {
  @page { margin: 14mm; }
  body { font-size: 11pt; }
  .no-print, .site-head, #toast { display: none !important; }
  .print-only { display: block; }
  .print-title { font-size: 10pt; color: #555; margin: 0 0 6px; }
  .results-wrap { padding: 0; max-width: none; }
  body.print-map-only .results-wrap > :not(.map-section) { display: none !important; }
  .start-here, .map-table tr.top td, .rank, .score-card.total { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .map-tables { grid-template-columns: 1fr 1fr; gap: 12px; }
  .map-table { font-size: 9pt; }
  .study-order { font-size: 10pt; }
  details.rv-item .rv-body { display: block; }
}

/* ---- prototype: dashboard and overtime ---- */
.dash .hero h1 { margin-bottom: .3rem; }
.dash-stats { display: flex; gap: 1rem; margin: 1rem 0 .6rem; flex-wrap: wrap; }
.dash-stats > div { background: #fff; border: 1px solid #d9dde5; border-radius: 10px; padding: .7rem 1.1rem; min-width: 150px; }
.dash-stats b { display: block; font-size: 1.6rem; color: #1F2A44; }
.dash-stats span { color: #5b6475; font-size: .85rem; }
.progress-bar { height: 8px; background: #e6e9ef; border-radius: 99px; overflow: hidden; margin-bottom: 1.4rem; }
.progress-bar span { display: block; height: 100%; background: #1F2A44; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .9rem; }
.test-tile { background: #fff; border: 1px solid #d9dde5; border-radius: 10px; padding: .9rem 1rem; display: flex; flex-direction: column; gap: .35rem; min-height: 150px; }
.test-tile h3 { margin: 0; font-size: 1.05rem; }
.tt-head { display: flex; align-items: center; gap: .55rem; }
.tt-check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #c3c9d4; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; color: #fff; flex: none; }
.test-tile.is-done { border-color: #2e7d4f; }
.test-tile.is-done .tt-check { background: #2e7d4f; border-color: #2e7d4f; }
.test-tile.is-prog { border-color: #c98a00; }
.test-tile.is-locked { opacity: .55; background: #f6f7f9; }
.tc-meta { margin: 0; color: #5b6475; font-size: .85rem; }
.tc-score { margin: 0; display: flex; align-items: baseline; gap: .4rem; }
.tc-score b { font-size: 1.25rem; color: #1F2A44; }
.tc-score span { color: #5b6475; font-size: .8rem; }
.tt-cta { margin-top: auto; }
.btn.small { padding: .35rem .8rem; font-size: .85rem; }
.btn.ghost { background: transparent; border: 1px dashed #c3c9d4; color: #8a92a2; cursor: default; }
.small-h { font-size: 1rem; margin: 1.2rem 0 .5rem; }
.timer.overtime { color: #b3261e; font-weight: 700; }
.timer .ot-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; margin-right: .3rem; }
.ot-text { color: #b3261e; font-weight: 600; }
.ok-text { color: #2e7d4f; font-weight: 600; }
.timing-table { border-collapse: collapse; width: 100%; max-width: 640px; }
.timing-table th, .timing-table td { text-align: left; padding: .45rem .6rem; border-bottom: 1px solid #e3e6ec; font-size: .92rem; }
@media (max-width: 600px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
[data-act="print-map"]{display:none!important}

/* =====================================================================
   Brand theme (book cover): night navy, white type, cyan + red accents.
   Applies to the site pages and the intro/break screens. The test player
   itself stays light, like Bluebook, so test day looks familiar.
   ===================================================================== */
.page, .screen {
  --ground: #060a12;
  --surface: #0d1524;
  --surface-2: #132036;
  --cy: #35c8f2;
  --cy-ink: #04121c;
  --red: #e5222c;
  --navy: var(--cy);
  --navy-2: #6fdaf7;
  --navy-soft: rgba(53, 200, 242, .12);
  --ink: #ffffff;
  --muted: #9cadc6;
  --line: #22324d;
  --line-soft: #1a2740;
  --bg: var(--ground);
  --bg-soft: var(--surface);
  --ok: #3ddc84;
  --bad: #ff5a5f;
  --flag: #ff5a5f;
  --display: Montserrat, "Arial Black", system-ui, sans-serif;
  --cond: Oswald, "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  background: radial-gradient(1200px 600px at 85% -10%, #12305a 0%, rgba(18, 48, 90, 0) 60%), var(--ground);
  color: var(--ink);
}
.page h1, .page h2, .page h3, .screen h1, .screen h2 { font-family: var(--display); font-weight: 800; letter-spacing: -.01em; color: #fff; }
.page h1 { font-size: clamp(28px, 4vw, 40px); text-transform: uppercase; line-height: 1.05; }
.page h2 { font-size: 22px; text-transform: uppercase; }
.eyebrow { font-family: var(--cond); letter-spacing: .12em; color: var(--cy) !important; text-transform: uppercase; }
.page a { color: var(--cy); }
.site-head { border-bottom: 1px solid var(--line); background: rgba(6, 10, 18, .85); }
.brand { color: #fff !important; }
.brand-peaks { width: 34px; height: 20px; color: #fff; }
.brand-name { font-family: Montserrat, system-ui, sans-serif; letter-spacing: .32em; font-weight: 700; }
.site-title { font-family: var(--display); font-size: 15px; color: #fff; }
.site-title .cy { color: var(--cy); }
.site-title .st-sub { font-family: var(--cond); text-transform: uppercase; letter-spacing: .1em; font-size: 12px; color: var(--muted); margin-left: 6px; }
/* buttons */
.page .btn, .screen .btn { background: transparent; border-color: var(--cy); color: var(--cy); font-family: var(--cond); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.page .btn.primary, .screen .btn.primary { background: var(--cy); color: var(--cy-ink); }
.page .btn.primary:hover:not(:disabled), .screen .btn.primary:hover:not(:disabled) { background: #6fdaf7; }
.page .btn.outline:hover:not(:disabled), .screen .btn.outline:hover:not(:disabled) { background: var(--navy-soft); }
.page .btn.danger { border-color: var(--bad); color: var(--bad); }
.page .btn.ghost { border: 1px dashed #3a4a66; color: #6c7d97; background: transparent; }
.page .linklike { color: var(--cy); }
/* hero + stats */
.dash .hero h1 { font-size: clamp(34px, 5.5vw, 56px); margin: 0 0 10px; }
.dash .hero h1 .cy { color: var(--cy); }
.hero p { color: #c9d5e6; max-width: 62ch; }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0 6px; }
.badge-red { background: var(--red); color: #fff; font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 6px 14px; border-radius: 8px; font-size: 18px; line-height: 1.1; }
.badge-red b { font-size: 1.35em; margin-right: 6px; }
.badge-cy { background: var(--cy); color: var(--cy-ink); font-family: var(--cond); font-weight: 700; text-transform: uppercase; padding: 6px 14px; border-radius: 8px; font-size: 18px; line-height: 1.1; }
.dash-stats > div { background: var(--surface); border-color: var(--line); }
.dash-stats b { color: #fff; font-family: var(--cond); font-size: 2rem; font-weight: 700; }
.dash-stats span { color: var(--muted); font-family: var(--cond); text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; }
.progress-bar { background: var(--surface-2); }
.progress-bar span { background: linear-gradient(90deg, var(--cy), #7fe3ff); }
/* tiles */
.test-tile { background: var(--surface); border-color: var(--line); }
.test-tile h3 { font-family: var(--cond); font-size: 1.35rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.tt-check { border-color: #3a4a66; color: var(--cy-ink); }
.test-tile.is-done { border-color: var(--cy); box-shadow: inset 0 0 0 1px var(--cy); }
.test-tile.is-done .tt-check { background: var(--cy); border-color: var(--cy); }
.test-tile.is-prog { border-color: #f2b33d; }
.test-tile.is-locked { background: #0a1120; opacity: .5; }
.tc-meta { color: var(--muted); }
.tc-score b { color: #fff; font-family: var(--cond); font-size: 1.5rem; }
.ot-text { color: #ff6b70; }
.ok-text { color: var(--ok); }
/* cards, start page, intro, break */
.card, .intro-card, .break-card, .choose-opt, .intro-facts div, .score-card, .start-here, .next-step { background: var(--surface); border-color: var(--line); color: var(--ink); }
.intro-facts b { color: #fff; font-family: var(--cond); font-weight: 700; font-size: 26px; }
.intro-facts span, .intro-tips, .hub p { color: #c9d5e6; }
.break-timer { color: var(--cy); font-family: var(--cond); font-weight: 600; }
.screen { background: radial-gradient(1000px 500px at 80% -10%, #12305a 0%, rgba(18, 48, 90, 0) 60%), var(--ground); }
/* results */
.score-card.total { background: var(--red); border-color: var(--red); color: #fff; }
.score-card.total .sc-scale, .score-card.total .sc-soon { color: #ffe1e2; }
.sc-name { font-family: var(--cond); letter-spacing: .08em; }
.sc-range { font-family: var(--cond); font-weight: 600; }
.score-card:not(.total) .sc-range { color: var(--cy); }
.timing-table th { color: var(--muted); font-family: var(--cond); text-transform: uppercase; letter-spacing: .06em; font-weight: 500; }
.timing-table th, .timing-table td { border-bottom-color: var(--line); }
.section-head { border-bottom-color: var(--line); }
.page .muted, .page .small.muted { color: var(--muted); }
.home-foot { border-top-color: var(--line); color: var(--muted); }
/* question review keeps light "paper" cards for the passages and choices */
.rv-item { background: var(--surface); border-color: var(--line); }
.rv-item[open] .rv-q, .rv-item[open] .rv-expl { background: #fff; color: #1b1b1f; border-radius: 10px; padding: 14px 16px; }
.rv-item[open] .rv-expl { margin-top: 10px; }
.page .seg { border-color: var(--cy); }
.page .seg button { background: transparent; color: var(--cy); font-family: var(--cond); text-transform: uppercase; letter-spacing: .05em; }
.page .seg button.on { background: var(--cy); color: var(--cy-ink); }
.page .rv-item summary:hover { background: var(--surface-2); }
.page .pill { background: var(--surface-2); color: var(--muted); border-color: var(--line); }
.page .rv-n { background: var(--surface-2); color: #fff; border-color: var(--line); }
.page .rv-item[open] .review-line, .page .rv-item[open] .rv-expl h4 { color: #1F2A44; }
.page .rv-item[open] .rv-q a, .page .rv-item[open] .rv-expl a { color: #1F2A44; }
.hero-badges + p { margin-top: 12px; }
/* fixes 26 Oct: player and modals always light with dark ink; logo; badge alignment */
.player, .modal, .modal-backdrop .modal { color: #1b1b1f; color-scheme: light; }
.player { background: #fff; }
.brand-logo { height: 46px; width: auto; display: block; }
.hero-badges { align-items: stretch; }
.badge-red, .badge-cy { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; line-height: 1; }
.badge-red b { font-size: 1.5em; line-height: 1; margin: 0; }

/* ---------- stress-test fixes (27 Oct): phones, small screens, contrast ---------- */
.hub-actions, .intro-actions { flex-wrap: wrap; gap: 10px; }
.timing-table td { color: var(--ink); }
.modal { max-height: calc(100dvh - 32px); }
.ref-panel { max-height: calc(100dvh - 170px); }
@media (max-width: 700px) {
  /* one column: passage above, question below; the whole stage scrolls */
  .panes { display: block; height: auto; }
  .panes .divider { display: none; }
  .pane { overflow: visible; }
  .pane-left { border-bottom: 1px solid #d9dde5; }
  .pane-inner, .col-inner { padding: 18px 16px 24px; max-width: none; }
  .one-col { height: auto; overflow: visible; }
  .hub-actions .btn, .intro-actions .btn { flex: 1 1 100%; text-align: center; }
  .bottombar .btn { min-height: 44px; min-width: 72px; }
  .tb-title { font-size: 14px; }
  .tool span { display: none; }
  .ref-panel { left: 8px; right: 8px; width: auto; top: 64px; }
  .spr-input { font-size: 18px; }
  table { max-width: 100%; }
  .fig { overflow-x: auto; }
}
@media (max-width: 700px) {
  .intro-facts { flex-wrap: wrap; }
  .intro-facts div { flex: 1 1 40%; min-width: 0; }
  .intro-card, .break-card { width: 100%; max-width: 100%; box-sizing: border-box; }
  .panes.math-spr { display: flex; flex-direction: column-reverse; }   /* Math answer box first, the rules after it */
  .qgrid, .qgrid.big { grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 16px 8px; width: 100%; box-sizing: border-box; }
  .qnav-pop { width: calc(100vw - 16px); box-sizing: border-box; }
  .topbar { padding: 6px 8px; gap: 4px; }
  .tool { min-width: 40px; padding: 4px; }
  .results-actions { display: flex; flex-wrap: wrap; gap: 8px; }
  .results-actions .btn { flex: 1 1 100%; }
  .map-table { display: block; overflow-x: auto; }
}
.qnav-pop { max-height: calc(100vh - 90px); max-height: calc(100dvh - 90px); overflow: auto; }
@media (max-width: 700px) {
  .map-tables, .map-tables > * { min-width: 0; max-width: 100%; }
  .map-table { max-width: 100%; }
  .results-wrap { overflow-x: hidden; }
}
.ref-body { overflow-x: auto; }

/* ---------- chapter banks ---------- */
.bank-section { margin-top: 2.2rem; }
.bank-section h2 { font-family: var(--cond); text-transform: uppercase; letter-spacing: .04em; color: #fff; margin-bottom: .2rem; }
.bank-tile { text-decoration: none; color: inherit; }
.bank-wrap { max-width: 860px; margin: 0 auto; padding: 32px 16px 64px; }
.bank-wrap h1 { color: #fff; }
.bank-sum { color: var(--muted); display: flex; gap: 1rem; flex-wrap: wrap; align-items: baseline; }
.bank-filters { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: center; margin: 1rem 0 1.2rem; color: #c9d5e6; }
.bank-filters select { margin-left: .4rem; padding: .35rem .5rem; border-radius: 8px; border: 1px solid #3a4a66; background: #0d1524; color: #fff; font: inherit; }
.bank-card { background: #fff; color: #1b1b1f; color-scheme: light; border-radius: 14px; padding: 22px 24px; line-height: 1.6; }
.bank-card .passage, .bank-card .stem { margin: .8rem 0; }
.bank-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .88rem; color: #555b66; border-bottom: 1px solid #e3e6ec; padding-bottom: .6rem; }
.bank-card .choices { display: grid; gap: .55rem; margin: 1rem 0; }
.bank-card .choice { width: 100%; text-align: left; display: flex; gap: .7rem; align-items: flex-start; background: #fff; border: 1.5px solid #c3c9d4; border-radius: 10px; padding: .6rem .8rem; font: inherit; color: inherit; cursor: pointer; }
.bank-card .choice-row.selected .choice { border-color: #1f3a8a; box-shadow: 0 0 0 1px #1f3a8a; }
.bank-card .choice-row.is-key .choice { border-color: #2e7d4f; background: #eef8f1; }
.bank-card .choice-row.is-wrong .choice { border-color: #c62828; background: #fdeeee; }
.bank-card .choice:disabled { cursor: default; color: inherit; }
.bank-card .bubble { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid currentColor; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: .85rem; }
.bank-result { border-radius: 10px; padding: .8rem 1rem; margin: .6rem 0 1rem; }
.bank-result.ok { background: #eef8f1; border: 1px solid #b9dfc6; }
.bank-result.no { background: #fdf4e8; border: 1px solid #f0d2a8; }
.bank-result .expl { margin-top: .4rem; }
.bank-nav { display: flex; gap: .6rem; justify-content: flex-end; flex-wrap: wrap; }
.bank-card .spr { margin: 1rem 0; }
.bank-card .muted { color: #6b7280; }
@media (max-width: 700px) { .bank-card { padding: 16px; } .bank-nav .btn { flex: 1 1 30%; } }

/* ---------- Math basics ---------- */
.mb-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.mb-group { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.mb-group h3 { color: #fff; font-family: var(--cond); font-weight: 600; letter-spacing: .03em; margin: 0 0 .4rem; }
.mb-group ul { list-style: none; margin: 0; padding: 0; }
.mb-group li { padding: .25rem 0; }
.mb-group a { color: #dbe6f5; text-decoration: none; }
.mb-group a:hover { color: var(--cy); text-decoration: underline; }
.mb-sec { color: var(--cy); font-weight: 600; margin-right: .2rem; }
.mb-seen { color: var(--cy); margin-right: .3rem; }
.mb-lesson h2 { font-size: 1.15rem; margin: 1.2rem 0 .3rem; color: #11203b; }
.mb-lesson h2:first-child { margin-top: 0; }
.mb-lesson code, .bank-card code { background: #eef1f6; border: 1px solid #d9dde5; border-radius: 5px; padding: 0 .3em; font-size: .92em; }
.mb-lesson ol, .mb-lesson ul { padding-left: 1.3rem; }
.mb-h { color: #fff; margin: 1.6rem 0 .6rem; }
.mb-check { margin-bottom: 1rem; }
.mb-next { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }

.pdf-link { font-size:.85rem; color: var(--cy); margin-left: .6rem; }
.dash-code { margin-top: 2rem; }

.share-card { border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; background: var(--surface); }
.share-row { display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; margin: .6rem 0 1rem; color: #c9d5e6; }
.share-row input, .share-row select { margin-left: .4rem; width: 6.5em; padding: .35rem .5rem; border-radius: 8px; border: 1px solid #3a4a66; background: #0d1524; color: #fff; font: inherit; }
.share-row select { width: auto; }
.bank-card .muted, .bank-card .small.muted { color: #5b6475; }
.rank { color: #0b1424 !important; }
.bank-card .btn.outline { color: #1f3a8a; border-color: #1f3a8a; }
