/* Results and feedback: the XP reward, the level shown as a range per criterion, the marked
   answer with one issue explained at a time, the model answer beside it, the checks, and the
   examiner's priorities. Error types differ by underline style and label as well as colour. */

/* The points reward as a slim badge (STORY-04.11 v2; the owner's principle 4: it never sets the header's height). */
.reward {
  display: inline-flex; align-items: center; gap: var(--s2); align-self: center;
  padding: 4px var(--s3) 4px 6px; background: var(--sun); color: var(--on-sun); border-radius: 999px;
}
.reward__coin { width: 24px; height: 24px; }
.reward__xp {
  font-family: var(--display); font-weight: 800; font-size: var(--fs-l); line-height: 1.2;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.reward__note { font-size: var(--fs-xs); line-height: 1.3; }
.reward__note b { display: block; }

.results-summary { margin-bottom: var(--s5); }
.results-pane { margin-top: var(--s5); }
.tabs + .results-pane { margin-top: var(--s5); }
.review-productive > .callout { max-width: none; }
.review-productive > .review-part + .review-part { margin-top: var(--s5); padding-top: var(--s7); border-top: 1px solid var(--line-2); }
.review-task > * + * { margin-top: var(--s4); }
.review-task > .grid { margin-top: var(--s5); }

/* ---------- Estimated level, as a range ---------- */
.estimate { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s6); align-items: center; }
.estimate--solo { grid-template-columns: minmax(0, 1fr); }
.estimate--top { align-items: start; }
.estimate__range {
  margin-top: var(--s1);
  font-family: var(--display); font-weight: 800; letter-spacing: -0.03em;
  font-size: clamp(2.75rem, 2rem + 3vw, 4rem); line-height: 1; font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.estimate__note { margin-top: var(--s3); color: var(--ink-2); font-size: var(--fs-m); max-width: 38ch; }
.estimate--solo .estimate__note { max-width: 70ch; }
.estimate__note b { color: var(--ink); }
.estimate .pill { margin-top: var(--s3); }
.crit, .crit-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(160px, 252px) 104px;
  align-items: center; column-gap: var(--s5);
}
.crit-head { font-size: var(--fs-xs); font-weight: 700; color: var(--ink-2); padding-bottom: var(--s2); }
.crit-head > :last-child { text-align: end; }
.crit-head--next { margin-top: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--line); }
.crit { min-height: 52px; padding-block: var(--s2); border-top: 1px solid var(--line); }
.crit--long { align-items: start; padding-block: var(--s3); }
.crit--long .scale { margin-top: 3px; }
.crit__name { font-weight: 700; line-height: 1.3; }
.crit__name span { display: block; font-weight: 400; font-size: var(--fs-s); line-height: 1.45; color: var(--ink-2); margin-top: 2px; }
.crit__name .crit__quotes { font-style: italic; }
.crit__val { font-family: var(--display); font-weight: 700; font-size: var(--fs-xl); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: end; }
.crit__val.is-empty { font-family: var(--text); font-weight: 400; font-size: var(--fs-s); color: var(--ink-2); }
q { quotes: "\201C" "\201D"; }

