.al-mobile-home-heading,
#al-mobile-track-summary {
    display: none;
}

@media (max-width: 960px) {
    #audio-lab-view .daw-title-tags,
    #audio-lab-view .daw-title-row,
    #audio-lab-view > .daw-source-strip,
    #audio-lab-view > .daw-mobile-quick-actions,
    #audio-lab-view .daw-side-panel,
    #audio-lab-view #audio-lab-workspace > .al-mobile-panel,
    #audio-lab-view .daw-main-canvas > .al-mobile-panel {
        display: none !important;
    }

    #audio-lab-view .al-mobile-home-heading {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 18px 14px 8px;
    }

    .al-mobile-home-heading strong {
        color: #f1f5f9;
        font-size: 1.15rem;
    }

    .al-mobile-home-heading p {
        color: #94a3b8;
        font-size: 0.8rem;
        line-height: 1.5;
        margin: 4px 0;
    }

    #audio-lab-view .daw-lab-header { padding: 8px 12px; }
    #audio-lab-view .daw-header-row { border: 0; padding: 0; flex-wrap: wrap; gap: 6px; }
    #audio-lab-view .daw-header-row button { min-height: 44px; }
    #audio-lab-view .daw-workspace { max-width: 720px; padding-bottom: 24px; }
    #audio-lab-view .daw-canvas-card { order: 0; }
    #audio-lab-view #al-mobile-track-summary { display: block; order: -1; overflow-wrap: anywhere; }
    #al-mobile-track-summary #al-signal-hud { display: flex; padding: 10px 12px; }
    #al-mobile-track-summary .uppercase { display: none; }
    #audio-lab-view .daw-transport { order: 1; }

        #audio-lab-view .al-mobile-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        order: 2;
        overflow: visible;
        padding: 2px 0 6px;
        margin: 0;
    }

    #audio-lab-view .al-mobile-tab-btn {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        min-width: 0;
        min-height: 72px;
        border-radius: 12px;
        padding: 10px 12px;
        text-align: left;
        white-space: normal;
        letter-spacing: 0;
        position: relative;
        overflow: hidden;
        cursor: pointer;
        transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
        -webkit-tap-highlight-color: transparent;
    }

    #audio-lab-view .al-mobile-tab-btn:active {
        transform: scale(0.98);
    }

    .al-mobile-tab-btn .al-tab-header {
        display: flex;
        align-items: center;
        gap: 7px;
        width: 100%;
        margin-bottom: 3px;
        min-width: 0;
    }

    .al-mobile-tab-btn .al-tab-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 22px;
        height: 22px;
        border-radius: 6px;
        flex-shrink: 0;
    }

    .al-mobile-tab-btn strong {
        font-size: 0.86rem;
        font-weight: 700;
        letter-spacing: 0.3px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .al-mobile-tab-btn small {
        font-size: 0.72rem;
        line-height: 1.25;
        font-weight: normal;
        margin-left: 1px;
    }

    /* Distinct categorical color accents (Deep tactical dark theme - non-blinding at night) */

    /* 1. Audio & case (Tactical Cyan) */
    #audio-lab-view .al-tab-source {
        background: linear-gradient(145deg, rgba(6, 182, 212, 0.12) 0%, rgba(13, 20, 30, 0.9) 100%);
        border: 1px solid rgba(6, 182, 212, 0.32);
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    }
    #audio-lab-view .al-tab-source .al-tab-icon {
        background: rgba(6, 182, 212, 0.16);
        color: #22d3ee;
        border: 1px solid rgba(6, 182, 212, 0.35);
    }
    #audio-lab-view .al-tab-source strong { color: #38bdf8; }
    #audio-lab-view .al-tab-source small { color: #94a3b8; }
    #audio-lab-view .al-tab-source:hover,
    #audio-lab-view .al-tab-source.is-active,
    #audio-lab-view .al-tab-source[aria-expanded="true"] {
        border-color: #38bdf8 !important;
        box-shadow: 0 0 16px rgba(6, 182, 212, 0.3) !important;
    }

    /* 2. Enhance (Warm Amber / Gold) */
    #audio-lab-view .al-tab-filters {
        background: linear-gradient(145deg, rgba(245, 158, 11, 0.12) 0%, rgba(13, 20, 30, 0.9) 100%);
        border: 1px solid rgba(245, 158, 11, 0.32);
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    }
    #audio-lab-view .al-tab-filters .al-tab-icon {
        background: rgba(245, 158, 11, 0.16);
        color: #fbbf24;
        border: 1px solid rgba(245, 158, 11, 0.35);
    }
    #audio-lab-view .al-tab-filters strong { color: #fcd34d; }
    #audio-lab-view .al-tab-filters small { color: #94a3b8; }
    #audio-lab-view .al-tab-filters:hover,
    #audio-lab-view .al-tab-filters.is-active,
    #audio-lab-view .al-tab-filters[aria-expanded="true"] {
        border-color: #fbbf24 !important;
        box-shadow: 0 0 16px rgba(245, 158, 11, 0.3) !important;
    }

    /* 3. Analyze - AI ACOUSTIC SUITE (High-Tech Violet & AI Highlight) */
    #audio-lab-view .al-tab-ai {
        background: linear-gradient(145deg, rgba(168, 85, 247, 0.18) 0%, rgba(99, 102, 241, 0.12) 60%, rgba(13, 20, 30, 0.9) 100%);
        border: 1px solid rgba(168, 85, 247, 0.5);
        box-shadow: 0 4px 18px rgba(147, 51, 234, 0.22), inset 0 0 14px rgba(168, 85, 247, 0.1);
    }
    #audio-lab-view .al-tab-ai .al-tab-icon {
        background: rgba(168, 85, 247, 0.24);
        color: #c084fc;
        border: 1px solid rgba(168, 85, 247, 0.45);
    }
    #audio-lab-view .al-tab-ai strong {
        color: #f3e8ff;
        text-shadow: 0 0 8px rgba(192, 132, 252, 0.35);
    }
    #audio-lab-view .al-tab-ai small { color: #cbd5e1; }
    #audio-lab-view .al-tab-ai .al-tab-ai-badge {
        display: inline-flex;
        align-items: center;
        gap: 3px;
        margin-left: auto;
        font-size: 0.6rem;
        font-weight: 800;
        letter-spacing: 0.5px;
        padding: 1px 6px;
        border-radius: 9999px;
        background: linear-gradient(135deg, rgba(168, 85, 247, 0.4), rgba(236, 72, 153, 0.3));
        border: 1px solid rgba(192, 132, 252, 0.65);
        color: #fdf4ff;
        text-shadow: 0 0 6px rgba(192, 132, 252, 0.6);
        box-shadow: 0 0 10px rgba(168, 85, 247, 0.35);
    }
    #audio-lab-view .al-tab-ai:hover,
    #audio-lab-view .al-tab-ai.is-active,
    #audio-lab-view .al-tab-ai[aria-expanded="true"] {
        border-color: #c084fc !important;
        box-shadow: 0 0 22px rgba(168, 85, 247, 0.42), inset 0 0 16px rgba(168, 85, 247, 0.18) !important;
    }

    /* 4. Record (Crimson / Coral Red) */
    #audio-lab-view .al-tab-rec {
        background: linear-gradient(145deg, rgba(239, 68, 68, 0.12) 0%, rgba(13, 20, 30, 0.9) 100%);
        border: 1px solid rgba(239, 68, 68, 0.32);
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    }
    #audio-lab-view .al-tab-rec .al-tab-icon {
        background: rgba(239, 68, 68, 0.16);
        color: #f87171;
        border: 1px solid rgba(239, 68, 68, 0.35);
    }
    #audio-lab-view .al-tab-rec strong { color: #fca5a5; }
    #audio-lab-view .al-tab-rec small { color: #94a3b8; }
    #audio-lab-view .al-tab-rec:hover,
    #audio-lab-view .al-tab-rec.is-active,
    #audio-lab-view .al-tab-rec[aria-expanded="true"] {
        border-color: #f87171 !important;
        box-shadow: 0 0 16px rgba(239, 68, 68, 0.3) !important;
    }

    /* 5. Library (Emerald / Mint Green) */
    #audio-lab-view .al-tab-clips {
        background: linear-gradient(145deg, rgba(16, 185, 129, 0.12) 0%, rgba(13, 20, 30, 0.9) 100%);
        border: 1px solid rgba(16, 185, 129, 0.32);
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    }
    #audio-lab-view .al-tab-clips .al-tab-icon {
        background: rgba(16, 185, 129, 0.16);
        color: #34d399;
        border: 1px solid rgba(16, 185, 129, 0.35);
    }
    #audio-lab-view .al-tab-clips strong { color: #6ee7b7; }
    #audio-lab-view .al-tab-clips small { color: #94a3b8; }
    #audio-lab-view .al-tab-clips:hover,
    #audio-lab-view .al-tab-clips.is-active,
    #audio-lab-view .al-tab-clips[aria-expanded="true"] {
        border-color: #34d399 !important;
        box-shadow: 0 0 16px rgba(16, 185, 129, 0.3) !important;
    }

    /* 6. Playback tools (Tactical Blue) */
    #audio-lab-view .al-tab-tools {
        background: linear-gradient(145deg, rgba(59, 130, 246, 0.12) 0%, rgba(13, 20, 30, 0.9) 100%);
        border: 1px solid rgba(59, 130, 246, 0.32);
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    }
    #audio-lab-view .al-tab-tools .al-tab-icon {
        background: rgba(59, 130, 246, 0.16);
        color: #60a5fa;
        border: 1px solid rgba(59, 130, 246, 0.35);
    }
    #audio-lab-view .al-tab-tools strong { color: #93c5fd; }
    #audio-lab-view .al-tab-tools small { color: #94a3b8; }
    #audio-lab-view .al-tab-tools:hover,
    #audio-lab-view .al-tab-tools.is-active,
    #audio-lab-view .al-tab-tools[aria-expanded="true"] {
        border-color: #60a5fa !important;
        box-shadow: 0 0 16px rgba(59, 130, 246, 0.3) !important;
    }

    /* Night-Vision "Red Mode" Compliance */
    [data-theme="red"] #audio-lab-view .al-mobile-tab-btn,
    body.red-mode #audio-lab-view .al-mobile-tab-btn {
        background: linear-gradient(145deg, rgba(220, 38, 38, 0.12) 0%, rgba(12, 2, 2, 0.88) 100%) !important;
        border-color: rgba(220, 38, 38, 0.35) !important;
        box-shadow: none !important;
    }
    [data-theme="red"] #audio-lab-view .al-mobile-tab-btn .al-tab-icon,
    body.red-mode #audio-lab-view .al-mobile-tab-btn .al-tab-icon {
        background: rgba(220, 38, 38, 0.18) !important;
        color: #f87171 !important;
        border-color: rgba(220, 38, 38, 0.4) !important;
    }
    [data-theme="red"] #audio-lab-view .al-mobile-tab-btn strong,
    body.red-mode #audio-lab-view .al-mobile-tab-btn strong {
        color: #fca5a5 !important;
        text-shadow: none !important;
    }
    [data-theme="red"] #audio-lab-view .al-mobile-tab-btn small,
    body.red-mode #audio-lab-view .al-mobile-tab-btn small {
        color: rgba(248, 113, 113, 0.65) !important;
    }

    /* AI button in Red Mode: highlighted with luminous ruby/crimson */
    [data-theme="red"] #audio-lab-view .al-tab-ai,
    body.red-mode #audio-lab-view .al-tab-ai {
        background: linear-gradient(145deg, rgba(255, 51, 102, 0.18) 0%, rgba(185, 28, 28, 0.12) 100%) !important;
        border-color: rgba(255, 77, 109, 0.55) !important;
        box-shadow: 0 0 16px rgba(255, 51, 102, 0.25) !important;
    }
    [data-theme="red"] #audio-lab-view .al-tab-ai strong,
    body.red-mode #audio-lab-view .al-tab-ai strong {
        color: #ffe4e6 !important;
    }
    [data-theme="red"] #audio-lab-view .al-tab-ai .al-tab-icon,
    body.red-mode #audio-lab-view .al-tab-ai .al-tab-icon {
        background: rgba(255, 51, 102, 0.25) !important;
        color: #ff4d6d !important;
        border-color: rgba(255, 77, 109, 0.5) !important;
    }
    [data-theme="red"] #audio-lab-view .al-tab-ai .al-tab-ai-badge,
    body.red-mode #audio-lab-view .al-tab-ai .al-tab-ai-badge {
        background: rgba(255, 51, 102, 0.3) !important;
        border-color: #ff4d6d !important;
        color: #ffe4e6 !important;
        text-shadow: 0 0 6px rgba(255, 77, 109, 0.6) !important;
        box-shadow: 0 0 8px rgba(255, 51, 102, 0.4) !important;
    }
    [data-theme="red"] #audio-lab-view .al-mobile-tab-btn:hover,
    [data-theme="red"] #audio-lab-view .al-mobile-tab-btn.is-active,
    body.red-mode #audio-lab-view .al-mobile-tab-btn:hover,
    body.red-mode #audio-lab-view .al-mobile-tab-btn.is-active {
        border-color: #ff4d6d !important;
        box-shadow: 0 0 14px rgba(239, 68, 68, 0.35) !important;
    }

