@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  color-scheme: light;
  --ink: #183a33;
  --ink-deep: #102a26;
  --ink-soft: #49615b;
  --muted: #7d8b84;
  --paper: #f3f4ef;
  --white: #fff;
  --line: #dce2d9;
  --line-dark: #c5d0c6;
  --green: #285e4f;
  --green-bright: #4c8068;
  --lime: #d6f27c;
  --coral: #ef795f;
  --coral-pale: #f9e5dc;
  --mint-pale: #e6eee5;
  --shadow: 0 22px 55px rgba(24, 58, 51, .08);
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--paper); }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
button:disabled { cursor: wait; opacity: .68; }
[hidden] { display: none !important; }
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar { min-height: 76px; padding: 0 clamp(20px, 5vw, 76px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; background: var(--ink-deep); color: #fff; }
.brand { color: #fff; display: inline-flex; align-items: center; gap: 11px; text-decoration: none; width: fit-content; font-family: 'Space Grotesk', sans-serif; font-size: 18px; font-weight: 700; }
.brand-light { color: var(--lime); font-weight: 500; }
.brand-mark { width: 25px; height: 25px; display: flex; align-items: end; gap: 3px; transform: skew(-14deg); }
.brand-mark span { width: 6px; background: var(--lime); border-radius: 2px 2px 1px 1px; }
.brand-mark span:nth-child(1) { height: 12px; opacity: .65; }
.brand-mark span:nth-child(2) { height: 19px; }
.brand-mark span:nth-child(3) { height: 25px; opacity: .8; }
.main-nav { display: flex; align-items: center; gap: 5px; height: 100%; }
.nav-button { height: 100%; padding: 0 17px; border: 0; background: transparent; color: rgba(255,255,255,.65); border-bottom: 2px solid transparent; cursor: pointer; font-size: 13px; font-weight: 600; transition: color .18s, border-color .18s; }
.nav-button:hover, .nav-button.is-active { color: #fff; }
.nav-button.is-active { border-color: var(--lime); }
.history-count { min-width: 19px; margin-left: 4px; padding: 2px 5px; display: inline-block; border-radius: 10px; background: rgba(255,255,255,.13); color: var(--lime); font-size: 10px; text-align: center; }
.topbar-status { justify-self: end; display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.72); font-size: 11px; font-weight: 600; letter-spacing: .03em; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px rgba(214,242,124,.12); }
#main-content { width: 100%; max-width: 1440px; flex: 1; margin: 0 auto; padding: 54px clamp(20px, 7vw, 104px) 72px; }
.view { animation: arrive .38s ease both; }
@keyframes arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.view-heading { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin: 0 0 42px; }
.eyebrow { margin: 0 0 13px; color: var(--green); font-size: 10px; font-weight: 700; letter-spacing: .15em; }
.eyebrow-line { display: inline-block; width: 24px; height: 1px; margin: 0 8px 3px 0; background: var(--coral); }
h1, h2, p { overflow-wrap: anywhere; }
h1, h2 { font-family: 'Space Grotesk', 'Segoe UI', sans-serif; }
.view-heading h1, .results-heading h1, .history-heading h1 { margin: 0; font-size: clamp(43px, 5vw, 68px); line-height: .99; font-weight: 600; letter-spacing: 0; }
.view-heading h1 span, .results-heading h1 span, .history-heading h1 span { color: var(--green-bright); }
.lede { max-width: 485px; margin: 18px 0 0; color: var(--ink-soft); font-size: 15px; line-height: 1.65; }
.heading-stamp { min-width: 156px; display: flex; align-items: center; gap: 13px; padding: 12px 0 12px 17px; border-left: 1px solid var(--line-dark); color: var(--green); font-size: 9px; font-weight: 700; letter-spacing: .12em; line-height: 1.5; }
.stamp-number { color: var(--coral); font-family: 'Space Grotesk', sans-serif; font-size: 30px; font-weight: 600; letter-spacing: 0; }
.setup-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(245px, .78fr); gap: clamp(32px, 6vw, 90px); align-items: start; }
.setup-form { padding: 26px clamp(20px, 3.3vw, 44px) 30px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; padding-bottom: 23px; border-bottom: 1px solid var(--line); }
.form-heading .eyebrow { margin-bottom: 6px; }
.form-heading h2, .rail-heading h2 { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: 0; }
.form-step { color: var(--ink); font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 700; }
.form-step span { color: var(--muted); font-weight: 400; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 21px 17px; padding: 25px 0 22px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field-label { color: var(--ink-soft); font-size: 11px; font-weight: 700; }
.field input, .field select, .timer-length select { width: 100%; min-height: 47px; padding: 0 13px; border: 1px solid var(--line-dark); border-radius: 3px; background-color: #fff; color: var(--ink); font-size: 13px; }
.field input::placeholder { color: #a1aca5; }
.field input:focus, .field select:focus, .timer-length select:focus { border-color: var(--green); outline: 2px solid rgba(40,94,79,.12); }
.timer-setting { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.toggle-control { display: inline-flex; align-items: center; gap: 11px; cursor: pointer; }
.toggle-control input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.toggle-track { width: 34px; height: 19px; padding: 2px; display: inline-flex; align-items: center; border-radius: 99px; background: var(--line-dark); transition: background .2s; }
.toggle-track span { width: 15px; height: 15px; border-radius: 50%; background: #fff; transition: transform .2s; }
.toggle-control input:checked + .toggle-track { background: var(--green); }
.toggle-control input:checked + .toggle-track span { transform: translateX(15px); }
.toggle-control input:focus-visible + .toggle-track { outline: 3px solid var(--coral); outline-offset: 2px; }
.toggle-copy { display: grid; gap: 3px; }
.toggle-copy strong { font-size: 12px; }
.toggle-copy small { color: var(--muted); font-size: 10px; }
.timer-length select { width: auto; min-height: 36px; padding: 0 9px; font-size: 11px; }
.timer-length select:disabled { color: #99a49d; background: #f4f5f1; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 22px; }
.form-note { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.sparkle { margin-right: 3px; color: var(--coral); }
.button { min-height: 46px; padding: 0 17px; display: inline-flex; align-items: center; justify-content: center; gap: 23px; border: 1px solid transparent; border-radius: 3px; cursor: pointer; font-size: 12px; font-weight: 700; transition: transform .17s, background .17s, color .17s; }
.button:hover:not(:disabled) { transform: translateY(-2px); }
.button-primary { background: var(--ink); color: #fff; }
.button-primary:hover:not(:disabled) { background: var(--green); }
.button-arrow { color: var(--lime); font-size: 17px; line-height: 1; }
.form-error, .inline-error { margin: 12px 0 0; color: #a84938; font-size: 12px; line-height: 1.5; }
.side-rail { padding-top: 6px; }
.rail-heading { display: flex; align-items: end; justify-content: space-between; gap: 14px; padding-bottom: 17px; border-bottom: 1px solid var(--line-dark); }
.rail-heading .eyebrow { margin-bottom: 7px; }
.rail-heading h2 { font-size: 17px; }
.text-button { padding: 5px 0; border: 0; background: transparent; color: var(--green); cursor: pointer; font-size: 10px; font-weight: 700; white-space: nowrap; }
.text-button:hover { color: var(--coral); }
.recent-list { min-height: 105px; }
.empty-recent { margin: 18px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.recent-item, .history-item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.recent-item:hover .recent-role, .history-item:hover .recent-role { color: var(--green-bright); }
.recent-score { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--mint-pale); color: var(--green); font-family: 'Space Grotesk', sans-serif; font-size: 12px; font-weight: 700; }
.recent-copy { min-width: 0; flex: 1; display: grid; gap: 4px; }
.recent-role { overflow: hidden; color: var(--ink); font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.recent-meta { color: var(--muted); font-size: 10px; }
.recent-chevron { color: var(--muted); font-size: 15px; }
.rail-note { margin-top: 35px; padding: 17px 0 0; display: flex; gap: 13px; border-top: 1px solid var(--line-dark); }
.note-mark { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; background: var(--coral-pale); color: #ad523c; font-family: 'Space Grotesk', sans-serif; font-size: 11px; font-weight: 700; }
.rail-note strong { font-family: 'Space Grotesk', sans-serif; font-size: 12px; }
.rail-note p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.app-footer { width: 100%; min-height: 54px; margin-top: auto; padding: 13px clamp(20px, 7vw, 104px); display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; letter-spacing: .045em; }
.app-footer > span:first-child { font-weight: 700; }
.footer-dot { padding: 0 5px; color: var(--coral); }
.support-link { min-height: 38px; padding: 5px 12px 5px 7px; display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 999px; background: #fff; box-shadow: 0 5px 16px rgba(24,58,51,.08); color: var(--ink); font-size: 10px; letter-spacing: 0; text-decoration: none; transition: border-color .18s, box-shadow .18s, transform .18s; }
.support-link:hover { transform: translateY(-1px); border-color: #d6a18e; box-shadow: 0 7px 20px rgba(24,58,51,.12); }
.support-mark { width: 24px; height: 24px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--coral-pale); color: #a2513e; font-family: 'Space Grotesk', sans-serif; font-size: 11px; font-weight: 700; }
.support-link strong { color: var(--green); font-weight: 700; }
.support-arrow { color: var(--coral); font-size: 14px; }

/* Interview round */
.session-topline, .results-topline, .history-topline { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.back-button { padding: 5px 0; display: inline-flex; align-items: center; gap: 9px; border: 0; background: transparent; color: var(--ink-soft); cursor: pointer; font-size: 11px; font-weight: 600; }
.back-button:hover { color: var(--coral); }
.back-button > span { font-size: 16px; }
.session-meta { display: flex; align-items: center; gap: 9px; color: var(--ink-soft); font-size: 11px; font-weight: 600; }
.meta-divider { color: var(--line-dark); }
.mode-chip { padding: 5px 8px; border: 1px solid #dfb1a2; background: var(--coral-pale); color: #934c3a; font-size: 8px; font-weight: 700; letter-spacing: .1em; }
.progress-row { margin: 30px 0 46px; }
.progress-label { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .1em; }
.progress-label span:first-child { color: var(--green); }
.progress-track { height: 4px; overflow: hidden; background: #dce3da; }
.progress-track span { height: 100%; display: block; background: var(--coral); transition: width .3s; }
.interview-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .86fr); gap: clamp(35px, 7vw, 100px); align-items: start; }
.question-column { padding-top: 4px; }
.question-kicker { display: flex; align-items: center; gap: 11px; margin-bottom: 22px; }
.question-index { color: var(--coral); font-family: 'Space Grotesk', sans-serif; font-size: 11px; font-weight: 700; }
.category-tag { padding: 5px 7px; border: 1px solid var(--line-dark); color: var(--ink-soft); font-size: 8px; font-weight: 700; letter-spacing: .1em; }
.question-block[aria-busy="true"] h1 { color: var(--muted); }
.question-block .eyebrow { margin-bottom: 15px; }
.question-block h1 { max-width: 710px; margin: 0; font-size: clamp(30px, 4vw, 49px); font-weight: 500; line-height: 1.18; letter-spacing: 0; }
.question-aside { max-width: 380px; margin-top: 43px; display: flex; align-items: start; gap: 12px; }
.aside-rule { width: 22px; height: 1px; flex: 0 0 auto; margin-top: 8px; background: var(--coral); }
.question-aside p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.answer-column { padding: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.answer-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.answer-heading label { font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 700; }
.answer-heading > span { color: var(--muted); font-size: 10px; }
#answer-input { width: 100%; min-height: 195px; resize: vertical; padding: 14px; border: 1px solid var(--line-dark); border-radius: 2px; background: #fbfcf9; color: var(--ink); font-size: 13px; line-height: 1.7; }
#answer-input::placeholder { color: #9ba89f; }
#answer-input:disabled { color: var(--ink-soft); background: #f5f7f2; }
.answer-tools { min-height: 35px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.answer-help { color: var(--muted); font-size: 9px; line-height: 1.4; }
.timer-display { color: var(--green); font-family: 'Space Grotesk', sans-serif; font-size: 12px; font-weight: 700; white-space: nowrap; }
.timer-display.is-low { color: #b64f3e; }
.timer-icon { margin-right: 4px; font-size: 16px; vertical-align: -1px; }
.answer-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 11px; border-top: 1px solid var(--line); }
.shortcut-hint { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 9px; }
kbd { min-width: 20px; padding: 3px 4px; border: 1px solid var(--line); border-radius: 2px; background: #f6f7f3; color: var(--ink-soft); font: inherit; text-align: center; }
.button-submit { min-height: 38px; padding: 0 12px; gap: 16px; background: var(--coral); color: #fff; font-size: 11px; }
.button-submit:hover:not(:disabled) { background: #d96650; }
.feedback-panel { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); animation: arrive .3s ease both; }
.feedback-topline { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.feedback-topline .eyebrow { margin-bottom: 5px; }
.feedback-topline h2 { margin: 0; font-size: 19px; }
.round-score { color: var(--muted); white-space: nowrap; }
.round-score strong { color: var(--ink); font-family: 'Space Grotesk', sans-serif; font-size: 25px; }
.round-score span { font-size: 9px; }
.feedback-summary { margin: 14px 0; color: var(--ink-soft); font-size: 11px; line-height: 1.65; }
.rubric-list { display: grid; gap: 10px; }
.rubric-row { display: grid; grid-template-columns: 87px 1fr 34px; gap: 10px; align-items: center; }
.rubric-name { color: var(--ink-soft); font-size: 9px; font-weight: 600; }
.rubric-track { height: 4px; background: #e6eae3; }
.rubric-track span { height: 100%; display: block; background: var(--green-bright); }
.rubric-score { color: var(--ink); font-family: 'Space Grotesk', sans-serif; font-size: 10px; font-weight: 700; text-align: right; }
.rubric-evidence { grid-column: 2 / -1; margin-top: -6px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.feedback-insight { margin-top: 16px; padding: 10px 11px; display: flex; align-items: start; gap: 10px; background: var(--mint-pale); }
.improvement-insight { background: #f7ede7; }
.insight-label { min-width: 51px; padding-top: 2px; color: var(--green); font-size: 8px; font-weight: 700; letter-spacing: .08em; }
.improvement-insight .insight-label { color: #a2513e; }
.feedback-insight p { margin: 0; color: var(--ink-soft); font-size: 10px; line-height: 1.55; }
.next-button { width: 100%; min-height: 42px; margin-top: 16px; justify-content: space-between; }
.next-button span:last-child { color: var(--lime); font-size: 17px; }

/* Results and session history */
.results-heading, .history-heading { margin: 36px 0 31px; }
.results-heading .eyebrow, .history-heading .eyebrow { margin-bottom: 12px; }
.results-heading h1, .history-heading h1 { font-size: clamp(43px, 5vw, 62px); }
.results-heading .lede, .history-heading .lede { margin-top: 12px; font-size: 13px; }
.results-overview { display: grid; grid-template-columns: minmax(220px, .7fr) minmax(320px, 1.3fr); gap: 32px; padding: 25px 28px; background: var(--ink); color: #fff; }
.overall-score-block { display: flex; flex-direction: column; justify-content: center; padding-right: 25px; border-right: 1px solid rgba(255,255,255,.17); }
.score-label { color: rgba(255,255,255,.63); font-size: 9px; font-weight: 700; letter-spacing: .1em; }
.overall-score { margin-top: 8px; color: var(--lime); line-height: 1; }
.overall-score strong { font-family: 'Space Grotesk', sans-serif; font-size: 68px; font-weight: 500; }
.overall-score span { margin-left: 5px; color: rgba(255,255,255,.55); font-size: 13px; }
.overall-score-block > p { margin: 8px 0 0; color: rgba(255,255,255,.69); font-size: 10px; }
.breakdown-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.breakdown-heading h2 { margin: 0; font-size: 15px; }
.breakdown-heading span { color: rgba(255,255,255,.55); font-size: 9px; }
#overall-rubric { display: grid; gap: 13px; }
.overall-row { display: grid; grid-template-columns: 88px minmax(40px, 1fr) 42px; gap: 12px; align-items: center; }
.overall-row .rubric-name { color: rgba(255,255,255,.72); }
.overall-row .rubric-track { background: rgba(255,255,255,.16); }
.overall-row .rubric-track span { background: var(--lime); }
.overall-row .rubric-score { color: #fff; }
.results-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 17px 0 43px; }
.result-note { min-height: 122px; padding: 19px; display: flex; align-items: start; gap: 14px; border: 1px solid var(--line); background: #fff; }
.strength-note .result-note-icon { color: var(--green-bright); background: var(--mint-pale); }
.focus-note .result-note-icon { color: #a2513e; background: var(--coral-pale); }
.result-note-icon { width: 27px; height: 27px; flex: 0 0 auto; display: grid; place-items: center; font-family: 'Space Grotesk', sans-serif; font-size: 15px; font-weight: 700; }
.result-note .eyebrow { margin: 1px 0 6px; font-size: 8px; }
.result-note h2 { margin: 0; font-size: 15px; }
.result-note p:last-child { margin: 5px 0 0; color: var(--ink-soft); font-size: 10px; line-height: 1.55; }
.review-heading, .history-list-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line-dark); }
.review-heading .eyebrow { margin-bottom: 5px; }
.review-heading h2, .history-list-heading h2 { margin: 0; font-size: 21px; }
.button-secondary { min-height: 38px; padding: 0 12px; gap: 12px; border-color: var(--line-dark); background: transparent; color: var(--ink); font-size: 10px; }
.button-secondary:hover { border-color: var(--ink); }
.review-item { padding: 18px 0; display: grid; grid-template-columns: 60px 1fr; gap: 17px; border-bottom: 1px solid var(--line); }
.review-number { color: var(--coral); font-family: 'Space Grotesk', sans-serif; font-size: 11px; font-weight: 700; }
.review-question { margin: 0; font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 600; line-height: 1.5; }
.review-answer { margin: 7px 0 0; color: var(--ink-soft); font-size: 11px; line-height: 1.65; white-space: pre-wrap; }
.review-feedback { margin-top: 10px; padding: 10px 12px; border-left: 2px solid var(--green-bright); background: #eaf0e8; color: var(--ink-soft); font-size: 10px; line-height: 1.6; }
.review-score { float: right; padding-left: 10px; color: var(--green); font-family: 'Space Grotesk', sans-serif; font-size: 11px; font-weight: 700; }
.history-heading { margin-top: 35px; }
.history-summary { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 37px; border: 1px solid var(--line); background: #fff; }
.history-stat { padding: 17px 20px; border-right: 1px solid var(--line); }
.history-stat:last-child { border: 0; }
.history-stat span { display: block; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.history-stat strong { display: block; margin-top: 7px; color: var(--ink); font-family: 'Space Grotesk', sans-serif; font-size: 25px; font-weight: 600; }
.history-list-heading { align-items: center; }
.danger-text { color: #a2513e; }
.history-list { padding-top: 2px; }
.history-item { padding: 17px 4px; }
.history-item .recent-score { width: 44px; height: 44px; }
.history-item-main { flex: 1; min-width: 0; }
.history-item .recent-role { font-size: 13px; }
.history-detail { margin-top: 5px; color: var(--muted); font-size: 10px; }
.history-date { color: var(--muted); font-size: 10px; white-space: nowrap; }
.empty-history { margin: 20px 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 850px) {
  #main-content { padding-top: 42px; }
  .setup-layout { grid-template-columns: minmax(0, 1.45fr) minmax(205px, .75fr); gap: 30px; }
  .interview-layout { grid-template-columns: 1fr; gap: 31px; }
  .question-block h1 { max-width: 680px; }
  .question-aside { margin-top: 23px; }
}
@media (max-width: 620px) {
  .topbar { min-height: 64px; grid-template-columns: 1fr auto; gap: 8px; padding: 0 17px; }
  .brand { font-size: 16px; }
  .brand-mark { transform: scale(.9) skew(-14deg); transform-origin: left center; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; height: 40px; margin: -6px -17px 0; padding: 0 13px; background: rgba(0,0,0,.12); }
  .nav-button { padding: 0 14px; font-size: 11px; }
  .topbar-status { grid-column: 2; grid-row: 1; }
  #main-content { padding: 34px 18px 47px; }
  .view-heading { margin-bottom: 28px; }
  .view-heading h1 { font-size: 47px; }
  .view-heading .lede { max-width: 330px; font-size: 13px; }
  .heading-stamp { display: none; }
  .setup-layout { grid-template-columns: 1fr; gap: 34px; }
  .setup-form { padding: 21px 18px 22px; }
  .field-grid { gap: 17px 11px; }
  .field input, .field select { min-height: 44px; padding: 0 10px; font-size: 12px; }
  .form-footer { align-items: start; flex-direction: column; }
  .form-footer .button { width: 100%; justify-content: space-between; }
  .side-rail { padding: 0 2px; }
  .rail-note { margin-top: 23px; }
  .app-footer { align-items: start; flex-direction: column; gap: 5px; padding: 13px 18px; font-size: 8px; }
  .session-topline { align-items: start; flex-direction: column; gap: 8px; }
  .session-meta { flex-wrap: wrap; font-size: 10px; }
  .progress-row { margin: 22px 0 30px; }
  .question-block h1 { font-size: 34px; }
  .question-aside { margin-top: 20px; }
  .answer-column { padding: 16px; }
  #answer-input { min-height: 180px; }
  .answer-footer { align-items: end; }
  .shortcut-hint { max-width: 100px; flex-wrap: wrap; }
  .button-submit { gap: 9px; }
  .results-heading, .history-heading { margin: 28px 0 24px; }
  .results-heading h1, .history-heading h1 { font-size: 48px; }
  .results-overview { grid-template-columns: 1fr; gap: 23px; padding: 20px; }
  .overall-score-block { padding: 0 0 18px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.17); }
  .overall-score strong { font-size: 57px; }
  .breakdown-heading { align-items: start; flex-direction: column; gap: 5px; }
  .results-notes { grid-template-columns: 1fr; gap: 10px; margin: 12px 0 32px; }
  .result-note { min-height: auto; padding: 15px; }
  .review-heading { align-items: start; flex-direction: column; }
  .review-heading .button { width: 100%; justify-content: space-between; }
  .review-item { grid-template-columns: 42px 1fr; gap: 9px; }
  .history-summary { grid-template-columns: 1fr; }
  .history-stat { display: flex; align-items: center; justify-content: space-between; padding: 12px 15px; border-right: 0; border-bottom: 1px solid var(--line); }
  .history-stat strong { margin: 0; font-size: 20px; }
  .history-item { gap: 10px; }
  .history-date { display: none; }
  .overall-row { grid-template-columns: 78px minmax(35px, 1fr) 38px; gap: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}