/* Adapter for the pinned Meeting SDK 6.2.0. Keep SDK media mounted and decoding.
   A paint containment boundary makes each fixed media slot relative to this root,
   and clips it before it can cover the portal's questions or controls. */
#zoomRoot.mhf-stage {
  contain: layout paint;
  isolation: isolate;
  visibility: hidden;
  direction: ltr;
  overflow: hidden;
}
#zoomRoot.mhf-stage .mhf-stage-path {
  transform: none !important;
  perspective: none !important;
  filter: none !important;
  contain: none !important;
  will-change: auto !important;
  overflow: visible !important;
}
#zoomRoot.mhf-stage .mhf-stage-media {
  position: fixed !important;
  inset: auto !important;
  left: var(--stage-x) !important;
  top: var(--stage-y) !important;
  width: var(--stage-w) !important;
  height: var(--stage-h) !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  transform: none !important;
  aspect-ratio: auto !important;
  visibility: visible !important;
  object-fit: contain !important;
  border: 0 !important;
  border-radius: 12px !important;
  pointer-events: none !important;
  background: var(--bg-sunk) !important;
}
/* Unselected/stopped surfaces stay hidden even if the SDK sets visibility itself. */
#zoomRoot.mhf-stage video-player:not(.mhf-stage-media),
#zoomRoot.mhf-stage video:not(.mhf-stage-media),
#zoomRoot.mhf-stage canvas:not(.mhf-stage-media) { visibility: hidden !important; }
#zoomRoot.mhf-stage video-player.mhf-stage-media video,
#zoomRoot.mhf-stage video-player.mhf-stage-media canvas { visibility: visible !important; }
.mhf-stage-labels { position: absolute; inset: 0; pointer-events: none; z-index: 1; direction: ltr; }
.mhf-stage-label {
  position: absolute; padding: 2px 6px; max-width: 100%; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; border-radius: 8px;
  background: var(--surface); color: var(--ink); font-size: 12px; font-weight: 600;
}
