/* === SAMPLER.CSS START === */
/* =========================================
   MIKADO S-ONE • 808 / 909 SAMPLER & SEQUENCER STYLESHEET v.10070 (SCENE MUTE A–H + MULTI-STEM ZIP + WEB MIDI LEARN)
   - Standalone cached stylesheet extracted from sampler.js
   - Brushed Aluminum & Neon Blue Minimal Studio Workstation Theme
   - Mobile Compact + Desktop Widescreen 3-Column Pro Console Layout
========================================= */

/* === MI•KA•DO BRUSHED ALUMINUM + NEON BLUE MINIMAL WORKSTATION === */
#module-sampler, #module-sampler * { box-sizing: border-box; }
#module-sampler {
    background:
        repeating-linear-gradient(90deg, rgba(255,255,255,0.016) 0px, rgba(255,255,255,0.016) 1px, transparent 1px, transparent 3px),
        linear-gradient(180deg, #161f2e 0%, #0b111c 55%, #070b13 100%) !important;
    border: 1.5px solid rgba(56, 189, 248, 0.34) !important;
    box-shadow: inset 0 1px 0 rgba(226, 232, 240, 0.14), 0 12px 32px rgba(0, 0, 0, 0.68) !important;
}
/* Keep native site module header styles untouched on mobile & compact cards */
#module-sampler .smp-hdr-titles { min-width: 0; }
#module-sampler .smp-hdr-actions {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}
#module-sampler .smp-hdr-expand-btn { display: none !important; }
#module-sampler .smp-hdr-standalone-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 26px !important;
    padding: 0 8px !important;
    border-radius: 5px !important;
    border: 1px solid rgba(56, 189, 248, 0.55) !important;
    background: linear-gradient(180deg, rgba(14, 116, 144, 0.34) 0%, #071320 100%) !important;
    color: #e0f2fe !important;
    font-family: 'Orbitron', sans-serif !important;
    font-size: 8px !important;
    font-weight: 800 !important;
    letter-spacing: 0.7px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    box-shadow: inset 0 1px 0 rgba(186,230,253,0.18), 0 0 8px rgba(56,189,248,0.16) !important;
    transition: border-color 0.14s ease, box-shadow 0.14s ease, color 0.14s ease !important;
}
#module-sampler .smp-hdr-standalone-btn:hover {
    border-color: #7dd3fc !important;
    color: #ffffff !important;
    box-shadow: 0 0 12px rgba(56,189,248,0.38) !important;
}
#module-sampler.smp-standalone-mode #btn-smp-wide-toggle,
#module-sampler.smp-standalone-mode .jump-btn {
    display: none !important;
}
#module-sampler.smp-standalone-mode {
    width: 100% !important;
    max-width: 1720px !important;
    margin: 0 auto !important;
}
#module-sampler .smp-chassis-panel {
    position: relative !important;
    background:
        repeating-linear-gradient(90deg, rgba(255,255,255,0.018) 0px, rgba(255,255,255,0.018) 1px, transparent 1px, transparent 4px),
        linear-gradient(180deg, rgba(24, 34, 50, 0.92) 0%, rgba(9, 14, 24, 0.96) 100%) !important;
    border: 1px solid rgba(148, 163, 184, 0.24) !important;
    border-top-color: rgba(226, 232, 240, 0.20) !important;
    border-radius: 9px !important;
    padding: 12px 12px !important;
    margin-bottom: 12px !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), inset 0 -1px 0 rgba(0,0,0,0.55), 0 4px 14px rgba(0,0,0,0.45) !important;
}
/* Subtle machined rack rivets in top corners of chassis panels */
#module-sampler .smp-chassis-panel::before,
#module-sampler .smp-chassis-panel::after {
    content: '';
    position: absolute;
    top: 6px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #64748b 0%, #1e293b 65%, #020617 100%);
    box-shadow: inset 0 0 1px rgba(255,255,255,0.35), 0 1px 1px rgba(0,0,0,0.8);
    pointer-events: none;
}
#module-sampler .smp-chassis-panel::before { left: 6px; }
#module-sampler .smp-chassis-panel::after  { right: 6px; }

/* Recessed hardware sub-bays inside modules */
#module-sampler .smp-sub-bay {
    min-width: 0; max-width: 100%; overflow: hidden;
    background: linear-gradient(180deg, rgba(3, 8, 18, 0.86) 0%, rgba(7, 13, 25, 0.92) 100%);
    border: 1px solid rgba(51, 65, 85, 0.72);
    border-top-color: rgba(15, 23, 42, 0.95);
    border-bottom-color: rgba(148, 163, 184, 0.16);
    border-radius: 7px;
    padding: 8px 8px 7px 8px;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.72);
}
#module-sampler .smp-bay-lbl {
    display: flex; justify-content: space-between; align-items: center;
    font-family: 'Orbitron', sans-serif; font-size: 7.8px; font-weight: 800;
    letter-spacing: 0.9px; color: #94a3b8; margin-bottom: 6px;
}
/* Stereo VU meter housing */
#module-sampler .smp-vu-housing {
    background: #020617;
    border: 1px solid #2c3e55;
    border-radius: 5px;
    padding: 2px 3px;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.9);
    height: 24px;
    width: 100%;
}
/* 303 Slide / Accent step badge styling */
#module-sampler .smp-sub-step-btn { position: relative; }
#module-sampler .smp-sub-step-btn.is-acc {
    border-color: #f59e0b !important;
    box-shadow: inset 0 0 8px rgba(245, 158, 11, 0.25), 0 0 7px rgba(245, 158, 11, 0.26) !important;
}
#module-sampler .smp-sub-step-btn.is-slide::after {
    content: '';
    position: absolute;
    right: -3px;
    bottom: 4px;
    width: 5px;
    height: 2px;
    background: #38bdf8;
    box-shadow: 0 0 5px #38bdf8;
    pointer-events: none;
    z-index: 2;
}
.sub-step-flags {
    font-family: 'Orbitron', sans-serif;
    font-size: 7px;
    line-height: 1;
    color: #fbbf24;
    min-height: 7px;
}
/* 6-Channel Bus Console Mixer with MUTE/SOLO + Per-Channel FILTER & 3-Band EQ (±6dB) */
.smp-bus-mixer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    min-width: 0;
}
.smp-mix-strip {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(16, 25, 42, 0.84) 0%, rgba(7, 12, 22, 0.92) 100%);
    border: 1px solid rgba(51, 65, 85, 0.78);
    border-radius: 6px;
    padding: 5px 5px 5px 5px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: opacity 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}
.smp-mix-top-row {
    display: grid;
    grid-template-columns: 29px minmax(0, 1fr) 28px auto;
    align-items: center;
    gap: 4px;
    width: 100%;
    min-width: 0;
}
.smp-mix-eq-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3px;
    padding-top: 5px;
    border-top: 1px solid rgba(56, 189, 248, 0.15);
    width: 100%;
    min-width: 0;
}
#module-sampler .smp-mix-eq-row .smp-vst-knob {
    padding: 3px 1px 3px 1px !important;
    border-radius: 5px !important;
    background: linear-gradient(180deg, rgba(13, 21, 36, 0.92) 0%, rgba(4, 8, 16, 0.96) 100%) !important;
    border: 1px solid rgba(51, 65, 85, 0.72) !important;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.72) !important;
    min-width: 0 !important;
    overflow: hidden !important;
}
#module-sampler .smp-mix-eq-row .smp-vst-knob:hover {
    border-color: rgba(56, 189, 248, 0.72) !important;
}
#module-sampler .smp-mix-eq-row .smp-vst-knob.is-eq-active {
    border-color: rgba(56, 189, 248, 0.62) !important;
    box-shadow: inset 0 0 8px rgba(56, 189, 248, 0.16), 0 0 6px rgba(56, 189, 248, 0.14) !important;
}
#module-sampler .smp-mix-eq-row .smp-knob-lbl {
    font-size: 6.1px !important;
    letter-spacing: 0.15px !important;
    margin-bottom: 1px !important;
    color: #94a3b8 !important;
    white-space: nowrap !important;
}
#module-sampler .smp-mix-eq-row .smp-vst-knob.is-eq-active .smp-knob-lbl {
    color: #e0f2fe !important;
}
#module-sampler .smp-mix-eq-row .smp-knob-svg {
    width: 28px !important;
    height: 28px !important;
}
#module-sampler .smp-mix-eq-row .knob-val-txt {
    font-size: 6.3px !important;
    margin-top: 1px !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
    color: #7dd3fc !important;
}
#module-sampler .smp-mix-eq-row .smp-vst-knob.is-eq-active .knob-val-txt {
    color: #38bdf8 !important;
}
.smp-mix-strip.is-muted { opacity: 0.45; border-color: rgba(239, 68, 68, 0.48); }
.smp-mix-strip.is-solo-dimmed { opacity: 0.36; border-color: rgba(51, 65, 85, 0.55); }
.smp-mix-strip.is-solo {
    opacity: 1;
    border-color: rgba(56, 189, 248, 0.78);
    background: rgba(14, 116, 144, 0.18);
    box-shadow: inset 0 0 10px rgba(56, 189, 248, 0.16), 0 0 8px rgba(56, 189, 248, 0.14);
}
.smp-mix-ch-name {
    font-family: 'Orbitron', sans-serif; font-size: 7.3px; font-weight: 900;
    color: #cbd5e1; letter-spacing: 0.25px; white-space: nowrap;
}
.smp-mix-fader {
    width: 100% !important; min-width: 0 !important; max-width: 100% !important;
    height: 16px; margin: 0; accent-color: #38bdf8; cursor: pointer;
    background: transparent; display: block;
}
.smp-mix-val {
    font-family: 'Orbitron', sans-serif; font-size: 7px; font-weight: 800;
    color: #38bdf8; text-align: right; white-space: nowrap;
}
.smp-mix-btn-pair {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
}
#module-sampler .smp-mix-mute-btn,
#module-sampler .smp-mix-solo-btn {
    width: 20px; height: 20px; padding: 0; border-radius: 4px; flex-shrink: 0;
    border: 1px solid #3c4d66; background: linear-gradient(180deg, #1e293b, #0b111c);
    color: #94a3b8; font-family: 'Orbitron', sans-serif; font-size: 7.2px; font-weight: 900;
    cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
    transition: all 0.12s ease;
}
#module-sampler .smp-mix-mute-btn:hover { border-color: #f87171; color: #fecaca; }
#module-sampler .smp-mix-solo-btn:hover { border-color: #38bdf8; color: #e0f2fe; }
#module-sampler .smp-mix-mute-btn.is-muted {
    border-color: #ef4444; background: rgba(239, 68, 68, 0.28); color: #fecaca;
    box-shadow: 0 0 7px rgba(239, 68, 68, 0.45);
}
#module-sampler .smp-mix-solo-btn.is-solo {
    border-color: #38bdf8; background: linear-gradient(180deg, rgba(14, 165, 233, 0.72), #07263d);
    color: #ffffff; text-shadow: 0 0 6px rgba(224, 242, 254, 0.85);
    box-shadow: inset 0 1px 0 rgba(224, 242, 254, 0.35), 0 0 9px rgba(56, 189, 248, 0.58);
}
#smp-mix-solo-badge {
    display: none;
    align-items: center;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 6.8px;
    font-weight: 900;
    letter-spacing: 0.7px;
    color: #e0f2fe;
    background: rgba(56, 189, 248, 0.22);
    border: 1px solid #38bdf8;
    box-shadow: 0 0 7px rgba(56, 189, 248, 0.38);
}
/* === BASS VSTi OSCILLATOR WAVEFORM BANK + 3-WAY HARDWARE SWITCHES (SKLOPKE) === */
.smp-osc-bank {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    min-width: 0;
}
.smp-osc-wave-row {
    display: grid;
    grid-template-columns: 44px repeat(4, minmax(0, 1fr));
    gap: 5px;
    align-items: stretch;
    width: 100%;
    min-width: 0;
}
.smp-osc-tag {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #0c1422 0%, #050a14 100%);
    border: 1px solid rgba(56, 189, 248, 0.24);
    border-radius: 5px;
    font-family: 'Orbitron', sans-serif;
    font-size: 7.5px;
    font-weight: 900;
    letter-spacing: 0.5px;
    color: #38bdf8;
    line-height: 1.1;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.85);
    user-select: none;
}
.smp-osc-tag.is-osc2 {
    color: #7dd3fc;
    border-color: rgba(125, 211, 252, 0.22);
}
.smp-osc-tag small {
    font-size: 5.8px;
    color: #64748b;
    letter-spacing: 0.4px;
    margin-top: 1px;
}
#module-sampler .smp-wave-btn {
    position: relative !important;
    min-height: 36px !important;
    height: 36px !important;
    padding: 4px 3px 3px 3px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    color: #94a3b8 !important;
    overflow: hidden !important;
}
#module-sampler .smp-wave-btn::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 28%;
    right: 28%;
    height: 2.5px;
    border-radius: 2px;
    background: #1e293b;
    transition: background 0.14s ease, box-shadow 0.14s ease;
}
#module-sampler .smp-wave-btn.btn-active-blue::before {
    background: #38bdf8;
    box-shadow: 0 0 7px #38bdf8, 0 0 3px #e0f2fe;
}
#module-sampler .smp-wave-btn.btn-active-blue {
    color: #f0f9ff !important;
}
.smp-wave-svg {
    width: 24px;
    height: 13px;
    display: block;
    margin-top: 3px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 3px rgba(56, 189, 248, 0.15));
    transition: filter 0.14s ease;
}
#module-sampler .smp-wave-btn.btn-active-blue .smp-wave-svg {
    stroke: #7dd3fc;
    filter: drop-shadow(0 0 5px rgba(56, 189, 248, 0.85));
}
.smp-wave-txt {
    font-family: 'Orbitron', sans-serif;
    font-size: 6.4px;
    font-weight: 800;
    letter-spacing: 0.45px;
    line-height: 1;
    opacity: 0.82;
}
/* Hardware 3-Position Slide Switches ("Sklopke") Row */
.smp-osc-switches-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin-top: 2px;
    padding-top: 7px;
    border-top: 1px solid rgba(56, 189, 248, 0.16);
    width: 100%;
    min-width: 0;
}
.smp-hw-switch-unit {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.smp-hw-switch-hdr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 6.8px;
    font-weight: 800;
    letter-spacing: 0.7px;
    color: #94a3b8;
    padding: 0 2px;
}
.smp-hw-switch-hdr strong {
    color: #38bdf8;
    font-weight: 900;
}
.smp-sw3-track {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    height: 30px;
    padding: 2px;
    background:
        linear-gradient(180deg, #020612 0%, #071020 55%, #0c172b 100%);
    border: 1px solid #334155;
    border-top-color: #0f172a;
    border-bottom-color: rgba(148, 163, 184, 0.25);
    border-radius: 6px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.94), 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
}
/* Physical Brushed-Aluminum Sliding Switch Handle (3-Detent) */
.smp-sw3-thumb {
    position: absolute;
    top: 2px;
    bottom: 2px;
    left: 2px;
    width: calc((100% - 4px) / 3);
    border-radius: 4px;
    background:
        repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 3px),
        linear-gradient(180deg, rgba(14, 116, 144, 0.78) 0%, #0c2e47 52%, #071c2e 100%);
    border: 1px solid #38bdf8;
    border-top-color: #7dd3fc;
    box-shadow:
        inset 0 1px 0 rgba(224, 242, 254, 0.35),
        inset 0 0 10px rgba(56, 189, 248, 0.25),
        0 0 10px rgba(56, 189, 248, 0.38);
    transition: transform 0.16s cubic-bezier(0.22, 0.9, 0.32, 1);
    pointer-events: none;
    z-index: 1;
}
/* Center tactile grip ridge on the switch lever */
.smp-sw3-thumb::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 30%;
    right: 30%;
    height: 2px;
    border-radius: 2px;
    background: #e0f2fe;
    box-shadow: 0 0 6px #38bdf8;
}
.smp-sw3-track[data-pos="0"] .smp-sw3-thumb { transform: translateX(0%); }
.smp-sw3-track[data-pos="1"] .smp-sw3-thumb { transform: translateX(100%); }
.smp-sw3-track[data-pos="2"] .smp-sw3-thumb { transform: translateX(200%); }
#module-sampler .smp-sw3-opt {
    position: relative !important;
    z-index: 2 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 3px 1px 0 1px !important;
    min-height: 0 !important;
    height: 100% !important;
    font-family: 'Orbitron', sans-serif !important;
    font-size: 7.4px !important;
    font-weight: 800 !important;
    letter-spacing: 0.35px !important;
    color: #64748b !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: color 0.14s ease, text-shadow 0.14s ease !important;
    -webkit-tap-highlight-color: transparent !important;
}
#module-sampler .smp-sw3-opt:hover {
    color: #cbd5e1 !important;
}
#module-sampler .smp-sw3-opt.btn-active-blue {
    color: #ffffff !important;
    text-shadow: 0 0 7px rgba(56, 189, 248, 0.85) !important;
}
.smp-bass-knob-grid {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px;
    width: 100%; min-width: 0;
}
.smp-bass-knob-grid .smp-vst-knob { padding: 5px 2px 4px 2px; min-width: 0; overflow: hidden; }
.smp-bass-knob-grid .smp-knob-svg { width: 38px; height: 38px; max-width: 100%; }
.smp-bass-knob-grid .smp-knob-lbl { font-size: 7.3px; white-space: nowrap; }
.smp-bass-knob-grid .knob-val-txt { font-size: 8.2px; white-space: nowrap; }
.smp-bass-out-grid {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px;
    width: 100%; min-width: 0;
}
.smp-bass-out-grid .smp-vst-knob { padding: 5px 2px 4px 2px; min-width: 0; }
.smp-bass-out-grid .smp-knob-svg { width: 38px; height: 38px; }
#module-sampler .smp-sec-bar {
    display: flex; justify-content: space-between; align-items: center; gap: 6px;
    font-family: 'Orbitron', sans-serif; font-size: 9px; font-weight: 900;
    letter-spacing: 0.75px; margin-bottom: 10px; padding-bottom: 7px;
    border-bottom: 1px solid rgba(56, 189, 248, 0.22);
    color: #e2e8f0; min-width: 0;
}
#module-sampler .smp-sec-bar > span:first-child {
    min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#module-sampler .smp-sec-bar > div,
#module-sampler .smp-sec-bar > button,
#module-sampler .smp-sec-bar > .smp-sec-sub {
    flex-shrink: 0;
}
#module-sampler .smp-sec-sub {
    font-family: 'Orbitron', sans-serif; font-size: 8px; font-weight: 700;
    color: #94a3b8; letter-spacing: 0.7px;
}
#module-sampler .smp-sc-link-badge {
    display: inline-flex; align-items: center; gap: 4px;
    background: rgba(56, 189, 248, 0.10); border: 1px solid rgba(56, 189, 248, 0.34);
    border-radius: 4px; padding: 3px 7px; font-size: 8px; font-weight: 800; color: #7dd3fc;
    letter-spacing: 0.6px;
}
/* MACHINED BRUSHED ALUMINUM BUTTONS */
#module-sampler .smp-hw-btn {
    background:
        repeating-linear-gradient(90deg, rgba(255,255,255,0.022) 0px, rgba(255,255,255,0.022) 1px, transparent 1px, transparent 3px),
        linear-gradient(180deg, #243044 0%, #131c2b 52%, #0a101b 100%) !important;
    border: 1px solid #3c4d66 !important;
    border-top-color: #526582 !important;
    border-bottom-color: #161f2e !important;
    color: #e2e8f0 !important;
    font-family: 'Orbitron', sans-serif !important;
    font-size: 9.5px !important; font-weight: 800 !important;
    border-radius: 6px !important; cursor: pointer !important;
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    gap: 5px !important; min-height: 35px !important; padding: 7px 8px !important;
    min-width: 0 !important; max-width: 100% !important; overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; letter-spacing: 0.45px !important; line-height: 1.1 !important;
    box-shadow: inset 0 1px 0 rgba(241,245,249,0.16), 0 2px 0 #020617, 0 4px 10px rgba(0,0,0,0.48) !important;
    transition: border-color 0.14s ease, box-shadow 0.14s ease, color 0.14s ease, transform 0.08s ease !important;
    -webkit-tap-highlight-color: transparent !important;
}
#module-sampler .smp-hw-btn:hover {
    border-color: #38bdf8 !important; color: #ffffff !important;
    box-shadow: inset 0 1px 0 rgba(224,242,254,0.24), 0 0 12px rgba(56,189,248,0.24), 0 2px 0 #020617 !important;
}
#module-sampler .smp-hw-btn:active {
    transform: translateY(1.5px) !important;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.65), 0 0 8px rgba(56,189,248,0.2) !important;
}
#module-sampler #btn-smp-play {
    background:
        repeating-linear-gradient(90deg, rgba(255,255,255,0.024) 0px, rgba(255,255,255,0.024) 1px, transparent 1px, transparent 3px),
        linear-gradient(180deg, rgba(14, 116, 144, 0.72) 0%, #0a2a3f 55%, #061826 100%) !important;
    border: 1.5px solid #38bdf8 !important; color: #ffffff !important;
    font-size: 10.5px !important; font-weight: 900 !important; letter-spacing: 1px !important;
    box-shadow: inset 0 1px 0 rgba(224,242,254,0.32), 0 0 16px rgba(56,189,248,0.34), 0 2px 0 #020617 !important;
}
#module-sampler #btn-smp-play.playing {
    background:
        repeating-linear-gradient(90deg, rgba(255,255,255,0.024) 0px, rgba(255,255,255,0.024) 1px, transparent 1px, transparent 3px),
        linear-gradient(180deg, rgba(185, 28, 28, 0.88) 0%, #610a10 54%, #2b0408 100%) !important;
    border: 1.5px solid #ff2a55 !important; color: #ffffff !important;
    text-shadow: 0 0 10px rgba(255, 110, 130, 0.92) !important;
    box-shadow: inset 0 1px 0 rgba(254, 202, 202, 0.34), inset 0 0 14px rgba(239, 68, 68, 0.36), 0 0 18px rgba(239, 68, 68, 0.68), 0 2px 0 #020617 !important;
}
/* SMOKED GLASS MINI LCD + FULL-STRETCH 5-BUTTON UTILITY BAR */
#module-sampler .smp-pad-lcd-row {
    display: flex !important; align-items: stretch !important; justify-content: space-between !important;
    gap: 6px !important; flex-wrap: nowrap !important;
    margin-top: 8px !important; margin-bottom: 16px !important; width: 100% !important;
}
#module-sampler .smp-lcd-screen {
    flex: 0 0 144px !important; width: 144px !important; max-width: 144px !important;
    min-width: 0 !important; height: 33px !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    position: relative !important; overflow: hidden !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.02) 44%, rgba(0, 0, 0, 0.24) 50%, rgba(2, 6, 23, 0.94) 100%),
        radial-gradient(ellipse at 50% 0%, #0f1f36 0%, #050b16 70%, #02050c 100%) !important;
    border: 1.5px solid #2c3e55 !important;
    border-top-color: #162235 !important;
    border-bottom-color: rgba(148, 163, 184, 0.32) !important;
    border-radius: 6px !important;
    padding: 0 8px !important;
    color: #38bdf8 !important;
    font-family: 'Orbitron', sans-serif !important;
    font-size: 10.5px !important; font-weight: 900 !important; letter-spacing: 0.5px !important;
    white-space: nowrap !important; text-overflow: ellipsis !important;
    text-align: center !important;
    text-shadow: 0 0 9px rgba(56, 189, 248, 0.58) !important;
    box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.94), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}
