:root { --bg: #0f1115; --panel: #1a1d24; --text: #eceef2; --muted: #9aa1ad; --accent: #4f8cff; --danger: #e5484d; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.4 system-ui, sans-serif; }
button { font: inherit; padding: 10px 16px; border: 0; border-radius: 8px; background: var(--panel); color: var(--text); cursor: pointer; }
button:hover { filter: brightness(1.2); }
button.on { background: var(--accent); }
button.danger { background: var(--danger); }
.lobby { max-width: 360px; margin: 12vh auto; padding: 0 16px; }
.lobby form { display: grid; gap: 12px; }
.lobby label { display: grid; gap: 4px; color: var(--muted); }
.lobby input { padding: 10px; border-radius: 8px; border: 1px solid #2a2f3a; background: var(--panel); color: var(--text); font: inherit; }
.lobby button { background: var(--accent); }
.msg { color: var(--danger); min-height: 1.2em; }
.stage { display: flex; flex-direction: column; height: 100vh; }
.bar { display: flex; gap: 12px; align-items: center; padding: 10px 16px; color: var(--muted); }
.rec { background: var(--danger); color: #fff; border-radius: 4px; padding: 2px 8px; font-weight: 600; }
.grid { flex: 1; display: grid; gap: 8px; padding: 8px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-content: center; overflow: auto; }
.tile { position: relative; background: #000; border-radius: 10px; aspect-ratio: 16/9; overflow: hidden; }
.tile video { width: 100%; height: 100%; object-fit: cover; }
.tile.screen video { object-fit: contain; }
.tile .who { position: absolute; left: 8px; bottom: 8px; background: rgba(0,0,0,.6); padding: 2px 8px; border-radius: 4px; font-size: 13px; }
.tile.speaking { outline: 3px solid var(--accent); }
.controls { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; padding: 12px 16px; }
.muted { color: var(--muted); }
button.link { background: none; color: var(--muted); padding: 4px 0; text-align: left; }
.spacer { flex: 1; }
#recordings { margin-top: 32px; }
#recordings h2 { font-size: 15px; color: var(--muted); }
#recList { list-style: none; padding: 0; display: grid; gap: 10px; }
#recList li { background: var(--panel); border-radius: 8px; padding: 10px; }
#recList a { color: var(--accent); margin-right: 12px; }
#scheduleForm { margin-top: 28px; }
#scheduleForm h2 { font-size: 15px; color: var(--muted); margin: 0; }
#mtResult { word-break: break-all; }
