:root {
  --bg: #0d0f14;
  --panel: #161a22;
  --line: #2a3040;
  --text: #e8eaf0;
  --muted: #8a93a6;
  --accent: #7c5cff;
  --cue: #ffb347;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, sans-serif;
}
header { padding: 32px 24px 8px; }
h1 { margin: 0; font-size: 28px; letter-spacing: -0.5px; }
.sub { color: var(--muted); margin: 6px 0 0; }
main { max-width: 640px; margin: 0 auto; padding: 16px 24px 64px; }
form {
  display: grid; gap: 14px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 10px; padding: 20px;
}
label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.opt { display: inline; color: var(--muted); opacity: .7; }
input, textarea, select {
  background: #0f1218; color: var(--text); border: 1px solid var(--line);
  border-radius: 6px; padding: 8px 10px; font: inherit;
}
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus, button:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 1px;
}
button {
  justify-self: start; background: var(--accent); color: #fff; border: 0;
  border-radius: 6px; padding: 10px 18px; font: inherit; font-weight: 600;
  cursor: pointer;
}
button[disabled] { opacity: .5; cursor: wait; }
#status { color: var(--muted); font-size: 13px; }
#status.error { color: #ff7a7a; }
#strip { margin-top: 28px; }
#stage {
  position: relative; aspect-ratio: 16/9; background: #05060a;
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
}
#scene {
  position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; text-align: center; padding: 24px;
  font-size: clamp(20px, 4vw, 34px); font-weight: 700; letter-spacing: -0.5px;
  white-space: pre-line;
}
#scene .kind {
  position: absolute; top: 10px; left: 12px; font-size: 11px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase; color: var(--muted);
}
#cuebar {
  position: absolute; bottom: 0; left: 0; right: 0; height: 26px;
  border-top: 1px solid var(--line);
}
.cue {
  position: absolute; bottom: 0; width: 3px; background: var(--cue);
  border-radius: 2px 2px 0 0;
}
#meta { color: var(--muted); font-size: 12px; }
