/* Free-standing seats share one coordinate plane with their camera pictures. */
body.immersive-live #roomsPanel.meeting-active { --live-chat-height:clamp(128px,23dvh,180px); }
body.immersive-live #roomsPanel.meeting-active .meeting-participants { position:absolute; z-index:10; top:calc(56px + env(safe-area-inset-top,0px)); right:0; bottom:calc(var(--live-chat-height) + 12px + var(--chat-keyboard-inset,0px) + env(safe-area-inset-bottom,0px)); left:0; min-width:0; overflow:hidden; overscroll-behavior:contain; pointer-events:none; background:transparent; border:0; }
body.immersive-live #roomsPanel.meeting-active .meeting-participants[data-scroll='true'] { overflow-x:hidden; overflow-y:auto; scrollbar-width:none; }
body.immersive-live #roomsPanel.meeting-active .meeting-participants[data-scroll='true']::-webkit-scrollbar { display:none; width:0; height:0; }
.meeting-participants[hidden] { display:none!important; }
.meeting-layout-plane { position:relative; min-width:100%; min-height:100%; pointer-events:none; }
body.immersive-live #roomsPanel.meeting-active #sharedSeats { position:absolute!important; inset:0!important; display:block!important; width:100%!important; height:100%!important; max-width:none!important; margin:0!important; padding:0!important; transform:none!important; border:0!important; border-radius:0!important; background:transparent!important; box-shadow:none!important; backdrop-filter:none!important; pointer-events:none; }
body.immersive-live #roomsPanel.meeting-active #sharedSeats > .room-seat { position:absolute; left:var(--meeting-x,0px); top:var(--meeting-y,0px); width:var(--meeting-size,44px)!important; height:calc(var(--meeting-size,44px) + 44px); min-width:44px; min-height:44px; margin:0; padding:0; display:block; grid-column:auto!important; justify-self:auto!important; background:transparent!important; border:0!important; border-radius:0!important; box-shadow:none!important; pointer-events:none; }
body.immersive-live #roomsPanel.meeting-active #sharedSeats .seat-avatar { width:var(--meeting-size,44px); height:var(--meeting-size,44px); margin:0; padding:0; font-size:clamp(20px,4vw,32px); pointer-events:auto; }
body.immersive-live #roomsPanel.meeting-active #sharedSeats .seat-name { position:absolute; left:0; top:var(--meeting-size,44px); display:block; width:100%; max-width:100%; height:44px; min-height:44px; margin:0; padding:5px 0 0; box-sizing:border-box; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font:600 12px/16px system-ui; text-align:center; background:transparent; border:0; border-radius:0; pointer-events:auto; }
body.immersive-live #roomsPanel.meeting-active #sharedSeats .room-seat > .btn:not(.seat-exit) { position:absolute; inset:0 auto auto 0; transform:none; width:var(--meeting-size,44px); height:var(--meeting-size,44px); min-width:44px; min-height:44px; pointer-events:auto; }
body.immersive-live #roomsPanel.meeting-active #sharedSeats .seat-exit { display:none; }
body.immersive-live #roomsPanel.meeting-active #sharedSeats .room-seat[data-camera-live='true'] :is(.seat-avatar,.seat-name) { visibility:hidden; pointer-events:none; }
body.immersive-live #roomsPanel.meeting-active #sharedSeats .room-seat-release { z-index:18; pointer-events:auto; }
body.immersive-live #roomsPanel.meeting-active .meeting-camera-mosaic { position:absolute; inset:0; display:block; width:100%; height:100%; margin:0; padding:0; grid-template-columns:none!important; grid-template-rows:none!important; overflow:visible; border:0; border-radius:0; background:transparent!important; pointer-events:none; }
body.immersive-live #roomsPanel.meeting-active .meeting-camera-mosaic > .camera-tile { position:absolute; top:var(--meeting-y,0px); left:var(--meeting-x,0px); width:var(--meeting-size,44px)!important; height:var(--meeting-size,44px)!important; min-width:44px; min-height:44px; margin:0; padding:0; grid-column:auto!important; overflow:visible; border-radius:14px; pointer-events:auto; }
body.immersive-live #roomsPanel.meeting-active .meeting-camera-mosaic .camera-tile-video { border-radius:inherit; object-fit:cover!important; }
body.immersive-live #roomsPanel.meeting-active .meeting-camera-mosaic .camera-tile:nth-child(n) .camera-tile-label { position:absolute; top:100%!important; left:0!important; right:auto!important; bottom:auto!important; display:block; width:100%; max-width:100%; min-width:44px; height:44px; min-height:44px; padding:5px 0 0!important; margin:0; box-sizing:border-box; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; color:#fff1e7; font:600 12px/16px system-ui; text-align:center; background:transparent!important; border:0!important; border-radius:0; pointer-events:auto; }
body.immersive-live #roomsPanel.meeting-active .meeting-camera-mosaic .camera-focus-open { right:0; bottom:0; width:44px; min-width:44px; height:44px; min-height:44px; border-radius:12px; font-size:19px; }
body.immersive-stage #roomsPanel.meeting-active .room-stage > .room-youtube:not(:fullscreen):not(.room-youtube-fullscreen),
body.immersive-stage #roomsPanel.meeting-active .room-stage > #sharedStageVideo:not(:fullscreen) { top:var(--meeting-video-y,76px); left:var(--meeting-video-x,16px); right:auto; bottom:auto; width:var(--meeting-video-width,200px); height:var(--meeting-video-height,200px); max-width:none; max-height:none; aspect-ratio:auto; transform:none; }
@media(max-height:650px) {
  body.immersive-live #roomsPanel.meeting-active { --live-chat-height:108px; }
}
@media(max-height:500px) and (min-width:600px) {
  body.immersive-live #roomsPanel.meeting-active .meeting-participants { top:calc(48px + env(safe-area-inset-top,0px)); }
}
@media(prefers-reduced-motion:reduce) {
  .meeting-participants { scroll-behavior:auto; }
}

