/* EFFECTS LAYOUT */
.fx-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
    padding: 6px 10px 0 10px;
    width: 100%;
}

.fx-header h3 {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-primary);
    margin: 0 0 var(--spacing-md) 0;
    text-align: left;
    padding-left: var(--spacing-sm);
    position: relative;
    appearance: none;
    -webkit-appearance: none; 
    -moz-appearance: none;
}

.fx-header h3::after {
    content: '';
    position: absolute;
    left: var(--spacing-sm);
    right: auto;
    width: 75px;
    bottom: -8px;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.effects-header {
    position: relative;
    padding: 0 10px 2px 10px;
    text-align: center; 
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.effects-header h3 {
    font-family: "JetBrains Mono", "SF Mono", "Roboto Mono", Menlo, Monaco, "Courier New", monospace;
    font-weight: 700;
    letter-spacing: 2px;
    position: relative;
    text-transform: uppercase;
    font-size: 12px;
    text-align: left;
    margin: 0;
    flex: 0 0 auto;
}

.master-volume-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    margin-left: auto;
}

.master-volume-label {
    font-family: "JetBrains Mono", "SF Mono", "Roboto Mono", Menlo, Monaco, "Courier New", monospace;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    opacity: 1;
}

/* Horizontal Master Volume Wheel (based on MW wheel design) */
.master-volume-wheel-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    position: relative;
    z-index: var(--z-above, 10);
}

.master-volume-wheel-track {
    width: 60px;
    height: 6px;
    border-radius: 0;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    touch-action: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.master-volume-wheel-track::after {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    pointer-events: none;
    z-index: 1;
}

.master-volume-wheel-thumb {
    position: absolute;
    width: 16px;
    height: 4px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.6);
    z-index: 2;
    transition: left 0.15s ease;
    opacity: 1;
    border: none;
}

.effects-info {
    font-size: var(--text-sm);
    color: #888;
}

/* Effects Container & Scrolling */
.effects-scroll-container {
    display: flex;
    gap: 4px;
    align-items: flex-start;
    margin-bottom: 0;
    margin-right: -9px;
}

.effects-container {
    overflow-y: auto;
    overflow-x: hidden;
    height: 360px;
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
    box-sizing: border-box;
    position: relative;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.effects-container::-webkit-scrollbar {
    display: none;
}

.effects-container .fx-section {
    min-width: 0;
    max-width: 100%;
    flex: none;
    margin: 3px 0px;
    background: rgba(28, 28, 28, 0.1);
}

.effects-container .fx-section:last-child {
    margin-bottom: 0;
}

/* FX Section Base */
.fx-section {
    min-width: 150px;
    max-width: 200px;
    margin: 5px;
    border-radius: 2px;
    border: 1px solid var(--border-color-dark);
    transition: box-shadow 0.3s;
    position: relative;
}

.fx-section-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    cursor: pointer;
    padding: 5px 8px;
    gap: 8px;
}

.fx-section-header:hover .fx-name {
    color: rgba(255, 255, 255, 0.9);
}

.fx-section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.2s ease;
    box-sizing: border-box;
    opacity: 0;
    padding: 0;
    transform: translateZ(0);
    position: relative;
}

.fx-section-content.expanded {
    max-height: 1000px;
    padding: 6px 10px 10px 10px;
    opacity: 1;
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/*
 * Disabled (toggled-off) effect drawer — issue #1758.
 *
 * When an effect is off, `.fx-disabled` is set on its `.fx-section` (by the
 * power-dot handler in audio-enable.js). We dim the expanded controls and the
 * effect name so the off state is unmistakable, while keeping the power dot and
 * header fully bright so re-enabling stays obvious. We deliberately do NOT set
 * `pointer-events: none`: the off-state controls must still be adjustable
 * (e.g. the compressor crossover / G_EQ curve preview, issue #650), and the
 * dimming is applied only to the expanded content so the collapse transition is
 * unaffected.
 */
.fx-section.fx-disabled .fx-section-content.expanded {
    opacity: 0.4;
}

.fx-section.fx-disabled .fx-name {
    color: rgba(255, 255, 255, 0.4);
}

/* Keep the power dot and its hover at full strength even while disabled. */
.fx-section.fx-disabled .fx-toggle.fx-power {
    opacity: 1;
}

/* Effect Power Dot (replaces old text button) */
.fx-toggle.fx-power {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
    width: 10px;
    height: 10px;
    min-width: 10px;
    flex-shrink: 0;
    transition: background 0.15s ease, border-color 0.15s ease;
    order: 0;
    font-size: 0;
}

.fx-toggle.fx-power:hover {
    border-color: rgba(255, 255, 255, 0.7);
    transform: none;
}

.fx-toggle::after {
    display: none;
}

/* Effect name label in header */
.fx-name {
    font-family: "JetBrains Mono", "SF Mono", "Roboto Mono", Menlo, Monaco, "Courier New", monospace;
    color: rgba(255, 255, 255, 0.7);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    flex: 1;
    order: 1;
    user-select: none;
    cursor: pointer;
}

/* Drag handle (future: drag-and-drop reorder) */
.fx-expand {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.35);
    padding: 0;
    cursor: grab;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.15s ease;
    order: 2;
    font-family: "JetBrains Mono", "SF Mono", "Roboto Mono", Menlo, Monaco, "Courier New", monospace;
}

