:root {
  --paper: #f8f8f3;
  --white: #fff;
  --ink: #17332f;
  --body: #51635e;
  --muted: #75847d;
  --teal: #006e66;
  --teal-dark: #005a54;
  --teal-pale: #e8f3ee;
  --line: #d8e0d9;
  --gold: #f8e8b9;
  --gold-line: #e9c769;
  --red: #ad594d;
  --red-pale: #fbefec;
  --green: #237b5c;
  --green-pale: #e8f5eb;
  --sans: 'IBM Plex Sans', Arial, sans-serif;
  --serif: 'Source Serif 4', Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(31, 79, 65, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 79, 65, .035) 1px, transparent 1px);
  background-size: 23px 23px;
}
button, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
a { color: var(--teal); }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 3px solid #e7ba52; outline-offset: 3px; }
[hidden] { display: none !important; }

.site-header {
  border-bottom: 1px solid rgba(23, 51, 47, .1);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px);
}
.header-inner {
  width: min(1120px, calc(100% - 48px));
  min-height: 70px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  font-size: 17px;
  white-space: nowrap;
}
.logo b { color: var(--teal); }
.logo-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: #fff;
  background: var(--teal);
  font-size: 20px;
  line-height: 1;
}
.site-header nav { display: flex; align-items: center; gap: 4px; }
.header-link {
  padding: 9px 13px;
  border: 0;
  border-radius: 8px;
  color: var(--body);
  background: transparent;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
.header-link:hover, .header-link.active { color: var(--teal); background: var(--teal-pale); }

.page-wrap { width: min(1120px, calc(100% - 48px)); margin: auto; }
.topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 34px 0 0; }
.eyebrow { display: block; color: var(--teal); font-size: 11px; font-weight: 700; letter-spacing: .115em; text-transform: uppercase; }
.eyebrow-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; vertical-align: 1px; border-radius: 50%; background: var(--teal); }
.quiet-link, .quiet-button { color: var(--teal); font-size: 13px; font-weight: 600; text-decoration: none; border: 0; background: transparent; }
.quiet-link:hover, .quiet-button:hover { text-decoration: underline; }

.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 355px; align-items: center; gap: clamp(50px, 8vw, 120px); min-height: 560px; padding: 24px 0 55px; }
.intro { padding: 20px 0 0; }
.intro-rule { width: 42px; height: 4px; margin-bottom: 23px; border-radius: 20px; background: var(--teal); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); }
.intro h1 { margin: 0 0 20px; font-family: var(--serif); font-size: clamp(48px, 6vw, 76px); font-weight: 650; letter-spacing: -.055em; line-height: .99; }
.headline-dot { color: var(--teal); }
.lede { max-width: 590px; margin-bottom: 28px; color: var(--body); font-family: var(--serif); font-size: clamp(19px, 2vw, 23px); line-height: 1.5; }
.archive-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 530px; padding-top: 18px; border-top: 1px solid var(--line); }
.archive-stats strong { display: block; color: var(--teal); font-family: var(--serif); font-size: 27px; line-height: 1.1; }
.archive-stats span { display: block; margin-top: 3px; color: var(--body); font-size: 11px; font-weight: 600; }