#module-sampler .smp-pad-util-btns {
    flex: 1 1 auto !important; min-width: 0 !important;
    display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 4px !important; align-items: stretch !important;
}
#module-sampler .smp-pad-util-btns .smp-mini-btn {
    width: 100% !important; height: 33px !important; min-height: 33px !important;
    padding: 0 3px !important; font-size: 8.2px !important; letter-spacing: 0.35px !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
}
#module-sampler .smp-hw-btn.btn-active-blue,
#module-sampler .smp-hw-btn.btn-active-ice {
    background:
        repeating-linear-gradient(90deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 3px),
        linear-gradient(180deg, rgba(14, 116, 144, 0.56) 0%, #081e30 100%) !important;
    border-color: #38bdf8 !important; color: #f0f9ff !important;
    box-shadow: inset 0 1px 0 rgba(186,230,253,0.26), inset 0 0 10px rgba(56,189,248,0.18), 0 0 10px rgba(56,189,248,0.22), 0 2px 0 #020617 !important;
}
#module-sampler .smp-hw-btn.btn-muted-state {
    opacity: 0.72 !important; color: #94a3b8 !important;
}
#module-sampler .smp-hw-btn.btn-active-alert,
#module-sampler .smp-hw-btn.rec-active {
    background: linear-gradient(180deg, #243044 0%, #0f172a 100%) !important;
    border-color: #38bdf8 !important; color: #ffffff !important;
    box-shadow: inset 0 0 10px rgba(56,189,248,0.22), 0 0 12px rgba(239,68,68,0.26), 0 2px 0 #020617 !important;
}
/* UNIFIED PATTERN/BANK STATE: Selected = BLUE fill | In Project = WHITE border | Playing = ORANGE border */
#module-sampler .smp-hw-btn.bank-in-chain {
    border: 1.5px solid rgba(248, 250, 252, 0.88) !important;
    color: #f8fafc !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 0 5px rgba(248, 250, 252, 0.18), 0 2px 0 #020617 !important;
}
#module-sampler .smp-hw-btn.btn-active-blue.bank-in-chain {
    background:
        repeating-linear-gradient(90deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 3px),
        linear-gradient(180deg, rgba(14, 116, 144, 0.68) 0%, #072238 100%) !important;
    border: 1.5px solid rgba(248, 250, 252, 0.94) !important;
    color: #ffffff !important;
    box-shadow: inset 0 0 12px rgba(56, 189, 248, 0.34), 0 0 8px rgba(56, 189, 248, 0.30), 0 2px 0 #020617 !important;
}
#module-sampler .smp-hw-btn.bank-playing,
#module-sampler .smp-hw-btn.bank-in-chain.bank-playing,
#module-sampler .smp-hw-btn.btn-active-blue.bank-playing {
    border: 1.8px solid #f97316 !important;
    outline: none !important;
    color: #ffffff !important;
    box-shadow: inset 0 0 10px rgba(249, 115, 22, 0.30), 0 0 12px rgba(249, 115, 22, 0.72), 0 2px 0 #020617 !important;
}
#module-sampler .smp-mini-btn {
    min-height: 30px !important; padding: 4px 5px !important; font-size: 8px !important; letter-spacing: 0.35px !important; gap: 3px !important;
}
/* MACHINED SELECT DROPDOWNS */
#module-sampler .smp-select {
    width: 100% !important; min-height: 37px !important;
    background: linear-gradient(180deg, #0d1421 0%, #050912 100%) !important;
    border: 1.2px solid rgba(56, 189, 248, 0.52) !important;
    color: #e0f2fe !important; font-family: 'Orbitron', sans-serif !important;
    font-size: 10px !important; font-weight: 800 !important; letter-spacing: 0.5px !important;
    padding: 8px 10px !important; border-radius: 6px !important; color-scheme: dark !important;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.7) !important; outline: none !important;
}
#module-sampler .smp-select:focus {
    border-color: #38bdf8 !important; box-shadow: 0 0 10px rgba(56,189,248,0.28), inset 0 2px 6px rgba(0,0,0,0.7) !important;
}
#module-sampler .smp-select option, #module-sampler .smp-select optgroup {
    background: #020617 !important; color: #e2e8f0 !important;
}
.smp-led-dot {
    width: 7px; height: 7px; border-radius: 50%; background: #334155;
    border: 1px solid rgba(255,255,255,0.12); display: inline-block; flex-shrink: 0;
}
.smp-led-dot.active { background: #ef4444; box-shadow: 0 0 8px #ef4444; border-color: #fecaca; }
.smp-led-dot.active-blue { background: #38bdf8; box-shadow: 0 0 9px #38bdf8; border-color: #e0f2fe; }

/* 16-STEP SEQUENCER STRIPS (DESKTOP 16-COL, MOBILE 8x2 THUMB GRID WITH BREATHING ROOM) */
.smp-step-grid { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 4px; margin-bottom: 16px !important; }
#module-sampler .smp-step-btn,
#module-sampler .smp-sub-step-btn {
    height: 36px !important;
    background:
        repeating-linear-gradient(90deg, rgba(255,255,255,0.018) 0px, rgba(255,255,255,0.018) 1px, transparent 1px, transparent 3px),
        linear-gradient(180deg, #1d2738 0%, #0c121e 100%) !important;
    border: 1px solid #334155 !important;
    border-bottom: 3px solid var(--step-grp-col, #334155) !important;
    border-radius: 5px !important; color: #94a3b8 !important;
    font-family: 'Orbitron', sans-serif !important; font-size: 8.5px !important; font-weight: 800 !important;
    padding: 4px 0 3px 0 !important; cursor: pointer !important;
    display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: space-between !important;
    min-width: 0 !important; box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 2px 0 #020617 !important;
    transition: border-color 0.1s ease, filter 0.1s ease, transform 0.08s ease !important;
}
#module-sampler .smp-step-btn.is-on,
#module-sampler .smp-sub-step-btn.is-on {
    background: linear-gradient(180deg, rgba(14, 116, 144, 0.52) 0%, #081c2e 100%) !important;
    border-color: #38bdf8 !important; border-bottom-color: #38bdf8 !important; color: #ffffff !important;
    box-shadow: inset 0 1px 0 rgba(186,230,253,0.28), 0 0 8px rgba(56,189,248,0.24), 0 2px 0 #020617 !important;
}
#module-sampler .smp-step-btn.is-playhead,
#module-sampler .smp-sub-step-btn.is-playhead {
    border-color: #f97316 !important; color: #ffffff !important;
    box-shadow: inset 0 0 8px rgba(249,115,22,0.28), 0 0 11px rgba(249,115,22,0.72) !important; transform: translateY(-1px) !important;
}
.smp-step-led, .sub-step-led { width: 10px; height: 3px; border-radius: 2px; background: #1e293b; display: block; }

/* 4x4 MACHINED BRUSHED-ALUMINUM PERFORMANCE PADS */
.smp-pad-matrix { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-bottom: 16px !important; }
.smp-pad-btn {
    position: relative; height: 64px;
    background:
        repeating-linear-gradient(90deg, rgba(255,255,255,0.022) 0px, rgba(255,255,255,0.022) 1px, transparent 1px, transparent 3px),
        radial-gradient(circle at 50% 24%, #253349 0%, #101827 65%, #090e18 100%);
    border: 1px solid #3c4d66; border-top-color: #526582; border-bottom: 3px solid #0f172a;
    border-radius: 7px; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 6px 4px 5px 4px; user-select: none; -webkit-user-select: none;
    box-shadow: inset 0 1px 0 rgba(241,245,249,0.16), 0 3px 0 #020617, 0 5px 12px rgba(0,0,0,0.6);
    transition: border-color 0.14s ease, box-shadow 0.14s ease, transform 0.08s ease;
}
.smp-pad-btn:hover { border-color: rgba(56, 189, 248, 0.72); }
.smp-pad-btn.pad-in-project {
    border-color: rgba(248, 250, 252, 0.78) !important;
    border-top-color: rgba(248, 250, 252, 0.88) !important;
}
.smp-pad-btn.pad-selected {
    border: 1.5px solid #38bdf8 !important; border-bottom-width: 3px !important;
    background:
        repeating-linear-gradient(90deg, rgba(255,255,255,0.022) 0px, rgba(255,255,255,0.022) 1px, transparent 1px, transparent 3px),
        radial-gradient(circle at 50% 28%, rgba(14,116,144,0.52) 0%, #081e34 70%, #06101e 100%);
    box-shadow: inset 0 0 14px rgba(56,189,248,0.28), 0 0 14px rgba(56,189,248,0.36), 0 2px 0 #020617;
}
.smp-pad-btn.pad-selected.pad-in-project {
    border-color: rgba(248, 250, 252, 0.90) !important;
}
.smp-pad-btn.pad-firing {
    transform: translateY(2px) scale(0.97);
    border-color: #f97316 !important;
    box-shadow: inset 0 0 16px rgba(249,115,22,0.36), 0 0 16px rgba(249,115,22,0.75) !important;
}
.smp-pad-btn.drag-over { border-color: #7dd3fc !important; background: rgba(56,189,248,0.22) !important; }
.smp-pad-led { position: absolute; top: 6px; right: 6px; width: 16px; height: 3.5px; border-radius: 2px; background: #1e293b; }
.smp-pad-num { position: absolute; top: 4px; left: 6px; font-family: 'Orbitron', sans-serif; font-size: 8px; color: #94a3b8; font-weight: 800; }
.smp-pad-title { font-family: 'Orbitron', sans-serif; font-size: 9px; font-weight: 900; color: #f1f5f9; text-align: center; margin-top: 7px; letter-spacing: 0.3px; line-height: 1.15; }
.smp-pad-meta { font-family: 'Orbitron', sans-serif; font-size: 8px; font-weight: 800; color: #38bdf8; margin-top: 3px; letter-spacing: 0.5px; }

/* ROTARY KNOB DECK */
.smp-knob-grid-6 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.smp-knob-grid-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.smp-knob-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.smp-vst-knob {
    min-width: 0; max-width: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background:
        repeating-linear-gradient(90deg, rgba(255,255,255,0.015) 0px, rgba(255,255,255,0.015) 1px, transparent 1px, transparent 3px),
        linear-gradient(180deg, #162030 0%, #090e18 100%);
    border: 1px solid #334155; border-top-color: #475569; border-radius: 7px;
    padding: 7px 3px 6px 3px; cursor: ns-resize; user-select: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 2px 5px rgba(0,0,0,0.45);
    transition: border-color 0.14s ease, box-shadow 0.14s ease;
}
.smp-vst-knob:hover { border-color: #38bdf8; box-shadow: 0 0 10px rgba(56,189,248,0.22); }
.smp-knob-lbl { font-family: 'Orbitron', sans-serif; font-size: 8px; color: #cbd5e1; font-weight: 800; letter-spacing: 0.4px; margin-bottom: 2px; text-align: center; }
.smp-knob-svg { width: 44px; height: 44px; display: block; }
.knob-val-txt { font-family: 'Orbitron', sans-serif; font-size: 9px; font-weight: 900; color: #38bdf8; margin-top: 2px; letter-spacing: 0.3px; }

/* OLED SCREENS & CLOCK MINI BOXES */
.smp-oled-screen {
    height: 78px; background: radial-gradient(ellipse at center, #071222 0%, #020617 100%);
    border: 1.5px solid #2c3e55; border-radius: 7px; position: relative; overflow: hidden;
    box-shadow: inset 0 2px 14px rgba(0,0,0,0.92), 0 1px 0 rgba(255,255,255,0.08);
}
.smp-mini-box {
    background: linear-gradient(180deg, #060b14 0%, #020617 100%);
    border: 1px solid #3c4d66; border-radius: 6px; padding: 4px 3px;
    text-align: center; display: flex; flex-direction: column; justify-content: center; min-width: 0;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.75);
}
.smp-mini-lbl { font-family: 'Orbitron', sans-serif; font-size: 8px; color: #94a3b8; font-weight: 800; display: block; margin-bottom: 1px; letter-spacing: 0.5px; }

/* MULTI-CHANNEL FX & BIT-DEPTH BUTTONS */
.smp-fx-sc-pair {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 3px;
    background: rgba(56, 189, 248, 0.08); border: 1px solid rgba(56, 189, 248, 0.36);
    border-radius: 6px; padding: 3px;
}
#module-sampler .smp-fx-ch-btn, #module-sampler .smp-bit-btn {
    background:
        repeating-linear-gradient(90deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 3px),
        linear-gradient(180deg, #1d2738 0%, #0b111c 100%) !important;
    border: 1px solid #3c4d66 !important; border-top-color: #4f627d !important;
    color: #cbd5e1 !important; font-family: 'Orbitron', sans-serif !important;
    font-size: 8px !important; font-weight: 800 !important; min-height: 30px !important;
    min-width: 0 !important; max-width: 100% !important; overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important;
    padding: 4px 3px !important; border-radius: 5px !important; cursor: pointer !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    gap: 3px !important; box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 2px 0 #020617 !important;
    transition: border-color 0.14s ease, color 0.14s ease !important;
}
#module-sampler .smp-fx-ch-btn:hover, #module-sampler .smp-bit-btn:hover {
    border-color: #38bdf8 !important; color: #ffffff !important;
}
#module-sampler .smp-fx-ch-btn.is-selected,
#module-sampler .smp-bit-btn.is-selected,
#module-sampler .smp-bit-btn.is-crush {
    background: linear-gradient(180deg, rgba(14, 116, 144, 0.62) 0%, #071926 100%) !important;
    border-color: #38bdf8 !important; color: #ffffff !important;
    box-shadow: inset 0 0 10px rgba(56,189,248,0.22), 0 0 10px rgba(56,189,248,0.28), 0 2px 0 #020617 !important;
}
#module-sampler .smp-fx-ch-btn.has-fx {
    border-color: rgba(56, 189, 248, 0.55) !important; color: #bae6fd !important;
}
.fx-ch-dot { width: 6px; height: 6px; border-radius: 50%; background: #334155; display: inline-block; flex-shrink: 0; }


/* === DESKTOP WIDESCREEN PRO HARDWARE CONSOLE (EXPAND / SPOTLIGHT MODE) === */
#smp-wide-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 50% 42%, rgba(12, 24, 42, 0.88) 0%, rgba(2, 6, 23, 0.96) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2147483500;
}
#smp-wide-backdrop.active { display: block; }
body.smp-wide-lock { overflow: hidden !important; }

/* === EDGE-TO-EDGE SMOKED-GLASS HEAD CONSOLE (GLASS IS THE OUTER FRAME — ZERO WASTED MARGIN) === */
#module-sampler .smp-head-console {
    position: relative;
    padding: 0;
    margin-bottom: 12px;
    border: none;
    background: transparent;
    border-radius: 9px;
    box-shadow: 0 0 22px rgba(56, 189, 248, 0.14), 0 8px 22px rgba(0, 0, 0, 0.65);
}
/* Top laser-blue hairline highlight seated directly on the smoked-glass rim */
#module-sampler .smp-head-console::before {
    content: '';
    position: absolute;
    top: 0; left: 12%; right: 12%;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(56,189,248,0.88) 24%, rgba(224,242,254,0.96) 50%, rgba(56,189,248,0.88) 76%, transparent 100%);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
    pointer-events: none;
    z-index: 4;
}
#module-sampler .smp-head-smoked-glass {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(177deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.015) 22%, rgba(0, 0, 0, 0.20) 24%, transparent 54%),
        repeating-linear-gradient(0deg, rgba(56, 189, 248, 0.018) 0px, rgba(56, 189, 248, 0.018) 1px, transparent 1px, transparent 4px),
        radial-gradient(ellipse at 50% 0%, #0e2038 0%, #050b16 58%, #02050c 100%);
    border: 1.5px solid rgba(56, 189, 248, 0.42);
    border-top-color: rgba(125, 211, 252, 0.50);
    border-bottom-color: rgba(56, 189, 248, 0.28);
    border-radius: 9px;
    padding: 7px;
    box-shadow:
        inset 0 3px 22px rgba(0, 0, 0, 0.96),
        inset 0 1px 0 rgba(224, 242, 254, 0.14),
        inset 0 -1px 0 rgba(56, 189, 248, 0.12);
}
/* Clean smoked-glass frame without corner ticks */

#module-sampler .smp-top-bridge {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
#module-sampler .smp-screens-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin-bottom: 0;
}
#module-sampler .smp-head-smoked-glass .smp-oled-screen {
    height: 78px;
    background: radial-gradient(ellipse at 50% 15%, rgba(12, 29, 52, 0.85) 0%, rgba(2, 6, 16, 0.96) 100%);
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 6px;
    box-shadow: inset 0 2px 14px rgba(0, 0, 0, 0.94), 0 0 8px rgba(56, 189, 248, 0.08);
}
#module-sampler .smp-master-strip {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 7px;
    align-items: stretch;
    padding: 6px 7px;
    margin: 0;
    background: linear-gradient(180deg, rgba(10, 19, 34, 0.78) 0%, rgba(3, 8, 18, 0.92) 100%);
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 6px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.86);
}
#module-sampler .smp-master-strip .smp-vst-knob {
    height: 100%;
    padding: 4px 2px;
    justify-content: center;
    background: rgba(7, 14, 26, 0.88);
    border-color: rgba(56, 189, 248, 0.26);
}
#module-sampler .smp-master-strip .smp-knob-svg { width: 40px; height: 40px; }
#module-sampler .smp-master-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 5px;
    min-width: 0;
    height: 100%;
}
#module-sampler .smp-master-btn-row { display: grid; grid-template-columns: 1.15fr 1.15fr 0.56fr 0.56fr 0.72fr; gap: 4px; }
.smp-studio-modal-ov {
    position: fixed; inset: 0; z-index: 2147483645;
    background: rgba(2, 6, 23, 0.88);
    display: flex; align-items: center; justify-content: center;
    padding: 14px; box-sizing: border-box;
}
.smp-studio-modal-box {
    width: 100%; max-width: 440px; max-height: 90vh; overflow-y: auto;
    background: repeating-linear-gradient(90deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 3px),
                linear-gradient(168deg, #1b273a 0%, #0a101c 60%, #050912 100%);
    border: 1.5px solid #38bdf8; border-radius: 12px; padding: 15px;
    box-shadow: 0 24px 70px rgba(0,0,0,0.94), 0 0 28px rgba(56,189,248,0.22);
    font-family: 'Orbitron', sans-serif; color: #e2e8f0; box-sizing: border-box;
}
.smp-studio-modal-hdr {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 10px;
    padding-bottom: 9px; margin-bottom: 11px; border-bottom: 1px solid rgba(56,189,248,0.28);
}
.smp-studio-modal-title { font-size: 11.5px; font-weight: 900; color: #38bdf8; letter-spacing: 1.2px; }
.smp-studio-modal-sub { font-size: 7px; color: #94a3b8; font-weight: 700; letter-spacing: 0.6px; margin-top: 2px; }
.smp-studio-modal-sec {
    background: rgba(2, 6, 23, 0.72); border: 1px solid #1e293b; border-radius: 8px;
    padding: 9px 10px; margin-bottom: 9px;
}
.smp-studio-lbl {
    display: block; font-size: 7.5px; color: #94a3b8; font-weight: 800; letter-spacing: 0.9px; margin-bottom: 6px;
}
.smp-studio-inp {
    width: 100%; box-sizing: border-box; padding: 8px 10px;
    background: #020617; border: 1px solid rgba(56,189,248,0.45); border-radius: 6px;
    color: #f8fafc; font-family: 'Orbitron', sans-serif; font-size: 11px; font-weight: 800;
    letter-spacing: 0.8px; outline: none;
}
.smp-studio-inp:focus { border-color: #7dd3fc; box-shadow: 0 0 10px rgba(56,189,248,0.25); }
.smp-proj-list { display: flex; flex-direction: column; gap: 5px; max-height: 168px; overflow-y: auto; }
.smp-proj-row {
    display: flex; align-items: center; gap: 6px; padding: 6px 8px;
    background: rgba(15, 23, 42, 0.72); border: 1px solid #1e293b; border-radius: 6px;
}
.smp-studio-modal-box .smp-hw-btn {
    background: linear-gradient(180deg, #243044 0%, #121b2a 55%, #090e18 100%);
    border: 1px solid #3c4d66; border-radius: 6px; color: #e2e8f0;
    font-family: 'Orbitron', sans-serif; font-size: 8.5px; font-weight: 900;
    padding: 6px 8px; cursor: pointer; letter-spacing: 0.6px;
}
.smp-studio-modal-box .smp-hw-btn.btn-active-blue {
    background: linear-gradient(180deg, rgba(14,116,144,0.62) 0%, #081e30 100%);
    border-color: #38bdf8; color: #ffffff;
}
.smp-studio-modal-box .smp-mini-btn { min-height: 26px; padding: 4px 7px; font-size: 7.5px; }
#module-sampler .smp-btn-reset {
    border-color: rgba(239, 68, 68, 0.55) !important;
    color: #fecaca !important;
    background:
        repeating-linear-gradient(90deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 3px),
        linear-gradient(180deg, rgba(127, 29, 29, 0.55) 0%, #26090e 100%) !important;
}
#module-sampler .smp-btn-reset:hover {
    border-color: #f87171 !important;
    color: #ffffff !important;
    box-shadow: inset 0 1px 0 rgba(254,202,202,0.24), 0 0 10px rgba(239,68,68,0.34), 0 2px 0 #020617 !important;
}
#module-sampler .smp-master-btn-row .smp-hw-btn {
    min-height: 32px !important;
    height: 32px !important;
    padding: 4px 5px !important;
    font-size: 8.2px !important;
    letter-spacing: 0.45px !important;
}
#module-sampler .smp-vu-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
#module-sampler .smp-vu-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 6.4px;
    font-weight: 800;
    letter-spacing: 0.75px;
    color: #64748b;
    padding: 0 2px;
    line-height: 1;
}
#module-sampler .smp-vu-meta span:first-child { color: #7dd3fc; }
#module-sampler .smp-transport-strip {
    display: grid;
    grid-template-columns: 1.42fr 0.82fr 0.64fr 0.78fr 0.78fr;
    gap: 6px;
    align-items: stretch;
    padding: 6px;
    margin: 0;
    background: linear-gradient(180deg, rgba(10, 19, 34, 0.78) 0%, rgba(3, 8, 18, 0.92) 100%);
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 6px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.86);
}
#module-sampler .smp-transport-strip .smp-hw-btn {
    min-height: 44px !important;
    height: 100% !important;
    padding: 4px 5px !important;
}
#module-sampler .smp-transport-strip .smp-mini-box {
    min-height: 44px;
    height: 100%;
    background: radial-gradient(ellipse at 50% 0%, #0d1d34 0%, #030712 100%);
    border: 1px solid rgba(56, 189, 248, 0.30);
    border-radius: 6px;
    padding: 4px 3px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.92);
}
#module-sampler .smp-clock-input {
    width: 100%;
    background: transparent;
    border: none;
    color: #38bdf8;
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 900;
    text-align: center;
    outline: none;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.45);
}
#module-sampler .smp-clock-input.smp-clock-swing { color: #7dd3fc; }
#module-sampler .smp-preset-row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
#module-sampler .smp-preset-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }

@media (min-width: 960px) {
    #module-sampler .smp-hdr-expand-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        height: 28px !important;
        padding: 0 12px !important;
        border-radius: 6px !important;
        border: 1.5px solid #38bdf8 !important;
        background: rgba(14, 116, 144, 0.22) !important;
        color: #38bdf8 !important;
        font-family: 'Orbitron', sans-serif !important;
        font-size: 10px !important;
        font-weight: 800 !important;
        letter-spacing: 1.1px !important;
        text-transform: uppercase !important;
        line-height: 1 !important;
        cursor: pointer !important;
        white-space: nowrap !important;
        box-shadow: inset 0 0 10px rgba(56, 189, 248, 0.14), 0 0 8px rgba(56, 189, 248, 0.16) !important;
        transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease !important;
    }
    #module-sampler .smp-hdr-expand-btn:hover {
        background: rgba(56, 189, 248, 0.28) !important;
        color: #ffffff !important;
        box-shadow: 0 0 14px rgba(56, 189, 248, 0.42) !important;
    }
    #module-sampler .smp-hdr-expand-btn.is-close {
        border-color: #ef4444 !important;
        background: rgba(239, 68, 68, 0.13) !important;
        color: #ef4444 !important;
        box-shadow: inset 0 0 10px rgba(239, 68, 68, 0.12), 0 0 10px rgba(239, 68, 68, 0.22) !important;
    }
    #module-sampler .smp-hdr-expand-btn.is-close:hover {
        background: rgba(239, 68, 68, 0.28) !important;
        color: #fecaca !important;
        box-shadow: 0 0 16px rgba(239, 68, 68, 0.48) !important;
    }

    /* Widen #module-sampler cleanly in BOTH built-in EXPAND and MI•KA•DO global Spotlight */
    #module-sampler.arch-spotlight-active,
    #module-sampler.module-spotlight-active,
    #module-sampler.spotlight-active {
        width: min(1480px, 95vw) !important;
        max-width: min(1480px, 95vw) !important;
        max-height: 94vh !important;
        overflow-y: auto !important;
    }
    #module-sampler.smp-fix-center {
        left: 50% !important;
        right: auto !important;
        top: 50% !important;
        bottom: auto !important;
        transform: translate(-50%, -50%) !important;
    }
    #module-sampler.smp-desktop-expanded {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        bottom: auto !important;
        transform: translate(-50%, -50%) !important;
        width: min(1480px, 95vw) !important;
        max-width: min(1480px, 95vw) !important;
        max-height: 94vh !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        z-index: 2147483510 !important;
        margin: 0 !important;
        border: 2px solid #38bdf8 !important;
        border-radius: 12px !important;
        box-shadow:
            inset 0 1px 0 rgba(226, 232, 240, 0.18),
            0 0 36px rgba(56, 189, 248, 0.24),
            0 30px 90px rgba(0, 0, 0, 0.92) !important;
        scrollbar-width: thin;
        scrollbar-color: #38bdf8 #070b13;
    }
    #module-sampler.smp-desktop-expanded::-webkit-scrollbar { width: 8px; }
    #module-sampler.smp-desktop-expanded::-webkit-scrollbar-track { background: #070b13; border-radius: 0 10px 10px 0; }
    #module-sampler.smp-desktop-expanded::-webkit-scrollbar-thumb { background: #38bdf8; border-radius: 4px; }

    /* === SHARED WIDE CONSOLE STYLING (2-COL & 3-COL) === */
    #module-sampler.smp-wide-mode {
        display: grid !important;
        gap: 12px !important;
        padding: 16px 20px 20px 20px !important;
        align-items: stretch !important;
    }
    #module-sampler.smp-wide-mode > .panel-header-row {
        grid-area: hdr !important;
        margin-bottom: 2px !important;
        padding-bottom: 10px !important;
        border-bottom: 1px solid rgba(56, 189, 248, 0.78) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
    }
    #module-sampler.smp-wide-mode {
        font-family: 'Rajdhani', -apple-system, BlinkMacSystemFont, sans-serif !important;
    }
    #module-sampler.smp-wide-mode .panel-head {
        font-family: 'Rajdhani', sans-serif !important;
        font-size: 17px !important;
        font-weight: 700 !important;
        letter-spacing: 1.6px !important;
        text-transform: uppercase !important;
        line-height: 1.15 !important;
        color: #38bdf8 !important;
        text-shadow: 0 0 10px rgba(56, 189, 248, 0.45) !important;
    }
    #module-sampler.smp-wide-mode .tech-sub {
        font-family: 'Rajdhani', sans-serif !important;
        font-size: 11px !important;
        font-weight: 600 !important;
        letter-spacing: 1.5px !important;
        text-transform: uppercase !important;
        color: #64748b !important;
        margin-top: 2px !important;
    }
    #module-sampler.smp-wide-mode .smp-hdr-q-btn {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        padding: 0 !important;
        border-radius: 6px !important;
        border: 1px solid #334155 !important;
        background: rgba(19, 28, 43, 0.92) !important;
        color: #38bdf8 !important;
        font-family: 'Orbitron', sans-serif !important;
        font-size: 12px !important;
        font-weight: 900 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        margin: 0 !important;
        box-shadow: none !important;
    }
    #module-sampler.smp-wide-mode .smp-hdr-q-btn:hover {
        border-color: #38bdf8 !important;
        background: rgba(56, 189, 248, 0.18) !important;
    }
    /* Hide ▲ TOP button while expanded — matches native [ ✕ CLOSE ] [ ? ] header */
    #module-sampler.smp-wide-mode .jump-btn {
        display: none !important;
    }
    #module-sampler.smp-wide-mode > .smp-head-console {
        grid-area: head !important;
        margin-bottom: 0 !important;
        padding: 0 !important;
    }
    #module-sampler.smp-wide-mode .smp-head-smoked-glass {
        padding: 8px 9px !important;
    }
    #module-sampler.smp-wide-mode .smp-top-bridge {
        display: grid !important;
        grid-template-columns: 1.38fr 1.06fr 1.08fr !important;
        gap: 10px !important;
        align-items: stretch !important;
        margin: 0 !important;
    }
    #module-sampler.smp-wide-mode .smp-screens-row {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        height: 96px !important;
        margin-bottom: 0 !important;
    }
    #module-sampler.smp-wide-mode .smp-head-smoked-glass .smp-oled-screen {
        height: 100% !important;
        border-color: rgba(56, 189, 248, 0.34) !important;
    }
    #module-sampler.smp-wide-mode .smp-master-strip {
        height: 96px !important;
        grid-template-columns: 78px minmax(0, 1fr) !important;
        gap: 8px !important;
        margin: 0 !important;
        padding: 6px 8px !important;
        align-items: stretch !important;
    }
    #module-sampler.smp-wide-mode .smp-master-btn-row .smp-hw-btn {
        height: 36px !important;
        min-height: 36px !important;
        font-size: 8.6px !important;
    }
    #module-sampler.smp-wide-mode .smp-vu-housing {
        height: 26px !important;
    }
    #module-sampler.smp-wide-mode .smp-transport-strip {
        height: 96px !important;
        margin: 0 !important;
        padding: 6px 7px !important;
        grid-template-columns: 1.40fr 0.78fr 0.62fr 0.78fr 0.78fr !important;
        gap: 6px !important;
        align-items: stretch !important;
    }
    #module-sampler.smp-wide-mode .smp-transport-strip .smp-hw-btn {
        min-height: 0 !important;
        height: 100% !important;
        font-size: 10px !important;
    }
    #module-sampler.smp-wide-mode .smp-transport-strip #btn-smp-play {
        font-size: 12px !important;
        letter-spacing: 1.4px !important;
    }
    #module-sampler.smp-wide-mode .smp-transport-strip .smp-clock-input {
        font-size: 18px !important;
    }

    /* Panel Grid Area Assignments (Tight hardware spacing — ZERO stretched empty voids) */
    #module-sampler.smp-wide-mode .smp-ws-deck > .smp-sec-rhythm {
        grid-area: rhythm !important;
        margin-bottom: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
    }
    #module-sampler.smp-wide-mode .smp-ws-deck > .smp-sec-sub {
        grid-area: sub !important;
        margin-bottom: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
    }
    #module-sampler.smp-wide-mode .smp-ws-deck > .smp-sec-fx {
        grid-area: fx !important;
        margin-bottom: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
    }
    #module-sampler.smp-wide-mode .smp-ws-deck > .smp-sec-master {
        grid-area: master !important;
        margin-bottom: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
    }
    #module-sampler.smp-wide-3col .smp-ws-deck > .smp-sec-master .smp-master-suite-grid {
        grid-template-columns: 0.96fr 1.14fr 1.08fr 0.96fr 1.06fr !important;
        gap: 8px !important;
        align-items: stretch !important;
    }
    #module-sampler.smp-wide-2col .smp-ws-deck > .smp-sec-master .smp-master-suite-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 9px !important;
        align-items: stretch !important;
    }
    #module-sampler.smp-wide-2col .smp-ws-deck > .smp-sec-master .smp-master-bay-inf {
        grid-column: 1 / -1 !important;
    }
    #module-sampler.smp-wide-mode .smp-ws-deck > .smp-sec-noise {
        grid-area: noise !important;
        margin-bottom: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
    }
    #module-sampler.smp-wide-mode .smp-ws-deck > .smp-sec-vocal {
        grid-area: vocal !important;
        margin-bottom: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
    }
    #module-sampler.smp-wide-3col .smp-ws-deck > .smp-sec-rhythm .smp-pad-matrix {
        flex: 0 0 auto !important;
    }
    #module-sampler.smp-wide-3col .smp-ws-deck > .smp-sec-rhythm .smp-pad-synth-wrap {
        margin-top: 6px !important;
    }
    #module-sampler.smp-wide-3col .smp-ws-deck > .smp-sec-sub .smp-bass-matrix-bay {
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
    }
    #module-sampler.smp-wide-3col .smp-ws-deck > .smp-sec-vocal .smp-vox-bottom-wide {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
    }
    #module-sampler.smp-wide-3col .smp-ws-deck > .smp-sec-vocal .smp-vox-knob-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
        gap: 4px !important;
        margin-top: 0 !important;
    }
    #module-sampler.smp-wide-3col .smp-ws-deck > .smp-sec-vocal .smp-vox-knob-grid .smp-vst-knob {
        padding: 4px 2px 4px 2px !important;
    }
    #module-sampler.smp-wide-3col .smp-ws-deck > .smp-sec-vocal .smp-vox-knob-grid .smp-knob-svg {
        width: 38px !important; height: 38px !important;
    }
    #module-sampler.smp-wide-3col .smp-ws-deck > .smp-sec-noise .smp-noise-wide-body {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        flex: 1 1 auto !important;
        gap: 8px !important;
    }
    #module-sampler.smp-wide-3col .smp-ws-deck > .smp-sec-noise .smp-knob-grid-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 5px !important;
    }
    #module-sampler.smp-wide-3col .smp-ws-deck > .smp-sec-noise .smp-knob-grid-4 .smp-vst-knob {
        padding: 5px 2px 5px 2px !important;
    }
    #module-sampler.smp-wide-3col .smp-ws-deck > .smp-sec-noise .smp-knob-grid-4 .smp-knob-svg {
        width: 38px !important; height: 38px !important;
    }
    #module-sampler.smp-wide-3col .smp-ws-deck > .smp-sec-noise .smp-step-grid {
        margin-bottom: 0 !important;
    }
    #module-sampler.smp-wide-mode > #mikado-sampler-fx-bar {
        grid-area: vst !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        padding: 13px 12px !important;
        border-radius: 9px !important;
        border: 1px solid rgba(148, 163, 184, 0.22) !important;
        border-top-color: rgba(226, 232, 240, 0.18) !important;
        background:
            repeating-linear-gradient(90deg, rgba(255,255,255,0.018) 0px, rgba(255,255,255,0.018) 1px, transparent 1px, transparent 4px),
            linear-gradient(180deg, rgba(22, 31, 46, 0.88) 0%, rgba(9, 14, 24, 0.94) 100%) !important;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 4px 14px rgba(0,0,0,0.42) !important;
    }
    #module-sampler.smp-wide-mode > #mikado-sampler-fx-bar .fx-rack-grid {
        flex: 1 !important;
        align-items: stretch !important;
    }

    /* Internal Polish inside Wide Console Bays */
    #module-sampler.smp-wide-mode .smp-preset-row {
        display: grid !important;
        grid-template-columns: 1.55fr 1fr !important;
        gap: 7px !important;
        align-items: stretch !important;
        margin-bottom: 10px !important;
    }
    #module-sampler.smp-wide-mode .smp-sec-rhythm .smp-pad-lcd-row {
        margin-top: 4px !important;
        margin-bottom: 10px !important;
    }
    #module-sampler.smp-wide-mode .smp-sec-rhythm .smp-lcd-screen {
        flex: 0 0 164px !important;
        width: 164px !important;
        max-width: 164px !important;
    }
    #module-sampler.smp-wide-mode .smp-sec-rhythm .smp-step-grid {
        margin-bottom: 11px !important;
    }
    #module-sampler.smp-wide-mode .smp-sec-rhythm .smp-step-btn {
        height: 34px !important;
    }
    #module-sampler.smp-wide-mode .smp-sec-rhythm .smp-pad-matrix {
        gap: 6px !important;
        margin-bottom: 8px !important;
    }
    #module-sampler.smp-wide-mode .smp-sec-rhythm .smp-pad-btn {
        height: 54px !important;
    }
    #module-sampler.smp-wide-mode .smp-sec-rhythm .smp-pad-title {
        font-size: 9.5px !important;
    }
    /* Roomy 3x2 FX Rotary Matrix in Col 3 so labels & values breathe and align column bottoms */
    #module-sampler.smp-wide-mode .smp-sec-fx .smp-knob-grid-6 {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }
    #module-sampler.smp-wide-mode .smp-sec-fx .smp-knob-grid-6 .smp-vst-knob {
        padding: 8px 4px 7px 4px !important;
    }
    #module-sampler.smp-wide-mode .smp-sec-sub .smp-step-grid,
    #module-sampler.smp-wide-mode .smp-sec-noise .smp-step-grid {
        margin-bottom: 10px !important;
    }

    /* PRO 60-COLUMN PROPORTIONAL ZERO-VOID DESKTOP CONSOLE (>= 1140px):
       Unified Brushed-Aluminum Workspace Deck holds the 60-column module grid! */
    #module-sampler.smp-wide-3col {
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-areas: none !important;
        gap: 9px !important;
        padding: 13px 15px 15px 15px !important;
    }
    #module-sampler.smp-wide-3col > .panel-header-row { grid-area: auto !important; grid-column: 1 / -1 !important; grid-row: 1 !important; }
    #module-sampler.smp-wide-3col > .smp-head-console { grid-area: auto !important; grid-column: 1 / -1 !important; grid-row: 2 !important; }
    #module-sampler.smp-wide-3col > .smp-ws-shell     { grid-area: auto !important; grid-column: 1 / -1 !important; grid-row: 3 !important; }
    #module-sampler.smp-wide-3col .smp-ws-deck {
        display: grid !important;
        grid-template-columns: repeat(60, minmax(0, 1fr)) !important;
        gap: 9px !important;
        align-items: stretch !important;
    }
    /* ROW 1: 2/5 Rhythm (40%) + 3/5 Dual-Osc Bassline (60%) -> height-locked ~565px! */
    #module-sampler.smp-wide-3col .smp-ws-deck > .smp-sec-rhythm   { grid-area: auto !important; grid-column: 1 / span 24 !important; grid-row: 1 !important; }
    #module-sampler.smp-wide-3col .smp-ws-deck > .smp-sec-sub      { grid-area: auto !important; grid-column: 25 / span 36 !important; grid-row: 1 !important; }
    /* ROW 2: 4-CH Loop Deck (100% — 4 decks side by side) */
    #module-sampler.smp-wide-3col .smp-ws-deck > .smp-sec-loops    { grid-area: auto !important; grid-column: 1 / -1 !important; grid-row: 2 !important; }
    /* ROW 3: 43% Pro Vocal (2-col internal) + 32% Pad Relooper + 25% White Noise -> height-locked ~470px! */
    #module-sampler.smp-wide-3col .smp-ws-deck > .smp-sec-vocal    { grid-area: auto !important; grid-column: 1 / span 26 !important; grid-row: 3 !important; }
    #module-sampler.smp-wide-3col .smp-ws-deck > .smp-sec-reloop   { grid-area: auto !important; grid-column: 27 / span 19 !important; grid-row: 3 !important; }
    #module-sampler.smp-wide-3col .smp-ws-deck > .smp-sec-noise    { grid-area: auto !important; grid-column: 46 / span 15 !important; grid-row: 3 !important; }
    /* ROW 4: 03B Full-Width 32-Bar Song & Scene Automation Arranger (A1-H4) */
    #module-sampler.smp-wide-3col .smp-ws-deck > .smp-sec-scene-auto { grid-area: auto !important; grid-column: 1 / -1 !important; grid-row: 4 !important; }
    /* ROW 5: 04 Multi-CH DSP FX & 12-CH Console Mixer (100% — 6x2 mixer) */
    #module-sampler.smp-wide-3col .smp-ws-deck > .smp-sec-fx       { grid-area: auto !important; grid-column: 1 / -1 !important; grid-row: 5 !important; }
    /* ROW 6: 05 Unified Analog VST (3 stacked) + Master Bus & Dynamics Suite (100% — 5 balanced cols) */
    #module-sampler.smp-wide-3col .smp-ws-deck > .smp-sec-master   { grid-area: auto !important; grid-column: 1 / -1 !important; grid-row: 6 !important; }

    /* 12-COLUMN PROPORTIONAL LAPTOP / MEDIUM DESKTOP CONSOLE (740px - 1139px) */
    #module-sampler.smp-wide-2col {
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-areas: none !important;
        gap: 9px !important;
    }
    #module-sampler.smp-wide-2col > .panel-header-row { grid-area: auto !important; grid-column: 1 / -1 !important; }
    #module-sampler.smp-wide-2col > .smp-head-console { grid-area: auto !important; grid-column: 1 / -1 !important; }
    #module-sampler.smp-wide-2col > .smp-ws-shell     { grid-area: auto !important; grid-column: 1 / -1 !important; }
    #module-sampler.smp-wide-2col .smp-ws-deck {
        display: grid !important;
        grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
        gap: 9px !important;
        align-items: stretch !important;
    }
    #module-sampler.smp-wide-2col .smp-ws-deck > .smp-sec-rhythm   { grid-area: auto !important; grid-column: 1 / span 5 !important; }
    #module-sampler.smp-wide-2col .smp-ws-deck > .smp-sec-sub      { grid-area: auto !important; grid-column: 6 / span 7 !important; }
    #module-sampler.smp-wide-2col .smp-ws-deck > .smp-sec-loops    { grid-area: auto !important; grid-column: 1 / -1 !important; }
    #module-sampler.smp-wide-2col .smp-ws-deck > .smp-sec-vocal    { grid-area: auto !important; grid-column: 1 / span 7 !important; }
    #module-sampler.smp-wide-2col .smp-ws-deck > .smp-sec-reloop   { grid-area: auto !important; grid-column: 8 / span 5 !important; }
    #module-sampler.smp-wide-2col .smp-ws-deck > .smp-sec-noise    { grid-area: auto !important; grid-column: 1 / -1 !important; }
    #module-sampler.smp-wide-2col .smp-ws-deck > .smp-sec-scene-auto { grid-area: auto !important; grid-column: 1 / -1 !important; }
    #module-sampler.smp-wide-2col .smp-ws-deck > .smp-sec-fx       { grid-area: auto !important; grid-column: 1 / -1 !important; }
    #module-sampler.smp-wide-2col .smp-ws-deck > .smp-sec-master   { grid-area: auto !important; grid-column: 1 / -1 !important; }
    #module-sampler.smp-wide-2col .smp-top-bridge {
        grid-template-columns: 1.25fr 1fr !important;
    }
    #module-sampler.smp-wide-2col .smp-transport-strip {
        grid-column: 1 / -1 !important;
        height: 54px !important;
    }
}

