[hidden] { display: none !important; } /* the panel, its forms and the small buttons set display, which would show them while hidden */
html, body { margin: 0; height: 100%; background: #0f1115; color: #e8eaed; font: 16px/1.35 -apple-system, "Segoe UI", Roboto, sans-serif; }
main { position: relative; height: 100%; overflow: hidden; }
video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); background: #000; }
header, footer { position: absolute; left: 0; right: 0; padding: max(14px, env(safe-area-inset-top)) 16px 14px; display: flex; gap: 10px; align-items: center; }
header { top: 0; background: linear-gradient(#000a, #0000); }
footer { bottom: 0; flex-direction: column; padding-bottom: max(18px, env(safe-area-inset-bottom)); background: linear-gradient(#0000, #000c); }
.pill { padding: 6px 12px; border-radius: 999px; background: #23262d; font-weight: 600; font-size: 15px; }
.pill[data-state="live"] { background: #c62828; }
.pill[data-state="connecting"], .pill[data-state="reconnecting"] { background: #8a6d00; }
.pill[data-state="failed"], .pill[data-state="camera"] { background: #5f2120; }
.clock { font-variant-numeric: tabular-nums; color: #fff; text-shadow: 0 1px 2px #000; }
.line { margin: 0; text-align: center; max-width: 520px; text-shadow: 0 1px 2px #000; }
button { width: min(420px, 100%); height: 56px; border: 0; border-radius: 14px; background: #e53935; color: #fff; font-size: 19px; font-weight: 700; }
button[data-live="true"] { background: #2b2f38; }
button:disabled { opacity: .5; }
.stats { margin: 0; font-size: 12px; color: #b9bec7; font-variant-numeric: tabular-nums; text-align: center; min-height: 1em; }
header { flex-wrap: wrap; }
.rooms { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.rooms li { padding: 4px 10px; border-radius: 999px; background: #23262dcc; font-size: 13px; }
.rooms li[data-state="live"] { background: #c62828; }
.rooms li[data-state="starting"], .rooms li[data-state="recovering"], .rooms li[data-state="stopping"] { background: #8a6d00; }
.rooms li[data-state="lost"], .rooms li[data-state="unknown"] { background: #5f2120; }
.small { width: auto; height: 32px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: #23262dcc; }
.quiet { background: #2b2f38; }
.panel { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; background: #0f1115f2; overflow: auto; }
.panel form { width: min(420px, 100%); display: flex; flex-direction: column; gap: 12px; }
.panel h1 { margin: 0 0 4px; font-size: 22px; }
.panel label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: #b9bec7; }
.panel input { height: 44px; padding: 0 12px; border: 1px solid #3a3f4a; border-radius: 10px; background: #181b21; color: #e8eaed; font-size: 16px; }
.panel fieldset { border: 1px solid #2b2f38; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.panel legend { padding: 0 6px; font-weight: 600; }
.note { margin: 0; font-size: 13px; color: #b9bec7; min-height: 1em; }
.saved { font-size: 12px; color: #8fd19e; }
.saved[data-saved="false"] { color: #f5b545; }