/* ---------- The answer and the model ---------- */
.doc-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s3); }
.doc-head h3 { font-size: var(--fs-2xl); letter-spacing: -0.01em; }
.doc-head p { font-size: var(--fs-m); color: var(--ink-2); font-variant-numeric: tabular-nums; text-align: end; }
details.task-brief { font-size: var(--fs-m); }
.letter {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m);
  padding: var(--s6); font-size: var(--fs-l); line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere;
}
.letter p + p { margin-top: var(--s4); }
.letter--model { font-size: var(--fs-base); line-height: 1.7; padding: var(--s5); white-space: normal; }
.letter--model p + p { margin-top: var(--s3); }
/* The easier model first and open, the advanced one below it, closed; a label names each level. */
.models > * + * { margin-top: var(--s5); }
h3.model__label { margin-bottom: var(--s3); font-size: var(--fs-xl); }
details.model > summary.model__label, details.model > summary > h3.model__label { margin: 0; font-size: var(--fs-m); overflow-wrap: anywhere; }
/* A part or question set in France. */
.setting-note {
  justify-self: start; width: fit-content; max-width: 100%; margin-block: var(--s3);
  padding: var(--s1) var(--s3); border-radius: var(--r-s); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  font-size: var(--fs-s); color: var(--ink-2);
}
.lang-check > * + * { margin-top: var(--s4); }
.lang-check__verdict { font-size: var(--fs-m); }
.issue-counts { display: flex; flex-wrap: wrap; gap: var(--s2); }
.err {
  border-radius: 4px; padding: 2px 2px 1px; cursor: pointer;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background: linear-gradient(var(--coral), var(--coral)) left bottom / 100% 2px no-repeat;
}
.err--spelling { background: repeating-linear-gradient(90deg, var(--coral) 0 4px, transparent 4px 7px) left bottom / 100% 2px no-repeat; }
.err--punctuation { background: repeating-linear-gradient(90deg, var(--coral) 0 2px, transparent 2px 5px) left bottom / 100% 2px no-repeat; }
.err--style { background: linear-gradient(var(--sun-deep), var(--sun-deep)) left bottom / 100% 2px no-repeat; }
.err sup {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 3px; margin-inline-start: 2px;
  border-radius: 9px; background: var(--coral-tint); color: var(--coral-deep);
  font-family: var(--display); font-size: 0.75rem; font-weight: 700; line-height: 1;
  vertical-align: 0.5em; font-variant-numeric: tabular-nums;
}
.err--style sup { background: var(--sun-tint); color: var(--sun-ink); }
.err.is-selected { background: var(--coral-tint); box-shadow: 0 0 0 2px var(--coral-tint), 0 0 0 4px var(--coral-deep); }
.err.is-selected sup { background: var(--coral-deep); color: var(--on-fill); }
.err--style.is-selected { background: var(--sun-tint); box-shadow: 0 0 0 2px var(--sun-tint), 0 0 0 4px var(--sun-ink); }
.err--style.is-selected sup { background: var(--sun-ink); color: var(--on-fill); }

.errs { display: grid; gap: var(--s2); }
.errs__row {
  display: grid; grid-template-columns: 28px 96px minmax(0, 1fr) auto; align-items: center; gap: var(--s3);
  width: 100%; min-height: 48px; padding: var(--s2) var(--s4) var(--s2) var(--s3);
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; text-align: start;
}
.errs__n {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--coral-tint); color: var(--coral-deep);
  font-family: var(--display); font-weight: 700; font-size: var(--fs-s); font-variant-numeric: tabular-nums;
}
.errs__type { font-size: var(--fs-s); font-weight: 700; color: var(--ink-2); }
.errs__fix { min-width: 0; overflow-wrap: anywhere; }
.errs__fix del { color: var(--coral-deep); text-decoration-thickness: 2px; }
.errs__fix ins { text-decoration: none; font-weight: 700; color: var(--teal); }
.errs__fix .i { color: var(--line-strong); margin-inline: 2px; }
.errs__row > .i { color: var(--line-strong); }
.errs__open { border: 2px solid var(--coral-deep); border-radius: var(--r-m); background: var(--surface); overflow: hidden; }
.errs__open .errs__row { border: 0; border-radius: 0; background: var(--coral-tint); }
.errs__open .errs__n { background: var(--coral-deep); color: var(--on-fill); }
.errs__open .errs__type { color: var(--coral-deep); }
.errs__open--style { border-color: var(--sun-ink); }
.errs__open--style .errs__row { background: var(--sun-tint); }
.errs__open--style .errs__n { background: var(--sun-ink); }
.errs__open--style .errs__type { color: var(--sun-ink); }
.explain { padding: var(--s4) var(--s5) var(--s5); }
.explain h4 { font-size: var(--fs-xl); line-height: 1.3; }
.explain p { margin-top: var(--s2); }
.explain dl { margin-top: var(--s3); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s2) var(--s4); }
.explain dt { font-weight: 700; white-space: nowrap; }
.explain dd { color: var(--ink-2); }
.explain dd i { color: var(--ink); }
.explain__foot { margin-top: var(--s4); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); }
.pager { display: flex; align-items: center; gap: var(--s2); font-size: var(--fs-m); color: var(--ink-2); font-variant-numeric: tabular-nums; margin-inline-start: auto; }
.pager button {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px;
  background: var(--surface); box-shadow: inset 0 0 0 2px var(--line-2); color: var(--ink);
}
.pager button:disabled { opacity: 0.4; }

