/* Community navigation shares the shop dock's shape and spacing. */
@media (max-width: 860px) {
  .portal-bottom-nav.portal-bottom-nav-pill {
    display: flex;
    align-items: center;
    justify-content: initial;
    left: max(10px, env(safe-area-inset-left));
    right: max(10px, env(safe-area-inset-right));
    bottom: calc(10px + env(safe-area-inset-bottom));
    height: 52px;
    max-width: 540px;
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    pointer-events: none;
  }

  .portal-bottom-nav-pill .portal-bottom-sections {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1 1 0;
    min-width: 0;
    height: 52px;
    gap: 6px;
    padding: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-padding-inline: 4px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    background: rgba(22, 24, 30, .72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
    pointer-events: auto;
  }

  .portal-bottom-sections::-webkit-scrollbar { display: none; }

  .portal-bottom-nav-pill .portal-bottom-section {
    display: inline-flex;
    flex: 1 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    background: rgba(255, 255, 255, .035);
    color: #e3e5eb;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
  }

  .portal-bottom-nav-pill .portal-bottom-section.is-active {
    color: #ffe4ba;
    font-weight: 700;
    border-color: #ffbf73;
    background: rgba(255, 166, 64, .30);
    box-shadow: inset 0 0 0 1px rgba(255, 183, 94, .10);
  }

  .portal-bottom-nav-pill > .portal-bottom-profile {
    display: flex;
    flex: 0 0 52px;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 52px;
    min-width: 52px;
    height: 52px;
    padding: 3px;
    gap: 0;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
    background: rgba(18, 21, 28, .60);
    color: #e3e5eb;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    pointer-events: auto;
  }

  .portal-bottom-nav-pill > .portal-bottom-profile.is-active {
    color: #ffe4ba;
    border-color: #ffbf73;
    background: rgba(255, 166, 64, .24);
  }

  .portal-bottom-nav-pill > .portal-bottom-profile .portal-avatar {
    display: block;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    overflow: hidden;
    outline: none;
  }

  .portal-bottom-nav-pill .portal-bottom-section:focus-visible {
    outline: 2px solid #ffbf73;
    outline-offset: -3px;
  }
  .portal-bottom-nav-pill > .portal-bottom-profile:focus-visible {
    outline: 2px solid #ffbf73;
    outline-offset: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-bottom-nav-pill .portal-bottom-section { transition: none; }
}
