:root { color-scheme: dark; --bg: #111418; --card: #1c2128; --text: #e6e8eb; --muted: #8b949e; --accent: #2f81f7; --danger: #da3633; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 15px/1.4 system-ui, sans-serif; }
.card { max-width: 420px; margin: 8vh auto; padding: 24px; background: var(--card); border-radius: 12px; display: grid; gap: 12px; }
h1 { margin: 0; font-size: 20px; }
.muted { color: var(--muted); margin: 0; }
.error { color: #f85149; margin: 0; min-height: 1em; }
label { display: grid; gap: 4px; }
.row { display: flex; gap: 16px; }
.check { display: flex; align-items: center; gap: 6px; }
input { font: inherit; padding: 8px 10px; border-radius: 8px; border: 1px solid #30363d; background: var(--bg); color: var(--text); }
button { font: inherit; padding: 8px 14px; border-radius: 8px; border: 1px solid #30363d; background: #21262d; color: var(--text); cursor: pointer; }
button.primary { background: var(--accent); border-color: var(--accent); }
button.danger { background: var(--danger); border-color: var(--danger); }
button.off { background: #3d1f1f; }
#preview { width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 8px; object-fit: cover; transform: scaleX(-1); }
#call { display: flex; flex-direction: column; height: 100vh; }
#call[hidden] { display: none; }
#grid { flex: 1; display: grid; gap: 8px; padding: 8px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); grid-auto-rows: minmax(160px, 1fr); overflow: auto; }
.tile { position: relative; background: #000; border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.tile video { width: 100%; height: 100%; object-fit: contain; }
.tile .label { position: absolute; left: 8px; bottom: 8px; padding: 2px 8px; border-radius: 6px; background: rgba(0,0,0,.6); font-size: 13px; }
.tile.speaking { outline: 3px solid var(--accent); }
.tile .avatar { font-size: 40px; color: var(--muted); }
.bar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 12px; background: var(--card); }
