/* GritHQ Alpha4.91 — PWA bottom-gap final lock
   Scope: installed iOS PWA only. Native iOS/Worker remains untouched.
   Purpose: remove the external safe-area/margin gap under PrimaryDock on ALL four tabs
   while keeping safe-area clearance inside the dock itself. No page/content geometry changes. */
@media (max-width:959px) {
  html.ios-standalone body:not(.workout-mode) #bottomNav.bottom-nav {
    margin-top:6px!important;
    margin-right:max(10px,env(safe-area-inset-right))!important;
    margin-bottom:0!important;
    margin-left:max(10px,env(safe-area-inset-left))!important;
    height:calc(58px + env(safe-area-inset-bottom))!important;
    min-height:calc(58px + env(safe-area-inset-bottom))!important;
    max-height:calc(58px + env(safe-area-inset-bottom))!important;
    padding:4px 4px calc(4px + env(safe-area-inset-bottom)) 4px!important;
    align-self:end!important;
  }

  html.ios-standalone body:not(.workout-mode) #bottomNav .nav-btn,
  html.ios-standalone body:not(.workout-mode) #bottomNav .nav-btn.active {
    height:50px!important;
    min-height:50px!important;
    max-height:50px!important;
  }
}
