:root{color-scheme:dark;--bg:#121a1e;--panel:#1c282d;--border:#334349;--text:#edf3f2;--muted:#b2c0c0;--mint:#a4dbc1}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:15px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif}body:not(.admin-body){height:100dvh;display:flex;flex-direction:column}.header{height:64px;padding:0 24px;display:flex;align-items:center;gap:24px;background:#192328;border-bottom:1px solid var(--border);flex:none;z-index:1000}.brand{display:flex;align-items:center;gap:9px;color:var(--text);font-size:19px;line-height:1;text-decoration:none;font-weight:800;letter-spacing:-.6px;white-space:nowrap}.brand span span{color:var(--mint)}.brand small{display:block;font-size:8px;letter-spacing:1.1px;color:var(--muted);margin-top:4px}.brand-mark{width:37px;height:37px;display:grid;place-items:center;background:#29463b;border:1px solid #466959;color:#a6dec0;border-radius:9px;font-size:22px}.header-center{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted);border-left:1px solid var(--border);padding-left:24px}.light{width:8px;height:8px;border-radius:50%;background:#b0bcb5}.light.ok{background:#86ca9f}.light.bad{background:#f59487}.source{color:#d2e3de;font-size:13px;text-decoration:none;margin-left:auto;white-space:nowrap}.source:hover{text-decoration:underline}body:not(.admin-body)>main{position:relative;flex:1;min-height:0}#map{position:absolute;inset:0;background:#172024}.map-card{position:absolute;top:16px;left:16px;z-index:500;background:rgba(27,39,43,.96);border:1px solid #3b4d50;border-radius:10px;padding:15px 16px;max-width:280px;box-shadow:0 8px 30px #0004}.card-title{font-size:10px;letter-spacing:1.4px;color:#9fd7b9;font-weight:800}.map-card strong{display:block;font-size:18px;margin:4px 0 10px}.legend{display:grid;grid-template-columns:1fr 1fr;gap:8px 14px;font-size:12px;color:#dce8e4}.legend span{white-space:nowrap}.legend i{width:9px;height:9px;border-radius:50%;display:inline-block;margin-right:7px}.red{background:#e76b67}.yellow{background:#e2b64c}.drone{background:#ffa737}.manual{background:#80c9f0}.map-card small{display:block;font-size:11px;color:#b3c6c0;margin-top:9px;line-height:1.3}.map-error{position:absolute;top:16px;right:16px;z-index:500;background:#542d2b;border:1px solid #b56c61;border-radius:8px;padding:10px 14px;max-width:300px;font-size:13px}footer{padding:8px 24px;background:#202b2c;color:#d5ddd4;font-size:12px;line-height:1.4;border-top:1px solid var(--border);flex:none}.leaflet-container{background:#172024!important;font:14px system-ui,sans-serif}.leaflet-control-attribution{font-size:10px!important}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#1d2a2e;color:#edf3f2}.leaflet-popup-content{line-height:1.45}.leaflet-popup-content b{display:block;margin-bottom:4px}.marker-icon{border-radius:50%;width:30px;height:30px;display:grid;place-items:center;font-size:15px;font-weight:800;color:#191e20;background:#ffc05c;border:2px solid #fff3;box-shadow:0 2px 8px #0009}.marker-icon.manual-pin{background:#81cef6;color:#102a36}.admin-main{max-width:1400px;margin:0 auto;padding:34px 28px}.panel{background:var(--panel);border:1px solid var(--border);border-radius:10px;padding:24px}.login-panel{max-width:410px;margin:12vh auto 0}h1{font-size:28px;line-height:1.2;letter-spacing:-.7px;margin:8px 0}h2{font-size:17px;line-height:1.2;margin:0 0 10px}p{color:var(--muted);font-size:14px}label{display:block;font-size:13px;font-weight:700;margin:16px 0 0}input,select{display:block;width:100%;min-height:45px;margin-top:6px;padding:10px 12px;border:1px solid #4b5d60;background:#142025;border-radius:7px;color:#f5f8f7;font:inherit}button{min-height:44px;border:0;border-radius:7px;font:700 14px system-ui;cursor:pointer}.primary{width:100%;background:#a3daba;color:#10261a;margin-top:18px}.primary:disabled{opacity:.4;cursor:not-allowed}.secondary,.danger-button{padding:9px 14px;background:#334449;color:#f3f7f5}.danger-button{color:#ffc5bd;font-size:12px;min-height:38px}.admin-intro{display:flex;justify-content:space-between;gap:20px;align-items:start;margin-bottom:24px}.admin-intro p{max-width:600px}.admin-layout{display:grid;grid-template-columns:1fr 360px;gap:16px}.admin-layout #admin-map{height:calc(100dvh - 235px);min-height:450px;border-radius:10px;border:1px solid var(--border)}.admin-warning{margin-top:18px;padding:12px;background:#453d29;color:#efdfba;border:1px solid #776441;border-radius:7px;font-size:12px}hr{border:0;border-top:1px solid var(--border);margin:20px 0}.list-header{display:flex;justify-content:space-between;align-items:center}.list-header h2{margin:0}.hint{font-size:12px}.mark-row{padding:12px 0;border-top:1px solid var(--border);display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:12px}.mark-row button{padding:8px 10px;min-height:38px;background:#344549;color:#f6ccc4}.admin-body [role=status],.admin-body [role=alert]{color:#f5c182}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #7ec3ff;outline-offset:2px}@media(max-width:700px){.header{padding:0 14px;gap:12px;height:58px}.header-center{border:0;padding:0;font-size:11px}.header-center .light{display:none}.source{font-size:12px}.map-card{top:10px;left:10px;padding:11px;max-width:245px}.map-card strong{font-size:16px;margin-bottom:8px}.legend{font-size:11px;gap:5px 8px}.map-card small{font-size:10px;margin-top:5px}.map-error{top:auto;bottom:85px;right:10px;max-width:270px}body:not(.admin-body) .leaflet-top.leaflet-left{top:145px}footer{font-size:11px;padding:7px 14px}.admin-main{padding:24px 14px}.admin-layout{grid-template-columns:1fr}.admin-layout #admin-map{height:48vh;min-height:300px}.panel{padding:18px}.admin-intro{display:block}.admin-intro .secondary{margin-top:5px}.login-panel{margin-top:8vh}}
.leaflet-tile-pane{filter:grayscale(1) invert(1) brightness(.65) contrast(.9)}

.legend .legend-wide{grid-column:1/-1}.legend .manual-dash{width:13px;height:10px;border:2px dashed #ffdc64;border-radius:2px;vertical-align:-1px}.district-row{padding:10px 0;border-top:1px solid var(--border);display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:12px}.district-row button{padding:8px 10px;min-height:38px;background:#344549;color:#f6ccc4}.district-row span{line-height:1.4}.district-row strong{display:block;font-size:12px}#district-list{margin-top:10px}
