:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--brand:#12346e;--brand-dark:#0b2350;--bg:#142c57;--face:linear-gradient(145deg, #18335f, #11274c);--raised:-5px -5px 12px #4a76c433, 7px 7px 16px #02091c99;--raised-sm:-3px -3px 7px #4a76c42e, 4px 4px 9px #02091c8c;--pressed:inset 3px 3px 7px #02091c99, inset -3px -3px 7px #4a76c429;--surface:#ffffff14;--surface-2:#ffffff1f;--surface-3:#ffffff38;--separator:#ffffff24;--label:#fff;--label-2:#e1ebfab8;--label-3:#e1ebfa73;--accent:#5cb0ff;--accent-soft:#5cb0ff33;--action:#0a84ff;--red:#ff453a;--red-soft:#ff453a2e;--green:#30d158;--green-soft:#30d15829;--orange:#ff9f0a;--gray:#8e8e93;--radius:22px;--radius-sm:14px;color:var(--label);-webkit-font-smoothing:antialiased;font-family:-apple-system,BlinkMacSystemFont,SF Pro Text,Segoe UI Variable Text,Segoe UI,system-ui,sans-serif}*{box-sizing:border-box}html{background:var(--bg)}body{background:radial-gradient(120% 60% at 50% 0%, #1a3566 0%, var(--bg) 70%) fixed var(--bg);caret-color:#0000;min-height:100dvh;margin:0;line-height:1.4}input,textarea,select,[contenteditable=true]{caret-color:auto}h1{letter-spacing:-.02em;margin:0;font-size:clamp(1.75rem,6vw,2.125rem);font-weight:700;line-height:1.1}a{color:var(--accent)}.center{flex-direction:column;justify-content:center;align-items:center;gap:1.25rem;min-height:100dvh;padding:1.25rem;display:flex}.center h1{font-size:clamp(1.5rem,5vw,1.75rem)}.logo{width:min(300px,72vw);height:auto}.card,.panel,.camera,.menu a,.overview{box-shadow:var(--raised);background:var(--face)!important}.card{background:var(--surface);border-radius:20px;gap:1rem;width:min(380px,100%);padding:1.5rem;display:grid}label{color:var(--label-2);gap:.35rem;font-size:.9rem;font-weight:600;display:grid}input:not([type=checkbox]),select{width:100%;min-height:44px;font:inherit;color:var(--label);background:var(--bg);border-radius:var(--radius-sm);box-shadow:var(--pressed);border:1px solid #0000;padding:0 .85rem;font-size:1rem;transition:border-color .12s ease-out,box-shadow .12s ease-out}input:not([type=checkbox]):focus,select:focus{border-color:var(--accent);box-shadow:var(--pressed), 0 0 0 3px var(--accent-soft);outline:none}input::placeholder{color:var(--label-3)}input:disabled{color:var(--label-3);box-shadow:none;border-color:var(--separator)}.check{min-height:44px;color:var(--label);align-items:center;gap:.6rem;font-weight:400;display:flex}.check input{width:20px;height:20px;accent-color:var(--accent)}button{min-height:44px;font:inherit;color:var(--accent);background:var(--face);border-radius:var(--radius-sm);box-shadow:var(--raised-sm);cursor:pointer;border:0;padding:0 1.1rem;font-weight:600;transition:box-shadow .12s ease-out,transform .1s ease-out}button:active:not(:disabled){box-shadow:var(--pressed);transform:scale(.98)}button:disabled{cursor:default;opacity:.45}button:focus-visible,a:focus-visible{outline:3px solid var(--accent);outline-offset:2px}button.primary,.card button{color:#fff;background:linear-gradient(145deg,#2b95ff,#0a6fe0)}button.danger{color:var(--red)}button.danger-solid{color:#fff;background:linear-gradient(145deg,#ff5a50,#e0352b)}.error{color:var(--red);margin:0;font-weight:600}header{z-index:10;padding:.6rem clamp(.75rem,3vw,2rem);padding-top:max(.6rem, env(safe-area-inset-top));-webkit-backdrop-filter:blur(20px)saturate(160%);background:#142c57d1;align-items:center;gap:.75rem;display:flex;position:sticky;top:0;box-shadow:0 6px 18px #02091c73}header img{width:clamp(118px,26vw,180px);height:auto}header button{min-height:36px;padding:0 .9rem;font-size:.95rem}.user{color:var(--label-2);text-overflow:ellipsis;overflow:hidden}.home-link{border-radius:6px;margin-right:auto;display:flex}.app main{max-width:1040px;padding:1.25rem clamp(1rem, 3vw, 1.5rem) max(2rem, env(safe-area-inset-bottom));margin:0 auto}.app main>h1{margin:.25rem 0 1.25rem}.page-title{gap:.15rem;margin-bottom:1.25rem;display:grid}.back{min-height:44px;color:var(--accent);border-radius:6px;justify-self:start;align-items:center;margin-left:-.25rem;padding:0 .25rem;font-size:1.05rem;text-decoration:none;display:inline-flex}.back:active{opacity:.6}.menu{grid-template-columns:repeat(2,minmax(0,1fr));gap:1.1rem;margin:0;padding:0;list-style:none;display:grid}@media (width>=768px){.menu{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (width>=1100px){.menu{grid-template-columns:repeat(5,minmax(0,1fr))}}.menu a{min-height:140px;color:var(--label);background:var(--surface);border-radius:var(--radius);flex-direction:column;justify-content:flex-end;align-items:flex-start;gap:.2rem;padding:1rem;font-size:1.05rem;font-weight:600;text-decoration:none;transition:box-shadow .14s ease-out,transform .1s ease-out;display:flex}.menu a:hover{box-shadow:-7px -7px 16px #4a76c442,9px 9px 20px #02091ca6}.menu a:active{box-shadow:var(--pressed);transform:scale(.98)}.menu .icon{color:#fff;width:40px;height:40px;box-shadow:var(--raised-sm), inset 0 1px 0 #ffffff40;border-radius:14px;place-items:center;margin-bottom:auto;display:grid}.menu .icon svg{width:22px;height:22px}.menu small{color:var(--label-2);font-size:.85rem;font-weight:400}.muted{color:var(--label-2)}.panel{background:var(--surface);border-radius:var(--radius);margin:0 0 1rem;padding:1.1rem}.panel h2{letter-spacing:-.01em;margin:0 0 .5rem;font-size:1.1rem}.panel p{margin:0 0 .75rem}.stack{gap:1rem;display:grid}@media (width>=1024px){.stack{grid-template-columns:1fr 1fr;align-items:start}.stack .panel{margin:0}}.form{gap:.9rem;max-width:560px;display:grid}.form h2{margin:0}.row{grid-template-columns:1fr 1fr;gap:.8rem;display:grid}.actions{flex-wrap:wrap;gap:.5rem;display:flex}.app main>button.primary{margin-bottom:1rem}.note{font-weight:600}.ok-text{color:var(--green);font-weight:600}.notice{box-shadow:inset 0 0 0 2px var(--orange)}.secret{word-break:break-all;background:var(--bg);box-shadow:var(--pressed);border-radius:var(--radius-sm);margin-bottom:.75rem;padding:.75rem;font-size:1.05rem;display:block}.qr{width:min(280px,100%);height:auto;image-rendering:pixelated;background:#fff;border-radius:12px;margin:0 auto .75rem;padding:12px;display:block}.list{margin:0;padding:0;list-style:none}.item{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.75rem;display:flex}.item h2{margin-bottom:.2rem}.item p{color:var(--label-2);margin:0}.incident.open{box-shadow:inset 4px 0 0 var(--red)}.cause{font-weight:600;color:var(--label)!important;margin-top:.25rem!important}.filter{align-items:center;gap:.6rem;margin-bottom:1rem;display:flex}.filter select{flex:1;max-width:320px}.overview{background:var(--surface);border-radius:var(--radius);align-items:center;gap:.6rem;margin:0 0 1rem;padding:.85rem 1rem;font-weight:600;display:flex}.overview .dot{background:var(--green);border-radius:50%;flex-shrink:0;width:10px;height:10px}.overview.alert .dot{background:var(--red)}.overview.offline .dot{background:var(--gray)}.cameras{grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr));gap:1.25rem;margin:0;padding:0;list-style:none;display:grid}.camera{background:var(--surface);border-radius:var(--radius);padding:1rem 1.1rem 1.1rem}.camera.alert{box-shadow:inset 0 0 0 2px var(--red), var(--raised)}.camera-head{justify-content:space-between;align-items:flex-start;gap:.5rem;display:flex}.camera h2{overflow-wrap:anywhere;margin:0;font-size:1.05rem}.badge{text-align:right;background:var(--green-soft);max-width:60%;color:var(--green);border-radius:999px;flex-shrink:0;padding:.2rem .6rem;font-size:.78rem;font-weight:600}.alert .badge{background:var(--red-soft);color:var(--red)}.offline .badge,.idle .badge{background:var(--surface-2);color:var(--label-2)}.dial{aspect-ratio:1;width:min(220px,78%);box-shadow:var(--pressed);border-radius:50%;margin:.9rem auto .6rem;position:relative}.gauge{width:100%;height:100%;position:absolute;inset:0}.gauge path{fill:none;stroke-linecap:round}.gauge-track{stroke:#02091c73;stroke-width:14px}.gauge-range{stroke:#ffffff29;stroke-width:14px}.gauge-value{stroke:var(--tone);stroke-width:10px;filter:drop-shadow(0 0 6px var(--tone))}.gauge-knob{fill:#fff;stroke:var(--tone);stroke-width:4px;filter:drop-shadow(0 0 5px var(--tone))}.gauge.ok{--tone:var(--green)}.gauge.bad{--tone:var(--red)}.gauge.off{--tone:var(--gray)}.temp{letter-spacing:-.03em;font-variant-numeric:tabular-nums;justify-content:center;align-items:center;gap:.1rem;margin:0;font-size:clamp(2.25rem,10vw,2.75rem);font-weight:600;line-height:1;display:flex;position:absolute;inset:0}.temp small{letter-spacing:0;color:var(--label-2);align-self:center;font-size:.4em;font-weight:600;transform:translateY(-.6em)}.temp.bad,dd.bad{color:var(--red)}.temp.none{color:var(--label-3)}.camera dl{border-top:1px solid var(--separator);gap:.4rem;margin:0;padding-top:.75rem;display:grid}.camera dl div{justify-content:space-between;gap:.5rem;display:flex}.camera dt{color:var(--label-2)}.camera dd{text-align:right;margin:0;font-weight:500}.camera dd small{color:var(--label-2)}.camera.offline dd,.camera.offline .temp{color:var(--label-3)}.stale{color:var(--label-3);margin:.6rem 0 0;font-size:.8rem}.bars{vertical-align:-1px;align-items:flex-end;gap:2px;height:14px;margin-right:.35rem;display:inline-flex}.bars i{background:var(--surface-3);border-radius:1px;width:4px}.camera dl{box-shadow:none}.bars i:first-child{height:5px}.bars i:nth-child(2){height:9px}.bars i:nth-child(3){height:14px}.b1 i:nth-child(-n+1),.b2 i:nth-child(-n+2),.b3 i:nth-child(-n+3){background:var(--label)}@media (width<=359px){.user{display:none}}@media (height<=500px){.center{justify-content:flex-start}.logo{width:200px}}.danger-zone{box-shadow:inset 0 0 0 1.5px var(--red-soft)}.warning-text{color:var(--red);margin:0;font-weight:600}.stack .danger-zone{grid-column:1/-1}.filters{background:var(--bg);border-radius:var(--radius-sm);box-shadow:var(--pressed);gap:2px;margin-bottom:1rem;padding:4px;display:inline-flex}.filters button{min-height:36px;color:var(--label-2);box-shadow:none;background:0 0;border-radius:10px;padding:0 1rem}.filters button.selected{color:var(--label);background:var(--face);box-shadow:var(--raised-sm)}.refreshing{opacity:.6;transition:opacity .2s}.summary{border-collapse:collapse;width:100%;font-size:.95rem}.summary th{text-align:left;color:var(--label-2);border-bottom:1px solid var(--separator);padding:.5rem;font-weight:600}.summary td{border-bottom:1px solid var(--separator);font-variant-numeric:tabular-nums;padding:.6rem .5rem}.summary tr:last-child td{border-bottom:0}.summary tr.current td{background:var(--accent-soft)}button.link{min-height:32px;box-shadow:none;color:var(--accent);text-align:left;background:0 0;padding:0;font-weight:600}@media (width<=899px){.summary thead{display:none}.summary tr{border-bottom:1px solid var(--separator);padding:.6rem 0;display:block}.summary tr:last-child{border-bottom:0}.summary td{text-align:right;border:0;justify-content:space-between;gap:1rem;padding:.2rem .25rem;display:flex}.summary td:before{content:attr(data-label);color:var(--label-2);text-align:left;font-weight:400}.summary td:first-child:before{content:none}.summary td:first-child{justify-content:flex-start}}.detail-head{flex-wrap:wrap;align-items:center;gap:.6rem;margin-bottom:.75rem;display:flex}.detail-head h2{margin:0}.detail-head select{flex:1;min-width:0;max-width:320px}.stats{grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:.6rem;margin-bottom:1rem;display:grid}.stat{background:var(--bg);border-radius:var(--radius-sm);box-shadow:var(--pressed);gap:.15rem;padding:.65rem .8rem;display:grid}.stat span{color:var(--label-2);font-size:.85rem}.stat strong{font-variant-numeric:tabular-nums;font-size:1.3rem}.chart-key{color:var(--label-2);flex-wrap:wrap;gap:.4rem 1rem;margin:0 0 .5rem;padding:0;font-size:.85rem;list-style:none;display:flex}.chart-key li{align-items:center;gap:.35rem;display:flex}.chart-key i{display:inline-block}.key-line{background:#409cff;border-radius:1px;width:16px;height:2px}.key-band{background:#ffffff1a;border-top:1px solid #7f93b8;border-bottom:1px solid #7f93b8;width:14px;height:10px}.key-dot{background:var(--red);border-radius:50%;width:10px;height:10px}.key-hatch{background:repeating-linear-gradient(45deg,#7f93b8 0 2px,#0000 2px 5px);width:14px;height:10px}.plot{width:100%;position:relative}.plot svg{touch-action:pan-y;display:block}.plot svg:focus-visible{outline:3px solid var(--accent);outline-offset:2px}.plot .tick{fill:#a9bbd8;font-variant-numeric:tabular-nums;font-size:11px}.plot .limit{fill:#c7c7cc;font-size:11px}.chart-tip{-webkit-backdrop-filter:blur(16px);width:160px;color:var(--label);border-radius:var(--radius-sm);pointer-events:none;background:#102a58f0;gap:.1rem;padding:.5rem .65rem;font-size:.85rem;display:grid;position:absolute;box-shadow:0 8px 24px #00000080}.chart-tip strong{font-size:1.05rem}.chart-tip span,.chart-tip small{color:var(--label-2)}.chart-empty{text-align:center;color:var(--label-2);position:absolute;inset:40% 0 auto}.chart-table{margin-top:.75rem}.chart-table summary{cursor:pointer;min-height:44px;color:var(--accent);align-items:center;font-weight:600;display:flex}.table-scroll{max-height:320px;overflow:auto}.chart-table table{border-collapse:collapse;font-variant-numeric:tabular-nums;width:100%;font-size:.9rem}.chart-table th,.chart-table td{text-align:left;border-bottom:1px solid var(--separator);padding:.3rem .5rem}@media (prefers-reduced-motion:reduce){*,:before,:after{transition:none!important}}@media (prefers-contrast:more){.card,.panel,.camera,.menu a,.overview,button{box-shadow:0 0 0 1px var(--label-3)}}@media (prefers-reduced-transparency:reduce){header{background:var(--brand-dark);-webkit-backdrop-filter:none}.gauge-value,.gauge-knob{filter:none}}.visually-hidden{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}