/* RESPONSIVE MOBILE ERGONOMICS (ZERO OVERFLOW, ZERO ORPHAN KNOBS) */
@media (max-width: 640px) {
    #module-sampler .smp-bus-mixer-grid {
        grid-template-columns: 1fr !important;
        gap: 7px !important;
    }
    #module-sampler .smp-mix-strip {
        gap: 6px !important;
        padding: 6px 7px !important;
    }
    #module-sampler .smp-mix-top-row {
        grid-template-columns: 36px minmax(0, 1fr) 34px auto !important;
        gap: 6px !important;
    }
    #module-sampler .smp-mix-ch-name { font-size: 9.5px !important; }
    #module-sampler .smp-mix-val { font-size: 7.8px !important; }
    #module-sampler .smp-mix-btn-pair { gap: 4px !important; }
    #module-sampler .smp-mix-mute-btn,
    #module-sampler .smp-mix-solo-btn { width: 26px !important; height: 24px !important; font-size: 8px !important; }
    #module-sampler .smp-mix-eq-row { gap: 5px !important; padding-top: 6px !important; }
    #module-sampler .smp-mix-eq-row .smp-vst-knob { padding: 4px 2px !important; }
    #module-sampler .smp-mix-eq-row .smp-knob-lbl { font-size: 6.8px !important; }
    #module-sampler .smp-mix-eq-row .smp-knob-svg { width: 34px !important; height: 34px !important; }
    #module-sampler .smp-mix-eq-row .knob-val-txt { font-size: 7.2px !important; }
}
@media (max-width: 540px) {
    #module-sampler { overflow-x: hidden !important; }
    #module-sampler .smp-chassis-panel { padding: 11px 9px !important; margin-bottom: 12px !important; }
    #module-sampler .smp-sub-bay { padding: 7px 6px !important; }
    #module-sampler .smp-pad-lcd-row {
        gap: 5px !important; margin-top: 8px !important; margin-bottom: 14px !important;
    }
    #module-sampler .smp-lcd-screen {
        flex: 0 0 108px !important; width: 108px !important; max-width: 108px !important;
        height: 31px !important; font-size: 9.2px !important; padding: 0 5px !important; letter-spacing: 0.25px !important;
    }
    #module-sampler .smp-pad-util-btns { gap: 3px !important; }
    #module-sampler .smp-pad-util-btns .smp-mini-btn {
        height: 31px !important; min-height: 31px !important; padding: 0 2px !important;
        font-size: 7.2px !important; letter-spacing: 0.1px !important;
    }
    .smp-step-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; margin-bottom: 14px !important; }
    #module-sampler .smp-step-btn,
    #module-sampler .smp-sub-step-btn { height: 37px !important; font-size: 9px !important; }
    .smp-pad-matrix { gap: 7px; margin-bottom: 14px !important; }
    .smp-pad-btn { height: 58px; }
    .smp-pad-title { font-size: 8.5px; }
    .smp-knob-grid-6, .smp-knob-grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
    .smp-knob-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
    /* Keep Bass VSTi 4-col rows intact on mobile -> 4 / 4 / 4 / 2 symmetric matrix, ZERO orphans! */
    .smp-bass-knob-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 4px !important; }
    .smp-bass-knob-grid .smp-vst-knob { padding: 4px 1px 4px 1px !important; }
    .smp-bass-knob-grid .smp-knob-svg { width: 32px !important; height: 32px !important; }
    .smp-bass-knob-grid .smp-knob-lbl { font-size: 6.3px !important; letter-spacing: 0.1px !important; }
    .smp-bass-knob-grid .knob-val-txt { font-size: 7.2px !important; letter-spacing: 0 !important; }
    .smp-bass-out-grid { gap: 5px !important; }
    .smp-bass-out-grid .smp-knob-svg { width: 34px !important; height: 34px !important; }
    /* Responsive OSC Waveform Bank & 3-Way Hardware Switches on mobile */
    .smp-osc-wave-row {
        grid-template-columns: 38px repeat(4, minmax(0, 1fr)) !important;
        gap: 4px !important;
    }
    .smp-osc-tag { font-size: 6.8px !important; }
    #module-sampler .smp-wave-btn { min-height: 34px !important; height: 34px !important; }
    .smp-wave-svg { width: 21px !important; height: 12px !important; }
    .smp-wave-txt { font-size: 5.9px !important; }
    .smp-osc-switches-row { gap: 5px !important; }
    .smp-hw-switch-hdr { font-size: 6.2px !important; }
    .smp-sw3-track { height: 28px !important; }
    #module-sampler .smp-sw3-opt { font-size: 6.8px !important; }
}

/* === SMOKED-GLASS SEQUENCER HOUSINGS ("OSTAKLJENI SEKVENCERI" — HIGH VISIBILITY PATTERN) === */
#module-sampler .smp-seq-glass-bay {
    position: relative;
    overflow: hidden;
    margin-bottom: 12px;
    padding: 8px 8px 8px 8px;
    border-radius: 9px;
    background:
        linear-gradient(176deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 26%, rgba(0, 0, 0, 0.24) 29%, transparent 58%),
        repeating-linear-gradient(0deg, rgba(56, 189, 248, 0.022) 0px, rgba(56, 189, 248, 0.022) 1px, transparent 1px, transparent 4px),
        radial-gradient(ellipse at 50% 0%, #0f243f 0%, #050c18 62%, #02050c 100%);
    border: 1.5px solid rgba(56, 189, 248, 0.54);
    border-top-color: rgba(125, 211, 252, 0.65);
    border-bottom-color: rgba(56, 189, 248, 0.34);
    box-shadow:
        inset 0 3px 20px rgba(0, 0, 0, 0.94),
        inset 0 1px 0 rgba(224, 242, 254, 0.18),
        0 0 16px rgba(56, 189, 248, 0.16),
        0 5px 14px rgba(0, 0, 0, 0.55);
}
#module-sampler .smp-seq-glass-bay::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(56,189,248,0.88) 25%, rgba(224,242,254,0.96) 50%, rgba(56,189,248,0.88) 75%, transparent 100%);
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.65);
    pointer-events: none;
    z-index: 2;
}
#module-sampler .smp-seq-glass-hdr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(56, 189, 248, 0.24);
    font-family: 'Orbitron', sans-serif;
    position: relative;
    z-index: 1;
}
#module-sampler .smp-seq-glass-title {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.95px;
    color: #e0f2fe;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.55);
    white-space: nowrap;
}
#module-sampler .smp-seq-glass-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 8px #38bdf8, 0 0 3px #ffffff;
    display: inline-block; flex-shrink: 0;
}
#module-sampler .smp-seq-glass-meta {
    font-size: 7.2px;
    font-weight: 800;
    letter-spacing: 0.55px;
    color: #7dd3fc;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.36);
    border-radius: 4px;
    padding: 2px 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 62%;
}
#module-sampler .smp-seq-glass-bay .smp-step-grid {
    margin-bottom: 0 !important;
}
/* High-contrast illuminated pattern keys inside smoked glass */
#module-sampler .smp-seq-glass-bay .smp-step-btn:not(.is-on),
#module-sampler .smp-seq-glass-bay .smp-sub-step-btn:not(.is-on) {
    background: linear-gradient(180deg, rgba(16, 26, 44, 0.88) 0%, rgba(5, 10, 20, 0.96) 100%) !important;
    border: 1px solid rgba(51, 65, 85, 0.78) !important;
    border-bottom: 2.5px solid rgba(30, 41, 59, 0.95) !important;
    color: #64748b !important;
}
#module-sampler .smp-seq-glass-bay .smp-step-btn.is-alt-beat:not(.is-on),
#module-sampler .smp-seq-glass-bay .smp-sub-step-btn.is-alt-beat:not(.is-on) {
    background: linear-gradient(180deg, rgba(10, 17, 30, 0.92) 0%, rgba(3, 7, 15, 0.98) 100%) !important;
}
#module-sampler .smp-seq-glass-bay .smp-step-btn.is-on,
#module-sampler .smp-seq-glass-bay .smp-sub-step-btn.is-on {
    background:
        linear-gradient(180deg, rgba(56, 189, 248, 0.42) 0%, rgba(14, 116, 144, 0.68) 48%, #072238 100%) !important;
    border: 1.5px solid #7dd3fc !important;
    border-bottom: 3px solid #38bdf8 !important;
    color: #ffffff !important;
    text-shadow: 0 0 8px rgba(224, 242, 254, 0.85) !important;
    box-shadow:
        inset 0 1px 0 rgba(224, 242, 254, 0.48),
        inset 0 0 10px rgba(56, 189, 248, 0.34),
        0 0 11px rgba(56, 189, 248, 0.46) !important;
}
#module-sampler .smp-seq-glass-bay .smp-step-btn.is-rev.is-on {
    border-color: #fbbf24 !important;
    border-bottom-color: #f59e0b !important;
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.38) 0%, rgba(146, 64, 14, 0.62) 55%, #241205 100%) !important;
    box-shadow: inset 0 1px 0 rgba(254, 243, 199, 0.42), 0 0 10px rgba(245, 158, 11, 0.42) !important;
}
#module-sampler .smp-seq-glass-bay .smp-step-btn.is-playhead,
#module-sampler .smp-seq-glass-bay .smp-sub-step-btn.is-playhead {
    border-color: #f97316 !important;
    box-shadow: inset 0 0 8px rgba(249,115,22,0.32), 0 0 12px rgba(249,115,22,0.78) !important;
    transform: translateY(-1px) !important;
}
#module-sampler .smp-seq-glass-bay .smp-step-led,
#module-sampler .smp-seq-glass-bay .sub-step-led {
    width: 12px; height: 3.5px; border-radius: 2px;
}



/* === BASSLINE MUSICAL KEY & TRANSPOSE BAR (C..B) === */
#module-sampler .smp-bass-key-bay {
    background: linear-gradient(180deg, rgba(4, 10, 22, 0.90) 0%, rgba(8, 15, 29, 0.94) 100%);
    border: 1px solid rgba(56, 189, 248, 0.34);
    border-radius: 7px;
    padding: 6px 7px 6px 7px;
    margin-bottom: 8px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.78);
}
#module-sampler .smp-bass-key-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    margin-bottom: 5px;
}
#module-sampler .smp-bass-key-actions {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
#module-sampler .smp-bass-key-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 3px;
    width: 100%;
}
#module-sampler .smp-key-btn {
    height: 28px !important;
    min-height: 28px !important;
    padding: 0 1px !important;
    border-radius: 4px !important;
    font-family: 'Orbitron', sans-serif !important;
    font-size: 7.4px !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
    color: #e2e8f0 !important;
    background: linear-gradient(180deg, #27354c 0%, #141e30 58%, #0b111d 100%) !important;
    border: 1px solid #475569 !important;
    border-top-color: #64748b !important;
    border-bottom: 2px solid #020617 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.1s ease !important;
}
#module-sampler .smp-key-btn.is-sharp {
    background: linear-gradient(180deg, #0f172a 0%, #060b14 100%) !important;
    color: #94a3b8 !important;
    border-color: #334155 !important;
    font-size: 6.8px !important;
}
#module-sampler .smp-key-btn:hover {
    border-color: #38bdf8 !important;
    color: #ffffff !important;
}
#module-sampler .smp-key-btn.is-orig-key {
    border-color: #fb923c !important;
    color: #fdba74 !important;
    box-shadow: inset 0 -2px 0 #fb923c !important;
}
#module-sampler .smp-key-btn.is-key-active {
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.72) 0%, #072236 100%) !important;
    border-color: #7dd3fc !important;
    border-bottom-color: #38bdf8 !important;
    color: #ffffff !important;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.75) !important;
    box-shadow: inset 0 1px 0 rgba(224, 242, 254, 0.35), 0 0 10px rgba(56, 189, 248, 0.48) !important;
}
@media (max-width: 540px) {
    #module-sampler .smp-bass-key-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    }
}
/* === RESPONSIVE HARDWARE UTILITY GRIDS (COMPACT-CARD & MOBILE FIRST, ZERO TEXT SPILL) === */
#module-sampler .smp-kit-bank-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 10px;
}
#module-sampler .smp-kit-top-strip {
    display: grid;
    grid-template-columns: 0.9fr 0.9fr 1.6fr;
    gap: 4px;
}
#module-sampler .smp-bank-strip-8 {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 4px;
}
#module-sampler .smp-noise-bars-row {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px;
    margin-bottom: 8px;
}
#module-sampler .smp-sub-top-row {
    display: grid;
    grid-template-columns: 1.05fr 0.98fr 0.98fr;
    gap: 5px;
    margin-bottom: 8px;
}
#module-sampler .smp-sub-ed-row {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px;
}
#module-sampler .smp-fx-bus-row {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px;
    align-items: stretch;
    margin-bottom: 10px;
}
#module-sampler .smp-fx-bus-row .smp-fx-sc-pair {
    grid-column: 1 / 5;
}
#module-sampler .smp-fx-bus-row #btn-fx-ch-all {
    grid-column: 5 / 7;
}
/* Balanced 8-Channel Console Bus (4×2 symmetrical grid): accent VOX (Ch 7) & RELOOP (Ch 8) */
#module-sampler #smp-mix-strip-vox,
#module-sampler #smp-mix-strip-reloop {
    border-color: rgba(56, 189, 248, 0.38);
    background: linear-gradient(180deg, rgba(14, 116, 144, 0.14) 0%, rgba(7, 13, 24, 0.94) 100%);
}
/* Per-Channel Hardware 12-Segment LED Signal Meter */
.smp-mix-led-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 22px;
    align-items: center;
    gap: 5px;
    padding: 3px 5px;
    border-radius: 4px;
    background: #020617;
    border: 1px solid rgba(30, 41, 59, 0.95);
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.88);
}
.smp-mix-led-bar {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 2px;
    height: 7px;
    align-items: stretch;
}
.smp-bus-led-seg {
    border-radius: 1.5px;
    background: rgba(30, 41, 59, 0.65);
    border: 1px solid rgba(15, 23, 42, 0.9);
    transition: background 0.04s linear, box-shadow 0.04s linear;
}
.smp-bus-led-seg.led-blue.is-lit {
    background: #38bdf8;
    border-color: #7dd3fc;
    box-shadow: 0 0 6px rgba(56, 189, 248, 0.85);
}
.smp-bus-led-seg.led-amber.is-lit {
    background: #fbbf24;
    border-color: #fde68a;
    box-shadow: 0 0 6px rgba(251, 191, 36, 0.85);
}
.smp-bus-led-seg.led-red.is-lit {
    background: #ef4444;
    border-color: #fca5a5;
    box-shadow: 0 0 7px rgba(239, 68, 68, 0.95);
}
.smp-mix-db-lbl {
    font-family: 'Orbitron', sans-serif;
    font-size: 6.4px;
    font-weight: 900;
    color: #475569;
    text-align: right;
    white-space: nowrap;
    letter-spacing: 0;
}
/* Inline 128-Step (8×16 A–H) Module Bank Selector Strip */
#module-sampler .smp-mod-bank-bar {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr)) auto;
    gap: 3px;
    align-items: stretch;
    margin-bottom: 6px;
}
#module-sampler .smp-mod-bank-btn {
    position: relative;
    min-height: 22px !important;
    padding: 2px 2px !important;
    font-size: 7.2px !important;
    letter-spacing: 0.2px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
}
#module-sampler .smp-mod-bank-btn .smp-mbank-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #334155;
    flex-shrink: 0;
}
#module-sampler .smp-mod-bank-btn.has-bank-data .smp-mbank-dot {
    background: #38bdf8;
    box-shadow: 0 0 5px #38bdf8;
}
#module-sampler .smp-mod-bank-btn.btn-active-blue.has-bank-data .smp-mbank-dot {
    background: #ffffff;
    box-shadow: 0 0 6px #ffffff;
}
#module-sampler .smp-mod-128-pill {
    min-height: 22px !important;
    padding: 2px 5px !important;
    font-size: 6.8px !important;
    white-space: nowrap !important;
    letter-spacing: 0.25px !important;
}
/* === VOCAL KEY / NOTE / SCALE BAY === */
#module-sampler .smp-vox-scale-bay {
    background: linear-gradient(180deg, rgba(4, 10, 22, 0.90) 0%, rgba(8, 15, 29, 0.94) 100%);
    border: 1px solid rgba(56, 189, 248, 0.34);
    border-radius: 7px;
    padding: 6px 7px;
    margin-bottom: 7px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.78);
}
#module-sampler .smp-vox-scale-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 5px;
    min-width: 0;
}
#module-sampler .smp-vox-scale-notes {
    font-family: 'Orbitron', sans-serif;
    font-size: 7.2px;
    font-weight: 800;
    color: #7dd3fc;
    letter-spacing: 0.45px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
#module-sampler .smp-vox-scale-btns {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 3px;
    margin-top: 5px;
}
#module-sampler .smp-vox-scale-btns .smp-mini-btn {
    min-height: 24px !important;
    padding: 2px 2px !important;
    font-size: 6.9px !important;
}
#module-sampler .smp-key-btn.is-scale-tone {
    border-color: rgba(56, 189, 248, 0.48) !important;
    color: #bae6fd !important;
}
/* === 06 // MASTER BUS & DYNAMICS SUITE (SC + SONIC INFLATOR + MASTER BUS COMP) === */
#module-sampler .smp-sec-master {
    margin-top: 12px;
    margin-bottom: 0 !important;
    border-color: rgba(56, 189, 248, 0.42);
}
#module-sampler .smp-master-suite-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
}
#module-sampler .smp-master-dyn-bay {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 7px;
    background: linear-gradient(180deg, rgba(6, 12, 24, 0.88) 0%, rgba(3, 7, 15, 0.96) 100%);
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 8px;
    padding: 9px 8px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.80);
    min-width: 0;
}
#module-sampler .smp-master-dyn-hdr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    font-family: 'Orbitron', sans-serif;
    font-size: 8.2px;
    font-weight: 900;
    letter-spacing: 0.7px;
    color: #e0f2fe;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(56, 189, 248, 0.20);
}
#module-sampler .smp-master-dyn-sub {
    font-size: 6.8px;
    color: #7dd3fc;
    font-weight: 800;
    letter-spacing: 0.5px;
}
#module-sampler .smp-master-bay-inf.is-snx-active {
    border-color: rgba(56, 189, 248, 0.58);
    box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.84), 0 0 16px rgba(56, 189, 248, 0.16);
}
#module-sampler .smp-inf-btn-row {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr 1fr;
    gap: 4px;
}
/* === SONNOX OXFORD INFLATOR 4-SLIDER HARDWARE CONSOLE === */
#module-sampler .smp-snx-fader-bank {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    background: linear-gradient(180deg, rgba(14, 22, 36, 0.92) 0%, rgba(5, 9, 18, 0.98) 100%);
    border: 1px solid rgba(56, 189, 248, 0.24);
    border-radius: 7px;
    padding: 7px 5px 6px 5px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.88);
}
#module-sampler .smp-snx-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 0;
}
#module-sampler .smp-snx-lbl {
    font-family: 'Orbitron', sans-serif;
    font-size: 6.8px;
    font-weight: 900;
    letter-spacing: 0.55px;
    color: #cbd5e1;
    white-space: nowrap;
}
#module-sampler .smp-snx-track-wrap {
    position: relative;
    width: 30px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        repeating-linear-gradient(180deg, rgba(148, 163, 184, 0.28) 0px, rgba(148, 163, 184, 0.28) 1px, transparent 1px, transparent 10px),
        linear-gradient(180deg, #020617 0%, #091122 100%);
    border: 1px solid #243248;
    border-radius: 5px;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.95);
}
#module-sampler .smp-snx-slot {
    position: absolute;
    top: 8.5px;
    bottom: 8.5px;
    width: 6px;
    border-radius: 3px;
    background: #020617;
    border: 1px solid #1e293b;
    overflow: hidden;
    pointer-events: none;
}
#module-sampler .smp-snx-fill {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 35%;
    background: linear-gradient(0deg, #0284c7 0%, #38bdf8 65%, #bae6fd 100%);
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.72);
    transition: opacity 0.14s ease;
}
#module-sampler .smp-snx-range {
    -webkit-appearance: none;
    appearance: none;
    writing-mode: vertical-lr;
    direction: rtl;
    width: 28px;
    height: 82px;
    background: transparent;
    margin: 0;
    padding: 0;
    cursor: ns-resize;
    z-index: 3;
    touch-action: none;
}
#module-sampler .smp-snx-range::-webkit-slider-runnable-track {
    background: transparent;
    width: 6px;
}
#module-sampler .smp-snx-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 11px;
    border-radius: 2.5px;
    background: linear-gradient(180deg, #e2e8f0 0%, #94a3b8 38%, #0f172a 50%, #cbd5e1 62%, #475569 100%);
    border: 1.2px solid #38bdf8;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.55), 0 2px 5px rgba(0, 0, 0, 0.92);
    margin-left: -9px;
}
#module-sampler .smp-snx-range::-moz-range-track {
    background: transparent;
    width: 6px;
}
#module-sampler .smp-snx-range::-moz-range-thumb {
    width: 24px;
    height: 11px;
    border-radius: 2.5px;
    background: linear-gradient(180deg, #e2e8f0 0%, #94a3b8 38%, #0f172a 50%, #cbd5e1 62%, #475569 100%);
    border: 1.2px solid #38bdf8;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.55), 0 2px 5px rgba(0, 0, 0, 0.92);
}
#module-sampler .smp-snx-val {
    font-family: 'Orbitron', sans-serif;
    font-size: 7.4px;
    font-weight: 900;
    color: #38bdf8;
    letter-spacing: 0.25px;
    white-space: nowrap;
}
#module-sampler .smp-comp-btn-row {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 5px;
}
#module-sampler .smp-comp-knob-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
}
#module-sampler .smp-comp-knob-grid .smp-vst-knob,
#module-sampler .smp-master-dyn-bay .smp-knob-grid-4 .smp-vst-knob {
    padding: 5px 2px 4px 2px;
}
#module-sampler .smp-comp-knob-grid .smp-knob-svg,
#module-sampler .smp-master-dyn-bay .smp-knob-grid-4 .smp-knob-svg {
    width: 36px; height: 36px;
}
#module-sampler .smp-sc-grid {
    display: grid;
    grid-template-columns: 1.32fr 0.86fr 0.86fr;
    gap: 6px;
    align-items: stretch;
}
#module-sampler .smp-noise-top-row {
    display: grid;
    grid-template-columns: 1.15fr 0.95fr 0.85fr;
    gap: 5px;
    margin-bottom: 7px;
}

