@media (max-width: 900px) {
  body {
    padding-bottom: calc(94px + env(safe-area-inset-bottom));
  }

  .mobile-bottom-nav {
    position: fixed;
    z-index: 520;
    right: max(10px, env(safe-area-inset-right));
    bottom: max(8px, env(safe-area-inset-bottom));
    left: max(10px, env(safe-area-inset-left));
    display: grid !important;
    height: auto !important;
    min-height: 74px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    padding: 7px 6px 6px;
    color: var(--muted);
    background: rgba(251, 247, 240, .94);
    border: 1px solid rgba(61, 89, 46, .13);
    border-radius: 24px;
    box-shadow: 0 -2px 16px rgba(38, 58, 30, .06), 0 18px 46px rgba(38, 58, 30, .18);
    backdrop-filter: blur(22px) saturate(135%);
    -webkit-backdrop-filter: blur(22px) saturate(135%);
    isolation: isolate;
  }

  .mobile-bottom-nav::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 1px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,.58), rgba(255,255,255,.14));
    pointer-events: none;
  }

  .mobile-bottom-nav__item {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 58px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    padding: 4px 2px 3px;
    color: var(--muted);
    border: 0;
    border-radius: 18px;
    background: transparent;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: color 180ms ease, background 180ms ease, transform 140ms ease;
  }

  .mobile-bottom-nav__item::after {
    content: "";
    position: absolute;
    right: 34%;
    bottom: 2px;
    left: 34%;
    height: 2px;
    border-radius: 999px;
    background: var(--green);
    opacity: 0;
    transform: scaleX(.35);
    transition: opacity 180ms ease, transform 220ms cubic-bezier(.2,.8,.2,1);
  }

  .mobile-bottom-nav__item:active {
    transform: scale(.94);
  }

  .mobile-bottom-nav__item.is-active,
  .mobile-bottom-nav__item[aria-current="page"] {
    color: var(--green-deep);
    background: rgba(61, 89, 46, .065);
  }

  .mobile-bottom-nav__item.is-active::after,
  .mobile-bottom-nav__item[aria-current="page"]::after {
    opacity: 1;
    transform: scaleX(1);
  }

  .mobile-bottom-nav__icon {
    position: relative;
    display: grid;
    width: 36px;
    height: 31px;
    place-items: center;
    border-radius: 13px;
    transition: transform 220ms cubic-bezier(.2,.8,.2,1), background 180ms ease;
  }

  .mobile-bottom-nav__icon svg {
    width: 22px;
    height: 22px;
    overflow: visible;
  }

  .mobile-bottom-nav__item.is-active .mobile-bottom-nav__icon,
  .mobile-bottom-nav__item[aria-current="page"] .mobile-bottom-nav__icon {
    background: rgba(61, 89, 46, .09);
    transform: translateY(-2px);
  }

  .mobile-bottom-nav__label {
    max-width: 100%;
    overflow: hidden;
    font: 650 10.5px/1.15 var(--ui);
    letter-spacing: -.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-bottom-nav__item.is-active .mobile-bottom-nav__label,
  .mobile-bottom-nav__item[aria-current="page"] .mobile-bottom-nav__label {
    font-weight: 750;
  }

  .mobile-bottom-nav__badge {
    position: absolute;
    top: -4px;
    right: -5px;
    display: grid;
    min-width: 18px;
    height: 18px;
    place-items: center;
    padding: 0 5px;
    color: #fff;
    background: var(--orange);
    border: 2px solid rgba(251, 247, 240, .98);
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(216, 121, 66, .28);
    font: 800 9px/1 var(--ui);
    font-style: normal;
    transition: opacity 150ms ease, transform 150ms ease;
  }

  .mobile-bottom-nav__badge.is-empty {
    opacity: 0;
    transform: scale(.55);
    pointer-events: none;
  }

  .mobile-bottom-nav__badge.is-bumping {
    animation: mobile-nav-badge-bump 420ms cubic-bezier(.2,.8,.2,1);
  }

  .support-widget {
    bottom: calc(100px + env(safe-area-inset-bottom)) !important;
  }

  .support-widget__panel {
    max-height: calc(100dvh - 190px);
    overflow: auto;
  }
}

@media (max-width: 380px) {
  .mobile-bottom-nav {
    right: max(6px, env(safe-area-inset-right));
    left: max(6px, env(safe-area-inset-left));
    padding-inline: 3px;
    border-radius: 21px;
  }

  .mobile-bottom-nav__item {
    min-height: 56px;
    border-radius: 16px;
  }

  .mobile-bottom-nav__icon {
    width: 33px;
  }

  .mobile-bottom-nav__icon svg {
    width: 21px;
    height: 21px;
  }

  .mobile-bottom-nav__label {
    font-size: 9.5px;
  }
}

@keyframes mobile-nav-badge-bump {
  0%, 100% { transform: scale(1); }
  42% { transform: scale(1.28) translateY(-1px); }
  68% { transform: scale(.94); }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-bottom-nav__item,
  .mobile-bottom-nav__icon,
  .mobile-bottom-nav__item::after,
  .mobile-bottom-nav__badge {
    transition: none !important;
  }

  .mobile-bottom-nav__badge.is-bumping {
    animation: none !important;
  }
}
