/* Buddy Rooms 0.21.147 · second control-pass corrective over owner-locked B/B/B.
   Scope: restore native narrow fullscreen precedence after the 0.21.145 normal-flow stage override,
   and align the second-pass release/handoff authority.
   Inherits 0.21.146 visible-history backfill/copy fixes and 0.21.144 WAT/tongue arbitration unchanged. */

/* 0.21.145 intentionally made an ordinary open narrow workspace panel normal-flow below a 16:9 stage.
   Fullscreen is a different native state and must win even when workspace-panel-open is present.
   Match/exceed the newer selector specificity so the 0.21.140 fullscreen contract is not shadowed. */
@media(max-width:900px){
  html[data-theme][data-buddy-room-view="active"] #roomView.room.workspace-panel-open.workspace-tool-fullscreen .workspace-panel{
    display:flex!important;
    position:fixed!important;
    z-index:96!important;
    inset:0!important;
    top:0!important;
    right:0!important;
    bottom:0!important;
    left:0!important;
    grid-column:auto!important;
    grid-row:auto!important;
    width:100%!important;
    height:var(--app-viewport-height,100dvh)!important;
    max-width:none!important;
    max-height:none!important;
    min-width:0!important;
    min-height:0!important;
    margin:0!important;
    border:0!important;
    border-radius:0!important;
    padding:0 0 env(safe-area-inset-bottom,0px)!important;
    box-shadow:none!important;
  }
  html[data-theme][data-buddy-room-view="active"] #roomView.room.workspace-panel-open.workspace-tool-fullscreen .workspace-panel::before,
  html[data-theme][data-buddy-room-view="active"] #roomView.room.workspace-panel-open.workspace-tool-fullscreen .workspace-panel .panel-collapse-strip{
    display:none!important;
  }
  html[data-theme][data-buddy-room-view="active"] #roomView.room.workspace-panel-open.workspace-tool-fullscreen .workspace-panel-topbar{
    padding:8px!important;
  }
  html[data-theme][data-buddy-room-view="active"] #roomView.room.workspace-panel-open.workspace-tool-fullscreen .room-main{
    visibility:hidden!important;
  }
}
