
.slider-container {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    touch-action: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.slider-track {
    position: absolute;
}

.slider-left-gutter,
.slider-right-gutter {
    position: absolute;
    height: 4px;
    top: -2px;
    border-radius: 2px;
    background: #444444;
}

.slider-left-gutter {
    left: 0;
    opacity: 0.3;
}

.slider-right-gutter {
    opacity: 0.2;
}

.knob-container {
    width: 0;
    height: 0;
    position: absolute;
    top: 0;
    left: 0;
}

.slider-knob {
    position: absolute;
    width: 30px;
    height: 40px;
    border-radius: 15px;
    left: -15px;
    top: -20px;
    cursor: grab;
    touch-action: none;
    outline: none;
    box-sizing: border-box;
    background: #eee;
    box-shadow: 0 0 1px inset rgba(0, 0, 0, 0.3), 0 0 1px rgba(0, 0, 0, 0.07);
    transition-property: transform;
    transition-timing-function: ease-out;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.slider-knob-pressed {
    background: #c9c9c9;
    cursor: grabbing;
}

.slider-knob:focus-visible {
    box-shadow: 0 0 0 4px rgba(60, 60, 60, 0.16);
}

.slider-ticks,
.slider-tick {
    position: absolute;
    pointer-events: none;
}

.slider-tick {
    background: #444444;
}

.seg-track {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    padding: 2px;
    border-radius: 9999px;
    background: #eee;
    box-shadow: 0 0 1px inset rgba(0, 0, 0, 0.3), 0 0 1px rgba(0, 0, 0, 0.07);
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.seg-row {
    position: relative;
    display: flex;
    width: 100%;
}

.seg-indicator {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    border-radius: 9999px;
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.32, 0.72, 0, 1);
    will-change: transform;
}

.seg-button {
    position: relative;
    z-index: 1;
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.seg-button:focus-visible {
    outline: 2px solid rgba(60, 60, 60, 0.3);
    outline-offset: -4px;
    border-radius: 999px;
}

.seg-label {
    display: inline-block;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
    transition-property: transform, color;
    transition-timing-function: ease-out;
    will-change: transform;
}

.menu-container {
    position: relative;
    display: inline-block;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

.menu-button {
    display: inline-flex;
    align-items: center;
    padding: 8px 23px;
    border-radius: 50px;
    background: #eee;
    color: #0d0d0d;
    box-shadow: 0 0 1px inset rgba(0, 0, 0, 0.3), 0 0 1px rgba(0, 0, 0, 0.07);
    white-space: nowrap;
    cursor: pointer;
    outline: none;
    touch-action: manipulation;
    transition-property: transform;
    transition-timing-function: ease-out;
    will-change: transform;
}

.menu-button:hover {
    background: #d5d5d5;
}

.menu-button-open,
.menu-button-open:hover {
    background: #c9c9c9;
}

.menu-button:focus-visible {
    box-shadow: 0 0 0 4px rgba(60, 60, 60, 0.16);
}

.menu-button-disabled {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}

.menu-label {
    display: inline-block;
}

.menu-chevron {
    display: inline-block;
    position: relative;
    top: 1px;
    flex: none;
    width: 12px;
    height: 8px;
    margin-left: 9px;
}

.menu-popup {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 1;
    box-sizing: border-box;
    padding: 10px 0;
    border-radius: 10px;
    background: #eee;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 0 1px inset rgba(0, 0, 0, 0.3), 0 0 1px rgba(0, 0, 0, 0.07), 0 10px 22px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.16);
    transform: translateY(-6px) scale(0.96);
    transform-origin: top left;
    transition-property: opacity, transform, visibility;
    transition-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
}

.menu-popup-above {
    top: auto;
    bottom: calc(100% + 6px);
    transform: translateY(6px) scale(0.96);
}

.menu-popup-right {
    left: auto;
    right: 0;
}

.menu-popup-open {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.menu-item {
    display: block;
    padding: 8px 18px;
    margin: 0 6px;
    border-radius: 8px;
    color: #0d0d0d;
    white-space: nowrap;
    cursor: pointer;
    outline: none;
}

.menu-item:hover,
.menu-item:focus-visible {
    background: #d5d5d5;
}

.switch-track {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 28px;
    border-radius: 14px;
    cursor: pointer;
    outline: none;
    touch-action: manipulation;
    transition-property: transform;
    transition-timing-function: ease-out;
    will-change: transform;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

.switch-background {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: 14px;
    background: #eee;
    box-shadow: 0 0 1px inset rgba(0, 0, 0, 0.3), 0 0 1px rgba(0, 0, 0, 0.07);
    transition-property: background-color;
    transition-timing-function: cubic-bezier(0.32, 0.72, 0, 1);
}

.switch-on .switch-background {
    background: #91abb0;
}

.switch-track:focus-visible .switch-background {
    box-shadow: 0 0 0 4px rgba(60, 60, 60, 0.16);
}

.switch-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 0.5px 1px rgba(0, 0, 0, 0.13);
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.32, 0.72, 0, 1);
    will-change: transform;
}

.switch-on .switch-knob {
    transform: translateX(20px);
}

.progress-dialog {
    width: 350px;
    max-width: calc(100% - 68px);
    margin: 100px auto auto;
    padding: 18px;
    border: 0;
    border-radius: 10px;
    box-sizing: border-box;
    background: #eee;
    color: #0d0d0d;
    box-shadow: 0 0 1px inset rgba(0, 0, 0, 0.3), 0 0 1px rgba(0, 0, 0, 0.07), 0 10px 22px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.16);
    outline: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

.progress-dialog::backdrop {
    background: rgba(255, 255, 255, 0.6);
}

.progress-label {
    display: block;
    margin-bottom: 14px;
}

.progress-bar {
    height: 4px;
    border-radius: 2px;
    background: rgba(68, 68, 68, 0.2);
}

.progress-fill {
    width: 0;
    min-width: 4px;
    height: 100%;
    border-radius: 2px;
    background: #0d0d0d;
}
