*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com*/*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.static{position:static}.table{display:table}.hidden{display:none}.aspect-video{aspect-ratio:16/9}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}:root{color-scheme:light;--ink:#202326;--muted:#555b60;--border:#ccd0d2}body{background:#f0f1f2;color:var(--ink);font:16px/1.5 Inter,system-ui,sans-serif;min-height:100vh}.shell{width:min(1220px,calc(100% - 40px));margin:auto}header{position:sticky;top:0;z-index:5;padding:14px 0;background:#f6f7f8ed;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-bottom:1px solid var(--border)}.brand{font-size:22px;font-weight:750;display:flex;align-items:center;gap:10px}.mark{border-radius:10px;background:#303437;color:#fff;width:38px;height:38px;display:grid;place-items:center}nav{display:flex;gap:4px;flex-wrap:wrap}a,button{cursor:pointer}.action,.cardfoot a,.clip a,nav a{display:inline-flex;align-items:center;min-height:44px;padding:8px 14px;border-radius:9px;font-weight:600}nav a[aria-current]{background:#dddfe1}.secondary:hover,nav a:hover{background:#d3d6d8}.eyebrow{font-size:12px;font-weight:700;letter-spacing:.14em;margin:48px 0 10px;color:var(--muted)}.eyebrow span{padding:0 8px}h1{font-size:clamp(35px,5vw,62px);line-height:1.05;letter-spacing:-.055em;margin:0 0 24px}h1,h2{font-weight:650}h2{font-size:21px;line-height:1.25}.summary{display:flex;align-items:center;gap:8px;margin:0 0 20px;font-weight:600}.summary span,p,small{color:var(--muted)}.summary i{width:8px;height:8px;border-radius:100%;background:#555}.card,.panel{background:#fff;border:1px solid var(--border);border-radius:18px;overflow:hidden}.monitor{position:relative;display:grid;place-items:center;color:#e7e9eb;background:radial-gradient(ellipse at center,#393e43,#23262a);border:7px solid #fff;border-radius:17px}.standby{display:grid;justify-items:center;gap:12px}video{width:100%;max-height:65vh;background:#181a1d}.cardfoot,.clip{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.cardfoot{padding:14px 20px 20px}.secondary{background:#e8eaec;color:var(--ink)}.action{margin:22px 0}.panel{padding:clamp(16px,3vw,32px);margin-bottom:20px}.panel p{margin:10px 0 22px}.settings{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:20px;align-items:start}.filters{display:flex;flex-wrap:wrap;align-items:end;gap:16px}label{display:grid;gap:6px;font-size:14px;font-weight:600}input,select{width:100%;min-width:0;height:46px;background:#fafafa;border:1px solid #aaaeb1;border-radius:7px;padding:8px 12px;font-size:16px}button{min-height:46px;border-radius:8px;background:#282c30;color:#fff;padding:8px 16px;font-weight:600}button:hover{filter:brightness(1.15)}:focus-visible{outline:3px solid #426796;outline-offset:3px}.empty{padding:50px 24px;text-align:center}.clip,.source{padding:14px 0;border-bottom:1px solid var(--border)}small{display:block;font-size:14px}.notice{background:#e9eef2;padding:12px;border-radius:8px}main{padding-bottom:50px}@media(max-width:700px){.settings{grid-template-columns:1fr}.eyebrow{margin-top:30px}.shell{width:calc(100% - 28px)}nav a{padding:8px}.brand{font-size:18px}header{position:static}.filters label{width:100%}}.workspace{display:grid;grid-template-columns:215px minmax(0,1fr);background:#f2f3f4}.sidebar{position:sticky;top:0;height:100dvh;display:flex;flex-direction:column;padding:25px 15px;border-right:1px solid #d6d8da;background:#e9ebed}.sidebar .brand{margin:0 10px 45px}.mark svg{width:29px;height:29px}.sidebar nav{display:grid;gap:6px}.sidebar nav a{display:flex;gap:12px;padding:12px;border-radius:9px;color:#4c5157}.sidebar nav a[aria-current]{background:#30353a;color:#fff}.signout{margin-top:auto}.action,.primary,.quiet{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;border-radius:8px;padding:10px 14px;font-weight:600;margin:0}.quiet{background:transparent;color:#41474e}.quiet:hover{background:#e0e3e5}.primary{background:#282e33;color:#fff}.primary:hover{background:#444b52}.desk{min-width:0}.topbar{height:67px;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(18px,4vw,56px);background:#f6f7f8e8;color:#4c5157;font-size:14px}.topbar b{padding:0 8px;color:#777e84}.account{display:flex;align-items:center;gap:9px}.account i{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#d9dde0;font-style:normal;font-weight:700}.content{max-width:1400px;margin:auto;padding:clamp(24px,4vw,58px) clamp(16px,4vw,56px) 70px}.form-actions,.pageheading,.row-actions,.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.pageheading{margin-bottom:28px}.pageheading h1{margin:0;font-size:clamp(34px,4vw,52px);overflow-wrap:anywhere}.back{display:inline-flex;align-items:center;min-height:44px;color:#515a61}.registry{padding:0}.section-head{padding:19px 24px;border-bottom:1px solid var(--border);justify-content:flex-start}.badge,.section-head span{border-radius:20px;background:#edf0f1;color:#42484d;padding:4px 10px;font-size:13px;font-weight:600}.device{display:grid;grid-template-columns:auto minmax(100px,1fr) auto minmax(205px,auto);align-items:center;gap:14px;padding:18px 24px}.device+.device{border-top:1px solid #e2e4e6}.device-icon,.lock-symbol{display:grid;place-items:center;width:45px;height:45px;border-radius:12px;background:#e9ebed}.device-name{overflow-wrap:anywhere}.device-name h3{font-weight:650;font-size:17px}.row-actions{justify-content:end}.form-actions{justify-content:start}.editor{max-width:800px}.editor section{display:grid;gap:16px;padding-bottom:24px;margin-bottom:24px;border-bottom:1px solid #dddfe1}.editor section p{margin:0}.pair{display:grid;grid-template-columns:1fr 1fr;gap:18px}.pair>*{min-width:0}.check{display:flex;align-items:center;min-height:44px;gap:10px}.check input{width:19px;height:19px;accent-color:#30353a}.details div{display:flex;justify-content:space-between;gap:10px;padding:9px 0}.details dd{font-weight:600}.notice{margin:12px 0 20px}.login-page{display:grid;place-items:center;min-height:100dvh;padding:28px;background:linear-gradient(125deg,#d6dade,#eff0f1 60%,#e2e5e7)}.login-frame{padding:0;display:grid;grid-template-columns:1fr 1fr;width:min(940px,100%);min-height:530px;background:#fafbfc;border:1px solid #fff;border-radius:23px;overflow:hidden;box-shadow:0 24px 75px #2029321c}.login-art{position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;background:linear-gradient(150deg,#32383e,#161a1e 65%,#343b41);color:#fff;padding:36px}.login-art .mark{background:#ffffff18}.art-caption{font-size:clamp(25px,3vw,40px);line-height:1.12;font-weight:550;letter-spacing:-.04em}.lens{position:absolute;z-index:-1;right:-60px;top:70px;width:350px;background:repeating-radial-gradient(circle,#42494f 0,#282e33 2px,#191d21 4px,#383e44 5px);box-shadow:0 20px 40px #0009;display:grid;place-items:center;transform:rotate(-18deg) scaleY(.88)}.lens,.lens div{aspect-ratio:1;border-radius:50%}.lens div{width:68%;border:9px solid #181c20;background:radial-gradient(ellipse at 34% 27%,#adb5bc66,transparent 22%),radial-gradient(circle,#11171a 17%,#39434b 25%,#171d21 37%,#4b555d 44%,#1c2125 59%,#373e43 67%,#161a1e 80%)}.login-fields{align-self:center;padding:clamp(28px,5vw,65px)}.login-fields h1{font-size:35px;margin:18px 0 7px}.login-fields p{margin-bottom:26px}.form-stack{display:grid;gap:16px}.password-wrap{position:relative;display:block}.password-wrap input{padding-right:90px}.peek{position:absolute;right:2px;top:1px;font-size:13px;padding:0 10px;min-height:44px;background:transparent;color:#41474e}.mobile-brand{display:none}@media(max-width:980px){.device{grid-template-columns:auto 1fr auto}.row-actions{grid-column:2/-1;justify-content:start}}@media(max-width:760px){.workspace{display:block}.sidebar{position:static;height:auto;padding:12px 16px 4px;display:grid;grid-template-columns:1fr auto;gap:9px;border-right:0;border-bottom:1px solid var(--border)}.sidebar .brand{margin:0}.sidebar nav{grid-row:2;grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px}.sidebar nav a{flex-direction:column;gap:2px;padding:6px 2px;font-size:12px}.signout{grid-column:2;grid-row:1;margin:0}.login-art,.topbar{display:none}.login-frame{display:block;min-height:0;max-width:450px}.login-page{padding:16px}.mobile-brand{display:flex;margin-bottom:30px}.lock-symbol{display:none}.pageheading{align-items:start}.pair{grid-template-columns:1fr}.device{padding:16px;gap:9px}.badge{font-size:12px}.row-actions{grid-column:1/-1}.device-icon{width:36px;height:36px}.details div{flex-wrap:wrap}}.archive-tools,.clock-controls,.date-pick,.wall-tools{display:flex;align-items:end;gap:14px;flex-wrap:wrap}.archive-tools,.wall-tools{margin-bottom:20px}.archive-tools .wall-tools{margin:0}.grid-menu{position:relative}.archive-foot summary,.grid-menu summary,.user-row summary{cursor:pointer;padding:12px 10px;min-height:44px;font-weight:600}.grid-menu summary{background:#fff;border:1px solid #b9bfc3;border-radius:8px}#camera-order{position:absolute;z-index:3;left:0;min-width:min(325px,90vw);max-height:50vh;overflow:auto;background:#fff;border:1px solid var(--border);border-radius:9px;padding:9px;box-shadow:0 12px 35px #20283022}#camera-order>div{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:4px;padding:3px}#camera-order button{background:#edf0f2;color:#20262b;padding:6px;min-width:44px}button:disabled{opacity:.5;cursor:default}.video-wall{display:grid;gap:15px;align-items:start;grid-template-columns:repeat(var(--columns),minmax(0,1fr))}.video-wall[data-cols="1"]{--columns:1}.video-wall[data-cols="2"]{--columns:2}.video-wall[data-cols="3"]{--columns:3}.video-wall[data-cols="4"]{--columns:4}.video-wall .monitor video{height:100%;-o-object-fit:contain;object-fit:contain}.video-wall [hidden],.video-wall>.card[hidden]{display:none!important}.video-wall h2{overflow-wrap:anywhere;font-size:18px}.gap-note{color:#dee2e5;text-align:center;padding:8px}.transport{display:grid;gap:14px}.transport input[type=range]{height:28px;accent-color:#39434b;padding:0}.clock-controls output{margin-left:auto;font:600 26px/1.8 ui-monospace,monospace;font-variant-numeric:tabular-nums}.archive-foot{padding:12px 16px}.archive-foot canvas{cursor:crosshair;width:100%;height:16px;border-radius:4px;display:block;margin:12px 0 3px}.clip-list{max-height:300px;overflow:auto}.clip-list>div{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;border-top:1px solid #ddd}.clip-list a{padding:12px 4px;text-decoration:underline}.user-row{border-top:1px solid #d9dddf;margin-top:12px}.user-row form{padding:12px}.user-row details{margin:8px 14px}.form-stack p{margin:0}.sidebar nav a{min-width:0}@media(max-width:950px){.video-wall[data-cols="3"],.video-wall[data-cols="4"]{--columns:2}}@media(max-width:760px){.sidebar nav{display:flex;flex-wrap:wrap}.sidebar nav a{flex:1 0 auto}.workspace .sidebar nav a span{font-size:12px}.archive-tools{align-items:start}.grid-menu{position:static}.wall-tools{position:relative}#camera-order{left:0}.clock-controls output{margin-left:0}.video-wall:not([data-cols="1"]){--columns:2}.archive-foot,.video-wall .cardfoot{padding:8px}.video-wall .cardfoot{gap:0}.video-wall .standby{font-size:12px;text-align:center}.video-wall .monitor{border-width:3px}.video-wall{gap:8px}.live-page .content{display:flex;flex-direction:column;padding:12px;gap:10px}.live-page .pageheading{flex-direction:row;align-items:center;justify-content:space-between;gap:8px;margin:0}.live-page .pageheading h1{font-size:22px;margin:0}.live-page .pageheading .primary{font-size:13px;min-height:44px;padding:6px 9px}.live-page .wall-tools{order:2;margin:0;align-items:end}.live-page #camera-order{position:static;min-width:0}.live-page .grid-menu[open]{width:100%}.live-page .cardfoot{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:6px 10px}.live-page .cardfoot h2{font-size:16px;margin:0}.live-page .cardfoot a{display:inline-flex;align-items:center;min-height:44px}.live-page .sidebar{padding:4px 12px;gap:2px}.live-page .sidebar nav a{min-height:44px}}.live-layout{display:grid;gap:16px;align-items:start}.live-feeds{min-width:0}.digest{margin:0;padding:20px}.digest h2{font-size:21px;letter-spacing:-.025em}.digest-date{display:flex;gap:8px;align-items:end;margin:16px 0}.digest-date label{min-width:0;flex:1}.digest-total{display:flex;align-items:baseline;gap:8px;margin:16px 0 4px;color:var(--muted)}.digest-total strong{font-size:36px;color:var(--ink);line-height:1.2}.digest-counts{display:flex;flex-wrap:wrap;gap:5px}.digest-counts span{font-size:13px;background:#f0f2f3;padding:3px 8px;border-radius:6px}.digest h3{margin:18px 0 6px;font-size:14px}.digest ol{list-style:none;margin:0;padding:0;max-height:48vh;overflow:auto}.digest li{border-top:1px solid #e1e4e5}.digest li a{display:flex;align-items:baseline;gap:12px;padding:9px 0;min-height:44px}.digest time{font:13px ui-monospace,monospace}.digest li small{font-size:12px}@media(min-width:761px){.workspace .topbar{justify-content:flex-start;gap:12px;height:52px;padding:0 20px}.topbar .account{margin-left:auto}.workspace.rail-collapsed{grid-template-columns:68px minmax(0,1fr)}.rail-collapsed .sidebar{padding:16px 8px}.rail-collapsed .sidebar .brand,.rail-collapsed .signout button{font-size:0;gap:0;justify-content:center;margin-left:0;margin-right:0}.rail-collapsed .sidebar nav span{display:none}.rail-collapsed .sidebar nav a{justify-content:center}.live-page .content,.workspace:has(.video-wall[data-kind=archive]) .content{width:100%;max-width:none;padding:20px clamp(16px,1.4vw,36px) 36px}.live-page .pageheading{margin-bottom:12px}.live-page .pageheading h1{font-size:34px}.live-page .video-wall .monitor{max-height:calc(100dvh - 240px);width:100%;background:#171a1c}.live-page .video-wall video{max-height:100%;min-height:0}}@media(min-width:1200px){.live-layout{grid-template-columns:minmax(0,1fr) clamp(300px,21vw,450px)}}@media(max-width:760px){.live-layout{display:contents}.live-feeds{order:1}.live-page .digest{order:3}.live-page .push-settings{order:4}}.directory{padding:0;max-width:1240px}.account-editor,.directory-foot,.directory-head,.directory-tools{padding:16px clamp(14px,2.5vw,30px)}.directory-foot,.directory-head,.directory-tools,.incident{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.directory-head{justify-content:space-between}.directory-head h2 small{display:inline-block;padding:2px 9px;border-radius:15px;background:#edf0f2}.directory-tools{background:#f7f8f9;border-block:1px solid #dce0e3;align-items:end}.directory-tools label:first-child{flex:1;min-width:160px}.account-line{padding:12px clamp(14px,2.5vw,30px);display:grid;grid-template-columns:38px minmax(80px,1.2fr) minmax(105px,1fr) minmax(95px,.8fr) 12px;align-items:center;gap:12px;border-bottom:1px solid #e1e4e6}.account-line:hover{background:#f4f6f7}.account-line small{justify-self:start;padding:3px 9px;border-radius:20px;background:#eef1f1}.user-avatar{width:36px;height:36px;display:grid;place-items:center;border-radius:10px;background:#e1e6e8;font-weight:650;font-size:13px}.directory-foot{font-size:14px;color:#505861}.directory-foot a{text-decoration:underline}.account-editor{background:#f2f5f6;border-bottom:1px solid #d5dce0}.account-editor form{max-width:660px}.account-editor summary{padding:12px 0;cursor:pointer}.account-editor h2{margin-bottom:12px}.incident{justify-content:space-between}.gap-alert{color:#934727}.incident p{margin:6px 0}.directory .account-line strong{overflow-wrap:anywhere}@media(max-width:620px){.account-line{grid-template-columns:36px 1fr auto;gap:4px 9px}.account-line .user-avatar{grid-row:span 2}.account-line>span:nth-child(3){grid-column:2;grid-row:2;font-size:13px}.account-line small{grid-column:3;grid-row:1/3;font-size:12px}.account-line b{display:none}.directory-tools{gap:8px}.directory-tools label{flex:1}.directory-tools button{width:100%}}.live-page {
  --ink: #22292d;
  --line: #d4dadd;
  background: #edf0f1;
}
.live-page .pageheading {
  padding: clamp(16px, 2vw, 30px);
  border-radius: 18px;
  background: linear-gradient(108deg, #22292d, #414a50);
  color: white;
}
.live-page .pageheading h1 { color: inherit; letter-spacing: -.035em; line-height: 1.12; }
.live-page .pageheading .primary { background: #fafbfb; color: var(--ink); border-color: transparent; }
.fleet-summary { color: #dbe2e5; margin: 8px 0 0; font-size: 14px; font-variant-numeric: tabular-nums; }
.fleet-summary strong { color: white; }
.live-page .wall-tools {
  background: #fafbfb;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 14px;
}
.live-page .video-wall .card {
  overflow: hidden;
  padding: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: 0 3px 12px #20292e0a;
}
.live-page .card .monitor { border-radius: 0; }
.live-page .cardfoot { padding: 12px 16px; gap: 10px; align-items: center; }
.live-page .cardfoot h2 { margin: 0; font-size: 17px; }
.live-page .cardfoot small { display: block; }
.live-page .cardfoot a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 12px; background: #eff2f3; border-radius: 9px; }
.live-page .digest { padding: clamp(16px, 1.6vw, 24px); border-radius: 16px; border-color: var(--line); }
.live-page .digest h2 { font-size: 22px; letter-spacing: -.025em; margin-top: 0; }
.live-page .digest li a { border-inline-start: 2px solid #a5b1b7; padding-inline-start: 12px; }
.live-page .digest li a:hover, .live-page .digest li a:focus-visible { background: #edf1f2; }
.live-page .digest time { font-variant-numeric: tabular-nums; }
@media (max-width: 700px) {
  .live-page .pageheading { padding: 12px; border-radius: 12px; }
  .fleet-summary { margin-top: 3px; font-size: 13px; }
  .live-page .pageheading .primary { white-space: normal; }
  .live-page .cardfoot { padding: 5px 10px; }
  .live-page .wall-tools { flex-wrap: wrap; }
}
.device-options {order:4;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,24rem),1fr));gap:12px;margin-block:16px;align-items:start}
.device-options details {background:white;border:1px solid #ccd2d5;border-radius:14px;min-width:0}
.device-options summary {display:flex;align-items:center;gap:12px;cursor:pointer;padding:14px 16px;list-style:none}
.device-options summary::-webkit-details-marker {display:none}
.device-options summary::after {content:"";width:7px;height:7px;border:solid #535e64;border-width:0 2px 2px 0;transform:rotate(45deg);margin-left:auto}
.device-options details[open] summary::after {transform:rotate(225deg)}
.device-options summary:focus-visible {outline:2px solid #405e72;outline-offset:2px;border-radius:12px}
.device-options summary strong,.device-options summary small {display:block}
.device-options summary small,.device-body p {font-size:14px;color:#515b61}
.device-icon {display:grid;place-items:center;width:40px;height:40px;flex:none;border-radius:12px;background:#edf0f1;color:#374147}
.device-body {border-top:1px solid #e3e6e8;padding:16px;display:grid;gap:12px}
.device-body label {max-width:26rem}
.device-actions {display:flex;flex-wrap:wrap;gap:8px}
.device-actions button {min-height:44px}
.device-body p {margin:0}
.device-body p:empty {display:none}
@media(max-width:640px){.device-options{grid-template-columns:1fr;margin-block:4px}.device-options summary{padding:12px}.device-body{padding:12px}}.login-fields [data-passkeys] {margin-top:12px}
.login-fields [data-pk="login"] {width:100%;min-height:44px}
.login-fields [data-pk-status] {margin:10px 0 0;font-size:14px}
.login-fields [data-pk-status]:empty {display:none}
.login-fields .form-stack {gap:16px}
.login-fields .check {align-items:center;min-height:44px}.rec-health{display:grid;gap:16px;max-width:1300px}.health-stats,.health-camera dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:12px}.health-stats>div,.health-camera{border:1px solid #cdd3d6;background:white;border-radius:16px;padding:20px}.health-stats>div:first-child{background:#263035;color:white}.health-stats strong{display:block;font-size:clamp(24px,3vw,40px);letter-spacing:-.045em}.health-stats span,.health-camera small,.health-stamp,.health-camera dt{font-size:14px}.health-stamp{color:#515b61;margin:0}.rec-health h2,.health-camera h3{margin:0}.health-camera header{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.health-camera header span{padding:5px 10px;background:#edf1f2;border-radius:8px;font-size:14px}.health-camera dd{margin:4px 0;font-weight:650}.health-camera summary{cursor:pointer;padding:12px 0}.health-camera ul{max-height:15rem;overflow:auto}.health-camera dt{color:#515b61}.health-camera a,.health-stamp a{text-decoration:underline;text-underline-offset:3px}@media (max-width:760px) {
  .workspace .sidebar nav {display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);grid-template-columns:none;gap:2px;min-width:0}
  .workspace .sidebar nav a {min-height:44px;align-items:center;justify-content:center;gap:2px;padding:4px 0;white-space:nowrap}
  .workspace .sidebar nav .nav-full {display:none}
  .workspace .sidebar nav .nav-short[hidden] {display:block!important;font-size:12px;line-height:1.2}
}
@media (max-width:340px) {
  .workspace .sidebar nav .nav-short[hidden] {display:none!important}
}@media (max-width:760px) {
  .digest-date {display:grid;grid-template-columns:minmax(0,1fr) max-content;align-items:end;column-gap:12px}
  .digest-date label {display:grid;grid-template-columns:minmax(0,1fr);gap:6px}
  .digest-date input[type=date] {box-sizing:border-box;width:100%;min-width:0;max-width:100%;height:44px;padding:0 8px;margin:0;font-size:16px}
  .digest-date button {box-sizing:border-box;min-height:44px;margin:0;padding-inline:12px;white-space:nowrap}
}.live-page .video-wall[data-cols="1"] {grid-template-columns:minmax(0,1fr)}
.live-page .video-wall .card .monitor {border:0}
.live-page .video-wall .cardfoot {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;padding:0 8px 0 12px;align-items:center}
.live-page .cardfoot>div {display:flex;flex-wrap:wrap;align-items:baseline;column-gap:8px;min-width:0}
.live-page .video-wall .cardfoot h2 {font-size:14px;line-height:1.25;margin:0}
.live-page .cardfoot [data-state] {font-size:12px;margin:0}
.live-page .cardfoot .gap-alert {order:2;flex-basis:100%;font-size:12px}
.live-page .video-wall .cardfoot a {min-height:32px;padding:0 4px;background:transparent;font-size:13px}
@media(pointer:coarse){.live-page .video-wall .cardfoot a{min-height:44px}}
/* ===== Статусы: цвет + форма значка + текст (не только цвет) ===== */
:root{
  --ok:#15803d;--ok-bg:#dcfce7;--ok-ink:#166534;
  --warn:#b45309;--warn-bg:#fef3c7;--warn-ink:#92400e;
  --err:#b91c1c;--err-bg:#fee2e2;--err-ink:#991b1b;
  --paused:#4b5563;--paused-bg:#e5e7eb;--paused-ink:#374151;
}
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.status{display:inline-flex;align-items:center;gap:6px}
.status .tone{display:inline-block;flex:none;width:9px;height:9px;background:currentColor;font-style:normal}
.live-page .cardfoot small.status{display:inline-flex}
[data-tone=ok]>.tone{border-radius:50%}
[data-tone=wait]>.tone,[data-tone=warn]>.tone{width:10px;clip-path:polygon(50% 0,100% 100%,0 100%)}
[data-tone=err]>.tone{clip-path:polygon(20% 0,50% 30%,80% 0,100% 20%,70% 50%,100% 80%,80% 100%,50% 70%,20% 100%,0 80%,30% 50%,0 20%)}
[data-tone=paused]>.tone{width:8px;background:linear-gradient(90deg,currentColor 35%,transparent 35% 65%,currentColor 65%)}
[data-tone=off]>.tone{background:transparent;border:2px solid currentColor;border-radius:50%}
.status[data-tone=ok]{color:var(--ok)}.status[data-tone=wait],.status[data-tone=warn]{color:var(--warn)}.status[data-tone=err]{color:var(--err)}.status[data-tone=paused],.status[data-tone=off]{color:var(--paused)}
.badge.status{font-weight:600}
.badge.status[data-tone=ok],.health-camera header .badge.status[data-tone=ok]{background:var(--ok-bg);color:var(--ok-ink)}
.badge.status[data-tone=wait],.badge.status[data-tone=warn],.health-camera header .badge.status[data-tone=warn]{background:var(--warn-bg);color:var(--warn-ink)}
.badge.status[data-tone=err],.health-camera header .badge.status[data-tone=err]{background:var(--err-bg);color:var(--err-ink)}
.badge.status[data-tone=paused],.badge.status[data-tone=off],.health-camera header .badge.status[data-tone=paused],.health-camera header .badge.status[data-tone=off]{background:var(--paused-bg);color:var(--paused-ink)}
.notice.status{display:flex;color:var(--warn-ink);background:var(--warn-bg)}
.live-page .cardfoot .status{font-weight:600}
.gap-alert.status{color:var(--warn)}
/* Камера без сигнала и камера с перерывом записи видны сразу по рамке */
.live-page .video-wall .card:has([data-state][data-tone=err]){border-color:var(--err);box-shadow:0 0 0 1px var(--err)}
.live-page .video-wall .card:has(.gap-alert){border-color:var(--warn)}
.health-camera[data-tone=err]{border-color:var(--err);box-shadow:inset 4px 0 0 var(--err)}
.health-camera[data-tone=warn]{box-shadow:inset 4px 0 0 var(--warn)}

