@layer components {
  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1024px;
    z-index: 200;
    display: flex;
    justify-content: space-around;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 8px 0;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
  }

  .bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: var(--radius-lg);
    min-height: var(--touch-target);
  }

  .bottom-nav__item:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: -2px;
  }

  .bottom-nav__item svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-text-muted);
    stroke-width: 2;
    fill: none;
  }

  .bottom-nav__item span {
    font-size: 11px;
    font-weight: var(--weight-semibold);
    color: var(--color-text-muted);
  }

  .bottom-nav__item--active svg {
    stroke: var(--color-accent-fg);
  }

  .bottom-nav__item--active span {
    color: var(--color-accent-fg);
  }

  /* Light themes: surface bg blends into white body — elevate with subtle shadow */
  :root[data-theme^="light"] .bottom-nav {
    box-shadow: 0 -1px 3px rgb(0 0 0 / 5%);
  }
}
