    /* =========================================
       UNIMAIL THEME SYSTEM (VOGUE EDITORIAL)
       ========================================= */
    :root {
      --serif: "Playfair Display", Georgia, serif;
      --garamond: "EB Garamond", Georgia, serif;
      --sans: "Outfit", system-ui, sans-serif;
      --mono: "JetBrains Mono", monospace;
    }

    [data-theme="light"] {
      --bg-base: #f4f3f0;
      --bg-panel: #ffffff;
      --text-main: #1a1a1a;
      --text-muted: rgba(26,26,26,0.65);
      --text-ghost: rgba(26,26,26,0.35);
      --border: rgba(0,0,0,0.08);
      --border-strong: rgba(0,0,0,0.15);
      --accent: #b48c46;
      --shadow-soft: 0 10px 30px rgba(0,0,0,0.04);
      --shadow-float: 0 20px 40px rgba(0,0,0,0.08);
      --shadow-heavy: 0 30px 60px rgba(0,0,0,0.15);
    }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html, body { height: 100%; overflow: hidden; background: var(--bg-base); font-family: var(--sans); color: var(--text-main); }

    /* CORE ARCHITECTURE */
    .shell { display: flex; height: 100vh; width: 100vw; position: relative; z-index: 1; overflow: hidden; }
    .main { flex: 1; display: flex; flex-direction: column; min-width: 0; height: 100vh; }
    .cascade-zone { flex: 1; display: flex; flex-direction: column; min-width: 0; position: relative; overflow: hidden; }
    .panes-viewport { flex: 1; display: flex; padding: 4rem 3rem 3rem 3rem; overflow-x: auto; overflow-y: hidden; align-items: flex-start; scrollbar-width: none; scroll-behavior: smooth; }

    /* STANDARD PANELS & ORB */
    .gen-pane { width: min(850px, 92vw); min-width: 400px; height: calc(100vh - 7rem); position: relative; flex-shrink: 0; margin-right: 1.5rem; perspective: 1000px; }

    .gen-pane-inner {
        padding: 3rem 4rem; height: 100%; background: var(--bg-panel); border: 1px solid var(--border);
        border-radius: 2px; box-shadow: var(--shadow-soft); overflow-y: auto; overflow-x: hidden;
        scrollbar-width: none; position: relative; z-index: 5;
        transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), filter 0.8s ease, opacity 0.8s ease;
        transform-origin: center center;
    }
    .gen-pane-inner::-webkit-scrollbar { display: none; }

    .gen-pane-inner.is-recessed {
        transform: scale(0.92) translateY(20px);
        filter: blur(6px); opacity: 0.5; pointer-events: none;
    }

    .guided-orb {
        position: fixed; left: 50%; bottom: 3rem; transform: translateX(-50%); width: 60px; height: 60px;
        border-radius: 50%; z-index: 15000; cursor: pointer;
        background: radial-gradient(circle at 30% 30%, #ffd97d, #b48c46, #4a3311);
        box-shadow: 0 0 40px rgba(180, 140, 70, 0.4), inset 0 0 20px rgba(255, 255, 255, 0.5);
        transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.4s ease;
    }
    .guided-orb:hover { transform: translateX(-50%) scale(1.05); }

    /* DIRECTORS CONSOLE */
    .solid-popover {
        position: fixed; left: 50%; bottom: 8.5rem; width: 380px; padding: 1.5rem;
        background: var(--bg-panel); border: 1px solid var(--border-strong); border-radius: 8px;
        box-shadow: var(--shadow-heavy); z-index: 14000; transform-origin: bottom center;
        transform: translateX(-50%) scale(0.9) translateY(10px); opacity: 0; pointer-events: none;
        transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
    }
    .solid-popover.is-open { transform: translateX(-50%) scale(1) translateY(0); opacity: 1; pointer-events: auto; }

    .input-wrapper { position: relative; width: 100%; margin-top: 1rem; }
    .popover-input {
        width: 100%; background: var(--bg-base); border: 1px solid var(--border); border-radius: 4px;
        padding: 0.85rem 1rem; color: var(--text-main); font-family: var(--sans); outline: none;
        position: relative; z-index: 2;
    }

    .filter-panel {
        position: absolute; bottom: 0; left: calc(100% + 1.5rem);
        display: flex; flex-direction: column; gap: 0.6rem; justify-content: flex-end; align-items: flex-start;
        opacity: 0; transform: translateX(-15px); pointer-events: none;
        transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
        z-index: 1;
    }
    .popover-input:focus ~ .filter-panel { opacity: 1; transform: translateX(0); pointer-events: auto; }

    .filter-chip {
        background: rgba(255,255,255,0.9); backdrop-filter: blur(8px); border: 1px solid var(--border-strong);
        border-radius: 20px; padding: 0.5rem 1rem; font-family: var(--mono); font-size: 9px;
        text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted);
        cursor: pointer; box-shadow: var(--shadow-float); transition: all 0.2s ease;
        white-space: nowrap;
    }
    .filter-chip:hover { background: var(--text-main); color: #fff; border-color: var(--text-main); transform: translateX(4px); }

    /* SPATIAL GALLERY (FULL SCREEN) */
    .spatial-gallery {
        position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
        z-index: 12000; display: flex; align-items: center; justify-content: center;
        opacity: 0; pointer-events: none;
        transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.8s ease;
        background: var(--bg-base);
        overflow: hidden; perspective: 2000px;
    }
    .spatial-gallery.is-summoned { opacity: 1; pointer-events: auto; }
    .spatial-gallery.is-editing-mode { background: #111111; }

    /* OPAQUE GLOBAL HEADER */
    .gallery-header {
        position: absolute; top: 0; left: 0; width: 100vw;
        background: rgba(244, 243, 240, 0.92); backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--border-strong);
        z-index: 15000; padding: 1.5rem 3rem;
        display: flex; justify-content: space-between; align-items: flex-start;
        box-shadow: 0 4px 20px rgba(0,0,0,0.03);
        transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .spatial-gallery.has-hero .gallery-header { opacity: 0; transform: translateY(-20px); pointer-events: none; }

    .gallery-metadata { display: flex; flex-direction: column; gap: 0.5rem; }
    .breadcrumb-trail { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-main); font-weight: bold; }
    .breadcrumb-link { cursor: pointer; transition: color 0.2s ease; }
    .breadcrumb-link:hover { color: var(--accent); }

    .view-toggles {
        margin-top: 1rem; font-family: var(--garamond); font-style: italic; font-size: 1.2rem; color: var(--text-ghost); display: flex; gap: 1rem;
    }
    .view-toggle { cursor: pointer; transition: color 0.3s ease; }
    .view-toggle:hover { color: var(--accent); }
    .view-toggle.is-active { color: var(--text-main); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }

    /* ACTION HUB */
    .action-hub { position: relative; }
    .btn-new {
        background: rgba(255,255,255,0.85); backdrop-filter: blur(12px);
        border: 1px solid var(--border-strong); border-radius: 30px;
        padding: 0.6rem 1.8rem; font-family: var(--mono); font-size: 11px;
        text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-main);
        cursor: pointer; box-shadow: var(--shadow-float); transition: all 0.3s ease;
    }
    .btn-new:hover { background: var(--text-main); color: white; transform: translateY(-2px); box-shadow: var(--shadow-heavy); }

    .action-dropdown {
        position: absolute; top: 120%; right: 0; background: var(--bg-panel);
        border: 1px solid var(--border-strong); box-shadow: var(--shadow-heavy);
        border-radius: 4px; padding: 0.5rem 0; width: 200px;
        opacity: 0; pointer-events: none; transform: translateY(-10px); transition: all 0.3s ease;
    }
    .action-dropdown.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
    .dropdown-item { padding: 0.8rem 1.5rem; font-family: var(--sans); font-size: 0.9rem; color: var(--text-main); cursor: pointer; transition: background 0.2s ease; }
    .dropdown-item:hover { background: var(--bg-base); color: var(--accent); }

    /* CONTEXTUAL AURA */
    .contextual-aura {
        position: fixed; top: 85%; left: 50%; transform: translate(-50%, 20px);
        background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(12px);
        border: 1px solid var(--border-strong); border-radius: 24px;
        display: flex; align-items: center; justify-content: flex-start;
        padding: 0.5rem; box-shadow: var(--shadow-heavy); z-index: 15500;
        opacity: 0; pointer-events: none; overflow: hidden;
        height: 48px; width: auto;
        transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .contextual-aura.is-visible { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
    .spatial-gallery.is-editing-mode .contextual-aura { opacity: 0; pointer-events: none; transform: translate(-50%, 20px); }

    .aura-controls-row { display: flex; gap: 0.5rem; align-items: center; height: 32px; }
    .aura-btn {
        background: transparent; border: none; font-family: var(--mono);
        font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em;
        color: var(--text-muted); cursor: pointer; padding: 0.6rem 1.2rem;
        border-radius: 20px; transition: all 0.2s ease; white-space: nowrap;
    }
    .aura-btn:hover { background: rgba(0,0,0,0.05); color: var(--text-main); }
    .aura-btn.is-active { background: var(--text-main); color: #ffffff; }

    /* SWIMLANES */
    .swimlanes-wrapper {
        position: absolute; top: 0; left: 0; width: 100vw; height: 100vh;
        padding: 12rem 4rem 6rem 4rem; overflow-y: auto; overflow-x: hidden;
        z-index: 10010; opacity: 0; pointer-events: none;
        transition: opacity 0.6s ease;
    }
    .spatial-gallery.is-summoned .swimlanes-wrapper { opacity: 1; pointer-events: auto; }
    .spatial-gallery.is-editing-mode .swimlanes-wrapper { opacity: 0 !important; pointer-events: none; }

    .swimlane-section { margin-bottom: 5rem; }
    .swimlane-header {
        font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-main); margin-bottom: 1.5rem;
        border-bottom: 1px solid var(--border-strong); padding-bottom: 0.5rem; display: flex; justify-content: space-between; align-items: flex-end;
    }
    .swimlane-track { display: flex; gap: 2rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 2rem; align-items: stretch; }
    .swimlane-track::-webkit-scrollbar { display: none; }

    .swimlane-item {
        flex-shrink: 0; border-radius: 2px; box-shadow: var(--shadow-soft);
        cursor: grab; transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
        background: var(--bg-panel); border: 1px solid var(--border);
        overflow: hidden; display: flex; flex-direction: column; position: relative;
    }
    .swimlane-item:active { cursor: grabbing; }
    .swimlane-item:hover { transform: translateY(-8px); box-shadow: var(--shadow-heavy); border-color: var(--accent); z-index: 10; }

    .edited-badge {
        position: absolute; top: 1rem; right: 1rem; background: rgba(0,0,0,0.8); color: white;
        font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; padding: 0.3rem 0.6rem; border-radius: 20px;
        backdrop-filter: blur(4px); z-index: 10; display: none;
    }
    .swimlane-item.has-edits .edited-badge { display: block; }

    .item-preview-content { display: flex; flex-direction: column; width: 100%; height: 100%; position: relative; }
    .swimlane-item[data-type="image"] .item-preview-content, .swimlane-item[data-type="moodboard"] .item-preview-content { width: 320px; height: 420px; }
    .swimlane-item img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: filter 0.3s ease; }

    .swimlane-item[data-type="folder"] { width: 160px; height: 420px; background: var(--text-main); border: none; color: var(--bg-base); cursor: pointer; align-items: center; justify-content: center; }
    .swimlane-item[data-type="folder"]:hover { background: #000; }
    .folder-spine { writing-mode: vertical-rl; transform: scale(-1); display: flex; align-items: center; gap: 2rem; }
    .folder-spine-title { font-family: var(--mono); font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; white-space: nowrap; }
    .folder-spine-count { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--accent); }

    .swimlane-item[data-type="text"] .item-preview-content { width: 380px; height: auto; min-height: 250px; padding: 2.5rem; }
    .swimlane-item[data-type="project"] .item-preview-content { width: 280px; height: 180px; padding: 2rem; justify-content: center; align-items: center; text-align: center; }

    .list-view-content { display: none; width: 100%; flex-direction: row; justify-content: space-between; align-items: center; padding: 1rem 0; }
    .swimlanes-wrapper.is-list-view .swimlane-track { flex-direction: column; gap: 0; padding-bottom: 0; align-items: stretch; }
    .swimlanes-wrapper.is-list-view .swimlane-item { width: 100% !important; height: auto !important; min-height: 0 !important; border: none; border-bottom: 1px solid var(--border); border-radius: 0; box-shadow: none; background: transparent; padding: 0; color: var(--text-main); }
    .swimlanes-wrapper.is-list-view .item-preview-content { display: none; }
    .swimlanes-wrapper.is-list-view .list-view-content { display: flex; }

    /* GHOST LIGHTBOX (IMMERSIVE FULLSCREEN) */
    .ghost-lightbox-wrapper {
        position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) translateZ(100px);
        z-index: 14500; opacity: 0; pointer-events: none;
        transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
        display: flex; flex-direction: column; align-items: center; width: 100vw; height: 100vh; justify-content: center;
    }
    .ghost-lightbox-wrapper.is-visible { opacity: 1; pointer-events: auto; }
    .ghost-lightbox-wrapper.is-editing { transform: translate(calc(-50% - 190px), -50%) translateZ(100px); }

    .ghost-lightbox-img { max-height: 85vh; max-width: 90vw; object-fit: contain; box-shadow: 0 40px 100px rgba(0,0,0,0.4); cursor: zoom-out; border-radius: 4px; transition: filter 0.1s linear; }
    .pixi-engine-canvas { max-height: 85vh; max-width: 80vw; box-shadow: 0 40px 100px rgba(0,0,0,0.6); border-radius: 4px; object-fit: contain; touch-action: none;}

    /* CROP OVERLAY MASK */
    .crop-overlay {
        position: absolute; top: 50%; left: calc(50% - 190px); transform: translate(-50%, -50%);
        box-shadow: 0 0 0 9999px rgba(17,17,17,0.85);
        border: 1px solid rgba(255,255,255,0.2); pointer-events: none; z-index: 14600; display: none; transition: width 0.3s ease, height 0.3s ease;
    }
    .spatial-gallery.is-editing-mode .crop-overlay.is-active { display: block; }

    /* AI SCANNER LINE */
    .scanner-laser {
        position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: var(--accent);
        box-shadow: 0 0 20px 5px rgba(180, 140, 70, 0.6); z-index: 14600; opacity: 0; pointer-events: none;
    }
    .scanner-laser.is-scanning { animation: scanAnim 2.5s cubic-bezier(0.4, 0.0, 0.2, 1) forwards; opacity: 1; }
    @keyframes scanAnim { 0% { top: 0%; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }

    /* LIGHTBOX TEXT TARGET */
    .ghost-lightbox-text {
        width: 600px; max-height: 80vh; background: var(--bg-panel); padding: 4rem;
        box-shadow: 0 40px 100px rgba(0,0,0,0.3); border: 1px solid var(--border);
        overflow-y: auto; cursor: zoom-out; border-radius: 4px;
    }

    .lightbox-metadata {
        position: absolute; bottom: 3rem; left: 3rem; display: flex; flex-direction: column; gap: 0.3rem;
        pointer-events: none; opacity: 0; transform: translateY(10px); transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
    }
    .ghost-lightbox-wrapper.is-visible .lightbox-metadata { opacity: 1; transform: translateY(0); }
    .spatial-gallery.is-editing-mode .lightbox-metadata { opacity: 0; transition-delay: 0s; pointer-events: none; }

    .meta-title { font-family: var(--serif); font-size: 2.2rem; font-style: italic; color: var(--text-main); }
    .meta-date { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--text-muted); text-transform: uppercase; }
    .meta-edit-flag { font-family: var(--mono); font-size: 10px; color: var(--accent); font-weight: bold; letter-spacing: 0.1em; margin-bottom: 0.5rem; display: none; }

    /* FLOATING PILL TOOLBAR (LEFT) */
    .left-toolbar {
        position: fixed; left: 2rem; top: 3rem;
        background: rgba(255,255,255,0.05); backdrop-filter: blur(24px);
        border: 1px solid rgba(255,255,255,0.1); border-radius: 40px;
        display: flex; flex-direction: column; gap: 0.8rem; padding: 1rem 0.5rem;
        z-index: 15500; opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
    }
    .spatial-gallery.is-editing-mode .left-toolbar { opacity: 1; pointer-events: auto; }

    .tool-btn {
        width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
        cursor: pointer; transition: all 0.2s ease; position: relative; color: #888;
    }
    .tool-btn.is-active, .tool-btn:hover { background: rgba(255,255,255,0.15); color: white; }
    .tool-icon { width: 20px; height: 20px; fill: currentColor; }

    /* FLYOUT POPUPS */
    .flyout-panel {
        position: absolute; left: calc(100% + 1.5rem); top: 50%; transform: translateY(-50%) translateX(-10px);
        opacity: 0; pointer-events: none; background: #1a1a1a; padding: 1.5rem; border-radius: 8px;
        border: 1px solid #333; transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1); box-shadow: var(--shadow-heavy);
        width: 220px; display: flex; flex-direction: column; gap: 1rem;
    }
    .tool-btn.show-flyout .flyout-panel { opacity: 1; pointer-events: auto; transform: translateY(-50%) translateX(0); }
    .flyout-panel .slider-label { color: #ccc; }

    /* STUDIO ADJUST PANEL (LAYERS & GLOBAL) */
    .studio-adjust-panel {
        position: fixed; top: 0; right: 0; width: 380px; height: 100vh;
        background: #1a1a1a; border-left: 1px solid #333;
        padding: 0; z-index: 15500; display: flex; flex-direction: column;
        transform: translateX(100%); opacity: 0; pointer-events: none; transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .studio-adjust-panel.is-visible { transform: translateX(0); opacity: 1; pointer-events: auto; box-shadow: -30px 0 80px rgba(0,0,0,0.5); }

    .panel-tabs {
        display: flex; border-bottom: 1px solid #333; padding: 2rem 2rem 0 2rem; gap: 1.5rem; flex-shrink: 0;
    }
    .tab-btn {
        font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
        color: #666; padding-bottom: 1rem; cursor: pointer; transition: color 0.3s ease; position: relative;
    }
    .tab-btn:hover { color: #ccc; }
    .tab-btn.is-active { color: white; }
    .tab-btn.is-active::after {
        content: ''; position: absolute; bottom: -1px; left: 0; width: 100%; height: 2px; background: var(--accent);
    }

    /* Fixed Layout Bug for Tab Content */
    .tab-content { flex: 1; display: none; min-height: 0; }
    #content-global.is-active { display: flex; flex-direction: column; padding: 2rem; gap: 2rem; overflow-y: auto; scrollbar-width: none; }
    #content-layers.is-active { display: flex; flex-direction: column; padding: 0; overflow: hidden; min-height: 0; }

    /* LAYER LIST ACCORDION & DUAL THUMBNAILS */
    .layers-list { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 2rem; display: flex; flex-direction: column; gap: 1rem; scrollbar-width: none; min-height: 0; }
    .layers-list::-webkit-scrollbar { display: none; }

    .layer-item { border: 1px solid #333; border-radius: 6px; background: rgba(255,255,255,0.02); overflow: hidden; transition: border-color 0.3s ease; flex-shrink: 0; }
    .layer-item.is-active { border-color: var(--accent); }

    .layer-header {
        padding: 1rem; display: flex; align-items: center; justify-content: space-between;
        background: rgba(255,255,255,0.03);
    }

    .layer-header-left { display: flex; align-items: center; gap: 0.6rem; }
    .layer-thumb { width: 32px; height: 32px; object-fit: cover; background: #000; border: 1px solid #555; border-radius: 2px; cursor: pointer; transition: all 0.2s ease; }
    .layer-thumb.is-target { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
    .layer-thumb:hover { border-color: white; }

    .layer-title-wrap { display: flex; align-items: center; gap: 0.4rem; cursor: default; }
    .layer-title { font-family: var(--sans); font-size: 0.9rem; color: white; font-weight: 500; }
    .layer-mask-icon-mini { width: 12px; height: 12px; fill: currentColor; opacity: 0.5; color: white; }

    .layer-opacity-wrap { display: flex; align-items: center; gap: 0.8rem; width: 90px; }
    .layer-opacity-label { font-family: var(--mono); font-size: 9px; color: #888; }
    .layer-opacity-slider { -webkit-appearance: none; width: 100%; height: 2px; background: #444; outline: none; }
    .layer-opacity-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 10px; height: 10px; border-radius: 50%; background: white; cursor: pointer; }

    .layer-body { display: none; padding: 1.5rem 1rem; border-top: 1px solid #333; }
    .layer-item.is-active .layer-body { display: block; }

    .layer-actions { display: flex; gap: 0.5rem; padding: 0 1rem 1rem 1rem; background: rgba(255,255,255,0.03); }

    /* Fixed Bottom Bar */
    .layers-bottom-bar {
        display: flex; justify-content: flex-end; gap: 0.8rem; padding: 1rem 2rem;
        border-top: 1px solid #333; background: #1a1a1a; flex-shrink: 0;
    }
    .layer-action-icon { width: 32px; height: 32px; border-radius: 4px; display: flex; align-items: center; justify-content: center; color: #888; cursor: pointer; transition: all 0.2s ease; background: rgba(255,255,255,0.05); }
    .layer-action-icon:hover { background: rgba(255,255,255,0.15); color: white; }

    /* MASK CONTEXT MENU */
    .action-dropdown.mask-ctx { padding: 0.25rem 0; width: 160px; }
    .action-dropdown.mask-ctx .dropdown-item { padding: 0.6rem 1rem; font-size: 0.85rem; }

    /* SHARED ADJUSTMENT CONTROLS */
    .shared-adjustments-block { display: flex; flex-direction: column; gap: 1.5rem; flex-shrink: 0; padding-bottom: 1rem; }

    .panel-header { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: #888; border-bottom: 1px solid #333; padding-bottom: 0.5rem; margin-bottom: 0.2rem;}
    .slider-group-vertical { display: flex; flex-direction: column; gap: 0.6rem; }
    .slider-label { font-family: var(--mono); font-size: 10px; text-transform: uppercase; color: #ccc; display: flex; justify-content: space-between;}
    .slider-val { color: #888; }
    .aesthetic-slider { -webkit-appearance: none; width: 100%; height: 2px; background: #333; border-radius: 2px; outline: none; margin-top: 0.5rem; }
    .aesthetic-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; cursor: pointer; box-shadow: var(--shadow-soft); transition: transform 0.1s ease;}

    .curve-editor-wrapper { display: flex; flex-direction: column; gap: 1rem; align-items: center; }
    .curve-canvas { width: 100%; aspect-ratio: 1; background: #222; border: 1px solid #444; border-radius: 2px; cursor: crosshair; }
    .curve-channels { display: flex; gap: 1rem; margin-top: 0.2rem; }
    .channel-toggle { font-family: var(--mono); font-size: 11px; cursor: pointer; color: #666; transition: color 0.2s ease; padding: 0.2rem 0; }
    .channel-toggle:hover { color: var(--accent); }
    .channel-toggle.is-active { color: white; font-weight: bold; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: white; }

    .studio-actions { display: flex; gap: 1rem; margin-top: auto; padding: 1rem 2rem 3rem 2rem; flex-shrink: 0; flex-direction: column;}
    .btn-save { background: white; color: black; border: none; border-radius: 30px; padding: 0.8rem 1.5rem; font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; cursor: pointer; width: 100%; transition: background 0.3s ease; }
    .btn-save:hover { background: var(--accent); color: white;}
    .btn-cancel { background: transparent; border: 1px solid #444; color: #ccc; border-radius: 30px; padding: 0.8rem 1.5rem; font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; cursor: pointer; width: 100%; transition: border-color 0.3s ease; }

    /* TIMELINE SCRUBBER */
    .timeline-wrapper {
        position: fixed; bottom: 3rem; left: calc(50% - 190px);
        transform: translateX(-50%) translateY(20px); width: auto; z-index: 15000;
        opacity: 0; pointer-events: none; transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
        display: flex; flex-direction: column; align-items: center; gap: 1.5rem;
    }
    .spatial-gallery.is-editing-mode .timeline-wrapper { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
    .timeline-track-container { position: relative; width: auto; height: 20px; display: flex; align-items: center; justify-content: center;}
    .timeline-line { position: absolute; left: 0; right: 0; height: 1px; background: rgba(255,255,255,0.2); z-index: 0; }
    .timeline-nodes { display: flex; gap: 40px; position: relative; z-index: 1; align-items: center;}
    .timeline-node { width: 8px; height: 8px; border-radius: 50%; background: #666; cursor: pointer; transition: all 0.2s ease; position: relative; }
    .timeline-node:hover { transform: scale(1.5); background: white; }
    .timeline-node.is-active { background: var(--accent); box-shadow: 0 0 10px rgba(180,140,70,0.8); }
    .timeline-label { font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: 0.15em; color: #888; background: #111; padding: 0.2rem 0.8rem; border-radius: 12px; border: 1px solid #333; }
