.insights-satisfaction-config .insights-satisfaction-section {
    background: var(--tblr-bg-surface, #ffffff);
    border: 1px solid var(--tblr-border-color, #e6e8ec);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease-in-out;
}

.insights-satisfaction-config .insights-range-value-pill {
    display: inline-flex;
    align-items: center;
    background: var(--tblr-bg-subtle, #f8fafc);
    border: 1px solid var(--tblr-border-color, #e2e8f0);
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--tblr-body-color, #1e293b);
    gap: 0.4rem;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

.insights-satisfaction-config .insights-range-value-pill .badge-start {
    color: #d63939;
}

.insights-satisfaction-config .insights-range-value-pill .badge-end {
    color: #3a266b;
}

.insights-satisfaction-config .insights-range-value-pill .badge-sep {
    color: var(--tblr-secondary, #94a3b8);
    font-weight: 400;
}

.insights-satisfaction-config .insights-range-container {
    position: relative;
    padding-top: 1.5rem;
}

.insights-satisfaction-config .insights-scale-title {
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--tblr-secondary, #64748b);
    margin-bottom: 0.75rem;
}

.insights-satisfaction-config .insights-range-slider {
    position: relative;
    height: 2.75rem;
    width: 100%;
    display: flex;
    align-items: center;
    user-select: none;
}

.insights-satisfaction-config .insights-range-slider-track {
    position: absolute;
    left: 0;
    right: 0;
    height: 0.625rem;
    border-radius: 9999px;
    background: var(--tblr-border-color-light, #e2e8f0);
    z-index: 1;
}

.insights-satisfaction-config .insights-range-slider-fill {
    position: absolute;
    height: 0.625rem;
    border-radius: 9999px;
    z-index: 1;
    background: var(--tblr-primary, #206bc4);
    left: var(--start-pct, 0%);
    width: calc(var(--end-pct, 100%) - var(--start-pct, 0%));
    transition: background-color 0.2s ease;
}

.insights-satisfaction-config .insights-range-slider--csat .insights-range-slider-fill,
.insights-satisfaction-config .insights-range-slider--promoter .insights-range-slider-fill {
    background: linear-gradient(90deg, #2fb344, #20bf55);
}

.insights-satisfaction-config .insights-range-slider--detractor .insights-range-slider-fill {
    background: linear-gradient(90deg, #d63939, #fa5252);
}

.insights-satisfaction-config .insights-range-slider--neutral .insights-range-slider-fill {
    background: linear-gradient(90deg, #f59f00, #ff922b);
}

.insights-satisfaction-config .insights-range-slider-thumb {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    pointer-events: none;
    z-index: 2;
}

.insights-satisfaction-config .insights-range-slider-thumb--end {
    z-index: 3;
}

.insights-satisfaction-config .insights-range-slider-thumb:focus {
    outline: none;
}

.insights-satisfaction-config .insights-range-slider-thumb::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    pointer-events: auto;
    cursor: grab;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: #ffffff;
    border: 3.5px solid #d63939;
    box-shadow: 0 2px 6px rgba(214, 57, 57, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.insights-satisfaction-config .insights-range-slider-thumb--end::-webkit-slider-thumb {
    border-color: #3a266b;
    box-shadow: 0 2px 6px rgba(58, 38, 107, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.insights-satisfaction-config .insights-range-slider-thumb::-webkit-slider-thumb:hover {
    transform: scale(1.18);
    cursor: grabbing;
}

.insights-satisfaction-config .insights-range-slider-thumb--start::-webkit-slider-thumb:hover {
    box-shadow: 0 3px 8px rgba(214, 57, 57, 0.45), 0 0 0 4px rgba(214, 57, 57, 0.15);
}

.insights-satisfaction-config .insights-range-slider-thumb--end::-webkit-slider-thumb:hover {
    box-shadow: 0 3px 8px rgba(58, 38, 107, 0.45), 0 0 0 4px rgba(58, 38, 107, 0.15);
}

.insights-satisfaction-config .insights-range-slider-thumb:focus-visible::-webkit-slider-thumb {
    box-shadow: 0 0 0 5px rgba(32, 107, 196, 0.25);
}

.insights-satisfaction-config .insights-range-slider-thumb::-moz-range-thumb {
    -moz-appearance: none;
    appearance: none;
    pointer-events: auto;
    cursor: grab;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: #ffffff;
    border: 3.5px solid #d63939;
    box-shadow: 0 2px 6px rgba(214, 57, 57, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.insights-satisfaction-config .insights-range-slider-thumb--end::-moz-range-thumb {
    border-color: #3a266b;
    box-shadow: 0 2px 6px rgba(58, 38, 107, 0.35);
}

.insights-satisfaction-config .insights-range-slider-thumb::-moz-range-thumb:hover {
    transform: scale(1.18);
    cursor: grabbing;
}

.insights-satisfaction-config .insights-range-slider-thumb::-webkit-slider-runnable-track {
    background: transparent !important;
    border: none !important;
}

.insights-satisfaction-config .insights-range-slider-thumb::-moz-range-track {
    background: transparent !important;
    border: none !important;
}

.insights-satisfaction-config .insights-thumb-tooltip {
    position: absolute;
    top: -2.1rem;
    transform: translateX(-50%);
    background: #1e293b;
    color: #ffffff;
    font-size: 0.725rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 0.35rem;
    pointer-events: none;
    white-space: nowrap;
    z-index: 4;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    transition: left 0.05s ease-out, transform 0.15s ease;
}

.insights-satisfaction-config .insights-thumb-tooltip::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 4px 4px 0;
    border-style: solid;
    border-color: #1e293b transparent transparent;
}

.insights-satisfaction-config .insights-thumb-tooltip--start {
    background: #d63939;
}

.insights-satisfaction-config .insights-thumb-tooltip--start::after {
    border-color: #d63939 transparent transparent;
}

.insights-satisfaction-config .insights-thumb-tooltip--end {
    background: #3a266b;
}

.insights-satisfaction-config .insights-thumb-tooltip--end::after {
    border-color: #3a266b transparent transparent;
}

.insights-satisfaction-config .insights-scale-ticks {
    display: flex;
    justify-content: space-between;
    margin-top: 0.25rem;
    padding: 0 0.75rem;
}

.insights-satisfaction-config .insights-scale-ticks .tick-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--tblr-secondary, #94a3b8);
    cursor: pointer;
    transition: color 0.15s ease;
}

.insights-satisfaction-config .insights-scale-ticks .tick-step i {
    width: 2px;
    height: 5px;
    background: var(--tblr-border-color, #cbd5e1);
    margin-bottom: 2px;
    border-radius: 1px;
    transition: background-color 0.15s ease, height 0.15s ease;
}

.insights-satisfaction-config .insights-scale-ticks .tick-step:hover {
    color: var(--tblr-primary, #206bc4);
}

.insights-satisfaction-config .insights-scale-ticks .tick-step.is-active {
    color: var(--tblr-body-color, #0f172a);
    font-weight: 700;
}

.insights-satisfaction-config .insights-scale-ticks .tick-step.is-active i {
    background: var(--tblr-primary, #206bc4);
    height: 7px;
}

.insights-satisfaction-config .insights-nps-range {
    border-top: 1px solid var(--tblr-border-color-light, #e2e8f0);
    margin-top: 1.25rem;
    padding-top: 1.25rem;
}

.insights-satisfaction-config .insights-nps-range:first-child {
    border-top: 0;
    margin-top: 0;
    padding-top: 0;
}

.insights-satisfaction-config #nps_thresholds.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