.notes-title { margin-top: var(--s5); font-size: var(--fs-l); }
.notes { margin-top: var(--s4); display: grid; gap: var(--s3); font-size: var(--fs-m); }
.notes li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: var(--s3); }
.notes .i { color: var(--teal); margin-top: 2px; }
.sec-head + .notes, .sec-head + .corrections { margin-top: 0; }

/* ---------- Checks ---------- */
.checks { display: grid; }
.checks li {
  display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--s3); align-items: start;
  padding-block: var(--s3); border-top: 1px solid var(--line);
}
.checks li:first-child { border-top: 0; padding-top: 0; }
.checks li:last-child { padding-bottom: 0; }
.checks__mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--teal-tint); color: var(--teal); }
.checks .is-warn .checks__mark { background: var(--sun-tint); color: var(--sun-ink); }
.checks .is-fail .checks__mark { background: var(--coral-tint); color: var(--coral-deep); }
.checks b { display: block; line-height: 1.4; font-weight: 500; font-variant-numeric: tabular-nums; padding-top: 2px; }
.checks__d { display: block; font-size: var(--fs-m); color: var(--ink-2); }
.requirements .check + .check { border-top: 1px solid var(--line); }

/* ---------- The examiner ---------- */
.block-teal { background: var(--teal); color: var(--surface); border-radius: var(--r-l); padding: var(--s6); min-width: 0; }
.block-teal .sec-head p { color: var(--teal-soft); }
.block-teal :focus-visible { outline-color: var(--sun); }
.prios { counter-reset: p; display: grid; }
.prios li {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: var(--s4); align-items: start;
  padding-block: var(--s4); border-top: 1px solid var(--veil-25);
}
.prios li:first-child { border-top: 0; padding-top: 0; }
.prios li:last-child { padding-bottom: 0; }
.prios li::before {
  counter-increment: p; content: counter(p);
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--sun); color: var(--on-sun);
  font-family: var(--display); font-weight: 800; font-size: 1.75rem;
}
.prios h3 { font-size: 1.1875rem; }
.prios p { margin-top: var(--s1); color: var(--teal-soft); }
.prios p b, .prios .prios__quote { color: var(--surface); }
.prios__quote { font-style: italic; }
.corrections { display: grid; }
.corrections li { padding-block: var(--s3); border-top: 1px solid var(--line); }
.corrections li:first-child { border-top: 0; padding-top: 0; }
.corrections .was { color: var(--coral-deep); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.corrections .now { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: var(--s2); margin-top: var(--s1); font-weight: 700; color: var(--teal-deep); }
.corrections .now .i { margin-top: 5px; color: var(--line-strong); }
.corrections .hint { margin-top: var(--s1); font-size: var(--fs-s); }
.corrections + .sec-head, .notes + .sec-head { margin-top: var(--s5); }
.examiner-panel:empty { display: none; }
.examiner-note { margin-top: var(--s3); max-width: 96ch; }
.examiner-offer .sec-head { margin-bottom: 0; align-items: center; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4); margin-top: var(--s6); }
.actions--tight { margin-top: var(--s5); }
.actions p { margin-inline-start: auto; color: var(--ink-2); font-size: var(--fs-m); }

/* ---------- The result screen, v2 (STORY-04.11; the owner's approval of 2026-11-19) ---------- */
/* Hidden parts stay hidden whatever their own display (a task not chosen, a view, a closed tip). */
.review-productive [hidden], .results-summary [hidden], .assessment [hidden], .examiner-panel [hidden], .results-skills [hidden] { display: none !important; }
/* A long unbroken word the examiner quotes (a web address) breaks rather than widen the page (the review's Later 3). */
.assessment, .assess-top, .assess-answer, .more-list { overflow-wrap: anywhere; }
.review-productive.stack, .review-part.stack, .assess-top.stack { gap: var(--s3); }
/* The result card (STORY-04.39, css/result-card.css) replaced the v2 two-column grid (.has-side, .part-main, .part-side):
   one column, the card under the level card and the task strip, "What next" under the card. */
