@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/ibm-plex-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
}

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

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-latin-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --canvas: #121212;
  --surface: #242424;
  --border: #2e2e2e;
  --line: #4d4d4d;
  --muted: #b4b4b4;
  --control: #898989;
  --text: #fafafa;
  --accent: #3ecf8e;
  --body-font: "Inter", sans-serif;
  --heading-font: "IBM Plex Sans", sans-serif;
  --mono-font: "IBM Plex Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--canvas); color: var(--text); font: 400 16px/1.65 var(--body-font); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: 5px; }
a:hover { color: var(--accent); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
button:disabled, input:disabled, select:disabled, textarea:disabled { opacity: .45; cursor: not-allowed; }
::selection { background: var(--accent); color: var(--canvas); }
[hidden] { display: none !important; }
.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; }
.skip-link { position: fixed; top: 12px; left: 16px; transform: translateY(-200%); z-index: 50; background: var(--text); color: var(--canvas); border-radius: 8px; padding: 12px 16px; }
.skip-link:focus { transform: translateY(0); color: var(--canvas); }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { font-family: var(--heading-font); font-weight: 400; line-height: 1.15; letter-spacing: -.025em; }
h1 { font-size: clamp(40px, 5.9vw, 72px); }
h2 { font-size: clamp(30px, 3vw, 36px); }
h3 { font-size: 24px; }
h4 { font-size: 18px; }
p { margin-bottom: 16px; }
svg { display: block; }
.container { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.muted, .field-help, .small { color: var(--muted); }
.small { font-size: 14px; line-height: 1.65; }
.mono, .choice-tag, .plan-label, .question-number, .path-index, .step-number { font-family: var(--mono-font); font-weight: 400; font-size: 12px; }
.accent { color: var(--accent); }
.badge, .draft-pill { display: inline-flex; align-items: center; width: fit-content; border: 1px solid var(--border); border-radius: 100px; padding: 6px 12px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.note { padding: 20px 24px; border: 1px solid var(--border); border-radius: 12px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.note p:last-child { margin-bottom: 0; }

.site-header { position: sticky; top: 0; z-index: 20; background: var(--canvas); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.site-nav { display: flex; align-items: center; gap: 24px; font-size: 14px; color: var(--muted); }
.site-nav a { text-decoration: none; padding-block: 12px; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--text); }
.site-nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 8px; }
.site-nav .nav-saved { padding: 8px 14px; border: 1px solid var(--border); border-radius: 100px; background: var(--surface); color: var(--text); font-size: 12px; }
.site-nav a.nav-find { padding: 10px 16px; min-height: 44px; color: var(--canvas); }
.nav-toggle { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 100px; background: var(--surface); color: var(--text); font-size: 12px; }
.nav-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.wordmark, .wordmark.text-button { font-family: var(--heading-font); font-size: 20px; letter-spacing: -.04em; line-height: 1.2; text-decoration: none; font-weight: 500; color: var(--text); white-space: nowrap; }
.wordmark:hover { color: var(--text); }
.header-actions { display: flex; gap: 16px; align-items: center; }
.header-actions .text-button { font-size: 14px; }
.review-banner { display: flex; align-items: center; justify-content: space-between; gap: 24px; border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; margin-top: 32px; color: var(--muted); font-size: 14px; }
.review-banner p { margin: 0; }
.review-banner strong { color: var(--text); font-weight: 500; }
.review-banner .text-button { flex-shrink: 0; font-size: 14px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .8fr); gap: 48px; padding-block: 64px; align-items: center; }
.hero-copy { min-width: 0; }
.hero h1 { font-size: clamp(40px, 4.6vw, 56px); max-width: 770px; margin-bottom: 32px; }
.hero h1 .accent { display: block; }
.lede { color: var(--muted); font-size: 18px; line-height: 1.7; max-width: 600px; margin-bottom: 32px; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); font-size: 12px; }
.hero-side { min-width: 0; }
.path-card { border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.path-card > p { color: var(--muted); font-size: 14px; }
.path-row { display: flex; align-items: flex-start; gap: 16px; padding: 20px 0; border-top: 1px solid var(--border); }
.path-row:last-child { padding-bottom: 0; }
.path-index { color: var(--accent); flex-shrink: 0; padding-top: 3px; }
.path-text { font-size: 14px; color: var(--muted); }
.path-text strong { color: var(--text); display: block; font-size: 18px; font-family: var(--heading-font); font-weight: 500; margin-bottom: 4px; }
.path-text p { margin: 0; }
.path-text h2 { font-size: 24px; line-height: 1.3; margin-bottom: 8px; }

.workspace { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; padding-top: 48px; border-top: 1px solid var(--border); align-items: start; }
.sidebar { position: sticky; top: 24px; min-width: 0; }
.step-nav { padding: 0; margin: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.step-nav li { min-width: 0; }
.step-link { width: 100%; display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; border: 1px solid transparent; border-radius: 8px; color: var(--muted); background: transparent; padding: 14px 12px; text-align: left; line-height: 1.4; font-size: 14px; }
.step-link:hover { color: var(--text); background: var(--surface); }
.step-link[aria-current="step"], .step-link.active, .step-link.selected { background: var(--surface); border-color: var(--border); color: var(--text); }
.step-link[aria-current="step"] .step-number, .step-link.active .step-number, .step-link.selected .step-number { color: var(--accent); }
.step-number { padding-top: 2px; }
.step-description { display: block; color: var(--muted); font-size: 12px; line-height: 1.65; margin-top: 4px; font-weight: 400; }
.sidebar-note { border-top: 1px solid var(--border); padding: 24px 12px 0; margin-top: 24px; color: var(--muted); font-size: 12px; line-height: 1.8; }
main { min-width: 0; }
.panel { min-width: 0; padding-bottom: 24px; }
.panel-head { margin-bottom: 32px; }
.section-title { font-size: clamp(30px, 3vw, 36px); margin-bottom: 16px; }
.subhead { color: var(--muted); max-width: 700px; margin-bottom: 0; }
.content { display: flex; flex-direction: column; gap: 32px; }
.card { border: 1px solid var(--border); border-radius: 16px; padding: 24px; min-width: 0; }
.card h3 { margin-bottom: 16px; }
.card h2, .profile-card h2 { font-size: 24px; line-height: 1.3; margin-bottom: 16px; }
.card h4 { margin-bottom: 12px; }
.card p:last-child { margin-bottom: 0; }
.grid-two, .grid-three { display: grid; gap: 16px; }
.grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.route-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.route-card, .choice-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 16px; background: transparent; color: var(--text); padding: 24px; text-align: left; line-height: 1.6; }
.route-card:hover, .choice-card:hover, .value-card:hover { border-color: var(--control); background: var(--surface); }
.route-card.selected, .choice-card.selected, .value-card.selected, .route-card[aria-pressed="true"], .choice-card[aria-pressed="true"], .value-card[aria-pressed="true"] { border-color: var(--accent); background: var(--surface); }
.route-card strong, .choice-card strong { font-family: var(--heading-font); font-weight: 500; font-size: 18px; line-height: 1.4; }
.route-card p, .choice-card p { color: var(--muted); font-size: 14px; margin: 0; }
.route-card > span:last-child, .choice-card > span:last-child { color: var(--muted); font-size: 14px; }
.route-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: var(--accent); margin-bottom: 8px; }
.route-icon svg { width: 32px; height: 32px; }
.choice-tag { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }

