:root{--background:#0b0f14;--surface:#131a22;--surface-high:#1b2430;--outline:#2a3644;--text:#e8eef5;--text-muted:#8a97a8;--online:#3ddc97;--alarm:#ff4d5e;--radius-large:20px;--radius-small:12px;color:var(--text);background:var(--background);font-family:Segoe UI Variable Text,Segoe UI,system-ui,-apple-system,Roboto,sans-serif;font-size:16px;line-height:1.5}*{box-sizing:border-box}body{min-height:100vh;margin:0}button,input{font:inherit;color:inherit}:focus-visible{outline:2px solid var(--online);outline-offset:2px}.app{max-width:1440px;margin:0 auto;padding:20px clamp(16px,3vw,40px) 40px}.topbar{justify-content:space-between;align-items:baseline;gap:16px;margin-bottom:24px;display:flex}.brand{letter-spacing:-.01em;margin:0;font-size:1.375rem;font-weight:650}.server{color:var(--text-muted);margin:0;font-size:.875rem}.server-on:before{content:"";background:var(--online);border-radius:50%;width:8px;height:8px;margin-right:8px;display:inline-block}.notice{border-radius:var(--radius-small);background:color-mix(in srgb, var(--alarm) 14%, transparent);color:var(--alarm);margin:0 0 20px;padding:14px 18px}.layout{grid-template-columns:minmax(220px,280px) 1fr;align-items:start;gap:24px;display:grid}.cameras-title{color:var(--text-muted);margin:0 0 12px;font-size:1rem;font-weight:600}.cameras ul{gap:8px;margin:0;padding:0;list-style:none;display:grid}.camera{border-radius:var(--radius-small);background:var(--surface);text-align:left;cursor:pointer;border:1px solid #0000;align-items:center;gap:14px;width:100%;padding:14px 16px;display:flex}.camera:hover:not(:disabled){background:var(--surface-high)}.camera:disabled{cursor:default;opacity:.6}.camera-selected{border-color:var(--online);background:var(--surface-high)}.camera-text{display:grid}.camera-name{font-weight:600}.camera-state{color:var(--text-muted);font-size:.8125rem}.led{background:var(--text-muted);border-radius:50%;flex:none;width:10px;height:10px}.led-on{background:var(--online);box-shadow:0 0 0 4px color-mix(in srgb, var(--online) 20%, transparent)}.live{gap:14px;display:grid}.live-empty{border:1px dashed var(--outline);border-radius:var(--radius-large);min-height:320px;color:var(--text-muted);place-items:center}.screen{aspect-ratio:4/3;border-radius:var(--radius-large);background:#000;width:100%;max-height:calc(100vh - 220px);position:relative;overflow:hidden}.screen video{object-fit:contain;width:100%;height:100%;display:block}.osd{color:#fff;text-shadow:0 1px 2px #000000e6,0 0 6px #0009;pointer-events:none;flex-wrap:wrap;align-items:center;gap:6px 18px;font-family:Cascadia Mono,Consolas,ui-monospace,monospace;font-size:clamp(.8125rem,1.4vw,1rem);display:flex;position:absolute;inset:16px 18px auto}.osd-time{font-variant-numeric:tabular-nums}.osd-live{color:var(--alarm);align-items:center;gap:8px;margin-left:auto;display:inline-flex}.osd-live:before{content:"";background:var(--alarm);border-radius:50%;width:9px;height:9px;animation:1.6s steps(2,jump-none) infinite blink}@keyframes blink{50%{opacity:.25}}@media (prefers-reduced-motion:reduce){.osd-live:before{animation:none}}.screen-message{text-align:center;color:var(--text-muted);place-items:center;margin:0;padding:24px;display:grid;position:absolute;inset:0}.controls{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.stats{color:var(--text-muted);margin:0 0 0 auto;font-size:.875rem}.button,.button-quiet{cursor:pointer;border-radius:999px;padding:10px 18px;font-weight:600}.button{background:var(--online);color:#00281a;border:none}.button:disabled{opacity:.5;cursor:default}.button-quiet{border:1px solid var(--outline);background:0 0}.button-quiet:hover{background:var(--surface-high)}.empty{grid-column:1/-1;max-width:62ch}.empty h2{letter-spacing:-.015em;margin:0 0 8px;font-size:1.75rem;font-weight:650}.empty p{color:var(--text-muted);margin:0 0 24px}.empty strong{color:var(--text);font-weight:600}.paste{justify-items:start;gap:10px;display:grid}.paste label{font-weight:600}.paste input{border:1px solid var(--outline);border-radius:var(--radius-small);background:var(--surface);width:100%;padding:12px 14px}.field-error{color:var(--alarm);margin:0;font-size:.875rem}.dialog{border:1px solid var(--outline);border-radius:var(--radius-large);background:var(--surface);max-width:420px;color:var(--text);padding:24px}.dialog::backdrop{background:#0009}.dialog h2{margin:0 0 8px;font-size:1.25rem}.dialog p{color:var(--text-muted);margin:0 0 20px}.dialog-actions{justify-content:flex-end;gap:10px;display:flex}@media (width<=760px){.layout{grid-template-columns:1fr}.screen{max-height:none}.stats{width:100%;margin-left:0}}
