.custom-scrollbar::-webkit-scrollbar { width: 8px; height: 8px; }
        .custom-scrollbar::-webkit-scrollbar-track { background: #1e1e24; }
        .custom-scrollbar::-webkit-scrollbar-thumb { background: #4a4a55; border-radius: 4px; }
        .custom-scrollbar::-webkit-scrollbar-thumb:hover { background: #5a5a65; }

        .paper-shadow { box-shadow: 0 10px 30px rgba(0,0,0,0.5); transition: background-color 0.3s, color 0.3s; }
        
        .sys-line { position: absolute; background-color: #000; height: 1px; }
        .tab-line { position: absolute; background-color: #666; height: 1px; }
        .measure-bar { position: absolute; width: 1px; background-color: black; z-index: 2;}
        
        /* Estilos base para notas */
        .note-base {
            position: absolute; background-color: white; padding: 0 4px;
            font-family: monospace; transform: translate(-50%, -50%); cursor: pointer;
            border-radius: 2px; display: flex; align-items: center; justify-content: center;
            transition: background-color 0.1s, box-shadow 0.1s;
        }

        .note-active { font-size: 14px; font-weight: bold; color: black; z-index: 6; }
        .note-inactive { font-size: 13px; font-weight: normal; color: #9ca3af; z-index: 4; }
        
        /* Estilo para notas SELECCIONADAS con el ratón o shift+teclado */
        .note-selected {
            box-shadow: 0 0 0 2px #3b82f6; /* Borde azul de Tailwind */
            background-color: #eff6ff; /* Fondo ligeramente azulado */
            color: #1d4ed8;
            z-index: 7;
        }

        .audit-note-issue {
            outline: 2px solid #f59e0b !important;
            box-shadow: 0 0 0 3px rgba(245,158,11,0.22), 0 0 10px rgba(245,158,11,0.55) !important;
            z-index: 35 !important;
        }
        .audit-note-issue.staff-element {
            filter: drop-shadow(0 0 4px rgba(245,158,11,0.85));
        }
        .audit-item {
            border: 1px solid #3f3f46; background: #1e1e24; color: #d1d5db;
            border-radius: 4px; padding: 5px 6px; cursor: pointer; transition: all 0.15s;
        }
        .audit-item:hover { border-color: #f59e0b; color: white; background: #2d2d34; }

        /* Iluminación de notas durante la reproducción */
        .note-playing {
            background-color: #4ade80 !important; /* Verde */
            color: black !important;
            box-shadow: 0 0 8px #4ade80;
            z-index: 10;
        }

        .playhead-line {
            position: absolute;
            width: 2px;
            background-color: rgba(74, 222, 128, 0.7);
            z-index: 1;
            pointer-events: none;
            box-shadow: 0 0 5px #4ade80;
            transition: left 0.05s linear;
        }

        /* Hitbox invisible para cursor y clicks vacíos */
        .hitbox { position: absolute; transform: translate(-50%, -50%); cursor: text; z-index: 3; }
        .hitbox:hover { background-color: rgba(59, 130, 246, 0.1); border-radius: 4px; }
        .staff-hitbox { position: absolute; cursor: pointer; z-index: 3; transform: translate(-50%, 0); }
        .staff-hitbox:hover { background-color: rgba(16, 185, 129, 0.1); border-radius: 4px; }
        #score-container.cursor-text .hitbox,
        #score-container.cursor-text .staff-hitbox {
            background: rgba(59, 130, 246, 0.055);
            border-left: 1px dashed rgba(59, 130, 246, 0.35);
            border-right: 1px dashed rgba(59, 130, 246, 0.18);
            border-radius: 3px;
        }
        .text-label-guide {
            position: absolute;
            width: 0;
            border-left: 1px dashed rgba(96, 165, 250, 0.72);
            z-index: 4;
        }
        .text-label-guide::before {
            content: "+";
            position: absolute;
            left: -7px;
            top: -16px;
            width: 14px;
            height: 14px;
            border-radius: 999px;
            background: rgba(37, 99, 235, 0.9);
            color: white;
            font-size: 11px;
            line-height: 13px;
            text-align: center;
            font-weight: bold;
            box-shadow: 0 1px 4px rgba(0,0,0,0.28);
        }

        .cursor-box {
            position: absolute; background-color: rgba(59, 130, 246, 0.4); border: 1px solid #2563eb;
            transition: left 0.1s ease, top 0.1s ease; pointer-events: none; z-index: 8; border-radius: 2px;
        }

        /* Estilos ajustados para los botones del panel izquierdo masivo */
        .tool-btn {
            width: 100%; aspect-ratio: 1 / 1; max-height: 1.6rem; border-radius: 0.2rem;
            display: flex; align-items: center; justify-content: center; flex-direction: column;
            font-size: 0.85rem; font-weight: bold; transition: all 0.2s; color: #d1d5db; border: 1px solid transparent; cursor: pointer;
        }
        .tool-btn:hover:not(.active):not(:disabled) { background-color: #4b5563; color: white; }
        .tool-btn.active { background-color: #3b82f6; color: white; }
        .tool-btn:disabled { opacity: 0.3; cursor: not-allowed; }
        .input-mode-btn {
            width: 1.5rem; height: 1.5rem; border-radius: 0.2rem;
            display: flex; align-items: center; justify-content: center;
            color: #d1d5db; border: 1px solid transparent; transition: all 0.2s;
        }
        .input-mode-btn:hover:not(.active) { background-color: #4b5563; color: white; }
        .input-mode-btn.active { background-color: #3b82f6; color: white; border-color: #2563eb; }
        
        .layer-btn.active { background-color: #10b981; color: white; }

        #paper-wrapper { overflow: visible; } /* [2026-10-31] el zoom ahora usa la propiedad CSS 'zoom' (ver applyPaperZoom) */
        .page-bg {
            position: absolute; left: 0; width: 100%; height: 1056px;
            background-color: #fcfcfc;
            box-shadow: 0 6px 24px rgba(0,0,0,0.45), 0 1px 4px rgba(0,0,0,0.2);
            z-index: 0; pointer-events: none; border-radius: 1px;
        }
        .page-bg .page-number {
            position: absolute; bottom: 18px; right: 36px;
            font-size: 10px; color: #999; font-family: 'Times New Roman', serif;
        }
        #paper-wrapper > :not(.page-bg) { position: relative; z-index: 1; }
        .dark-canvas .page-bg { background-color: #1e1e24 !important; }
        .dark-canvas .page-bg .page-number { color: #555 !important; }
        .dropdown { 
            display: none; position: absolute; top: 100%; left: 0; 
            background-color: #2d2d34; border: 1px solid #111; 
            box-shadow: 0 4px 12px rgba(0,0,0,0.5); z-index: 1000; 
            min-width: 160px; padding: 4px 0; border-radius: 0 0 4px 4px; 
        }
        /* Para efectos gráficos inyectados en HTML */
        .effect-label { position: absolute; font-size: 10px; font-weight: bold; font-family: serif; font-style: italic; pointer-events: none; z-index: 5; }

        /* Estilos para menús desplegables superiores */
        .menu-item { position: relative; }
        .dropdown { 
            display: none; position: absolute; top: 100%; left: 0; 
            background-color: #2d2d34; border: 1px solid #111; 
            box-shadow: 0 4px 12px rgba(0,0,0,0.5); z-index: 50; 
            min-width: 160px; padding: 4px 0; border-radius: 0 0 4px 4px; 
        }
        .menu-item:hover .dropdown { display: block; }
        .dropdown-item { 
            padding: 6px 12px; cursor: pointer; color: #d1d5db; 
            display: flex; justify-content: space-between; align-items: center;
        }
        .dropdown-item:hover { background-color: #3b82f6; color: white; }
        .dropdown-item .shortcut { font-size: 0.65rem; opacity: 0.6; }

        /* Componentes Toggle Switch (Tailwind/Custom) */
        .toggle-checkbox:checked { right: 0; border-color: #3b82f6; }
        .toggle-checkbox:checked + .toggle-label { background-color: #3b82f6; }

        /* MODO OSCURO PARA EL CANVAS */
        .dark-canvas { background-color: #1e1e24 !important; color: #e5e7eb !important; }
        .dark-canvas .sys-line, .dark-canvas .tab-line, .dark-canvas .measure-bar { background-color: #6b7280 !important; }
        .dark-canvas .note-base { background-color: #1e1e24 !important; color: white !important; }
        .dark-canvas .note-active { color: #fff !important; }
        .dark-canvas .note-inactive { color: #6b7280 !important; }
        .dark-canvas .measure-clef, .dark-canvas .measure-tabtext { color: #9ca3af !important; }
        .dark-canvas .staff-element { background-color: #e5e7eb !important; color: #e5e7eb !important; }

        /* Rectángulo de selección por arrastre */
        .drag-select-rect {
            position: absolute; border: 1.5px dashed #3b82f6;
            background: rgba(59, 130, 246, 0.08); z-index: 50;
            pointer-events: none; display: none; border-radius: 2px;
        }
        
        /* Etiquetas de Acordes y Letras */
        .chord-label {
            position: absolute; font-size: 14px; font-weight: bold; color: #2563eb; outline: none;
            min-width: 38px; min-height: 22px; border: 1px dashed transparent; cursor: text; z-index: 20;
            white-space: nowrap; font-family: sans-serif;
        }
        .chord-label:empty:before {
            content: "Add Chord / Lyrics"; color: transparent; transition: color 0.2s; font-size: 10px; font-weight: normal;
        }
        .chord-label:hover:empty:before { color: #9ca3af; }
.chord-label:focus { border-color: #9ca3af; background-color: rgba(255,255,255,0.8); }
        .dark-canvas .chord-label { color: #60a5fa; }
        .dark-canvas .chord-label:focus { background-color: #374151; color: white; }

/* ===== INICIO: ETIQUETAS DE LÍRICA (LETRAS) ===== */
        .lyric-label {
            position: absolute; font-size: 13px; font-weight: normal; color: #4ade80; outline: none;
            min-width: 38px; min-height: 22px; border: 1px dashed transparent; cursor: text; z-index: 20;
            white-space: nowrap; font-family: serif; font-style: italic;
        }
        .lyric-label:empty:before {
            content: "Add lyrics here..."; color: transparent; transition: color 0.2s; font-size: 10px; font-weight: normal;
        }
        .lyric-label:hover:empty:before { color: #9ca3af; }
        .lyric-label:focus { border-color: #9ca3af; background-color: rgba(255,255,255,0.8); }
        .dark-canvas .lyric-label { color: #4ade80; }
        .dark-canvas .lyric-label:focus { background-color: #374151; color: white; }
        #score-container.cursor-text .chord-label,
        #score-container.cursor-text .lyric-label {
            border-color: rgba(148, 163, 184, 0.6);
            background: rgba(255,255,255,0.72);
            padding-right: 4px;
        }
        #score-container.cursor-text.dark-canvas .chord-label,
        #score-container.cursor-text.dark-canvas .lyric-label {
            background: rgba(31, 41, 55, 0.82);
        }
        #score-container.cursor-text .chord-label:empty:before {
            content: "Chord";
            color: rgba(37, 99, 235, 0.72);
        }
        #score-container.cursor-text .lyric-label:empty:before {
            content: "Lyric";
            color: rgba(22, 163, 74, 0.72);
        }
        /* ===== FIN: ETIQUETAS DE LÍRICA (LETRAS) ===== */


/* ===== INICIO FASE 4: ESTILOS DE IMPRESIÓN PROFESIONAL (MULTI-PAGE) ===== */
        @media print {
            /* [2026-10-31] Al imprimir no se aplica la escala de interfaz */
            html, body { transform: none !important; width: auto !important; height: auto !important; overflow: visible !important; }
            #paper-wrapper { zoom: 1 !important; }
            .gtep-statusbar, #gtep-fret-tip { display: none !important; }
            * {
                -webkit-print-color-adjust: exact !important;
                print-color-adjust: exact !important;
                color-adjust: exact !important;
            }
            @page { size: letter portrait; margin: 0 !important; }
            body { 
                margin: 0 !important; padding: 0 !important; 
                background: white !important; color: black !important; 
                overflow: visible !important; display: block !important;
            }
            #help-modal, #chord-panel, #fretboard-modal, 
            #modal-overlay, #pedalboard-ui,
            .h-\[120px\], .w-\[180px\], .w-\[260px\],
            body > div.flex.items-center, .score-document-bar { display: none !important; }
            .flex-1.flex.overflow-hidden { display: block !important; overflow: visible !important; height: auto !important; }
            #scroll-area { display: block !important; overflow: visible !important; padding: 0 !important; height: auto !important; background: white !important; }
            /* Scale = 1056/1100 = 0.96 → each page cycle maps to exactly 1 physical letter page */
            #paper-wrapper {
                margin: 0 !important; padding: 0 !important; 
                box-shadow: none !important; width: 850px !important; 
    transform: none !important; /* 🔥 CRÍTICO */
    width: 816px !important;   /* ancho real de carta sin márgenes */
                background: transparent !important;
            }
            .page-bg { display: none !important; }
            .note-base, .note-active, .note-inactive, .note-selected {
                color: black !important; background-color: white !important;
                border: none !important; box-shadow: none !important;
                font-weight: bold !important; opacity: 1 !important; z-index: 10 !important; text-shadow: none !important;
            }
            .staff-element, .measure-num, .measure-tabtext, .measure-clef, 
            .time-sig-label, .effect-label, .chord-label, .triplet-label, 
            .dot-label, .nav-marker {
                color: black !important; opacity: 1 !important; font-weight: bold !important;
            }
            .sys-line, .tab-line, .measure-bar { background-color: black !important; opacity: 1 !important; }
            div.bg-black, div.bg-blue-600, div.bg-gray-400 { background-color: black !important; }
            div.text-blue-600, div.text-gray-400, div.text-gray-500, div.text-gray-600, div.text-red-500 { color: black !important; }
            div.border-blue-600 { border-color: black !important; }
            svg path { stroke: black !important; }
            svg path[fill]:not([fill="none"]) { fill: black !important; }
            svg line { stroke: black !important; }
            svg text { fill: black !important; }
            marker polygon { fill: black !important; }
            .playhead-line, .cursor-box, .fretboard-active-dot, .hitbox, .staff-hitbox { display: none !important; }
			
			* Ocultar placeholders vacíos (Add Chord/Lyrics, Add lyrics here...) */
            .chord-label:empty, .lyric-label:empty { display: none !important; }
            .chord-label:empty:before, .lyric-label:empty:before { display: none !important; }
			
            [contenteditable="true"] { 
                outline: none !important; border: none !important; box-shadow: none !important; 
                color: black !important; background-color: transparent !important;
                -webkit-text-fill-color: black !important;
            }
            #score-container { overflow: visible !important; }
        }
        /* ===== FIN FASE 4 ===== */
		/* ===== INICIO: ESTILOS DE PANELES MODERNOS ===== */
        .modal-overlay { opacity: 0; transition: opacity 0.2s ease; pointer-events: none; }
        .modal-overlay.active { opacity: 1; pointer-events: auto; }
        .modal-panel { transform: scale(0.95); transition: transform 0.2s ease; }
        .modal-overlay.active .modal-panel { transform: scale(1); }
.ts-btn.active, .ending-btn.active { background-color: #3b82f6 !important; border-color: #60a5fa !important; color: white !important; }
        /* ===== FIN: ESTILOS DE PANELES MODERNOS ===== */

        /* ===== ESTILOS PARA PEDALES FÍSICOS 3D ===== */
        .footswitch {
            background: radial-gradient(circle at 50% 30%, #e5e7eb, #9ca3af, #4b5563);
            box-shadow: 0 4px 6px rgba(0,0,0,0.6), inset 0 2px 4px rgba(255,255,255,0.8), inset 0 -2px 4px rgba(0,0,0,0.4);
            transition: transform 0.1s, box-shadow 0.1s;
        }
        .footswitch:active {
            transform: translateY(3px);
            box-shadow: 0 1px 2px rgba(0,0,0,0.8), inset 0 3px 6px rgba(0,0,0,0.6);
        }
        .pedal-jack-left {
            position: absolute; left: -6px; top: 30%; width: 6px; height: 18px;
            background: linear-gradient(to right, #222, #555, #222);
            border-radius: 3px 0 0 3px; box-shadow: -2px 2px 4px rgba(0,0,0,0.5);
        }
        .pedal-jack-right {
            position: absolute; right: -6px; top: 30%; width: 6px; height: 18px;
            background: linear-gradient(to right, #222, #555, #222);
            border-radius: 0 3px 3px 0; box-shadow: 2px 2px 4px rgba(0,0,0,0.5);
        }
        .pedal-screw {
            width: 6px; height: 6px; border-radius: 50%;
            background: linear-gradient(135deg, #aaa, #444);
            box-shadow: inset 0 1px 2px rgba(0,0,0,0.8);
            position: absolute;
        }
        .led-on {
            background-color: #ef4444; 
            box-shadow: 0 0 10px #ef4444, 0 0 20px #ef4444, inset 0 0 4px rgba(255,255,255,0.8);
        }
        .led-off {
            background-color: #450a0a;
            box-shadow: inset 0 2px 4px rgba(0,0,0,0.8);
        }
.pedal-slider {
            -webkit-appearance: none;
            width: 100%; height: 5px;
            background: #000; border-radius: 4px;
            box-shadow: inset 0 1px 2px rgba(255,255,255,0.3);
            outline: none; margin-bottom: 4px;
        }
        .pedal-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 14px; height: 14px;
            border-radius: 50%;
            background: radial-gradient(circle at 50% 30%, #f3f4f6, #9ca3af);
            border: 1px solid #333; cursor: pointer;
            box-shadow: 0 2px 4px rgba(0,0,0,0.6);
        }

        /* ===== FretCanvas Studio visual identity ===== */
        .fretcanvas-shell {
            background:
                radial-gradient(circle at 22% -10%, rgba(18, 138, 122, 0.18), transparent 34%),
                linear-gradient(135deg, #111820 0%, #15171d 48%, #19151c 100%) !important;
            color: #e7edf1 !important;
        }
        .fretcanvas-shell .custom-scrollbar::-webkit-scrollbar-track { background: #101820; }
        .fretcanvas-shell .custom-scrollbar::-webkit-scrollbar-thumb { background: #415263; border-radius: 999px; }
        .app-menubar {
            background: linear-gradient(90deg, #10161d 0%, #18232b 58%, #211922 100%) !important;
            border-bottom: 1px solid rgba(132, 169, 172, 0.18) !important;
            box-shadow: 0 8px 24px rgba(0,0,0,0.24);
            gap: 0.2rem;
        }
        .studio-brand {
            align-items: center;
            border-right: 1px solid rgba(148, 163, 184, 0.18);
            display: inline-flex;
            gap: 0.45rem;
            margin-right: 0.55rem;
            min-width: 172px;
            padding: 0.1rem 0.8rem 0.1rem 0.25rem;
        }
        .studio-brand-mark {
            align-items: center;
            background: linear-gradient(135deg, #14b8a6, #e6b450);
            border-radius: 0.65rem;
            box-shadow: 0 0 0 1px rgba(255,255,255,0.16), 0 8px 22px rgba(20,184,166,0.18);
            color: #071015;
            display: inline-flex;
            height: 1.55rem;
            justify-content: center;
            width: 1.55rem;
        }
        .studio-brand-title {
            color: #f8fbfc;
            display: block;
            font-size: 0.72rem;
            font-weight: 900;
            letter-spacing: 0.05em;
            line-height: 1;
            text-transform: uppercase;
        }
        .studio-brand-subtitle {
            color: #8fb1b5;
            display: block;
            font-size: 0.58rem;
            font-weight: 700;
            letter-spacing: 0.08em;
            line-height: 1.2;
            margin-top: 0.12rem;
            text-transform: uppercase;
        }
        .app-menubar .menu-item > span {
            border-radius: 999px;
            color: #b7c6cc;
            font-weight: 700;
            letter-spacing: 0.01em;
        }
        .app-menubar .menu-item > span:hover {
            background: rgba(20, 184, 166, 0.12);
            color: #ffffff !important;
        }
        .app-menubar .guitar-lang-switcher {
            --gls-bg: rgba(255, 255, 255, 0.08);
            --gls-border: rgba(132, 169, 172, 0.24);
            --gls-text: #f8fbfc;
            --gls-muted: #8fb1b5;
            --gls-accent: #14b8a6;
            box-shadow: none;
            margin-left: auto;
            padding-block: 0.18rem;
        }
        .app-menubar .guitar-lang-switcher select {
            background: rgba(7, 13, 18, 0.62);
            border-color: rgba(20, 184, 166, 0.28);
            color: #f8fbfc;
            min-height: 1.55rem;
        }
        .app-toolbar {
            background: rgba(15, 23, 31, 0.92) !important;
            border-bottom: 1px solid rgba(132, 169, 172, 0.18) !important;
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 10px 26px rgba(0,0,0,0.18);
        }
        .app-toolbar button,
        .app-toolbar .rounded-md {
            border-radius: 0.65rem !important;
        }
        .app-toolbar button:hover {
            background: rgba(20, 184, 166, 0.16) !important;
        }
        .notation-rail {
            background: linear-gradient(180deg, #111922 0%, #171f27 56%, #151821 100%) !important;
            border-right: 1px solid rgba(132, 169, 172, 0.18) !important;
            box-shadow: inset -1px 0 0 rgba(255,255,255,0.035);
            gap: 0.35rem;
        }
        .voice-header {
            align-items: stretch;
            background: rgba(7, 13, 18, 0.55);
            border: 1px solid rgba(132, 169, 172, 0.16);
            border-radius: 0.9rem;
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.045);
            display: flex;
            gap: 0.5rem;
            margin-bottom: 0.65rem;
            padding: 0.45rem;
        }
        .voice-lane-group {
            flex: 1;
            min-width: 0;
        }
        .voice-lane-label {
            color: #8fb1b5;
            display: block;
            font-size: 0.55rem;
            font-weight: 900;
            letter-spacing: 0.14em;
            margin: 0 0 0.32rem 0.1rem;
            text-transform: uppercase;
        }
        .voice-lane-buttons {
            display: grid;
            gap: 0.25rem;
            grid-template-columns: repeat(4, minmax(0, 1fr));
        }
        .fretcanvas-shell .layer-btn {
            background: rgba(255,255,255,0.045) !important;
            border: 1px solid rgba(132, 169, 172, 0.16) !important;
            border-radius: 999px !important;
            color: #b9c8ce !important;
            height: 1.75rem !important;
            width: 100% !important;
        }
        .fretcanvas-shell .layer-btn.active {
            background: linear-gradient(135deg, #14b8a6, #e6b450) !important;
            box-shadow: 0 8px 18px rgba(20,184,166,0.18);
            color: #071015 !important;
        }
        .input-mode-switch {
            align-self: end;
            background: rgba(255,255,255,0.045) !important;
            border: 1px solid rgba(132, 169, 172, 0.16) !important;
            border-radius: 0.8rem !important;
            padding: 0.18rem !important;
        }
        .fretcanvas-shell .input-mode-btn {
            border-radius: 0.55rem !important;
        }
        .fretcanvas-shell .input-mode-btn.active,
        .fretcanvas-shell .tool-btn.active {
            background: #14b8a6 !important;
            color: #071015 !important;
        }
        .notation-rail .grid {
            background: rgba(255,255,255,0.035);
            border: 1px solid rgba(132, 169, 172, 0.09);
            border-radius: 0.75rem;
            padding: 0.22rem;
        }
        .notation-rail .tool-btn {
            background: rgba(7, 13, 18, 0.38);
            border: 1px solid rgba(132, 169, 172, 0.09);
            border-radius: 0.48rem;
            color: #d3dde2;
        }
        .notation-rail .tool-btn:hover:not(.active):not(:disabled) {
            background: rgba(230, 180, 80, 0.14) !important;
            border-color: rgba(230, 180, 80, 0.36);
            color: #fff6df !important;
        }
        .score-workspace {
            background:
                linear-gradient(90deg, rgba(20,184,166,0.06) 0 1px, transparent 1px 100%),
                linear-gradient(180deg, #12171d 0%, #17191f 100%) !important;
            background-size: 42px 100%, auto;
        }
        .score-workspace #paper-wrapper {
            filter: drop-shadow(0 22px 36px rgba(0,0,0,0.34));
        }
        .inspector-dock {
            background:
                radial-gradient(circle at 100% 0%, rgba(20, 184, 166, 0.16), transparent 34%),
                linear-gradient(180deg, #17242c 0%, #101922 100%) !important;
            border-left: 1px solid rgba(132, 169, 172, 0.18) !important;
            box-shadow: -18px 0 40px rgba(0,0,0,0.34);
            color: #e6eef1 !important;
        }
        .inspector-switch {
            background: transparent !important;
            border-bottom: 1px solid rgba(132, 169, 172, 0.16) !important;
            display: flex;
            gap: 0.45rem;
            padding: 0.75rem 0.85rem 0.55rem;
        }
        .inspector-tab {
            background: transparent;
            border: 1px solid transparent;
            border-radius: 999px;
            color: #94aab1;
            flex: 1;
            font-size: 0.68rem;
            font-weight: 900;
            letter-spacing: 0.08em;
            padding: 0.55rem 0.45rem;
            text-transform: uppercase;
            transition: all 0.18s ease;
        }
        .inspector-tab:hover {
            background: rgba(20, 184, 166, 0.12);
            color: #eafffb;
        }
        .inspector-tab.active {
            background: linear-gradient(135deg, rgba(20, 184, 166, 0.24), rgba(230, 180, 80, 0.14));
            border-color: rgba(20, 184, 166, 0.30);
            box-shadow: 0 10px 24px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.08);
            color: #f6fffd;
        }
        .inspector-content {
            color: #e6eef1 !important;
        }
        .inspector-content h3,
        .inspector-content h4 {
            color: #f7fbfc !important;
            letter-spacing: 0.07em !important;
        }
        .inspector-content h3 i,
        .inspector-content h4 i {
            color: #42d7c8 !important;
        }
        .inspector-content label,
        .inspector-content .text-gray-400,
        .inspector-content .text-gray-500 {
            color: #9aadb4 !important;
        }
        .inspector-content input,
        .inspector-content select {
            background: rgba(7, 13, 18, 0.62) !important;
            border: 1px solid rgba(132, 169, 172, 0.18) !important;
            border-radius: 0.65rem !important;
            color: #f6fbfc !important;
            box-shadow: inset 0 1px 1px rgba(0,0,0,0.24);
        }
        .inspector-content input:focus,
        .inspector-content select:focus {
            border-color: #42d7c8 !important;
            box-shadow: 0 0 0 3px rgba(66, 215, 200, 0.13);
        }
        .inspector-content > div > div {
            border-color: rgba(132, 169, 172, 0.16) !important;
        }
        .inspector-content button {
            border-radius: 0.65rem !important;
        }
        .arrangement-dock {
            background: linear-gradient(180deg, #13191f 0%, #0f1419 100%) !important;
            border-top: 1px solid rgba(132,169,172,0.18) !important;
            box-shadow: 0 -14px 28px rgba(0,0,0,0.22);
        }
        .arrangement-header {
            background: rgba(255,255,255,0.03) !important;
            border-bottom: 1px solid rgba(132,169,172,0.12) !important;
            color: #8fb1b5 !important;
        }
        .arrangement-list {
            background: #111820 !important;
        }
        .arrangement-row {
            align-items: center;
            background: rgba(255,255,255,0.035);
            border-bottom: 1px solid rgba(132,169,172,0.10);
            cursor: pointer;
            display: flex;
            min-height: 2.25rem;
            padding: 0.22rem 0.45rem;
            transition: background 0.18s ease, box-shadow 0.18s ease;
        }
        .arrangement-row:hover {
            background: rgba(20, 184, 166, 0.08);
        }
        .arrangement-row.is-active {
            background: linear-gradient(90deg, rgba(20,184,166,0.18), rgba(230,180,80,0.08));
            box-shadow: inset 3px 0 0 #14b8a6;
        }
        .track-identity {
            align-items: center;
            color: #aabac0;
            display: flex;
            font-weight: 800;
            gap: 0.5rem;
            min-width: 13rem;
            position: relative;
        }
        .track-index {
            align-items: center;
            background: rgba(230,180,80,0.12);
            border: 1px solid rgba(230,180,80,0.28);
            border-radius: 999px;
            color: #f3c872;
            display: inline-flex;
            height: 1.45rem;
            justify-content: center;
            width: 1.45rem;
        }
        .track-name {
            overflow: hidden;
            padding-right: 2.25rem;
            text-overflow: ellipsis;
            white-space: nowrap;
            width: 100%;
        }
        .track-identity.is-active .track-name {
            color: #ffffff;
        }
        .track-mute {
            align-items: center;
            background: rgba(255,255,255,0.055);
            border: 1px solid rgba(132,169,172,0.18);
            border-radius: 999px;
            color: #93a6ad;
            display: inline-flex;
            font-size: 0.58rem;
            font-weight: 900;
            height: 1.35rem;
            justify-content: center;
            position: absolute;
            right: 0.35rem;
            width: 1.35rem;
        }
        .track-mute.is-muted {
            background: #b33b4a;
            color: #ffffff;
        }
        .track-controls {
            align-items: center;
            color: #8fb1b5;
            display: flex;
            gap: 0.35rem;
            margin-right: 1rem;
            min-width: 10rem;
        }
        .track-controls input[type="range"] {
            accent-color: #14b8a6;
            width: 3rem;
        }
        .arrangement-lane {
            align-items: center;
            background: rgba(7,13,18,0.55);
            border: 1px solid rgba(132,169,172,0.11);
            border-radius: 999px;
            display: flex;
            flex: 1;
            height: 1.65rem;
            padding: 0.18rem;
            pointer-events: none;
            position: relative;
        }
        .arrangement-clip {
            background: linear-gradient(90deg, #14b8a6, #e6b450);
            border: 1px solid rgba(255,255,255,0.16);
            border-radius: 999px;
            cursor: pointer;
            height: 1.1rem;
            pointer-events: auto;
            position: relative;
            width: 30%;
        }
        .arrangement-clip.is-muted {
            background: rgba(95,112,121,0.42);
        }
