/* Show Hub — dark control-room theme */
:root {
  --bg: #0e1116;
  --panel: #171c24;
  --panel-2: #1e2530;
  --line: #2a3342;
  --text: #e8edf4;
  --muted: #8b97a8;
  --accent: #4da3ff;
  --green: #3ddc84;
  --amber: #ffb347;
  --red: #ff5d5d;
  --radius: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
h1, h2, h3 { margin: 0 0 8px; font-weight: 650; }
h2 { font-size: 15px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
button {
  background: var(--panel-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 7px 12px; font-size: 14px; cursor: pointer;
}
button:hover { border-color: var(--accent); }
button.primary { background: var(--accent); border-color: var(--accent); color: #06121f; font-weight: 650; }
button.good { background: var(--green); border-color: var(--green); color: #06210f; font-weight: 650; }
button.warn { background: var(--amber); border-color: var(--amber); color: #241600; font-weight: 650; }
button.danger { background: transparent; border-color: var(--red); color: var(--red); }
button.small { padding: 3px 8px; font-size: 12.5px; border-radius: 6px; }
button:disabled { opacity: .45; cursor: default; }
input, textarea, select {
  background: var(--panel-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 10px; font-size: 14px; width: 100%;
  font-family: inherit;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }
.panel {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px; margin-bottom: 14px;
}
.row { display: flex; gap: 8px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; }
.muted { color: var(--muted); }
.small-text { font-size: 12.5px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); vertical-align: baseline; }
.dot.on { background: var(--green); box-shadow: 0 0 6px var(--green); }
.dot.off { background: var(--red); }
.badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 12px; font-weight: 650; letter-spacing: .02em;
}
.badge.hand { background: #3a2f10; color: var(--amber); border: 1px solid var(--amber); }
.badge.deck { background: #10263a; color: var(--accent); border: 1px solid var(--accent); }
.badge.live { background: #102a1a; color: var(--green); border: 1px solid var(--green); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.timer-big { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 30px; font-weight: 700; letter-spacing: .04em; }
.timer-med { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 20px; font-weight: 650; }

/* chat */
.chat-box { height: 260px; overflow-y: auto; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px; margin-bottom: 8px; }
.chat-msg { margin-bottom: 6px; word-wrap: break-word; }
.chat-msg .who { font-weight: 650; color: var(--accent); }
.chat-msg .when { color: var(--muted); font-size: 11.5px; margin-left: 6px; }
.chat-msg.host .who { color: var(--amber); }

/* cue banner (panelist) */
.cue-banner {
  background: linear-gradient(135deg, #4a1616, #7a2020);
  border: 2px solid var(--red); border-radius: var(--radius);
  padding: 18px; margin-bottom: 14px; text-align: center;
  animation: cuepulse 1.2s ease-in-out infinite;
}
.cue-banner .cue-text { font-size: 26px; font-weight: 800; margin-bottom: 12px; }
@keyframes cuepulse { 0%,100% { box-shadow: 0 0 0 rgba(255,93,93,.0);} 50% { box-shadow: 0 0 26px rgba(255,93,93,.55);} }

/* toast */
#toast {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%);
  background: var(--panel-2); border: 1px solid var(--accent);
  padding: 10px 18px; border-radius: 8px; display: none; z-index: 50;
}

/* connection bar */
#connbar {
  display: none; position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: var(--red); color: #fff; text-align: center; padding: 6px; font-weight: 650;
}

ul.checklist { list-style: none; padding: 0; margin: 0; }
ul.checklist li { padding: 6px 0; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: center; }
ul.checklist li:last-child { border-bottom: none; }
ul.checklist input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--green); }

.queue-item {
  display: flex; align-items: center; gap: 8px;
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 10px; margin-bottom: 6px;
}
.queue-item .pos { font-weight: 800; color: var(--amber); width: 22px; text-align: center; }

.card {
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px; margin-bottom: 10px;
}
.card.speaking { border-color: var(--green); box-shadow: 0 0 10px rgba(61,220,132,.25); }
.card.ondeck { border-color: var(--accent); }
progress { width: 100%; height: 8px; accent-color: var(--green); }
a { color: var(--accent); }
hr { border: none; border-top: 1px solid var(--line); margin: 12px 0; }
