:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #1c1f2e;
  --muted: #6b7085;
  --accent: #0b5cff;
  --border: #e3e6ef;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #15171f; --card: #1f2230; --text: #eef0f7; --muted: #9aa0b5; --border: #2e3244; }
}
* { box-sizing: border-box; }
body { margin: 0; padding: 12px; font: 14px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); }
header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
h1 { font-size: 18px; margin: 0; }
h2 { font-size: 14px; margin: 0 0 8px; }
.pill { font-size: 12px; padding: 2px 8px; border-radius: 99px; background: var(--border); color: var(--muted); }
.pill.ok { background: #d9f7e5; color: #0b7a3b; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 12px; margin-bottom: 12px; }
.hint { color: var(--muted); font-size: 12px; margin: 8px 0 0; }
button { width: 100%; padding: 9px; border: 0; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 600; cursor: pointer; }
button:disabled { opacity: .5; cursor: default; }
button.on { background: #d93838; }
input, select { width: 100%; padding: 8px; margin-bottom: 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); }
ol { margin: 0; padding-left: 20px; }
li { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; }
li.empty { color: var(--muted); list-style: none; margin-left: -20px; }
li .badges { color: var(--muted); font-size: 12px; }
.hint.top { margin: -4px 0 8px; }
button.ghost { background: var(--bg); color: var(--text); border: 1px solid var(--border); font-weight: 600; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
summary { font-weight: 600; cursor: pointer; margin-bottom: 8px; }
details:not([open]) summary { margin-bottom: 0; }
/* Khung xem trước sân khấu 16:9 */
.preview { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #120a2a; }
.preview iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; }
li { align-items: center; }
li .who { display: flex; align-items: center; gap: 8px; min-width: 0; }
li .who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
li .avatar { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--c); color: #fff; font-size: 11px; font-weight: 700; }
li .right { display: flex; align-items: center; gap: 6px; flex: none; }
li .star { width: auto; padding: 3px 8px; font-size: 12px; background: #ffb800; color: #3a2500; }
.field { display: block; margin-top: 10px; font-size: 13px; font-weight: 600; }
.field select { margin: 6px 0 0; font-weight: 400; }
