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

@media (max-width: 800px) {
  body:has(.mobile-app-nav) {
    padding-bottom: calc(74px + env(safe-area-inset-bottom));
  }

  .mobile-app-nav {
    position: fixed;
    z-index: 60;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: 64px;
    padding: 5px 6px calc(5px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(255, 253, 248, .97);
    box-shadow: 0 -8px 30px rgba(20, 45, 35, .09);
    backdrop-filter: blur(12px);
  }

  .mobile-app-nav a {
    display: flex;
    min-width: 0;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2px;
    color: var(--forest);
    text-align: center;
    text-decoration: none;
  }

  .mobile-app-nav span {
    font-size: 20px;
    line-height: 1;
  }

  .mobile-app-nav b {
    overflow: hidden;
    max-width: 100%;
    font-size: 10px;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
