/* Magic 1Xtra: selector-only regression repair. Applied last, phone only.
   Exact Flutter source: service_selector_screen.dart / switch service has no bottom navigation.
   Scope by current rendered DOM, not a stale route class or an asynchronous nav-owner flag. */
@media (max-width:767px) {
  body:has(#page .mxso-page) #app > nav#bottomNav,
  body:has(#page .mxss-screen) #app > nav#bottomNav,
  body:has(#page .mxso-page) #mxNavRescue,
  body:has(#page .mxss-screen) #mxNavRescue,
  body:has(#page .mxso-page) #mxPhoneNavUnified,
  body:has(#page .mxss-screen) #mxPhoneNavUnified,
  body:has(#page .mxso-page) #mxRemainingFlutterWorkspace,
  body:has(#page .mxss-screen) #mxRemainingFlutterWorkspace,
  body:has(#page .mxso-page) #mxFlutterMarketTabs,
  body:has(#page .mxss-screen) #mxFlutterMarketTabs {
    display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;
  }
  /* Earlier selector header CSS requires [data-mx-route=home], which the SPA
     does not consistently attach. Match the actual Dart selector markup. */
  body:has(#page .mxso-page) .mxso-header {
    display:grid!important;
    grid-template-columns:44px minmax(0,1fr) 38px 38px!important;
    grid-template-rows:auto auto!important;
    column-gap:7px!important;row-gap:10px!important;
    align-items:center!important;position:relative!important;
    min-width:0!important;width:100%!important;height:auto!important;
  }
  body:has(#page .mxso-page) .mxso-header > .mxso-close {grid-column:1!important;grid-row:1!important;position:static!important;}
  body:has(#page .mxso-page) .mxso-header > .mxso-greeting {grid-column:2!important;grid-row:1!important;min-width:0!important;}
  body:has(#page .mxso-page) .mxso-header > #mxsoNotification {grid-column:3!important;grid-row:1!important;position:static!important;}
  body:has(#page .mxso-page) .mxso-header > #mxsoAccount {grid-column:4!important;grid-row:1!important;position:static!important;}
  body:has(#page .mxso-page) .mxso-header > .mxso-switch-link {
    grid-column:1 / -1!important;grid-row:2!important;justify-self:end!important;
    position:static!important;top:auto!important;left:auto!important;right:auto!important;
    transform:none!important;float:none!important;margin:0!important;
    max-width:100%!important;width:max-content!important;box-sizing:border-box!important;
    padding:7px 12px!important;white-space:nowrap!important;
    font-size:12px!important;line-height:1.25!important;z-index:1!important;
  }
  body:has(#page .mxso-page) #page {padding-bottom:0!important;}
}
