/* Shared flow: the report comes first in reading order, then its details. */
html { scroll-behavior:auto; }
.workspace > .steps { padding: 22px 32px; border-bottom: 1px solid var(--line); justify-content: flex-start; gap: 28px; }
.workspace > .steps li:not(:last-child)::after { width: 40px; }
.form-side { grid-column: 1; grid-row: 1; }
.report-side { grid-column: 2; grid-row: 1; }
#report-title { outline: none; }
.mobile-start { display: none; }
.income-presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.income-presets button { min-height: 36px; border: 1px solid var(--line); border-radius: 7px; padding: 6px 12px; font-size: 11px; background: #f7f9f2; }
.income-presets button:hover { background: #e9f3d8; border-color: #9fb77e; }

@media (max-width: 900px) {
  :root { --muted: #64715f; }
  html { scroll-padding-top: 12px; }
  body { padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
  .shell { width: calc(100% - 32px); max-width: 560px; }
  .site-header { height: auto; min-height: 72px; padding-top: env(safe-area-inset-top, 0px); gap: 12px; }
  .brand { font-size: 19px; gap: 10px; }
  .brand-mark { width: 48px; height: 48px; font-size: 26px; border-radius: 11px; }
  .brand-mark > span { font-size: 19px; }
  .brand small { font-size: 8px; }
  .site-header nav { margin-left: auto; }
  .site-header nav a, .local-badge { display: none; }
  .site-header nav .text-button { min-height: 48px; font-size: 12px; padding: 8px 0 8px 8px; white-space: nowrap; }
  .hero { display: block; position: relative; min-height: 0; padding: 30px 4px 28px; overflow: hidden; }
  .hero-copy { position: relative; z-index: 1; }
  .hero .eyebrow { font-size: 10px; margin-bottom: 16px; }
  .hero h1 { font-size: clamp(30px, 8vw, 40px); line-height: 1.5; letter-spacing: .025em; }
  .hero-copy > p { font-size: 14px; line-height: 1.9; color: #63715a; margin-top: 18px; }
  .hero-meta { flex-wrap: wrap; font-size: 11px; gap: 10px 16px; margin-top: 17px; color: #63715a; }
  .hero-meta svg { width: 17px; height: 17px; }
  .hero-art { position: absolute; right: -125px; top: 36px; transform: scale(.55); width: 340px; opacity: .14; pointer-events: none; }
  .hero-art .axis-label, .hero-art .art-label, .hero-art .art-caption, .hero-art .art-star { display: none; }
  .mobile-start { display: flex; width: 100%; margin-top: 24px; }
  body[data-started="true"] .hero { display: none; }
  body[data-started="true"] .workspace { margin-top: 18px; }
  .workspace { border-radius: 16px; overflow: visible; }
  .workspace-top { padding: 21px 18px 17px; }
  .workspace-top .section-number { font-size: 10px; color: #647654; }
  .workspace-top h2 { font-size: 18px; line-height: 1.6; margin-top: 8px; }
  .prototype-tag { display: none; }
  .workspace > .steps { padding: 18px 14px; justify-content: space-between; gap: 4px; }
  .steps li { font-size: 12px; gap: 6px; color: #66735c; }
  .steps li > span { width: 26px; height: 26px; font-size: 12px; flex-shrink: 0; }
  .workspace > .steps li:not(:last-child)::after { width: 8px; margin-left: 2px; }
  .workbench { display: flex; flex-direction: column; }
  .form-side { padding: 0 18px 23px; min-width: 0; }
  .step-heading { margin: 24px 0; }
  .step-heading > .eyebrow { font-size: 10px; color: #677b53; }
  .step-heading h3 { font-size: 20px; line-height: 1.7; margin-top: 9px; }
  .step-heading > p { font-size: 14px; line-height: 1.85; color: #66745e; }
  legend, .field-label-row > label { font-size: 16px; line-height: 1.7; }
  legend { margin-bottom: 14px; }
  .field-note { display: block; font-size: 12px; line-height: 1.7; margin: 3px 0 0; color: #68775d; }
  .education-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .education-options label > span { min-height: 54px; font-size: 15px; border-radius: 10px; }
  .education-options input:checked + span { background: #e9f5d4; border-color: #698c3d; }
  .income-field { margin-top: 28px; }
  .field-label-row { gap: 10px; }
  .field-label-row .check-label { min-height: 48px; font-size: 13px; gap: 8px; color: #536348; }
  input[type="checkbox"] { width: 21px; height: 21px; }
  .income-entry { gap: 12px; padding: 8px 14px; margin-top: 13px; border: 1px solid #cdd7bf; border-radius: 11px; background: #fafcf6; }
  .income-entry input { flex: 1; width: 100%; font-size: 38px; padding: 4px 0; border: 0; }
  .income-entry > span { font-size: 14px; white-space: nowrap; color: #63715a; }
  .income-presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
  .income-presets button { min-height: 46px; padding: 6px 2px; font-size: 13px; border-radius: 9px; }
  input[type="range"] { height: 44px; margin: 10px 0 0; border-radius: 0; background: transparent; }
  input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 8px; background: #dfe7d4; }
  input[type="range"]::-webkit-slider-thumb { width: 26px; height: 26px; margin-top: -10px; border-width: 5px; box-shadow: 0 0 0 3px #fff; }
  input[type="range"]::-moz-range-track { height: 6px; border-radius: 8px; background: #dfe7d4; }
  input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-width: 5px; }
  .range-scale { font-size: 11px; color: #66765a; }
  .input-hint { font-size: 12px; line-height: 1.9; color: #6b775f; }
  .habit-field { margin-top: 27px; padding-bottom: 20px; border-bottom: 1px solid #e5eadc; }
  .habit-field + .habit-field { padding-top: 0; }
  .field-label-row label small { font-size: 12px; line-height: 1.8; color: #65755a; margin-top: 5px; }
  .habit-field output { font-size: 30px; }
  .habit-field output > span { display: block; margin: 4px 0 0; font-size: 12px; color: #65755a; }
  .habit-field select { font-size: 16px; min-height: 50px; padding: 10px 26px 10px 12px; border-radius: 9px; }
  .form-actions, .result-actions {
    position: fixed; z-index: 5; bottom: 0; left: 0; right: 0;
    margin: 0; padding: 12px max(16px, calc((100vw - 528px) / 2));
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #dae2d0; background: #fbfcf7;
    box-shadow: 0 -4px 18px #27372e09; display: flex; gap: 12px;
  }
  /* Before starting, the entry button owns the first screen. */
  body:not([data-started="true"]) .form-actions { position: static; padding: 22px 0 0; margin-top: 24px; background: transparent; box-shadow: none; }
  .private-note { display: none; }
  .primary-button, .secondary-button { min-height: 54px; font-size: 16px; border-radius: 11px; padding: 13px 18px; }
  .primary-button > span { font-size: 22px; }
  .primary-button:hover { transform: none; }
  .form-actions .primary-button { flex: 1; }
  .back-button { font-size: 15px; min-height: 54px; min-width: 66px; padding: 10px 6px; }
  .form-error { font-size: 14px; line-height: 1.8; padding: 13px; scroll-margin-bottom: 110px; }
  body:not([data-result="true"]) .report-side { display: none; }
  .report-side { display: flex; flex-direction: column; padding: 24px 20px; border-left: 0; border-top: 0; border-bottom: 1px solid #dce4ce; }
  .report-top { font-size: 10px; color: #5e754d; }
  .report-side h3 { margin-top: 22px; font-size: 20px; text-align: center; }
  .report-side > p { font-size: 13px; line-height: 1.8; color: #65765a; text-align: center; }
  .score-display { margin-top: 24px; }
  .score-overline { font-size: 13px; color: #65765a; }
  .big-score { font-size: 104px; height: 104px; margin: 9px 0 15px; letter-spacing: -5px; }
  .score-decimal { font-size: 46px; letter-spacing: -2px; }
  .score-chip { font-size: 12px; padding: 8px 14px; }
  .radar-wrap { width: 100%; max-width: 290px; margin: 20px auto 4px; }
  .radar-label text { font-size: 14px; fill: #526b3c; }
  .report-bottom { padding: 8px 0 14px; font-size: 11px; color: #5c714b; }
  .report-footnote { margin-top: 14px; font-size: 12px; line-height: 1.85; color: #5e704e; }
  .report-footnote p { max-width: none; }
  .report-footnote > span { font-size: 15px; }
  .profile-message { padding: 18px 15px; gap: 10px; }
  .profile-message h4 { font-size: 16px; line-height: 1.8; }
  .profile-message p { font-size: 14px; line-height: 1.9; color: #637358; }
  .profile-symbol { font-size: 26px; }
  .breakdown-heading h4 { font-size: 16px; }
  .breakdown-heading > span { font-size: 11px; color: #65765a; }
  .breakdown-row { grid-template-columns: 78px 1fr 46px; gap: 12px; margin: 24px 0; }
  .breakdown-row .axis-name { font-size: 14px; }
  .axis-name small { font-size: 9px; color: #637559; }
  .axis-score { font-size: 23px; }
  .axis-score.skipped { font-size: 12px; color: #637559; }
  .bar-track { height: 10px; }
  .weight-settings { padding: 7px 0; }
  .weight-settings summary { min-height: 54px; align-items: center; gap: 9px; font-size: 14px; line-height: 1.8; }
  .weight-settings > p { font-size: 13px; color: #64755a; }
  .weight-row { grid-template-columns: 65px 1fr 32px; gap: 12px; font-size: 14px; }
  .weight-row input[type="range"] { margin: 0; }
  .weight-row output { font-size: 16px; }
  .weight-settings .text-button { min-height: 48px; font-size: 13px; margin-top: 8px; }
  .result-actions { flex-wrap: nowrap; }
  .result-actions .primary-button { flex: 1; font-size: 15px; padding-inline: 14px; gap: 9px; }
  .result-actions .secondary-button { min-height: 54px; font-size: 14px; padding-inline: 13px; }
  .save-hint { font-size: 12px; color: #65765a; line-height: 1.9; margin-top: 18px; }
  .about-section { display: block; margin: 35px 0 30px; padding: 0 5px; }
  .about-intro .section-number { font-size: 10px; color: #65765a; }
  .about-intro h2 { font-size: 25px; line-height: 1.7; margin-top: 13px; }
  .about-intro > p { font-size: 14px; color: #64735a; line-height: 1.9; }
  .about-items { margin-top: 28px; gap: 26px; }
  .about-items article { gap: 13px; }
  .about-items h3 { font-size: 15px; line-height: 1.8; }
  .about-items p { font-size: 13px; color: #64735a; max-width: none; }
  .inline-link { min-height: 44px; font-size: 13px; }
  .site-footer { padding: 24px 2px; gap: 12px; flex-wrap: wrap; }
  .footer-brand { font-size: 14px; }
  .footer-brand small, .site-footer p { display: none; }
  .site-footer > span:last-child { font-size: 9px; color: #68785b; }
  dialog { width: min(100%, 600px); max-width: 100%; max-height: 88dvh; margin: auto auto 0; border-radius: 22px 22px 0 0; padding: 0 22px calc(24px + env(safe-area-inset-bottom, 0px)); }
  .dialog-header { position: sticky; top: 0; background: #fcfdf8; padding: 12px 0; z-index: 1; }
  .close-button { min-width: 48px; min-height: 48px; }
  dialog h2 { font-size: 23px; }
  dialog h3 { font-size: 17px; }
  dialog p { font-size: 14px; color: #627156; }
  .formula { font-size: 13px; }
  table { font-size: 14px; }
  th { font-size: 12px; }
  th, td { padding: 12px 8px; }
  dialog .method-note { font-size: 12px; }
  .toast { bottom: calc(94px + env(safe-area-inset-bottom, 0px)); font-size: 14px; padding: 12px 18px; }
}

@media (max-width: 360px) {
  .shell { width: calc(100% - 24px); }
  .site-header { gap: 6px; }
  .brand { font-size: 17px; gap: 8px; }
  .site-header nav .text-button { font-size: 11px; }
  .steps li { font-size: 11px; gap: 4px; }
  .workspace > .steps li:not(:last-child)::after { display: none; }
  .form-side { padding-inline: 14px; }
  .field-label-row .check-label { font-size: 12px; gap: 6px; }
  .education-options label > span { font-size: 14px; }
  .habit-field .field-label-row { align-items: flex-start; }
  .weight-settings summary { font-size: 13px; }
  .result-actions { gap: 8px; padding-inline: 12px; }
  .result-actions .primary-button { font-size: 14px; }
  .result-actions .secondary-button { font-size: 13px; padding-inline: 10px; }
}

/* Expanded, concrete profile inputs. */
.required-tag { display: inline-block; font-size: 11px; font-weight: 600; color: #62441e; background: #f5e9cf; padding: 3px 7px; border-radius: 4px; }
.numeric-slider { min-width: 0; padding: 12px 0 4px; }
.numeric-slider input[type="range"] { display: block; appearance: none; -webkit-appearance: none; width: 100%; height: 44px; margin: 0; background: transparent; cursor: ew-resize; }
.numeric-slider input[type="range"]::-webkit-slider-runnable-track { height: 7px; background: #c7dba9; border-radius: 5px; }
.numeric-slider input[type="range"]::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 25px; height: 25px; margin-top: -9px; border: 4px solid #fff; border-radius: 50%; background: #527333; box-shadow: 0 0 0 1px #78965b; }
.numeric-slider input[type="range"]::-moz-range-track { height: 7px; background: #c7dba9; border-radius: 5px; }
.numeric-slider input[type="range"]::-moz-range-thumb { width: 17px; height: 17px; border: 4px solid #fff; border-radius: 50%; background: #527333; box-shadow: 0 0 0 1px #78965b; }
.numeric-slider.unanswered input[type="range"] { opacity: .55; }
.slider-value-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.slider-value-row output { font-size: 15px; font-weight: 700; color: #3d592c; }
.slider-clear { min-height: 32px; font-size: 11px; color: #63745b; text-decoration: underline; text-underline-offset: 3px; }
.slider-hint { margin-top: 7px; font-size: 11px; color: #63745b; line-height: 1.7; }
.collection-row:has(input[type="search"]) { align-items: start; }
.collection-row:has(input[type="search"]) .collection-remove { margin-top: 33px; }
.axis-culture { left: 6%; top: 80px; transform: rotate(-5deg); }
.collection-row { display: flex; align-items: end; gap: 8px; margin: 14px 0; }
.collection-row .field { flex: 1; margin: 0; }
.qualification-heading { display:flex; align-items:baseline; flex-wrap:wrap; gap:0 8px; margin-bottom:8px; }
.qualification-heading > :is(label,.search-status) { margin:0; }
.collection-remove { padding: 12px 8px; min-height: 48px; font-size: 13px; white-space: nowrap; }
.collection-add { margin: 6px 0 14px; min-height: 48px; }
.collection-field small { font-size: 12px; font-weight: normal; }
.fitness-fields { margin: 24px 0 12px; }
#exercise-details:disabled { opacity: .45; }
@media (max-width: 360px) { .workspace > .steps li { font-size: 10px; } }
.field { margin: 24px 0; min-width: 0; }
.field > label { display: block; font-size: 15px; font-weight: 700; line-height: 1.7; margin-bottom: 9px; }
.field label small { display: inline; margin-left: 4px; font-size: 12px; font-weight: 400; color: #65735e; }
.field > input, .field > select, .number-select > select { width: 100%; min-width: 0; min-height: 48px; font-size: 16px; line-height: 1.5; border: 1px solid #cdd7bf; border-radius: 10px; padding: 10px 12px; background: #fafcf6; color: var(--ink); }
.number-entry { display: flex; align-items: center; gap: 8px; min-height:48px; border: 1px solid #cdd7bf; border-radius: 10px; padding: 0 12px; background: #fafcf6; }
.number-entry input { min-width: 0; width: 100%; height:46px; padding:0; border: 0; background: transparent; color: var(--ink); font-size: 18px; line-height: 1.5; }
.number-entry span { white-space: nowrap; font-size: 12px; color: #65735e; }
.number-entry input::placeholder { color: #8e9b82; font-size: 16px; }
.number-entry:focus-within { border-color:#64823d; outline:2px solid #64823d; outline-offset:2px; }
.number-entry input:focus-visible { outline:none; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-grid .field { margin: 0; }
.section-divider { display:flex; justify-content:space-between; align-items:center; gap:12px; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 28px; }
.section-divider h4 { font-size: 17px; }
.check-label { display:flex; align-items:center; gap:8px; font-size:13px; min-height:44px; }
#body-fields:disabled { opacity: .45; }
.subjective-tag { margin-left:8px; font-size:12px; color:var(--ink); font-weight:600; }
.search-results { list-style:none; padding:0; margin:8px 0; border:1px solid #b6c6a1; border-radius:10px; overflow:hidden; max-height:300px; overflow-y:auto; }
.search-results li + li { border-top:1px solid #e2e8d8; }
.search-results button { display:block; width:100%; min-height:54px; padding:12px 14px; text-align:left; background:#f8fbf1; font-size:15px; overflow-wrap:anywhere; }
.search-results button:hover, .search-results button:focus-visible { background:#e8f3d4; outline-offset:-3px; }
.search-results small { display:block; font-size:11px; color:#627454; margin-top:4px; }
.search-status { font-size:12px; color:#627454; margin-top:8px; line-height:1.7; }
.selection-card { border-left:3px solid #789b4b; border-radius:4px 9px 9px 4px; background:#eff6e6; padding:12px 14px; font-size:14px; line-height:1.8; margin:12px 0; overflow-wrap:anywhere; }
.selection-card small { display:block; font-size:12px; color:#5e704f; }
.selection-card a, .input-hint a, #source-list a { text-decoration:underline; text-underline-offset:3px; }
.company-field { border-top:1px solid var(--line); padding-top:24px; }
.axis-name small { font-size:9px; }
.radar-grid polygon { fill:none; stroke:#cedabb; stroke-width:1; }
.category-group { border:0; border-bottom:1px solid #d9e2ce; border-radius:0; margin:0; }
.category-group summary { display:grid; grid-template-columns:minmax(0,1fr) auto 16px; align-items:center; gap:10px; padding:10px 2px; min-height:60px; cursor:pointer; list-style:none; background:transparent; }
.category-group summary::-webkit-details-marker { display:none; }
.category-name { font-size:15px; font-weight:700; }
.category-score { font:24px/1.1 Arial,sans-serif; color:#3e5d2e; }
.category-result { display:flex; flex-direction:column; align-items:flex-end; gap:2px; }
.category-percentile { font-size:11px; line-height:1.3; font-weight:400; color:#3e5d2e; white-space:nowrap; }
.score-percentile { margin-bottom:14px; padding:8px 14px; border-radius:8px; background:#d8edb5; color:#314829; font-size:18px; font-weight:700; line-height:1.5; text-align:center; }
.category-toggle { font-size:16px; color:#617451; text-align:center; }
.category-toggle::after { content:'＋'; }
.category-group[open] .category-toggle::after { content:'−'; }
.category-content { padding:0 2px; border-top:1px solid #e5eadc; display:grid; grid-template-columns:min(40%, 140px) minmax(0,1fr) 3.4rem; column-gap:10px; }
.category-content .breakdown-row { grid-column:1 / -1; grid-template-columns:subgrid; column-gap:inherit; margin:12px 0; }
.category-content .axis-name { min-width:0; white-space:normal; overflow-wrap:anywhere; font-size:14px; }
.radar-label tspan { font-size:13px; font-weight:700; }
.result-context { border-top:1px solid var(--line); padding-top:18px; font-size:12px; color:#627454; line-height:1.9; }
.result-context p + p { margin-top:10px; }
#source-list h3 { font-size:16px; margin-top:24px; }
#source-list p, #source-list a { font-size:13px; overflow-wrap:anywhere; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
@media (max-width:900px) {
  .workspace > .steps { gap:8px; padding:16px 12px; }
  .steps li { flex:1; flex-direction:column; gap:7px; font-size:11px; }
  .workspace > .steps li:not(:last-child)::after { display:none; }
  .form-step { padding-bottom:12px; }
  .search-field .inline-link { width:100%; text-align:left; line-height:1.7; }
  .radar-wrap { max-width:320px; }
  .field-grid .number-entry { padding-inline:9px; }
}

/* Focused diagnosis flow: one entry point, one input column, details on demand. */
.site-header { min-height:76px; height:76px; }
.hero { max-width:960px; min-height:350px; margin:28px auto 0; padding-block:36px; }
.hero-copy > p { font-size:15px; letter-spacing:0; }
.hero-meta { font-size:12px; }
.mobile-start { display:flex; margin-top:24px; min-width:240px; justify-content:space-between; font-size:16px; }
body[data-started="true"] .hero { display:none; }
body:not([data-result="true"]) .workspace { max-width:760px; margin-inline:auto; }
body:not([data-result="true"]) .workbench { display:block; }
body:not([data-result="true"]) .report-side { display:none; }
.workspace-top { padding:18px 28px 8px; border:0; }
.workspace-top h2 { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
.workspace-top .section-number { font-size:15px; font-weight:700; line-height:1.6; color:var(--green-dark); letter-spacing:0; }
.workspace > .steps { margin:0; padding:8px 28px 16px; justify-content:space-between; gap:10px; }
.workspace > .steps li { display:block; flex:1; min-width:0; }
.workspace > .steps li::after { display:none!important; }
.steps button { display:flex; flex-direction:column; align-items:center; gap:8px; width:100%; padding:8px 2px; font-size:12px; }
.steps button:disabled { opacity:1; cursor:default; }
.steps .step-number { display:grid; place-items:center; width:30px; height:30px; border-radius:50%; background:#f0f3eb; color:#73816b; font:600 13px Arial,sans-serif; }
.steps .active .step-number { background:var(--ink); color:#fff; }
.steps .complete .step-number { background:#e4f4ca; color:#375627; }
.steps .complete button:hover .step-name { text-decoration:underline; }
.steps .active .step-name { font-weight:700; color:var(--ink); }
.form-side { padding:0 32px 28px; }
.step-heading { margin:26px 0; }
.step-heading h3 { margin:0; font-size:24px; }
.step-heading .eyebrow { display:none; }
.field { margin-bottom:24px; }
.field > label, .choice-field legend { font-size:15px; line-height:1.6; font-weight:700; }
.choice-field legend { margin:0 0 10px; }
.choice-options { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.choice-options label { position:relative; display:block; cursor:pointer; }
.choice-options input { position:absolute; opacity:0; width:1px; height:1px; }
.choice-options span { display:flex; align-items:center; justify-content:center; min-height:48px; border:1px solid #cdd6c4; border-radius:10px; padding:10px; background:#fff; font-size:15px; }
.choice-options input:checked + span { border:2px solid #557a38; padding:9px; background:#edf7df; font-weight:700; }
.choice-options input:focus-visible + span { outline:3px solid #64823d; outline-offset:3px; }
@media (max-width:360px) {
  .choice-options:has([name="respondent-type-choice"]) { grid-template-columns:minmax(0,5fr) minmax(0,3fr); }
}
.numeric-slider { display:grid; grid-template-columns:minmax(0,1fr); align-items:center; column-gap:0; margin:0; padding:0; border:0; background:none; }
.numeric-slider .slider-value-row { grid-column:2; grid-row:1; margin:0; }
.numeric-slider input[type="range"] { grid-column:1; grid-row:1; width:100%; margin:0; height:44px; }
.numeric-slider .slider-clear { min-width:48px; min-height:44px; padding:0; font-size:12px; }
.numeric-slider.unanswered input[type="range"] { opacity:.55; }
.input-hint:empty, .search-status:empty, #report-caption:empty { display:none; }
.selection-card { border:0; background:none; padding:0; margin:8px 0; }
.selection-card summary { min-height:44px; display:flex; align-items:center; cursor:pointer; color:#526c41; font-size:12px; }
.selection-card summary::after { content:' ＋'; margin-left:6px; }
.selection-card details[open] summary::after { content:' −'; }
.selection-card details[open] { border-left:2px solid #9bb977; padding:0 12px 12px; background:#f7faef; }
.selection-card details a { display:block; }
.selection-card summary::-webkit-details-marker { display:none; }
.selection-card strong { font-size:13px; }
.compact-details { border-top:1px solid var(--line); padding:12px 0; font-size:13px; color:#5b6d50; line-height:1.9; }
.compact-details > summary { cursor:pointer; min-height:44px; align-content:center; font-weight:600; }
.compact-details > p { margin:8px 0; }
.compact-details .result-context { border:0; padding-top:8px; }
.about-details { max-width:760px; margin:30px auto; }
.about-details .inline-link { min-height:44px; }
body[data-started="true"] .about-details { margin-block:20px; }
.report-side .report-top { display:none; }
.report-side > #report-title { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
.report-side #report-title:focus { outline:0; }
.report-side .score-display { margin-top:16px; }
.report-side .report-footnote { font-size:12px; }
.form-actions { margin-top:28px; }
.form-actions .primary-button { min-height:52px; font-size:15px; }
.site-footer { margin-top:20px; padding-block:24px; }
@media (min-width:901px) {
  body[data-result="true"] .workbench { grid-template-columns:minmax(0,1fr) 370px; }
  .form-actions { justify-content:space-between; }
  .form-actions .primary-button { margin-left:auto; }
}
@media (max-width:900px) {
  .site-header { height:auto; min-height:68px; }
  .hero { margin-top:0; padding:34px 4px 20px; min-height:0; }
  .hero-copy > p { font-size:14px; line-height:1.8; }
  .hero-art { display:none; }
  .hero h1 { font-size:clamp(29px,8vw,39px); }
  .mobile-start { min-width:0; margin-top:26px; }
  .workspace-top { padding:16px 18px 4px; }
  .workspace > .steps { padding:8px 12px 12px; gap:4px; }
  .steps button { font-size:10px; gap:7px; }
  .form-side { padding:0 20px 24px; }
  .step-heading { margin:24px 0; }
  .step-heading h3 { font-size:22px; }
  .field > label { font-size:15px; }
  .input-hint { font-size:12px; line-height:1.7; }
  .form-actions { margin:0; padding-top:10px; padding-bottom:calc(10px + env(safe-area-inset-bottom,0px)); }
  .form-actions .primary-button { min-height:50px; font-size:15px; }
  .form-actions .back-button { min-height:50px; }
  .report-side { padding:22px 20px; }
  .report-side .score-display { margin-top:0; }
  .about-details { margin:22px 4px; }
  body:not([data-started="true"]) { padding-bottom:0; }
  .site-footer { margin-top:0; }
}
.hero-copy .mobile-start { margin-top:0; }
#profile-description:empty { display:none; }
#recalculate { min-height:44px; color:var(--green-dark); font-size:13px; }
[aria-invalid="true"] { outline:2px solid #b65032; outline-offset:3px; }
.choice-options input[aria-invalid="true"] + span { border-color:#b65032; }
.form-error { margin:10px 0 20px; }
@media (max-width:900px) {
  html { scroll-padding-bottom:12px; }
  .form-step input, .form-step select, .form-step summary { scroll-margin-bottom:12px; }
  .field-grid .numeric-slider input[type="range"] { grid-column:1 / -1; }
  .field-grid .numeric-slider .slider-value-row { grid-row:2; }
}


/* Keep every category visible on narrow screens without clipping its name. */
.steps .step-name { white-space:nowrap; }
@media (max-width:600px) {
  .workspace > .steps { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:0; }
  .workspace > .steps button { font-size:clamp(8px,2.3vw,11px); min-height:64px; padding-inline:0; }
  .workspace > .steps .step-number { width:26px; height:26px; font-size:12px; }
}

/* Stronger contrast, with missing answers reflected in the step navigation. */
.steps .step-number { background:#e0e6d9; color:#526347; }
.steps .step-name { color:#526347; }
.steps .complete .step-number { background:#c7df9f; color:#2b4d23; }
.steps .complete .step-name { color:#2b4d23; }
.steps .active .step-number, .steps .active.complete .step-number { background:#294e2c; color:#fff; }
.steps .incomplete .step-number { background:#f4d6d3; color:#a12f2b; }
.steps .incomplete .step-name { color:#a12f2b; }
.steps .active.incomplete .step-number { background:#a12f2b; color:#fff; }
.field > input, .field > select, .number-select > select, .number-entry, .choice-options span { border-color:#9bad8c; background:#f4f7ed; }
.field input::placeholder, .number-entry input::placeholder { color:#6c7c60; }
.field label small, .number-entry span, .input-hint, .search-status, .slider-clear { color:#526448; }
.choice-options input:checked + span { border-color:#487031; background:#d9eac0; }
.numeric-slider.unanswered input[type="range"] { opacity:.8; }
.numeric-slider input[type="range"]::-webkit-slider-runnable-track { background:#9cb978; }
.numeric-slider input[type="range"]::-moz-range-track { background:#9cb978; }
.report-side { background:#e2ebd6; }
.score-percentile { background:#bfd990; color:#254422; }
.score-chip { background:#b4d773; color:#29401f; }
.category-group, .category-content { border-color:var(--line); }

/* Let the radar and each category distribution use the full panel width. */
.report-side.has-result { align-self:start; align-content:start; display:grid; grid-template-columns:minmax(0,1fr); align-items:center; gap:24px; padding:24px 20px; }
.report-side.has-result .score-display { grid-column:1; grid-row:1; margin:0; min-width:0; container-type:inline-size; }
.report-side.has-result .big-score { font-size:clamp(56px,16vw,82px); height:auto; line-height:1; margin:10px 0; }
.report-side.has-result .score-overline { font-size:11px; }
.report-side.has-result .score-percentile { font-size:11px; line-height:1.5; padding:5px 8px; max-width:100%; white-space:normal; }
.report-charts { display:contents; }
.report-charts .radar-wrap { grid-column:1; grid-row:2; width:100%; max-width:400px; margin:0 auto; min-width:0; }
.score-distributions { grid-column:1; grid-row:3; min-width:0; text-align:left; }
#score-distributions { display:grid; grid-template-columns:minmax(0,1fr); gap:18px; }
.distribution-note { font-size:11px; font-weight:700; margin:0 0 10px; line-height:1.5; }
.distribution-note span { margin-left:8px; color:#87520c; font-size:10px; font-weight:400; }
.distribution-item { margin:0; min-width:0; }
.distribution-heading { display:flex; justify-content:space-between; gap:4px; font-size:14px; color:#294e2c; }
.distribution-item svg { display:block; width:100%; height:auto; max-height:104px; }
.report-charts .radar-label text { font-size:18px; }

#company-catalog .company-field { margin-bottom:0; }
#company-status { margin-bottom:0; }
#use-company-estimate { margin-top:0; }

.report-charts .radar-label tspan { font-size:18px; }

/* Discrete choices on a rail; keep each point's touch target at least 44px tall. */
.rating-field { position:relative; }
.rating-field legend { width:100%; padding:0; margin:0 0 4px; font-size:15px; line-height:1.7; }
.rating-points { position:relative; display:grid; grid-template-columns:repeat(var(--rating-count,5),minmax(0,1fr)); }
.rating-points::before { content:''; position:absolute; top:21px; left:calc(50% / var(--rating-count,5)); right:calc(50% / var(--rating-count,5)); height:3px; border-radius:2px; background:#b6c5a6; }
.rating-points label { position:relative; display:flex; flex-direction:column; align-items:center; min-height:44px; cursor:pointer; touch-action:manipulation; }
.rating-points input { position:absolute; inset:0; width:100%; height:100%; margin:0; opacity:0; cursor:pointer; }
.rating-dot { position:relative; pointer-events:none; width:20px; height:20px; margin:12px 0 6px; border:2px solid #7e946b; border-radius:50%; background:#fff; }
.rating-points input:checked + .rating-dot { border:5px solid #365a2b; background:#e1efca; box-shadow:0 0 0 4px #e1efca; }
.rating-points input:focus-visible + .rating-dot { outline:3px solid #64823d; outline-offset:5px; }
.rating-points input[aria-invalid="true"] + .rating-dot { outline:2px solid #b65032; outline-offset:4px; }
.rating-ends { display:flex; justify-content:space-between; gap:12px; font-size:12px; line-height:1.6; color:#526448; }
.rating-ends span:last-child { text-align:right; }
@media (hover:hover) { .rating-points label:hover .rating-dot { border-color:#365a2b; background:#e1efca; } }

.field label .inline-hint, .rating-field legend .inline-hint, .section-divider .inline-hint { display:inline; margin:0 0 0 8px; font-size:11px; line-height:1.5; font-weight:400; color:#526448; }
.score-ending { display:block; margin:0 0 12px; font-size:13px; line-height:1.5; }
.breakdown-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; flex-wrap:wrap; }
#toggle-categories { font-size:12px; min-height:44px; white-space:nowrap; }
.rating-ten .rating-dot { width:16px; height:16px; margin:14px 0 8px; }

.measurement-fields { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.measurement-fields .field { min-width:0; }
.measurement-fields select { padding-inline:8px; }
.report-side.has-result .score-overline { font-size:13px; letter-spacing:.03em; }
.score-line { display:flex; justify-content:center; align-items:baseline; gap:clamp(6px,2cqi,10px); margin:10px 0 14px; white-space:nowrap; }
.report-side.has-result .score-line .big-score { margin:0; font-size:clamp(42px,20cqi,88px); letter-spacing:-.04em; font-weight:600; }
.score-line .score-ending { margin:0; font-size:clamp(12px,4cqi,14px); flex-shrink:0; }
.report-side.has-result .score-percentile { font-size:clamp(10px,3.5cqi,12px); margin-bottom:0; white-space:nowrap; flex-shrink:0; }

/* A stable score color across rows, radar labels and points. */
.report-charts .radar-label .radar-low-label { fill:#426eaa; }
.report-charts .radar-label .radar-unanswered-label { fill:#8b9581; }
#radar-points .radar-low-point { fill:#426eaa; }
.distribution-total { border-bottom:1px solid #cedabb; padding-bottom:14px; }
.distribution-total svg { max-height:120px; }
.distribution-total .distribution-heading { font-weight:700; }
.start-terms, .hero-copy>.start-terms { font-size:11px; line-height:1.6; margin-top:12px; }
.terms-link { font-size:12px; text-decoration:underline; text-underline-offset:3px; }
.report-side #report-caption:not(:empty) { display:block; font-size:11px; line-height:1.6; color:#526448; margin:8px 0; text-align:center; }

.score-display #report-caption { max-width:300px; margin:8px 0 0; }

.field > .contest-awards-label { display:flex; align-items:baseline; gap:6px; white-space:nowrap; }
.field > .contest-awards-label .inline-hint { margin:0; }
@media (max-width:360px) {
  .field > .contest-awards-label { font-size:14px; }
  .field > .contest-awards-label .inline-hint { font-size:10px; }
}

/* Use one gap between fields, including across nested fieldsets. */
.form-step, .form-step fieldset:not(.rating-field):not(.choice-field),
.form-step :is(#social-fields,#additional-social-fields,#university-section,#university-catalog,#university-manual) { display:flex; flex-direction:column; gap:20px; min-width:0; }
.form-step .field, .form-step .field-grid, .form-step .fitness-fields { margin:0; }
.form-step .step-heading { margin:6px 0 4px; }
.form-step .field > label { margin-bottom:8px; }
.form-step .section-divider { margin:4px 0 0; padding-top:20px; }
.form-step > .step-heading + .section-divider { margin:0; padding:0; border:0; }
.form-step .company-field { border:0; padding:0; }
.form-step .collection-field { display:flex; flex-direction:column; gap:12px; }
.form-step :is(#qualifications-list,#hobbies-list) { display:flex; flex-direction:column; gap:16px; }
.form-step .collection-row, .form-step .collection-add { margin:0; }
.form-step .inline-link { margin:0; align-self:flex-start; }
.form-step .input-hint { margin-top:0; }
.form-step .form-actions { margin-top:4px; }
.site-footer { display:block; margin-top:32px; padding:28px 0 24px; border-top:1px solid var(--line); }
.footer-top { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.footer-top nav { display:flex; flex-wrap:wrap; justify-content:center; gap:4px 20px; }
.site-footer .footer-brand { font-size:16px; }
.site-footer .terms-link { display:inline-flex; align-items:center; min-height:44px; font-size:12px; }
.site-footer > small.footer-copyright { display:block; margin-top:18px; text-align:center; font-size:10px; color:#68785b; }
@media (max-width:600px) {
  .footer-top { flex-direction:column; gap:8px; text-align:center; }
  .site-footer { margin-top:24px; }
  .site-footer > small.footer-copyright { margin-top:12px; }
}

.has-field-source { position:relative; }
.has-field-source > label { padding-right:48px; }
.field-source > summary { position:absolute; top:-10px; right:0; width:48px; height:44px; display:flex; justify-content:center; align-items:center; cursor:pointer; list-style:none; color:#526c41; font-size:12px; text-decoration:underline; text-underline-offset:3px; }
.field-source > summary::-webkit-details-marker { display:none; }
.field-source > summary::before { content:'+'; }
.field-source[open] > summary::before { content:'−'; }
.field-source-body { margin-top:8px; border-left:2px solid #9bb977; background:#f7faef; padding:10px 12px; font-size:12px; line-height:1.8; overflow-wrap:anywhere; }
.field-source-body a { display:block; text-decoration:underline; text-underline-offset:3px; }
#company-manual-open, #company-search-return { min-height:44px; }
#company-manual-dialog .dialog-header { background:var(--surface); }
#company-manual-dialog .form-actions { position:static; margin-top:24px; padding:18px 0 0; background:transparent; box-shadow:none; }

/* Compact distribution: label and score beside the chart. */
.distribution-item { display:grid; grid-template-columns:76px minmax(0,1fr); align-items:center; gap:8px; }
.distribution-heading { flex-direction:column; align-items:flex-start; justify-content:center; gap:2px; }
.distribution-heading > strong { font-size:20px; line-height:1.1; }
.distribution-item svg, .distribution-total svg { max-height:72px; }
.distribution-total { padding-bottom:8px; }

.score-group {
  min-width:0; display:flex; flex-direction:column; gap:16px;
  padding:clamp(10px,2vw,20px); border:1px solid var(--line); border-radius:10px;
}
.score-group > h4 { margin:0; color:var(--ink); font-size:17px; }
.club-score-group { display:flex; flex-direction:column; gap:16px; min-width:0; }
.form-step .score-group > .section-divider { border:0; padding:0; margin:0; }
.qualifications-header { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:baseline; gap:8px; }
.qualifications-header > .search-status { margin:0; white-space:nowrap; }
.score-group > .input-score { margin:0; padding-top:12px; border-top:1px solid var(--line); }
.measurement-score-group:has(#female-measurements[hidden]):has(#male-measurements[hidden]),
.club-score-group:has(#student-club-fields[hidden]) { display:none; }
.category-content > .input-hint { grid-column:1 / -1; }

#influence-activity-fields { grid-column:1 / -1; display:flex; flex-direction:column; gap:20px; min-width:0; }

.number-select { position:relative; min-width:0; }

@media(max-width:650px){.measurement-fields{grid-template-columns:1fr;}}

#morality-fields { grid-column:1 / -1; display:flex; flex-direction:column; gap:20px; min-width:0; }