.assess-answer .letter { padding: 0; border: 0; background: none; font-size: var(--fs-base); }
.examiner-panel .actions { margin-top: 0; }
.examiner-panel .actions .btn--s { flex: 0 0 auto; }
/* The no-level card on one or two lines on a wide screen. */
@media (min-width: 1024px) {
  .review-productive .level-card { padding: var(--s4) var(--s5); }
  .review-productive .level-card > div { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); }
  .review-productive .level-card .estimate__note, .review-productive .level-card .rated { margin-top: 0; }
}
/* A slim choice row: the task strip and the answer card's views (the owner's principle 4). */
.strip { display: flex; gap: 4px; padding: 4px; background: var(--paper-2); border-radius: 14px; overflow-x: auto; min-width: 0; max-width: 100%; }
.strip button { flex: 0 0 auto; min-height: 44px; padding: 0 14px; border: 0; border-radius: 10px; background: none; font: 700 var(--fs-s) var(--text); color: var(--ink-2); white-space: nowrap; }
.strip button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.strip button.is-marked::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 6px; border-radius: 50%; background: var(--teal); vertical-align: middle; }
.task-strip { justify-self: start; }
.assess-answer > * + * { margin-top: var(--s3); }
.assess-answer .doc-head { margin-bottom: 0; }
.assess-answer .doc-head h3 { font-size: var(--fs-xl); }
.answer-model .models > * + * { margin-top: var(--s4); }
/* Closed sections, one line each with a count, opened in one tap (the owner's choice A). */
.more-list { padding-block: var(--s2); }
.more { border-top: 1px solid var(--line); }
.more-list > .more:first-child, .more-group:first-child > .more:first-child, .more-group > .assess-lessons-slot:first-child .more { border-top: 0; }
.more summary { list-style: none; display: flex; align-items: center; gap: var(--s3); min-height: 48px; cursor: pointer; }
.more summary::-webkit-details-marker { display: none; }
.more summary .pill { margin-left: auto; white-space: nowrap; }
.more summary::after { content: ""; flex: none; width: 9px; height: 9px; margin: 0 6px 4px 0; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); }
.more[open] summary::after { transform: rotate(225deg); margin-bottom: -4px; }
.more__title { font-family: var(--text); font-size: var(--fs-base); font-weight: 700; }
.more__body { padding-bottom: var(--s4); }
.more__body > * + * { margin-top: var(--s3); }
.more .rubric__row:first-of-type { border-top: 0; }
.reasons { display: grid; gap: var(--s2); font-size: var(--fs-m); }
.reasons del { color: var(--coral-deep); }
.reasons ins { text-decoration: none; font-weight: 700; color: var(--teal-deep); }
/* A small button whose explanation opens beside it (principle 2); on a phone, in place on its own line. */
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--paper-2); color: var(--ink); font: 700 var(--fs-s) var(--text); cursor: pointer; }
.chip .i { width: 16px; height: 16px; }
.tip-wrap { position: relative; display: inline-flex; }
.tip { position: absolute; z-index: 5; top: calc(100% + 6px); left: 0; width: min(340px, 80vw); padding: var(--s3) var(--s4); background: var(--ink); color: var(--surface); border-radius: var(--r-m); font-size: var(--fs-s); line-height: 1.5; box-shadow: var(--float); }
.tip .link { color: var(--sun); display: inline-block; margin-top: var(--s2); }
.assess-label { display: flex; }
.assess-suggested { display: flex; align-items: center; gap: 6px; font-size: var(--fs-s); font-weight: 700; color: var(--ink-2); }
.assess-level__why { font-size: var(--fs-l); margin-bottom: var(--s3); }
.assess-next { padding: var(--s4) var(--s5); }
.assess-next h3 { font-size: var(--fs-xl); margin-bottom: var(--s2); }
.assess-next .prios li { grid-template-columns: 32px minmax(0, 1fr); gap: var(--s3); padding-block: var(--s2); }
.assess-next .prios li::before { width: 32px; height: 32px; font-size: var(--fs-base); }
.assess-next h4 { font-size: var(--fs-base); }
.assess-next .prios p { font-size: var(--fs-s); }
.asked { display: grid; }
.asked li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--s3); align-items: start; padding-block: var(--s3); border-top: 1px solid var(--line); }
.asked li:first-child { border-top: 0; padding-top: 0; }
.asked__mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--teal-tint); color: var(--teal-deep); }
.asked--partly .asked__mark { background: var(--sun-tint); color: var(--sun-ink); }
.asked--no .asked__mark { background: var(--coral-tint); color: var(--coral-deep); }
.asked__state { font-weight: 700; }
.asked__quote { margin-top: var(--s1); font-size: var(--fs-s); font-style: italic; color: var(--ink-2); }
.assess-corrected > * + * { margin-top: var(--s3); }
.assess-corrected .corrections .now { display: block; }
/* The answer with each mistake struck and the right words beside it (the owner's mock-up of 2026-11-12). */
.fixed-text { line-height: 2.15; }
.fix del { color: var(--coral-deep); text-decoration-line: line-through; text-decoration-thickness: 2px; background: var(--coral-tint); border-radius: 4px; padding: 1px 3px; }
.fix ins { text-decoration: none; font-weight: 700; color: var(--teal-deep); background: var(--teal-tint); border-radius: 4px; padding: 1px 5px; margin-left: 3px; }
.fix .fix__alt { background: transparent; box-shadow: inset 0 0 0 1px var(--teal-soft); font-weight: 600; }
.fix__or { font-size: var(--fs-xs); color: var(--ink-2); }
.fix--open del, .fix--open ins { outline: 2px solid var(--ink); outline-offset: 1px; }
/* The "i": a small circle at the correction's top right, its tap area 44 by 44 px; the negative margins keep the
   line's height and spacing as if it were the circle alone. */
