@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/geist-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/geist-mono-latin.woff2") format("woff2");
}

:root {
  --bg: #031a16;
  --bg-raised: #052e25;
  --panel: #082f27;
  --panel-soft: #0b3b30;
  --panel-strong: #041f1a;
  --border: #1f5144;
  --border-strong: #3d6b5c;
  --text: #f4f0df;
  --muted: #b4c1b5;
  --subtle: #82968c;
  --accent: #d2a52c;
  --accent-strong: #2d9b73;
  --accent-ink: #031a16;
  --blue: #da3c91;
  --blue-soft: rgba(218, 60, 145, 0.12);
  --site-signal: #d2a52c;
  --site-signal-soft: rgba(210, 165, 44, 0.14);
  --danger: #ff7d87;
  --danger-soft: rgba(255, 125, 135, 0.11);
  --warning: #f6c45d;
  --correct: #67d18d;
  --incorrect: #ff838e;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --focus: 0 0 0 4px rgba(218, 60, 145, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 18% -10%, rgba(45, 155, 115, 0.22), transparent 34rem),
    radial-gradient(circle at 95% 15%, var(--site-signal-soft), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: "Geist", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button,
select,
input[type="checkbox"] {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible,
[tabindex="-1"]:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  box-shadow: var(--focus);
}

a {
  color: #e2c766;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: -0.025em;
  line-height: 1.15;
}

h1 {
  max-width: 760px;
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h2 {
  margin-bottom: 8px;
  font-size: clamp(1.55rem, 2.7vw, 2.25rem);
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

[hidden] {
  display: none !important;
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 0.15s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(210, 165, 44, 0.3);
  background: rgba(3, 26, 22, 0.9);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  border: 1px solid var(--site-signal);
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
}

.brand-copy strong,
.brand-copy small {
  display: block;
}

.brand-copy strong {
  font-size: 1.02rem;
}

.brand-copy small {
  margin-top: 1px;
  color: var(--site-signal);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tool-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--site-signal);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.tool-switch:hover {
  color: var(--blue);
}

main.shell {
  min-height: calc(100vh - 190px);
  padding-block: 46px 72px;
}

.panel,
.resume-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, rgba(8, 47, 39, 0.98), rgba(5, 35, 29, 0.98));
  box-shadow: var(--shadow);
}

.panel {
  padding: clamp(22px, 4vw, 38px);
}

.setup-panel {
  position: relative;
  overflow: hidden;
  scroll-margin-top: 96px;
}

.setup-panel::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--site-signal), var(--accent-strong), transparent 78%);
  content: "";
}

.panel-heading,
.section-heading,
.session-toolbar,
.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.panel-heading p,
.section-heading p {
  max-width: 690px;
  margin-bottom: 0;
  color: var(--muted);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--site-signal);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.muted {
  color: var(--muted);
}

.bank-summary {
  min-width: 144px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(3, 26, 22, 0.58);
  text-align: right;
}

.bank-summary strong,
.bank-summary span {
  display: block;
}

.bank-summary strong {
  color: var(--site-signal);
  font-size: 1.75rem;
  line-height: 1;
}

.bank-summary span {
  margin-top: 7px;
  color: var(--subtle);
  font-size: 0.75rem;
}

.builder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 34px;
}

.field {
  min-width: 0;
}

.field label,
.preferences legend {
  display: block;
  margin-bottom: 8px;
  color: #e6eadf;
  font-size: 0.84rem;
  font-weight: 750;
}

.field select,
.field input[type="number"] {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--panel-strong);
  color: var(--text);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.field select:hover,
.field input[type="number"]:hover {
  border-color: #65917e;
}

.field-help {
  display: block;
  margin-top: 7px;
  color: var(--subtle);
  font-size: 0.76rem;
}

.preferences {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.preferences legend {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(3, 26, 22, 0.45);
}

.switch-row span,
.switch-row strong,
.switch-row small {
  display: block;
}

.switch-row strong {
  color: #eee9d9;
  font-size: 0.86rem;
}

.switch-row small {
  margin-top: 2px;
  color: var(--subtle);
  font-size: 0.72rem;
  line-height: 1.35;
}

input[type="checkbox"] {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  accent-color: var(--accent-strong);
}

.inline-status {
  min-height: 24px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.85rem;
}

.start-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 2fr);
  align-items: stretch;
  gap: 14px;
  margin-top: 18px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.quick-starts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.button,
