:root {
  --bg: #0f1216;
  --panel: #181d24;
  --line: #2a323d;
  --text: #e7ecf2;
  --muted: #9aa7b6;
  --green: #22c55e;
  --orange: #f59e0b;
  --accent: #3b82f6;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}
header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-bottom: 1px solid var(--line);
}
header h1 { font-size: 18px; margin: 0; }
.status { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #6b7280; }
.dot.on { background: var(--green); }
.dot.err { background: #ef4444; }

main {
  display: grid; grid-template-columns: 1fr 320px; gap: 20px;
  padding: 20px; max-width: 1200px; margin: 0 auto;
}
@media (max-width: 860px) { main { grid-template-columns: 1fr; } }

.video-wrap {
  position: relative; width: 100%; background: #000;
  border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3;
}
video, #overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
video { object-fit: cover; }

.controls { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; align-items: center; }
.enroll { display: flex; gap: 8px; flex: 1; min-width: 260px; }
.enroll input { flex: 1; }

input {
  background: var(--panel); border: 1px solid var(--line); color: var(--text);
  padding: 9px 12px; border-radius: 8px; font-size: 14px;
}
button {
  background: var(--panel); border: 1px solid var(--line); color: var(--text);
  padding: 9px 14px; border-radius: 8px; font-size: 14px; cursor: pointer;
}
button:hover:not(:disabled) { border-color: var(--accent); }
button:disabled { opacity: .45; cursor: not-allowed; }
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
button.ghost { width: 100%; margin-top: 10px; }

.hint { color: var(--muted); font-size: 13px; min-height: 18px; margin: 12px 2px 0; }

.panel {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 16px;
}
.panel h2 { font-size: 15px; margin: 18px 0 10px; }
.apikey { display: flex; flex-direction: column; gap: 6px; }
.apikey label { font-size: 13px; color: var(--muted); }
.apikey input { width: 100%; }

.people { list-style: none; margin: 0; padding: 0; }
.people li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 6px;
}
.people .meta { color: var(--muted); font-size: 12px; }
.people button { padding: 4px 9px; font-size: 12px; }

.info { margin-top: 16px; color: var(--muted); font-size: 13px; }
.info summary { cursor: pointer; }
.info p { margin: 8px 0; }
