:root,[data-theme=dark]{--bg: #0d1117;--surface: #161b22;--surface-2: #1c2128;--border: #262c36;--text: #e6edf3;--muted: #8b949e;--accent: #2f81f7;--map-none: #21262d;--map-stroke: #30363d;--map-yellow: #b45309;--map-red: #b91c1c;--map-partial-yellow: #6b380f;--map-partial-red: #691b1f;--perm-bg: #24181b;--perm-stripe: #53262b;--c-dir: #2ea043;--c-inh: #58a6ff;--c-yellow: #d97706;--c-red: #dc2626}[data-theme=light]{--bg: #f6f8fa;--surface: #ffffff;--surface-2: #f0f3f6;--border: #d0d7de;--text: #1f2328;--muted: #636c76;--accent: #0969da;--map-none: #e5e7eb;--map-stroke: #cbd5e1;--map-yellow: #f59e0b;--map-red: #ef4444;--map-partial-yellow: #fde68a;--map-partial-red: #fca5a5;--perm-bg: #f3e8ea;--perm-stripe: #d1a3a8;--c-dir: #1a7f37;--c-inh: #0969da;--c-yellow: #d97706;--c-red: #cf222e}*{box-sizing:border-box}body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;background:var(--bg);color:var(--text);line-height:1.45;-webkit-font-smoothing:antialiased}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-variant-numeric:tabular-nums}.topbar{height:52px;background:var(--surface);border-bottom:1px solid var(--border);padding:0 20px;display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:0;z-index:30}.brand{display:flex;align-items:center;gap:10px}.brand-title{font-size:15px;font-weight:700;letter-spacing:-.01em}.live-ind{width:8px;height:8px;border-radius:50%;display:inline-block}.live-ind.online{background:#2ea043;box-shadow:0 0 0 3px #2ea04338}.live-ind.offline{background:#d97706}.live-counters{display:flex;gap:10px;font-size:12px;color:var(--muted);padding-left:8px;border-left:1px solid var(--border)}.live-counters b{color:var(--text)}.top-nav{display:flex;align-items:center;gap:6px}.top-nav button{background:transparent;color:var(--muted);border:1px solid transparent;border-radius:6px;padding:6px 12px;font-size:13px;font-weight:600;cursor:pointer}.top-nav button:hover{color:var(--text);background:var(--surface-2)}.top-nav button.active{color:var(--text);background:var(--surface-2);border-color:var(--border)}.top-nav .theme-btn{border-color:var(--border);font-size:12px}.main-area{max-width:1600px;margin:0 auto;padding:14px 18px 36px}.map-layout{display:grid;grid-template-columns:1fr 370px;gap:14px;align-items:start}@media (max-width: 1050px){.map-layout{grid-template-columns:1fr}}.map-stage{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:12px;display:flex;flex-direction:column;gap:10px}.map-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;justify-content:space-between}.segmented{display:inline-flex;background:var(--surface-2);border:1px solid var(--border);border-radius:7px;padding:2px}.segmented button{background:transparent;color:var(--muted);border:none;border-radius:5px;padding:5px 10px;font-size:12px;font-weight:600;cursor:pointer}.segmented button.active{background:var(--surface);color:var(--text);box-shadow:0 1px 2px #0003}.segmented.small button{padding:3px 8px;font-size:11px}.city-chips{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.chips-label{font-size:11px;color:var(--muted);margin-right:2px}.city-chip{display:inline-flex;align-items:center;gap:5px;background:var(--surface-2);color:var(--text);border:1px solid var(--border);border-radius:6px;padding:4px 8px;font-size:12px;font-weight:600;cursor:pointer}.city-chip:hover,.city-chip.selected{border-color:var(--accent)}.status-dot{width:7px;height:7px;border-radius:50%;display:inline-block}.dot-none{background:var(--muted);opacity:.45}.dot-yellow{background:var(--c-yellow)}.dot-red{background:var(--c-red)}.chip-timer{font-size:11px;color:var(--muted)}.zoom-controls{display:inline-flex;gap:4px}.zoom-controls button{background:var(--surface-2);color:var(--text);border:1px solid var(--border);border-radius:6px;padding:4px 9px;font-size:12px;font-weight:600;cursor:pointer}.svg-viewport{position:relative;width:100%;aspect-ratio:1000 / 680;max-height:74vh;overflow:hidden;background:var(--bg);border:1px solid var(--border);border-radius:8px;cursor:grab}.svg-viewport:active{cursor:grabbing}.ukraine-svg{width:100%;height:100%;transform-origin:center center;transition:transform .08s ease-out}.region-shape{stroke:var(--map-stroke);stroke-width:.9;transition:fill .15s,opacity .15s;cursor:pointer}.region-shape:hover{opacity:.88;stroke:var(--text);stroke-width:1.4}.region-shape.is-selected{stroke:var(--accent);stroke-width:2}.status-none{fill:var(--map-none)}.status-yellow{fill:var(--map-yellow)}.status-red{fill:var(--map-red)}.status-partial-yellow{fill:var(--map-partial-yellow)}.status-partial-red{fill:var(--map-partial-red)}.status-permanent{fill:url(#hatch-perm)}.oblast-borders-overlay path{fill:none;stroke:var(--text);stroke-opacity:.32;stroke-width:1.2}.map-labels text{fill:var(--text);fill-opacity:.72;font-size:9px;font-weight:600;text-anchor:middle}.city-pin{cursor:pointer}.city-pin circle{stroke:var(--bg);stroke-width:1.8}.city-pin text{font-size:10px;font-weight:700;fill:var(--text);paint-order:stroke;stroke:var(--bg);stroke-width:3px}.city-pin.pin-none circle{fill:#6e7681}.city-pin.pin-yellow circle{fill:var(--c-yellow)}.city-pin.pin-red circle{fill:var(--c-red)}.city-pin.is-selected circle{stroke:var(--accent);stroke-width:2.5}.map-tooltip{position:fixed;pointer-events:none;z-index:60;background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:8px 10px;font-size:12px;box-shadow:0 8px 24px #00000059}.tt-title{font-weight:700}.tt-sub{font-size:11px;color:var(--muted)}.tt-status{margin-top:2px;font-weight:600}.tt-timer{color:var(--muted);font-size:11px}.map-legend{display:flex;flex-wrap:wrap;gap:14px;font-size:11px;color:var(--muted)}.map-legend span{display:inline-flex;align-items:center;gap:6px}.leg-box{width:12px;height:12px;border-radius:3px;display:inline-block;border:1px solid var(--border)}.leg-box.status-none{background:var(--map-none)}.leg-box.status-yellow{background:var(--map-yellow)}.leg-box.status-red{background:var(--map-red)}.leg-box.status-partial-red{background:var(--map-partial-red)}.leg-perm{background:repeating-linear-gradient(45deg,var(--perm-bg),var(--perm-bg) 3px,var(--perm-stripe) 3px,var(--perm-stripe) 5px)}.side-panel{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:14px;display:flex;flex-direction:column;gap:10px;max-height:calc(100vh - 82px)}.panel-head{display:flex;justify-content:space-between;align-items:start;gap:8px}.panel-head h2{margin:0;font-size:16px;font-weight:700}.muted-count{background:var(--surface-2);border:1px solid var(--border);border-radius:99px;padding:1px 8px;font-size:12px;font-weight:700}.panel-hint{font-size:12px;color:var(--muted)}.close-btn{background:var(--surface-2);color:var(--text);border:1px solid var(--border);border-radius:6px;padding:3px 8px;cursor:pointer}.active-list,.recent-list{overflow-y:auto;display:flex;flex-direction:column;gap:6px;padding-right:2px}.active-item{width:100%;text-align:left;background:var(--surface-2);color:var(--text);border:1px solid var(--border);border-radius:8px;padding:8px 10px;display:flex;justify-content:space-between;align-items:center;gap:8px;cursor:pointer}.active-item:hover{border-color:var(--accent)}.ai-name{font-size:13px;font-weight:600}.ai-sub{font-size:11px;color:var(--muted)}.ai-right{text-align:right}.ai-timer{font-size:11px;color:var(--muted);margin-top:2px}.lvl-badge{font-size:11px;font-weight:700;padding:2px 6px;border-radius:4px}.lvl-red{background:#dc26262e;color:#f87171}.lvl-yellow{background:#d977062e;color:#fbbf24}.drawer-body{display:flex;flex-direction:column;gap:10px;overflow:hidden}.live-banner{border-radius:8px;padding:10px 12px;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--border);background:var(--surface-2)}.live-banner.status-red{border-color:var(--c-red);background:#dc26261f}.live-banner.status-yellow{border-color:var(--c-yellow);background:#d977061f}.lb-label{font-size:11px;color:var(--muted)}.lb-val{font-size:14px;font-weight:700}.lb-timer{font-size:16px;font-weight:700}.info-note{font-size:11px;color:var(--muted);background:var(--surface-2);border-left:3px solid var(--accent);padding:6px 9px;border-radius:4px}.mini-kpis{display:grid;grid-template-columns:1fr 1fr;gap:8px}.mkpi{background:var(--surface-2);border:1px solid var(--border);border-radius:8px;padding:8px 10px}.mk-l{font-size:11px;color:var(--muted)}.mk-v{font-size:18px;font-weight:700}.mk-s{font-size:11px;color:var(--muted)}.primary-btn{background:var(--accent);color:#fff;border:none;border-radius:7px;padding:8px 12px;font-size:12px;font-weight:600;cursor:pointer;text-decoration:none;text-align:center}.full-w{width:100%}.sub-section-title{font-size:12px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.03em}.recent-row{display:flex;justify-content:space-between;align-items:center;padding:7px 9px;background:var(--surface-2);border:1px solid var(--border);border-radius:7px;font-size:12px}.rr-meta{font-size:11px;color:var(--muted)}.rr-right{display:flex;align-items:center;gap:6px}.lvl-dot{width:7px;height:7px;border-radius:50%;display:inline-block}.stats-container{display:flex;flex-direction:column;gap:14px}.filter-panel{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:12px 14px;display:flex;flex-direction:column;gap:10px}.filter-row{display:flex;flex-wrap:wrap;gap:10px;align-items:end}.f-group{display:flex;flex-direction:column;gap:4px}.f-group label{font-size:11px;color:var(--muted);font-weight:600}.f-group select,.f-group input,.cmp-selects select{background:var(--surface-2);color:var(--text);border:1px solid var(--border);border-radius:6px;padding:6px 9px;font-size:13px}.export-link{margin-left:auto}.presets-row{display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between;align-items:center}.presets{display:flex;flex-wrap:wrap;gap:5px}.presets button,.ghost-btn{background:var(--surface-2);color:var(--text);border:1px solid var(--border);border-radius:5px;padding:4px 9px;font-size:12px;cursor:pointer}.presets button:hover,.ghost-btn:hover{border-color:var(--accent)}.chk-label{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--muted);cursor:pointer}.kpi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px}.kpi-card{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:12px 14px}.kpi-card.clickable{cursor:pointer}.kpi-card.clickable:hover{border-color:var(--accent)}.kc-lbl{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.03em}.kc-val{font-size:22px;font-weight:700;margin:3px 0}.kc-sub{font-size:12px;color:var(--muted)}.chart-card{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:14px}.card-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;margin-bottom:10px}.card-head h3{margin:0;font-size:14px;font-weight:700}.ts-svg{width:100%;height:auto;display:block}.axis-text{fill:var(--muted);font-size:10px}.milestone-text{fill:var(--c-yellow);font-size:9px;font-weight:600}.chart-hover-bar{margin-top:6px;font-size:12px;color:var(--text);background:var(--surface-2);padding:5px 9px;border-radius:6px}.chart-legend{display:flex;gap:16px;font-size:11px;color:var(--muted);margin-top:8px}.dot-sq{width:10px;height:10px;border-radius:2px;display:inline-block;margin-right:5px}.heatmap-grid-wrap{display:grid;grid-template-columns:1.5fr 1fr;gap:14px}@media (max-width: 1000px){.heatmap-grid-wrap{grid-template-columns:1fr}}.hm-table{display:flex;flex-direction:column;gap:3px}.hm-row{display:grid;grid-template-columns:28px repeat(24,1fr);gap:3px;align-items:center}.hm-hr{font-size:10px;color:var(--muted);text-align:center}.hm-day{font-size:11px;color:var(--muted);font-weight:600}.hm-cell{height:22px;border-radius:3px;border:1px solid rgba(255,255,255,.04)}.tod-list{display:flex;flex-direction:column;gap:12px}.tod-top{display:flex;justify-content:space-between;font-size:12px;margin-bottom:4px}.tod-bar-bg{height:8px;background:var(--surface-2);border-radius:4px;overflow:hidden}.tod-bar-fill{height:100%;background:var(--accent);border-radius:4px}.rank-table-wrap{overflow:auto;max-height:440px;border:1px solid var(--border);border-radius:8px}.rank-table{width:100%;border-collapse:collapse;font-size:13px}.rank-table th,.rank-table td{padding:8px 10px;border-bottom:1px solid var(--border);text-align:left}.rank-table th{background:var(--surface-2);color:var(--muted);font-size:12px;position:sticky;top:0;cursor:pointer}.rank-table tbody tr{cursor:pointer}.rank-table tbody tr:hover td{background:var(--surface-2)}.rank-table tbody tr.selected td{background:#2f81f724}.num{text-align:right}.muted-cell{color:var(--muted);font-size:12px}.perm-tag{margin-left:6px;font-size:10px;padding:1px 5px;border-radius:4px;background:#dc262629;color:#f87171}.cmp-selects{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:12px}.cmp-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}@media (max-width: 700px){.cmp-grid{grid-template-columns:1fr}}.cmp-box{background:var(--surface-2);border:1px solid var(--border);border-radius:8px;padding:12px}.cmp-title{font-size:15px;font-weight:700}.cmp-sub{font-size:11px;color:var(--muted);margin-bottom:8px}.cmp-metrics{display:grid;grid-template-columns:1fr 1fr;gap:6px;font-size:12px}.cmp-metrics span{color:var(--muted)}.empty-state{padding:24px;text-align:center;color:var(--muted);font-size:13px}
