@font-face{font-family:'DM Sans';font-style:normal;font-weight:400;font-display:swap;src:url('/assets/dm-sans-400.ttf') format('truetype')}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:500;font-display:swap;src:url('/assets/dm-sans-500.ttf') format('truetype')}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:600;font-display:swap;src:url('/assets/dm-sans-600.ttf') format('truetype')}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:700;font-display:swap;src:url('/assets/dm-sans-700.ttf') format('truetype')}
:root{color-scheme:dark;--bg:#101315;--panel:#191d20;--panel2:#202528;--line:#2c3236;--text:#edf1ef;--muted:#9ca8ab;--accent:#b3ebc4;--accentdark:#263e30;--danger:#f3a6a1;--radius:12px;font-family:'DM Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:14px;color:var(--text);background:var(--bg)}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{ -webkit-tap-highlight-color:transparent}button,a,select{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:4px}button{color:inherit}button svg,a svg{flex-shrink:0}svg{width:19px;height:19px;vertical-align:middle}a{color:inherit;text-decoration:none}button{border:0;background:none}input,select{background:#171c1f;color:var(--text);border:1px solid var(--line);border-radius:7px;min-height:40px;padding:9px 11px}input::placeholder{color:var(--muted)}input[type=checkbox]{accent-color:var(--accent);min-height:16px;width:16px;height:16px;padding:0;flex-shrink:0}input[type=range]{accent-color:var(--accent);padding:0;min-height:6px;height:6px;cursor:pointer}input[type=date]{min-width:145px}::selection{background:var(--accent);color:#101813}.boot{height:100vh;display:flex;align-items:center;justify-content:center;gap:14px;color:var(--muted)}.brand-mark{display:inline-block;width:32px;height:32px;border:2px solid var(--accent);border-radius:10px;transform:rotate(-8deg);position:relative}.brand-mark:before{content:'';position:absolute;inset:7px;border:2px solid var(--accent);border-radius:50%}.brand{display:flex;align-items:center;gap:12px;font-size:26px;font-weight:650;letter-spacing:-1px}.brand small{display:block;font-size:10px;font-weight:500;color:var(--muted);letter-spacing:1.1px;margin-top:4px}.shell{min-height:100vh;display:grid;grid-template-columns:218px minmax(0,1fr)}.sidebar{padding:30px 18px 18px;border-right:1px solid var(--line);background:#14181a;display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0;width:218px;z-index:30}.sidebar .brand{padding:0 13px;margin-bottom:42px}.nav-label{font-size:11px;letter-spacing:.08em;color:#829093;font-weight:600;padding:0 13px;margin:22px 0 10px}.nav-item{width:100%;display:flex;align-items:center;gap:12px;text-align:left;padding:12px 13px;border-radius:8px;color:#a4afb1;font-weight:500;margin:3px 0;min-height:44px}.nav-item:hover{background:#22282b;color:var(--text)}.nav-item.active{background:#26362e;color:var(--accent)}.nav-item .nav-count{margin-left:auto;font-size:11px;background:#384c3f;padding:2px 6px;border-radius:4px}.sidebar-bottom{margin-top:auto;padding-top:24px}.device-mini{padding:16px 12px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.device-mini strong{font-size:12px;font-weight:500}.device-mini p{font-size:11px;color:var(--muted);margin:6px 0 0 15px}.dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--accent);margin-right:7px;vertical-align:2px}.dot.off{background:var(--danger)}.mini-disk{padding:16px 12px;font-size:11px;color:var(--muted)}.bar{height:5px;background:#333b3e;border-radius:3px;overflow:hidden;margin:11px 0}.bar i{display:block;height:100%;background:var(--accent);min-width:2px;border-radius:3px}.sidebar-foot{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;font-size:11px;color:var(--muted)}.workspace{grid-column:2;min-width:0}.topbar{height:68px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 34px;color:var(--muted);font-size:12px}.crumb{display:flex;gap:12px;align-items:center}.crumb span:last-child{color:#d5ddda}.top-actions{display:flex;align-items:center;gap:15px}.pill{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border:1px solid var(--line);border-radius:5px;font-size:11px;color:var(--muted);white-space:nowrap}.pill.green{color:var(--accent);background:#1d2e24;border-color:#334b3b}.pill.amber{color:#edc58e;background:#30291f;border-color:#55442a}.icon-btn{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:6px;color:var(--muted)}.icon-btn:hover{background:var(--panel2);color:var(--text)}.icon-btn.active{color:var(--accent)}.content{padding:30px 34px 36px;max-width:1800px;margin:auto}.page-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:26px}.page-head h1{font-size:28px;letter-spacing:-.7px;font-weight:550;margin:0 0 7px}.page-head p{font-size:12px;color:var(--muted);margin:0}.head-actions{display:flex;align-items:center;gap:9px}.btn{min-height:39px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:9px 13px;border-radius:7px;border:1px solid var(--line);background:#1c2225;font-size:12px;font-weight:550;white-space:nowrap}.btn:hover{background:#293034;border-color:#53625a}.btn.primary{background:var(--accent);color:#182a20;border-color:var(--accent)}.btn.primary:hover{background:#c7f4d4}.btn.danger{color:var(--danger);border-color:#6c4140;background:#382525}.btn.small{min-height:32px;padding:6px 10px;font-size:11px}.date-picker{display:flex;align-items:center;border:1px solid var(--line);border-radius:7px;background:#1c2225}.date-picker input{border:0;min-height:38px;background:none;padding:8px 2px;width:145px}.date-picker .icon-btn{width:31px}.review-layout{display:grid;grid-template-columns:minmax(0,1fr) 284px;gap:22px;align-items:start}.player{background:#080a0b;border-radius:10px;overflow:hidden;position:relative}.screen{position:relative;aspect-ratio:16/9;background:#080a0b;display:flex;align-items:center;justify-content:center;overflow:hidden}.screen video,.screen>img{width:100%;height:100%;object-fit:contain;position:absolute;inset:0}.screen .poster{object-fit:cover}.screen:fullscreen{width:100vw;height:100vh;aspect-ratio:auto}.screen:fullscreen video{object-fit:contain}.screen-labels{position:absolute;left:16px;right:16px;top:15px;display:flex;align-items:center;justify-content:space-between;pointer-events:none;z-index:2}.video-label{background:#101618d9;display:flex;align-items:center;gap:5px;border:1px solid #ffffff29;border-radius:4px;padding:5px 8px;font-size:10px;color:#f5f7f6}.video-label .dot{width:5px;height:5px;margin-right:3px}.play-large{width:60px;height:60px;background:#131c20c9;border:1px solid #ffffff45;border-radius:50%;z-index:3;display:grid;place-items:center;color:#fff;box-shadow:0 8px 26px #0005}.play-large svg{width:24px;height:24px;margin-left:3px}.play-large:hover{background:#32483d}.screen-message{z-index:4;text-align:center;background:#11191bec;padding:20px;border-radius:9px;max-width:80%;line-height:1.6}.screen-message strong{display:block;font-size:14px}.screen-message p{font-size:12px;color:var(--muted);margin:6px 0}.screen-message .bar{margin-bottom:0}.player-seek{display:block;width:calc(100% - 28px);margin:0 14px;position:relative;top:-2px;z-index:4}.player-controls{height:53px;display:flex;align-items:center;gap:4px;padding:0 10px}.player-controls .icon-btn{color:#e0e5e2;width:30px}.player-controls .timecode{font-size:11px;font-variant-numeric:tabular-nums;margin-left:7px;color:var(--muted)}.timecode b{color:var(--text);font-weight:500}.spacer{flex:1}.speed{background:#242b2e;border:0;font-size:11px;padding:4px 5px;min-height:28px;width:58px}.player-caption{display:flex;align-items:center;gap:10px;padding:13px 0 0}.player-caption h2{font-size:13px;margin:0;font-weight:500}.player-caption p{color:var(--muted);font-size:11px;margin:5px 0 0}.player-caption .btn{margin-left:auto}.queue{border:1px solid var(--line);border-radius:10px;background:#171c1e;overflow:hidden}.section-title{display:flex;align-items:center;justify-content:space-between;gap:10px}.queue-head{padding:17px 15px 13px;border-bottom:1px solid var(--line)}.queue-head h2,.section-title h2{font-size:13px;font-weight:550;margin:0}.queue-head p{font-size:11px;color:var(--muted);margin:7px 0 0}.queue-scroll{max-height:360px;overflow:auto;scrollbar-width:thin;scrollbar-color:#46534d transparent}.queue-item{display:flex;gap:10px;align-items:center;width:100%;padding:12px 13px;text-align:left;border-bottom:1px solid #272e31}.queue-item:last-child{border:0}.queue-item:hover{background:#232a2d}.queue-item.selected{background:#24352c}.queue-item.selected .queue-time{color:var(--accent)}.queue-thumb{position:relative;width:71px;height:44px;flex-shrink:0;border-radius:4px;overflow:hidden;background:#2a3032}.queue-thumb img{width:100%;height:100%;object-fit:cover}.queue-thumb svg{position:absolute;inset:0;margin:auto;width:15px;color:#fff}.queue-time{font-size:12px;display:block;font-variant-numeric:tabular-nums}.queue-sub{font-size:10px;display:block;color:var(--muted);margin-top:5px}.queue-icon{margin-left:auto;width:14px;color:var(--accent)}.queue-foot{padding:12px;font-size:10px;color:var(--muted);text-align:center;border-top:1px solid var(--line)}.timeline{border:1px solid var(--line);border-radius:9px;padding:16px 18px;margin-top:23px;background:#171c1e}.timeline .section-title{margin-bottom:23px}.legend{font-size:10px;color:var(--muted);display:flex;gap:15px;align-items:center}.legend .dot{width:5px;height:5px;margin-right:4px}.timeline-ruler{display:flex;justify-content:space-between;color:#8d9b9f;font-size:10px;font-variant-numeric:tabular-nums}.timeline-track{height:27px;background:#242b2e;position:relative;margin:10px 0 12px;overflow:visible;border-radius:4px}.timeline-clip{height:19px;position:absolute;top:4px;background:#688e75;min-width:2px;border-radius:2px;padding:0}.timeline-clip.selected{background:var(--accent);z-index:2}.timeline-clip:hover{background:#d0f9dc;z-index:3}.timeline-tick{height:100%;width:1px;background:#0d12153d;position:absolute;pointer-events:none}.timeline-note{font-size:10px;color:var(--muted);display:flex;justify-content:space-between}.library{margin-top:28px}.library-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:17px}.library-header h2{font-size:16px;font-weight:550;margin:0}.count{color:var(--muted);font-size:12px;font-weight:400;margin-left:8px}.view-switch{display:flex;gap:4px;background:#1b2023;border:1px solid var(--line);padding:3px;border-radius:7px}.view-switch button{border-radius:4px;padding:4px 7px;color:var(--muted);font-size:11px}.view-switch button.active{background:#343d40;color:var(--text)}.filters{display:flex;gap:8px;align-items:center;margin-bottom:18px;flex-wrap:wrap}.filter{min-height:33px;border:1px solid var(--line);border-radius:6px;padding:7px 11px;font-size:11px;color:var(--muted);display:flex;gap:6px;align-items:center}.filter.active{background:#293c30;color:var(--accent);border-color:#415846}.filter input{min-height:24px;padding:1px 4px;font-size:11px;border:0;background:none;width:77px}.search{position:relative;margin-left:auto}.search svg{width:15px;position:absolute;left:11px;top:10px;color:var(--muted)}.search input{padding-left:34px;min-height:34px;font-size:11px;width:210px}.recordings-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px}.recording{position:relative;min-width:0;border:1px solid var(--line);border-radius:9px;overflow:hidden;background:#191e20}.recording.selected{border-color:#8abb98}.recording-image{position:relative;aspect-ratio:16/9;display:block;width:100%;padding:0;background:#252d30;overflow:hidden}.recording-image img{height:100%;width:100%;object-fit:cover;transition:transform .2s ease-out}.recording-image:hover img{transform:scale(1.025)}.recording-image .duration{position:absolute;right:8px;bottom:8px;color:#fff;background:#0a0e10d9;border-radius:3px;padding:3px 5px;font-size:10px;font-variant-numeric:tabular-nums}.select-file{position:absolute;z-index:4;left:9px;top:9px}.recording .favorite-file{position:absolute;z-index:4;right:7px;top:6px;color:#fff;background:#0d1416a9;width:28px;height:28px}.favorite-file.active{color:var(--accent)}.recording-meta{padding:12px;display:flex;align-items:center;justify-content:space-between}.recording-meta strong{font-size:12px;font-weight:500;font-variant-numeric:tabular-nums;display:block}.recording-meta p{font-size:10px;color:var(--muted);margin:5px 0 0}.recording-meta svg{width:14px;color:var(--muted)}.recordings-grid.list{display:flex;flex-direction:column;gap:8px}.list .recording{display:flex;align-items:center;min-height:68px;padding-left:34px}.list .recording-image{width:90px;flex-shrink:0;border-radius:4px}.list .recording-meta{flex:1}.list .favorite-file{position:relative;order:3;right:auto;top:auto;margin-right:12px}.list .select-file{top:25px}.pagination{display:flex;align-items:center;justify-content:center;gap:15px;font-size:11px;color:var(--muted);margin-top:23px}.selection-bar{display:flex;align-items:center;gap:12px;background:#22382b;padding:10px 13px;border:1px solid #46664e;border-radius:7px;font-size:12px;margin-bottom:16px}.empty{padding:45px 20px;text-align:center;color:var(--muted);border:1px dashed #394246;border-radius:9px;line-height:1.7}.empty svg{width:30px;height:30px;color:#81958a;margin-bottom:12px}.empty h3{color:var(--text);font-weight:500;font-size:16px;margin:0 0 7px}.empty p{font-size:12px;margin:0 auto 15px;max-width:440px}.stack{display:grid;gap:22px}.panel{border:1px solid var(--line);border-radius:10px;background:#171c1e;padding:24px}.panel h2{font-size:17px;margin:0 0 9px;font-weight:550}.panel p{font-size:12px;color:var(--muted);line-height:1.7;max-width:670px}.storage-hero{display:grid;grid-template-columns:1fr 240px;gap:35px;padding:10px 0 20px}.storage-number{font-size:45px;letter-spacing:-1.3px;font-weight:450;margin:26px 0 7px;font-variant-numeric:tabular-nums}.storage-number small{font-size:14px;color:var(--muted);letter-spacing:0}.storage-breakdown{display:grid;grid-template-columns:repeat(3,1fr);padding:20px 0 4px;border-top:1px solid var(--line);gap:20px}.storage-breakdown span{font-size:11px;color:var(--muted);display:block}.storage-breakdown strong{font-size:17px;font-weight:500;display:block;margin-top:8px}.storage-drive{display:grid;place-items:center;color:#82988b}.storage-drive svg{width:100px;height:100px;stroke-width:1}.form-row{display:flex;align-items:center;justify-content:space-between;gap:25px;padding:20px 0;border-bottom:1px solid var(--line)}.form-row h3{font-size:13px;font-weight:500;margin:0 0 6px}.form-row p{margin:0;font-size:11px}.form-row:last-child{border-bottom:0}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.notice{padding:13px 15px;border:1px solid #3c4e40;background:#1f2c24;border-radius:7px;font-size:12px;color:#c1d9c7;line-height:1.6;margin-top:18px}.notice.warning{border-color:#604e32;color:#e2c595;background:#2c271e}.notice.error{border-color:#68403c;color:#edb3ac;background:#302220}.two-columns{display:grid;grid-template-columns:1.5fr 1fr;gap:22px}.toggle-options{display:flex;gap:7px}.toggle-options button.active{background:var(--accentdark);color:var(--accent);border-color:#5b7a63}.ptz{display:grid;grid-template-columns:repeat(3,43px);grid-template-rows:repeat(3,43px);gap:5px;justify-content:center;margin:25px 0}.ptz button{border:1px solid var(--line);background:var(--panel2);border-radius:7px;display:grid;place-items:center}.ptz button:hover{border-color:var(--accent)}.ptz button:nth-child(1){grid-column:2}.ptz button:nth-child(2){grid-row:2;grid-column:1}.ptz button:nth-child(3){grid-row:2;grid-column:2}.ptz button:nth-child(4){grid-row:2;grid-column:3}.ptz button:nth-child(5){grid-row:3;grid-column:2}.info-list{display:grid;grid-template-columns:auto 1fr;gap:14px 18px;font-size:12px;margin:22px 0}.info-list dt{color:var(--muted)}.info-list dd{margin:0;text-align:right;overflow-wrap:anywhere}.live-image{width:100%;display:block;border-radius:9px;background:#080a0b;aspect-ratio:16/9;object-fit:contain}.live-screen{position:relative}.live-screen .pill{position:absolute;left:15px;top:15px;background:#101915dd}.live-footer{display:flex;justify-content:space-between;color:var(--muted);font-size:11px;margin-top:12px}.event-row{display:flex;align-items:center;gap:16px;padding:17px 0;border-bottom:1px solid var(--line)}.event-row:last-child{border:0}.event-icon{background:#27392d;border-radius:8px;padding:10px;color:var(--accent)}.event-row h3{font-size:13px;margin:0 0 5px;font-weight:500}.event-row p{font-size:11px;margin:0;color:var(--muted)}.event-row time{margin-left:auto;color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}.login{min-height:100vh;display:grid;grid-template-columns:1.1fr 1fr;background:#14181a}.login-image{position:relative;overflow:hidden;background:#080c0e}.login-image img{height:100%;width:100%;object-fit:cover;opacity:.65}.login-image:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,#090e1110 20%,#090e11ed)}.login-caption{position:absolute;z-index:2;left:9%;bottom:10%;right:9%}.login-caption h1{font-size:48px;line-height:1.12;font-weight:450;letter-spacing:-1.4px;margin:0 0 20px}.login-caption p{color:#c4cdca;font-size:14px;line-height:1.7;max-width:370px}.login-form{align-self:center;max-width:390px;padding:40px;width:100%;box-sizing:content-box;margin:auto}.login-form .brand{margin-bottom:65px}.login-form h2{font-size:25px;font-weight:500;letter-spacing:-.6px;margin:0 0 10px}.login-form>p{color:var(--muted);font-size:13px;line-height:1.6;margin:0 0 32px}.login-form label{display:block;font-size:12px;margin-bottom:9px}.login-form input{width:100%;min-height:47px;margin-bottom:17px}.login-form .btn{width:100%;min-height:45px}.login-form .login-foot{font-size:11px;margin-top:28px;color:#94a29c;display:flex;align-items:center;gap:8px}.login-foot svg{width:14px}.login-error{color:var(--danger);font-size:12px;min-height:20px;margin:8px 0}.mobile-menu{display:none}.overlay{display:none}dialog{color:var(--text);background:#1b2124;border:1px solid #424f49;border-radius:12px;padding:27px;max-width:520px;width:calc(100% - 32px);box-shadow:0 22px 70px #0007}dialog::backdrop{background:#080c10b8}dialog h2{font-size:21px;font-weight:500;margin:0 0 14px}dialog p{font-size:13px;color:#aebbb6;line-height:1.7}dialog .dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:25px}#toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,20px);opacity:0;pointer-events:none;z-index:200;max-width:calc(100vw - 30px);background:#d3efdc;color:#172a1f;padding:13px 20px;border-radius:8px;box-shadow:0 10px 25px #0006;transition:opacity .18s,transform .18s;font-size:12px}#toast.show{opacity:1;transform:translate(-50%,0)}.skeleton{height:150px;background:#1f272a;border-radius:8px}.subtle{font-size:11px;color:var(--muted)}.checked-label{display:flex;gap:10px;align-items:flex-start;color:#c8d2cd;font-size:12px;line-height:1.7;margin-top:22px}.error-block{padding:30px;border:1px solid #68403c;color:var(--danger);border-radius:10px;line-height:1.7}.kbd{display:inline-block;border:1px solid var(--line);border-radius:4px;font-size:10px;padding:2px 6px;margin-left:5px;color:var(--muted)}@media(min-width:1550px){.review-layout{grid-template-columns:minmax(0,1fr) 320px}.queue-scroll{max-height:440px}.content{padding-left:42px;padding-right:42px}}@media(max-width:1180px){.shell{grid-template-columns:184px minmax(0,1fr)}.sidebar{width:184px;padding:25px 12px 14px}.sidebar .brand{padding:0 7px}.content{padding:25px 24px}.topbar{padding:0 24px}.review-layout{grid-template-columns:minmax(0,1fr) 235px;gap:17px}.queue-scroll{max-height:280px}.recordings-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.page-head h1{font-size:25px}.queue-thumb{width:57px;height:37px}.queue-item{padding:11px}.queue-time{font-size:11px}.queue-sub{font-size:9px}.two-columns{grid-template-columns:1.3fr 1fr}}@media(max-width:950px){.review-layout{grid-template-columns:1fr}.queue{display:none}.top-actions .clock{display:none}.page-head{align-items:flex-start}.head-actions{flex-wrap:wrap;justify-content:flex-end}.two-columns{grid-template-columns:1fr}.storage-hero{grid-template-columns:1fr 160px}.login-caption h1{font-size:37px}.login-form{padding:30px;max-width:300px}}@media(max-width:700px){.shell{display:block}.workspace{width:100%}.sidebar{transform:translateX(-100%);transition:transform .2s ease-out;width:235px}.shell.menu-open .sidebar{transform:translateX(0)}.shell.menu-open .overlay{display:block;position:fixed;inset:0;background:#0008;z-index:29}.mobile-menu{display:inline-grid}.topbar{height:58px;padding:0 16px}.crumb{gap:8px}.crumb .crumb-home,.crumb .crumb-slash{display:none}.top-actions{gap:7px}.top-actions .pill{font-size:10px;padding:5px 7px}.top-actions #refresh-status{display:none}.content{padding:23px 16px}.page-head{display:block;margin-bottom:21px}.page-head h1{font-size:25px}.head-actions{margin-top:18px;justify-content:flex-start}.head-actions .btn{margin-left:auto}.screen-labels{left:10px;right:10px;top:10px}.video-label{font-size:8px;padding:4px 6px}.play-large{width:48px;height:48px}.player-controls{gap:1px;padding:0 5px;height:48px}.player-controls .icon-btn{width:27px}.player-controls .timecode{font-size:10px;margin-left:3px}.player-controls .hide-mobile{display:none}.speed{width:50px}.player-caption .btn{font-size:10px;padding:6px 8px}.player-caption h2{font-size:12px}.player-caption p{font-size:10px}.timeline{padding:15px 12px;margin-top:20px}.timeline .section-title{margin-bottom:20px}.legend{font-size:9px;gap:7px}.timeline-ruler{font-size:9px}.timeline-note{font-size:9px}.library{margin-top:23px}.library-header h2{font-size:15px}.filters{gap:6px}.filter{font-size:10px;padding:6px 8px}.search{width:100%;margin-top:4px}.search input{width:100%}.recordings-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.recording-meta{padding:10px}.recording-meta strong{font-size:11px}.recording-meta p{font-size:9px}.panel{padding:20px 17px}.storage-hero{display:block;padding-bottom:20px}.storage-drive{display:none}.storage-number{font-size:36px}.storage-breakdown{gap:10px}.storage-breakdown strong{font-size:14px}.form-row{gap:15px;align-items:flex-start}.form-row select{max-width:125px}.form-row p{max-width:220px}.form-row .toggle-options{flex-wrap:wrap;justify-content:flex-end;max-width:145px}.toggle-options .btn{font-size:10px;padding:7px}.login{display:block}.login-image{display:none}.login-form{max-width:100%;width:auto;box-sizing:border-box;min-height:100vh;display:flex;flex-direction:column;justify-content:center;padding:35px}.login-form .brand{margin-bottom:70px}.login-form h2{font-size:27px}.login-form .login-foot{margin-top:32px}.event-row{gap:10px}.event-row time{font-size:10px}.selection-bar{flex-wrap:wrap}.storage-breakdown span{font-size:10px}.page-head p{line-height:1.6}.notice{font-size:11px}.player-caption{gap:6px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}@media(prefers-contrast:more){:root{--muted:#c1ccca;--line:#5c6863}}

.login-image{background:#17221d}.login-symbol{position:absolute;left:22%;top:15%;width:56%;aspect-ratio:1;border:1px solid #365342;border-radius:50%;display:grid;place-items:center}.login-symbol:before{content:"";position:absolute;inset:14%;border:1px solid #365342;border-radius:50%}.login-symbol .brand-mark{width:40%;height:40%;border-width:2px;border-radius:28%}.login-symbol .brand-mark:before{inset:28%;border-width:2px}.screen-message .btn{margin-top:10px}
.player-quality{min-height:30px;max-width:116px;padding:4px 7px;font-size:11px;background:#242b2e;border:1px solid var(--line)}
.camera-field-schedule{display:block}.camera-field-schedule>div:first-child{margin-bottom:16px}.schedule-tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:14px}.schedule-scroll{overflow:auto;padding-bottom:8px}.schedule-grid{display:grid;grid-template-columns:90px repeat(24,minmax(22px,1fr));gap:3px;min-width:690px}.schedule-hour{text-align:center;font-size:10px;color:var(--muted);padding-bottom:6px}.schedule-grid>strong{font-size:11px;font-weight:500;align-self:center}.schedule-slot{height:26px;border-radius:3px;border:1px solid #4d5a54;background:#20282a}.schedule-slot.enabled{background:#86bfa0;border-color:#9ed2b6}.schedule-slot:hover{outline:1px solid var(--text);outline-offset:1px}.schedule-slot:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.schedule-day{font-size:11px;text-align:left;align-self:center;padding:4px 0}.schedule-day:hover{color:var(--accent)}
.zone-preview{position:relative;aspect-ratio:16/9;background:#0b0f10;border:1px solid var(--line);overflow:hidden;border-radius:8px;max-width:800px}.zone-preview img{position:absolute;width:100%;height:100%;object-fit:fill}.zone-preview canvas{position:absolute;width:100%;height:100%;inset:0;touch-action:none;cursor:crosshair}.zone-preview canvas:focus-visible{outline:2px solid var(--accent);outline-offset:-3px}.camera-settings-group .form-actions{flex-wrap:wrap}
.camera-field.camera-field-schedule{display:block}
.schedule-day{position:sticky;left:0;background:var(--panel);z-index:1}
@media(max-width:700px){.schedule-grid{grid-template-columns:88px repeat(24,44px);min-width:1216px}.schedule-slot{height:44px}.schedule-day{font-size:11px}}
@media(max-width:700px){.shell.menu-open .overlay{left:235px}}
#camera-settings-groups{grid-template-columns:minmax(0,1fr);min-width:0}.camera-settings-group{min-width:0;max-width:100%}.schedule-editor,.schedule-scroll{min-width:0;max-width:100%}
.camera-workspace{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(240px,.6fr);gap:22px;align-items:start}.camera-workspace .panel{min-width:0}.camera-workspace .live-screen{margin-top:16px}.camera-toolbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:14px}.camera-controls .ptz{margin:20px auto}.camera-controls .ptz button{width:52px;height:48px}.camera-control-result{min-height:24px;font-size:12px;line-height:1.6;margin-top:14px;color:var(--muted)}.camera-control-result.error{color:var(--danger)}.camera-tabs{display:flex;gap:8px;overflow:auto;position:sticky;top:0;background:var(--bg);z-index:8;padding:18px 0;margin:12px 0 4px;scrollbar-width:thin}.camera-tabs .filter{white-space:nowrap}.camera-settings-group{scroll-margin-top:70px}.camera-settings-group header{display:flex;align-items:center;gap:12px;margin-bottom:12px}.camera-settings-group header h2{margin:0}.camera-settings-group header .pill{margin-left:auto}.camera-field{display:grid;grid-template-columns:minmax(0,1fr) minmax(150px,240px);align-items:center;gap:24px;padding:17px 0;border-bottom:1px solid var(--line)}.camera-field:last-of-type{border-bottom:0}.camera-field label{font-size:13px;line-height:1.5;display:block}.camera-field .field-help{font-size:12px;color:var(--muted);margin:5px 0 0;line-height:1.6;max-width:65ch}.camera-field input:not([type=checkbox]),.camera-field select,.camera-field textarea{width:100%;min-width:0}.camera-field input[type=checkbox]{width:22px;height:22px;justify-self:end;accent-color:var(--accent)}.camera-field textarea{min-height:100px;resize:vertical;font-size:12px;line-height:1.5}.camera-field output{font-size:13px;justify-self:end;overflow-wrap:anywhere;max-width:100%}.camera-field-controls{display:flex;align-items:center;gap:9px;min-width:0}.camera-field-controls .subtle{white-space:nowrap}.camera-save-result{font-size:12px;color:var(--muted);line-height:1.6;margin-right:auto}.camera-capabilities{margin-top:24px}.camera-capabilities summary{cursor:pointer;font-size:13px}.camera-capabilities ul{color:var(--muted);font-size:12px;line-height:1.8;padding-left:20px}.detector-health{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 20px;font-size:12px;color:var(--muted)}.detector-health strong{color:var(--text);font-weight:500}
@media(max-width:950px){.camera-workspace{grid-template-columns:1fr}.camera-controls .ptz{margin:12px auto}.camera-controls{display:flex;align-items:center;gap:20px;flex-wrap:wrap}.camera-controls>h2,.camera-controls>.camera-control-result{flex-basis:100%}}
@media(max-width:700px){.player-quality{max-width:88px;font-size:10px;padding:3px}.camera-field{grid-template-columns:minmax(0,1fr) minmax(100px,135px);gap:14px}.camera-field input,.camera-field select,.camera-field textarea{font-size:16px}.camera-tabs{margin-top:5px}.camera-settings-group header{flex-wrap:wrap}.camera-settings-group header .pill{margin-left:0}.camera-controls{gap:12px}.camera-field .field-help{font-size:11px}.camera-toolbar .btn{flex:1}.camera-field:has(textarea){grid-template-columns:1fr}.camera-field textarea{font-size:14px}.camera-save-result{flex-basis:100%}}

/* Shared operational surfaces: schedules, event review, and camera actions. */
html{scrollbar-gutter:stable;scroll-behavior:smooth}body{overscroll-behavior-y:none}input,textarea{caret-color:var(--accent)}*{scrollbar-width:thin;scrollbar-color:#46534d transparent}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}button:active:not(:disabled){filter:brightness(1.13)}[hidden]{display:none!important}.is-hidden{visibility:hidden}.mobile-navigation{display:none}.page-head h1{line-height:1.2;text-wrap:balance}.page-head p{font-size:14px;line-height:1.6}.panel{border-radius:12px}.panel p,.notice{font-size:13px}.subtle{font-size:12px}.btn.small{font-size:12px}.camera-field label,.camera-field .field-help{font-size:14px}.camera-field input[type=number]{font-variant-numeric:tabular-nums}.camera-settings-group{scroll-margin-top:90px}.camera-tabs{scrollbar-width:none}.camera-tabs .filter{font-size:13px;min-height:40px;flex-shrink:0}.camera-toolbar{row-gap:10px}.camera-controls .ptz{grid-template-columns:repeat(3,52px);grid-template-rows:repeat(3,48px)}.camera-sound{margin-top:22px}.sound-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:32px;margin-top:24px}.sound-layout form>label,.range-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;font-size:14px}.sound-layout output,.range-heading output{color:var(--accent);font-variant-numeric:tabular-nums;white-space:nowrap}.sound-layout input[type=range],.rule-action-columns input[type=range]{width:100%;height:32px;background:none;margin:12px 0 0}.range-labels{display:flex;justify-content:space-between;color:var(--muted);font-size:12px;margin-bottom:16px}.siren-controls{border-left:1px solid var(--line);padding-left:32px}.siren-controls h3{font-size:14px;margin:0}.siren-controls p{margin-top:10px}.sound-layout .field-help{font-size:12px}.camera-sound .camera-control-result:empty{display:none}
.schedule-editor{width:100%;max-width:100%;min-width:0}.schedule-presets{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.schedule-presets>span{font-size:13px;color:var(--muted);margin-right:5px}.schedule-help{color:var(--muted);font-size:12px!important;max-width:none!important;margin:14px 0 18px}.schedule-help strong{font-weight:500;white-space:nowrap}.schedule-days{border-top:1px solid var(--line)}.schedule-day-row{display:grid;grid-template-columns:135px minmax(0,1fr) auto;gap:16px;align-items:start;padding:13px 0;border-bottom:1px solid var(--line)}.schedule-day-toggle{display:flex!important;gap:11px;align-items:center;min-height:40px;cursor:pointer;font-size:13px!important;line-height:1.2!important}.schedule-day-toggle input{width:19px!important;height:19px!important;min-height:19px!important;margin:0}.schedule-day-toggle span{color:var(--muted)}.is-on .schedule-day-toggle span{color:var(--text)}.schedule-intervals{display:flex;flex-wrap:wrap;gap:7px 16px;min-width:0}.schedule-interval{display:flex;align-items:center;gap:8px;min-width:0}.schedule-interval select{width:90px!important;min-height:40px;font-size:13px;padding:7px 8px;font-variant-numeric:tabular-nums}.schedule-interval>span{font-size:12px;color:var(--muted)}.schedule-interval .icon-btn{width:30px;height:40px}.schedule-off{font-size:13px;color:var(--muted);line-height:40px}.schedule-add{min-height:40px!important}.schedule-copy{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:18px}.schedule-copy label{display:flex!important;gap:9px;align-items:center;font-size:12px!important;color:var(--muted)}.schedule-copy select{width:auto!important;font-size:13px;min-height:36px}.schedule-result{color:var(--accent)!important;font-size:12px!important;margin:10px 0 0!important}.schedule-result:empty{display:none}.schedule-editor>.field-help{font-size:12px!important;max-width:80ch!important;margin-top:15px!important}.camera-field-schedule>div:first-child{margin-bottom:18px}
.event-tools{display:flex;align-items:center;gap:12px;margin-bottom:20px}.event-tools>.subtle{margin-right:auto}.event-tools .view-switch button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:7px 11px;font-size:12px}.event-filters .filter{font-size:13px;min-height:39px}.detector-health{font-size:12px;padding:0 0 17px;border-bottom:1px solid var(--line)}.detector-health .btn{margin-left:auto}.detection-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.detection-grid>.empty{grid-column:1/-1}.detection-card{min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:12px;background:var(--panel)}.detection-preview{width:100%;aspect-ratio:16/9;position:relative;display:block;padding:0;background:#090d0f;overflow:hidden}.detection-preview:disabled{opacity:1;cursor:default}.detection-preview img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;opacity:0}.detection-preview img.loaded{opacity:1}.thumbnail-placeholder{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;color:var(--muted);font-size:12px;padding:15px}.thumbnail-placeholder svg{width:28px;height:28px}.detection-time{position:absolute;left:10px;bottom:10px;color:#fff;background:#080d11de;padding:5px 8px;border-radius:5px;font-size:13px;font-variant-numeric:tabular-nums;letter-spacing:.025em}.detection-play{position:absolute;right:10px;bottom:10px;width:29px;height:29px;display:grid;place-items:center;border-radius:5px;background:#080d11de;color:#fff}.detection-play svg{width:15px;height:15px}.detection-meta{display:flex;align-items:center;justify-content:space-between;padding:14px 15px;gap:8px}.detection-meta h3{font-size:14px;font-weight:500;margin:0;display:flex;align-items:center;gap:6px}.detection-meta h3 svg{width:15px;height:15px;color:var(--accent)}.detection-meta p{font-size:11px;color:var(--muted);margin:6px 0 0}.detection-list{padding-top:3px;padding-bottom:3px}.event-row h3{font-size:14px}.event-row time{font-size:14px;color:var(--text)}.event-copy{min-width:0}.detection-preview:hover .detection-play{background:var(--accent);color:#14221a}.event-row .btn{margin-left:5px}.pagination{font-size:12px}.pagination .icon-btn{width:42px;height:42px}
.automation-status{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:30px}.automation-status .camera-toolbar{margin-top:0;align-content:start;justify-content:flex-end}.automation-status h2{margin-top:2px}.automation-status p{margin-bottom:0}.automation-live{grid-column:1/-1;color:var(--accent)!important;border-top:1px solid var(--line);padding-top:16px;margin-top:20px!important}.automation-status>.field-help{grid-column:1/-1;font-size:12px}.automation-rules{margin-top:30px}.automation-rules .library-header{margin-bottom:8px}.automation-rule{display:flex;align-items:flex-start;gap:16px;border-bottom:1px solid var(--line);padding:22px 0}.rule-order{font-variant-numeric:tabular-nums;width:25px;flex-shrink:0;color:var(--muted);font-size:13px;line-height:29px}.rule-copy{flex:1;min-width:0}.rule-copy h3{display:flex;align-items:center;flex-wrap:wrap;gap:12px;font-size:15px;font-weight:500;margin:0;overflow-wrap:anywhere}.rule-copy p{font-size:13px;line-height:1.6;color:var(--muted);margin:9px 0}.rule-copy>.subtle{line-height:1.7;display:block}.rule-controls{display:flex;gap:6px;align-items:center;flex-shrink:0}.rule-controls .icon-btn{width:34px;height:34px}.automation-history{margin-top:22px;padding:18px 22px}.automation-history summary{cursor:pointer;font-size:14px;min-height:25px}.automation-history summary::marker{color:var(--muted)}.history-row{display:flex;gap:20px;padding:13px 0;border-bottom:1px solid var(--line);font-size:12px;line-height:1.6}.history-row time{font-variant-numeric:tabular-nums;color:var(--muted);flex-shrink:0}.history-row:last-child{border:0}.automation-editor{margin-top:28px;scroll-margin-top:20px}.automation-editor .section-title{margin-bottom:24px}.automation-editor label{font-size:13px;line-height:1.5;display:block}.automation-editor input:not([type=checkbox]):not([type=range]),.automation-editor select{width:100%;margin-top:7px}.rule-name-row{display:flex;align-items:center;gap:25px}.rule-name-row>label:first-child{flex:1}.switch-label{display:flex!important;align-items:center;gap:9px;cursor:pointer}.switch-label input{width:19px;height:19px;margin:0}.rule-section{padding-top:25px;margin-top:26px;border-top:1px solid var(--line)}.rule-section>h3{font-size:16px;font-weight:500;margin:0 0 18px}.rule-section>select{max-width:360px}.rule-action-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px}.rule-action-columns .range-heading{margin-top:21px}.rule-action-columns .switch-label{margin-top:20px}.rule-action-columns input[type=number]{max-width:160px}.rule-limits{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.rule-limits input{max-width:160px;display:block}.rule-limits label>span{display:block;font-size:12px;color:var(--muted);line-height:1.6;margin-top:9px}.rule-preview{border:1px solid #365340;border-radius:9px;padding:16px 18px;margin-top:26px;color:#c7e4d1;background:#1b2a21;font-size:13px;line-height:1.7}.rule-save-bar{align-items:center}.rule-save-bar .camera-save-result{max-width:62ch}.rule-action-columns #rule-sound-options>label:not(.switch-label):not(.range-heading){margin-top:15px}
@media(min-width:1600px){.detection-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1150px){.detection-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.automation-status{grid-template-columns:1fr}.automation-status .camera-toolbar{justify-content:flex-start;margin-top:20px}.automation-rule{flex-wrap:wrap}.rule-controls{margin-left:41px}.schedule-day-row{grid-template-columns:115px minmax(0,1fr) auto;gap:10px}.sound-layout{gap:24px}.siren-controls{padding-left:24px}}
@media(max-width:700px){
  html{scrollbar-gutter:auto;scroll-padding-top:76px}body{font-size:16px;touch-action:pan-x pan-y}.shell{min-height:100dvh}.workspace{min-height:100dvh}.content{padding:24px 16px calc(100px + env(safe-area-inset-bottom))}.topbar{position:sticky;top:0;z-index:20;background:var(--bg);height:calc(58px + env(safe-area-inset-top));padding:env(safe-area-inset-top) max(12px,env(safe-area-inset-right)) 0 max(12px,env(safe-area-inset-left))}.topbar .mobile-menu{display:none}.topbar .top-actions{gap:2px}.topbar .crumb{font-size:13px}.topbar .top-actions .pill{font-size:11px}.topbar #help{width:40px}.sidebar{width:min(310px,85vw);padding:calc(25px + env(safe-area-inset-top)) 18px calc(20px + env(safe-area-inset-bottom));overflow-y:auto}.sidebar .brand{margin-bottom:28px}.sidebar .nav-item{min-height:48px;font-size:15px}.sidebar .nav-label{margin-top:20px}.sidebar .device-mini{display:none}.sidebar .sidebar-bottom{padding-top:12px}.shell.menu-open .overlay{left:0;z-index:29}.mobile-navigation{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;bottom:0;left:0;right:0;z-index:25;background:#171c1e;border-top:1px solid #343c40;padding:5px max(4px,env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(4px,env(safe-area-inset-left));min-height:68px}.mobile-navigation button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;min-height:54px;color:var(--muted);font-size:10px;padding:7px 0;border-radius:8px}.mobile-navigation svg{width:21px;height:21px}.mobile-navigation button.active{background:#223a2b;color:var(--accent)}.mobile-navigation button:focus-visible{outline-offset:-2px}.page-head{margin-bottom:23px}.page-head h1{font-size:27px}.page-head p{font-size:14px;line-height:1.6}.page-head>.btn{margin-top:17px}.head-actions{gap:10px}.head-actions .btn{margin-left:0}.btn,.btn.small,.filter{min-height:44px;font-size:13px;padding:10px 12px}.icon-btn{min-width:44px;width:44px;height:44px}.date-picker{width:100%;justify-content:space-between}.date-picker .icon-btn{width:44px}.date-picker input{font-size:16px;width:155px;min-height:44px}.date-picker+.btn{width:100%}input:not([type=checkbox]):not([type=range]),select,textarea,.search input,.filter input{font-size:16px;min-height:44px;max-width:100%}.filter input{width:102px}.search input{padding-left:37px}.search svg{top:14px}.search{margin-top:5px}.filters{gap:8px}.filter{font-size:13px;min-height:42px}.filters>.filter:has(input){width:100%;justify-content:center}.view-switch button{min-width:44px;min-height:40px;padding:9px}.panel{padding:20px 16px}.panel h2{font-size:18px}.panel p,.notice{font-size:13px}.subtle{font-size:12px}.form-row{flex-wrap:wrap;gap:13px;padding:20px 0}.form-row>div:first-child{flex-basis:100%}.form-row h3{font-size:15px}.form-row p{font-size:13px;max-width:none}.form-row select{max-width:100%;width:100%}.form-row .toggle-options{max-width:none;justify-content:flex-start}.form-actions{flex-wrap:wrap}.form-actions .btn{flex:1}.checked-label{font-size:13px;line-height:1.7}.checked-label input{margin-top:4px;width:20px;height:20px}.info-list{font-size:13px;gap:16px 12px}.login-form{min-height:100dvh;padding:32px 24px calc(32px + env(safe-area-inset-bottom));max-width:440px}.login-form label{font-size:14px}.login-form .brand{margin-bottom:48px}.login-form>p{font-size:14px}.login-error{font-size:13px}.login-form .login-foot{font-size:12px}.login-form input{min-height:50px}.login-form .btn{min-height:48px}.live-footer{font-size:12px;gap:10px;flex-wrap:wrap;align-items:center}.live-footer>span:nth-child(2){flex-basis:100%;order:3;line-height:1.6}.live-screen .pill{left:9px;top:9px;font-size:10px}.live-image{border-radius:6px}.player-controls{height:auto;min-height:96px;flex-wrap:wrap;padding:4px 6px;justify-content:center;gap:1px}.player-controls .icon-btn{min-width:40px;width:40px;height:42px}.player-controls .timecode{font-size:11px;margin-left:5px;min-width:83px}.player-controls select.speed{width:64px;min-height:42px;font-size:14px;padding:4px}.player-controls select.player-quality{max-width:114px;min-height:42px;font-size:12px}.player-controls .spacer{display:none}.player-controls .hide-mobile{display:inline-grid}.player-caption{flex-wrap:wrap;align-items:flex-start;gap:13px}.player-caption h2{font-size:14px}.player-caption p{font-size:11px;line-height:1.5}.player-caption .btn{font-size:12px;padding:9px 11px;margin-left:0}.screen-message{max-width:90%;padding:12px}.screen-message strong{font-size:13px}.screen-message p{font-size:12px}.screen-message .btn{min-height:38px}.timeline{padding:16px 12px}.timeline .section-title{flex-wrap:wrap;gap:8px;margin-bottom:16px}.timeline .section-title h2{font-size:14px}.legend{font-size:10px}.timeline-track{min-height:42px}.timeline-clip{height:32px;top:5px}.timeline-note{font-size:10px;gap:12px;line-height:1.6}.timeline-ruler{font-size:10px}.timeline-ruler span:nth-child(even){visibility:hidden}.library-header{align-items:center;gap:10px}.library-header h2{font-size:16px}.library-header h2 .count{display:block;font-size:12px;margin:6px 0 0}.recordings-grid{gap:12px}.recording-meta{padding:12px 10px;min-height:76px}.recording-meta strong{font-size:12px}.recording-meta p{font-size:11px;line-height:1.4}.recording .favorite-file{width:40px;height:40px;min-width:40px;right:3px;top:3px}.recording .select-file{width:20px;height:20px;top:10px;left:10px}.recordings-grid.list .recording{padding-left:40px;min-height:91px}.list .recording-image{width:80px}.list .favorite-file{margin-right:7px}.list .select-file{top:33px}.list .recording-meta{padding:11px 9px}.recording-image .duration{font-size:11px}.selection-bar{font-size:13px;padding:13px;gap:12px}.selection-bar .btn{flex:1}.empty{padding:35px 18px}.empty p{font-size:13px;line-height:1.7}.storage-number{font-size:37px}.storage-breakdown{grid-template-columns:1fr;gap:17px}.storage-breakdown>div{display:flex;align-items:center;justify-content:space-between;gap:10px}.storage-breakdown span{font-size:13px}.storage-breakdown strong{font-size:16px;margin:0}.camera-tabs{top:calc(58px + env(safe-area-inset-top));padding:12px 0;z-index:9}.camera-tabs .filter{min-height:44px;font-size:13px}.camera-settings-group{scroll-margin-top:140px}.camera-field{grid-template-columns:1fr;gap:13px}.camera-field:has(input[type=checkbox]){grid-template-columns:minmax(0,1fr) 40px}.camera-field .field-help{font-size:13px}.camera-field input[type=checkbox]{width:23px;height:23px}.camera-field label{font-size:14px}.camera-field input:not([type=checkbox]),.camera-field select{max-width:100%}.camera-toolbar .btn{flex:1}.camera-controls{display:block}.camera-controls .ptz{grid-template-columns:repeat(3,58px);grid-template-rows:repeat(3,52px);margin:22px auto}.camera-controls .ptz button{width:58px;height:52px}.camera-control-result{font-size:13px}.sound-layout{grid-template-columns:1fr;gap:23px}.siren-controls{border-left:0;border-top:1px solid var(--line);padding:23px 0 0}.siren-controls h3{font-size:15px}.schedule-presets{gap:7px}.schedule-presets>span{width:100%;margin-bottom:3px;font-size:13px}.schedule-presets .btn{font-size:12px;padding:9px 10px}.schedule-day-row{grid-template-columns:minmax(0,1fr) auto;gap:7px 10px;padding:14px 0}.schedule-day-toggle{min-height:42px;font-size:14px!important}.schedule-day-toggle input{width:22px!important;height:22px!important;min-height:22px!important}.schedule-intervals{grid-column:1/-1;grid-row:2;gap:10px}.schedule-interval{gap:10px;width:100%}.schedule-interval select{flex:1;width:100%!important;min-width:0;min-height:44px;font-size:16px;margin-top:0!important}.schedule-interval .icon-btn{min-width:44px;width:44px;height:44px}.schedule-add{grid-column:2;grid-row:1;min-width:44px}.schedule-add span{display:none}.schedule-copy{align-items:stretch;gap:9px;margin-top:20px}.schedule-copy label{font-size:13px!important;justify-content:space-between;flex:1;min-width:0}.schedule-copy select{font-size:16px;min-width:125px;max-width:160px;min-height:44px}.schedule-copy .btn{width:100%}.schedule-help{font-size:13px!important;line-height:1.7!important}.schedule-off{line-height:28px}.schedule-editor>.field-help{font-size:12px!important;line-height:1.7!important}.schedule-result{font-size:13px!important}.event-filters{flex-wrap:nowrap;overflow-x:auto;padding-bottom:6px;scrollbar-width:none;margin:0 -16px 15px;padding-left:16px;padding-right:16px}.event-filters .filter{white-space:nowrap;min-height:42px;font-size:13px;flex-shrink:0}.event-tools{flex-wrap:wrap;gap:10px;margin-bottom:20px}.event-tools>.subtle{width:100%;font-size:12px}.event-tools .view-switch{flex:1}.event-tools .view-switch button{flex:1;min-height:40px;font-size:12px;gap:6px;padding:7px}.event-tools>.btn{font-size:12px}.detector-health{gap:10px}.detector-health .pill{font-size:11px}.detector-health>span:nth-child(2){font-size:11px}.detector-health .btn{width:100%;margin:3px 0 0}.detection-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.detection-card{border-radius:10px}.detection-meta{padding:11px 10px;min-height:87px;position:relative}.detection-meta h3{font-size:13px;gap:5px}.detection-meta p{font-size:11px;line-height:1.5;max-width:16ch}.detection-meta>.icon-btn{display:none}.detection-meta>.subtle{position:absolute;right:8px;top:10px;font-size:9px}.detection-time{left:6px;bottom:6px;font-size:12px;padding:4px 5px}.detection-play{right:5px;bottom:6px;width:24px;height:24px}.thumbnail-placeholder{font-size:10px;padding:10px;gap:5px}.thumbnail-placeholder svg{width:23px;height:23px}.detection-list{padding:0 13px}.event-row{display:grid;grid-template-columns:35px minmax(0,1fr) auto;gap:10px;padding:18px 0}.event-icon{padding:8px}.event-icon svg{width:18px;height:18px}.event-row h3{font-size:14px}.event-row p{font-size:11px}.event-row time{font-size:13px}.event-row .btn{grid-column:2/-1;margin:0;font-size:12px;justify-self:stretch}.automation-status{grid-template-columns:1fr}.automation-status .camera-toolbar{gap:10px}.automation-status .camera-toolbar .btn{flex:1}.automation-rules .library-header{display:block;margin-bottom:4px}.automation-rules .library-header>.subtle{display:block;margin-top:11px}.automation-rule{gap:10px;padding:21px 0}.rule-order{width:19px}.rule-copy h3{font-size:15px;gap:9px}.rule-copy h3 .pill{font-size:10px}.rule-copy p{font-size:13px}.rule-copy>.subtle{font-size:12px}.rule-controls{width:100%;margin-left:29px;gap:6px}.rule-controls .btn{flex:1;font-size:12px}.rule-controls .icon-btn{width:42px;height:44px}.automation-editor{scroll-margin-top:82px;padding:20px 15px}.automation-editor .section-title{margin-bottom:21px}.rule-name-row{display:block}.rule-name-row .switch-label{margin-top:18px;min-height:44px;font-size:14px}.rule-section{padding-top:24px;margin-top:25px}.rule-section>h3{font-size:17px}.rule-section>label,.rule-action-columns label{font-size:14px}.rule-action-columns{grid-template-columns:1fr;gap:27px}.rule-action-columns>div+div{padding-top:24px;border-top:1px solid var(--line)}.rule-limits{grid-template-columns:1fr;gap:23px}.rule-limits label{font-size:14px}.rule-limits input{max-width:100%}.rule-preview{padding:15px;font-size:13px}.rule-save-bar .camera-save-result{flex-basis:100%;font-size:13px}.rule-save-bar .btn{min-width:100px}.automation-history{padding:17px}.automation-history summary{font-size:14px;min-height:30px}.history-row{gap:12px;font-size:12px}.history-row span{overflow-wrap:anywhere}dialog{padding:23px 20px;max-height:calc(100dvh - 45px);overflow-y:auto}dialog .dialog-actions{gap:9px;flex-wrap:wrap}dialog .dialog-actions .btn{flex:1;white-space:normal}dialog h2{font-size:22px}dialog p{font-size:14px}#toast{bottom:calc(88px + env(safe-area-inset-bottom));font-size:13px;padding:13px 17px;width:max-content;max-width:calc(100vw - 30px);text-align:center;line-height:1.6}
}
@media(max-width:359px){.content{padding-left:12px;padding-right:12px}.topbar .crumb{font-size:12px}.top-actions .pill{padding:5px}.detection-grid{gap:9px}.event-tools .view-switch button{font-size:11px;padding:7px 5px}.event-tools .btn{padding:9px}.rule-controls{margin-left:0}.detection-meta{padding:10px 8px}.detection-meta h3{font-size:12px}.player-controls .icon-btn{min-width:36px;width:36px}.panel{padding-left:14px;padding-right:14px}.schedule-interval{gap:7px}.schedule-copy label{flex-wrap:wrap}.schedule-copy select{max-width:100%;flex:1}.mobile-navigation button{font-size:9px}}
@media(hover:none){.recording-image:hover img{transform:none}}

/* Live video recovery stays readable on the camera preview and narrow screens. */
.live-screen{aspect-ratio:16/9;background:#080a0b;border-radius:9px;overflow:hidden}.live-image{height:100%}.live-image[hidden],.live-placeholder[hidden],.live-recovery[hidden]{display:none}.live-snapshot{position:absolute;inset:0}.live-placeholder{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;padding:48px 20px 22px;text-align:center;color:var(--text)}.live-placeholder strong{font-size:15px;font-weight:550}.live-placeholder span{color:var(--muted);font-size:12px;max-width:40ch;line-height:1.5}.live-screen .pill{max-width:calc(100% - 30px);white-space:normal}.live-footer{gap:10px;flex-wrap:wrap;align-items:center;line-height:1.5}.live-footer #live-time{margin-left:auto}.live-recovery{padding-top:15px;margin-top:14px;border-top:1px solid var(--line)}.live-recovery p{font-size:12px;line-height:1.6;color:var(--muted);margin:0 0 12px;max-width:70ch}.live-recovery-actions{display:flex;gap:9px;flex-wrap:wrap}.live-recovery-actions .btn{min-height:44px}.camera-workspace .live-recovery-actions .btn{flex:1 1 auto}@media(max-width:600px){.live-footer #live-time{margin-left:0}.live-recovery-actions .btn{flex:1 1 100%;white-space:normal}.live-placeholder{padding-top:43px;gap:5px}.live-placeholder strong{font-size:14px}.live-placeholder span{font-size:11px}}

/* Recording status stays below the image so loading and recovery remain readable on phones. */
#player-message:empty{display:none}.recording-status{padding:16px 18px;border-top:1px solid var(--line);line-height:1.6}.recording-status strong{display:block;font-size:14px;font-weight:550}.recording-status p{color:var(--muted);font-size:13px;margin:5px 0 0;max-width:70ch}.recording-status .bar{margin:12px 0 0}.recording-status .btn{margin:12px 8px 0 0;min-height:44px;white-space:normal}.player-controls .icon-btn:disabled{opacity:.45;cursor:wait}@media(max-width:600px){.recording-status{padding:15px 14px}.recording-status strong{font-size:15px}.recording-status p{font-size:14px}.recording-status .btn{font-size:14px;min-height:44px}.player-controls select.speed,.player-controls select.player-quality{font-size:16px;max-width:none}.player-controls select.player-quality{width:140px}.player-controls select.speed{width:66px}.player-controls .icon-btn{min-height:44px}}

/* Real actuator tests share the action page's controls and spacing. */
.automation-test{margin:22px 0 24px;scroll-margin-top:24px}
.automation-test>.section-title{gap:12px;flex-wrap:wrap;margin-bottom:12px}
.automation-test>p{max-width:75ch;line-height:1.7}
.automation-test fieldset{border:0;margin:22px 0 0;padding:0;min-width:0}
.test-fields{display:grid;grid-template-columns:minmax(0,2fr) minmax(140px,1fr);gap:20px;max-width:760px}
.test-fields label{display:grid;gap:9px;font-size:14px;min-width:0}
.test-fields select{width:100%;min-width:0;max-width:100%;margin:0}
.test-siren{margin-top:20px;font-size:14px;min-height:30px}
.test-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:20px}
#test-countdown{font-variant-numeric:tabular-nums;color:var(--accent);font-size:14px}
.automation-test .test-result{color:var(--text);margin:18px 0 0;font-size:14px}
.automation-test .test-telemetry{color:var(--muted);font-size:13px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;margin:8px 0 0}
.test-telemetry:empty{display:none}
.automation-test>.field-help{margin-top:16px}
@media(max-width:700px){.automation-test{scroll-margin-top:82px}.test-fields{grid-template-columns:1fr;gap:18px}.test-fields select{min-height:44px;font-size:16px}.test-siren{min-height:44px;line-height:1.6;align-items:center}.test-siren input{min-width:22px;width:22px;height:22px}.test-actions .btn{flex:1;min-height:44px}.test-actions output{flex-basis:100%}.rule-controls{margin-left:0;max-width:100%}}
.crumb #camera-scope{min-width:0}
#camera-switch{width:auto;max-width:100%;color:var(--text)}
@media(max-width:700px){
  .topbar .crumb{min-width:0}
  .topbar .top-actions{flex-shrink:0}
  #camera-switch{min-height:44px;width:min(49vw,200px);font-size:16px}
}