.quick-start {
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 780;
  transition: transform 0.12s ease, border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.button:hover,
.quick-start:hover {
  transform: translateY(-1px);
}

.button:active,
.quick-start:active {
  transform: translateY(0);
}

.button {
  min-height: 44px;
  padding: 10px 16px;
}

.button-large {
  min-height: 58px;
  padding: 15px 20px;
}

.button-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.button-primary:hover {
  border-color: #e8bd48;
  background: #e8bd48;
}

.button-secondary {
  border-color: rgba(218, 60, 145, 0.48);
  background: var(--blue-soft);
  color: #f4dbea;
}

.button-quiet {
  border-color: var(--border-strong);
  background: rgba(13, 58, 48, 0.68);
  color: #e6eadf;
}

.button-quiet:hover,
.button-secondary:hover {
  border-color: #6f9886;
  background: rgba(18, 76, 62, 0.9);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.quick-start {
  min-height: 58px;
  padding: 10px 13px;
  border-color: var(--border);
  background: rgba(3, 26, 22, 0.4);
  color: var(--text);
  text-align: left;
}

.quick-start:hover {
  border-color: #608777;
  background: rgba(14, 64, 52, 0.82);
}

.quick-start-label,
.quick-start strong {
  display: block;
}

.quick-start-label {
  margin-bottom: 3px;
  color: var(--subtle);
  font-size: 0.67rem;
  font-weight: 650;
}

.quick-start strong {
  font-size: 0.8rem;
  line-height: 1.3;
}

.resume-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 20px;
  padding: 22px 24px;
  border-color: rgba(45, 155, 115, 0.55);
  background: linear-gradient(110deg, rgba(25, 104, 80, 0.48), rgba(5, 35, 29, 0.98));
}

.resume-card h2 {
  margin-bottom: 4px;
  font-size: 1.3rem;
}

.resume-card p {
  margin-bottom: 0;
}

.button-row,
.resume-actions,
.question-nav-end {
  display: flex;
  align-items: center;
  gap: 10px;
}

.test-view,
.results-view {
  scroll-margin-top: 96px;
  animation: reveal 0.26s ease both;
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.session-toolbar {
  align-items: flex-end;
  margin-bottom: 14px;
}

.session-info {
  color: var(--text);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 800;
}

.score-info {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: right;
}

.progress-track {
  height: 7px;
  margin-bottom: 22px;
  overflow: hidden;
  border-radius: 999px;
  background: #123d33;
}

.progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-strong), #75cfaa);
  transition: width 0.25s ease;
}

.question-panel {
  padding: clamp(20px, 4vw, 34px);
}

.question-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.meta-chip {
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(3, 26, 22, 0.42);
  color: var(--muted);
  font-size: 0.71rem;
  font-weight: 740;
}

.question-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.question-fieldset legend {
  width: 100%;
  margin-bottom: 22px;
  color: var(--text);
  font-size: clamp(1.18rem, 2.5vw, 1.52rem);
  font-weight: 780;
  line-height: 1.45;
}

.question-figure {
  display: grid;
  width: min(100%, 760px);
  margin: 0 auto 24px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: #fff;
}

.question-figure img {
  display: block;
  max-width: 100%;
  max-height: 560px;
  object-fit: contain;
}

.choices {
  display: grid;
  gap: 11px;
}

