/* Fonts are served from this site (SIL Open Font License), so no visitor
   data goes to a font service. */
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/atkinson-hyperlegible-latin-400-normal.f1f8a8210104.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/atkinson-hyperlegible-latin-400-italic.de4c0c22fd4e.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/atkinson-hyperlegible-latin-700-normal.13a58e05dfd2.woff2") format("woff2"); }
@font-face { font-family: "Literata"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/literata-latin-400-normal.a1e47c1196a7.woff2") format("woff2"); }
@font-face { font-family: "Literata"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/literata-latin-600-normal.1761fd55ed1a.woff2") format("woff2"); }
@font-face { font-family: "Literata"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/literata-latin-700-normal.8d83af4a6b4f.woff2") format("woff2"); }

/* Design tokens: a cool exam-paper ground, ink-blue text, and one bold
   element, the highlighter, used only to show evidence and progress. */
:root {
  --paper: #f5f7fa;
  --surface: #ffffff;
  --ink: #17263c;
  --ink-soft: #4a5a71;
  --rule: #d6dde8;
  --marker: #ffe45c;
  --marker-soft: #fff6c2;
  --right: #1d7552;
  --right-soft: #e2f3eb;
  --wrong: #ad3a31;
  --wrong-soft: #fae8e6;
  --amber: #a86b00;
  --amber-soft: #fdf0d4;
  --focus: #2b66e0;
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --radius-s: 6px;
  --radius-m: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.4rem); }
h2 { font-size: 1.45rem; margin-top: 1.6em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
mark {
  background: linear-gradient(transparent 30%, var(--marker) 30%, var(--marker) 88%, transparent 88%);
  color: inherit;
  padding: 0 0.1em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding-inline: 16px; }
.page { padding-block: 32px 56px; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 20; }
.skip-link:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header and footer */
.site-header { background: var(--surface); border-bottom: 1px solid var(--rule); }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 60px; flex-wrap: wrap; padding-block: 8px; }
.brand { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; text-decoration: none; margin-right: auto; }
.main-nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.main-nav a { text-decoration: none; }
.main-nav a:hover { text-decoration: underline; }
.inline-form { display: inline; margin: 0; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); cursor: pointer; }
.link-button:hover { text-decoration: underline; }
.count { display: inline-block; min-width: 1.5em; padding: 0 0.4em; border-radius: 999px; background: var(--marker); font-size: 0.85em; text-align: center; font-weight: 700; }

.site-footer { border-top: 1px solid var(--rule); background: var(--surface); padding-block: 28px; font-size: 0.88rem; color: var(--ink-soft); }
.footer-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1fr 2fr; } }
.footer-brand { font-family: var(--serif); font-weight: 600; color: var(--ink); margin-bottom: 0.4em; }
.footer-links a { margin-right: 14px; color: var(--ink-soft); }
.legal-notices p { margin-bottom: 0.5em; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  background: var(--ink); color: #fff; border: 2px solid var(--ink);
  border-radius: var(--radius-s); font: inherit; font-weight: 700;
  text-decoration: none; cursor: pointer;
}
.button:hover { background: #22375a; border-color: #22375a; }
.button:disabled { opacity: 0.45; cursor: not-allowed; }
.button-quiet { background: transparent; color: var(--ink); }
.button-quiet:hover { background: var(--surface); }
.button-danger { background: transparent; color: var(--wrong); border-color: var(--wrong); }
.button-danger:hover { background: var(--wrong-soft); border-color: var(--wrong); }
.button-small { min-height: 38px; padding: 6px 14px; font-size: 0.95rem; }
.button-wide { width: 100%; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Messages and notices */
.messages { list-style: none; padding: 0; margin: 0 0 24px; }
.message { padding: 12px 16px; border-radius: var(--radius-s); margin-bottom: 8px; border-left: 4px solid var(--ink-soft); background: var(--surface); }
.message-success { border-color: var(--right); background: var(--right-soft); }
.message-error { border-color: var(--wrong); background: var(--wrong-soft); }
.message-warning { border-color: var(--amber); background: var(--amber-soft); }
.notice-box { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 14px 18px; background: var(--amber-soft); border: 1px solid #edd29a; border-radius: var(--radius-m); margin-bottom: 24px; }
.notice-box p { margin: 0; }

/* Forms */
.narrow { max-width: 480px; margin: 0 auto; }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 36em; }
.lede-small { color: var(--ink-soft); }
.form { margin-top: 20px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field input[type="text"], .field input[type="email"], .field input[type="password"], .field input[type="number"], .target-form input {
  width: 100%; min-height: 46px; padding: 10px 12px; font: inherit;
  border: 1.5px solid #b9c4d4; border-radius: var(--radius-s); background: var(--surface); color: var(--ink);
}
.field input:focus, .target-form input:focus { border-color: var(--focus); outline: 2px solid var(--focus); outline-offset: 0; }
.field-check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.field-check input { width: 20px; height: 20px; margin-top: 3px; flex: none; }
.hint { font-size: 0.9rem; color: var(--ink-soft); margin: 6px 0 0; }
.error { color: var(--wrong); font-size: 0.92rem; margin: 6px 0 0; font-weight: 700; }
.has-error input { border-color: var(--wrong); }
.form-errors { background: var(--wrong-soft); border-left: 4px solid var(--wrong); padding: 10px 14px; border-radius: var(--radius-s); margin-bottom: 18px; }
.form-errors p { margin: 0; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.aside { margin-top: 18px; color: var(--ink-soft); }

/* Home */
.page-home { padding-bottom: 56px; }
.hero { display: grid; gap: 36px; padding-block: 48px 32px; align-items: center; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.1fr 1fr; padding-block: 72px 48px; } }
.hero h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.9rem); max-width: 16em; }
.evidence-demo { margin: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-m); padding: 22px; box-shadow: 0 1px 0 var(--rule), 0 12px 32px -18px rgba(23, 38, 60, 0.35); }
.demo-passage { font-family: var(--serif); font-size: 1.05rem; line-height: 1.75; border-bottom: 1px dashed var(--rule); padding-bottom: 14px; margin-bottom: 14px; }
.demo-passage p { margin: 0; }
.demo-prompt { font-weight: 700; margin-bottom: 10px; }
.demo-options { margin: 0; padding-left: 1.6em; }
.demo-options li { padding: 6px 0; }
.demo-options li span { display: block; }
.demo-options em { display: block; font-style: normal; font-size: 0.88rem; font-weight: 700; margin-top: 2px; }
.demo-options .is-right em { color: var(--right); }
.demo-options .is-trap em { color: var(--wrong); }
.demo-options .is-right span { background: var(--right-soft); padding: 2px 6px; border-radius: 4px; display: inline; }
.evidence-demo figcaption { margin-top: 14px; font-size: 0.9rem; color: var(--ink-soft); }
.how { padding-block: 16px; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; position: relative; padding: 46px 16px 16px; background: var(--surface); border-top: 3px solid var(--ink); }
.steps li::before { content: counter(step); position: absolute; top: 10px; left: 16px; font-family: var(--serif); font-size: 1.5rem; font-weight: 700; }
.features { display: grid; gap: 22px; padding-block: 32px; }
@media (min-width: 760px) { .features { grid-template-columns: repeat(3, 1fr); } }
.features h3 { margin-bottom: 0.3em; }
.features p { color: var(--ink-soft); margin: 0; }
.small-print { font-size: 0.9rem; color: var(--ink-soft); }

