        /* ══════════════════════════════════════════════════════════════════
           GATE DE AUTENTICACIÓN — bloqueo total hasta login/registro
           ══════════════════════════════════════════════════════════════════
           Estas reglas se aplican ANTES que cualquier otra para evitar el
           "flash" del SaaS visible un instante antes de mostrar el gate.
           El JS quita la clase 'auth-pending' al body cuando decide qué hacer:
             • Si hay sesión válida → quita .auth-pending y .auth-locked
             • Si no hay sesión → quita .auth-pending y deja .auth-locked
             • La clase .auth-locked oculta TODO menos el #auth-gate
        */
        body.auth-pending > *:not(#auth-gate):not(script) { visibility: hidden !important; }
        body.auth-locked { overflow: hidden !important; }
        body.auth-locked > *:not(#auth-gate):not(script) {
            display: none !important;
        }
        /* El gate se monta dentro del body desde JS apenas DOM ready. */
        #auth-gate {
            position: fixed; inset: 0; z-index: 99999;
            background: linear-gradient(135deg, #0f1729 0%, #1a2740 50%, #0f1729 100%);
            display: flex; align-items: center; justify-content: center;
            font-family: 'Inter','Consolas',monospace;
            overflow-y: auto; padding: 20px;
        }
        #auth-gate.hidden { display: none !important; }
        #auth-gate-card {
            background: #fff;
            width: 100%; max-width: 440px;
            border-radius: 12px;
            box-shadow: 0 24px 64px rgba(0,0,0,0.45);
            overflow: hidden;
            display: flex; flex-direction: column;
            animation: ag-fade-in 0.4s ease-out;
        }
        @keyframes ag-fade-in {
            from { opacity: 0; transform: translateY(12px); }
            to   { opacity: 1; transform: translateY(0); }
        }
        #auth-gate-card .ag-header {
            padding: 22px 26px 18px;
            background: linear-gradient(180deg, #1a6fc4 0%, #155ba8 100%);
            color: #fff; text-align: center;
        }
        #auth-gate-card .ag-logo {
            font-size: 20px; font-weight: 700; letter-spacing: 2px;
            margin-bottom: 4px;
        }
        #auth-gate-card .ag-subtitle {
            font-size: 11px; opacity: 0.85; letter-spacing: 1px; font-weight: 500;
        }
        #auth-gate-card .ag-body { padding: 22px 26px 18px; }
        #auth-gate-card .ag-field { margin-bottom: 12px; }
        #auth-gate-card .ag-field label {
            display: block; font-size: 11px; color: #5a6e84;
            font-weight: 600; margin-bottom: 5px; letter-spacing: 0.4px;
        }
        #auth-gate-card .ag-field input {
            width: 100%; padding: 11px 12px;
            border: 1px solid #ccd6e4; border-radius: 6px;
            font-family: inherit; font-size: 13px;
            transition: border-color 0.15s, box-shadow 0.15s;
        }
        #auth-gate-card .ag-field input:focus {
            outline: none; border-color: #1a6fc4;
            box-shadow: 0 0 0 3px rgba(26,111,196,0.15);
        }
        #auth-gate-card .ag-msg {
            font-size: 11px; min-height: 18px;
            color: #dc3545; margin: 4px 0 8px;
            line-height: 1.4;
        }
        #auth-gate-card .ag-msg.ok { color: #2d9d5f; }
        #auth-gate-card .ag-btn-primary {
            width: 100%; padding: 12px;
            background: #1a6fc4; color: #fff;
            border: none; border-radius: 6px;
            font-weight: 700; font-size: 12px;
            letter-spacing: 1px; cursor: pointer;
            font-family: inherit;
            transition: background 0.15s;
        }
        #auth-gate-card .ag-btn-primary:hover:not(:disabled) { background: #155ba8; }
        #auth-gate-card .ag-btn-primary:disabled { opacity: 0.6; cursor: wait; }
        #auth-gate-card .ag-divider {
            display: flex; align-items: center; gap: 10px;
            margin: 14px 0 10px;
        }
        #auth-gate-card .ag-divider::before,
        #auth-gate-card .ag-divider::after {
            content: ''; flex: 1; height: 1px; background: #dce2ea;
        }
        #auth-gate-card .ag-divider span {
            font-size: 11px; color: #6a7a8d;
            font-weight: 700; letter-spacing: 1px;
            padding: 0 4px;
        }
        #auth-gate-card .ag-btn-google {
            width: 100%; padding: 11px;
            background: #fff; color: #3a4f68;
            border: 1px solid #d0d8e4; border-radius: 6px;
            cursor: pointer; font-weight: 700; font-size: 12px;
            letter-spacing: 0.5px; font-family: inherit;
            display: flex; align-items: center; justify-content: center;
            gap: 10px; transition: background 0.15s;
        }
        #auth-gate-card .ag-btn-google:hover:not(:disabled) { background: #f5f8ff; }
        #auth-gate-card .ag-btn-google:disabled { opacity: 0.6; cursor: wait; }
        #auth-gate-card .ag-foot {
            padding: 12px 26px 18px;
            font-size: 11px; color: #8a99ad;
            text-align: center; line-height: 1.5;
        }
        #auth-gate-card .ag-info-box {
            font-size: 11px; color: #5a6e84;
            background: #f3f7fc; padding: 10px 12px;
            border-radius: 5px; border-left: 3px solid #1a6fc4;
            line-height: 1.5; margin-bottom: 12px;
        }
        /* Pantalla de "esperando confirmación de correo" */
        #auth-gate-card .ag-pending-email {
            text-align: center; padding: 12px 4px 4px;
        }
        #auth-gate-card .ag-pending-email .ag-icon {
            font-size: 44px; margin-bottom: 8px;
        }
        #auth-gate-card .ag-pending-email h3 {
            font-size: 15px; color: #1a2332;
            margin: 0 0 8px; font-weight: 700;
        }
        #auth-gate-card .ag-pending-email p {
            font-size: 12px; color: #5a6e84;
            line-height: 1.55; margin: 6px 0;
        }
        #auth-gate-card .ag-pending-email strong { color: #1a6fc4; }
        #auth-gate-card .ag-link-btn {
            background: none; border: none;
            color: #1a6fc4; font-size: 11px;
            font-weight: 600; cursor: pointer;
            text-decoration: underline; padding: 4px;
            font-family: inherit;
        }
        #auth-gate-card .ag-link-btn:hover { color: #155ba8; }
        /* Spinner de carga inicial */
        #auth-gate-loader {
            display: flex; flex-direction: column;
            align-items: center; gap: 14px;
            color: #b8c8de;
        }
        #auth-gate-loader .ag-spinner {
            width: 36px; height: 36px;
            border: 3px solid rgba(255,255,255,0.15);
            border-top-color: #4a9eff;
            border-radius: 50%;
            animation: ag-spin 0.8s linear infinite;
        }
        @keyframes ag-spin { to { transform: rotate(360deg); } }
        #auth-gate-loader span {
            font-size: 11px; letter-spacing: 2px; font-weight: 600;
        }


        * { cursor: default !important; box-sizing: border-box; }
        #grupo-cedula, #grupo-cedula * { cursor: move !important; }
        
        /* SCROLLBAR INDUSTRIAL */
        ::-webkit-scrollbar { width: 8px; height: 8px; }
        ::-webkit-scrollbar-track { background: #eef0f3; }
        ::-webkit-scrollbar-thumb { background: #bcc5cf; border-radius: 4px; }
        ::-webkit-scrollbar-thumb:hover { background: #9aaab8; }

        /* ── FUENTE BASE ── */
        @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

        body { 
            font-family: 'Inter', 'Segoe UI', Arial, sans-serif; 
            margin: 0; padding: 0; 
            background-color: #eef0f3; 
            height: 100vh; display: flex; flex-direction: column; overflow: hidden;
            color: #1a2332;
            font-size: 12px;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        /* ── MENÚ SUPERIOR ── */
        .menu-bar { 
            background-color: #1e2a3a; 
            display: flex; align-items: center; padding: 0 12px; 
            height: 36px; 
            border-bottom: 1px solid #0f1929; 
            flex-shrink: 0; z-index: 2500; position: relative;
            box-shadow: 0 2px 6px rgba(0,0,0,0.3);
        }
        .menu-item { 
            position: relative; padding: 6px 14px; 
            font-size: 11px; font-family: 'Inter', 'Consolas', monospace; 
            font-weight: 600; color: #a8b8cc; 
            cursor: pointer; user-select: none; 
            text-transform: uppercase; letter-spacing: 0.8px;
            border-radius: 4px;
            transition: all 0.15s;
        }
        .menu-item:hover { background-color: rgba(255,255,255,0.08); color: #e8f0fa; }
        
        .dropdown-menu { 
            display: none; position: absolute; top: 100%; left: 0; 
            background-color: #ffffff; min-width: 250px; 
            box-shadow: 0 8px 24px rgba(0,0,0,0.18); z-index: 2600; 
            border: 1px solid #d8dde6; border-radius: 0 0 6px 6px;
            padding: 4px 0;
        }
        /* Menús: ABREN POR CLICK (no por hover). El hover sobre el item de la barra solo
           cambia el fondo. La clase .open se aplica/quita por JS al hacer click. */
        .menu-item.open .dropdown-menu { display: block; }
        .dropdown-item { 
            padding: 8px 16px; font-size: 11px; color: #2c3e55; 
            display: flex; justify-content: space-between; align-items: center; 
            cursor: pointer; position: relative; 
            font-family: 'Inter', 'Consolas', monospace; font-weight: 500;
            transition: all 0.1s;
        }
        .dropdown-item:hover { background-color: #1a6fc4; color: white; }
        .dropdown-divider { height: 1px; background-color: #edf0f5; margin: 4px 0; }
        .shortcut { color: #9aaabb; font-size: 10px; }
        .dropdown-item:hover .shortcut { color: #a8d0ff; }
        .dropdown-item.has-submenu::after { content: "▶"; position: absolute; right: 10px; font-size: 9px; opacity: 0.5; }
        .dropdown-item.has-submenu:hover::after { opacity: 1; color: white; }
        .sub-dropdown-menu { display: none; position: absolute; top: -5px; left: 100%; background-color: #ffffff; min-width: 180px; box-shadow: 0 8px 24px rgba(0,0,0,0.15); z-index: 2700; border: 1px solid #d8dde6; border-radius: 6px; padding: 4px 0; }
        .dropdown-item.has-submenu:hover .sub-dropdown-menu { display: block; }

        /* ── DASHBOARD ── */
        .dashboard { display: flex; gap: 12px; padding: 12px; flex: 1; min-height: 0; align-items: stretch; background-color: #eef0f3; }
        .controls { 
            background: #ffffff; padding: 16px; 
            border: 1px solid #dce2ea; border-radius: 8px; 
            width: 375px; flex-shrink: 0; display: flex; flex-direction: column; 
            overflow-y: auto; position: relative; 
            box-shadow: 0 2px 10px rgba(0,0,0,0.06);
        }
        
        .step-title { 
            display: flex; align-items: center; justify-content: space-between; 
            font-size: 10px; color: #1a6fc4; font-weight: 700; 
            font-family: 'Inter', 'Consolas', monospace; 
            text-transform: uppercase; 
            border-bottom: 2px solid #e4eaf4; 
            margin: 18px 0 10px 0; padding-bottom: 5px; 
            position: relative; letter-spacing: 0.8px;
        }
        .step-title:first-of-type { margin-top: 4px; }

        .tooltip { position: relative; display: flex; align-items: center; cursor: help !important; font-size: 13px; opacity: 0.5; transition: 0.2s; z-index: 200; }
        .tooltip:hover { opacity: 1; transform: scale(1.15); color: #1a6fc4; }
        .tooltip .tooltiptext { visibility: hidden; width: 260px; background-color: #1e2a3a; color: #e8f0fa; border: 1px solid #2d4060; padding: 8px 12px; position: absolute; top: -8px; right: 28px; opacity: 0; font-size: 11px; font-weight: normal; font-family: 'Inter', monospace; box-shadow: 0 8px 20px rgba(0,0,0,0.25); pointer-events: none; border-radius: 6px; line-height: 1.5; }
        .tooltip:hover .tooltiptext { visibility: visible; opacity: 1; }

        .btn-view-tool { position: relative; }
        .btn-view-tool .tip { visibility:hidden; width:180px; background-color:#1e2a3a; color:#e8f0fa; text-align:center; border: 1px solid #2d4060; padding:6px 10px; position:absolute; z-index:200; top:calc(100% + 8px); left:50%; transform:translateX(-50%); opacity:0; font-size:10px; font-weight:500; font-family: 'Inter', monospace; box-shadow: 0 4px 12px rgba(0,0,0,0.2); pointer-events:none; border-radius: 4px; }
        .btn-view-tool:hover .tip { visibility:visible; opacity:1; }

        /* ── ICONO DE AYUDA EN TÍTULOS DE SECCIÓN ──
           Cada step-title tiene un círculo "?" separado del icono temático.
           Al hover, un tooltip flotante (position:fixed, capa superior) muestra la ayuda.
           El estilo y posicionamiento del tooltip se manejan en window.tooltipFlotante (JS). */
        /* ── INDICADOR DESPLEGABLE EN LOS PANELES DE TROQUELES INTERIORES ──
           El span .ti-flecha en cada <summary> contiene un "▾". Cuando el <details>
           padre se abre, lo rotamos 180° para que apunte hacia arriba (▴). Pista visual
           clara de que la sección es expandible. */
        details.ti-grupo > summary { list-style: none; }
        details.ti-grupo > summary::-webkit-details-marker { display: none; }
        details.ti-grupo[open] > summary .ti-flecha { transform: rotate(180deg); }
        details.ti-grupo > summary:hover .ti-flecha { color: #0d4f99; }
        details.ti-grupo:hover { border-color: #b0c8e8 !important; }

        .help-pin {
            display: inline-flex; align-items: center; justify-content: center;
            width: 14px; height: 14px;
            margin-left: 6px;
            background: #1a6fc4;
            color: #fff;
            font-family: 'Inter', sans-serif;
            font-size: 9px; font-weight: 700;
            border-radius: 50%;
            cursor: help;
            opacity: 0.55;
            transition: 0.15s;
            user-select: none;
            vertical-align: middle;
            box-shadow: 0 1px 2px rgba(0,0,0,0.15);
        }
        .help-pin:hover {
            opacity: 1;
            transform: scale(1.18);
            box-shadow: 0 2px 6px rgba(26,111,196,0.45);
        }
        /* El tooltip flotante se inyecta en <body> y se posiciona con JS. */
        #floating-tooltip {
            position: fixed;
            z-index: 100000;       /* capa superior absoluta - por encima de cualquier panel/UI */
            pointer-events: none;
            opacity: 0;
            transform: translateY(-4px);
            transition: opacity 0.12s ease-out, transform 0.12s ease-out;
            max-width: 280px;
            min-width: 200px;
            background: #1e2a3a;
            color: #e8f0fa;
            border: 1px solid #2d4060;
            border-radius: 6px;
            padding: 9px 13px;
            font-family: 'Inter', monospace;
            font-size: 11px;
            font-weight: 400;
            line-height: 1.5;
            letter-spacing: 0.2px;
            text-transform: none;
            box-shadow: 0 10px 28px rgba(0,0,0,0.4);
            white-space: normal;
        }
        #floating-tooltip.visible {
            opacity: 1;
            transform: translateY(0);
        }
        #floating-tooltip::before {
            content: '';
            position: absolute;
            top: -5px;
            left: 14px;
            width: 9px; height: 9px;
            background: #1e2a3a;
            border-left: 1px solid #2d4060;
            border-top: 1px solid #2d4060;
            transform: rotate(45deg);
        }

        .input-group { margin-bottom: 10px; }
        .input-group label { 
            display: block; font-weight: 600; font-size: 10px; 
            color: #4a5e78; margin-bottom: 4px; 
            font-family: 'Inter', 'Consolas', monospace; 
            text-transform: uppercase; letter-spacing: 0.5px;
        }
        input, select { 
            width: 100%; padding: 6px 8px; 
            background: #f8fafc; border: 1px solid #d0d8e4; 
            color: #1a2332; font-family: 'Inter', 'Consolas', monospace; 
            font-size: 12px; font-weight: 500;
            outline: none; transition: all 0.15s; border-radius: 5px;
        }
        input[type="number"], input[type="text"] { border-left: 3px solid #1a6fc4; }
        input:disabled, select:disabled { background-color: #f0f3f7; color: #8a9bb0; border-left-color: #c8d0dc; cursor: not-allowed !important; }
        input:focus, select:focus { border-color: #1a6fc4; box-shadow: 0 0 0 3px rgba(26,111,196,0.12); background: #fff; }
        select { border-left: 3px solid #1a6fc4; }
        
        .row { display: flex; gap: 8px; }
        .radio-group { display: flex; flex-direction: column; gap: 5px; background: #f5f7fa; padding: 10px; border: 1px solid #dce2ea; border-radius: 5px; }
        .radio-group label { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 11px; margin: 0; cursor: pointer; color: #3a4f68; font-family: 'Inter', 'Consolas', monospace; }
        .radio-group input[type="radio"] { width: auto; margin: 0; accent-color: #1a6fc4; }

        .slot-row { display: flex; gap: 10px; }
        .slot-col { flex: 1; background: #f5f7fa; padding: 8px; border: 1px solid #dce2ea; border-radius: 5px; }
        .slot-col label { font-size: 10px; font-weight: 700; color: #1a6fc4; display: block; margin-bottom: 6px; letter-spacing: 0.5px; }
        .slot-radio-group { display: flex; flex-direction: column; gap: 4px; }
        .slot-radio-group label { font-size: 11px; font-weight: 500; display: flex; align-items: center; gap: 5px; cursor: pointer; color: #3a4f68; font-family: 'Inter', 'Consolas', monospace; }
        .slot-radio-group input[type="radio"] { width: auto; margin: 0; accent-color: #1a6fc4; }

        button { 
            padding: 9px 14px; border: 1px solid #c8d4e4; 
            cursor: pointer; font-weight: 600; font-size: 11px; 
            font-family: 'Inter', 'Consolas', monospace; 
            text-transform: uppercase; transition: all 0.15s; 
            letter-spacing: 0.6px; border-radius: 5px;
        }
        .btn-gray { background: #f0f3f7; color: #3a4f68; border-color: #c8d4e4; }
        .btn-green { background: #1e8a46; color: white; border-color: #176b37; }
        button:hover { opacity: 0.88; transform: translateY(-1px); box-shadow: 0 2px 6px rgba(0,0,0,0.1); }
        .btn-gray:hover { background: #e4eaf4; }
        button:active { transform: translateY(0); box-shadow: none; }

        .viewers { flex-grow: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; background: #eef0f3; }
        .tabs-container { display: flex; gap: 2px; padding: 0; margin-bottom: 10px; width: 100%; flex-shrink: 0; border-bottom: 2px solid #d0d8e6; }
        .tab-button { 
            flex: 1; padding: 8px 12px; 
            background: #e4eaf4; border: 1px solid #d0d8e6; border-bottom: none; 
            font-size: 10px; font-family: 'Inter', 'Consolas', monospace; 
            font-weight: 600; color: #5a7090; 
            transition: all 0.2s; cursor: pointer !important; 
            text-transform: uppercase; letter-spacing: 0.6px;
            border-radius: 6px 6px 0 0;
        }
        .tab-button.active { background: #ffffff; color: #1a6fc4; border-top: 2px solid #1a6fc4; font-weight: 700; }
        .tab-button:hover:not(.active) { background: #f0f4fa; color: #2c4060; }

        .workspace-area { display: flex; flex-direction: column; flex: 1; gap: 10px; min-height: 0; overflow: hidden; }
        
        .canvas-box { 
            background: #ffffff; border: 1px solid #d0d8e6; border-radius: 8px; 
            position: absolute; display: flex; align-items: center; justify-content: center; 
            overflow: hidden;
            /* SIN transición de width/background — las vistas deben aparecer estáticas, sin
               animación de ingreso al cambiar de tab. Antes tenía 0.3s cubic-bezier. */
            height: 100%; top: 0; left: 0; 
            box-shadow: 0 2px 10px rgba(0,0,0,0.06);
        }
        
        .view-label { 
            position: absolute; top: 10px; left: 10px; 
            background: rgba(30,42,58,0.92); 
            color: #e8f0fa; 
            font-family: 'Inter', 'Consolas', monospace; font-size: 10px; font-weight: 700; 
            padding: 5px 11px; border: 1px solid rgba(255,255,255,0.18); 
            border-radius: 4px; pointer-events: none; user-select: none; z-index: 5; 
            text-transform: uppercase; letter-spacing: 1px;
            text-shadow: 0 1px 2px rgba(0,0,0,0.4);
        }

        .tools-container { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: row; gap: 0; z-index: 10; border: 1px solid #d0d8e6; background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
        .btn-view-tool { background: #fff; color: #1a6fc4; border: none; border-right: 1px solid #d8e2ee; cursor: pointer; transition: 0.1s; }
        .tools-container .btn-view-tool:last-child { border-right: none; }
        .btn-view-tool:hover { background: #f0f4fa; color: #0f56a8; }
        .icon-btn { padding: 0; width: 32px; height: 32px; font-size: 14px; display: flex; justify-content: center; align-items: center; border-radius: 0; }

        /* ── DISEÑO (swatches, gallery) ── */
        .swatch { width: 26px; height: 26px; border: 2px solid #d0d8e6; border-radius: 50%; cursor: pointer; display: inline-block; transition: all 0.2s; flex-shrink: 0; }
        .swatch:hover { border-color: #1a6fc4; transform: scale(1.12); box-shadow: 0 2px 6px rgba(0,0,0,0.15); }

        .gallery-item { position: relative; display: inline-block; }
        .gallery-thumb { width: 44px; height: 44px; object-fit: contain; border: 1px solid #d0d8e6; cursor: pointer; transition: all 0.2s; background: #f8fafc; padding: 2px; border-radius: 4px; }
        .gallery-thumb:hover { border-color: #1a6fc4; background: #f0f6ff; transform: scale(1.05); }
        .delete-asset-btn { display: none; position: absolute; top: -5px; right: -5px; background: #d63031; color: #fff; border: 1px solid #b52a2a; width: 16px; height: 16px; font-size: 12px; line-height: 14px; text-align: center; cursor: pointer; padding: 0; font-weight: bold; font-family: monospace; border-radius: 50%; }
        .gallery-item:hover .delete-asset-btn { display: block; }
        .delete-asset-btn:hover { background: #b52a2a; }

        /* ── MENÚ EDICIÓN INTEGRADO ── */
        #image-edit-menu { background:#f8fafc; padding:12px; border: 1px solid #1a6fc4; border-radius: 6px; margin-top: 15px; transition: opacity 0.3s; }
        #image-edit-menu.disabled { opacity: 0.4; pointer-events: none; border-color: #d0d8e6; }
        #floating-layer-title { font-size:10px; color:#1a6fc4; font-family: 'Inter', 'Consolas', monospace; display:block; margin-bottom:10px; text-transform:uppercase; font-weight:700; letter-spacing: 0.8px; }
        #image-edit-menu.disabled #floating-layer-title { color: #8a9bb0; }
        
        .floating-input-group { margin-bottom: 10px; }
        .floating-input-group label { display: block; font-size: 10px; color: #4a5e78; margin-bottom: 4px; font-weight: 600; text-transform: uppercase; font-family: 'Inter', 'Consolas', monospace; }
        .floating-slider-row { display: flex; gap: 8px; align-items: center; }
        .floating-slider-row input[type="range"] { flex: 1; margin: 0; cursor: pointer !important; height: 5px; background: #d0d8e6; outline: none; accent-color: #1a6fc4; border-radius: 3px; border: none; }
        .floating-slider-row input[type="number"] { width: 52px; padding: 4px; font-size: 11px; margin: 0; text-align: center; border: 1px solid #d0d8e6; background: #fff; color: #1a2332; border-radius: 4px; }
        .floating-layer-select { font-size:11px; padding:6px; width:100%; border:1px solid #d0d8e6; background: #fff; color: #1a2332; font-family: 'Inter', 'Consolas', monospace; cursor:pointer; border-radius: 4px; }
        .btn-clear-img { background:#d63031; color:white; width:100%; padding:8px; font-size:11px; margin-top:10px; border:1px solid #b52a2a; cursor:pointer; font-weight:700; transition: 0.2s; font-family: 'Inter', 'Consolas', monospace; text-transform: uppercase; border-radius: 4px; }
        .btn-clear-img:hover { background:#b52a2a; }
        .btn-clear-img:disabled { background:#f0f3f7; color:#9aaabb; border-color: #d0d8e6; cursor:not-allowed !important; }

        /* ── MODAL ── */
        .modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15,25,45,0.55); z-index: 3000; justify-content: center; align-items: center; backdrop-filter: blur(3px); }
        .modal-content { background: #fff; padding: 24px; border-radius: 8px; border: 1px solid #d0d8e6; width: 320px; box-shadow: 0 16px 40px rgba(0,0,0,0.2); }
        .modal-title { margin-top: 0; font-size: 13px; color: #1a6fc4; font-family: 'Inter', 'Consolas', monospace; font-weight: 700; margin-bottom: 15px; border-bottom: 2px solid #e4eaf4; padding-bottom: 10px; text-transform: uppercase; letter-spacing: 0.6px; }
        .modal-footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

        #print-zone { display: none; }
        @media print {
            body { margin: 0; padding: 0; background: white; }
            .menu-bar, .dashboard { display: none !important; }
            #print-zone { display: block !important; }
        }
        
        /* ── ACORDEÓN (Lab) ── */
        .ink-folder { background: #fcfcfe; border: 1px solid #dce2ea; margin-bottom: 10px; overflow: hidden; border-radius: 6px; }
        .ink-folder summary { background: #f5f7fa; padding: 10px; font-size: 10px; font-family: 'Inter', 'Consolas', monospace; font-weight: 700; color: #1a6fc4; cursor: pointer; outline: none; user-select: none; border-bottom: 1px solid #e4eaf4; text-transform: uppercase; letter-spacing: 0.6px; }
        .ink-folder summary:hover { background: #edf2fa; }
        .ink-folder-content { padding: 10px; background: #fff; }
        
        .ink-folder-toolbar { display: flex; gap: 10px; align-items: center; padding-bottom: 10px; border-bottom: 1px dashed #e4eaf4; margin-bottom: 10px; }
        .ink-folder-toolbar label { font-size: 10px; color: #4a5e78; font-weight: 600; margin: 0; font-family: 'Inter', 'Consolas', monospace; text-transform: uppercase;}
        .ink-folder-toolbar input[type="range"] { flex: 1; height: 4px; accent-color: #1a6fc4; }
        .ink-tool-btn { background: #f5f7fa; border: 1px solid #d0d8e6; color: #2c3e55; padding: 4px 8px; font-size: 11px; cursor: pointer; font-weight: 600; transition: 0.1s; font-family: 'Inter', 'Consolas', monospace; text-transform: uppercase; border-radius: 4px; }
        .ink-tool-btn:hover { background: #e4eaf4; border-color: #1a6fc4; color: #1a6fc4; }

        .ink-micro-card { display: flex; align-items: center; justify-content: space-between; border: 1px solid #edf0f5; padding: 6px; margin-bottom: 6px; background: #fcfdff; transition: 0.2s; border-radius: 4px; }
        .ink-micro-card:hover { border-color: #b0cef0; background: #f0f7ff; }
        .ink-color-box { width: 24px; height: 24px; border: 1px solid #d0d8e6; border-radius: 4px; flex-shrink: 0; margin-right: 10px; }
        .ink-micro-info { display: flex; align-items: center; flex: 1; gap: 10px; font-size: 11px; color: #4a5e78; font-family: 'Inter', 'Consolas', monospace; }
        .ink-pantone-name { font-weight: 700; color: #1a2332; min-width: 130px; }
        .ink-pct { background: #edf2fa; border: 1px solid #d0dcea; padding: 2px 6px; color: #1a2332; min-width: 60px; text-align: center; border-radius: 4px; font-weight: 600; }
        .ink-formula { color: #7a8fa6; font-style: normal; }
        .ink-del-btn { background: none; border: none; color: #d63031; font-size: 16px; cursor: pointer; padding: 0 5px; font-weight: bold; transition: 0.2s; margin-left: 8px; opacity: 0.55; }
        .ink-del-btn:hover { opacity: 1; transform: scale(1.2); }

        .coverage-bar { display: flex; width: 100%; height: 7px; background: #e4eaf4; border: 1px solid #d0d8e6; border-radius: 4px; margin-bottom: 15px; overflow: hidden; }
        .coverage-segment { height: 100%; transition: width 0.3s; }
