.mobile-app-nav {
  display: none;
}

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

  .topbar .shell {
    align-items: center;
    flex-direction: row;
    min-height: 64px;
    padding: 8px 0;
  }

  .header-actions,
  .back-link,
  .topbar .nav-button {
    display: none;
  }

  .brand span {
    max-width: min(48vw, 220px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-app-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 3000;
    display: block;
    padding:
      8px max(12px, env(safe-area-inset-right))
      calc(8px + env(safe-area-inset-bottom))
      max(12px, env(safe-area-inset-left));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
  }

  .mobile-app-nav__inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
  }

  .mobile-app-nav__button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 52px;
    border: 1px solid rgba(31, 56, 91, 0.12);
    border-radius: 14px;
    background: rgba(246, 249, 253, 0.94);
    color: var(--navy);
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(31, 56, 91, 0.08);
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-app-nav__button:focus-visible {
    outline: 3px solid rgba(69, 185, 173, 0.45);
    outline-offset: 2px;
  }

  .mobile-app-nav__button.is-active {
    border-color: var(--navy);
    background: var(--navy);
    color: var(--white);
    box-shadow: 0 12px 28px rgba(31, 56, 91, 0.22);
  }

  .mobile-app-nav__button svg {
    width: 25px;
    height: 25px;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-app-nav__logo {
    width: 31px;
    height: 31px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.88);
  }
}