.fix__i {
  position: relative; z-index: 1; top: -0.6em; display: inline-grid; place-items: center; width: 44px; height: 44px;
  margin: -14px -13px -14px -12px; padding: 0; border: 0; background: none; vertical-align: middle; cursor: pointer;
}
.fix__i span {
  display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--teal); color: var(--teal-deep); font: italic 700 11px/1 Georgia, serif;
}
.fix--open .fix__i span { background: var(--teal); color: var(--surface); }
.fix__why {
  display: block; margin: var(--s2) 0 var(--s3); padding: var(--s3) var(--s4); background: var(--exam-pane);
  border: 1px solid var(--line-2); border-radius: var(--r-m); font-size: var(--fs-m); line-height: 1.5; white-space: normal;
}
.fix__why[hidden] { display: none; }
.fix__kind { display: block; font-size: var(--fs-xs); letter-spacing: .05em; text-transform: uppercase; color: var(--teal-deep); }
/* "No level yet" in the level's place, and its "Why?" (the lead's ruling, 2026-11-18). */
.no-level__line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); }
.no-level__text { min-width: 0; font-family: var(--display); font-weight: 800; }
.no-level--big .no-level__text { white-space: normal; overflow-wrap: anywhere; font-size: var(--fs-2xl); line-height: 1.2; }
/* The level card of a writing or speaking result with no level: one short card (v2). */
.level-card .estimate__note { margin-top: var(--s2); }
.level-card .rated { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s2); }
/* The full model test: one row per skill, each opening its own page (the owner's choice B). */
.results-skills .row-skill { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto 16px; gap: var(--s3); align-items: center; min-height: 64px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.results-skills .row-skill:first-of-type { border-top: 0; }
.results-skills .row-skill__tile { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--teal-tint); color: var(--teal-deep); }
.overall-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2); }
.row-skill__name { font-weight: 700; }
.row-skill__name span { display: block; font-weight: 400; font-size: var(--fs-s); color: var(--ink-2); }
.row-skill__now { font-family: var(--display); font-weight: 800; text-align: end; white-space: nowrap; }
.row-skill__now small { display: block; font-family: var(--text); font-weight: 600; font-size: var(--fs-xs); color: var(--ink-2); }
.results-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; color: var(--teal); text-decoration: none; }
@media (max-width: 760px) {
  .tip-wrap { display: contents; }
  .tip { position: static; flex-basis: 100%; width: auto; }
}

/* ---------- Rate your answer ---------- */
/* The criterion's name sits above its six level buttons, and the row only goes side by side where its box is wide enough for
   both (container query). In the narrow column beside a result (262 to 318 px at 1280 and 1720) the name took no width and was
   drawn one letter per line, and the six 52 px buttons ran out of the box and widened the page. The box is the container, so
   the answer is the same at any window width: six buttons in a row of the box's width, in two rows of three when six would
   be narrower than 44 px. */
