/* Separate physical layers of the same live room. No copy of the home HUD,
   no second background video, and no opacity animation on departing controls. */
#workRoomBase,#workSceneHud{position:absolute;inset:0;transform-origin:0 0}
#workRoomBase{z-index:-3;isolation:isolate;pointer-events:none}
#workSceneHud{z-index:2}
#workRoomDetail,#workFlightLogo{position:absolute;left:0;top:0;transform-origin:0 0;max-width:none;pointer-events:none;user-select:none}
#workRoomDetail{z-index:-1}
#workFlightLogo{z-index:1}
#workRoomDetail[hidden],#workFlightLogo[hidden]{display:none!important}
body.work-flight-active #workRoomBase,body.work-flight-active #workSceneHud{will-change:transform}
body.work-flight-active #workRoomBase{inset:0 auto auto 0}
body.work-flight-active #workSceneHud{pointer-events:none;opacity:1;transition:none}
body.work-flight-active #workRoomBase .room-poster img,body.work-flight-active #workRoomBase .room-film{object-fit:fill}
body.work-flight-active #workRoomBase .room-film.is-playing{opacity:var(--work-film-mix,1);transition:none}
body.work-flight-active #workRoomBase .room-film[data-wall-covered]{visibility:hidden}
body.work-flight-active .room-logo{visibility:hidden}
/* Keep the last visible video lettering intact as the whole plate leaves. */
body.work-flight-active #workSceneHud .reel-lettering-canvas{opacity:var(--flight-ink,0);transition:none}
/* This native dialog owns focus and keyboard routing, not a fullscreen
   background. The actual room below it remains visible on entry and exit. */
body.work-flight-active #workModal[open]{
  display:block;position:fixed;inset:0;margin:0;padding:0;border:0;
  width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;
  overflow:hidden;box-sizing:border-box;background:transparent;box-shadow:none;
  clip-path:none!important;opacity:1!important;filter:none;transform:none!important;
  animation:none!important;transition:none!important;outline:none;
}
body.work-flight-active #workModal::backdrop{
  background:transparent!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
  opacity:1;animation:none!important;transition:none!important;
}
body.work-flight-active #workModal>.modal-close,
body.work-flight-active #workModal>.work-modal-frame{display:none!important}
body.work-flight-active #workModal .work-niche-panel{top:0;left:0;transform-origin:0 0}
body.work-flight-active #workModal:not([data-phase="open"]) .work-niche-panel{pointer-events:none}
