/* Mobile ONLY: ONE visible bottom navigation, with one scroll behavior.
   This stylesheet MUST be after all legacy shell navigation styles. */
@media(max-width:767px){
 /* Reject all existing rival navigation containers by default. */
 html[data-mx-unified-nav-owner] body #mxHomeAirplayNavV14,
 html[data-mx-unified-nav-owner] body #bottomNav,
 html[data-mx-unified-nav-owner] body #mxRemainingFlutterWorkspace,
 html[data-mx-unified-nav-owner] body #mxPhoneNavUnified,
 html[data-mx-unified-nav-owner] body #mxFlutterMarketTabs,
 html[data-mx-unified-nav-owner] body #mxNavRescue,
 html[data-mx-unified-nav-owner] body .mx-rescue-service-nav,
 html[data-mx-unified-nav-owner] body #mxUnifiedMainNavV2{
   display:none!important;visibility:hidden!important;pointer-events:none!important;
 }
 /* The selected owner alone becomes visible, consistent across services. */
 html[data-mx-unified-nav-owner="mxUnifiedMainNavV2"] body #mxUnifiedMainNavV2,
 html[data-mx-unified-nav-owner="mxRemainingFlutterWorkspace"] body #mxRemainingFlutterWorkspace,
 html[data-mx-unified-nav-owner="mxPhoneNavUnified"] body #mxPhoneNavUnified,
 html[data-mx-unified-nav-owner="mxFlutterMarketTabs"] body #mxFlutterMarketTabs,
 html[data-mx-unified-nav-owner="bottomNav"] body #bottomNav{
   display:grid!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;
   position:fixed!important;top:auto!important;right:auto!important;
   left:50%!important;bottom:calc(8px + env(safe-area-inset-bottom,0px))!important;
   width:min(calc(100vw - 20px),560px)!important;max-width:calc(100vw - 20px)!important;
   height:76px!important;min-height:76px!important;max-height:76px!important;
   grid-template-columns:repeat(5,minmax(0,1fr))!important;grid-template-rows:1fr!important;
   align-items:stretch!important;gap:0!important;padding:5px!important;
   border:1px solid #273344!important;border-radius:27px!important;
   background:#0b121a!important;box-shadow:0 8px 25px #0009!important;
   transform:translate3d(-50%,0,0)!important;
   transition:transform .22s ease-out!important;
   z-index:2147483000!important;box-sizing:border-box!important;overflow:hidden!important;
 }
 /* Specialized 2-4 tab bars may have fewer tabs than the global bar. */
 html[data-mx-unified-nav-owner="mxRemainingFlutterWorkspace"] body #mxRemainingFlutterWorkspace,
 html[data-mx-unified-nav-owner="mxPhoneNavUnified"] body #mxPhoneNavUnified,
 html[data-mx-unified-nav-owner="mxFlutterMarketTabs"] body #mxFlutterMarketTabs,
 html[data-mx-unified-nav-owner="bottomNav"] body #bottomNav{
   display:flex!important;justify-content:space-around!important;
 }
 html[data-mx-unified-nav-owner="mxUnifiedMainNavV2"] body #mxUnifiedMainNavV2 a,
 html[data-mx-unified-nav-owner="mxRemainingFlutterWorkspace"] body #mxRemainingFlutterWorkspace > a,
 html[data-mx-unified-nav-owner="mxPhoneNavUnified"] body #mxPhoneNavUnified > a,
 html[data-mx-unified-nav-owner="mxFlutterMarketTabs"] body #mxFlutterMarketTabs > a,
 html[data-mx-unified-nav-owner="bottomNav"] body #bottomNav > a{
   display:flex!important;flex:1 1 0!important;flex-direction:column!important;
   align-items:center!important;justify-content:center!important;gap:4px!important;
   min-width:0!important;padding:5px 2px!important;text-align:center!important;
   text-decoration:none!important;color:#a9acb8!important;
   font:600 clamp(9px,2.5vw,11px)/1.2 system-ui,sans-serif!important;
 }
 html[data-mx-unified-nav-owner="mxUnifiedMainNavV2"] body #mxUnifiedMainNavV2 a[aria-current="page"]{color:#ff2675!important}
 html[data-mx-unified-nav-owner="mxUnifiedMainNavV2"] body #mxUnifiedMainNavV2 svg{width:24px;height:24px;flex:none}
 html[data-mx-unified-nav-owner="mxUnifiedMainNavV2"] body #mxUnifiedMainNavV2 span{white-space:nowrap}
 /* All menus move with the same direction rule. */
 html[data-mx-unified-nav-hidden="1"][data-mx-unified-nav-owner="mxUnifiedMainNavV2"] body #mxUnifiedMainNavV2,
 html[data-mx-unified-nav-hidden="1"][data-mx-unified-nav-owner="mxRemainingFlutterWorkspace"] body #mxRemainingFlutterWorkspace,
 html[data-mx-unified-nav-hidden="1"][data-mx-unified-nav-owner="mxPhoneNavUnified"] body #mxPhoneNavUnified,
 html[data-mx-unified-nav-hidden="1"][data-mx-unified-nav-owner="mxFlutterMarketTabs"] body #mxFlutterMarketTabs,
 html[data-mx-unified-nav-hidden="1"][data-mx-unified-nav-owner="bottomNav"] body #bottomNav{
   transform:translate3d(-50%,calc(100% + 20px + env(safe-area-inset-bottom,0px)),0)!important;
   pointer-events:none!important;
 }
 /* A fixed menu needs END-OF-PAGE clearance, NOT a black filler overlay. */
 html[data-mx-unified-nav-owner=""] body #page{padding-bottom:0!important}
 html[data-mx-unified-nav-owner="mxUnifiedMainNavV2"] body #page,
 html[data-mx-unified-nav-owner="mxRemainingFlutterWorkspace"] body #page,
 html[data-mx-unified-nav-owner="mxPhoneNavUnified"] body #page,
 html[data-mx-unified-nav-owner="mxFlutterMarketTabs"] body #page,
 html[data-mx-unified-nav-owner="bottomNav"] body #page{
   padding-bottom:calc(96px + env(safe-area-inset-bottom,0px))!important;
 }
 /* Home and service-selector have their own wrapper: avoid doubling clearance. */
 html[data-mx-unified-nav-owner="mxUnifiedMainNavV2"] body:has(#page > .mxso-page) #page,
 html[data-mx-unified-nav-owner="mxUnifiedMainNavV2"] body:has(#page > .mxss-screen) #page{padding-bottom:0!important}
 html[data-mx-unified-nav-owner="mxUnifiedMainNavV2"] body #page > .mxso-page,
 html[data-mx-unified-nav-owner="mxUnifiedMainNavV2"] body #page > .mxss-screen{
   padding-bottom:calc(96px + env(safe-area-inset-bottom,0px))!important;
 }
 /* Keep a real player above the selected menu; never remove or clear it. */
 html[data-mx-unified-nav-owner]:not([data-mx-unified-nav-owner=""]) body #playerHost > .flutter-global-player:not(.expanded){
   bottom:calc(98px + env(safe-area-inset-bottom,0px))!important;
 }
}
@media(prefers-reduced-motion:reduce){#mxUnifiedMainNavV2,#mxRemainingFlutterWorkspace,#mxPhoneNavUnified,#mxFlutterMarketTabs,#bottomNav{transition:none!important}}