/* === 04C // PRO VOCAL LOOPER & AUTO-TRANSIENT SLICER (MOBILE-FIRST, WIDE-ENHANCED) === */
#module-sampler .smp-vox-top-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    align-items: stretch;
    margin-bottom: 7px;
}
#module-sampler .smp-vox-top-grid > select {
    grid-column: 1 / -1;
}
#module-sampler .smp-vox-wave-wrap {
    position: relative;
    height: 104px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px;
    background:
        linear-gradient(177deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.015) 22%, rgba(0, 0, 0, 0.22) 25%, transparent 56%),
        radial-gradient(ellipse at 50% 0%, #0e223d 0%, #050b16 62%, #02050c 100%);
    border: 1.5px solid rgba(56, 189, 248, 0.48);
    box-shadow: inset 0 3px 18px rgba(0, 0, 0, 0.94), 0 0 14px rgba(56, 189, 248, 0.14);
    cursor: crosshair;
    touch-action: pan-y;
}
#module-sampler .smp-vox-wave-wrap.drag-over {
    border-color: #7dd3fc !important;
    box-shadow: inset 0 0 22px rgba(56, 189, 248, 0.35), 0 0 18px rgba(56, 189, 248, 0.45) !important;
}
#module-sampler .smp-vox-mode-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    margin-bottom: 6px;
}
#module-sampler .smp-vox-mode-row #btn-smp-vox-on {
    grid-column: 1 / 3;
}
#module-sampler .smp-vox-sync-wrap {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 7px;
}
#module-sampler .smp-vox-bpm-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    align-items: stretch;
}
#module-sampler .smp-vox-sync-btns {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    align-items: stretch;
}
#module-sampler .smp-vox-key-row {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 5px;
    align-items: stretch;
    margin-bottom: 7px;
}
#module-sampler .smp-vox-link-btns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
}
#module-sampler .smp-vox-perf-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
    margin-bottom: 8px;
}
#module-sampler .smp-vox-stut-bar {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    align-items: stretch;
}
#module-sampler .smp-vox-stut-lbl { display: none; }
#module-sampler .smp-vox-ed-bar {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
}
#module-sampler .smp-vox-pat-tools {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    margin-bottom: 7px;
}
#module-sampler .smp-seq-glass-bay .smp-step-btn.is-throw.is-on {
    border-color: #c084fc !important;
    border-bottom-color: #a855f7 !important;
    box-shadow: inset 0 1px 0 rgba(233, 213, 255, 0.45), 0 0 11px rgba(168, 85, 247, 0.52) !important;
}
.vox-step-flags {
    font-family: 'Orbitron', sans-serif;
    font-size: 6.4px;
    line-height: 1;
    color: #e9d5ff;
    min-height: 7px;
    letter-spacing: 0.1px;
}

/* Wide-mode desktop studio expansions for 04C Pro Vocal Looper */
#module-sampler.smp-wide-3col .smp-vox-top-grid,
#module-sampler.smp-wide-2col .smp-vox-top-grid {
    grid-template-columns: minmax(0, 1fr) 62px 62px 36px 72px 58px 54px !important;
}
#module-sampler.smp-wide-3col .smp-vox-top-grid > select,
#module-sampler.smp-wide-2col .smp-vox-top-grid > select {
    grid-column: auto !important;
}
#module-sampler.smp-wide-3col .smp-vox-mode-row,
#module-sampler.smp-wide-2col .smp-vox-mode-row {
    grid-template-columns: 1.15fr 0.9fr 1fr 0.9fr 0.9fr !important;
}
#module-sampler .smp-vox-engine-5 #btn-smp-vox-on {
    grid-column: auto !important;
}
#module-sampler.smp-wide-3col .smp-vox-sync-wrap,
#module-sampler.smp-wide-2col .smp-vox-sync-wrap {
    display: grid !important;
    grid-template-columns: 170px minmax(0, 1fr) !important;
    gap: 6px !important;
    align-items: stretch !important;
}
#module-sampler.smp-wide-3col .smp-vox-key-row,
#module-sampler.smp-wide-2col .smp-vox-key-row {
    grid-template-columns: 112px minmax(0, 1fr) !important;
}
#module-sampler.smp-wide-3col .smp-vox-link-btns,
#module-sampler.smp-wide-2col .smp-vox-link-btns {
    grid-column: auto !important;
}
#module-sampler.smp-wide-3col .smp-vox-perf-row,
#module-sampler.smp-wide-2col .smp-vox-perf-row {
    grid-template-columns: 1.15fr 1fr !important;
    gap: 8px !important;
}
#module-sampler.smp-wide-3col .smp-vox-stut-bar,
#module-sampler.smp-wide-2col .smp-vox-stut-bar {
    grid-template-columns: auto repeat(4, minmax(0, 1fr)) 1.25fr !important;
}
#module-sampler.smp-wide-3col .smp-vox-stut-lbl,
#module-sampler.smp-wide-2col .smp-vox-stut-lbl {
    display: inline-block !important;
}
#module-sampler.smp-wide-2col .smp-ws-deck > .smp-sec-vocal .smp-vox-bottom-wide {
    display: grid !important;
    grid-template-columns: 1.45fr 1fr !important;
    gap: 10px !important;
    align-items: stretch !important;
}
#module-sampler.smp-wide-2col .smp-ws-deck > .smp-sec-vocal .smp-vox-knob-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 5px !important;
    margin-top: 0 !important;
    align-content: space-between !important;
}



/* === GLOBAL ZERO-FLICKER FIXED ACTIVE BUTTON LOCK === */
#module-sampler button,
#module-sampler .smp-hw-btn,
#module-sampler .smp-mix-mute-btn,
#module-sampler .smp-mix-solo-btn,
#module-sampler .smp-fx-ch-btn,
#module-sampler .smp-bit-btn,
#module-sampler .smp-led-dot,
#module-sampler #btn-smp-play.playing,
#module-sampler .smp-hw-btn.btn-active-blue,
#module-sampler .smp-hw-btn.btn-active-ice,
#module-sampler .smp-hw-btn.btn-active-alert,
#module-sampler .smp-hw-btn.rec-active {
    animation: none !important;
    -webkit-animation: none !important;
    transition: none !important;
}

/* === POWERFUL 8-CH HARDWARE CONSOLE BUS MIXER GRAPHICS === */
#module-sampler .smp-bus-mixer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
#module-sampler .smp-mix-strip {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 7px 7px 6px 7px;
    border-radius: 8px;
    background:
        repeating-linear-gradient(90deg, rgba(255,255,255,0.018) 0px, rgba(255,255,255,0.018) 1px, transparent 1px, transparent 3px),
        linear-gradient(180deg, #1b283d 0%, #0d1525 46%, #060b14 100%) !important;
    border: 1px solid rgba(71, 85, 105, 0.85) !important;
    border-top: 2.5px solid rgba(56, 189, 248, 0.55) !important;
    box-shadow: inset 0 1px 0 rgba(226, 232, 240, 0.14), 0 4px 12px rgba(0, 0, 0, 0.55) !important;
    transition: none !important;
    opacity: 1 !important;
}
#module-sampler .smp-mix-strip.is-muted {
    opacity: 1 !important;
    border-color: rgba(239, 68, 68, 0.65) !important;
    border-top-color: #ef4444 !important;
}
#module-sampler .smp-mix-strip.is-muted .smp-mix-fader-well,
#module-sampler .smp-mix-strip.is-muted .smp-mix-led-row,
#module-sampler .smp-mix-strip.is-muted .smp-mix-eq-row {
    opacity: 0.42;
}
#module-sampler .smp-mix-strip.is-solo-dimmed {
    opacity: 1 !important;
    border-top-color: #334155 !important;
}
#module-sampler .smp-mix-strip.is-solo-dimmed .smp-mix-fader-well,
#module-sampler .smp-mix-strip.is-solo-dimmed .smp-mix-led-row,
#module-sampler .smp-mix-strip.is-solo-dimmed .smp-mix-eq-row {
    opacity: 0.38;
}
#module-sampler .smp-mix-strip.is-solo {
    opacity: 1 !important;
    border-color: #38bdf8 !important;
    border-top-color: #7dd3fc !important;
    box-shadow: inset 0 1px 0 rgba(224, 242, 254, 0.22), 0 0 14px rgba(56, 189, 248, 0.24) !important;
}
#module-sampler .smp-mix-head-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 5px;
}
#module-sampler .smp-mix-ch-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(180deg, #0d1729 0%, #030712 100%);
    border: 1px solid rgba(56, 189, 248, 0.38);
    border-radius: 5px;
    padding: 4px 8px;
    cursor: pointer;
    min-width: 0;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.85);
}
#module-sampler .smp-mix-ch-pill:hover {
    border-color: #38bdf8;
}
#module-sampler .smp-mix-ch-num {
    font-family: 'Orbitron', sans-serif;
    font-size: 7.6px;
    font-weight: 900;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.16);
    padding: 1.5px 4px;
    border-radius: 3px;
    flex-shrink: 0;
}
#module-sampler .smp-mix-ch-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 10.2px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.65px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#module-sampler .smp-mix-val {
    font-family: 'Orbitron', sans-serif;
    font-size: 8.2px;
    font-weight: 900;
    color: #7dd3fc;
    background: #020617;
    border: 1px solid rgba(51, 65, 85, 0.9);
    border-radius: 4px;
    padding: 2.5px 5px;
    min-width: 40px;
    text-align: center;
}
#module-sampler .smp-mix-mute-btn,
#module-sampler .smp-mix-solo-btn {
    width: 24px !important;
    height: 22px !important;
    border-radius: 4px !important;
    font-size: 7.8px !important;
    font-weight: 900 !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 2px 0 #020617 !important;
}
#module-sampler .smp-mix-mute-btn.is-muted {
    background: linear-gradient(180deg, #dc2626 0%, #991b1b 100%) !important;
    border-color: #fca5a5 !important;
    color: #ffffff !important;
    box-shadow: inset 0 1px 0 rgba(254, 202, 202, 0.35), 0 0 8px rgba(239, 68, 68, 0.55), 0 2px 0 #020617 !important;
}
#module-sampler .smp-mix-solo-btn.is-solo {
    background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%) !important;
    border-color: #7dd3fc !important;
    color: #ffffff !important;
    box-shadow: inset 0 1px 0 rgba(224, 242, 254, 0.42), 0 0 9px rgba(56, 189, 248, 0.62), 0 2px 0 #020617 !important;
}
/* Recessed Smoked-Glass Fader Well + Live Neon Fill Bar + dB Ticks */
#module-sampler .smp-mix-fader-well {
    position: relative;
    background: linear-gradient(180deg, #030712 0%, #0a1220 100%);
    border: 1px solid rgba(51, 65, 85, 0.9);
    border-radius: 6px;
    padding: 6px 7px 4px 7px;
    box-shadow: inset 0 2px 7px rgba(0, 0, 0, 0.92);
}
#module-sampler .smp-mix-fader-track-bg {
    position: absolute;
    left: 8px;
    right: 8px;
    top: 12px;
    height: 5px;
    border-radius: 3px;
    background: #0f172a;
    border: 1px solid #1e293b;
    overflow: hidden;
    pointer-events: none;
}
#module-sampler .smp-mix-fader-fill {
    height: 100%;
    background: linear-gradient(90deg, #0369a1 0%, #38bdf8 75%, #bae6fd 100%);
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.55);
}
#module-sampler .smp-mix-unity-tick {
    position: absolute;
    top: -1px;
    bottom: -1px;
    width: 1.5px;
    background: rgba(224, 242, 254, 0.85);
    pointer-events: none;
}
#module-sampler .smp-mix-fader {
    position: relative;
    z-index: 2;
    width: 100% !important;
    height: 16px !important;
    margin: 0 !important;
    background: transparent !important;
}
#module-sampler .smp-mix-fader::-webkit-slider-runnable-track {
    height: 5px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
#module-sampler .smp-mix-fader::-webkit-slider-thumb {
    width: 14px !important;
    height: 16px !important;
    margin-top: -5.5px !important;
    border-radius: 3px !important;
    background: linear-gradient(180deg, #94a3b8 0%, #f1f5f9 44%, #020617 50%, #cbd5e1 56%, #475569 100%) !important;
    border: 1.2px solid #38bdf8 !important;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.58), 0 2px 4px rgba(0, 0, 0, 0.9) !important;
}
#module-sampler .smp-mix-fader-scale {
    display: flex;
    justify-content: space-between;
    font-family: 'Orbitron', sans-serif;
    font-size: 5.6px;
    font-weight: 800;
    color: #475569;
    margin-top: 2px;
    letter-spacing: 0.2px;
    pointer-events: none;
}
/* 16-Segment Hardware LED VU Housing (GPU-isolated so repaints NEVER touch buttons) */
#module-sampler .smp-mix-led-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 26px;
    align-items: center;
    gap: 6px;
    padding: 4px 6px 3px 6px;
    border-radius: 5px;
    background: linear-gradient(180deg, #020617 0%, #07101f 100%);
    border: 1px solid rgba(56, 189, 248, 0.24);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.94);
    contain: layout style paint;
    transform: translateZ(0);
}
#module-sampler .smp-mix-led-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
#module-sampler .smp-mix-led-bar {
    display: grid;
    grid-template-columns: repeat(16, minmax(0, 1fr)) !important;
    gap: 2px;
    height: 9px !important;
}
#module-sampler .smp-bus-led-seg {
    border-radius: 1.5px;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(30, 41, 59, 0.85);
    transition: none !important;
}
#module-sampler .smp-bus-led-seg.led-blue.is-lit  { background: #0ea5e9; border-color: #38bdf8; box-shadow: 0 0 5px rgba(14, 165, 233, 0.78); }
#module-sampler .smp-bus-led-seg.led-cyan.is-lit  { background: #38bdf8; border-color: #bae6fd; box-shadow: 0 0 6px rgba(56, 189, 248, 0.88); }
#module-sampler .smp-bus-led-seg.led-amber.is-lit { background: #fbbf24; border-color: #fef08a; box-shadow: 0 0 7px rgba(251, 191, 36, 0.92); }
#module-sampler .smp-bus-led-seg.led-red.is-lit   { background: #ef4444; border-color: #fecaca; box-shadow: 0 0 8px rgba(239, 68, 68, 0.96); }
#module-sampler .smp-bus-led-seg.is-peak {
    background: #e0f2fe !important;
    border-color: #ffffff !important;
    box-shadow: 0 0 7px #7dd3fc !important;
}
#module-sampler .smp-bus-led-seg.led-red.is-peak {
    background: #ef4444 !important;
    border-color: #fecaca !important;
    box-shadow: 0 0 8px #ef4444 !important;
}
#module-sampler .smp-mix-led-scale {
    display: flex;
    justify-content: space-between;
    font-family: 'Orbitron', sans-serif;
    font-size: 5.4px;
    font-weight: 800;
    color: #475569;
    line-height: 1;
}
#module-sampler .smp-mix-db-lbl {
    font-family: 'Orbitron', sans-serif;
    font-size: 6.8px;
    font-weight: 900;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* === CLEAN PROPORTIONAL VOX BUTTON GRIDS (ZERO STRETCHED BUTTONS) === */
#module-sampler .smp-vox-loader-btns {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px;
}
#module-sampler .smp-vox-engine-5,
#module-sampler .smp-vox-eq5 {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
}
#module-sampler .smp-vox-tempo-row {
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr);
    gap: 5px;
    align-items: stretch;
}
#module-sampler .smp-vox-routing-bar {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 7px !important;
    align-items: stretch;
    margin-top: 4px;
}
#module-sampler .smp-vox-key-pair {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 6px !important;
    align-items: stretch;
}
#module-sampler .smp-vox-sync-mode-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    align-items: stretch;
}
#module-sampler .smp-vox-beats-8 {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 4px;
    padding-top: 6px;
    border-top: 1px dashed rgba(56, 189, 248, 0.18);
}
#module-sampler .smp-reloop-sync-mode-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
}
#module-sampler .smp-reloop-beats-8 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3.5px;
    padding-top: 4px;
    border-top: 1px dashed rgba(56, 189, 248, 0.16);
}
#module-sampler .smp-vox-beats-8 .smp-mini-btn,
#module-sampler .smp-reloop-beats-8 .smp-mini-btn {
    min-height: 25px !important;
    padding: 2px 1px !important;
    font-size: 7.0px !important;
    letter-spacing: 0.15px !important;
}
#module-sampler .smp-vox-sync-mode-3 .smp-mini-btn,
#module-sampler .smp-reloop-sync-mode-3 .smp-mini-btn {
    min-height: 27px !important;
    padding: 3px 2px !important;
    font-size: 7.2px !important;
}
@media (max-width: 680px) {
    #module-sampler .smp-vox-beats-8 {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 5px !important;
    }
    #module-sampler .smp-vox-beats-8 .smp-mini-btn,
    #module-sampler .smp-reloop-beats-8 .smp-mini-btn,
    #module-sampler .smp-vox-sync-mode-3 .smp-mini-btn,
    #module-sampler .smp-reloop-sync-mode-3 .smp-mini-btn {
        min-height: 32px !important;
        font-size: 7.4px !important;
    }
}
#module-sampler .smp-vox-routing-bar .smp-vox-send-grid {
    margin-top: 0 !important;
}
#module-sampler .smp-vox-loader-btns .smp-mini-btn,
#module-sampler .smp-vox-engine-5 .smp-mini-btn,
#module-sampler .smp-vox-eq5 .smp-mini-btn {
    min-height: 27px !important;
    padding: 3px 2px !important;
    font-size: 7.3px !important;
}

/* === BASSLINE PRO & WHITE NOISE LFO GRIDS === */
#module-sampler .smp-bass-pat-util {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 3px !important;
}
#module-sampler .smp-bass-seg3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3px;
}
#module-sampler .smp-bass-sub-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}
#module-sampler .smp-bass-lfo-subrow {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 5px;
    margin-top: 4px;
}
#module-sampler .smp-noise-lfo-rates {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 3px;
}
#module-sampler .smp-noise-knob-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
}
#module-sampler.smp-wide-3col .smp-ws-deck > .smp-sec-noise .smp-noise-knob-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}
@media (max-width: 680px) {
    #module-sampler .smp-vox-loader-btns { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    #module-sampler .smp-vox-tempo-row,
    #module-sampler .smp-vox-routing-bar { grid-template-columns: 1fr !important; }
    #module-sampler .smp-bass-pat-util { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    #module-sampler .smp-bass-lfo-subrow { grid-template-columns: 1fr !important; }
    #module-sampler .smp-noise-lfo-rates { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

/* === 4 SPECIAL DEDICATED RELOOP PADS (R1-R4 • CH 8 RLP BUS) === */
#module-sampler .smp-reloop-pad-strip {
    margin-top: 8px;
    margin-bottom: 10px;
    padding: 7px 7px 8px 7px;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(10, 22, 40, 0.92) 0%, rgba(4, 10, 20, 0.97) 100%);
    border: 1px solid rgba(56, 189, 248, 0.44);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.85), 0 0 12px rgba(56, 189, 248, 0.12);
}
.smp-rpad-hdr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}
.smp-rpad-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}
.smp-rpad-btn {
    position: relative;
    height: 54px;
    border-radius: 7px;
    background:
        repeating-linear-gradient(90deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 3px),
        linear-gradient(180deg, #172740 0%, #0b1424 62%, #060b14 100%);
    border: 1.2px solid rgba(56, 189, 248, 0.36);
    border-top-color: rgba(125, 211, 252, 0.42);
    color: #e2e8f0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 4px 3px;
    box-shadow: inset 0 1px 0 rgba(224,242,254,0.12), 0 3px 0 #020617;
    transition: transform 0.08s ease, border-color 0.14s ease, box-shadow 0.14s ease;
    user-select: none;
    min-width: 0;
    overflow: hidden;
}
.smp-rpad-btn:hover { border-color: #7dd3fc; }
.smp-rpad-btn.rpad-loaded,
.smp-rpad-btn.rpad-active {
    border-color: rgba(248, 250, 252, 0.82);
}
.smp-rpad-btn.rpad-selected {
    border-color: #38bdf8;
    background: linear-gradient(180deg, rgba(14, 116, 144, 0.62) 0%, #071b2d 100%);
    box-shadow: inset 0 0 14px rgba(56, 189, 248, 0.28), 0 0 12px rgba(56, 189, 248, 0.42), 0 3px 0 #020617;
}
.smp-rpad-btn.rpad-selected.rpad-loaded,
.smp-rpad-btn.rpad-selected.rpad-active {
    border-color: rgba(248, 250, 252, 0.90);
}
.smp-rpad-btn.pad-firing {
    transform: translateY(1px);
    border-color: #f97316 !important;
    box-shadow: inset 0 0 12px rgba(249, 115, 22, 0.34), 0 0 14px rgba(249, 115, 22, 0.82) !important;
}
.smp-rpad-badge {
    position: absolute;
    top: 3px;
    left: 5px;
    font-family: 'Orbitron', sans-serif;
    font-size: 7px;
    font-weight: 900;
    color: #38bdf8;
}
.smp-rpad-led {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #1e293b;
}
.smp-rpad-btn.rpad-loaded .smp-rpad-led { background: #38bdf8; box-shadow: 0 0 6px #38bdf8; }
.smp-rpad-btn.rpad-active .smp-rpad-led { background: #7dd3fc; box-shadow: 0 0 9px #38bdf8; }
.smp-rpad-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 7.6px;
    font-weight: 900;
    color: #f8fafc;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 6px;
}
.smp-rpad-meta {
    font-family: 'Orbitron', sans-serif;
    font-size: 6.4px;
    font-weight: 800;
    color: #7dd3fc;
    letter-spacing: 0.3px;
}
/* === GROUPED VOX LOOPER CARDS & VOX->RELOOP SEND BAR === */
#module-sampler .smp-vox-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
#module-sampler .smp-vox-send-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    margin-top: 5px;
}
#module-sampler .smp-vox-send-grid .smp-mini-btn {
    min-height: 28px !important;
    font-size: 7.4px !important;
    padding: 3px 2px !important;
}
/* === PRO BASSLINE DRIVE / HPF / LFO MOD BAY === */
#module-sampler .smp-bass-mod-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 6px;
}
#module-sampler .smp-bass-seg4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3px;
}
#module-sampler .smp-bass-seg5 {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3px;
}
#module-sampler .smp-bass-pat-util {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    margin-top: 4px;
}
/* === MASTER SATURATOR BAY === */
#module-sampler .smp-sat-btn-row {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr 1fr 0.9fr;
    gap: 4px;
}
#module-sampler .smp-sat-knob-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
}
#module-sampler .smp-master-bay-sat.is-snx-active {
    border-color: rgba(56, 189, 248, 0.58);
    box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.84), 0 0 16px rgba(56, 189, 248, 0.16);
}
@media (max-width: 540px) {
    #module-sampler .smp-bass-mod-grid { grid-template-columns: 1fr !important; }
    #module-sampler .smp-sat-knob-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* === PAD RELOOPER & LINKED VOCAL SLICER BAY (CLEAN GROUPED SUB-PANELS) === */
#module-sampler .smp-reloop-bay {
    margin-top: 10px;
    padding: 9px 8px 8px 8px;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(8, 16, 30, 0.88) 0%, rgba(4, 9, 18, 0.96) 100%);
    border: 1px solid rgba(56, 189, 248, 0.36);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.82);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.smp-reloop-top {
    display: flex; justify-content: space-between; align-items: center; gap: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(56, 189, 248, 0.22);
    min-width: 0;
}
.smp-reloop-top > span:first-child {
    min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.smp-reloop-group {
    background: linear-gradient(180deg, rgba(13, 22, 38, 0.78) 0%, rgba(5, 10, 20, 0.92) 100%);
    border: 1px solid rgba(51, 65, 85, 0.78);
    border-radius: 6px;
    padding: 6px 6px 6px 6px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.smp-reloop-group.is-accent {
    border-color: rgba(56, 189, 248, 0.36);
}
.smp-reloop-grp-lbl {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Orbitron', sans-serif;
    font-size: 6.7px;
    font-weight: 900;
    letter-spacing: 0.7px;
    color: #64748b;
    text-transform: uppercase;
    padding-bottom: 3px;
    border-bottom: 1px dashed rgba(51, 65, 85, 0.55);
}
.smp-reloop-grp-lbl strong {
    color: #38bdf8;
    font-weight: 900;
}
.smp-reloop-dual-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}
.smp-reloop-ctrl-grid {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px;
}
.smp-reloop-link-row {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px;
}
.smp-reloop-rate-row,
.smp-reloop-sync-row {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px;
}
.smp-reloop-mid {
    display: grid; grid-template-columns: 1.08fr 1fr; gap: 7px;
    align-items: stretch;
}
.smp-reloop-knobs-3 {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px;
}
.smp-reloop-knobs-3 .smp-vst-knob { padding: 4px 2px 4px 2px; }
.smp-reloop-knobs-3 .smp-knob-svg { width: 32px; height: 32px; }
.smp-reloop-knobs-3 .smp-knob-lbl { font-size: 6.4px; }
.smp-reloop-knobs-3 .knob-val-txt { font-size: 7.2px; }
.smp-reloop-tools-stack {
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: space-between;
}
.smp-reloop-tools-row {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px;
}
.smp-reloop-tools-row .smp-mini-btn {
    min-height: 27px !important; padding: 3px 2px !important; font-size: 7.1px !important;
}

/* === STRICT MOBILE ERGONOMICS (<= 540px — ZERO OVERFLOW, CLEAN TOUCH TARGETS) === */
@media (max-width: 540px) {
    #module-sampler .smp-sec-bar { font-size: 8.2px !important; letter-spacing: 0.4px !important; flex-wrap: wrap !important; row-gap: 5px !important; }
    #module-sampler .smp-sec-sub { font-size: 6.8px !important; letter-spacing: 0.3px !important; }
    #module-sampler .smp-hw-btn { font-size: 8px !important; padding: 5px 4px !important; letter-spacing: 0.2px !important; min-height: 33px !important; }
    #module-sampler .smp-mini-btn { font-size: 7.4px !important; padding: 4px 3px !important; letter-spacing: 0.15px !important; min-height: 31px !important; }
    #module-sampler .smp-fx-ch-btn, #module-sampler .smp-bit-btn { font-size: 7.2px !important; padding: 4px 2px !important; min-height: 30px !important; }
    #module-sampler .smp-bank-strip-8 {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 4px !important;
    }
    #module-sampler .smp-noise-bars-row {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
    #module-sampler .smp-pad-lcd-row {
        flex-direction: column !important;
        gap: 5px !important;
    }
    #module-sampler .smp-lcd-screen {
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    #module-sampler .smp-sub-ed-row {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
    #module-sampler .smp-sc-grid {
        grid-template-columns: 1fr 1fr !important;
    }
    #module-sampler .smp-sc-grid > div:first-child {
        grid-column: 1 / -1 !important;
    }
    .smp-reloop-top { flex-wrap: wrap !important; row-gap: 4px !important; }
    .smp-reloop-dual-row { grid-template-columns: 1fr !important; gap: 6px !important; }
    .smp-reloop-ctrl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 5px !important; }
    .smp-reloop-link-row { gap: 5px !important; }
    .smp-reloop-mid { grid-template-columns: 1fr !important; gap: 6px !important; }
    .smp-reloop-tools-row { gap: 5px !important; }
    .smp-reloop-tools-row .smp-mini-btn { min-height: 31px !important; font-size: 7.5px !important; }
    #module-sampler .smp-mod-bank-bar { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 3px !important; }
    #module-sampler .smp-mod-128-pill { grid-column: 1 / -1 !important; }
    #module-sampler .smp-fx-bus-row { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    #module-sampler .smp-fx-bus-row .smp-fx-sc-pair { grid-column: 1 / 3 !important; }
    #module-sampler .smp-fx-bus-row #btn-fx-ch-all { grid-column: 3 / 4 !important; }
    #module-sampler .smp-vox-wave-wrap { height: 94px !important; }
    #module-sampler .smp-vox-stut-bar .smp-mini-btn,
    #module-sampler .smp-vox-ed-bar .smp-mini-btn,
    #module-sampler .smp-vox-pat-tools .smp-mini-btn,
    #module-sampler .smp-vox-sync-btns .smp-mini-btn {
        min-height: 32px !important;
        font-size: 7.2px !important;
        padding: 3px 2px !important;
        letter-spacing: 0.1px !important;
    }
    #module-sampler .smp-seq-glass-bay { padding: 7px 6px !important; }
    #module-sampler .smp-seq-glass-hdr { flex-wrap: wrap !important; row-gap: 4px !important; }
    #module-sampler .smp-seq-glass-title { font-size: 7.2px !important; letter-spacing: 0.4px !important; }
    #module-sampler .smp-seq-glass-meta { font-size: 6.4px !important; max-width: 100% !important; }
    #module-sampler .smp-bass-key-hdr { flex-wrap: wrap !important; }
    #module-sampler .smp-vox-scale-btns { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 4px !important; }
    #module-sampler .smp-vox-scale-btns .smp-mini-btn { min-height: 28px !important; font-size: 7.2px !important; }
    #module-sampler .smp-inf-btn-row { grid-template-columns: 1fr 1fr !important; }
    #module-sampler .smp-inf-btn-row #btn-smp-inf-on { grid-column: 1 / -1 !important; }
}
/* === FLAGSHIP HARDWARE VSTi SEQUENCER POLISH (v19 SMOKED HEAD TELEMETRY) === */
#module-sampler .smp-hw-nameplate {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: linear-gradient(180deg, rgba(16, 28, 46, 0.72) 0%, rgba(5, 11, 22, 0.88) 100%);
    border: 1px solid rgba(56, 189, 248, 0.24);
    border-radius: 5px;
    padding: 5px 9px;
    margin-bottom: 8px;
    box-shadow: inset 0 1px 0 rgba(224, 242, 254, 0.08), inset 0 -1px 4px rgba(0, 0, 0, 0.75);
}
#module-sampler .smp-hw-brand {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: 'Orbitron', sans-serif; font-size: 8.5px; font-weight: 900;
    letter-spacing: 1.1px; color: #e2e8f0; white-space: nowrap;
}
#module-sampler .smp-hw-run-led {
    width: 8px; height: 8px; border-radius: 50%;
    background: #1e293b; border: 1px solid #475569;
    display: inline-block; flex-shrink: 0; transition: all 0.14s ease;
}
#module-sampler .smp-hw-run-led.is-running {
    background: #38bdf8; border-color: #e0f2fe;
    box-shadow: 0 0 10px #38bdf8, 0 0 4px #ffffff;
}
#module-sampler .smp-chase-strip {
    display: grid; grid-template-columns: repeat(16, 1fr); gap: 3px;
    flex: 1; max-width: 340px; padding: 4px 6px;
    background: #020617; border: 1px solid #1e293b; border-radius: 4px;
    box-shadow: inset 0 1px 4px rgba(0,0,0,0.85);
}
#module-sampler .smp-chase-led {
    height: 5px; border-radius: 1.5px; background: #1e293b;
    transition: background 0.05s ease, box-shadow 0.05s ease;
}
#module-sampler .smp-chase-led.is-downbeat { background: rgba(56, 189, 248, 0.34); }
#module-sampler .smp-chase-led.is-lit {
    background: #f97316 !important; box-shadow: 0 0 9px rgba(249, 115, 22, 0.92);
}
#module-sampler .smp-hw-pills {
    display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0;
}
#module-sampler .smp-hw-pill {
    font-family: 'Orbitron', sans-serif; font-size: 7.5px; font-weight: 800;
    letter-spacing: 0.7px; color: #7dd3fc;
    background: rgba(56, 189, 248, 0.09); border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 4px; padding: 2px 6px; white-space: nowrap;
}
/* Beat Group Ruler above 16-Step Grids */
#module-sampler .smp-beat-ruler {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
    margin-bottom: 4px; padding: 0 1px;
}
#module-sampler .smp-beat-ruler span {
    font-family: 'Orbitron', sans-serif; font-size: 7px; font-weight: 800;
    letter-spacing: 0.9px; color: #64748b; text-align: left;
    padding-left: 4px; border-left: 2px solid rgba(56, 189, 248, 0.35);
    line-height: 1;
}
#module-sampler .smp-step-btn.is-alt-beat:not(.is-on),
#module-sampler .smp-sub-step-btn.is-alt-beat:not(.is-on) {
    background:
        repeating-linear-gradient(90deg, rgba(255,255,255,0.014) 0px, rgba(255,255,255,0.014) 1px, transparent 1px, transparent 3px),
        linear-gradient(180deg, #131b29 0%, #070c14 100%) !important;
}
/* Bass Step Piano-Roll Pitch Bar */
#module-sampler .smp-sub-step-btn { overflow: hidden; }
#module-sampler .sub-step-pitchbar {
    position: absolute; left: 2px; right: 2px; bottom: 0; height: 0%; opacity: 0;
    border-radius: 2px 2px 0 0; pointer-events: none; z-index: 0;
    transition: height 0.12s ease, opacity 0.12s ease;
    filter: opacity(0.32);
}
#module-sampler .smp-sub-step-btn > .sub-step-led,
#module-sampler .smp-sub-step-btn > .sub-step-txt,
#module-sampler .smp-sub-step-btn > .sub-step-flags { position: relative; z-index: 1; }
/* Custom Brushed Aluminum Console Faders for 6-Ch Bus Mixer */
#module-sampler .smp-mix-fader {
    -webkit-appearance: none; appearance: none;
    height: 16px; background: transparent; outline: none;
}
#module-sampler .smp-mix-fader::-webkit-slider-runnable-track {
    height: 4px; border-radius: 2px;
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 78%, rgba(56,189,248,0.45) 100%);
    border: 1px solid #334155;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.85);
}
#module-sampler .smp-mix-fader::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 11px; height: 15px; margin-top: -6px; border-radius: 2px;
    background: linear-gradient(180deg, #64748b 0%, #cbd5e1 46%, #0f172a 50%, #94a3b8 54%, #334155 100%);
    border: 1px solid #38bdf8;
    box-shadow: 0 0 6px rgba(56,189,248,0.45), 0 1px 3px rgba(0,0,0,0.85);
    cursor: pointer;
}
#module-sampler .smp-mix-fader::-moz-range-track {
    height: 4px; border-radius: 2px; background: #0f172a; border: 1px solid #334155;
}
#module-sampler .smp-mix-fader::-moz-range-thumb {
    width: 11px; height: 15px; border-radius: 2px;
    background: linear-gradient(180deg, #64748b 0%, #cbd5e1 46%, #0f172a 50%, #94a3b8 54%, #334155 100%);
    border: 1px solid #38bdf8; cursor: pointer;
}
@media (max-width: 540px) {
    #module-sampler .smp-head-console {
        padding: 0 !important;
        margin-bottom: 12px !important;
        border-radius: 9px !important;
    }
    #module-sampler .smp-head-smoked-glass {
        padding: 6px 5px !important;
    }
    #module-sampler .smp-top-bridge { gap: 7px !important; }
    #module-sampler .smp-head-smoked-glass .smp-oled-screen { height: 74px !important; }
    #module-sampler .smp-master-strip {
        grid-template-columns: 68px minmax(0, 1fr) !important;
        gap: 6px !important;
        padding: 5px 6px !important;
    }
    #module-sampler .smp-master-strip .smp-knob-svg { width: 36px !important; height: 36px !important; }
    #module-sampler .smp-master-btn-row .smp-hw-btn {
        min-height: 30px !important;
        height: 30px !important;
        font-size: 7.1px !important;
        letter-spacing: 0.15px !important;
        padding: 3px 3px !important;
        gap: 3px !important;
    }
    #module-sampler .smp-transport-strip {
        grid-template-columns: 1.35fr 0.84fr 0.62fr 0.78fr 0.78fr !important;
        gap: 4px !important;
        padding: 5px !important;
    }
    #module-sampler .smp-transport-strip .smp-hw-btn {
        min-height: 42px !important;
        font-size: 8.2px !important;
        padding: 3px 2px !important;
        letter-spacing: 0.25px !important;
    }
    #module-sampler .smp-transport-strip .smp-mini-box {
        min-height: 42px !important;
        padding: 3px 2px !important;
    }
    #module-sampler .smp-transport-strip .smp-clock-input { font-size: 12.5px !important; }
    #module-sampler .smp-hw-nameplate {
        flex-wrap: wrap !important;
        padding: 6px 6px !important;
        gap: 5px !important;
        margin-bottom: 7px !important;
    }
    #module-sampler .smp-hw-brand {
        gap: 5px !important;
        min-width: 0 !important;
    }
    #module-sampler .smp-hw-brand span:last-child {
        font-size: 7.0px !important;
        letter-spacing: 0.45px !important;
    }
    #module-sampler .smp-hw-pills { gap: 3px !important; }
    #module-sampler .smp-hw-pill {
        font-size: 6.5px !important;
        padding: 2px 4px !important;
        letter-spacing: 0.3px !important;
    }
    /* Full-width integrated 16-LED Beat Bar inside Smoked Glass on Mobile */
    #module-sampler .smp-chase-strip {
        display: grid !important;
        order: 3 !important;
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        grid-template-columns: repeat(16, minmax(0, 1fr)) !important;
        gap: 3px !important;
        padding: 4px 5px !important;
    }
    #module-sampler .smp-chase-led {
        height: 6px !important;
        border-radius: 2px !important;
    }
    #module-sampler .smp-beat-ruler { display: none; }
}

