html[data-theme="light"]{color-scheme:light}
html[data-theme="dark"]{color-scheme:dark;--blue:#4aa4c0;--blue-dark:#72bad0;--green:#4bc987;--ink:#e8f0f3;--muted:#9eafb8;--paper:#0b1318;--surface:#111d23;--line:#2a3a42;--danger:#ef8078;--warning:#e3b563;--comparison:#70828b}
.theme-selector{display:inline-flex;align-items:center;gap:4px;padding:3px;border:1px solid var(--line);border-radius:10px;background:var(--paper)}
.theme-choice{min-width:72px;padding:7px 11px;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--muted);font-size:12px}
.theme-choice[aria-pressed="true"]{border-color:var(--blue);background:var(--blue);color:#fff}
.theme-choice:hover{color:var(--ink)}
.theme-choice[aria-pressed="true"]:hover{color:#fff}
html[data-theme="dark"] .site-header{background:rgba(11,19,24,.94)}
html[data-theme="dark"] .brand-logo{padding:4px 7px;border-radius:7px;background:#f4f7f8}
html[data-theme="dark"] .desk-sidebar{background:rgba(17,29,35,.92)}
html[data-theme="dark"] .nav-item.active{background:#153541;color:var(--blue)}
html[data-theme="dark"] .status{background:#153541;color:var(--blue)}
html[data-theme="dark"] .status-ready_with_gaps .status{background:#3a2d18;color:var(--warning)}
html[data-theme="dark"] .status-blocked .status{background:#3d2424;color:var(--danger)}
html[data-theme="dark"] .maturity.active{background:#17372a;color:var(--green)}
html[data-theme="dark"] .maturity.preview{background:#153541;color:var(--blue)}
html[data-theme="dark"] .maturity.planned{background:#26343b;color:var(--muted)}
html[data-theme="dark"] .metric-card small{color:var(--muted)}
html[data-theme="dark"] .year-chart{background:repeating-linear-gradient(to bottom,var(--surface),var(--surface) 39px,var(--line) 40px)}
html[data-theme="dark"] .revenue-bar.state-provisional{fill:#70828b}
html[data-theme="dark"] .chart-legend .provisional:before{background:#70828b}
html[data-theme="dark"] .agent-icon{background:#153541;color:var(--blue)}
html[data-theme="dark"] .hanmut-hero,
html[data-theme="dark"] .hanmut-hero.state-unavailable{background:#2a3940;color:#f2f6f8}
html[data-theme="dark"] .hanmut-hero .hanmut-summary,
html[data-theme="dark"] .hanmut-hero .hanmut-management-role,
html[data-theme="dark"] .hanmut-hero .hanmut-management-evidence,
html[data-theme="dark"] .hanmut-hero .hanmut-management-evidence summary,
html[data-theme="dark"] .hanmut-hero .hanmut-management-scenarios li span,
html[data-theme="dark"] .hanmut-hero .hanmut-activity time,
html[data-theme="dark"] .hanmut-hero .hanmut-activity p{color:#c3d0d6}
html[data-theme="dark"] .hanmut-management-priorities ol{color:#f0f5f7}
html[data-theme="dark"] .zero-state{border-color:var(--line);background:#2a3940;color:#f2f6f8}
html[data-theme="dark"] .zero-state p{color:#c3d0d6}
html[data-theme="dark"] .restricted-note{border-color:#5a4930;background:#2a2419;color:#e8cf9e}
html[data-theme="dark"] .decision-view,
html[data-theme="dark"] .detail,
html[data-theme="dark"] .login-panel,
html[data-theme="dark"] .denied{background:var(--surface)}
html[data-theme="dark"] .decision-context{background:#132b23}
html[data-theme="dark"] .decision-context p{color:#b7c9c1}
html[data-theme="dark"] .login-panel input,
html[data-theme="dark"] .decision-view textarea,
html[data-theme="dark"] select{border-color:var(--line);background:var(--paper);color:var(--ink)}
html[data-theme="dark"] .error{background:#3d2424;color:#ffc0ba}
html[data-theme="dark"] .app-shell-nav{background:rgba(11,19,24,.97)}
html[data-theme="dark"] .app-shell-nav a.active{background:#153541;color:var(--blue)}
html[data-theme="dark"] .supervisor-bar{color:var(--ink)}
html[data-theme="dark"] .theme-selector{background:#081015}
@media(max-width:760px){.theme-setup-row{align-items:flex-start}.theme-selector{flex:0 0 auto}html[data-theme="dark"] .app-shell-nav{background:rgba(11,19,24,.98)}}