/* Shared controls and chart palette. Dark remains the default. */
:root{--chart-label:#8da9bf;--chart-grid:#274054;--chart-crosshair:#90b7cb;--chart-hover:#a4e8ff0c;--expected:#baa4ff}
.theme-toggle{display:flex;align-items:center;justify-content:center;gap:7px;flex-shrink:0;height:42px;padding:0 12px;background:#10263a;border:1px solid #29445b;border-radius:9px;color:#cce5f5;font-size:11px;font-weight:700}
.theme-toggle:hover{background:#183b52}.theme-toggle svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.login-page>.theme-toggle{position:absolute;top:20px;right:20px;z-index:2}
.plant-bars .comparison-day b{display:inline;height:auto;background:none;border-radius:0}
html[data-theme=light]{color-scheme:light;--bg:#edf3f9;--ink:#172c45;--muted:#536a80;--line:#cedce8;--green:#087553;--solar:#a76a04;--wind:#087f96;--expected:#7856c5;--chart-label:#536a80;--chart-grid:#d1deea;--chart-crosshair:#557288;--chart-hover:#087f9610}
[data-theme=light] body{background:radial-gradient(ellipse at 76% 1%,#dcecfacc 0,transparent 50%),linear-gradient(180deg,#f5f8fc,#eaf1f8);color:var(--ink)}
[data-theme=light] header{background:#f8fbffed;border-color:var(--line)}
[data-theme=light] .card,[data-theme=light] .panel{background:linear-gradient(135deg,#ffffff,#f2f7fc);border-color:var(--line);box-shadow:0 8px 24px #214b7410}
[data-theme=light] .card:hover{border-color:#8eafc9}
[data-theme=light] .card .value,[data-theme=light] .summary-row strong,[data-theme=light] .update-strip strong,[data-theme=light] .evidence-grid strong,[data-theme=light] .bar-efficiency strong,[data-theme=light] .comparison-day b{color:var(--ink)}
[data-theme=light] .card .label,[data-theme=light] label{color:#4e6680}
[data-theme=light] .brand p,[data-theme=light] .live time,[data-theme=light] .intro p:not(.eyebrow),[data-theme=light] .card .detail,[data-theme=light] .card .unit,[data-theme=light] .filter-note,[data-theme=light] .update-strip span,[data-theme=light] .chart-footer,[data-theme=light] .forecast-method,[data-theme=light] .report-note,[data-theme=light] .investor-method p,[data-theme=light] .investor-table small,[data-theme=light] .investor-heading>span,[data-theme=light] .investor-count,[data-theme=light] .bar-note,[data-theme=light] .bar-efficiency,[data-theme=light] .comparison-day,[data-theme=light] .plant-bars span,[data-theme=light] .evidence-grid span,[data-theme=light] .evidence-grid small,[data-theme=light] .insight-top,[data-theme=light] .investor-empty,[data-theme=light] .login-box p,[data-theme=light] #plant-count,[data-theme=light] #report-count,[data-theme=light] #usage-count,[data-theme=light] #usage-rows small,[data-theme=light] .pagination,[data-theme=light] footer{color:var(--muted)}
[data-theme=light] .eyebrow,[data-theme=light] footer a,[data-theme=light] .plant-insight summary,[data-theme=light] .investor-method summary{color:#087f96}
[data-theme=light] nav{border-color:var(--line)}[data-theme=light] nav button:hover{background:#e4eef7;color:#234a69}[data-theme=light] nav button.active{background:#e1eef7;color:#096e84;border-color:#087f96}
[data-theme=light] select,[data-theme=light] input{background:#fff;border-color:#bdcfdf;color:var(--ink)}
[data-theme=light] .update-strip,[data-theme=light] .investor-method,[data-theme=light] .summary-row div{background:#f0f6fb;border-color:var(--line);color:var(--muted)}
[data-theme=light] .panel-title,[data-theme=light] .chart-footer,[data-theme=light] .bar-efficiency,[data-theme=light] .login-notice,[data-theme=light] footer{border-color:var(--line)}
[data-theme=light] th{background:#e9f1f8;color:#4e6680}[data-theme=light] td{color:var(--ink)}[data-theme=light] th,[data-theme=light] td{border-color:#d5e1ec}
[data-theme=light] .plant-insight td{background:#edf4fa}[data-theme=light] .plant-bars i{background:#dce7f1}[data-theme=light] .evidence-grid>div{border-color:#bdcfdf}
[data-theme=light] .investor-bar-panel svg text{fill:var(--muted)}[data-theme=light] .investor-bar-panel svg .bar-value{fill:var(--ink)}[data-theme=light] .bar-grid{stroke:var(--chart-grid)}
[data-theme=light] .theme-toggle,[data-theme=light] #fullscreen-toggle,[data-theme=light] #logout-form button,[data-theme=light] .report-controls button,[data-theme=light] .chart-tools button,[data-theme=light] .pagination button,[data-theme=light] .live span{background:#e7f0f8;color:#214f6f;border-color:#bcd0e0}
[data-theme=light] .theme-toggle:hover,[data-theme=light] #fullscreen-toggle:hover,[data-theme=light] .chart-tools button:hover{background:#d7e7f3}
[data-theme=light] #tooltip,[data-theme=light] #forecast-tooltip{background:#fffffff5;color:var(--ink);border-color:#4998ad;box-shadow:0 5px 20px #284d6b25}
[data-theme=light] .status,[data-theme=light] .pill{background:#e1f3e9;color:#12633f;border-color:#afdbbf}
[data-theme=light] .status.bad{background:#fce5e8;color:#a41f35}[data-theme=light] .status.warn{background:#fff0cc;color:#825406}[data-theme=light] .status.neutral{background:#e2eaf1;color:#50677b}
[data-theme=light] .card.state-running .value,[data-theme=light] .report-pass{color:#087553}[data-theme=light] .card.state-stopped .value{color:#946008}[data-theme=light] .card.state-error .value{color:#b91c1c}
[data-theme=light] .investor-red{color:#c22432!important}[data-theme=light] td.latency-alert,[data-theme=light] .summary-row .communication-alert strong.has-failures{color:#c22432}
[data-theme=light] #fullscreen-message{background:#fff4d5;color:#805214}[data-theme=light]:fullscreen{background:#edf3f9}
.legend:before{background:var(--wind)}.legend.solar:before{background:var(--solar)}
@media(max-width:600px){.header-controls{gap:7px}.header-controls .live{display:none}.theme-toggle{padding:0 8px}}
@media(max-width:420px){.theme-toggle{height:34px;width:34px;padding:0}.theme-toggle span{display:none}.brand p{max-width:135px}.brand h1{font-size:13px}.login-page>.theme-toggle{width:auto;padding:0 10px}.login-page>.theme-toggle span{display:inline}}
