:root {
  --ink: #202938;
  --ink-2: #344256;
  --teal: #187c72;
  --teal-soft: #e6f4f1;
  --coral: #2563eb;
  --coral-soft: #e8f0ff;
  --gold: #d9900b;
  --cream: #f4f7fb;
  --paper: #ffffff;
  --white: #ffffff;
  --line: #dfe5ed;
  --muted: #647084;
  --danger: #a33c38;
  --success: #2f7256;
  --shadow: 0 18px 50px rgba(37, 55, 86, .09);
  --radius: 18px;
  --serif: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --subject-english: #b83273;
  --subject-verbal: #087849;
  --subject-maths: #245fbd;
  --subject-nvr: #6741b5;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
[hidden] { display: none !important; }

.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; background: var(--ink); color: white; padding: .7rem 1rem; border-radius: 10px; }
.skip-link:focus { top: 1rem; }

.site-header { min-height: 72px; padding: 0 clamp(1.2rem, 4vw, 4.5rem); display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 34px; background: var(--coral); color: white; border-radius: 10px; font-size: .82rem; font-weight: 900; letter-spacing: -.03em; }
.brand strong, .brand small { display: block; line-height: 1.1; }
.brand strong { font-family: var(--sans); font-size: 1.05rem; letter-spacing: -.02em; }
.brand small { margin-top: .2rem; color: var(--muted); font-size: .69rem; text-transform: uppercase; letter-spacing: .12em; }
.site-header nav { display: flex; align-items: center; gap: .35rem; }
.site-header nav a { padding: .58rem .85rem; border-radius: 10px; text-decoration: none; font-size: .88rem; font-weight: 750; }
.site-header nav a:hover, .site-header nav a.active { color: var(--coral); background: var(--coral-soft); box-shadow: none; }
.cloud-status { margin-left: .35rem; padding: .35rem .55rem; display: inline-flex; align-items: center; gap: .35rem; color: var(--muted); background: var(--cream); border: 1px solid var(--line); border-radius: 999px; font-size: .65rem; font-weight: 800; }
.cloud-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #8793a5; }
.cloud-status.synced::before { background: var(--success); }
.cloud-status.syncing::before, .cloud-status.loading::before { background: var(--gold); }
.cloud-status.offline::before { background: var(--danger); }
.site-footer { min-height: 72px; padding: 0 clamp(1.2rem, 4vw, 4.5rem); display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }

.page-shell { width: min(1180px, calc(100% - 2.4rem)); margin-inline: auto; }
.eyebrow { display: block; color: var(--coral); font-size: .72rem; line-height: 1.2; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--sans); font-weight: 780; letter-spacing: -.035em; }
h1 { font-size: clamp(2.35rem, 5vw, 5.2rem); line-height: .98; }
h2 { font-size: 1.55rem; line-height: 1.15; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 720px; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }

