:root{color-scheme:light}
html[data-theme="dark"]{color-scheme:dark;--ink:#e7edf4;--muted:#9eabb9;--line:#344252;--paper:#111820;--surface:#1b2530;--teal:#36b9a0;--red:#ff6b6b;--shadow:0 18px 45px rgba(0,0,0,.28)}
html[data-theme="dark"] body{background:linear-gradient(180deg,#101820 0,#151e27 460px);color:var(--ink)}
html[data-theme="dark"] .topbar{background:rgba(20,29,38,.94);border-color:var(--line)}
html[data-theme="dark"] .print-button{background:#222e3a;border-color:#465566;color:var(--ink)}
html[data-theme="dark"] .print-button:hover{border-color:var(--orange);color:#ffb087}
html[data-theme="dark"] .report-hero{background:#0d151d}
html[data-theme="dark"] .score-ring{background:#13202a;border-color:#2f3d49;border-top-color:var(--coral);border-right-color:var(--orange)}
html[data-theme="dark"] .event-pin span{border-color:var(--surface)}
html[data-theme="dark"] .event-detail,html[data-theme="dark"] .empty-note,html[data-theme="dark"] .device-grid article,html[data-theme="dark"] .system-load-summary{background:#151f29;border-color:#344252}
html[data-theme="dark"] .fact-list>div,html[data-theme="dark"] .connection-list>div{border-color:#303d4a}
html[data-theme="dark"] .status-pill{background:#2b3744;color:#b7c2ce}
html[data-theme="dark"] .status-pill.ok{background:#173d37;color:#73dac7}
html[data-theme="dark"] .error-state>span{background:#4a2727;color:#ff8b8b}
html[data-theme="dark"] .technical-panel summary,html[data-theme="dark"] .event-detail strong,html[data-theme="dark"] .system-load-summary strong{color:var(--ink)}
html[data-theme="light"] .landing-body{background:linear-gradient(180deg,#eef1f4 0,#f7f8fa 460px);color:var(--ink)}
html[data-theme="light"] .landing-copy,html[data-theme="light"] .privacy-note,html[data-theme="light"] .service-grid p{color:var(--muted)}
html[data-theme="light"] .service-grid article{background:var(--surface);border-color:var(--line)}
.theme-floating{position:fixed;right:22px;top:20px;z-index:20}
@media(max-width:620px){.theme-floating{right:14px;top:12px}}
@media print{html[data-theme="dark"] body{background:#fff;color:#14202b}.theme-floating{display:none!important}}
