/* Compact navigation only where the account sidebar becomes a top tab row. */
@media (max-width: 900px) {
  .customer-dashboard .dashboard-sidebar .dash-section-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
    align-items: center;
    gap: 8px;
    padding: 4px 2px 2px;
    overflow: visible;
  }

  .customer-dashboard .dashboard-sidebar .dash-section-links > [data-slot=sidebar-menu-item] {
    display: flex;
    justify-content: center;
    min-width: 0;
  }

  :root .customer-dashboard .dashboard-sidebar .dash-section-link[data-slot=sidebar-menu-button] {
    display: grid;
    place-items: center;
    width: min(100%, 48px);
    height: auto;
    min-height: 44px;
    aspect-ratio: 1;
    padding: 0;
    gap: 0;
    border: 1px solid var(--dash-border);
    border-radius: 12px;
    background: var(--dash-input);
    color: var(--dash-muted);
    overflow: visible;
    box-shadow: 0 2px 5px #102b3510;
  }

  .customer-dashboard .dashboard-sidebar .dash-section-link > .dash-section-label {
    display: none;
  }

  :root .customer-dashboard .dashboard-sidebar .dash-section-link > svg {
    width: 21px !important;
    height: 21px !important;
    color: currentColor;
  }

  :root .customer-dashboard .dashboard-sidebar .dash-section-link[aria-current=page] {
    background: color-mix(in srgb, var(--dash-accent) 14%, var(--dash-card));
    color: var(--dash-accent);
    border-color: color-mix(in srgb, var(--dash-accent) 45%, var(--dash-border));
    box-shadow: 0 2px 7px #087f7014;
  }

  .customer-dashboard .dashboard-sidebar .dash-section-link:focus-visible {
    outline: 2px solid var(--dash-accent);
    outline-offset: 3px;
  }

  .customer-dashboard .dashboard-sidebar .dash-section-link > small {
    position: absolute;
    inset-block-start: 2px;
    inset-inline-end: 2px;
    margin: 0;
    min-width: 15px;
    padding: 0 3px;
    border-radius: 5px;
    font-size: 10px;
    line-height: 1.5;
    background: var(--dash-accent);
    color: var(--dash-card);
    text-align: center;
  }
}

@media (max-width: 600px) {
  .customer-dashboard .dashboard-sidebar .dash-section-links {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .customer-dashboard .dashboard-sidebar .dash-section-links[data-area=wallet] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