/* ===== Подвал боковой панели: тема + выход ===== */
.sidebar-foot{margin-top:auto;display:grid;gap:4px}.sidebar-foot .signout{margin:0}
#theme-toggle{justify-content:flex-start}
.rail-collapsed #theme-toggle{justify-content:center}.rail-collapsed #theme-toggle span{display:none}
@media(max-width:760px){.sidebar-foot{grid-column:2;grid-row:1;margin:0;display:flex;align-items:center}#theme-toggle span{display:none}#theme-toggle{min-width:44px;padding:10px}}

/* ===== Плавность и настройка «уменьшить движение» ===== */
a,button,summary,input,select,.card,.badge,.status,nav a{transition:background-color .15s ease-out,color .15s ease-out,border-color .15s ease-out,box-shadow .2s ease-out,filter .15s ease-out}
.device-options summary::after{transition:transform .2s ease-out}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

/* ===== Тёмная тема (палитра ui-ux-pro-max: тёмный сланец + зелёный статус) ===== */
html[data-theme=dark]{
  color-scheme:dark;
  --bg:#0f172a;--surface:#1b2336;--surface-2:#222b40;--raised:#272f42;--hover:#2c3650;
  --fg:#f8fafc;--ink:#f8fafc;--muted:#94a3b8;--border:#334155;--line:#334155;--strong-border:#475569;
  --ok:#4ade80;--ok-bg:#12301f;--ok-ink:#86efac;
  --warn:#fbbf24;--warn-bg:#3a2a0a;--warn-ink:#fcd34d;
  --err:#f87171;--err-bg:#3b1418;--err-ink:#fca5a5;
  --paused:#94a3b8;--paused-bg:#272f42;--paused-ink:#cbd5e1;
}
html[data-theme=dark] body,html[data-theme=dark] .workspace,html[data-theme=dark] .live-page{background:var(--bg);color:var(--fg)}
html[data-theme=dark] :focus-visible,html[data-theme=dark] .device-options summary:focus-visible{outline-color:#93c5fd}
html[data-theme=dark] .summary span,html[data-theme=dark] small,html[data-theme=dark] p,html[data-theme=dark] .health-stamp,html[data-theme=dark] .health-camera dt,html[data-theme=dark] .device-options summary small,html[data-theme=dark] .device-body p,html[data-theme=dark] .directory-foot,html[data-theme=dark] .back{color:var(--muted)}
html[data-theme=dark] small.status[data-tone=ok],html[data-theme=dark] p.status[data-tone=ok]{color:var(--ok)}
html[data-theme=dark] small.status[data-tone=wait],html[data-theme=dark] small.status[data-tone=warn]{color:var(--warn)}
html[data-theme=dark] small.status[data-tone=err]{color:var(--err)}
html[data-theme=dark] small.status[data-tone=paused],html[data-theme=dark] small.status[data-tone=off]{color:var(--paused)}
/* Каркас */
html[data-theme=dark] .sidebar{background:#0b1222;border-color:var(--border)}
html[data-theme=dark] .sidebar nav a{color:#cbd5e1}
html[data-theme=dark] .sidebar nav a:hover{background:var(--hover)}
html[data-theme=dark] .sidebar nav a[aria-current]{background:#334155;color:#fff}
html[data-theme=dark] .mark{background:#334155}
html[data-theme=dark] header,html[data-theme=dark] .topbar{background:#0f172aeb;color:#cbd5e1;border-color:var(--border)}
html[data-theme=dark] .topbar b{color:#64748b}
html[data-theme=dark] .account i{background:var(--raised)}
/* Поверхности */
html[data-theme=dark] .card,html[data-theme=dark] .panel,html[data-theme=dark] .live-page .video-wall .card,html[data-theme=dark] .device-options details,html[data-theme=dark] .health-stats>div,html[data-theme=dark] .health-camera,html[data-theme=dark] .live-page .digest,html[data-theme=dark] #camera-order{background:var(--surface);border-color:var(--border);color:var(--fg)}
html[data-theme=dark] .health-stats>div:first-child{background:#273349}
html[data-theme=dark] .live-page .wall-tools,html[data-theme=dark] .directory-tools,html[data-theme=dark] .account-editor{background:var(--surface-2);border-color:var(--border)}
html[data-theme=dark] .live-page .pageheading{background:linear-gradient(108deg,#1b2336,#273349);border:1px solid var(--border)}
html[data-theme=dark] .live-page .pageheading .primary{background:#f8fafc;color:#0f172a}
html[data-theme=dark] .fleet-summary{color:#cbd5e1}
html[data-theme=dark] .monitor{border-color:var(--surface)}
html[data-theme=dark] .live-page .video-wall .monitor,html[data-theme=dark] video{background:#05080f}
html[data-theme=dark] .section-head,html[data-theme=dark] .device+.device,html[data-theme=dark] .device-body,html[data-theme=dark] .editor section,html[data-theme=dark] .clip-list>div,html[data-theme=dark] .user-row,html[data-theme=dark] .digest li,html[data-theme=dark] .account-line,html[data-theme=dark] .source,html[data-theme=dark] .clip{border-color:var(--border)}
html[data-theme=dark] .live-page .video-wall .card:has([data-state][data-tone=err]){border-color:var(--err)}
html[data-theme=dark] .live-page .video-wall .card:has(.gap-alert){border-color:var(--warn)}
html[data-theme=dark] .health-camera[data-tone=err]{border-color:var(--err)}
html[data-theme=dark] .account-line:hover{background:var(--surface-2)}
/* Плашки и иконки */
html[data-theme=dark] .section-head span,html[data-theme=dark] .badge,html[data-theme=dark] .digest-counts span,html[data-theme=dark] .directory-head h2 small,html[data-theme=dark] .account-line small,html[data-theme=dark] .device-icon,html[data-theme=dark] .lock-symbol,html[data-theme=dark] .user-avatar{background:var(--raised);color:#cbd5e1}
html[data-theme=dark] .badge.status[data-tone=ok]{background:var(--ok-bg);color:var(--ok-ink)}
html[data-theme=dark] .badge.status[data-tone=wait],html[data-theme=dark] .badge.status[data-tone=warn]{background:var(--warn-bg);color:var(--warn-ink)}
html[data-theme=dark] .badge.status[data-tone=err]{background:var(--err-bg);color:var(--err-ink)}
html[data-theme=dark] .badge.status[data-tone=paused],html[data-theme=dark] .badge.status[data-tone=off]{background:var(--paused-bg);color:var(--paused-ink)}
html[data-theme=dark] .notice{background:#1e2a44;color:var(--fg)}
html[data-theme=dark] p.notice.status{background:var(--warn-bg);color:var(--warn-ink)}
html[data-theme=dark] .device-options summary::after{border-color:#94a3b8}
/* Кнопки и поля */
html[data-theme=dark] button,html[data-theme=dark] .primary{background:#e2e8f0;color:#0f172a}
html[data-theme=dark] .primary:hover{background:#fff}
html[data-theme=dark] .secondary,html[data-theme=dark] #camera-order button{background:var(--raised);color:var(--fg)}
html[data-theme=dark] .secondary:hover{background:var(--hover)}
html[data-theme=dark] .quiet,html[data-theme=dark] .peek{background:transparent;color:#cbd5e1}
html[data-theme=dark] .quiet:hover{background:var(--hover)}
html[data-theme=dark] input,html[data-theme=dark] select{background:#0b1222;border-color:var(--strong-border);color:var(--fg)}
html[data-theme=dark] .grid-menu summary{background:var(--surface);border-color:var(--strong-border)}
html[data-theme=dark] .check input,html[data-theme=dark] .transport input[type=range]{accent-color:#e2e8f0}
html[data-theme=dark] .live-page .cardfoot a{background:var(--raised)}
html[data-theme=dark] .live-page .video-wall .cardfoot a{background:transparent;color:#cbd5e1}
html[data-theme=dark] .live-page .digest li a{border-color:#475569}
html[data-theme=dark] .live-page .digest li a:hover,html[data-theme=dark] .live-page .digest li a:focus-visible{background:var(--surface-2)}
/* Вход */
html[data-theme=dark] .login-page{background:linear-gradient(125deg,#0b1222,#0f172a 60%,#1b2336)}
html[data-theme=dark] .login-frame{background:var(--surface);border-color:var(--border);box-shadow:0 24px 75px #0008}
/* Общий стиль <header> (шапка сайта) не должен красить заголовки карточек */
.health-camera header{position:static;padding:0;background:none;border:0;backdrop-filter:none}
html[data-theme=dark] .health-camera header{background:none}

/* ===== Архив: шкала, легенда, подсказка по клавишам ===== */
:root{--tl-bg:#e0e3e5;--tl-rec:#455b69;--tl-event:#c2410c;--tl-head:#2563eb;--tl-halo:#ffffff}
html[data-theme=dark]{--tl-bg:#273349;--tl-rec:#94a3b8;--tl-event:#fb923c;--tl-head:#93c5fd;--tl-halo:#1b2336}
.archive-foot canvas{height:22px}
.scrub-ticks{display:flex;justify-content:space-between;font:12px/1.2 ui-monospace,monospace;font-variant-numeric:tabular-nums;color:var(--muted);font-weight:400;margin-top:-4px}
.timeline-help{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 20px;align-items:center}
.timeline-help p{margin:0;font-size:13px;color:var(--muted)}
.timeline-legend{display:flex;flex-wrap:wrap;gap:6px 16px}
.timeline-legend span{display:inline-flex;align-items:center;gap:6px}
.timeline-legend i{display:inline-block}
.lg-rec{width:18px;height:10px;background:var(--tl-rec);border-radius:2px}
.lg-event{width:3px;height:16px;background:var(--tl-event)}
.lg-head{width:3px;height:16px;background:var(--tl-head)}
.kbd-hint kbd{font:600 12px/1 ui-monospace,monospace;padding:3px 6px;border:1px solid var(--border);border-bottom-width:2px;border-radius:5px;background:var(--tl-bg);color:var(--ink)}
@media(pointer:coarse){.kbd-hint{display:none}}

/* ===== Камеры: ошибки у поля, подсказки, отправка, пустой список ===== */
.editor .field-error{display:flex;align-items:flex-start;gap:6px;color:var(--err);font-weight:600;font-size:14px}
.editor .field-error .tone{margin-top:5px}
.editor input[aria-invalid=true]{border-color:var(--err);box-shadow:0 0 0 1px var(--err)}
.editor label>small{font-weight:400}
button[aria-busy=true]{cursor:progress;opacity:.75}
.registry .empty{display:grid;justify-items:center;gap:10px;padding:48px 24px;text-align:center}
.registry .empty h3{margin:0;font-size:19px;font-weight:650}
.registry .empty p{margin:0;max-width:34rem}
.registry .empty .primary{margin-top:8px}
.editor label{align-content:start}

/* ===== Пользователи: ошибки у поля, роли, статусы, удаление ===== */
.account-editor .field-error{display:flex;align-items:flex-start;gap:6px;color:var(--err);font-weight:600;font-size:14px}
.account-editor .field-error .tone{margin-top:5px}
.account-editor input[aria-invalid=true],.account-editor select[aria-invalid=true]{border-color:var(--err);box-shadow:0 0 0 1px var(--err)}
.account-editor label{align-content:start}
.account-editor label>small{font-weight:400}
.account-editor select:disabled,.account-editor input:disabled{opacity:.6;cursor:not-allowed}
.role-line{display:block}
.role-line b{font-weight:650;color:var(--ink)}
.save-note{margin:0;font-size:14px;color:var(--muted)}
.account-line .badge.status{font-size:13px}
.danger-zone{margin-top:16px;border-top:1px solid var(--border)}
.danger-zone summary{color:var(--err);font-weight:600}
.danger-zone p{margin:0}
button.danger{display:inline-flex;align-items:center;justify-content:center;gap:8px;justify-self:start;background:#b91c1c;color:#fff}
button.danger:hover{background:#991b1b;filter:none}
html[data-theme=dark] button.danger{background:#dc2626;color:#fff}
html[data-theme=dark] button.danger:hover{background:#b91c1c}
.directory .empty{display:grid;justify-items:center;gap:12px;padding:32px 24px}
.directory .empty p{margin:0}
/* ===== Упрощённая мобильная версия (≤760px). Компьютерная раскладка не меняется. ===== */
.tabbar{display:none}
.fine-toggle{display:none}
.fine-controls{display:contents}
@media(max-width:760px){
  :root{--tab-bg:#ffffff;--tab-fg:#4b5563;--tab-on:#111827;--tab-on-bg:#e5e7eb;--tab-line:#d1d5db;--tab-shadow:0 -6px 24px #0000001a}
  [data-theme=dark]{--tab-bg:#0b1222;--tab-fg:#94a3b8;--tab-on:#f8fafc;--tab-on-bg:#1e293b;--tab-line:#1e293b;--tab-shadow:0 -6px 24px #00000066}

  /* Навигация: вместо шапки с 6 вкладками — нижняя панель на 4 пункта (правило ≤5 вкладок). */
  .workspace .sidebar{display:none}
  .workspace .content{display:flex;flex-direction:column;padding:14px 12px calc(88px + env(safe-area-inset-bottom));gap:12px}
  html .workspace .pageheading{background:none;border:0;box-shadow:none;padding:0 2px;margin:0 0 2px}
  .workspace .pageheading h1{font-size:26px;line-height:1.15;letter-spacing:-.02em;margin:0}
  .fleet-summary{margin:2px 0 0;font-size:14px}
  .tabbar{display:grid;grid-template-columns:repeat(var(--tabs,4),minmax(0,1fr));gap:4px;position:fixed;inset:auto 0 0 0;z-index:40;
    padding:6px 8px calc(6px + env(safe-area-inset-bottom));background:var(--tab-bg);border-top:1px solid var(--tab-line);box-shadow:var(--tab-shadow)}
  .tabbar>a,.tabmore>summary{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:52px;border-radius:12px;
    font-size:12px;font-weight:600;color:var(--tab-fg);list-style:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
  .tabmore>summary::-webkit-details-marker{display:none}
  .tabbar>a[aria-current],.tabmore.current>summary,.tabmore[open]>summary{color:var(--tab-on);background:var(--tab-on-bg)}
  .more-sheet{position:fixed;left:8px;right:8px;bottom:calc(72px + env(safe-area-inset-bottom));display:grid;gap:2px;padding:8px;
    border-radius:16px;background:var(--tab-bg);border:1px solid var(--tab-line);box-shadow:0 12px 40px #0000004d}
  .more-sheet a,.more-sheet button{display:flex;align-items:center;justify-content:flex-start;gap:12px;width:100%;min-height:48px;padding:0 14px;
    border-radius:10px;background:transparent;color:var(--tab-on);font-weight:600;font-size:16px}
  .more-sheet a[aria-current]{background:var(--tab-on-bg)}
  .more-sheet form{margin:0;border-top:1px solid var(--tab-line);padding-top:2px}
  .more-sheet button:hover{filter:none;background:var(--tab-on-bg)}

  /* Прямой эфир: только камеры и короткая сводка событий. */
  .page-live .pageheading .primary,.page-cameras .pageheading .primary{min-height:44px;padding:8px 12px}
  .page-live .pageheading .primary{display:none}
  .page-live .wall-tools{display:none}
  .page-live .video-wall,.page-archive .video-wall{--columns:1!important;gap:12px}
  .page-live .video-wall .cardfoot{padding:10px 12px}
  .page-live .video-wall .standby{font-size:14px}
  .page-live .digest-date{display:none}
  .page-live .digest h2{font-size:18px;margin:0 0 6px}
  .page-live .digest ol>li:nth-child(n+6){display:none}
  .page-live .digest>p{margin:4px 0 0}
  .page-live .device-options{margin-top:4px}

  /* Архив: дата → плеер → видео; точные настройки шкалы спрятаны. */
  .page-archive .archive-tools .wall-tools{display:none}
  .page-archive .date-pick{display:grid;grid-template-columns:1fr auto;align-items:end;gap:8px 12px}
  .page-archive .date-pick label:first-of-type{grid-column:1}
  .page-archive .date-pick .check{grid-column:2;align-self:center;font-size:13px;white-space:nowrap}
  .page-archive .date-pick.auto-submit button{display:none}
  .page-archive .transport{padding:12px;gap:10px;margin:0}
  .page-archive .clock-controls{display:flex;align-items:center;gap:12px}
  .page-archive .clock-controls #play{flex:1}
  .page-archive .clock-controls output{font-size:22px}
  .page-archive .clock-controls .jump{display:none}
  .page-archive .fine-toggle{display:inline-flex;justify-self:start;min-height:44px;padding:8px 4px;font-size:14px;text-decoration:underline;text-underline-offset:3px;background:none;color:inherit}
  .page-archive .fine-controls{display:none}
  .page-archive .transport.fine-open .fine-controls{display:grid;gap:10px}
  .page-archive .transport.fine-open .clock-controls{flex-wrap:wrap}
  .page-archive .transport.fine-open .clock-controls .jump{display:grid;flex-basis:100%}
  .page-archive .kbd-hint{display:none}
  .page-archive .archive-foot{padding:10px 12px}

  /* Состояние записи: три показателя одним компактным списком, пояснения убраны. */
  .page-recording-status .health-stats{display:grid;grid-template-columns:1fr;gap:0;border:1px solid var(--border);border-radius:16px;overflow:hidden}
  .page-recording-status .health-stats>div{display:grid;grid-template-columns:1fr auto;align-items:center;gap:0 12px;padding:12px 14px;border:0;border-radius:0;border-bottom:1px solid var(--border)}
  .page-recording-status .health-stats>div:last-child{border-bottom:0}
  .page-recording-status .health-stats strong{font-size:18px;grid-row:1/3;grid-column:2;white-space:nowrap}
  .page-recording-status .health-stats span{font-size:12px}
  .page-recording-status .rec-health>p.health-stamp~p.health-stamp{display:none}
  .page-recording-status .health-camera>small{display:none}
  .page-recording-status .health-camera dl{gap:6px}
}
/* Снимки событий EZVIZ в дайджесте */
.digest li.has-snap a{align-items:center}
.digest-snap{flex:none;width:96px;height:54px;object-fit:cover;border-radius:8px;background:#1b2336}
@media(max-width:760px){.digest-snap{width:80px;height:45px}}
/* Камеры EZVIZ на батарее: статус сети и заряд */
.device-badges{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}
.badge.battery{gap:4px}
.badge.battery svg{flex:none}

/* ===== Правки по замечаниям: тёмная тема эфира, компактный плеер архива ===== */
/* Страница эфира переопределяла --ink светлым значением и в тёмной теме. */
html[data-theme=dark] .live-page{--ink:var(--fg);--line:var(--border)}
/* Плеер архива: та же панель в меньшей высоте. */
.transport{padding:clamp(14px,1.6vw,20px);gap:9px}
.transport label{gap:4px}
.clock-controls{gap:12px}
.clock-controls output{font:600 23px/1.3 ui-monospace,monospace}
.fine-controls{display:flex;flex-wrap:wrap;align-items:end;gap:9px 16px}
.fine-controls>label{flex:0 1 220px}
.fine-controls .form-actions{flex:1 1 auto;justify-content:flex-start}
.fine-controls .timeline-help{flex:1 1 100%}
.transport .form-actions button{min-height:40px}
.timeline-help p{font-size:12px}
@media(max-width:760px){
  /* Дата и «Исключить EZVIZ» в одну строку без наложения. */
  .page-archive .date-pick{grid-template-columns:minmax(0,1fr) auto;gap:8px 10px}
  .page-archive .date-pick label:first-of-type{min-width:0}
  .page-archive .date-pick label:first-of-type input{min-width:0}
  .page-archive .date-pick .check{white-space:normal;max-width:10em;line-height:1.25}
  .page-archive .transport{padding:10px;gap:8px}
  .page-archive .clock-controls output{font-size:20px}
  .page-archive .transport>label{font-size:12px;gap:3px}
  .page-archive .scrub-ticks{font-size:11px;margin-top:-2px}
  .page-archive .fine-toggle{padding:4px 2px}
}
@media(min-width:761px){
  /* Плеер архива на компьютере: меньше высоты при тех же элементах. */
  .transport{gap:8px;padding:clamp(12px,1.2vw,16px)}
  .transport label{font-size:13px}
  .transport input:not([type=range]),.transport select{height:40px}
  .transport button{min-height:40px}
  .clock-controls output{font:600 21px/1.2 ui-monospace,monospace}
  .scrub-ticks{font-size:11px}
  .timeline-help p{font-size:11px}
}

/* ===== Страница «Камеры»: компактные карточки вместо широких строк ===== */
.registry{background:none;border:0;padding:0;margin:0}
.registry-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 2px 10px}
.registry-head h2{font-size:18px;display:flex;align-items:center;gap:8px}
.registry-head .count{font-size:13px;font-weight:600;padding:2px 9px;border-radius:20px;background:#edf0f1;color:#42484d}
html[data-theme=dark] .registry-head .count{background:var(--raised);color:#cbd5e1}
.registry-head a.quiet{min-height:36px;padding:6px 10px;font-size:14px}
.camera-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:10px;list-style:none;margin:0;padding:0}
.cam-card{display:grid;gap:5px;padding:12px 14px;border:1px solid var(--border);border-radius:14px;background:#fff}
html[data-theme=dark] .cam-card{background:var(--surface)}
.cam-top{display:flex;align-items:center;gap:10px}
.cam-top h3{flex:1;min-width:0;font-size:15px;font-weight:650;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cam-state{flex:none;font-size:12px;font-weight:600;white-space:nowrap}
.cam-meta{margin:0;font-size:12px;line-height:1.35;color:var(--muted);overflow-wrap:anywhere}
.cam-batt{display:inline-flex;align-items:center;gap:3px;font-weight:600}
.cam-batt[data-tone=ok]{color:var(--ok)}
.cam-batt[data-tone=warn]{color:var(--warn)}
.cam-batt[data-tone=err]{color:var(--err)}
.cam-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:3px}
.cam-actions form{margin:0}
.cam-actions .action,.cam-actions button{min-height:34px;margin:0;padding:5px 11px;border-radius:9px;font-size:13px;font-weight:600}
.cam-actions button.quiet{background:transparent;border:1px solid var(--border);color:inherit}
.registry .empty{padding:36px 24px;display:grid;justify-items:center;gap:10px}
@media(max-width:760px){
  .camera-grid{grid-template-columns:1fr;gap:8px}
  .cam-card{padding:11px 12px}
  .cam-actions{gap:8px}
  .cam-actions .action,.cam-actions button{flex:1 1 auto;min-height:42px;justify-content:center;text-align:center}
}

/* ===== EZVIZ: онлайн по кнопке на сетке эфира ===== */
.ezviz-standby{gap:10px;padding:14px;text-align:center}
.ezviz-standby form{margin:0}
.ezviz-go{display:inline-flex;align-items:center;gap:9px;min-height:44px;padding:8px 18px;border-radius:22px;background:#f8fafc;color:#0f172a;font-weight:650}
.ezviz-go::before{content:"";border-left:10px solid currentColor;border-top:6px solid transparent;border-bottom:6px solid transparent}
.ezviz-go:hover{filter:brightness(.95)}
.ezviz-standby small{display:block;max-width:28em;font-size:12px;color:#cbd5e1}
.ezviz-standby .ezviz-error{color:#fca5a5}
.ezviz-until{display:block;font-size:12px;color:var(--muted)}
.ezviz-live-actions{display:flex;gap:6px;flex:none}
.ezviz-live-actions form{margin:0}
.ezviz-live-actions button{min-height:36px;padding:4px 10px;border:1px solid var(--border);border-radius:9px;background:transparent;color:inherit;font-size:13px;font-weight:600}
@media(max-width:760px){.ezviz-live-actions button{min-height:42px}}
