#room-overlay{
  position:fixed;inset:0;z-index:45;display:flex;flex-direction:column;
  background:#0b1520;color:#fff
}
#room-overlay.hidden{display:none}
#room-overlay.incoming #room-stage,#room-overlay.incoming #room-bar{display:none}
#room-overlay:not(.incoming) #room-in{display:none}
.room-in{
  margin:auto;text-align:center;padding:24px;max-width:420px
}
#room-in-face{display:flex;justify-content:center;margin-bottom:14px}
#room-in-face .av{width:96px;height:96px;flex-basis:96px;font-size:32px}
.room-in-title{font:700 26px/1.2 Manrope,system-ui,sans-serif}
.room-in-sub{margin-top:8px;color:rgba(255,255,255,.7)}
.room-in-actions,.room-actions{
  display:flex;gap:14px;justify-content:center;align-items:flex-start
}
.room-in-actions{margin-top:28px;gap:28px}
.room-in-actions .call-act,.room-actions .call-act{
  display:flex;flex-direction:column;align-items:center;gap:8px;min-width:56px
}
.room-in-actions .lbl,.room-actions .lbl{
  font-size:12px;color:rgba(255,255,255,.78);white-space:nowrap
}
#room-overlay .call-btn{
  width:68px;height:68px;border-radius:50%;border:0;padding:0;cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.16);color:#fff
}
#room-overlay .call-btn svg{
  width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2;
  stroke-linecap:round;stroke-linejoin:round
}
#room-overlay .call-btn.end{background:#e5484d}
#room-overlay .call-btn.accept{background:#2fbf71;width:78px;height:78px}
#room-overlay .call-btn.accept svg{width:30px;height:30px}
#room-overlay .call-btn.toggle.off{background:#fff;color:#111}
.room-title{
  padding:12px 16px 0;text-align:center;
  font:700 16px/1.2 Manrope,system-ui,sans-serif
}
#room-overlay.incoming .room-title,#room-overlay.docked .room-title{display:none}
.room-stage{
  flex:1;min-height:0;display:flex;flex-wrap:wrap;gap:10px;padding:12px;
  align-content:center;justify-content:center;align-items:center;overflow:auto
}
.room-tile{
  position:relative;width:min(240px,100%);aspect-ratio:4/3;flex:0 1 240px;
  min-height:0;border-radius:16px;overflow:hidden;
  background:#15202b;display:flex;align-items:center;justify-content:center;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)
}
.room-tile.speak{box-shadow:inset 0 0 0 3px #3ddc84}
.room-stage.has-lead .room-tile.lead{
  flex:1 1 460px;width:min(560px,100%);z-index:1;
  box-shadow:inset 0 0 0 4px #3ddc84,0 0 0 6px rgba(61,220,132,.28)
}
.room-stage.has-focus .room-tile.focus{
  flex:1 1 100%;width:min(1100px,100%);aspect-ratio:16/9;order:-1;max-height:72%
}
.room-stage.has-focus .room-tile:not(.focus){
  flex:0 1 168px;width:168px;aspect-ratio:16/10
}
.room-tile.screen{cursor:pointer}
.room-tile .mic-off{
  position:absolute;top:10px;right:10px;width:46px;height:46px;border-radius:50%;
  background:#e5484d;display:flex;align-items:center;justify-content:center;
  box-shadow:0 2px 12px rgba(0,0,0,.45)
}
.room-tile .mic-off svg{
  width:26px;height:26px;fill:none;stroke:#fff;stroke-width:2.4;
  stroke-linecap:round;stroke-linejoin:round
}
.room-tile .kick{
  position:absolute;top:8px;left:8px;width:28px;height:28px;border:0;border-radius:50%;
  background:rgba(229,72,77,.92);color:#fff;font-size:18px;line-height:1;cursor:pointer
}
.room-tile video{width:100%;height:100%;object-fit:cover;background:#111}
.room-tile video.off{display:none}
.room-tile .face{
  width:auto;height:auto;background:transparent;display:flex
}
.room-tile .face .av{width:88px;height:88px;flex-basis:88px;font-size:28px}
.room-tile .face.off{display:none}
.room-tile .nm{
  position:absolute;left:10px;bottom:8px;right:10px;
  display:flex;align-items:center;gap:6px;
  font-size:14px;text-shadow:0 1px 2px #000
}
.room-tile .nm .av{width:28px;height:28px;flex:0 0 28px;font-size:11px}
.room-tile .nm b{font-weight:600}
.room-bar{
  display:flex;flex-direction:column;gap:10px;padding:8px 14px 16px
}
.room-who{flex:1;min-width:140px;display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:14px;color:rgba(255,255,255,.86)}
.room-chip{display:inline-flex;align-items:center;gap:6px}
.room-chip .av{width:28px;height:28px;flex-basis:28px;font-size:11px}
.room-chip b{font-weight:600;font-size:13px}
#room-overlay.docked{
  position:relative;inset:auto;height:auto;z-index:5;flex-direction:row;
  background:var(--bg,#15202b);color:var(--text,#fff)
}
#room-overlay.docked .room-bar{flex-direction:row;align-items:center;padding:8px 10px}
#room-overlay.docked .room-actions{gap:6px;flex:0 0 auto}
#room-overlay.docked .lbl{display:none}
#room-overlay.docked .call-btn,
#room-overlay.docked .call-btn.accept{width:40px;height:40px;background:var(--bg-3);color:var(--text)}
#room-overlay.docked .call-btn svg,
#room-overlay.docked .call-btn.accept svg{width:18px;height:18px}
#room-overlay.docked .call-btn.end{background:#e5484d;color:#fff}
#room-overlay.docked .call-btn.toggle.off{background:#fff;color:#111}
#room-overlay.docked .room-who{color:var(--text)}
#room-overlay.docked #room-stage{display:none}
#chat > #room-overlay.docked,#sidebar > #room-overlay.docked{
  border-bottom:1px solid var(--line,#243140)
}
#room-overlay #room-screen.on{background:#3bb4d4;color:#fff}
#room-more-act{position:relative}
#room-more-pop{
  display:none;position:absolute;left:50%;bottom:calc(100% + 10px);transform:translateX(-50%);
  flex-direction:column;gap:4px;padding:8px;border-radius:16px;z-index:6;
  background:rgba(16,24,34,.94);border:1px solid rgba(255,255,255,.12);box-shadow:0 10px 28px rgba(0,0,0,.35)
}
#room-more-pop.open{display:flex}
#room-more-pop .call-act{
  flex-direction:row;align-items:center;justify-content:flex-start;gap:8px;
  width:max-content;min-width:176px;max-width:none
}
#room-more-pop .call-btn{width:40px;height:40px}
#room-more-pop .call-btn svg{width:18px;height:18px}
#room-more-pop .lbl{font-size:13px;white-space:nowrap}
#room-overlay.docked #room-more-act > .call-btn,
#room-overlay.docked #room-more-act > .lbl{display:none}
#room-overlay.docked #room-more-pop{
  display:flex;position:static;transform:none;flex-direction:row;gap:6px;
  padding:0;background:transparent;border:0;box-shadow:none
}
#room-overlay.docked #room-more-pop .call-act{width:auto;min-width:0;flex-direction:column}
#room-overlay:not(.incoming):not(.docked):not(.ui-gone).has-sys #room-sys-vol,
#room-overlay:not(.incoming):not(.docked):not(.ui-gone).remote-sys #room-sys-vol{display:flex}
#room-overlay.ui-gone:not(.docked) #room-sys-vol,
#room-overlay.docked #room-sys-vol{display:none !important}
#room-sys-range{
  writing-mode:vertical-lr;direction:rtl;width:28px;height:148px;margin:0;
  accent-color:#3bb4d4;cursor:pointer;background:transparent
}
.room-tile.screen{
  flex:1 1 640px;width:min(960px,100%);aspect-ratio:16/9;max-height:100%
}
.room-tile.screen video{object-fit:contain;background:#000}
.room-live{
  border:0;border-radius:999px;padding:6px 12px;cursor:pointer;flex:0 0 auto;
  background:#2fbf71;color:#fff;font:650 13px/1 Manrope,system-ui,sans-serif
}
.room-live.hidden{display:none}
#room-add-act.hidden{display:none}
.room-add-box{
  position:fixed;inset:0;z-index:80;display:flex;align-items:center;justify-content:center;
  background:rgba(0,0,0,.45)
}
.room-add-card{
  width:min(360px,92vw);max-height:70vh;overflow:auto;padding:14px;border-radius:16px;
  background:#15202b;color:#fff;display:flex;flex-direction:column;gap:8px
}
.room-add-h{font:700 16px/1.2 Manrope,system-ui,sans-serif}
.room-add-card button[data-uid]{
  display:flex;align-items:center;gap:8px;border:0;border-radius:12px;padding:8px;
  background:rgba(255,255,255,.08);color:#fff;cursor:pointer;text-align:left
}
.room-add-card .av{width:32px;height:32px;flex:0 0 32px}
.room-add-x{border:0;border-radius:10px;padding:8px;background:transparent;color:rgba(255,255,255,.75);cursor:pointer}
