/* VERSION: 2.0.0 */
/* css/vj-console.css */
/* Neuro-Cymatics Bottom-Docked Slideout Visual Control Center */
/* Inspired by NeuroWave Professional v7.5 & Cymatics Waveform Generator v4.0 */

#vj-drawer.vj-drawer {
    position: absolute;
    bottom: 64px; /* Docked directly above .controls-wrapper matching EQ */
    left: 10px;
    right: 10px;
    max-height: calc(100% - 72px);
    z-index: 47;
    background: var(--bg-panel, #20242e);
    background: color-mix(in srgb, var(--bg-panel, #222632) 88%, #ffffff 12%);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.22));
    border-radius: 12px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.92), 0 0 0 1px rgba(255, 255, 255, 0.14);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(calc(100% + 80px));
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), bottom 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
    user-select: none;
    -webkit-user-select: none;
    font-family: inherit;
    color: var(--text-main, #f4f4f5);
}

#vj-drawer.vj-drawer.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* TOP BAR / HEADER OF DRAWER */
.vj-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 14px;
    background: rgba(0, 0, 0, 0.45);
    border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.15));
    gap: 8px;
    flex-shrink: 0;
}

.vj-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.vj-brand .highlight {
    color: var(--accent, #ff9e3b);
    text-shadow: 0 0 8px var(--accent, #ff9e3b);
}

.vj-power-led {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #333;
    box-shadow: inset 1px 1px 2px #000;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.vj-power-led.active {
    background-color: var(--accent, #ff9e3b);
    box-shadow: 0 0 8px var(--accent, #ff9e3b), inset -1px -1px 2px rgba(0,0,0,0.4);
}

/* VECTOR SCOPE MONITOR CANVAS */
.vj-scope-canvas {
    width: 130px;
    height: 32px;
    background: #06090e;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.85);
    flex-shrink: 0;
}

/* RETRO DIGITAL LCD DISPLAY (NeuroWave Inspired) */
.vj-lcd {
    background: #06090e;
    border: 1px solid color-mix(in srgb, var(--accent, #ff9e3b) 30%, transparent);
    border-radius: 6px;
    padding: 4px 10px;
    font-family: var(--font-mono, 'SF Mono', 'Courier New', Courier, monospace);
    font-size: 11px;
    font-weight: bold;
    color: var(--accent, #ff9e3b);
    text-shadow: 0 0 6px var(--accent, #ff9e3b);
    letter-spacing: 1.5px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.85);
    min-width: 130px;
    text-align: center;
    flex-shrink: 0;
}

/* 1-CLICK HORIZONTAL PRESET CHIPS BAR */
.vj-header-center {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-grow: 1;
    overflow-x: auto;
    scrollbar-width: none;
}
.vj-header-center::-webkit-scrollbar {
    display: none;
}

.vj-presets-chips {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    flex-grow: 1;
    border: 0;
    margin: 0;
    padding: 0;
    min-inline-size: 0;
}
.vj-presets-chips::-webkit-scrollbar {
    display: none;
}

.vj-chip {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--text-main, #d4d4d8);
    border-radius: 12px;
    padding: 4px 11px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.18s ease;
    user-select: none;
}

.vj-chip:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: var(--accent, #ff9e3b);
    color: #ffffff;
}

.vj-chip.active {
    background: color-mix(in srgb, var(--accent, #ff9e3b) 30%, transparent);
    border-color: var(--accent, #ff9e3b);
    color: #ffffff;
    box-shadow: 0 0 10px color-mix(in srgb, var(--accent, #ff9e3b) 40%, transparent);
}

.vj-preset-select {
    background: #0b0d13;
    color: var(--accent, #ff9e3b);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 5px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    flex-shrink: 0;
}

.vj-preset-select:focus {
    border-color: var(--accent, #ff9e3b);
    box-shadow: 0 0 6px var(--accent, #ff9e3b);
}

.vj-btn {
    background: linear-gradient(180deg, #2a2d36, #15171d);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #b0b4be;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-transform: uppercase;
    flex-shrink: 0;
}

.vj-btn:hover {
    background: linear-gradient(180deg, #373b47, #1e2029);
    color: #ffffff;
    border-color: var(--accent, rgba(255, 255, 255, 0.35));
}

.vj-btn.active {
    background: color-mix(in srgb, var(--accent, #ff9e3b) 30%, transparent);
    color: #ffffff;
    border-color: var(--accent, #ff9e3b);
    box-shadow: 0 0 8px color-mix(in srgb, var(--accent, #ff9e3b) 35%, transparent);
}

.vj-btn.danger {
    color: #ff5555;
    border-color: rgba(255, 85, 85, 0.4);
}

.vj-btn.danger:hover {
    background: #441111;
    color: #ff8888;
}

.vj-close-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
    flex-shrink: 0;
}

.vj-close-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
}

/* VERSION: 5.0.0 */
.vj-version-badge {
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1px;
    background: color-mix(in srgb, var(--accent, #ff9e3b) 15%, transparent);
    color: var(--accent, #ff9e3b);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid color-mix(in srgb, var(--accent, #ff9e3b) 30%, transparent);
}

/* 1-CLICK VISUALIZER ENGINE SWITCHER TABS */
.vj-engine-bar {
    display: flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: none;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
    flex-shrink: 1;
}
.vj-engine-bar::-webkit-scrollbar {
    display: none;
}

.vj-engine-tab {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-muted, #a1a1aa);
    padding: 4px 9px;
    border-radius: 12px;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    user-select: none;
}

.vj-engine-tab:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.vj-engine-tab.active {
    background: color-mix(in srgb, var(--accent, #ff9e3b) 30%, transparent);
    border-color: var(--accent, #ff9e3b);
    color: #ffffff;
    box-shadow: 0 0 14px color-mix(in srgb, var(--accent, #ff9e3b) 45%, transparent);
}

.vj-engine-tab .engine-icon {
    font-size: 11px;
}

.vj-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* 3-BAY EURORACK PRO STUDIO RACK BODY (COMPACT SINGLE ROW FULL WIDTH) */
.vj-rack-body {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 10px;
    padding: 6px 12px;
    overflow-x: auto;
    overflow-y: hidden;
    max-height: 200px;
    width: 100%;
    box-sizing: border-box;
}

/* BAY 1: PRO LEFT MASTER STRIP (Audio VU Meter & Tactile Long-Throw Master Fader) */
.vj-sidebar-master {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
    border-radius: 8px;
    padding: 6px 6px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.45);
    flex-shrink: 0;
    width: 94px;
    box-sizing: border-box;
}

.vj-strip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 2px;
}

.vj-strip-label {
    font-size: 7.5px;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: var(--text-muted, #9ea4b0);
    text-transform: uppercase;
}

.vj-strip-readout {
    font-family: var(--font-mono, 'SF Mono', monospace);
    font-size: 8px;
    font-weight: 700;
    color: var(--accent, #ff9e3b);
    text-shadow: 0 0 6px color-mix(in srgb, var(--accent, #ff9e3b) 40%, transparent);
}

.vj-strip-body {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 124px;
    gap: 6px;
}

.vj-meter-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 124px;
    flex-shrink: 0;
}

.vj-vu-meter-canvas {
    width: 28px;
    height: 122px;
    background: #06090d;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.9);
}

/* TACTILE MACHINED LONG-THROW FADER (MATCHING STUDIO EQ) */
.vj-fader-col {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: 124px;
    flex: 1;
    position: relative;
}

.vj-fader-track-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.vj-fader-ticks {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
}

.vj-fader-ticks .tick {
    position: relative;
    width: 100%;
    height: 1px;
}

.vj-fader-ticks .tick::before,
.vj-fader-ticks .tick::after {
    content: '';
    position: absolute;
    top: 0;
    height: 1px;
    width: 4px;
    background: rgba(255, 255, 255, 0.22);
}

.vj-fader-ticks .tick::before { left: 4px; }
.vj-fader-ticks .tick::after { right: 4px; }

.vj-fader-ticks .tick-zero::before,
.vj-fader-ticks .tick-zero::after {
    width: 7px;
    background: var(--accent, #ff9e3b);
    box-shadow: 0 0 3px var(--accent, #ff9e3b);
}

.vj-fader-track {
    position: absolute;
    width: 6px;
    height: 112px;
    background: #080a0f;
    border-radius: 3px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.95), 0 1px 0 rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.vj-fader-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(0deg, var(--accent, #ff9e3b) 0%, rgba(255, 158, 59, 0.4) 100%);
    border-radius: 3px;
    box-shadow: 0 0 6px var(--accent, #ff9e3b);
    pointer-events: none;
}

.vj-fader-handle {
    position: absolute;
    width: 24px;
    height: 14px;
    left: 50%;
    transform: translate(-50%, 50%);
    background: linear-gradient(180deg, #505663 0%, #323742 40%, #1c1f26 100%);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 2px;
    cursor: grab;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.7), inset 0 1px 1px rgba(255, 255, 255, 0.6);
    touch-action: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    z-index: 2;
}

.vj-fader-handle:hover,
.vj-fader-handle.active-drag {
    border-color: var(--accent, #ff9e3b);
    box-shadow: 0 0 10px var(--accent, #ff9e3b);
}

.vj-fader-handle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 3px;
    right: 3px;
    height: 2px;
    transform: translateY(-50%);
    background: var(--accent, #ff9e3b);
    box-shadow: 0 0 4px var(--accent, #ff9e3b);
}

.vj-fader-input-native {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 3;
    margin: 0;
}

.vj-strip-switches {
    display: flex;
    flex-direction: row;
    gap: 3px;
    width: 100%;
}

.vj-strip-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--text-muted, #9ea4b0);
    border-radius: 4px;
    padding: 3px 0;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    text-align: center;
    flex: 1;
    transition: all 0.18s ease;
    text-transform: uppercase;
}

.vj-strip-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.vj-strip-btn.active {
    background: color-mix(in srgb, var(--accent, #ff9e3b) 25%, transparent);
    border-color: var(--accent, #ff9e3b);
    color: #ffffff;
    box-shadow: 0 0 8px color-mix(in srgb, var(--accent, #ff9e3b) 35%, transparent);
}

/* PER-VISUALIZER CARD RESET BUTTON */
.vj-engine-reset-btn {
    background: linear-gradient(180deg, #2a2d36, #15171d);
    border: 1px solid rgba(255, 85, 85, 0.35);
    color: #ff8888;
    border-radius: 4px;
    padding: 3px 7px;
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.15s ease;
    margin-left: auto;
    flex-shrink: 0;
}

.vj-engine-reset-btn:hover {
    background: #441515;
    color: #ffaaaa;
    border-color: rgba(255, 100, 100, 0.6);
    box-shadow: 0 0 6px rgba(255, 80, 80, 0.4);
}

.vj-strip-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.vj-strip-btn.active {
    background: color-mix(in srgb, var(--accent, #ff9e3b) 30%, transparent);
    border-color: var(--accent, #ff9e3b);
    color: #ffffff;
    box-shadow: 0 0 8px color-mix(in srgb, var(--accent, #ff9e3b) 35%, transparent);
}

/* BAY 2 & 3 COLUMNS - FLEX EXTENSION ACROSS FULL WIDTH */
.vj-deck-column {
    display: flex;
    gap: 8px;
    min-width: 0;
}

.vj-deck-engine {
    flex: 1.2 1 0;
    min-width: 0;
    display: flex;
}

.vj-deck-engine .vj-card,
.vj-card.vj-engine-panel.active {
    flex: 1 1 0;
    width: 100%;
    height: 100%;
    display: flex !important;
    flex-direction: column;
}

.vj-deck-master {
    display: flex;
    flex-direction: row;
    gap: 8px;
    flex: 1.8 1 0;
    min-width: 0;
}

.vj-deck-master .vj-card {
    flex: 1 1 0;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* STUDIO CARDS (MATCHING STUDIO EQ MIXER PANEL) */
.vj-card {
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
    border-radius: 8px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.vj-card:hover {
    border-color: var(--accent, rgba(255, 255, 255, 0.25));
}

.aux-card-header,
.vj-card-header {
    background: rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.vj-card-title {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vj-card-header h3 {
    margin: 0;
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 0.6px;
    color: #e4e4e7;
    text-transform: uppercase;
}

.vj-card-body {
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
    flex: 1;
}

/* BADGES */
.vj-badge {
    font-size: 8px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.vj-badge.milkdrop {
    background: rgba(168, 85, 247, 0.25);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.4);
}

.vj-badge.wmp {
    background: rgba(34, 197, 94, 0.22);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.vj-badge.flame {
    background: rgba(249, 115, 22, 0.22);
    color: #fb923c;
    border: 1px solid rgba(249, 115, 22, 0.4);
}

.vj-badge.spectrum {
    background: rgba(14, 165, 233, 0.22);
    color: #38bdf8;
    border: 1px solid rgba(14, 165, 233, 0.4);
}

.vj-badge.cymatics {
    background: rgba(56, 189, 248, 0.22);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.4);
}

.vj-badge.matrix {
    background: rgba(34, 197, 94, 0.22);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

/* ENGINE PANELS (Only active engine is displayed on left deck) */
.vj-card.vj-engine-panel,
.vj-engine-panel {
    display: none !important;
}

.vj-card.vj-engine-panel.active,
.vj-engine-panel.active {
    display: flex !important;
    flex-direction: column;
    animation: vjFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes vjFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* KNOB CLUSTERS - SINGLE ROW FULL WIDTH FLEX */
.vj-knob-cluster {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 8px;
    flex-wrap: nowrap;
    width: 100%;
}

.vj-knob-cluster.grid-compact {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    gap: 6px;
    width: 100%;
    overflow-x: auto;
}

.vj-knob-cluster.grid-2x4 {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    gap: 8px;
    width: 100%;
}

.vj-knob-cluster.grid-2x3 {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    gap: 8px;
    width: 100%;
}

.vj-knob-cluster.grid-2x2 {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    gap: 8px;
    width: 100%;
}

.vj-knob-cluster.grid-row-5 {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    gap: 6px;
    width: 100%;
}

/* BUTTONS & PILLS */
.vj-btn.highlight {
    background: color-mix(in srgb, var(--accent, #ff9e3b) 30%, transparent);
    color: #ffffff;
    border: 1px solid var(--accent, #ff9e3b);
    box-shadow: 0 0 10px color-mix(in srgb, var(--accent, #ff9e3b) 40%, transparent);
    font-size: 9px;
    font-weight: 800;
}

.vj-btn.small {
    padding: 3px 7px;
    font-size: 9px;
}

.vj-btn.mode-sel {
    padding: 6px 8px;
    font-size: 9px;
    border-radius: 6px;
    text-align: center;
}

.vj-mode-button-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.vj-pill-group {
    display: flex;
    gap: 4px;
    background: rgba(0, 0, 0, 0.4);
    padding: 2px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.vj-toggle-group {
    display: flex;
    gap: 4px;
}

.vj-lfo-controls {
    display: flex;
    gap: 4px;
}

.vj-preset-select.tiny {
    padding: 2px 4px;
    font-size: 8px;
    max-width: 80px;
}

/* LEGACY FALLBACK FOR MODULE CHASSIS IF REFERENCED BY ANY EXTENSION */
.vj-chassis {
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.15));
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.vj-panel-header {
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vj-panel-header h3 {
    margin: 0;
    font-size: 10px;
    font-weight: 800;
    color: #cfd3dc;
    text-transform: uppercase;
}

.vj-panel-body {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vj-control-row {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 6px;
    flex-wrap: wrap;
}

/* TACTILE HARDWARE KNOBS */
.vj-control-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.vj-knob {
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #424652, #14151a);
    box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.9), inset 0 1px 2px rgba(255, 255, 255, 0.3), inset 0 -1px 2px rgba(0, 0, 0, 0.8);
    position: relative;
    cursor: grab;
    border: 1px solid #08090c;
    touch-action: none;
}

.vj-knob:active {
    cursor: grabbing;
    box-shadow: 1px 2px 5px rgba(0, 0, 0, 0.95), inset 0 1px 3px rgba(0, 0, 0, 0.8);
}

.vj-knob.medium {
    width: 44px;
    height: 44px;
}

.vj-knob.small {
    width: 28px;
    height: 28px;
}

/* ILLUMINATED POINTER NEEDLE */
.vj-pointer {
    position: absolute;
    left: 50%;
    top: 10%;
    transform: translateX(-50%);
    width: 12%;
    height: 22%;
    background-color: var(--accent, #ff9e3b);
    border-radius: 2px;
    box-shadow: 0 0 4px var(--accent, #ff9e3b);
}

.vj-label {
    font-size: 7.5px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #9ea4b0;
    text-transform: uppercase;
}

.vj-val-readout {
    font-family: var(--font-mono, 'SF Mono', monospace);
    font-size: 7.5px;
    color: var(--accent, #ff9e3b);
    font-weight: 700;
    text-shadow: 0 0 6px color-mix(in srgb, var(--accent, #ff9e3b) 40%, transparent);
}

/* DRAWER PULL HANDLE */
.vj-drawer-handle {
    width: 100%;
    padding: 6px 0 3px;
    display: flex;
    justify-content: center;
    cursor: pointer;
    background: transparent;
    transition: opacity 0.2s;
}

.vj-drawer-handle:hover {
    background: rgba(0, 0, 0, 0.2);
}

.vj-drawer-handle .handle-bar {
    width: 44px;
    height: 4px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 2px;
    transition: background 0.15s, width 0.2s, box-shadow 0.2s;
}

.vj-drawer-handle:hover .handle-bar {
    width: 60px;
    background: var(--accent, #ff9e3b);
    box-shadow: 0 0 8px var(--accent, #ff9e3b);
}

/* RESPONSIVE FLEXBOX-LIKE BREAKPOINTS */
@media (max-width: 1200px) {
    .vj-rack-body {
        overflow-x: auto;
    }
}

@media (max-width: 820px) {
    .vj-top-bar {
        flex-wrap: wrap;
        gap: 6px;
    }
    .vj-rack-body {
        overflow-x: auto;
        max-height: 220px;
    }
}

/* Light Mode Aesthetic Overrides for VJ Console */
body.light-mode #vj-drawer.vj-drawer {
    background: #f4f6f9;
    border-color: #cbd2db;
    color: #1e293b;
    box-shadow: 0 -8px 36px rgba(0, 0, 0, 0.08);
}
body.light-mode .vj-top-bar {
    background: #eaedf1;
    border-bottom: 1px solid #cbd2db;
}
body.light-mode .vj-scope-canvas,
body.light-mode .vj-vu-meter-canvas {
    background: #e8ecf1;
    border-color: #cbd2db;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
}
body.light-mode .vj-lcd {
    background: #e8ecf1;
    border-color: #cbd2db;
    color: #1e293b;
    text-shadow: none;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
}
body.light-mode .vj-card,
body.light-mode .vj-sidebar-master {
    background: #f4f6f9;
    border-color: #cbd2db;
    color: #1e293b;
}
body.light-mode .vj-knob {
    background: radial-gradient(circle at 35% 35%, #ffffff 0%, #eaedf1 55%, #dde1e7 100%);
    border: 2px solid #cbd2db;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12), inset 0 1px 2px #ffffff;
}
body.light-mode .vj-engine-tab,
body.light-mode .vj-btn,
body.light-mode .vj-engine-reset-btn {
    background: #eaedf1;
    border-color: #cbd2db;
    color: #334155;
}
body.light-mode .vj-preset-select {
    background: #f4f6f9;
    border: 1px solid #cbd2db;
    color: #1e293b;
}
body.light-mode .vj-brand,
body.light-mode .vj-card-title,
body.light-mode .vj-label {
    color: #1e293b;
    text-shadow: none;
}


