:root{color-scheme:dark;--bg:#101318;--panel:#191e25;--line:#303741;--muted:#929daa;--ink:#ecf0f5;--accent:#ed435d;--online:#22b982;--offline:#ed4b63;--unknown:#93a1b2;--alert:#efb63d;font:14px Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Arial,sans-serif;color:var(--ink);background:var(--bg)}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer;color:inherit}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible{outline:2px solid #f17384;outline-offset:3px}button{border:1px solid var(--line);background:#242b34;border-radius:7px;padding:9px 12px;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:36px}button:hover{background:#303845}button.primary{background:#b83047;border-color:#d9475e;color:#fff}button.primary:hover{background:#d13e56}button.danger{color:#ff9ca9;background:#44212b;border-color:#763545}button.flat{background:transparent;border-color:transparent}.tiny{font-size:11px}.muted{color:var(--muted)}.pill{border:1px solid var(--line);border-radius:99px;font-size:11px;padding:4px 9px;display:inline-flex;align-items:center;gap:6px;white-space:nowrap}.dot{width:8px;height:8px;border-radius:50%;background:var(--unknown);display:inline-block;flex-shrink:0}.online{color:var(--online)}.offline{color:var(--offline)}.unknown{color:var(--unknown)}.dot.online{background:var(--online)}.dot.offline{background:var(--offline)}.dot.unknown{background:var(--unknown)}.app{display:flex;height:100vh;height:100dvh;min-height:420px;overflow:hidden}.sidebar{width:236px;flex:none;background:linear-gradient(145deg,#15191f,#0c0f13);border-right:1px solid var(--line);display:flex;flex-direction:column;overflow-y:auto}.brand{padding:26px 25px 22px;border-bottom:1px solid #2a3038;margin:0 16px}.brand-word{font-weight:850;font-size:34px;line-height:1;letter-spacing:-2px;display:flex;gap:10px;align-items:center}.brand-mark{width:25px;height:13px;background:var(--accent);clip-path:polygon(20% 0,100% 0,80% 100%,0% 100%)}.brand-small{font-size:10px;letter-spacing:5px;color:#a5afbe;margin-top:7px}.nav-group{padding:18px 18px 14px}.nav-caption{color:#808c9b;font-size:10px;font-weight:750;letter-spacing:.9px;margin:0 12px 9px}.nav-link{border:0;background:transparent;width:100%;justify-content:flex-start;padding:11px 13px;margin:2px 0;color:#afb9c5;position:relative}.nav-link.active{background:#3b242c;color:#fff}.nav-link.active:before{content:'';position:absolute;left:0;top:7px;bottom:7px;background:var(--accent);width:3px;border-radius:2px}.nav-link svg{margin-right:7px}.sidebar-bottom{margin-top:auto;padding:18px}.event-card{border:1px solid var(--line);border-radius:10px;background:#1c222b;padding:14px}.event-card select{width:100%;margin-top:8px;border:0;background:#1c222b;font-size:12px;font-weight:650;padding:4px 0;color:#fff}.save-indicator{font-size:10px;color:var(--muted);padding:14px 1px 0;line-height:1.5}.main-shell{flex:1;min-width:0;display:flex;flex-direction:column}.topbar{height:58px;flex:none;background:#181c22;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 22px;gap:16px}.top-brand{font-size:20px;font-weight:780;letter-spacing:-.7px;white-space:nowrap}.top-event{border-left:3px solid var(--accent);padding-left:16px;font-size:12px;color:#b7c0cc;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.spacer{flex:1}.mobile-menu{display:none}.stat-strip{height:43px;flex:none;display:flex;background:#161b21;border-bottom:1px solid var(--line);overflow-x:auto}.stat{flex:1;display:flex;align-items:center;gap:9px;padding:0 18px;white-space:nowrap;font-size:12px;border-right:1px solid #2c333d;min-width:120px}.stat strong{font-size:16px;margin-left:auto}.stat small{color:#8894a4;font-size:10px}.main-content{position:relative;display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden;padding:14px 18px 18px;gap:10px}.toolbar{position:relative;z-index:6;display:flex;align-items:center;gap:8px;border:1px solid var(--line);background:#20262f;border-radius:9px;padding:8px 10px;min-height:49px;flex-wrap:wrap;flex:none}.toolbar-title{font-size:10px;font-weight:800;letter-spacing:1px;color:#aeb9c6;padding:0 8px;border-right:1px solid #46515e;margin-right:4px}.toolbar button{font-size:12px;min-height:32px;padding:6px 10px}.toolbar .search-input{max-width:220px;padding:7px 10px;min-height:32px}.search-input,input,select,textarea{background:#121820;border:1px solid #3a4451;border-radius:6px;color:#eef1f5;padding:9px 10px;max-width:100%;font-size:13px}select{min-height:36px}input[type=color]{padding:3px;width:40px;height:31px;cursor:pointer}input[type=checkbox]{accent-color:var(--accent);width:16px;height:16px}input[type=range]{accent-color:var(--accent);width:100%}.scope-info{font-size:10px;color:#a4b1c0;white-space:nowrap;margin-right:5px}.dropdown{position:absolute;top:calc(100% + 7px);left:10px;width:350px;max-width:calc(100vw - 40px);max-height:calc(100vh - 200px);overflow:auto;border:1px solid #45515f;border-radius:10px;background:#171e27;box-shadow:0 16px 55px #0008;padding:17px;z-index:20}.dropdown-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px}.dropdown-header h3{font-size:14px;margin:0}.dropdown p{font-size:11px;line-height:1.6;color:#a2b0c1}.field{display:flex;flex-direction:column;gap:6px;font-size:12px;margin-bottom:13px;min-width:0}.field.inline{flex-direction:row;align-items:center;justify-content:space-between}.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 15px}.fields .wide{grid-column:1/-1}.sector-row{display:flex;align-items:center;gap:7px;padding:7px 0;border-bottom:1px solid #293442;font-size:12px}.sector-row .sector-name{flex:1;background:transparent;border:0;justify-content:flex-start;padding:2px 3px;min-width:0;text-align:left}.sector-row button{padding:5px;min-width:26px}.sector-row.selected{background:#2b2633}.panel-foot{display:flex;gap:7px;flex-wrap:wrap;margin-top:14px}.map-stage{position:relative;flex:1;min-height:180px;border:1px solid #343c46;border-radius:11px;overflow:hidden;background:#000;isolation:isolate}.map-svg{display:block;width:100%;height:100%;touch-action:none;user-select:none}.sector{cursor:pointer;transition:fill-opacity .1s}.map-svg.editing{cursor:crosshair}.map-svg.placing{cursor:crosshair}.device-marker{cursor:pointer}.device-marker:hover .marker-core{stroke-width:3}.map-controls{position:absolute;right:16px;top:16px;display:flex;flex-direction:column;border:1px solid #3f4a58;background:#1c242e;border-radius:9px;overflow:hidden;box-shadow:0 4px 20px #0003;z-index:3}.map-controls button{border:0;border-radius:0;border-bottom:1px solid #38424f;background:transparent;width:40px;height:40px;padding:8px}.map-controls button:last-child{border:0}.map-caption{position:absolute;bottom:12px;right:12px;background:#18212ae8;color:#cbd4de;border:1px solid #3c4854;border-radius:5px;padding:7px 10px;font-size:10px;pointer-events:none}.map-zoom{position:absolute;bottom:12px;left:12px;padding:6px 9px;background:#17212be8;color:#ccd9e5;border-radius:5px;font-size:11px;pointer-events:none}.editing-strip{position:absolute;left:12px;top:12px;right:72px;z-index:4;background:#16212cf5;border:1px solid #54738c;border-radius:9px;padding:10px 13px;color:white;display:flex;flex-direction:column;gap:8px;box-shadow:0 4px 24px #0003}.editing-strip .actions{display:flex;gap:6px;flex-wrap:wrap}.editing-strip button{font-size:11px;min-height:30px;padding:5px 9px}.editing-strip p{margin:0;font-size:11px;color:#bac9d8}.editing-strip .title{font-size:13px;display:flex;gap:8px;align-items:center}.map-empty{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#43515d;background:#eef1f4;text-align:center;padding:20px}.map-empty p{color:#6b7c8a}.content-page{flex:1;min-height:0;overflow:auto;padding:10px 3px 20px}.page-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:8px 0 23px}.eyebrow{color:#b78c94;font-weight:750;font-size:10px;letter-spacing:2px;margin-bottom:5px}.page-head h1{font-size:27px;font-weight:760;letter-spacing:-.8px;margin:0 0 5px}.page-head p{color:#99a7b7;font-size:12px;margin:0;max-width:700px;line-height:1.65}.actions{display:flex;gap:8px;flex-wrap:wrap}.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px}.card{background:#1a2029;border:1px solid #333d49;border-radius:12px;padding:20px;min-width:0}.card h3{margin:0 0 8px;font-size:16px}.card p{color:#a5b1bf;font-size:12px;line-height:1.7}.card.active{border-color:#a84859}.card .thumb{height:130px;background:#eef1f4;width:100%;object-fit:contain;border-radius:6px;margin-bottom:16px}.card .actions{margin-top:16px}.card .actions button{font-size:11px}.table-wrap{overflow:auto;border:1px solid #343d49;border-radius:10px;background:#171d25}table{width:100%;border-collapse:collapse;font-size:12px;text-align:left}th{background:#222a35;padding:13px 14px;color:#a6b3c2;font-weight:600;white-space:nowrap}td{padding:13px 14px;border-top:1px solid #293340;color:#dae1ea;white-space:nowrap}td strong{display:block}td small{display:block;color:#8f9eaf;font-size:10px;margin-top:4px}td .actions{flex-wrap:nowrap}td button{font-size:11px;padding:5px 8px;min-height:29px}tr:hover td{background:#1d2631}.empty-state{padding:60px 25px;text-align:center;color:#a2b0c2}.empty-state h2{font-size:20px;color:#e5ebf3}.empty-state p{font-size:13px;line-height:1.7}.info-box{font-size:12px;line-height:1.7;color:#b7c5d6;background:#182635;border:1px solid #364b63;border-radius:8px;padding:12px 15px;margin-bottom:16px}.warning{color:#f0d38c;background:#30291b;border-color:#6f5d33}.success{color:#91dec2;background:#152d26;border-color:#2c6853}.form-error{color:#ffa1b1;background:#3b202a;border:1px solid #8b4053;padding:10px;border-radius:7px;font-size:12px;line-height:1.6;margin:10px 0}.form-error:empty{display:none}.modal-backdrop{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;padding:25px;background:#060a11bb;backdrop-filter:blur(4px)}.modal{width:600px;max-width:100%;max-height:92vh;max-height:92dvh;overflow:auto;border:1px solid #475362;border-radius:14px;background:#1b222c;box-shadow:0 22px 100px #0009;padding:24px}.modal-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.modal-title h2{font-size:20px;letter-spacing:-.4px;margin:0}.modal-title button{padding:5px;min-width:32px}.modal p{font-size:12px;line-height:1.7;color:#b1bfce}.modal-foot{display:flex;justify-content:flex-end;align-items:center;gap:8px;padding-top:14px;border-top:1px solid #374350;margin-top:12px;flex-wrap:wrap}.modal small{font-size:11px;color:#a9b9ca;line-height:1.6}.modal details{border:1px solid #3c4959;border-radius:8px;padding:11px;margin-bottom:14px}.modal summary{cursor:pointer;font-size:12px}.modal details .fields{margin-top:14px}.video-modal{width:940px}.video-live{aspect-ratio:16/9;background:#060a11;border:1px solid #3e4a5c;border-radius:9px;position:relative;overflow:hidden;display:grid;place-items:center;padding:0}.video-live iframe{border:0;width:100%;height:100%;display:block}.video-empty{text-align:center;padding:30px;color:#9eb0c5}.video-empty h3{font-size:17px;color:#d9e4f3}.video-empty p{max-width:540px}.camera-meta{display:flex;flex-wrap:wrap;gap:10px 22px;margin:15px 0;font-size:12px;color:#afbdd0}.camera-meta strong{color:#e3e9f1}.player-note{color:#acb8c7;font-size:11px;padding-top:9px}.toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);max-width:90vw;z-index:200;background:#253447;color:#eef5ff;border:1px solid #617790;border-radius:9px;padding:13px 18px;box-shadow:0 5px 30px #0006;font-size:12px;line-height:1.5}.sync-banner{padding:9px 16px;background:#3d2a1a;color:#ffdb9e;font-size:11px;flex:none}.integrations{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.integration-name{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.code{white-space:pre-wrap;word-break:break-word;background:#101721;border:1px solid #354659;padding:12px;border-radius:6px;color:#bed2e8;font:12px ui-monospace,monospace;line-height:1.6}a{color:#89c5f7}#fallback{min-height:100vh;padding:24px;background:#10151c;color:#e4edf8}#fallback h1{font-size:22px}#fallback p{font-size:14px;line-height:1.6}#fallback img{width:100%;border:1px solid #405064;border-radius:10px;display:block}.fallback-issue{background:#382c1b;padding:12px;border-radius:7px}.help-list{font-size:12px;line-height:1.8;padding-left:20px;color:#b9c7d8}.kbd{border:1px solid #536173;padding:2px 5px;border-radius:4px;font-size:10px}.pointer-handle{cursor:grab}.pointer-handle:active{cursor:grabbing}.map-tip{position:absolute;left:16px;top:16px;z-index:4;background:#16212df4;color:#e9f2fc;border:1px solid #516a84;border-radius:9px;padding:12px 14px;max-width:calc(100% - 90px);font-size:12px}.map-tip button{margin-left:12px;font-size:11px}.no-map{background:#263340;display:grid;place-items:center;height:130px;border-radius:7px;color:#95a7bb;margin-bottom:16px}.toggle-inline{display:flex;align-items:center;gap:8px;font-size:12px}.api-note{margin-bottom:12px}.map-mode-label{color:#ffb9c4}
@media(max-width:1200px){.sidebar{width:208px}.nav-group{padding:13px}.top-event{max-width:240px}.stat{padding:0 10px;min-width:100px;font-size:11px}.topbar{padding:0 16px}.main-content{padding:12px}.toolbar-title{display:none}}
@media(max-width:850px){.sidebar{position:fixed;inset:0 auto 0 0;width:236px;z-index:50;box-shadow:15px 0 50px #0008;display:none}.app.sidebar-open .sidebar{display:flex}.mobile-menu{display:inline-flex}.topbar{height:54px;gap:10px;padding:0 10px}.top-brand{font-size:18px}.top-event{display:none}.topbar .pill{font-size:9px}.stat-strip{height:44px}.stat{min-width:110px}.main-content{padding:10px;gap:8px}.toolbar{gap:6px;padding:7px}.toolbar button{font-size:11px}.toolbar .search-input{max-width:none;width:160px;flex:1}.scope-info{display:none}.page-head{align-items:flex-start}.page-head h1{font-size:23px}.cards{grid-template-columns:repeat(auto-fill,minmax(250px,1fr))}.integrations{grid-template-columns:1fr}.editing-strip{right:58px;padding:9px}.map-controls{right:9px;top:9px}.map-controls button{width:35px;height:35px}.modal-backdrop{padding:12px}.modal{padding:18px}.fields{gap:0 10px}.map-caption{max-width:70%;font-size:9px;right:8px;bottom:9px}.dropdown{max-height:60vh;left:0;max-width:calc(100vw - 22px)}.camera-meta{gap:8px 14px}.video-empty{padding:16px}.video-empty p{font-size:11px}.modal-title{margin-bottom:14px}.modal-title h2{font-size:18px}.video-live{min-height:180px}.editing-strip .actions{gap:4px}.editing-strip button{font-size:10px;padding:4px 7px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* MAP-MOVE-08 */
.map-svg.moving-devices .device-marker{cursor:grab}.map-svg.moving-devices .device-marker:active{cursor:grabbing}.map-move-toggle[aria-pressed="true"]{outline:2px solid #f0c36a;outline-offset:1px}

/* SYNC-READINGS-08 */
.telemetry-status{font-size:10px;max-width:280px;white-space:normal}@media(max-width:760px){.telemetry-status{max-width:160px;font-size:9px}}

/* CCTV-SETUP-01: mode-specific credential controls respect hidden. */
[data-component-id="CCTV-SETUP-01"] [hidden]{display:none!important}

/* ACCESS-01: login and accounts; no map geometry or legacy layout replacement. */
#root button[hidden]{display:none!important}
.access-login{min-height:100vh;display:grid;place-items:center;padding:24px;background:#10151d}.access-login form{width:min(440px,100%);padding:32px;border:1px solid #394451;border-radius:16px;background:#19212c}.access-login label{display:grid;gap:7px;margin:18px 0}.access-login button{width:100%}.access-login p{color:#aebbc9}.access-login [role=alert],#access-user-error{color:#ffb9bf;min-height:22px}.access-account{margin-top:22px;border-top:1px solid #34404f;padding-top:14px}.access-account>span{display:block;font-size:12px;padding:8px;color:#bac7d5}.access-users-overlay{position:fixed;inset:0;z-index:4000;background:#000b;display:grid;place-items:center;padding:20px}.access-users-card{background:#18212c;color:#e9eef5;border:1px solid #455263;border-radius:14px;padding:24px;width:min(1050px,100%);max-height:92vh;overflow:auto}.access-users-card header,.access-users-card footer{display:flex;justify-content:space-between;align-items:center;gap:14px}.access-users-card form .fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}.access-users-card label{display:grid;gap:7px}.access-users-card fieldset{margin:18px 0;border:1px solid #465569;border-radius:8px;padding:16px}.access-users-card .access-check{display:flex;align-items:center;gap:9px;margin:8px 0}.access-check input[type=checkbox]{width:auto}.access-users-card select[multiple]{min-height:120px}.access-users-card small{display:block;color:#aab7c5}

/* MAP-CAMERA-FILTER-01: view-only camera selector on map/CCTV toolbars. */
.camera-filter-control{display:inline-flex;align-items:center;gap:6px;flex-shrink:0;font-size:12px;color:var(--muted)}
.camera-filter-control select{max-width:155px;min-width:95px;padding:6px 8px;border:1px solid var(--line);border-radius:6px;background:var(--panel);color:var(--text);font:inherit}
@media(max-width:850px){.camera-filter-control{font-size:11px;gap:4px}.camera-filter-control select{max-width:130px;min-width:85px}.camera-filter-control>span{display:none}}

/* MAP-FULLSCREEN-01: the permanent root owns fullscreen, only the map is shown. */
#root:fullscreen{width:100%;height:100%;background:var(--bg)}
#root:fullscreen .app{width:100%;height:100%;min-height:0}
#root:fullscreen .sidebar,#root:fullscreen .topbar,#root:fullscreen .stat-strip,
#root:fullscreen .toolbar,#root:fullscreen #sync-banner{display:none}
#root:fullscreen .main-content{padding:0;gap:0}
#root:fullscreen .map-stage{border:0;border-radius:0;min-height:0}

/* ACCESS-CAMERA-SCOPE-01: searchable per-event camera permissions. */
.access-camera-list{max-height:230px;overflow:auto;border:1px solid var(--line);border-radius:7px;padding:8px}
.access-users-card .access-camera-option{display:flex;gap:9px;align-items:flex-start;padding:8px;border-bottom:1px solid var(--line)}
.access-camera-option small{display:block;color:var(--muted);font-size:11px;margin-top:4px}
.access-users-card .access-camera-option[hidden],[data-camera-picker][hidden]{display:none}
[data-camera-picker]>input{width:100%}

/* MAP-VLAN-COLOR-01: a slow halo attracts attention; marker position never animates. */
.marker-offline-halo{transform-box:fill-box;transform-origin:center;animation:gwa-offline-pulse 1.8s ease-in-out infinite;pointer-events:none}
@keyframes gwa-offline-pulse{0%,100%{opacity:.8;transform:scale(.98)}50%{opacity:.18;transform:scale(1.5)}}
@media(prefers-reduced-motion:reduce){.marker-offline-halo{animation:none;opacity:.85;transform:none}}
/* MAP-VLAN-LEGEND-01: independent of the toolbar, including fullscreen. */
.map-legend{position:absolute;z-index:5;left:12px;bottom:48px;max-width:min(430px,calc(100% - 75px));font-size:11px;color:var(--ink);background:#17212df2;border:1px solid #425467;border-radius:8px;box-shadow:0 4px 18px #0004}
.map-legend summary{cursor:pointer;padding:9px 12px;font-weight:650;list-style-position:inside}
.map-legend-body{padding:0 12px 12px;max-height:min(35vh,290px);overflow:auto}
.map-legend-body p{margin:0 0 10px;line-height:1.5;color:#c1ccd8}
.map-legend-vlans{display:flex;flex-wrap:wrap;gap:7px 14px}
.map-legend-vlans span,.map-legend-status span{display:flex;align-items:center;gap:6px;line-height:1.4}
.map-legend i{display:inline-block;flex:none;width:12px;height:12px;border:1px solid #e1e8ef;border-radius:3px}
.map-legend-status{display:grid;gap:7px;margin-top:12px;padding-top:10px;border-top:1px solid #425467}
.legend-offline{background:#dc2344}.legend-unknown{background:#8795a6}
.map-legend-body small{display:block;margin-top:10px;line-height:1.5;color:#b5c1cf}
@media(max-width:600px){.map-legend{bottom:49px;max-width:calc(100% - 70px)}.map-legend-body{max-height:30vh}.map-caption{max-width:calc(100% - 80px);text-align:right}}

/* ICMP-GRAPH-01: containers only. Native graph pixels remain unmodified. */
.icmp-controls{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;margin:16px 0}
.icmp-controls .field{min-width:160px;flex:1}.icmp-controls button{margin-bottom:1px}
.icmp-graphs-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,560px),1fr));gap:16px}
.icmp-graph-card{min-width:0;border:1px solid var(--border,#dce1e7);border-radius:8px;overflow:hidden;background:#fff;color:#1f2937}
.icmp-graph-heading{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;padding:10px 12px;border-bottom:1px solid #e2e6eb}
.icmp-graph-heading span{font-size:12px;color:#596575}.icmp-graph-image{overflow:auto;min-height:270px;background:#fff}
.icmp-graph-image img{display:block;max-width:none;margin:0 auto}.icmp-graph-image p{padding:20px;color:#596575}

/* DARK-UI-01: compact monitoring surfaces; map canvas and markers unchanged. */
.icmp-page{padding:2px 0 12px}.icmp-page .page-title{margin-bottom:12px}
.icmp-page h1{font-size:22px;letter-spacing:-.5px}.icmp-page>.muted{margin:8px 0;font-size:11px}
.icmp-controls{gap:10px;margin:12px 0;align-items:flex-end}.icmp-controls .field{gap:5px;min-width:130px}
.icmp-controls .field>span{font-size:11px;color:#a8b2bf}.icmp-controls select{padding:7px 9px;min-height:34px;font-size:12px}
.icmp-controls button{min-height:34px;padding:6px 10px;font-size:12px;background:#1b222b}
.icmp-live{display:inline-flex;align-items:center;gap:6px;align-self:flex-end;height:34px;color:#a6b6ad;font-size:11px;white-space:nowrap}
.icmp-live i{width:6px;height:6px;border-radius:50%;background:#35be80}
.icmp-graphs-grid{gap:10px;grid-template-columns:repeat(auto-fit,minmax(min(100%,490px),1fr))}
.icmp-graph-card{border:1px solid #30363e;border-radius:6px;background:#2b2b2b;color:#dce2e8;box-shadow:none}
.icmp-graph-heading{padding:8px 10px;gap:6px;border-bottom:1px solid #393c40;background:#25292e;font-size:12px}
.icmp-graph-heading strong{font-weight:550}.icmp-graph-heading span{font-size:11px;color:#aab4c0}
.icmp-graph-image{min-height:0;background:#2b2b2b}.icmp-graph-image img{width:100%;height:auto;max-width:100%;display:block}
.icmp-graph-image p{padding:12px;margin:0;color:#b2bdc9;font-size:12px;min-height:80px}
.modal-backdrop:has(.camera-popup),.modal-backdrop:has(.icmp-popup){padding:16px;background:#060a10a8;backdrop-filter:blur(2px)}
.camera-popup,.icmp-popup{padding:14px;border:1px solid #39424e;border-radius:8px;background:#171d25;box-shadow:0 10px 36px #0005;max-height:calc(100dvh - 32px)}
.camera-popup{width:min(980px,96vw)}.icmp-popup{width:min(1160px,96vw)}
.camera-popup .modal-title,.icmp-popup .modal-title{margin:0 0 8px;gap:12px}.camera-popup .modal-title h2,.icmp-popup .modal-title h2{font-size:16px;font-weight:600;letter-spacing:-.2px}
.camera-popup .camera-meta,.icmp-popup .camera-meta{margin:8px 0 10px;gap:6px 16px;font-size:11px}
.camera-popup .video-live{border:1px solid #333e4a;border-radius:5px;max-height:68dvh;min-height:0}
.camera-popup .player-note{font-size:10px;margin:6px 0;color:#8e9ba9}
.camera-popup .modal-foot,.icmp-popup .modal-foot{gap:6px;margin-top:10px;padding-top:10px;border-color:#303945}
.camera-popup .modal-foot button,.icmp-popup .modal-foot button{font-size:11px;min-height:32px;padding:6px 9px;border-radius:5px}
.icmp-popup .icmp-controls{margin:8px 0 10px}.icmp-popup .icmp-graph-heading{display:none}
@media(max-width:650px){.camera-popup,.icmp-popup{padding:10px}.icmp-controls{gap:8px}.icmp-live{width:100%;height:20px}.icmp-controls .field{min-width:110px}.icmp-graphs-grid{grid-template-columns:1fr}.camera-popup .modal-foot .spacer{display:none}}

/* ICMP-STABLE-01: reserve chart space and preserve scroll during image swaps. */
.icmp-page{overflow-anchor:none}.icmp-graphs-grid.icmp-compact{grid-template-columns:repeat(auto-fill,minmax(min(100%,340px),1fr));gap:8px}
.icmp-compact .icmp-graph-heading{padding:5px 8px;font-size:11px;gap:4px}.icmp-compact .icmp-graph-heading strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0}
.icmp-graph-heading button{padding:2px;min-height:22px;min-width:22px}.icmp-graph-heading button svg{width:13px;height:13px}
.icmp-graph-image{aspect-ratio:556/354;display:grid;place-items:center}.icmp-graph-image img{grid-area:1/1}
.icmp-compact .icmp-graph-image{aspect-ratio:476/274}.icmp-popup .icmp-graph-image{aspect-ratio:1116/394}
.icmp-graph-card[data-chart-error]::after{content:attr(data-chart-error);display:block;font-size:10px;color:#e7bd78;padding:4px 8px;background:#342c22}

.icmp-graph-card[data-chart-error]{position:relative}.icmp-graph-card[data-chart-error]::after{position:absolute;bottom:0;left:0;right:0;pointer-events:none}

/* MONITOR-FILTERS-01: shared compact page headers and scoped chart controls. */
.topbar{height:44px;padding:0 14px;gap:12px}.stat-strip{height:34px}
.main-content{padding:9px 12px 12px;gap:7px}.content-page{padding:0 0 10px}
.page-head{margin:0 0 8px;gap:12px;align-items:center}.page-head .eyebrow{display:none}
.page-head h1{font-size:20px;letter-spacing:-.4px;margin:0 0 2px}.page-head p{font-size:11px;line-height:1.35}
.page-head .actions button{min-height:30px;padding:5px 9px;font-size:11px}
.toolbar{min-height:38px;padding:4px 7px;gap:6px;border-radius:6px}.toolbar button,.toolbar .search-input{min-height:28px;padding:4px 8px;font-size:11px}
.icmp-page .page-head{margin:0 0 6px}.icmp-page h1{font-size:20px}
.icmp-page .icmp-controls{display:grid;grid-template-columns:auto minmax(120px,1fr) minmax(110px,.8fr) minmax(150px,1.3fr) minmax(110px,.7fr) minmax(120px,.8fr) auto;gap:8px;margin:0 0 6px;align-items:end}
.icmp-controls .field{margin-bottom:0;min-width:0;gap:3px}.icmp-controls select{width:100%;min-width:0;text-overflow:ellipsis;height:30px;min-height:30px;padding:5px 7px;font-size:11px}
.icmp-controls .field>span{font-size:10px}.icmp-controls button{height:30px;min-height:30px;padding:5px 8px;font-size:11px}.icmp-live{height:30px;font-size:10px}
.icmp-page>[data-graph-count]{margin:4px 0 6px;font-size:10px}
@media(max-width:1150px){.icmp-page .icmp-controls{grid-template-columns:repeat(3,minmax(0,1fr))}.icmp-page .icmp-live{grid-column:1/-1;height:16px;order:8}.icmp-page .icmp-controls>button{align-self:end}.icmp-page .icmp-controls .field{min-width:0}}
@media(max-width:650px){.topbar{height:42px;padding:0 8px;gap:8px}.main-content{padding:7px 8px;gap:6px}.page-head{gap:8px;flex-wrap:wrap}.page-head h1{font-size:18px}.icmp-page .icmp-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.icmp-page .icmp-live{width:auto}.icmp-controls .field{min-width:0}}

/* DASHBOARD-01: compact operational overview, same GWA tokens. */
.dashboard-controls{display:flex;align-items:end;gap:10px;margin:0 0 10px}.dashboard-controls .field{min-width:180px;margin:0}.dashboard-controls select{min-height:30px;font-size:11px;padding:5px 8px}.dashboard-controls>span{padding-bottom:7px}
.dashboard-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin-bottom:12px}.dashboard-metric{display:block;text-align:left;background:#191f27;border:1px solid #303945;border-radius:6px;padding:11px 13px}.dashboard-metric span{display:block;font-size:11px;color:#aab7c6}.dashboard-metric strong{display:block;font-size:27px;font-weight:650;line-height:1.3}.dashboard-metric.ok strong{color:#36c18a}.dashboard-metric.bad strong{color:#f16a79}.dashboard-metric.warn strong{color:#e5bd6d}
.dashboard-section{border:1px solid #303945;border-radius:6px;background:#171d25;padding:12px;margin-bottom:12px;min-width:0}.dashboard-section>header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.dashboard-section h2{font-size:13px;margin:0;font-weight:600}.dashboard-note{font-size:11px;color:#a2b0c1;line-height:1.5;margin:9px 0 0}.dashboard-links{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.dashboard-link{border:1px solid #35404e;border-radius:5px;background:#1d242e;padding:10px}.dashboard-link>div:first-child{display:flex;justify-content:space-between;align-items:center}.dashboard-link strong{font-size:13px}.dashboard-link small{font-size:10px;color:#9eafc0}.primary-link{border-color:#4e6f9a;background:#1c2939}.dashboard-link-rate{display:flex;gap:18px;margin-top:13px}.dashboard-link-rate span{font-size:10px;color:#a6b3c3}.dashboard-link-rate b{display:block;font-size:21px;font-weight:500}.dashboard-link p{font-size:10px;color:#cdb782;margin:7px 0 0}.dashboard-split{display:grid;grid-template-columns:1.35fr 1fr;gap:12px}.dashboard-bar{display:flex;align-items:center;gap:10px;margin:10px 0;font-size:11px}.dashboard-bar>span{width:160px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dashboard-bar>div{display:flex;flex:1;height:12px;border-radius:3px;overflow:hidden;background:#34404e}.dashboard-bar i{display:block;height:100%}.dashboard-bar .online{background:#2ab983}.dashboard-bar .offline{background:#e35c70}.dashboard-bar .unknown{background:#8995a6}.dashboard-bar b{font-size:10px;min-width:46px;text-align:right}.dashboard-legend{display:flex;gap:12px;font-size:10px;margin-bottom:10px}.dashboard-latency{display:flex;align-items:center;gap:8px;padding:7px 0;border-bottom:1px solid #2a333f;font-size:11px}.dashboard-latency>span{flex:1}.dashboard-latency small{display:block;font-size:10px;color:#8fa2b7}.dashboard-latency>b{font-weight:500}.dashboard-section .table-wrap{border-radius:4px}.dashboard-section td,.dashboard-section th{padding:9px 10px;font-size:11px}.dashboard-section td button{min-height:27px;padding:4px 8px;font-size:10px}.dashboard-severity{display:inline-block;border-radius:4px;padding:4px 7px;background:#303b48;white-space:nowrap}.dashboard-severity.s2{color:#e5c17e;background:#3b3324}.dashboard-severity.s3,.dashboard-severity.s4{color:#ffa08e;background:#482c2a}.dashboard-severity.s5{color:#ff93b2;background:#4b2738}
@media(max-width:1100px){.dashboard-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-links{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-split{grid-template-columns:1fr}}
@media(max-width:650px){.dashboard-controls{flex-wrap:wrap}.dashboard-controls .field{min-width:140px;flex:1}.dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-links{grid-template-columns:1fr}.dashboard-bar>span{width:100px}.dashboard-section{padding:9px}}

/* BANDWIDTH-01: actual WAN counter history; ICMP native charts are unchanged. */
.bandwidth-chart{display:block;width:100%;height:auto;min-height:150px;max-height:280px;background:#292929;border:1px solid #34383d;border-radius:3px;margin-top:8px}.bandwidth-chart text{fill:#bfc8d4;font-size:10px}.bandwidth-grid{stroke:#45494b;stroke-width:.7;stroke-dasharray:2 3}.bandwidth-legend{display:flex;align-items:center;gap:16px;flex-wrap:wrap;font-size:11px}.bandwidth-legend small{color:var(--muted);margin-left:auto}.bandwidth-utilization{display:flex;gap:16px;color:var(--muted);font-size:10px}.dashboard-link p.online{color:var(--green,#24ce78)}.dashboard-link-rate b{font-size:20px}

.vlan-internet-rates{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:8px}.vlan-internet-rate{display:flex;flex-direction:column;gap:6px;align-items:flex-start;text-align:left;padding:10px;border:1px solid var(--line);border-radius:4px;background:var(--surface);color:var(--text);min-width:0}.vlan-internet-rate>span{font-size:12px;font-weight:600}.vlan-internet-rate strong{font-size:14px}.vlan-internet-rate small{color:var(--muted);font-size:10px}.vlan-internet-rate:hover{border-color:#58b6ef}

/* MONITOR-FULLSCREEN-01: native charts, readable scale, no crop or hidden devices. */
.icmp-page .icmp-controls{grid-template-columns:auto minmax(110px,1fr) minmax(100px,.8fr) minmax(140px,1.2fr) minmax(105px,.7fr) minmax(115px,.8fr) auto auto}
#root.monitor-fullscreen:fullscreen .icmp-page{padding:8px;scrollbar-gutter:stable}
#root.monitor-fullscreen:fullscreen .icmp-page>.page-head{display:none}
#root.monitor-fullscreen:fullscreen .icmp-controls{position:sticky;top:-8px;z-index:5;background:var(--bg);padding:4px 0 6px;margin:0;gap:6px}
#root.monitor-fullscreen:fullscreen .icmp-graphs-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,440px),1fr));gap:6px;align-items:start}
#root.monitor-fullscreen:fullscreen .icmp-graph-heading{padding:4px 7px;font-size:12px;gap:6px}
#root.monitor-fullscreen:fullscreen .icmp-graph-heading span{font-size:11px;flex-shrink:0}
#root.monitor-fullscreen:fullscreen .icmp-graph-heading strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;flex:1}
#root.monitor-fullscreen:fullscreen .icmp-page>[data-graph-count]{margin:2px 0 5px;font-size:11px}
@media(max-width:1300px){.icmp-page .icmp-controls{grid-template-columns:repeat(4,minmax(0,1fr))}.icmp-page .icmp-controls .field{min-width:0}.icmp-page .icmp-live{height:24px;order:0;grid-column:auto}}
@media(max-width:650px){.icmp-page .icmp-controls{grid-template-columns:repeat(2,minmax(0,1fr))}#root.monitor-fullscreen:fullscreen .icmp-page{padding:5px}}

/* MONITOR-SIZE-01: selected columns only affect fullscreen; no chart re-render. */
.monitor-columns{display:none}
#root.monitor-fullscreen:fullscreen .monitor-columns{display:flex}
#root.monitor-fullscreen:fullscreen .icmp-controls{grid-template-columns:auto minmax(110px,1fr) minmax(100px,.8fr) minmax(140px,1.2fr) minmax(105px,.7fr) minmax(115px,.8fr) minmax(125px,.8fr) auto auto}
#root.monitor-fullscreen:fullscreen .icmp-graphs-grid{grid-template-columns:repeat(var(--icmp-fullscreen-columns,1),minmax(0,1fr))}
@media(max-width:1300px){#root.monitor-fullscreen:fullscreen .icmp-controls{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:650px){#root.monitor-fullscreen:fullscreen .icmp-controls{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* SIDEBAR-FIT-01: adapt to viewport height; keep overflow accessible without a rail. */
.sidebar{min-height:0;max-height:100vh;max-height:100dvh;overflow-x:hidden;overflow-y:auto;scrollbar-width:none;-ms-overflow-style:none;overscroll-behavior-y:contain}
.sidebar::-webkit-scrollbar{display:none;width:0;height:0}
.sidebar>.brand,.sidebar>.nav-group,.sidebar>.sidebar-bottom{flex-shrink:0}
.sidebar .brand{padding:20px 25px 16px}
.sidebar .nav-group{padding:12px 18px 8px}
.sidebar .nav-link{min-height:34px;padding:8px 11px;margin:1px 0}
.sidebar .nav-group>.nav-caption:not(:first-child){margin-top:14px!important}
.sidebar .access-account{margin-top:14px;padding-top:8px}
.sidebar .access-account>span{padding:5px 8px;font-size:11px;line-height:1.45}
.sidebar .sidebar-bottom{padding:12px 18px}
.sidebar .event-card{padding:11px}
.sidebar .save-indicator{padding-top:8px;line-height:1.35}
@media(max-height:850px){
 .sidebar .brand{padding:13px 24px 11px}
 .sidebar .brand-word{font-size:30px}
 .sidebar .brand-small{font-size:9px;margin-top:5px}
 .sidebar .nav-group{padding:8px 14px 6px}
 .sidebar .nav-link{min-height:32px;padding:6px 10px;margin:1px 0}
 .sidebar .nav-caption{font-size:9px;margin-bottom:6px}
 .sidebar .nav-group>.nav-caption:not(:first-child){margin-top:10px!important}
 .sidebar .access-account{margin-top:10px;padding-top:6px}
 .sidebar .access-account>span{padding:4px 6px}
 .sidebar .sidebar-bottom{padding:10px 14px}
 .sidebar .event-card{padding:9px}
 .sidebar .event-card select{margin-top:4px;min-height:30px}
 .sidebar .save-indicator{padding-top:6px}
}
@media(max-height:740px){
 .sidebar .brand{padding:9px 24px 8px}
 .sidebar .brand-word{font-size:28px}
 .sidebar .nav-group{padding:6px 14px 4px}
 .sidebar .nav-link{margin:0}
 .sidebar .access-account{margin-top:8px;padding-top:4px}
 .sidebar .sidebar-bottom{padding:8px 14px}
 .sidebar .event-card{padding:8px}
 .sidebar .save-indicator{padding-top:4px}
}
/* ALERTS-TAB-01: summaries fit each page without empty dashboard columns. */
.dashboard-page .dashboard-metrics{grid-template-columns:repeat(5,minmax(0,1fr))}
.alerts-page .dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:1100px){.dashboard-page .dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ICMP-COMPACT-01: small cards for every count; enlarge only by explicit action. */
.icmp-graphs-grid.icmp-compact{grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr));gap:8px;align-content:start;align-items:start;justify-content:start}
.icmp-page .icmp-graph-card{width:100%;max-width:400px;align-self:start;justify-self:start}
.icmp-page .icmp-graph-image{overflow:hidden}
.icmp-popup{display:flex;flex-direction:column;min-height:0;max-height:calc(100dvh - 32px);overflow:auto}
.icmp-popup>.modal-title,.icmp-popup>.camera-meta,.icmp-popup>.icmp-controls,.icmp-popup>.modal-foot{flex-shrink:0}
.icmp-popup>.icmp-graph-card{flex:0 1 auto;min-height:0;width:100%;max-width:none}
.icmp-popup .icmp-graph-image{aspect-ratio:auto;display:flex;align-items:center;justify-content:center;overflow:visible}
.icmp-popup .icmp-graph-image img{width:auto;height:auto;max-width:100%;max-height:var(--icmp-popup-chart-height,calc(100dvh - 250px));object-fit:contain;margin:0 auto}