.choice {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(3, 26, 22, 0.52);
  color: #eeeade;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}

.choice:hover {
  border-color: #64907d;
  background: rgba(15, 68, 55, 0.8);
  transform: translateY(-1px);
}

.choice:has(input:focus-visible) {
  border-color: var(--blue);
  box-shadow: var(--focus);
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-letter {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid #557768;
  border-radius: 9px;
  color: #d8ded3;
  font-size: 0.78rem;
  font-weight: 850;
}

.choice.selected {
  border-color: var(--blue);
  background: rgba(218, 60, 145, 0.12);
}

.choice.correct {
  border-color: rgba(103, 209, 141, 0.7);
  background: rgba(47, 126, 77, 0.2);
}

.choice.correct .choice-letter {
  border-color: var(--correct);
  background: var(--correct);
  color: #062113;
}

.choice.incorrect {
  border-color: rgba(255, 131, 142, 0.72);
  background: rgba(132, 43, 53, 0.2);
}

.choice.incorrect .choice-letter {
  border-color: var(--incorrect);
  background: var(--incorrect);
  color: #2d060a;
}

.choice.answered {
  cursor: default;
  transform: none;
}

.feedback {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: rgba(3, 26, 22, 0.72);
}

.feedback.correct-feedback {
  border-color: rgba(103, 209, 141, 0.52);
}

.feedback.incorrect-feedback {
  border-color: rgba(255, 131, 142, 0.52);
}

.feedback-title {
  margin-bottom: 5px;
  font-weight: 850;
}

.feedback p:last-child {
  margin-bottom: 0;
}

.explanation,
.reference {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: #dbe1d5;
}

.reference {
  color: var(--muted);
  font-size: 0.9rem;
}

.auto-advance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  padding: 10px 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.text-button {
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: #e2c766;
  font-weight: 760;
}

.question-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.results-view > * + * {
  margin-top: 20px;
}

.results-hero {
  display: flex;
  align-items: center;
  gap: clamp(24px, 5vw, 48px);
}

.results-hero h2 {
  margin-bottom: 8px;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.results-message {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.score-ring {
  display: grid;
  width: 142px;
  height: 142px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--accent) var(--score, 0%), #1b4b3e 0);
  box-shadow: inset 0 0 0 12px rgba(3, 26, 22, 0.96);
}

.score-ring span {
  font-size: 1.8rem;
  font-weight: 900;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.metric-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.metric-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(3, 26, 22, 0.62);
}

.metric-card span,
.metric-card strong {
  display: block;
}

.metric-card span {
  color: var(--subtle);
  font-size: 0.73rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.metric-card strong {
  margin-top: 6px;
  color: var(--text);
  font-size: clamp(1.3rem, 3vw, 2rem);
  line-height: 1.15;
}

.section-heading {
  align-items: center;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.stat-list {
  display: grid;
  gap: 16px;
}

.stat-row {
  display: grid;
  gap: 7px;
}

.stat-label {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #dce3d8;
  font-size: 0.86rem;
}

.stat-label span:last-child {
  flex: 0 0 auto;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.stat-bar {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #06251f;
}

.stat-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2d9b73, #75cfaa);
}

.empty-state {
  padding: 20px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--muted);
  text-align: center;
}

.missed-review {
  display: grid;
  gap: 10px;
}

.review-item {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(3, 26, 22, 0.45);
}

.review-item summary {
  padding: 14px 16px;
  color: #e9eadf;
  cursor: pointer;
  font-weight: 720;
}

.review-body {
  padding: 0 16px 16px;
  color: var(--muted);
}

.review-body p {
  margin-bottom: 7px;
}

.review-figure {
  display: block;
  width: min(100%, 520px);
  max-height: 420px;
  margin: 4px auto 16px;
  object-fit: contain;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #fff;
}

.results-actions {
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.progress-panel {
  margin-top: 20px;
}

.progress-actions {
  display: flex;
  justify-content: flex-end;
  gap: 22px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.danger-text {
  color: var(--danger);
}

.site-footer {
  border-top: 1px solid rgba(210, 165, 44, 0.25);
  background: rgba(2, 17, 14, 0.7);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 38px;
  padding-block: 28px;
  color: var(--subtle);
  font-size: 0.76rem;
}

.footer-inner p {
  max-width: 760px;
  margin-bottom: 0;
}

.footer-inner p:last-child {
  flex: 0 0 auto;
  text-align: right;
}

.about-dialog {
  width: min(620px, calc(100% - 30px));
  max-height: min(780px, calc(100dvh - 30px));
  padding: 28px;
  overflow-y: auto;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.6);
}

.about-dialog::backdrop {
  background: rgba(2, 7, 16, 0.78);
  backdrop-filter: blur(5px);
}

.about-dialog p,
.about-dialog li {
  color: var(--muted);
}

.about-dialog ul {
  padding-left: 20px;
}

.about-dialog li + li {
  margin-top: 8px;
}

.dialog-heading {
  margin-bottom: 20px;
}

.dialog-close {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: rgba(3, 26, 22, 0.58);
  color: var(--text);
  font-size: 1.55rem;
  line-height: 1;
}

.dialog-note {
  margin-top: 20px;
  margin-bottom: 0;
  padding: 14px 16px;
  border-left: 3px solid var(--blue);
  border-radius: 8px;
  background: var(--blue-soft);
}

.project-credit {
  margin-top: 18px;
  margin-bottom: 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
}

.project-credit a {
  color: var(--site-signal);
  font-weight: 750;
}

.toast {
  position: fixed;
  z-index: 1500;
  right: 20px;
  bottom: 20px;
  max-width: min(420px, calc(100% - 40px));
  padding: 13px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: #0b3b30;
  color: var(--text);
  box-shadow: var(--shadow);
  font-size: 0.86rem;
  animation: toast-in 0.18s ease both;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .builder-grid {
    grid-template-columns: 1fr;
  }

  .preferences {
    grid-column: 1;
    grid-row: auto;
    grid-template-columns: 1fr;
  }

  .preferences legend {
    grid-column: 1;
  }

  .start-section {
    grid-template-columns: 1fr;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    display: block;
  }

  .footer-inner p:last-child {
    margin-top: 10px;
    text-align: left;
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(100% - 24px, 1180px);
  }

  .header-inner {
    min-height: 66px;
  }

  .tool-switch {
    display: none;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand strong {
    font-size: 0.9rem;
  }

  .brand small {
    display: none;
  }

  main.shell {
    padding-block: 24px 48px;
  }

  .panel {
    padding: 20px;
    border-radius: 19px;
  }

  .panel-heading,
  .section-heading,
  .session-toolbar,
  .results-hero,
  .resume-card {
    display: block;
  }

  .bank-summary {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    min-width: 0;
    margin-top: 18px;
    padding: 10px 12px;
    text-align: left;
  }

  .bank-summary strong {
    font-size: 1.2rem;
  }

  .bank-summary span {
    margin-top: 0;
  }

  .builder-grid {
    gap: 17px;
    margin-top: 24px;
  }

  .switch-row {
    min-height: 64px;
  }

  .quick-starts {
    grid-template-columns: 1fr;
  }

  .quick-start {
    min-height: 56px;
    text-align: center;
  }

  .resume-card {
    padding: 20px;
  }

  .resume-actions {
    margin-top: 16px;
  }

  .resume-actions .button {
    flex: 1;
  }

  .session-toolbar .score-info {
    margin-top: 5px;
    text-align: left;
  }

  .question-panel {
    padding: 18px;
  }

  .question-fieldset legend {
    margin-bottom: 18px;
  }

  .choice {
    min-height: 60px;
    padding: 11px 12px;
  }

  .auto-advance {
    display: block;
  }

  .auto-advance .text-button {
    display: block;
    margin-top: 6px;
  }

  .question-nav {
    align-items: stretch;
  }

  .question-nav-end {
    flex: 1;
    justify-content: flex-end;
  }

  .question-nav .button {
    padding-inline: 12px;
    font-size: 0.84rem;
  }

  .results-hero {
    text-align: center;
  }

  .score-ring {
    width: 122px;
    height: 122px;
    margin: 0 auto 22px;
  }

  .metric-grid,
  .metric-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading .button {
    width: 100%;
    margin-top: 14px;
  }

  .progress-actions {
    display: grid;
    justify-content: stretch;
    gap: 14px;
  }

  .results-actions .button {
    width: 100%;
  }

  .about-dialog {
    padding: 22px 18px;
  }
}

@media (max-width: 430px) {
  .header-inner > .button {
    min-height: 38px;
    padding: 7px 11px;
  }

  .brand {
    gap: 9px;
  }

  .brand strong {
    font-size: 0.84rem;
  }

  .question-nav {
    display: grid;
    grid-template-columns: 1fr;
  }

  .question-nav > .button,
  .question-nav-end,
  .question-nav-end .button {
    width: 100%;
  }

  .question-nav-end {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .metric-grid,
  .metric-grid.compact {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