.rubric { container-type: inline-size; }
.rubric__row { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: var(--s2); align-items: center; padding-block: var(--s4); border-top: 1px solid var(--line); }
.rubric .hint + .rubric__row { margin-top: var(--s4); }
.rubric__name { font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.rubric__desc { font-size: var(--fs-m); color: var(--ink-2); max-width: 80ch; }
.levels { display: grid; grid-template-columns: repeat(6, minmax(0, 52px)); max-width: 100%; border-radius: 12px; box-shadow: inset 0 0 0 2px var(--line-2); background: var(--surface); }
.levels__btn {
  min-height: 44px; padding: 0; border: 0; border-inline-start: 2px solid var(--line-2); background: none;
  font-family: var(--display); font-weight: 700; font-variant-numeric: tabular-nums;
}
.levels__btn:first-child { border-inline-start: 0; border-radius: 12px 0 0 12px; }
.levels__btn:last-child { border-radius: 0 12px 12px 0; }
.levels__btn[aria-pressed="true"] { background: var(--teal); color: var(--surface); }
@container (min-width: 520px) {
  .rubric__row { grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s5); }
  .rubric__desc { grid-column: 1 / -1; }
}
@container (max-width: 287px) {
  .levels { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: var(--s2); box-shadow: none; background: none; }
  .levels__btn, .levels__btn:first-child, .levels__btn:last-child { border: 2px solid var(--line-2); border-radius: 12px; background: var(--surface); }
  .levels__btn[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: var(--surface); }
}

/* ---------- Answer review for listening and reading ---------- */
.review-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s5); margin: var(--s6) 0 var(--s3); }
.review-part > h2 { margin-bottom: var(--s4); }
.review-split { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); gap: var(--s6); align-items: start; }
.review-split.is-single { grid-template-columns: minmax(0, 1fr); max-width: 720px; }
.review-stimulus {
  position: sticky; top: var(--s4); max-height: calc(100vh - 32px); overflow-y: auto; overscroll-behavior: contain;
  padding: var(--s5); border-radius: var(--r-m); background: var(--paper); font-size: var(--fs-l); line-height: 1.7;
}
.review-questions { display: grid; gap: var(--s6); }

/* ================= Responsive ================= */
@media (max-width: 1180px) {
  .estimate { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
}
@media (max-width: 860px) {
  .reward { align-self: start; }
  .crit-head { display: none; }
  .crit { grid-template-columns: minmax(0, 1fr) auto; row-gap: var(--s2); padding-block: var(--s3); }
  .crit .scale, .crit .bar { grid-column: 1 / -1; grid-row: 2; }
  .crit__val { grid-column: 2; grid-row: 1; }
  .letter { padding: var(--s5) var(--s4); font-size: var(--fs-base); line-height: 1.75; }
  .letter--model { padding: var(--s4); }
  .errs__row { grid-template-columns: 28px minmax(0, 1fr) auto; row-gap: 0; }
  .errs__type { grid-column: 2; grid-row: 1; }
  .errs__fix { grid-column: 2; grid-row: 2; }
  .errs__n { grid-row: 1 / span 2; }
  .errs__row > .i { grid-column: 3; grid-row: 1 / span 2; }
  .explain { padding: var(--s4); }
  .explain dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .block-teal { padding: var(--s5) var(--s4); border-radius: 20px; }
  .prios li { grid-template-columns: 44px minmax(0, 1fr); gap: var(--s3); }
  .prios li::before { width: 44px; height: 44px; font-size: 1.375rem; }
  /* Its words may wrap, so a long label never widens the page ("Write a second draft with one fix", STORY-03.17.2). */
  .actions .btn { flex: 1 1 100%; white-space: normal; }
  .actions p { margin-inline-start: 0; }
  .review-split { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .review-stimulus { position: static; max-height: 46vh; padding: var(--s4); font-size: var(--fs-base); }
  /* The player in a result's passage box at a phone's width: its status badge gives way (cut with "…") before the row
     overflows, so back 5 seconds and the speed stay in the box (04.48 review M5's measure found the speed cut off). */
  .review-stimulus .audio-badge--line { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; display: block; line-height: 24px; }
  .review-productive > .review-part + .review-part { margin-top: var(--s2); padding-top: var(--s6); }
}