.field { display: block; min-width: 0; }
.field-label { display: block; margin-bottom: 8px; font-size: 14px; color: var(--text); font-weight: 500; line-height: 1.6; }
.field-help { display: block; font-size: 12px; line-height: 1.7; margin-top: 8px; }
input:not([type="radio"]):not([type="checkbox"]), textarea, select { display: block; width: 100%; min-height: 48px; border: 1px solid var(--control); border-radius: 8px; padding: 12px 14px; color: var(--text); background: var(--surface); font-size: 16px; line-height: 1.5; }
textarea { min-height: 120px; resize: vertical; }
select { padding-right: 32px; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
input[type="radio"], input[type="checkbox"] { accent-color: var(--accent); width: 17px; height: 17px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.button, .secondary { display: inline-flex; justify-content: center; align-items: center; gap: 10px; width: fit-content; min-height: 48px; padding: 12px 24px; border: 1px solid var(--text); border-radius: 100px; background: var(--text); color: var(--canvas); text-decoration: none; font-size: 14px; font-weight: 500; line-height: 1.5; }
.button:hover { background: var(--muted); color: var(--canvas); border-color: var(--muted); }
.secondary, .button.secondary { color: var(--text); background: transparent; border-color: var(--line); }
.secondary:hover, .button.secondary:hover { background: var(--surface); border-color: var(--control); color: var(--text); }
.text-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border: 0; padding: 8px 0; color: var(--muted); background: transparent; font-size: 14px; line-height: 1.5; text-decoration: underline; text-underline-offset: 5px; }
.text-button:hover { color: var(--text); }
.panel-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.panel-footer > div { display: flex; align-items: center; gap: 16px; }
.error { border-left: 2px solid var(--accent); padding: 8px 16px; margin: 24px 0 0; color: var(--text); font-size: 14px; }
.error:empty { display: none; }
.progress-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 12px; margin-bottom: 12px; }
.progress-track { height: 3px; border-radius: 4px; background: var(--border); overflow: hidden; }
.progress-fill { height: 100%; background: var(--accent); border-radius: 4px; transition: width 200ms ease; }
.question-list { display: flex; flex-direction: column; gap: 0; }
.question, .question fieldset { min-width: 0; }
.question { margin: 0; padding: 28px 0; border: 0; border-bottom: 1px solid var(--border); }
.question fieldset { border: 0; padding: 0; margin: 0; }
.question legend { display: block; width: 100%; margin-bottom: 20px; padding: 0; font-size: 18px; font-family: var(--heading-font); font-weight: 400; line-height: 1.6; }
.question-number { color: var(--muted); margin-right: 12px; }
.answer-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.answer-option { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 10px; min-height: 84px; min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 14px 8px; cursor: pointer; color: var(--muted); text-align: center; }
.answer-option:hover { background: var(--surface); border-color: var(--control); color: var(--text); }
.answer-option:has(input:checked) { border-color: var(--accent); background: var(--surface); color: var(--text); }
.answer-option:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 4px; }
.answer-option input { margin: 0; flex-shrink: 0; }
.answer-label { font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.answer-label > span { display: block; margin-bottom: 4px; }
.value-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.value-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; border: 1px solid var(--line); border-radius: 12px; padding: 20px; text-align: left; background: transparent; color: var(--text); min-height: 112px; }
.value-name { font-family: var(--heading-font); font-size: 18px; font-weight: 500; line-height: 1.5; }
.value-detail { color: var(--muted); font-size: 12px; line-height: 1.7; }
.values-count { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; color: var(--muted); font-size: 14px; }
.values-count strong { color: var(--accent); font-weight: 500; }

