:root{--focus:#6685a8}#theme-toggle{white-space:nowrap}input,select{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
:root[data-theme="dark"]{color:#e2e7ec;background:#10151b;color-scheme:dark;--focus:#90b2d9}
[data-theme="dark"] header{background:#0b0f14}
[data-theme="dark"] button,[data-theme="dark"] select,[data-theme="dark"] input:not([type="range"]):not([type="checkbox"]){background:#202933;color:#e2e7ec;border-color:#404c5a}
[data-theme="dark"] button:hover{background:#2a3643}
[data-theme="dark"] header button{background:transparent;border-color:#525c67;color:#e2e7ec}
[data-theme="dark"] p,[data-theme="dark"] .muted,[data-theme="dark"] .hour,[data-theme="dark"] .mapfoot,[data-theme="dark"] nav span,[data-theme="dark"] .outlook-meta,[data-theme="dark"] .env-source span,[data-theme="dark"] .specialist-grid small{color:#a8b2bd}
[data-theme="dark"] .eyebrow{color:#9daec2}
[data-theme="dark"] .mapcard,[data-theme="dark"] .panel,[data-theme="dark"] .day,[data-theme="dark"] .env-chart-card,[data-theme="dark"] .env-empty,[data-theme="dark"] .specialist,[data-theme="dark"] .methodology,[data-theme="dark"] dialog{background:#182029;color:#e2e7ec;border-color:#36414d}
[data-theme="dark"] .searchbar{background:#202933;border-color:#404c5a}
[data-theme="dark"] .searchbar button{background:#36495e}
[data-theme="dark"] .location>button{background:none;color:#94b2d5}
[data-theme="dark"] nav,[data-theme="dark"] footer,[data-theme="dark"] .storm-environment,[data-theme="dark"] .outlook-toolbar,[data-theme="dark"] .outlook-legend,[data-theme="dark"] .env-table td,[data-theme="dark"] .env-table th{border-color:#36414d}
[data-theme="dark"] nav button{background:none;color:#a8b2bd}
[data-theme="dark"] nav button.active{color:#9abce3;border-bottom-color:#8baed5}
[data-theme="dark"] .pill,[data-theme="dark"] .daytabs,[data-theme="dark"] #env-status,[data-theme="dark"] .specialist-grid a{background:#26313e;color:#d2dbe6}
[data-theme="dark"] .daytabs button{background:none}
[data-theme="dark"] .daytabs button.selected{background:#43576e;color:#fff}
[data-theme="dark"] .alert,[data-theme="dark"] .alertgrid .alert{background:#1d3027;border-color:#40513f}
[data-theme="dark"] .alert button{background:none;color:#edf0df}
[data-theme="dark"] .alert.severe{border-left-color:#ef9e68}
[data-theme="dark"] .alert.extreme{border-left-color:#f68191}
[data-theme="dark"] .empty,[data-theme="dark"] .hour b,[data-theme="dark"] .env-chart-head output{color:#b5cae3}
[data-theme="dark"] .env-source{background:#1b242e;border-color:#475463;border-left-color:#8aa5c4}
[data-theme="dark"] .outlook-legend label{border-color:#465260}
[data-theme="dark"] .filters a,[data-theme="dark"] footer>a{color:#a7bcd5}
[data-theme="dark"] .safety{color:#a2aab4}
[data-theme="dark"] #status,[data-theme="dark"] .risk-stale,[data-theme="dark"] #sounding-quality{color:#ecc38e}
[data-theme="dark"] .sounding-panel{background:#29291f;border-color:#5b5740}
[data-theme="dark"] .sounding-meta{background:#363326;color:#e2d8bb}
[data-theme="dark"] .sounding-actions a{color:#e3c698}
[data-theme="dark"] .sounding-actions button:first-child{background:#36485c;color:#fff}
[data-theme="dark"] #env-hour,[data-theme="dark"] #sounding-hour,[data-theme="dark"] #sounding-progress{accent-color:#a4bbd5}
[data-theme="dark"] #map,[data-theme="dark"] #spc-map{background:#262f3a}
/* Keep warning/probability polygon colors intact; adjust only basemap tiles. */
[data-theme="dark"] .satellite-basemap{filter:brightness(.85) saturate(.9)}
[data-theme="dark"] .leaflet-bar a,[data-theme="dark"] .leaflet-popup-content-wrapper,[data-theme="dark"] .leaflet-popup-tip,[data-theme="dark"] .leaflet-tooltip{background:#202933;color:#e5e9ee;border-color:#5a6470}
[data-theme="dark"] .leaflet-bar a:hover{background:#354251}
[data-theme="dark"] .leaflet-control-attribution{background:#141b24eb;color:#bcc4cd}
[data-theme="dark"] .leaflet-control-attribution a{color:#bacbdf}
[data-theme="dark"] .leaflet-container a.leaflet-popup-close-button{color:#d1d9e2}
[data-theme="dark"] .modebar-btn path{fill:#bac3ce!important}
@media(max-width:800px){header{gap:8px}.brand{gap:6px;font-size:20px}.brand .logo{font-size:31px}header button{padding:8px;font-size:11px}header #theme-toggle{margin-left:auto}header #refresh{margin-left:0}}
@media(max-width:360px){header .brand{font-size:17px}header .brand .logo{font-size:25px}header button{font-size:10px;padding:7px 5px}}

[data-theme="dark"] .location-results{background:#1b232d;border-color:#425060}[data-theme="dark"] .location-results button{border-top-color:#394450}[data-theme="dark"] .location-results-title,[data-theme="dark"] .location-credit,[data-theme="dark"] .location-help,[data-theme="dark"] .location-results button span{color:#b1bbc7}

[data-theme="dark"] .today-neutral{background:#1c2530;color:#d3dce7;border-color:#485665}[data-theme="dark"] .today-green{background:#173c29;color:#d1f0d8;border-color:#4c9c67}[data-theme="dark"] .today-yellow{background:#493d13;color:#fff0b4;border-color:#d5af45}[data-theme="dark"] .today-red{background:#471f20;color:#ffe0da;border-color:#ed8277}[data-theme="dark"] .today-banner p{color:inherit}[data-theme="dark"] .today-red .today-symbol{color:#ffab9f}[data-theme="dark"] .today-red .today-action{border-color:#a25c55}[data-theme="dark"] .today-red .today-level{background:#b62c2e;color:#fff}[data-theme="dark"] .top-alerts{border-left-color:#f0a16d}

[data-theme="dark"] .graph-peak{background:#252f3b;border-color:#4b5765;color:#d1ddeb}[data-theme="dark"] .graph-peak small,[data-theme="dark"] .graph-peak-missing{color:#b4c9ae}
