.ecosystem-nav { padding-block: 16px; border-bottom: 1px solid var(--ui-border); }
.ecosystem-nav__toggle { display: none; }
.ecosystem-nav__scroller { overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--ui-border) transparent; }
.ecosystem-nav__list { display: flex; width: max-content; min-width: 100%; justify-content: center; gap: 8px; list-style: none; margin: 0; padding: 4px; box-sizing: border-box; }
.ecosystem-nav__list a { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 12px; box-sizing: border-box; white-space: nowrap; border-radius: var(--ui-radius); border-bottom: 2px solid transparent; color: var(--ui-muted); text-decoration: none; font-size: 14px; font-weight: 500; }
.ecosystem-nav svg { width: 20px; height: 20px; flex: 0 0 20px; }
.ecosystem-nav__list a:hover { background: var(--ui-selected); color: var(--eco-accent); }
.ecosystem-nav__list a[aria-current] { background: var(--ui-selected); color: var(--eco-accent); border-bottom-color: currentColor; font-weight: 600; }
.ecosystem-nav .ecosystem-nav__check { display: none; }
.ecosystem-nav__scroller { background: linear-gradient(to right, var(--ui-border), transparent) left center / 8px 100%, linear-gradient(to left, var(--ui-border), transparent) right center / 8px 100%; background-repeat: no-repeat; }
.ecosystem-nav:not([data-overflow]) .ecosystem-nav__scroller { background: none; }
.ecosystem-nav__toggle:focus-visible { outline: 2px solid var(--eco-accent); outline-offset: 4px; }
@media (max-width: 640px) {
    .ecosystem-nav { position: relative; }
    .ecosystem-nav[data-enhanced] .ecosystem-nav__toggle { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 12px 16px; background: var(--ui-surface); color: var(--eco-accent); border: 1px solid var(--ui-border); border-radius: var(--ui-radius); font: inherit; font-weight: 600; cursor: pointer; text-align: left; }
    .ecosystem-nav__chevron { margin-left: auto; }
    .ecosystem-nav__toggle[aria-expanded='true'] .ecosystem-nav__chevron { transform: rotate(180deg); }
    .ecosystem-nav[data-enhanced] .ecosystem-nav__scroller { display: none; }
    .ecosystem-nav[data-enhanced][data-open] .ecosystem-nav__scroller { display: block; margin-top: 8px; }
    .ecosystem-nav .ecosystem-nav__scroller { overflow: visible; background: none; }
    .ecosystem-nav__list { width: 100%; min-width: 0; flex-direction: column; gap: 4px; border: 1px solid var(--ui-border); border-radius: var(--ui-radius); background: var(--ui-surface); padding: 8px; }
    .ecosystem-nav__list a { min-height: 48px; white-space: normal; border-bottom: 0; font-size: 16px; }
    .ecosystem-nav .ecosystem-nav__check { display: block; margin-left: auto; }
}
