.theme-toggle{display:inline-grid;place-items:center;width:42px;height:42px;flex:0 0 42px;border:1px solid var(--line);border-radius:50%;background:var(--panel);color:var(--ink);font-size:23px;line-height:1}.theme-toggle:hover{border-color:var(--lime)}.header-inner{gap:16px}.header nav{gap:17px}
html[data-theme=light]{color-scheme:light;--bg:#f7f8f3;--panel:#fff;--panel2:#edf1e8;--line:#ccd4c7;--muted:#526050;--ink:#18231b;--lime:#326b12;--purple:#6b439e;--red:#aa2840}
html[data-theme=light] :is(.header,.mobile-cta){background:#f7f8f3f5;border-color:var(--line)}
html[data-theme=light] :is(.topline,.footer-bottom,.mobile-cta>span,label,.cost-lab label,.range-captions,.result-pair span,.result-pair small,.board-label,.board-heading small,.board-footer,.prompt-card small,.pool-example span,.plan-summary span,.funding-metrics small,.product-heading>p,.product-notes p,.product-detail-grid p,.da-cost-proof p){color:var(--muted)}
html[data-theme=light] :is(.compound-panel,.compound-controls,.calculator-panel,.calculator-results,.feature-card,.guide-card,.article-sidebar,.article-callout,.ai-feature-panel,.workflow>div,.cost-lab,.fit-grid>div,.decision-cta,.plan-summary>div,.edge-board,.prompt-card,.copy-box,.pool-example>div,.product-detail,.editorial-tools,.tool-links a,.practical-grid a,.funding-examples>a,.funding-examples>article,.fee-promo,.reward-figure,.revenue-flow>span,.tool-flow span){background:var(--panel);border-color:var(--line);color:var(--ink);box-shadow:none}
html[data-theme=light] :is(.compound-section,.features-section,.metrics-strip){background:#edf1e8;border-color:var(--line)}
html[data-theme=light] :is(input[type=number],select,textarea,.discovery-form input,.discovery-form select,#funding-form textarea,.cost-lab input[type=number],.cost-lab details input,.money-input){background:#fff;color:var(--ink);border-color:#8b9d87}
html[data-theme=light] :is(.button.secondary,.presets button,.lab-presets button,.copy-box button){background:#edf1e8;color:var(--ink);border-color:#8b9d87}
html[data-theme=light] .button.primary{background:#326b12;color:#fff}
html[data-theme=light] .button.primary:hover{background:#254f0e}
html[data-theme=light] :is(.result-pair>div,.fee-track,.badge,.hero-tags>span,.hero-tags>a){background:#e9f0e3;border-color:var(--line);color:var(--ink)}
html[data-theme=light] :is(.article-body b,.proof-checklist b,.troubleshoot dt,.product-notes b,.board-heading>b,.board-total strong,.pool-example strong,.funding-metrics strong,.plan-summary strong,.sidebar-code>b,.calculator-results h2,.result-summary b,.revenue-flow b,.reward-figure>strong,.lab-row b,.lab-row:first-child b,.cost-lab output,.article-callout code,.copy-box code,.copy-box pre){color:var(--ink)}
html[data-theme=light] :is(.decision-cta small,.troubleshoot dd,.source-note,.article-body p,.article-body li,.editorial-tools p,.practical-grid p){color:var(--muted)}
html[data-theme=light] :is(thead th,.venue-matrix th,.venue-matrix th[scope=row],tbody th){color:var(--ink);background:#edf1e8}
html[data-theme=light] :is(.venue-matrix small,.venue-matrix th small,.venue-matrix td:before){color:var(--muted)}
html[data-theme=light] :is(.featured-venue,.venue-matrix tr.featured-venue){background:#e6f0de;border-color:#759b5f}
html[data-theme=light] :is(.venue-matrix tr,.matrix-scroll,.comparison-table,.funding-scroll th,.funding-scroll td){border-color:var(--line)}
html[data-theme=light] .venue-matrix td:last-child{color:var(--ink)}
html[data-theme=light] .venue-matrix tr{background:var(--panel)}
html[data-theme=light] .venue-matrix tr.featured-venue{background:#e6f0de}
html[data-theme=light] .venue-matrix td::before{color:#526050}
html[data-theme=light] .tool-links b{color:var(--lime)}
html[data-theme=light] :is(.prompt-card>p,.prompt-card .board-label,.board-total span){color:var(--ink)}
html[data-theme=light] .cost-lab #lab-error{color:var(--red)}
html[data-theme=light] .cost-lab input[type=range]{accent-color:var(--lime)}
@media(max-width:940px){html[data-theme=light] .header nav{background:#f7f8f3;border-color:var(--line);box-shadow:0 16px 30px #18231b18;color:var(--ink)}}
/* Dark art and product screenshots keep their original palette in both modes. */
html[data-theme=light] :is(.da-hero,.editorial-card,.editorial-hero,.product-screen,.final-cta,.terminal,.pnl-card){--ink:#f3f5f4;--muted:#b3beb7;--lime:#baff5c;--bg:#0b0e11;color:var(--ink);color-scheme:dark}
html[data-theme=light] :is(.da-hero,.final-cta) .button.primary{background:#baff5c;color:#102005}
html[data-theme=light] .da-hero .button.secondary{background:#14191e;color:#f3f5f4;border-color:#52606c}
html[data-theme=light] .da-hero .hero-tags>span{background:#111a16b8;border-color:#45513e;color:#e5eddf}
html[data-theme=light] .editorial-copy :is(h2,h3){color:#f3f5f4}
html[data-theme=light] .editorial-copy p{color:#b8c4bd}
html[data-theme=light] :is(.editorial-link,.signals .editorial-link,.ehx .editorial-link){color:#baff5c}
@media(max-width:1100px){.header-inner{gap:12px}.header nav{gap:12px}.header-cta{display:none}}
@media(max-width:940px){.theme-toggle{margin-left:auto}.menu-toggle{order:3}.header nav{gap:0}}
@media(max-width:400px){.header-inner{gap:9px}.theme-toggle{width:38px;height:38px;flex-basis:38px}.brand{gap:8px}.brand-name{font-size:17px}}
@media print{.theme-toggle{display:none}}
