.site-shell-switcher {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin-top: 0.75rem;
    padding: 0.625rem;
    border: 1px solid var(--border, rgba(0, 0, 0, 0.08));
    border-radius: 0;
    background: var(--muted, #f4f4f7);
    overflow: hidden;
}

.site-shell-switcher *,
.site-shell-switcher *::before,
.site-shell-switcher *::after {
    box-sizing: border-box;
}

.site-shell-switcher__label {
    margin: 0 0 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--muted-foreground, #717182);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.site-shell-switcher__buttons {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.375rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.site-shell-switcher__btn {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    border: 1px solid var(--border, rgba(0, 0, 0, 0.08));
    background: var(--card, #fff);
    color: inherit;
    border-radius: 0;
    padding: 0.5rem 0.25rem;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

.site-shell-switcher__btn.is-active {
    background: var(--primary, #5B67F5);
    border-color: var(--primary, #5B67F5);
    color: var(--primary-foreground, #fff);
}

.site-shell-switcher__tag {
    font-size: 0.625rem;
    font-weight: 600;
    opacity: 0.75;
}

/* Narrow drawers / sidebars */
.sidebar-menu .site-shell-switcher,
.tn-drawer__section .site-shell-switcher,
.tn-filters .site-shell-switcher,
.tn-filter-block .site-shell-switcher {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.tn-body .site-shell-switcher {
    background: var(--tn-surface-2, #fafafa);
    border-color: var(--tn-border, #dddddd);
}

.tn-body .site-shell-switcher__btn {
    border-radius: 0;
    font-size: 0.72rem;
}
