:root {
  color-scheme: dark;
  --bg: #0f1115;
  --panel: #161a22;
  --fg: #e6e8ee;
  --muted: #8b93a7;
  --accent: #4f8cff;
  --danger: #e26c6c;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}
.panel {
  background: var(--panel);
  padding: 2rem;
  border-radius: 12px;
  width: min(720px, 92vw);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}
h1 { margin-top: 0; font-weight: 600; }
button {
  background: var(--accent);
  color: white;
  border: 0;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
}
button.danger { background: var(--danger); }
button:disabled { opacity: 0.5; cursor: not-allowed; }
input[type=password], input[type=text] {
  background: #0b0d12;
  color: var(--fg);
  border: 1px solid #2a2f3a;
  padding: 0.6rem;
  border-radius: 6px;
  font-size: 1rem;
  width: 100%;
}
video {
  width: 100%;
  background: #000;
  border-radius: 8px;
  margin-top: 1rem;
}
.muted { color: var(--muted); font-size: 0.9rem; }
.row { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.token-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.token-list li {
  background: #0b0d12;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  margin-bottom: 0.4rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
}
.token-list code { word-break: break-all; }
.status { margin-top: 0.5rem; min-height: 1.2em; }
.section-title { font-size: 1rem; font-weight: 600; margin: 1.5rem 0 0.5rem; }
.roster {
  list-style: none; padding: 0; margin: 0 0 1rem;
  display: flex; flex-wrap: wrap; gap: 0.4rem;
}
.roster li {
  background: #0b0d12; border: 1px solid #2a2f3a; border-radius: 999px;
  padding: 0.2rem 0.7rem; font-size: 0.85rem;
}
.chat { margin-top: 1rem; }
.chat-list {
  list-style: none; margin: 0 0 0.5rem; padding: 0.5rem;
  background: #0b0d12; border: 1px solid #2a2f3a; border-radius: 6px;
  height: 200px; overflow-y: auto;
}
.chat-msg { margin-bottom: 0.3rem; font-size: 0.9rem; line-height: 1.3; }
.chat-name { font-weight: 600; margin-right: 0.4rem; color: var(--accent); }
.chat-msg.admin .chat-name { color: var(--danger); }
.chat-text { word-break: break-word; }
#chat-input, #username { flex: 1; min-width: 0; width: auto; }