.setup-card { padding: 26px; border: 1px solid #d5ded7; border-radius: 16px; background: var(--white); box-shadow: 0 20px 50px rgba(31, 62, 52, .08), 0 2px 6px rgba(31, 62, 52, .03); }
.setup-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 24px; }
.setup-heading .eyebrow { margin-bottom: 4px; }
.setup-heading h2 { margin: 0; font-family: var(--serif); font-size: 24px; font-weight: 650; line-height: 1.12; letter-spacing: -.025em; }
.setup-icon { display: grid; flex: 0 0 36px; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: var(--teal-pale); color: var(--teal); font-size: 23px; }
.field { display: block; margin: 0 0 19px; padding: 0; border: 0; }
.field-label { display: block; margin-bottom: 8px; color: var(--body); font-size: 12px; font-weight: 700; }
.segment { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border: 1px solid #cad6cf; border-radius: 8px; background: #f8faf7; }
.segment button { min-height: 37px; padding: 6px; border: 0; border-radius: 5px; color: var(--ink); background: transparent; font-size: 12px; font-weight: 700; }
.segment button.active { background: var(--teal); color: white; box-shadow: 0 2px 7px rgba(0, 80, 73, .2); }
.field select { width: 100%; min-height: 43px; padding: 0 12px; border: 1px solid #bfcfc6; border-radius: 7px; color: var(--ink); background: white; font-size: 13px; }
.count-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.count-row button { min-height: 38px; border: 1px solid #c7d2ca; border-radius: 6px; color: var(--ink); background: white; font-size: 13px; font-weight: 700; }
.count-row button.active { border-color: var(--gold-line); background: var(--gold); box-shadow: 0 0 0 2px rgba(231, 186, 82, .12) inset; }
.primary, .secondary { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 42px; padding: 10px 18px; border-radius: 7px; font-size: 13px; font-weight: 700; text-decoration: none; transition: background .15s, transform .15s, box-shadow .15s; }
.primary { border: 1px solid var(--teal); color: white; background: var(--teal); box-shadow: 0 7px 16px rgba(0, 94, 87, .14); }
.primary:hover:not(:disabled) { color: white; background: var(--teal-dark); transform: translateY(-1px); }
.secondary { border: 1px solid #cbd8d0; color: var(--ink); background: #fff; }
.secondary:hover:not(:disabled) { color: var(--teal); background: #f7faf8; }
.start-button { width: 100%; justify-content: space-between; margin-top: 2px; }
.continue-button { width: 100%; min-height: 32px; margin-top: 8px; border: 0; color: var(--teal); background: transparent; font-size: 12px; font-weight: 700; }
.continue-button:hover { text-decoration: underline; }
.recent-strip { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 26px; margin-bottom: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.recent-strip > div { display: grid; gap: 4px; }
.recent-strip strong { font-family: var(--serif); font-size: 21px; }
.recent-strip span:last-child { color: var(--body); font-size: 12px; }
.how-section { padding: 48px 0 72px; border-top: 1px solid var(--line); }
.section-heading h2 { margin: 7px 0 5px; font-family: var(--serif); font-size: 34px; letter-spacing: -.035em; }
.section-heading p { color: var(--body); font-size: 14px; line-height: 1.6; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 25px; }
.how-grid article { min-height: 165px; padding: 23px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.how-grid article > span { color: var(--teal); font-family: var(--serif); font-size: 20px; }
.how-grid h3 { margin: 14px 0 5px; font-family: var(--serif); font-size: 20px; }
.how-grid p { margin: 0; color: var(--body); font-size: 12px; line-height: 1.55; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; margin: 0 0 32px; padding: 24px 0 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.7; }
.site-footer > div { max-width: 670px; }
.site-footer a { color: var(--teal); }

.quiz-shell, .results-shell { max-width: 940px; }
.quiz-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 32px 0 18px; color: var(--body); font-size: 13px; font-weight: 700; }
.quiz-top > span:nth-child(2) { text-align: center; }
.timer { min-width: 70px; color: var(--ink); font-variant-numeric: tabular-nums; font-size: 17px; text-align: right; }
.timer.urgent { color: var(--red); }
.progress-track { height: 6px; overflow: hidden; border-radius: 10px; background: #dfe9e1; }
.progress-track > span { display: block; height: 100%; border-radius: 10px; background: var(--teal); transition: width .2s; }
.problem-card { margin: 24px 0 42px; padding: clamp(23px, 4vw, 42px); border: 1px solid #d5ded7; border-radius: 16px; background: #fff; box-shadow: 0 18px 48px rgba(31, 62, 52, .07); }
.problem-heading { display: flex; align-items: center; gap: 16px; }
.number-chip { display: grid; flex: 0 0 50px; place-items: center; width: 50px; height: 50px; border-radius: 10px; color: var(--teal); background: var(--teal-pale); font-family: var(--serif); font-size: 23px; font-weight: 700; }
.problem-heading .eyebrow { margin-bottom: 5px; }
.problem-heading h1 { margin: 0; font-family: var(--serif); font-size: clamp(25px, 3vw, 34px); letter-spacing: -.035em; }
.problem-intro { margin: 22px 0 18px; color: var(--body); font-size: 14px; }
.source-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fcfdfa; }
.source-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 15px; min-height: 50px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: #f8faf6; }
.source-panel-head strong { display: block; font-family: var(--serif); font-size: 17px; }
.source-panel-head span { display: block; color: var(--muted); font-size: 11px; }
.source-panel-head a { flex: 0 0 auto; font-size: 12px; font-weight: 700; text-decoration: none; }
.source-panel iframe { display: block; width: 100%; height: 380px; border: 0; background: #fff; }
.source-panel > p { margin: 0; padding: 10px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.45; }
.answer-heading { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin: 27px 0 13px; }
.answer-heading h2, .answer-heading h3 { margin: 5px 0 0; font-family: var(--serif); font-size: 23px; }
.answer-heading > span { color: var(--muted); font-size: 12px; font-weight: 700; }
.answer-choices { display: grid; gap: 9px; }
.answer-choice { display: flex; align-items: center; gap: 13px; width: 100%; min-height: 49px; padding: 7px 13px; border: 1px solid #d1ddd3; border-radius: 8px; color: var(--ink); background: #fff; font-size: 13px; text-align: left; }
button.answer-choice:hover:not(:disabled) { border-color: var(--teal); background: #f6fbf8; }
.answer-choice.selected { border-color: var(--teal); background: var(--teal-pale); }
.answer-choice.correct { border-color: #83b998; background: var(--green-pale); }
.answer-choice.incorrect { border-color: #d8a79d; background: var(--red-pale); }
.choice-letter { display: grid; flex: 0 0 30px; place-items: center; width: 30px; height: 30px; border: 1px solid #c8d6cc; border-radius: 6px; background: #f8faf7; font-weight: 700; }
.answer-choice.selected .choice-letter { border-color: var(--teal); color: white; background: var(--teal); }
.answer-choice.correct .choice-letter { border-color: var(--green); color: white; background: var(--green); }
.answer-choice.incorrect .choice-letter { border-color: var(--red); color: white; background: var(--red); }
.answer-choice b { margin-left: auto; font-size: 18px; }
.feedback { display: flex; gap: 15px; margin-top: 20px; padding: 19px; border: 1px solid #abd4b5; border-radius: 9px; background: var(--green-pale); }
.feedback.bad { border-color: #e1baac; background: var(--red-pale); }
.feedback-icon { display: grid; flex: 0 0 28px; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: white; background: var(--green); font-weight: 700; }
.feedback.bad .feedback-icon { background: var(--red); }
.feedback h3 { margin: 0 0 5px; font-family: var(--serif); font-size: 21px; }
.feedback p { margin: 0 0 7px; color: var(--body); font-size: 13px; line-height: 1.5; }
.feedback a { font-size: 12px; font-weight: 700; }
.question-actions { display: flex; justify-content: flex-end; margin-top: 23px; }
.question-actions .primary { min-width: 165px; }
.keyboard-tip { margin: 12px 0 0; color: var(--muted); font-size: 11px; text-align: right; }

.exam-shell { max-width: 1200px; }
.exam-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 22px 0 23px; }
.exam-heading h1 { margin: 5px 0 6px; font-family: var(--serif); font-size: clamp(30px, 4vw, 43px); letter-spacing: -.04em; }
.exam-heading p { margin: 0; color: var(--body); font-size: 13px; }
.exam-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(315px, .8fr); align-items: start; gap: 19px; margin-bottom: 45px; }
.booklet-card, .answer-card { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: 0 12px 35px rgba(31, 62, 52, .06); }
.booklet-card iframe { display: block; width: 100%; height: 720px; border: 0; background: #fff; }
.booklet-card > p { margin: 0; padding: 10px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.answer-card { padding: 24px; }
.answer-card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.answer-card-head h2 { margin: 5px 0 0; font-family: var(--serif); font-size: 27px; }
.answer-card-head h2 small { color: var(--muted); font-size: 16px; font-weight: 500; }
.flag-button { min-height: 30px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--body); background: white; font-size: 11px; }
.flag-button.active { border-color: var(--gold-line); color: #6d5214; background: var(--gold); }
.answer-meter { margin: 21px 0; color: var(--body); font-size: 12px; }
.answer-meter .progress-track { margin-top: 9px; }
.question-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.question-grid button { aspect-ratio: 1; min-width: 0; border: 1px solid var(--line); border-radius: 6px; color: var(--body); background: #fff; font-size: 12px; font-weight: 700; }
.question-grid button.answered { border-color: #a6ccbb; color: var(--teal); background: var(--teal-pale); }
.question-grid button.flagged { box-shadow: inset 0 -3px var(--gold-line); }
.question-grid button.current { border-color: var(--teal); color: #fff; background: var(--teal); }
.text-button { border: 0; color: var(--teal); background: transparent; font-size: 11px; font-weight: 700; }
.exam-choices { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.exam-choices button { height: 43px; border: 1px solid #cad6cf; border-radius: 6px; color: var(--ink); background: #fff; font-size: 15px; font-weight: 700; }
.exam-choices button.selected { border-color: var(--teal); color: white; background: var(--teal); }
.exam-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 24px; }
.exam-nav button { min-width: 105px; }

.results-shell .topline { margin-bottom: 28px; }
.result-hero { display: grid; grid-template-columns: 230px 1fr; align-items: center; gap: 45px; padding: 38px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 18px 48px rgba(31, 62, 52, .06); }
.score-ring { display: grid; place-items: center; width: 210px; height: 210px; border-radius: 50%; background: conic-gradient(var(--teal) calc(var(--pct) * 1%), #e1eae2 0); }
.score-ring > div { display: grid; align-content: center; justify-items: center; width: 171px; height: 171px; border-radius: 50%; background: white; }
.score-ring strong { font-family: var(--serif); font-size: 48px; letter-spacing: -.05em; }
.score-ring small { color: var(--muted); font-size: 23px; }
.score-ring span { color: var(--body); font-size: 12px; }
.result-hero h1 { margin: 7px 0 8px; font-family: var(--serif); font-size: clamp(35px, 4vw, 48px); letter-spacing: -.045em; }
.result-hero p { max-width: 510px; color: var(--body); font-size: 14px; line-height: 1.65; }
.result-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.review-panel { margin: 46px 0 65px; }
.review-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 20px; }
.review-item { display: grid; gap: 4px; padding: 14px; min-height: 96px; border: 1px solid var(--line); border-radius: 8px; background: #fff; text-align: left; }
.review-item:hover { transform: translateY(-1px); border-color: var(--teal); }
.review-item strong { font-family: var(--serif); font-size: 20px; }
.review-item span { color: var(--body); font-size: 11px; }
.review-item small { color: var(--teal); font-size: 11px; font-weight: 700; }
.review-item.missed small { color: var(--red); }
.review-item.skipped small { color: var(--muted); }
.review-card .source-panel { margin-top: 22px; }
.review-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 24px; }

.progress-page .topline { margin-bottom: 28px; }
.progress-intro h1 { margin: 0 0 7px; font-family: var(--serif); font-size: clamp(40px, 5vw, 58px); letter-spacing: -.045em; }
.progress-intro p { color: var(--body); font-size: 15px; }
.progress-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin: 29px 0 50px; }
.progress-stats > div { padding: 21px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.progress-stats strong { display: block; color: var(--teal); font-family: var(--serif); font-size: 31px; }
.progress-stats span { color: var(--body); font-size: 12px; }
.history-section, .queue-section { margin-bottom: 48px; }
.history-section { position: relative; }
.history-actions { display: flex; flex-wrap: wrap; gap: 8px; position: absolute; right: 0; top: 0; }
.history-actions .secondary { min-height: 36px; padding: 7px 11px; font-size: 12px; }
.attempt-list { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.attempt-row { display: grid; grid-template-columns: minmax(0, 1fr) 130px 90px 18px; align-items: center; gap: 18px; width: 100%; padding: 16px 20px; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: white; text-align: left; }
.attempt-row:last-child { border-bottom: 0; }
.attempt-row:hover { background: #f7fbf8; }
.attempt-row .eyebrow { margin-bottom: 4px; font-size: 10px; }
.attempt-row strong { display: block; font-family: var(--serif); font-size: 18px; }
.attempt-row > span { color: var(--body); font-size: 12px; }
.attempt-row small { display: block; color: var(--muted); font-size: 11px; font-weight: 400; }
.attempt-row b { font-family: var(--serif); font-size: 24px; }
.attempt-row b small { display: inline; }
.queue-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; }
.queue-grid button { display: grid; gap: 5px; position: relative; min-height: 75px; padding: 15px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: white; text-align: left; font: inherit; cursor: pointer; }
.queue-grid button:hover { border-color: var(--teal); }
.queue-grid button span:first-child { color: var(--muted); font-size: 11px; }
.queue-grid button strong { font-family: var(--serif); font-size: 17px; }
.queue-grid button span:last-child { position: absolute; right: 13px; top: 12px; color: var(--teal); }
.queue-more { color: var(--muted); font-size: 12px; }
.empty-state { display: grid; justify-items: start; gap: 8px; padding: 30px; border: 1px dashed #bfd1c3; border-radius: 10px; background: white; }
.empty-state > span { color: var(--teal); font-size: 28px; }
.empty-state h3 { margin: 0; font-family: var(--serif); font-size: 24px; }
.empty-state p { margin: 0 0 10px; color: var(--body); font-size: 13px; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 10; max-width: 310px; padding: 13px 18px; border-radius: 8px; color: white; background: var(--ink); font-size: 13px; box-shadow: 0 12px 30px rgba(0,0,0,.18); opacity: 0; transform: translateY(15px); pointer-events: none; transition: .2s; }
.toast.visible { opacity: 1; transform: translateY(0); }
.error-state { max-width: 700px; margin: 20vh auto; padding: 30px; text-align: center; }
.error-state h1 { font-family: var(--serif); font-size: 42px; }
.error-state p { color: var(--body); }

@media (max-width: 900px) {
  .home-grid { grid-template-columns: 1fr 330px; gap: 32px; }
  .intro h1 { font-size: 54px; }
  .exam-layout { grid-template-columns: 1fr; }
  .booklet-card iframe { height: 560px; }
  .answer-card { max-width: 620px; width: 100%; margin: auto; }
  .review-grid { grid-template-columns: repeat(4, 1fr); }
  .queue-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .header-inner, .page-wrap { width: min(100% - 32px, 1120px); }
  .header-inner { min-height: 64px; }
  .site-header nav { gap: 0; }
  .header-link { padding: 8px; font-size: 12px; }
  .source-link { display: none; }
  .home-grid { display: block; min-height: 0; padding: 28px 0 42px; }
  .intro { padding: 0; }
  .intro h1 { font-size: clamp(47px, 9vw, 67px); }
  .lede { font-size: 19px; }
  .archive-stats { margin-bottom: 34px; }
  .setup-card { max-width: 500px; margin: auto; }
  .how-grid { grid-template-columns: 1fr; }
  .how-grid article { min-height: 0; }
  .site-footer { display: block; }
  .site-footer > span { display: block; margin-top: 10px; }
  .result-hero { grid-template-columns: 1fr; justify-items: start; gap: 24px; }
  .score-ring { width: 170px; height: 170px; }
  .score-ring > div { width: 138px; height: 138px; }
  .score-ring strong { font-size: 38px; }
  .review-grid { grid-template-columns: repeat(3, 1fr); }
  .queue-grid { grid-template-columns: repeat(2, 1fr); }
  .history-actions { position: static; margin: 14px 0; }
  .attempt-row { grid-template-columns: minmax(0, 1fr) auto 15px; gap: 10px; }
  .attempt-row > span:nth-child(2) { display: none; }
}
@media (max-width: 480px) {
  .logo { gap: 7px; font-size: 14px; }
  .logo-mark { width: 27px; height: 27px; font-size: 17px; }
  .header-link { padding: 7px; font-size: 11px; }
  .topline { padding-top: 23px; }
  .quiet-link { display: none; }
  .intro h1 { font-size: 47px; }
  .archive-stats strong { font-size: 23px; }
  .archive-stats span { font-size: 10px; }
  .setup-card { padding: 21px; }
  .recent-strip { display: block; }
  .recent-strip .secondary { margin-top: 14px; }
  .quiz-top { gap: 8px; font-size: 11px; }
  .quiz-top .quiet-button { font-size: 11px; }
  .timer { min-width: 56px; font-size: 14px; }
  .problem-card { padding: 20px; }
  .problem-heading { align-items: flex-start; gap: 12px; }
  .number-chip { width: 40px; height: 40px; flex-basis: 40px; font-size: 19px; }
  .problem-heading h1 { font-size: 25px; }
  .source-panel-head { align-items: flex-start; }
  .source-panel-head a { font-size: 11px; }
  .source-panel iframe { height: 330px; }
  .exam-heading { align-items: start; flex-direction: column; }
  .exam-heading .secondary { width: 100%; }
  .booklet-card iframe { height: 460px; }
  .answer-card { padding: 18px; }
  .review-grid { grid-template-columns: repeat(2, 1fr); }
  .progress-stats { gap: 7px; }
  .progress-stats > div { padding: 12px 9px; }
  .progress-stats strong { font-size: 25px; }
  .progress-stats span { font-size: 10px; }
  .queue-grid { grid-template-columns: 1fr 1fr; }
  .queue-grid button { padding: 11px; }
  .result-hero { padding: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