/* === v41 PRO VOCAL SECTION SPACING (ZERO TOUCHING BUTTONS ON DESKTOP & MOBILE) === */
#module-sampler .smp-vox-stack {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-bottom: 12px !important;
}
#module-sampler .smp-sec-vocal .smp-reloop-group,
#module-sampler .smp-sec-sub .smp-reloop-group,
#module-sampler .smp-sec-noise .smp-reloop-group {
    padding: 8px 8px 9px 8px !important;
    gap: 7px !important;
}
#module-sampler .smp-sec-vocal .smp-reloop-grp-lbl {
    padding-bottom: 5px !important;
    margin-bottom: 1px !important;
}
#module-sampler .smp-vox-loader-btns {
    gap: 6px !important;
}
#module-sampler .smp-vox-engine-5 {
    gap: 6px !important;
    margin-bottom: 2px !important;
}
#module-sampler .smp-vox-tempo-row {
    gap: 7px !important;
    padding-top: 7px !important;
    border-top: 1px dashed rgba(56, 189, 248, 0.22) !important;
}
#module-sampler .smp-vox-bpm-pair {
    gap: 6px !important;
}
#module-sampler .smp-vox-sync-btns {
    gap: 6px !important;
}
#module-sampler .smp-sec-vocal .smp-vox-scale-bay {
    display: flex !important;
    flex-direction: column !important;
    gap: 7px !important;
    padding: 2px 0 4px 0 !important;
}
#module-sampler .smp-sec-vocal .smp-vox-scale-hdr {
    margin-bottom: 0 !important;
}
#module-sampler .smp-bass-key-grid {
    gap: 4px !important;
}
#module-sampler .smp-vox-scale-btns {
    gap: 6px !important;
    margin-top: 0 !important;
}
#module-sampler .smp-vox-routing-bar {
    gap: 8px !important;
    margin-top: 2px !important;
    padding-top: 8px !important;
    border-top: 1px dashed rgba(56, 189, 248, 0.22) !important;
}
#module-sampler .smp-vox-key-pair {
    gap: 6px !important;
}
#module-sampler .smp-vox-send-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 6px !important;
    margin-top: 0 !important;
    width: 100% !important;
}
#module-sampler .smp-vox-g3 {
    justify-content: space-between !important;
    gap: 8px !important;
}
#module-sampler .smp-sec-vocal .smp-reloop-dual-row {
    gap: 9px !important;
}
#module-sampler .smp-vox-eq5 {
    gap: 6px !important;
}
#module-sampler .smp-vox-pat-tools {
    gap: 6px !important;
    margin-bottom: 9px !important;
}
#module-sampler .smp-vox-loader-btns .smp-mini-btn,
#module-sampler .smp-vox-engine-5 .smp-mini-btn,
#module-sampler .smp-vox-sync-btns .smp-mini-btn,
#module-sampler .smp-vox-scale-btns .smp-mini-btn,
#module-sampler .smp-vox-send-grid .smp-mini-btn,
#module-sampler .smp-vox-eq5 .smp-mini-btn,
#module-sampler .smp-vox-pat-tools .smp-mini-btn {
    min-height: 29px !important;
    padding: 4px 3px !important;
    font-size: 7.4px !important;
}

/* Also tighten clean spacing on Bassline & Noise button bars so bevel shadows never collide */
#module-sampler .smp-bass-seg3,
#module-sampler .smp-bass-seg4,
#module-sampler .smp-bass-seg5,
#module-sampler .smp-noise-lfo-rates,
#module-sampler .smp-bass-pat-util,
#module-sampler .smp-sub-ed-row {
    gap: 5px !important;
}
#module-sampler .smp-bass-lfo-subrow {
    gap: 6px !important;
    margin-top: 2px !important;
}
#module-sampler .smp-bass-mod-grid {
    gap: 8px !important;
    margin-top: 7px !important;
}

/* === COMPREHENSIVE MOBILE & SMALL TABLET ERGONOMICS (<= 680px & <= 540px) === */
@media (max-width: 680px) {
    #module-sampler .smp-sec-bar {
        flex-wrap: wrap !important;
        gap: 6px !important;
        row-gap: 6px !important;
    }
    #module-sampler .smp-sec-bar > div {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        max-width: 100% !important;
    }
    /* PRO VOCAL (04A): Clean breathing room & proportional thumb buttons */
    #module-sampler .smp-vox-stack {
        gap: 11px !important;
        margin-bottom: 12px !important;
    }
    #module-sampler .smp-vox-loader-btns {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 6px !important;
    }
    /* 5 Engine buttons split into 2 balanced full-width rows (3 top + 2 bottom, zero squish!) */
    #module-sampler .smp-vox-engine-5 {
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
        gap: 6px !important;
    }
    #module-sampler .smp-vox-engine-5 > button:nth-child(1),
    #module-sampler .smp-vox-engine-5 > button:nth-child(2),
    #module-sampler .smp-vox-engine-5 > button:nth-child(3) {
        grid-column: span 2 !important;
    }
    #module-sampler .smp-vox-engine-5 > button:nth-child(4),
    #module-sampler .smp-vox-engine-5 > button:nth-child(5) {
        grid-column: span 3 !important;
    }
    #module-sampler .smp-vox-tempo-row,
    #module-sampler .smp-vox-routing-bar {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }
    #module-sampler .smp-vox-key-pair {
        grid-template-columns: 1fr 1fr !important;
        gap: 6px !important;
    }
    #module-sampler .smp-vox-scale-btns {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 6px !important;
    }
    #module-sampler .smp-vox-sync-btns,
    #module-sampler .smp-vox-send-grid,
    #module-sampler .smp-vox-eq5,
    #module-sampler .smp-vox-pat-tools {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 5px !important;
    }
    #module-sampler .smp-vox-loader-btns .smp-mini-btn,
    #module-sampler .smp-vox-engine-5 .smp-mini-btn,
    #module-sampler .smp-vox-sync-btns .smp-mini-btn,
    #module-sampler .smp-vox-scale-btns .smp-mini-btn,
    #module-sampler .smp-vox-send-grid .smp-mini-btn,
    #module-sampler .smp-vox-eq5 .smp-mini-btn,
    #module-sampler .smp-vox-pat-tools .smp-mini-btn {
        min-height: 34px !important;
        padding: 4px 3px !important;
        font-size: 7.5px !important;
        letter-spacing: 0.15px !important;
    }
    #module-sampler .smp-vox-knob-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 6px !important;
        margin-top: 10px !important;
    }

    /* 4 DEDICATED RELOOP PADS + RELOOP BAY ON MOBILE */
    #module-sampler .smp-rpad-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 7px !important;
    }
    #module-sampler .smp-rpad-btn {
        height: 58px !important;
    }
    #module-sampler .smp-reloop-dual-row {
        grid-template-columns: 1fr !important;
        gap: 9px !important;
    }
    #module-sampler .smp-reloop-ctrl-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px !important;
    }
    #module-sampler .smp-reloop-rate-row,
    #module-sampler .smp-reloop-sync-row {
        gap: 5px !important;
    }

    /* BASSLINE (02) & WHITE NOISE (04B) ON MOBILE */
    #module-sampler .smp-bass-key-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
        gap: 5px !important;
    }
    #module-sampler .smp-key-btn {
        height: 30px !important;
        font-size: 8px !important;
    }
    #module-sampler .smp-bass-pat-util,
    #module-sampler .smp-sub-ed-row {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 6px !important;
    }
    #module-sampler .smp-bass-mod-grid,
    #module-sampler .smp-bass-sub-pair,
    #module-sampler .smp-bass-lfo-subrow {
        grid-template-columns: 1fr !important;
        gap: 7px !important;
    }
    #module-sampler .smp-bass-seg3,
    #module-sampler .smp-bass-seg4,
    #module-sampler .smp-bass-seg5 {
        gap: 5px !important;
    }
    #module-sampler .smp-bass-seg3 .smp-mini-btn,
    #module-sampler .smp-bass-seg4 .smp-mini-btn,
    #module-sampler .smp-bass-seg5 .smp-mini-btn,
    #module-sampler .smp-bass-pat-util .smp-mini-btn,
    #module-sampler .smp-sub-ed-row .smp-mini-btn {
        min-height: 33px !important;
        font-size: 7.5px !important;
    }
    #module-sampler .smp-noise-lfo-rates {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 6px !important;
    }
    #module-sampler .smp-noise-lfo-rates .smp-mini-btn {
        min-height: 33px !important;
        font-size: 7.6px !important;
    }
    #module-sampler .smp-noise-knob-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 6px !important;
    }

    /* 8-CH CONSOLE BUS MIXER + MASTER SUITE ON MOBILE */
    #module-sampler .smp-bus-mixer-grid {
        grid-template-columns: 1fr !important;
        gap: 9px !important;
    }
    #module-sampler .smp-mix-strip {
        padding: 9px 8px 8px 8px !important;
        gap: 7px !important;
    }
    #module-sampler .smp-mix-mute-btn,
    #module-sampler .smp-mix-solo-btn {
        width: 28px !important;
        height: 26px !important;
        font-size: 8.2px !important;
    }
    #module-sampler .smp-sat-btn-row {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px !important;
    }
    #module-sampler .smp-sat-knob-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px !important;
    }
}
@media (max-width: 400px) {
    #module-sampler .smp-vox-sync-btns .smp-mini-btn,
    #module-sampler .smp-vox-send-grid .smp-mini-btn,
    #module-sampler .smp-vox-eq5 .smp-mini-btn,
    #module-sampler .smp-vox-pat-tools .smp-mini-btn {
        font-size: 6.7px !important;
        padding: 3px 1px !important;
        letter-spacing: 0 !important;
    }
    #module-sampler .smp-vox-loader-btns .smp-mini-btn,
    #module-sampler .smp-vox-engine-5 .smp-mini-btn {
        font-size: 7px !important;
    }
}


/* === v45: PRO 60-COL ZERO-VOID DESKTOP STUDIO CONSOLE + UNIFIED ANALOG VST & MASTER SUITE + SC 20Hz–20kHz RTA === */
#module-sampler .smp-bass-knob-grid-20 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
}
/* Unified SC + 20Hz–20kHz RTA Bay (clean vertical stack on Desktop & Mobile — ZERO VOID!) */
#module-sampler .smp-sc-stack {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 7px;
    flex: 1 1 auto;
}
#module-sampler .smp-sc-top-bar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 6px;
    align-items: center;
}
#module-sampler .smp-sc-top-bar .smp-hw-btn {
    min-height: 26px !important;
    padding: 3px 9px !important;
    font-size: 7.4px !important;
}
#module-sampler .smp-sc-route-tag {
    font-family: 'Orbitron', sans-serif;
    font-size: 6.4px;
    font-weight: 800;
    color: #7dd3fc;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 4px;
    padding: 4px 6px;
    text-align: center;
    letter-spacing: 0.4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#module-sampler .smp-sc-rta-screen {
    height: 108px !important;
    flex: 1 1 auto;
    min-height: 98px;
}
#module-sampler .smp-sc-knob-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}
#module-sampler .smp-sc-knob-pair .smp-vst-knob {
    padding: 5px 2px 4px 2px;
}
#module-sampler .smp-sc-knob-pair .smp-knob-svg {
    width: 36px;
    height: 36px;
}
/* Unified 3-VST Stacked Vertical Column inside Master Suite */
#module-sampler .smp-master-bay-vst {
    justify-content: flex-start !important;
}
#module-sampler #smp-master-vst-slot #mikado-sampler-fx-bar {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
}
#module-sampler #smp-master-vst-slot .fx-bar-hdr {
    display: none !important;
}
#module-sampler #smp-master-vst-slot .fx-rack-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
    flex: 1 1 auto !important;
}
#module-sampler #smp-master-vst-slot .fx-square-tile {
    min-height: 62px !important;
    height: 100% !important;
    padding: 6px 8px !important;
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr) 58px !important;
    align-items: center !important;
    justify-items: stretch !important;
    gap: 8px !important;
    border-radius: 7px !important;
}
#module-sampler #smp-master-vst-slot .fx-square-tile svg {
    width: 32px !important;
    height: 32px !important;
    justify-self: center !important;
}
#module-sampler #smp-master-vst-slot .fx-tile-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    min-width: 0 !important;
    gap: 2px !important;
}
#module-sampler #smp-master-vst-slot .fx-tile-title {
    font-size: 8.6px !important;
    margin: 0 !important;
    text-align: left !important;
    white-space: nowrap !important;
}
#module-sampler #smp-master-vst-slot .fx-tile-sub {
    font-size: 6.9px !important;
    margin: 0 !important;
    text-align: left !important;
    max-width: 100% !important;
}
#module-sampler #smp-master-vst-slot .fx-power-btn {
    width: 58px !important;
    min-height: 30px !important;
    margin-top: 0 !important;
    padding: 4px 5px !important;
    font-size: 8px !important;
    gap: 4px !important;
}

#module-sampler.smp-wide-mode .smp-ws-deck > .smp-chassis-panel {
    padding: 10px 10px !important;
}
#module-sampler.smp-wide-mode .smp-ws-deck > .smp-sec-loops,
#module-sampler.smp-wide-mode .smp-ws-deck > .smp-sec-reloop {
    margin-bottom: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
}
#module-sampler .smp-sec-reloop .smp-reloop-pad-strip {
    margin-top: 0 !important;
    margin-bottom: 6px !important;
}
#module-sampler .smp-sec-reloop .smp-reloop-bay {
    margin-top: 0 !important;
}

/* ROW 3 // 01 RHYTHM (2/5) + 02 DUAL-OSC BASSLINE (3/5): EXACT HEIGHT LOCK (~565px) */
#module-sampler.smp-wide-3col .smp-ws-deck > .smp-sec-rhythm .smp-pad-btn {
    height: 52px !important;
}
#module-sampler.smp-wide-3col .smp-ws-deck > .smp-sec-rhythm .smp-pad-matrix {
    gap: 6px !important;
    margin-bottom: 7px !important;
}
#module-sampler.smp-wide-3col .smp-ws-deck > .smp-sec-rhythm .smp-step-btn {
    height: 33px !important;
}
#module-sampler.smp-wide-3col .smp-ws-deck > .smp-sec-rhythm .smp-pad-synth-wrap {
    margin-top: auto !important;
    padding-top: 7px !important;
}
#module-sampler.smp-wide-3col .smp-ws-deck > .smp-sec-rhythm .smp-knob-grid-6 .smp-knob-svg {
    width: 36px !important;
    height: 36px !important;
}

#module-sampler.smp-wide-3col .smp-bass-wide-split {
    display: grid !important;
    grid-template-columns: 0.90fr 1.12fr !important;
    gap: 9px !important;
    align-items: stretch !important;
    flex: 1 1 auto !important;
}
#module-sampler.smp-wide-3col .smp-bass-col-left,
#module-sampler.smp-wide-3col .smp-bass-col-right {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
}
#module-sampler.smp-wide-3col .smp-bass-col-left .smp-bass-mod-bay {
    margin-bottom: 0 !important;
    margin-top: auto !important;
    padding: 6px 7px !important;
}
#module-sampler.smp-wide-3col .smp-bass-col-right .smp-sub-bay {
    margin-bottom: 5px !important;
    padding: 5px 6px !important;
}
#module-sampler.smp-wide-3col .smp-bass-col-right .smp-osc-bank {
    gap: 4px !important;
}
#module-sampler.smp-wide-3col .smp-bass-col-right .smp-wave-btn {
    min-height: 27px !important;
    height: 27px !important;
    padding: 2px !important;
    gap: 1px !important;
}
#module-sampler.smp-wide-3col .smp-bass-col-right .smp-wave-svg {
    width: 20px !important;
    height: 10px !important;
    margin-top: 2px !important;
}
#module-sampler.smp-wide-3col .smp-bass-col-right .smp-wave-txt {
    font-size: 5.8px !important;
}
#module-sampler.smp-wide-3col .smp-bass-col-right .smp-osc-switches-row {
    margin-top: 1px !important;
    padding-top: 4px !important;
    gap: 5px !important;
}
#module-sampler.smp-wide-3col .smp-bass-col-right .smp-hw-switch-unit {
    gap: 2px !important;
}
#module-sampler.smp-wide-3col .smp-bass-col-right .smp-sw3-track {
    height: 23px !important;
}
#module-sampler.smp-wide-3col .smp-bass-col-right .smp-bass-mod-grid {
    margin-top: 3px !important;
    gap: 5px !important;
}
#module-sampler.smp-wide-3col .smp-bass-col-right .smp-reloop-group {
    padding: 3px 4px !important;
    gap: 2px !important;
}
#module-sampler.smp-wide-3col .smp-bass-col-right .smp-reloop-grp-lbl {
    font-size: 6.2px !important;
    margin-bottom: 1px !important;
}
#module-sampler.smp-wide-3col .smp-bass-col-right .smp-bass-seg3 .smp-mini-btn {
    min-height: 20px !important;
    height: 20px !important;
    font-size: 6.3px !important;
    padding: 0 2px !important;
}
/* Smoked-Glass Live Bass Waveform Oscilloscope Screen (fills gap inside OSC • VCF • ADSR • MOD bay) */
#module-sampler .smp-bass-wave-screen {
    height: 70px !important;
    margin-bottom: 6px;
    background:
        linear-gradient(176deg, rgba(255, 255, 255, 0.065) 0%, rgba(255, 255, 255, 0.015) 23%, rgba(0, 0, 0, 0.24) 26%, transparent 56%),
        radial-gradient(ellipse at 50% 0%, #0d213a 0%, #050a14 62%, #02050c 100%) !important;
    border: 1.2px solid rgba(56, 189, 248, 0.44) !important;
    box-shadow: inset 0 3px 16px rgba(0, 0, 0, 0.94), 0 0 12px rgba(56, 189, 248, 0.14) !important;
}
#module-sampler .smp-fx-dsp-hdr {
    display: none;
}
#module-sampler .smp-fx-split-layout {
    display: flex;
    flex-direction: column;
}
#module-sampler.smp-wide-3col .smp-bass-col-right .smp-bass-matrix-bay {
    margin-bottom: 5px !important;
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    gap: 5px !important;
    min-height: 0 !important;
}
#module-sampler.smp-wide-3col .smp-bass-col-right .smp-bass-wave-screen {
    height: auto !important;
    min-height: 68px !important;
    flex: 1 1 auto !important;
    margin-bottom: 0 !important;
}
#module-sampler.smp-wide-3col .smp-bass-knob-grid-20 {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 3px !important;
    flex: 0 0 auto !important;
}
#module-sampler.smp-wide-3col .smp-bass-knob-grid-20 .smp-vst-knob {
    padding: 2.5px 1.5px 2px 1.5px !important;
}
#module-sampler.smp-wide-3col .smp-bass-knob-grid-20 .smp-knob-svg {
    width: 28px !important;
    height: 28px !important;
}
#module-sampler.smp-wide-3col .smp-bass-knob-grid-20 .smp-knob-lbl {
    font-size: 5.6px !important;
}
#module-sampler.smp-wide-3col .smp-bass-knob-grid-20 .knob-val-txt {
    font-size: 6.2px !important;
}
#module-sampler.smp-wide-3col .smp-bass-col-right .smp-bass-kbd-bay {
    margin-top: 0 !important;
    padding: 5px 6px 6px 6px !important;
    flex: 1.25 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    gap: 5px !important;
    min-height: 0 !important;
}
#module-sampler.smp-wide-3col .smp-bass-col-right .smp-bk-toolbar {
    flex: 0 0 auto !important;
    gap: 3px !important;
    row-gap: 3px !important;
    margin-bottom: 0 !important;
}
#module-sampler.smp-wide-3col .smp-bass-col-right .smp-bk-left,
#module-sampler.smp-wide-3col .smp-bass-col-right .smp-bk-right {
    gap: 3px !important;
}
#module-sampler.smp-wide-3col .smp-bass-col-right .smp-bk-status {
    font-size: 6.5px !important;
    letter-spacing: 0.35px !important;
    margin-right: 1px !important;
}
#module-sampler.smp-wide-3col .smp-bass-col-right .smp-bk-toolbar .smp-mini-btn {
    min-height: 19px !important;
    height: 19px !important;
    padding: 0 4.5px !important;
    font-size: 6.3px !important;
    letter-spacing: 0.25px !important;
}
#module-sampler.smp-wide-3col .smp-bass-col-right .smp-bk-oct-pill {
    font-size: 6.4px !important;
    padding: 2px 4px !important;
    min-width: 38px !important;
}
#module-sampler.smp-wide-3col .smp-bass-col-right .smp-bk-keys-wrap {
    flex: 1 1 auto !important;
    height: auto !important;
    min-height: 96px !important;
    max-height: none !important;
    gap: 1.5px !important;
    padding: 3px !important;
}
#module-sampler.smp-wide-3col .smp-bass-col-right .smp-bk-white {
    padding-bottom: 5px !important;
}
#module-sampler.smp-wide-3col .smp-bass-col-right .smp-bk-white .smp-bk-lbl {
    font-size: 6px !important;
}
#module-sampler.smp-wide-3col .smp-bass-col-right .smp-bk-white.is-scale-key::after {
    bottom: 16px !important;
    width: 4.5px !important;
    height: 4.5px !important;
}
#module-sampler.smp-wide-3col .smp-bass-col-right .smp-bk-black {
    top: 3px !important;
    width: 4.8% !important;
    height: 58% !important;
}

