﻿    .da-wrapper {
        --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
        --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
        --PB: var(--border-color);
        --PG: var(--card-bg);
        display: flex;
        justify-content: center;
            padding: clamp(0px, 5vw, 0px) 20px;
    }

    .da-panel {
        position: relative;                
        width: 100%;
        max-width: 1400px;
        border-radius: 28px;
        padding: clamp(28px, 5vw, 56px);
        overflow: hidden;
    }

    

    /* ---------- HERO ---------- */
    .da-hero { text-align: center; max-width: 800px; margin: 0 auto; padding: clamp(10px, 4vw, 30px) 0; }

    .da-hero-badge {
        display: inline-flex; align-items: center; gap: 8px;
        font-size: 12.5px; font-weight: 800; letter-spacing: 0.3px;
        color: var(--primary-color); background: var(--primary-light);
        padding: 7px 16px; border-radius: 100px; margin-bottom: 22px;
    }

    .da-hero-title {
        font-size: clamp(30px, 4.4vw, 44px);
        font-weight: 900;
        line-height: 1.15;
        letter-spacing: -0.025em;
        color: var(--text-main);
        margin-bottom: 16px;
    }

    .da-hero-title em {
        font-style: normal;
        background: linear-gradient(120deg, #3b82f6, var(--primary-color));
        -webkit-background-clip: text; background-clip: text; color: transparent;
    }

    .da-hero-desc { font-size: 16.5px; color: var(--text-muted); line-height: 1.7; margin-bottom: 36px; }

    /* --- STUDIO APP WRAPPER --- */
    .studio-app {
        display: flex; flex-direction: column; 
        background: var(--card-bg); border: 1px solid var(--border-color);
        border-radius: 20px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.05);
        margin-bottom: 30px;
    }

    /* WAVEFORM VIEWPORT */
    .waveform-screen {
        position: relative; height: 180px; background: #0f172a; 
        border-bottom: 1px solid var(--border-color); overflow: hidden;
    }
    .wave-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
    .ws-centerline { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,0.2); z-index: 2; pointer-events: none; }
    
    .ws-badges { position: absolute; top: 12px; left: 12px; z-index: 3; display: flex; gap: 8px; }
    .ws-badge {
        background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
        padding: 6px 12px; border-radius: 6px; font-size: 11px; font-weight: 800; color: #fff;
        display: flex; align-items: center; gap: 6px; font-family: 'Space Mono', monospace;
    }
    
    .upload-overlay {
        position: absolute; inset: 0; background: rgba(15,23,42,0.85); backdrop-filter: blur(2px);
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        z-index: 20; cursor: pointer; transition: all 0.2s;
    }
    .upload-overlay:hover { background: rgba(15,23,42,0.95); }
    .upload-overlay.hidden { opacity: 0; pointer-events: none; }
    .uo-icon { color: var(--primary-color); margin-bottom: 12px; transition: transform 0.2s var(--ease-spring); }
    .upload-overlay:hover .uo-icon { transform: scale(1.1) translateY(-5px); }
    .uo-title { font-size: 16px; font-weight: 900; color: #fff; margin-bottom: 6px; }
    .uo-sub { font-size: 12px; font-weight: 700; color: #94a3b8; }

    /* TRANSPORT BAR */
    .transport-bar {
        display: flex; justify-content: space-between; align-items: center;
        padding: 16px 24px; background: var(--bg-body); border-bottom: 1px solid var(--border-color);
    }
    .tb-left { display: flex; align-items: center; gap: 16px; }
    .btn-play {
        width: 48px; height: 48px; border-radius: 50%; background: var(--primary-color); color: #fff;
        border: none; display: flex; align-items: center; justify-content: center; cursor: pointer;
        transition: all 0.2s var(--ease-spring); flex-shrink: 0;
    }
    .btn-play:hover:not(:disabled) { transform: scale(1.05); box-shadow: 0 4px 12px rgba(var(--primary-color-rgb), 0.3); }
    .btn-play:disabled { background: var(--border-color); color: var(--text-muted); cursor: not-allowed; }
    
    .tb-info { display: flex; flex-direction: column; gap: 4px; }
    .tb-title { font-size: 14px; font-weight: 900; color: var(--text-main); }
    .tb-fx-status { font-size: 11px; font-weight: 800; color: var(--primary-color); letter-spacing: 0.5px; }

    /* STUDIO BODY */
    .studio-body { display: grid; grid-template-columns: 350px 1fr; }
    @media (max-width: 900px) { .studio-body { grid-template-columns: 1fr; } }
    
    /* LEFT: FILE MANAGER */
    .file-manager { border-right: 1px solid var(--border-color); display: flex; flex-direction: column; background: var(--card-bg); }
    .fm-header {
        display: flex; justify-content: space-between; align-items: center;
        padding: 12px 20px; font-size: 12px; font-weight: 900; color: var(--text-muted);
        text-transform: uppercase; border-bottom: 1px solid var(--border-color);
    }
    .fm-add-btn {
        background: transparent; border: 1px solid var(--border-color); color: var(--text-main);
        padding: 4px 10px; border-radius: 4px; font-size: 11px; font-weight: 800; cursor: pointer;
    }
    .fm-add-btn:hover { background: var(--primary-light); color: var(--primary-color); border-color: var(--primary-color); }
    
    .fm-list { flex-grow: 1; max-height: 500px; overflow-y: auto; }
    .fm-item {
        display: flex; align-items: center; justify-content: space-between; padding: 12px 20px;
        border-bottom: 1px solid var(--border-color); transition: 0.2s; cursor: pointer;
    }
    .fm-item:hover { background: var(--bg-body); }
    .fm-item.active { background: var(--primary-light); border-left: 3px solid var(--primary-color); }
    
    .fm-i-left { display: flex; align-items: center; gap: 10px; overflow: hidden; }
    .fm-icon { width: 32px; height: 32px; border-radius: 8px; background: #e2e8f0; display: flex; align-items: center; justify-content: center; color: var(--text-muted); flex-shrink: 0; }
    .fm-name { font-size: 13px; font-weight: 800; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .fm-status { font-size: 11px; font-weight: 700; color: var(--text-muted); }
    
    .fm-status.pending { color: var(--text-muted); }
    .fm-status.processing { color: var(--primary-color); }
    .fm-status.done { color: #10b981; }
    .fm-status.error { color: #ef4444; }
    
    .fm-actions { padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--border-color); background: var(--bg-body); }
    .batch-btn {
        display: flex; align-items: center; justify-content: center; gap: 8px;
        padding: 12px; border-radius: 8px; font-size: 13px; font-weight: 900; border: none;
        cursor: pointer; transition: 0.2s; color: #fff;
    }
    .batch-btn.primary { background: var(--primary-color); }
    .batch-btn.primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(var(--primary-color-rgb), 0.3); }
    .batch-btn.success { background: #10b981; }
    .batch-btn.success:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(16,185,129,0.3); }
    .batch-btn:disabled { opacity: 0.5; cursor: not-allowed; }

    /* RIGHT: PRESETS DECK */
    .presets-section { display: flex; flex-direction: column; background: var(--bg-body); }
    .ps-header {
        display: flex; justify-content: space-between; align-items: center;
        padding: 12px 24px; font-size: 12px; font-weight: 900; color: var(--text-muted);
        text-transform: uppercase; border-bottom: 1px solid var(--border-color);
    }
    .ps-title { display: flex; align-items: center; gap: 8px; }
    
    .presets-grid {
        display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 12px; padding: 24px; max-height: 500px; overflow-y: auto;
    }
    .preset-card {
        background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 12px;
        padding: 16px; cursor: pointer; transition: all 0.2s var(--ease-spring);
        display: flex; flex-direction: column; gap: 8px;
    }
    .preset-card:hover { border-color: var(--primary-color); box-shadow: 0 4px 12px rgba(0,0,0,0.05); transform: translateY(-2px); }
    .preset-card.active { background: var(--primary-light); border-color: var(--primary-color); }
    
    .pc-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--bg-body); display: flex; align-items: center; justify-content: center; color: var(--primary-color); margin-bottom: 4px; }
    .preset-card.active .pc-icon { background: var(--primary-color); color: #fff; }
    .pc-title { font-size: 14px; font-weight: 900; color: var(--text-main); }
    .pc-desc { font-size: 12px; font-weight: 700; color: var(--text-muted); line-height: 1.4; }
    .pc-tag { font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 4px; background: var(--border-color); color: var(--text-muted); align-self: flex-start; }
    .preset-card.active .pc-tag { background: rgba(var(--primary-color-rgb), 0.2); color: var(--primary-color); }

    .spin { animation: spin 1s linear infinite; }
    @keyframes spin { 100% { transform: rotate(360deg); } }

    /* Toast */
    .toast-overlay { position: fixed; bottom: 24px; right: 24px; z-index: 99999; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
    .toast-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 12px; padding: 16px 20px; display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 800; color: var(--text-main); box-shadow: 0 10px 40px rgba(0,0,0,0.1); transform: translateX(120%); opacity: 0; transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); pointer-events: auto; }
    .toast-overlay.show .toast-card { transform: translateX(0); opacity: 1; }
    .toast-card svg { color: var(--primary-color); }
    
    /* ── Comparison Panel & Analytics ── */
    .comparison-panel {
        background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 24px;
        padding: 28px; margin-top: 32px; box-shadow: 0 10px 30px rgba(0,0,0,0.02); margin-bottom: 40px;
    }
    .cp-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
    .cp-title { font-size: 16px; font-weight: 800; color: var(--text-main); display: flex; align-items: center; gap: 10px; }
    .cp-badge { font-size: 12px; font-weight: 800; padding: 6px 14px; border-radius: 100px; }
    .badge-high { background: color-mix(in srgb, var(--success, #10b981) 15%, transparent); color: var(--success, #10b981); border: 1px solid color-mix(in srgb, var(--success, #10b981) 30%, transparent); }

    .cp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
    .cp-card { background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
    .cpc-header { display: flex; justify-content: space-between; align-items: center; }
    .cpc-title { font-size: 13.5px; font-weight: 800; color: var(--text-main); }
    .cpc-tag { font-size: 11.5px; font-weight: 800; padding: 4px 10px; border-radius: 6px; }
    .cpc-tag.success { background: color-mix(in srgb, var(--success, #10b981) 15%, transparent); color: var(--success, #10b981); }

    .cpc-body { display: flex; flex-direction: column; gap: 10px; }
    .cpc-stat-row { font-size: 13px; color: var(--text-muted); display: flex; justify-content: space-between; }
    .cpc-stat-row strong { color: var(--text-main); font-weight: 700; }
    .cpc-progress-bar { width: 100%; height: 8px; background: var(--border-color); border-radius: 100px; overflow: hidden; margin-top: 4px; }
    .cpc-progress-fill { height: 100%; background: var(--primary-color); border-radius: 100px; transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
    .cpc-progress-fill.bg-gradient { background: linear-gradient(90deg, var(--primary-color), var(--primary-gradient-end)); }
  