:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--surface:#fcfcfb;--plane:#f9f9f7;--ink:#0b0b0b;--ink-2:#52514e;--muted:#898781;--hair:#e1e0d9;--axis:#c3c2b7;--border:#0b0b0b1a;--accent:#2a78d6;--accent-ink:#fff;--accent-wash:#2a78d617;--warn-bg:#fff6e6;--warn-ink:#6b3f00;--warn-edge:#fab219;--danger:#d03b3b;--font:system-ui, -apple-system, "Segoe UI", sans-serif}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--surface:#1a1a19;--plane:#0d0d0d;--ink:#fff;--ink-2:#c3c2b7;--muted:#898781;--hair:#2c2c2a;--axis:#383835;--border:#ffffff1a;--accent:#3987e5;--accent-wash:#3987e529;--warn-bg:#2b2412;--warn-ink:#fad38a;--warn-edge:#fab219;--danger:#e66767}}*{box-sizing:border-box}html,body{background:var(--plane);color:var(--ink);font-family:var(--font);margin:0;font-size:14px;line-height:1.45}button,input,select{font:inherit;color:inherit}h1,h2,h3{letter-spacing:-.01em;margin:0;font-weight:600}h1{font-size:20px}h2{font-size:16px}h3{color:var(--ink-2);text-transform:uppercase;letter-spacing:.04em;font-size:12px}p{margin:0}.muted{color:var(--muted)}.secondary{color:var(--ink-2)}.small{font-size:12px}.num{font-variant-numeric:tabular-nums}.eyebrow{color:var(--muted);text-transform:uppercase;letter-spacing:.05em;margin-bottom:4px;font-size:12px;display:block}.hint{color:var(--muted);font-size:12px}.stack{flex-direction:column;gap:14px;display:flex}.app{max-width:720px;margin:0 auto;padding:20px 20px 56px;transition:max-width .2s}.app.wide{max-width:1120px}.topbar{border-bottom:1px solid var(--hair);flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:16px;margin-bottom:18px;padding-bottom:14px;display:flex}.topbar .tagline{color:var(--ink-2)}.progress{gap:6px;margin:0 0 18px;padding:0;list-style:none;display:flex}.progress li{flex:1;min-width:0}.progress button{text-align:left;border:0;border-top:3px solid var(--hair);width:100%;color:var(--muted);cursor:pointer;white-space:nowrap;text-overflow:ellipsis;background:0 0;padding:8px 2px 0;font-size:12px;overflow:hidden}.progress button:disabled{cursor:default}.progress .n{font-variant-numeric:tabular-nums;min-width:16px;display:inline-block}.progress li.done button{border-top-color:var(--accent);color:var(--ink-2)}.progress li.done button:hover{color:var(--ink)}.progress li.active button{border-top-color:var(--accent);color:var(--ink);font-weight:600}.progress li.todo button:not(:disabled){color:var(--ink-2)}.step{background:var(--surface);border:1px solid var(--border);border-radius:12px;flex-direction:column;gap:20px;padding:26px 26px 20px;display:flex}.step-head h2{font-size:21px;line-height:1.3}.step-head .secondary{margin-top:6px}.step-body{flex-direction:column;gap:18px;display:flex}.step-nav{border-top:1px solid var(--hair);justify-content:space-between;gap:8px;padding-top:14px;display:flex}.field{flex-direction:column;gap:6px;display:flex}.field>label,.field .label{color:var(--ink-2);justify-content:space-between;align-items:baseline;gap:12px;font-size:13px;display:flex}.field input[type=text],.field select{border:1px solid var(--axis);background:var(--surface);width:100%;color:var(--ink);border-radius:8px;padding:9px 11px;font-size:15px}.field input:focus,.field select:focus{outline:2px solid var(--accent);outline-offset:1px;border-color:#0000}.field input[aria-invalid=true]{border-color:var(--danger)}.field input[type=range]{width:100%;accent-color:var(--accent)}.field-error{color:var(--danger);font-size:12px}.money-input{position:relative}.money-input:before{content:"$";color:var(--muted);position:absolute;top:50%;left:11px;transform:translateY(-50%)}.money-input input{padding-left:24px!important}.chips{flex-wrap:wrap;gap:6px;margin-top:4px;display:flex}.chip{border:1px solid var(--axis);background:var(--surface);cursor:pointer;color:var(--ink-2);border-radius:999px;padding:3px 10px;font-size:12px}.chip:hover{border-color:var(--accent)}.chip[aria-pressed=true]{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}.choices{flex-direction:column;gap:8px;display:flex}.choices.row{flex-flow:wrap}.choices.row .choice{flex:200px}.choice{text-align:left;border:1px solid var(--axis);background:var(--surface);cursor:pointer;border-radius:10px;align-items:flex-start;gap:11px;padding:12px 14px;font-size:14px;display:flex}.choice:hover{border-color:var(--accent)}.choice:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.choice[aria-checked=true]{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent);background:var(--accent-wash)}.choice .radio{border:2px solid var(--axis);border-radius:50%;flex:none;width:16px;height:16px;margin-top:2px}.choice[aria-checked=true] .radio{border-color:var(--accent);background:radial-gradient(var(--accent) 42%, transparent 48%)}.choice .text{flex-direction:column;gap:2px;display:flex}.toggle-list{flex-direction:column;gap:4px;display:flex}.toggle{cursor:pointer;align-items:center;gap:12px;padding:6px 0;display:flex}.toggle input{opacity:0;width:0;height:0;position:absolute}.toggle .track{background:var(--axis);border-radius:11px;flex:none;width:36px;height:21px;transition:background .15s;position:relative}.toggle .track:after{content:"";background:#fff;border-radius:50%;width:17px;height:17px;transition:transform .15s;position:absolute;top:2px;left:2px;box-shadow:0 1px 2px #0003}.toggle input:checked+.track{background:var(--accent)}.toggle input:checked+.track:after{transform:translate(15px)}.toggle input:focus-visible+.track{outline:2px solid var(--accent);outline-offset:2px}.toggle .text{flex-direction:column;display:flex}.toggle .text .hint{line-height:1.3}.btn{border:1px solid var(--axis);background:var(--surface);color:var(--ink);cursor:pointer;border-radius:8px;padding:8px 14px;font-size:13px}.btn:hover{border-color:var(--accent)}.btn.primary{background:var(--accent);color:var(--accent-ink);border-color:var(--accent);padding:9px 18px;font-weight:600}.btn.primary:disabled{opacity:.45;cursor:not-allowed}.actions{flex-wrap:wrap;gap:8px;display:flex}.results{flex-direction:column;gap:14px;display:flex}.panel{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:16px}.profile-strip{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;display:flex}.profile-strip h2{align-items:center;font-size:20px;display:flex}.section-title{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;display:flex}.tabs{flex-direction:column;gap:14px;display:flex}.tablist{border-bottom:1px solid var(--hair);gap:2px;display:flex;overflow-x:auto}.tablist [role=tab]{color:var(--ink-2);cursor:pointer;white-space:nowrap;background:0 0;border:0;border-bottom:2px solid #0000;align-items:center;gap:6px;margin-bottom:-1px;padding:9px 14px;display:inline-flex}.tablist [role=tab]:hover{color:var(--ink)}.tablist [role=tab][aria-selected=true]{color:var(--ink);border-bottom-color:var(--accent);font-weight:600}.tablist [role=tab]:focus-visible{outline:2px solid var(--accent);outline-offset:-2px;border-radius:4px}.badge{background:var(--accent);color:var(--accent-ink);text-align:center;border-radius:999px;min-width:18px;padding:0 6px;font-size:11px;font-weight:600;line-height:17px}.tiles{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px;display:grid}.tile{background:var(--surface);border:1px solid var(--border);border-radius:10px;flex-direction:column;gap:2px;padding:12px 14px;display:flex}.tile .label{color:var(--ink-2);font-size:12px}.tile .value{letter-spacing:-.02em;font-size:22px;font-weight:600}.tile .sub{color:var(--muted);font-size:12px}.chart{flex-direction:column;gap:10px;display:flex;position:relative}.bar{gap:2px;width:100%;height:24px;display:flex}.seg{cursor:default;justify-content:center;align-items:center;min-width:0;height:100%;font-size:12px;font-weight:600;display:flex}.seg:first-child{border-radius:4px 0 0 4px}.seg:last-child{border-radius:0 4px 4px 0}.seg:only-child{border-radius:4px}.seg span{white-space:nowrap;padding:0 6px}.legend{color:var(--ink-2);flex-wrap:wrap;gap:6px 16px;font-size:12px;display:flex}.legend .key{align-items:center;gap:6px;display:inline-flex}.legend .swatch{border-radius:2px;flex:none;width:10px;height:10px}.tooltip{pointer-events:none;background:var(--ink);color:var(--surface);white-space:nowrap;z-index:2;border-radius:6px;padding:6px 9px;font-size:12px;position:absolute;transform:translate(-50%,calc(-100% - 10px))}table.plan{border-collapse:collapse;width:100%;font-size:13px}table.plan th{text-align:left;color:var(--ink-2);border-bottom:1px solid var(--axis);white-space:nowrap;padding:6px 8px;font-size:12px;font-weight:600}table.plan th.r,table.plan td.r{text-align:right}table.plan td{border-bottom:1px solid var(--hair);vertical-align:top;padding:7px 8px}table.plan tr.bucket td{background:var(--plane);padding-top:9px;font-weight:600}table.plan tr.bucket .swatch{vertical-align:-1px;border-radius:2px;width:10px;height:10px;margin-right:8px;display:inline-block}table.plan .name{font-weight:500}table.plan .rationale{color:var(--muted);max-width:520px;margin-top:2px;font-size:12px}table.plan .examples{color:var(--ink-2);white-space:nowrap}table.plan .examples abbr{border-bottom:1px dotted var(--axis);cursor:help;text-decoration:none}.table-wrap{overflow-x:auto}.notes ul.plain,ul.plain{flex-direction:column;gap:5px;margin:8px 0 0;padding-left:18px;display:flex}ol.steps-list{flex-direction:column;gap:7px;margin:8px 0 0;padding-left:20px;display:flex}.warning{background:var(--warn-bg);color:var(--warn-ink);border-left:3px solid var(--warn-edge);border-radius:6px;padding:10px 12px}.warning ul{margin:4px 0 0;padding-left:18px}.error{background:var(--warn-bg);color:var(--warn-ink);border-left:3px solid var(--danger);border-radius:6px;flex-wrap:wrap;align-items:center;gap:12px;padding:12px 14px;display:flex}.disclaimer{color:var(--muted);border-top:1px solid var(--hair);padding-top:12px;font-size:12px}.signals{flex-direction:column;gap:4px;margin-top:12px;display:flex}.signal{cursor:pointer;border:1px solid #0000;border-radius:8px;align-items:flex-start;gap:10px;padding:8px 10px;display:flex}.signal:hover{background:var(--plane)}.signal:has(input:checked){border-color:var(--accent);background:var(--accent-wash)}.signal input{accent-color:var(--accent);margin-top:3px}.signal .dim{color:var(--muted);text-transform:uppercase;letter-spacing:.04em;font-size:11px}.sig-list{flex-direction:column;gap:6px;margin-top:8px;display:flex}.sig-list .row{flex-wrap:wrap;align-items:baseline;gap:8px;display:flex}.pill{border:1px solid var(--axis);color:var(--ink-2);border-radius:10px;padding:1px 7px;font-size:11px;display:inline-block}dl.answers{grid-template-columns:minmax(180px,2fr) 3fr;gap:6px 16px;margin:0;display:grid}dl.answers>div{display:contents}dl.answers dt{color:var(--ink-2)}dl.answers dd{margin:0}@media (width<=640px){dl.answers{grid-template-columns:1fr;gap:2px}dl.answers dd{margin-bottom:8px}.step{padding:20px 16px 16px}.progress button{font-size:11px}}@keyframes fadeUp{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}@keyframes pop{0%{opacity:0;transform:scale(.6)}70%{opacity:1;transform:scale(1.12)}to{transform:scale(1)}}@keyframes draw{to{stroke-dashoffset:0}}.fade-up{animation:.45s ease-out both fadeUp}@media (prefers-reduced-motion:reduce){.fade-up,.build-list li.in,.build-list .check svg path,.marker,.slice,.build-progress .fill{transition:none!important;animation:none!important}}.qdots{gap:8px;margin:-6px 0 0;padding:0;list-style:none;display:flex}.qdots button{border:1px solid var(--axis);background:var(--surface);width:28px;height:28px;color:var(--muted);cursor:pointer;border-radius:50%;padding:0;font-size:12px}.qdots button:disabled{cursor:default;opacity:.6}.qdots li.answered button{border-color:var(--accent);color:var(--accent)}.qdots li.answered button:hover{background:var(--accent-wash)}.qdots li.current button{background:var(--accent);border-color:var(--accent);color:var(--accent-ink);font-weight:600}.recap{background:var(--plane);border-radius:8px;flex-wrap:wrap;align-items:baseline;gap:10px;padding:8px 12px;display:flex}.linklike{color:var(--accent);cursor:pointer;font-size:inherit;text-underline-offset:2px;background:0 0;border:0;padding:0;text-decoration:underline}.linklike:hover{color:var(--ink)}.reveal .step-head h2{min-height:1.3em}.score-row{align-items:baseline;gap:10px;display:flex}.score{letter-spacing:-.03em;font-size:56px;font-weight:700;line-height:1}.score-of{color:var(--ink-2)}.meter{gap:3px;height:36px;margin-top:4px;display:flex;position:relative}.meter .band{color:var(--ink-2);background:var(--plane);border:1px solid var(--hair);white-space:nowrap;border-radius:6px;justify-content:center;align-items:center;font-size:11px;transition:background .4s,color .4s,border-color .4s;display:flex;overflow:hidden}.meter .band.hit{background:var(--accent-wash);border-color:var(--accent);color:var(--ink);font-weight:600}.meter .marker{background:var(--accent);width:3px;box-shadow:0 0 0 2px var(--surface);border-radius:2px;margin-left:-1.5px;transition:left 80ms linear;position:absolute;top:-6px;bottom:-6px}.reveal-body{flex-direction:column;gap:12px;display:flex}.profile-desc{font-size:15px}.callout{background:var(--warn-bg);color:var(--warn-ink);border-left:3px solid var(--warn-edge);border-radius:6px;padding:10px 12px}.reveal .step-head h2{animation:.35s ease-out fadeUp}.build-progress{background:var(--hair);border-radius:2px;height:4px;overflow:hidden}.build-progress .fill{background:var(--accent);height:100%;transition:width .55s cubic-bezier(.2,.8,.2,1)}.build-list{flex-direction:column;gap:12px;min-height:260px;margin:0;padding:0;list-style:none;display:flex}.build-list li{align-items:flex-start;gap:12px;display:flex}.build-list li.in{animation:.4s ease-out both fadeUp}.build-list .check{background:var(--accent);border-radius:50%;flex:none;place-items:center;width:26px;height:26px;animation:.45s cubic-bezier(.2,.8,.2,1) both pop;display:grid}.build-list .check svg{fill:none;width:16px;height:16px;stroke:var(--accent-ink);stroke-width:3px;stroke-linecap:round;stroke-linejoin:round}.build-list .check svg path{stroke-dasharray:24;stroke-dashoffset:24px;animation:.35s ease-out .2s forwards draw}.pie{flex-direction:column;gap:12px;display:flex}.pie-toolbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.seg-toggle{background:var(--hair);border-radius:8px;gap:2px;padding:2px;display:inline-flex}.seg-toggle button{color:var(--ink-2);cursor:pointer;background:0 0;border:0;border-radius:6px;padding:5px 10px;font-size:12px}.seg-toggle button[aria-pressed=true]{background:var(--surface);color:var(--ink);font-weight:600;box-shadow:0 1px 2px #00000014}.pie-body{grid-template-columns:minmax(220px,300px) minmax(0,1fr);align-items:center;gap:20px;display:grid}@media (width<=720px){.pie-body{grid-template-columns:1fr;justify-items:center}}.pie-chart{aspect-ratio:1;width:100%;max-width:300px;position:relative}.pie-chart svg{width:100%;height:100%;overflow:visible}.slice{stroke:var(--surface);stroke-width:2px;cursor:pointer;outline:none;transition:transform .18s ease-out,opacity .18s}.slice.dim{opacity:.4}.slice:focus-visible{stroke:var(--accent);stroke-width:3px}.slice-label{pointer-events:none;font-size:11px;font-weight:600}.pie-center{text-align:center;pointer-events:none;flex-direction:column;justify-content:center;align-items:center;padding:0 22%;display:flex;position:absolute;inset:0}.pie-center .c-name{color:var(--ink-2);font-size:12px;line-height:1.2}.pie-center .c-big{letter-spacing:-.02em;font-size:22px;font-weight:700;line-height:1.15}.pie-center .c-sub{color:var(--muted);font-size:12px}.pie-legend{flex-direction:column;gap:10px;min-width:0;display:flex}.legend-group{flex-direction:column;gap:2px;display:flex}.legend-head{text-transform:uppercase;letter-spacing:.04em;color:var(--muted);justify-content:space-between;padding:0 8px 2px;font-size:11px;display:flex}.legend-item{text-align:left;cursor:pointer;width:100%;color:var(--ink);background:0 0;border:1px solid #0000;border-radius:6px;grid-template-columns:12px minmax(0,1fr) 52px 88px;align-items:center;gap:8px;padding:4px 8px;font-size:13px;display:grid}.legend-item:hover,.legend-item.active{background:var(--plane);border-color:var(--hair)}.legend-item[aria-pressed=true]{border-color:var(--accent);background:var(--accent-wash)}.legend-item .swatch{border-radius:3px;width:12px;height:12px}.legend-item .l-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.legend-item .l-pct{text-align:right;color:var(--ink-2)}.legend-item .l-money{text-align:right;color:var(--muted);font-size:12px}@media (width<=480px){.legend-item{grid-template-columns:12px minmax(0,1fr) 52px}.legend-item .l-money{display:none}}.src{color:var(--muted);margin-top:3px;font-size:12px;display:inline-block}.src a{color:var(--accent);border-bottom:1px solid #0000;text-decoration:none}.src a:hover{border-bottom-color:var(--accent)}ol.rules{flex-direction:column;gap:12px;margin:12px 0 0;padding-left:20px;display:flex}ol.rules li{padding-left:2px}ul.plain a{color:var(--accent)}table.plan tr.selected td{background:var(--accent-wash)}table.plan tbody tr{cursor:pointer}table.plan tr.bucket.selected td{background:var(--accent-wash)}.topbar{align-items:center;position:relative}.topbar:before{content:"";background:radial-gradient(60% 120% at 85% 0%, var(--accent-wash), transparent 70%);pointer-events:none;z-index:-1;position:absolute;inset:-40px -20px 0}.topbar-right{align-items:center;gap:16px;display:flex}.header-art{flex:none;width:150px;height:62px}@keyframes haGrow{0%{transform:scaleY(0)}to{transform:scaleY(1)}}.ha-bar{transform-box:fill-box;transform-origin:bottom;animation:.8s cubic-bezier(.2,.8,.2,1) both haGrow}.ha-line{fill:none;stroke:var(--ink);stroke-width:2px;stroke-linecap:round;stroke-dasharray:260;stroke-dashoffset:260px;opacity:.85;animation:1.1s ease-out .5s forwards draw}.ha-dot{fill:var(--ink);animation:.4s cubic-bezier(.2,.8,.2,1) 1.5s both pop}@media (width<=640px){.header-art{display:none}}.progress .ico{vertical-align:-2px;color:inherit;margin-right:4px;display:inline-flex}.panel,.tile{transition:transform .15s,box-shadow .15s}.tile:hover{transform:translateY(-1px);box-shadow:0 4px 14px #00000014}.grid{stroke:var(--hair);stroke-width:1px}.tick{fill:var(--muted);font-size:10px}.muted-text{fill:var(--muted)}svg text{font-family:var(--font)}.glide{flex-direction:column;gap:4px;margin-top:8px;display:flex}.glide svg{width:100%;height:auto}.glide-area{fill:var(--accent);opacity:.1}.glide-line{fill:none;stroke:var(--accent);stroke-width:2px;stroke-linejoin:round}.glide-marker{transition:transform .25s cubic-bezier(.2,.8,.2,1)}.glide-marker line{stroke:var(--ink-2);stroke-width:1px;stroke-dasharray:3 3}.glide-marker circle{fill:var(--accent);stroke:var(--surface);stroke-width:2px}.glide-label{fill:var(--ink);font-size:11px;font-weight:600}.safety-grid{grid-template-columns:minmax(0,1fr) 150px;align-items:start;gap:18px;display:grid}@media (width<=560px){.safety-grid{grid-template-columns:1fr}.jar-wrap{margin:0 auto}}.safety-grid .fields{flex-direction:column;gap:18px;min-width:0;display:flex}.jar-wrap{flex-direction:column;align-items:center;gap:6px;width:150px;display:flex}.jar{width:120px;height:auto}.jar-liquid{transition:transform .7s cubic-bezier(.2,.8,.2,1)}.jar-liquid rect{fill:var(--accent);opacity:.55}.jar-wave{fill:var(--accent);opacity:.75;animation:2.4s linear infinite wave}@keyframes wave{0%{transform:translate(0)}to{transform:translate(60px)}}.jar-outline{fill:none;stroke:var(--ink-2);stroke-width:2px}.jar-lid{fill:var(--axis)}.jar-text{fill:var(--ink);font-size:16px;font-weight:700}.jar-caption{text-align:center;flex-direction:column;font-size:12px;display:flex}.reveal{position:relative;overflow:hidden}.confetti{pointer-events:none;width:100%;height:100%;position:absolute;inset:0}.reveal>:not(.confetti){position:relative}.fan{flex-direction:column;gap:8px;display:flex}.fan-chart{position:relative}.fan-chart svg{width:100%;height:auto;display:block}.fan-band{fill:var(--accent);opacity:.12}.fan-line{fill:none;stroke:var(--accent);stroke-width:2px;stroke-linejoin:round;stroke-linecap:round}.fan-end{fill:var(--ink-2);font-size:11px}.fan-end.strong{fill:var(--ink);font-weight:600}.fan-hover line{stroke:var(--ink-2);stroke-width:1px}.fan-hover circle{fill:var(--accent);stroke:var(--surface);stroke-width:2px}.fan-tip{transform:translate(-50%,calc(-100% - 12px))}.rrmap svg{width:100%;height:auto;display:block}.rr-path{fill:none;stroke:var(--axis);stroke-width:1.5px;stroke-dasharray:4 4}.rr-dot circle{fill:var(--axis);stroke:var(--surface);stroke-width:2px;transition:fill .15s}.rr-dot .hit{fill:#0000;stroke:none}.rr-dot:hover circle:not(.hit),.rr-dot.active circle:not(.hit){fill:var(--ink-2)}.rr-dot.current circle:not(.hit){fill:var(--accent)}.rr-dot{cursor:default;outline:none}.rr-dot:focus-visible circle:not(.hit){stroke:var(--accent);stroke-width:3px}.rr-label{fill:var(--ink-2);font-size:11px}.rr-label.strong{fill:var(--ink);font-weight:600}.rr-val{fill:var(--ink);font-size:10px}.rr-you path{fill:var(--accent);stroke:var(--surface);stroke-width:2px}.outlook-grid{grid-template-columns:1fr;gap:14px;display:grid}.assistant-fab{z-index:30;border:1px solid var(--accent);background:var(--accent);color:var(--accent-ink);cursor:pointer;border-radius:999px;align-items:center;gap:8px;padding:10px 16px;font-weight:600;display:inline-flex;position:fixed;bottom:20px;right:20px;box-shadow:0 6px 20px #0000002e}.assistant-fab svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;width:18px;height:18px}.assistant-fab.open{background:var(--surface);color:var(--ink)}.assistant-panel{z-index:30;background:var(--surface);border:1px solid var(--border);border-radius:14px;flex-direction:column;width:min(420px,100vw - 40px);height:min(600px,100vh - 100px);display:flex;position:fixed;bottom:72px;right:20px;overflow:hidden;box-shadow:0 16px 48px #00000038}.assistant-head{border-bottom:1px solid var(--hair);justify-content:space-between;align-items:center;padding:12px 14px;display:flex}.assistant-head div{flex-direction:column;display:flex}.assistant-panel .warning.small{margin:10px 12px 0;font-size:12px}.assistant-panel code{background:var(--plane);border-radius:4px;padding:1px 4px;font-size:12px}.assistant-messages{flex-direction:column;flex:1;gap:10px;padding:12px 14px;display:flex;overflow:auto}.assistant-intro p{color:var(--ink-2);margin-bottom:10px}.assistant-intro .chip{text-align:left;white-space:normal}.msg{border-radius:12px;max-width:92%;padding:9px 12px;font-size:13.5px;line-height:1.45}.msg p{margin:0 0 8px}.msg p:last-child{margin-bottom:0}.msg ul{margin:4px 0 8px;padding-left:18px}.msg.user{background:var(--accent);color:var(--accent-ink);border-bottom-right-radius:4px;align-self:flex-end}.msg.assistant{background:var(--plane);border:1px solid var(--hair);border-bottom-left-radius:4px;align-self:flex-start}.msg.assistant a{color:var(--accent)}.msg-error{color:var(--danger);margin-top:6px;font-size:12px}.typing{gap:4px;padding:4px 2px;display:inline-flex}.typing i{background:var(--muted);border-radius:50%;width:6px;height:6px;animation:1.2s ease-in-out infinite blink}.typing i:nth-child(2){animation-delay:.2s}.typing i:nth-child(3){animation-delay:.4s}@keyframes blink{0%,80%,to{opacity:.25}40%{opacity:1}}.assistant-input{border-top:1px solid var(--hair);align-items:flex-end;gap:8px;padding:10px 12px;display:flex}.assistant-input textarea{resize:none;border:1px solid var(--axis);background:var(--surface);color:var(--ink);font:inherit;border-radius:8px;flex:1;padding:8px 10px;font-size:13.5px}.assistant-input textarea:focus{outline:2px solid var(--accent);outline-offset:1px;border-color:#0000}.assistant-foot{padding:0 14px 10px}@media (width<=480px){.assistant-panel{width:auto;bottom:66px;left:10px;right:10px}.assistant-fab{bottom:14px;right:10px}}.topbar>div:first-child{flex:320px;min-width:0}.topbar-right{flex-wrap:nowrap}ol.derivation{flex-direction:column;gap:6px;margin:10px 0 0;padding:0;list-style:none;display:flex}ol.derivation li{grid-template-columns:56px 1fr;align-items:baseline;gap:10px;display:grid}ol.derivation .d-val{text-align:right;font-size:15px;font-weight:700}ol.derivation .d-stage{text-transform:capitalize}.msg ol{margin:4px 0 8px;padding-left:20px}.assistant-panel{max-height:calc(100vh - 90px)}.assistant-head,.assistant-panel .warning.small,.assistant-input,.assistant-foot{flex:none}.assistant-messages{overscroll-behavior:contain;flex:auto;min-height:0;overflow-y:auto}.msg{overflow-wrap:anywhere}@media (height<=560px){.assistant-panel{height:calc(100vh - 20px);max-height:calc(100vh - 20px);bottom:10px}.assistant-fab{display:none}}.research-top{justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.research-top .btn{flex-shrink:0}.research-grid{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px;display:grid}.research-card{flex-direction:column;gap:8px;display:flex}.research-card.rejected{border-style:dashed}.rc-head{justify-content:space-between;align-items:flex-start;gap:8px;display:flex}.rc-head h3{text-transform:none;letter-spacing:0;color:var(--ink);font-size:13px}.rc-value{flex-wrap:wrap;align-items:baseline;gap:8px;display:flex}.rc-value .big{font-variant-numeric:tabular-nums;font-size:24px;font-weight:600}.rc-meta{color:var(--accent);justify-content:space-between;align-items:center;display:flex}.spark{flex-shrink:0}.status{white-space:nowrap;align-items:baseline;gap:4px;font-size:11px;font-weight:600;display:inline-flex}.status.verified{color:#0a7a3d}.status.single-source{color:var(--ink-2)}.status.stale{color:var(--warn-ink)}.status.rejected{color:var(--danger)}@media (prefers-color-scheme:dark){.status.verified{color:#4cc27f}}.legend{flex-direction:column;gap:3px;display:flex}.legend .status{white-space:normal;font-weight:600}.legend .status .muted{font-weight:400}.rc-checks summary{cursor:pointer;color:var(--accent)}.rc-checks ul{flex-direction:column;gap:3px;margin:6px 0;padding:0;font-size:12px;list-style:none;display:flex}.rc-checks li.bad{color:var(--danger)}.panel.warn{background:var(--warn-bg);color:var(--warn-ink);border-color:var(--warn-edge)}
