.nav-icon {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 760px) {
  body:has(.foundation-app:not(.hidden)) {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .foundation-app {
    padding-bottom: 0;
  }

  .foundation-app aside {
    position: fixed;
    z-index: 80;
    left: 10px;
    right: 10px;
    bottom: max(8px, env(safe-area-inset-bottom));
    top: auto;
    width: auto;
    height: 66px;
    padding: 5px 7px;
    overflow: hidden;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(18px);
  }

  .foundation-app aside nav {
    display: flex;
    align-items: center;
    gap: 5px;
    width: 100%;
    min-width: 0;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }

  .foundation-app aside nav::-webkit-scrollbar {
    display: none;
  }

  .foundation-app aside nav button {
    position: relative;
    display: grid;
    flex: 0 0 50px;
    place-items: center;
    width: 50px;
    min-height: 52px;
    height: 52px;
    padding: 0;
    border-radius: 17px;
    scroll-snap-align: center;
    color: #64748b;
  }

  .foundation-app aside nav button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .foundation-app aside nav button .nav-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.18s ease;
  }

  .foundation-app aside nav button.active {
    background: linear-gradient(145deg, #10b981, #059669);
    color: #fff;
    box-shadow: 0 8px 18px rgba(16, 185, 129, 0.3);
  }

  .foundation-app aside nav button.active .nav-icon {
    transform: translateY(-1px) scale(1.05);
  }

  .foundation-app aside nav button.active::after {
    content: "";
    position: absolute;
    bottom: 5px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #d1fae5;
  }

  .content {
    padding-bottom: 28px;
  }
}
