:root { --night:#071217; --panel:rgba(8,23,29,.88); --line:rgba(181,221,225,.16); --text:#ecf9f7; --muted:#93aaad; --lime:#bdea55; --orange:#ff8b3d; }
* { box-sizing:border-box; }
html,body,.radar-shell,#map { width:100%; height:100%; margin:0; }
body { overflow:hidden; background:var(--night); color:var(--text); font-family:'Manrope',system-ui,sans-serif; }
#map { position:absolute; inset:0; background:#0b171c; }
body[data-map-style=dark] #map .leaflet-tile-pane { filter:invert(94%) hue-rotate(155deg) brightness(34%) contrast(118%) saturate(62%); }
body[data-map-style=light] #map .leaflet-tile-pane { filter:none; }
body[data-map-style=light] #map::after { background:linear-gradient(90deg,rgba(3,13,17,.12),transparent 42%); }
#map::after { content:""; pointer-events:none; position:absolute; z-index:400; inset:0; background:radial-gradient(circle at 50% 45%,transparent 35%,rgba(2,9,12,.28) 100%); }
.glass { position:absolute; z-index:500; border:1px solid var(--line); background:var(--panel); box-shadow:0 18px 48px rgba(0,0,0,.28); backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px); }
.topbar { top:14px; left:18px; right:18px; height:60px; padding:0 16px; display:flex; align-items:center; justify-content:space-between; border-radius:14px; }
.brand { display:flex; align-items:center; gap:12px; color:inherit; text-decoration:none; }
.brand-bolt { width:34px; height:34px; display:grid; place-items:center; border-radius:10px; background:var(--lime); color:#102017; font-size:24px; font-weight:800; box-shadow:0 0 24px rgba(189,234,85,.24); }
.brand-bolt { overflow:hidden; }
.brand-bolt img { width:100%; height:100%; display:block; object-fit:cover; }
.brand strong,.brand small { display:block; }
.brand strong { font-size:16px; letter-spacing:-.02em; }
.brand small { margin-top:2px; color:var(--muted); font:400 10px 'DM Mono'; text-transform:uppercase; letter-spacing:.08em; }
.connection { display:flex; align-items:center; gap:9px; color:#aec0c2; font:500 11px 'DM Mono'; text-transform:uppercase; letter-spacing:.06em; }
.header-button { width:35px; height:35px; margin-left:7px; border:1px solid var(--line); border-radius:10px; background:rgba(255,255,255,.04); color:var(--text); cursor:pointer; font-size:16px; }
.header-button:hover { border-color:rgba(189,234,85,.48); color:var(--lime); }
.station-button { display:flex; align-items:center; gap:7px; margin-left:8px; padding:9px 11px; border:1px solid var(--line); border-radius:10px; background:rgba(255,255,255,.04); color:var(--text); font:700 10px 'Manrope'; cursor:pointer; text-transform:none; letter-spacing:0; }
.station-led { width:7px; height:7px; border-radius:50%; background:var(--lime); box-shadow:0 0 9px var(--lime); }
.pulse { width:8px; height:8px; border-radius:50%; background:#d55f5f; }
.pulse.online { background:var(--lime); box-shadow:0 0 0 5px rgba(189,234,85,.1),0 0 15px var(--lime); animation:pulse 2s infinite; }
.stats { top:88px; left:18px; width:280px; padding:18px; border-radius:14px; }
.panel-titlebar { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.panel-titlebar .kicker { margin-bottom:0; }
.panel-summary { display:none; margin-top:4px; color:var(--muted); font-size:10px; }.panel-summary strong { color:inherit; font:600 12px 'DM Mono'; }
.collapse-button { width:30px; height:30px; flex:none; border:1px solid var(--line); border-radius:9px; background:rgba(255,255,255,.04); color:inherit; cursor:pointer; font-size:15px; line-height:1; }
.collapsible-panel .collapsible-body { opacity:1; transition:opacity .16s ease; }
.collapsible-panel.collapsed .collapsible-body { display:none; opacity:0; }
.stats.collapsed { width:205px; padding:13px 14px; }
.stats.collapsed .panel-summary { display:block; }
.kicker { margin:0 0 11px; color:var(--lime); font:500 9px 'DM Mono'; letter-spacing:.16em; }
.surface-titlebar { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:4px; }
.surface-titlebar .kicker { margin-bottom:4px; }
.surface-titlebar > div > strong { display:block; font-size:12px; line-height:1.35; }
.surface-close { position:static; flex:0 0 auto; border:1px solid var(--line); border-radius:10px; background:rgba(255,255,255,.04); }
.stat-main { padding-bottom:19px; border-bottom:1px solid var(--line); }
.stat-main strong { display:block; font:500 50px/1 'DM Mono'; letter-spacing:-.08em; }
.stat-main span { display:block; margin-top:8px; color:var(--muted); font-size:12px; }
.stat-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; padding:18px 0; border-bottom:1px solid var(--line); }
.stat-grid span,.source-row span { display:block; color:var(--muted); font-size:10px; }
.stat-grid strong,.source-row strong { display:block; margin-top:5px; font:500 11px 'DM Mono'; }
.stat-grid strong.is-live-now { color:#fff5a7; text-shadow:0 0 10px rgba(245,213,71,.65); }
.stat-grid strong.is-live-now::before { content:""; display:inline-block; width:5px; height:5px; margin:0 6px 1px 0; border-radius:50%; background:#fff36b; box-shadow:0 0 0 4px rgba(255,243,107,.12),0 0 9px #fff36b; animation:liveBeat 1.15s ease-out infinite; }
.source-row { display:flex; justify-content:space-between; align-items:end; padding-top:17px; }
.source-row strong { color:var(--lime); }
.timeline { left:18px; bottom:18px; width:360px; padding:17px 18px 15px; border-radius:14px; }
.timeline-heading { display:flex; justify-content:space-between; align-items:center; }
.timeline-heading .kicker { margin-bottom:5px; }
.timeline-heading strong { font-size:13px; }
.panel-controls { display:flex; gap:7px; }
.timeline.collapsed { width:290px; padding:12px 14px; }
.timeline.collapsed .kicker { display:none; }
.timeline-mode { display:flex; gap:4px; margin-top:15px; padding:3px; border-radius:9px; background:rgba(255,255,255,.045); }
.timeline-mode button { flex:1; padding:7px 9px; border:0; border-radius:7px; background:transparent; color:var(--muted); font:600 9px 'Manrope'; cursor:pointer; }
.timeline-mode button.active { background:rgba(242,107,33,.16); color:#ff9b62; }
.timeline-mode #playback-button { flex:0 0 32px; color:inherit; }
.playback-control { margin-top:12px; padding:10px; border:1px solid var(--line); border-radius:10px; }
.playback-control>div { display:flex; justify-content:space-between; align-items:center; }.playback-control span { font:600 11px 'DM Mono'; }.playback-control small { color:var(--muted); font-size:7px; }
.playback-control input[type=range] { margin:10px 0 0; }
.playback-sources { margin-top:7px; padding-top:7px; border-top:1px solid var(--line); color:var(--muted); }
.playback-sources span { font:500 7px 'DM Mono'; }
.round-button { width:36px; height:36px; border:1px solid var(--line); border-radius:10px; background:rgba(255,255,255,.04); color:var(--text); font-size:21px; cursor:pointer; }
input[type=range] { width:100%; margin:20px 0 2px; accent-color:var(--lime); cursor:pointer; }
.range-labels { display:flex; justify-content:space-between; color:var(--muted); font:400 9px 'DM Mono'; }
.legend { display:flex; gap:14px; margin-top:16px; padding-top:14px; border-top:1px solid var(--line); color:#aabdbf; font-size:9px; }
.legend span { display:flex; align-items:center; gap:5px; }
.dot { width:7px; height:7px; border-radius:50%; display:inline-block; }
.dot.fresh { background:#f5d547; box-shadow:0 0 7px #f5d547; }.dot.recent { background:var(--orange); }.dot.old { background:#a650d1; }
.refresh-button { right:18px; top:108px; display:flex; gap:8px; align-items:center; padding:12px 15px; border-radius:12px; color:var(--text); font:600 11px 'Manrope'; cursor:pointer; }
.layers-button { right:18px; top:158px; display:flex; gap:8px; align-items:center; padding:12px 15px; border-radius:12px; color:var(--text); font:600 11px 'Manrope'; cursor:pointer; }
.layers-panel { right:18px; top:208px; width:240px; max-height:calc(100vh - 225px); overflow:auto; padding:17px; border-radius:14px; }
.layers-panel[hidden],.detail-panel[hidden],.detector-panel[hidden] { display:none; }
.layers-panel label { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:11px 0; border-top:1px solid var(--line); cursor:pointer; }
.layers-panel label span strong,.layers-panel label span small { display:block; }
.layers-panel label span strong { font-size:11px; }.layers-panel label span small { margin-top:3px; color:var(--muted); font-size:8px; }
.layers-panel input { width:17px; height:17px; accent-color:var(--lime); }
.detail-panel { top:108px; left:316px; width:270px; padding:20px; border-radius:16px; }
.detail-close { position:absolute; top:10px; right:12px; border:0; background:transparent; color:var(--muted); font-size:23px; cursor:pointer; }
.detail-panel h2 { margin:0 0 16px; font-size:16px; }
.detail-loading { color:var(--muted); font-size:11px; }
.detail-primary { padding:8px 0 17px; border-bottom:1px solid var(--line); }
.detail-primary strong { display:block; font:500 32px 'DM Mono'; color:var(--lime); }.detail-primary span { color:var(--muted); font-size:10px; }
.detail-panel dl { display:grid; grid-template-columns:1fr 1fr; gap:13px; margin:16px 0; }
.detail-panel dl div { min-width:0; }.detail-panel dt { color:var(--muted); font-size:8px; }.detail-panel dd { margin:4px 0 0; font:500 10px 'DM Mono'; }
.detail-network-toggle { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:11px; border:1px solid rgba(189,234,85,.2); border-radius:10px; background:rgba(189,234,85,.055); cursor:pointer; }
.detail-network-toggle strong,.detail-network-toggle small { display:block; }
.detail-network-toggle strong { font-size:9px; }.detail-network-toggle small { margin-top:3px; color:var(--muted); font-size:7px; }
.detail-network-toggle input { width:17px; height:17px; flex:none; accent-color:var(--lime); }
.detail-network-legend { display:flex; gap:13px; padding:10px 2px 9px; color:#98abad; font-size:7px; }
.detail-network-legend span { display:flex; align-items:center; gap:5px; }
.detail-network-legend i { width:14px; height:2px; display:inline-block; border-radius:2px; }
.detail-network-legend .network-used { background:var(--lime); box-shadow:0 0 5px rgba(189,234,85,.5); }
.detail-network-legend .network-received { background:#91a8ad; opacity:.55; }
.detail-station-list { margin:0 0 9px; padding:9px 10px; border-radius:9px; background:rgba(255,255,255,.035); }
.detail-station-list strong,.detail-station-list span { display:block; }
.detail-station-list strong { color:var(--muted); font-size:7px; }
.detail-station-list span { margin-top:4px; max-height:29px; overflow:hidden; color:#c8d7d8; font:500 7px/1.45 'DM Mono'; }
.detail-own-station { margin:0 0 9px; padding:8px 10px; border-radius:8px; background:rgba(242,107,33,.12); color:#ffad7e; font-size:8px; font-weight:700; }
.detail-own-station[hidden] { display:none; }
.detail-note { margin:0; color:#859a9d; font-size:8px; line-height:1.55; }
.detector-panel { top:108px; left:316px; width:300px; padding:20px; border-radius:16px; }
.detector-title { display:flex; align-items:center; gap:10px; margin-bottom:16px; }
.detector-title h2 { margin:0; font-size:17px; }.detector-title p { margin:4px 0 0; color:var(--muted); font-size:9px; }
.detector-status { width:11px; height:11px; flex:none; border-radius:50%; background:#dc6f60; }.detector-status.online { background:var(--lime); box-shadow:0 0 13px var(--lime); }
.detector-grid { display:grid; grid-template-columns:1fr 1fr; gap:7px; }
.detector-grid div { padding:9px; border-radius:9px; background:rgba(255,255,255,.035); }
.detector-grid span,.detector-grid strong,.detector-activity span,.detector-activity strong { display:block; }
.detector-grid span,.detector-activity span { color:var(--muted); font-size:7px; }.detector-grid strong { margin-top:4px; font:500 9px 'DM Mono'; text-transform:capitalize; }
.detector-activity { display:grid; grid-template-columns:1fr auto; gap:7px 12px; margin:14px 0; padding:12px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.detector-activity strong { text-align:right; font:500 8px 'DM Mono'; }
.detector-ranges { display:grid; grid-template-columns:repeat(3,1fr); gap:6px; margin-bottom:15px; }
.detector-ranges div { min-width:0; padding:8px; border:1px solid var(--line); border-radius:8px; }
.detector-ranges span,.detector-ranges strong,.detector-ranges small { display:block; }.detector-ranges span { color:var(--muted); font-size:7px; }.detector-ranges strong { margin:4px 0; font:500 13px 'DM Mono'; }.detector-ranges small { color:#7d9194; font-size:6px; }
.storm-legend { right:270px; top:158px; width:305px; max-height:calc(100vh - 176px); padding:16px; overflow:auto; border-radius:13px; }
.storm-legend[hidden] { display:none; }.storm-legend strong { display:block; font-size:12px; }.storm-legend p { margin:7px 0; color:var(--muted); font-size:8px; line-height:1.5; }.storm-legend small { color:#dc8a63; font-size:7px; }
.storm-legend-meta { display:flex; justify-content:space-between; gap:8px; margin:9px 0; padding-top:8px; border-top:1px solid var(--line); color:var(--muted); font:500 7px 'DM Mono'; }
.storm-actions { display:grid; grid-template-columns:1fr 1fr; gap:7px; margin:10px 0; }
.storm-actions button { min-height:34px; padding:8px 9px; border-radius:9px; cursor:pointer; font-size:9px; font-weight:700; }
.active-regions { margin:10px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.active-regions summary { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:11px 0; cursor:pointer; font-size:9px; font-weight:700; list-style:none; }
.active-regions summary::-webkit-details-marker { display:none; }
.active-regions summary span { color:var(--muted); font:500 7px 'DM Mono'; }
.active-region-list { display:grid; gap:5px; padding-bottom:10px; }
.active-region-button { display:flex; align-items:center; justify-content:space-between; gap:10px; width:100%; padding:9px; border:1px solid var(--line); border-radius:9px; background:rgba(255,255,255,.025); color:var(--text); text-align:left; cursor:pointer; }
.active-region-button strong { font:600 9px 'DM Mono'; }
.active-region-button span { color:var(--muted); font-size:7px; line-height:1.35; text-align:right; }
.activity-totals { display:grid; grid-template-columns:repeat(3,1fr); gap:5px; padding:0 0 10px; }
.activity-totals span { padding:7px; border-radius:8px; background:rgba(255,255,255,.025); color:var(--muted); font-size:6.5px; text-align:center; }
.activity-totals strong { margin-bottom:3px; color:var(--text); font:600 9px 'DM Mono'; }
.cluster-share-button { margin-top:7px; padding:7px 9px; border:1px solid #e4b38e; border-radius:8px; background:#fff4e9; color:#833c19; cursor:pointer; font-weight:700; }
.cluster-arrow-icon { border:0!important; background:transparent!important; }
.cluster-arrow-icon span { display:grid; width:32px; height:32px; place-items:center; color:var(--arrow-color); font-size:25px; line-height:1; text-shadow:0 0 4px #fff,0 0 12px var(--arrow-color); transform:rotate(var(--arrow-rotation)); }
.weather-context { right:18px; bottom:66px; width:310px; padding:19px; border-radius:16px; }
.weather-context[hidden] { display:none; }
.weather-location { display:flex; align-items:center; gap:10px; padding-bottom:13px; border-bottom:1px solid var(--line); }
.location-dot { width:10px; height:10px; flex:none; border:2px solid #fff; border-radius:50%; background:#f26b21; box-shadow:0 0 0 5px rgba(242,107,33,.12),0 0 12px rgba(242,107,33,.6); }
.weather-location strong,.weather-location small { display:block; }
.weather-location strong { font-size:12px; }.weather-location small { margin-top:3px; color:var(--muted); font:400 7px 'DM Mono'; }
.weather-loading { padding:18px 0 2px; color:var(--muted); font-size:9px; }
.extreme-summary { margin-top:12px; padding:11px; border:1px solid rgba(89,160,103,.22); border-radius:10px; background:rgba(89,160,103,.07); }
.extreme-summary>div:first-child { display:flex; align-items:center; gap:8px; }
.extreme-summary>div:first-child strong { font-size:11px; }
.extreme-status-dot { width:8px; height:8px; flex:none; border-radius:50%; background:#70bd7e; box-shadow:0 0 0 4px rgba(112,189,126,.1); }
.extreme-summary.has-extremes { border-color:rgba(242,107,33,.3); background:rgba(242,107,33,.075); }
.extreme-summary.has-extremes .extreme-status-dot { background:#f28a31; box-shadow:0 0 0 4px rgba(242,138,49,.12); }
.extreme-summary.is-high .extreme-status-dot { background:#e74b32; box-shadow:0 0 0 4px rgba(231,75,50,.12); }
.extreme-summary>small { display:block; margin-top:7px; color:var(--muted); font-size:6.5px; line-height:1.4; }
#extreme-list { display:grid; gap:5px; margin-top:8px; }
#extreme-list:empty { display:none; }
#extreme-list article { padding:7px 8px; border-left:3px solid #f28a31; border-radius:6px; background:rgba(255,255,255,.035); }
#extreme-list article[data-severity=hoog] { border-left-color:#e74b32; }
#extreme-list strong,#extreme-list span { display:block; }
#extreme-list strong { font-size:8px; }
#extreme-list span { margin-top:3px; color:var(--muted); font-size:7px; }
.weather-grid { display:grid; grid-template-columns:1fr 1fr; gap:7px; margin-top:13px; }
.weather-grid article { min-width:0; padding:10px; border:1px solid var(--line); border-radius:10px; background:rgba(255,255,255,.025); }
.weather-grid article.potential-card { grid-column:1/-1; }
.weather-grid span,.weather-grid strong,.weather-grid small { display:block; }
.weather-grid article>span { color:var(--muted); font-size:7px; }
.weather-grid strong { margin-top:5px; font:500 13px 'DM Mono'; text-transform:capitalize; }
.weather-grid small { margin-top:4px; color:#7f9699; font-size:7px; }
#weather-wind-arrow { display:inline-block; color:#f26b21; font-style:normal; transform-origin:center; }
#weather-potential[data-level=hoog] { color:#ff765b; }
#weather-potential[data-level=verhoogd] { color:#ff9b52; }
#weather-potential[data-level=beperkt] { color:#e7c24d; }
#weather-potential[data-level=laag] { color:#9dcc7c; }
.potential-meter { height:4px; margin-top:8px; overflow:hidden; border-radius:5px; background:#26383d; }
.potential-meter i { display:block; width:0; height:100%; border-radius:5px; background:linear-gradient(90deg,#8dcc78,#ffd64f,#ef684d); transition:width .35s ease; }
.projection-distance { margin-top:8px; padding:11px; border:1px solid rgba(242,107,33,.22); border-radius:10px; background:rgba(242,107,33,.055); }
.projection-distance span,.projection-distance strong,.projection-distance small { display:block; }
.projection-distance span { color:var(--muted); font-size:7px; }.projection-distance strong { margin-top:5px; font-size:12px; }.projection-distance small { margin-top:4px; color:#91a5a8; font-size:7px; line-height:1.4; }
.weather-disclaimer { margin:10px 0 0; color:#72888b; font-size:6.5px; line-height:1.45; }
.weather-disclaimer a { color:inherit; }
.refresh-button:hover,.round-button:hover { border-color:rgba(189,234,85,.48); }
.spinning { display:inline-block; animation:spin .8s linear infinite; }
.toast { position:absolute; z-index:700; left:50%; bottom:24px; transform:translate(-50%,20px); padding:11px 16px; border-radius:10px; background:#f3f7ee; color:#1b2924; font-size:12px; opacity:0; pointer-events:none; transition:.25s ease; box-shadow:0 10px 35px rgba(0,0,0,.3); }
.toast.show { opacity:1; transform:translate(-50%,0); }
.sky-flash { --flash-x:55%; --flash-y:42%; position:absolute; z-index:450; inset:0; pointer-events:none; opacity:0; background:radial-gradient(circle 280px at var(--flash-x) var(--flash-y),rgba(255,255,225,.58),rgba(255,225,130,.18) 24%,rgba(185,230,255,.06) 48%,transparent 72%); }
.sky-flash.active { animation:skyflash .65s ease-out; }
.live-strike-effect { border:0!important; background:transparent!important; pointer-events:none!important; }
.live-strike-effect span { position:absolute; display:block; pointer-events:none; }
.live-strike-ring { left:25px; top:25px; width:8px; height:8px; border:2px solid rgba(255,245,154,.95); border-radius:50%; box-shadow:0 0 9px rgba(255,231,91,.75); opacity:0; animation:strikeRing 1.55s cubic-bezier(.08,.56,.25,1) forwards; }
.live-strike-ring--two { animation-delay:.16s; }
.live-strike-core { left:24px; top:24px; width:10px; height:10px; border-radius:50%; background:#fffbd4; box-shadow:0 0 5px #fff,0 0 15px #ffe55e,0 0 28px rgba(255,139,61,.85); animation:strikeCore 1.65s ease-out forwards; }
.live-strike-bolt { left:20px; top:13px; width:18px; color:#fff; font:800 29px/1 'Manrope',sans-serif; text-align:center; text-shadow:0 0 5px #fff,0 0 13px #ffd84e,0 0 28px #ff8b3d; transform:scale(.35) rotate(-5deg); transform-origin:center; animation:strikeBolt 1.15s cubic-bezier(.13,.75,.24,1) forwards; }
.live-strike-effect--subtle .live-strike-ring--two,.live-strike-effect--subtle .live-strike-bolt { display:none; }
.live-strike-effect--subtle .live-strike-ring { animation-duration:1s; }
.live-strike-effect--subtle .live-strike-core { animation-duration:1s; box-shadow:0 0 7px #fff,0 0 14px #ffd84e; }
.station-panel { position:absolute; z-index:800; top:100px; right:18px; bottom:18px; width:min(450px,calc(100% - 36px)); overflow:auto; padding:23px; border:1px solid #2d464c; border-radius:18px; background:rgba(7,20,25,.96); color:var(--text); box-shadow:0 25px 90px #000a; backdrop-filter:blur(22px); }
.station-panel[hidden] { display:none; }
.station-panel-head { display:flex; justify-content:space-between; align-items:flex-start; }
.station-panel-head h2 { margin:0; font-size:25px; letter-spacing:-.04em; }
.station-loading { margin-top:25px; color:var(--muted); font-size:11px; }
.station-hero { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:12px; margin-top:21px; padding:18px; border:1px solid var(--line); border-radius:14px; background:linear-gradient(135deg,rgba(189,234,85,.08),rgba(255,255,255,.02)); }
.station-status-dot { width:12px; height:12px; border-radius:50%; background:#dc6f60; }.station-status-dot.online { background:var(--lime); box-shadow:0 0 15px var(--lime); }
.station-hero strong,.station-hero small { display:block; }.station-hero strong { font-size:14px; text-transform:capitalize; }.station-hero small { margin-top:4px; color:var(--muted); font-size:8px; }
.signal-count { text-align:right; }.signal-count strong { font:500 24px 'DM Mono'; color:var(--lime); }
.station-meta { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin:10px 0 25px; }
.station-meta div { min-width:0; padding:11px; border-radius:10px; background:rgba(255,255,255,.035); }
.station-meta span,.station-meta strong { display:block; }.station-meta span { color:var(--muted); font-size:7px; }.station-meta strong { margin-top:5px; overflow:hidden; text-overflow:ellipsis; font:500 9px 'DM Mono'; white-space:nowrap; }
.local-health { margin:0 0 24px; padding:17px; border:1px solid rgba(242,107,33,.25); border-radius:14px; background:linear-gradient(145deg,rgba(242,107,33,.085),rgba(255,255,255,.018)); }
.local-health-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:7px; }
.local-health-grid article { min-width:0; padding:10px; border:1px solid var(--line); border-radius:10px; background:rgba(7,18,23,.34); }
.local-health-grid span,.local-health-grid strong,.local-health-grid small { display:block; }
.local-health-grid span { color:var(--muted); font-size:7px; }
.local-health-grid strong { margin-top:6px; overflow:hidden; color:#fff5ec; font:500 12px 'DM Mono'; text-overflow:ellipsis; white-space:nowrap; }
.local-health-grid small { margin-top:4px; color:#7f9699; font-size:7px; }
.gateway-privacy { margin:11px 1px 0; color:#768c8f; font-size:6.5px; line-height:1.5; }
.panel-heading { display:flex; align-items:end; justify-content:space-between; margin-bottom:12px; }.panel-heading h3 { margin:0; font-size:15px; }.panel-heading>span { color:var(--lime); font:500 8px 'DM Mono'; text-transform:uppercase; }
.range-cards { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.range-cards article { min-width:0; padding:12px; border:1px solid var(--line); border-radius:11px; }
.range-cards article>span,.range-cards article>strong,.range-cards article>small { display:block; }.range-cards article>span { color:var(--muted); font-size:7px; }.range-cards article>strong { margin-top:7px; font:500 19px 'DM Mono'; }.range-cards article>small { color:#819598; font-size:7px; }
.meter { height:3px; margin:9px 0 7px; overflow:hidden; border-radius:5px; background:#26383d; }.meter i { display:block; height:100%; background:var(--lime); box-shadow:0 0 7px var(--lime); }
.privacy-note { margin:15px 0 0; color:#71878a; font-size:7px; line-height:1.5; }
.station-history-section { margin-top:22px; padding-top:18px; border-top:1px solid var(--line); }
.station-history-section select { padding:7px 9px; border:1px solid var(--line); border-radius:8px; background:#13272e; color:var(--text); font:500 8px 'DM Mono'; }
.station-summary-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:7px; margin-bottom:8px; }
.station-summary-grid article { min-width:0; padding:10px; border:1px solid var(--line); border-radius:10px; background:rgba(255,255,255,.025); }
.station-summary-grid span,.station-summary-grid strong,.station-summary-grid small { display:block; }
.station-summary-grid span,.station-summary-grid small { color:var(--muted); font-size:7px; }
.station-summary-grid strong { margin:5px 0 3px; font:600 14px 'DM Mono'; }
.station-meta.public-summary { grid-template-columns:1fr; }
.station-meta.public-summary div:nth-child(-n+2) { display:none; }
.history-chart-wrap { position:relative; min-height:120px; padding:8px; border:1px solid var(--line); border-radius:11px; background:rgba(255,255,255,.025); }
.history-chart-wrap canvas { display:block; width:100%; height:155px; }.history-chart-wrap p { margin:45px 20px; color:var(--muted); text-align:center; font-size:9px; line-height:1.5; }
.legacy-archive { margin-top:20px; overflow:hidden; border:1px solid rgba(242,107,33,.24); border-radius:13px; background:linear-gradient(145deg,rgba(242,107,33,.07),rgba(255,255,255,.015)); }
.legacy-archive summary { display:flex; justify-content:space-between; padding:15px 16px; cursor:pointer; font-size:10px; font-weight:700; list-style:none; }
.legacy-archive summary::-webkit-details-marker { display:none; }
.legacy-archive summary::before { content:'＋'; margin-right:9px; color:#f26b21; }
.legacy-archive[open] summary::before { content:'−'; }
.legacy-archive summary span { margin-left:auto; color:#f58a50; font:500 8px 'DM Mono'; }
.legacy-content { padding:0 14px 15px; }
.legacy-intro { margin:0 1px 12px; color:#a6b7b9; font-size:8px; line-height:1.55; }
.legacy-periods { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.legacy-periods article,.legacy-event { padding:12px; border:1px solid var(--line); border-radius:10px; background:rgba(7,18,23,.32); }
.legacy-periods span,.legacy-periods strong,.legacy-periods small,.legacy-event span,.legacy-event strong,.legacy-event small { display:block; }
.legacy-periods span,.legacy-event span { color:#f58a50; font:500 7px 'DM Mono'; text-transform:uppercase; }
.legacy-periods strong,.legacy-event strong { margin-top:7px; color:#fff5ec; font:500 17px 'DM Mono'; }
.legacy-periods small,.legacy-event small { margin-top:4px; color:#82979a; font-size:7px; line-height:1.45; }
.legacy-periods dl { margin:10px 0 0; }
.legacy-periods dl div { display:flex; justify-content:space-between; gap:8px; padding-top:5px; border-top:1px solid rgba(255,255,255,.055); }
.legacy-periods dt,.legacy-periods dd { margin:0; color:#91a3a6; font:500 7px 'DM Mono'; }
.legacy-event { margin-top:8px; border-color:rgba(242,107,33,.2); }
.legacy-note { margin:10px 1px 0; color:#70878a; font-size:6.5px; line-height:1.5; }
.leaflet-control-zoom a { background:var(--panel)!important; color:var(--text)!important; border-color:var(--line)!important; }
.leaflet-control-attribution { background:rgba(7,18,23,.65)!important; color:#819396!important; font-size:8px!important; }
.leaflet-control-attribution a { color:#a7babc!important; }
.leaflet-tooltip { background:#0c1e24; color:var(--text); border:1px solid var(--line); box-shadow:0 8px 25px #0008; font:11px 'DM Mono'; }
.leaflet-tooltip-top:before { border-top-color:#0c1e24; }
body[data-map-style=light] .glass,
body[data-map-style=light] .topbar { border-color:rgba(91,61,36,.17); background:rgba(255,251,245,.94); color:#352b25; box-shadow:0 14px 38px rgba(88,58,35,.14); }
body[data-map-style=light] .brand { color:#352b25; }
body[data-map-style=light] .brand-bolt { background:#f26b21; color:#fff; box-shadow:0 7px 18px rgba(242,107,33,.25); }
body[data-map-style=light] .brand small,
body[data-map-style=light] .connection,
body[data-map-style=light] .stat-main span,
body[data-map-style=light] .stat-grid span,
body[data-map-style=light] .source-row span,
body[data-map-style=light] .range-labels,
body[data-map-style=light] .legend { color:#76685f; }
body[data-map-style=light] .kicker,
body[data-map-style=light] .source-row strong { color:#e85e18; }
body[data-map-style=light] .pulse.online,
body[data-map-style=light] .station-led { background:#f26b21; box-shadow:0 0 0 4px rgba(242,107,33,.1),0 0 11px rgba(242,107,33,.55); }
body[data-map-style=light] .header-button,
body[data-map-style=light] .station-button,
body[data-map-style=light] .round-button,
body[data-map-style=light] .collapse-button { border-color:rgba(91,61,36,.18); background:rgba(255,255,255,.55); color:#4a3a31; }
body[data-map-style=light] input[type=range],
body[data-map-style=light] .layers-panel input { accent-color:#f26b21; }
body[data-map-style=light] .leaflet-control-zoom a { background:#fffaf4!important; color:#4a3a31!important; border-color:#e1d3c7!important; }
body[data-map-style=light] .timeline-mode { background:rgba(93,63,42,.06); }
body[data-map-style=light] .timeline-mode button.active { background:#f26b21; color:#fff; }
body[data-map-style=light] .playback-control { background:rgba(255,255,255,.4); }
body[data-map-style=light] .storm-legend small { color:#c9561c; }
body[data-map-style=light] .stat-grid strong.is-live-now { color:#d85414; text-shadow:0 0 10px rgba(242,107,33,.18); }
body[data-map-style=light] .stat-grid strong.is-live-now::before { background:#f26b21; box-shadow:0 0 0 4px rgba(242,107,33,.1),0 0 8px rgba(242,107,33,.65); }
body[data-map-style=light] .weather-grid article { background:rgba(255,255,255,.5); }
body[data-map-style=light] .potential-meter { background:#eadfd5; }
body[data-map-style=light] .projection-distance { background:rgba(242,107,33,.06); }
.settings-dialog { width:min(520px,calc(100% - 24px)); max-height:calc(100vh - 32px); padding:0; overflow:auto; border:1px solid #294147; border-radius:20px; background:#0b1a20; color:var(--text); box-shadow:0 30px 90px #000b; }
.settings-dialog::backdrop { background:rgba(2,8,10,.68); backdrop-filter:blur(5px); }
.settings-dialog form { padding:25px; }
.settings-header { display:flex; align-items:flex-start; justify-content:space-between; margin-bottom:24px; }
.settings-header h2 { margin:0; font-size:24px; letter-spacing:-.04em; }
.close-button { border:0; background:transparent; color:var(--muted); cursor:pointer; font-size:28px; line-height:1; }
.settings-dialog fieldset { margin:0 0 9px; padding:0 0 20px; border:0; border-bottom:1px solid var(--line); }
.settings-dialog legend { margin-bottom:12px; color:#bdcacc; font-size:11px; font-weight:700; }
.choice-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.choice-card { position:relative; display:flex; align-items:center; gap:11px; padding:11px; border:1px solid var(--line); border-radius:12px; cursor:pointer; }
.choice-card:has(input:checked) { border-color:var(--lime); background:rgba(189,234,85,.07); }
.choice-card input { position:absolute; opacity:0; }
.map-swatch { width:54px; height:42px; flex:none; border-radius:8px; border:1px solid #ffffff20; }
.light-map { background:linear-gradient(150deg,#d8e8d7 0 35%,#f4f1e7 35% 60%,#a9cee5 60%); }
.dark-map { background:linear-gradient(150deg,#213a36 0 35%,#152229 35% 60%,#243749 60%); }
.choice-card strong,.choice-card small,.setting-row strong,.setting-row small { display:block; }
.choice-card strong { font-size:12px; }.choice-card small { margin-top:3px; color:var(--muted); font-size:9px; line-height:1.35; }
.setting-row { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:16px 0; border-bottom:1px solid var(--line); }
.setting-row strong { font-size:12px; }.setting-row small { margin-top:4px; color:var(--muted); font-size:9px; }
.setting-row select { min-width:130px; padding:9px 10px; border:1px solid var(--line); border-radius:9px; background:#13272e; color:var(--text); font:500 10px 'DM Mono'; }
.switch-row input { width:38px; height:21px; accent-color:var(--lime); }
.settings-actions { display:flex; justify-content:space-between; gap:10px; padding-top:22px; }
.settings-actions button { padding:11px 16px; border-radius:10px; cursor:pointer; font-weight:700; }
.secondary-button { border:1px solid var(--line); background:transparent; color:#b6c6c8; }
.save-button { border:0; background:var(--lime); color:#102017; }
.install-row button { padding:9px 11px; border-radius:8px; cursor:pointer; }
.location-search-dialog { width:min(560px,calc(100% - 24px)); max-height:calc(100vh - 32px); padding:0; overflow:auto; border:1px solid var(--line); border-radius:20px; background:var(--ui-surface-solid,#0b1a20); color:var(--text); box-shadow:0 30px 90px #000b; }
.location-search-dialog::backdrop { background:rgba(2,8,10,.68); backdrop-filter:blur(5px); }
.location-search-dialog form { padding:25px; }
.search-intro { margin:-10px 0 17px; color:var(--muted); font-size:10px; line-height:1.55; }
.location-search-field { display:grid; grid-template-columns:1fr auto; gap:8px; }
.location-search-field input { min-width:0; padding:12px 13px; border:1px solid var(--line); border-radius:10px; background:var(--ui-control,#13272e); color:var(--text); font:500 12px 'Manrope'; }
.location-search-field button { min-width:88px; padding:10px 14px; border-radius:10px; cursor:pointer; font-weight:700; }
.location-search-status { min-height:18px; margin:12px 1px 8px; color:var(--muted); font-size:9px; }
.location-search-results { display:grid; gap:7px; }
.location-search-results button { display:flex; align-items:center; justify-content:space-between; gap:14px; width:100%; padding:12px; border:1px solid var(--line); border-radius:10px; background:var(--ui-card,rgba(255,255,255,.03)); color:var(--text); text-align:left; cursor:pointer; }
.location-search-results strong,.location-search-results span { display:block; }
.location-search-results strong { font-size:11px; }
.location-search-results span { color:var(--muted); font-size:9px; text-align:right; }
@keyframes pulse { 50% { opacity:.55; } } @keyframes spin { to { transform:rotate(360deg); } }
@keyframes skyflash { 0%{opacity:0} 9%{opacity:1} 18%{opacity:.2} 28%{opacity:.78} 100%{opacity:0} }
@keyframes liveBeat { 0%{transform:scale(.72);opacity:1} 75%,100%{transform:scale(1.7);opacity:0} }
@keyframes strikeRing { 0%{opacity:0;transform:scale(.2)} 9%{opacity:1} 72%{opacity:.42} 100%{opacity:0;transform:scale(6.5)} }
@keyframes strikeCore { 0%{opacity:0;transform:scale(.25)} 8%{opacity:1;transform:scale(1.75)} 18%{transform:scale(.8)} 32%{opacity:1;transform:scale(1)} 100%{opacity:0;transform:scale(.55)} }
@keyframes strikeBolt { 0%{opacity:0;transform:scale(.25) rotate(-8deg)} 7%{opacity:1;transform:scale(1.28) rotate(-3deg)} 19%{opacity:.32;transform:scale(.9) rotate(-3deg)} 28%{opacity:1} 100%{opacity:0;transform:scale(.72) rotate(-3deg)} }
@media (max-width:650px) {
  .topbar { top:10px; left:10px; right:10px; height:62px; padding:0 14px; }
  .connection span:last-child { display:none; }
  .connection>span:not(.pulse) { display:none; }
  .header-button { width:32px; height:32px; margin-left:2px; }
  .station-button { width:34px; padding:8px; font-size:0; }.station-button .station-led { margin:auto; }
  .stats { top:82px; left:10px; width:202px; padding:15px; }
  .stat-main strong { font-size:38px; }.stat-grid { gap:8px; }.stats .source-row { display:none; }
  .timeline { left:10px; right:10px; bottom:10px; width:auto; padding:15px; }
  .refresh-button { top:82px; right:10px; }.refresh-button span:last-child,.layers-button span:last-child { display:none; }
  .layers-button { top:132px; right:10px; }.layers-panel { top:181px; right:10px; }
  .storm-legend { top:auto; right:10px; left:10px; bottom:164px; width:auto; }
  .weather-context { top:82px; right:10px; bottom:auto; left:10px; width:auto; max-height:calc(100vh - 252px); overflow:auto; }
  .detail-panel { top:auto; left:10px; right:10px; bottom:170px; width:auto; max-height:47vh; overflow:auto; }
  .detector-panel { top:auto; left:10px; right:10px; bottom:170px; width:auto; max-height:47vh; overflow:auto; }
  .toast { bottom:176px; max-width:calc(100% - 30px); width:max-content; }
  .choice-grid { grid-template-columns:1fr; }
  .setting-row { align-items:flex-start; }.setting-row select { min-width:115px; }
  .station-panel { top:82px; right:10px; bottom:10px; width:calc(100% - 20px); padding:18px; }
  .station-meta,.range-cards { grid-template-columns:1fr; }
  .local-health-grid { grid-template-columns:1fr 1fr; }
  .legacy-periods { grid-template-columns:1fr; }
}
@media (max-width:430px) {
  .brand small { display:none; }
  .brand strong { font-size:14px; }
  .station-button { display:none; }
  .timeline-mode { margin-top:11px; }
  .timeline:not(.collapsed) { max-height:260px; overflow:auto; }
}
@media (prefers-reduced-motion:reduce) { * { animation:none!important; transition:none!important; } }
