
:root[data-theme="light"]{color-scheme:light;--bg:#f5f7fa;--panel:#fff;--ink:#121a2d;--line:#dce4ee;--muted:#586b86;--mint:#58c9bf}
:root[data-theme="dark"]{color-scheme:dark;--bg:#0c1426;--panel:#152238;--ink:#edf4ff;--line:#30435c;--muted:#b4c3d6;--mint:#63d8cb}
[data-theme-toggle]{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;cursor:pointer;padding:7px 12px!important;border:1px solid #60738a!important;border-radius:9px;background:#17263b!important;color:#f3f8ff!important;font:600 14px/1.4 system-ui!important;white-space:nowrap;margin-left:10px}
[data-theme-toggle]:focus-visible{outline:3px solid #63d8cb;outline-offset:3px}
.cp-theme-floating{position:fixed;top:12px;right:12px;z-index:100}
:root[data-theme] header{flex-wrap:wrap}
:root[data-theme="dark"] body{background:var(--bg);color:var(--ink)}
:root[data-theme="dark"] :is(input:not([type="range"]):not([type="checkbox"]),textarea,select,dialog){background:#101d30!important;color:#edf4ff!important;border-color:#3a506b!important}
:root[data-theme="dark"] :is(input,textarea)::placeholder{color:#9faec2;opacity:1}
:root[data-theme="dark"] :is(p,small,label){color:var(--muted)}
:root[data-theme="dark"] :is(h1,h2,h3,h4,summary){color:var(--ink)}
:root[data-theme="dark"] :is(a,output,.stat,.safety-metric,.stage-focus,.node-solution,.tag,.accent,#cover-result,#inflation-increase,#progress){color:#63d8cb}
:root[data-theme="dark"] header a{color:#f3f8ff}
:root[data-theme="dark"] :is(.panel,.kpi,.tool-card,.control,.search,.recent,.concept-tip,.explain-popover,.safety-advice,.value-card,.card,.explanation,.blueprint-card){background:#152238;color:var(--ink);border-color:var(--line)}
:root[data-theme="dark"] :is(.tool-icon,.tool-card small,.income-tail span,.safety-simulator,.icon-node,#layer-info){background:#1c3344;color:#b8eee5;border-color:#35586a}
:root[data-theme="dark"] :is(.category-sidebar [aria-current="true"],.catalog-bar [aria-pressed="true"]){background:#234c50;color:#8fe9db}
:root[data-theme="dark"] .control.primary{background:#63d8cb;color:#102e31}
:root[data-theme="dark"] .star{color:#b7c7dc}
:root[data-theme="dark"] .star[aria-pressed="true"]{color:#63d8cb}
:root[data-theme="dark"] :is(.concept-tip,.explain-popover,.note-popover){box-shadow:0 14px 35px #0007}
:root[data-theme="light"] .cp-native-dark :is(.metric,.chart,article,details,.box,.ghost){background:#fff;color:#121a2d;border-color:#dce4ee}
:root[data-theme="light"] .cp-native-dark .dash{background:linear-gradient(145deg,#f0f8f8,#fff)}
:root[data-theme="light"] .cp-native-dark .pill{background:#e3f5f1;color:#17675e;border-color:#b8d7d1}
:root[data-theme="light"] .cp-native-dark :is(.brand span,.brand i,em,.metric b,.box strong,.eyebrow){color:#18786c}
@media(max-width:560px){[data-theme-toggle]{font-size:12px!important;padding:7px 9px!important;min-height:36px;margin-left:0}}

:root[data-theme="dark"] .hero-actions a:first-child,:root[data-theme="dark"] .btn:not(.ghost){color:#102e31!important}
:root[data-theme="dark"] .tile i{color:#63d8cb}
