:root { --ink: #1d1d1b; --quiet: #6b6b66; --line: #d9d6cf; --bg: #f7f5f0; --accent: #2f5d50; --warn: #a3412a; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.4 system-ui, sans-serif; }
main { max-width: 960px; margin: 0 auto; padding: 16px; }
h1 { font-size: 1.4rem; margin: 0 0 8px; }
h2 { font-size: 1.1rem; margin: 24px 0 8px; }
.quiet { color: var(--quiet); }
.problem { color: var(--warn); }
label { display: block; margin: 12px 0; }
select, input { display: block; width: 100%; margin-top: 4px; padding: 10px; font: inherit; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
button { padding: 12px 16px; font: inherit; border: 0; border-radius: 8px; background: var(--accent); color: #fff; min-height: 44px; }
button:disabled { opacity: .5; }
button.leave { background: var(--warn); }
.preview video, #remotes video { width: 100%; background: #000; border-radius: 12px; aspect-ratio: 16 / 9; object-fit: cover; }
.meter { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; margin: 8px 0; }
.meter span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .1s; }
#call { position: relative; }
#remotes { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); min-height: 200px; }
#remotes .one { position: relative; }
#remotes .one span { position: absolute; left: 8px; bottom: 8px; color: #fff; background: rgba(0, 0, 0, .5); padding: 2px 8px; border-radius: 6px; font-size: .9rem; }
#self { position: absolute; right: 8px; top: 8px; width: 28%; max-width: 200px; border-radius: 8px; border: 2px solid #fff; background: #000; }
.status { background: #fff3cd; padding: 8px 12px; border-radius: 8px; }
.bar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.bar button { flex: 1 1 40%; }
#live { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px; font-size: .85rem; white-space: pre-wrap; }
table { border-collapse: collapse; width: 100%; background: #fff; }
td, th { border-bottom: 1px solid var(--line); padding: 8px; text-align: left; }
td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
