@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@600;700&display=swap');
html:root {
  --dx-canvas: #050d14; --dx-surface: #0b1720; --dx-raised: #11202b; --dx-hover: #162836; --dx-rail: #071119;
  --dx-line: #1a2a36; --dx-line-2: #22364a;
  --dx-text: #eff3f7; --dx-text-2: #949ca5; --dx-text-3: #73808c;
  --dx-accent: #3ac1eb; --dx-accent-2: #95ddf7; --dx-accent-weak: rgba(58,193,235,.12);
  --dx-red: #de3243; --dx-red-weak: rgba(222,50,67,.14); --dx-amber: #ffab40; --dx-amber-weak: rgba(255,171,64,.14); --dx-green: #26cc86; --dx-green-weak: rgba(38,204,134,.14);
  --dx-r1: 6px; --dx-r2: 8px; --dx-r3: 12px;
  --dx-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --sidebar-width: 220px; --header-height: 56px;
  --primary: var(--dx-accent); --primary-hover: var(--dx-accent-2); --primary-light: var(--dx-accent-weak); --secondary: var(--dx-text-2);
  --accent: var(--dx-amber); --danger: var(--dx-red); --warning: var(--dx-amber); --success: var(--dx-green); --info: var(--dx-accent); --color-primary: var(--dx-accent);
  --bg-primary: var(--dx-canvas); --bg-secondary: var(--dx-surface); --bg-tertiary: var(--dx-raised); --bg-card: var(--dx-surface); --bg-hover: var(--dx-hover); --bg-sidebar: var(--dx-rail);
  --text-primary: var(--dx-text); --text-secondary: var(--dx-text-2); --text-muted: var(--dx-text-3); --text-inverse: var(--dx-canvas);
  --border-color: var(--dx-line); --border-hover: var(--dx-line-2);
  --shadow-xs: none; --shadow-sm: none; --shadow-md: none; --shadow-lg: 0 24px 64px rgba(0,0,0,.6); --shadow-xl: 0 24px 64px rgba(0,0,0,.6);
  --radius-sm: 4px; --radius-md: 6px; --radius-lg: 8px;
  --font-family: var(--dx-font);
  --vi-bg: var(--dx-canvas); --vi-surface: var(--dx-surface); --vi-surface-2: var(--dx-raised); --vi-text: var(--dx-text); --vi-text-2: var(--dx-text-2); --vi-text-3: var(--dx-text-3);
  --vi-line: var(--dx-line); --vi-line-2: var(--dx-line-2); --vi-accent: var(--dx-accent); --vi-accent-weak: var(--dx-accent-weak);
  --vi-red: var(--dx-red); --vi-red-weak: var(--dx-red-weak); --vi-orange: var(--dx-amber); --vi-orange-weak: var(--dx-amber-weak); --vi-green: var(--dx-green); --vi-green-weak: var(--dx-green-weak);
  --vi-radius: 8px; --vi-radius-sm: 6px; --vi-shadow: none; --vi-shadow-lg: 0 24px 64px rgba(0,0,0,.6); --vi-font: var(--dx-font);
  --pb-accent: var(--dx-accent); --pb-accent-hover: var(--dx-accent-2); --pb-accent-light: var(--dx-accent-weak); --pb-accent-glow: rgba(58,193,235,.25);
  --pb-bg: var(--dx-surface); --pb-bg-alt: var(--dx-surface); --pb-bg-inset: var(--dx-raised); --pb-border: var(--dx-line); --pb-border-hover: var(--dx-line-2);
  --pb-text: var(--dx-text); --pb-text-sec: var(--dx-text-2); --pb-text-muted: var(--dx-text-3);
  --pb-success: var(--dx-green); --pb-danger: var(--dx-red); --pb-warning: var(--dx-amber); --pb-playhead: var(--dx-red); --pb-segment: var(--dx-accent); --pb-segment-end: #007faf; --pb-gap: var(--dx-raised);
  --pb-shadow-sm: none; --pb-shadow-md: none; --pb-shadow-lg: 0 24px 64px rgba(0,0,0,.6); --pb-font: var(--dx-font);
  --pb-radius-sm: 4px; --pb-radius-md: 6px; --pb-radius-lg: 8px; --pb-radius-xl: 8px;
  color-scheme: dark;
}
html, body { background: var(--dx-canvas) !important; color: var(--dx-text); font-family: var(--dx-font) !important; font-size: 13px; -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
body, button, input, select, textarea { font-family: var(--dx-font) !important; }
.app-layout, .app-container, .main-content, .page-content, .container { background: var(--dx-canvas) !important; }

.sidebar, .sidebar:hover { width: var(--sidebar-width) !important; background: var(--dx-rail) !important; border-right: 1px solid var(--dx-line) !important; box-shadow: none !important; padding: 0 !important; align-items: stretch !important; overflow: hidden auto; }
.main-content, .sidebar:hover ~ .main-content { margin-left: var(--sidebar-width) !important; width: calc(100% - var(--sidebar-width)) !important; }
.sidebar-logo { height: var(--header-height) !important; min-height: var(--header-height) !important; padding: 0 18px !important; display: flex !important; align-items: center !important; justify-content: flex-start !important; border-bottom: 1px solid var(--dx-line) !important; margin: 0 !important; }
.sidebar-logo::after { display: none !important; }
.sidebar-logo .logo-icon { background: none !important; color: var(--dx-text) !important; font-size: 15px !important; font-weight: 700 !important; letter-spacing: .18em !important; width: auto !important; height: auto !important; box-shadow: none !important; }
.sidebar-logo .logo-icon b { color: var(--dx-accent); font-weight: 700; }
.sidebar-section { padding: 8px 10px 16px !important; display: flex !important; flex-direction: column !important; gap: 1px !important; align-items: stretch !important; }
.sidebar-group { font-size: 11px; font-weight: 500; color: var(--dx-text-3); padding: 16px 10px 6px; }
.sidebar-icon { display: flex !important; flex-direction: row !important; align-items: center !important; justify-content: flex-start !important; gap: 11px !important; width: auto !important; height: 34px !important; min-height: 34px !important; padding: 0 10px !important; margin: 0 !important; border-radius: var(--dx-r2) !important; color: var(--dx-text-2) !important; background: none !important; cursor: pointer; position: relative; }
.sidebar-icon:hover { background: var(--dx-surface) !important; color: var(--dx-text) !important; }
.sidebar-icon.active { background: var(--dx-raised) !important; color: #fff !important; }
.sidebar-icon.active::before { display: none !important; }
.sidebar-icon-wrapper { width: 18px !important; height: 18px !important; min-width: 18px !important; display: flex !important; align-items: center; justify-content: center; position: static !important; }
.sidebar-icon svg { width: 17px !important; height: 17px !important; stroke-width: 1.7 !important; }
.sidebar-icon.active svg { color: var(--dx-accent); }
.sidebar-icon-label, .sidebar:hover .sidebar-icon-label { display: block !important; opacity: 1 !important; visibility: visible !important; position: static !important; transform: none !important; font-size: 13px !important; font-weight: 500 !important; color: inherit !important; white-space: nowrap; background: none !important; padding: 0 !important; margin: 0 !important; width: auto !important; box-shadow: none !important; }
.sidebar-badge { position: absolute !important; right: 10px !important; top: 50% !important; left: auto !important; transform: translateY(-50%) !important; min-width: 20px !important; height: 18px !important; padding: 0 6px !important; border-radius: 9px !important; background: var(--dx-amber-weak) !important; color: var(--dx-amber) !important; font-size: 11px !important; font-weight: 600 !important; line-height: 18px !important; text-align: center; border: 0 !important; box-shadow: none !important; }

.header { height: var(--header-height) !important; background: var(--dx-canvas) !important; border-bottom: 1px solid var(--dx-line) !important; box-shadow: none !important; padding: 0 24px !important; }
#workspace-tabs, .header-tabs { display: none !important; }
.search-bar, .language-selector, .tenant-badge { height: 32px !important; border-radius: var(--dx-r2) !important; font-size: 13px !important; }

.page-content { padding: 20px 24px 48px !important; }
.page-header { margin: 0 0 16px !important; padding: 0 !important; border: 0 !important; background: none !important; min-height: 32px; }
.page-title, .vi-title { font-size: 18px !important; font-weight: 600 !important; letter-spacing: -0.01em !important; color: var(--dx-text) !important; margin: 0 !important; }
.page-subtitle, .vi-sub { font-size: 13px !important; color: var(--dx-text-2) !important; }
h1, h2, h3, h4 { color: var(--dx-text); letter-spacing: -0.005em; }

.card, .panel, .modal-content, .drawer, .dropdown-menu, .user-dropdown, .stat-card, .device-card, .table-container, .filter-bar, .toolbar { background: var(--dx-surface) !important; color: var(--dx-text); border: 1px solid var(--dx-line) !important; border-radius: var(--dx-r3) !important; box-shadow: none !important; }
.modal-content, .dropdown-menu, .user-dropdown { box-shadow: 0 24px 64px rgba(0,0,0,.6) !important; }
input, select, textarea, .form-input, .form-select, .search-bar, .language-selector, .tenant-badge { background-color: var(--dx-surface) !important; color: var(--dx-text) !important; border-color: var(--dx-line) !important; }
input:focus, select:focus, textarea:focus { border-color: var(--dx-accent) !important; outline: none; }
input::placeholder, textarea::placeholder { color: var(--dx-text-3) !important; }
.search-bar input { background: transparent !important; border: 0 !important; }
table, th, td { border-color: var(--dx-line) !important; }
th { background: var(--dx-surface) !important; color: var(--dx-text-2) !important; font-weight: 500 !important; font-size: 12px !important; text-transform: none !important; letter-spacing: 0 !important; }
tr:hover td { background: var(--dx-raised) !important; }
.btn, button.btn { border-radius: var(--dx-r2) !important; font-size: 13px !important; font-weight: 500 !important; height: 32px; padding: 0 12px !important; box-shadow: none !important; }
.btn-secondary, .btn-outline, .btn-ghost, .btn-icon { background: var(--dx-surface) !important; color: var(--dx-text) !important; border: 1px solid var(--dx-line) !important; }
.btn-secondary:hover, .btn-outline:hover, .btn-icon:hover { background: var(--dx-raised) !important; border-color: var(--dx-line-2) !important; }
.btn-primary { background: var(--dx-accent) !important; border: 1px solid var(--dx-accent) !important; color: #fff !important; }
.btn-primary:hover { background: var(--dx-accent-2) !important; }
.tab, .tabs .tab { color: var(--dx-text-2) !important; }
.tab.active { color: #fff !important; border-color: var(--dx-accent) !important; }
.text-muted, small { color: var(--dx-text-2) !important; }
a { color: var(--dx-accent-2); }
hr { border-color: var(--dx-line); }
.user-dropdown-item { color: var(--dx-text) !important; }
.user-dropdown-item:hover { background: var(--dx-raised) !important; }
html body .badge-online { background: var(--dx-green-weak) !important; color: var(--dx-green) !important; border-color: transparent !important; }
html body .badge-offline { background: var(--dx-amber-weak) !important; color: var(--dx-amber) !important; border-color: transparent !important; }
html body .badge-ai-app { background: var(--dx-accent-weak) !important; color: #95ddf7 !important; border-color: transparent !important; }

html body #map.leaflet-container, html body .leaflet-container { background: var(--dx-canvas) !important; }
.leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.78) contrast(.9) saturate(.25); }
html body .leaflet-bar a { background: var(--dx-surface) !important; color: var(--dx-text) !important; border-color: var(--dx-line) !important; }
.leaflet-control-attribution { background: rgba(5,13,20,.7) !important; color: var(--dx-text-3) !important; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--dx-surface) !important; color: var(--dx-text) !important; }

.vw-group { background: var(--dx-surface) !important; border-color: var(--dx-line) !important; }
.vw-group-body { background: var(--dx-canvas) !important; }
.vw-cam { background: var(--dx-surface) !important; border-color: var(--dx-line) !important; color: var(--dx-text) !important; }
.vw-cam:hover { background: var(--dx-raised) !important; border-color: var(--dx-line-2) !important; }

[style*="background:#fff"], [style*="background: #fff"], [style*="background:white"], [style*="background: white"], [style*="background-color:#fff"], [style*="background-color: #fff"], [style*="background:#ffffff"], [style*="background: #ffffff"], [style*="background-color: white"] { background: var(--dx-surface) !important; }
[style*="background:#f1f3f4"], [style*="background: #f1f3f4"], [style*="background:#f8f9fa"], [style*="background: #f8f9fa"], [style*="background:#e8eaed"], [style*="background: #e8eaed"], [style*="background:#f5f5f5"], [style*="background: #f5f5f5"], [style*="background:#fafafa"] { background: var(--dx-raised) !important; }
[style*="background:#e8f0fe"], [style*="background: #e8f0fe"], [style*="background:#dbeafe"], [style*="background: #dbeafe"] { background: var(--dx-accent-weak) !important; }
[style*="background:#d4edda"], [style*="background: #d4edda"] { background: var(--dx-green-weak) !important; }
[style*="background:#1a73e8"], [style*="background: #1a73e8"] { background: var(--dx-accent) !important; }
[style*="color:#202124"], [style*="color: #202124"], [style*="color:#3c4043"], [style*="color: #3c4043"], [style*="color:#333"], [style*="color: #333"], [style*="color:#212529"] { color: var(--dx-text) !important; }
[style*="color:#5f6368"], [style*="color: #5f6368"], [style*="color:#80868b"], [style*="color: #80868b"], [style*="color:#6b7280"], [style*="color: #6b7280"], [style*="color:#9aa0a6"], [style*="color: #9aa0a6"] { color: var(--dx-text-2) !important; }
[style*="color:#1a73e8"], [style*="color: #1a73e8"] { color: var(--dx-accent-2) !important; }
[style*="solid #e8eaed"], [style*="solid #e0e0e0"], [style*="solid #dee2e6"], [style*="solid #dadce0"], [style*="solid #f1f3f4"] { border-color: var(--dx-line) !important; }

.logo-large .logo-icon-large { width: auto !important; height: auto !important; background: none !important; box-shadow: none !important; color: var(--dx-text) !important; font-size: 24px !important; font-weight: 700 !important; letter-spacing: .18em !important; }
.logo-large .logo-icon-large b { color: var(--dx-accent); font-weight: 700; }
.logo-large h1 { display: none !important; }
.login-page { background: var(--dx-rail) !important; }
html body .login-container { background: transparent !important; align-self: center; }
.login-card { background: var(--dx-surface) !important; border: 1px solid var(--dx-line) !important; border-radius: var(--dx-r3) !important; box-shadow: none !important; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #1a2f3d; border-radius: 6px; border: 2px solid var(--dx-canvas); }
::-webkit-scrollbar-track { background: transparent; }
:focus-visible { outline: 2px solid var(--dx-accent); outline-offset: 2px; }

body.vi-page .vi { padding: 20px 24px 48px; max-width: none; font-size: 13px; }
body.vi-page .vi-head { align-items: center; margin-bottom: 16px; min-height: 32px; }
body.vi-page .vi-head .vi-sub { display: none; }
body.vi-page .vi-tabs { display: none; }
body.vi-page .vi-navrow { gap: 6px; }

.wx { display: flex; flex-direction: column; gap: 16px; }
.wx-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wx-state { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px 0 10px; border-radius: 14px; font-size: 13px; font-weight: 600; background: var(--dx-green-weak); color: var(--dx-green); white-space: nowrap; }
.wx-state i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.wx-state.amber { background: var(--dx-amber-weak); color: var(--dx-amber); }
.wx-state.red { background: var(--dx-red-weak); color: var(--dx-red); }
.wx-state.dim { background: var(--dx-raised); color: var(--dx-text-2); }
.wx-sub { color: var(--dx-text-2); font-size: 13px; margin: 0; flex: 1; min-width: 200px; }
.wx-nav { display: flex; align-items: center; gap: 8px; }
.wx-facts { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--dx-line); border-radius: var(--dx-r3); background: var(--dx-surface); overflow: hidden; }
.wx-fact { display: flex; align-items: baseline; gap: 10px; padding: 14px 16px; border: 0; border-right: 1px solid var(--dx-line); background: none; color: var(--dx-text-2); font-size: 13px; text-align: left; cursor: pointer; min-width: 0; }
.wx-fact:last-child { border-right: 0; }
.wx-fact:hover { background: var(--dx-raised); }
.wx-fact b { font-size: 20px; font-weight: 600; color: var(--dx-text); font-variant-numeric: tabular-nums; }
.wx-fact.amber b { color: var(--dx-amber); }
.wx-fact span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wx-day { border: 1px solid var(--dx-line); border-radius: var(--dx-r3); background: var(--dx-surface); padding: 14px 16px 10px; }
.wx-day-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.wx-day-h h3, .wx-list-h h3 { font-size: 13px; font-weight: 600; margin: 0; color: var(--dx-text); }
.wx-legend { display: flex; gap: 14px; font-size: 12px; color: var(--dx-text-2); flex-wrap: wrap; }
.wx-legend span { display: inline-flex; align-items: center; gap: 6px; }
.wx-legend i { width: 8px; height: 8px; border-radius: 2px; background: #22364a; }
.wx-legend i.amber { background: var(--dx-amber); } .wx-legend i.red { background: var(--dx-red); } .wx-legend i.green { background: var(--dx-green); } .wx-legend i.blue { background: var(--dx-accent); }
.wx-track { position: relative; height: 56px; border-radius: var(--dx-r1); background: repeating-linear-gradient(to right, transparent 0, transparent calc(12.5% - 1px), var(--dx-line) calc(12.5% - 1px), var(--dx-line) 12.5%); border: 1px solid var(--dx-line); overflow: hidden; }
.wx-bars { position: absolute; inset: 0 0 18px 0; }
.wx-bars i { position: absolute; bottom: 0; width: calc(100% / 24 - 2px); margin-left: 1px; background: #1a2f3d; border-radius: 2px 2px 0 0; }
.wx-marks { position: absolute; left: 0; right: 0; bottom: 0; height: 18px; background: rgba(0,0,0,.25); border-top: 1px solid var(--dx-line); }
.wx-mark { position: absolute; top: 4px; height: 10px; min-width: 6px; border: 0; border-radius: 2px; padding: 0; background: #536573; cursor: pointer; }
.wx-mark.amber { background: var(--dx-amber); } .wx-mark.red { background: var(--dx-red); } .wx-mark.green { background: var(--dx-green); } .wx-mark.blue { background: var(--dx-accent); }
.wx-mark.on { outline: 2px solid #fff; outline-offset: 1px; z-index: 2; }
.wx-mark:hover { filter: brightness(1.25); }
.wx-now { position: absolute; top: 0; bottom: 0; width: 1px; background: #fff; opacity: .7; }
.wx-future { position: absolute; top: 0; bottom: 0; right: 0; background: rgba(5,13,20,.6); }
.wx-ticks { position: relative; height: 18px; margin-top: 4px; font-size: 11px; color: var(--dx-text-3); font-variant-numeric: tabular-nums; }
.wx-ticks span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.wx-ticks span:first-child { transform: none; } .wx-ticks span:last-child { transform: translateX(-100%); }
.wx-main { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
.wx-view { border: 1px solid var(--dx-line); border-radius: var(--dx-r3); background: var(--dx-surface); overflow: hidden; }
.wx-pic { position: relative; aspect-ratio: 16 / 9; background: #000; cursor: zoom-in; }
.wx-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.wx-pic .vi-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #22364a; }
.wx-pic .vi-ph svg { width: 40px; height: 40px; }
.wx-count { position: absolute; right: 10px; bottom: 10px; padding: 3px 8px; border-radius: var(--dx-r1); background: rgba(0,0,0,.65); color: #fff; font-size: 12px; font-variant-numeric: tabular-nums; }
.wx-frames { display: flex; gap: 6px; padding: 8px; overflow-x: auto; background: var(--dx-rail); border-top: 1px solid var(--dx-line); }
.wx-frame { position: relative; flex: 0 0 112px; aspect-ratio: 16 / 9; padding: 0; border: 1px solid transparent; border-radius: var(--dx-r1); overflow: hidden; background: #000; cursor: pointer; opacity: .6; }
.wx-frame:hover { opacity: 1; }
.wx-frame.on { opacity: 1; border-color: var(--dx-accent); box-shadow: 0 0 0 1px var(--dx-accent); }
.wx-frame > div { position: absolute; inset: 0; }
.wx-frame img { width: 100%; height: 100%; object-fit: cover; }
.wx-frame span { position: absolute; left: 4px; bottom: 3px; font-size: 10px; color: #fff; text-shadow: 0 1px 2px #000; font-variant-numeric: tabular-nums; }
.wx-info { padding: 16px; border-top: 1px solid var(--dx-line); }
.wx-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--dx-text-2); margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.wx-tag { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: var(--dx-r1); font-size: 12px; font-weight: 600; background: var(--dx-raised); color: var(--dx-text-2); }
.wx-tag.amber { background: var(--dx-amber-weak); color: var(--dx-amber); } .wx-tag.red { background: var(--dx-red-weak); color: var(--dx-red); } .wx-tag.green { background: var(--dx-green-weak); color: var(--dx-green); } .wx-tag.blue { background: var(--dx-accent-weak); color: #95ddf7; }
.wx-info h2 { font-size: 18px; font-weight: 600; margin: 0 0 4px; }
.wx-info p { margin: 0; color: var(--dx-text-2); font-size: 13px; line-height: 1.5; max-width: 70ch; }
.wx-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.wx-chips .vi-sig { box-shadow: none; }
.wx-act { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.wx-empty { aspect-ratio: 16 / 9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--dx-text-2); }
.wx-empty svg { width: 28px; height: 28px; color: var(--dx-green); }
.wx-list { border: 1px solid var(--dx-line); border-radius: var(--dx-r3); background: var(--dx-surface); display: flex; flex-direction: column; max-height: calc(100vh - 150px); position: sticky; top: 12px; }
.wx-list-h { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--dx-line); }
.wx-list-h span { font-size: 12px; color: var(--dx-text-2); }
#w-entries { overflow-y: auto; padding: 6px; }
.wx-entry { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; width: 100%; padding: 8px; border: 0; border-radius: var(--dx-r2); background: none; color: inherit; text-align: left; cursor: pointer; }
.wx-entry:hover { background: var(--dx-raised); }
.wx-entry.on { background: var(--dx-raised); box-shadow: inset 2px 0 0 var(--dx-accent); }
.wx-th { position: relative; aspect-ratio: 16 / 9; border-radius: var(--dx-r1); overflow: hidden; background: #000; }
.wx-th img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wx-th .vi-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #22364a; }
.wx-th .vi-ph svg { width: 18px; height: 18px; }
.wx-et { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.wx-et b { font-size: 13px; font-weight: 600; color: var(--dx-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wx-et em { font-style: normal; font-size: 12px; color: var(--dx-text-2); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.wx-et small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--dx-text-3) !important; font-variant-numeric: tabular-nums; }
.wx-et small i { width: 6px; height: 6px; border-radius: 50%; background: #536573; flex: none; }
.wx-entry.amber small i { background: var(--dx-amber); } .wx-entry.red small i { background: var(--dx-red); } .wx-entry.green small i { background: var(--dx-green); } .wx-entry.blue small i { background: var(--dx-accent); }
.wx-quiet { padding: 28px 16px; color: var(--dx-text-2); text-align: center; margin: 0; }
@media (max-width: 1100px) { .wx-main { grid-template-columns: 1fr; } .wx-list { position: static; max-height: 420px; } .wx-facts { grid-template-columns: repeat(2, 1fr); } .wx-fact:nth-child(2) { border-right: 0; } .wx-fact:nth-child(-n+2) { border-bottom: 1px solid var(--dx-line); } }
@media (max-width: 860px) { html:root { --sidebar-width: 56px; } .sidebar-icon-label, .sidebar-group, .sidebar-logo .logo-icon { display: none !important; } .sidebar-badge { right: 2px !important; top: 6px !important; transform: none !important; } }
html:root body.vi-page { --vi-bg: var(--dx-canvas); --vi-surface: var(--dx-surface); --vi-surface-2: var(--dx-raised); --vi-text: var(--dx-text); --vi-text-2: var(--dx-text-2); --vi-text-3: var(--dx-text-3); --vi-line: var(--dx-line); --vi-line-2: var(--dx-line-2); --vi-accent: var(--dx-accent); --vi-accent-weak: var(--dx-accent-weak); --vi-red: var(--dx-red); --vi-red-weak: var(--dx-red-weak); --vi-orange: var(--dx-amber); --vi-orange-weak: var(--dx-amber-weak); --vi-green: var(--dx-green); --vi-green-weak: var(--dx-green-weak); --vi-radius: 8px; --vi-radius-sm: 6px; --vi-shadow: none; --vi-font: var(--dx-font); }
html body.vi-page .vi-head .vi-title { display: block !important; }
html body.vi-page #vi-crumb { display: block !important; }
html body.vi-page .vi-head { justify-content: space-between !important; }

.ix { display: flex; flex-direction: column; gap: 16px; }
.ix-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ix-stat { border: 1px solid var(--dx-line); border-radius: var(--dx-r3); background: var(--dx-surface); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ix-l { font-size: 12px; color: var(--dx-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ix-v { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.ix-v b { font-size: 26px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.ix-spark { width: 120px; height: 30px; flex: none; }
.ix-spark polyline { fill: none; stroke: var(--dx-accent); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.ix-spark polygon { fill: var(--dx-accent-weak); stroke: none; }
.ix-stat.amber .ix-spark polyline { stroke: var(--dx-amber); } .ix-stat.amber .ix-spark polygon { fill: var(--dx-amber-weak); }
.ix-stat.green .ix-spark polyline { stroke: var(--dx-green); } .ix-stat.green .ix-spark polygon { fill: var(--dx-green-weak); }
.ix-delta { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--dx-text-3); }
.ix-delta svg { width: 12px; height: 12px; }
.ix-delta.good { color: var(--dx-green); } .ix-delta.bad { color: var(--dx-amber); }
.ix-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
.ix-card { border: 1px solid var(--dx-line); border-radius: var(--dx-r3); background: var(--dx-surface); padding: 16px; min-width: 0; }
.ix-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.ix-h h3 { font-size: 13px; font-weight: 600; margin: 0; }
.ix-plot { display: flex; gap: 8px; height: 220px; }
.ix-y { position: relative; width: 28px; margin-bottom: 22px; font-size: 11px; color: var(--dx-text-3); font-variant-numeric: tabular-nums; }
.ix-y span { position: absolute; right: 0; transform: translateY(50%); }
.ix-cols { flex: 1; display: flex; gap: 6px; align-items: stretch; border-bottom: 1px solid var(--dx-line); margin-bottom: 22px; background: linear-gradient(to bottom, var(--dx-line) 1px, transparent 1px) 0 0 / 100% 50% repeat-y; }
.ix-col { flex: 1; position: relative; display: flex; align-items: flex-end; justify-content: center; min-width: 0; }
.ix-col:hover { background: rgba(255,255,255,.03); }
.ix-stack { width: min(100%, 36px); display: flex; flex-direction: column; gap: 2px; min-height: 0; }
.ix-stack i { display: block; min-height: 2px; background: #22364a; border-radius: 2px; }
.ix-stack i.amber { background: var(--dx-amber); } .ix-stack i.green { background: var(--dx-green); }
.ix-col span { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--dx-text-3); white-space: nowrap; }
.ix-heat { display: flex; flex-direction: column; gap: 3px; }
.ix-hrow { display: grid; grid-template-columns: 36px repeat(24, minmax(0, 1fr)); gap: 3px; align-items: center; }
.ix-hrow span { font-size: 11px; color: var(--dx-text-2); }
.ix-hrow i { display: block; height: 22px; border-radius: 3px; background: var(--dx-raised); }
.ix-hrow i:hover { outline: 1px solid #fff; }
.ix-hhead em { font-style: normal; font-size: 11px; color: var(--dx-text-3); white-space: nowrap; overflow: visible; }
.ix-notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ix-notes li { font-size: 13px; line-height: 1.5; color: var(--dx-text); padding-left: 14px; position: relative; }
.ix-notes li::before { content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--dx-accent); }
.ix-bars { display: flex; flex-direction: column; gap: 12px; }
.ix-bar div { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.ix-bar div b { font-weight: 600; font-variant-numeric: tabular-nums; }
.ix-bar p { margin: 6px 0 0; height: 6px; border-radius: 3px; background: var(--dx-raised); overflow: hidden; }
.ix-bar p i { display: block; height: 100%; background: var(--dx-accent); border-radius: 3px; }
.ix-bar small { display: block; margin-top: 4px; font-size: 12px; color: var(--dx-text-3) !important; }
html body.vi-page .vi-seg { border-radius: var(--dx-r2); } html body.vi-page .vi-seg button { border-radius: 4px; height: 26px; padding: 0 12px; } html body.vi-page .vi-seg button.on { background: var(--dx-raised); color: #fff; }
html body.vi-page .vi-select, html body.vi-page .vi-input { height: 32px; border-radius: var(--dx-r2); }
html body.vi-page .vi-btn { border-radius: var(--dx-r2); }
@media (max-width: 1100px) { .ix-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ix-grid { grid-template-columns: 1fr; } }
.wx-facts { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.wx-fact { align-items: center; }
.wx-fact span { flex: 1; min-width: 0; }
.wx-fact .ix-spark { width: 64px; height: 22px; margin-left: auto; }
.wx-fact:nth-child(4) { border-right: 1px solid var(--dx-line); }
.wx-fact { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "n s" "l l"; gap: 4px 12px; align-items: center; padding: 12px 16px; }
.wx-fact b { grid-area: n; }
.wx-fact span { grid-area: l; white-space: normal; font-size: 12px; }
.wx-fact .ix-spark { grid-area: s; justify-self: end; width: 72px; height: 24px; margin: 0; }
.vw-tile { border: 1px solid var(--dx-line) !important; border-radius: var(--dx-r3) !important; background: #000 !important; }
.vw-tile.focused { border-color: var(--dx-accent) !important; }
.vw-tile .lv-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: 0; opacity: .85; }
.vw-tile .vw-video { position: relative; z-index: 1; background: transparent !important; }
.vw-tile .label { z-index: 3; background: rgba(0,0,0,.6) !important; border-radius: var(--dx-r1) !important; font-size: 12px !important; font-weight: 500 !important; }
.vw-tile .tile-actions { z-index: 3; }
.vw-tile .empty { color: var(--dx-text-3) !important; font-size: 13px !important; background: repeating-linear-gradient(135deg, #071119 0 12px, #050d14 12px 24px); }
.vw-tile.lv-gone .vw-video { display: none; }
.vw-tile.lv-live .lv-poster { display: none; }
.vw-tile .lv-note { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 16px; background: rgba(7,17,25,.86); color: var(--dx-text-2); font-size: 12px; }
.vw-tile .lv-note b { color: var(--dx-text); font-size: 13px; font-weight: 600; }
.vw-tile .lv-note .btn { margin-top: 8px; }
.vw-hint { color: var(--dx-text-3) !important; }
#lv-rail { width: 300px; flex: none; border: 1px solid var(--dx-line); border-radius: var(--dx-r3); background: var(--dx-surface); display: flex; flex-direction: column; max-height: calc(100vh - 200px); min-height: 280px; }
.lv-rail-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--dx-line); }
.lv-rail-h h3 { font-size: 13px; font-weight: 600; margin: 0; }
.lv-rail-h span { font-size: 12px; color: var(--dx-text-2); }
.lv-rail-h a { font-size: 12px; text-decoration: none; }
#lv-rail-list { overflow-y: auto; padding: 6px; }
.lv-item { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 10px; width: 100%; padding: 8px; border: 0; border-radius: var(--dx-r2); background: none; color: inherit; text-align: left; cursor: pointer; }
.lv-item:hover { background: var(--dx-raised); }
.lv-th { aspect-ratio: 16 / 9; border-radius: var(--dx-r1); overflow: hidden; background: #000; display: block; }
.lv-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lv-tx { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lv-tx b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-tx em { font-style: normal; font-size: 12px; color: var(--dx-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-tx small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--dx-text-3) !important; }
.lv-tx small i { width: 6px; height: 6px; border-radius: 50%; background: #536573; flex: none; }
.lv-item.amber small i { background: var(--dx-amber); } .lv-item.red small i { background: var(--dx-red); } .lv-item.green small i { background: var(--dx-green); } .lv-item.blue small i { background: var(--dx-accent); }
.lv-quiet { padding: 24px 12px; margin: 0; text-align: center; color: var(--dx-text-2); font-size: 13px; }
.vw-left { width: 260px !important; min-width: 240px !important; }
@media (max-width: 1280px) { #lv-rail { display: none; } }
html body .vw-cam { border-radius: var(--dx-r2) !important; padding: 6px !important; }
html body .vw-cam img { width: 80px; height: 45px; border-radius: var(--dx-r1); flex: none; color: transparent; }
html body .vw-cam-title { color: var(--dx-text) !important; font-size: 13px !important; }
html body .vw-cam-sub { color: var(--dx-text-2) !important; font-size: 12px !important; }
html body .vw-cam-meta { min-width: 0; }

html:root { --dx-btn: #007faf; --dx-btn-hover: #0a92c6; }
.btn-primary, html body.vi-page .vi-btn.primary { background: var(--dx-btn) !important; border-color: var(--dx-btn) !important; color: #fff !important; }
.btn-primary:hover, html body.vi-page .vi-btn.primary:hover { background: var(--dx-btn-hover) !important; }
.header { background: var(--dx-rail) !important; }
.sidebar-icon.active { background: var(--dx-accent-weak) !important; }
.sidebar-logo .logo-icon { font-family: "Poppins", var(--dx-font) !important; }
.page-title, .vi-title { font-size: 22px !important; }
.vw-tile.focused, .wx-frame.on { border-color: var(--dx-accent) !important; }
.pb-video { position: relative; }
#playback-metadata-canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; z-index: 4; }
.playback-ai-btn.active, .bbox-overlay-detail-btn.active { color: var(--dx-accent) !important; border-color: var(--dx-accent) !important; }
.bbox-overlay-detail-btn { height: 34px; min-width: 34px; padding: 0 9px; border: 1px solid var(--dx-line); border-radius: var(--dx-r2); background: var(--dx-surface); color: var(--dx-text); cursor: pointer; }
html body .pb-alert-item__line-ellipsis { color: var(--dx-text) !important; }
html body .pb-alert-item__time { color: var(--dx-text-2) !important; }
html body .pb-ctrl-btn.playback-ai-btn.active, html body .bbox-overlay-detail-btn.active { background: var(--dx-accent-weak) !important; color: var(--dx-accent) !important; border-color: var(--dx-accent) !important; }
.pb-tl-toolbar-center { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.pb-class-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border: 1px solid var(--dx-line); border-radius: 13px; background: var(--dx-surface); color: var(--dx-text); font-size: 12px; font-weight: 500; cursor: pointer; }
.pb-class-chip i { width: 7px; height: 7px; border-radius: 50%; background: #bdbdbd; }
.pb-class-chip b { font-weight: 600; color: var(--dx-text-2); font-variant-numeric: tabular-nums; }
.pb-class-chip.cls-person i { background: #00ccff; } .pb-class-chip.cls-vehicle i { background: #ff9500; } .pb-class-chip.cls-bike i { background: #32cd32; } .pb-class-chip.cls-animal i { background: #20b2aa; }
.pb-class-chip.off { opacity: .45; }
.pb-class-chip:hover { border-color: var(--dx-line-2); }
.wx-main { grid-template-columns: minmax(0, 1fr) 320px; }
.wx-feed { min-width: 0; }
.wx-feed > .wx-list-h { padding: 0 0 12px; border: 0; }
.wx-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 12px; }
.wx-card { border: 1px solid var(--dx-line); border-radius: var(--dx-r3); background: var(--dx-surface); overflow: hidden; cursor: pointer; display: flex; flex-direction: column; }
.wx-card:hover { border-color: var(--dx-line-2); }
.wx-card.on { border-color: var(--dx-accent); }
.wx-card.red { box-shadow: inset 0 2px 0 var(--dx-red); } .wx-card.amber { box-shadow: inset 0 2px 0 var(--dx-amber); }
.wx-card-pic { position: relative; aspect-ratio: 16 / 9; background: #000; }
.wx-card-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wx-card-pic .vi-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #22364a; }
.wx-card-pic .vi-ph svg { width: 28px; height: 28px; }
.wx-card-b { padding: 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.wx-card-b .wx-meta { margin: 0; }
.wx-card-b h4 { font-size: 14px; font-weight: 600; margin: 0; color: var(--dx-text); }
.wx-card-b p { margin: 0; font-size: 12px; line-height: 1.45; color: var(--dx-text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wx-card-b .wx-chips { margin-top: 2px; }
.wx-card-f { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 6px; font-size: 12px; color: var(--dx-text-3); }
.wx-card-a { display: flex; gap: 6px; }
.wx-mini { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border: 1px solid var(--dx-line); border-radius: var(--dx-r1); background: var(--dx-raised); color: var(--dx-text); font-size: 12px; font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap; }
.wx-mini:hover { border-color: var(--dx-line-2); }
.wx-mini svg { width: 12px; height: 12px; }
#w-cams { padding: 8px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.wx-cam { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px; border-radius: var(--dx-r2); }
.wx-cam.on { background: var(--dx-accent-weak); }
.wx-cam-pic { aspect-ratio: 16 / 9; padding: 0; border: 1px solid var(--dx-line); border-radius: var(--dx-r1); overflow: hidden; background: #000; cursor: pointer; }
.wx-cam-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wx-cam-b { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wx-cam-b b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wx-cam-b span { font-size: 12px; color: var(--dx-text-2); }
.wx-cam-b span.amber { color: var(--dx-amber); }
html:root { --pb-sidebar-w: 280px; }
.playback-app.dx-rail .pb-sidebar-tabs, .playback-app.dx-rail .pb-sidebar-header { display: none !important; }
.playback-app.dx-rail #pb-tab-cameras { display: block !important; }
.playback-app.dx-rail #pb-tab-events { display: flex !important; flex-direction: column; flex: 1; min-height: 0; }
.pb-rail { width: 340px; min-width: 300px; border-left: 1px solid var(--dx-line); background: var(--dx-surface); display: flex; flex-direction: column; min-height: 0; }
.pb-rail-h { padding: 14px 16px 6px; }
.pb-rail-h h3 { margin: 0; font-size: 13px; font-weight: 600; color: var(--dx-text); }
.pb-rail .pb-alerts-toolbar { padding: 0 16px 10px !important; border-bottom: 1px solid var(--dx-line); background: none !important; }
.pb-rail .pb-alert-list { flex: 1; overflow-y: auto; padding: 6px; }
.pb-rail .pb-alert-item { border: 0 !important; background: none !important; padding: 0 !important; margin: 0 !important; }
.pb-rail .pb-alert-item__row { display: grid !important; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px !important; border: 0 !important; border-radius: var(--dx-r2); background: none !important; box-shadow: none !important; cursor: pointer; }
.pb-rail .pb-alert-item__row:hover, .pb-rail .pb-alert-item.active .pb-alert-item__row { background: var(--dx-raised) !important; }
.pb-rail .pb-alert-item__thumb { width: 104px !important; height: auto !important; aspect-ratio: 16 / 9; border-radius: var(--dx-r1); overflow: hidden; background: #000; }
.pb-rail .pb-alert-item__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pb-rail .pb-alert-item__cell { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
html body .pb-rail .pb-alert-item__line-ellipsis { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-alert-item__sub { font-size: 12px; color: var(--dx-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: capitalize; }
.pb-rail .pb-alert-item__actions { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
html body .pb-rail .pb-alert-item__time { font-size: 12px; font-variant-numeric: tabular-nums; }
.pb-rail .pb-alert-item__info { display: none; }
.pb-cam-list { max-height: 196px; overflow-y: auto; }
.pb-sidebar-section h3 { text-transform: none !important; letter-spacing: 0 !important; font-size: 12px !important; font-weight: 600 !important; color: var(--dx-text-2) !important; }
.pb-sidebar-section h3 i { display: none; }
@media (max-width: 1280px) { .pb-rail { display: none; } .playback-app.dx-rail .pb-sidebar-tabs { display: flex !important; } }
#tenant-badge.dx-switch { cursor: pointer; padding-right: 26px !important; position: relative; }
#tenant-badge.dx-switch::after { content: ""; position: absolute; right: 10px; top: 50%; width: 6px; height: 6px; border-right: 1.5px solid var(--dx-text-2); border-bottom: 1.5px solid var(--dx-text-2); transform: translateY(-70%) rotate(45deg); }
#tenant-badge.dx-acting { border-color: var(--dx-amber) !important; color: var(--dx-amber) !important; }
#dx-ws-menu { position: fixed; z-index: 10060; width: 300px; max-height: 420px; display: flex; flex-direction: column; background: var(--dx-surface); border: 1px solid var(--dx-line-2); border-radius: var(--dx-r3); box-shadow: 0 24px 64px rgba(0,0,0,.6); padding: 8px; }
.dx-ws-h { font-size: 12px; color: var(--dx-text-2); padding: 4px 8px 8px; }
#dx-ws-menu input { height: 32px; margin: 0 0 8px; padding: 0 10px; border: 1px solid var(--dx-line); border-radius: var(--dx-r2); font-size: 13px; }
.dx-ws-l { overflow-y: auto; display: flex; flex-direction: column; gap: 1px; }
.dx-ws-l button { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 8px 10px; border: 0; border-radius: var(--dx-r2); background: none; color: var(--dx-text); text-align: left; cursor: pointer; }
.dx-ws-l button:hover { background: var(--dx-raised); }
.dx-ws-l button.on { background: var(--dx-accent-weak); }
.dx-ws-l button b { font-size: 13px; font-weight: 600; }
.dx-ws-l button small { font-size: 12px; color: var(--dx-text-2) !important; }
.dx-ws-l p { margin: 0; padding: 12px; color: var(--dx-text-2); font-size: 13px; }
.vi-hero.clip { aspect-ratio: auto !important; height: auto !important; background: none !important; display: block !important; overflow: visible !important; }
.vi-clip { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--dx-r2); overflow: hidden; }
.vi-clip video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.vi-clip-msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; color: #fff; font-size: 13px; background: rgba(0,0,0,.55); z-index: 5; }
.vi-clip-msg[hidden] { display: none; }
.vi-clip-bar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.vi-clip-bar .vi-btn { position: static !important; height: 30px; padding: 0 10px; font-size: 12px; text-decoration: none; }
.vi-clip-time { font-size: 12px; color: var(--dx-text-2); font-variant-numeric: tabular-nums; margin-left: 4px; }
.vi-clip-bar .playback-ai-btn.active { background: var(--dx-accent-weak) !important; color: var(--dx-accent) !important; border-color: var(--dx-accent) !important; }
#do-root { display: flex; flex-direction: column; gap: 16px; margin-bottom: 16px; }
.do-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--dx-line); border-radius: var(--dx-r3); background: var(--dx-surface); overflow: hidden; }
.do-stat { padding: 14px 16px; display: flex; flex-direction: column; gap: 3px; border-right: 1px solid var(--dx-line); min-width: 0; }
.do-stat:last-child { border-right: 0; }
.do-stat span { font-size: 12px; color: var(--dx-text-2); }
.do-stat b { font-size: 18px; font-weight: 600; }
.do-stat small { font-size: 12px; color: var(--dx-text-3) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.do-stat.green b { color: var(--dx-green); } .do-stat.red b { color: var(--dx-red); } .do-stat.amber b { color: var(--dx-amber); }
.do-alarms { display: flex; gap: 8px; flex-wrap: wrap; }
.do-alarms span { padding: 8px 12px; border-radius: var(--dx-r2); background: var(--dx-red-weak); color: var(--dx-red); font-size: 13px; font-weight: 600; }
.do-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.do-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.do-card { border: 1px solid var(--dx-line); border-radius: var(--dx-r3); background: var(--dx-surface); padding: 16px; min-width: 0; }
.do-card h3 { font-size: 13px; font-weight: 600; margin: 0 0 12px; }
.do-cam { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 14px; align-items: center; }
.do-cam + .do-cam { margin-top: 12px; }
.do-cam-pic { aspect-ratio: 16 / 9; border-radius: var(--dx-r2); overflow: hidden; background: #000; }
.do-cam-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.do-cam-b { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.do-cam-b b { font-size: 14px; font-weight: 600; }
.do-cam-b span { font-size: 12px; color: var(--dx-text-2); }
.do-cam-a { display: flex; gap: 8px; margin-top: 8px; }
.do-cam-a .btn { display: inline-flex; align-items: center; text-decoration: none; }
.do-incs { display: flex; flex-direction: column; gap: 2px; }
.do-inc { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 10px; align-items: center; padding: 6px; border-radius: var(--dx-r2); text-decoration: none; color: inherit; }
.do-inc:hover { background: var(--dx-raised); }
.do-inc-pic { aspect-ratio: 16 / 9; border-radius: var(--dx-r1); overflow: hidden; background: #000; display: block; }
.do-inc-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.do-inc-b { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.do-inc-b b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--dx-text); }
.do-inc-b small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--dx-text-3) !important; }
.do-inc-b small i { width: 6px; height: 6px; border-radius: 50%; background: #536573; }
.do-inc.amber small i { background: var(--dx-amber); } .do-inc.red small i { background: var(--dx-red); } .do-inc.green small i { background: var(--dx-green); } .do-inc.blue small i { background: var(--dx-accent); }
.do-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.do-chart { border: 1px solid var(--dx-line); border-radius: var(--dx-r2); padding: 12px; min-width: 0; }
.do-chart-h { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--dx-text-2); margin-bottom: 8px; }
.do-chart-h b { font-size: 15px; font-weight: 600; color: var(--dx-text); font-variant-numeric: tabular-nums; }
.do-spark { width: 100%; height: 56px; display: block; }
.do-spark polyline { fill: none; stroke: var(--dx-accent); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.do-spark polygon { fill: var(--dx-accent-weak); }
.do-chart-f { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--dx-text-3); margin-top: 6px; }
.do-nodata, .do-empty { font-size: 13px; color: var(--dx-text-2); margin: 0; padding: 12px 0; }
.do-facts dl { display: grid; grid-template-columns: 140px 1fr 140px 1fr; gap: 8px 16px; margin: 0; font-size: 13px; }
.do-facts dt { color: var(--dx-text-2); } .do-facts dd { margin: 0; }
@media (max-width: 1100px) { .do-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .do-grid, .do-charts { grid-template-columns: 1fr; } }
html body #map.leaflet-container, html body .leaflet-container { background: #2c3235 !important; }
#map.mp-placing, #map.mp-placing .leaflet-grab { cursor: crosshair !important; }
#mp-box { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 900; max-width: min(520px, calc(100% - 32px)); display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; background: var(--dx-surface); border: 1px solid var(--dx-line-2); border-radius: var(--dx-r3); box-shadow: 0 24px 64px rgba(0,0,0,.6); }
#mp-box[hidden] { display: none; }
#mp-box b { font-size: 14px; font-weight: 600; }
#mp-box span { font-size: 13px; color: var(--dx-text-2); }
.mp-list, .mp-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
html body .map-live-tabs, html body .tabs.map-live-tabs { background: var(--dx-raised) !important; border-color: var(--dx-line) !important; }
html body .map-live-tabs .tab { color: var(--dx-text-2) !important; background: none !important; }
html body .map-live-tabs .tab.active { color: #fff !important; }
#device-detail-card { display: none !important; }
#mp-card { position: absolute; top: 16px; right: 16px; bottom: 16px; width: 360px; max-width: calc(100% - 32px); z-index: 950; display: flex; flex-direction: column; background: var(--dx-surface); border: 1px solid var(--dx-line-2); border-radius: var(--dx-r3); box-shadow: 0 24px 64px rgba(0,0,0,.6); overflow: hidden; }
.mp-card-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--dx-line); }
.mp-card-h b { display: block; font-size: 15px; font-weight: 600; } .mp-card-h span { font-size: 12px; color: var(--dx-text-2); }
.mp-x { border: 0; background: none; color: var(--dx-text-2); font-size: 22px; line-height: 1; cursor: pointer; padding: 0 4px; }
.mp-card-b { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.mp-card-f { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid var(--dx-line); }
.mp-card-f .btn { display: inline-flex; align-items: center; text-decoration: none; }
.mp-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--dx-line); border: 1px solid var(--dx-line); border-radius: var(--dx-r2); overflow: hidden; }
.mp-stats div { background: var(--dx-surface); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.mp-stats span { font-size: 12px; color: var(--dx-text-2); } .mp-stats b { font-size: 15px; font-weight: 600; }
.mp-stats .green b { color: var(--dx-green); } .mp-stats .red b { color: var(--dx-red); }
.mp-alarms { display: flex; flex-direction: column; gap: 6px; }
.mp-alarms span { padding: 8px 10px; border-radius: var(--dx-r2); background: var(--dx-red-weak); color: var(--dx-red); font-size: 13px; font-weight: 600; }
.mp-cams { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mp-cams a { position: relative; aspect-ratio: 16 / 9; border-radius: var(--dx-r2); overflow: hidden; background: #000; display: block; }
.mp-cams a:only-child { grid-column: 1 / -1; }
.mp-cams img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mp-cams span { position: absolute; left: 6px; bottom: 6px; padding: 2px 6px; border-radius: 4px; background: rgba(0,0,0,.65); color: #fff; font-size: 11px; }
.mp-sec { display: flex; align-items: baseline; gap: 8px; font-size: 13px; }
.mp-sec b { font-weight: 600; } .mp-sec span { color: var(--dx-text-2); flex: 1; } .mp-sec a { text-decoration: none; }
.mp-inc { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 10px; align-items: center; padding: 4px; border-radius: var(--dx-r2); text-decoration: none; color: inherit; }
.mp-inc:hover { background: var(--dx-raised); }
.mp-inc-pic { aspect-ratio: 16 / 9; border-radius: var(--dx-r1); overflow: hidden; background: #000; display: block; }
.mp-inc-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mp-inc-b { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mp-inc-b b { font-size: 13px; font-weight: 600; color: var(--dx-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-inc-b small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--dx-text-3) !important; }
.mp-inc-b small i { width: 6px; height: 6px; border-radius: 50%; background: #536573; }
.mp-inc.amber small i { background: var(--dx-amber); } .mp-inc.red small i { background: var(--dx-red); } .mp-inc.green small i { background: var(--dx-green); } .mp-inc.blue small i { background: var(--dx-accent); }
.mp-quiet { font-size: 13px; color: var(--dx-text-2); margin: 0; }
html body .map-device-card.active, html body .map-device-card:hover { background: var(--dx-raised) !important; border-color: var(--dx-accent) !important; }
#mp-card { z-index: 1100; }
.mp-stats small { font-size: 11px; color: var(--dx-text-3) !important; }
.mp-stats .amber b { color: var(--dx-amber); }
.do-charts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.device-card.dv { padding: 16px !important; display: flex !important; flex-direction: column; gap: 14px; cursor: pointer; }
.device-card.dv:hover { border-color: var(--dx-line-2) !important; }
.dv-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.dv-n { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dv-n b { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dv-n span { font-size: 12px; color: var(--dx-text-2); font-variant-numeric: tabular-nums; }
.dv-wait { padding: 8px 10px; border-radius: var(--dx-r2); background: var(--dx-amber-weak); color: var(--dx-amber); font-size: 12px; font-weight: 600; }
.dv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--dx-line); border: 1px solid var(--dx-line); border-radius: var(--dx-r2); overflow: hidden; }
.dv-grid > div { background: var(--dx-surface); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dv-grid span { font-size: 12px; color: var(--dx-text-2); }
.dv-grid b { font-size: 15px; font-weight: 600; }
.dv-grid b.amber { color: var(--dx-amber); } .dv-grid b.dim { color: var(--dx-text-3); }
.dv-grid small { font-size: 11px; color: var(--dx-text-3) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 14px; }
.cs-head { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.cs-head select { min-width: 280px; height: 34px; }
.cs-head .btn { display: inline-flex; align-items: center; text-decoration: none; }
.cs-main { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(340px, 1fr); gap: 16px; align-items: start; }
.cs-stage { border: 1px solid var(--dx-line); border-radius: var(--dx-r3); background: #000; overflow: hidden; }
.cs-pic { position: relative; aspect-ratio: 16 / 9; background: #000; touch-action: none; user-select: none; }
.cs-pic.drawing { cursor: crosshair; }
.cs-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; display: block; }
.cs-pic.nopic::after { content: "No picture from this camera yet"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--dx-text-2); font-size: 13px; }
.cs-pic svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#cs-dots i { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; border: 2px solid var(--dx-btn); cursor: grab; }
.cs-hint { position: absolute; left: 12px; bottom: 12px; padding: 8px 12px; border-radius: var(--dx-r2); background: rgba(0,0,0,.72); color: #fff; font-size: 13px; pointer-events: none; }
.cs-side, .cs-apps { border: 1px solid var(--dx-line); border-radius: var(--dx-r3); background: var(--dx-surface); padding: 18px; }
.cs-side { display: flex; flex-direction: column; gap: 14px; }
.cs-apps { margin-top: 16px; }
.cs-h h2 { font-size: 15px; font-weight: 600; margin: 0 0 4px; }
.cs-h p { font-size: 13px; color: var(--dx-text-2); margin: 0; line-height: 1.5; max-width: 70ch; }
.cs-note { padding: 10px 12px; border-radius: var(--dx-r2); background: var(--dx-raised); color: var(--dx-text-2); font-size: 13px; }
.cs-note.bad { background: var(--dx-amber-weak); color: var(--dx-amber); }
.cs-rules { display: flex; flex-direction: column; gap: 10px; }
.cs-rule { display: grid; grid-template-columns: 6px minmax(0, 1fr); gap: 12px; padding: 12px; border: 1px solid var(--dx-line); border-radius: var(--dx-r2); }
.cs-rule.off { opacity: .6; }
.cs-sw { border-radius: 3px; }
.cs-rule-b b { font-size: 14px; font-weight: 600; } .cs-rule-b > span { font-size: 12px; color: var(--dx-text-3); margin-left: 8px; }
.cs-rule-b p { margin: 4px 0 10px; font-size: 13px; color: var(--dx-text-2); line-height: 1.45; }
.cs-rule-c { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cs-rule-c .btn { height: 28px; padding: 0 10px !important; font-size: 12px !important; }
.cs-switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--dx-text); cursor: pointer; }
.cs-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.cs-switch span { width: 34px; height: 20px; border-radius: 10px; background: var(--dx-line-2); position: relative; flex: none; transition: background .15s; }
.cs-switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.cs-switch input:checked + span { background: var(--dx-btn); }
.cs-switch input:checked + span::after { transform: translateX(14px); }
.cs-switch input:disabled + span { opacity: .45; cursor: not-allowed; }
.cs-switch input:focus-visible + span { outline: 2px solid var(--dx-accent); outline-offset: 2px; }
.cs-types { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cs-type { text-align: left; padding: 12px; border: 1px solid var(--dx-line); border-radius: var(--dx-r2); background: none; color: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.cs-type:hover { border-color: var(--dx-accent); background: var(--dx-raised); }
.cs-type b { font-size: 13px; font-weight: 600; } .cs-type span { font-size: 12px; color: var(--dx-text-2); line-height: 1.4; }
.cs-f { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.cs-f > span { color: var(--dx-text-2); font-size: 12px; }
.cs-f input[type=text], .cs-f input[type=number], .cs-f select { height: 34px; padding: 0 10px; border: 1px solid var(--dx-line); border-radius: var(--dx-r2); font-size: 13px; }
.cs-checks { display: flex; gap: 14px; flex-wrap: wrap; }
.cs-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.cs-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cs-appgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; margin-top: 14px; }
.cs-app { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 14px; border: 1px solid var(--dx-line); border-radius: var(--dx-r2); }
.cs-app.on { border-color: var(--dx-btn); }
.cs-app b { font-size: 14px; font-weight: 600; } .cs-app p { margin: 4px 0 0; font-size: 12px; color: var(--dx-text-2); line-height: 1.45; } .cs-app small { display: block; margin-top: 6px; color: var(--dx-amber) !important; font-size: 12px; }
.cs-toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); padding: 10px 16px; border-radius: var(--dx-r2); background: var(--dx-raised); border: 1px solid var(--dx-line-2); color: var(--dx-text); font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; z-index: 11000; }
.cs-toast.on { opacity: 1; transform: translate(-50%, 0); }
.cs-toast.bad { border-color: var(--dx-red); color: var(--dx-red); }
.cs-load, .cs-empty { color: var(--dx-text-2); font-size: 13px; padding: 32px 0; }
.cs-empty h2 { color: var(--dx-text); font-size: 16px; margin: 0 0 6px; }
@media (max-width: 1100px) { .cs-main { grid-template-columns: 1fr; } }
.cs-head select { width: auto !important; max-width: 420px; }
.cs-main { grid-template-columns: minmax(0, 1.5fr) minmax(360px, 1fr); }
.cs-stage { align-self: start; }
.cs-pic { max-height: calc(100vh - 210px); margin: 0 auto; }
.cs-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cs-col .cs-apps { margin-top: 0; }
.cs-h h2 small { font-size: 12px; font-weight: 500; color: var(--dx-text-2) !important; margin-left: 8px; }
.cs-applist { display: flex; flex-direction: column; margin-top: 12px; border: 1px solid var(--dx-line); border-radius: var(--dx-r2); overflow: hidden; }
.cs-applist .cs-app { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--dx-line); border-radius: 0; cursor: pointer; }
.cs-applist .cs-app:last-child { border-bottom: 0; }
.cs-applist .cs-app:hover { background: var(--dx-raised); }
.cs-app-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cs-app-t b { font-size: 13px; font-weight: 600; }
.cs-app-t em { font-style: normal; font-size: 12px; color: var(--dx-text-2); line-height: 1.4; }
.cs-findwrap { position: relative; }
.cs-find { position: absolute; top: calc(100% + 6px); left: 0; z-index: 50; width: 360px; max-height: 420px; display: flex; flex-direction: column; background: var(--dx-surface); border: 1px solid var(--dx-line-2); border-radius: var(--dx-r3); box-shadow: 0 24px 64px rgba(0,0,0,.6); padding: 8px; }
.cs-find[hidden] { display: none; }
.cs-find input { height: 34px; padding: 0 10px; border: 1px solid var(--dx-line); border-radius: var(--dx-r2); font-size: 13px; margin-bottom: 6px; }
#cs-find-l { overflow-y: auto; }
.cs-find-g { font-size: 11px; color: var(--dx-text-3); padding: 8px 8px 4px; }
.cs-find-i { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: var(--dx-r2); color: var(--dx-text); text-decoration: none; font-size: 13px; }
.cs-find-i:hover, .cs-find-i.on { background: var(--dx-raised); }
.cs-find-i i { width: 7px; height: 7px; border-radius: 50%; background: #536573; flex: none; }
.cs-find-i i.on { background: var(--dx-green); }
.cs-find-e { padding: 12px 8px; color: var(--dx-text-2); font-size: 13px; margin: 0; }
html body .det-device-modal-overlay { background: rgba(0,0,0,.78) !important; }
html body .det-device-modal-overlay .det-root-mount { background: var(--dx-surface) !important; border: 1px solid var(--dx-line-2); border-radius: var(--dx-r3); padding: 20px; max-height: 92vh; overflow: auto; box-shadow: 0 24px 64px rgba(0,0,0,.6); }
.cs-h-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.cs-rule-h { display: flex; align-items: baseline; gap: 8px; }
.cs-rule-h span { font-size: 12px; color: var(--dx-text-3); }
.cs-rule-b p { margin: 4px 0 8px !important; }
.cs-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.cs-tag { padding: 2px 8px; border-radius: 4px; font-size: 11px; background: var(--dx-raised); color: var(--dx-text-2); }
.cs-tag.on { background: var(--dx-accent-weak); color: var(--dx-accent-2); }
.cs-link { align-self: flex-start; border: 0; background: none; color: var(--dx-accent); font-size: 13px; cursor: pointer; padding: 0; }
.cs-link:hover { text-decoration: underline; }
.cs-applist .cs-app { cursor: default; }
.cs-applist .cs-app .btn { height: 28px; padding: 0 10px !important; font-size: 12px !important; flex: none; }
.cs-app-t { flex: 1; }
.cs-app-t b small { font-size: 11px; font-weight: 500; color: var(--dx-text-2) !important; margin-left: 8px; }
.cs-app.on .cs-app-t b small { color: var(--dx-green) !important; }
#cs-svg [data-rule] { transition: opacity .12s; }
html body .det-device-modal-overlay { z-index: 10500; overflow: auto; padding: 24px; }

.as-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.as-card { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; padding: 16px; border: 1px solid var(--dx-line); border-radius: var(--dx-r3); background: var(--dx-surface); color: var(--dx-text); text-decoration: none; min-height: 132px; }
.as-card:hover { border-color: var(--dx-accent); }
.as-card b { font-size: 15px; font-weight: 600; } .as-card p { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: var(--dx-text-2); }
.as-card-f { display: flex; align-items: center; gap: 8px; }
.as-go { margin-left: auto; font-size: 13px; color: var(--dx-accent); }
.as-pill { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 12px; white-space: nowrap; background: var(--dx-raised); color: var(--dx-text-2); }
.as-pill.on { background: var(--dx-green-weak, rgba(38,204,134,.14)); color: var(--dx-green, #26cc86); }
.as-pill.warn { background: var(--dx-amber-weak); color: var(--dx-amber); }
.as-pill.own { background: transparent; border: 1px solid var(--dx-line-strong, var(--dx-line)); color: var(--dx-text); }
.as-main { display: grid; grid-template-columns: minmax(360px, 1fr) minmax(0, 1.25fr); gap: 16px; align-items: start; }
.as-main .cs-apps { margin-top: 0; }
@media (max-width: 1100px) { .as-main { grid-template-columns: 1fr; } }
.as-sec { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--dx-line); }
.as-sec h3 { margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--dx-text-3, var(--dx-text-2)); }
.as-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; }
.as-row-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.as-row-t b { font-size: 13px; font-weight: 500; } .as-row-t em, .as-field em { font-style: normal; font-size: 12px; line-height: 1.45; color: var(--dx-text-2); }
.as-row-c { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.as-field { display: flex; flex-direction: column; gap: 6px; padding: 8px 0; font-size: 13px; }
.as-field > span { font-weight: 500; }
.as-main select, .as-main input[type=number], .as-main input[type=search], .as-main textarea { height: 34px; padding: 0 10px; border: 1px solid var(--dx-line); border-radius: var(--dx-r2); background: var(--dx-canvas); color: var(--dx-text); font: inherit; font-size: 13px; }
.as-main textarea { height: auto; min-height: 56px; padding: 8px 10px; resize: vertical; line-height: 1.5; }
.as-row-c select { height: 28px; }
.as-main input:focus-visible, .as-main select:focus-visible, .as-main textarea:focus-visible { outline: 2px solid var(--dx-accent); outline-offset: 1px; }
.as-save { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 12px 0 0; border-top: 1px solid var(--dx-line); background: var(--dx-surface); }
.as-link { border: 0; background: none; padding: 0; color: var(--dx-accent); font: inherit; cursor: pointer; text-decoration: underline; }
.as-tools { display: flex; gap: 8px; margin-top: 12px; } .as-tools input { flex: 1; min-width: 0; }
.as-bulk { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--dx-text-2); }
.as-bulk span { margin-right: auto; } .as-bulk .btn, .as-cam .btn { height: 28px; padding: 0 10px !important; font-size: 12px !important; display: inline-flex; align-items: center; text-decoration: none; }
.as-cams { margin-top: 10px; border: 1px solid var(--dx-line); border-radius: var(--dx-r2); max-height: calc(100vh - 330px); overflow: auto; }
.as-cam { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--dx-line); }
.as-cam:last-child { border-bottom: 0; } .as-cam:hover { background: var(--dx-raised); } .as-cam.editing { box-shadow: inset 2px 0 0 var(--dx-accent); }
.as-cam-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; } .as-cam-t b { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .as-cam-t em { font-style: normal; font-size: 12px; color: var(--dx-text-2); }
.as-cam-c { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.as-more { padding: 10px 12px; font-size: 12px; color: var(--dx-text-2); }
#cs-apps { display: none !important; }

.rx-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.rx-bar input[type=search] { flex: 1 1 260px; min-width: 200px; max-width: 420px; }
.rx-bar input, .rx-bar select, .rx-bulk select, .rx-dlg input[type=search], .rx-dlg input[type=text], .rx-dlg input[type=time], .rx-dlg input[type=date] { height: 34px; padding: 0 10px; border: 1px solid var(--dx-line); border-radius: var(--dx-r2); background: var(--dx-canvas); color: var(--dx-text); font: inherit; font-size: 13px; }
.rx-bar .btn, .rx-bulk .btn, .rx-act .btn, .rx-dlg .btn, .sx-a .btn { height: 32px; padding: 0 12px !important; font-size: 13px !important; display: inline-flex; align-items: center; }
.rx-sp { flex: 1; }
.rx-scope { margin-bottom: 12px; font-size: 13px; color: var(--dx-text-2); } .rx-scope a { color: var(--dx-accent); margin-left: 8px; }
.rx-dim { color: var(--dx-text-2); font-size: 13px; }
.rx-warn { color: var(--dx-amber); font-weight: 600; font-size: 13px; }
.rx-bulk { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 36px; margin: 8px 0; font-size: 13px; }
.rx-danger { color: var(--dx-red) !important; }
.rx-table { border: 1px solid var(--dx-line); border-radius: var(--dx-r3); background: var(--dx-surface); overflow: auto; }
.rx-table table { width: 100%; border-collapse: collapse; font-size: 13px; }
.rx-table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--dx-text-2); padding: 10px 12px; border-bottom: 1px solid var(--dx-line); white-space: nowrap; position: sticky; top: 0; background: var(--dx-surface); }
.rx-table td { padding: 10px 12px; border-bottom: 1px solid var(--dx-line); vertical-align: middle; }
.rx-table tr:last-child td { border-bottom: 0; }
.rx-table tbody tr:hover { background: var(--dx-raised); }
.rx-table tr.off td:not(.rx-act):not(:nth-last-child(2)) { opacity: .55; }
.rx-table td b { display: block; font-weight: 600; }
.rx-table td small { display: block; margin-top: 2px; font-size: 12px; color: var(--dx-text-2); }
.rx-ck { width: 32px; }
.rx-act { white-space: nowrap; text-align: right; } .rx-act .btn + .btn { margin-left: 6px; }
.rx-lvl { display: inline-flex; height: 22px; align-items: center; padding: 0 8px; border-radius: 11px; font-size: 12px; font-weight: 600; }
.rx-lvl.high { background: var(--dx-red-weak); color: var(--dx-red); }
.rx-lvl.medium { background: var(--dx-amber-weak); color: var(--dx-amber); }
.rx-lvl.low { background: var(--dx-raised); color: var(--dx-text-2); }
.rx-modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: flex-start; justify-content: center; padding: 64px 16px; background: rgba(0, 0, 0, .6); overflow: auto; }
.rx-dlg { width: 100%; max-width: 560px; padding: 20px; border: 1px solid var(--dx-line); border-radius: var(--dx-r3); background: var(--dx-surface); color: var(--dx-text); display: flex; flex-direction: column; gap: 12px; }
.rx-dlg-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; } .rx-dlg-h h2 { margin: 0; font-size: 16px; font-weight: 600; }
.rx-dlg p { margin: 0; line-height: 1.5; }
.rx-dlg-f { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--dx-line); }
.rx-plist { max-height: 50vh; overflow: auto; border: 1px solid var(--dx-line); border-radius: var(--dx-r2); }
.rx-pi { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--dx-line); cursor: pointer; font-size: 13px; }
.rx-pi:last-child { border-bottom: 0; } .rx-pi:hover { background: var(--dx-raised); } .rx-pi.off { opacity: .5; cursor: not-allowed; }
.rx-pi b { display: block; font-weight: 600; } .rx-pi small { display: block; font-size: 12px; color: var(--dx-text-2); }
.sx-list { border: 1px solid var(--dx-line); border-radius: var(--dx-r3); background: var(--dx-surface); }
.sx-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border-bottom: 1px solid var(--dx-line); }
.sx-item:last-child { border-bottom: 0; }
.sx-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; } .sx-t b { font-size: 14px; font-weight: 600; } .sx-t span { font-size: 13px; } .sx-t small { font-size: 12px; color: var(--dx-text-2); }
.sx-a { display: flex; gap: 6px; flex-shrink: 0; }
.sx-win { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--dx-line); }
.sx-days { display: flex; gap: 4px; flex-wrap: wrap; }
.sx-days label { cursor: pointer; } .sx-days input { position: absolute; opacity: 0; width: 0; height: 0; }
.sx-days span { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 30px; border: 1px solid var(--dx-line); border-radius: var(--dx-r2); font-size: 12px; color: var(--dx-text-2); }
.sx-days input:checked + span { background: var(--dx-btn); border-color: var(--dx-btn); color: #fff; }
.sx-days input:focus-visible + span { outline: 2px solid var(--dx-accent); outline-offset: 1px; }
#sx-add { margin-top: 8px; align-self: flex-start; }
#sx-hols { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0; }
.sx-hol { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 4px 0 10px; border-radius: 13px; background: var(--dx-raised); font-size: 12px; }
.sx-hol button { border: 0; background: none; color: var(--dx-text-2); cursor: pointer; font-size: 15px; padding: 0 4px; }
.sx-holadd { display: flex; gap: 8px; }
.rx-dlg .as-field input[type=text] { width: 100%; }
@media (max-width: 760px) { .rx-table th:nth-child(4), .rx-table td:nth-child(4), .rx-table th:nth-child(6), .rx-table td:nth-child(6) { display: none; } .sx-item { flex-direction: column; align-items: flex-start; } }
.rx-table td { white-space: nowrap; } .rx-table td small { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.rx-table td:nth-child(6) { white-space: normal; min-width: 230px; max-width: 320px; } .rx-table td:nth-child(6) .as-pill { margin: 2px 4px 2px 0; }
@media (max-width: 1180px) { .rx-table th:nth-child(4), .rx-table td:nth-child(4) { display: none; } }
.det-only-editor #igp-panel, .det-only-editor #ss-panel, .det-only-editor .det-rules-table-wrap, .det-only-editor .det-toolbar, .det-only-editor #det-editor-empty, .det-only-editor #det-banner:empty { display: none !important; }
.det-only-editor.det-only-create .det-toolbar { display: flex !important; }
.det-only-editor.det-only-create .det-toolbar__field:nth-child(2), .det-only-editor.det-only-create .det-toolbar__actions { display: none !important; }
html body .det-zone-overlay { z-index: 10700 !important; background: rgba(0,0,0,.72) !important; backdrop-filter: none !important; }
.dx-trig h3 { font-size: 15px; font-weight: 600; margin: 0 0 4px; }
.dx-sub { margin: 18px 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--dx-text-3, var(--dx-text-2)); }
.dx-group { border: 1px solid var(--dx-line); border-radius: var(--dx-r2); background: var(--dx-canvas); overflow: hidden; margin-top: 8px; }
.dx-arow { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border-bottom: 1px solid var(--dx-line); }
.dx-group > :last-child { border-bottom: 0; }
.dx-arow-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dx-arow-t b { font-size: 14px; font-weight: 600; color: var(--dx-text); }
.dx-arow-t span { font-size: 12.5px; line-height: 1.45; color: var(--dx-text-2); }
.dx-arow-t a { font-size: 12.5px; color: var(--dx-accent); text-decoration: none; align-self: flex-start; }
.dx-arow-t a:hover { text-decoration: underline; }
.dx-arow .cs-switch { flex-shrink: 0; position: relative; }
.dx-seg { display: inline-flex; padding: 2px; border: 1px solid var(--dx-line); border-radius: 8px; background: var(--dx-surface); flex-shrink: 0; }
.dx-seg button { height: 28px; min-width: 64px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; color: var(--dx-text-2); font: inherit; font-size: 13px; cursor: pointer; }
.dx-seg button.on { background: var(--dx-raised); color: var(--dx-text); box-shadow: inset 0 0 0 1px var(--dx-line-strong, var(--dx-line)); }
.dx-seg button:focus-visible { outline: 2px solid var(--dx-accent); outline-offset: 1px; }
.dx-group .det-cloud-waste-hint { margin: 0 !important; border: 0 !important; border-bottom: 1px solid var(--dx-line) !important; border-radius: 0 !important; background: var(--dx-surface) !important; padding: 12px 14px 14px 14px !important; }
.dx-arow.wide { flex-direction: column; align-items: stretch; gap: 10px; }
.dx-arow.wide .as-row-c { justify-content: flex-start; }
.dx-arow[hidden] { display: none !important; }
.dx-arow input[type=number] { width: 88px; height: 32px; padding: 0 10px; border: 1px solid var(--dx-line); border-radius: var(--dx-r2); background: var(--dx-surface); color: var(--dx-text); font: inherit; font-size: 13px; }
.dx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dx-chip { height: 30px; padding: 0 14px; border: 1px solid var(--dx-line); border-radius: 15px; background: var(--dx-surface); color: var(--dx-text-2); font: inherit; font-size: 13px; cursor: pointer; }
.dx-chip:hover { border-color: var(--dx-line-strong, var(--dx-accent)); color: var(--dx-text); }
.dx-chip.on { background: var(--dx-btn); border-color: var(--dx-btn); color: #fff; }
.dx-chip:focus-visible { outline: 2px solid var(--dx-accent); outline-offset: 1px; }
.dx-plates { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.dx-plate-list { display: flex; flex-wrap: wrap; gap: 6px; }
.dx-plate { display: inline-flex; align-items: center; gap: 2px; height: 30px; padding: 0 4px 0 10px; border: 1px solid var(--dx-line-strong, var(--dx-line)); border-radius: 6px; background: var(--dx-surface); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; letter-spacing: .06em; color: var(--dx-text); }
.dx-plate button { border: 0; background: none; color: var(--dx-text-2); font-size: 16px; line-height: 1; padding: 2px 6px; cursor: pointer; border-radius: 4px; }
.dx-plate button:hover { color: var(--dx-red); background: var(--dx-red-weak); }
.dx-empty { font-size: 13px; color: var(--dx-text-2); }
.dx-plate-add { display: flex; gap: 8px; }
.dx-plate-add input { flex: 1; min-width: 0; height: 34px; padding: 0 10px; border: 1px solid var(--dx-line); border-radius: var(--dx-r2); background: var(--dx-surface); color: var(--dx-text); font: inherit; font-size: 13px; }
.dx-plate-add .btn { height: 34px; padding: 0 14px !important; }
.dx-plate-prev { font-style: normal; font-size: 12px; color: var(--dx-text-2); min-height: 16px; }
.as-note { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: var(--dx-text-2); }
.as-main .dx-group { background: var(--dx-canvas); }
.as-save .btn { min-width: 96px; }
.dx-seg button:disabled { opacity: .45; cursor: not-allowed; }
.dx-waste { display: flex; flex-direction: column; }
.dx-wrow { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; }
.dx-wrow + .dx-wrow { border-top: 1px solid var(--dx-line); }
.dx-ref-st span, .dx-ref-st { font-size: 12.5px; color: var(--dx-text-2); margin: 0 !important; display: block; }
.dx-delay input { width: 80px !important; height: 32px; padding: 0 10px !important; border: 1px solid var(--dx-line) !important; border-radius: var(--dx-r2) !important; background: var(--dx-canvas) !important; color: var(--dx-text) !important; font: inherit; font-size: 13px; }
.dx-waste-box > svg { display: none; }
.rx-table td:nth-child(6) .as-pill { display: inline-flex; }
.rx-name { cursor: pointer; } .rx-name:hover b { color: var(--dx-accent); }
.dx-tag { display: inline-flex; align-items: center; gap: 2px; height: 28px; padding: 0 4px 0 12px; border-radius: 14px; background: var(--dx-raised); font-size: 13px; color: var(--dx-text); }
.dx-tag button { border: 0; background: none; color: var(--dx-text-2); font-size: 16px; line-height: 1; padding: 2px 6px; cursor: pointer; border-radius: 10px; }
.dx-tag button:hover { color: var(--dx-red); }
.dx-arow.wide .dx-seg { flex-wrap: wrap; }
.rx-bar { padding: 10px; border: 1px solid var(--dx-line); border-radius: var(--dx-r3); background: var(--dx-surface); }
.page-header { display: flex !important; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.page-header-left { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.page-header-actions { display: flex; gap: 8px; align-items: center; }
.page-header-actions .btn { height: 34px; display: inline-flex; align-items: center; }
html body .map-devices-panel { background: var(--dx-surface) !important; border-right: 1px solid var(--dx-line) !important; box-shadow: none !important; }
html body .map-devices-header { padding: 16px !important; border-bottom: 1px solid var(--dx-line) !important; background: transparent !important; }
html body .map-devices-title { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px !important; }
html body .map-devices-title > span:first-child { font-size: 18px !important; font-weight: 600 !important; color: var(--dx-text) !important; letter-spacing: -0.01em; }
html body .map-devices-title > span:last-child { font-size: 12px !important; color: var(--dx-text-2) !important; }
html body .map-devices-search input { height: 34px !important; border: 1px solid var(--dx-line) !important; border-radius: var(--dx-r2) !important; background: var(--dx-canvas) !important; color: var(--dx-text) !important; font-size: 13px !important; }
html body .map-devices-filters { display: inline-flex !important; gap: 0 !important; padding: 2px; margin-top: 10px; border: 1px solid var(--dx-line); border-radius: 8px; background: var(--dx-canvas); }
html body .map-devices-filter-btn { height: 28px !important; padding: 0 12px !important; border: 0 !important; border-radius: 6px !important; background: transparent !important; color: var(--dx-text-2) !important; font-size: 13px !important; font-weight: 500 !important; box-shadow: none !important; display: inline-flex; align-items: center; }
html body .map-devices-filter-btn.active { background: var(--dx-raised) !important; color: var(--dx-text) !important; box-shadow: inset 0 0 0 1px var(--dx-line-strong, var(--dx-line)) !important; }
html body .map-devices-filter-btn .status-dot { width: 8px !important; height: 8px !important; }
html body .map-devices-list { padding: 8px !important; background: transparent !important; }
html body .map-device-card { border: 1px solid var(--dx-line) !important; border-radius: var(--dx-r3) !important; background: var(--dx-canvas) !important; box-shadow: none !important; margin-bottom: 8px !important; }
html body .map-device-group > div:first-child { font-size: 12px !important; font-weight: 600 !important; text-transform: uppercase; letter-spacing: .04em; color: var(--dx-text-3, var(--dx-text-2)) !important; }
html body .map-toggle-controls { padding: 8px 12px !important; border: 1px solid var(--dx-line) !important; border-radius: var(--dx-r3) !important; background: var(--dx-surface) !important; box-shadow: 0 4px 16px rgba(0,0,0,.35) !important; gap: 6px !important; }
html body .map-toggle-control { gap: 12px !important; font-size: 13px !important; color: var(--dx-text) !important; justify-content: space-between; }
html body .map-toggle-switch { width: 34px !important; height: 20px !important; border-radius: 10px !important; background: var(--dx-raised) !important; border: 1px solid var(--dx-line) !important; }
html body .map-toggle-switch.active { background: var(--dx-btn) !important; border-color: var(--dx-btn) !important; }
html body .leaflet-control-zoom a { background: var(--dx-surface) !important; color: var(--dx-text) !important; border-color: var(--dx-line) !important; }
.dx-hidden { display: none !important; }
html body .det-only-editor .det-device-modal-box { width: min(1180px, 96vw) !important; max-width: none !important; }
html body .det-only-editor .det-editor-head { display: none !important; }
html body .det-only-editor .det-editor-split { display: grid !important; grid-template-columns: minmax(0, 1.25fr) minmax(360px, 1fr) !important; gap: 24px !important; align-items: start; }
html body .det-only-editor .det-editor-aside { order: -1; position: sticky; top: 0; }
html body .det-only-editor .det-editor-aside .det-form-section { border: 0 !important; padding: 0 !important; background: none !important; }
html body .det-only-editor .det-preview-wrap { border-radius: var(--dx-r3) !important; overflow: hidden; border: 1px solid var(--dx-line) !important; }
html body .det-only-editor .det-form-section { border: 0 !important; padding: 0 !important; margin: 0 !important; background: none !important; box-shadow: none !important; }
html body .det-only-editor .det-editor-inner, html body .det-only-editor .det-editor-body, html body .det-only-editor .det-inspector { border: 0 !important; background: none !important; box-shadow: none !important; padding: 0 !important; }
html body .det-only-editor .det-editor-scroll { padding: 4px 2px !important; }
.dx-tabs { display: flex; padding: 3px; margin-bottom: 16px; border: 1px solid var(--dx-line); border-radius: 10px; background: var(--dx-canvas); }
.dx-tabs button { flex: 1; height: 32px; border: 0; border-radius: 7px; background: transparent; color: var(--dx-text-2); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.dx-tabs button.on { background: var(--dx-raised); color: var(--dx-text); box-shadow: inset 0 0 0 1px var(--dx-line-strong, var(--dx-line)); }
.dx-tabs button:focus-visible { outline: 2px solid var(--dx-accent); outline-offset: 1px; }
.dx-app { gap: 12px; padding: 10px 14px; }
.dx-app .dx-arow-t { flex: 1; }
.dx-app .dx-arow-t b { font-size: 13.5px; display: flex; align-items: center; gap: 8px; }
.dx-app .dx-arow-t span { font-size: 12px; }
.dx-scope { font-style: normal; font-size: 11px; font-weight: 500; padding: 1px 7px; border-radius: 9px; background: var(--dx-raised); color: var(--dx-text-2); }
.dx-set { font-size: 12.5px; color: var(--dx-text-2); text-decoration: none; padding: 4px 8px; border-radius: 6px; }
.dx-set:hover { color: var(--dx-text); background: var(--dx-raised); }
html body .det-only-editor .det-editor-actions { display: flex !important; flex-direction: row-reverse; justify-content: flex-start; gap: 8px; padding: 14px 0 0 !important; margin-top: 16px; border-top: 1px solid var(--dx-line) !important; background: none !important; }
html body .det-only-editor #det-e-del { margin-right: auto; background: transparent !important; color: var(--dx-red) !important; border: 1px solid transparent !important; }
html body .det-only-editor #det-e-del:hover { background: var(--dx-red-weak) !important; }
html body .det-only-editor .det-modal-head { padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--dx-line); }
html body .det-only-editor .det-modal-head .card-title { font-size: 17px !important; font-weight: 600 !important; }
@media (max-width: 900px) { html body .det-only-editor .det-editor-split { grid-template-columns: 1fr !important; } html body .det-only-editor .det-editor-aside { position: static; } }
html body .det-only-editor .det-preview-wrap { max-height: none !important; width: 100% !important; background: #000 !important; }
html body .det-only-editor .det-preview-hint { display: none; }
html body .det-only-editor .det-editor-aside .det-form-section > div:first-child { margin-bottom: 10px; }
.dx-drawer { position: fixed; inset: 0; z-index: 11000; }
.dx-drawer-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.55); opacity: 0; transition: opacity .2s ease; }
.dx-drawer-p { position: absolute; top: 0; right: 0; bottom: 0; width: min(760px, 100vw); display: flex; flex-direction: column; background: var(--dx-surface); border-left: 1px solid var(--dx-line); transform: translateX(100%); transition: transform .22s ease; }
.dx-drawer.on .dx-drawer-scrim { opacity: 1; } .dx-drawer.on .dx-drawer-p { transform: none; }
.dx-drawer-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--dx-line); }
.dx-drawer-h h2 { margin: 0; font-size: 18px; font-weight: 600; color: var(--dx-text); }
.dx-drawer-h p { margin: 4px 0 0; font-size: 13px; color: var(--dx-text-2); line-height: 1.45; }
.dx-drawer-x { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--dx-line); border-radius: 8px; background: transparent; color: var(--dx-text-2); cursor: pointer; flex-shrink: 0; }
.dx-drawer-x:hover { color: var(--dx-text); background: var(--dx-raised); }
.dx-drawer-b { flex: 1; overflow: auto; padding: 18px 22px 28px; }
.dx-drawer-b .as-main { grid-template-columns: 1fr; }
.dx-drawer-b .cs-apps { border: 0; padding: 0; background: none; }
.dx-drawer-b .cs-apps + .cs-apps { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--dx-line); }
.dx-drawer-b .as-cams { max-height: none; }
.vi-app { position: relative; }
.vi-appgear { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; color: var(--dx-text-2); background: transparent; cursor: pointer; z-index: 2; }
.vi-appgear svg { width: 17px; height: 17px; }
.vi-appgear:hover, .vi-appgear:focus-visible { color: var(--dx-text); background: var(--dx-raised); outline: none; }
.dx-set { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 0; background: transparent; cursor: pointer; }
#det-wd-baseline-modal { z-index: 10800 !important; }
html body .main-content > .page-content { padding: 0 !important; }
html body .main-content > .page-content > .container, html body.workspace-full .container { max-width: none !important; width: 100% !important; margin: 0 !important; padding: 24px 32px 48px !important; }
html body .vi { max-width: none !important; margin: 0 !important; padding: 24px 32px 48px !important; }
html body .page-header, html body .vi-head { min-height: 36px; margin: 0 0 20px !important; }
html body .page-title, html body .vi-title { font-size: 22px !important; font-weight: 600 !important; line-height: 1.25 !important; letter-spacing: -0.01em !important; margin: 0 !important; }
html body .page-subtitle, html body .vi-sub { font-size: 13px !important; color: var(--dx-text-2) !important; margin: 0 !important; }
html body .main-content .btn:not(.btn-icon):not(.btn-sm):not(.btn-lg), html body .main-content .vi-btn { min-height: 34px !important; height: auto; padding-top: 0 !important; padding-bottom: 0 !important; font-size: 13px !important; border-radius: 8px !important; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
html body .main-content .btn-sm { min-height: 30px !important; font-size: 12.5px !important; border-radius: 7px !important; }
html body .main-content .btn-lg { min-height: 34px !important; height: 34px !important; padding: 0 16px !important; font-size: 13px !important; border-radius: 8px !important; }
@media (max-width: 760px) { html body .main-content > .page-content > .container, html body.workspace-full .container, html body .vi { padding: 16px 16px 40px !important; } }
html body .tabs { display: flex !important; gap: 4px !important; border-bottom: 1px solid var(--dx-line) !important; margin: 0 0 20px !important; padding: 0 !important; background: none !important; overflow-x: auto; }
html body .tabs .tab { height: 40px !important; min-height: 40px !important; padding: 0 14px !important; display: inline-flex !important; align-items: center !important; gap: 6px; font-size: 13.5px !important; font-weight: 500 !important; background: none !important; border: 0 !important; border-bottom: 2px solid transparent !important; border-radius: 0 !important; margin: 0 0 -1px !important; color: var(--dx-text-2) !important; text-decoration: none !important; white-space: nowrap; }
html body .tabs .tab:hover { color: var(--dx-text) !important; }
html body .tabs .tab.active { color: var(--dx-text) !important; border-bottom-color: var(--dx-accent) !important; }
.du-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.du-card { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--dx-line); border-radius: var(--dx-r3); background: var(--dx-surface); }
.du-card > span { font-size: 12px; color: var(--dx-text-2); }
.du-card b { font-size: 24px; font-weight: 600; color: var(--dx-text); letter-spacing: -0.01em; }
.du-card b em { font-style: normal; font-size: 14px; font-weight: 500; color: var(--dx-text-2); }
.du-card small { font-size: 12px; color: var(--dx-text-2); }
.du-bar { height: 6px; border-radius: 3px; background: var(--dx-raised); overflow: hidden; } .du-bar i { display: block; height: 100%; min-width: 2px; background: var(--dx-accent); }
.du-list { margin-top: 16px; padding: 16px; border: 1px solid var(--dx-line); border-radius: var(--dx-r3); background: var(--dx-surface); }
.du-list h3 { margin: 0 0 8px; font-size: 15px; font-weight: 600; }
.du-row { display: grid; grid-template-columns: 160px 1fr auto; gap: 12px; padding: 10px 0; border-top: 1px solid var(--dx-line); font-size: 13px; }
.du-row span { color: var(--dx-text-2); } .du-row small { color: var(--dx-text-2); font-size: 12px; }
.du-empty { margin: 0; font-size: 13px; color: var(--dx-text-2); }
html body #device-detail-page .tab-pane > .card, html body .tab-content > .tab-pane > .card { border: 0 !important; background: none !important; box-shadow: none !important; padding: 0 !important; margin: 0 !important; }
html body .tab-content > .tab-pane > .card > .card-header:not(:has(button, a, select, input)) { display: none !important; }
html body .tab-content > .tab-pane > .card > .card-header { padding: 0 0 12px !important; border: 0 !important; background: none !important; }
html body .tab-content > .tab-pane > .card > .card-body { padding: 0 !important; }
html body .telemetry-view { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; align-items: start; }
html body .telemetry-view > .card { margin: 0 !important; padding: 16px !important; border: 1px solid var(--dx-line) !important; border-radius: var(--dx-r3) !important; background: var(--dx-surface) !important; box-shadow: none !important; }
html body .telemetry-view > .card .card-header, html body .telemetry-view > .card h3 { padding: 0 !important; margin: 0 0 12px !important; border: 0 !important; font-size: 15px !important; font-weight: 600 !important; background: none !important; }
html body .telemetry-view > .card .card-body { padding: 0 !important; }
html body #logs-tab > .card > .card-header { display: none !important; }
html body .tab-pane .empty-state { padding: 40px 16px !important; }
html body .empty-state-title, html body .tab-pane .empty-state h3 { font-size: 15px !important; font-weight: 600 !important; color: var(--dx-text) !important; margin: 0 0 6px !important; }
html body .empty-state-description, html body .empty-state p { font-size: 13px !important; color: var(--dx-text-2) !important; }
html body #history-tab .card .card { border: 1px solid var(--dx-line) !important; background: var(--dx-surface) !important; }
html body .tabs.history-sub-tabs, html body #history-tab .tabs { margin-bottom: 16px !important; }
html body .pb-cam-filter-btn.active, html body .pb-layout-btn.active, html body .pb-quality-btn.active, html body .pb-export-quality-btn.active, html body .det-sens-btn.active, html body .mode-btn.active, html body .ss-preset-btn.active, html body .vk-filter-btn.active, html body .vk-view-btn.active, html body .ss-cam-btn.active { background: var(--dx-raised) !important; color: var(--dx-text) !important; border-color: var(--dx-line-strong, var(--dx-line)) !important; box-shadow: inset 0 0 0 1px var(--dx-line-strong, var(--dx-line)) !important; }
html body .pb-cam-filter-btn, html body .pb-layout-btn, html body .pb-quality-btn, html body .pb-export-quality-btn, html body .vk-filter-btn, html body .vk-view-btn { background: transparent !important; color: var(--dx-text-2) !important; }
html body .pb-export-submit { background: var(--dx-btn) !important; border-color: var(--dx-btn) !important; color: #fff !important; }
html body .pb-video { border-color: var(--dx-line) !important; }
html body .btn-primary, html body .btn.btn-primary { background: var(--dx-btn) !important; border-color: var(--dx-btn) !important; color: #fff !important; }
html body .btn-primary:hover { background: var(--dx-btn-hover) !important; }
html body .map-devices-filter-btn { gap: 6px !important; }
html body .map-toggle-switch { position: relative !important; flex-shrink: 0; cursor: pointer; }
html body .map-toggle-switch::before { content: none !important; display: none !important; }
html body .map-toggle-switch::after { content: "" !important; position: absolute !important; top: 2px !important; left: 2px !important; width: 14px !important; height: 14px !important; border-radius: 50% !important; background: #fff !important; transition: transform .15s ease !important; transform: none; }
html body .map-toggle-switch.active::after { transform: translateX(14px) !important; }
html body .btn-icon-view { background: transparent !important; color: var(--dx-text-2) !important; border: 1px solid transparent !important; }
html body .btn-icon-view.active { background: var(--dx-raised) !important; color: var(--dx-text) !important; border-color: var(--dx-line-strong, var(--dx-line)) !important; }
html body .users-page .device-card-header { min-height: 0 !important; height: auto !important; padding: 12px 16px 0 !important; background: none !important; display: flex; justify-content: flex-end; }
html body .users-page .device-card-header img { display: none !important; }
html body .user-avatar { background: var(--dx-btn) !important; }
html body.users-page .devices-grid .device-card .device-card-header { min-height: 0 !important; height: 28px !important; padding: 12px 16px 0 !important; background: none !important; }
html body.users-page .devices-grid .device-card .device-card-thumbnail { display: none !important; }
html body .tab-content .card > .card-header { padding: 16px 20px !important; }
html body .tab-content .card > .card-body { padding: 16px 20px !important; }
html body .tab-content .card .card-title { font-size: 15px !important; font-weight: 600 !important; }
html body .tabs .tab[style*="display:none"], html body .tabs .tab[style*="display: none"], html body .tabs .tab[hidden] { display: none !important; }
html body .vw-stage { min-height: calc(100vh - 200px); }
html body .vw-grid { flex: 1; height: calc(100vh - 200px) !important; min-height: 360px; grid-auto-rows: minmax(0, 1fr) !important; align-content: stretch; }
html body .vw-tile { min-height: 0 !important; height: 100% !important; }
html body .vw-tile img, html body .vw-tile video { width: 100% !important; height: 100% !important; object-fit: contain !important; }
.dxn { position: relative; margin-right: 10px; display: flex; align-items: center; }
.dxn-bell { position: relative; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--dx-line); border-radius: 10px; background: transparent; color: var(--dx-text-2); cursor: pointer; }
.dxn-bell:hover, .dxn-bell[aria-expanded="true"] { color: var(--dx-text); background: var(--dx-raised); }
.dxn-bell:focus-visible { outline: 2px solid var(--dx-accent); outline-offset: 2px; }
.dxn-bell.alarm { color: var(--dx-red); border-color: rgba(222,50,67,.45); }
.dxn-n { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--dx-red); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--dx-canvas); }
.dxn-n[hidden] { display: none; }
.dxn-pop { position: absolute; top: calc(100% + 10px); right: -8px; z-index: 9000; width: 420px; max-width: calc(100vw - 24px); max-height: min(640px, calc(100vh - 90px)); display: none; flex-direction: column; border: 1px solid var(--dx-line); border-radius: 14px; background: var(--dx-surface); box-shadow: 0 18px 48px rgba(0,0,0,.55); overflow: hidden; }
.dxn-pop.on { display: flex; }
.dxn-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 12px; border-bottom: 1px solid var(--dx-line); }
.dxn-h > b { font-size: 15px; font-weight: 600; color: var(--dx-text); }
.dxn-seg { display: inline-flex; padding: 2px; border: 1px solid var(--dx-line); border-radius: 8px; background: var(--dx-canvas); }
.dxn-seg button { height: 26px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: var(--dx-text-2); font: inherit; font-size: 12.5px; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.dxn-seg button.on { background: var(--dx-raised); color: var(--dx-text); box-shadow: inset 0 0 0 1px var(--dx-line-strong, var(--dx-line)); }
.dxn-seg i { font-style: normal; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--dx-red); color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; }
.dxn-sum { display: flex; align-items: center; gap: 8px; margin: 10px 12px 0; padding: 9px 12px; border-radius: 10px; background: var(--dx-red-weak); color: var(--dx-red); font-size: 12.5px; font-weight: 500; }
.dxn-l { overflow: auto; padding: 6px; }
.dxn-i { width: 100%; display: flex; align-items: flex-start; gap: 12px; padding: 10px; border: 0; border-radius: 10px; background: transparent; text-align: left; cursor: pointer; color: var(--dx-text); font: inherit; position: relative; }
.dxn-i:hover, .dxn-i:focus-visible { background: var(--dx-raised); outline: none; }
.dxn-i.un::before { content: ""; position: absolute; left: 2px; top: 22px; width: 6px; height: 6px; border-radius: 50%; background: var(--dx-accent); }
.dxn-ic { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; }
.dxn-ic.red { background: var(--dx-red-weak); color: var(--dx-red); }
.dxn-ic.amber { background: var(--dx-amber-weak); color: var(--dx-amber); }
.dxn-ic.done { background: var(--dx-raised); color: var(--dx-text-2); }
.dxn-shot { flex-shrink: 0; width: 72px; height: 44px; border-radius: 8px; overflow: hidden; background: #000; display: inline-flex; align-items: center; justify-content: center; color: var(--dx-text-2); }
.dxn-shot img { width: 100%; height: 100%; object-fit: cover; }
.dxn-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dxn-t b { font-size: 13.5px; font-weight: 600; color: var(--dx-text); }
.dxn-t > span { font-size: 12px; color: var(--dx-text-2); }
.dxn-t em { font-style: normal; font-size: 12px; line-height: 1.4; color: var(--dx-text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dxn-t small { font-size: 11.5px; font-weight: 600; margin-top: 2px; }
.dxn-t small.red { color: var(--dx-red); } .dxn-t small.amber { color: var(--dx-amber); } .dxn-t small.done { color: var(--dx-green); }
.dxn-time { flex-shrink: 0; font-size: 11.5px; color: var(--dx-text-3, var(--dx-text-2)); white-space: nowrap; padding-top: 2px; }
.dxn-e { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 36px 16px; text-align: center; }
.dxn-e > span { width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--dx-green-weak); color: var(--dx-green); margin-bottom: 6px; }
.dxn-e b { font-size: 14px; } .dxn-e p { margin: 0; font-size: 12.5px; color: var(--dx-text-2); }
.dxn-f { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-top: 1px solid var(--dx-line); font-size: 12.5px; color: var(--dx-text-2); }
.dxn-f a { color: var(--dx-accent); text-decoration: none; font-weight: 500; } .dxn-f a:hover { text-decoration: underline; }
#dxn-toast { position: fixed; right: 20px; bottom: 20px; z-index: 12000; width: 380px; max-width: calc(100vw - 32px); transform: translateY(16px); opacity: 0; pointer-events: none; transition: all .2s ease; }
#dxn-toast.on { transform: none; opacity: 1; pointer-events: auto; }
.dxn-tc { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1px solid rgba(222,50,67,.45); border-radius: 14px; background: var(--dx-surface); box-shadow: 0 18px 48px rgba(0,0,0,.55); cursor: pointer; }
.dxn-x { border: 0; background: none; color: var(--dx-text-2); font-size: 20px; line-height: 1; cursor: pointer; padding: 0 4px; }
.vi-page #vi-bell { display: none !important; }
@media (max-width: 600px) { .dxn-pop { position: fixed; top: 60px; right: 12px; left: 12px; width: auto; } }
.do-alarm-card { margin-top: 12px; }
.da-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; } .da-h h3 { margin: 0; font-size: 15px; font-weight: 600; }
.da-active { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.da-card { display: flex; align-items: flex-start; gap: 14px; padding: 14px; border-radius: 12px; border: 1px solid var(--dx-line); background: var(--dx-canvas); }
.da-card.red { border-color: rgba(222,50,67,.45); background: linear-gradient(0deg, rgba(222,50,67,.06), rgba(222,50,67,.06)), var(--dx-canvas); }
.da-card.amber { border-color: rgba(255,171,64,.4); }
.da-card .dxn-ic { width: 48px; height: 48px; border-radius: 13px; }
.da-b { flex: 1; min-width: 0; } .da-b b { display: block; font-size: 14.5px; font-weight: 600; } .da-b p { margin: 3px 0 0; font-size: 13px; color: var(--dx-text-2); line-height: 1.45; } .da-b small { display: block; margin-top: 6px; font-size: 12px; color: var(--dx-text-2); }
.da-ok { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 12px; border: 1px solid var(--dx-line); background: var(--dx-canvas); }
.da-ok > span { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--dx-green-weak); color: var(--dx-green); flex-shrink: 0; }
.da-ok b { font-size: 14px; } .da-ok p { margin: 2px 0 0; font-size: 12.5px; color: var(--dx-text-2); }
.da-hist { margin-top: 16px; } .da-hh { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 4px; } .da-hh b { font-size: 13px; font-weight: 600; }
.da-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--dx-line); }
.dxn-ic.sm { width: 30px; height: 30px; border-radius: 8px; }
.da-rt { flex: 1; min-width: 0; display: flex; flex-direction: column; } .da-rt b { font-size: 13px; font-weight: 500; } .da-rt span { font-size: 12px; color: var(--dx-text-2); }
.da-rs { font-size: 12px; color: var(--dx-text-2); white-space: nowrap; } .da-rs.red { color: var(--dx-red); font-weight: 600; } .da-rs.amber { color: var(--dx-amber); font-weight: 600; }
.da-empty { margin: 8px 0 0; font-size: 13px; color: var(--dx-text-2); }
.device-marker { overflow: visible !important; }
.device-marker.dx-mk-alarm > div { box-shadow: 0 0 0 3px var(--dx-amber), 0 2px 10px rgba(0,0,0,.45) !important; }
.device-marker.dx-mk-urgent > div { box-shadow: 0 0 0 3px var(--dx-red), 0 2px 10px rgba(0,0,0,.45) !important; }
.device-marker.dx-mk-urgent > div::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid var(--dx-red); animation: dxpulse 1.8s ease-out infinite; pointer-events: none; }
@keyframes dxpulse { 0% { transform: scale(.7); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .device-marker.dx-mk-urgent > div::after { animation: none; } }
.dx-mk-tag { position: absolute; top: -12px; right: -16px; display: inline-flex; align-items: center; gap: 2px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--dx-amber); color: #111; font-size: 10px; font-weight: 700; box-shadow: 0 0 0 2px var(--dx-canvas); }
.dx-mk-urgent .dx-mk-tag { background: var(--dx-red); color: #fff; }
.dx-mk-tag i { font-style: normal; }
.mp-al { display: flex; flex-direction: column; gap: 6px; }
.mp-al-i { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--dx-line); background: var(--dx-canvas); text-decoration: none; color: var(--dx-text); }
.mp-al-i.red { border-color: rgba(222,50,67,.45); } .mp-al-i.amber { border-color: rgba(255,171,64,.4); }
.mp-al-i b { display: block; font-size: 13px; font-weight: 600; } .mp-al-i small { font-size: 11.5px; color: var(--dx-text-2); }
.mp-al-ok { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--dx-green); }
.dx-card-alarm { display: flex; align-items: center; gap: 8px; margin: 10px 16px 14px; padding: 8px 10px; border-radius: 10px; font-size: 12.5px; font-weight: 600; }
.dx-card-alarm.red { background: var(--dx-red-weak); color: var(--dx-red); } .dx-card-alarm.amber { background: var(--dx-amber-weak); color: var(--dx-amber); }
.vi-src { display: inline-flex; gap: 4px; padding: 3px; margin: 0 0 14px; border: 1px solid var(--dx-line); border-radius: 12px; background: var(--dx-surface); }
.vi-src button { height: 36px; padding: 0 16px; border: 0; border-radius: 9px; background: transparent; color: var(--dx-text-2); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.vi-src button.on { background: var(--dx-raised); color: var(--dx-text); box-shadow: inset 0 0 0 1px var(--dx-line-strong, var(--dx-line)); }
.vi-src button i { font-style: normal; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--dx-red); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.vi-src button:focus-visible { outline: 2px solid var(--dx-accent); outline-offset: 1px; }
.vi-dlist { display: flex; flex-direction: column; gap: 10px; }
.vi-dal { display: flex; align-items: flex-start; gap: 16px; padding: 16px; border: 1px solid var(--dx-line); border-radius: 14px; background: var(--dx-surface); }
.vi-dal.red { border-color: rgba(222,50,67,.45); } .vi-dal.amber { border-color: rgba(255,171,64,.4); }
.vi-dal .dxn-ic { width: 52px; height: 52px; border-radius: 14px; }
.vi-dal-b { flex: 1; min-width: 0; } .vi-dal-b b { display: block; font-size: 15px; font-weight: 600; color: var(--dx-text); } .vi-dal-b p { margin: 4px 0 0; font-size: 13px; color: var(--dx-text-2); line-height: 1.45; }
.vi-dal-m { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 12.5px; color: var(--dx-text-2); }
.vi-dal-m a { color: var(--dx-text); font-weight: 500; text-decoration: none; } .vi-dal-m a:hover { color: var(--dx-accent); }
.vi-dal-s { font-weight: 600; } .vi-dal-s.red { color: var(--dx-red); } .vi-dal-s.amber { color: var(--dx-amber); } .vi-dal-s.done { color: var(--dx-green); }
.vi-dok { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 56px 16px; text-align: center; }
.vi-dok > span { width: 60px; height: 60px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--dx-green-weak); color: var(--dx-green); margin-bottom: 8px; }
.vi-dok b { font-size: 15px; color: var(--dx-text); } .vi-dok p { margin: 0; font-size: 13px; color: var(--dx-text-2); }

.dx-evb { position: absolute; left: 8px; bottom: 8px; z-index: 2; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.94); box-shadow: 0 1px 4px rgba(0,0,0,.25); pointer-events: none; }
.dx-evb svg { width: 16px; height: 16px; }
.dx-evb.blue { color: #0071e3; } .dx-evb.green { color: #248a3d; } .dx-evb.amber { color: #c66a00; } .dx-evb.red { color: #fff; background: rgba(229,56,59,.95); } .dx-evb.purple { color: #5e5ce6; } .dx-evb.gray { color: #6e6e73; }
.wx-card-pic .dx-evb { left: 10px; bottom: 10px; }
.dxn-shot { position: relative; }
.dxn-shot .dx-evb { left: 3px; bottom: 3px; width: 18px; height: 18px; }
.dxn-shot .dx-evb svg { width: 11px; height: 11px; }

.ag-wrap { display: flex; flex-direction: column; gap: 16px; }
.ag-intro h2 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.01em; color: var(--dx-text); }
.ag-intro p { margin: 4px 0 0; color: var(--dx-text-2); font-size: 14px; }
.ag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.ag-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: var(--dx-r3); background: var(--dx-surface); border: 1px solid var(--dx-line); cursor: pointer; text-align: left; transition: box-shadow .2s, transform .2s; outline: none; }
.ag-card:hover, .ag-card:focus-visible { border-color: var(--dx-line-2); }
.ag-card.soon { cursor: default; opacity: .6; }
.ag-card.soon:hover { box-shadow: none; transform: none; }
.ag-top { display: flex; align-items: center; gap: 12px; }
.ag-id { flex: 1; min-width: 0; }
.ag-id h3 { margin: 0; font-size: 16px; font-weight: 600; color: var(--dx-text); }
.ag-av { position: relative; flex: none; width: 44px; height: 44px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--ag, #8e8e93); }
.ag-av svg { width: 22px; height: 22px; }
.ag-av:not(.on) { background: var(--dx-hover); color: var(--dx-text-2); }
.ag-av.soon { background: var(--dx-hover); color: var(--dx-text-3); }
.ag-av.lg { width: 56px; height: 56px; border-radius: var(--dx-r3); }
.ag-av.lg svg { width: 28px; height: 28px; }
.ag-av.sm { width: 28px; height: 28px; border-radius: 8px; }
.ag-av.sm svg { width: 15px; height: 15px; }
.ag-pulse { position: absolute; right: -3px; bottom: -3px; width: 12px; height: 12px; border-radius: 50%; background: #30d158; box-shadow: 0 0 0 2px var(--dx-surface); }
.ag-pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #30d158; animation: agp 2s ease-out infinite; }
@keyframes agp { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.4); opacity: 0; } }
.ag-st { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 12px; font-weight: 500; color: var(--dx-text-2); }
.ag-st.on { color: var(--dx-green); }
.ag-st.on i { width: 6px; height: 6px; border-radius: 50%; background: #30d158; }
.ag-tools { display: inline-flex; gap: 4px; }
.ag-tool { width: 32px; height: 32px; border-radius: 9px; border: 0; background: transparent; color: var(--dx-text-2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.ag-tool:hover { background: var(--dx-raised); color: var(--dx-text); }
.ag-tool svg { width: 17px; height: 17px; }
.ag-tool.on { color: var(--dx-accent); }
.ag-tool.on svg { fill: currentColor; }
.ag-role { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--dx-text-2); }
.ag-today { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 11px; background: var(--dx-raised); }
.ag-today.off { color: var(--dx-text-2); }
.ag-today-l { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: var(--dx-text); min-width: 0; }
.ag-today.off .ag-today-l { color: var(--dx-text-2); font-weight: 400; }
.ag-today-l svg { flex: none; color: var(--dx-green); }
.ag-spark { flex: none; display: block; }
.ag-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ag-kpis span { display: flex; flex-direction: column; min-width: 0; }
.ag-kpis b { font-size: 18px; font-weight: 600; color: var(--dx-text); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-kpis small { font-size: 11.5px; color: var(--dx-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-err { color: var(--dx-text-2); }
.ag-toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; padding: 10px 16px; border-radius: 12px; background: rgba(29,29,31,.92); color: #fff; font-size: 13px; font-weight: 500; z-index: 10050; transition: all .25s; pointer-events: none; }
.ag-toast.in { opacity: 1; transform: translate(-50%, 0); }

.ag-work { display: flex; align-items: center; gap: 18px; margin: 0 0 20px; padding: 16px 18px; border-radius: var(--dx-r3); background: var(--dx-surface); border: 1px solid var(--dx-line); }
.ag-work-b { flex: 1; min-width: 0; }
.ag-work-b p { margin: 4px 0 0; font-size: 15px; font-weight: 500; color: var(--dx-text); }
.ag-work-n { display: flex; gap: 22px; }
.ag-work-n span { display: flex; flex-direction: column; }
.ag-work-n small { font-size: 11px; color: var(--dx-text-2); text-transform: uppercase; letter-spacing: .04em; }
.ag-work-n b { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--dx-text); }
.ag-work-n em { font-style: normal; font-size: 12px; color: var(--dx-text-2); }
.ag-work-s { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ag-work-s small { font-size: 11px; color: var(--dx-text-2); }
@media (max-width: 900px) { .ag-work { flex-wrap: wrap; } .ag-work-n { width: 100%; } }

.br { margin: 0 0 16px; padding: 18px 20px; border-radius: var(--dx-r3); background: var(--dx-surface); border: 1px solid var(--dx-line); display: flex; flex-direction: column; gap: 14px; }
.br-head { display: flex; align-items: center; gap: 14px; }
.br-orb { flex: none; width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: #30d158; }
.br-orb.amber { background: #ff9f0a; } .br-orb.red { background: #e5383b; }
.br-orb svg { width: 22px; height: 22px; }
.br-txt { flex: 1; min-width: 0; }
.br-txt small { font-size: 12.5px; color: var(--dx-text-2); }
.br-txt p { margin: 2px 0 0; font-size: 16px; font-weight: 500; line-height: 1.4; color: var(--dx-text); }
.br-team { display: flex; align-items: center; gap: 0; flex: none; }
.br-tm { width: 30px; height: 30px; border-radius: 50%; margin-left: -6px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--ag); box-shadow: 0 0 0 2px var(--dx-surface); }
.br-tm:first-child { margin-left: 0; }
.br-tm svg { width: 15px; height: 15px; }
.br-team em { margin-left: 10px; font-style: normal; font-size: 12.5px; font-weight: 500; color: var(--dx-text-2); white-space: nowrap; }
.br-recs { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 8px; }
.br-rec { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--dx-raised); text-decoration: none; color: inherit; transition: background .15s; }
.br-rec:hover { background: var(--dx-hover); }
.br-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: #8e8e93; }
.br-ic.red { background: #e5383b; } .br-ic.amber { background: #ff9f0a; } .br-ic.blue { background: var(--dx-accent); color: #04121b; } .br-ic.green { background: #30d158; }
.br-ic svg { width: 18px; height: 18px; }
.br-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.br-t b { font-size: 13.5px; font-weight: 600; color: var(--dx-text); }
.br-t small { font-size: 12.5px; color: var(--dx-text-2); }
.br-go { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--dx-accent); }
.br-pins { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.br-pin { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--dx-line); background: var(--dx-surface); text-align: left; cursor: pointer; border-top: 3px solid var(--ag); }
.br-pin:hover { background: var(--dx-raised); }
.br-pin-h { display: flex; align-items: center; gap: 8px; }
.br-pin-h b { flex: 1; font-size: 14px; font-weight: 600; color: var(--dx-text); }
.br-pin-s { font-size: 13px; line-height: 1.4; color: var(--dx-text-2); }
.br-pin-k { display: flex; gap: 18px; }
.br-pin-k span { display: flex; flex-direction: column; }
.br-pin-k b { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--dx-text); }
.br-pin-k small { font-size: 11.5px; color: var(--dx-text-2); }
@media (max-width: 900px) { .br-head { flex-wrap: wrap; } .br-team { width: 100%; } }

.ix-adv { margin: 16px 0; }
.br-rec.flat { cursor: default; }
.br-rec.flat:hover { background: var(--dx-raised); }

.cc { display: flex; flex-direction: column; gap: 20px; }
.cc img { opacity: 0; transition: opacity .2s; }
.cc img.ok { transition: none; }
.cc img.ok { opacity: 1; }
.cc-hero { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 24px; border-radius: 18px; border: 1px solid var(--dx-line); background: radial-gradient(120% 140% at 0% 0%, rgba(48,209,88,.16), transparent 55%), linear-gradient(135deg, var(--dx-raised), var(--dx-surface)); }
.cc-hero.red { background: radial-gradient(120% 140% at 0% 0%, rgba(229,56,59,.22), transparent 55%), linear-gradient(135deg, var(--dx-raised), var(--dx-surface)); }
.cc-hero.amber { background: radial-gradient(120% 140% at 0% 0%, rgba(255,159,10,.18), transparent 55%), linear-gradient(135deg, var(--dx-raised), var(--dx-surface)); }
.cc-hero-l { display: flex; align-items: center; gap: 18px; min-width: 0; }
.cc-hero-l small { font-size: 13px; color: var(--dx-text-2); }
.cc-hero-l h2 { margin: 2px 0 10px; font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; color: var(--dx-text); max-width: 640px; }
.cc-orb { position: relative; flex: none; width: 62px; height: 62px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: #30d158; box-shadow: 0 0 0 8px rgba(48,209,88,.14), 0 10px 30px rgba(48,209,88,.35); }
.cc-orb.red { background: #e5383b; box-shadow: 0 0 0 8px rgba(229,56,59,.16), 0 10px 30px rgba(229,56,59,.4); animation: ccpulse 2.2s ease-in-out infinite; }
.cc-orb.amber { background: #ff9f0a; box-shadow: 0 0 0 8px rgba(255,159,10,.15), 0 10px 30px rgba(255,159,10,.35); }
.cc-orb svg { width: 30px; height: 30px; }
@keyframes ccpulse { 0%, 100% { box-shadow: 0 0 0 8px rgba(229,56,59,.16), 0 10px 30px rgba(229,56,59,.4); } 50% { box-shadow: 0 0 0 14px rgba(229,56,59,.06), 0 10px 30px rgba(229,56,59,.4); } }
.cc-crew { display: flex; align-items: center; }
.cc-crew-a { width: 28px; height: 28px; margin-left: -6px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--ag); box-shadow: 0 0 0 2px var(--dx-surface); }
.cc-crew-a:first-child { margin-left: 0; }
.cc-crew-a svg { width: 14px; height: 14px; }
.cc-crew em { margin-left: 10px; font-style: normal; font-size: 13px; color: var(--dx-text-2); }
.cc-kpis { flex: none; display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)); gap: 8px; }
.cc-kpi { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--dx-line); background: rgba(255,255,255,.03); color: inherit; text-align: left; cursor: default; font-family: inherit; }
.cc-kpi[data-k] { cursor: pointer; }
.cc-kpi[data-k]:hover { border-color: var(--dx-line-2); background: rgba(255,255,255,.06); }
.cc-kpi-i { flex: none; width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--dx-hover); color: var(--dx-text); }
.cc-kpi-i svg { width: 18px; height: 18px; }
.cc-kpi.red .cc-kpi-i { background: #e5383b; color: #fff; }
.cc-kpi.green .cc-kpi-i { background: rgba(48,209,88,.18); color: #30d158; }
.cc-kpi.amber .cc-kpi-i { background: rgba(255,159,10,.18); color: #ff9f0a; }
.cc-kpi-t { display: flex; flex-direction: column; min-width: 0; }
.cc-kpi-t b { font-size: 20px; font-weight: 650; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--dx-text); }
.cc-kpi-t small { font-size: 11.5px; color: var(--dx-text-2); white-space: nowrap; }

.cc-main { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.cc-left { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.cc-sec-h { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.cc-sec-h h3 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 600; color: var(--dx-text); }
.cc-meta { font-size: 13px; color: var(--dx-text-2); }
.cc-sec-h .cc-meta, .cc-sec-h .cc-link, .cc-sec-h .cc-legend { margin-left: auto; }
.cc-count { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; background: var(--dx-hover); color: var(--dx-text-2); }
.cc-count.red { background: #e5383b; color: #fff; }
.cc-link { border: 0; background: none; color: var(--dx-accent); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.cc-back { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--dx-line); background: var(--dx-surface); color: var(--dx-text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.cc-back svg { width: 14px; height: 14px; transform: rotate(180deg); }

.cc-pic { position: relative; width: 100%; height: 100%; background: #0c151d; overflow: hidden; }
.cc-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cc-noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--dx-text-3); }
.cc-noimg svg { width: 28px; height: 28px; }
.cc-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 45%, rgba(0,0,0,.78) 100%); pointer-events: none; }

.cc-needs { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.cc-needs .cc-need { flex: 0 0 300px; scroll-snap-align: start; }
.cc-need-b p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 42px; }
.cc-need { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--dx-surface); border: 1px solid var(--dx-line); transition: transform .25s, opacity .25s, border-color .2s; }
.cc-need.red { border-color: rgba(229,56,59,.45); box-shadow: 0 0 0 1px rgba(229,56,59,.15), 0 12px 34px rgba(229,56,59,.12); }
.cc-need:hover { border-color: var(--dx-line-2); }
.cc-need.red:hover { border-color: rgba(229,56,59,.7); }
.cc-need.busy { opacity: .6; pointer-events: none; }
.cc-need.gone { opacity: 0; transform: scale(.96); }
.cc-need-pic { position: relative; aspect-ratio: 16 / 9; cursor: pointer; }
.cc-need-pic .dx-evb { width: 34px; height: 34px; left: 12px; bottom: 12px; }
.cc-need-pic .dx-evb svg { width: 19px; height: 19px; }
.cc-need-sev { position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 650; color: #fff; background: rgba(229,56,59,.95); letter-spacing: .02em; }
.cc-need-sev.amber { background: rgba(255,159,10,.95); color: #1d1300; }
.cc-need-t { position: absolute; right: 12px; top: 12px; padding: 4px 9px; border-radius: 8px; font-size: 12px; font-weight: 600; color: #fff; background: rgba(0,0,0,.55); backdrop-filter: blur(8px); }
.cc-need-b { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; }
.cc-need-b p { margin: 0; font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--dx-text); }
.cc-need-b small { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--dx-text-2); }
.cc-by { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.cc-by b { font-weight: 600; color: var(--dx-text); }
.cc-by span:last-child { margin-left: auto; color: var(--dx-text-2); font-size: 12px; }
.cc-av { flex: none; width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--ag, #8e8e93); }
.cc-av svg { width: 15px; height: 15px; }
.cc-acts { display: flex; gap: 6px; margin-top: 4px; }
.cc-act { height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--dx-line-2); background: var(--dx-raised); color: var(--dx-text); display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 13px; font-weight: 550; cursor: pointer; white-space: nowrap; }
.cc-act:hover { background: var(--dx-hover); }
.cc-act.real { background: var(--dx-accent); border-color: var(--dx-accent); color: #03141c; }
.cc-act.real:hover { filter: brightness(1.08); }
.cc-act.icon { width: 36px; padding: 0; justify-content: center; margin-left: auto; }
.cc-act.icon + .cc-act.icon { margin-left: 0; }
.cc-act svg { width: 15px; height: 15px; }
.cc-clear { display: flex; align-items: center; gap: 16px; padding: 22px; border-radius: 16px; border: 1px solid rgba(48,209,88,.3); background: linear-gradient(135deg, rgba(48,209,88,.1), transparent); }
.cc-clear > span { width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #30d158; color: #fff; }
.cc-clear b { font-size: 17px; color: var(--dx-text); }
.cc-clear p { margin: 2px 0 0; font-size: 13.5px; color: var(--dx-text-2); }

.cc-sites { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.cc-site { display: flex; flex-direction: column; padding: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--dx-line); background: var(--dx-surface); color: inherit; text-align: left; cursor: pointer; font-family: inherit; transition: transform .2s, border-color .2s; }
.cc-site:hover { transform: translateY(-2px); border-color: var(--dx-line-2); }
.cc-site.red { border-color: rgba(229,56,59,.4); }
.cc-site-pic { position: relative; aspect-ratio: 16 / 8; background: #0c151d; }
.cc-site-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cc-site-st { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; color: #fff; background: rgba(0,0,0,.5); backdrop-filter: blur(10px); }
.cc-site-st i { width: 8px; height: 8px; border-radius: 50%; background: #30d158; }
.cc-site-st.red i { background: #ff453a; box-shadow: 0 0 0 3px rgba(255,69,58,.3); }
.cc-site-st.amber i { background: #ff9f0a; }
.cc-site-name { position: absolute; left: 14px; right: 14px; bottom: 12px; display: flex; flex-direction: column; }
.cc-site-name b { font-size: 17px; font-weight: 650; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.cc-site-name span { font-size: 12px; color: rgba(255,255,255,.78); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-site-f { display: flex; align-items: center; gap: 14px; padding: 10px 14px; font-size: 12.5px; color: var(--dx-text-2); }
.cc-site-f > span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.cc-st-strip { margin-left: auto; display: flex; gap: 3px; }
.cc-st-c { position: relative; width: 30px; height: 20px; border-radius: 4px; overflow: hidden; background: #0c151d; }
.cc-st-c img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cc-st-c.off { outline: 1px solid rgba(255,159,10,.6); }

.cc-cams { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.cc-cam { position: relative; aspect-ratio: 16 / 10; padding: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--dx-line); background: #0c151d; cursor: pointer; text-align: left; font-family: inherit; color: #fff; }
.cc-cam .cc-pic { position: absolute; inset: 0; }
.cc-cam.att { border-color: rgba(229,56,59,.6); }
.cc-cam.off .cc-pic img { filter: grayscale(1) brightness(.6); }
.cc-cam:hover { border-color: var(--dx-line-2); }
.cc-cam .dx-evb { left: auto; right: 10px; bottom: auto; top: 10px; }
.cc-cam-st { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; background: rgba(0,0,0,.5); backdrop-filter: blur(8px); }
.cc-cam-st i { width: 6px; height: 6px; border-radius: 50%; background: #8e8e93; }
.cc-cam-st i.on { background: #30d158; }
.cc-cam-att { position: absolute; right: 50px; top: 12px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #e5383b; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.cc-cam-n { position: absolute; left: 12px; right: 12px; bottom: 10px; display: flex; flex-direction: column; }
.cc-cam-n b { font-size: 14px; font-weight: 600; }
.cc-cam-n span { font-size: 11.5px; color: rgba(255,255,255,.75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.cc-feed { position: sticky; top: 16px; display: flex; flex-direction: column; max-height: calc(100vh - 120px); border-radius: 16px; border: 1px solid var(--dx-line); background: var(--dx-surface); overflow: hidden; }
.cc-feed-h { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 10px; }
.cc-feed-h h3 { margin: 0; font-size: 16px; font-weight: 600; color: var(--dx-text); }
.cc-live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #30d158; }
.cc-live i { width: 7px; height: 7px; border-radius: 50%; background: #30d158; animation: agp 2s ease-out infinite; }
.cc-chips { flex: none; display: flex; gap: 6px; padding: 0 16px 12px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--dx-line); }
.cc-chip { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: 14px; border: 1px solid var(--dx-line-2); background: transparent; color: var(--dx-text-2); font: inherit; font-size: 12px; font-weight: 550; cursor: pointer; }
.cc-chip svg { color: var(--ag, currentColor); }
.cc-chip.on { background: var(--dx-text); border-color: var(--dx-text); color: #0b1720; }
.cc-chip.on svg { color: inherit; }
.cc-posts { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 6px 8px 12px; }
.cc-post { display: flex; gap: 10px; padding: 12px 8px; border-radius: 12px; cursor: pointer; }
.cc-post:hover { background: var(--dx-raised); }
.cc-post .cc-av { width: 32px; height: 32px; border-radius: 10px; }
.cc-post .cc-av svg { width: 17px; height: 17px; }
.cc-post.needs { background: rgba(229,56,59,.08); }
.cc-post-b { flex: 1; min-width: 0; }
.cc-post-h { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.cc-post-h b { color: var(--dx-text); font-weight: 600; }
.cc-post-h span { color: var(--dx-text-3); font-size: 12px; }
.cc-post-h em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 650; color: #fff; background: #e5383b; padding: 2px 7px; border-radius: 6px; }
.cc-post p { margin: 3px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--dx-text-2); }
.cc-post.red p { color: var(--dx-text); }
.cc-post-pics { display: grid; gap: 4px; margin-top: 8px; }
.cc-post-pics.n1 { grid-template-columns: 1fr; }
.cc-post-pics.n2 { grid-template-columns: 1fr 1fr; }
.cc-post-pics.n3 { grid-template-columns: 1fr 1fr 1fr; }
.cc-post-pics span { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #0c151d; }
.cc-post-pics.n1 span { aspect-ratio: 16 / 8; }
.cc-post-pics img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cc-quiet { padding: 20px; color: var(--dx-text-2); font-size: 13.5px; }

.cc-daysec { padding: 16px 18px; border-radius: 16px; border: 1px solid var(--dx-line); background: var(--dx-surface); }
.cc-legend { display: flex; gap: 14px; font-size: 12px; color: var(--dx-text-2); }
.cc-legend span { display: inline-flex; align-items: center; gap: 5px; }
.cc-legend i { width: 8px; height: 8px; border-radius: 2px; }
.cc-legend i.p, .cc-bar i.p { background: var(--dx-accent); }
.cc-legend i.v, .cc-bar i.v { background: #ff9f0a; }
.cc-legend i.o, .cc-bar i.o { background: #5b6772; }
.cc-day { display: grid; grid-template-columns: repeat(24, 1fr); gap: 4px; height: 110px; }
.cc-hr { display: flex; flex-direction: column; gap: 4px; }
.cc-bar { flex: 1; display: flex; flex-direction: column-reverse; border-radius: 4px; background: rgba(255,255,255,.03); overflow: hidden; }
.cc-bar i { display: block; }
.cc-hr.now .cc-bar { box-shadow: inset 0 0 0 1px var(--dx-accent); }
.cc-hr.future .cc-bar { background: transparent; border: 1px dashed var(--dx-line); }
.cc-hr span { height: 14px; font-size: 10.5px; color: var(--dx-text-3); text-align: center; }

@media (max-width: 1280px) { .cc-main { grid-template-columns: minmax(0, 1fr) 320px; } .cc-kpis { grid-template-columns: repeat(2, minmax(140px, 1fr)); } }
@media (max-width: 1000px) { .cc-main { grid-template-columns: 1fr; } .cc-feed { position: static; max-height: 560px; } .cc-hero { flex-direction: column; align-items: stretch; } .cc-kpis { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .cc-kpis { grid-template-columns: repeat(2, 1fr); } .cc-needs, .cc-sites { grid-template-columns: 1fr; } }

.cc-mode { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--dx-raised); border: 1px solid var(--dx-line); }
.cc-mode button { height: 30px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; color: var(--dx-text-2); font: inherit; font-size: 13px; font-weight: 550; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.cc-mode button.on { background: var(--dx-hover); color: var(--dx-text); }
.cc-mode svg { width: 15px; height: 15px; }
.cc-modebar { display: flex; justify-content: flex-end; margin: -4px 0 14px; }

.cc-agents { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.cc-agent { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 14px; border: 1px solid var(--dx-line); border-top: 3px solid var(--ag); background: linear-gradient(180deg, color-mix(in srgb, var(--ag) 10%, transparent), transparent 60%), var(--dx-surface); color: inherit; text-align: left; font-family: inherit; cursor: pointer; transition: transform .2s; }
.cc-agent:hover { transform: translateY(-2px); }
.cc-agent-h { display: flex; align-items: center; gap: 10px; }
.cc-agent-h > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.cc-agent-h b { font-size: 14.5px; font-weight: 600; color: var(--dx-text); }
.cc-agent-h small { font-size: 12px; color: var(--dx-text-2); }
.cc-av.lg { position: relative; width: 38px; height: 38px; border-radius: 11px; }
.cc-av.lg svg { width: 20px; height: 20px; }
.cc-agent-s { font-size: 13.5px; line-height: 1.4; color: var(--dx-text); }
.cc-agent-k { display: flex; gap: 18px; }
.cc-agent-k span { display: flex; flex-direction: column; }
.cc-agent-k b { font-size: 18px; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--dx-text); }
.cc-agent-k small { font-size: 11.5px; color: var(--dx-text-2); }

.vi-by { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; font-size: 12.5px; color: var(--dx-text-2); }
.vi-by b { color: var(--dx-text); font-weight: 600; }
.vi-by .cc-av { width: 22px; height: 22px; border-radius: 7px; }
.vi-by .cc-av svg { width: 13px; height: 13px; }
.vi-qa { margin-top: 10px; }
.vi-card.busy { opacity: .6; pointer-events: none; }
.vi-card.gone { opacity: 0; transform: scale(.97); transition: all .25s; }

.vx-sites { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.vx-site { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; border: 1px solid var(--dx-line); background: var(--dx-surface); cursor: pointer; transition: transform .2s, border-color .2s; }
.vx-site:hover { transform: translateY(-2px); border-color: var(--dx-line-2); }
.vx-site-pic { position: relative; aspect-ratio: 16 / 8; background: linear-gradient(135deg, #10202c, #0a141c); }
.vx-site-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.vx-site-pic img.ok, .vx-cam img.ok { opacity: 1; }
.vx-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--dx-text-3); }
.vx-site-st { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; color: #fff; background: rgba(0,0,0,.5); backdrop-filter: blur(10px); }
.vx-site-st i { width: 8px; height: 8px; border-radius: 50%; background: #30d158; }
.vx-site-st.red i { background: #ff453a; } .vx-site-st.amber i { background: #ff9f0a; }
.vx-site-n { position: absolute; left: 14px; right: 14px; bottom: 12px; display: flex; flex-direction: column; }
.vx-site-n b { font-size: 18px; font-weight: 650; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.vx-site-n span { font-size: 12px; color: rgba(255,255,255,.8); }
.vx-site-cams { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 8px 8px 0; }
.vx-site-cams:empty { display: none; }
.vx-cam { position: relative; aspect-ratio: 16 / 10; border-radius: 7px; overflow: hidden; background: #0c151d; }
.vx-cam img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.vx-cam em { position: absolute; left: 4px; right: 4px; bottom: 3px; font-style: normal; font-size: 10px; font-weight: 600; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vx-cam.off img { filter: grayscale(1) brightness(.5); }
.vx-cam.off::after { content: ""; position: absolute; right: 4px; top: 4px; width: 7px; height: 7px; border-radius: 50%; background: #ff9f0a; }
.vx-cam u { position: absolute; right: 4px; top: 4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #e5383b; color: #fff; font-size: 10px; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.vx-cam.more { display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: var(--dx-text-2); background: var(--dx-raised); }
.vx-site-f { display: flex; align-items: center; gap: 14px; padding: 10px 12px 12px 14px; font-size: 12.5px; color: var(--dx-text-2); }
.vx-m { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.vx-m b { color: var(--dx-text); font-weight: 600; }
.vx-acts { margin-left: auto; display: flex; gap: 4px; }
.vx-ib { width: 30px; height: 30px; border-radius: 8px; border: 0; background: transparent; color: var(--dx-text-2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.vx-ib:hover { background: var(--dx-hover); color: var(--dx-text); }
.vx-ib.danger:hover { color: #ff453a; }
.vx-ib svg { width: 16px; height: 16px; }
.vx-dev { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: -4px -4px 10px; }
.vx-dev-last, .vx-dev-site { display: flex; align-items: center; gap: 6px; margin: -4px 0 8px; font-size: 12px; color: var(--dx-text-2); white-space: nowrap; overflow: hidden; }
.vx-dev-last span { overflow: hidden; text-overflow: ellipsis; }

.ag-pics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.ag-pic { position: relative; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: #0c151d; cursor: zoom-in; }
.ag-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.ag-pic img.ok { opacity: 1; }
.ag-pic.alert { box-shadow: inset 0 0 0 2px #e5383b; }
.ag-pic i { position: absolute; right: 4px; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: #e5383b; color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.ag-pic i.ok { background: #30d158; }

.vx-do { margin: 0 0 20px; }
.vx-do .cc-sec-h h3 svg { color: var(--dx-text-2); }
.vx-do .cc-cam img { opacity: 0; } .vx-do .cc-cam img.ok { opacity: 1; }
a.cc-cam { display: block; text-decoration: none; }

.vx-pin-wrap { background: none; border: 0; }
.vx-pin { position: relative; display: flex; flex-direction: column; align-items: center; width: 150px; }
.vx-pin-pic { position: relative; width: 112px; height: 66px; border-radius: 12px; overflow: hidden; background: #0c151d; border: 3px solid #30d158; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.vx-pin.red .vx-pin-pic { border-color: #ff453a; animation: ccpulse 2.2s ease-in-out infinite; }
.vx-pin.amber .vx-pin-pic { border-color: #ff9f0a; }
.vx-pin-pic img { width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.vx-pin-pic img.ok { opacity: 1; }
.vx-pin-pic u { position: absolute; right: 4px; top: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #e5383b; color: #fff; font-size: 11px; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.vx-pin b { margin-top: 4px; padding: 2px 8px; border-radius: 6px; background: rgba(5,13,20,.85); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.vx-pin span { font-size: 10.5px; color: #c9d1d9; text-shadow: 0 1px 4px #000; }
.vx-pin::after { content: ""; position: absolute; top: 66px; left: 50%; margin-left: -6px; border: 6px solid transparent; border-top-color: #30d158; }
.vx-pin.red::after { border-top-color: #ff453a; } .vx-pin.amber::after { border-top-color: #ff9f0a; }

.ix-hl { margin: 0 0 16px; }
.ix-hl-g { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 150px; gap: 10px; }
.ix-hl-i { position: relative; padding: 0; border: 1px solid var(--dx-line); border-radius: 14px; overflow: hidden; background: #0c151d; cursor: pointer; text-align: left; font-family: inherit; }
.ix-hl-i.big { grid-column: span 2; grid-row: span 2; }
.ix-hl-i img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.ix-hl-i img.ok { opacity: 1; }
.ix-hl-i .dx-evb { left: auto; right: 10px; top: 10px; bottom: auto; }
.ix-hl-t { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; align-items: flex-end; gap: 8px; color: #fff; }
.ix-hl-t > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.ix-hl-t b { font-size: 13px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ix-hl-i.big .ix-hl-t b { font-size: 17px; }
.ix-hl-t small { font-size: 11px; color: rgba(255,255,255,.75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 900px) { .ix-hl-g { grid-template-columns: repeat(2, 1fr); } }

.rx-cthumb { float: left; position: relative; width: 64px; height: 38px; margin: 1px 10px 0 0; border-radius: 7px; overflow: hidden; background: #0c151d; }
.rx-cthumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.rx-cthumb img.ok { opacity: 1; }
.btn.rx-ib { width: 34px; height: 34px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.btn.rx-ib svg { width: 16px; height: 16px; }

.rx-f { display: flex; flex-direction: column; gap: 6px; margin: 14px 0 0; font-size: 13px; }
.rx-f > span:first-child { color: var(--dx-text-2); font-size: 12px; }
.rx-f input[type=text] { height: 38px; border-radius: var(--dx-r2); border: 1px solid var(--dx-line-2); background: var(--dx-surface); color: var(--dx-text); padding: 0 12px; font: inherit; outline: none; }
.rx-f input[type=text]:focus { border-color: var(--dx-accent); }
.rx-prev { margin-top: 14px; }
.rx-prevgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 8px; }
.rx-previmg { aspect-ratio: 1 / 1; border-radius: var(--dx-r1); background: var(--dx-surface); overflow: hidden; display: block; }
.rx-previmg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rx-kinds { display: grid; gap: 10px; margin-top: 12px; }
.rx-kind { text-align: left; border: 1px solid var(--dx-line-2); background: var(--dx-surface); color: var(--dx-text); border-radius: var(--dx-r3); padding: 14px 16px; cursor: pointer; font: inherit; display: flex; flex-direction: column; gap: 4px; }
.rx-kind:hover, .rx-kind:focus-visible { border-color: var(--dx-accent); outline: none; }
.rx-kind b { font-size: 14px; font-weight: 600; }
.rx-kind span { font-size: 12px; color: var(--dx-text-2); }

.cc-hero.calm { background: linear-gradient(135deg, var(--dx-raised), var(--dx-surface)); }
.cc-hero-l h2 { font-size: 18px; font-weight: 550; line-height: 1.4; }
.cc-orb { width: 48px; height: 48px; box-shadow: none; }
.cc-orb svg { width: 22px; height: 22px; }
.cc-orb.calm { background: var(--accent-primary, #2aa9e0); box-shadow: 0 0 0 6px rgba(42,169,224,.14); animation: none; }
.cc-feed-more { display: block; text-align: center; padding: 12px 8px 4px; font-size: 12.5px; color: var(--dx-text-3); text-decoration: none; }
.cc-feed-more:hover { color: var(--dx-text); }

#lv-zones-btn.active, #rule-zones-btn.active { border-color: var(--dx-accent); color: var(--dx-text); }
