:root { --fg: #1d2330; --muted: #5d6675; --line: #d9dee7; --bg: #f5f7fa; --card: #fff; --accent: #2457c5; --err: #b3261e; }
@media (prefers-color-scheme: dark) {
  :root { --fg: #e6e9ef; --muted: #a0a8b6; --line: #343b48; --bg: #14171d; --card: #1c2028; --accent: #7aa2ff; --err: #ff8a80; }
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--fg); background: var(--bg); }
header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--card); }
h1 { font-size: 20px; margin: 0; }
h2 { font-size: 17px; margin: 0 0 8px; }
main { max-width: 980px; margin: 0 auto; padding: 16px; }
body.narrow main { max-width: 420px; padding-top: 48px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin-bottom: 16px; }
label { display: block; margin: 8px 0; }
label.inline { display: inline-block; margin-right: 12px; }
input, select { font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--fg); max-width: 100%; }
label > input:not([type=checkbox]), label > select { display: block; width: 100%; margin-top: 4px; }
button { font: inherit; padding: 7px 14px; border-radius: 6px; border: 1px solid var(--accent); background: var(--accent); color: #fff; cursor: pointer; }
button:disabled { opacity: .5; cursor: default; }
button.link { background: none; color: var(--accent); border: none; padding: 0; }
.muted { color: var(--muted); }
.error { color: var(--err); }
code { font-size: 13px; }
table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14px; }
th, td { text-align: left; padding: 5px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
pre { white-space: pre-wrap; font-size: 12px; max-height: 360px; overflow: auto; background: var(--bg); padding: 8px; border-radius: 6px; }
.slot { position: relative; width: 640px; max-width: 100%; aspect-ratio: 16 / 9; background: #000; }
.video { width: 100%; height: 100%; display: block; }
.controls { margin: 10px 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.log { font-size: 13px; color: var(--muted); padding-left: 18px; max-height: 240px; overflow: auto; }