/* ROW 5 // 03B VOCAL (FULL-WIDTH AUTO-HEIGHT WAVEFORM) + 03C RELOOP + 03D NOISE: ZERO VOIDS */
#module-sampler.smp-wide-3col .smp-ws-deck > .smp-sec-vocal .smp-vox-stack {
    display: grid !important;
    grid-template-columns: 1.06fr 1fr !important;
    grid-template-rows: minmax(126px, 1fr) auto auto auto !important;
    grid-template-areas:
        "gwave gwave"
        "g1    g3"
        "g2    g3"
        "g45   g45" !important;
    gap: 6px !important;
    align-items: stretch !important;
    flex: 1 1 auto !important;
    margin-bottom: 6px !important;
}
#module-sampler.smp-wide-3col .smp-ws-deck > .smp-sec-vocal .smp-vox-g1    { grid-area: g1 !important; }
#module-sampler.smp-wide-3col .smp-ws-deck > .smp-sec-vocal .smp-vox-gwave {
    grid-area: gwave !important;
    height: 100% !important;
    min-height: 126px !important;
    margin-bottom: 0 !important;
}
#module-sampler.smp-wide-3col .smp-ws-deck > .smp-sec-vocal .smp-vox-g2    { grid-area: g2 !important; }
#module-sampler.smp-wide-3col .smp-ws-deck > .smp-sec-vocal .smp-vox-g3    { grid-area: g3 !important; display: flex !important; flex-direction: column !important; justify-content: space-between !important; }
#module-sampler.smp-wide-3col .smp-ws-deck > .smp-sec-vocal .smp-vox-g45   { grid-area: g45 !important; grid-template-columns: 1fr 1fr !important; gap: 6px !important; }
#module-sampler.smp-wide-3col .smp-ws-deck > .smp-sec-vocal .smp-vox-g45 .smp-vox-eq5 .smp-mini-btn {
    font-size: 6.9px !important;
    padding: 2px 2px !important;
    min-height: 25px !important;
}
#module-sampler.smp-wide-3col .smp-ws-deck > .smp-sec-vocal .smp-vox-bottom-wide {
    display: grid !important;
    grid-template-columns: 1.48fr 1fr !important;
    gap: 7px !important;
    align-items: stretch !important;
    flex: 0 0 auto !important;
    margin-top: 0 !important;
}
#module-sampler.smp-wide-3col .smp-ws-deck > .smp-sec-vocal .smp-vox-knob-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 4px !important;
    margin-top: 0 !important;
    align-content: center !important;
}
#module-sampler.smp-wide-3col .smp-ws-deck > .smp-sec-vocal .smp-vox-knob-grid .smp-vst-knob {
    padding: 3.5px 2px !important;
}
#module-sampler.smp-wide-3col .smp-ws-deck > .smp-sec-vocal .smp-vox-knob-grid .smp-knob-svg {
    width: 33px !important;
    height: 33px !important;
}
/* 03C Reloop Window Smoked-Glass Live Waveform + 03D White Noise Analog CRT Static Snow Screen */
#module-sampler .smp-reloop-win-group {
    justify-content: space-between !important;
}
#module-sampler .smp-reloop-wave-screen {
    height: 54px !important;
    flex: 1 1 auto !important;
    min-height: 52px !important;
    margin-top: 4px !important;
    margin-bottom: 0 !important;
    background:
        linear-gradient(176deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.015) 22%, rgba(0, 0, 0, 0.24) 26%, transparent 56%),
        radial-gradient(ellipse at 50% 0%, #0d213a 0%, #050a14 64%, #02050c 100%) !important;
    border: 1.2px solid rgba(56, 189, 248, 0.44) !important;
    box-shadow: inset 0 3px 14px rgba(0, 0, 0, 0.94), 0 0 10px rgba(56, 189, 248, 0.14) !important;
}
#module-sampler .smp-noise-static-screen {
    height: 64px !important;
    margin-bottom: 7px !important;
    background: #0a4f7a !important;
    border: 1.3px solid rgba(56, 189, 248, 0.64) !important;
    box-shadow: inset 0 3px 14px rgba(0, 0, 0, 0.72), 0 0 14px rgba(56, 189, 248, 0.28) !important;
}
#module-sampler.smp-wide-3col .smp-ws-deck > .smp-sec-reloop .smp-reloop-bay {
    flex: 1 1 auto !important;
    justify-content: space-between !important;
}
#module-sampler.smp-wide-3col .smp-ws-deck > .smp-sec-reloop .smp-reloop-mid {
    flex: 1 1 auto !important;
}
#module-sampler.smp-wide-3col .smp-ws-deck > .smp-sec-reloop .smp-reloop-wave-screen {
    height: auto !important;
    min-height: 58px !important;
}
#module-sampler.smp-wide-3col .smp-ws-deck > .smp-sec-reloop .smp-reloop-knobs-3 .smp-knob-svg {
    width: 31px !important;
    height: 31px !important;
}
#module-sampler.smp-wide-3col .smp-ws-deck > .smp-sec-noise .smp-noise-wide-body {
    justify-content: space-between !important;
    flex: 1 1 auto !important;
    gap: 6px !important;
}
#module-sampler.smp-wide-3col .smp-ws-deck > .smp-sec-noise .smp-noise-static-screen {
    height: 76px !important;
    margin-bottom: 0 !important;
    flex: 0 0 auto !important;
}
#module-sampler.smp-wide-3col .smp-ws-deck > .smp-sec-noise .smp-noise-knob-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 5px !important;
}
#module-sampler.smp-wide-3col .smp-ws-deck > .smp-sec-noise .smp-noise-knob-grid .smp-knob-svg {
    width: 35px !important;
    height: 35px !important;
}
#module-sampler.smp-wide-3col .smp-ws-deck > .smp-sec-vocal .smp-step-btn,
#module-sampler.smp-wide-3col .smp-ws-deck > .smp-sec-reloop .smp-step-btn,
#module-sampler.smp-wide-3col .smp-ws-deck > .smp-sec-noise .smp-step-btn,
#module-sampler.smp-wide-3col .smp-ws-deck > .smp-sec-sub .smp-step-btn {
    height: 32px !important;
}

/* ROW 6 // 04 MULTI-CHANNEL DSP FX & 12-CH CONSOLE MIXER:
   LEFT (45fr = 75%): 12-CH Bus Mixer (4×3) | RIGHT (15fr = 25%): Multi-Channel DSP FX (Bus + Bit DAC + 5 rows × 3 cols)
   Aligns 1:1 with Row 4 (Loop 1–3 | Loop 4) and Row 5 (Vocal + Reloop | Noise)! */
#module-sampler.smp-wide-3col .smp-ws-deck > .smp-sec-fx .smp-fx-split-layout {
    display: grid !important;
    grid-template-columns: 44.5fr 15.5fr !important;
    gap: 9px !important;
    align-items: start !important;
}
#module-sampler.smp-wide-3col .smp-ws-deck > .smp-sec-fx .smp-fx-mixer-bay {
    order: 1 !important;
    margin-bottom: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    gap: 8px !important;
}
#module-sampler.smp-wide-3col .smp-ws-deck > .smp-sec-fx .smp-bus-mixer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-auto-rows: auto !important;
    gap: 5px !important;
    flex: 0 0 auto !important;
    align-content: start !important;
}
#module-sampler.smp-wide-3col .smp-ws-deck > .smp-sec-fx .smp-bus-mixer-grid .smp-mix-strip {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    gap: 3px !important;
    padding: 4px 4px 4px 4px !important;
    height: auto !important;
}
#module-sampler .smp-mix-strip.is-eq-compact .smp-mix-eq-row {
    padding-top: 3px !important;
    gap: 2px !important;
}
#module-sampler .smp-mix-strip.is-eq-compact .smp-mix-eq-row .smp-vst-knob {
    padding: 2px 1px !important;
}
#module-sampler .smp-mix-strip.is-eq-compact .smp-mix-eq-row .smp-knob-svg {
    width: 24px !important;
    height: 24px !important;
}
#module-sampler .smp-mix-strip.is-eq-compact .smp-mix-eq-row .smp-knob-lbl {
    font-size: 5.7px !important;
}
#module-sampler .smp-mix-strip.is-eq-compact .smp-mix-eq-row .knob-val-txt {
    font-size: 5.9px !important;
}

/* === PRO 12+1 VERTICAL STEREO MIXING CONSOLE DESK (FIXED COMPACT HEIGHT — ZERO FLEX STRETCH!) === */
#module-sampler .smp-pro-desk-bay {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: linear-gradient(180deg, rgba(6, 11, 22, 0.94) 0%, rgba(2, 6, 14, 0.98) 100%);
    border: 1px solid rgba(56, 189, 248, 0.32);
    border-radius: 8px;
    padding: 6px 7px 7px 7px;
    box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.86);
    flex: 0 0 auto;
    min-width: 0;
}
#module-sampler .smp-pro-desk-hdr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    font-family: 'Orbitron', sans-serif;
    font-size: 7.4px;
    font-weight: 900;
    letter-spacing: 0.7px;
    color: #38bdf8;
}
#module-sampler .smp-pro-desk-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
    flex: 0 0 auto;
    display: block;
}
#module-sampler .smp-pro-desk-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(56px, 1fr)) minmax(244px, 266px);
    gap: 4px;
    width: 100%;
    min-width: 940px;
    align-items: stretch;
}
#module-sampler .smp-desk-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    background: linear-gradient(180deg, rgba(16, 25, 42, 0.90) 0%, rgba(6, 10, 19, 0.97) 100%);
    border: 1px solid rgba(51, 65, 85, 0.82);
    border-radius: 6px;
    padding: 4px 3px 5px 3px;
    min-width: 0;
    transition: opacity 0.14s ease, border-color 0.14s ease;
}
#module-sampler .smp-desk-col.is-loop-bus {
    border-top: 2px solid rgba(56, 189, 248, 0.65);
    background: linear-gradient(180deg, rgba(14, 116, 144, 0.20) 0%, rgba(6, 11, 20, 0.97) 100%);
}
#module-sampler .smp-desk-col.is-muted { opacity: 0.44; border-color: rgba(239, 68, 68, 0.55); }
#module-sampler .smp-desk-col.is-solo-dimmed { opacity: 0.36; }
#module-sampler .smp-desk-col.is-solo {
    opacity: 1;
    border-color: #38bdf8;
    box-shadow: inset 0 0 10px rgba(56, 189, 248, 0.18), 0 0 8px rgba(56, 189, 248, 0.22);
}
#module-sampler .smp-desk-ch-btn {
    width: 100%;
    border: 1px solid rgba(56, 189, 248, 0.36);
    background: linear-gradient(180deg, #0d1729 0%, #030712 100%);
    border-radius: 4px;
    padding: 3.5px 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    line-height: 1.05;
}
#module-sampler .smp-desk-ch-btn:hover { border-color: #38bdf8; }
#module-sampler .smp-desk-ch-num { font-size: 6.8px; font-weight: 800; color: #7dd3fc; opacity: 0.85; }
#module-sampler .smp-desk-ch-nm  { font-size: 9.2px; font-weight: 900; color: #ffffff; letter-spacing: 0.35px; white-space: nowrap; }
#module-sampler .smp-desk-pan-wrap { width: 100%; display: flex; justify-content: center; }
#module-sampler .smp-desk-pan-wrap .smp-vst-knob {
    width: 100% !important;
    padding: 2px 1px 1px 1px !important;
    background: rgba(2, 6, 23, 0.65) !important;
    border: 1px solid rgba(51, 65, 85, 0.72) !important;
    border-radius: 4px !important;
}
#module-sampler .smp-desk-pan-wrap .smp-knob-lbl { display: none !important; }
#module-sampler .smp-desk-pan-wrap .smp-knob-svg { width: 25px !important; height: 25px !important; }
#module-sampler .smp-desk-pan-wrap .knob-val-txt { font-size: 5.9px !important; margin-top: 0 !important; color: #7dd3fc !important; }
#module-sampler .smp-desk-ms-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    width: 100%;
}
#module-sampler .smp-desk-ms-row .smp-mix-mute-btn,
#module-sampler .smp-desk-ms-row .smp-mix-solo-btn {
    width: 100% !important;
    height: 17px !important;
    font-size: 6.6px !important;
    border-radius: 3px !important;
}
#module-sampler .smp-desk-fader-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    height: var(--smp-desk-fader-h, 232px);
    min-height: var(--smp-desk-fader-h, 232px);
    max-height: var(--smp-desk-fader-h, 232px);
    flex: 0 0 var(--smp-desk-fader-h, 232px);
}
#module-sampler .smp-desk-vled-pair {
    display: flex;
    align-items: stretch;
    gap: 2px;
    padding: 2px 2px;
    height: var(--smp-desk-fader-h, 232px);
    box-sizing: border-box;
    background: #020617;
    border: 1px solid #1e293b;
    border-radius: 3px;
}
#module-sampler .smp-desk-vled-bar {
    display: flex;
    flex-direction: column-reverse;
    justify-content: space-between;
    gap: 2px;
    width: 4.5px;
    height: 100%;
}
#module-sampler .smp-desk-led-seg {
    width: 100%;
    flex: 1 1 0;
    border-radius: 1px;
    background: rgba(30, 41, 59, 0.68);
    transition: background 0.04s linear;
}
#module-sampler .smp-desk-led-seg.led-blue.is-lit,
#module-sampler .smp-desk-led-seg.led-blue.is-peak   { background: #0ea5e9; box-shadow: 0 0 4px rgba(14,165,233,0.80); }
#module-sampler .smp-desk-led-seg.led-cyan.is-lit,
#module-sampler .smp-desk-led-seg.led-cyan.is-peak   { background: #38bdf8; box-shadow: 0 0 5px rgba(56,189,248,0.88); }
#module-sampler .smp-desk-led-seg.led-yellow.is-lit,
#module-sampler .smp-desk-led-seg.led-yellow.is-peak { background: #facc15; box-shadow: 0 0 6px rgba(250,204,21,0.92); }
#module-sampler .smp-desk-led-seg.led-orange.is-lit,
#module-sampler .smp-desk-led-seg.led-orange.is-peak { background: #f97316; box-shadow: 0 0 6px rgba(249,115,22,0.94); }
#module-sampler .smp-desk-led-seg.led-red.is-lit,
#module-sampler .smp-desk-led-seg.led-red.is-peak    { background: #ef4444; box-shadow: 0 0 7px rgba(239,68,68,0.98); }
/* Full-Width Backlit Fader Well — Blue -> Yellow -> Orange -> Red (>0dB), NO red frame box, NO white top border! */
#module-sampler .smp-desk-vtrack {
    position: relative;
    width: 24px;
    height: var(--smp-desk-fader-h, 232px);
    min-height: var(--smp-desk-fader-h, 232px);
    max-height: var(--smp-desk-fader-h, 232px);
    padding: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #030712 0%, #070d1a 100%);
    border: 1px solid rgba(51, 65, 85, 0.65);
    border-radius: 5px;
    box-shadow: inset 0 2px 7px rgba(0, 0, 0, 0.92);
}
#module-sampler .smp-desk-vslot {
    position: absolute;
    top: 5px;
    bottom: 5px;
    width: 19px;
    border-radius: 3px;
    background: #020617;
    border: none;
    overflow: hidden;
    pointer-events: none;
}
#module-sampler .smp-desk-vslot::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: rgba(2, 6, 23, 0.45);
    pointer-events: none;
    z-index: 1;
}
#module-sampler .smp-desk-vfill {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #0284c7 0%, #38bdf8 40%, #facc15 58%, #f97316 74.2%, #ef4444 75.8%, #dc2626 100%);
    clip-path: inset(25% 0 0 0);
    -webkit-clip-path: inset(25% 0 0 0);
    opacity: 0.78;
}
#module-sampler .smp-desk-unity-mark {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(148, 163, 184, 0.24);
    pointer-events: none;
    z-index: 2;
}
#module-sampler .smp-desk-vrange {
    -webkit-appearance: none;
    appearance: none;
    writing-mode: vertical-lr;
    direction: rtl;
    width: 24px;
    height: calc(var(--smp-desk-fader-h, 232px) - 2px);
    background: transparent;
    margin: 0;
    padding: 0;
    cursor: ns-resize;
    z-index: 3;
    touch-action: none;
}
#module-sampler .smp-desk-vrange::-webkit-slider-runnable-track { background: transparent; width: 4px; }
#module-sampler .smp-desk-vrange::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 19px;
    height: 10px;
    border-radius: 2px;
    background: linear-gradient(180deg, #334155 0%, #1e293b 40%, #020617 50%, #1e293b 60%, #0f172a 100%);
    border: 1.2px solid #38bdf8;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.70), 0 2px 4px rgba(0, 0, 0, 0.92);
    margin-left: -7.5px;
}
#module-sampler .smp-desk-vtrack[data-zone="yellow"] .smp-desk-vrange::-webkit-slider-thumb {
    border-color: #facc15 !important;
    box-shadow: 0 0 8px rgba(250, 204, 21, 0.78), 0 2px 4px rgba(0, 0, 0, 0.92) !important;
}
#module-sampler .smp-desk-vtrack[data-zone="orange"] .smp-desk-vrange::-webkit-slider-thumb {
    border-color: #f97316 !important;
    box-shadow: 0 0 9px rgba(249, 115, 22, 0.82), 0 2px 4px rgba(0, 0, 0, 0.94) !important;
}
#module-sampler .smp-desk-vtrack[data-zone="red"] .smp-desk-vrange::-webkit-slider-thumb {
    border-color: #ef4444 !important;
    box-shadow: 0 0 9px rgba(239, 68, 68, 0.88), 0 2px 4px rgba(0, 0, 0, 0.95) !important;
}
#module-sampler .smp-desk-vrange::-moz-range-track { background: transparent; width: 4px; }
#module-sampler .smp-desk-vrange::-moz-range-thumb {
    width: 19px;
    height: 10px;
    border-radius: 2px;
    background: linear-gradient(180deg, #334155 0%, #1e293b 40%, #020617 50%, #1e293b 60%, #0f172a 100%);
    border: 1.2px solid #38bdf8;
}
#module-sampler .smp-desk-vtrack[data-zone="yellow"] .smp-desk-vrange::-moz-range-thumb { border-color: #facc15 !important; }
#module-sampler .smp-desk-vtrack[data-zone="orange"] .smp-desk-vrange::-moz-range-thumb { border-color: #f97316 !important; }
#module-sampler .smp-desk-vtrack[data-zone="red"] .smp-desk-vrange::-moz-range-thumb    { border-color: #ef4444 !important; }
#module-sampler .smp-desk-foot {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 5.8px;
    font-weight: 800;
    color: #64748b;
    padding: 1px 1px 0 1px;
}
#module-sampler .smp-desk-val { color: #38bdf8; font-weight: 900; font-size: 7.2px; letter-spacing: 0.15px; white-space: nowrap; }
#module-sampler .smp-desk-val[data-zone="yellow"] { color: #facc15 !important; }
#module-sampler .smp-desk-val[data-zone="orange"] { color: #f97316 !important; }
#module-sampler .smp-desk-val[data-zone="red"],
#module-sampler .smp-desk-val.is-over-zero,
#module-sampler .smp-mix-val.is-over-zero { color: #ef4444 !important; text-shadow: 0 0 7px rgba(239, 68, 68, 0.65) !important; }

/* === FAR-RIGHT MASTER STEREO + REORDERABLE INSERT RACK COLUMN === */
#module-sampler .smp-desk-master-wrap {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 5px;
    align-items: stretch;
    background: linear-gradient(180deg, rgba(14, 38, 62, 0.72) 0%, rgba(4, 10, 20, 0.98) 100%);
    border: 1.4px solid rgba(56, 189, 248, 0.58);
    border-radius: 7px;
    padding: 5px;
    box-shadow: inset 0 1px 0 rgba(186, 230, 253, 0.16), 0 0 14px rgba(56, 189, 248, 0.12);
    min-width: 0;
}
#module-sampler .smp-desk-master-fcol {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    border-right: 1px solid rgba(56, 189, 248, 0.24);
    padding-right: 4px;
}
#module-sampler .smp-desk-master-tag {
    width: 100%;
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 8.2px;
    font-weight: 900;
    letter-spacing: 0.7px;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.68), #07263d);
    border: 1px solid #38bdf8;
    border-radius: 4px;
    padding: 4px 2px;
}
#module-sampler .smp-desk-master-fcol .smp-mini-btn {
    width: 100% !important;
    min-height: 18px !important;
    height: 18px !important;
    padding: 0 2px !important;
    font-size: 6.1px !important;
}
#module-sampler .smp-desk-master-fcol .smp-desk-fader-area {
    height: var(--smp-desk-master-h, 252px);
    min-height: var(--smp-desk-master-h, 252px);
    max-height: var(--smp-desk-master-h, 252px);
    flex: 0 0 var(--smp-desk-master-h, 252px);
}
#module-sampler .smp-desk-master-fcol .smp-desk-vled-pair {
    height: var(--smp-desk-master-h, 252px);
}
#module-sampler .smp-desk-master-fcol .smp-desk-vtrack {
    width: 25px;
    height: var(--smp-desk-master-h, 252px);
    min-height: var(--smp-desk-master-h, 252px);
    max-height: var(--smp-desk-master-h, 252px);
    border-color: rgba(56, 189, 248, 0.45);
}
#module-sampler .smp-desk-master-fcol .smp-desk-vrange {
    width: 25px;
    height: calc(var(--smp-desk-master-h, 252px) - 2px);
}
#module-sampler .smp-desk-master-fcol .smp-desk-vslot {
    width: 20px;
}
#module-sampler .smp-desk-inserts-col {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 4px;
    min-width: 0;
    height: 100%;
}
#module-sampler .smp-desk-ins-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3px;
    flex: 0 0 auto;
    font-family: 'Orbitron', sans-serif;
    font-size: 6.2px;
    font-weight: 900;
    color: #7dd3fc;
    letter-spacing: 0.45px;
}
#module-sampler .smp-desk-ins-hdr .smp-mini-btn {
    min-height: 16px !important;
    height: 16px !important;
    padding: 0 4px !important;
    font-size: 5.6px !important;
}
#module-sampler .smp-desk-insert-list {
    display: grid;
    grid-template-rows: repeat(6, minmax(0, 1fr));
    gap: 4px;
    flex: 1 1 auto;
    min-height: 0;
}
#module-sampler .smp-desk-insert-list.is-rack-bypassed {
    opacity: 0.48;
    filter: saturate(0.35);
}
#module-sampler .smp-ins-slot {
    display: grid;
    grid-template-columns: 10px 36px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 5px;
    height: 100%;
    min-height: 36px;
    box-sizing: border-box;
    padding: 3px 5px;
    border-radius: 6px;
    background: linear-gradient(180deg, #131f33 0%, #070d18 100%);
    border: 1px solid #2d3f58;
    cursor: grab;
    transition: border-color 0.12s ease, background 0.12s ease, transform 0.1s ease;
}
#module-sampler .smp-ins-slot:active { cursor: grabbing; }
#module-sampler .smp-ins-slot.is-on {
    border-color: #38bdf8;
    background: linear-gradient(180deg, rgba(14, 116, 144, 0.48) 0%, #071928 100%);
    box-shadow: inset 0 0 10px rgba(56, 189, 248, 0.18), 0 0 8px rgba(56, 189, 248, 0.22);
}
#module-sampler .smp-ins-slot.is-dragging { opacity: 0.42; border-style: dashed; }
#module-sampler .smp-ins-slot.is-drag-over {
    border-color: #f97316 !important;
    box-shadow: 0 -2px 0 #f97316, 0 0 10px rgba(249, 115, 22, 0.55) !important;
    transform: translateY(1px);
}
#module-sampler .smp-ins-grip { font-size: 9px; color: #64748b; text-align: center; user-select: none; line-height: 1; }
#module-sampler .smp-ins-icon-box {
    position: relative;
    width: 36px;
    height: 36px;
    padding: 3px;
    border-radius: 5px;
    background: linear-gradient(160deg, #101a2c 0%, #040812 100%);
    border: 1px solid #334155;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.14s ease, box-shadow 0.14s ease;
}
#module-sampler .smp-ins-slot.is-on .smp-ins-icon-box {
    border-color: #38bdf8;
    box-shadow: inset 0 0 8px rgba(56, 189, 248, 0.22), 0 0 8px rgba(56, 189, 248, 0.28);
}
#module-sampler .smp-ins-icon-box:hover { border-color: #7dd3fc; }
#module-sampler .smp-ins-icon-box svg { width: 28px; height: 28px; display: block; }
#module-sampler .smp-ins-idx-badge {
    position: absolute;
    top: -2px;
    left: -2px;
    width: 11px;
    height: 11px;
    border-radius: 3px;
    background: #0f172a;
    border: 1px solid #38bdf8;
    color: #7dd3fc;
    font-family: 'Orbitron', sans-serif;
    font-size: 5.8px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
#module-sampler .smp-ins-pwr {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    background: transparent;
    border: none;
    padding: 2px 0;
    margin: 0;
    cursor: pointer;
    min-width: 0;
    text-align: left;
}
#module-sampler .smp-ins-title-row {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}
#module-sampler .smp-ins-led {
    width: 6.5px;
    height: 6.5px;
    border-radius: 50%;
    background: #1e293b;
    border: 1px solid #475569;
    flex-shrink: 0;
}
#module-sampler .smp-ins-slot.is-on .smp-ins-led {
    background: #38bdf8;
    border-color: #e0f2fe;
    box-shadow: 0 0 6px #38bdf8;
}
#module-sampler .smp-ins-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 6.9px;
    font-weight: 900;
    color: #cbd5e1;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#module-sampler .smp-ins-slot.is-on .smp-ins-name { color: #ffffff; }
#module-sampler .smp-ins-sub {
    font-family: 'Orbitron', sans-serif;
    font-size: 5.5px;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 0.35px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#module-sampler .smp-ins-slot.is-on .smp-ins-sub { color: #7dd3fc; }
#module-sampler .smp-ins-arrows {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
#module-sampler .smp-ins-arr {
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid #334155;
    border-radius: 3px;
    color: #cbd5e1;
    font-size: 6px;
    line-height: 1;
    height: 15px;
    width: 19px;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
#module-sampler .smp-ins-arr:hover:not(:disabled) { border-color: #38bdf8; color: #38bdf8; }
#module-sampler .smp-ins-arr:disabled { opacity: 0.25; cursor: default; }
#module-sampler.smp-wide-3col .smp-ws-deck > .smp-sec-fx .smp-fx-top-wide {
    order: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    gap: 8px !important;
    margin-bottom: 0 !important;
    padding: 8px 9px !important;
    border-radius: 8px !important;
    background: rgba(4, 9, 19, 0.72) !important;
    border: 1px solid rgba(56, 189, 248, 0.24) !important;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.62) !important;
    min-width: 0 !important;
}
#module-sampler.smp-wide-3col .smp-ws-deck > .smp-sec-fx .smp-fx-dsp-hdr {
    display: flex !important;
    margin-bottom: 0 !important;
}
#module-sampler.smp-wide-3col .smp-ws-deck > .smp-sec-fx .smp-fx-sel-col {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}
#module-sampler.smp-wide-3col .smp-ws-deck > .smp-sec-fx .smp-fx-sel-col .smp-fx-bus-row {
    margin-bottom: 0 !important;
}
#module-sampler.smp-wide-3col .smp-ws-deck > .smp-sec-fx .smp-fx-sel-col .smp-fx-loop-row {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
#module-sampler.smp-wide-3col .smp-ws-deck > .smp-sec-fx .smp-fx-sel-col > div:last-child {
    margin-bottom: 0 !important;
}
/* Strictly 5 rows × 3 columns across ALL viewports */
#module-sampler .smp-fx-knobs-15 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 5px !important;
}
#module-sampler.smp-wide-3col .smp-ws-deck > .smp-sec-fx .smp-fx-top-wide .smp-fx-knobs-col {
    margin-bottom: 0 !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-auto-rows: auto !important;
    gap: 5px !important;
    flex: 0 0 auto !important;
    align-content: start !important;
}
#module-sampler.smp-wide-3col .smp-ws-deck > .smp-sec-fx .smp-fx-top-wide .smp-fx-knobs-col .smp-vst-knob {
    padding: 2px 1px !important;
    justify-content: center !important;
}
#module-sampler.smp-wide-3col .smp-ws-deck > .smp-sec-fx .smp-fx-top-wide .smp-fx-knobs-col .smp-knob-svg {
    width: 34px !important;
    height: 34px !important;
}
#module-sampler.smp-wide-3col .smp-ws-deck > .smp-sec-fx .smp-fx-top-wide .smp-fx-knobs-col .smp-knob-lbl {
    font-size: 6.8px !important;
    letter-spacing: 0.35px !important;
}
#module-sampler.smp-wide-2col .smp-ws-deck > .smp-sec-fx .smp-bus-mixer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
}
#module-sampler.smp-wide-2col .smp-ws-deck > .smp-sec-fx .smp-knob-grid-6,
#module-sampler.smp-wide-2col .smp-ws-deck > .smp-sec-fx .smp-fx-knobs-15 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 5px !important;
}
#module-sampler .smp-fx-loop-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    margin-top: -5px;
    margin-bottom: 8px;
}
#module-sampler .smp-mix-strip.is-loop-bus {
    border-color: rgba(56, 189, 248, 0.42) !important;
    border-top-color: #38bdf8 !important;
    background:
        repeating-linear-gradient(90deg, rgba(255,255,255,0.018) 0px, rgba(255,255,255,0.018) 1px, transparent 1px, transparent 3px),
        linear-gradient(180deg, rgba(14, 116, 144, 0.18) 0%, #0b1424 55%, #060b14 100%) !important;
}

