:root { color-scheme: dark; font-family: system-ui, sans-serif; background: #101318; color: #f1f3f5; }
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(circle at top right, #273453, #101318 42rem); min-height: 100vh; }
.shell { width: min(960px, calc(100% - 32px)); margin: 0 auto; padding: 48px 0 72px; }
.eyebrow { color: #8ab4ff; letter-spacing: .16em; font-size: .78rem; margin: 0 0 8px; }
h1, h2 { margin: 0; } h1 { font-size: clamp(2rem, 6vw, 4rem); } h2 { font-size: 1.2rem; }
.muted { color: #aeb8c8; }
.toolbar, .player-card { border: 1px solid #323b4d; background: #171c26dd; border-radius: 16px; padding: 16px; margin-top: 24px; }
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
button, input { border: 1px solid #495772; background: #20283a; color: inherit; border-radius: 9px; padding: 10px 12px; font: inherit; }
button { cursor: pointer; } button:hover { border-color: #8ab4ff; } button:disabled { opacity: .55; cursor: wait; }
label { display: flex; align-items: center; gap: 8px; color: #aeb8c8; } input { width: 190px; }
.status { margin-left: auto; color: #9cdda7; } .status.error { color: #ff9c9c; }
.player-card { min-height: 240px; display: grid; place-items: center; overflow: hidden; }
video { width: 100%; max-height: 560px; background: #07090d; border-radius: 10px; } .empty { color: #7f899c; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 32px 0 12px; }
.recordings { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.recordings li { margin: 0; } .recording { width: 100%; display: flex; justify-content: space-between; text-align: left; gap: 12px; }
.recording span { color: #aeb8c8; white-space: nowrap; }
@media (max-width: 600px) { .status { width: 100%; margin-left: 0; } .recording { flex-direction: column; gap: 4px; } label { width: 100%; } input { flex: 1; } }

[hidden] { display: none !important; }
.live-shell { max-width: 920px; }
.live-header { margin-bottom: 24px; }
.live-card { border: 1px solid #323b4d; background: #171c26ee; border-radius: 16px; padding: 18px; margin-top: 20px; }
.live-card h2 { font-size: 1.2rem; }
.login-form { margin-top: 18px; }
.login-form label { display: block; margin-bottom: 8px; }
.login-row { display: flex; gap: 10px; }
.login-row input { flex: 1; min-width: 0; width: auto; }
.login-row button { min-width: 86px; }
.viewer-bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.viewer-bar .status { margin: 8px 0 0; }
.secondary { background: transparent; }
.frame-wrap { margin-top: 18px; min-height: min(62vw, 540px); display: grid; place-items: center; overflow: hidden; border: 1px solid #30394a; border-radius: 12px; background: #07090d; }
.frame-wrap img { display: block; width: 100%; height: auto; max-height: min(72vh, 620px); object-fit: contain; }
.frame-empty { color: #8994a7; padding: 70px 20px; text-align: center; }
.telemetry { display: flex; flex-wrap: wrap; gap: 14px 22px; margin-top: 12px; color: #aeb8c8; font-size: .92rem; }
.telemetry strong { color: #f1f3f5; font-variant-numeric: tabular-nums; }
.error { color: #ff9c9c; }
@media (max-width: 600px) {
  .live-card { padding: 14px; }
  .login-row { flex-direction: column; }
  .login-row button { width: 100%; }
  .viewer-bar { align-items: stretch; flex-direction: column; }
  .viewer-bar .secondary { width: 100%; }
  .frame-wrap { min-height: 56vw; }
}
