:root {
  --bg: #0f1420;
  --card: #171d2b;
  --line: #263043;
  --text: #e8edf6;
  --muted: #9fb0c8;
  --accent: #4f8cff;
  --accent-2: #23c98a;
  --warn: #ffb84d;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  display: flex; flex-direction: column; min-height: 100vh;
}
.card {
  max-width: 460px; margin: auto; padding: 28px 24px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  width: calc(100% - 32px);
}
h1 { margin: 0 0 4px; font-size: 28px; }
.tag { color: var(--muted); margin: 0 0 20px; }
label { display: block; margin: 12px 0; color: var(--muted); font-size: 14px; }
input {
  width: 100%; margin-top: 6px; padding: 12px 14px; font-size: 16px;
  background: #0e131e; color: var(--text);
  border: 1px solid var(--line); border-radius: 10px;
}
.roles { display: grid; gap: 10px; margin-top: 18px; }
button {
  padding: 14px 16px; font-size: 16px; font-weight: 600; cursor: pointer;
  border-radius: 10px; border: 1px solid transparent;
}
button.primary { background: var(--accent); color: #fff; }
button.ghost { background: transparent; color: var(--text); border-color: var(--line); }
button.talk { background: var(--accent-2); color: #04120c; }
button.talk.live { background: #ff5d5d; color: #fff; }
button:disabled { opacity: .5; cursor: not-allowed; }
.hint, .status { color: var(--muted); font-size: 13px; }
.hint { margin-top: 16px; }

/* meeting layout */
.stage { flex: 1; display: flex; flex-direction: column; }
.videowrap {
  position: relative; background: #000; flex: 1;
  display: flex; align-items: center; justify-content: center; min-height: 40vh;
}
.videowrap video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.overlay { position: absolute; top: 10px; left: 10px; right: 10px; display: flex;
  justify-content: space-between; gap: 8px; pointer-events: none; }
.pill { background: rgba(0,0,0,.55); padding: 6px 10px; border-radius: 999px; font-size: 13px; }
.controls {
  display: flex; gap: 10px; padding: 12px; flex-wrap: wrap;
  border-top: 1px solid var(--line); background: var(--card);
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}
.controls button { flex: 1; min-width: 120px; }
.roster { padding: 10px 14px; border-top: 1px solid var(--line); }
.roster h3 { margin: 6px 0; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.roster ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.roster li { background: #0e131e; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 14px; }
.roster li.hand { border-color: var(--warn); color: var(--warn); }
.roster li.speaking { border-color: var(--accent-2); color: var(--accent-2); }
