* { box-sizing: border-box; }
:root { --bg:#0b0f14; --panel:#0e1520; --ink:#e6eef7; --muted:#8aa4bf; --line:#1a2633; }
html, body { height: 100%; }
body { margin:0; background:var(--bg); color:var(--ink); font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
.bar { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px; border-bottom:1px solid var(--line); }
.bar.muted { border-top:1px solid var(--line); border-bottom:none; justify-content:center; color:var(--muted); }
h1 { margin:0; font-size:18px; }
.controls { display:flex; gap:8px; flex-wrap:wrap; }
.controls input, .controls button { padding:8px 10px; background:#111a24; color:var(--ink); border:1px solid var(--line); border-radius:10px; }
.controls button { cursor:pointer; }
#status { color: var(--muted); font-variant-numeric: tabular-nums;}
main { padding:12px; }
.grid { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:12px; }
.card { background:var(--panel); border:1px solid var(--line); border-radius:14px; overflow:hidden; }
.card .label { padding:8px 10px; border-bottom:1px solid var(--line); color:var(--muted); font-size:13px; }
.pane { padding:10px; min-height: 260px; display:grid; grid-auto-flow: row; gap:10px; }
.remote-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
video { width:100%; height:160px; background:#000; border-radius:10px; object-fit:cover; border:1px solid var(--line); }
@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
}
