:root{--bg:#0e1113;--panel:#151a1d;--line:#2a3236;--text:#edf0ee;--muted:#96a3a6;--mint:#a7dfca;--orange:#d8ad77;--blue:#8daecb}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:14px Inter,system-ui,sans-serif}button,select{font:inherit;color:inherit}button{cursor:pointer}button:focus-visible,select:focus-visible{outline:2px solid var(--mint);outline-offset:3px}a{color:inherit}main{max-width:1600px;margin:auto;padding:27px 36px 18px}.heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:23px}h1{font-size:29px;letter-spacing:-1px;margin:0 0 8px;font-weight:600}.intro{margin:0;color:var(--muted);font-size:13px}.source{text-align:right;font-size:12px;line-height:1.9;color:var(--muted)}.source b{font-weight:500;color:var(--text)}.toolbar{display:flex;align-items:center;gap:10px;margin-bottom:18px;flex-wrap:wrap}.segmented{display:flex;border:1px solid var(--line);border-radius:6px;overflow:hidden}.segmented button{background:transparent;border:0;padding:10px 15px;color:var(--muted)}.segmented button.active{background:#283b35;color:#c5efdf}.date{margin-left:10px;font-size:13px;font-variant-numeric:tabular-nums}.separator{height:22px;width:1px;background:var(--line);margin:0 8px}select,.plain{background:var(--panel);border:1px solid var(--line);border-radius:6px;padding:9px 12px}.plain{color:var(--muted)}.export{margin-left:auto}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 310px;border:1px solid var(--line);border-radius:9px;overflow:hidden}.map-wrap{position:relative;min-width:0}#map{height:452px;background:#182024}.map-title{position:absolute;z-index:2;top:16px;left:16px;padding:11px 14px;background:#131a1ef0;border:1px solid #334044;border-radius:5px;font-size:12px;line-height:1.65;max-width:calc(100% - 70px)}.map-title b{font-size:13px;font-weight:500}.map-title span{color:var(--muted)}.map-tools{position:absolute;z-index:2;bottom:42px;left:16px;display:flex;gap:6px}.map-tools button{background:#151d21f5;border:1px solid #475658;border-radius:4px;font-size:11px;padding:8px 11px}.map-tools .chosen{color:var(--mint);border-color:#7da993}.legend{display:flex;gap:20px;align-items:center;min-height:41px;padding:10px 17px;background:#141b1e;color:var(--muted);font-size:11px;flex-wrap:wrap}.legend span{display:flex;align-items:center;gap:7px}.dot{height:7px;width:7px;border-radius:50%;display:inline-block}.boundary{width:18px;border-top:2px solid var(--mint)}.aside{border-left:1px solid var(--line);background:var(--panel);padding:23px 23px 15px}.eyebrow{font-size:11px;letter-spacing:1.2px;text-transform:uppercase;color:var(--muted)}.count{font-size:44px;font-weight:500;letter-spacing:-2px;margin:9px 0 1px;font-variant-numeric:tabular-nums}.count-caption{font-size:13px}.note{color:var(--muted);font-size:11px;line-height:1.65;margin:10px 0 0}.aside hr{border:0;border-top:1px solid var(--line);margin:20px 0}.aside h2{font-size:14px;font-weight:500;margin:0 0 5px}.distance-row{display:flex;align-items:center;justify-content:space-between;width:100%;border:0;border-radius:3px;background:transparent;padding:11px 0 6px;font-size:12px}.distance-row:hover{color:var(--mint)}.distance-row.active{color:var(--mint)}.rail{height:3px;background:#293235;border-radius:3px}.rail i{display:block;height:3px;background:#8fb7a8;border-radius:3px}.type-list{display:flex;justify-content:space-between;gap:12px;margin-top:15px;font-size:11px;color:var(--muted)}.type-list b{font-size:16px;color:var(--text);font-weight:500;display:block;margin-top:6px}.time{margin-top:18px;border:1px solid var(--line);border-radius:8px;padding:17px 20px 10px}.time-heading{display:flex;justify-content:space-between;align-items:baseline;gap:12px}.time h2{font-size:14px;font-weight:500;margin:0}.time p{font-size:11px;color:var(--muted);margin:0}.chart{display:flex;align-items:end;gap:16px;height:123px;margin-top:10px}.day{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:end;height:100%;background:none;border:0;color:var(--muted);padding:0;gap:6px;font-size:11px}.day .bar{width:100%;max-width:105px;background:#52776b;border-radius:3px 3px 0 0;min-height:2px}.day .val{color:#bbc7c4;font-size:11px}.day:hover .bar,.day.active .bar{background:var(--mint)}.day.active{color:var(--mint)}.bottom{display:flex;justify-content:space-between;gap:20px;margin:14px 1px 0;color:var(--muted);font-size:11px;line-height:1.6}.bottom details{max-width:700px}.bottom summary{cursor:pointer;color:#bdcac6}.maplibregl-popup-content{background:#1b2428;color:var(--text);padding:14px;font:12px Inter,sans-serif;line-height:1.7}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{border-top-color:#1b2428}.maplibregl-ctrl-attrib{font-size:9px!important}.maplibregl-ctrl-group{filter:invert(.85)}.mobile-source{display:none}#error{color:#edb89b}
.map-wrap{display:flex;flex-direction:column}#map{flex:1;min-height:452px}.map-tools{bottom:56px}
@media(max-width:800px){#map{min-height:375px}.map-tools{bottom:63px}}
@media(min-width:1500px){#map{height:510px}}
@media(max-width:800px){main{padding:20px 16px}.heading{margin-bottom:17px}h1{font-size:24px}.intro{font-size:12px;line-height:1.6;max-width:330px}.source{display:none}.toolbar{gap:8px;margin-bottom:12px}.separator{display:none}.segmented button{padding:9px 12px;font-size:12px}.date{margin-left:auto;font-size:11px}.toolbar select{font-size:12px;max-width:180px}.export{font-size:12px}.workspace{grid-template-columns:1fr}#map{height:375px}.map-title{top:10px;left:10px;padding:8px 10px;font-size:10px}.map-title b{font-size:11px}.legend{font-size:10px;gap:10px}.aside{border-left:0;border-top:1px solid var(--line);padding:17px;display:grid;grid-template-columns:1fr 1fr;gap:14px}.aside hr{display:none}.aside .distance-section{grid-row:span 2}.count{font-size:34px}.count-caption{font-size:12px}.aside .types{grid-column:1}.aside h2{font-size:12px}.type-list{flex-wrap:wrap;margin-top:9px}.note{font-size:10px}.time{padding:14px 12px}.time-heading{display:block}.time-heading p{margin-top:6px}.chart{gap:8px;height:110px}.bottom{display:block}.bottom>span{display:block;margin-top:9px}.map-tools{left:10px}.eyebrow{font-size:9px}}
.range-form{display:flex;gap:8px;align-items:center}.range-form label{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--muted)}.range-form input{font:inherit;color:var(--text);color-scheme:dark;background:var(--panel);border:1px solid var(--line);padding:8px;border-radius:5px;min-width:0}.range-form button{padding:9px 12px}.range-form input:focus-visible{outline:2px solid var(--mint)}
@media(max-width:800px){.range-form{order:3;width:100%;flex-wrap:wrap}.range-form label{flex:1;min-width:0;gap:4px}.range-form input{width:100%;font-size:11px;padding:8px 3px}.range-form button{font-size:11px;padding:9px}}
.type-buttons{display:flex;gap:6px;flex-wrap:wrap}.type-buttons button{border:1px solid var(--line);background:var(--panel);color:var(--muted);border-radius:5px;padding:9px 12px;font-size:12px}.type-buttons button[aria-pressed=true]{border-color:#6c9d89;background:#233a31;color:var(--mint)}
.history-panel{border:1px solid var(--line);border-radius:8px;padding:17px 20px;margin:16px 0;background:var(--panel)}.history-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.history-controls label{font-size:12px;color:var(--muted)}.history-controls input,.history-controls select{color-scheme:dark;background:var(--bg);color:var(--text);border:1px solid var(--line);border-radius:5px;padding:7px;font:inherit}.history-time{font-size:20px;font-variant-numeric:tabular-nums;color:var(--mint)}#history-bars{height:80px;display:flex;gap:0;margin-top:15px;align-items:end}#history-bars .history-bar{flex:1;min-width:0;height:var(--height);padding:0;border:0;border-bottom:6px solid #48534f;background:#719f8b;position:relative}#history-bars .history-bar[data-missing=true]{background:repeating-linear-gradient(45deg,#303a3e 0 2px,#182024 2px 4px);height:65px}#history-bars .history-bar[data-rcb=ALARM]{border-bottom-color:#f07878}#history-bars .history-bar[data-rcb=OBSERWACJA]{border-bottom-color:#e3b56b}#history-bars .history-bar[data-rcb=ODWOLANO]{border-bottom-color:#9bc7b4}#history-bars .history-bar[data-rcb=unknown]{border-bottom-color:#8b9296}#history-bars .history-bar.selected{outline:2px solid #fff;z-index:1}#history-slider{width:100%;accent-color:var(--mint);margin:10px 0}.history-hours{display:flex;justify-content:space-between;font-size:10px;color:var(--muted)}.history-info{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:11px;line-height:1.7;color:var(--muted);margin-top:12px}#history-rcb[data-state=OBSERWACJA]{color:#e3b56b}#history-rcb[data-state=ALARM]{color:#f07878}.history-legend{font-size:11px;color:var(--muted);margin-top:10px;line-height:1.7}[hidden]{display:none!important}
@media(max-width:800px){.type-buttons{width:100%}.type-buttons button{flex:1;padding:9px 6px}.history-panel{padding:14px 12px}.history-controls{gap:8px}.history-controls input{max-width:140px}.history-info{display:block}}
#history-bars .history-bar[data-rcb=ALARM],#history-bars .history-bar[data-rcb=OBSERWACJA]{border-bottom-color:#f0cf63}#history-bars .history-bar[data-rcb=ALARM]::before,#history-bars .history-bar[data-rcb=OBSERWACJA]::before{content:"";position:absolute;bottom:0;left:0;right:0;height:80px;background:#f0cf6338;pointer-events:none}.rcb-summary{margin-top:14px;padding:12px 14px;border:1px solid #63572f;border-radius:5px;color:#f0cf63;font-size:13px;line-height:1.8}.rcb-summary small{display:block;color:var(--muted);font-size:11px}
.history-legend ul{display:flex;flex-wrap:wrap;gap:8px 18px;list-style:none;margin:0;padding:0}.history-legend li{display:flex;align-items:center;gap:7px}.history-key{display:inline-block;width:18px;height:12px;flex:none;border:1px solid var(--line);background:#719f8b}.history-key.missing{background:repeating-linear-gradient(45deg,#303a3e 0 2px,#182024 2px 4px)}.history-key.alert{background:#f0cf63}.history-key.cleared{background:#9bc7b4}.history-key.calm{background:#48534f}.history-key.unknown{background:#8b9296}.history-legend p{margin:7px 0 0}
.chart{height:162px;overflow-x:auto;padding-bottom:4px}.day{min-width:54px;flex-shrink:0}.day .bar{flex-shrink:0}.day-rcb{width:100%;max-width:105px;min-height:25px;display:flex;align-items:center;justify-content:center;border-top:3px solid var(--line);font-variant-numeric:tabular-nums;white-space:nowrap;font-size:11px}.day-rcb.has-alert{color:#f0cf63;border-color:#f0cf63;background:#f0cf6314}.time .daily-rcb-note{margin-top:12px;line-height:1.7}.daily-rcb-note strong{color:#f0cf63;font-weight:500}
.skip{position:absolute;left:16px;top:-60px;z-index:20;background:var(--panel);padding:12px}.skip:focus{top:10px}button:disabled{opacity:.5;cursor:default}
