.sg-segment-switch {
    --sg-segment-switch-pad: 3px;
    --sg-segment-count: 2;
    --sg-segment-offset: 0px;
    --sg-segment-drag: 0px;
    --sg-segment-min-width: 172px;
    position: relative;
    display: grid;
    grid-template-columns: repeat(var(--sg-segment-count), minmax(0, 1fr));
    align-items: center;
    min-width: var(--sg-segment-min-width);
    min-height: 40px;
    padding: var(--sg-segment-switch-pad);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
        rgba(8, 9, 11, 0.76);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow: hidden;
    touch-action: pan-y;
    user-select: none;
    cursor: grab;
}

.sg-segment-switch__thumb {
    position: absolute;
    z-index: 0;
    top: var(--sg-segment-switch-pad);
    bottom: var(--sg-segment-switch-pad);
    left: var(--sg-segment-switch-pad);
    width: var(--sg-segment-thumb-width, calc(50% - var(--sg-segment-switch-pad)));
    border: 1px solid rgba(255, 122, 47, 0.44);
    border-radius: 6px;
    background:
        linear-gradient(135deg, rgba(255, 122, 47, 0.78), rgba(221, 24, 30, 0.28)),
        rgba(255, 122, 47, 0.18);
    box-shadow: 0 8px 20px rgba(255, 122, 47, 0.18);
    transform: translateX(calc(var(--sg-segment-offset) + var(--sg-segment-drag)));
    transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.18, 1), border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
    pointer-events: none;
    will-change: transform;
}

.sg-segment-switch.is-dragging {
    cursor: grabbing;
}

.sg-segment-switch.is-dragging .sg-segment-switch__thumb {
    transition: none;
}

.sg-segment-switch__item {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 34px;
    padding: 0 12px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #aeb7c4;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: color 0.18s ease, transform 0.18s ease;
}

.sg-segment-switch__item--active {
    color: #ffffff;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.22);
}

.sg-segment-switch__item:not(.sg-segment-switch__item--active):hover {
    color: #f4f6f8;
}

.sg-segment-switch__item:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 122, 47, 0.20);
}