/* 03A // 4-CH LOOP DECK: 4-DECK HORIZONTAL CONSOLE ON DESKTOP, 2x2 ON LAPTOP, 1-COL ON MOBILE */
#module-sampler .smp-loop-deck-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    flex: 1 1 auto;
}
#module-sampler.smp-wide-3col .smp-loop-deck-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 8px !important;
}
#module-sampler.smp-wide-2col .smp-loop-deck-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px !important;
}
#module-sampler .smp-loop-card {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 7px 7px 7px 7px;
    border-radius: 8px;
    background:
        repeating-linear-gradient(90deg, rgba(255,255,255,0.016) 0px, rgba(255,255,255,0.016) 1px, transparent 1px, transparent 3px),
        linear-gradient(180deg, rgba(16, 26, 44, 0.92) 0%, rgba(7, 13, 24, 0.97) 100%);
    border: 1px solid rgba(51, 65, 85, 0.85);
    border-top: 2px solid rgba(56, 189, 248, 0.42);
    box-shadow: inset 0 1px 0 rgba(226, 232, 240, 0.08), 0 4px 12px rgba(0, 0, 0, 0.48);
    min-width: 0;
}
#module-sampler .smp-loop-card.is-active {
    border-color: rgba(56, 189, 248, 0.72);
    border-top-color: #7dd3fc;
    box-shadow: inset 0 1px 0 rgba(224, 242, 254, 0.16), 0 0 16px rgba(56, 189, 248, 0.22);
}
#module-sampler .smp-loop-card.drag-over {
    border-color: #7dd3fc !important;
    box-shadow: inset 0 0 20px rgba(56, 189, 248, 0.30), 0 0 18px rgba(56, 189, 248, 0.45) !important;
}
#module-sampler .smp-loop-card-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    flex-wrap: nowrap;
}
#module-sampler .smp-loop-ch-tag {
    font-family: 'Orbitron', sans-serif;
    font-size: 6.4px;
    font-weight: 900;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.36);
    border-radius: 4px;
    padding: 2px 3.5px;
    white-space: nowrap;
}
#module-sampler .smp-loop-ch-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 8px;
    font-weight: 900;
    color: #f1f5f9;
    letter-spacing: 0.4px;
    white-space: nowrap;
}
#module-sampler .smp-loop-key-pill {
    font-family: 'Orbitron', sans-serif;
    font-size: 6.3px;
    font-weight: 800;
    color: #64748b;
    background: rgba(2, 6, 23, 0.72);
    border: 1px solid rgba(51, 65, 85, 0.85);
    border-radius: 4px;
    padding: 1.5px 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 72px;
}
#module-sampler .smp-loop-hdr-btns {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-wrap: nowrap;
    flex-shrink: 0;
}
#module-sampler .smp-loop-hdr-btns .smp-mini-btn {
    min-height: 24px !important;
    padding: 1px 4.5px !important;
    font-size: 6.5px !important;
}
#module-sampler .smp-loop-hdr-btns .smp-loop-play-btn {
    min-width: 54px !important;
    min-height: 28px !important;
    padding: 2px 8px !important;
    font-size: 7.4px !important;
    font-weight: 900 !important;
    letter-spacing: 0.5px !important;
    border-color: rgba(56, 189, 248, 0.72) !important;
    color: #e0f2fe !important;
}
#module-sampler .smp-mod-play-btn {
    min-width: 56px !important;
    min-height: 24px !important;
    padding: 2px 8px !important;
    font-size: 7.3px !important;
    font-weight: 900 !important;
    letter-spacing: 0.55px !important;
    border-color: rgba(56, 189, 248, 0.68) !important;
    background: linear-gradient(180deg, rgba(14, 116, 144, 0.42) 0%, #071828 100%) !important;
    color: #e0f2fe !important;
    box-shadow: inset 0 1px 0 rgba(186, 230, 253, 0.22), 0 0 8px rgba(56, 189, 248, 0.22) !important;
}
#module-sampler .smp-mod-play-btn:hover,
#module-sampler .smp-loop-hdr-btns .smp-loop-play-btn:hover {
    border-color: #7dd3fc !important;
    color: #ffffff !important;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.40) !important;
}
#module-sampler .smp-mod-play-btn.is-mod-playing,
#module-sampler .smp-loop-hdr-btns .smp-loop-play-btn.is-mod-playing,
#module-sampler #btn-vox-preview-play.is-mod-playing {
    background: linear-gradient(180deg, rgba(220, 38, 38, 0.72) 0%, #450a0a 100%) !important;
    border-color: #f87171 !important;
    color: #ffffff !important;
    box-shadow: inset 0 0 10px rgba(248, 113, 113, 0.35), 0 0 14px rgba(239, 68, 68, 0.48) !important;
}
#module-sampler .smp-loop-hdr-btns .is-rev-on {
    border-color: #f59e0b !important;
    color: #fde68a !important;
    box-shadow: inset 0 0 8px rgba(245,158,11,0.28), 0 0 8px rgba(245,158,11,0.34) !important;
}
#module-sampler .smp-loop-wave-box {
    position: relative;
    height: 44px;
    border-radius: 6px;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 0%, #0d2038 0%, #040914 68%, #02050b 100%);
    border: 1px solid rgba(56, 189, 248, 0.36);
    box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.90);
    cursor: ew-resize;
    touch-action: pan-y;
}
#module-sampler .smp-loop-wave-name {
    position: absolute;
    top: 2px;
    left: 5px;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: 'Orbitron', sans-serif;
    font-size: 6.4px;
    font-weight: 900;
    color: #e0f2fe;
    text-shadow: 0 1px 3px #000;
    pointer-events: none;
}
#module-sampler .smp-loop-wave-prog {
    position: absolute;
    top: 2px;
    right: 5px;
    font-family: 'Orbitron', sans-serif;
    font-size: 6.4px;
    font-weight: 900;
    color: #64748b;
    text-shadow: 0 1px 3px #000;
    pointer-events: none;
}
/* Compact 2-Row START / END Trim Bar with Integrated Live Animated Waveform OLED Backdrop */
#module-sampler .smp-loop-trim-bar {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    min-height: 54px;
    padding: 5px 6px;
    border-radius: 6px;
    background: radial-gradient(ellipse at 50% 50%, #071c34 0%, #030914 72%, #02050b 100%);
    border: 1px solid rgba(56, 189, 248, 0.36);
    box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.92);
}
#module-sampler .smp-loop-live-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
    z-index: 1;
}
#module-sampler .smp-loop-trim-line {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 22px 17px minmax(0, 1fr) 17px 36px 36px;
    gap: 3px;
    align-items: center;
}
#module-sampler .smp-loop-trim-line .smp-mix-fader {
    background: rgba(15, 23, 42, 0.42) !important;
    border-color: rgba(56, 189, 248, 0.28) !important;
}
#module-sampler .smp-loop-trim-tag {
    font-family: 'Orbitron', sans-serif;
    font-size: 5.9px;
    font-weight: 900;
    color: #cbd5e1;
    text-shadow: 0 1px 3px #000;
}
#module-sampler .smp-loop-trim-val {
    font-family: 'Orbitron', sans-serif;
    font-size: 6.1px;
    font-weight: 800;
    color: #7dd3fc;
    text-align: right;
    white-space: nowrap;
    text-shadow: 0 1px 3px #000;
}
#module-sampler .smp-trim-act {
    min-height: 19px !important;
    padding: 1px 2px !important;
    font-size: 5.9px !important;
}
#module-sampler .smp-trim-nudge {
    width: 17px;
    height: 17px;
    padding: 0;
    border-radius: 3px;
    border: 1px solid #334155;
    background: linear-gradient(180deg, #1e293b, #0b111c);
    color: #cbd5e1;
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
#module-sampler .smp-trim-nudge:hover {
    border-color: #38bdf8;
    color: #ffffff;
}
#module-sampler .smp-loop-src-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px 32px 32px;
    gap: 4px;
    align-items: stretch;
}
#module-sampler .smp-loop-src-row .smp-mini-btn {
    min-height: 25px !important;
    padding: 2px 2px !important;
    font-size: 6.4px !important;
}
#module-sampler .smp-loop-sel {
    min-height: 25px !important;
    padding: 2px 5px !important;
    font-size: 7.5px !important;
}
#module-sampler .smp-loop-sync-row {
    display: grid;
    grid-template-columns: 56px minmax(0, 1.15fr) minmax(0, 0.95fr);
    gap: 4px;
    align-items: stretch;
}
#module-sampler .smp-loop-bpm-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #020617;
    border: 1px solid #334155;
    border-radius: 5px;
    padding: 1px 2px;
}
#module-sampler .smp-loop-meta-lbl {
    font-family: 'Orbitron', sans-serif;
    font-size: 5.5px;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 0.2px;
}
#module-sampler .smp-loop-meta-lbl em {
    font-style: normal;
    color: #38bdf8;
}
#module-sampler .smp-loop-key-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 28px 28px;
    gap: 2px;
    align-items: stretch;
}
#module-sampler .smp-loop-key-box .smp-mini-btn,
#module-sampler .smp-loop-mode-box .smp-mini-btn {
    min-height: 24px !important;
    padding: 1px 2px !important;
    font-size: 6.2px !important;
}
#module-sampler .smp-loop-key-sel {
    min-height: 24px !important;
    padding: 1px 2px !important;
    font-size: 7px !important;
}
#module-sampler .smp-loop-mode-box {
    display: grid;
    grid-template-columns: 1.35fr 0.70fr;
    gap: 2px;
    align-items: stretch;
}
/* 1/1..128/1 Beat Length Buttons: crisp 4x2 in 4-deck console & mobile, 8x1 in 2-col wide */
#module-sampler .smp-loop-beats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3px;
}
#module-sampler.smp-wide-2col .smp-loop-beats-row {
    grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
}
#module-sampler .smp-loop-beats-row .smp-mini-btn {
    min-height: 22px !important;
    padding: 1px 1px !important;
    font-size: 6.5px !important;
    letter-spacing: 0.1px !important;
}
/* Beat-Synced Filter Cut Automation Bay */
#module-sampler .smp-loop-fauto-box {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 4px 5px;
    border-radius: 5px;
    background: rgba(2, 6, 23, 0.78);
    border: 1px solid rgba(56, 189, 248, 0.24);
}
#module-sampler .smp-loop-fauto-hdr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 5.9px;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 0.35px;
}
#module-sampler .smp-loop-fauto-hdr strong {
    color: #64748b;
    font-size: 6px;
}
#module-sampler .smp-loop-fauto-rates {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 2.5px;
}
#module-sampler .smp-loop-fauto-sub {
    display: grid;
    grid-template-columns: 1.38fr 1fr;
    gap: 3px;
}
#module-sampler .smp-loop-fauto-shapes {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px;
}
#module-sampler .smp-loop-fauto-types {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px;
}
#module-sampler .smp-loop-fauto-box .smp-mini-btn {
    min-height: 20px !important;
    padding: 1px 1px !important;
    font-size: 5.9px !important;
    letter-spacing: 0.1px !important;
}
/* Pro 6-Knob Machined Aluminum Rotary Bay (PITCH / FILTER / F-AUTO / DELAY / REVERB / CHORUS) */
#module-sampler .smp-loop-knob-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    padding-top: 5px;
    border-top: 1px dashed rgba(56, 189, 248, 0.22);
}
#module-sampler.smp-wide-2col .smp-loop-knob-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}
#module-sampler .smp-loop-knob-grid .smp-vst-knob {
    padding: 3px 2px 3px 2px !important;
}
#module-sampler .smp-loop-knob-grid .smp-knob-svg {
    width: 34px !important;
    height: 34px !important;
}
#module-sampler .smp-loop-knob-grid .smp-knob-lbl {
    font-size: 6px !important;
}
#module-sampler .smp-loop-knob-grid .knob-val-txt {
    font-size: 6.7px !important;
}
@media (max-width: 680px) {
    #module-sampler .smp-loop-deck-grid {
        grid-template-columns: 1fr !important;
        gap: 11px !important;
    }
    #module-sampler .smp-loop-trim-line {
        grid-template-columns: 24px 26px minmax(0, 1fr) 26px 40px 44px !important;
        gap: 4px !important;
    }
    #module-sampler .smp-trim-nudge {
        width: 26px !important;
        height: 26px !important;
    }
    #module-sampler .smp-trim-act {
        min-height: 26px !important;
        font-size: 6.8px !important;
    }
    #module-sampler .smp-loop-sync-row {
        grid-template-columns: 74px minmax(0, 1fr) !important;
        gap: 6px !important;
    }
    #module-sampler .smp-loop-mode-box {
        grid-column: 1 / -1 !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 6px !important;
    }
    #module-sampler .smp-loop-beats-row {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 5px !important;
    }
    #module-sampler .smp-loop-fauto-sub {
        grid-template-columns: 1fr !important;
        gap: 5px !important;
    }
    #module-sampler .smp-loop-beats-row .smp-mini-btn,
    #module-sampler .smp-loop-hdr-btns .smp-mini-btn,
    #module-sampler .smp-loop-src-row .smp-mini-btn,
    #module-sampler .smp-loop-key-box .smp-mini-btn,
    #module-sampler .smp-loop-mode-box .smp-mini-btn,
    #module-sampler .smp-loop-fauto-box .smp-mini-btn {
        min-height: 30px !important;
        font-size: 7.2px !important;
    }
    #module-sampler .smp-loop-knob-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 6px !important;
    }
    #module-sampler .smp-loop-knob-grid .smp-knob-svg {
        width: 38px !important;
        height: 38px !important;
    }
    #module-sampler .smp-fx-loop-row {
        gap: 6px !important;
        margin-top: 0 !important;
    }
}

/* === ORANGE HIGHLIGHT BORDER: ALL SAMPLE & PRESET SELECTORS + LOADERS === */
#module-sampler .smp-select.smp-select-orange {
    border: 1.5px solid #f97316 !important;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.72), 0 0 9px rgba(249, 115, 22, 0.30) !important;
}
#module-sampler .smp-select.smp-select-orange:hover {
    border-color: #fb923c !important;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.72), 0 0 13px rgba(249, 115, 22, 0.48) !important;
}
#module-sampler .smp-select.smp-select-orange:focus {
    border-color: #fdba74 !important;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.72), 0 0 16px rgba(249, 115, 22, 0.62) !important;
}
#module-sampler .smp-hw-btn.smp-load-orange {
    border: 1.5px solid #f97316 !important;
    border-top-color: #fb923c !important;
    background:
        repeating-linear-gradient(90deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 3px),
        linear-gradient(180deg, rgba(194, 65, 12, 0.38) 0%, #1c100a 100%) !important;
    color: #ffedd5 !important;
    box-shadow: inset 0 1px 0 rgba(253, 186, 116, 0.24), 0 0 9px rgba(249, 115, 22, 0.32), 0 2px 0 #020617 !important;
}
#module-sampler .smp-hw-btn.smp-load-orange:hover {
    border-color: #fdba74 !important;
    color: #ffffff !important;
    box-shadow: inset 0 0 10px rgba(249, 115, 22, 0.34), 0 0 13px rgba(249, 115, 22, 0.50), 0 2px 0 #020617 !important;
}

/* === MUTE (ALWAYS ORANGE RIM + ORANGE ACTIVE) & SOLO (ALWAYS NEON BLUE RIM + BLUE ACTIVE) === */
#module-sampler .smp-mix-mute-btn {
    border: 1.4px solid #f97316 !important;
    color: #fed7aa !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 0 6px rgba(249, 115, 22, 0.34), 0 2px 0 #020617 !important;
}
#module-sampler .smp-mix-mute-btn:hover {
    border-color: #fb923c !important;
    color: #ffffff !important;
    box-shadow: inset 0 1px 0 rgba(255, 237, 213, 0.22), 0 0 9px rgba(249, 115, 22, 0.52), 0 2px 0 #020617 !important;
}
#module-sampler .smp-mix-mute-btn.is-muted {
    background: linear-gradient(180deg, #f97316 0%, #c2410c 100%) !important;
    border: 1.4px solid #fdba74 !important;
    color: #ffffff !important;
    text-shadow: 0 0 6px rgba(255, 237, 213, 0.85) !important;
    box-shadow: inset 0 1px 0 rgba(255, 237, 213, 0.42), 0 0 10px rgba(249, 115, 22, 0.68), 0 2px 0 #020617 !important;
}
#module-sampler .smp-mix-solo-btn {
    border: 1.4px solid #38bdf8 !important;
    color: #bae6fd !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 0 6px rgba(56, 189, 248, 0.36), 0 2px 0 #020617 !important;
}
#module-sampler .smp-mix-solo-btn:hover {
    border-color: #7dd3fc !important;
    color: #ffffff !important;
    box-shadow: inset 0 1px 0 rgba(224, 242, 254, 0.26), 0 0 9px rgba(56, 189, 248, 0.54), 0 2px 0 #020617 !important;
}
#module-sampler .smp-mix-solo-btn.is-solo {
    background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%) !important;
    border: 1.4px solid #7dd3fc !important;
    color: #ffffff !important;
    text-shadow: 0 0 6px rgba(224, 242, 254, 0.85) !important;
    box-shadow: inset 0 1px 0 rgba(224, 242, 254, 0.42), 0 0 9px rgba(56, 189, 248, 0.62), 0 2px 0 #020617 !important;
}
#module-sampler #btn-smp-pad-mute,
#module-sampler #btn-smp-rpad-mute {
    border: 1.4px solid #f97316 !important;
    color: #fed7aa !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 7px rgba(249, 115, 22, 0.28), 0 2px 0 #020617 !important;
}
#module-sampler #btn-smp-pad-mute:hover,
#module-sampler #btn-smp-rpad-mute:hover {
    border-color: #fb923c !important;
    color: #ffffff !important;
}
#module-sampler #btn-smp-pad-mute.btn-active-alert,
#module-sampler #btn-smp-rpad-mute.btn-active-alert {
    background: linear-gradient(180deg, #f97316 0%, #c2410c 100%) !important;
    border: 1.4px solid #fdba74 !important;
    color: #ffffff !important;
    box-shadow: inset 0 1px 0 rgba(255, 237, 213, 0.40), 0 0 10px rgba(249, 115, 22, 0.64), 0 2px 0 #020617 !important;
}

/* === DSP FX 'ALL' BUTTON: ORANGE BORDER === */
#module-sampler #btn-fx-ch-all {
    border: 1.5px solid #f97316 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 0 8px rgba(249, 115, 22, 0.34), 0 2px 0 #020617 !important;
}
#module-sampler #btn-fx-ch-all:hover {
    border-color: #fb923c !important;
    color: #ffffff !important;
    box-shadow: inset 0 1px 0 rgba(255, 237, 213, 0.22), 0 0 11px rgba(249, 115, 22, 0.50), 0 2px 0 #020617 !important;
}
#module-sampler #btn-fx-ch-all.is-selected {
    border: 1.5px solid #fb923c !important;
    box-shadow: inset 0 0 10px rgba(56, 189, 248, 0.22), 0 0 12px rgba(249, 115, 22, 0.56), 0 2px 0 #020617 !important;
}

/* === ALL PLAY / START BUTTONS: ORANGE BORDER === */
#module-sampler #btn-smp-play,
#module-sampler .smp-mod-play-btn,
#module-sampler .smp-loop-hdr-btns .smp-loop-play-btn,
#module-sampler #btn-vox-preview-play {
    border: 1.5px solid #f97316 !important;
    box-shadow: inset 0 1px 0 rgba(255, 237, 213, 0.22), 0 0 9px rgba(249, 115, 22, 0.34), 0 2px 0 #020617 !important;
}
#module-sampler #btn-smp-play:hover,
#module-sampler .smp-mod-play-btn:hover,
#module-sampler .smp-loop-hdr-btns .smp-loop-play-btn:hover,
#module-sampler #btn-vox-preview-play:hover {
    border-color: #fb923c !important;
    color: #ffffff !important;
    box-shadow: inset 0 1px 0 rgba(255, 237, 213, 0.28), 0 0 13px rgba(249, 115, 22, 0.52), 0 2px 0 #020617 !important;
}
#module-sampler #btn-smp-play.playing,
#module-sampler .smp-mod-play-btn.is-mod-playing,
#module-sampler .smp-loop-hdr-btns .smp-loop-play-btn.is-mod-playing,
#module-sampler #btn-vox-preview-play.is-mod-playing {
    border: 1.5px solid #fb923c !important;
    box-shadow: inset 0 0 10px rgba(248, 113, 113, 0.35), 0 0 14px rgba(249, 115, 22, 0.58), 0 2px 0 #020617 !important;
}

/* === 05 MASTER SUITE: ANALOG VST ON, SC ON, COMP ON, SAT ON, INFLATOR ON, NEUTRAL -> ORANGE BORDER === */
#module-sampler #btn-smp-sc,
#module-sampler #btn-smp-comp-on,
#module-sampler #btn-smp-sat-on,
#module-sampler #btn-smp-inf-on,
#module-sampler #btn-smp-neutral,
#module-sampler #smp-master-vst-slot .fx-power-btn,
#module-sampler #mikado-sampler-fx-bar .fx-power-btn {
    border: 1.5px solid #f97316 !important;
    box-shadow: inset 0 1px 0 rgba(255, 237, 213, 0.20), 0 0 8px rgba(249, 115, 22, 0.32), 0 2px 0 #020617 !important;
}
#module-sampler #btn-smp-sc:hover,
#module-sampler #btn-smp-comp-on:hover,
#module-sampler #btn-smp-sat-on:hover,
#module-sampler #btn-smp-inf-on:hover,
#module-sampler #btn-smp-neutral:hover,
#module-sampler #smp-master-vst-slot .fx-power-btn:hover,
#module-sampler #mikado-sampler-fx-bar .fx-power-btn:hover {
    border-color: #fb923c !important;
    color: #ffffff !important;
    box-shadow: inset 0 1px 0 rgba(255, 237, 213, 0.26), 0 0 12px rgba(249, 115, 22, 0.50), 0 2px 0 #020617 !important;
}
#module-sampler #btn-smp-sc.btn-active-blue,
#module-sampler #btn-smp-comp-on.btn-active-blue,
#module-sampler #btn-smp-sat-on.btn-active-blue,
#module-sampler #btn-smp-inf-on.btn-active-blue,
#module-sampler #smp-master-vst-slot .fx-power-btn.is-on,
#module-sampler #mikado-sampler-fx-bar .fx-power-btn.is-on {
    border: 1.5px solid #fb923c !important;
    box-shadow: inset 0 0 10px rgba(56, 189, 248, 0.22), 0 0 11px rgba(249, 115, 22, 0.52), 0 2px 0 #020617 !important;
}

/* === FIXED-WIDTH TABULAR-NUMS NOISE kHz READOUT (ZERO JITTER) === */
#module-sampler #smp-noise-hz-readout {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 72px !important;
    width: 72px !important;
    text-align: center !important;
    font-variant-numeric: tabular-nums !important;
    font-feature-settings: "tnum" 1 !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
}
#module-sampler #smp-noise-static-val {
    font-variant-numeric: tabular-nums !important;
    font-feature-settings: "tnum" 1 !important;
    white-space: nowrap !important;
}

/* === 15-DSP FX CELLS: LEFT VERTICAL LED METER + CENTER KNOB + RIGHT M(ORANGE) / S(BLUE) / R(RED) === */
#module-sampler .smp-fx-cell {
    display: grid !important;
    grid-template-columns: 9px minmax(0, 1fr) 20px !important;
    align-items: stretch !important;
    gap: 3px !important;
    padding: 4px !important;
    border-radius: 7px !important;
    background:
        repeating-linear-gradient(90deg, rgba(255,255,255,0.014) 0px, rgba(255,255,255,0.014) 1px, transparent 1px, transparent 3px),
        linear-gradient(180deg, #162030 0%, #090e18 100%) !important;
    border: 1px solid #334155 !important;
    border-top-color: #475569 !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 2px 6px rgba(0,0,0,0.48) !important;
    min-width: 0 !important;
    transition: border-color 0.14s ease, box-shadow 0.14s ease, opacity 0.14s ease !important;
}
#module-sampler .smp-fx-cell:hover {
    border-color: rgba(56, 189, 248, 0.58) !important;
}
#module-sampler .smp-fx-cell.is-fx-muted {
    border-color: rgba(249, 115, 22, 0.65) !important;
    box-shadow: inset 0 0 10px rgba(249, 115, 22, 0.14), 0 2px 6px rgba(0,0,0,0.48) !important;
}
#module-sampler .smp-fx-cell.is-fx-muted .smp-vst-knob {
    opacity: 0.56 !important;
}
#module-sampler .smp-fx-cell.is-fx-solo {
    border-color: #38bdf8 !important;
    box-shadow: inset 0 0 10px rgba(56, 189, 248, 0.22), 0 0 10px rgba(56, 189, 248, 0.35) !important;
}
#module-sampler .smp-fx-cell.is-fx-dimmed {
    opacity: 0.45 !important;
}
#module-sampler .smp-fx-cell > .smp-vst-knob {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 2px 1px !important;
    border-radius: 4px !important;
    min-width: 0 !important;
    justify-content: center !important;
}
#module-sampler .smp-fx-cell > .smp-vst-knob:hover {
    box-shadow: none !important;
}
/* LEFT: Vertical 10-Seg Hardware LED Meter */
#module-sampler .smp-fx-vled-well {
    display: flex !important;
    flex-direction: column !important;
    padding: 2px 1.5px !important;
    border-radius: 3px !important;
    background: #020617 !important;
    border: 1px solid rgba(56, 189, 248, 0.24) !important;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.95) !important;
    contain: layout style paint !important;
    transform: translateZ(0) !important;
}
#module-sampler .smp-fx-vled-bar {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column-reverse !important;
    gap: 1.5px !important;
    min-height: 46px !important;
}
#module-sampler .smp-fx-vled-seg {
    flex: 1 1 0 !important;
    width: 100% !important;
    border-radius: 1px !important;
    background: rgba(15, 23, 42, 0.92) !important;
    border: 0.5px solid rgba(30, 41, 59, 0.78) !important;
    transition: none !important;
}
#module-sampler .smp-fx-vled-seg.led-blue.is-lit   { background: #0ea5e9 !important; border-color: #38bdf8 !important; box-shadow: 0 0 4px rgba(14, 165, 233, 0.85) !important; }
#module-sampler .smp-fx-vled-seg.led-cyan.is-lit   { background: #38bdf8 !important; border-color: #bae6fd !important; box-shadow: 0 0 5px rgba(56, 189, 248, 0.92) !important; }
#module-sampler .smp-fx-vled-seg.led-yellow.is-lit { background: #facc15 !important; border-color: #fef08a !important; box-shadow: 0 0 5px rgba(250, 204, 21, 0.92) !important; }
#module-sampler .smp-fx-vled-seg.led-orange.is-lit { background: #f97316 !important; border-color: #fed7aa !important; box-shadow: 0 0 5px rgba(249, 115, 22, 0.95) !important; }
#module-sampler .smp-fx-vled-seg.led-red.is-lit    { background: #ef4444 !important; border-color: #fecaca !important; box-shadow: 0 0 6px rgba(239, 68, 68, 0.98) !important; }
#module-sampler .smp-vu-dbfs-val { font-family: 'Orbitron', sans-serif !important; font-weight: 900 !important; letter-spacing: 0.4px !important; color: #64748b; }
#module-sampler .smp-fx-vled-seg.is-peak          { background: #e0f2fe !important; border-color: #ffffff !important; box-shadow: 0 0 6px #7dd3fc !important; }
#module-sampler .smp-fx-vled-seg.led-red.is-peak  { background: #ef4444 !important; border-color: #fecaca !important; box-shadow: 0 0 7px #ef4444 !important; }

/* RIGHT: Stacked M (Orange) / S (Blue) / R (Red) Mini Hardware Buttons */
#module-sampler .smp-fx-unit-btns {
    display: grid !important;
    grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
    gap: 2.5px !important;
    align-items: stretch !important;
}
#module-sampler .smp-fxu-btn {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 16px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 3.5px !important;
    font-family: 'Orbitron', sans-serif !important;
    font-size: 6.8px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 1.5px 0 #020617 !important;
    transition: all 0.1s ease !important;
}
#module-sampler .smp-fxu-btn:active { transform: translateY(1px) !important; }
/* M = ORANGE (MUTE) */
#module-sampler .smp-fxu-mute {
    background: linear-gradient(180deg, rgba(154, 52, 18, 0.42) 0%, #1c0f08 100%) !important;
    border: 1px solid rgba(249, 115, 22, 0.58) !important;
    color: #fdba74 !important;
}
#module-sampler .smp-fxu-mute:hover {
    border-color: #fb923c !important;
    color: #ffffff !important;
    box-shadow: 0 0 7px rgba(249, 115, 22, 0.45), 0 1.5px 0 #020617 !important;
}
#module-sampler .smp-fxu-mute.is-muted {
    background: linear-gradient(180deg, #f97316 0%, #c2410c 100%) !important;
    border-color: #fed7aa !important;
    color: #ffffff !important;
    box-shadow: inset 0 1px 0 rgba(255, 237, 213, 0.48), 0 0 9px rgba(249, 115, 22, 0.78), 0 1.5px 0 #020617 !important;
}
/* S = BLUE (SOLO) */
#module-sampler .smp-fxu-solo {
    background: linear-gradient(180deg, rgba(12, 74, 110, 0.48) 0%, #081524 100%) !important;
    border: 1px solid rgba(56, 189, 248, 0.55) !important;
    color: #7dd3fc !important;
}
#module-sampler .smp-fxu-solo:hover {
    border-color: #38bdf8 !important;
    color: #ffffff !important;
    box-shadow: 0 0 7px rgba(56, 189, 248, 0.48), 0 1.5px 0 #020617 !important;
}
#module-sampler .smp-fxu-solo.is-solo {
    background: linear-gradient(180deg, #0ea5e9 0%, #0369a1 100%) !important;
    border-color: #bae6fd !important;
    color: #ffffff !important;
    box-shadow: inset 0 1px 0 rgba(224, 242, 254, 0.48), 0 0 10px rgba(56, 189, 248, 0.80), 0 1.5px 0 #020617 !important;
}
/* R = RED (RESET POSITION) */
#module-sampler .smp-fxu-rst {
    background: linear-gradient(180deg, rgba(153, 27, 27, 0.62) 0%, #26090e 100%) !important;
    border: 1px solid rgba(239, 68, 68, 0.72) !important;
    color: #fecaca !important;
}
#module-sampler .smp-fxu-rst:hover {
    background: linear-gradient(180deg, #dc2626 0%, #991b1b 100%) !important;
    border-color: #fca5a5 !important;
    color: #ffffff !important;
    box-shadow: inset 0 1px 0 rgba(254, 202, 202, 0.35), 0 0 8px rgba(239, 68, 68, 0.65), 0 1.5px 0 #020617 !important;
}


/* === V69: GLOBAL AUX FX MINI-PANEL & 2-OCTAVE BASSLINE PIANO KEYBOARD === */
#module-sampler .smp-aux-mini-bay {
    background: linear-gradient(180deg, rgba(6, 12, 24, 0.92) 0%, rgba(3, 7, 15, 0.98) 100%);
    border: 1px solid rgba(56, 189, 248, 0.30);
    border-radius: 7px;
    padding: 7px 7px 6px 7px;
    margin-top: 6px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.72);
}
#module-sampler .smp-aux-mini-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    margin-bottom: 5px;
    font-family: 'Orbitron', sans-serif;
    font-size: 7.4px;
    font-weight: 900;
    color: #7dd3fc;
    letter-spacing: 0.6px;
}
#module-sampler .smp-aux-mini-readout {
    color: #38bdf8;
    font-size: 7.1px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#module-sampler .smp-aux-div-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    margin-bottom: 6px;
}
#module-sampler .smp-aux-div-row .smp-mini-btn {
    min-height: 22px !important;
    height: 22px !important;
    padding: 0 2px !important;
    font-size: 7px !important;
    letter-spacing: 0.3px !important;
}
#module-sampler .smp-aux-knob-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
}
#module-sampler .smp-aux-knob-grid .smp-vst-knob {
    padding: 4px 2px 3px 2px !important;
}
#module-sampler .smp-aux-knob-grid .smp-knob-svg {
    width: 34px !important;
    height: 34px !important;
}
#module-sampler .smp-aux-knob-grid .smp-knob-lbl {
    font-size: 6.3px !important;
}
#module-sampler .smp-aux-knob-grid .knob-val-txt {
    font-size: 7px !important;
}