/* Blank surround space remains scrollable, while the player has a real hit-test opening. */
body.immersive-live #roomsPanel.meeting-active .meeting-participants[data-scroll='true'] { pointer-events:auto; touch-action:pan-x pan-y; }
body.immersive-live #roomsPanel.meeting-active .meeting-participants[data-scroll='true']:not([data-source='none']):not([data-stage-hidden='true']) {
  clip-path:polygon(evenodd,0 0,100% 0,100% 100%,0 100%,0 0,var(--meeting-hole-left) var(--meeting-hole-top),var(--meeting-hole-left) var(--meeting-hole-bottom),var(--meeting-hole-right) var(--meeting-hole-bottom),var(--meeting-hole-right) var(--meeting-hole-top),var(--meeting-hole-left) var(--meeting-hole-top),0 0);
}
/* Only actual controls intercept input, never the toolbar's empty width. */
body.immersive-live #roomsPanel.meeting-active .room-primary-actions { pointer-events:none; }
body.immersive-live #roomsPanel.meeting-active .room-primary-actions > button,
body.immersive-live #roomsPanel.meeting-active .room-primary-actions > details > summary,
body.immersive-live #roomsPanel.meeting-active .room-primary-actions .room-more-menu { pointer-events:auto; }
/* A constrained keyboard view suspends presentation, preserving media and playback. */
body.immersive-stage #roomsPanel.meeting-active[data-meeting-stage-hidden='true'] .room-stage > .room-youtube:not(:fullscreen):not(.room-youtube-fullscreen),
body.immersive-stage #roomsPanel.meeting-active[data-meeting-stage-hidden='true'] .room-stage > #sharedStageVideo:not(:fullscreen) { visibility:hidden; pointer-events:none; }
/* The source is a sibling of the scrolling participant plane: match its visible
   clipping and hit-test area without moving/reloading its video or iframe. */
body.immersive-stage #roomsPanel.meeting-active .room-stage > .room-youtube:not(:fullscreen):not(.room-youtube-fullscreen),
body.immersive-stage #roomsPanel.meeting-active .room-stage > #sharedStageVideo:not(:fullscreen){clip-path:inset(var(--meeting-video-clip-top,0px) var(--meeting-video-clip-right,0px) var(--meeting-video-clip-bottom,0px) var(--meeting-video-clip-left,0px));}
body.immersive-stage #roomsPanel.meeting-active[data-meeting-stage-clipped='true'] .room-stage > .room-youtube:not(:fullscreen):not(.room-youtube-fullscreen),
body.immersive-stage #roomsPanel.meeting-active[data-meeting-stage-clipped='true'] .room-stage > #sharedStageVideo:not(:fullscreen){visibility:hidden;pointer-events:none;}