/* Prose pages */
.prose { max-width: 70ch; margin: 0 auto; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.meta { color: var(--ink-soft); font-size: 0.9rem; }

/* Account */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 20px 0 24px; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }
.danger-zone { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--rule); }

/* Status labels */
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 0.88rem; font-weight: 700; white-space: nowrap; }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ink-soft); }
.status-approved::before { background: var(--right); }
.status-pending::before { background: #d89b00; }
.status-rejected::before { background: var(--wrong); }

/* Dashboard */
.dash-head { margin-bottom: 18px; }
.exam-block { margin-bottom: 40px; }
.exam-block h2 { margin-top: 0.6em; border-bottom: 2px solid var(--ink); padding-bottom: 8px; }
.exam-desc { color: var(--ink-soft); }
.skill-title { margin: 0; font-family: var(--sans); font-weight: 700; font-size: 1rem; color: var(--ink-soft); }
.dash-jump { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.dash-jump a { font-weight: 700; padding: 6px 12px; border: 1.5px solid var(--rule); border-radius: 999px; background: var(--surface); text-decoration: none; }
.series-block { margin-top: 26px; }
.series-title { font-family: var(--serif); font-size: 1.2rem; margin: 0 0 2px; }
.series-note { color: var(--ink-soft); margin: 0 0 6px; font-size: 0.95rem; }
.group-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 18px 0 8px; }
.group-head form { margin: 0; }
.test-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-m); }
.test-row { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 14px 16px; border-top: 1px solid var(--rule); }
.test-row:first-child { border-top: 0; }
.test-row:target { background: var(--marker-soft); }
.test-info { display: flex; flex-direction: column; gap: 2px; }
.test-name { font-weight: 700; }
.test-meta { font-size: 0.9rem; color: var(--ink-soft); }
.test-action { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.test-action form { margin: 0; }
.text-link { font-size: 0.95rem; }
.empty { color: var(--ink-soft); }

/* Test runner */
.taking .site-footer { font-size: 0.75rem; padding-block: 14px; }
.taking .site-footer .footer-grid { gap: 8px; }
.run-bar { position: sticky; top: 0; z-index: 5; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-m); padding: 10px 16px; margin-bottom: 22px; }
.run-title { display: flex; flex-direction: column; }
.run-exam { font-size: 0.85rem; color: var(--ink-soft); }
.run-test { font-weight: 700; }
.run-progress { color: var(--ink-soft); }
.run-timer { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.1rem; padding: 4px 12px; border: 1.5px solid var(--rule); border-radius: var(--radius-s); }
.run-timer.is-low { color: var(--wrong); border-color: var(--wrong); }
@media (max-width: 640px) {
  .run-bar { flex-wrap: nowrap; gap: 10px; padding: 8px 12px; border-radius: 0; margin-inline: -16px; border-inline: 0; }
  .run-exam { display: none; }
  .run-title { flex: 1; min-width: 0; }
  .run-test { font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .run-progress { font-size: 0.9rem; white-space: nowrap; }
  .run-timer { font-size: 1rem; padding: 2px 8px; }
}
.run-intro { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-m); padding: 24px; max-width: 720px; }
.intro-facts { padding-left: 1.2em; color: var(--ink-soft); }
.run-part { display: grid; gap: 24px; }
.run-part.has-passage { grid-template-columns: 1fr; }
@media (min-width: 960px) { .run-part.has-passage { grid-template-columns: 1.1fr 1fr; align-items: start; } .run-part.has-passage .passage { position: sticky; top: 90px; max-height: calc(100vh - 120px); overflow: auto; } }
.part-heading { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; margin: 0 0 10px; }
.passage { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-m); padding: 20px 22px; font-family: var(--serif); font-size: 1.06rem; line-height: 1.75; max-width: 68ch; }
.passage p:last-child { margin-bottom: 0; }
.questions { display: flex; flex-direction: column; gap: 16px; }
.question { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-m); padding: 16px 18px; }
.question legend, .question .q-prompt { font-weight: 700; margin-bottom: 10px; padding: 0; }
.question fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.option { display: flex; gap: 10px; align-items: flex-start; padding: 9px 10px; border-radius: var(--radius-s); border: 1.5px solid transparent; cursor: pointer; }
.option:hover { background: var(--paper); }
.option input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.option:has(input:checked) { border-color: var(--ink); background: var(--paper); }
.option-letter { font-weight: 700; min-width: 1.2em; }
.gap-input { min-height: 42px; padding: 6px 10px; font: inherit; border: 1.5px solid #b9c4d4; border-radius: var(--radius-s); max-width: 100%; }
.writing-box { width: 100%; min-height: 260px; padding: 12px; font: inherit; line-height: 1.6; border: 1.5px solid #b9c4d4; border-radius: var(--radius-s); resize: vertical; }
.word-count { text-align: right; color: var(--ink-soft); font-size: 0.9rem; font-variant-numeric: tabular-nums; margin-top: 4px; }
.audio-box { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-m); padding: 14px 16px; }
.audio-box .play { width: 52px; height: 52px; border-radius: 50%; padding: 0; font-size: 1.1rem; }
.audio-state { font-weight: 700; }
.audio-left { color: var(--ink-soft); font-size: 0.92rem; }
.speak-box { display: flex; flex-direction: column; gap: 12px; }
.time-bar { height: 12px; background: var(--rule); border-radius: 6px; overflow: hidden; }
.time-bar span { display: block; height: 100%; width: 100%; background: var(--ink); transition: width 1s linear; }
.time-bar.is-prep span { background: #d89b00; }
.time-bar.is-speak span { background: var(--right); }
.speak-phase { font-weight: 700; }
.speak-box .button { align-self: flex-start; }
.q-label { font-weight: 700; color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 6px; }
.run-actions { margin-top: 22px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.run-error { color: var(--wrong); font-weight: 700; margin: 0; width: 100%; }
.run-feedback { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.part-directions { color: var(--ink-soft); font-weight: 700; margin: -4px 0 12px; }
.part-stimulus { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
@media (min-width: 960px) { .run-part.has-passage .doc { position: sticky; top: 90px; max-height: calc(100vh - 120px); overflow: auto; } }

/* Everyday documents: notices, menus, chats */
.doc { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-m); padding: 18px 20px; max-width: 68ch; }
.doc p:last-child { margin-bottom: 0; }
.doc-h { font-family: var(--serif); font-size: 1.1rem; margin: 0 0 10px; }
.doc ul { padding-left: 1.2em; }
.doc-table-wrap { overflow-x: auto; margin-bottom: 12px; }
.doc-table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.doc-table th, .doc-table td { border: 1px solid var(--rule); padding: 6px 9px; text-align: left; vertical-align: top; }
.doc-table th { background: var(--paper); }
.doc-chat { display: flex; flex-direction: column; gap: 8px; }
.chat-line { max-width: 85%; padding: 8px 12px; border-radius: 14px; margin: 0; background: var(--paper); }
.chat-line.side-r { align-self: flex-end; background: #e6eefb; }
.chat-who { display: block; font-size: 0.82rem; color: var(--ink-soft); }

/* Questions inside a text */
.cloze { line-height: 2.3; }
.inline-q { display: inline-flex; align-items: baseline; gap: 2px; white-space: nowrap; }
.inline-number { font-family: var(--sans); font-size: 0.75rem; font-weight: 700; background: var(--ink); color: #fff; border-radius: 999px; padding: 0 6px; margin-right: 3px; line-height: 1.5; align-self: center; }
.letters-input { font-family: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace; font-size: 1rem; letter-spacing: 0.05em; padding: 0 3px; height: 1.7em; border: 0; border-bottom: 2px solid var(--ink-soft); border-radius: 0; background: var(--marker-soft); }
.letters-input:focus { outline: 2px solid var(--focus); outline-offset: 1px; }
.cloze .gap-input { min-height: 0; height: 1.9em; padding: 0 6px; font-family: var(--sans); font-size: 0.98rem; }
.choice-select { font: inherit; font-family: var(--sans); font-size: 0.98rem; padding: 2px 6px; border: 1.5px solid #b9c4d4; border-radius: var(--radius-s); background: var(--surface); max-width: 100%; }
.inline-q { max-width: 100%; }
.cloze .choice-select { max-width: min(16em, 70vw); text-overflow: ellipsis; }
.inline-q.is-right .letters-input, .inline-q.is-right .gap-input, .inline-q.is-right .choice-select { background: var(--right-soft); border-color: var(--right); }
.inline-q.is-wrong .letters-input, .inline-q.is-wrong .gap-input, .inline-q.is-wrong .choice-select { background: var(--wrong-soft); border-color: var(--wrong); }
.inline-fix { font-family: var(--sans); font-size: 0.82rem; font-weight: 700; color: var(--right); margin-left: 4px; }
.inline-fix::before { content: "→ "; }
.passage-review .inline-q, .cloze .inline-q.is-wrong { white-space: normal; }
.review-options { list-style: none; padding: 0; margin: 4px 0 10px; display: flex; flex-direction: column; gap: 4px; }
.review-options li { display: flex; gap: 10px; padding: 4px 8px; border-radius: var(--radius-s); }
.review-options li.is-key { background: var(--right-soft); font-weight: 700; }
.review-options li.is-key .option-letter::after { content: " ✓"; color: var(--right); }
.review-options li.is-chosen { background: var(--wrong-soft); text-decoration: line-through; }
.inline-score { font-weight: 700; margin: 0; }
.letters-shown, .inline-answer { font-weight: 700; padding: 0 3px; border-radius: 4px; }
.inline-q.is-right .letters-shown, .inline-q.is-right .inline-answer { background: var(--right-soft); color: var(--right); }
.inline-q.is-wrong .letters-shown, .inline-q.is-wrong .inline-answer { background: var(--wrong-soft); color: var(--wrong); text-decoration: line-through; }
.shared-options { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-m); padding: 14px 18px; }
.shared-title { font-weight: 700; margin-bottom: 8px; }
.option-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.option-list li { display: flex; gap: 10px; align-items: flex-start; }
.select-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; font-weight: 700; }

/* Build a sentence */
.order-said { background: var(--paper); border-radius: 14px; padding: 10px 14px; display: inline-block; margin-bottom: 12px; }
.order-line { display: flex; flex-wrap: wrap; gap: 6px 4px; align-items: center; font-size: 1.05rem; line-height: 1.6; }
.order-slot { min-width: 4.5em; min-height: 2.1em; border: 1.5px dashed var(--ink-soft); background: transparent; border-radius: var(--radius-s); font: inherit; padding: 0 8px; cursor: pointer; color: var(--ink); }
.order-slot.is-filled { border: 1.5px solid var(--ink); border-radius: var(--radius-s); background: var(--marker-soft); }
.order-tiles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.order-tile { font: inherit; padding: 6px 12px; border: 1.5px solid #b9c4d4; border-radius: 999px; background: var(--surface); cursor: pointer; }
.order-tile:hover:not(:disabled) { border-color: var(--ink); }
.order-tile:disabled { opacity: 0.35; cursor: default; }
.order-hint { color: var(--ink-soft); font-size: 0.88rem; margin: 10px 0 0; }

/* Review (shared by instant feedback and the results page) */
.review-item { background: var(--surface); border: 1px solid var(--rule); border-left: 5px solid var(--rule); border-radius: var(--radius-m); padding: 14px 18px; margin-bottom: 14px; }
.review-item.is-right { border-left-color: var(--right); }
.review-item.is-wrong { border-left-color: var(--wrong); }
.review-item.is-open { border-left-color: var(--ink-soft); }
.review-prompt { font-weight: 700; }
.review-line { margin-bottom: 0.4em; }
.review-key { display: inline-block; font-weight: 700; margin-right: 8px; font-size: 0.85rem; color: var(--ink-soft); }
.review-explain { margin: 10px 0 6px; }
.review-trap { background: var(--wrong-soft); padding: 8px 12px; border-radius: var(--radius-s); }
.review-tips { background: var(--paper); padding: 8px 12px; border-radius: var(--radius-s); }
.model-answer { background: var(--right-soft); padding: 10px 14px; border-radius: var(--radius-s); margin: 8px 0; }
.model-answer p:last-child { margin-bottom: 0; }
.your-text { border-left: 3px solid var(--rule); padding-left: 12px; color: var(--ink-soft); margin-bottom: 8px; }
.transcript summary { cursor: pointer; font-weight: 700; margin-bottom: 8px; }

/* Results */
.results-exam { color: var(--ink-soft); margin-bottom: 4px; }
.score-panel { display: grid; gap: 18px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-m); padding: 22px; margin: 18px 0 30px; }
@media (min-width: 760px) { .score-panel { grid-template-columns: auto 1fr; align-items: center; } }
.score-main { display: flex; flex-direction: column; padding-right: 24px; }
@media (min-width: 760px) { .score-main { border-right: 1px solid var(--rule); } }
.score-label { font-size: 0.9rem; color: var(--ink-soft); font-weight: 700; }
.score-value { font-family: var(--serif); font-size: 2.3rem; font-weight: 700; line-height: 1.15; }
.score-note { font-size: 0.85rem; color: var(--ink-soft); }
.score-side p { margin-bottom: 0.5em; }
.good-text { color: var(--right); font-weight: 700; }
.warn-text { color: var(--amber); font-weight: 700; }
.review-part { margin-bottom: 30px; }
.passage-review { margin-bottom: 14px; }
.vocab { margin-top: 34px; }
.vocab-list { margin: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-m); }
.vocab-row { display: grid; grid-template-columns: minmax(120px, 0.4fr) 1fr; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--rule); }
.vocab-row:first-child { border-top: 0; }
.vocab-row dt { font-weight: 700; }
.vocab-row dd { margin: 0; }
.vocab-example { display: block; font-style: italic; color: var(--ink-soft); font-size: 0.92rem; }
.results-actions { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }

/* Progress */
.progress-block { margin-bottom: 30px; }
.progress-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--rule); }
.progress-table th, .progress-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--rule); }
.progress-table th { font-size: 0.88rem; color: var(--ink-soft); }
.target-gap { font-size: 1.05rem; }
.gap-number { font-family: var(--serif); font-weight: 700; font-size: 1.6rem; background: linear-gradient(transparent 55%, var(--marker) 55%); padding: 0 4px; }
.weak-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.weak-tag { font-weight: 700; text-transform: capitalize; }
.weak-score { color: var(--ink-soft); }
.target-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.target-form label { min-width: 200px; font-weight: 700; }
.target-form input { width: 120px; }