/* 2-Octave Interactive Bassline Piano Keyboard (02 // DUAL-OSC BASSLINE VSTi) */
#module-sampler .smp-bass-kbd-bay {
    margin-top: 8px;
    background: linear-gradient(180deg, rgba(7, 13, 25, 0.94) 0%, rgba(3, 6, 14, 0.98) 100%);
    border: 1px solid rgba(56, 189, 248, 0.34);
    border-radius: 8px;
    padding: 7px 8px 8px 8px;
    box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.80), 0 0 12px rgba(56, 189, 248, 0.08);
}
#module-sampler .smp-bk-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    margin-bottom: 6px;
}
#module-sampler .smp-bk-left,
#module-sampler .smp-bk-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}
#module-sampler .smp-bk-status {
    font-family: 'Orbitron', sans-serif;
    font-size: 7.4px;
    font-weight: 900;
    color: #38bdf8;
    letter-spacing: 0.6px;
    margin-right: 3px;
    white-space: nowrap;
}
#module-sampler .smp-bk-toolbar .smp-mini-btn {
    min-height: 22px !important;
    height: 22px !important;
    padding: 0 6px !important;
    font-size: 7px !important;
    letter-spacing: 0.4px !important;
}
#module-sampler .smp-bk-oct-pill {
    font-family: 'Orbitron', sans-serif;
    font-size: 7.2px;
    font-weight: 900;
    color: #e0f2fe;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.34);
    border-radius: 4px;
    padding: 3px 6px;
    min-width: 44px;
    text-align: center;
}
#module-sampler .smp-bk-keys-wrap {
    position: relative;
    width: 100%;
    height: 96px;
    display: flex;
    gap: 2px;
    background: #020617;
    padding: 3px;
    border-radius: 6px;
    border: 1px solid rgba(51, 65, 85, 0.72);
    box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.9);
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}
#module-sampler .smp-bk-key {
    position: relative;
    cursor: pointer;
    border: none;
    padding: 0;
    margin: 0;
    font-family: 'Orbitron', sans-serif;
    transition: background 0.06s ease, box-shadow 0.06s ease, transform 0.05s ease;
    touch-action: manipulation;
}
#module-sampler .smp-bk-white {
    flex: 1 1 0;
    height: 100%;
    background: linear-gradient(180deg, #e2e8f0 0%, #cbd5e1 68%, #94a3b8 100%);
    border: 1px solid #475569;
    border-top: 1px solid #f8fafc;
    border-radius: 0 0 4px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 4px;
    box-shadow: inset 0 -3px 5px rgba(15, 23, 42, 0.25), 0 2px 3px rgba(0, 0, 0, 0.55);
    z-index: 1;
}
#module-sampler .smp-bk-white .smp-bk-lbl {
    font-size: 6.4px;
    font-weight: 900;
    color: #1e293b;
    letter-spacing: 0.2px;
    pointer-events: none;
}
#module-sampler .smp-bk-white.is-root-key {
    background: linear-gradient(180deg, #bae6fd 0%, #7dd3fc 68%, #38bdf8 100%);
    border-color: #0284c7;
}
#module-sampler .smp-bk-white.is-root-key .smp-bk-lbl { color: #020617; }
#module-sampler .smp-bk-white.is-scale-key::after {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #0284c7;
    box-shadow: 0 0 5px rgba(2, 132, 199, 0.7);
    pointer-events: none;
}
#module-sampler .smp-bk-black {
    position: absolute;
    top: 3px;
    width: 4.5%;
    height: 57%;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #334155 0%, #0f172a 55%, #020617 100%);
    border: 1px solid #475569;
    border-top: 1px solid #64748b;
    border-radius: 0 0 4px 4px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 3px 6px rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 4px;
    z-index: 4;
}
#module-sampler .smp-bk-black .smp-bk-lbl {
    display: none;
}
#module-sampler .smp-bk-black.is-root-key {
    background: linear-gradient(180deg, #0ea5e9 0%, #0369a1 65%, #082f49 100%);
    border-color: #7dd3fc;
}
#module-sampler .smp-bk-black.is-scale-key::after {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 5px #38bdf8;
    pointer-events: none;
}
#module-sampler .smp-bk-pc {
    display: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 5.4px;
    font-weight: 900;
    line-height: 1;
    pointer-events: none;
    opacity: 0.72;
}
#module-sampler .smp-bass-kbd-bay.is-pc-on .smp-bk-white .smp-bk-pc {
    display: block;
    color: #475569;
    margin-bottom: 2px;
}
#module-sampler .smp-bass-kbd-bay.is-pc-on .smp-bk-white.is-root-key .smp-bk-pc {
    color: #0369a1;
}
#module-sampler .smp-bass-kbd-bay.is-pc-on .smp-bk-black .smp-bk-pc {
    display: block;
    color: #94a3b8;
    font-size: 5px;
    margin-bottom: 1px;
}
#module-sampler .smp-bass-kbd-bay.is-pc-on .smp-bk-white.is-scale-key::after {
    bottom: 24px !important;
}
@media (max-width: 900px) {
    #module-sampler .smp-bk-pc { display: none !important; }
}
#module-sampler .smp-bk-key.is-playing-key,
#module-sampler .smp-bk-key.is-pc-held,
#module-sampler .smp-bk-key:active {
    background: linear-gradient(180deg, #e0f2fe 0%, #38bdf8 52%, #0284c7 100%) !important;
    border-color: #ffffff !important;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.88), inset 0 0 8px rgba(255, 255, 255, 0.55) !important;
    transform: translateY(1px);
}
#module-sampler .smp-bk-key.is-playing-key .smp-bk-pc,
#module-sampler .smp-bk-key.is-pc-held .smp-bk-pc {
    color: #020617 !important;
    opacity: 0.95;
}
#module-sampler .smp-bk-black.is-playing-key,
#module-sampler .smp-bk-black.is-pc-held,
#module-sampler .smp-bk-black:active {
    transform: translateX(-50%) translateY(1px);
}
#module-sampler .smp-sub-step-btn.is-write-cursor {
    outline: 1.5px dashed #fbbf24 !important;
    outline-offset: -2px;
}
@media (max-width: 640px) {
    #module-sampler .smp-bk-keys-wrap { height: 74px; }
    #module-sampler .smp-bk-white .smp-bk-lbl { font-size: 5.4px; }
    #module-sampler .smp-bk-black { width: 4.9%; }
    #module-sampler .smp-aux-knob-grid .smp-knob-svg { width: 30px !important; height: 30px !important; }
}

/* === PHASE 2: 3-LEVEL DRUM VELOCITY, WORKSPACE TABS & KEYBOARD SHORTCUTS === */
#module-sampler .smp-step-btn {
    position: relative !important;
    overflow: hidden !important;
}
#module-sampler .smp-step-velbar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 0%;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    transition: height 0.08s ease, opacity 0.08s ease, background 0.08s ease;
}
#module-sampler .smp-step-btn > .smp-step-led,
#module-sampler .smp-step-btn > .smp-step-num {
    position: relative;
    z-index: 1;
}
#module-sampler .smp-seq-glass-bay .smp-step-btn.is-vel-1.is-on {
    background: linear-gradient(180deg, rgba(51, 65, 85, 0.52) 0%, rgba(15, 23, 42, 0.88) 100%) !important;
    border-color: rgba(125, 211, 252, 0.45) !important;
    border-bottom-color: #64748b !important;
    color: #cbd5e1 !important;
    box-shadow: inset 0 1px 0 rgba(226, 232, 240, 0.16), 0 0 5px rgba(56, 189, 248, 0.18) !important;
}
#module-sampler .smp-step-btn.is-vel-1 .smp-step-velbar {
    background: linear-gradient(180deg, rgba(148, 163, 184, 0.45) 0%, rgba(51, 65, 85, 0.55) 100%);
}
#module-sampler .smp-step-btn.is-vel-2 .smp-step-velbar {
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.42) 0%, rgba(2, 132, 199, 0.48) 100%);
}
#module-sampler .smp-seq-glass-bay .smp-step-btn.is-vel-3.is-on {
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.48) 0%, rgba(146, 64, 14, 0.68) 55%, #241205 100%) !important;
    border-color: #fbbf24 !important;
    border-bottom-color: #f59e0b !important;
    color: #fffbeb !important;
    text-shadow: 0 0 8px rgba(254, 243, 199, 0.85) !important;
    box-shadow: inset 0 1px 0 rgba(254, 243, 199, 0.45), 0 0 12px rgba(245, 158, 11, 0.50) !important;
}
#module-sampler .smp-step-btn.is-vel-3 .smp-step-velbar {
    background: linear-gradient(180deg, rgba(251, 191, 36, 0.50) 0%, rgba(217, 119, 6, 0.58) 100%);
}
#module-sampler .smp-drum-hdr-right {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}
#module-sampler .smp-drum-ed-pair {
    display: inline-flex;
    gap: 3px;
    flex-shrink: 0;
}
#module-sampler .smp-drum-ed-pair .smp-mini-btn {
    min-height: 20px !important;
    height: 20px !important;
    padding: 0 6px !important;
    font-size: 7px !important;
    letter-spacing: 0.45px !important;
}

/* === UNIFIED BRUSHED-ALUMINUM WORKSPACE FOLDER TABS — PURE NEON BLUE CHASSIS (v86) === */
#module-sampler {
    --ws-accent: #38bdf8;
    --ws-rgb: 56, 189, 248;
}

#module-sampler .smp-ws-shell {
    grid-column: 1 / -1 !important;
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    margin-top: 2px;
}

#module-sampler .smp-workspace-bar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: none;
    position: relative;
    z-index: 5;
}

#module-sampler .smp-ws-tabs {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    flex: 1 1 auto;
    min-width: 0;
}

#module-sampler .smp-ws-tab-btn {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    height: 38px !important;
    min-height: 38px !important;
    padding: 5px 10px 0 10px !important;
    border-radius: 12px 12px 0 0 !important;
    border: 1.5px solid rgba(148, 163, 184, 0.28) !important;
    border-bottom: none !important;
    background:
        repeating-linear-gradient(90deg, rgba(255,255,255,0.016) 0px, rgba(255,255,255,0.016) 1px, transparent 1px, transparent 3px),
        linear-gradient(180deg, #162032 0%, #0d1422 65%, #090e18 100%) !important;
    color: #94a3b8 !important;
    font-family: 'Orbitron', sans-serif !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    letter-spacing: 0.9px !important;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    transition: color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
    user-select: none;
    -webkit-user-select: none;
}

/* Top neon capsule indicator inside each folder tab (matches Analytics reference bar) */
#module-sampler .smp-ws-tab-btn::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 16%;
    right: 16%;
    height: 3px;
    border-radius: 999px;
    background: transparent;
    transition: background 0.16s ease, box-shadow 0.16s ease;
    pointer-events: none;
}

/* Unified neon-blue hover state when inactive */
#module-sampler .smp-ws-tab-btn:hover { color: #7dd3fc !important; border-color: rgba(56, 189, 248, 0.58) !important; }

/* Active tab merges seamlessly into the unified brushed-aluminum deck below (no bottom seam!) */
#module-sampler .smp-ws-tab-btn.is-ws-active {
    z-index: 8;
    height: 42px !important;
    min-height: 42px !important;
    margin-bottom: -2px !important;
    padding-bottom: 2px !important;
    background:
        repeating-linear-gradient(90deg, rgba(255,255,255,0.022) 0px, rgba(255,255,255,0.022) 1px, transparent 1px, transparent 3px),
        linear-gradient(180deg, #1d2a40 0%, #172235 65%, #162032 100%) !important;
    border: 2px solid var(--ws-accent) !important;
    border-bottom: none !important;
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(var(--ws-rgb), 0.62) !important;
    box-shadow:
        0 -4px 18px rgba(var(--ws-rgb), 0.36),
        inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
}

#module-sampler .smp-ws-tab-btn.is-ws-active::before {
    background: var(--ws-accent);
    box-shadow: 0 0 10px var(--ws-accent), 0 0 3px rgba(255, 255, 255, 0.85);
}

/* Bottom bridge cap to mask the deck's top border directly under the active tab */
#module-sampler .smp-ws-tab-btn.is-ws-active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 4px;
    background:
        repeating-linear-gradient(90deg, rgba(255,255,255,0.022) 0px, rgba(255,255,255,0.022) 1px, transparent 1px, transparent 3px),
        #162032;
    pointer-events: none;
}

/* KEYS trigger button — dedicated blue neon frame */
#module-sampler .smp-ws-keys-btn {
    flex: 0 0 auto;
    height: 35px !important;
    min-height: 35px !important;
    margin-bottom: 5px;
    padding: 0 13px !important;
    border-radius: 9px !important;
    border: 1.5px solid #38bdf8 !important;
    background:
        repeating-linear-gradient(90deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 3px),
        linear-gradient(180deg, rgba(14, 116, 144, 0.44) 0%, #071524 100%) !important;
    color: #e0f2fe !important;
    font-family: 'Orbitron', sans-serif !important;
    font-size: 8.5px !important;
    font-weight: 900 !important;
    letter-spacing: 0.75px !important;
    cursor: pointer;
    white-space: nowrap;
    box-shadow:
        0 0 12px rgba(56, 189, 248, 0.34),
        inset 0 1px 0 rgba(186, 230, 253, 0.24) !important;
    transition: border-color 0.14s ease, box-shadow 0.14s ease, color 0.14s ease, transform 0.08s ease;
}
#module-sampler .smp-ws-keys-btn:hover {
    color: #ffffff !important;
    border-color: #7dd3fc !important;
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.58), inset 0 1px 0 rgba(224, 242, 254, 0.32) !important;
}
#module-sampler .smp-ws-keys-btn:active {
    transform: translateY(1px);
}

/* Unified Brushed-Aluminum Deck — continuous neon frame around the active workspace group */
#module-sampler .smp-ws-deck {
    position: relative;
    z-index: 4;
    padding: 12px;
    border: 2px solid var(--ws-accent) !important;
    border-radius: 12px !important;
    background:
        repeating-linear-gradient(90deg, rgba(255,255,255,0.022) 0px, rgba(255,255,255,0.022) 1px, transparent 1px, transparent 3px),
        linear-gradient(180deg, #162032 0%, #0d1422 42%, #070b13 100%) !important;
    box-shadow:
        0 0 26px rgba(var(--ws-rgb), 0.22),
        0 10px 28px rgba(0, 0, 0, 0.62),
        inset 0 1px 0 rgba(255, 255, 255, 0.10),
        inset 0 0 28px rgba(0, 0, 0, 0.45) !important;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

/* Seamless flush left corner when first tab (ALL STUDIO) is active */
#module-sampler[data-smp-tab="all"] .smp-ws-deck {
    border-top-left-radius: 0 !important;
}

/* Recessed brushed-aluminum internal module panels inside the unified neon-blue deck */
#module-sampler .smp-ws-deck > .smp-chassis-panel {
    background:
        repeating-linear-gradient(90deg, rgba(255,255,255,0.016) 0px, rgba(255,255,255,0.016) 1px, transparent 1px, transparent 4px),
        linear-gradient(180deg, rgba(16, 24, 38, 0.88) 0%, rgba(7, 11, 19, 0.95) 100%) !important;
    border: 1px solid rgba(56, 189, 248, 0.30) !important;
    border-top-color: rgba(56, 189, 248, 0.52) !important;
    box-shadow:
        inset 0 1px 0 rgba(224, 242, 254, 0.08),
        0 4px 12px rgba(0, 0, 0, 0.45) !important;
}

@media (max-width: 640px) {
    #module-sampler .smp-workspace-bar {
        gap: 4px;
    }
    #module-sampler .smp-ws-tabs {
        gap: 3px;
    }
    #module-sampler .smp-ws-tab-btn {
        height: 34px !important;
        min-height: 34px !important;
        font-size: 7px !important;
        padding: 4px 3px 0 3px !important;
        letter-spacing: 0.25px !important;
        border-radius: 9px 9px 0 0 !important;
    }
    #module-sampler .smp-ws-tab-btn.is-ws-active {
        height: 37px !important;
        min-height: 37px !important;
    }
    #module-sampler .smp-ws-tab-btn::before {
        top: 4px;
        left: 14%;
        right: 14%;
        height: 2.5px;
    }
    #module-sampler .smp-ws-keys-btn {
        height: 30px !important;
        min-height: 30px !important;
        margin-bottom: 4px;
        padding: 0 7px !important;
        font-size: 7.2px !important;
        letter-spacing: 0.35px !important;
        border-radius: 7px !important;
    }
    #module-sampler .smp-ws-deck {
        padding: 8px 7px;
        border-radius: 10px !important;
    }
    #module-sampler[data-smp-tab="all"] .smp-ws-deck {
        border-top-left-radius: 0 !important;
    }
}

/* Workspace Tab Filtering + Zero-Gap Wide-Mode Row Reassignment inside .smp-ws-deck */
#module-sampler[data-smp-tab="beat"] .smp-ws-deck > .smp-sec-loops,
#module-sampler[data-smp-tab="beat"] .smp-ws-deck > .smp-sec-vocal,
#module-sampler[data-smp-tab="beat"] .smp-ws-deck > .smp-sec-reloop,
#module-sampler[data-smp-tab="beat"] .smp-ws-deck > .smp-sec-noise,
#module-sampler[data-smp-tab="beat"] .smp-ws-deck > .smp-sec-scene-auto,
#module-sampler[data-smp-tab="beat"] .smp-ws-deck > .smp-sec-fx,
#module-sampler[data-smp-tab="beat"] .smp-ws-deck > .smp-sec-master { display: none !important; }

#module-sampler[data-smp-tab="loops"] .smp-ws-deck > .smp-sec-rhythm,
#module-sampler[data-smp-tab="loops"] .smp-ws-deck > .smp-sec-sub,
#module-sampler[data-smp-tab="loops"] .smp-ws-deck > .smp-sec-scene-auto,
#module-sampler[data-smp-tab="loops"] .smp-ws-deck > .smp-sec-fx,
#module-sampler[data-smp-tab="loops"] .smp-ws-deck > .smp-sec-master { display: none !important; }
#module-sampler.smp-wide-3col[data-smp-tab="loops"] .smp-ws-deck > .smp-sec-loops  { grid-row: 1 !important; }
#module-sampler.smp-wide-3col[data-smp-tab="loops"] .smp-ws-deck > .smp-sec-vocal  { grid-row: 2 !important; }
#module-sampler.smp-wide-3col[data-smp-tab="loops"] .smp-ws-deck > .smp-sec-reloop { grid-row: 2 !important; }
#module-sampler.smp-wide-3col[data-smp-tab="loops"] .smp-ws-deck > .smp-sec-noise  { grid-row: 2 !important; }

#module-sampler[data-smp-tab="mix"] .smp-ws-deck > .smp-sec-rhythm,
#module-sampler[data-smp-tab="mix"] .smp-ws-deck > .smp-sec-sub,
#module-sampler[data-smp-tab="mix"] .smp-ws-deck > .smp-sec-loops,
#module-sampler[data-smp-tab="mix"] .smp-ws-deck > .smp-sec-vocal,
#module-sampler[data-smp-tab="mix"] .smp-ws-deck > .smp-sec-reloop,
#module-sampler[data-smp-tab="mix"] .smp-ws-deck > .smp-sec-noise { display: none !important; }
#module-sampler.smp-wide-3col[data-smp-tab="mix"] .smp-ws-deck > .smp-sec-scene-auto { grid-row: 1 !important; }
#module-sampler.smp-wide-3col[data-smp-tab="mix"] .smp-ws-deck > .smp-sec-fx         { grid-row: 2 !important; }
#module-sampler.smp-wide-3col[data-smp-tab="mix"] .smp-ws-deck > .smp-sec-master     { grid-row: 3 !important; }

/* Keyboard Shortcuts Modal — Strictly Viewport-Centered with Neon Blue Frame */
#smp-keys-modal-ov.smp-keys-modal-ov {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    z-index: 2147483646 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px !important;
    box-sizing: border-box !important;
    background: rgba(2, 6, 23, 0.86) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
#smp-keys-modal-ov .smp-keys-modal-box {
    width: 100% !important;
    max-width: 640px !important;
    max-height: 90dvh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    margin: auto !important;
    background:
        repeating-linear-gradient(90deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 3px),
        linear-gradient(168deg, #1b273a 0%, #0a101c 60%, #050912 100%) !important;
    border: 2px solid #38bdf8 !important;
    border-radius: 12px !important;
    box-shadow:
        0 0 32px rgba(56, 189, 248, 0.44),
        0 24px 70px rgba(0, 0, 0, 0.94),
        inset 0 1px 0 rgba(224, 242, 254, 0.24) !important;
}
.smp-keys-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 8px;
    width: 100%;
    min-width: 0;
}
.smp-keys-sec {
    background: rgba(2, 6, 23, 0.68);
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 7px;
    padding: 8px 9px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    overflow: hidden;
}
.smp-keys-sec-title {
    font-size: 7.4px;
    font-weight: 900;
    color: #38bdf8;
    letter-spacing: 0.75px;
    margin-bottom: 3px;
    line-height: 1.45;
}
.smp-keys-sec-title kbd {
    display: inline-block;
    padding: 1px 4px;
    border-radius: 3px;
    background: linear-gradient(180deg, #1e293b 0%, #0b111c 100%);
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: #e0f2fe;
    font-family: 'Orbitron', sans-serif;
    font-size: 6.8px;
    font-weight: 900;
}
.smp-key-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 7.4px;
    color: #cbd5e1;
    min-width: 0;
}
.smp-key-row > span:last-child {
    text-align: right;
    min-width: 0;
    line-height: 1.25;
}
.smp-kbd-combo {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
}
.smp-kbd-sep {
    color: #64748b;
    font-weight: 800;
    font-size: 7.2px;
}
.smp-key-row kbd,
.smp-keys-pad-rows kbd {
    display: inline-block;
    padding: 2px 5px;
    border-radius: 4px;
    background: linear-gradient(180deg, #1e293b 0%, #0b111c 100%);
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: #e0f2fe;
    font-family: 'Orbitron', sans-serif;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: 0.35px;
    box-shadow: 0 1.5px 0 #020617;
    white-space: nowrap;
    flex-shrink: 0;
}
.smp-keys-pad-legend {
    margin-top: 9px;
    background: rgba(2, 6, 23, 0.68);
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 7px;
    padding: 8px 9px;
    width: 100%;
    min-width: 0;
    overflow: hidden;
}
.smp-keys-pad-rows {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 12px;
    margin-top: 4px;
    font-size: 7.3px;
    color: #94a3b8;
    font-weight: 800;
    width: 100%;
    min-width: 0;
}
.smp-keys-pad-rows > div {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.smp-keys-row-lbl {
    flex: 0 0 auto;
    min-width: 48px;
    color: #7dd3fc;
    white-space: nowrap;
}
.smp-keys-piano-rows .smp-keys-row-lbl {
    min-width: 72px;
}
.smp-kbd-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3px;
    min-width: 0;
}
.smp-kbd-strip em {
    font-style: normal;
    color: #cbd5e1;
    font-size: 7px;
    letter-spacing: 0.3px;
    margin-right: 2px;
}
.smp-keys-nav-row {
    grid-column: 1 / -1;
    padding-top: 5px;
    border-top: 1px dashed rgba(56, 189, 248, 0.22);
}
@media (max-width: 620px) {
    .smp-keys-grid,
    .smp-keys-pad-rows {
        grid-template-columns: 1fr !important;
    }
    .smp-keys-nav-row {
        grid-column: auto;
    }
}

@media (max-width: 640px) {
    #module-sampler .smp-fx-cell {
        grid-template-columns: 7px minmax(0, 1fr) 18px !important;
        gap: 2px !important;
        padding: 3px !important;
    }
    #module-sampler .smp-fx-cell .smp-knob-svg {
        width: 32px !important;
        height: 32px !important;
    }
    #module-sampler .smp-fx-cell .smp-knob-lbl {
        font-size: 6.2px !important;
    }
    #module-sampler .smp-fx-cell .knob-val-txt {
        font-size: 6.8px !important;
    }
    #module-sampler .smp-fxu-btn {
        font-size: 6.2px !important;
        min-height: 15px !important;
    }
}



/* === v87: WORKSPACE UTIL BUTTONS (SCENE A–H / MIDI / KEYS), SCENE MUTE MATRIX & MIDI LEARN === */
#module-sampler .smp-ws-util-btns {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}
#module-sampler .smp-ws-util-btn.is-scene-active,
#module-sampler .smp-ws-util-btn.is-midi-online {
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.62) 0%, #072238 100%) !important;
    border-color: #7dd3fc !important;
    color: #ffffff !important;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.56), inset 0 1px 0 rgba(224, 242, 254, 0.35) !important;
}
#module-sampler .smp-ws-util-btn.is-midi-pulse {
    box-shadow: 0 0 18px rgba(125, 211, 252, 0.92), inset 0 0 10px rgba(224, 242, 254, 0.55) !important;
}
#module-sampler .smp-ws-util-btn.is-midi-learning {
    border-color: #f97316 !important;
    color: #ffffff !important;
    background: linear-gradient(180deg, rgba(234, 88, 12, 0.65) 0%, #2a0d04 100%) !important;
    box-shadow: 0 0 16px rgba(249, 115, 22, 0.72) !important;
}

/* Scene Mute Automation Matrix (A–H × 12 CH) */
#module-sampler .smp-scene-mute-bay {
    background: linear-gradient(180deg, rgba(7, 14, 27, 0.94) 0%, rgba(3, 7, 15, 0.98) 100%);
    border: 1px solid rgba(56, 189, 248, 0.38);
    border-radius: 7px;
    padding: 7px 8px;
    margin-bottom: 7px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.76);
}
#module-sampler .smp-scene-hdr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}
#module-sampler .smp-scene-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 7.4px;
    font-weight: 900;
    letter-spacing: 0.7px;
    color: #7dd3fc;
    white-space: nowrap;
}
#module-sampler .smp-scene-presets {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}
#module-sampler .smp-scene-hdr .smp-mini-btn {
    min-height: 22px !important;
    height: 22px !important;
    padding: 0 6px !important;
    font-size: 6.8px !important;
}
#module-sampler .smp-scene-mute-bay.is-scene-collapsed .smp-scene-body {
    display: none !important;
}
#module-sampler .smp-scene-body {
    margin-top: 7px;
    padding-top: 7px;
    border-top: 1px solid rgba(56, 189, 248, 0.18);
    overflow-x: auto;
}
#module-sampler .smp-scene-mute-bay.is-scene-bypassed .smp-scene-grid {
    opacity: 0.56;
}
#module-sampler .smp-scene-grid {
    display: grid;
    grid-template-columns: 54px repeat(8, minmax(28px, 1fr));
    gap: 3px;
    align-items: stretch;
    min-width: 290px;
}
#module-sampler .smp-scene-corner {
    font-family: 'Orbitron', sans-serif;
    font-size: 6px;
    font-weight: 800;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
}
#module-sampler .smp-scene-col-hdr,
#module-sampler .smp-scene-row-hdr {
    font-family: 'Orbitron', sans-serif;
    font-size: 6.8px;
    font-weight: 900;
    color: #94a3b8;
    background: linear-gradient(180deg, #162032 0%, #0a101b 100%);
    border: 1px solid #334155;
    border-radius: 4px;
    height: 20px;
    padding: 0 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
#module-sampler .smp-scene-col-hdr:hover,
#module-sampler .smp-scene-row-hdr:hover {
    border-color: #38bdf8;
    color: #ffffff;
}
#module-sampler .smp-scene-col-hdr.is-sc-playing {
    border-color: #f97316 !important;
    color: #ffffff !important;
    box-shadow: 0 0 8px rgba(249, 115, 22, 0.72) !important;
}
#module-sampler .smp-scene-cell {
    height: 19px;
    border-radius: 4px;
    border: 1px solid #243248;
    background: linear-gradient(180deg, #0d1422 0%, #050912 100%);
    cursor: pointer;
    padding: 0;
    position: relative;
}
#module-sampler .smp-scene-cell.is-sc-on {
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.52) 0%, #072238 100%);
    border-color: #38bdf8;
    box-shadow: inset 0 1px 0 rgba(224, 242, 254, 0.34), 0 0 6px rgba(56, 189, 248, 0.28);
}
#module-sampler .smp-scene-cell.is-sc-muted {
    background: linear-gradient(180deg, rgba(154, 52, 18, 0.28) 0%, #120806 100%);
    border-color: rgba(249, 115, 22, 0.42);
}
#module-sampler .smp-scene-cell.is-sc-outside {
    opacity: 0.32;
}
#module-sampler .smp-scene-cell.is-sc-playing {
    outline: 1.5px solid #f97316;
    outline-offset: -1px;
}

/* MIDI Learn Visual Cursor & Target Highlight */
#module-sampler.smp-midi-learn-mode .smp-vst-knob,
#module-sampler.smp-midi-learn-mode .smp-desk-vrange,
#module-sampler.smp-midi-learn-mode .smp-mix-mute-btn,
#module-sampler.smp-midi-learn-mode .smp-mix-solo-btn {
    cursor: crosshair !important;
    outline: 1px dashed rgba(56, 189, 248, 0.58) !important;
    outline-offset: 1px;
}
#module-sampler .smp-midi-learn-target {
    outline: 2px solid #f97316 !important;
    box-shadow: 0 0 16px rgba(249, 115, 22, 0.78) !important;
}

@media (max-width: 640px) {
    #module-sampler .smp-ws-util-btns { gap: 3px; }
    #module-sampler .smp-ws-util-btn { padding: 0 6px !important; font-size: 6.6px !important; }
}

/* === SAMPLER.CSS END === */
