/* GritHQ Alpha4.85 — PrimaryDock safe-area visual fix
   Keeps the dock anchored to the bottom edge while placing the iOS home-indicator
   safe area inside the dock instead of as empty space below it. */
@media (max-width:959px) {
  body:not(.workout-mode) .bottom-nav,
  html.ios-standalone body:not(.workout-mode) .bottom-nav,
  body.home-mode .bottom-nav {
    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;
    margin:
      6px
      max(10px,env(safe-area-inset-right))
      0
      max(10px,env(safe-area-inset-left))!important;
    padding:4px 4px calc(4px + env(safe-area-inset-bottom))!important;
    align-self:end!important;
  }

  body:not(.workout-mode) .bottom-nav .nav-btn,
  html.ios-standalone body:not(.workout-mode) .bottom-nav .nav-btn,
  body.home-mode .bottom-nav .nav-btn {
    min-height:48px!important;
  }
}