#audio-lab-view.al-player-first .daw-main-canvas > .daw-transport {
        border-radius: 12px;
        background: #101923;
        box-shadow: 0 8px 24px #0008;
    }

    #audio-lab-view button,
    #audio-lab-view select,
    #audio-lab-view input:not([type="range"]):not([type="checkbox"]):not([type="file"]) {
        min-height: 44px;
    }

    #audio-lab-view .al-mobile-home-heading button,
    #al-mobile-sheet-close {
        flex-shrink: 0;
        padding: 10px 14px;
        color: #a5f3fc;
        background: #102b38;
        border: 1px solid #297083;
        border-radius: 10px;
        font-weight: bold;
    }

    #al-mobile-sheet-content .al-mobile-panel { width: 100%; }
    #al-mobile-sheet-content .daw-source-strip { margin: 0; }
    #al-mobile-sheet-content .daw-mobile-quick-actions { padding: 0; max-width: none; margin: 0; }
    #al-mobile-sheet-content .daw-rack-panel { order: initial; }
    #al-mobile-sheet-content .daw-ai-suite { display: flex; flex-direction: column; }
    #al-mobile-sheet-content .daw-ai-header { flex-wrap: wrap; gap: 10px; }
    #al-mobile-sheet-content .daw-ai-header > div { flex-wrap: wrap; min-width: 0; max-width: 100%; }
    #al-mobile-sheet-player .daw-transport { margin: 0; padding: 0; border: 0; background: transparent; }
    #audio-lab-view .al-selection-capsule { z-index: 1050; }
}
