.curve-editor-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
    z-index: 1200;
    pointer-events: none;
}

.curve-editor-overlay.hidden {
    display: none;
}

.curve-editor {
    --curve-channel-offset: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
    padding: 8px;
    box-shadow: none;
    border: none;
    max-width: 820px;
    width: min(96%, 820px);
    transform: translateY(calc(-0.5 * var(--curve-channel-offset)));
    position: relative;
    padding-bottom: var(--curve-channel-offset);
    pointer-events: auto;
}

.curve-canvas {
    border: none;
    border-radius: 0;
    background: transparent;
    cursor: crosshair;
    box-shadow: none;
}

.curve-channels {
    display: flex;
    gap: 8px;
    justify-content: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: calc(100% + 65px);
    z-index: 10;
}

.curve-channel-btn {
    width: 32px;
    height: 32px;
    border: 2px solid transparent;
    background: var(--btn-bg);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.curve-channel-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.curve-channel-btn.active {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(var(--accent-color-rgb), 0.3);
}

.channel-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    pointer-events: none;
}
