:root {
  color-scheme: dark;
  --bg: #080808;
  --panel: #131313;
  --line: #2a2a2a;
  --text: #f1f1f1;
  --muted: #a6a6a6;
  --accent: #ff3333;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; }
.shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 48px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.brand { font-size: 24px; font-weight: 760; letter-spacing: 0; }
.badge { border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; color: var(--muted); font-size: 13px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.card, .panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.card h2, .panel h2 { margin: 0 0 8px; font-size: 18px; }
.card p, .panel p { color: var(--muted); line-height: 1.55; margin: 0 0 14px; }
.button, button, select { height: 38px; border: 1px solid #3a3a3a; border-radius: 6px; background: #1d1d1d; color: var(--text); padding: 0 12px; font: inherit; }
.button { display: inline-flex; align-items: center; text-decoration: none; font-weight: 700; }
button.primary, .button.primary { background: var(--accent); border-color: var(--accent); color: white; }
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0; }
.stage { position: relative; width: 100%; background: #000; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 9; }
canvas, .ogv-holder, .ogv-holder > * { display: block; width: 100%; height: 100%; background: #000; }
.video-placeholder { display: grid; place-items: center; color: #fff; font: 32px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: linear-gradient(90deg, #d00 0 16.6%, #0b0 16.6% 33.3%, #dd0 33.3% 50%, #04f 50% 66.6%, #d0d 66.6% 83.3%, #0bb 83.3% 100%); }
.stats { position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 6px 8px; border-radius: 4px; background: rgba(0, 0, 0, .72); color: #ddd; font: 12px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; pointer-events: none; }
.checklist { display: grid; gap: 8px; margin-top: 14px; color: var(--muted); }
.checklist label { display: flex; gap: 8px; align-items: center; }
.warn { color: #ffd27a; }
