:root {
  color-scheme: light;
  --ink: #152a23;
  --text: #294137;
  --muted: #51635a;
  --green: #145b43;
  --green-dark: #0e4635;
  --mint: #e3f2de;
  --paper: #f6f8f2;
  --surface: #fff;
  --line: #d8e3da;
  --amber: #9c5405;
  --focus: #0a6da0;
  --shadow: 0 18px 55px #233e2810;
  --sans: Inter, "Helvetica Neue", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font: 16px/1.55 var(--sans);
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: var(--green-dark); text-underline-offset: 3px; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
[hidden] { display: none !important; }
h1, h2, h3, p, figure { margin: 0; }
h1[tabindex="-1"]:focus { outline: 0; }
p + p { margin-top: .85em; }
sup { line-height: 0; }
i { font-family: "STIX Two Text", "Cambria Math", Georgia, serif; font-size: 1.05em; }
math { font-family: "STIX Two Text", "Cambria Math", "Times New Roman", serif; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.container { width: min(100% - 64px, 1160px); margin-inline: auto; }

.site-top { border-bottom: 1px solid var(--line); background: #fafbf7; }
.top-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 780; font-size: 1.05rem; letter-spacing: -.035em; white-space: nowrap; }
.brand-mark { display: grid; grid-template-columns: repeat(2, 7px); gap: 2px; padding: 7px; border-radius: 8px; background: var(--green-dark); }
.brand-mark b { display: block; width: 7px; height: 7px; background: #e3f3d7; border-radius: 1px; }
.brand-mark b:last-child { background: transparent; border: 1px solid #e3f3d7; }
.button, .tool-button, .text-button {
  color: var(--ink);
  font-weight: 680;
  letter-spacing: -.012em;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 8px 17px;
  border: 1px solid transparent;
  border-radius: 9px;
  transition: background .14s ease, border-color .14s ease;
}
.button.primary { background: var(--green-dark); color: #fff; }
.button.primary:hover:not(:disabled) { background: #19694f; }
.button.secondary { background: var(--surface); border-color: var(--line); }
.button.secondary:hover:not(:disabled) { background: #edf3ed; border-color: #b9cbbf; }
.button:disabled { background: #e8eee8; color: #54635a; border-color: transparent; }
.share-button { font-size: .86rem; min-height: 39px; padding: 6px 12px; gap: 7px; }
.share-button span { font: 1rem var(--mono); color: var(--green); }

.landing { padding: clamp(45px, 7vw, 100px) 0 42px; }
.landing-grid { display: grid; grid-template-columns: 1.14fr 1fr; gap: clamp(26px, 6vw, 90px); align-items: center; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .77rem;
  font-weight: 730;
  letter-spacing: .075em;
  text-transform: uppercase;
  color: var(--green-dark);
}
.kicker > span { width: 8px; height: 8px; border-radius: 50%; background: #6b9e58; }
.intro h1 {
  margin: 17px 0 24px;
  font-size: clamp(3.3rem, 6.1vw, 6.15rem);
  line-height: 1.01;
  letter-spacing: -.077em;
  font-weight: 790;
}
.intro h1 span { color: var(--green); }
.intro-lead { max-width: 36ch; color: var(--text); font-size: clamp(1.02rem, 1.48vw, 1.25rem); line-height: 1.62; }
.metrics { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 27px 0 33px; }
.metrics > div { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.metrics > div:not(:first-child) { border-left: 1px solid #cbd8ce; padding-left: 20px; }
.metrics strong { font: 720 1.33rem/1.2 var(--mono); letter-spacing: -.045em; }
.metrics span { color: var(--muted); font-size: .87rem; }
.launch { display: grid; gap: 10px; justify-items: start; }
.launch-button { min-height: 53px; padding: 10px 18px; gap: 27px; box-shadow: 0 7px 20px #1d4a3520; }
.launch-button span { font-size: 1.15em; }
.launch p { color: var(--muted); font-size: .85rem; }

.journey {
  background-color: #173b31;
  background-image: linear-gradient(#d7efcf0e 1px, transparent 1px), linear-gradient(90deg, #d7efcf0e 1px, transparent 1px);
  background-size: 25px 25px;
  color: #f7fbf4;
  padding: clamp(19px, 3.1vw, 37px);
  border-radius: 20px;
  box-shadow: 0 22px 55px #12342521;
}
.journey h2 { font-size: 1.13rem; letter-spacing: -.02em; margin-bottom: 20px; }
.journey-stage {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 11px 13px;
  border: 1px solid #b6d9c562;
  border-radius: 11px;
  background: #234a3f;
}
.step-number { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 7px; background: #d9ecd2; color: #173b31; font: 650 .87rem var(--mono); }
.journey-stage h3 { font-size: 1rem; line-height: 1.35; }
.journey-stage p { color: #e1eee2; font-size: .84rem; }
.step-time { font: 500 .79rem var(--mono); color: #f4f9ef; white-space: nowrap; }
.route-connector { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 11px; padding: 11px 10px; }
.route-connector span { border-top: 1px dashed #c4e0c9aa; }
.route-connector p { color: #e2efe1; font-size: .78rem; white-space: nowrap; }
.route-fork { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.route-fork > div { text-align: center; font-size: .78rem; font-weight: 690; padding: 8px 5px; border: 1px solid #c3dfca87; border-radius: 7px; background: #173b31; }
.route-fork > div:last-child { background: #cfe9c8; color: #19392c; border-color: #cfe9c8; }
.journey-foot { margin-top: 17px; color: #e2eee5; font-size: .8rem; }

.features {
  display: grid;
  grid-template-columns: 1fr 1.12fr 1fr;
  margin-top: clamp(38px, 7vw, 76px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.features > div { padding: 20px 23px; }
.features > div + div { border-left: 1px solid var(--line); }
.features h2 { font-size: 1rem; letter-spacing: -.014em; margin-bottom: 5px; }
.features p, .method p { color: var(--muted); font-size: .91rem; }
.method { margin-top: 24px; }
.method summary { width: fit-content; cursor: pointer; color: var(--green-dark); font-size: .88rem; font-weight: 700; }
.method-body { margin-top: 10px; max-width: 76ch; }
.source-links { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .86rem; margin-top: 12px; }

dialog {
  max-height: min(90dvh, 850px);
  width: min(calc(100% - 26px), 740px);
  padding: 0;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: 0 24px 80px #10282045;
}
dialog::backdrop { background: #12251ec2; }
#start-dialog, #restart-dialog { width: min(calc(100% - 26px), 530px); }
.dialog-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 19px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.dialog-head h2 { font-size: 1.19rem; letter-spacing: -.028em; }
.dialog-head button { width: 35px; font-size: 1.4rem; line-height: 1; padding: 1px; }
.dialog-body { padding: 19px; color: var(--text); }
.dialog-body h3 { margin-top: 17px; font-size: 1rem; }
.dialog-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: 8px; margin-top: 21px; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  margin-top: 17px;
}
.contact-grid label { display: block; font-size: .89rem; font-weight: 680; }
.contact-wide { grid-column: 1 / -1; }
.contact-grid input {
  display: block;
  width: 100%;
  min-height: 43px;
  margin-top: 4px;
  padding: 7px 10px;
  border: 1px solid #9bb3a4;
  border-radius: 7px;
  color: var(--ink);
  background: var(--surface);
  font-size: 1rem;
  font-weight: 450;
}
.contact-optional { margin-left: 4px; color: var(--muted); font-size: .8rem; font-weight: 450; }
.contact-preferences { margin: 15px 0 0; padding: 7px 0 0; border: 0; }
.contact-preferences legend { font-size: .87rem; font-weight: 680; }
.contact-preferences label { display: flex; align-items: start; gap: 8px; font-size: .86rem; }
.contact-preferences label + label { margin-top: 5px; }
.contact-preferences input { flex: none; margin: 4px 0 0; accent-color: var(--green-dark); }
.contact-notice { margin-top: 14px; color: var(--muted); font-size: .8rem; }
.contact-notice a { display: inline-block; }
.contact-status { margin-top: 8px; color: #932b21; font-size: .85rem; }
.contact-status:empty { display: none; }
.directions-list { margin: .5em 0 1em; padding-inline-start: 1.2em; }
.directions-list li + li { margin-top: .35em; }
.examples { background: #f0f6ef; border-radius: 7px; padding: 10px 12px; font-size: .91rem; }
.formula-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 17px; }
.formula-grid > div { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.formula-grid h3 { font: 680 .85rem var(--sans); margin: 0 0 6px; }
.formula-grid p { color: #172d24; font-family: "STIX Two Text", Georgia, serif; font-size: 1.13rem; }

.exam-frame { min-height: 100dvh; display: flex; flex-direction: column; background: #f5f7f3; }
.exam-head { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 4; }
.exam-header-inner {
  width: min(100% - 48px, 1430px);
  min-height: 76px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr minmax(90px, auto) 1fr;
  align-items: center;
  gap: 15px;
}
.exam-name { display: grid; gap: 2px; justify-items: start; }
.exam-name p { margin-left: 38px; color: var(--muted); font-size: .8rem; line-height: 1.05; }
.exam-clock { align-self: center; text-align: center; }
.clock-face { min-width: 82px; line-height: 1.15; font: 670 1.55rem/1.17 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.065em; }
.clock-face.clock-low { color: #944303; }
.text-button { background: transparent; border: 0; color: var(--green-dark); text-decoration: underline; text-underline-offset: 3px; padding: 3px 5px; font-size: .76rem; }
.exam-tools { display: flex; justify-content: end; gap: 6px; }
.tool-button {
  min-height: 35px;
  padding: 5px 9px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: .82rem;
}
.tool-button:hover { background: #edf3ed; }
.tool-button[aria-pressed="true"], .tool-button[aria-expanded="true"] { background: var(--mint); border-color: #97b9a0; color: var(--green-dark); }
.time-banner { background: #fff2d7; color: #6d3400; font-size: .84rem; font-weight: 710; padding: 6px 15px; text-align: center; border-bottom: 1px solid #ecd9b6; }
.exam-body {
  flex: 1 0 auto;
  width: min(100% - 48px, 1390px);
  margin-inline: auto;
  padding: clamp(22px, 4vw, 58px) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.exam-body.with-calculator { grid-template-columns: minmax(0, 1.35fr) minmax(340px, 1fr); }
.work-area { width: min(100%, 816px); margin-inline: auto; }
.question-card, .review-screen {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.question-toolbar { display: flex; align-items: center; gap: 8px; padding: 11px 15px; background: #edf4ec; border-bottom: 1px solid var(--line); }
.question-number { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 6px; background: var(--green-dark); color: #fff; font: 650 .89rem var(--mono); }
.mark-button { display: inline-flex; align-items: center; gap: 7px; }
.bookmark { display: inline-block; width: 10px; height: 14px; background: #688378; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 74%, 0 100%, 0 0, 18% 13%, 18% 73%, 50% 56%, 82% 73%, 82% 13%, 18% 13%); }
.mark-button[aria-pressed="true"] .bookmark { clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 75%, 0 100%); background: #955006; }
.eliminator { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
.strike-icon { text-decoration: line-through 1.5px; font: 650 .73rem var(--mono); }
.question-body { padding: clamp(19px, 4vw, 42px); }
.question-prompt { font-size: clamp(1rem, 1.4vw, 1.19rem); line-height: 1.64; color: #172a23; }
.question-prompt .equation { font-family: "STIX Two Text", "Cambria Math", Georgia, serif; line-height: 1.8; text-align: center; margin: 0 0 19px; font-size: 1.19em; }
.question-table { border-collapse: collapse; text-align: center; margin: 0 auto 19px; font-size: .94em; }
.question-table td, .question-table th { border: 1px solid #aac1b2; padding: 5px 11px; }
.question-table th { background: #edf4ed; }
.question-table tbody th { font-weight: 590; }
.question-graphic { text-align: center; margin: 0 0 12px; }
.question-graphic canvas { display: block; width: min(100%, var(--graphic-width)); height: auto; margin: auto; }
.answer-list { display: grid; gap: 9px; margin: 23px 0 0; padding: 0; border: 0; min-width: 0; }
.option-row { display: flex; align-items: center; gap: 9px; }
.choice {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  position: relative;
  flex: 1;
  min-height: 49px;
  min-width: 0;
  padding: 7px 13px;
  border: 1px solid #c7d5ca;
  border-radius: 9px;
  cursor: pointer;
}
.choice:hover { border-color: #87a795; background: #f8fbf8; }
.choice:has(input:checked) { border-color: #168260; background: #eaf5e9; box-shadow: 0 0 0 1px #168260; }
.choice:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice-letter { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; border: 1px solid #9ab2a4; font: 630 .79rem var(--mono); }
.choice:has(input:checked) .choice-letter { background: var(--green-dark); color: #fff; border-color: var(--green-dark); }
.choice-content { line-height: 1.44; overflow-wrap: anywhere; }
.option-eliminated .choice { background: #f5f7f4; cursor: default; color: #52635a; }
.option-eliminated .choice-content { text-decoration: line-through 1.4px; }
.eliminate-choice { flex: 0 0 43px; min-height: 35px; border: 1px solid var(--line); background: #f5f8f4; border-radius: 7px; color: var(--ink); text-decoration: line-through; font: 650 .78rem var(--mono); }
.eliminate-choice[aria-pressed="true"] { text-decoration: none; }
.eliminate-choice:hover { background: var(--mint); }

.number-answer { margin-top: 24px; display: grid; justify-items: start; gap: 6px; }
.number-answer label { font-size: .9rem; font-weight: 720; }
.number-answer input { width: min(100%, 210px); min-height: 49px; padding: 7px 10px; border: 1px solid #9bb3a4; border-radius: 8px; background: #fff; color: var(--ink); font: 500 1.22rem var(--mono); }
.number-answer input[aria-invalid="true"] { border-color: #99423a; }
.number-answer p { margin: 0; color: var(--muted); font-size: .85rem; }
.number-answer .input-status { color: #932b21; }
.number-answer .input-status:empty { display: none; }
.exam-foot { position: sticky; bottom: 0; z-index: 3; background: var(--surface); border-top: 1px solid var(--line); }
.exam-nav { width: min(100% - 48px, 1430px); min-height: 68px; padding: 7px 0; margin-inline: auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.exam-nav > :first-child { justify-self: start; }
.exam-nav > :last-child { justify-self: end; min-width: 76px; }
.navigator-button { font-size: .88rem; background: #eaf1ea; border-color: #cbdccd; }
.navigator-button:hover { background: #e0eee1; }
.review-screen { padding: clamp(19px, 4vw, 40px); }
.review-screen h1 { font-size: clamp(1.7rem, 3.7vw, 2.55rem); letter-spacing: -.055em; }
.review-screen > p { color: var(--muted); }
.review-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-top: 19px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.review-actions p { max-width: 40ch; color: var(--muted); font-size: .87rem; }
.map { margin-top: 14px; }
.map-dialog .map { margin-top: 0; }
.map-summary { color: var(--text); font-size: .88rem; font-weight: 650; }
.map-summary span { padding-inline: 4px; }
.map-grid { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 7px; margin: 12px 0; }
.map-cell { position: relative; min-height: 40px; border: 1px solid #b7c9bc; border-radius: 7px; background: #fff; color: var(--ink); font: 600 .9rem var(--mono); }
.map-cell:hover { background: #eef4ed; }
.map-cell.is-answered { background: #dcf0dc; border-color: #9bbf9e; }
.map-cell.is-invalid, .legend-square.invalid { background: #fff2d7; border-color: #b67827; }
.map-cell[aria-current] { box-shadow: inset 0 0 0 2px var(--green-dark); }
.map-cell.is-marked::after, .legend-dot { content: ""; position: absolute; top: 4px; right: 4px; width: 7px; height: 7px; border-radius: 50%; background: #a85900; }
.map-legend { display: flex; flex-wrap: wrap; gap: 5px 14px; font-size: .8rem; color: var(--muted); }
.map-legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend-square { width: 12px; height: 12px; border: 1px solid #b7c9bc; border-radius: 3px; }
.legend-square.answered { background: #dcf0dc; border-color: #9bbf9e; }
.legend-dot { position: static; }
.calculator-panel { position: sticky; top: 96px; background: #fff; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; box-shadow: var(--shadow); }
.calculator-top { display: flex; align-items: center; justify-content: space-between; padding: 7px 10px 6px; }
.calculator-top h2 { font-size: 1rem; }
.calculator-top > button { font-size: 1.3rem; line-height: 1; width: 32px; }
.calculator-modes { display: flex; gap: 7px; padding: 0 10px 8px; }
.calculator-content { border-block: 1px solid var(--line); }
.calculator-content iframe { display: block; width: 100%; height: clamp(280px, 55vh, 580px); border: 0; background: #fff; }
.calculator-panel > a { display: inline-block; font-size: .76rem; padding: 6px 10px; }

.results { padding: clamp(32px, 6vw, 64px) 0 40px; }
.results h1 { margin: 6px 0 20px; font-size: clamp(2.45rem, 5vw, 4.8rem); line-height: 1.04; letter-spacing: -.07em; }
.results-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 15px; }
.score-card, .result-card { border-radius: 13px; padding: clamp(16px, 3vw, 29px); box-shadow: var(--shadow); }
.score-card { background: var(--green-dark); color: #f6fbf3; }
.score-value { display: flex; align-items: baseline; gap: 5px; font-family: var(--mono); line-height: 1.1; margin: 3px 0; }
.score-value strong { font-size: clamp(3.5rem, 6.5vw, 5.5rem); letter-spacing: -.085em; }
.score-value span { font-size: 1.4rem; color: #d2e9d2; }
.score-note { font-size: .84rem; color: #dcebdd; }
.score-button { margin-top: 13px; min-height: 37px; background: #deefdb; color: #14362a; font-size: .84rem; }
.score-button:hover { background: #c9e7c5; }
.result-card { background: #fff; border: 1px solid var(--line); }
.result-card h2, .section-top h2 { font-size: clamp(1.17rem, 2.6vw, 1.57rem); letter-spacing: -.04em; }
.module-result { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.module-result div { display: grid; gap: 1px; }
.module-result span { color: var(--muted); font-size: .88rem; }
.module-result > b, .domain b { font: 650 1rem var(--mono); white-space: nowrap; }
.result-note { margin-top: 10px; color: var(--muted); font-size: .85rem; }
.domains { margin-top: 15px; }
.domain-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin-top: 12px; }
.domain > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.domain h3 { font-size: .91rem; }
.domain progress { appearance: none; width: 100%; height: 7px; background: #eaf0e8; border: 0; border-radius: 9px; overflow: hidden; }
.domain progress::-webkit-progress-bar { background: #eaf0e8; }
.domain progress::-webkit-progress-value { background: var(--green); border-radius: 9px; }
.domain progress::-moz-progress-bar { background: var(--green); border-radius: 9px; }
.corrections { margin-top: 27px; }
.section-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 9px; }
.filters { display: flex; gap: 4px; }
.correction-module > h3 { margin: 14px 0 6px; font-size: 1rem; }
.correction-row { margin: 5px 0; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.correction-row summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 12px; cursor: pointer; }
.correction-row summary::marker { content: ""; }
.correction-row summary::-webkit-details-marker { display: none; }
.correction-number { font: 650 .88rem var(--mono); color: var(--green-dark); }
.correction-domain { font-size: .91rem; font-weight: 640; }
.correction-domain small { color: var(--muted); font-size: .74rem; margin-left: 6px; font-weight: 490; }
.result-status { padding: 2px 6px; border-radius: 5px; color: #394e43; background: #edf2ec; font-size: .77rem; font-weight: 670; }
.result-status.correct { color: #154830; background: #e1f1df; }
.result-status.incorrect { color: #81291d; background: #fceae4; }
.result-status::after { content: " +"; }
details[open] .result-status::after { content: " −"; }
.correction-body { border-top: 1px solid var(--line); padding: 15px; color: var(--text); }
.correction-body dl { margin: 11px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.correction-body dl > div { padding: 7px 9px; border-radius: 7px; background: #f1f5ef; }
.correction-body dt { color: var(--muted); font-size: .82rem; }
.correction-body dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.corrected-question { padding: 12px; background: #f8faf6; border: 1px solid var(--line); border-radius: 8px; }
.corrected-question .question-prompt { font-size: 1rem; }
.corrected-options { margin: 8px 0 0; padding-inline-start: 23px; }
.restart { margin-top: 16px; }

.toast { position: fixed; z-index: 20; bottom: max(12px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); max-width: calc(100% - 24px); padding: 9px 13px; background: #14372c; color: #fff; border: 1px solid #c2deca; border-radius: 9px; box-shadow: var(--shadow); font-size: .87rem; text-align: center; }

@media (max-width: 900px) {
  .container { width: min(100% - 36px, 1160px); }
  .intro h1 { font-size: clamp(3rem, 6.6vw, 5.4rem); }
  .landing-grid { gap: 23px; }
  .features > div { padding: 15px; }
  .exam-body.with-calculator { grid-template-columns: minmax(0, 1fr); }
  .calculator-panel { position: fixed; inset: auto 8px 73px auto; width: min(100% - 16px, 465px); z-index: 5; box-shadow: 0 12px 55px #18382b55; }
  .calculator-content iframe { height: min(49dvh, 410px); }
}

@media (max-width: 655px) {
  .top-inner { height: 58px; }
  .landing { padding-top: 36px; }
  .landing-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .intro h1 { font-size: clamp(3.3rem, 10vw, 4.55rem); margin: 11px 0 13px; }
  .intro-lead { font-size: 1rem; }
  .metrics { margin: 21px 0 24px; }
  .features { grid-template-columns: 1fr; margin-top: 20px; }
  .features > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .journey { border-radius: 14px; }
  .journey-stage { min-height: 69px; }
  .journey h2 { margin-bottom: 13px; }
  .exam-header-inner { width: calc(100% - 24px); grid-template-columns: 1fr auto; gap: 3px 8px; padding: 7px 0; }
  .exam-name .brand { font-size: .92rem; }
  .exam-name p { margin-left: 0; font-size: .72rem; }
  .exam-name .brand-mark { transform: scale(.84); transform-origin: left center; margin-right: -5px; }
  .exam-clock { min-height: 39px; }
  .clock-face { font-size: 1.28rem; }
  .exam-tools { grid-column: 1 / -1; justify-content: flex-start; }
  .exam-tools .tool-button { min-height: 32px; }
  .exam-body { width: calc(100% - 20px); padding: 12px 0 25px; }
  .question-toolbar { padding: 8px; gap: 5px; }
  .question-number { width: 28px; height: 28px; }
  .question-toolbar .tool-button { font-size: .76rem; padding-inline: 6px; }
  .choice { padding: 7px 8px; gap: 7px; }
  .exam-nav { width: calc(100% - 20px); min-height: 59px; gap: 5px; }
  .exam-nav .button { padding: 7px 10px; min-height: 42px; font-size: .84rem; }
  .exam-nav > :last-child { min-width: 62px; }
  .navigator-button { gap: 5px; }
  .calculator-panel { bottom: 64px; }
  .map-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .formula-grid { grid-template-columns: 1fr 1fr; }
  .results-grid, .domain-grid { grid-template-columns: minmax(0, 1fr); }
  .correction-domain small { display: block; margin-left: 0; }
}
@media (max-width: 390px) {
  .metrics { gap: 9px 13px; }
  .metrics > div:not(:first-child) { padding-left: 13px; }
  .eliminator-text { width: 1px; height: 1px; position: absolute; overflow: hidden; clip-path: inset(50%); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0s !important; } }
.question-graphic img { display: block; max-width: min(100%, 520px); height: auto; margin: auto; border-radius: 6px; }
