/* Only the open facility sheet changes geometry. No document/nav overrides. */
html.facility-viewport-open body #facilityPickerSheetMobile.open{
  top:var(--facility-visible-top)!important;bottom:auto!important;
  height:var(--facility-visible-height)!important;max-height:var(--facility-visible-height)!important;
  display:flex!important;flex-direction:column!important;
  transform:translateX(-50%)!important;transition:none!important;
  border-radius:16px!important;border-bottom:1px solid rgba(255,255,255,.09)!important;
  box-sizing:border-box!important;
}
html.facility-viewport-open #facilityPickerSheetMobile .facility-picker-head{flex:0 0 auto!important}
html.facility-viewport-open #facilityPickerBodyMobile{
  flex:1 1 auto!important;min-height:0!important;max-height:none!important;
  overflow-y:auto!important;overscroll-behavior-y:contain!important;
  -webkit-overflow-scrolling:touch;
}
html.facility-viewport-open #aiFacilitySearchMobile{
  position:sticky!important;top:0!important;z-index:2;
  font-size:16px!important;line-height:1.4!important;min-height:44px;
  background:rgb(var(--ui-panel,15,23,30))!important;
}
/* Phone: retain the existing header/search/budget/cards, fill the visible screen
   from the start. Focus changes only the space available to the scrolling body. */
html.facility-viewport-open.facility-phone-fullscreen body #facilityPickerSheetMobile.open{
  left:0!important;right:0!important;width:100%!important;max-width:none!important;
  transform:none!important;border:0!important;border-radius:0!important;
  padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px);
}
