/* 39GO Social Fixed Bottom Nav V1: profile & SOS only.
   Keep the viewport anchored toolbar outside the scrolling content flow. */
@media (max-width: 820px) {
  body[data-authenticated="1"] .profile-edit-page,
  body[data-authenticated="1"] .sos-page {
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    padding-bottom: calc(145px + env(safe-area-inset-bottom, 0px)) !important;
    scroll-padding-bottom: calc(145px + env(safe-area-inset-bottom, 0px));
  }
  body[data-authenticated="1"] .profile-edit-page > .bottom-nav,
  body[data-authenticated="1"] .sos-page > .bottom-nav {
    position: fixed !important;
    top: auto !important;
    left: max(6px, env(safe-area-inset-left, 0px)) !important;
    right: max(6px, env(safe-area-inset-right, 0px)) !important;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important;
    width: auto !important;
    max-width: 820px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    height: 84px !important;
    transform: none !important;
    z-index: 9000 !important;
  }
  /* The profile already contains its own logout form. Hide only the floating duplicate here. */
  body[data-authenticated="1"]:has(.profile-edit-page) #go39QuickLogout {
    display: none !important;
  }
}
