/* Panel placement follows the reference only. Text and theme stay in the base styles. */
.room-dashboard #live #hangout{
 display:grid;grid-template-columns:minmax(0,1fr);gap:var(--room-gap);align-items:start;min-width:0
}
.room-dashboard #live #hangout .hang-bar{
 display:flex;align-items:center;flex-wrap:wrap;gap:6px;width:100%
}
.room-dashboard #live #hangout .hang-modes{display:flex;align-items:center;flex-wrap:wrap;gap:4px}
.room-dashboard #live #hangout .hang-bar .btn{width:auto}
.room-dashboard #live #hangout .room-board{
 grid-template-columns:minmax(0,2.05fr) minmax(260px,1fr);grid-template-rows:auto;align-items:start
}
.room-dashboard #live #hangout .room-media-main{grid-column:1;grid-row:1;order:0}
.room-dashboard #live #hangout .room-radio-rail{grid-column:2;grid-row:1;order:0;gap:var(--room-gap)}
.room-dashboard #live #hangout #hang-presentation:not([hidden]){margin:0}
.room-dashboard #live #hangout #hang-presentation .hang-video video{max-height:34dvh}
.room-dashboard #live #hangout #room-people{margin-block-start:12px}
.room-dashboard #live #hangout #room-people #tiles:not(.focus){
 grid-template-columns:repeat(auto-fit,minmax(min(100%,130px),1fr));max-inline-size:none
}
.room-dashboard #live #hangout #room-people .tile.camera-on{max-inline-size:none}
.room-dashboard #live #hangout .room-bottom-dock{
 display:grid;grid-template-columns:minmax(230px,1fr) minmax(0,1.5fr);align-items:start;gap:var(--room-gap)
}
.room-dashboard #live #hangout .room-bottom-dock .controls{
 grid-column:2;grid-row:1;position:static;inset:auto;z-index:auto;width:100%;min-width:0;
 margin:0;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;padding:6px
}
.room-dashboard #live #hangout .room-music-dock{grid-column:1;grid-row:1;min-width:0;display:grid;gap:8px}
.room-dashboard #live #hangout .room-music-line{display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:0}
.room-dashboard #live #hangout .room-music-line #hang-music{max-width:100%;min-width:0}
.room-dashboard #live #hangout .room-music-line #hang-music-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.room-dashboard #live #hangout .room-music-dock :is(#hang-mini,#room-mix-card){position:static;margin:0;max-height:none}
.room-dashboard #live #hangout .room-music-dock #hang-mini .hang-transport:empty{display:none}
.room-dashboard #live[data-fullscreen="room"] #hangout{
 height:100%;min-height:0;grid-template-rows:auto minmax(0,1fr) auto;align-items:stretch
}
.room-dashboard #live[data-fullscreen="room"] #hangout .room-board{min-height:0;align-items:stretch}
.room-dashboard #live[data-fullscreen="room"] #hangout #room-people{display:block}
.room-dashboard #live[data-fullscreen="room"] #hangout .room-music-dock{max-height:30dvh;overflow:auto}
@media(max-width:780px){
 .room-dashboard #live #hangout .room-board{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto}
 .room-dashboard #live #hangout .room-radio-rail{grid-column:1;grid-row:2}
 .room-dashboard #live #hangout .room-bottom-dock{grid-template-columns:minmax(0,1fr)}
 .room-dashboard #live #hangout .room-bottom-dock .controls{grid-column:1;grid-row:2;padding:4px;gap:1px}
 .room-dashboard #live[data-fullscreen="room"] #hangout .room-board{grid-template-rows:minmax(0,3fr) minmax(75px,2fr)}
 .room-dashboard #live[data-fullscreen="room"] #hangout .room-music-dock{max-height:18dvh}
}

/* Panel viewing controls and a compact server round-trip indicator. */
.room-dashboard #room-live-ping{
 display:inline-flex;align-items:center;gap:4px;padding:2px 6px;margin-inline-start:3px;
 border:1px solid var(--room-border);border-radius:7px;color:var(--dim);font-size:.67rem;white-space:nowrap
}
.room-dashboard #room-live-ping b{font-variant-numeric:tabular-nums;color:var(--light);font-weight:600}
.room-dashboard #room-people .tile-view-actions{position:absolute;z-index:5;top:8px;inset-inline-end:8px;display:flex;gap:4px}
.room-dashboard #room-people .tile-view-actions .icon-btn{position:static;min-width:34px;min-height:34px;width:34px;height:34px;padding:0}
.room-dashboard #room-people .tile-view-actions svg,.room-dashboard .screen-view-actions svg{width:17px;height:17px}
.room-dashboard .screen-view-actions{display:flex;align-items:center;gap:4px;flex:none}
.room-dashboard .screen-view-actions .btn{min-width:34px;min-height:34px;padding:0;justify-content:center}
.room-dashboard[data-room-zoom]{overflow:hidden}
.room-dashboard #room-zoom-backdrop{position:fixed;inset:0;z-index:45;background:#000a}
.room-dashboard #live #hangout :is(#film-viewport,#hang-presentation)[data-panel-zoom]{
 position:fixed;inset:50% auto auto 50%;transform:translate(-50%,-50%);z-index:46;width:min(94vw,1100px);
 max-height:92dvh;margin:0
}
.room-dashboard #film-viewport[data-panel-zoom] :is(.room-video-frame,#film-embed){max-height:88dvh}
.room-dashboard #film-viewport[data-panel-zoom] #film-embed iframe{max-height:74dvh}
.room-dashboard #live #hangout #hang-presentation[data-panel-zoom] .hang-video video{max-height:min(72dvh,56vw)}
.room-dashboard #live #hangout #hang-presentation[data-panel-full]{
 position:fixed;inset:0;z-index:46;width:100%;height:100%;max-width:none;max-height:none;margin:0;border-radius:0;
 display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;gap:8px
}
.room-dashboard #live #hangout #hang-presentation[data-panel-full] .hang-video{min-height:0}
.room-dashboard #live #hangout #hang-presentation[data-panel-full] .hang-video video{width:100%;height:100%;max-height:none;aspect-ratio:auto;object-fit:contain}
.room-dashboard #room-camera-stage[data-camera-full]{
 position:fixed;inset:0;z-index:50;width:100%;height:100%;
 display:grid;grid-template-rows:auto minmax(0,1fr);background:var(--bg)
}
.room-dashboard #room-camera-stage[data-camera-full] #room-camera-video{width:100%;height:100%;max-height:none;aspect-ratio:auto;min-height:0}
@media(max-width:440px){
 .room-dashboard #film-viewport .film-hud-actions{gap:1px}
 .room-dashboard #film-viewport .film-hud-actions .film-hud-btn{inline-size:32px;block-size:36px}
 .room-dashboard #live #hangout #hang-presentation[data-panel-zoom] .hang-video video{max-height:70dvh}
}
