/* Anxiety R8.8 palette; reference data-page spacing remains in place. */
:root{--paper:#faf8f2;--ink:#244d46;--text:#304e48;--muted:#4a6055;--sage:#e9eedf;--peach:#e6bda6;--line:#d6dccf;--white:#fffefa;--accent:#244d46;--accent-dark:#244d46;--soft:#f7f5ed;--lavender:#e9eedf}
.anx-input-preview{background:var(--paper);color:var(--text)}.anx-input-preview header{background:var(--paper);border-color:var(--line)}.anx-input-preview .brand{color:var(--ink)}.anx-input-preview #input-editor,.anx-input-preview .demo-panel{background:var(--white);border-color:var(--line)}.anx-input-preview input,.anx-input-preview select{background:var(--white);color:var(--text);border-color:#a1b09a}.anx-input-preview .button.primary,.anx-input-preview .mode-switch button[aria-pressed=true]{background:var(--ink);color:var(--white);border-color:var(--ink)}.anx-input-preview .data-routes label{border-color:var(--line)}.anx-input-preview .data-routes label:has(input:checked){background:#edf1e7;border-color:#879c7e;box-shadow:0 0 0 1px #879c7e}.anx-input-preview .file-picker{background:#f2f5ec;border-color:var(--line)}.anx-input-preview .computed-value{color:var(--ink)}.anx-input-preview .country-menu{background:var(--white);border-color:var(--line)}.anx-input-preview .country-option:hover,.anx-input-preview .country-option.is-active{background:var(--sage)}.anx-input-preview :focus-visible{outline-color:#8b5d40}.anx-input-preview .button.outlined{background:var(--white);color:var(--ink);border-color:#a1b09a}.preview-nav{display:flex;gap:24px;align-items:center;font-size:15px;margin-left:auto}.preview-nav a:hover{text-decoration:underline}.preview-nav a[aria-current=page]{font-weight:650}.anx-input-preview header{flex-wrap:wrap}.anx-input-preview .preview-label{display:none}@media(max-width:760px){.preview-nav{width:100%;margin-left:0;gap:20px;flex-wrap:wrap;font-size:14px}.anx-input-preview header{gap:12px}.anx-input-preview header .brand{font-size:23px}} 
/* Keep restored pages readable immediately, including after navigation. */
.page.active,.hero-copy,.hero-art,.anx-input-preview #data{animation:none!important}
.current-result{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(250px,1fr);align-items:center;gap:38px;padding:34px 0;margin-top:30px;border-top:1px solid #879c7e;outline:none}.current-result h2{font-size:30px;color:var(--ink)}.current-result .eyebrow{font-size:13px;letter-spacing:1px}.current-result a{text-decoration:underline}.current-research-gauge{max-width:360px;width:100%;text-align:center;margin:auto}.current-research-gauge svg{display:block;width:100%;overflow:visible}.current-gauge-arc{stroke:#d1dccb;stroke-width:12;stroke-linecap:round}.current-gauge-ticks path{stroke:#244d46;stroke-width:2}.current-gauge-ticks text{fill:#4a6055;font:14px -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;text-anchor:middle}#current-needle,#current-threshold-point{fill:#244d46}.current-gauge-hub{fill:#244d46;stroke:#fffefa;stroke-width:3}.current-score-number{font-size:42px!important;font-weight:650;line-height:1.2;margin:0}.current-score-number>span+span{font-size:20px;font-weight:400}#model-availability:empty{display:none}@media(max-width:760px){.current-result{grid-template-columns:1fr;gap:20px}.current-result h2{font-size:26px}.current-research-gauge{max-width:300px}}

#home-page .hero-kicker{font-size:12px;letter-spacing:.13em;font-weight:650;color:#46675a;margin:0 0 18px}#home-page .hero-copy h1{font-size:clamp(42px,4.4vw,72px);line-height:1.08}#home-page .hero-actions{display:flex;flex-wrap:wrap;gap:14px;align-items:center}#home-page .hero-actions .button{width:auto;flex:none}#home-page .hero-sub{max-width:470px;font-size:18px;line-height:1.6}#home-page #ask{margin-top:0}@media(max-width:760px){#home-page .hero-actions{align-items:stretch;flex-direction:column}#home-page .hero-actions .button{width:100%;text-align:center}}
/* Screen states: quiet sage versus warm clay, with explicit text as well as colour. */
.current-result[data-screen=negative]{--result-ink:#315b4c;--result-soft:#e9f0e4}
.current-result[data-screen=positive]{--result-ink:#865c3c;--result-soft:#f3eadf}
.current-result #current-result-title{display:inline-block;margin:12px 0;padding:8px 12px;border-radius:5px;background:var(--result-soft);color:var(--result-ink);font-size:27px}
.current-result #current-needle,.current-result .current-gauge-hub{fill:var(--result-ink)}
.current-result .current-score-number{color:var(--result-ink)}
.current-gauge-arc{stroke-linecap:butt;stroke-width:12}
.current-low-arc{stroke:#b7cbb0}.current-high-arc{stroke:#dfbea0}
#current-threshold-point{fill:#fffefa;stroke:#56695f;stroke-width:2.5}
.gauge-ranges{display:flex;flex-wrap:wrap;gap:8px 18px;justify-content:center;font-size:13px;line-height:1.5;margin-top:12px}
.gauge-ranges>span{display:inline-flex;gap:6px;align-items:center}
.range-swatch{display:inline-block;width:12px;height:8px;border-radius:2px;flex:none}
.range-swatch.negative{background:#b7cbb0}.range-swatch.positive{background:#dfbea0}
.report-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:22px}.report-actions .button{font-size:15px;max-width:100%}
@media(max-width:760px){.current-result #current-result-title{font-size:23px}.report-actions{align-items:stretch;flex-direction:column}.report-actions .button{width:100%;white-space:normal;text-align:center}}
/* One score, with screening meaning separate from the internal decision rule. */
.current-score-arc{stroke:#d1dccb;stroke-linecap:round}
.current-score-number{margin-top:8px}

.screen-rule{font-size:14px;line-height:1.6;margin:14px 0;color:#4a6055}.screen-rule summary{cursor:pointer;text-decoration:underline;text-underline-offset:3px}.screen-rule p{font-size:14px!important;overflow-wrap:anywhere;margin:10px 0}
/* Clear screening conclusion first; numeric output stays inside details. */
.screen-visual{max-width:280px;width:100%;text-align:center;justify-self:center;color:var(--result-ink)}
.screen-symbol{width:154px;height:154px;margin:0 auto 16px;border-radius:50%;background:var(--result-soft);display:flex;align-items:center;justify-content:center}
.screen-symbol svg{width:112px;height:112px;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.screen-visual p{font-size:17px;font-weight:600;line-height:1.5;margin:0}
@media(max-width:760px){.screen-visual{max-width:240px}.screen-symbol{width:120px;height:120px}.screen-symbol svg{width:88px;height:88px}}

/* R4.5 — three functions, outcome-specific next action, secondary download. */
.result-next-steps{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:24px}.result-next-steps .button{font-size:15px;max-width:100%;text-align:center;white-space:normal}.current-result .result-next-steps a{text-decoration:none}.current-result .report-actions{margin-top:16px}.current-result .report-actions .text-button{padding:8px 0;border:0;background:transparent;color:var(--ink);font:inherit;font-size:15px;cursor:pointer;text-decoration:underline;text-underline-offset:4px}.current-result .report-actions .text-button:focus-visible{outline:2px solid #8b5d40;outline-offset:4px}
#advice-page{padding-top:28px}#advice-page .ask-section{margin:0;padding-top:0}.quiz-actions{display:flex;align-items:center;flex-wrap:wrap;gap:22px}.self-check-score{display:block;font-size:28px;color:var(--accent)}#quiz-result .button{margin-top:12px}#ai-status:empty,#chat-status:empty{display:none}
@media(max-width:760px){.result-next-steps{align-items:stretch;flex-direction:column}.result-next-steps .button{width:100%}.current-result .report-actions{align-items:flex-start}.quiz-actions{gap:12px}.quiz-actions .button{width:100%}}
