@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');
:root{font-family:'DM Sans',sans-serif;color:#e7eaf0;background:#111316;font-synthesis:none;color-scheme:dark;--muted:#969da9;--line:#30343b;--accent:#c3f568}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:4px}button{color:inherit}a{color:inherit;text-underline-offset:4px}.shell{max-width:1512px;margin:auto;min-height:100vh;display:grid;grid-template-columns:228px 1fr}.sidebar{padding:35px 22px;border-right:1px solid var(--line);display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:10px;font-family:'Space Grotesk',sans-serif;font-size:25px;font-weight:700;letter-spacing:-1px}.brand svg{color:var(--accent);width:30px;height:32px}.brand em{font-style:normal;color:var(--accent);font-size:12px;letter-spacing:0;align-self:flex-start;border:1px solid #506334;padding:2px 4px;border-radius:4px}.nav-label{color:#7f8793;font-size:12px;letter-spacing:1.5px;margin:55px 13px 16px}.nav-btn{width:100%;display:flex;align-items:center;gap:12px;padding:13px 14px;border:0;border-radius:7px;background:transparent;text-align:left;font-size:14px;color:var(--muted);margin:4px 0}.nav-btn.active{background:#293321;color:var(--accent)}.nav-btn svg{width:19px;height:19px}.sidebar-foot{margin-top:auto;color:var(--muted);font-size:13px;line-height:1.7;padding:18px 10px 0;border-top:1px solid var(--line)}.version{font-family:'Space Grotesk',sans-serif;color:#d3d8df;display:block;margin-bottom:6px}.workspace{min-width:0}.topbar{height:85px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 46px;font-size:14px}.crumb{color:var(--muted)}.crumb span{color:#e9ecf2;margin-left:14px}.badge{font-size:12px;border:1px solid #3b4630;background:#22281d;border-radius:20px;padding:7px 11px;color:#c3df9b}main{padding:40px 46px 50px}.eyebrow{color:var(--accent);font-size:12px;font-weight:600;letter-spacing:1.6px;text-transform:uppercase}.heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:30px}h1{font-family:'Space Grotesk',sans-serif;letter-spacing:-1.3px;font-weight:500;font-size:36px;margin:10px 0}p{line-height:1.6;color:var(--muted);font-size:16px;margin:0}h2{font-family:'Space Grotesk',sans-serif;font-size:20px;font-weight:500;margin:0 0 7px}h3{font-size:16px;font-weight:600;margin:0 0 8px}.stepper{display:flex;align-items:center;gap:12px;padding:18px 0 27px;border-bottom:1px solid var(--line);margin-bottom:30px}.step{display:flex;gap:9px;align-items:center;font-size:14px;color:#7e8791}.step b{width:25px;height:25px;display:grid;place-items:center;border:1px solid #444a53;border-radius:50%;font-size:12px}.step.on{color:#e9edf3}.step.on b{background:var(--accent);color:#19200e;border-color:var(--accent)}.step-line{height:1px;background:#373d45;flex:1;max-width:80px}.layout{display:grid;grid-template-columns:minmax(0,1fr) 284px;gap:28px}.section-head{display:flex;gap:12px;align-items:center;margin-bottom:20px}.number{font-family:'Space Grotesk',sans-serif;color:#7b848e;font-size:14px}.section-head p{font-size:14px}.symptoms{display:grid;grid-template-columns:1fr 1fr;gap:12px}.symptom{position:relative;text-align:left;padding:20px 17px;background:#1a1d22;border:1px solid #343840;border-radius:10px;min-height:148px;transition:background .18s,border-color .18s}.symptom:hover{background:#22272d;border-color:#68705e}.symptom.selected{border-color:var(--accent);background:#20281c}.glyph{color:#a7b19f;display:block;font-size:30px;line-height:1;margin-bottom:15px}.selected .glyph{color:var(--accent)}.check{position:absolute;right:16px;top:18px;width:17px;height:17px;border:1px solid #555d66;border-radius:5px;font-size:12px;text-align:center}.selected .check{background:var(--accent);color:#161c0f;border-color:var(--accent)}.symptom strong{font-size:15px;display:block;margin-bottom:5px}.symptom small{display:block;font-size:13px;color:var(--muted);line-height:1.5}.aside-card{border:1px solid var(--line);border-radius:10px;padding:23px;background:#191c20;margin-bottom:16px}.aside-card p{font-size:14px}.aside-card .aside-icon{font-size:24px;color:var(--accent);margin-bottom:16px;display:block}.tips{list-style:none;padding:0;margin:20px 0 0}.tips li{display:flex;gap:12px;margin:16px 0;color:#b2b9c2;font-size:14px;line-height:1.5}.tips b{color:var(--accent);font-weight:400}.tiny-label{font-size:12px;color:#8d96a2;letter-spacing:1px;display:block;margin:0 0 10px}.aside-card.soft{background:#1c2319;border-color:#38432c}.soft h3{color:#d4e9b5}.actions{display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid var(--line);margin-top:26px;padding-top:23px}.selection-count{font-size:13px;color:var(--muted)}.primary,.secondary{border-radius:7px;padding:13px 20px;font-size:14px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:14px}.primary{background:var(--accent);border:1px solid var(--accent);color:#19210f}.primary:hover{background:#d0ff7f}.primary:disabled{opacity:.35;cursor:not-allowed}.secondary{border:1px solid #454c56;background:transparent}.secondary:hover{background:#282d34}.footer-note{font-size:12px;margin-top:24px;color:#7f8792}.fields{display:grid;grid-template-columns:1fr 1fr;gap:20px}.field{display:flex;flex-direction:column;gap:9px;font-size:14px}.field input,.field select{width:100%;padding:13px;border:1px solid #444b55;background:#191d22;border-radius:7px;color:#edf1f7}.field small{color:#89939f;font-size:12px}.wide{grid-column:1/-1}.material-row{display:flex;flex-wrap:wrap;gap:9px}.material{padding:10px 17px;background:#1c2025;border:1px solid #444b55;border-radius:6px}.material.active{border-color:var(--accent);color:var(--accent);background:#252e1d}.error{color:#ffb4ab;font-size:14px;margin-top:15px}.results{display:flex;flex-direction:column;gap:18px}.result-card{background:#1a1e22;border:1px solid #3e4833;border-radius:10px;overflow:hidden}.result-top{padding:23px;border-bottom:1px solid var(--line)}.result-tag{color:var(--accent);font-size:12px;letter-spacing:1px;text-transform:uppercase}.result-top h2{margin-top:12px}.result-top p{font-size:14px}.cause{margin-top:18px;color:#e4e9df;font-size:15px}.todo-list{padding:8px 23px 16px}.todo{display:flex;gap:13px;align-items:flex-start;padding:16px 0;border-bottom:1px solid #2d333a}.todo:last-child{border:0}.todo input{accent-color:var(--accent);width:18px;height:18px;margin-top:3px;flex-shrink:0}.todo p{font-size:14px}.todo:has(input:checked) h3{color:#9fac92;text-decoration:line-through}.test{background:#20271c;padding:17px 23px;font-size:14px;color:#becdaf;line-height:1.6}.note-list{padding-left:17px;color:#a9b4bf;font-size:14px;line-height:1.65}.note-list li{margin:12px 0}.result-header{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:20px}.source-link{font-size:13px;color:#c3ceaf}.progress-track{height:5px;background:#353c30;border-radius:4px;margin:14px 0}.progress-track div{height:100%;background:var(--accent);border-radius:4px;transition:width .2s}.library{display:grid;grid-template-columns:1fr 1fr;gap:16px}.library .aside-card{margin:0}.library p{margin-bottom:18px}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);padding:14px 22px;border:1px solid #647d44;background:#25331b;color:#e4f5d0;border-radius:8px;z-index:10}.mobile-brand{display:none}
@media(min-width:1450px){main{padding-top:48px}.layout{grid-template-columns:minmax(0,1fr) 306px}.symptom{min-height:158px}}@media(max-width:1150px){.shell{grid-template-columns:190px 1fr}.sidebar{padding:30px 14px}main{padding:32px 26px}.topbar{padding:0 26px}.layout{grid-template-columns:minmax(0,1fr) 235px;gap:18px}.symptom{padding:17px 13px}.brand{font-size:23px}.aside-card{padding:18px}}@media(max-width:950px){.shell{display:block}.sidebar{display:none}.mobile-brand{display:flex;font-size:21px}.topbar{height:72px}.crumb{display:none}.layout{grid-template-columns:minmax(0,1fr) 250px}h1{font-size:32px}}@media(max-width:720px){main{padding:28px 20px}.topbar{padding:0 20px}.layout{grid-template-columns:1fr}.heading{align-items:flex-start}.heading>.secondary{padding:10px;font-size:12px}.heading h1{font-size:29px}.heading p{font-size:14px}.step{font-size:12px;gap:6px}.stepper{gap:8px}.step-line{min-width:8px}.symptoms{gap:10px}.symptom{min-height:155px}.symptom strong{font-size:14px}.actions{flex-wrap:wrap}.layout aside{margin-top:8px}.fields,.library{grid-template-columns:1fr}.field.wide{grid-column:auto}.result-header{align-items:flex-start}.topbar .badge{font-size:11px}.step b{width:22px;height:22px}.selection-count{font-size:12px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}@media print{.sidebar,.topbar,.stepper,.heading button,.actions,aside,.footer-note{display:none}.shell,.layout{display:block}body{background:white;color:black}.result-card{break-inside:avoid;background:white;border-color:#aaa}.result-top p,.todo p{color:#333}.result-tag,.cause{color:#333}}

/* Presentation scoped to diagnosis step 1 only. */
.home-symptoms .topbar{height:64px}
.home-symptoms .topbar .badge,.home-symptoms .heading .eyebrow,.home-symptoms .heading p,.home-symptoms .section-head .number{display:none}
.home-symptoms main{max-width:1080px;margin:auto;padding-top:26px}
.home-symptoms .heading{margin-bottom:12px}
.home-symptoms h1{font-size:32px;margin:0;line-height:1.2}
.home-symptoms .heading>.secondary{font-weight:400}
.home-symptoms .stepper{padding:12px 0 20px;margin-bottom:24px}
.home-symptoms .layout{grid-template-columns:minmax(0,1fr);gap:20px}
.home-symptoms .section-head{margin-bottom:16px}
.home-symptoms .symptom{min-height:132px;padding:18px 44px 18px 18px}
.home-symptoms .glyph{font-size:24px;margin-bottom:10px}
.home-symptoms .symptom strong{font-size:16px;line-height:1.4}
.home-symptoms .symptom small{font-size:14px}
.home-symptoms .actions{margin-top:20px;padding-top:18px}
.home-symptoms .layout aside{margin:0}
.home-symptoms .home-tips{border-top:1px solid var(--line);padding-top:16px;color:var(--muted);font-size:14px}
.home-symptoms .home-tips summary{cursor:pointer;width:fit-content;line-height:1.6}
.home-symptoms .home-tips summary:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
.home-symptoms .home-tips p{font-size:14px;margin:12px 0;max-width:700px}
@media(max-width:720px){
 .home-symptoms main{padding:22px 16px 28px}
 .home-symptoms .topbar{padding:0 16px;height:60px}
 .home-symptoms .heading{gap:12px;align-items:flex-start}
 .home-symptoms h1{font-size:26px;letter-spacing:-.7px}
 .home-symptoms .heading>.secondary{flex-shrink:0;min-height:44px;padding:10px}
 .home-symptoms .stepper{gap:6px;margin-bottom:20px;padding-bottom:18px}
 .home-symptoms .step{font-size:11px;gap:5px}
 .home-symptoms .step-line{min-width:4px}
 .home-symptoms .symptoms{grid-template-columns:minmax(0,1fr);gap:10px}
 .home-symptoms .symptom{min-height:100px;padding:16px 42px 16px 54px}
 .home-symptoms .glyph{position:absolute;left:16px;top:18px;font-size:24px;margin:0}
 .home-symptoms .check{right:14px;top:18px}
 .home-symptoms .actions{position:sticky;bottom:0;z-index:2;display:flex;flex-direction:column;gap:8px;background:#111316;margin-top:16px;padding:12px 0 max(12px,env(safe-area-inset-bottom));box-shadow:0 -8px 16px #111316}
 .home-symptoms .actions .primary{width:100%;min-height:48px}
 .home-symptoms .selection-count{font-size:13px}
 .home-symptoms .footer-note{line-height:1.6;margin-top:20px}
}

/* Correction Plan: mobile spacing and touch targets only. */
@media screen and (max-width:720px){
 .correction-plan .layout{grid-template-columns:minmax(0,1fr);gap:20px}
 .correction-plan .layout section,.correction-plan .result-header>div,.correction-plan .todo>span{min-width:0}
 .correction-plan .layout{overflow-wrap:anywhere}
 .correction-plan .result-header{flex-direction:column;gap:12px;margin-bottom:16px}
 .correction-plan .results{gap:16px}
 .correction-plan .result-top{padding:16px}
 .correction-plan .result-top h2{margin-top:10px;line-height:1.35}
 .correction-plan .todo-list{padding:0 16px 12px}
 .correction-plan .todo{padding:12px 0;gap:10px;line-height:1.5}
 .correction-plan .cause{margin-top:14px}
 .correction-plan .test{padding:14px 16px}
 .correction-plan .note-list{padding-left:18px;margin:12px 0}
 .correction-plan .note-list li{margin:8px 0}
 .correction-plan .field{gap:8px;min-width:0}
 .correction-plan .field input,.correction-plan .field select{min-width:0;max-width:100%;min-height:48px;font-size:16px}
 .correction-plan .primary,.correction-plan .secondary{min-height:48px;max-width:100%;white-space:normal;line-height:1.4;padding:12px 16px}
 .correction-plan [data-feedback] button[type=submit]{width:100%}
 .correction-plan .actions{flex-direction:column;align-items:stretch;gap:12px;margin-top:20px;padding-top:16px}
 .correction-plan .actions>button{width:100%}
}
