:root {
  color-scheme: dark;
  --page:#09131f;
  --console:#10273a;
  --console-2:#0b3654;
  --panel:#0e466b;
  --panel-light:#155b85;
  --line:#36799d;
  --text:#f4f8fb;
  --muted:#a9c0d0;
  --cyan:#3cc6ea;
  --lime:#8cff00;
  --red:#f05562;
  --amber:#ffcf4a;
}
* { box-sizing:border-box; }
body {
  margin:0;
  min-height:100vh;
  background:radial-gradient(circle at 50% 0,#18344c 0,var(--page) 55%);
  color:var(--text);
  font:14px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
button,input,select { font:inherit; }
.client-shell { width:min(460px,100%); margin:0 auto; padding:22px 14px 40px; }
.hidden { display:none !important; }
.card,.client-panel {
  overflow:hidden;
  border:1px solid #2e6482;
  border-radius:13px;
  background:var(--console);
  box-shadow:0 24px 70px #0008,0 0 0 1px #ffffff08 inset;
}
.card { padding:26px; }
.card h1 { margin:28px 0 6px; }
.brand,.client-brand { display:flex; align-items:center; gap:11px; font-weight:750; }
.brand-mark {
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  border-radius:7px;
  background:linear-gradient(145deg,var(--cyan),#167eae);
  color:#042337;
  font-weight:900;
  box-shadow:0 5px 18px #0004;
}
h1,h2,p { margin-top:0; }
h1 { margin:0; font-size:22px; letter-spacing:-.02em; }
.eyebrow { margin:0 0 2px; color:#72c9e8; font-size:9px; font-weight:800; letter-spacing:.18em; }
.muted { color:var(--muted); line-height:1.45; }
.error { min-height:20px; color:#ff8a93; }
label { display:block; margin:16px 0 7px; color:#bcd0dc; font-size:12px; font-weight:650; }
input,select {
  width:100%;
  min-height:40px;
  border:1px solid #4380a0;
  border-radius:6px;
  outline:0;
  background:#eaf4f9;
  color:#102638;
  padding:9px 11px;
}
input:focus,select:focus { border-color:var(--cyan); box-shadow:0 0 0 3px #3cc6ea33; }
button {
  min-height:40px;
  border:0;
  border-radius:6px;
  background:#e9f2f7;
  color:#112a3e;
  padding:9px 12px;
  font-weight:750;
  cursor:pointer;
}
button:hover { filter:brightness(1.08); }
button:disabled { cursor:not-allowed; opacity:.45; }
.client-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:17px 18px;
  background:#0b1e2e;
  border-bottom:1px solid #2d607c;
}
.client-brand { gap:8px; min-width:0; }
.client-brand h1 { white-space:nowrap; font-size:19px; }
.header-actions { display:flex; align-items:center; gap:9px; }
.icon-button { min-height:34px; width:auto; padding:7px 10px; background:#213a4d; color:#d9e7ef; font-size:12px; }
.status { display:flex; align-items:center; gap:6px; margin:0; color:var(--muted); font-size:11px; font-weight:750; white-space:nowrap; }
.status::before { content:""; width:8px; height:8px; border-radius:50%; background:#617585; box-shadow:0 0 0 3px #61758520; }
.status.online { color:var(--lime); }
.status.online::before { background:var(--lime); box-shadow:0 0 10px #8cff0090; }
.status.error { color:#ff8490; }
.status.error::before { background:var(--red); }
.status.warning { color:var(--amber); }
.status.warning::before { background:var(--amber); box-shadow:0 0 9px #ffcf4a66; }
.section-title { display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-bottom:12px; }
.section-title > span { font-size:15px; font-weight:800; }
.section-title small { color:#b3ccda; font-size:11px; font-weight:600; }
.room-panel { padding:16px 18px 18px; background:var(--panel); border-bottom:1px solid #092d46; }
.room-buttons { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.room-button { border:1px solid #b9d6e6; background:#f2f8fb; color:#173144; }
.room-button.selected { border-color:#ff9aa2; background:linear-gradient(#ef6671,#d84652); color:#fff; box-shadow:0 5px 15px #29070b50; }
.control-bar { display:grid; grid-template-columns:1fr; gap:7px; padding:12px 18px; background:#0b2f49; border-bottom:1px solid #2e6585; }
.primary-action { background:linear-gradient(#6dd6f2,#35afd5); color:#06263a; }
.disconnect-action { background:linear-gradient(#f47b84,#d94d5a); color:#fff; }
.secondary { background:#dbe8ef; color:#183247; }
.mixer-panel { padding:17px 18px; border-bottom:1px solid #2a6587; background:linear-gradient(160deg,var(--panel-light),var(--panel)); }
.mic-console { display:grid; grid-template-columns:90px minmax(0,1fr); gap:18px; min-height:190px; padding:14px; border:1px solid #4c8dac; border-radius:8px; background:#0a2e47; box-shadow:0 5px 18px #00111d55 inset; }
.meter-bank { display:flex; justify-content:center; gap:8px; min-height:155px; }
.db-scale { display:flex; flex-direction:column; justify-content:space-between; padding:2px 0; color:#8facbc; font-size:9px; text-align:right; }
.vertical-meter {
  position:relative;
  width:36px;
  overflow:hidden;
  border:3px solid #071b29;
  border-radius:3px;
  background:repeating-linear-gradient(to top,#132735 0,#132735 5px,#0b1a24 5px,#0b1a24 7px);
}
.vertical-meter::after { content:""; position:absolute; inset:0; background:linear-gradient(to top,transparent 65%,#ffcf4a22 80%,#f0556240 100%); pointer-events:none; }
.vertical-meter span { position:absolute; inset:auto 0 0; height:0; background:linear-gradient(to top,#5dff00 0,#a6ff00 65%,var(--amber) 84%,var(--red) 100%); transition:height .07s linear; box-shadow:0 0 16px #72ff0066; }
.stereo-meters { display:flex; align-items:stretch; gap:4px; }
.meter-labels { display:flex; flex-direction:column; justify-content:space-between; padding:2px 0; color:#8facbc; font-size:9px; font-weight:700; }
.mic-settings { align-self:center; }
.mic-settings > label { margin-top:10px; }
.mic-settings > label:first-child { margin-top:0; }
.processing-details { margin-top:10px; padding:8px 10px; border:1px solid #356f90; border-radius:5px; background:#08283d; color:#bcd0dc; font-size:11px; }
.processing-details summary { cursor:pointer; color:#dce9f0; font-weight:700; }
.processing-details label { display:flex; align-items:center; gap:8px; margin:8px 0 0; color:#bcd0dc; font-weight:500; text-transform:none; letter-spacing:0; }
.processing-details input { width:auto; min-height:auto; margin:0; }
.signal-state { display:flex; align-items:center; gap:8px; margin-top:15px; color:#bcd0dc; font-size:12px; }
.mic-indicator { width:9px; height:9px; border-radius:50%; background:#678092; }
.mic-indicator.active { background:var(--lime); box-shadow:0 0 9px #8cff0090; }
.participants > .muted { margin:0 0 11px; font-size:12px; }
.participants-list { display:grid; gap:8px; }
.total-level { display:grid; grid-template-columns:auto 1fr; align-items:center; gap:10px; margin:-2px 0 12px; color:#bcd0dc; font-size:11px; }
.level-track { height:8px; overflow:hidden; border:1px solid #071b29; border-radius:4px; background:#082337; }
.level-track span { display:block; width:0; height:100%; background:linear-gradient(90deg,#5dff00 0 65%,var(--amber) 84%,var(--red)); transition:width .08s linear; }
.participant-item {
  display:grid;
  grid-template-columns:38px minmax(85px,1fr) minmax(105px,1.25fr) auto;
  align-items:center;
  gap:10px;
  min-height:62px;
  padding:9px 10px;
  border:1px solid #4384a4;
  border-radius:7px;
  background:#0a304b;
}
.participant-avatar {
  position:relative;
  display:grid;
  place-items:center;
  width:36px;
  height:42px;
  border-radius:5px;
  background:#61c1ae;
  color:#072d39;
  font-weight:900;
}
.participant-dot { position:absolute; right:-3px; bottom:-3px; width:10px; height:10px; border:2px solid #0a304b; border-radius:50%; background:var(--lime); box-shadow:0 0 8px #8cff0080; }
.participant-identity { display:grid; gap:3px; min-width:0; }
.participant-identity span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:800; }
.participant-identity small { color:#92b7ca; font-size:10px; text-transform:uppercase; letter-spacing:.08em; }
.participant-identity .participant-quality { color:#b9d0dc; font-size:9px; text-transform:none; letter-spacing:0; }
.participant-identity .participant-codec { color:#7faabd; font-size:9px; text-transform:none; letter-spacing:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.participant-level { width:46px; height:7px; overflow:hidden; border:1px solid #071b29; border-radius:4px; background:#082337; }
.participant-level span { display:block; width:0; height:100%; background:var(--lime); transition:width .08s linear; }
.listen-toggle { display:flex; align-items:center; gap:7px; margin:12px 0 0; color:#bcd0dc; font-size:11px; }
.listen-toggle input { width:auto; min-height:auto; margin:0; }
.participant-volume { display:grid; grid-template-columns:1fr 38px; align-items:center; gap:7px; }
.participant-volume input[type=range] { min-height:auto; padding:0; border:0; background:transparent; accent-color:var(--lime); }
.participant-volume output { padding:4px 3px; border:1px solid #99b75f; border-radius:3px; background:#d6e892; color:#294017; font-size:10px; font-weight:800; text-align:center; }
.participant-mute { min-height:32px; width:auto; padding:6px 8px; font-size:10px; }
.client-footer { display:flex; justify-content:space-between; padding:10px 18px; background:#081b29; color:#7294a8; font-size:10px; }
.visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
#audioTracks { display:none; }
@media (max-width:420px) {
  .client-shell { padding:0; }
  .card,.client-panel { border:0; border-radius:0; min-height:100vh; }
  .client-header { padding:14px; }
  .header-actions { flex-direction:column; align-items:flex-end; gap:5px; }
  .room-panel,.mixer-panel { padding-left:14px; padding-right:14px; }
  .control-bar { grid-template-columns:1fr; padding-left:14px; padding-right:14px; }
  .participant-item { grid-template-columns:34px minmax(75px,1fr) auto; }
  .participant-avatar { width:32px; height:40px; }
  .participant-volume { grid-column:2; }
  .participant-mute { grid-column:3; grid-row:1 / span 2; }
}
