:root{
  --bg:#EDF0EF; --surface:#FFFFFF; --surface-2:#F5F7F6; --surface-3:#EBEFEE; --line:#D9DFDD; --line-2:#E6EBE9;
  --ink:#14202B; --ink-2:#465361; --ink-3:#77838E;
  --asphalt:#131C25; --asphalt-2:#1B2631; --asphalt-3:#243240; --asphalt-line:#2D3C4A; --asphalt-ink:#C9D3DC;
  --blue:#2458C6; --blue-2:#1B47A6; --blue-soft:#E4ECFB;
  --green:#15855A; --green-soft:#E1F2EA;
  --amber:#B97C06; --amber-2:#E3A21A; --amber-soft:#FBF0D8;
  --red:#C9372D; --red-soft:#FBE4E1;
  --gray:#7A8691; --gray-soft:#ECEFF1;
  --violet:#6D4FC2;
  --r-panel:12px; --r-tile:8px; --r-ctl:7px;
  --pad:16px; --gap:14px;
  --shadow-pop:0 12px 32px rgba(15,25,35,.16),0 2px 6px rgba(15,25,35,.08);
  --side-w:232px;
  color-scheme:light;
}
@media (prefers-color-scheme:dark){ :root:not([data-theme="light"]){
  --bg:#0E151B; --surface:#151F28; --surface-2:#1A2530; --surface-3:#212E3A; --line:#27353F; --line-2:#22303A;
  --ink:#E4EAEF; --ink-2:#A8B4BF; --ink-3:#7A8793;
  --asphalt:#0A1016; --asphalt-2:#131C24; --asphalt-3:#1B2631; --asphalt-line:#263441;
  --blue:#6E9CFF; --blue-2:#8DB0FF; --blue-soft:rgba(110,156,255,.14);
  --green:#3CC08A; --green-soft:rgba(60,192,138,.14);
  --amber:#EDB43E; --amber-2:#EDB43E; --amber-soft:rgba(237,180,62,.15);
  --red:#F06B5F; --red-soft:rgba(240,107,95,.15);
  --gray:#8C98A3; --gray-soft:rgba(140,152,163,.14); --violet:#A48BF0;
  --shadow-pop:0 16px 40px rgba(0,0,0,.5);
  color-scheme:dark;
}}
:root[data-theme="dark"]{
  --bg:#0E151B; --surface:#151F28; --surface-2:#1A2530; --surface-3:#212E3A; --line:#27353F; --line-2:#22303A;
  --ink:#E4EAEF; --ink-2:#A8B4BF; --ink-3:#7A8793;
  --asphalt:#0A1016; --asphalt-2:#131C24; --asphalt-3:#1B2631; --asphalt-line:#263441;
  --blue:#6E9CFF; --blue-2:#8DB0FF; --blue-soft:rgba(110,156,255,.14);
  --green:#3CC08A; --green-soft:rgba(60,192,138,.14);
  --amber:#EDB43E; --amber-2:#EDB43E; --amber-soft:rgba(237,180,62,.15);
  --red:#F06B5F; --red-soft:rgba(240,107,95,.15);
  --gray:#8C98A3; --gray-soft:rgba(140,152,163,.14); --violet:#A48BF0;
  --shadow-pop:0 16px 40px rgba(0,0,0,.5);
  color-scheme:dark;
}
:root.compact{ --pad:12px; --gap:10px; }
*{box-sizing:border-box}
:root{ box-sizing:border-box; padding-top:env(safe-area-inset-top,0px); padding-bottom:env(safe-area-inset-bottom,0px); }
html{ scroll-padding-top:calc(env(safe-area-inset-top,0px) + 120px); height:100%; }
body{ margin:0; min-height:100%; background:var(--bg); color:var(--ink); font-family:"Archivo",ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif; font-size:13.5px; line-height:1.45; font-variant-numeric:tabular-nums; -webkit-font-smoothing:antialiased; }
button,input,select,textarea{ font:inherit; color:inherit; }
button{ cursor:pointer; }
a{ color:var(--blue); }
svg.i{ width:16px; height:16px; stroke:currentColor; fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; flex:none; }
:focus-visible{ outline:2px solid var(--blue); outline-offset:2px; border-radius:4px; }
.sr{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.muted{ color:var(--ink-3); } .ink2{ color:var(--ink-2); }
.num{ font-variant-numeric:tabular-nums; }
.id{ font-weight:600; letter-spacing:.01em; white-space:nowrap; }
.nowrap{ white-space:nowrap; }
.up-good{ color:var(--green); } .up-bad{ color:var(--red); }
.c-ok{ color:var(--green); } .c-warn{ color:var(--amber); } .c-bad{ color:var(--red); } .c-info{ color:var(--blue); } .c-mute{ color:var(--gray); }

/* ---------- App frame ---------- */
.app{ display:grid; grid-template-columns:var(--side-w) minmax(0,1fr); min-height:100vh; }
.side{ position:sticky; top:0; height:100vh; background:var(--asphalt); color:var(--asphalt-ink); display:flex; flex-direction:column; border-right:1px solid var(--asphalt-line); z-index:40; }
.brand{ display:flex; align-items:center; gap:10px; padding:16px 16px 14px; }
.brand-mark{ width:30px; height:30px; flex:none; }
.brand-name{ font-weight:750; font-stretch:112%; letter-spacing:.01em; color:#fff; font-size:15px; line-height:1.1; }
.brand-sub{ font-size:11.5px; color:#8FA0AF; }
.nav{ flex:1; overflow:auto; padding:6px 10px 12px; scrollbar-width:thin; }
.nav-group{ font-size:11.5px; color:#7F909F; padding:12px 8px 5px; }
.nav a{ display:flex; align-items:center; gap:10px; padding:7px 9px; border-radius:7px; color:#C3CDD6; text-decoration:none; font-weight:500; position:relative; }
.nav a:hover{ background:var(--asphalt-3); color:#fff; }
.nav a.on{ background:#22303D; color:#fff; }
.nav a.on::before{ content:""; position:absolute; left:-10px; top:7px; bottom:7px; width:3px; border-radius:0 3px 3px 0; background:var(--amber-2); }
.nav .cnt{ margin-left:auto; font-size:11px; font-weight:650; padding:1px 7px; border-radius:99px; background:#3A2020; color:#FF9C92; }
.nav .cnt.info{ background:#1F2F48; color:#9DBBFF; }
.side-foot{ padding:12px 14px; border-top:1px solid var(--asphalt-line); font-size:12px; color:#8FA0AF; display:flex; flex-direction:column; gap:6px; }
.side-foot .row{ display:flex; align-items:center; gap:8px; }
.side-collapse{ background:none; border:1px solid var(--asphalt-line); color:#9FB0BE; border-radius:7px; padding:6px 8px; display:flex; align-items:center; gap:8px; }
.app.collapsed{ --side-w:64px; }
.app.collapsed .brand-txt,.app.collapsed .nav a span,.app.collapsed .nav-group,.app.collapsed .nav .cnt,.app.collapsed .side-foot .hide-c{ display:none; }
.app.collapsed .nav a{ justify-content:center; }
.app.collapsed .brand{ justify-content:center; padding-left:8px; padding-right:8px; }

.main{ min-width:0; display:flex; flex-direction:column; }
.top{ position:sticky; top:0; z-index:30; background:color-mix(in srgb,var(--surface) 94%,transparent); backdrop-filter:blur(8px); border-bottom:1px solid var(--line); padding-top:env(safe-area-inset-top,0px); }
.top-row{ display:flex; align-items:center; gap:14px; padding:10px 20px; min-height:60px; }
.menu-btn{ display:none; }
.title-block h1{ margin:0; font-size:18px; font-weight:750; font-stretch:108%; letter-spacing:-.005em; line-height:1.15; white-space:nowrap; }
.title-meta{ display:flex; align-items:center; gap:10px; font-size:12px; color:var(--ink-3); white-space:nowrap; }
.live{ display:inline-flex; align-items:center; gap:6px; font-weight:650; color:var(--green); }
.live i{ width:8px; height:8px; border-radius:50%; background:var(--green); box-shadow:0 0 0 0 color-mix(in srgb,var(--green) 60%,transparent); animation:pulse 2s infinite; }
.live.paused{ color:var(--ink-3); } .live.paused i{ background:var(--gray); animation:none; }
@keyframes pulse{ 0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--green) 55%,transparent)} 70%{box-shadow:0 0 0 7px transparent} 100%{box-shadow:0 0 0 0 transparent} }
.search{ position:relative; flex:1; max-width:520px; margin-left:auto; }
.search input{ width:100%; height:38px; border:1px solid var(--line); background:var(--surface-2); border-radius:9px; padding:0 64px 0 36px; outline:none; }
.search input:focus{ border-color:var(--blue); background:var(--surface); }
.search > svg{ position:absolute; left:11px; top:11px; color:var(--ink-3); }
.search kbd{ position:absolute; right:9px; top:9px; font-size:11px; border:1px solid var(--line); border-radius:5px; padding:1px 6px; color:var(--ink-3); background:var(--surface); font-family:inherit; }
.search-pop{ position:absolute; left:0; right:0; top:44px; background:var(--surface); border:1px solid var(--line); border-radius:10px; box-shadow:var(--shadow-pop); max-height:420px; overflow:auto; z-index:60; padding:6px; }
.sr-grp{ font-size:11.5px; color:var(--ink-3); padding:8px 8px 4px; }
.sr-item{ display:flex; align-items:center; gap:10px; width:100%; text-align:left; border:0; background:none; padding:8px; border-radius:7px; }
.sr-item:hover,.sr-item.on{ background:var(--surface-3); }
.sr-item .sub{ color:var(--ink-3); font-size:12px; }
.top-actions{ display:flex; align-items:center; gap:4px; }
.icon-btn{ position:relative; width:36px; height:36px; display:grid; place-items:center; border-radius:8px; border:1px solid transparent; background:none; color:var(--ink-2); }
.icon-btn:hover{ background:var(--surface-3); color:var(--ink); }
.icon-btn .dot{ position:absolute; top:5px; right:5px; min-width:16px; height:16px; padding:0 4px; border-radius:99px; background:var(--red); color:#fff; font-size:10px; font-weight:700; display:grid; place-items:center; border:2px solid var(--surface); }
.user-btn{ display:flex; align-items:center; gap:8px; border:0; background:none; padding:4px 6px 4px 4px; border-radius:9px; }
.user-btn:hover{ background:var(--surface-3); }
.avatar{ width:30px; height:30px; border-radius:50%; background:#2B3A48; color:#fff; display:grid; place-items:center; font-weight:700; font-size:12px; }
.user-meta{ text-align:left; line-height:1.15; } .user-meta b{ font-size:12.5px; display:block; } .user-meta span{ font-size:11.5px; color:var(--ink-3); }

/* Filter bar */
.filters{ display:flex; align-items:center; gap:8px; padding:8px 20px 10px; flex-wrap:wrap; }
.seg{ display:inline-flex; background:var(--surface-3); border-radius:8px; padding:2px; gap:2px; }
.seg button{ border:0; background:none; padding:5px 10px; border-radius:6px; font-weight:550; color:var(--ink-2); white-space:nowrap; font-size:12.5px; }
.seg button:hover{ color:var(--ink); }
.seg button.on{ background:var(--surface); color:var(--ink); box-shadow:0 1px 2px rgba(0,0,0,.08),0 0 0 1px var(--line); }
.sel{ position:relative; display:inline-flex; align-items:center; }
.sel select{ appearance:none; -webkit-appearance:none; height:32px; border:1px solid var(--line); background:var(--surface); border-radius:var(--r-ctl); padding:0 26px 0 10px; font-size:12.5px; color:var(--ink); max-width:190px; cursor:pointer; }
.sel select.set{ border-color:var(--blue); background:var(--blue-soft); color:var(--blue-2); font-weight:600; }
.sel::after{ content:""; position:absolute; right:10px; top:13px; width:6px; height:6px; border-right:1.6px solid var(--ink-3); border-bottom:1.6px solid var(--ink-3); transform:rotate(45deg); pointer-events:none; }
.sel label{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
.filters .spacer{ flex:1; }
.upd{ display:flex; align-items:center; gap:10px; font-size:12.5px; color:var(--ink-2); white-space:nowrap; }
.switch{ display:inline-flex; align-items:center; gap:7px; cursor:pointer; user-select:none; font-size:12.5px; }
.switch input{ appearance:none; -webkit-appearance:none; width:30px; height:18px; border-radius:99px; background:var(--line); position:relative; transition:background .15s; cursor:pointer; margin:0; }
.switch input::after{ content:""; position:absolute; top:2px; left:2px; width:14px; height:14px; border-radius:50%; background:#fff; transition:transform .15s; box-shadow:0 1px 2px rgba(0,0,0,.25); }
.switch input:checked{ background:var(--green); } .switch input:checked::after{ transform:translateX(12px); }
.custom-pop{ position:absolute; z-index:70; background:var(--surface); border:1px solid var(--line); border-radius:10px; box-shadow:var(--shadow-pop); padding:12px; display:flex; gap:10px; align-items:flex-end; flex-wrap:wrap; }

.viewbar{ display:flex; align-items:center; gap:8px; padding:0 20px 10px; flex-wrap:wrap; }
.chips{ display:flex; gap:6px; flex-wrap:wrap; align-items:center; }
.chip{ display:inline-flex; align-items:center; gap:5px; height:26px; padding:0 6px 0 10px; border-radius:99px; background:var(--blue-soft); color:var(--blue-2); font-size:12px; font-weight:600; border:0; }
.chip svg{ width:13px; height:13px; }
.linkbtn{ border:0; background:none; color:var(--blue); font-weight:600; font-size:12.5px; padding:4px; }

/* Quick actions */
.qa{ display:flex; gap:8px; padding:0 20px 14px; overflow-x:auto; scrollbar-width:none; }
.qa::-webkit-scrollbar{ display:none; }
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:6px; height:32px; padding:0 12px; border-radius:var(--r-ctl); border:1px solid var(--line); background:var(--surface); color:var(--ink); font-weight:600; font-size:12.5px; white-space:nowrap; }
.btn:hover{ border-color:color-mix(in srgb,var(--ink-3) 60%,var(--line)); background:var(--surface-2); }
.btn.p{ background:var(--blue); border-color:var(--blue); color:#fff; }
.btn.p:hover{ background:var(--blue-2); }
:root[data-theme="dark"] .btn.p{ color:#0B1320; }
@media (prefers-color-scheme:dark){ :root:not([data-theme="light"]) .btn.p{ color:#0B1320; } }
.btn.danger{ color:var(--red); }
.btn.ok{ color:var(--green); }
.btn.s{ height:27px; padding:0 9px; font-size:12px; border-radius:6px; }
.btn.g{ border-color:transparent; background:none; }
.btn.g:hover{ background:var(--surface-3); }
.btn svg{ width:15px; height:15px; }
.btn[disabled]{ opacity:.5; pointer-events:none; }

/* ---------- Widget grid ---------- */
.grid{ display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:var(--gap); padding:0 20px 40px; align-items:start; }
.w{ grid-column:span var(--span,12); background:var(--surface); border:1px solid var(--line); border-radius:var(--r-panel); min-width:0; display:flex; flex-direction:column; }
.w.hl{ animation:hl 1.6s ease-out; }
@keyframes hl{ 0%{ box-shadow:0 0 0 3px var(--amber-2);} 100%{ box-shadow:0 0 0 0 transparent; } }
.w-h{ display:flex; align-items:center; gap:10px; padding:12px var(--pad) 10px; border-bottom:1px solid var(--line-2); min-height:50px; flex-wrap:wrap; }
.w-t{ display:flex; align-items:baseline; gap:10px; min-width:0; flex-wrap:wrap; }
.w-t h2{ margin:0; font-size:14.5px; font-weight:700; font-stretch:104%; letter-spacing:-.003em; white-space:nowrap; }
.w-sub{ font-size:12px; color:var(--ink-3); white-space:nowrap; }
.livechip{ display:inline-flex; align-items:center; gap:5px; font-size:11px; font-weight:700; color:var(--green); background:var(--green-soft); padding:1px 7px; border-radius:99px; }
.livechip i{ width:6px; height:6px; border-radius:50%; background:currentColor; }
.w-tools{ margin-left:auto; display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.w-edit{ display:none; gap:4px; margin-left:6px; }
.editing .w-edit{ display:flex; }
.editing .w{ outline:1.5px dashed color-mix(in srgb,var(--blue) 55%,transparent); outline-offset:2px; }
.editing .w-h{ cursor:grab; background:var(--surface-2); border-radius:var(--r-panel) var(--r-panel) 0 0; }
.w.dragging{ opacity:.45; }
.w.drop-before{ box-shadow:-4px 0 0 0 var(--blue); } .w.drop-after{ box-shadow:4px 0 0 0 var(--blue); }
.w-b{ padding:var(--pad); min-width:0; }
.w-b.flush{ padding:0; }
.w-foot{ padding:10px var(--pad); border-top:1px solid var(--line-2); display:flex; align-items:center; gap:10px; font-size:12.5px; color:var(--ink-3); flex-wrap:wrap; }
.editbar{ display:none; align-items:center; gap:8px; padding:10px 20px; margin:0 20px 12px; border-radius:10px; background:var(--blue-soft); color:var(--blue-2); font-weight:600; flex-wrap:wrap; }
.editing-bar .editbar{ display:flex; }

/* Tabs */
.tabs{ display:inline-flex; gap:2px; background:var(--surface-3); padding:2px; border-radius:8px; flex-wrap:wrap; }
.tabs button{ border:0; background:none; padding:4px 10px; border-radius:6px; font-size:12px; font-weight:600; color:var(--ink-2); white-space:nowrap; }
.tabs button.on{ background:var(--surface); color:var(--ink); box-shadow:0 0 0 1px var(--line); }
.utabs{ display:flex; gap:16px; border-bottom:1px solid var(--line-2); padding:0 var(--pad); overflow-x:auto; scrollbar-width:none; }
.utabs button{ border:0; background:none; padding:10px 0 9px; font-weight:600; color:var(--ink-3); border-bottom:2px solid transparent; margin-bottom:-1px; white-space:nowrap; display:flex; gap:6px; align-items:center; }
.utabs button.on{ color:var(--ink); border-bottom-color:var(--ink); }
.utabs .n{ font-size:11px; padding:0 6px; border-radius:99px; background:var(--surface-3); color:var(--ink-2); }

/* Tags */
.tag{ display:inline-flex; align-items:center; gap:5px; height:22px; padding:0 8px; border-radius:99px; font-size:11.5px; font-weight:650; white-space:nowrap; background:var(--gray-soft); color:var(--ink-2); }
.tag i{ width:6px; height:6px; border-radius:50%; background:currentColor; flex:none; }
.t-ok{ background:var(--green-soft); color:var(--green); }
.t-warn{ background:var(--amber-soft); color:var(--amber); }
.t-bad{ background:var(--red-soft); color:var(--red); }
.t-info{ background:var(--blue-soft); color:var(--blue); }
.t-crit{ background:var(--red); color:#fff; }
.t-vio{ background:color-mix(in srgb,var(--violet) 14%,transparent); color:var(--violet); }
.sev{ display:inline-flex; align-items:center; justify-content:center; min-width:62px; height:22px; border-radius:5px; font-size:11.5px; font-weight:700; }
.sev.Critical{ background:var(--red); color:#fff; } .sev.High{ background:var(--red-soft); color:var(--red); } .sev.Medium{ background:var(--amber-soft); color:var(--amber); } .sev.Low{ background:var(--gray-soft); color:var(--ink-2); }

/* ---------- Hero ---------- */
.hero{ display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); }
.hero-c{ padding:16px 18px 14px; border-right:1px solid var(--line-2); display:flex; flex-direction:column; gap:6px; text-align:left; background:none; border-top:0; border-bottom:0; border-left:0; min-width:0; position:relative; }
.hero-c:last-child{ border-right:0; }
.hero-c:hover{ background:var(--surface-2); }
.hero-l{ font-size:12.5px; color:var(--ink-2); font-weight:600; display:flex; align-items:center; gap:6px; }
.hero-v{ font-size:34px; line-height:1; font-weight:750; font-stretch:88%; letter-spacing:-.02em; }
.hero-v small{ font-size:15px; font-weight:650; letter-spacing:0; margin-left:2px; color:var(--ink-2); }
.hero-s{ font-size:12px; color:var(--ink-3); display:flex; gap:6px; align-items:center; flex-wrap:wrap; }
.hero-c.bad .hero-v{ color:var(--red); } .hero-c.warn .hero-v{ color:var(--amber); }
.hero-c::after{ content:""; position:absolute; left:18px; right:18px; top:0; height:3px; border-radius:0 0 3px 3px; background:transparent; }
.hero-c.bad::after{ background:var(--red); } .hero-c.warn::after{ background:var(--amber-2); } .hero-c.ok::after{ background:var(--green); }
.tgt{ position:relative; height:6px; background:var(--surface-3); border-radius:4px; margin-top:4px; }
.tgt b{ position:absolute; left:0; top:0; bottom:0; border-radius:4px; }
.tgt u{ position:absolute; top:-3px; bottom:-3px; width:2px; background:var(--ink); }
.delta{ display:inline-flex; align-items:center; gap:2px; font-size:11.5px; font-weight:700; padding:1px 6px; border-radius:5px; white-space:nowrap; }
.delta.good{ color:var(--green); background:var(--green-soft); } .delta.bad{ color:var(--red); background:var(--red-soft); } .delta.flat{ color:var(--ink-2); background:var(--surface-3); }

/* KPI explorer */
.kgrid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(172px,1fr)); gap:10px; padding:var(--pad); }
.kpi{ border:1px solid var(--line-2); border-radius:var(--r-tile); padding:10px 12px 8px; background:var(--surface-2); display:flex; flex-direction:column; gap:3px; min-width:0; position:relative; }
.kpi-l{ font-size:12px; color:var(--ink-2); display:flex; align-items:center; gap:5px; font-weight:550; }
.kpi-l .info{ margin-left:auto; color:var(--ink-3); border:0; background:none; padding:0; display:grid; }
.kpi-l .info svg{ width:14px; height:14px; }
.kpi-v{ font-size:22px; font-weight:720; font-stretch:92%; letter-spacing:-.01em; line-height:1.15; }
.kpi-row{ display:flex; align-items:center; justify-content:space-between; gap:6px; }
.kpi .cmp{ font-size:11px; color:var(--ink-3); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.kpi.tone-bad{ border-left:3px solid var(--red); } .kpi.tone-warn{ border-left:3px solid var(--amber-2); } .kpi.tone-ok{ border-left:3px solid var(--green); }
.spark{ width:72px; height:24px; flex:none; overflow:visible; }

/* ---------- Tables ---------- */
.tbl-wrap{ overflow:auto; max-width:100%; }
.tbl{ width:100%; border-collapse:separate; border-spacing:0; font-size:12.5px; }
.tbl th{ position:sticky; top:0; background:var(--surface-2); text-align:left; font-weight:600; color:var(--ink-2); padding:8px 10px; border-bottom:1px solid var(--line); white-space:nowrap; z-index:1; font-size:12px; }
.tbl th.sortable{ cursor:pointer; user-select:none; }
.tbl th.sortable:hover{ color:var(--ink); }
.tbl th .ar{ display:inline-block; width:10px; color:var(--blue); }
.tbl td{ padding:8px 10px; border-bottom:1px solid var(--line-2); white-space:nowrap; vertical-align:middle; }
.tbl tr.click{ cursor:pointer; }
.tbl tbody tr:hover td{ background:var(--surface-2); }
.tbl tr.sel td{ background:var(--blue-soft) !important; }
.tbl td.r,.tbl th.r{ text-align:right; }
.tbl .stick{ position:sticky; left:0; background:var(--surface); z-index:1; }
.tbl th.stick{ z-index:2; background:var(--surface-2); }
.tbl tbody tr:hover td.stick{ background:var(--surface-2); }
.tbl .wrap{ white-space:normal; min-width:180px; }
.pager{ display:flex; align-items:center; gap:8px; padding:10px var(--pad); font-size:12.5px; color:var(--ink-3); border-top:1px solid var(--line-2); flex-wrap:wrap; }
.pager .sp{ flex:1; }
.bar{ height:6px; background:var(--surface-3); border-radius:4px; overflow:hidden; min-width:60px; }
.bar > b{ display:block; height:100%; border-radius:4px; background:var(--blue); }
.barcell{ display:flex; align-items:center; gap:8px; }
.barcell .bar{ flex:1; min-width:54px; }
.empty{ padding:28px var(--pad); text-align:center; color:var(--ink-3); }
.empty b{ display:block; color:var(--ink); margin-bottom:4px; }

/* Status strip */
.sstrip{ display:grid; grid-template-columns:repeat(13,minmax(88px,1fr)); overflow-x:auto; border-bottom:1px solid var(--line-2); scrollbar-width:thin; }
.sstrip button{ border:0; background:none; text-align:left; padding:10px 12px; border-right:1px solid var(--line-2); display:flex; flex-direction:column; gap:2px; min-width:0; position:relative; }
.sstrip button:last-child{ border-right:0; }
.sstrip button:hover{ background:var(--surface-2); }
.sstrip button.on{ background:var(--blue-soft); }
.sstrip button.on::after{ content:""; position:absolute; left:0; right:0; bottom:0; height:2px; background:var(--blue); }
.sstrip .l{ font-size:11.5px; color:var(--ink-2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; display:flex; align-items:center; gap:5px; }
.sstrip .l i{ width:7px; height:7px; border-radius:2px; flex:none; }
.sstrip .v{ font-size:19px; font-weight:720; font-stretch:92%; }
.toolbar{ display:flex; align-items:center; gap:8px; padding:10px var(--pad); flex-wrap:wrap; border-bottom:1px solid var(--line-2); }
.tsearch{ position:relative; }
.tsearch input{ height:30px; border:1px solid var(--line); border-radius:7px; padding:0 10px 0 30px; background:var(--surface); width:240px; font-size:12.5px; }
.tsearch svg{ position:absolute; left:9px; top:8px; width:14px; height:14px; color:var(--ink-3); }

/* ---------- Map ---------- */
.mapw{ position:relative; background:var(--asphalt); border-radius:0 0 var(--r-panel) var(--r-panel); overflow:hidden; color:var(--asphalt-ink); height:560px; touch-action:none; }
.mapw svg.map{ width:100%; height:100%; display:block; cursor:grab; }
.mapw svg.map.pan{ cursor:grabbing; }
.map .st{ fill:var(--asphalt-2); stroke:var(--asphalt-line); stroke-width:.8; vector-effect:non-scaling-stroke; }
.map .st.reg{ fill:#1E2E3D; }
.map .nation{ fill:none; stroke:#3A4D5E; stroke-width:1.2; vector-effect:non-scaling-stroke; }
.map .rt{ fill:none; stroke-width:1.4; vector-effect:non-scaling-stroke; opacity:.42; }
.map .rt.sel{ stroke-width:3; opacity:1; }
.map .rt.rem{ stroke-dasharray:5 5; }
.map .city{ fill:#6F8292; font-size:10px; font-family:inherit; }
.mk{ cursor:pointer; }
.mk:hover .mk-c,.mk:focus .mk-c{ stroke:#fff; stroke-width:2.2; }
.mk .mk-c{ stroke:var(--asphalt); stroke-width:1.6; }
.mk text{ font-size:10.5px; font-weight:700; fill:#fff; text-anchor:middle; dominant-baseline:central; pointer-events:none; font-family:inherit; }
.mk.sel .mk-c{ stroke:#fff; stroke-width:2.6; }
.ring{ fill:none; stroke-width:2; animation:ring 1.8s infinite; transform-box:fill-box; transform-origin:center; }
@keyframes ring{ 0%{ opacity:.9; transform:scale(1);} 100%{ opacity:0; transform:scale(2.2);} }
.map-ctl{ position:absolute; right:12px; top:12px; display:flex; flex-direction:column; gap:6px; }
.map-ctl button{ width:32px; height:32px; border-radius:8px; border:1px solid var(--asphalt-line); background:var(--asphalt-2); color:#D5DEE6; display:grid; place-items:center; }
.map-ctl button:hover{ background:var(--asphalt-3); }
.map-legend{ position:absolute; left:12px; top:12px; display:flex; flex-direction:column; gap:8px; max-width:calc(100% - 70px); }
.map-legend .row{ display:flex; gap:6px; flex-wrap:wrap; }
.lg{ display:inline-flex; align-items:center; gap:6px; height:28px; padding:0 10px; border-radius:7px; border:1px solid var(--asphalt-line); background:color-mix(in srgb,var(--asphalt-2) 88%,transparent); color:#D5DEE6; font-size:12px; font-weight:600; }
.lg i{ width:9px; height:9px; border-radius:50%; }
.lg b{ font-weight:750; color:#fff; }
.lg.off{ opacity:.45; } .lg.off b{ text-decoration:line-through; }
.lg.mode.on{ background:#E8EEF4; color:#101820; border-color:#E8EEF4; }
.map-foot{ position:absolute; left:12px; bottom:10px; right:12px; display:flex; gap:10px; align-items:flex-end; justify-content:space-between; font-size:11.5px; color:#8FA0AF; pointer-events:none; }
.map-foot > *{ pointer-events:auto; }
.layers{ display:flex; gap:6px; flex-wrap:wrap; }
.layers label{ display:inline-flex; align-items:center; gap:6px; height:26px; padding:0 9px; border-radius:7px; border:1px solid var(--asphalt-line); background:color-mix(in srgb,var(--asphalt-2) 88%,transparent); color:#C3CDD6; font-size:11.5px; cursor:pointer; }
.layers input{ accent-color:#6E9CFF; margin:0; }
.popc{ position:absolute; z-index:5; width:290px; background:var(--surface); color:var(--ink); border-radius:10px; box-shadow:var(--shadow-pop); border:1px solid var(--line); font-size:12.5px; }
.popc-h{ display:flex; align-items:center; gap:8px; padding:10px 12px; border-bottom:1px solid var(--line-2); }
.popc-h b{ font-size:14px; }
.popc-b{ padding:8px 12px 10px; display:grid; grid-template-columns:auto 1fr; gap:4px 12px; }
.popc-b dt{ color:var(--ink-3); } .popc-b dd{ margin:0; text-align:right; font-weight:600; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.popc-f{ padding:0 12px 12px; display:flex; gap:6px; }
.popc .x{ margin-left:auto; }

/* ---------- Alerts ---------- */
.atypes{ display:flex; gap:6px; padding:10px var(--pad); overflow-x:auto; border-bottom:1px solid var(--line-2); scrollbar-width:thin; }
.atype{ display:inline-flex; align-items:center; gap:6px; height:26px; padding:0 9px; border-radius:7px; border:1px solid var(--line); background:var(--surface); font-size:12px; white-space:nowrap; color:var(--ink-2); }
.atype b{ color:var(--ink); }
.atype.zero{ opacity:.5; }
.atype.on{ border-color:var(--blue); background:var(--blue-soft); color:var(--blue-2); }
.alist{ max-height:540px; overflow:auto; }
.al{ display:grid; grid-template-columns:70px minmax(0,1fr) auto; gap:4px 12px; padding:10px var(--pad); border-bottom:1px solid var(--line-2); cursor:pointer; align-items:start; }
.al:hover{ background:var(--surface-2); }
.al.open{ background:var(--surface-2); }
.al-t{ font-weight:650; display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.al-i{ color:var(--ink-2); }
.al-a{ font-size:12px; color:var(--ink-3); display:flex; gap:6px; align-items:flex-start; }
.al-a svg{ width:13px; height:13px; margin-top:2px; color:var(--violet); }
.al-m{ text-align:right; font-size:12px; color:var(--ink-3); display:flex; flex-direction:column; gap:4px; align-items:flex-end; }
.al-x{ grid-column:2 / -1; display:flex; gap:6px; flex-wrap:wrap; padding-top:6px; }
.al.resolved{ opacity:.55; }

/* ---------- AI ---------- */
.ai-list{ display:flex; flex-direction:column; }
.ai{ padding:12px var(--pad); border-bottom:1px solid var(--line-2); display:flex; flex-direction:column; gap:6px; }
.ai-h{ display:flex; gap:10px; align-items:flex-start; }
.ai-h .ic{ width:28px; height:28px; border-radius:7px; display:grid; place-items:center; flex:none; }
.ai-h .ic svg{ width:15px; height:15px; }
.ai-issue{ font-weight:650; line-height:1.35; }
.ai-meta{ display:grid; grid-template-columns:minmax(0,1fr) 108px; gap:4px 12px; font-size:12px; color:var(--ink-2); padding-left:38px; }
.ai-meta .lab{ color:var(--ink-3); }
.conf{ display:flex; align-items:center; gap:6px; font-size:11.5px; color:var(--ink-3); }
.conf .bar{ min-width:44px; height:5px; flex:1; }
.conf .bar b{ background:var(--violet); }
.ai-act{ padding-left:38px; display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.ai-act .sug{ font-size:12.5px; color:var(--ink); }
.ai-head{ padding:10px var(--pad); display:flex; align-items:center; gap:8px; font-size:12px; color:var(--ink-3); border-bottom:1px solid var(--line-2); background:linear-gradient(90deg,color-mix(in srgb,var(--violet) 8%,transparent),transparent 70%); }

/* ---------- Pipeline ---------- */
.pipe{ display:grid; grid-template-columns:repeat(10,minmax(112px,1fr)); overflow-x:auto; padding:var(--pad); gap:0; scrollbar-width:thin; }
.stage{ position:relative; padding:12px 18px 12px 14px; background:var(--surface-2); border:1px solid var(--line-2); border-right:0; text-align:left; display:flex; flex-direction:column; gap:3px; min-width:0; clip-path:polygon(0 0,calc(100% - 10px) 0,100% 50%,calc(100% - 10px) 100%,0 100%,10px 50%); margin-left:-4px; }
.stage:first-child{ clip-path:polygon(0 0,calc(100% - 10px) 0,100% 50%,calc(100% - 10px) 100%,0 100%); margin-left:0; border-radius:8px 0 0 8px; }
.stage:last-child{ clip-path:polygon(0 0,100% 0,100% 100%,0 100%,10px 50%); border-right:1px solid var(--line-2); border-radius:0 8px 8px 0; }
.stage:hover{ background:var(--surface-3); }
.stage .sn{ font-size:11.5px; color:var(--ink-2); padding-left:8px; white-space:nowrap; }
.stage .sv{ font-size:22px; font-weight:740; font-stretch:90%; padding-left:8px; }
.stage .sm{ font-size:12px; color:var(--ink-3); padding-left:8px; }
.stage.btl{ background:var(--amber-soft); }
.stage.btl .sn::after{ content:" (bottleneck)"; color:var(--amber); font-weight:650; }
.pipe-note{ padding:0 var(--pad) var(--pad); font-size:12.5px; color:var(--ink-2); display:flex; gap:14px; flex-wrap:wrap; }

/* Misc blocks */
.tiles{ display:grid; grid-template-columns:repeat(auto-fill,minmax(128px,1fr)); gap:8px; }
.tile{ background:var(--surface-2); border:1px solid var(--line-2); border-radius:var(--r-tile); padding:9px 11px; min-width:0; }
.tile .l{ font-size:11.5px; color:var(--ink-2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.tile .v{ font-size:19px; font-weight:720; font-stretch:92%; line-height:1.2; }
.tile .s{ font-size:11.5px; color:var(--ink-3); }
.tile.bad .v{ color:var(--red); } .tile.warn .v{ color:var(--amber); } .tile.ok .v{ color:var(--green); }
.chart-box{ position:relative; height:260px; }
.chart-box.sm{ height:200px; } .chart-box.lg{ height:300px; }
.split{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:var(--gap); }
.stack{ display:flex; flex-direction:column; gap:12px; }
.sec-l{ font-size:12.5px; font-weight:650; color:var(--ink-2); margin:2px 0 8px; display:flex; align-items:center; gap:8px; }
.hbar{ display:grid; grid-template-columns:minmax(90px,150px) minmax(0,1fr) 70px; gap:8px; align-items:center; font-size:12.5px; padding:3px 0; }
.hbar .bar{ height:8px; }
.hbar .v{ text-align:right; font-weight:600; }
.legend{ display:flex; gap:12px; flex-wrap:wrap; font-size:12px; color:var(--ink-2); }
.legend i{ display:inline-block; width:10px; height:10px; border-radius:3px; margin-right:5px; vertical-align:-1px; }
.legend i.ln{ height:3px; border-radius:2px; vertical-align:3px; }
.legend i.dash{ height:0; border-top:2px dashed; background:none !important; vertical-align:3px; border-radius:0; }
.dlist{ display:flex; flex-direction:column; }
.dl{ display:grid; grid-template-columns:12px minmax(0,1fr) auto auto; gap:8px; align-items:center; padding:6px 0; border-bottom:1px solid var(--line-2); font-size:12.5px; }
.dl:last-child{ border-bottom:0; }
.dl i{ width:10px; height:10px; border-radius:3px; }
.dl button{ all:unset; cursor:pointer; }
button.dl{ background:none; border:0; border-bottom:1px solid var(--line-2); width:100%; text-align:left; cursor:pointer; padding:6px 0; color:inherit; }
button.dl:hover{ background:var(--surface-2); }
.donut-wrap{ display:grid; grid-template-columns:180px minmax(0,1fr); gap:16px; align-items:center; }
.donut-box{ position:relative; height:180px; }
.donut-c{ position:absolute; inset:0; display:grid; place-items:center; text-align:center; pointer-events:none; }
.donut-c b{ font-size:24px; font-weight:750; font-stretch:90%; display:block; line-height:1; }
.donut-c span{ font-size:11.5px; color:var(--ink-3); }
.heat{ display:grid; gap:2px; font-size:11px; }
.heat .hc{ height:22px; border-radius:3px; display:grid; place-items:center; color:transparent; cursor:default; }
.heat .hc:hover{ outline:1.5px solid var(--ink); color:var(--ink); font-weight:700; }
.heat .hl{ color:var(--ink-2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; padding-right:6px; display:flex; align-items:center; }
.heat .hh{ color:var(--ink-3); text-align:center; }
.feed{ max-height:520px; overflow:auto; }
.fe{ display:grid; grid-template-columns:28px minmax(0,1fr); gap:10px; padding:9px var(--pad); border-bottom:1px solid var(--line-2); font-size:12.5px; }
.fe .ic{ width:28px; height:28px; border-radius:8px; display:grid; place-items:center; }
.fe .ic svg{ width:14px; height:14px; }
.fe .t{ color:var(--ink-3); font-size:11.5px; }
.fe.new{ animation:newin 1.2s ease-out; }
@keyframes newin{ from{ background:var(--blue-soft);} to{ background:transparent;} }
.fe button{ all:unset; cursor:pointer; color:var(--blue); font-weight:600; }
.auto{ display:grid; grid-template-columns:minmax(0,1fr) auto; gap:4px 10px; padding:10px var(--pad); border-bottom:1px solid var(--line-2); }
.auto .n{ font-weight:650; display:flex; gap:7px; align-items:center; }
.auto .n svg{ width:15px; height:15px; }
.auto .d{ grid-column:1 / -1; font-size:12px; color:var(--ink-3); }
.auto .st{ grid-column:1 / -1; font-size:12px; display:flex; gap:10px; flex-wrap:wrap; align-items:center; color:var(--ink-2); }
.auto .iss{ grid-column:1 / -1; font-size:12px; color:var(--red); background:var(--red-soft); padding:5px 8px; border-radius:6px; display:flex; gap:8px; align-items:center; justify-content:space-between; }
.auto.warn .iss{ color:var(--amber); background:var(--amber-soft); }
.stars{ color:var(--amber-2); letter-spacing:1px; }
.flag{ display:inline-flex; gap:4px; align-items:center; color:var(--red); font-weight:650; font-size:12px; }
.hint{ font-size:12px; color:var(--ink-3); }
.geo-svg{ width:100%; height:auto; display:block; }
.geo-svg path{ stroke:var(--surface); stroke-width:.8; cursor:pointer; }
.geo-svg path:hover{ opacity:.8; }
.scale{ display:flex; align-items:center; gap:6px; font-size:11.5px; color:var(--ink-3); }
.scale b{ width:120px; height:8px; border-radius:4px; display:block; }

/* ---------- Drawer / modal / toast ---------- */
.scrim{ position:fixed; inset:0; background:rgba(10,16,22,.42); z-index:80; opacity:0; pointer-events:none; transition:opacity .18s; }
.scrim.on{ opacity:1; pointer-events:auto; }
.drawer{ position:fixed; top:0; right:0; bottom:0; width:min(560px,100vw); background:var(--surface); z-index:90; transform:translateX(102%); transition:transform .22s ease-out; display:flex; flex-direction:column; box-shadow:var(--shadow-pop); padding-top:env(safe-area-inset-top,0px); padding-bottom:env(safe-area-inset-bottom,0px); }
.drawer.on{ transform:none; }
.dr-h{ padding:14px 18px; border-bottom:1px solid var(--line); display:flex; gap:10px; align-items:flex-start; }
.dr-h h3{ margin:0; font-size:18px; font-weight:750; font-stretch:104%; }
.dr-b{ flex:1; overflow:auto; padding:16px 18px; display:flex; flex-direction:column; gap:18px; }
.dr-f{ padding:12px 18px; border-top:1px solid var(--line); display:flex; gap:8px; flex-wrap:wrap; }
.kvs{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 18px; }
.kvs div{ min-width:0; }
.kvs dt{ font-size:11.5px; color:var(--ink-3); }
.kvs dd{ margin:0; font-weight:600; overflow-wrap:anywhere; }
.dr-sec h4{ margin:0 0 10px; font-size:13px; font-weight:700; color:var(--ink); }
.tl{ list-style:none; margin:0; padding:0; }
.tl li{ display:grid; grid-template-columns:18px minmax(0,1fr) auto; gap:10px; position:relative; padding-bottom:12px; font-size:12.5px; }
.tl li::before{ content:""; position:absolute; left:8px; top:14px; bottom:-2px; width:2px; background:var(--line); }
.tl li:last-child::before{ display:none; }
.tl li i{ width:14px; height:14px; border-radius:50%; border:2px solid var(--line); background:var(--surface); margin-top:2px; z-index:1; }
.tl li.done i{ background:var(--green); border-color:var(--green); }
.tl li.cur i{ background:var(--blue); border-color:var(--blue); box-shadow:0 0 0 4px var(--blue-soft); }
.tl li.bad i{ background:var(--red); border-color:var(--red); }
.tl li.done::before{ background:var(--green); }
.tl .when{ color:var(--ink-3); font-size:12px; white-space:nowrap; }
.mini-map{ background:var(--asphalt); border-radius:10px; overflow:hidden; }
.mini-map svg{ display:block; width:100%; height:auto; }
.fin3{ display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }

.modal-wrap{ position:fixed; inset:0; z-index:100; display:grid; place-items:center; padding:16px; pointer-events:none; }
.modal{ width:min(620px,100%); max-height:calc(100vh - 32px); background:var(--surface); border-radius:14px; box-shadow:var(--shadow-pop); display:flex; flex-direction:column; pointer-events:auto; transform:translateY(8px) scale(.99); opacity:0; transition:all .16s ease-out; border:1px solid var(--line); }
.modal.on{ transform:none; opacity:1; }
.modal.wide{ width:min(860px,100%); }
.md-h{ padding:16px 20px 12px; display:flex; gap:10px; align-items:flex-start; border-bottom:1px solid var(--line-2); }
.md-h h3{ margin:0; font-size:17px; font-weight:750; font-stretch:104%; }
.md-h p{ margin:3px 0 0; color:var(--ink-3); font-size:12.5px; }
.md-b{ padding:16px 20px; overflow:auto; }
.md-f{ padding:12px 20px; border-top:1px solid var(--line-2); display:flex; justify-content:flex-end; gap:8px; flex-wrap:wrap; }
.form{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 14px; }
.fld{ display:flex; flex-direction:column; gap:5px; min-width:0; }
.fld.full{ grid-column:1 / -1; }
.fld label{ font-size:12px; font-weight:600; color:var(--ink-2); }
.fld input,.fld select,.fld textarea{ height:36px; border:1px solid var(--line); border-radius:8px; padding:0 10px; background:var(--surface); width:100%; }
.fld textarea{ height:80px; padding:8px 10px; resize:vertical; }
.fld input:focus,.fld select:focus,.fld textarea:focus{ outline:none; border-color:var(--blue); box-shadow:0 0 0 3px var(--blue-soft); }
.fld.err input,.fld.err select{ border-color:var(--red); }
.fld .e{ color:var(--red); font-size:11.5px; display:none; }
.fld.err .e{ display:block; }
.drop{ border:1.5px dashed var(--line); border-radius:10px; padding:26px; text-align:center; color:var(--ink-2); cursor:pointer; }
.drop.over{ border-color:var(--blue); background:var(--blue-soft); }
.result{ margin-top:14px; padding:12px; border-radius:10px; background:var(--surface-2); border:1px solid var(--line-2); }
.toasts{ position:fixed; right:16px; bottom:calc(16px + env(safe-area-inset-bottom,0px)); display:flex; flex-direction:column; gap:8px; z-index:120; }
.toast{ min-width:260px; max-width:380px; background:var(--asphalt); color:#E9EEF2; padding:10px 14px; border-radius:10px; box-shadow:var(--shadow-pop); display:flex; gap:10px; align-items:flex-start; font-size:13px; animation:tin .2s ease-out; }
.toast svg{ color:#5FD39E; margin-top:1px; }
.toast.warn svg{ color:#F2BD4E; }
@keyframes tin{ from{ transform:translateY(8px); opacity:0; } }
.tip{ position:fixed; z-index:130; max-width:280px; background:var(--asphalt); color:#E9EEF2; padding:8px 10px; border-radius:8px; font-size:12px; line-height:1.4; pointer-events:none; opacity:0; transition:opacity .1s; box-shadow:var(--shadow-pop); }
.tip.on{ opacity:1; }
.menu{ position:absolute; z-index:75; background:var(--surface); border:1px solid var(--line); border-radius:10px; box-shadow:var(--shadow-pop); padding:6px; min-width:220px; }
.menu button{ display:flex; width:100%; align-items:center; gap:10px; border:0; background:none; padding:8px 10px; border-radius:7px; text-align:left; }
.menu button:hover{ background:var(--surface-3); }
.menu hr{ border:0; border-top:1px solid var(--line-2); margin:5px 0; }
.nt{ display:grid; grid-template-columns:10px minmax(0,1fr); gap:10px; padding:12px 0; border-bottom:1px solid var(--line-2); cursor:pointer; }
.nt .u{ width:8px; height:8px; border-radius:50%; background:var(--blue); margin-top:6px; }
.nt.read .u{ background:transparent; }
.nt .tt{ font-weight:650; } .nt .ds{ color:var(--ink-2); font-size:12.5px; } .nt .tm{ color:var(--ink-3); font-size:11.5px; }
.kbd{ font-size:11.5px; border:1px solid var(--line); border-radius:5px; padding:1px 6px; background:var(--surface-2); }

/* ---------- Responsive ---------- */
@media (max-width:1400px){
  .hero{ grid-template-columns:repeat(3,minmax(0,1fr)); }
  .hero-c:nth-child(3){ border-right:0; }
  .hero-c:nth-child(-n+3){ border-bottom:1px solid var(--line-2); }
}
@media (max-width:1280px){
  .grid .w[data-span="3"]{ grid-column:span 6; }
  .user-meta{ display:none; }
}
@media (max-width:1100px){
  .app{ --side-w:64px; }
  .brand-txt,.nav a span,.nav-group,.nav .cnt,.side-foot .hide-c{ display:none; }
  .nav a{ justify-content:center; }
  .brand{ justify-content:center; padding-left:8px; padding-right:8px; }
  .grid .w{ grid-column:span 12 !important; }
  .split{ grid-template-columns:1fr; }
  .route-grid{ grid-template-columns:1fr !important; }
  .route-grid > div:first-child{ border-right:0 !important; border-bottom:1px solid var(--line-2); }
}
@media (max-width:760px){
  .app{ grid-template-columns:1fr; --side-w:260px; }
  .side{ position:fixed; left:0; top:0; bottom:0; width:260px; transform:translateX(-102%); transition:transform .2s; }
  .app.nav-open .side{ transform:none; }
  .app.nav-open .brand-txt,.app.nav-open .nav a span,.app.nav-open .nav-group,.app.nav-open .nav .cnt{ display:revert; }
  .app.nav-open .nav a{ justify-content:flex-start; display:flex; }
  .app.nav-open .brand{ justify-content:flex-start; }
  .menu-btn{ display:grid; }
  .top-row{ padding:8px 12px; gap:8px; flex-wrap:wrap; }
  .title-block h1{ font-size:16px; }
  .search{ order:5; flex:1 0 100%; max-width:none; }
  .top-actions .hide-m{ display:none; }
  .filters,.viewbar{ padding-left:12px; padding-right:12px; }
  .filters .sel{ display:none; }
  .filters.open .sel{ display:inline-flex; }
  .filters .fbtn{ display:inline-flex !important; }
  .qa{ padding-left:12px; padding-right:12px; }
  .grid{ display:flex; flex-direction:column; padding:0 10px 30px; }
  .grid .w{ order:20; }
  .grid .w[data-id="kpi-hero"]{ order:1; } .grid .w[data-id="alerts"]{ order:2; } .grid .w[data-id="tower"]{ order:3; }
  .grid .w[data-id="drivers"]{ order:4; } .grid .w[data-id="ai"]{ order:5; } .grid .w[data-id="map"]{ order:6; } .grid .w[data-id="kpi-explorer"]{ order:7; }
  .hero{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .hero-c{ border-bottom:1px solid var(--line-2); padding:12px 14px; }
  .hero-c:nth-child(3){ border-right:1px solid var(--line-2); }
  .hero-c:nth-child(2n){ border-right:0; }
  .hero-v{ font-size:27px; }
  .mapw{ height:420px; }
  .donut-wrap{ grid-template-columns:1fr; }
  .form{ grid-template-columns:1fr; }
  .kvs{ grid-template-columns:1fr 1fr; }
  .al{ grid-template-columns:62px minmax(0,1fr); }
  .al-m{ grid-column:2; flex-direction:row; align-items:center; text-align:left; }
  .tsearch input{ width:100%; }
  .tsearch{ flex:1; }
  .upd .lbl-long{ display:none; }
  .ai-meta{ grid-template-columns:1fr; padding-left:0; } .ai-act{ padding-left:0; }
}
.fbtn{ display:none !important; }
@media (prefers-reduced-motion:reduce){ *{ animation:none !important; transition:none !important; } }
