:root{color-scheme:light;--surface:#fff}
.theme-toggle{display:inline-grid;place-items:center;flex-shrink:0}
.theme-toggle svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.theme-toggle .theme-sun{display:none}
[data-theme=dark] .theme-toggle .theme-moon{display:none}
[data-theme=dark] .theme-toggle .theme-sun{display:block}
@media(max-width:360px){.brand{font-size:16px}.currency-label select{width:62px}.top-actions{gap:1px}.icon-button{width:28px}.topbar{gap:6px}}
@media screen{
 :root[data-theme=dark]{color-scheme:dark;--ink:#e5eee9;--muted:#aec2b7;--green:#86dcb2;--line:#344a40;--bg:#101d1a;--soft:#23392f;--accent:#365642;--surface:#192a23;--chart-axis:#b5c7cd;--chart-grid:#3b5157;--chart-green:#63d5ab}
 [data-theme=dark] body{background:var(--bg);color:var(--ink)}
 [data-theme=dark] .topbar{background:#13221eed}
 [data-theme=dark] .brand img{filter:brightness(1.6) saturate(.85)}
 [data-theme=dark] :is(.mobile-nav,.tool-card,.calc-panel,.results-panel,.schedule-panel,.compare-saved-group,.scenario-comparison,.search-dialog,.blog-card,.blog-filter,.calculator-shortcuts,.calculator-notes,.reference-card,.skip-link:focus){background:var(--surface);border-color:var(--line);color:var(--ink)}
 [data-theme=dark] :is(input:where(:not([type=range]):not([type=radio]):not([type=checkbox])),select,.outline-btn,.action-btn,.scenario-head button,.scenario-tools button,.preset-links a){background:var(--surface);color:var(--ink);border-color:var(--line)}
 [data-theme=dark] input::placeholder{color:#a7bab0;opacity:1}
 [data-theme=dark] :is(.outline-btn,.action-btn,.preset-links a):hover{background:var(--soft);border-color:#648d76}
 [data-theme=dark] :is(.primary-btn,.blog-filter[aria-pressed=true]){background:#86dcb2;border-color:#86dcb2;color:#10251a}
 [data-theme=dark] .primary-btn:hover{background:#a0e7c3}
 [data-theme=dark] :is(.tool-card,.blog-card):hover{border-color:#739d83}
 [data-theme=dark] :is(.desktop-nav a,.eyebrow,.breadcrumbs,.section-nav a,.section-nav button,.field-group>legend,.field label,.field-help,.input-foot,.metric-label,.metrics-note,.breakdown-row,.chart-heading span,.chart-legend,.schedule-controls,.methodology p,.prose p,.compare-picker label,.compare-saved-group small,.scenario-head p,.scenario-column small,.scenario-column span,.scenario-table small,.scenario-table .muted-cell,.scenario-table td:before,.scenario-empty p,.scenario-name-label,.search-result small,.investment-assumptions,.investment-legend,.investment-rounding,.investment-summary .metric-label,.chart-schedule-link,.article-section p,.chart-legend-toggle,.chart-explore-label,.chart-readout){color:var(--muted)}
 [data-theme=dark] :is(.desktop-nav a:hover,.desktop-nav [aria-current],.scenario-column strong){color:var(--green)}
 [data-theme=dark] :is(.live-badge,.tool-icon,.blog-category){background:#294536;color:#b1e1c3}
 [data-theme=dark] .tool-icon.save{background:#293c54;color:#bed4fa}
 [data-theme=dark] .tool-icon.plan{background:#493f2b;color:#e6d5ad}
 [data-theme=dark] .tool-icon.spend{background:#49352f;color:#edc6b9}
 [data-theme=dark] .tool-icon.research{background:#3b3453;color:#d5c9f7}
 [data-theme=dark] .tool-icon.india{background:#473d29;color:#e6d5ad}
 [data-theme=dark] :is(.methodology,.compare-picker,.scenario-column,.scenario-save-panel,.scenario-notice,.article-takeaways,.article-action){background:var(--soft);border-color:var(--line);color:var(--ink)}
 [data-theme=dark] .scenario-notice strong{color:var(--ink)}
 [data-theme=dark] :is(.data-table thead th,.scenario-table thead th,.scenario-table caption,.data-table tfoot){background:var(--soft);color:var(--muted)}
 [data-theme=dark] :is(.data-table th,.data-table td,.scenario-table th,.scenario-table td){border-color:var(--line)}
 [data-theme=dark] .scenario-table tbody th{color:var(--muted)}
 [data-theme=dark] .scenario-table .changed{background:#264632}
 [data-theme=dark] .breakdown-row .bar{background:#30483a}
 [data-theme=dark] .metric-main{background:#22573e}
 [data-theme=dark] .metric-main .metric-label{color:#d7e9de}
 [data-theme=dark] :is(.field-error,.reference-required,.reference-notice,.reference-status,.scenario-tools .danger-action){color:#ffacb5}
 [data-theme=dark] :is(.calc-error,.field input[aria-invalid=true]){background:#472b2b;color:#ffc5c5;border-color:#bf7077}
 [data-theme=dark] .scenario-notice.warning{background:#453924;color:#f1d396}
 [data-theme=dark] .chart-tooltip{background:#0b1511f5;color:#fff;box-shadow:0 3px 16px #0005;border:1px solid #51675b}
 [data-theme=dark] .investment-ring .chart-donut-center{fill:var(--ink)}
 [data-theme=dark] :is(body[data-page=reference-tool],body[data-page=reference-library]){background:var(--bg);color:var(--ink)}
 [data-theme=dark] :is(.reference-description,.reference-field>label,.reference-help-text,.reference-notes,.reference-directory-intro,.reference-directory-controls span,.reference-card p,.reference-advanced-link){color:var(--muted);border-color:var(--line)}
 [data-theme=dark] :is(.reference-form-buttons,.reference-notes){border-color:var(--line)}
 [data-theme=dark] .reference-field input[readonly]{background:#293d34;color:#d0dfd5}
 [data-theme=dark] .reference-primary{background:#2573d6;border-color:#438be4;color:#fff}
 [data-theme=dark] .reference-primary:hover{background:#3584e8}
 [data-theme=dark] .reference-result{background:#192f40;border-color:#467ba8;color:var(--ink)}
 [data-theme=dark] .reference-result p{color:#d7e5ef}
 [data-theme=dark] .reference-pie{background:#20394a}
 [data-theme=dark] :is(.reference-result .chart-legend-toggle,.reference-pie-legend){color:#c2d5df}
 [data-theme=dark] .reference-result .chart-tooltip{color:#fff}
 [data-theme=dark] .reference-result .chart-tooltip :is(strong,p){color:#fff}
}
@media print{:root{color-scheme:light}.theme-toggle{display:none}}