.button { border: 0; border-radius: 11px; padding: .78rem 1.2rem; display: inline-flex; align-items: center; justify-content: center; gap: .6rem; text-decoration: none; font-weight: 820; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover:not(:disabled) { transform: translateY(-2px); }
.button:disabled { opacity: .45; cursor: not-allowed; }
.button.primary { color: white; background: var(--coral); box-shadow: 0 9px 22px rgba(37,99,235,.2); }
.button.primary:hover:not(:disabled) { background: #1d54ce; box-shadow: 0 12px 26px rgba(37,99,235,.25); }
.button.secondary { color: white; background: var(--teal); }
.button.quiet { color: var(--ink); background: rgba(255,255,255,.72); border: 1px solid var(--line); }
.button.danger { color: var(--danger); background: #f8e9e6; }
.button.large { padding: .96rem 1.55rem; font-size: 1rem; }
.full-width { width: 100%; }
.text-button { border: 0; padding: 0; background: none; color: var(--teal); font-weight: 850; text-decoration: none; cursor: pointer; }
.text-button:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-button.light { color: #ffe7d8; }
.icon-button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.back-link { color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 720; }
.button-row, .hero-actions, .header-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; }

.rest-label { display: inline-flex; padding: .75rem 1rem; color: var(--teal); background: var(--teal-soft); border-radius: 999px; font-size: .82rem; font-weight: 820; }
.assigned-paper { margin-bottom: 1rem; padding: 1.2rem 1.4rem; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.2rem; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.assigned-paper h2, .assigned-paper p { margin: 0; }
.assigned-paper p { color: var(--muted); font-size: .85rem; }

.student-home { padding: clamp(2.4rem, 5vw, 4.5rem) 0 5rem; }
.student-welcome { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.student-welcome h1 { margin: .55rem 0 .35rem; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1; }
.student-welcome p { margin: 0; color: var(--muted); font-size: 1rem; }
.test-countdown { min-width: 122px; padding: .85rem 1rem; display: flex; align-items: baseline; gap: .5rem; background: white; border: 1px solid var(--line); border-radius: 14px; }
.test-countdown strong { font-size: 1.65rem; line-height: 1; font-variant-numeric: tabular-nums; }
.test-countdown span { color: var(--muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.today-panel { min-height: 150px; padding: 1.35rem 1.45rem; display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: 1.4rem; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 35px rgba(37,55,86,.06); }
.today-time { align-self: stretch; padding: .8rem; display: grid; place-content: center; gap: .18rem; color: white; background: var(--ink); border-radius: 13px; text-align: center; }
.today-time span { font-size: .68rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; opacity: .68; }
.today-time strong { font-size: 1rem; }
.section-kicker { display: block; color: var(--muted); font-size: .68rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.today-copy h2 { margin: .32rem 0 .45rem; font-size: 1.45rem; }
.today-copy p { max-width: 650px; margin: 0; color: var(--muted); font-size: .88rem; }
.today-action { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .55rem; }
.student-home > .assigned-paper { margin: 1rem 0 0; box-shadow: none; }
.revision-library { margin-top: 3rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1.15rem; }
.section-heading h2 { margin: .4rem 0 0; font-size: 1.75rem; }
.section-heading p { max-width: 440px; margin: 0; color: var(--muted); font-size: .84rem; text-align: right; }
.subject-list { display: grid; gap: .72rem; }
.subject-row { min-height: 98px; padding: .85rem 1rem; display: grid; grid-template-columns: 72px 1fr 38px; align-items: center; gap: 1.1rem; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 15px; text-decoration: none; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.subject-row:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--subject) 45%, var(--line)); box-shadow: 0 12px 28px rgba(37,55,86,.07); }
.subject-code { width: 62px; height: 62px; display: grid; place-items: center; color: white; background: var(--subject); border-radius: 12px; font-size: .84rem; font-weight: 900; letter-spacing: .02em; }
.subject-code.large { width: 78px; height: 78px; border-radius: 17px; font-size: 1.05rem; }
.subject-copy strong, .subject-copy small { display: block; }
.subject-copy strong { font-size: 1.03rem; }
.subject-copy small { margin-top: .28rem; color: var(--muted); font-size: .8rem; }
.subject-arrow { width: 34px; height: 34px; display: grid; place-items: center; color: var(--coral); border-radius: 50%; font-size: 1.25rem; }
.student-reminder { margin-top: 2rem; padding: 1rem 1.2rem; display: flex; gap: .7rem; color: var(--muted); border-left: 3px solid var(--coral); background: rgba(255,255,255,.55); font-size: .84rem; }
.student-reminder strong { color: var(--ink); white-space: nowrap; }
.mock-library-card { margin-top: 1rem; padding: 1.25rem 1.4rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; background: var(--ink); color: white; border-radius: 15px; }
.mock-library-card h2 { margin: .35rem 0; }
.mock-library-card p { max-width: 720px; margin: 0; color: rgba(255,255,255,.7); font-size: .84rem; }
.mock-library-card .eyebrow { color: #9db9ff; }
.mock-library-card .button { flex: 0 0 auto; color: white; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.22); }

.subject-page { min-height: calc(100vh - 144px); padding: 2.2rem 0 5rem; background: var(--cream); }
.subject-header { margin: 2rem 0; display: flex; align-items: center; gap: 1.35rem; }
.subject-header h1 { margin: .35rem 0 .4rem; font-size: clamp(2.5rem, 5vw, 4.4rem); line-height: 1; }
.subject-header p { max-width: 650px; margin: 0; color: var(--muted); font-size: 1.02rem; }
.subject-start-card { padding: clamp(1.25rem, 3vw, 2rem); display: grid; grid-template-columns: minmax(0, .8fr) minmax(430px, 1.2fr); gap: 2rem; align-items: center; background: white; border: 1px solid var(--line); border-top: 4px solid var(--subject); border-radius: var(--radius); box-shadow: var(--shadow); }
.subject-start-card h2 { margin: .45rem 0 .6rem; font-size: 1.55rem; }
.subject-start-card p { margin: 0; color: var(--muted); font-size: .86rem; }
.practice-options { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.practice-option { min-height: 126px; padding: 1rem; display: flex; flex-direction: column; align-items: flex-start; border: 1px solid var(--line); border-radius: 13px; background: white; text-align: left; cursor: pointer; }
.practice-option:hover:not(:disabled) { border-color: var(--subject); box-shadow: 0 10px 25px color-mix(in srgb, var(--subject) 12%, transparent); }
.practice-option.primary-option { color: white; background: var(--subject); border-color: var(--subject); }
.practice-option:disabled { opacity: .45; cursor: not-allowed; }
.practice-option span { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; opacity: .76; }
.practice-option strong { margin-top: .45rem; font-size: 1.15rem; }
.practice-option small { margin-top: auto; font-size: .71rem; opacity: .72; }
.subject-details { margin-top: 1rem; display: grid; grid-template-columns: 1.35fr .65fr; gap: 1rem; }
.subject-details article { padding: 1.5rem; background: white; border: 1px solid var(--line); border-radius: 15px; }
.subject-details h2 { margin: .4rem 0 1rem; }
.topic-list { display: flex; flex-wrap: wrap; gap: .55rem; }
.topic-list span { padding: .48rem .7rem; color: var(--ink-2); background: var(--cream); border: 1px solid var(--line); border-radius: 9px; font-size: .77rem; font-weight: 720; }
.strategy-card { border-left: 4px solid var(--subject) !important; }
.strategy-card p { color: var(--muted); font-size: .84rem; }
.strategy-card .source-disclosure { margin: 1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .73rem; }

.session-shell { min-height: calc(100vh - 72px); background: var(--paper); }
.session-topbar { min-height: 88px; padding: 1rem clamp(1.2rem, 4vw, 4rem); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; border-bottom: 1px solid var(--line); }
.session-exit { text-decoration: none; color: var(--muted); font-weight: 740; }
.session-title { text-align: center; }
.session-title span, .session-title strong, .session-time span, .session-time strong { display: block; }
.session-title span, .session-time span { color: var(--muted); text-transform: uppercase; font-size: .65rem; font-weight: 820; letter-spacing: .13em; }
.session-title strong { font-family: var(--sans); font-size: 1.05rem; }
.session-time { text-align: right; }
.session-progress { height: 5px; background: #eae6dd; }
.session-progress span { display: block; height: 100%; background: var(--coral); transition: width .3s ease; }
.question-stage { width: min(1020px, calc(100% - 2rem)); margin: 0 auto; padding: clamp(2rem, 4vw, 3.5rem) 0; }
.mock-question-stage { width: min(1180px, calc(100% - 2rem)); }
.mock-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 245px; gap: 1.2rem; align-items: start; }
.mock-booklet, .mock-answer-sheet { background: white; border: 1px solid var(--line); border-radius: 18px; }
.mock-booklet { min-width: 0; padding: clamp(1.2rem, 3vw, 2.2rem); box-shadow: 0 12px 35px rgba(24,49,56,.06); }
.booklet-header { margin: calc(clamp(1.2rem, 3vw, 2.2rem) * -1) calc(clamp(1.2rem, 3vw, 2.2rem) * -1) 1.5rem; padding: .8rem 1.1rem; display: flex; align-items: center; justify-content: space-between; background: var(--cream); border-bottom: 1px solid var(--line); border-radius: 18px 18px 0 0; color: var(--muted); text-transform: uppercase; font-size: .68rem; font-weight: 850; letter-spacing: .1em; }
.booklet-header strong { color: var(--ink); font-family: var(--serif); font-size: 1.4rem; }
.booklet-options { display: grid; gap: .65rem; }
.booklet-option { min-height: 58px; padding: .65rem .85rem; display: flex; align-items: center; gap: .9rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.booklet-options.visual-options { display: grid; grid-template-columns: repeat(4, 1fr); }
.booklet-options.visual-options .booklet-option { min-height: 140px; flex-direction: column; justify-content: center; }
.mock-answer-sheet { position: sticky; top: 1rem; padding: 1.2rem; border-top: 5px solid var(--teal); }
.mock-answer-sheet h2 { margin: .45rem 0; font-size: 1.25rem; }
.mock-answer-sheet p, .mock-answer-sheet small { color: var(--muted); font-size: .76rem; line-height: 1.5; }
.sheet-marks { margin: 1rem 0; display: grid; gap: .48rem; }
.sheet-mark { min-height: 44px; padding: .45rem .65rem; display: flex; align-items: center; gap: .7rem; background: white; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.sheet-mark strong { width: 24px; font-size: .76rem; }
.sheet-mark i { width: 100%; height: 13px; border: 1px solid #87979b; border-radius: 2px; background: #fff; }
.sheet-mark:hover { border-color: var(--teal); }
.sheet-mark.selected { color: var(--teal); border-color: var(--teal); background: var(--teal-soft); }
.sheet-mark.selected i { background: linear-gradient(to bottom, transparent 42%, var(--ink) 42%, var(--ink) 58%, transparent 58%); }
.wait-for-call { max-width: 190px; color: var(--teal); font-size: .76rem; font-weight: 820; text-align: right; }
.question-meta { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; color: var(--muted); font-size: .75rem; font-weight: 850; text-transform: uppercase; letter-spacing: .1em; }
.question-prompt { margin: 1rem 0 2rem; font-family: var(--sans); font-size: clamp(1.55rem, 2.5vw, 2.2rem); font-weight: 650; line-height: 1.3; letter-spacing: -.025em; }
.passage { background: var(--cream); border-left: 4px solid var(--gold); padding: 1.4rem 1.6rem; border-radius: 0 16px 16px 0; }
.passage p { margin: .7rem 0 0; font-family: var(--serif); font-size: 1.08rem; line-height: 1.75; }
.answer-options { display: grid; gap: .7rem; }
.answer-option { min-height: 62px; padding: .68rem .85rem; border: 1.5px solid var(--line); border-radius: 11px; background: white; display: flex; align-items: center; gap: .9rem; text-align: left; cursor: pointer; transition: border .16s ease, background .16s ease, transform .16s ease; }
.answer-option:hover:not(:disabled) { border-color: var(--teal); transform: translateX(3px); }
.answer-option.selected { border-color: var(--subject, var(--teal)); background: color-mix(in srgb, var(--subject, var(--teal)) 9%, white); box-shadow: inset 0 0 0 1px var(--subject, var(--teal)); }
.answer-option.correct { border-color: var(--success); background: #e3f2e9; }
.answer-option.incorrect { border-color: var(--danger); background: #f9e7e4; }
.option-letter { flex: 0 0 34px; height: 34px; border: 0; border-radius: 7px; display: grid; place-items: center; color: white; background: #7d8796; font-size: .82rem; font-weight: 900; }
.answer-option.selected .option-letter { background: var(--subject, var(--teal)); }
.option-content { font-size: 1rem; font-weight: 680; }
.visual-options { grid-template-columns: repeat(4, 1fr); }
.visual-options .answer-option { min-height: 150px; flex-direction: column; justify-content: center; text-align: center; }
.visual-options svg { width: 86px; height: 86px; display: block; }
.shape-sequence { display: flex; align-items: center; justify-content: center; gap: .8rem; padding: 1.4rem; background: var(--cream); border-radius: 18px; }
.shape-sequence > div { width: 105px; height: 105px; display: grid; place-items: center; background: white; border: 1px solid var(--line); border-radius: 12px; }
.shape-sequence svg { width: 90px; height: 90px; }
.shape-sequence .sequence-missing { font-family: var(--serif); font-size: 2.5rem; color: var(--coral); border-style: dashed; }
.feedback { margin-top: 1rem; padding: 1rem 1.25rem; border-radius: 14px; }
.feedback p { margin: .25rem 0 0; }
.feedback.positive { background: #e3f2e9; color: #245c45; }
.feedback.repair { background: #f9e7e4; color: #75342f; }
.question-actions { margin-top: 1.6rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.flag-button { border: 0; background: none; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

.completion-screen, .break-screen, .instruction-screen, .auth-screen, .empty-state { min-height: calc(100vh - 154px); padding: 3rem 1.2rem; display: grid; place-items: center; text-align: center; }
.cloud-gate { min-height: calc(100vh - 144px); padding: 3rem 1.2rem; display: grid; place-items: center; background: var(--cream); }
.cloud-auth-card { width: min(560px, 100%); }
.cloud-auth-card > p { color: var(--muted); }
.cloud-auth-card form { margin: 1.5rem 0 1rem; display: grid; gap: 1rem; }
.cloud-auth-card label { display: grid; gap: .4rem; color: var(--ink-2); font-size: .76rem; font-weight: 760; }
.cloud-auth-card input { min-height: 48px; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 10px; background: white; }
.auth-message, .auth-error { margin: 1rem 0; padding: .85rem 1rem; border-radius: 10px; font-size: .82rem; }
.auth-message { color: #245c45; background: #e3f2e9; }
.auth-error { color: #75342f; background: #f9e7e4; }
.cloud-loading { display: flex; gap: .45rem; margin-top: 1.5rem; }
.cloud-loading span { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); animation: cloud-pulse 1s ease-in-out infinite alternate; }
.cloud-loading span:nth-child(2) { animation-delay: .18s; }
.cloud-loading span:nth-child(3) { animation-delay: .36s; }
@keyframes cloud-pulse { to { opacity: .28; transform: translateY(-4px); } }
.completion-screen > *, .break-screen > * { max-width: 670px; }
.completion-screen h1, .break-screen h1 { margin: .6rem auto 1rem; }
.completion-screen p, .break-screen p { color: var(--muted); font-size: 1.08rem; }
.completion-mark { min-width: 72px; height: 38px; margin: 0 auto 1.4rem; padding: 0 1rem; display: grid; place-items: center; border-radius: 10px; background: var(--ink); color: white; font-size: .72rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.instruction-card, .auth-card { width: min(620px, 100%); padding: clamp(1.6rem, 5vw, 3rem); background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); text-align: left; }
.instruction-card.compact { max-width: 560px; text-align: center; }
.instruction-card h1, .auth-card h1 { margin: .7rem 0 1rem; font-size: clamp(2.2rem, 5vw, 3.7rem); }
.instruction-list { display: grid; gap: .65rem; margin: 1.5rem 0; }
.instruction-list p { display: flex; align-items: center; gap: .9rem; margin: 0; }
.instruction-list span { flex: 0 0 32px; height: 32px; border-radius: 50%; background: var(--teal-soft); display: grid; place-items: center; font-weight: 850; }
.calm-note, .audio-callout { padding: 1rem 1.1rem; border-radius: 14px; background: var(--cream); }
.exam-briefing { width: min(720px, 100%); }
.exam-kit { margin: 1.3rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.exam-kit > div { padding: 1rem; display: flex; flex-wrap: wrap; gap: .45rem; background: var(--cream); border-radius: 14px; }
.exam-kit strong { width: 100%; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.exam-kit span { padding: .35rem .55rem; background: white; border: 1px solid var(--line); border-radius: 999px; font-size: .75rem; }
.timing-basis { margin: .8rem auto 0; color: var(--muted); font-size: .78rem; line-height: 1.55; }
.audio-callout { margin: 1.5rem 0; }
.audio-callout > span { color: var(--coral); font-size: 1.6rem; }
.audio-callout p { margin: .3rem 0 .6rem; }
.paper-label, .paper-pill { display: inline-flex; padding: .4rem .72rem; background: var(--ink); color: white; border-radius: 999px; font-size: .72rem; font-weight: 850; text-transform: uppercase; letter-spacing: .1em; }
.countdown { justify-self: end; min-width: 94px; padding: .5rem .8rem; border: 1px solid var(--line); background: white; border-radius: 10px; font-variant-numeric: tabular-nums; font-weight: 900; text-align: center; }
.question-navigator { margin-top: 1.7rem; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; }
.question-dots { display: flex; justify-content: center; flex-wrap: wrap; gap: .3rem; }
.question-dots button { width: 29px; height: 29px; border-radius: 50%; border: 1px solid var(--line); background: white; font-size: .68rem; cursor: pointer; }
.question-dots button.answered { background: var(--teal-soft); border-color: var(--teal); }
.question-dots button.current { background: var(--ink); color: white; border-color: var(--ink); }

.mock-choice-page { padding: 4rem 0 6rem; }
.mock-choice-page > h1 { margin: 1rem 0; max-width: 800px; }
.mock-hub-header { margin: 2rem 0 1.2rem; display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 2rem; align-items: end; }
.mock-hub-header h1 { margin: .55rem 0 .7rem; font-size: clamp(3rem, 6vw, 5rem); }
.next-mock-card { padding: 1.2rem 1.3rem; display: grid; gap: .25rem; background: white; border: 1px solid var(--line); border-radius: 14px; }
.next-mock-card span { color: var(--muted); font-size: .7rem; font-weight: 850; text-transform: uppercase; letter-spacing: .1em; }
.next-mock-card strong { font-size: 1.12rem; }
.next-mock-card small { color: var(--muted); }
.mock-launch-card { padding: 1.5rem 1.6rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; color: white; background: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); }
.mock-launch-card h2 { margin: .35rem 0 .45rem; font-size: 1.7rem; }
.mock-launch-card p { max-width: 710px; margin: 0; color: rgba(255,255,255,.68); font-size: .86rem; }
.mock-launch-card .section-kicker { color: #9db9ff; }
.mock-locked-action { display: grid; gap: .45rem; text-align: center; }
.mock-locked-action small { color: rgba(255,255,255,.58); font-size: .68rem; }
.paper-preview { margin-top: 3rem; }
.paper-preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.paper-card { padding: 1.5rem; background: white; border: 1px solid var(--line); border-radius: 15px; }
.paper-number { display: inline-flex; padding: .35rem .6rem; color: white; background: var(--subject-nvr); border-radius: 7px; font-size: .7rem; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.paper-card h3 { margin: .9rem 0 1rem; font-size: 1.1rem; }
.paper-card ol { margin: 0 0 1rem; padding: 0; list-style: none; display: grid; gap: .55rem; counter-reset: section; }
.paper-card li { padding: .65rem .75rem; display: flex; justify-content: space-between; gap: 1rem; background: var(--cream); border-radius: 9px; font-size: .83rem; }
.paper-card li strong { font-variant-numeric: tabular-nums; }
.paper-card > small { color: var(--muted); font-size: .7rem; }
.comfort-break { margin: 1rem 0; padding: .9rem 1.1rem; display: flex; align-items: center; justify-content: center; gap: .6rem; border: 1px dashed #9aa6b6; border-radius: 12px; color: var(--muted); font-size: .78rem; }
.comfort-break strong { color: var(--ink); }
.mock-rules-grid { margin: 1rem 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.mock-rules-grid article { padding: 1.3rem; background: white; border: 1px solid var(--line); border-radius: 14px; }
.mock-rules-grid h2 { margin: .45rem 0; font-size: 1.1rem; }
.mock-rules-grid p { margin: 0; color: var(--muted); font-size: .78rem; }
.choice-grid { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.choice-grid.single { grid-template-columns: minmax(0, 620px); }
.choice-card { padding: 2rem; background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); }
.choice-card.featured { color: white; background: var(--ink); border-color: var(--ink); box-shadow: var(--shadow); }
.choice-card p, .choice-card li { opacity: .75; }
.choice-card ul { padding-left: 1.2rem; margin-bottom: 1.6rem; }
.source-note { max-width: 620px; margin-top: 1rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--cream); }
.source-note strong { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.source-note p { margin: .35rem 0 0; color: var(--muted); font-size: .82rem; line-height: 1.55; }

.auth-card { max-width: 480px; text-align: left; }
.auth-card label, .settings-form label, .modal-card label, .form-grid label { display: grid; gap: .4rem; margin: 1rem 0; color: var(--ink); font-size: .82rem; font-weight: 820; }
input, select, textarea { width: 100%; padding: .82rem .9rem; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 11px; }
textarea { resize: vertical; }
.lock-icon { display: grid; place-items: center; width: 54px; height: 54px; background: var(--teal-soft); border-radius: 50%; font-size: 1.5rem; }
.auth-card .back-link { display: block; text-align: center; margin-top: 1.2rem; }
.form-error { padding: .7rem .9rem; color: var(--danger); background: #f8e9e6; border-radius: 10px; }

.parent-layout { min-height: calc(100vh - 82px); display: grid; grid-template-columns: 250px 1fr; }
.parent-sidebar { padding: 2.5rem 1.4rem; background: var(--ink); color: white; display: flex; flex-direction: column; gap: 2.2rem; }
.parent-sidebar h1 { margin: .45rem 0 0; font-size: 2rem; }
.parent-sidebar nav { display: grid; gap: .3rem; }
.parent-sidebar nav a { padding: .72rem .85rem; border-radius: 10px; color: rgba(255,255,255,.7); text-decoration: none; font-size: .9rem; font-weight: 740; }
.parent-sidebar nav a:hover, .parent-sidebar nav a.active { background: rgba(255,255,255,.1); color: white; }
.parent-sidebar > button { margin-top: auto; text-align: left; }
.parent-content { min-width: 0; padding: clamp(1.5rem, 4vw, 3.7rem); background: #f8f6f0; }
.parent-page-header { margin-bottom: 2rem; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.parent-page-header h1 { margin: .65rem 0 .6rem; font-size: clamp(2.3rem, 4vw, 4rem); }
.parent-page-header p { margin: 0; color: var(--muted); }
.metric-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .8rem; margin-bottom: .8rem; }
.metric-card { min-height: 145px; padding: 1.2rem; background: var(--paper); border-radius: 16px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid #e8e3d9; }
.metric-card.accent { background: var(--coral); color: white; border-color: var(--coral); }
.metric-card span, .metric-card small { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; opacity: .72; }
.metric-card strong { font-family: var(--serif); font-size: 2.8rem; font-weight: 500; line-height: 1; }
.dashboard-grid { display: grid; grid-template-columns: 1.6fr .8fr; gap: .8rem; }
.panel { padding: 1.5rem; background: var(--paper); border: 1px solid #e8e3d9; border-radius: 18px; }
.panel-heading { margin-bottom: 1.2rem; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.panel-heading h2, .panel h2 { margin: .35rem 0 0; }
.panel-heading a { color: var(--teal); font-size: .8rem; font-weight: 820; text-decoration: none; }
.info-chip, .source-badge, .status { display: inline-flex; align-items: center; padding: .3rem .55rem; border-radius: 999px; font-size: .66rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.info-chip { color: var(--teal); background: var(--teal-soft); }
.domain-row { display: grid; grid-template-columns: 210px 1fr 44px; align-items: center; gap: 1rem; padding: .9rem 0; border-top: 1px solid #ebe7df; }
.domain-name { display: flex; align-items: center; gap: .75rem; }
.domain-name > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: white; font-size: .69rem; font-weight: 900; }
.domain-name strong, .domain-name small { display: block; }
.domain-name small { color: var(--muted); font-size: .69rem; }
.bar { height: 8px; overflow: hidden; background: #ebe7df; border-radius: 999px; }
.bar span { display: block; height: 100%; border-radius: inherit; }
.next-panel { color: white; background: var(--teal); border-color: var(--teal); }
.next-panel .eyebrow { color: #ffd2be; }
.next-panel > p { opacity: .75; }
.mock-mini { margin: 1.2rem 0; display: grid; gap: .45rem; }
.mock-mini span { padding-left: 1rem; position: relative; font-size: .8rem; }
.mock-mini span::before { content: ""; position: absolute; left: 0; top: .48rem; width: 5px; height: 5px; background: var(--gold); border-radius: 50%; }
.skills-panel { grid-column: 1; }
.skill-row { display: grid; grid-template-columns: 1fr auto 50px; align-items: center; gap: 1rem; padding: .7rem 0; border-top: 1px solid #ebe7df; }
.skill-row small, .skill-row strong { display: block; }
.skill-row small { color: var(--muted); font-size: .7rem; }
.status.secure { color: var(--success); background: #e3f2e9; }
.status.developing { color: #8a5e10; background: #f9efd8; }
.status.focus { color: var(--danger); background: #f8e9e6; }
.score-note { display: flex; align-items: flex-start; gap: 1rem; }
.note-symbol { flex: 0 0 34px; height: 34px; display: grid; place-items: center; color: white; background: var(--ink); border-radius: 50%; font-family: var(--serif); font-style: italic; }
.score-note p { color: var(--muted); font-size: .85rem; }
.status-line { display: flex; align-items: center; gap: .6rem; font-size: .8rem; }
.panel-empty { padding: 2rem; color: var(--muted); text-align: center; }
.diagnostic-grid { margin-top: .8rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.outcome-grid { margin: 1rem 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.outcome-grid div { padding: .7rem; background: var(--cream); border-radius: 10px; text-align: center; }
.outcome-grid strong, .outcome-grid span { display: block; }
.outcome-grid strong { font-family: var(--serif); font-size: 1.7rem; }
.outcome-grid span { color: var(--muted); font-size: .66rem; text-transform: uppercase; }
.compact-row { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-top: 1px solid #ebe7df; font-size: .8rem; }
.compact-row span { text-transform: capitalize; }
.trend-bars { height: 150px; margin-top: 1rem; display: flex; align-items: stretch; gap: .55rem; border-bottom: 1px solid var(--line); }
.trend-bars > div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; gap: .35rem; text-align: center; }
.trend-bars span { min-height: 4px; background: var(--teal); border-radius: 6px 6px 0 0; }
.trend-bars small { font-size: .6rem; color: var(--muted); }

.weekly-plan { display: grid; grid-template-columns: repeat(7, minmax(170px, 1fr)); gap: .7rem; overflow-x: auto; padding-bottom: 1rem; }
.plan-day { min-height: 250px; padding: 1.15rem; background: var(--paper); border: 1px solid #e8e3d9; border-radius: 16px; }
.plan-day.mock-day { color: white; background: var(--ink); border-color: var(--ink); }
.plan-day.rest-day { background: var(--teal-soft); border-color: #c8ded7; }
.day-head { display: flex; align-items: center; gap: .65rem; margin-bottom: 1.8rem; }
.day-head > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--teal-soft); color: var(--teal); font-size: .7rem; font-weight: 850; }
.mock-day .day-head > span { background: var(--coral); color: white; }
.day-head strong, .day-head small { display: block; }
.day-head small { color: var(--muted); font-size: .65rem; }
.mock-day .day-head small { color: rgba(255,255,255,.6); }
.plan-day h2 { font-size: 1.2rem; }
.plan-day p { color: var(--muted); font-size: .78rem; }
.mock-day p { color: rgba(255,255,255,.66); }
.schedule-summary { display: grid; grid-template-columns: auto auto; align-items: baseline; gap: .1rem .55rem; padding: 1rem 1.2rem; background: var(--paper); border: 1px solid #e8e3d9; border-radius: 16px; }
.schedule-summary strong { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; }
.schedule-summary span { color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; }
.schedule-form { margin-bottom: 1rem; }
.schedule-editor { grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; scroll-snap-type: none; }
.schedule-editor .plan-day { min-height: 350px; scroll-snap-align: start; }
.schedule-editor label { display: grid; gap: .35rem; margin-top: .8rem; font-size: .68rem; font-weight: 820; text-transform: uppercase; letter-spacing: .05em; }
.schedule-editor input, .schedule-editor select { padding: .65rem .7rem; font-size: .8rem; }
.mock-day input, .mock-day select { color: var(--ink); background: white; }
.schedule-actions { margin-top: .2rem; padding: 1rem 1.2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: var(--paper); border: 1px solid #e8e3d9; border-radius: 16px; }
.schedule-actions p { margin: 0; color: var(--muted); font-size: .82rem; }
.schedule-actions > div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .6rem; }
.schedule-panel { margin-top: 1rem; }
.schedule-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: .9rem 0; border-top: 1px solid #ebe7df; }
.schedule-item.done { opacity: .55; }
.schedule-number { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--coral-soft); color: var(--coral); font-weight: 900; }
.schedule-item strong, .schedule-item small { display: block; }
.schedule-item small { color: var(--muted); }

.material-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.material-card { min-height: 240px; padding: 1.3rem; background: var(--paper); border: 1px solid #e8e3d9; border-radius: 16px; display: flex; flex-direction: column; }
.material-top, .material-actions { display: flex; align-items: center; justify-content: space-between; gap: .7rem; }
.material-top > span:last-child { color: var(--muted); font-size: .7rem; }
.source-badge.official-free { color: var(--teal); background: var(--teal-soft); }
.source-badge.official-owned { color: #8a5e10; background: #f9efd8; }
.material-card h2 { margin-top: 1.5rem; font-size: 1.3rem; }
.material-card p { color: var(--muted); font-size: .82rem; }
.material-actions { margin-top: auto; }
.manual-entry { margin-top: 1rem; display: grid; grid-template-columns: .75fr 1.25fr; gap: 2rem; }
.flag-review { margin-top: 1rem; }
.flag-row { padding: .8rem 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid #ebe7df; }
.flag-row p { margin: .2rem 0 0; color: var(--muted); font-size: .8rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .8rem; }
.form-grid label { margin: 0 0 .8rem; }
.span-2 { grid-column: span 2; }
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 1rem; background: rgba(14,42,48,.74); }
.modal-card { width: min(500px, 100%); padding: 2rem; background: var(--paper); border-radius: var(--radius); position: relative; box-shadow: var(--shadow); }
.modal-close { position: absolute; top: 1rem; right: 1rem; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--cream); cursor: pointer; }

.history-layout { display: grid; grid-template-columns: 1.6fr .8fr; gap: .8rem; }
.history-side { display: grid; align-content: start; gap: .8rem; }
.history-row { display: grid; grid-template-columns: 1fr 1fr 1fr .7fr .8fr; align-items: center; gap: .7rem; padding: .8rem 0; border-top: 1px solid #ebe7df; font-size: .8rem; }
.history-row.header { color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }
.history-row small { display: block; color: var(--muted); }
.heat-row { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .65rem 0; border-top: 1px solid #ebe7df; }
.heat-row strong, .heat-row small { display: block; }
.heat-row strong { font-size: .8rem; }
.heat-row small { color: var(--muted); font-size: .68rem; }
.heat-cell { min-width: 52px; padding: .4rem; border-radius: 8px; text-align: center; font-weight: 850; font-size: .72rem; }
.heat-cell.high { color: var(--success); background: #e3f2e9; }
.heat-cell.mid { color: #8a5e10; background: #f9efd8; }
.heat-cell.low { color: var(--danger); background: #f8e9e6; }
.repair-item { padding: .75rem 0; display: grid; gap: .5rem; border-top: 1px solid #ebe7df; }
.repair-item strong, .repair-item small { display: block; }
.repair-item small { color: var(--muted); font-size: .68rem; }
.repair-item select { padding: .55rem .65rem; font-size: .75rem; }

.settings-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: .8rem; }
.settings-form label { margin: .8rem 0; }
.check-label { grid-template-columns: auto 1fr !important; align-items: start; }
.check-label input { width: 20px; height: 20px; margin-top: .15rem; accent-color: var(--teal); }
.check-label strong, .check-label small { display: block; }
.check-label small { color: var(--muted); font-weight: 500; }
.tool-stack { display: grid; gap: .6rem; margin: 1.2rem 0; }
.cloud-account h2 { margin: .45rem 0; font-size: 1.15rem; overflow-wrap: anywhere; }
.cloud-account p { font-size: .78rem; }
.sync-state { margin-right: .35rem; padding: .25rem .45rem; display: inline-flex; border-radius: 999px; background: var(--cream); font-size: .65rem; font-weight: 850; text-transform: uppercase; letter-spacing: .05em; }
.sync-state.synced { color: var(--success); background: #e3f2e9; }
.sync-state.offline { color: var(--danger); background: #f9e7e4; }
.file-button { cursor: pointer; }
.data-tools hr { border: 0; border-top: 1px solid #ebe7df; margin: 1.8rem 0; }

.print-controls { width: min(1100px, calc(100% - 2rem)); margin: 2rem auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.print-controls h1 { margin: 0; font-size: 2rem; }
.print-controls p { margin: .3rem 0 0; color: var(--muted); }
.answer-sheet { width: 210mm; min-height: 297mm; margin: 1rem auto 3rem; padding: 14mm; background: white; box-shadow: var(--shadow); color: #111; }
.answer-sheet header { display: flex; justify-content: space-between; border-bottom: 2px solid #111; padding-bottom: 5mm; }
.answer-sheet header strong, .answer-sheet header span { display: block; }
.candidate-lines { display: grid; gap: 3mm; font-size: 10pt; }
.sheet-instruction { font-size: 9pt; margin: 5mm 0; }
.sheet-columns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5mm; }
.bubble-row { height: 8.5mm; display: grid; grid-template-columns: 8mm repeat(5, 1fr); align-items: center; border-bottom: 1px solid #ddd; font-size: 8pt; }
.bubble-row span { display: flex; align-items: center; gap: 1mm; }
.bubble-row i { width: 4mm; height: 4mm; border: 1px solid #111; border-radius: 2px; }
.answer-sheet footer { margin-top: 6mm; border-top: 1px solid #111; padding-top: 3mm; font-size: 8pt; text-align: center; }

.toast { position: fixed; z-index: 100; left: 50%; bottom: -80px; transform: translateX(-50%); max-width: calc(100% - 2rem); padding: .8rem 1.1rem; background: var(--ink); color: white; border-radius: 999px; box-shadow: var(--shadow); font-weight: 750; font-size: .85rem; transition: bottom .25s ease; }
.toast.show { bottom: 1.5rem; }

@media (max-width: 980px) {
  .parent-layout { grid-template-columns: 200px 1fr; }
  .metric-grid { grid-template-columns: repeat(3, 1fr); }
  .dashboard-grid, .history-layout { grid-template-columns: 1fr; }
  .skills-panel { grid-column: auto; }
  .material-grid { grid-template-columns: 1fr 1fr; }
  .manual-entry, .settings-grid { grid-template-columns: 1fr; }
  .schedule-editor { grid-template-columns: 1fr 1fr; }
  .subject-start-card { grid-template-columns: 1fr; }
  .subject-details { grid-template-columns: 1fr; }
  .mock-hub-header { grid-template-columns: 1fr; }
}

@media (max-width: 840px) {
  .site-header { position: relative; }
  .parent-layout { display: block; }
  .parent-sidebar { padding: 1rem; gap: 1rem; position: sticky; top: 0; z-index: 20; }
  .parent-sidebar { flex-direction: row; align-items: center; }
  .parent-sidebar > div { display: none; }
  .parent-sidebar > button { display: block; flex: 0 0 auto; margin: 0; white-space: nowrap; }
  .parent-sidebar nav { display: flex; overflow-x: auto; flex: 1; min-width: 0; }
  .parent-sidebar nav a { white-space: nowrap; }
  .parent-content { padding: 1.4rem; }
  .mock-workspace { grid-template-columns: 1fr; }
  .mock-answer-sheet { position: static; }
  .sheet-marks { grid-template-columns: repeat(5, 1fr); }
  .sheet-mark { justify-content: center; flex-direction: column; gap: .3rem; }
  .sheet-mark i { width: 34px; }
}

@media (max-width: 720px) {
  .site-header { min-height: 70px; }
  .brand small { display: none; }
  .site-header nav a { padding: .55rem .65rem; font-size: .78rem; }
  .cloud-status { display: none; }
  .choice-grid, .material-grid { grid-template-columns: 1fr; }
  .session-topbar { grid-template-columns: auto 1fr auto; padding: .8rem; }
  .session-title strong { font-size: .9rem; }
  .session-time span, .session-time strong { font-size: .65rem; }
  .visual-options { grid-template-columns: 1fr 1fr; }
  .booklet-options.visual-options { grid-template-columns: 1fr 1fr; }
  .question-navigator { grid-template-columns: 1fr 1fr; }
  .question-dots { grid-column: span 2; grid-row: 1; }
  .parent-content { padding: 1.2rem; }
  .parent-page-header { display: block; }
  .schedule-summary { margin-top: 1rem; width: fit-content; }
  .header-actions { margin-top: 1rem; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .diagnostic-grid { grid-template-columns: 1fr; }
  .domain-row { grid-template-columns: 1fr 50px; }
  .domain-row .bar { grid-column: span 2; }
  .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .history-row { grid-template-columns: 1fr 1fr; }
  .history-row > *:nth-child(3), .history-row > *:nth-child(4) { display: none; }
  .history-row.header { display: none; }
  .print-controls { display: block; }
  .answer-sheet { transform-origin: top left; transform: scale(.44); margin-bottom: -165mm; }
  .site-footer { display: block; padding-block: 1rem; }
  .site-footer span { display: block; }
  #app { overflow-x: hidden; }
  .schedule-actions { align-items: stretch; flex-direction: column; }
  .schedule-actions > div { justify-content: flex-start; }
  .schedule-editor { grid-template-columns: 1fr; }
  .student-welcome { align-items: flex-start; }
  .today-panel { grid-template-columns: 70px 1fr; }
  .today-action { grid-column: 1 / -1; justify-content: flex-start; }
  .section-heading { display: block; }
  .section-heading p { margin-top: .5rem; text-align: left; }
  .subject-row { grid-template-columns: 58px 1fr 30px; min-height: 88px; padding: .72rem; gap: .75rem; }
  .subject-code { width: 52px; height: 52px; }
  .subject-header { align-items: flex-start; }
  .subject-code.large { width: 62px; height: 62px; flex: 0 0 62px; }
  .practice-options { grid-template-columns: 1fr; }
  .mock-library-card, .mock-launch-card { align-items: stretch; flex-direction: column; }
  .paper-preview-grid, .mock-rules-grid { grid-template-columns: 1fr; }
  .comfort-break { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 460px) {
  .site-header { padding-inline: 1rem; }
  .brand > span:last-child { display: none; }
  .site-header nav { margin-left: auto; }
  .site-header nav a { font-size: .74rem; }
  .metric-grid { grid-template-columns: 1fr; }
  .assigned-paper { grid-template-columns: 1fr; }
  .outcome-grid { grid-template-columns: 1fr 1fr; }
  .exam-kit { grid-template-columns: 1fr; }
  .sheet-marks { gap: .3rem; }
  .sheet-mark { min-width: 0; padding-inline: .25rem; }
  .sheet-mark i { width: 25px; }
  .wait-for-call { max-width: 140px; }
  .student-welcome { display: block; }
  .test-countdown { margin-top: 1.2rem; width: fit-content; }
  .today-panel { grid-template-columns: 1fr; }
  .today-time { min-height: 70px; grid-template-columns: auto auto; align-items: center; justify-content: start; gap: .6rem; text-align: left; }
  .subject-copy small { display: none; }
  .student-reminder { display: block; }
  .student-reminder span { display: block; margin-top: .3rem; }
  .subject-header { display: block; }
  .subject-header .subject-code { margin-bottom: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media print {
  body { background: white; }
  .no-print, .site-header, .site-footer, .toast { display: none !important; }
  #app { margin: 0; }
  .answer-sheet { margin: 0; padding: 10mm; box-shadow: none; width: 210mm; min-height: 297mm; page-break-after: always; }
}
