:root{--ink:#39313f;--muted:#6b6270;--accent:#805878;--accent-dark:#65415e;--line:#e9dfe6;--paper:#fffdfb;--soft:#fbf3ef;--lavender:#f3edf7}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--paper);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-size:16px;line-height:1.65}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button{cursor:pointer}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #a782b8;outline-offset:4px}button:disabled{cursor:wait;opacity:.6}[hidden]{display:none!important}h1,h2,h3,p{margin:0 0 18px}h1{font-size:clamp(35px,4.6vw,64px);font-weight:550;letter-spacing:-2.6px;line-height:1.13}h2{font-size:25px;line-height:1.3;letter-spacing:-.6px;font-weight:600}h3{font-size:18px;line-height:1.4}p{color:var(--muted)}header{height:86px;display:flex;align-items:center;gap:35px;padding:0 5%;background:var(--paper);border-bottom:1px solid var(--line)}.brand{display:flex;gap:8px;align-items:center;font-size:29px;font-weight:700;letter-spacing:-1px;color:var(--accent)}.brand>span:first-child{font-size:35px}.brand-detail{font-size:10px;font-weight:400;letter-spacing:0;margin-left:8px;color:var(--muted)}nav{display:flex;gap:27px;margin-left:auto;font-size:13px}nav a:hover,.back:hover,.text-button:hover{color:var(--accent);text-decoration:underline}.urgent-link{font-size:11px;color:var(--accent);padding-left:20px;border-left:1px solid var(--line)}.skip{position:fixed;top:-60px;left:20px;background:white;padding:10px;z-index:5}.skip:focus{top:10px}.page{animation:enter .3s ease-out;min-height:60svh}.page:not(#home){padding:50px 6% 70px}.page.narrow{max-width:870px;margin:auto}.eyebrow{font-size:11px;font-weight:650;letter-spacing:1.5px;color:var(--accent);text-transform:uppercase;margin-bottom:17px}.hero{position:relative;isolation:isolate;min-height:560px;overflow:hidden;display:flex;align-items:center;background:#fcf6ef}.hero>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 54%;z-index:-1}.hero-copy{margin:45px 6%;width:44%;max-width:520px}.hero-copy h1{font-size:clamp(42px,4.8vw,68px)}.hero-copy>p:not(.eyebrow){font-size:17px;line-height:1.7;max-width:460px;color:#594b59}.hero-copy .eyebrow{color:#78506d}.button{display:inline-flex;align-items:center;justify-content:center;gap:20px;padding:12px 22px;border-radius:8px;min-height:49px;border:1px solid var(--line);background:#fff;color:var(--accent-dark);font-size:14px;font-weight:600;transition:background .2s,transform .2s}.button.primary{background:var(--accent);color:#fff;border-color:var(--accent)}.button.primary:hover{background:var(--accent-dark);transform:translateY(-1px)}.hero-secondary{display:block;font-size:13px;text-decoration:underline;color:var(--accent-dark);margin-top:13px}.feature-links{display:grid;grid-template-columns:repeat(4,1fr);padding:30px 5%;gap:30px;border-bottom:1px solid var(--line)}.feature-links>a{display:flex;align-items:flex-start;gap:13px;padding:6px 0;transition:transform .2s}.feature-links>a:hover{transform:translateY(-3px)}.feature-links>a>span{font-size:25px;color:var(--accent);line-height:1.2}.feature-links h2{font-size:16px;letter-spacing:-.3px;margin:0 0 7px}.feature-links p{font-size:12px;line-height:1.5;margin:0}.feature-links b{font-weight:400;color:var(--accent);margin-left:auto}.home-ask{padding:55px 6%;display:grid;grid-template-columns:1fr 1.1fr;gap:75px;background:var(--paper)}.home-ask h2{font-size:33px}.home-ask p{font-size:14px;max-width:430px}.service-status{font-size:12px;color:var(--accent)}label{display:block;font-size:14px;font-weight:550;margin-bottom:8px}textarea,input:not([type=radio]):not([type=checkbox]),select{border:1px solid #cdbecb;background:white;color:var(--ink);border-radius:7px;padding:12px;width:100%;font-size:15px}textarea{resize:vertical;line-height:1.55}input[type=radio],input[type=checkbox]{accent-color:var(--accent);width:18px;height:18px;flex-shrink:0}input[type=file]{font-size:13px!important}select{min-height:47px}.small{font-size:12px!important;line-height:1.6}.home-ask .small{margin:10px 0 15px}.gentle-note{margin:0 6%;padding:25px 0 40px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:35px;font-size:12px}.gentle-note p{max-width:680px;margin:0}.gentle-note a{white-space:nowrap;color:var(--accent)}.lede{font-size:18px;line-height:1.7;max-width:750px;margin-bottom:22px}.back{display:inline-block;font-size:13px;color:var(--accent);margin-bottom:23px}.phq-progress{display:flex;justify-content:space-between;font-size:12px;padding:18px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:30px 0 4px;color:var(--muted)}.question{border:0;border-bottom:1px solid var(--line);padding:23px 0;margin:0;min-width:0}.question legend{padding:0;float:left;width:100%;font-size:17px;font-weight:550;line-height:1.5;margin-bottom:16px}.question legend span{color:var(--accent);font-size:12px;margin-right:12px}.answer-options{clear:both;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.answer-options label{padding:12px 9px;margin:0;border:1px solid var(--line);border-radius:7px;display:flex;align-items:center;gap:8px;font-size:12px;font-weight:400;line-height:1.4;cursor:pointer;min-height:65px}.answer-options label:has(input:checked){background:var(--lavender);border-color:var(--accent)}.answer-options input{width:16px;height:16px}.difficulty{border:0;padding:25px 0;margin:0}.difficulty legend{font-size:15px;padding:0;float:left;width:100%;margin-bottom:8px}.difficulty select{margin-top:5px}.actions{display:flex;justify-content:space-between;align-items:center;gap:20px;border-top:1px solid var(--line);padding-top:22px;margin:23px 0}.text-button{color:var(--accent);border:0;background:none;padding:9px 0;font-size:13px;text-align:left}.error{color:#8e3b54;font-size:14px;padding:16px 0}.source-note{font-size:11px;border-top:1px solid var(--line);padding-top:22px;margin-top:35px;line-height:1.8}.source-note a{color:var(--accent);text-decoration:underline}.phq-result{background:var(--lavender);padding:32px;border-radius:12px;margin-top:30px}.score-number{font-size:60px;line-height:1.2;letter-spacing:-2px;margin:10px 0 20px;color:var(--accent)}.score-number small{font-size:20px;letter-spacing:0;color:var(--muted);margin-left:12px}.safety-inline{padding:24px;border-left:3px solid #b67f74;background:#fcf1e8;margin-top:25px}.safety-inline h2{font-size:22px}.safety-inline p{font-size:14px}.safety-inline a{color:var(--accent-dark)}.chat-heading{display:flex;justify-content:space-between;gap:30px}.chat-heading h1{font-size:42px;margin-bottom:12px}.chat-heading p{font-size:14px}.chat-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:45px;margin-top:25px}.chat-layout aside{border-top:1px solid var(--line);padding-top:25px}.chat-layout aside h2{font-size:18px}.prompt{border:0;background:none;text-align:left;color:var(--accent);font-size:13px;padding:13px 0;border-bottom:1px solid var(--line);width:100%;line-height:1.6}.chat-layout aside .small{margin-top:25px}.conversation{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:14px;overflow:hidden;height:min(660px,75svh);min-height:500px;background:white}.chat-log{flex:1;overflow-y:auto;padding:28px;overscroll-behavior:contain}.chat-intro{padding:30px 0;max-width:440px;margin:0 auto;text-align:center}.chat-intro>span{color:var(--accent);font-size:45px}.chat-intro h2{font-size:23px}.chat-intro p{font-size:14px}.message{margin:0 0 18px;max-width:88%}.message.user{margin-left:auto}.message .label{font-size:10px;color:var(--muted);margin-bottom:4px}.message .text{padding:13px 17px;border-radius:13px;background:var(--lavender);white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.65}.message.user .text{background:#f7f3ef}.message.error .text{background:#fff3ed}.conversation form{padding:15px 20px 10px;border-top:1px solid var(--line);background:#fff}.consent{display:flex;align-items:flex-start;gap:9px;font-weight:400;font-size:11px;line-height:1.6;margin:10px 0 16px}.consent input{margin-top:2px}.chat-composer{display:flex;align-items:flex-end;gap:10px}.chat-composer textarea{min-height:58px;max-height:130px}.chat-composer .button{padding:11px 17px}.chat-safety{padding:12px 20px;background:#fcf1e8;font-size:12px}.chat-safety p{margin-bottom:5px}.chat-safety a{color:var(--accent);text-decoration:underline}.support-grid{display:grid;grid-template-columns:1fr 1fr;gap:38px 55px;margin-top:45px}.support-grid article{border-top:1px solid var(--line);padding:24px 0}.support-grid article>span{font-size:11px;color:var(--accent)}.support-grid h2{font-size:25px;margin:14px 0}.support-grid p{font-size:15px;max-width:500px}.support-grid a{font-size:13px;color:var(--accent);text-decoration:underline}.help-strip{padding:28px;background:var(--soft);display:flex;align-items:center;justify-content:space-between;gap:30px;border-radius:10px;margin-top:35px}.help-strip h2{font-size:22px;margin:0}.urgent-actions{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0 35px}#urgent h2{margin-top:32px;font-size:24px}.data-layout{display:grid;grid-template-columns:210px minmax(0,1fr);gap:50px;margin-top:40px}.data-steps{padding:0;margin:0 0 30px;list-style:none;font-size:13px}.data-steps li{padding:12px 0;border-bottom:1px solid var(--line)}.data-layout aside .back{display:block}.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:23px 25px}.field label{font-size:13px}.field small{display:block;font-size:11px;color:var(--muted);margin-top:5px}.definition{font-size:12px;color:var(--muted);margin:22px 0}.definition summary,details summary{cursor:pointer;color:var(--accent)}.definition p{margin-top:12px}.spaced{margin-top:35px}.data-routes{padding:0;border:0;margin:20px 0}.data-routes label{display:flex;align-items:center;gap:10px;padding:11px 0;font-size:14px;font-weight:400}.uploads>div{margin:20px 0;padding:20px 0;border-bottom:1px solid var(--line)}.uploads a{display:inline-block;font-size:12px;color:var(--accent);text-decoration:underline;margin:12px 0}.file-state{margin:0}.data-review{border-top:2px solid var(--accent);padding-top:25px;margin-top:30px}.data-review dl{display:grid;grid-template-columns:1fr 1.5fr;font-size:13px;gap:12px 20px}.data-review dt{color:var(--muted)}.data-review dd{margin:0;overflow-wrap:anywhere}#prediction-result{background:var(--lavender);padding:25px;border-radius:10px;margin:22px 0}#about h2{font-size:23px;margin-top:30px}#about details{margin:20px 0}#about details p{font-size:14px;margin-top:12px}#about a{color:var(--accent);text-decoration:underline}footer{border-top:1px solid var(--line);padding:25px 5%;display:flex;align-items:center;gap:25px;font-size:11px}footer p{font-size:11px;margin:0 auto 0 0}footer .brand{font-size:22px}.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}@keyframes enter{from{opacity:.3;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}@media(max-width:950px){header{padding:0 4%;gap:20px}nav{gap:18px}.brand-detail{display:none}.hero-copy{width:47%;margin-left:5%}.hero-copy h1{font-size:49px}.hero-copy>p:not(.eyebrow){font-size:15px}.feature-links{grid-template-columns:1fr 1fr;gap:25px 35px}.home-ask{gap:35px}.chat-layout{grid-template-columns:180px 1fr;gap:25px}.data-layout{grid-template-columns:165px 1fr;gap:30px}}@media(max-width:650px){header{height:auto;min-height:75px;padding:14px 5%;flex-wrap:wrap;gap:10px 20px}.brand{font-size:26px}nav{order:3;flex-basis:100%;justify-content:space-between;font-size:12px;gap:15px;border-top:1px solid var(--line);padding-top:9px;margin:2px 0 0}.urgent-link{margin-left:auto;font-size:10px;border:0}.hero{min-height:640px;align-items:flex-start}.hero>img{object-position:62% bottom;object-fit:cover;opacity:.9}.hero:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#fffcf6 0%,#fffcf6f2 34%,#fffcf600 66%);z-index:-1}.hero-copy{width:auto;max-width:450px;margin:32px 6% 0}.hero-copy h1{font-size:46px}.hero-copy .eyebrow{font-size:10px;margin-bottom:13px}.hero-copy>p:not(.eyebrow){font-size:14px;max-width:330px}.hero-copy .button{min-height:46px;padding:10px 17px;font-size:13px}.hero-secondary{font-size:12px}.feature-links{padding:25px 6%;gap:25px 20px}.feature-links h2{font-size:14px}.feature-links p{font-size:11px}.feature-links>a{gap:8px}.feature-links>a>span{font-size:20px}.feature-links b{display:none}.home-ask{grid-template-columns:1fr;padding:35px 6%;gap:25px}.home-ask h2{font-size:29px}.gentle-note{flex-direction:column;gap:12px}.page:not(#home){padding:32px 6% 50px}h1{font-size:37px;letter-spacing:-1.5px}.lede{font-size:16px}h2{font-size:23px}.answer-options{grid-template-columns:1fr 1fr}.answer-options label{min-height:52px;font-size:12px}.question legend{font-size:16px}.phq-progress{font-size:11px;gap:15px}.phq-result{padding:25px}.actions .button{font-size:12px;padding:11px 15px;gap:8px}.safety-inline{padding:18px}.safety-inline h2{font-size:20px}.chat-heading{gap:12px}.chat-heading h1{font-size:35px}.chat-heading p{font-size:12px}.chat-heading>.text-button{align-self:flex-start;font-size:11px;max-width:85px}.chat-layout{grid-template-columns:1fr;gap:18px;margin-top:16px}.chat-layout aside{display:flex;flex-wrap:wrap;gap:6px 16px;padding-top:10px}.chat-layout aside h2,.chat-layout aside .small,.chat-layout aside .back{display:none}.prompt{width:auto;font-size:11px;padding:6px 0;flex:1;min-width:100px}.conversation{height:52svh;min-height:400px;border-radius:10px}.chat-log{padding:18px}.conversation form{padding:12px}.chat-composer .button{font-size:12px;padding:10px 12px}.chat-composer textarea{font-size:14px}.consent{font-size:10px;margin:3px 0 10px}.chat-intro h2{font-size:22px}.support-grid{grid-template-columns:1fr;gap:12px;margin-top:30px}.support-grid h2{font-size:23px}.help-strip{flex-direction:column;align-items:flex-start;padding:22px;gap:15px}.data-layout{grid-template-columns:1fr;gap:24px}.data-layout aside{border-bottom:1px solid var(--line)}.data-steps{display:flex;gap:15px;justify-content:space-between;font-size:10px;margin:0 0 12px}.data-steps li{border:0}.data-layout aside .small{display:none}.data-layout aside .back{font-size:11px;display:inline-block;margin-left:20px}.fields{grid-template-columns:1fr;gap:18px}.data-review dl{grid-template-columns:1fr 1.1fr}.urgent-actions .button{font-size:13px}footer{flex-wrap:wrap;gap:12px 20px}footer p{flex:1;font-size:10px;min-width:200px}footer>a:not(.brand){font-size:10px}}
/* V3: preserve the visual system, make the working surfaces easier to use. */
.hero{min-height:470px}.hero-copy{margin-top:30px;margin-bottom:30px}.hero-copy .theme-line{font-size:15px;font-weight:550;color:#65415e;max-width:380px}.small,.source-note,.consent,.field small{font-size:13px!important;line-height:1.55}.feature-links p{font-size:13px}.page h1:focus,#main:focus{outline:0}.function-note{border-left:3px solid var(--accent);padding:12px 18px;background:#fffaf8;color:var(--ink)}.field-error{color:#8a3349;font-size:14px;margin:8px 0 0}[aria-invalid=true]{border-color:#8a3349!important}.input-help details,.mode-picker details{padding:15px 0;border-top:1px solid var(--line)}.input-help details>p,.mode-picker details>p{margin-top:14px}.input-help summary,.mode-picker summary{cursor:pointer;color:var(--accent-dark);font-size:15px}.mode-picker{border-bottom:1px solid var(--line);padding-bottom:15px;margin-bottom:28px}.example-buttons{display:flex;gap:10px;flex-wrap:wrap}#input-mode{font-size:14px;margin:15px 0 0;color:var(--accent-dark)}#data-entry{border:0;padding:0;margin:0;min-width:0}#data-entry:disabled{opacity:.8}.helper-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:15px;margin:16px 0}.input-help .text-button{margin-right:20px}table{width:100%;border-collapse:collapse;font-size:14px;margin:15px 0}td,th{padding:8px 10px;text-align:left;border-bottom:1px solid var(--line);overflow-wrap:anywhere}th{font-weight:550}.template-links{display:flex;gap:20px;flex-wrap:wrap}.uploads p{font-size:14px}.result-links{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0}#prediction-result{scroll-margin-top:20px}#prediction-result meter{width:100%;height:15px;display:block;margin:10px 0 20px}meter::-webkit-meter-bar{background:#e6dce8;border:0}meter::-webkit-meter-optimum-value{background:var(--accent)}.waiting{padding:10px 24px;color:var(--accent-dark);font-size:14px}.waiting span{display:inline-block;letter-spacing:4px;animation:pulse 1s ease-in-out infinite alternate}@keyframes pulse{from{opacity:.3}to{opacity:1}}.chat-page{padding-top:25px!important;padding-bottom:25px!important}.chat-heading .eyebrow{display:none}.chat-heading h1{font-size:35px;margin-bottom:8px}.chat-heading p{margin-bottom:4px;font-size:14px}.chat-layout{margin-top:20px}.conversation{height:clamp(380px,calc(100dvh - 280px),720px);min-height:380px}.chat-intro{padding:20px}.chat-intro>span{display:none}.conversation form{padding:15px 20px}.conversation .consent{font-size:13px!important}.message .text{white-space:pre-wrap;margin-bottom:10px}.message .text:last-child{margin-bottom:0}.message .label{font-size:12px}#chat-status{margin:6px 0 0}#retry-chat{padding:4px 0}.chat-open footer{display:none}.chat-open header{height:70px}.data-review li{font-size:14px}#missing-summary{margin:20px 0}#missing-summary h3{margin-bottom:10px}#background-fields[aria-invalid=true]{outline:2px solid #8a3349;outline-offset:6px}
@media(max-width:650px){.hero{min-height:510px}.hero-copy{margin-top:25px}.hero-copy h1{font-size:40px}.hero-copy>p:not(.eyebrow){font-size:15px;line-height:1.5}.hero-copy .theme-line{max-width:300px}.hero:after{background:linear-gradient(180deg,#fffcf6 0%,#fffcf6f2 42%,#fffcf600 79%)}.feature-links{padding:22px 6%;gap:22px 18px}.feature-links p{font-size:12px}.chat-open header{padding-top:7px;padding-bottom:7px}.chat-page{padding:18px 5% 16px!important}.chat-heading{align-items:flex-start}.chat-heading h1{font-size:28px}.chat-heading p{font-size:13px;line-height:1.45}.chat-heading>.text-button{font-size:12px;min-width:80px;max-width:90px}.chat-layout{margin-top:12px;gap:10px}.chat-layout aside{flex-wrap:nowrap;overflow-x:auto;gap:18px;padding:0;border:0}.prompt{flex:none;min-width:0;max-width:180px;font-size:13px;line-height:1.4}.conversation{height:clamp(300px,calc(100dvh - 295px),600px);min-height:300px}.chat-intro h2{font-size:20px}.chat-intro p{font-size:14px}.chat-log{padding:12px}.conversation form{padding:12px}.conversation .consent{font-size:12px!important;line-height:1.45}.chat-composer textarea{font-size:16px;min-height:58px}.chat-composer .button{min-width:58px;font-size:14px}.service-status{font-size:12px}.message .text{font-size:15px}.message{max-width:96%}.helper-fields{grid-template-columns:1fr 1fr}.helper-fields label:last-child{grid-column:auto}.data-review dl{grid-template-columns:1fr}.data-review dd{margin:0 0 10px}.mode-picker .button{font-size:14px}.input-help details p,.definition p{font-size:14px}.field label{font-size:15px}.data-steps{font-size:12px}.small{font-size:13px!important}.result-links .button{font-size:13px;padding:9px 12px}}
@media(max-width:650px){.chat-open header{height:auto;min-height:0}.chat-open .conversation{height:clamp(300px,calc(100dvh - 345px),600px)}.conversation .consent>span{display:block;min-width:0}.conversation .consent #ai-provider-label{display:inline}.chat-open .chat-heading{margin-top:2px}}
.data-layout>div{min-width:0}#raman-preview p,#metabolomics-preview p{overflow-wrap:anywhere}.support-grid details{font-size:14px;margin:15px 0}.support-grid details summary{cursor:pointer;color:var(--accent-dark)}.support-grid details p{margin-top:10px}
@media(max-width:650px){.data-layout aside .small{display:block}.conversation .consent{font-size:13px!important}}