/* Owner dashboard */
.manage-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.count-big { font-family: var(--sans); font-size: 1rem; background: var(--marker); padding: 2px 10px; border-radius: 999px; vertical-align: middle; }
.manage-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--rule); margin-top: 14px; }
.manage-table th, .manage-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.manage-table th { font-size: 0.88rem; color: var(--ink-soft); }
.learner-name { display: block; font-weight: 700; }
.learner-email { display: block; font-size: 0.88rem; color: var(--ink-soft); }
.decision-cell form { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; }
.recent-list { list-style: none; padding: 0; }
.learner-block { margin-top: 22px; }
.learner-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.learner-block .manage-table { margin-top: 8px; }
.recent-list li { padding: 6px 0; border-bottom: 1px solid var(--rule); }
.muted { color: var(--ink-soft); font-size: 0.88rem; }
@media (max-width: 700px) {
  .manage-table thead { display: none; }
  .manage-table tr { display: block; border-bottom: 1px solid var(--rule); padding: 10px 0; }
  .manage-table td { display: block; border: 0; padding: 4px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Owner inbox */
.message-body { margin: .6rem 0 0; white-space: normal; overflow-wrap: anywhere; line-height: 1.55; }
.message-block.is-read { opacity: .75; }

/* Rejection reasons */
.reject-reason { margin: .35rem 0 .5rem; font-size: .92rem; color: var(--muted, #555); overflow-wrap: anywhere; }
.reject-box { display: inline-block; margin-left: .4rem; }
.reject-box summary { list-style: none; cursor: pointer; display: inline-block; }
.reject-box summary::-webkit-details-marker { display: none; }
.reject-box[open] form { display: grid; gap: .4rem; margin-top: .5rem; min-width: 16rem; }
.reject-box textarea { width: 100%; font: inherit; padding: .4rem; }
.decision-cell { white-space: normal; }
