/* Shared phone header. Collapse removes its entire flow footprint; the runtime
   preserves a visible content anchor and ignores layout-generated scroll events. */
@media screen and (max-width:1023px) {
 html:root body :is(.app-header,.mobile-app-header) {transition:opacity 160ms ease;}
 html:root body.ism-design:is(.ism-app,.console-page,.ism-mobile-shell-page) .app-header:not(.schedule-header-hidden):not(.ism-scroll-header-collapsed) {position:sticky!important;inset:auto!important;top:calc(6px + env(safe-area-inset-top,0px))!important;margin:calc(6px + env(safe-area-inset-top,0px)) 8px 6px!important;}
 html:root body.ism-design:is(.ism-app,.console-page,.ism-mobile-shell-page) .mobile-navigation {padding:calc(6px + env(safe-area-inset-top,0px)) 0 6px!important;}
 html:root body.ism-design:is(.ism-app,.console-page,.ism-mobile-shell-page) :is(.app-header>.mobile-menu,.mobile-app-header>.mobile-nav-menu) svg {width:23px!important;height:23px!important;}
 /* Contacts previously reserved space for a fixed header. The shared header
    now participates in flow while expanded, so do not reserve it twice. */
 html:root body.ism-design[data-staff-redesign-page="contacts"] #app-content {padding-top:12px!important;}
 html.ism-mobile-header-collapsed body.ism-design .mobile-navigation {height:0!important;min-height:0!important;padding:0!important;margin:0!important;}
 html.ism-mobile-header-collapsed body.ism-design .documents-page .documents-mobile-tools {margin-left:56px!important;}
 html.ism-mobile-header-collapsed body.ism-design[data-staff-redesign-page="documents"] #app-content {padding-top:12px!important;}

 /* Shared automatic header hiding has no manual eye control or reserved slot. */
 html:root body.ism-design:is(.ism-app,.console-page,.ism-mobile-shell-page) :is(.app-header,.mobile-app-header)[data-ism-header-hide-available] :is(.mobile-page-title,.mobile-header-identity>h1,.ism-page-title-text,.header-status-hospital,.mobile-header-group) {max-width:100%!important;min-width:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
 html:root body:has(:is(.app-header,.mobile-app-header)[data-ism-header-hide-available]) :is(.contact-focus-toggle,.documents-focus-toggle) {display:none!important;}
 /* Retire any legacy eye left by a cached shell while automatic hiding takes over. */
 html:root body .ism-scroll-hide-button {display:none!important;}
 html.ism-mobile-header-collapsed body.ism-design:is(.ism-app,.console-page,.ism-mobile-shell-page) :is(.app-header,.mobile-app-header).ism-scroll-header-collapsed {
  position:fixed!important;left:8px!important;right:8px!important;top:calc(6px + env(safe-area-inset-top,0px))!important;margin:0!important;transform:none!important;
  opacity:0!important;visibility:hidden!important;pointer-events:none!important;
 }
 html:root body .ism-scroll-menu-button {
  position:fixed!important;top:calc(12px + env(safe-area-inset-top,0px))!important;left:calc(14px + env(safe-area-inset-left,0px))!important;
  z-index:1041;display:flex;align-items:center;justify-content:center;box-sizing:border-box;
  width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;margin:0!important;
  border:1px solid var(--ism-line,#d5dde5)!important;border-radius:50%!important;
  color:var(--ism-text,#2c3e50)!important;background:var(--ism-content,#fff)!important;
  box-shadow:0 2px 12px #0002;cursor:pointer;-webkit-tap-highlight-color:transparent;
 }
 html:root body .ism-scroll-menu-button[hidden] {display:none!important;}
 html:root body .ism-scroll-menu-button svg {display:block;width:23px!important;height:23px!important;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
 html:root body .ism-scroll-menu-button:active {background:var(--ism-inset,#eaf0f4)!important;}
 html:root body .ism-scroll-menu-button:focus:not(:focus-visible) {outline:none!important;}
 html:root body .ism-scroll-menu-button:focus-visible {outline:2px solid var(--ism-text,#2c3e50)!important;outline-offset:-4px!important;}
 @supports (background:color-mix(in srgb,white,transparent)) {
  html:root body .ism-scroll-menu-button {background:color-mix(in srgb,var(--ism-content,#fff) 82%,transparent)!important;-webkit-backdrop-filter:blur(24px) saturate(140%);backdrop-filter:blur(24px) saturate(140%);}
 }
}
@media screen and (min-width:1024px), print {html:root body :is(.ism-scroll-menu-button,.ism-scroll-hide-button) {display:none!important;}}
@media (prefers-reduced-motion:reduce) {html:root body :is(.app-header,.mobile-app-header) {transition:none!important;}}
@media (prefers-reduced-transparency:reduce), (forced-colors:active) {html:root body .ism-scroll-menu-button {background:var(--ism-content,#fff)!important;-webkit-backdrop-filter:none;backdrop-filter:none;}}
