    /* =========================================
       IMAGE TO QR — PREMIUM UI
       ========================================= */
    .da-wrapper {
        --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
        --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
        display: flex;
        justify-content: center;
        padding: clamp(0px, 5vw, 0px) 20px;
    }

    .da-panel {
        position: relative;                
        width: 100%;
        max-width: 1200px;
        border-radius: 28px;
        padding: clamp(28px, 5vw, 56px);
    }

    /* ---------- OPTIONS BAR ---------- */
    .options-bar { 
        background: var(--card-bg); 
        border: 1px solid var(--border-color); 
        border-radius: 16px; 
        padding: 12px 20px; 
        display: flex; 
        align-items: center; 
        gap: 16px; 
        margin-bottom: 36px; 
        box-shadow: 0 4px 20px rgba(0,0,0,0.02); 
        flex-wrap: wrap; 
    }

    .ob-lbl { font-size: 11px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
    .f-btn { background: transparent; border: none; font-family: inherit; font-size: 13px; font-weight: 700; color: var(--text-muted); outline: none; cursor: pointer; padding: 6px 12px; border-radius: 8px; transition: all 0.2s; }
    .f-btn:hover { background: var(--bg-body); color: var(--text-main); }
    .f-btn.on { background: color-mix(in srgb, var(--primary-color) 10%, transparent); color: var(--primary-color); }

    .ob-sep { width: 1px; height: 24px; background: var(--border-color); margin: 0 4px; }

    .dir-toggle { display: flex; align-items: center; gap: 8px; background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 8px; padding: 6px 12px; font-size: 11px; font-weight: 800; color: var(--text-muted); cursor: pointer; transition: all 0.2s; }
    .dir-toggle:hover { border-color: var(--primary-color); }
    .d-ltr, .d-rtl { transition: color 0.2s; }
    .dir-toggle.rtl .d-rtl { color: var(--primary-color); }
    .dir-toggle:not(.rtl) .d-ltr { color: var(--primary-color); }

    .usage-meter { margin-left: auto; display: flex; align-items: center; gap: 12px; }
    .usage-pips { display: flex; gap: 4px; }
    .pip { width: 8px; height: 8px; border-radius: 50%; background: var(--border-color); }
    .pip.used { background: var(--primary-color); box-shadow: 0 0 8px color-mix(in srgb, var(--primary-color) 40%, transparent); }
    .usage-lbl { font-family: 'Space Mono', monospace; font-size: 11px; font-weight: 700; color: var(--primary-color); }

    /* ---------- QUANTUM WORKSPACE ---------- */
    .quantum-workspace { display: flex; flex-direction: column; align-items: center; margin-bottom: 40px; position: relative; }

    .q-funnel { 
        width: 100%; 
        max-width: 680px; 
        background: var(--card-bg); 
        border: 2px dashed var(--border-color); 
        border-radius: 32px; 
        padding: 48px 32px; 
        text-align: center; 
        transition: all 0.5s var(--ease-spring); 
        position: relative; 
        overflow: hidden; 
        min-height: 280px; 
        display: flex; 
        align-items: center; 
        justify-content: center; 
        box-shadow: 0 10px 40px rgba(0,0,0,0.02); 
        cursor: pointer; 
    }
    .q-funnel:hover { border-color: var(--primary-color); background: color-mix(in srgb, var(--primary-color) 3%, transparent); }
    .q-funnel.dragover { border-color: var(--primary-color); background: color-mix(in srgb, var(--primary-color) 6%, transparent); transform: scale(1.02); }

    .q-funnel.active { 
        max-width: 900px; 
        border: 1px solid var(--border-color); 
        background: var(--card-bg); 
        border-radius: 24px; 
        padding: 0; 
        min-height: 380px; 
        box-shadow: 0 20px 60px rgba(0,0,0,0.06); 
        cursor: default; 
    }
    .q-funnel.active:hover { background: var(--card-bg); transform: none; }

    /* CORE (Upload State) */
    .drop-core { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; width: 100%; height: 100%; transition: opacity 0.3s; }
    .q-funnel.active .drop-core, .q-funnel.processing .drop-core { opacity: 0; pointer-events: none; position: absolute; }

    .dc-icon { width: 64px; height: 64px; color: var(--primary-color); opacity: 0.85; transition: transform 0.3s; }
    .q-funnel:hover .dc-icon { transform: scale(1.08) translateY(-4px); }
    .dc-text { font-size: 20px; font-weight: 900; color: var(--text-main); }
    .dc-sub { font-size: 13px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

    /* LOADER (Processing State) */
    .funnel-loader { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; background: var(--card-bg); opacity: 0; pointer-events: none; transition: opacity 0.3s; z-index: 5; }
    .q-funnel.processing .funnel-loader { opacity: 1; pointer-events: auto; }

    .fl-spinner { width: 48px; height: 48px; border: 4px solid var(--border-color); border-top-color: var(--primary-color); border-radius: 50%; animation: spin 1s linear infinite; }
    .fl-text { font-family: 'Space Mono', monospace; font-size: 13px; font-weight: 800; color: var(--primary-color); letter-spacing: 2px; }
    /* Keyframes - Top level */
    @keyframes spin { 
        to { transform: rotate(360deg); } 
    }

    @keyframes streamFlow { 
        0% { background-position: 0 -200px; } 
        100% { background-position: 0 200px; } 
    }

    @keyframes streamFlowH { 
        0% { background-position: -200px 0; } 
        100% { background-position: 200px 0; } 
    }

    /* LOOM DASHBOARD (Active State) */
    .loom-dashboard { display: flex; width: 100%; height: 100%; opacity: 0; pointer-events: none; transition: opacity 0.4s 0.2s; position: absolute; inset: 0; }
    .q-funnel.active .loom-dashboard { opacity: 1; pointer-events: auto; position: relative; }

    .loom-source { flex: 1; padding: 32px; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; border-right: 1px solid var(--border-color); background: var(--bg-body); }
    .ls-badge { position: absolute; top: 16px; left: 16px; background: var(--card-bg); border: 1px solid var(--border-color); padding: 6px 12px; border-radius: 8px; font-family: 'Space Mono', monospace; font-size: 11px; font-weight: 800; color: var(--text-main); box-shadow: 0 4px 12px rgba(0,0,0,0.05); z-index: 2; }
    .ls-img { max-width: 100%; max-height: 250px; border-radius: 12px; object-fit: contain; box-shadow: 0 10px 30px rgba(0,0,0,0.1); border: 1px solid rgba(0,0,0,0.05); }

    .loom-stream { width: 80px; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--card-bg); }
    .stream-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, transparent, var(--primary-color), transparent); transform: translateX(-50%); animation: streamFlow 2s linear infinite; opacity: 0.3; }
    .stream-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--primary-color); color: #fff; display: flex; align-items: center; justify-content: center; position: relative; z-index: 2; box-shadow: 0 0 20px color-mix(in srgb, var(--primary-color) 40%, transparent); }

    .loom-qr { flex: 1; padding: 32px; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; background: var(--card-bg); }
    #qrCanvas { width: 240px !important; height: 240px !important; background: #fff; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); border: 1px solid rgba(0,0,0,0.05); }
    .lq-badge { position: absolute; top: 16px; right: 16px; padding: 6px 12px; border-radius: 8px; font-family: 'Space Mono', monospace; font-size: 11px; font-weight: 800; color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.1); z-index: 2; }
    .badge-offline { background: #3b82f6; }
    .badge-cloud { background: #10b981; }

    @media (max-width: 768px) { 
        .loom-dashboard { flex-direction: column; }
        .loom-source { border-right: none; border-bottom: 1px solid var(--border-color); min-height: 250px; }
        .loom-stream { width: 100%; height: 60px; }
        .stream-line { width: 100%; height: 2px; left: 0; right: 0; top: 50%; bottom: auto; transform: translateY(-50%); background: linear-gradient(to right, transparent, var(--primary-color), transparent); animation: streamFlowH 2s linear infinite; }
    }

    /* ---------- PRISM CONTROLS ---------- */
    .prism-controls { 
        width: 100%; 
        max-width: 900px; 
        background: var(--card-bg); 
        border: 1px solid var(--border-color); 
        border-radius: 20px; 
        overflow: visible; 
        margin-top: 24px; 
        box-shadow: 0 10px 30px rgba(0,0,0,0.03); 
        transition: all 0.3s var(--ease-out);
        position: relative;
        z-index: 10;
    }
    
    .pc-header { 
        padding: 18px 24px; 
        background: var(--bg-body); 
        border-bottom: 1px solid var(--border-color); 
        font-size: 13.5px; 
        font-weight: 800; 
        color: var(--text-main); 
        display: flex; 
        align-items: center; 
        justify-content: space-between;
        border-radius: 20px 20px 0 0;
    }
    .pc-header-title {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .pc-badge {
        font-size: 11px;
        font-weight: 800;
        padding: 4px 10px;
        border-radius: 100px;
        background: color-mix(in srgb, var(--primary-color) 10%, transparent);
        color: var(--primary-color);
    }
    
    .pc-grid { padding: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
    
    .pc-control { display: flex; flex-direction: column; gap: 8px; }
    .pc-label { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
    
    .color-wrap { display: flex; align-items: center; gap: 12px; background: var(--bg-body); border: 1px solid var(--border-color); padding: 8px 14px; border-radius: 12px; transition: border-color 0.2s; }
    .color-wrap:hover { border-color: var(--primary-color); }
    .c-picker { width: 32px; height: 32px; border: none; border-radius: 8px; cursor: pointer; padding: 0; overflow: hidden; background: transparent; }
    .c-picker::-webkit-color-swatch-wrapper { padding: 0; }
    .c-picker::-webkit-color-swatch { border: none; border-radius: 6px; }
    .c-val { font-family: 'Space Mono', monospace; font-size: 13px; font-weight: 800; color: var(--text-main); }
    
    /* Custom Dropdown in Prism */
    .custom-dropdown { position: relative; display: block; user-select: none; font-family: inherit; width: 100%; }
    .cd-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--bg-body); border: 1px solid var(--border-color); padding: 12px 14px; border-radius: 12px; font-size: 13px; font-weight: 700; color: var(--text-main); cursor: pointer; transition: all 0.2s; }
    .cd-header:hover, .custom-dropdown.active .cd-header { border-color: var(--primary-color); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 12%, transparent); }
    .cd-value { display: flex; align-items: center; gap: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .cd-body { position: absolute; bottom: calc(100% + 8px); left: 0; width: 100%; min-width: 220px; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.12); padding: 8px; z-index: 1000; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1); display: flex; flex-direction: column; gap: 4px; }
    .custom-dropdown.active .cd-body { opacity: 1; visibility: visible; transform: translateY(0); }
    .cd-list { max-height: 220px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
    .cd-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; font-size: 12.5px; font-weight: 700; color: var(--text-main); cursor: pointer; transition: background 0.2s; }
    .cd-item:hover { background: var(--bg-body); }
    .cd-item.active { background: color-mix(in srgb, var(--primary-color) 8%, transparent); color: var(--primary-color); }

    /* Action Bar */
    .action-bar { padding: 18px 24px; border-top: 1px solid var(--border-color); display: flex; justify-content: flex-end; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--bg-body); border-radius: 0 0 20px 20px; }
    
    .a-btn { 
        padding: 12px 24px; 
        border-radius: 12px; 
        font-size: 13px; 
        font-weight: 800; 
        cursor: pointer; 
        display: inline-flex; 
        align-items: center; 
        justify-content: center; 
        gap: 8px; 
        transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1); 
        border: 1px solid transparent; 
        font-family: inherit;
        text-decoration: none;
        outline: none;
    }
    .a-btn.secondary { 
        background: var(--card-bg); 
        border: 1px solid var(--border-color); 
        color: var(--text-main); 
    }
    .a-btn.secondary:hover:not(:disabled) { 
        background: color-mix(in srgb, #ef4444 10%, transparent); 
        color: #ef4444; 
        border-color: color-mix(in srgb, #ef4444 30%, transparent); 
    }
    .a-btn.primary { 
        background: var(--primary-color); 
        color: #ffffff; 
        box-shadow: 0 4px 12px color-mix(in srgb, var(--primary-color) 25%, transparent); 
    }
    .a-btn.primary:hover:not(:disabled) { 
        transform: translateY(-2px); 
        box-shadow: 0 8px 20px color-mix(in srgb, var(--primary-color) 35%, transparent); 
    }
    .a-btn:disabled, .a-btn[disabled] { 
        opacity: 0.5; 
        cursor: not-allowed; 
        box-shadow: none; 
        pointer-events: none; 
        transform: none; 
    }

    /* ---------- STATS STRIP ---------- */
    .stats-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 32px; }
    .sc { background: var(--card-bg); border-radius: 16px; padding: 20px; border: 1px solid var(--border-color); display: flex; flex-direction: column; align-items: center; text-align: center; transition: transform 0.2s; }
    .sc:hover { transform: translateY(-2px); }
    .sc-ico { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
    
    .sc-ico.r { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
    .sc-ico.b { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
    .sc-ico.g { background: rgba(34, 197, 94, 0.1); color: #22c55e; }
    .sc-ico.p { background: rgba(168, 85, 247, 0.1); color: #a855f7; }
    
    .sc-val { font-size: 24px; font-weight: 900; color: var(--text-main); line-height: 1; margin-bottom: 4px; transition: transform 0.3s; font-family: 'Space Mono', monospace; }
    .sc-lbl { font-size: 11px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
    .sc-val.popped { transform: scale(1.2); color: var(--primary-color); }

    /* Toast */
    .toast { position: fixed; bottom: 24px; right: 24px; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 12px; padding: 12px 20px; display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; color: var(--text-main); box-shadow: 0 10px 30px rgba(0,0,0,0.1); z-index: 100000; opacity: 0; pointer-events: none; transform: translateY(20px); transition: all 0.3s var(--ease-spring); }
    .toast.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
    .toast.success { border-left: 4px solid #10b981; }
    .toast.warn { border-left: 4px solid #f59e0b; }
    .toast.info { border-left: 4px solid #3b82f6; }

    /* =========================================
       ZERO INLINE STYLES EXTENSIONS
       ========================================= */
    #bgCv {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
        pointer-events: none;
    }

    .icon-hero-badge {
        width: 14px;
        height: 14px;
    }

    .icon-type-muted {
        width: 12px;
        height: 12px;
        color: var(--text-muted);
    }

    .dir-divider {
        opacity: 0.3;
    }

    #fileInput {
        display: none;
    }

    .stream-icon i {
        width: 20px;
        height: 20px;
    }

    .pc-header-title i {
        width: 15px;
        height: 15px;
        color: var(--primary-color);
    }

    .pc-label i {
        width: 12px;
        height: 12px;
    }

    .icon-chevron-xs {
        width: 14px;
        height: 14px;
    }

    .a-btn i {
        width: 14px;
        height: 14px;
    }

    .sc-ico i {
        width: 18px;
        height: 18px;
    }

    .info-div-t {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
        font-weight: 800;
        color: var(--text-main);
        margin-bottom: 20px;
        margin-top: 40px;
    }

    .icon-star-primary {
        width: 16px;
        height: 16px;
        color: var(--primary-color);
    }

    .toast i {
        width: 18px;
        height: 18px;
    }

    .toast.success i {
        color: #10b981;
    }

    .toast.error i {
        color: #ef4444;
    }

    .toast.warn i {
        color: #f59e0b;
    }

    .toast.info i {
        color: #3b82f6;
    }