/* Party controls live under the Party navigation branch. Hidden means no
   ribbon, no door stub, and no width reservation. Players stay mounted. */
body .gm-left-ribbon .bp-nav-room-wrap{flex-direction:column;align-items:stretch}
body .gm-left-ribbon #navRoomDD{position:static!important;inset:auto!important;transform:none!important;width:100%!important;max-width:none!important;box-shadow:none;padding:8px;margin:6px 0 0}
body .gm-left-ribbon #navRoomDD::before,body .gm-left-ribbon #navRoomDD::after{display:none!important}
body .gm-left-ribbon #navRoomBtn[hidden],#gmPartySectionLabel[hidden],#gmPartyMenuActions[hidden],#gmPartyJoinControls[hidden]{display:none!important}
.gm-party-section-label{padding:4px 12px 10px;color:#818a9f;font:700 10px/1.4 Inter,sans-serif;letter-spacing:1.5px;text-transform:uppercase}
#gmPartyMenuActions{display:flex;flex-direction:column;gap:6px}
body .gm-left-ribbon #gmPartyMenuActions .bp-nav-item{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:12px;text-align:left;width:100%;min-width:0;min-height:46px;height:auto;padding:11px 12px;border:1px solid transparent;border-radius:9px;background:transparent;color:#9ea7bb;cursor:pointer}
body .gm-left-ribbon #gmPartyMenuActions button:hover{background:#a673ef15;color:#fff}
body .gm-left-ribbon #gmPartyMenuActions button[aria-expanded=true]{color:#fff;background:linear-gradient(100deg,#7130c955,#37205088);border-color:#8751d5;box-shadow:inset 3px 0 #b88aff,0 0 18px #8b3af514}
#gmPartyMenuActions button:focus-visible{outline:2px solid #67e8f9;outline-offset:2px}
body:has(.gm-left-ribbon) #navRoomBackdrop{display:none!important}
body:has(.app.gm-left-ribbon #vWatch) #bpPartyRoster,
body .app.gm-left-ribbon #bpRight{display:none!important}
body .app.gm-left-ribbon.in-room.bp-immersive:not(.bp-rocket){--gm-party-left:0px;--gm-party-right:0px}
body .app.gm-left-ribbon.in-room.bp-immersive.gm-party-online-open:not(.bp-rocket){--gm-party-left:260px}
body .app.gm-left-ribbon.in-room.bp-immersive.gm-party-chat-open:not(.bp-rocket){--gm-party-left:330px}
body:has(.app.gm-left-ribbon.in-room.bp-immersive:not(.bp-rocket)) .bp-party-media-dock{--gm-dock-left:0px;--gm-dock-right:0px}
body:has(.app.gm-left-ribbon.in-room.bp-immersive.gm-party-online-open:not(.bp-rocket)) .bp-party-media-dock{--gm-dock-left:260px}
body:has(.app.gm-left-ribbon.in-room.bp-immersive.gm-party-chat-open:not(.bp-rocket)) .bp-party-media-dock{--gm-dock-left:330px}
body:has(.app.gm-left-ribbon.in-room.gm-party-online-open #vWatch.active) #bpPartyRoster{
  display:flex!important;flex-direction:column;position:fixed!important;left:var(--gm-nav-width)!important;right:auto!important;top:var(--gm-room-toolbar)!important;bottom:0!important;
  width:260px!important;max-width:calc(100vw - var(--gm-nav-width));height:calc(100dvh - var(--gm-room-toolbar))!important;z-index:110;overflow-y:auto!important;background:#080d17;border-right:1px solid #644295;
}
body .app.gm-left-ribbon.in-room.gm-party-chat-open:has(#vWatch.active) #bpRight{
  display:flex!important;position:fixed!important;right:auto!important;left:var(--gm-nav-width)!important;top:var(--gm-room-toolbar)!important;bottom:0!important;width:min(330px,calc(100vw - var(--gm-nav-width)))!important;min-width:0!important;max-width:calc(100vw - var(--gm-nav-width))!important;height:calc(100dvh - var(--gm-room-toolbar))!important;max-height:none!important;z-index:110;transform:none!important;opacity:1!important;visibility:visible!important;
}
@keyframes gmPartySlideIn{from{translate:-20px 0;opacity:0}to{translate:0 0;opacity:1}}
body:has(.app.gm-left-ribbon.gm-party-online-open) #bpPartyRoster,body .gm-left-ribbon.gm-party-chat-open #bpRight{animation:gmPartySlideIn .2s ease-out}
@media(prefers-reduced-motion:reduce){body:has(.gm-left-ribbon) #bpPartyRoster,body .gm-left-ribbon #bpRight{animation:none}}
body .gm-left-ribbon.gm-party-chat-open #pcWatch{display:flex!important;flex-direction:column;height:100%;min-height:0;flex:1}
body .gm-left-ribbon.gm-party-chat-open #pcWatch>.pc-hdr{display:flex!important;height:auto!important;min-height:54px!important;flex-shrink:0}
body .gm-left-ribbon.gm-party-chat-open #bpActivitySection,
body .gm-left-ribbon.gm-party-chat-open #bpChatPinBtn{display:none!important}
body .gm-left-ribbon.gm-party-chat-open #bpPanelCloseBtn{display:flex!important}
@media(max-width:1100px){
  body .gm-left-ribbon #gmPartyMenuActions .bp-nav-item{justify-content:center;padding:12px 8px}
  .gm-party-section-label{padding:4px 0 8px;text-align:center;font-size:9px;letter-spacing:.6px}
  body .gm-left-ribbon #navRoomDD{position:fixed!important;left:calc(var(--gm-nav-width) + 8px)!important;top:90px!important;width:240px!important;max-width:calc(100vw - var(--gm-nav-width) - 16px)!important;background:#111020;box-shadow:0 16px 40px #0009}
}
@media(max-width:1024px){
  body:has(.app.gm-left-ribbon.in-room){--gm-room-toolbar:0px}
  body .app.gm-left-ribbon.in-room.bp-immersive .bp-main{margin-left:0!important;width:100%!important}
  body .app.gm-left-ribbon.in-room.gm-party-chat-open:has(#vWatch.active) #bpRight{left:var(--gm-nav-width)!important;right:auto!important}
}
