:root {
  color-scheme: dark;
  --ink: #070707;
  --paper: #f4f2ec;
  --panel: #121212;
  --line: rgba(255, 255, 255, 0.16);
  --muted: #aaa8a2;
  --orange: #ff5b00;
  --orange-on-light: #8f3000;
  --red: #d90804;
  --danger: #ffb09b;
  --max: 1260px;
}

* { box-sizing: border-box; }
html { min-width: min(320px, 100%); background: var(--ink); font-family: Arial, Helvetica, sans-serif; scroll-behavior: smooth; }
body { margin: 0; min-width: min(320px, 100%); overflow-x: hidden; background: var(--paper); color: var(--ink); line-height: 1.4; }
button, input, select, textarea { font: inherit; }
button, a, select, input, textarea, summary { touch-action: manipulation; }
input[type="number"] { appearance: textfield; -moz-appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { margin: 0; appearance: none; -webkit-appearance: none; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 150; transform: translateY(-160%); padding: 10px 14px; background: #fff; color: #000; font-weight: 900; }
.skip-link:focus { transform: none; }
.site-header { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px max(18px, calc((100vw - var(--max)) / 2)); background: var(--ink); color: #fff; }
.logo, .header-link { min-height: 44px; display: inline-flex; align-items: center; padding: 6px; }
.logo img { width: 158px; height: auto; }
.header-link { gap: 8px; color: #fff; font-size: 13px; font-weight: 900; text-decoration: none; }
.hero { position: relative; min-height: 350px; overflow: hidden; padding: 52px max(22px, calc((100vw - var(--max)) / 2)); background: linear-gradient(90deg, rgba(0, 0, 0, 0.97), rgba(0, 0, 0, 0.58)), url('/assets/athx/instagram-import/athx-runner-red-screen.webp') center 44% / cover; color: #fff; }
.hero-copy { max-width: 780px; }
.eyebrow, .section-kicker { margin: 0 0 9px; color: var(--orange); font-size: 11px; font-weight: 950; letter-spacing: 0.14em; text-transform: uppercase; }
.held-state > .eyebrow, .context-bar .eyebrow, .context-card .section-kicker, .performance-heading .section-kicker, .report-card > .eyebrow { color: var(--orange-on-light); }
.hero h1 { margin: 0; font-size: clamp(54px, 8vw, 108px); font-weight: 950; letter-spacing: -0.065em; line-height: 0.82; text-transform: uppercase; }
.hero h1 span, .result-card h2 span { color: var(--orange); }
.hero-lede { max-width: 660px; margin: 24px 0 15px; color: #ece9e3; font-size: clamp(17px, 1.9vw, 22px); font-weight: 700; }
.hero-note { display: inline-flex; gap: 8px; margin: 0; padding: 10px 13px; border-left: 3px solid var(--orange); background: rgba(0, 0, 0, 0.48); color: #d9d5ce; font-size: 13px; }
.hero-note strong { color: #fff; }
.held-state { width: min(760px, calc(100% - 36px)); margin: 0 auto; padding: 72px 0; text-align: center; }
.held-state h2 { margin: 0 0 12px; font-size: clamp(32px, 5vw, 58px); line-height: 0.9; text-transform: uppercase; }
.held-state p:not(.eyebrow) { color: #555; font-size: 18px; }
.playground-shell { width: min(var(--max), calc(100% - 36px)); margin: 0 auto; padding: 38px 0 80px; }
.context-bar { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.context-bar h2, .section-heading h2 { margin: 0; font-size: clamp(28px, 4vw, 46px); line-height: 0.9; letter-spacing: -0.04em; text-transform: uppercase; }
.context-card, .marker-card, .result-card, .report-card, .full-result { border-radius: 12px; }
.context-card { padding: 22px 24px; border: 1px solid #d1cec5; background: #e6e3db; }
.context-grid { display: grid; grid-template-columns: 1fr 0.65fr 1fr; gap: 12px; }
.context-grid label, .marker-inputs label, .report-card label, .time-inputs label { position: relative; display: grid; gap: 7px; color: #5d5a54; font-size: 11px; font-weight: 950; letter-spacing: 0.08em; text-transform: uppercase; }
.context-grid select, .context-grid input, .marker-inputs select, .marker-inputs input, .report-card input, .time-inputs input { width: 100%; min-height: 48px; border: 1px solid #c7c4bc; border-radius: 7px; padding: 0 12px; background: #f8f7f2; color: #111; font-size: 16px; font-weight: 800; outline: 0; }
.context-grid select:focus, .context-grid input:focus, .marker-inputs select:focus, .marker-inputs input:focus, .report-card input:focus, .time-inputs input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 91, 0, 0.22); }
[aria-invalid="true"] { border-color: var(--red) !important; }
.unit-input { display: grid; grid-template-columns: 1fr auto; min-height: 48px; border: 1px solid #c7c4bc; border-radius: 7px; background: #f8f7f2; }
.unit-input input { min-height: 46px; border: 0; background: transparent; }
.unit-input select, .unit-input span { min-width: 58px; min-height: 46px; display: flex; align-items: center; border: 0; border-left: 1px solid #d8d5cc; border-radius: 0; padding: 0 10px; background: transparent; color: #666; font-size: 12px; font-weight: 950; }
.field-hint { color: #77736c; font-size: 11px; font-weight: 700; letter-spacing: 0; line-height: 1.35; text-transform: none; }
.marker-card .field-hint { color: #aaa7a0; }
.context-field-error:empty { min-height: 0; margin: 0; }
.entry-mode-card { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr); gap: 22px; align-items: center; margin-top: 16px; padding: 20px 24px; border-radius: 12px; background: var(--panel); color: #fff; }
.entry-mode-card .section-kicker { color: var(--orange); }
.entry-mode-card h2 { max-width: 480px; margin: 0; font-size: clamp(24px, 3vw, 36px); line-height: 0.95; letter-spacing: -0.04em; text-transform: uppercase; }
.entry-mode-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.entry-mode-option { min-height: 78px; display: grid; align-content: center; gap: 4px; border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 10px; padding: 12px 14px; background: #1c1c1c; color: #fff; text-align: left; cursor: pointer; }
.entry-mode-option:hover { border-color: rgba(255, 255, 255, 0.55); }
.entry-mode-option[aria-pressed="true"] { border-color: var(--orange); background: rgba(255, 91, 0, 0.11); box-shadow: inset 0 0 0 1px var(--orange); }
.entry-mode-option span { font-size: 15px; font-weight: 950; text-transform: uppercase; }
.entry-mode-option small { color: #aaa7a0; font-size: 11px; font-weight: 700; }
.entry-mode-status { grid-column: 1 / -1; min-height: 0; margin: 0; color: #c5c2bb; font-size: 12px; }
.entry-mode-status:empty { display: none; }
.performance-heading { margin: 30px 2px 13px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr); gap: 18px; align-items: start; }
.markers-column { display: grid; gap: 11px; }
.quick-fill-panel { padding: clamp(18px, 3vw, 28px); border-radius: 12px; background: var(--panel); color: #fff; box-shadow: 0 12px 28px rgba(0, 0, 0, 0.09); }
.quick-fill-panel h3 { margin: 0; font-size: clamp(27px, 4vw, 44px); line-height: 0.92; letter-spacing: -0.045em; text-transform: uppercase; }
.quick-fill-panel p:not(.eyebrow):not(.field-hint):not(.form-status) { color: #bcb9b2; font-size: 13px; }
.quick-fill-editor > label { display: block; margin: 18px 0 7px; color: #d6d3cc; font-size: 11px; font-weight: 950; letter-spacing: 0.08em; text-transform: uppercase; }
.quick-fill-editor textarea { width: 100%; min-height: 132px; resize: vertical; border: 1px solid #484848; border-radius: 9px; padding: 13px 14px; background: #080808; color: #fff; font-size: 16px; line-height: 1.5; outline: 0; }
.quick-fill-editor textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 91, 0, 0.22); }
.quick-fill-editor .field-hint { display: block; margin-top: 7px; color: #aaa7a0; }
.quick-fill-actions { display: flex; margin-top: 16px; }
.quick-fill-review-heading { display: flex; justify-content: space-between; align-items: end; gap: 14px; margin-bottom: 16px; }
.quick-fill-review-heading .button { flex: 0 0 auto; }
.quick-fill-summary { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.quick-fill-summary > div { display: grid; grid-template-columns: minmax(120px, 0.7fr) minmax(0, 1.3fr); gap: 18px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.quick-fill-summary dt { color: #aaa7a0; font-size: 12px; font-weight: 800; }
.quick-fill-summary dd { display: grid; gap: 3px; margin: 0; text-align: right; }
.quick-fill-summary dd strong { color: #fff; font-size: 14px; }
.quick-fill-summary dd small { color: #aaa7a0; font-size: 10px; }
.quick-fill-feedback { margin-top: 14px; padding: 13px 15px; border-left: 3px solid var(--orange); background: rgba(255, 91, 0, 0.08); }
.quick-fill-feedback h4 { margin: 0 0 7px; font-size: 13px; text-transform: uppercase; }
.quick-fill-feedback ul { display: grid; gap: 6px; margin: 0; padding-left: 18px; color: #d5d2cb; font-size: 12px; }
.quick-fill-feedback code { overflow-wrap: anywhere; color: #fff; font-family: inherit; font-weight: 850; }
.quick-fill-confirm-note { margin: 15px 0 !important; }
.quick-fill-status { margin-top: 12px; color: #d5d2cb; }
.guide-panel { padding: 18px 20px; border: 1px solid rgba(255, 91, 0, 0.42); border-radius: 12px; background: #fff5ed; color: var(--ink); outline: 0; }
.guide-panel:focus { box-shadow: 0 0 0 3px rgba(255, 91, 0, 0.24); }
.guide-panel .eyebrow { margin-bottom: 5px; color: var(--orange); }
.guide-panel h3 { margin: 0; font-size: clamp(25px, 3vw, 38px); line-height: 0.95; letter-spacing: -0.04em; text-transform: uppercase; }
.guide-panel p:last-child { margin: 8px 0 0; color: #625f59; font-size: 12px; }
.guide-navigation { display: grid; grid-template-columns: auto minmax(180px, 1fr); gap: 10px; align-items: center; }
.guide-navigation .form-status { grid-column: 1 / -1; margin: 0; }
.guide-navigation .button[hidden] { display: none; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; }
.section-help { max-width: 265px; margin: 0; color: #625f59; font-size: 12px; text-align: right; }
.marker-card { padding: 18px 20px; background: var(--panel); color: #fff; box-shadow: 0 12px 28px rgba(0, 0, 0, 0.09); }
.marker-heading { display: flex; align-items: flex-start; gap: 13px; }
.marker-number { width: 29px; height: 29px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--red); color: #fff; font-size: 11px; font-weight: 950; }
.marker-heading h3 { margin: 0; font-size: 23px; line-height: 0.95; text-transform: uppercase; }
.marker-heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.marker-inputs { display: grid; grid-template-columns: 1.2fr 1fr 0.8fr; align-items: start; gap: 9px; margin: 16px 0 11px; }
.row-mode { display: flex; flex-wrap: wrap; gap: 14px; margin: 12px 0 7px; color: #d4d1ca; font-size: 12px; font-weight: 800; }
.row-mode label { min-height: 44px; display: flex; align-items: center; gap: 7px; }
.row-mode input { width: 18px; height: 18px; accent-color: var(--orange); }
.time-inputs { max-width: 360px; margin: 16px 0 11px; }
.field-error { min-height: 18px; margin: 7px 0 0; color: var(--danger); font-size: 12px; font-weight: 800; letter-spacing: 0; text-transform: none; }
.submit-row { display: flex; align-items: center; gap: 16px; padding: 6px 0; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 999px; padding: 0 20px; font-weight: 950; cursor: pointer; text-decoration: none; }
.button[disabled] { cursor: wait; opacity: 0.62; }
.button-primary { background: linear-gradient(90deg, var(--red), #bf4700); color: #fff; }
.button-primary:hover { filter: brightness(1.08); }
.button-secondary { border: 1px solid rgba(255, 255, 255, 0.42); background: transparent; color: #fff; }
.button-secondary:hover { border-color: #fff; }
.button-quiet { border: 1px solid #bbb7ae; background: transparent; color: #272727; }
.form-status { min-height: 18px; margin: 0; color: #65625c; font-size: 12px; }
.form-status:empty { display: none; }
.result-column { position: sticky; top: 15px; display: grid; gap: 14px; }
.result-card { padding: 25px; background: var(--panel); color: #fff; box-shadow: 0 18px 38px rgba(0, 0, 0, 0.14); }
.result-card h2 { margin: 0; font-size: clamp(34px, 4vw, 54px); line-height: 0.88; letter-spacing: -0.05em; text-transform: uppercase; }
.result-card #emptyResult > p { color: #a7a49d; font-size: 14px; }
.result-card.has-result { padding: 14px; }
.result-card.has-result > .eyebrow { margin: 2px 3px 11px; }
.projection-card-figure { margin: 0; }
.projection-card-figure img { width: 100%; height: auto; display: block; border-radius: 12px; background: #050505; }
.projection-card-figure figcaption { margin: 8px 3px 0; color: #8f8c85; font-size: 10px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.preview-facts { display: grid; gap: 8px; margin: 15px 0; }
.preview-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 3px; border-top: 1px solid var(--line); }
.preview-facts dt { color: #aaa7a0; font-size: 11px; font-weight: 800; }
.preview-facts dd { margin: 0; color: #fff; font-size: 12px; font-weight: 950; text-align: right; text-transform: uppercase; }
.full-result-button { width: 100%; }
.full-result { margin-top: 34px; padding: clamp(20px, 4vw, 48px); background: #0c0c0c; color: #fff; scroll-margin-top: 18px; box-shadow: 0 26px 60px rgba(0, 0, 0, 0.2); }
.full-result-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.full-result-heading h2 { margin: 0; font-size: clamp(42px, 7vw, 78px); line-height: 0.86; letter-spacing: -0.06em; text-transform: uppercase; }
.full-result-heading .button-quiet { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.full-result-grid { display: grid; grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr); gap: clamp(26px, 5vw, 64px); align-items: start; }
.full-card-figure { position: sticky; top: 18px; }
.full-result-content { display: grid; gap: 15px; }
.result-overview, .feedback-block, .training-detail, .official-boundary { border: 1px solid var(--line); border-radius: 12px; padding: clamp(18px, 3vw, 28px); background: #151515; }
.result-summary-label { margin: 0 0 8px; color: var(--orange); font-size: 10px; font-weight: 950; letter-spacing: 0.13em; text-transform: uppercase; }
.full-score { display: block; margin: 5px 0 18px; font-size: clamp(92px, 13vw, 154px); letter-spacing: -0.09em; line-height: 0.72; }
.overview-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.overview-facts div { padding-top: 12px; border-top: 1px solid var(--line); }
.overview-facts dt { color: #9d9a93; font-size: 11px; }
.overview-facts dd { margin: 3px 0 0; color: #fff; font-size: 20px; font-weight: 950; }
.feedback-block h3 { margin: 0; font-size: clamp(34px, 5vw, 64px); line-height: 0.9; letter-spacing: -0.05em; text-transform: uppercase; }
.feedback-block > p:not(.result-summary-label):not(.estimate-note) { color: #d2cfc7; font-size: 15px; font-weight: 700; }
.category-feedback { border-color: rgba(255, 91, 0, 0.55); background: linear-gradient(145deg, rgba(255, 91, 0, 0.13), #151515 58%); }
.component-rows { display: grid; gap: 8px; margin-top: 18px; }
.component-row { display: grid; grid-template-columns: 1fr auto; gap: 4px; padding-top: 10px; border-top: 1px solid var(--line); color: #ddd; font-size: 12px; }
.component-row small { grid-column: 1; color: #98958e; }
.component-row strong { grid-row: 1 / span 2; grid-column: 2; align-self: center; color: #fff; font-size: 20px; }
.development-insight { margin: 16px 0 0; padding: 13px 15px; border-left: 3px solid var(--orange); background: rgba(255, 91, 0, 0.08); }
.training-detail { color: #fff; }
.training-detail summary { min-height: 44px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-weight: 950; }
.training-detail summary::after { content: "+"; color: var(--orange); font-size: 22px; }
.training-detail[open] summary::after { content: "−"; }
.training-detail > p { color: #9d9a93; font-size: 12px; }
.e1rm-rows { display: grid; gap: 8px; margin-top: 8px; }
.e1rm-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 11px; border-radius: 6px; background: #202020; }
.e1rm-row span { color: #aaa7a0; font-size: 12px; }
.e1rm-row strong { color: #fff; font-size: 14px; }
.official-boundary { margin: 0; color: #aaa7a0; font-size: 12px; }
.official-boundary strong { color: #fff; }
.estimate-note { margin: 12px 0 0; color: #98958e; font-size: 11px; }
.event-cta { justify-self: start; }
.report-card { margin-top: 18px; padding: 24px; background: #e6e3db; color: var(--ink); }
.report-card h3 { margin: 0; font-size: clamp(26px, 4vw, 44px); line-height: 0.95; text-transform: uppercase; }
.report-card > p:not(.eyebrow) { max-width: 720px; color: #625f58; font-size: 13px; }
.report-card a:not(.button) { color: #8a2900; font-weight: 900; }
.report-card form { max-width: 720px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.report-card .consent, .report-card .button, .report-card .form-status { grid-column: 1 / -1; }
.consent { min-height: 44px; display: flex !important; align-items: center; gap: 8px !important; color: #625f58 !important; font-size: 11px !important; letter-spacing: 0 !important; text-transform: none !important; }
.consent input { width: 18px; height: 18px; min-height: 18px; accent-color: var(--red); }
.report-success { max-width: 720px; padding: 18px; border-left: 4px solid var(--orange); background: #fff; }
.report-success p { margin: 5px 0 0; }
.calibration-reveal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; visibility: hidden; opacity: 0; pointer-events: none; transition: opacity 0.22s ease; }
.calibration-reveal[aria-hidden="false"] { visibility: visible; opacity: 1; pointer-events: auto; }
.calibration-reveal-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.96); backdrop-filter: blur(12px); }
.calibration-reveal-panel { position: relative; width: min(1060px, 100%); max-height: calc(100vh - 36px); overflow: auto; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 18px; background: #080808; color: #fff; box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48); }
.calibration-reveal-inner { display: grid; grid-template-columns: minmax(240px, 0.76fr) minmax(0, 1.24fr); gap: 36px; align-items: center; padding: 36px; }
.calibration-card-stage { position: relative; width: min(100%, 310px); aspect-ratio: 1232 / 2049; justify-self: center; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 14px; background: #050505; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.54); }
.calibration-card-skeleton, .calibration-result-card { position: absolute; inset: 0; width: 100%; height: 100%; }
.calibration-card-skeleton { display: grid; grid-template-rows: auto 1fr auto auto 1fr auto; padding: 7.2%; background: radial-gradient(circle at 80% 20%, rgba(255, 91, 0, 0.22), transparent 42%), linear-gradient(150deg, #232323, #050505 68%); }
.skeleton-wordmark { color: #fff; font-size: clamp(15px, 2vw, 22px); font-weight: 950; letter-spacing: -0.06em; }
.skeleton-score { width: 58%; height: 28%; align-self: end; border-radius: 6px; background: #2e2e2e; }
.skeleton-title { width: 78%; height: 12px; margin: 14px 0; border-radius: 9px; background: #343434; }
.skeleton-rows { display: grid; gap: 8px; }
.skeleton-rows i { height: 7px; border-radius: 9px; background: linear-gradient(90deg, #363636, #1b1b1b); }
.skeleton-athlete { width: 100%; height: 11%; align-self: end; border-top: 2px solid var(--orange); background: #191919; }
.calibration-result-card { object-fit: cover; border-radius: inherit; }
.calibration-reveal-copy h2 { max-width: 590px; margin: 0; font-size: clamp(38px, 5.2vw, 70px); line-height: 0.88; letter-spacing: -0.06em; text-transform: uppercase; }
.calibration-reveal-copy > p:not(.eyebrow):not(.calibration-boundary) { max-width: 560px; margin: 17px 0; color: #bbb8b1; font-size: 16px; font-weight: 700; }
.calibration-steps { display: grid; gap: 7px; }
.calibration-step { min-height: 48px; display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 10px; padding: 8px 11px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 10px; color: #858585; }
.calibration-step span { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 10px; }
.calibration-step strong { font-size: 13px; }
.calibration-step.active { border-color: rgba(255, 91, 0, 0.68); background: rgba(255, 91, 0, 0.08); color: #fff; }
.calibration-step.active span { color: var(--orange); }
.calibration-step.done { color: #c7c4bc; }
.calibration-step.done span { border-color: var(--orange); color: var(--orange); }
.calibration-boundary { display: none; max-width: 520px; margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: #98958e; font-size: 11px; }
.calibration-cancel { margin-top: 14px; }
.calibration-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.calibration-reveal.is-card-ready .calibration-steps { display: none; }
.calibration-reveal.is-card-ready .calibration-cancel { display: none; }
.calibration-reveal.is-card-ready .calibration-boundary { display: block; }
.is-calibrating { overflow: hidden; }
.is-calibrating .site-header, .is-calibrating main { pointer-events: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.92); }

@media (max-width: 900px) {
  .content-grid, .full-result-grid { grid-template-columns: 1fr; }
  .entry-mode-card { grid-template-columns: 1fr; }
  .result-column, .full-card-figure { position: static; }
  .marker-inputs { grid-template-columns: 1fr 1fr; }
  .marker-inputs label:first-child { grid-column: 1 / -1; }
  .preview-card-figure { max-width: 420px; margin-inline: auto; }
  .full-card-figure { width: min(100%, 470px); margin-inline: auto; }
}

@media (max-width: 720px) {
  .calibration-reveal { padding: 10px; }
  .calibration-reveal-panel { max-height: calc(100vh - 20px); border-radius: 14px; }
  .calibration-reveal-inner { grid-template-columns: minmax(128px, 0.62fr) minmax(0, 1.38fr); gap: 16px; padding: 16px; }
  .calibration-card-stage { width: min(100%, 190px); }
  .calibration-reveal.is-card-ready .calibration-reveal-inner { grid-template-columns: 1fr; gap: 18px; align-items: start; padding: 18px; }
  .calibration-reveal.is-card-ready .calibration-card-stage { grid-row: 1; width: min(78vw, 290px); }
  .calibration-reveal.is-card-ready .calibration-reveal-copy { grid-row: 2; }
  .calibration-reveal.is-card-ready .calibration-reveal-copy h2 { max-width: none; }
  .calibration-reveal.is-card-ready .calibration-boundary { max-width: none; }
  .calibration-reveal-copy h2 { font-size: clamp(28px, 8vw, 46px); }
  .calibration-reveal-copy > p:not(.eyebrow):not(.calibration-boundary) { margin: 10px 0; font-size: 13px; }
  .calibration-step { min-height: 44px; padding: 6px 8px; }
  .calibration-actions { display: grid; }
  .calibration-actions .button { width: 100%; }
}

@media (max-width: 620px) {
  .site-header { min-height: 64px; padding: 9px 10px; }
  .logo img { width: 125px; }
  .header-link { font-size: 11px; }
  .hero { min-height: 0; padding: 26px 16px 28px; }
  .hero .eyebrow { margin-bottom: 6px; font-size: 10px; }
  .hero h1 { font-size: clamp(46px, 14vw, 60px); line-height: 0.84; }
  .hero-lede { margin: 14px 0 10px; font-size: 15px; line-height: 1.25; }
  .hero-note { padding: 8px 10px; font-size: 11px; }
  .playground-shell { width: calc(100% - 20px); padding-top: 18px; }
  .context-bar, .section-heading { display: grid; align-items: start; }
  .section-help { max-width: none; text-align: left; }
  .context-grid { grid-template-columns: 1fr; }
  .context-card { padding: 14px; }
  .entry-mode-card { padding: 16px; }
  .entry-mode-options { grid-template-columns: 1fr; }
  .marker-card { padding: 16px; }
  .quick-fill-review-heading { display: grid; align-items: start; }
  .quick-fill-review-heading .button, .quick-fill-actions .button, .quick-fill-review > .button { width: 100%; }
  .quick-fill-summary > div { grid-template-columns: 1fr; gap: 4px; }
  .quick-fill-summary dd { text-align: left; }
  .guide-navigation { grid-template-columns: 1fr; }
  .guide-navigation .button { width: 100%; }
  .guide-navigation .form-status { grid-column: auto; }
  .marker-inputs { grid-template-columns: 1fr; }
  .marker-inputs label:first-child { grid-column: auto; }
  .submit-row { display: grid; }
  .submit-row .button { width: 100%; }
  .result-card, .report-card { border-radius: 10px; }
  .full-result { margin-inline: -10px; padding: 18px 10px; border-radius: 0; }
  .full-result-heading { display: grid; }
  .full-result-heading .button { width: 100%; }
  .result-overview, .feedback-block, .training-detail, .official-boundary { padding: 17px; }
  .overview-facts { grid-template-columns: 1fr; }
  .report-card form { grid-template-columns: 1fr; }
  .report-card form > * { grid-column: 1 !important; }
  .event-cta { width: 100%; }
}

@media (max-width: 440px) {
  .calibration-reveal-inner { grid-template-columns: 112px minmax(0, 1fr); gap: 11px; padding: 12px; }
  .calibration-reveal-copy .eyebrow { font-size: 9px; }
  .calibration-reveal-copy h2 { font-size: clamp(24px, 7.5vw, 34px); }
  .calibration-reveal-copy > p:not(.eyebrow):not(.calibration-boundary) { font-size: 11px; }
  .calibration-step { grid-template-columns: 31px 1fr; min-height: 38px; padding: 4px 6px; }
  .calibration-step span { width: 26px; height: 26px; font-size: 9px; }
  .calibration-step strong { font-size: 10px; }
  .calibration-actions .button { min-height: 44px; padding-inline: 12px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