.profile-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px; }
.profile-grid > section:last-child { display: flex; flex-direction: column; gap: 16px; }
.score-list { display: flex; flex-direction: column; gap: 24px; }
.score-row { min-width: 0; }
.score-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 12px; font-size: 14px; }
.score-head strong { font-weight: 500; }
.score-head span:last-child { color: var(--muted); font-family: var(--mono-font); font-size: 12px; }
.score-track { position: relative; height: 4px; background: var(--line); margin-block: 16px; }
.score-marker { position: absolute; width: 10px; height: 10px; border: 2px solid var(--canvas); outline: 1px solid var(--accent); border-radius: 50%; background: var(--accent); top: -3px; transform: translateX(-50%); }
.score-scale { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.score-scale > :last-child { text-align: right; }
.score-row p { color: var(--muted); font-size: 14px; margin: 12px 0 0; }
.profile-card { border: 1px solid var(--border); border-radius: 16px; padding: 24px; min-width: 0; }
.profile-card h3 { font-size: 24px; margin-bottom: 12px; }
.profile-card p { color: var(--muted); font-size: 14px; }
.fit-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.fit-controls button { border: 1px solid var(--line); border-radius: 100px; padding: 10px 14px; min-height: 44px; color: var(--muted); background: transparent; font-size: 12px; }
.fit-controls button:hover { color: var(--text); border-color: var(--control); }
.fit-controls button.selected, .fit-controls button[aria-pressed="true"] { border-color: var(--accent); color: var(--text); background: var(--surface); }
.feedback-summary { border-left: 2px solid var(--accent); padding: 0 0 0 24px; margin-block: 32px; }
.feedback-summary p { margin-bottom: 0; color: var(--muted); }
.feedback-summary strong { color: var(--text); font-weight: 500; }
.feedback-summary.card { padding: 24px; margin: 0; }
.why { border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; color: var(--muted); font-size: 14px; margin-top: 12px; }
.why summary { cursor: pointer; color: var(--text); min-height: 28px; }
.why[open] summary { margin-bottom: 16px; }
.why p:last-child { margin-bottom: 0; }

.plan-summary { border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.plan-summary h3 { margin-bottom: 24px; }
.plan-line { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 24px; padding: 20px 0; border-top: 1px solid var(--border); }
.plan-line:last-child { padding-bottom: 0; }
.plan-label { color: var(--muted); padding-top: 3px; }
.plan-value { font-size: 16px; overflow-wrap: anywhere; }
.resource-links { display: flex; flex-direction: column; gap: 12px; }
.resource-links a { width: fit-content; font-size: 14px; }
.checkin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.day-card { border: 1px solid var(--border); border-radius: 16px; padding: 24px; min-width: 0; }
.day-card h3 { font-size: 18px; margin-bottom: 8px; font-weight: 500; }
.day-card p { color: var(--muted); font-size: 14px; }
.day-card .field { margin-bottom: 16px; }
.day-card .field:last-child { margin-bottom: 0; }
.status-options { margin-top: 20px; }
.status-options select { font-size: 14px; }
textarea.log-note { min-height: 80px; font-size: 14px; }
.review-summary { border-left: 2px solid var(--accent); padding-left: 24px; }
.review-summary.card { padding: 24px; }
.review-summary h3 { margin-bottom: 12px; }
.review-summary p { color: var(--muted); }
.review-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.empty-state { border: 1px dashed var(--line); border-radius: 16px; padding: 48px 32px; text-align: center; }
.empty-state p { color: var(--muted); max-width: 440px; margin-inline: auto; }
.empty-state .button { margin-top: 8px; }
.source-list { padding-left: 20px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.source-list li { margin-bottom: 16px; }
.source-list a { color: var(--text); }
.screen-message { padding: 20px 24px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; }
.footer { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; border-top: 1px solid var(--border); padding-block: 32px 48px; margin-top: 80px; color: var(--muted); font-size: 12px; }
.footer p { max-width: 640px; margin: 0; }
.footer a, .footer .text-button { font-size: 12px; }
.site-footer { border-top: 1px solid var(--border); padding-block: 40px 32px; color: var(--muted); font-size: 12px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 48px; }
.site-footer p { margin-top: 16px; }
.site-footer nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.site-footer nav a { text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding-top: 24px; margin-top: 32px; border-top: 1px solid var(--border); }
.footer-bottom p { margin: 0; }
dialog { width: min(680px, calc(100vw - 40px)); max-height: calc(100dvh - 48px); padding: 32px; border: 1px solid var(--line); border-radius: 16px; background: var(--canvas); color: var(--text); overflow-y: auto; }
dialog::backdrop { background: rgb(0 0 0 / 78%); }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.dialog-head h2 { margin: 0; font-size: 30px; }
.dialog-head .text-button { flex-shrink: 0; }
.dialog-content { color: var(--muted); font-size: 14px; }
.dialog-content h3 { margin-top: 32px; color: var(--text); font-size: 24px; }
.dialog-content strong { color: var(--text); font-weight: 500; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 12px; border-top: 1px solid var(--border); margin-top: 32px; padding-top: 24px; }

@media (max-width: 1199px) {
  .site-nav { gap: 16px; }
  .wordmark { font-size: 18px; }
}

@media (max-width: 1023px) {
  .header-inner { flex-wrap: wrap; padding-block: 16px; }
  .site-nav { flex-wrap: wrap; }
  .js .header-inner { min-height: 64px; padding-block: 0; flex-wrap: nowrap; }
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { position: absolute; left: 24px; right: 24px; top: calc(100% + 8px); display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
  .js .site-nav a { min-height: 44px; padding: 12px; }
  .js .site-nav .nav-find { margin-top: 8px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-note { grid-column: 1 / -1; max-width: 65ch; }
}

@media (max-width: 1040px) {
  .hero { gap: 40px; grid-template-columns: minmax(0, 1.7fr) minmax(270px, .8fr); }
  .workspace { grid-template-columns: 200px minmax(0, 1fr); gap: 32px; }
  .route-grid { gap: 12px; }
  .route-card { padding: 20px; }
  .value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .container { width: calc(100% - 48px); }
  .hero { grid-template-columns: minmax(0, 1fr); padding-block: 64px; gap: 40px; }
  .hero h1 { max-width: 700px; }
  .path-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .path-card > p { grid-column: 1 / -1; margin-bottom: 0; }
  .path-row { padding: 16px 0 0; gap: 12px; }
  .workspace { display: flex; flex-direction: column; gap: 40px; padding-top: 32px; }
  .sidebar { position: static; width: 100%; }
  .step-nav { flex-direction: row; overflow-x: auto; padding-bottom: 12px; gap: 8px; scrollbar-color: var(--line) transparent; scrollbar-width: thin; }
  .step-nav li { flex: 0 0 152px; }
  .step-link { height: 100%; }
  .step-description { display: none; }
  .sidebar-note { display: none; }
  .workspace main { width: 100%; }
  .panel-head { margin-bottom: 32px; }
  .grid-three { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .container { width: calc(100% - 40px); }
  .header-inner { min-height: 76px; gap: 12px; }
  .wordmark, .wordmark.text-button { font-size: 18px; }
  .header-actions { gap: 12px; }
  .header-actions .text-button { font-size: 12px; }
  .draft-pill { padding: 4px 8px; font-size: 12px; }
  .review-banner { flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px; margin-top: 24px; font-size: 12px; }
  .review-banner .text-button { min-height: 32px; font-size: 12px; }
  .hero { padding-block: 48px; gap: 32px; }
  .hero h1 { font-size: clamp(36px, 10.4vw, 56px); line-height: 1.1; margin-bottom: 24px; }
  .lede { font-size: 16px; margin-bottom: 24px; }
  .hero-actions { gap: 12px; }
  .meta-row { gap: 8px 16px; }
  .path-card { display: block; padding: 20px; }
  .path-row { padding-block: 16px; }
  .path-text strong { font-size: 16px; }
  .path-text h2 { font-size: 20px; }
  .workspace { gap: 32px; padding-top: 24px; }
  .step-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; padding-bottom: 0; }
  .step-nav li { flex-basis: auto; }
  .step-link { padding: 12px; gap: 8px; font-size: 12px; }
  .section-title { font-size: 30px; }
  .subhead { font-size: 14px; }
  .content { gap: 24px; }
  .grid-two, .form-row, .checkin-grid { grid-template-columns: minmax(0, 1fr); }
  .route-grid { grid-template-columns: minmax(0, 1fr); }
  .route-card { padding: 20px; gap: 8px; }
  .route-icon { margin-bottom: 4px; }
  .card, .profile-card, .plan-summary, .day-card { padding: 20px; }
  .value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .value-card { padding: 16px; min-height: 120px; }
  .value-name { font-size: 16px; }
  .value-detail { font-size: 12px; }
  .question { padding-block: 24px; }
  .question legend { font-size: 16px; }
  .question-number { margin-right: 8px; }
  .answer-options { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .answer-option { flex-direction: row; justify-content: flex-start; text-align: left; padding: 12px 14px; min-height: 48px; gap: 12px; }
  .answer-label { display: flex; align-items: baseline; gap: 12px; font-size: 14px; line-height: 1.5; overflow-wrap: normal; }
  .answer-label > .mono { display: inline; margin-bottom: 0; }
  .score-head { gap: 8px; }
  .score-scale { gap: 24px; }
  .score-scale > span { max-width: 46%; }
  .plan-line { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .plan-label { padding: 0; }
  .panel-footer { gap: 16px; margin-top: 32px; }
  .panel-footer > div { gap: 12px; flex-wrap: wrap; }
  .panel-footer .button, .panel-footer .secondary { padding-inline: 20px; }
  .values-count { font-size: 12px; gap: 12px; }
  .footer { margin-top: 48px; padding-bottom: 32px; flex-direction: column; gap: 16px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .footer-note { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 12px; }
  dialog { width: calc(100vw - 32px); padding: 24px; }
  .dialog-head { gap: 16px; }
  .dialog-head h2 { font-size: 24px; }
  .dialog-actions { flex-wrap: wrap; }
}

@media (max-width: 360px) {
  .container { width: calc(100% - 32px); }
  .header-actions .draft-pill { display: none; }
  .hero h1 { font-size: 36px; }
  .value-grid { grid-template-columns: minmax(0, 1fr); }
  .value-card { min-height: 96px; }
  .answer-label { font-size: 14px; }
  .answer-option { padding-inline: 12px; }
  .fit-controls { gap: 6px; }
  .fit-controls button { padding-inline: 10px; }
  .panel-footer { align-items: stretch; }
  .panel-footer .button { width: 100%; }
}

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

@media print {
  :root { color-scheme: light; --canvas: white; --surface: white; --border: #ccc; --line: #888; --muted: #555; --control: #777; --text: #111; --accent: #111; }
  body { color: #111; background: #fff; font-size: 11pt; }
  .container { width: 100%; max-width: none; }
  .site-header, .site-footer, .skip-link, #assessment-interest, .review-banner, .hero, .sidebar, .footer, .panel-footer, .review-actions, .fit-controls, dialog, .error, button, .button, .text-button { display: none !important; }
  .workspace { display: block; padding: 0; border: 0; }
  .panel-head { margin-bottom: 24px; }
  h2 { font-size: 26pt; }
  h3 { font-size: 16pt; }
  .content { gap: 20px; }
  .card, .plan-summary, .profile-card, .day-card, .note, .plan-line { break-inside: avoid; }
  .plan-summary, .card, .profile-card { padding: 16px; }
  .plan-label { font-size: 9pt; }
  .plan-value { font-size: 11pt; }
  a { color: #111; text-decoration: underline; }
  .resource-links a::after { content: " (" attr(href) ")"; font-size: 9pt; overflow-wrap: anywhere; }
  input, textarea, select { border-color: #ccc !important; background: white !important; color: #111 !important; }
}
