.shell-primary-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.shell-primary-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.65rem 0.95rem;
    border-radius: 999px;
    border: 1px solid transparent;
    color: var(--text-secondary);
    text-decoration: none;
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.shell-primary-nav-link:hover {
    color: var(--text-primary);
    background: color-mix(in srgb, var(--surface-2) 84%, transparent);
    border-color: var(--border-subtle);
    transform: translateY(-1px);
}

.shell-primary-nav-link:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

.shell-primary-nav-link.active {
    color: var(--text-primary);
    background: color-mix(in srgb, var(--accent-1) 84%, var(--surface-2));
    border-color: color-mix(in srgb, var(--accent-3) 45%, var(--border-default));
    box-shadow: inset 0 1px 0 color-mix(in srgb, var(--text-on-accent) 16%, transparent);
}

.shell-primary-nav-link.is-tools-link {
    color: color-mix(in srgb, var(--info-3) 42%, var(--text-secondary));
}

.shell-primary-nav-link.is-tools-link:hover {
    background: color-mix(in srgb, var(--surface-tooling) 86%, transparent);
    border-color: color-mix(in srgb, var(--info-2) 35%, var(--border-default));
}

.shell-primary-nav-link.is-tools-link.active {
    background: color-mix(in srgb, var(--surface-tooling) 92%, var(--surface-2));
    border-color: color-mix(in srgb, var(--info-2) 46%, var(--border-default));
}

.shell-primary-nav-label {
    font-size: 0.92rem;
    line-height: 1;
    white-space: nowrap;
}

.shell-primary-nav.is-bottom-nav {
    justify-content: space-between;
    gap: 0.35rem;
    padding: 0.35rem;
    border: 1px solid var(--border-default);
    border-radius: 24px;
    background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
    box-shadow: var(--shadow-1);
    backdrop-filter: blur(18px);
}

.shell-primary-nav.is-bottom-nav .shell-primary-nav-link {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: 0.45rem;
}

.shell-primary-nav.is-bottom-nav .shell-primary-nav-label {
    font-size: 0.78rem;
}

@media (max-width: 767.98px) {
    .shell-primary-nav.is-top-nav {
        display: none;
    }
}