.fx-expand:hover {
    color: rgba(255, 255, 255, 0.7);
}

.fx-expand:active {
    cursor: grabbing;
}

/* Force active power dot to be solid color */
.fx-section[data-effect="str"] .fx-toggle.fx-power.active { background: var(--fx-str-color); border-color: var(--fx-str-color); }
.fx-section[data-effect="sat"] .fx-toggle.fx-power.active { background: var(--fx-sat-color); border-color: var(--fx-sat-color); }
.fx-section[data-effect="eq"] .fx-toggle.fx-power.active { background: var(--fx-eq-color); border-color: var(--fx-eq-color); }
.fx-section[data-effect="geq"] .fx-toggle.fx-power.active { background: var(--fx-eq-color); border-color: var(--fx-eq-color); }
.fx-section[data-effect="compressor"] .fx-toggle.fx-power.active { background: var(--fx-cmp-color); border-color: var(--fx-cmp-color); }
.fx-section[data-effect="chorus"] .fx-toggle.fx-power.active { background: var(--fx-cho-color); border-color: var(--fx-cho-color); }
.fx-section[data-effect="flanger"] .fx-toggle.fx-power.active { background: var(--fx-flg-color); border-color: var(--fx-flg-color); }
.fx-section[data-effect="delay"] .fx-toggle.fx-power.active { background: var(--fx-dly-color); border-color: var(--fx-dly-color); }
.fx-section[data-effect="reverb"] .fx-toggle.fx-power.active { background: var(--fx-rev-color); border-color: var(--fx-rev-color); }
.fx-section[data-effect="fxfilter"] .fx-toggle.fx-power.active { background: var(--fx-fil-color); border-color: var(--fx-fil-color); }

/* Old mod-row dropdown styles removed - now using dedicated row classes */

/* EFFECT THEMING - Individual Colors */

/* ============================================
   SATURATOR (SAT) DEDICATED STYLES
   ============================================ */

/* Reset any inherited styles for SAT content */
#satContent {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

/* SAT Row 1: Knobs (Mix, Drive, Tone) */
.sat-row-knobs {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.sat-row-knobs .knob-group {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0;
    margin: 0;
}

/* SAT Row 2: Mode dropdown */
.sat-row-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
    padding: 17px 34px 0 34px;
    margin: 0 0 14px 0;
    box-sizing: border-box;
}

.sat-row-controls label {
    flex: 0 0 auto;
    margin-right: 0;
    margin-bottom: 0;
    text-align: center;
    width: 100%;
}

/* SAT - Deep Crimson (Rich distortion heat) */
.fx-section[data-effect="sat"] {
    border-left: 2px solid rgba(201, 201, 201, 0.25);
    border-top: 1px solid rgba(201, 201, 201, 0.1);
    border-right: 1px solid rgba(201, 201, 201, 0.1);
    border-bottom: 1px solid rgba(201, 201, 201, 0.1);
}

.fx-section[data-effect="sat"] .knob-arc-foreground {
    stroke: var(--fx-sat-color) !important;
}

/* ============================================
   EQUALIZER (EQ) DEDICATED STYLES
   ============================================ */

/* Reset any inherited styles for EQ content */
#eqContent {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

/* EQ Row: Knobs (Low, Mid, High) */
.eq-row-knobs {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 0;
    margin: 0 0 14px 0;
    box-sizing: border-box;
}

.eq-row-knobs .knob-group {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0;
    margin: 0;
}

/* EQ - Vibrant Magenta (Electric frequency shaping) */
.fx-section[data-effect="eq"] {
    border-left: 2px solid rgba(201, 201, 201, 0.25);
    border-top: 1px solid rgba(201, 201, 201, 0.1);
    border-right: 1px solid rgba(201, 201, 201, 0.1);
    border-bottom: 1px solid rgba(201, 201, 201, 0.1);
}

.fx-section[data-effect="eq"] .knob-arc-foreground {
    stroke: var(--fx-eq-color) !important;
}

/* CMP - Royal Purple (Dynamic control) */
.fx-section[data-effect="compressor"] {
    border-left: 2px solid rgba(201, 201, 201, 0.25);
    border-top: 1px solid rgba(201, 201, 201, 0.1);
    border-right: 1px solid rgba(201, 201, 201, 0.1);
    border-bottom: 1px solid rgba(201, 201, 201, 0.1);
}

.fx-section[data-effect="compressor"] .knob-arc-foreground {
    stroke: var(--fx-cmp-color) !important;
}

/* ============================================
   COMPRESSOR (CMP) DEDICATED STYLES
   ============================================ */

/* Reset any inherited styles for CMP content */
#compContent {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

