.exr {max-width:1200px; margin-inline:auto; color:var(--ink)}
.exr-heading {display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:18px}
.exr-heading h1 {margin:8px 0 0; font-variant-numeric:lining-nums}
.exr-heading h1 span {color:var(--leaf-edge)}
.exr-heading-actions,.exr-timer {display:flex; align-items:center; flex-wrap:wrap; gap:12px}
.exr-timer {gap:6px}
.exr-timer [role=timer] {font-variant-numeric:tabular-nums; color:var(--teal); font-weight:550}
.exr-timer .exr-expired {color:var(--warm-ink)}
.exr-back,.exr-text-link {display:inline-flex; align-items:center; gap:5px; color:var(--teal); font:inherit; font-size:.88rem; font-weight:550}
.exr-back {text-decoration:none}
.exr-back:hover,.exr-text-link:hover {text-decoration:underline}
.exr-back .ico,.exr-page-arrows .ico {width:15px; height:15px}
.exr-back .ico,.exr-page-arrows button:first-child .ico {transform:rotate(180deg)}
.exr-text-link {border:0; padding:0; background:none; text-underline-offset:3px}
.exr-playerbar {display:flex; align-items:center; gap:16px; padding:8px 16px; background:var(--leaf-wash); border:1px solid var(--line); border-radius:12px}
.exr-playerbar>span {display:inline-flex; align-items:center; gap:7px; font-size:.9rem; color:var(--teal); font-weight:600}
.exr-playerbar .ss-page {flex:1; min-width:0; margin:0}
.exr-playerbar .ss-player {margin:0}
.exr-sections {display:flex; align-items:stretch; gap:6px; border-bottom:1px solid var(--line); margin:16px 0; scroll-margin-top:10px}
.exr-sections button {display:flex; align-items:baseline; flex-wrap:wrap; gap:7px; justify-content:center; padding:10px 13px; border:0; border-bottom:3px solid transparent; background:var(--surface); color:var(--muted); border-radius:7px 7px 0 0; font-weight:500}
.exr-sections small,.exr-sheet-heading>span {color:var(--muted); font-weight:400; font-size:.78rem; white-space:nowrap}
.exr-layout {display:grid; grid-template-columns:minmax(0,1.65fr) minmax(280px,1fr); gap:clamp(12px,1.6vw,22px); align-items:start}
.exr-mobile-switch {display:none}
.exr-paper,.exr-answers,.exr-result {background:var(--surface); border:1px solid var(--line); border-radius:14px; min-width:0}
.exr-paper {overflow:hidden}
.exr-paper-tools,.exr-sheet-heading,.exr-result header {display:flex; align-items:center; justify-content:space-between; gap:9px; flex-wrap:wrap}
.exr-paper-tools {padding:9px 12px; border-bottom:1px solid var(--line)}
.exr-paper-tools label,.exr-results-filter label {display:flex; align-items:center; gap:7px; font-size:.86rem; color:var(--muted)}
.exr select,.exr-writing {background:var(--raised); border:1px solid var(--line); border-radius:7px; color:var(--ink)}
.exr select {font:inherit; padding:6px 8px; min-height:36px; max-width:100%}
.exr-page-arrows {display:flex; gap:4px}
.exr-page-arrows button {border:1px solid var(--line); background:var(--raised); color:var(--ink); border-radius:7px; min-width:36px; height:36px; display:grid; place-items:center}
.exr-page-arrows button:disabled {opacity:.38; cursor:default}
.exr-scan-link {display:block; position:relative; cursor:zoom-in; text-decoration:none; background:#fff}
.exr-scan-link img {display:block; width:100%; height:auto}
.exr-scan-link>span {display:block; padding:5px 12px; font-size:.78rem; text-align:end; color:var(--teal); background:var(--inset)}
.exr-answers {padding:clamp(12px,1.6vw,22px); position:sticky; top:10px}
.exr h2 {margin:0; font:600 1.23rem/1.25 var(--sans); letter-spacing:-.02em}
.exr [data-exr-progress] {margin:12px 0}
.exr [data-exr-progress]:empty {margin:8px 0}
.exr .exr-count,.exr-breakdown li {display:flex; align-items:baseline; justify-content:space-between; gap:6px; color:var(--muted)}
.exr .exr-count {font-size:.82rem}
.exr .exr-count b,.exr-breakdown b {color:var(--ink); font-variant-numeric:tabular-nums; font-weight:550}
.exr progress {display:block; appearance:none; border:0; height:5px; width:100%; background:var(--track-empty); color:var(--teal); border-radius:5px; overflow:hidden}
.exr .exr-count+progress {margin-top:5px}
.exr progress::-webkit-progress-bar {background:var(--track-empty)}
.exr progress::-webkit-progress-value {background:var(--teal); border-radius:5px}
.exr progress::-moz-progress-bar {background:var(--teal); border-radius:5px}
.exr-answer-row,.exr-review-row {border:0; border-top:1px solid var(--line); padding:9px 0; margin:0; min-width:0}
.exr-answer-row>div {display:grid; grid-template-columns:27px minmax(0,1fr); gap:8px; align-items:center}
.exr-qnum {color:var(--muted); font-size:.87rem; font-variant-numeric:tabular-nums}
.exr-choices {display:flex; gap:5px; flex-wrap:wrap}
.exr-choices label {position:relative; cursor:pointer}
.exr-choices input {position:absolute; opacity:0; width:100%; height:100%; inset:0; margin:0; cursor:pointer}
.exr-choices span,.exr-mark button,.exr [data-exr-links] button {display:grid; place-items:center; min-width:34px; min-height:34px; padding:4px 7px; color:var(--ink); background:var(--raised); border:1px solid var(--line); border-radius:7px; font-size:.9rem}
.exr-choices input:hover+span,.exr-page-arrows button:not(:disabled):hover,.exr [data-exr-links] button:hover {border-color:var(--teal)}
.exr-choices input:checked+span,.exr-mark button[aria-pressed=true] {background:var(--button-fill); border-color:var(--button-fill); color:var(--button-ink)}
.exr-choices input:focus-visible+span {outline:3px solid var(--focus-ring); outline-offset:2px}
.exr-writing {width:100%; min-height:37px; padding:5px 9px; font:400 1.16rem/1.4 var(--sans)}
.exr [data-exr-footer],.exr-result-actions,.exr-dialog>div {display:flex; flex-wrap:wrap; align-items:center; gap:8px}
.exr [data-exr-footer]:not(:empty) {padding-top:12px; border-top:1px solid var(--line)}
.exr [data-exr-action=finish] {margin-inline-start:auto}
.exr-result {margin-bottom:16px; padding:clamp(14px,2vw,28px)}
.exr-result h2 {font:500 clamp(1.6rem,2.6vw,2.3rem)/1.16 var(--serif)}
.exr-result header p {margin:5px 0 0; color:var(--muted)}
.exr-result header strong {margin-inline-start:5px; color:var(--teal); font-variant-numeric:tabular-nums}
.exr-breakdown {list-style:none; display:grid; grid-template-columns:repeat(auto-fit,minmax(min(160px,100%),1fr)); gap:10px; margin:16px 0; padding:0}
.exr-breakdown li {flex-wrap:wrap; background:var(--inset); padding:10px 13px; border-radius:8px; font-size:.87rem}
.exr-breakdown progress {flex-basis:100%}
.exr-pending {color:var(--gold-ink); background:var(--mist-gold); border-radius:8px; padding:9px 12px; font-size:.88rem}
.exr-pending button {margin-inline-start:8px}
.exr [data-exr-links],.exr-mark {display:flex; flex-wrap:wrap; align-items:center; gap:5px; margin-top:8px}
.exr [data-exr-links] {max-height:140px; overflow:auto; padding:3px; color:var(--muted); font-size:.87rem}
.exr-review-row header {display:flex; align-items:center; justify-content:space-between; gap:4px}
.exr-review-row:focus {outline:2px solid var(--teal); outline-offset:2px; border-radius:4px}
.exr-review-row dl {margin:6px 0 0; display:grid; grid-template-columns:auto minmax(0,1fr); gap:4px 11px; align-items:baseline}
.exr-review-row dt {color:var(--muted); font-size:.82rem}
.exr-review-row dd {margin:0; overflow-wrap:anywhere; white-space:pre-wrap}
.exr-status {color:var(--muted); font-size:.8rem; font-weight:550}
.exr-status[data-kind=correct] {color:var(--teal)}
.exr-status[data-kind=wrong] {color:var(--warm-ink)}
.exr-status[data-kind=pending] {color:var(--gold-ink)}
.exr-mark p {flex-basis:100%; margin:0; font-size:.8rem; color:var(--muted)}
.exr-mark button {min-height:32px; font-size:.82rem}
.exr-dialog {max-width:min(430px,calc(100vw - 30px)); padding:24px; border:1px solid var(--line); border-radius:14px; background:var(--surface); color:var(--ink); box-shadow:0 16px 48px #10231e40}
.exr-dialog::backdrop {background:rgb(14 27 23 / 65%)}
.exr-dialog p {color:var(--muted); line-height:1.5}
@media(max-width:800px) {
  .exr-layout {grid-template-columns:minmax(0,1.25fr) minmax(232px,1fr)}
  .exr-choices span {min-width:31px}
}
@media(max-width:650px) {
  .exr-layout {grid-template-columns:minmax(0,1fr)}
  .exr-mobile-switch {position:sticky; top:0; z-index:2; display:grid; grid-template-columns:1fr 1fr; gap:3px; padding:4px; border:1px solid var(--line); border-radius:9px; background:var(--inset)}
  .exr-mobile-switch button {background:transparent; color:var(--muted); border:0; border-radius:6px; min-height:34px; font-size:.9rem}
  .exr-mobile-switch [aria-pressed=true] {background:var(--button-fill); color:var(--button-ink)}
  .exr-layout[data-pane=paper] .exr-answers,.exr-layout[data-pane=answers] .exr-paper {display:none}
  .exr-answers {position:static}
  .exr-playerbar {display:block; padding:8px}
  .exr-playerbar>span {margin:0 0 5px 4px}
  .exr-sections {gap:3px}
  .exr-sections button {flex:1 1 auto; gap:3px; padding:8px 4px; font-size:.9rem}
  .exr-sections small {font-size:.68rem}
  .exr-choices span {min-width:38px; min-height:40px}
  .exr-answer-row {padding:7px 0}
}
