.brono-tab-switch {
    --brono-tab-switch-x: 0px;
    --brono-tab-switch-width: 0px;
    position: relative;
    display: inline-flex;
    align-items: stretch;
    padding: 4px;
    border-radius: 12px;
    background: var(--br-tertiary-bg, #f2f3f5);
    isolation: isolate;
}

.brono-tab-switch__indicator {
    position: absolute;
    z-index: 0;
    top: 4px;
    bottom: 4px;
    left: 0;
    width: var(--brono-tab-switch-width);
    border-radius: 9px;
    background: var(--br-body-bg, #fff);
    box-shadow: 0 2px 8px rgba(22, 29, 37, 0.08);
    transform: translateX(var(--brono-tab-switch-x));
    transition: width 0.24s ease, transform 0.24s ease;
    pointer-events: none;
}

.brono-tab-switch__input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.brono-tab-switch__option {
    position: relative;
    z-index: 1;
    display: inline-flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    min-width: 0;
    margin: 0;
    padding: 10px 14px;
    border-radius: 9px;
    color: var(--br-secondary-color, #6c757d);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.2s ease;
    user-select: none;
}

.brono-tab-switch__input:checked + .brono-tab-switch__option {
    color: var(--br-body-color, #161d25);
}

.brono-tab-switch__input:focus-visible + .brono-tab-switch__option {
    outline: 2px solid var(--br-primary, #0d6efd);
    outline-offset: -2px;
}

@media (prefers-reduced-motion: reduce) {
    .brono-tab-switch__indicator,
    .brono-tab-switch__option {
        transition: none;
    }
}
