:root {
  --bg: #0f1115; --panel: #181b22; --line: #2a2f3a; --text: #e9ecf2; --muted: #9aa3b2;
  --accent: #4f8cff; --live: #ff4d5e; --ok: #35c27a; --radius: 14px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { min-height: 100dvh; }
a { color: var(--accent); }
.wrap { max-width: 980px; margin: 0 auto; padding: 20px; }
.narrow { max-width: 520px; }
h1 { font-size: 1.5rem; margin: .2em 0 .6em; }
h2 { font-size: 1.1rem; margin: 0 0 .8em; color: var(--muted); font-weight: 600; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }
.muted { color: var(--muted); font-size: .9rem; }
label { display: block; font-size: .85rem; color: var(--muted); margin: 10px 0 4px; }
input, select, button, textarea {
  font: inherit; color: var(--text); background: #0c0e12; border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px;
}
input, select { width: 100%; }
button { cursor: pointer; background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
button.secondary { background: transparent; color: var(--text); border-color: var(--line); }
button.danger { background: var(--live); border-color: var(--live); }
button:disabled { opacity: .5; cursor: default; }
.big { font-size: 1.15rem; padding: 14px 22px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: .8rem; border: 1px solid var(--line); color: var(--muted); }
.pill.live { color: #fff; background: var(--live); border-color: var(--live); }
.pill.ok { color: #fff; background: var(--ok); border-color: var(--ok); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.langs { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; max-height: 260px; overflow: auto; padding: 6px; border: 1px solid var(--line); border-radius: 10px; }
.langs label { margin: 0; display: flex; gap: 8px; align-items: center; color: var(--text); font-size: .9rem; }
.langs input { width: auto; }
.qr { background: #fff; border-radius: 12px; padding: 10px; width: 100%; max-width: 280px; aspect-ratio: 1; }
.qr img { width: 100%; height: 100%; display: block; }
.meter { height: 10px; background: #0c0e12; border-radius: 99px; overflow: hidden; border: 1px solid var(--line); }
.meter > i { display: block; height: 100%; width: 0; background: var(--ok); transition: width .08s; }
.captions { font-size: 1.25rem; line-height: 1.5; max-height: 55dvh; overflow: auto; white-space: pre-wrap; }
.captions p { margin: 0 0 .7em; }
.captions p.cur { color: #fff; }
.captions p:not(.cur) { color: var(--muted); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
td, th { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
code { background: #0c0e12; padding: 2px 6px; border-radius: 6px; word-break: break-all; }
.hidden { display: none !important; }
/* Projector / display mode for listen page */
body.display .chrome { display: none; }
body.display .captions { font-size: clamp(1.6rem, 4vw, 3.2rem); max-height: 92dvh; }
body.display .wrap { max-width: none; }
