:root{--bg:#f5f7fa;--surface:#fff;--text:#1b2430;--muted:#5b6676;--border:#dde3ea;--accent:#1f5f8b;--accent-text:#fff;--accent-soft:#e6eff6;--shadow:0 1px 2px #1018280f;--radius:10px;--error:#b42318;--error-soft:#fef3f2;--error-line:#f5c2bd;--warn-soft:#fff8e6;--warn-line:#f2d48a;--sidebar-width:220px;--tab-height:58px;--series-1:#1f5f8b;--series-2:#2e9c8f;--series-3:#d08a2e;--series-4:#8a6bbf;--series-5:#c4473a;--series-6:#2f86d6;--series-7:#5f9a2c;--series-8:#c2528f;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}@media screen and (prefers-color-scheme:dark){:root{--bg:#12171d;--surface:#1a2129;--text:#e6ebf0;--muted:#9aa6b4;--border:#2b3540;--accent:#6fb0e0;--accent-text:#0d1720;--accent-soft:#1d3446;--shadow:none;--error:#f97066;--error-soft:#2d1714;--error-line:#6b2a24;--warn-soft:#2b2412;--warn-line:#6b5520;--series-1:#6fb0e0;--series-2:#5cc8b8;--series-3:#e8b066;--series-4:#b39ae0;--series-5:#e0604f;--series-6:#4a8fe0;--series-7:#5fa83a;--series-8:#d46aa6;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{background:var(--bg);color:var(--text);margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:16px;line-height:1.5}h1,h2{margin:0 0 12px;line-height:1.25}h1{font-size:1.6rem}h2{font-size:1.1rem}p{margin:0 0 10px}p:last-child{margin-bottom:0}.muted{color:var(--muted)}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.app{min-height:100vh;min-height:100dvh}.sidebar{width:var(--sidebar-width);background:var(--surface);border-right:1px solid var(--border);flex-direction:column;gap:18px;padding:20px 12px;display:flex;position:fixed;inset:0 auto 0 0}.brand{align-items:center;gap:10px;padding:0 8px;font-size:1.15rem;font-weight:650;display:flex}.brand-mark{background:var(--accent);width:30px;height:30px;color:var(--accent-text);border-radius:8px;place-items:center;font-size:1rem;display:grid}.side-nav{flex-direction:column;gap:2px;display:flex}.nav-link{color:var(--text);border-radius:8px;align-items:center;gap:12px;padding:9px 10px;font-weight:500;text-decoration:none;display:flex}.nav-link:hover{background:var(--bg)}.nav-link[aria-current=page]{background:var(--accent-soft);color:var(--accent)}.icon{fill:none;stroke:currentColor;stroke-width:1.7px;stroke-linecap:round;stroke-linejoin:round;flex:none;width:22px;height:22px}.sidebar-foot{margin-top:auto;padding:0 8px;font-size:.8rem}.topbar,.tab-bar{display:none}.content{margin-left:var(--sidebar-width);max-width:calc(var(--sidebar-width) + 1100px);padding:32px 40px 48px}.screen-title{margin-bottom:20px}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);max-width:760px;margin-bottom:16px;padding:20px 22px}.placeholder p:first-child{font-size:1.05rem}.facts{grid-template-columns:max-content 1fr;gap:6px 18px;margin:0 0 12px;display:grid}.facts dt{color:var(--muted)}.facts dd{margin:0}.button{font:inherit;border:1px solid var(--border);background:var(--surface);color:var(--text);cursor:pointer;border-radius:8px;min-height:44px;padding:10px 18px;font-weight:600}.button.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-text)}.small{font-size:.85rem}.lead{margin-bottom:16px}.visually-hidden{clip:rect(0 0 0 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.button-row{flex-wrap:wrap;gap:10px;margin:12px 0;display:flex}.button:disabled{opacity:.45;cursor:default}.link-button{font:inherit;color:var(--accent);cursor:pointer;text-underline-offset:2px;background:0 0;border:none;padding:4px 2px;font-weight:600;text-decoration:underline}.message{border:1px solid #0000;border-radius:8px;margin:6px 0 0;padding:7px 10px;font-size:.9rem}.message.error{background:var(--error-soft);border-color:var(--error-line);color:var(--error)}.message.warning{background:var(--warn-soft);border-color:var(--warn-line);color:var(--text);flex-wrap:wrap;align-items:center;gap:4px 14px;display:flex}.message.note{background:var(--accent-soft);color:var(--text)}.message-actions{gap:12px;display:inline-flex}.card.section{max-width:980px;padding:0}.section>summary{cursor:pointer;align-items:center;gap:10px;padding:16px 22px;list-style:none;display:flex}.section>summary::-webkit-details-marker{display:none}.section>summary:before{content:"";border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);flex:none;width:8px;height:8px;transition:transform .15s;transform:rotate(-45deg)}.section[open]>summary:before{transform:rotate(45deg)}.section>summary h2{margin:0}.section-body{padding:0 22px 18px}.field-row{border-top:1px solid var(--border);align-items:start;gap:6px 18px;padding:12px 0;display:grid}.field-row.cols-1{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) minmax(0,1fr)}.field-row.cols-1>.person-cell{grid-column:span 2;max-width:330px}.field-row.cols-2{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) minmax(0,1fr)}.field-notes{grid-column:2/-1}.people-head{color:var(--muted);border-top:none;padding:4px 0;font-weight:650}.label-text{font-weight:600}.help{color:var(--muted);margin:2px 0 0;font-size:.85rem}.person-cap{display:none}.control{min-width:0}.number-box{border:1px solid var(--border);background:var(--surface);border-radius:8px;align-items:center;padding:0 10px;display:flex}.number-box:focus-within{outline:2px solid var(--accent);outline-offset:1px}.number-box input{min-width:0;color:var(--text);font:inherit;text-align:right;background:0 0;border:none;outline:none;flex:1;padding:8px 0}.number-box input[aria-invalid=true]{color:var(--error)}.number-box:has(input:disabled){background:var(--bg);opacity:.7}.adorn{color:var(--muted);padding:0 4px}.select,.text-box{width:100%;font:inherit;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:8px;min-height:40px;padding:8px 10px}textarea.text-box{resize:vertical}.switch{cursor:pointer;align-items:center;gap:10px;min-height:40px;display:inline-flex}.switch input{opacity:0;width:1px;height:1px;position:absolute}.switch-track{background:var(--border);border-radius:13px;flex:none;width:44px;height:26px;transition:background .15s;position:relative}.switch-track:after{content:"";background:#fff;border-radius:50%;width:20px;height:20px;transition:transform .15s;position:absolute;top:3px;left:3px;box-shadow:0 1px 2px #0000004d}.switch input:checked+.switch-track{background:var(--accent)}.switch input:checked+.switch-track:after{transform:translate(18px)}.switch input:focus-visible+.switch-track{outline:2px solid var(--accent);outline-offset:2px}.table-block{border-top:1px solid var(--border);padding:12px 0}.table-block h3{margin:4px 0 10px;font-size:1rem}.table-row{border:1px solid var(--border);border-radius:var(--radius);background:var(--bg);grid-template-columns:repeat(auto-fill,minmax(150px,1fr));align-items:start;gap:10px 14px;margin-bottom:10px;padding:12px;display:grid}.row-cell.wide{grid-column:span 2}.row-cell-label{color:var(--muted);margin-bottom:3px;font-size:.8rem;font-weight:600}.computed{font-variant-numeric:tabular-nums;padding:9px 0}.table-row .remove{place-self:end start;padding-bottom:10px}.grid-scroll{border:1px solid var(--border);border-radius:var(--radius);margin:8px 0 12px;overflow-x:auto}.grid{border-collapse:collapse;font-size:.9rem}.grid th,.grid td{border-bottom:1px solid var(--border);text-align:right;white-space:nowrap;padding:4px 6px}.grid th[scope=row],.grid th.sticky{text-align:left;font-weight:600}.grid .sticky{z-index:1;background:var(--surface);position:sticky;left:0}.grid td .number-box{padding:0 6px}.grid td input{width:84px;padding:5px 0}.grid .total{color:var(--muted)}.one-year .year-stepper{justify-content:center;align-items:center;gap:18px;margin:10px 0;display:flex}.year-now{text-align:center;min-width:4ch;font-size:1.1rem;font-weight:650}.one-year-row{border-top:1px solid var(--border);padding:8px 0}.file-actions .message{max-width:640px}.overlay{z-index:10;background:#0a10188c;place-items:center;padding:16px;display:grid;position:fixed;inset:0}.dialog{background:var(--surface);border-radius:14px;width:min(520px,100%);max-height:calc(100dvh - 32px);padding:24px;overflow:auto;box-shadow:0 10px 40px #00000040}.dialog-lead{font-weight:600}.dialog-actions{justify-content:flex-end;margin-top:20px;display:flex}@media (max-width:720px){.sidebar{display:none}.topbar{z-index:5;padding:calc(10px + env(safe-area-inset-top)) 16px 10px;background:var(--surface);border-bottom:1px solid var(--border);align-items:center;display:flex;position:sticky;top:0}.topbar .brand{padding:0}.content{padding:20px 16px calc(var(--tab-height) + 24px + env(safe-area-inset-bottom));margin-left:0}h1{font-size:1.4rem}.card{padding:16px}.section>summary{padding:14px 16px}.section-body{padding:0 16px 16px}.field-row.cols-1,.field-row.cols-2{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.field-row.cols-1>.person-cell{max-width:none}.field-label,.field-notes{grid-column:1/-1}.people-head{display:none}.person-cap{color:var(--muted);margin-bottom:3px;font-size:.8rem;font-weight:600;display:block}.table-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.tab-bar{z-index:5;padding:0 4px env(safe-area-inset-bottom);background:var(--surface);border-top:1px solid var(--border);display:flex;position:fixed;inset:auto 0 0}.tab-bar .nav-link{min-width:0;height:var(--tab-height);color:var(--muted);border-radius:0;flex-direction:column;flex:1 1 0;justify-content:center;gap:2px;padding:6px 0;font-size:.68rem;font-weight:500}.tab-bar .nav-link:hover{background:0 0}.tab-bar .nav-link[aria-current=page]{color:var(--accent);background:0 0}.tab-bar .nav-link span{text-overflow:ellipsis;white-space:nowrap;max-width:100%;overflow:hidden}}.choices-bar{flex-wrap:wrap;align-items:center;gap:12px 24px;padding:12px 16px;display:flex}.choices-bar .choice{align-items:center;gap:8px;font-weight:600;display:flex}.choices-bar .control{min-width:120px}.tiles{grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;display:grid}.tile{border:1px solid var(--border);border-radius:var(--radius);padding:12px 14px}.tile-label{color:var(--muted);font-size:.85rem;font-weight:600}.tile-value{font-variant-numeric:tabular-nums;margin-top:2px;font-size:1.35rem;font-weight:650}.tile-sub{color:var(--muted);margin-top:2px;font-size:.8rem}.goal-ok{margin-bottom:12px}.chart-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));gap:0 16px;display:grid}.chart{width:100%;height:260px}.grid.report td,.grid.report th{font-variant-numeric:tabular-nums}.grid.report thead th{white-space:normal;vertical-align:bottom;text-align:right;min-width:96px}.grid.report thead th.sticky{text-align:left}.grid tfoot th,.grid tfoot td{border-bottom:none;font-weight:650}.results.updating{opacity:.6;transition:opacity .2s}.year-lists{flex-wrap:wrap;gap:16px 32px;display:flex}.year-list h3{margin:0 0 6px;font-size:1rem}.column-notes summary{cursor:pointer;color:var(--accent)}.column-notes dt,.column-notes-list dt{margin-top:8px;font-weight:600}.column-notes dd,.column-notes-list dd{color:var(--muted);margin:0}.results .card,.card.choices-bar{max-width:none}.choices-bar .select{min-width:120px}.choices-bar .choice>span{white-space:nowrap}.report-head{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:8px 16px;display:flex}.report-head>div{flex:320px}.report-head h2{margin-bottom:4px}.report-head>.report-head-buttons{flex-wrap:wrap;flex:none;align-items:center;gap:8px;display:flex}.view-switch{border:1px solid var(--border);border-radius:8px;display:inline-flex;overflow:hidden}.view-switch button{font:inherit;background:var(--surface);min-width:72px;min-height:36px;color:var(--text);cursor:pointer;border:none;padding:6px 14px;font-size:.9rem;font-weight:600}.view-switch button+button{border-left:1px solid var(--border)}.view-switch button.view-switch-on{background:var(--accent);color:var(--accent-text)}.report-chart h3{margin:12px 0 4px;font-size:1rem}.chart.chart-tall{height:380px}.excel-chart h3{margin:12px 0 4px;font-size:.95rem}.section-title{margin:24px 0 10px;font-size:1.05rem}.chart-tip{background:var(--surface);border:1px solid var(--border);color:var(--text);border-radius:8px;max-width:min(300px,62vw);padding:8px 10px;font-size:.85rem;line-height:1.45;box-shadow:0 2px 8px #1018281f}.chart-key{color:var(--text)}.chart-tip-title{font-weight:600}.chart-tip-total{margin-bottom:2px;font-weight:600}.chart-tip-swatch{vertical-align:baseline;border-radius:2px;width:10px;height:10px;margin-right:6px;display:inline-block}.small-button{min-height:36px;padding:6px 14px;font-size:.9rem}.grid.report thead tr.group-row th{text-align:left;white-space:nowrap;box-sizing:border-box;height:28px;color:var(--muted);border-bottom:none;font-size:.8rem;line-height:20px}.grid.report thead tr.group-row th.group{border-bottom:2px solid var(--border)}.grid.report thead tr.group-row th.sticky{text-align:left;vertical-align:bottom;color:var(--text);font-size:inherit;border-bottom:1px solid var(--border)}.grid .text-col{text-align:left}.grid.report thead th.text-col{min-width:140px}.year-table .rownum{width:44px;min-width:44px;color:var(--muted);text-align:right;left:0}.year-table .rowlabel{white-space:normal;text-align:left;min-width:220px;max-width:300px;font-weight:500;left:44px}.year-table thead th{min-width:88px}.year-table thead th.rowlabel{min-width:220px}.year-table thead th.rownum{min-width:44px}.year-table .age{color:var(--muted);font-size:.8rem;font-weight:400;display:block}.year-table tr.heading-row th{padding-top:12px;font-weight:700}.charts-note{margin:0 0 12px}.card.fullscreen{z-index:100;border-radius:0;flex-direction:column;max-width:none;margin:0;display:flex;position:fixed;inset:0;overflow:hidden}.card.fullscreen .grid-scroll{flex:1;min-height:0;overflow:auto}.card.fullscreen .grid thead th{z-index:2;background:var(--surface);position:sticky;top:0}.card.fullscreen .grid thead tr.group-row+tr th{top:28px}.card.fullscreen .grid thead th.sticky{z-index:3}body.has-fullscreen{overflow:hidden}.choices-bar .print-open{margin-left:auto}.printed{flex-direction:column;gap:24px;display:flex}.print-page{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:20px 22px}.print-frame{table-layout:fixed;border-collapse:collapse;width:100%}.print-frame>tbody>tr>td,.print-frame>tfoot>tr>td{vertical-align:top;padding:0}.print-foot{border-top:1px solid var(--border);color:var(--muted);margin:16px 0 0;padding-top:6px;font-size:.75rem}.print-title{font-size:1.3rem}.printed .card{box-shadow:none;border:0;max-width:none;padding:0}.print-grid{margin:8px 0 12px;overflow-x:auto}.print-charts{flex-wrap:wrap;gap:8px 24px;margin-top:12px;display:flex}.print-charts>.chart-grid{display:contents}.chart.chart-print{width:auto;height:auto}.cover{flex-direction:column;min-height:420px;display:flex}.cover-for{align-self:flex-end;font-weight:600}.cover-title{color:var(--accent);margin:48px 0 24px;font-size:2.2rem}.cover-prepared{font-size:1.3rem;font-weight:600}.cover-disclaimer{margin-top:48px}.cover-asof{color:var(--muted);margin-top:auto;padding-top:32px}.cover-banner{margin-top:12px;font-weight:600}.banners{gap:8px;margin:0 0 16px;display:grid}.banner{border:1px solid var(--warn-line);border-radius:var(--radius);background:var(--warn-soft);align-items:flex-start;gap:8px;margin:0;padding:8px 12px;font-size:.9rem;display:flex}.banner-text{flex:1;margin:0}.banner-dates{color:var(--muted);font-size:.85rem}.banner-close{min-width:32px;min-height:32px;color:inherit;cursor:pointer;background:0 0;border:0;flex:none;margin:-6px -8px -6px 0;font-size:1.2rem;line-height:1}.banner-problem{border-color:var(--error-line);background:var(--error-soft)}.info-page{background:var(--bg);min-height:100vh}.info-header{background:var(--surface);border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:16px;padding:12px 16px;display:flex}a.button{align-items:center;text-decoration:none;display:inline-flex}.info-content{max-width:760px;margin:0 auto;padding:24px 16px 48px;line-height:1.6}.info-content h2{margin:24px 0 8px;font-size:1.15rem}.info-lead{font-weight:600}.info-other{margin-top:32px}.info-content a,.settings-links a{color:var(--accent)}.settings-links{flex-wrap:wrap;gap:16px;display:flex}.card.wide-card{max-width:1100px}.case-list{border-top:1px solid var(--border);margin:12px 0 0;padding:0;list-style:none}.case-row{border-bottom:1px solid var(--border);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px 16px;padding:10px 0;display:flex}.case-name{flex-direction:column;flex:220px;gap:2px;min-width:0;display:flex}.case-actions{flex-wrap:wrap;gap:6px;display:flex}.rename{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.button.danger{color:var(--error)}.choices-row,.choices-grid{flex-wrap:wrap;gap:10px 24px;margin:12px 0 4px;display:flex}.choices-grid{grid-template-columns:repeat(auto-fit,minmax(300px,1fr));display:grid}.choices-row .choice,.choices-grid .choice{flex-direction:column;gap:4px;font-weight:600;display:flex}.grid.compare th,.grid.compare td{white-space:nowrap}.grid.compare td.infeasible{color:var(--error);font-weight:600}.stale{opacity:.55}.stale-note{white-space:normal;font-size:.8rem;display:block}.run-progress{margin:12px 0}.progress-track{background:var(--accent-soft);border-radius:5px;height:10px;overflow:hidden}.progress-fill{background:var(--accent);height:100%;transition:width .3s}.run-progress-line{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;margin-top:6px;display:flex}.run-wait{align-self:center}.scenario-band{border-radius:var(--radius);background:var(--warn-soft);border:1px solid var(--warn-line);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px 16px;max-width:980px;margin-bottom:12px;padding:10px 14px;display:flex}.band-actions{align-items:center;gap:12px;display:inline-flex}@page{margin:.45in .4in}@media print{body{-webkit-print-color-adjust:exact;-moz-print-color-adjust:exact;print-color-adjust:exact;background:#fff;font-size:10pt}.sidebar,.topbar,.tab-bar,.screen-title,.no-print{display:none!important}.content{max-width:none;margin:0;padding:0}.printed{display:block}.print-page{box-shadow:none;break-before:page;border:0;border-radius:0;padding:0}.print-page:first-child{break-before:auto}.print-frame>thead,.printed .grid thead{display:table-header-group}.print-frame>tfoot{display:table-footer-group}.print-foot{margin-top:8px;font-size:7pt}.print-title{margin-bottom:4px;font-size:14pt}.printed h2{font-size:12pt}.printed .tiles{grid-template-columns:repeat(4,1fr)}.print-grid{overflow:visible}.printed .grid{width:100%;font-size:7.5pt}.printed .print-grid.wide .grid{font-size:6pt}.printed .grid th,.printed .grid td{padding:1px 3px}.printed .print-grid.wide .grid th,.printed .print-grid.wide .grid td{padding:1px 2px}.printed .grid.report thead th,.printed .grid td.text-col{white-space:normal;min-width:0}.printed .grid tr,.chart-card,.tile,.year-list{break-inside:avoid}.printed .grid-scroll{border:0;overflow:visible}.printed .grid th.sticky,.printed .grid th[scope=row]{position:static}.cover{min-height:6.4in}.printed .cover-title{margin-top:1.4in;font-size:30pt}.printed .cover-prepared{font-size:16pt}.printed .small{font-size:8pt}}@media print and (max-width:8in){.printed .grid{font-size:6pt}.printed .print-grid.wide .grid{font-size:5pt}.printed .print-grid.wide{zoom:.92}}.as-typed{margin-top:.2rem;font-weight:600;display:block}.optimize .facts{margin:.75rem 0}.device-notices{gap:8px;margin:0 0 14px;display:grid}.device-notice{flex-wrap:wrap;align-items:center;gap:4px 14px;margin:0;display:flex}@media print{.device-notices{display:none}}.steps{margin:6px 0 10px;padding-left:1.4em}.steps li{margin:3px 0}.settings-subhead{margin:14px 0 4px;font-size:1rem}.run-details{margin-top:8px}.run-details summary{cursor:pointer;color:var(--accent);font-weight:600}.import-review{border:1px solid var(--border);border-radius:10px;max-width:720px;margin-top:12px;padding:12px 14px}.import-review .message.warning{margin-bottom:10px;display:block}.import-review .message.warning p{margin:0 0 4px}.import-review .message.warning ul{margin:0;padding-left:20px}.import-question{margin:10px 0 6px;font-weight:600}@media (max-width:640px){.import-review .facts{grid-template-columns:1fr;gap:0}.import-review .facts dd{margin-bottom:6px}}.drive-choice p{margin:0 0 8px}.drive-files{gap:8px;margin:0 0 8px;padding:0;list-style:none;display:grid}.drive-status{margin:8px 0}.version-text{-webkit-user-select:none;user-select:none}.highlights-head{justify-content:space-between;align-items:center;gap:12px;display:flex}.highlights-head h2{margin:0}@media (max-width:720px){.chart.chart-tall{height:460px}.chart-tip{padding:6px 8px;font-size:.78rem}}