/* CMP Row 1: Knobs (MIX, THRESH/DEPTH, GAIN, TIME) */
.comp-row-knobs {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.comp-row-knobs .knob-group {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0;
    margin: 0;
}

/* CMP Row 2: MB toggle, HIGH X, LOW X */
.comp-row-controls {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 210px;
    align-self: center;
    padding: 20px 0px 8px 0px;
    margin: 0;
    box-sizing: border-box;
}

/* CMP MB Toggle Button */
.comp-mb-toggle {
    width: 33px;
    padding: 2px;
    background: #27272766;
    border: none;
    border-radius: 2px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0px;
    font-family: "JetBrains Mono", "SF Mono", "Roboto Mono", Menlo, Monaco, "Courier New", monospace;
    position: relative;
    z-index: 100;
    pointer-events: auto;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.comp-mb-toggle:hover {
    background: rgba(201, 201, 201, 0.3);
}

.comp-mb-toggle.active {
    background: rgba(201, 201, 201, 0.6);
    color: #fff;
    font-weight: bold;
}

/* CMP Crossover Knobs */
.comp-crossover-knob {
    width: 43px;
    height: 43px;
    transform: scale(0.7);
    transform-origin: center;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

/* CMP Row 3: Multiband Meter */
.comp-row-meter {
    position: relative;
    z-index: 1;
    margin-top: -20px;
    width: 100%;
    padding: 9px;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Multiband Meter Container */
.comp-multiband-meter {
    width: 100%;
    min-height: 39px;
    max-height: 50px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 6px 6px 6px 2px;
    position: relative;
    box-sizing: border-box;
}

/* Meter Bar (High/Mid/Low) */
.comp-meter-bar {
    flex: 1;
    min-height: 10px;
    display: flex;
    align-items: center;
    position: relative;
    background: transparent;
    box-sizing: border-box;
}

/* Meter Value Display */
.comp-meter-value {
    width: 36px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.95);
    text-align: right;
    padding-right: 4px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    line-height: 1;
    text-shadow: 0 0 4px rgba(201, 201, 201, 0.6);
    flex-shrink: 0;
}

/* Meter Visual Container */
.comp-meter-visual {
    flex: 1;
    height: 100%;
    min-height: 10px;
    position: relative;
    background: linear-gradient(90deg, rgba(15, 15, 25, 0.9) 0%, rgba(25, 25, 35, 0.9) 50%, rgba(15, 15, 25, 0.9) 100%);
    border: none;
    border-radius: 3px;
    overflow: visible;
    pointer-events: auto;
    cursor: ew-resize;
    box-sizing: border-box;
}

/* Meter Expand Region - the one place in this app where color IS carrying
   real information: expand (gain going up) and compress (gain going down)
   sit side by side in the same bar with no separate text label, only the
   H/M/L band letter and a numeric readout that doesn't say which side is
   which. So rather than collapse both to the single accent, each keeps its
   source color's own relative luminance - expand stays the darker of the
   pair at every band, compress the lighter - so the distinction still reads
   at a glance without the hue. */
.comp-meter-expand-region {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0%;
    background: linear-gradient(90deg, rgba(124, 124, 124, 0.7) 0%, rgba(98, 98, 98, 0.6) 50%, rgba(81, 81, 81, 0.5) 100%);
    border: none;
    outline: none;
    z-index: 1;
    pointer-events: auto;
    cursor: ew-resize;
    box-sizing: border-box;
}

/* Meter Compress Region - see .comp-meter-expand-region above */
.comp-meter-compress-region {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 50%;
    background: linear-gradient(90deg, rgba(143, 143, 143, 0.7) 0%, rgba(127, 127, 127, 0.6) 50%, rgba(110, 110, 110, 0.5) 100%);
    border: none;
    outline: none;
    z-index: 1;
    pointer-events: auto;
    cursor: ew-resize;
    box-sizing: border-box;
}

/* Meter Neutral Region (Gap) */
.comp-meter-neutral-region {
    position: absolute;
    left: 25%;
    top: 0;
    bottom: 0;
    width: 5%;
    background: transparent;
    z-index: 1;
    box-sizing: border-box;
}

/* Meter Input Line - a third, distinct signal (pre-processing level) next
   to the expand/compress regions, so it keeps its own (lightest) grey too. */
.comp-meter-input-line {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0px;
    background: linear-gradient(90deg, rgba(176, 176, 176, 0.5) 0%, rgba(134, 134, 134, 0.4) 100%);
    border-right: 2px solid rgba(171, 171, 171, 0.6);
    z-index: 2;
    box-shadow: 0 0 4px rgba(176, 176, 176, 0.3);
    box-sizing: border-box;
}

/* Meter Label (H/M/L) */
.comp-meter-label {
    width: 10px;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    font-weight: 600;
    padding-left: 2px;
    flex-shrink: 0;
}

/* Single Compressor Meter */
.comp-single-meter {
    width: 100%;
    height: 23px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 2px;
    display: none;
    padding: 2px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.comp-single-meter-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0%;
    background: rgba(110, 110, 110, 0.8);
    transition: width 0.05s linear;
    box-sizing: border-box;
}

/* Band-specific expand region colors - each band a step darker, same
   reasoning as .comp-meter-expand-region above. */
.comp-meter-bar[data-band="high"] .comp-meter-expand-region {
    background: linear-gradient(90deg, rgba(124, 124, 124, 0.7) 0%, rgba(98, 98, 98, 0.6) 50%, rgba(81, 81, 81, 0.5) 100%);
}

.comp-meter-bar[data-band="mid"] .comp-meter-expand-region {
    background: linear-gradient(90deg, rgba(98, 98, 98, 0.65) 0%, rgba(81, 81, 81, 0.55) 50%, rgba(67, 67, 67, 0.45) 100%);
}

.comp-meter-bar[data-band="low"] .comp-meter-expand-region {
    background: linear-gradient(90deg, rgba(81, 81, 81, 0.6) 0%, rgba(67, 67, 67, 0.5) 50%, rgba(57, 57, 57, 0.4) 100%);
}

/* Band-specific compress region colors - each band a step darker, same
   reasoning as .comp-meter-compress-region above. */
.comp-meter-bar[data-band="high"] .comp-meter-compress-region {
    background: linear-gradient(90deg, rgba(143, 143, 143, 0.7) 0%, rgba(127, 127, 127, 0.6) 50%, rgba(110, 110, 110, 0.5) 100%);
}

.comp-meter-bar[data-band="mid"] .comp-meter-compress-region {
    background: linear-gradient(90deg, rgba(127, 127, 127, 0.65) 0%, rgba(110, 110, 110, 0.55) 50%, rgba(93, 93, 93, 0.45) 100%);
}

.comp-meter-bar[data-band="low"] .comp-meter-compress-region {
    background: linear-gradient(90deg, rgba(110, 110, 110, 0.6) 0%, rgba(93, 93, 93, 0.5) 50%, rgba(77, 77, 77, 0.4) 100%);
}

/* ============================================
   CHORUS (CHO) DEDICATED STYLES
   ============================================ */

/* Reset any inherited styles for CHO content */
#chorusContent {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

/* CHO Row: Knobs (Mix, Rate, Depth) */
.cho-row-knobs {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 0;
    margin: 0 0 14px 0;
    box-sizing: border-box;
}

.cho-row-knobs .knob-group {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0;
    margin: 0;
}

/* CHO - Emerald Green (Organic modulation movement) */
.fx-section[data-effect="chorus"] {
    border-left: 2px solid rgba(201, 201, 201, 0.25);
    border-top: 1px solid rgba(201, 201, 201, 0.1);
    border-right: 1px solid rgba(201, 201, 201, 0.1);
    border-bottom: 1px solid rgba(201, 201, 201, 0.1);
}

.fx-section[data-effect="chorus"] .knob-arc-foreground {
    stroke: var(--fx-cho-color) !important;
}

/* ============================================
   FLANGER (FLG) DEDICATED STYLES
   ============================================ */

/* Reset any inherited styles for FLG content */
#flangerContent {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

/* FLG Row 1: Main controls (Mix, Delay, Rate, Depth) */
.flg-row-knobs {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.flg-row-knobs .knob-group {
    display: flex;
    flex-direction: row;
    gap: 0;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0;
    margin: 0;
}

/* FLG Row 2: Feedback, Resonance, Mode */
.flg-row-controls {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 0;
    margin: 15px 0 20px 0;
    box-sizing: border-box;
}

.flg-row-controls .knob-group {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0;
    margin: 0 60px 0 70px;
}

/* FLG Mode Container */
.flanger-mode-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 1px;
    width: 80px;
    min-width: 80px;
    max-width: 80px;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.flanger-mode-container label {
    font-size: var(--text-xs);
    color: var(--text-secondary);
    text-align: center;
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 1;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.flanger-mode-container .custom-dropdown {
    width: 80px;
    max-width: 80px;
    min-width: 80px;
    margin: 0;
    padding: 4px 8px;
    box-sizing: border-box;
}

/* FLG - Turquoise (Flowing modulation, water-like) */
.fx-section[data-effect="flanger"] {
    border-left: 2px solid rgba(201, 201, 201, 0.25);
    border-top: 1px solid rgba(201, 201, 201, 0.1);
    border-right: 1px solid rgba(201, 201, 201, 0.1);
    border-bottom: 1px solid rgba(201, 201, 201, 0.1);
}

.fx-section[data-effect="flanger"] .knob-arc-foreground {
    stroke: var(--fx-flg-color) !important;
}

/* ============================================
   DELAY (DLY) DEDICATED STYLES
   ============================================ */

/* Reset any inherited styles for DLY content */
#delayContent {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

/* DLY Row: Knobs (Mix, Time, Feedback, Ping Pong) */
.dly-row-knobs {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 0;
    margin: 0 0 14px 0;
    box-sizing: border-box;
}

.dly-row-knobs .knob-group {
    display: flex;
    flex-direction: row;
    gap: 6px;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0;
    margin: 0;
}

/* DLY - Sky Blue (Bright time echoes) */
.fx-section[data-effect="delay"] {
    border-left: 2px solid rgba(201, 201, 201, 0.25);
    border-top: 1px solid rgba(201, 201, 201, 0.1);
    border-right: 1px solid rgba(201, 201, 201, 0.1);
    border-bottom: 1px solid rgba(201, 201, 201, 0.1);
}

.fx-section[data-effect="delay"] .knob-arc-foreground {
    stroke: var(--fx-dly-color) !important;
}

/* DLY Ping Pong Toggle Button - matches arp toggle size */
.dly-pingpong-toggle {
    width: 26px;
    height: 23px;
    padding: 2px 4px;
    background: var(--control-bg);
    border: none;
    border-radius: 2px;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 500;
    letter-spacing: 0px;
    font-family: "JetBrains Mono", "SF Mono", "Roboto Mono", Menlo, Monaco, "Courier New", monospace;
    position: relative;
    z-index: 100;
    pointer-events: auto;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
}

.dly-pingpong-toggle::before,
.dly-pingpong-toggle::after {
    display: none;
}

.dly-pingpong-toggle.active {
    background: var(--text-secondary);
    color: #181820;
    font-weight: bold;
    box-shadow: 0 0 8px var(--text-secondary);
}

.dly-pingpong-toggle:hover {
    background: #3c3c45;
    transform: translateY(-1px);
}

.dly-pingpong-toggle.active:hover {
    background: var(--text-secondary);
    transform: translateY(-1px);
}

/* ============================================
   REVERB (REV) DEDICATED STYLES
   ============================================ */

/* Reset any inherited styles for REV content */
#reverbContent {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

/* REV Row 1: Knobs (Mix, Size, Decay, Damp) */
.rev-row-knobs {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.rev-row-knobs .knob-group {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0;
    margin: 0;
}

/* REV Row 2: Type dropdown */
.rev-row-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
    padding: 17px 34px 0 34px;
    margin: 0 0 14px 0;
    box-sizing: border-box;
}

.rev-row-controls label {
    flex: 0 0 auto;
    margin-right: 0;
    margin-bottom: 0;
    text-align: center;
    width: 100%;
}

.rev-row-controls .custom-dropdown,
.rev-row-controls select {
    width: 126px;
    max-width: 126px;
    min-width: 126px;
}

/* REV - Deep Navy (Infinite space, midnight depth) */
.fx-section[data-effect="reverb"] {
    border-left: 2px solid rgba(201, 201, 201, 0.25);
    border-top: 1px solid rgba(201, 201, 201, 0.1);
    border-right: 1px solid rgba(201, 201, 201, 0.1);
    border-bottom: 1px solid rgba(201, 201, 201, 0.1);
}

.fx-section[data-effect="reverb"] .knob-arc-foreground {
    stroke: var(--fx-rev-color) !important;
}

/* ============================================
   FILTER (FIL) DEDICATED STYLES
   ============================================ */

/* Reset any inherited styles for FIL content */
#fxfilterContent {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

/* FIL Row 1: Knobs (Mix, Cutoff, Resonance) */
.fil-row-knobs {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.fil-row-knobs .knob-group {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0;
    margin: 0;
}

/* FIL Row 2: Type dropdown */
.fil-row-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
    padding: 17px 34px 0 34px;
    margin: 0 0 14px 0;
    box-sizing: border-box;
}

.fil-row-controls label {
    flex: 0 0 auto;
    margin-right: 0;
    margin-bottom: 0;
    text-align: center;
    width: 100%;
}

.fil-row-controls .custom-dropdown,
.fil-row-controls select {
    width: 126px;
    max-width: 126px;
    min-width: 126px;
}

/* FX Filter - Indigo Blue (Precise filtering, bridge to cool tones) */
.fx-section[data-effect="fxfilter"] {
    border-left: 2px solid rgba(201, 201, 201, 0.25);
    border-top: 1px solid rgba(201, 201, 201, 0.1);
    border-right: 1px solid rgba(201, 201, 201, 0.1);
    border-bottom: 1px solid rgba(201, 201, 201, 0.1);
}

.fx-section[data-effect="fxfilter"] .knob-arc-foreground {
    stroke: var(--fx-fil-color) !important;
}

/* ============================================
   STEREO SPREADER (STR) DEDICATED STYLES
   ============================================ */

/* Reset any inherited styles for STR content */
#strContent {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

/* STR Row: Knobs (Mix, Width, Bass) */
.str-row-knobs {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 0;
    margin: 0 0 14px 0;
    box-sizing: border-box;
}

.str-row-knobs .knob-group {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0;
    margin: 0;
}

/* STR - Golden Amber (Sunset gold, warm spatial opening) */
.fx-section[data-effect="str"] {
    border-left: 2px solid rgba(201, 201, 201, 0.25);
    border-top: 1px solid rgba(201, 201, 201, 0.1);
    border-right: 1px solid rgba(201, 201, 201, 0.1);
    border-bottom: 1px solid rgba(201, 201, 201, 0.1);
}

.fx-section[data-effect="str"] .knob-arc-foreground {
    stroke: var(--fx-str-color) !important;
}

/* DRAG & DROP STYLES (handle is now .fx-expand) */
.fx-section.dragging {
    opacity: 0.7;
    transition: opacity 0.15s ease;
}

.fx-section.drop-target {
    background: rgba(40, 40, 55, 0.8);
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 12px rgba(201, 201, 201, 0.3);
}

.drag-ghost {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.drag-placeholder {
    background: transparent;
    transition: all 0.15s ease;
    pointer-events: none;
}

/* Effect-Specific Dropdown Colors */
.fx-section[data-effect="sat"] .custom-dropdown-button,
.custom-dropdown[data-effect="sat"] .custom-dropdown-button {
    border-color: var(--border-color-dark);
}

.fx-section[data-effect="sat"] .custom-dropdown-button:hover,
.fx-section[data-effect="sat"] .custom-dropdown-button:focus,
.custom-dropdown[data-effect="sat"] .custom-dropdown-button:hover,
.custom-dropdown[data-effect="sat"] .custom-dropdown-button:focus {
    border-color: var(--fx-sat-color);
    background: var(--control-bg);
    color: var(--text-secondary);
}

.fx-section[data-effect="sat"] .custom-dropdown.open .custom-dropdown-button,
.custom-dropdown[data-effect="sat"].open .custom-dropdown-button {
    border-color: var(--fx-sat-color);
    background: var(--control-bg);
    color: var(--text-secondary);
}

.fx-section[data-effect="sat"] .custom-dropdown-arrow,
.custom-dropdown[data-effect="sat"] .custom-dropdown-arrow {
    color: var(--text-secondary);
}

.fx-section[data-effect="sat"] .custom-dropdown.open .custom-dropdown-arrow,
.custom-dropdown[data-effect="sat"].open .custom-dropdown-arrow {
    color: var(--fx-sat-color);
}

.fx-section[data-effect="sat"] .custom-dropdown-item:hover,
.fx-section[data-effect="sat"] .custom-dropdown-item:focus,
.custom-dropdown-menu[data-effect="sat"] .custom-dropdown-item:hover,
.custom-dropdown-menu[data-effect="sat"] .custom-dropdown-item:focus {
    background: rgba(201, 201, 201, 0.2);
    color: var(--fx-sat-color);
}

.fx-section[data-effect="sat"] .custom-dropdown-item.selected,
.custom-dropdown-menu[data-effect="sat"] .custom-dropdown-item.selected {
    background: rgba(201, 201, 201, 0.3);
    color: var(--fx-sat-color);
}

.fx-section[data-effect="sat"] .custom-dropdown-item.selected:hover,
.fx-section[data-effect="sat"] .custom-dropdown-item.selected:focus,
.custom-dropdown-menu[data-effect="sat"] .custom-dropdown-item.selected:hover,
.custom-dropdown-menu[data-effect="sat"] .custom-dropdown-item.selected:focus {
    background: rgba(201, 201, 201, 0.4);
    color: var(--fx-sat-color);
}

.custom-dropdown-menu[data-effect="sat"],
.fx-section[data-effect="sat"] .custom-dropdown-menu {
    border-color: rgba(201, 201, 201, 0.3);
}

/* Reverb Dropdown */
.fx-section[data-effect="reverb"] .custom-dropdown-button,
.custom-dropdown[data-effect="reverb"] .custom-dropdown-button {
    border-color: var(--border-color-dark);
}

.fx-section[data-effect="reverb"] .custom-dropdown-button:hover,
.fx-section[data-effect="reverb"] .custom-dropdown-button:focus,
.custom-dropdown[data-effect="reverb"] .custom-dropdown-button:hover,
.custom-dropdown[data-effect="reverb"] .custom-dropdown-button:focus {
    border-color: var(--fx-rev-color);
    background: var(--control-bg);
    color: var(--text-secondary);
}

.fx-section[data-effect="reverb"] .custom-dropdown.open .custom-dropdown-button,
.custom-dropdown[data-effect="reverb"].open .custom-dropdown-button {
    border-color: var(--fx-rev-color);
    background: var(--control-bg);
    color: var(--text-secondary);
}

.fx-section[data-effect="reverb"] .custom-dropdown-arrow,
.custom-dropdown[data-effect="reverb"] .custom-dropdown-arrow {
    color: var(--text-secondary);
}

.fx-section[data-effect="reverb"] .custom-dropdown.open .custom-dropdown-arrow,
.custom-dropdown[data-effect="reverb"].open .custom-dropdown-arrow {
    color: var(--fx-rev-color);
}

.fx-section[data-effect="reverb"] .custom-dropdown-item:hover,
.fx-section[data-effect="reverb"] .custom-dropdown-item:focus,
.custom-dropdown-menu[data-effect="reverb"] .custom-dropdown-item:hover,
.custom-dropdown-menu[data-effect="reverb"] .custom-dropdown-item:focus {
    background: rgba(201, 201, 201, 0.2);
    color: var(--fx-rev-color);
}

.fx-section[data-effect="reverb"] .custom-dropdown-item.selected,
.custom-dropdown-menu[data-effect="reverb"] .custom-dropdown-item.selected {
    background: rgba(201, 201, 201, 0.3);
    color: var(--fx-rev-color);
}

.fx-section[data-effect="reverb"] .custom-dropdown-item.selected:hover,
.fx-section[data-effect="reverb"] .custom-dropdown-item.selected:focus,
.custom-dropdown-menu[data-effect="reverb"] .custom-dropdown-item.selected:hover,
.custom-dropdown-menu[data-effect="reverb"] .custom-dropdown-item.selected:focus {
    background: rgba(201, 201, 201, 0.4);
    color: var(--fx-rev-color);
}

/* FX Filter Dropdown */
.fx-section[data-effect="fxfilter"] .custom-dropdown-button,
.custom-dropdown[data-effect="fxfilter"] .custom-dropdown-button {
    border-color: var(--border-color-dark);
}

.fx-section[data-effect="fxfilter"] .custom-dropdown-button:hover,
.fx-section[data-effect="fxfilter"] .custom-dropdown-button:focus,
.custom-dropdown[data-effect="fxfilter"] .custom-dropdown-button:hover,
.custom-dropdown[data-effect="fxfilter"] .custom-dropdown-button:focus {
    border-color: var(--fx-fil-color);
    background: var(--control-bg);
    color: var(--text-secondary);
}

.fx-section[data-effect="fxfilter"] .custom-dropdown.open .custom-dropdown-button,
.custom-dropdown[data-effect="fxfilter"].open .custom-dropdown-button {
    border-color: var(--fx-fil-color);
    background: var(--control-bg);
    color: var(--text-secondary);
}

.fx-section[data-effect="fxfilter"] .custom-dropdown-arrow,
.custom-dropdown[data-effect="fxfilter"] .custom-dropdown-arrow {
    color: var(--text-secondary);
}

.fx-section[data-effect="fxfilter"] .custom-dropdown.open .custom-dropdown-arrow,
.custom-dropdown[data-effect="fxfilter"].open .custom-dropdown-arrow {
    color: var(--fx-fil-color);
}

.fx-section[data-effect="fxfilter"] .custom-dropdown-item:hover,
.fx-section[data-effect="fxfilter"] .custom-dropdown-item:focus,
.custom-dropdown-menu[data-effect="fxfilter"] .custom-dropdown-item:hover,
.custom-dropdown-menu[data-effect="fxfilter"] .custom-dropdown-item:focus {
    background: rgba(201, 201, 201, 0.2);
    color: var(--fx-fil-color);
}

.fx-section[data-effect="fxfilter"] .custom-dropdown-item.selected,
.custom-dropdown-menu[data-effect="fxfilter"] .custom-dropdown-item.selected {
    background: rgba(201, 201, 201, 0.3);
    color: var(--fx-fil-color);
}

.fx-section[data-effect="fxfilter"] .custom-dropdown-item.selected:hover,
.fx-section[data-effect="fxfilter"] .custom-dropdown-item.selected:focus,
.custom-dropdown-menu[data-effect="fxfilter"] .custom-dropdown-item.selected:hover,
.custom-dropdown-menu[data-effect="fxfilter"] .custom-dropdown-item.selected:focus {
    background: rgba(201, 201, 201, 0.4);
    color: var(--fx-fil-color);
}

.custom-dropdown-menu[data-effect="fxfilter"],
.fx-section[data-effect="fxfilter"] .custom-dropdown-menu {
    border-color: rgba(201, 201, 201, 0.3);
}

/* Delay Dropdown */
.fx-section[data-effect="delay"] .custom-dropdown-button {
    border-color: var(--border-color-dark);
}

.fx-section[data-effect="delay"] .custom-dropdown-button:hover,
.fx-section[data-effect="delay"] .custom-dropdown-button:focus {
    border-color: var(--fx-dly-color);
    background: var(--control-bg);
    color: var(--text-secondary);
}

.fx-section[data-effect="delay"] .custom-dropdown.open .custom-dropdown-button {
    border-color: var(--fx-dly-color);
    background: var(--control-bg);
    color: var(--text-secondary);
}

.fx-section[data-effect="delay"] .custom-dropdown-arrow {
    color: var(--text-secondary);
}

.fx-section[data-effect="delay"] .custom-dropdown.open .custom-dropdown-arrow {
    color: var(--fx-dly-color);
}

.fx-section[data-effect="delay"] .custom-dropdown-item:hover,
.fx-section[data-effect="delay"] .custom-dropdown-item:focus {
    background: rgba(201, 201, 201, 0.2);
    color: var(--fx-dly-color);
}

.fx-section[data-effect="delay"] .custom-dropdown-item.selected {
    background: rgba(201, 201, 201, 0.3);
    color: var(--fx-dly-color);
}

.fx-section[data-effect="delay"] .custom-dropdown-item.selected:hover,
.fx-section[data-effect="delay"] .custom-dropdown-item.selected:focus {
    background: rgba(201, 201, 201, 0.4);
    color: var(--fx-dly-color);
}

/* ============================================
   GRAPHIC EQ (G_EQ) DEDICATED STYLES
   ============================================ */

/* G_EQ Content Container */
#geqContent {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  margin: 0;
}

#geqContent.expanded {
  gap: 8px;
  padding: 8px 10px 10px 10px;
}

/* Main Row: Low Controls | Scope | High Controls */
.geq-main-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  width: 100%;
  justify-content: space-between;
}

/* Side Controls (Vertical Stack) */
.geq-band-side {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
  flex: 0 0 auto;
  min-width: 28px;
  max-width: 32px;
}

/* Smaller knobs for compact layout */
.geq-band-side [data-knob] {
  transform: scale(0.75);
  transform-origin: center;
}

/* Scope Container (Center) - Larger to accommodate filter type buttons */
.geq-scope-container {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;
  background: rgba(20, 20, 20, 0.6);
  border-radius: 2px;
  border: none;
  min-width: 137px;
  max-width: 137px;
  width: 137px;
  min-height: 100px;
  max-height: 120px;
  position: relative;
}

#geqGraphCanvas {
  display: block;
  width: 137px;
  height: calc(100% - 24px); /* Leave space for filter type buttons */
  max-width: 137px;
  max-height: 100px;
  border-radius: 2px;
  flex: 1 1 auto;
}

/* Filter Type Buttons Row - Positioned at bottom of scope */
.geq-filter-type-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 20px;
  padding: 2px 4px;
  gap: 4px;
  margin-top: 2px;
}

/* Filter Type Column (Left or Right) */
.geq-filter-type-column {
  display: flex;
  flex-direction: row;
  gap: 2px;
  flex: 1;
  justify-content: center;
  align-items: center;
}

/* Filter Type Button - Serum-style */
.geq-filter-type-btn {
  width: 20px;
  height: 16px;
  padding: 0;
  margin: 0;
  background: rgba(30, 30, 30, 0.8);
  border: 1px solid rgba(201, 201, 201, 0.3);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: hidden;
}

.geq-filter-type-btn:hover {
  background: rgba(40, 40, 40, 0.9);
  border-color: rgba(201, 201, 201, 0.5);
  color: rgba(255, 255, 255, 0.7);
}

.geq-filter-type-btn.active {
  background: rgba(201, 201, 201, 0.25);
  border-color: rgba(201, 201, 201, 0.8);
  color: rgba(201, 201, 201, 1.0);
  box-shadow:
    inset 0 0 4px rgba(201, 201, 201, 0.4),
    0 0 6px rgba(201, 201, 201, 0.3);
}

/* Low and high band buttons: the column position (and the Freq/Gain/Q
   labels within it) already say which band this is, so both bands now
   share the one active-state accent instead of their own hue. */
.geq-filter-type-column[data-band="low"] .geq-filter-type-btn.active {
  background: rgba(201, 201, 201, 0.25);
  border-color: rgba(201, 201, 201, 0.8);
  color: rgba(201, 201, 201, 1.0);
  box-shadow:
    inset 0 0 4px rgba(201, 201, 201, 0.4),
    0 0 6px rgba(201, 201, 201, 0.3);
}

.geq-filter-type-column[data-band="high"] .geq-filter-type-btn.active {
  background: rgba(201, 201, 201, 0.25);
  border-color: rgba(201, 201, 201, 0.8);
  color: rgba(201, 201, 201, 1.0);
  box-shadow:
    inset 0 0 4px rgba(201, 201, 201, 0.4),
    0 0 6px rgba(201, 201, 201, 0.3);
}

/* SVG icons inside buttons */
.geq-filter-type-btn svg {
  width: 14px;
  height: 10px;
  pointer-events: none;
}


/* Mix knob removed - Graphic EQ is a serial insert (always 100% wet) */

/* Effect Section Styling (matches other effects) */
.fx-section[data-effect="geq"] {
    border-left: 2px solid rgba(201, 201, 201, 0.25);
    border-top: 1px solid rgba(201, 201, 201, 0.1);
    border-right: 1px solid rgba(201, 201, 201, 0.1);
    border-bottom: 1px solid rgba(201, 201, 201, 0.1);
}

/* Effect Toggle Button Styling */
/* Knob Color Theming (the actual knob stroke color comes from
   knobs/core.js's EFFECT_COLORS map, now the same single accent) */
[data-knob-id^="geq"] .knob-svg {
  --knob-accent-color: #c9c9c9;
}

[data-knob-id="geqLowFreq"],
[data-knob-id="geqLowGain"],
[data-knob-id="geqLowQ"] {
  --knob-accent-color: #c9c9c9;
}

[data-knob-id="geqHighFreq"],
[data-knob-id="geqHighGain"],
[data-knob-id="geqHighQ"] {
  --knob-accent-color: #c9c9c9;
}

/* Disabled Gain Knob State (when filter type is highpass/lowpass) */
.geq-band-side [data-knob-id$="Gain"].disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* Disabled Q Knob State (when filter type is lowshelf/highshelf) */
.geq-band-side [data-knob-id$="Q"].disabled {
  opacity: 0.4;
  pointer-events: none;
}

