:root {
            --bg-color: #ffffff;
            --font-main: 'Courier New', Courier, monospace;
            --font-header: 'Didot', 'Bodoni MT', 'Times New Roman', serif;
            --drop-zone-bg: #e8edf2;
            --drop-zone-hover: #bccbe0;
            --artwork-zone-bg: #B8C9CE;
            --artwork-zone-hover: #90aab0;
        }

        * { box-sizing: border-box; }

        body {
            font-family: var(--font-main);
            background-color: var(--bg-color);
            color: #000;
            margin: 0; padding: 0;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            zoom: 0.7; /* 70% Zoom as requested */
        }

        .top-section-wrapper {
            background: linear-gradient(to bottom, #e8edf2 0%, #f4f6f8 80%, #ffffff 100%);
            width: 100%;
        }

        /* ─── HEADER ─── */
        header { text-align: center; padding: 60px 20px 40px; position: relative; }
        h1 {
            font-family: var(--font-header);
            font-weight: 400;
            letter-spacing: 8px;
            margin: 0;
            text-transform: uppercase;
            font-size: 2.5rem;
        }

        #appLogo {
            display: flex;
            justify-content: center;
            align-items: flex-start;
            gap: 20px;
        }

        .app-logo-img {
            height: 2em;
            width: auto;
            min-width: 0;        /* CRITICAL: Firefox flexbox fix — see note below */
            min-height: 0;
            flex: 0 0 auto;
            object-fit: contain;
            display: block;
        }

        .reset-all-btn {
            position: absolute;
            top: 60px;
            right: 40px;
            background: #fff;
            border: 1px solid #ccc;
            font-family: var(--font-main);
            font-size: 0.65rem;
            letter-spacing: 1.5px;
            text-transform: uppercase;
            padding: 8px 16px;
            cursor: pointer;
            transition: all 0.2s;
        }
        .reset-all-btn:hover {
            border-color: #000;
            background: #f5f5f5;
        }

        /* ─── NAV ─── */
        .nav-container {
            display: flex;
            justify-content: center;
            margin-bottom: 40px;
        }

        .tab-btn {
            background: none; border: none;
            font-family: var(--font-main);
            font-size: 0.9rem; padding: 10px 30px;
            cursor: pointer; color: #999;
            transition: color 0.3s;
            text-transform: uppercase; letter-spacing: 2px;
            position: relative;
        }
        .tab-btn:first-child::after {
            content: ''; position: absolute;
            right: 0; top: 50%; transform: translateY(-50%);
            height: 1.5em; width: 1px; background: #000;
        }
        .tab-btn:hover { color: #000; }
        .tab-btn.active { color: #000; font-weight: bold; }

        /* ─── MAIN ─── */
        main {
            flex: 1; display: flex;
            justify-content: center; align-items: flex-start;
            padding: 0 20px; padding-bottom: 120px;
        }

        .tab-content {
            display: none; width: 100%; max-width: 500px; text-align: center;
        }
        .tab-content.active { display: block; animation: fadeIn 0.8s ease; }
        @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

        /* ─── SCENE-LOADED OVERRIDES ─── */
        body.scene-loaded main {
            justify-content: flex-start; align-items: flex-start; padding-left: 40px;
        }
        body.scene-loaded #tab-individual { max-width: 100%; text-align: left; display: flex; flex-direction: column; align-items: center; }
        body.scene-loaded .drop-zone-wrapper { display: none; }

        /* ─── INITIAL SCENE DROP ZONE ─── */
        .drop-zone {
            border: 1px solid transparent;
            background-color: var(--drop-zone-bg);
            width: 100%; max-width: 250px; aspect-ratio: 3 / 2;
            display: flex; flex-direction: column;
            justify-content: center; align-items: center;
            transition: all 0.4s ease; cursor: pointer;
            position: relative; margin: 0 auto;
        }
        .drop-zone:hover, .drop-zone.drag-over {
            background-color: var(--drop-zone-hover);
            border: 1px solid #000;
            box-shadow: 0 20px 40px rgba(0,0,0,0.05);
            transform: translateY(-5px);
        }
        .plus-mark { font-size: 3rem; font-weight: 400; display: block; margin-bottom: 20px; line-height: 1; }
        .import-text { font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; }
        .format-text { font-size: 0.65rem; color: #888; text-transform: uppercase; letter-spacing: 2px; }
        .error-msg {
            display: none; color: #c00; font-size: 0.7rem;
            letter-spacing: 1px; text-transform: uppercase; margin-top: 14px; text-align: center;
        }

        /* ─────────────────────────────────────────────
           LOADED VIEW
        ───────────────────────────────────────────── */
        .loaded-view {
            display: none; flex-direction: column; gap: 0; width: 100%;
        }
        body.scene-loaded .loaded-view { display: flex; animation: fadeIn 0.6s ease; }

        .scene-row {
            display: flex; flex-direction: row; align-items: center; width: 100%; justify-content: flex-start;
            overflow-x: auto;
            -ms-overflow-style: none; scrollbar-width: none;
            padding-bottom: 20px; /* space for scrollbar/shadows */
        }
        .scene-row::-webkit-scrollbar { display: none; }

        /* Camera selector + thumbnail */
        .scene-left {
            display: flex; flex-direction: row; align-items: flex-start;
            gap: 12px; flex-shrink: 0;
            margin-right: 40px;
            padding-right: 40px;
            border-right: 1px solid #ddd;
        }

        .camera-selector {
            display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 4px;
        }

        .view-label {
            font-size: 0.65rem; letter-spacing: 2px; text-transform: uppercase;
            color: #555; margin-bottom: 8px;
        }

        .cam-btn {
            background: #222; color: #fff; border: none;
            font-family: var(--font-main); font-size: 0.7rem; font-weight: 400;
            letter-spacing: 1px; width: 34px; height: 26px;
            display: flex; align-items: center; justify-content: center;
            cursor: pointer; transition: all 0.2s; opacity: 0.4;
        }
        .cam-btn.active { opacity: 1; font-weight: bold; }
        .cam-btn:hover { opacity: 0.8; }

        .thumbnail-wrapper { position: relative; display: inline-block; flex-shrink: 0; }
        .scene-thumbnail {
            display: block; max-width: 400px; max-height: 280px;
            width: auto; height: auto; border: 3px solid #000;
        }
        .scene-name-label {
            position: absolute; bottom: 0; left: 0;
            background: #000; color: #fff;
            font-size: 0.75rem; letter-spacing: 2px; padding: 6px 14px;
        }

        /* Scene Control Buttons */
        .scene-delete-btn, .scene-swap-btn {
            position: absolute;
            background: rgba(0,0,0,0.6);
            color: #fff;
            border: none;
            width: 46px;
            height: 46px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
            font-size: 24px;
            z-index: 10;
            border-radius: 4px;
        }
        .scene-delete-btn {
            top: 8px;
            right: 8px;
        }
        .scene-swap-btn {
            top: 62px;
            right: 8px;
            font-size: 20px;
        }
        .scene-delete-btn:hover, .scene-swap-btn:hover {
            background: rgba(0,0,0,0.9);
            transform: scale(1.05);
        }

        /* Global Aspect Ratio Display */
        .global-ratio-display {
            display: none; justify-content: center; align-items: center;
            gap: 16px; margin-bottom: 20px; width: 100%; text-align: center;
        }
        .global-ratio-display.visible { display: flex; }
        .global-carousel-arrow {
            background: none; border: none; font-size: 1.2rem; cursor: pointer;
            color: #555; padding: 4px; transition: color 0.2s;
        }
        .global-carousel-arrow:hover { color: #000; }
        
        .global-ratio-badge {
            background: #000; color: #fff; border: none;
            font-family: var(--font-main);
            font-size: 0.7rem; letter-spacing: 4px;
            text-transform: uppercase;
            padding: 12px 24px; min-width: 120px; text-align: center;
            display: flex; justify-content: center; align-items: center;
        }
        .global-ratio-label {
            font-family: var(--font-main); font-weight: bold;
            letter-spacing: 4px; color: #fff;
        }

        /* Drop zone track */
        .drop-zone-track-container {
            display: flex; flex-direction: row; align-items: center; justify-content: center; flex: 1; min-width: 0;
            overflow-x: auto;
            -ms-overflow-style: none; scrollbar-width: none;
            padding: 40px 24px; gap: 16px; /* Added vertical padding for background box */
            background-color: #f5f5f5; /* Light grey background */
            position: relative; /* For absolute positioning of preview btn */
            border-radius: 4px; /* Slight rounding to match inputs */
        }
        .drop-zone-track-container::-webkit-scrollbar { display: none; }

        .drop-zones-center-group {
            display: flex; flex-direction: column; align-items: center;
            /* Give it a fixed minimum width so the carousel never shifts horizontally */
            width: 100%; max-width: 800px; min-width: 500px; /* Increased max-width to 800px */
        }

        .drop-zone-track {
            display: flex; flex-direction: row; align-items: center; justify-content: center;
            gap: 16px; position: relative; width: 100%; min-height: 200px;
        }
        .track-line {
            position: absolute; top: 50%; left: 0; right: 0;
            height: 1px; 
            background: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(51,51,51,1) 50%, rgba(0,0,0,0) 100%); 
            z-index: 0; transform: translateY(-50%);
        }

        /* Artwork drop zones */
        .artwork-drop-zone {
            position: relative; z-index: 1;
            background-color: var(--artwork-zone-bg);
            display: flex; flex-direction: column;
            align-items: center; justify-content: center;
            cursor: pointer; border: 1px solid transparent;
            transition: all 0.3s ease; overflow: hidden; flex-shrink: 0;
        }
        
        .artwork-drop-zone.disabled {
            opacity: 0.5;
            pointer-events: none;
            cursor: not-allowed;
        }

        .zone-reset-btn {
            position: absolute; top: 8px; right: 8px; z-index: 10;
            background: rgba(0,0,0,0.5); color: #fff; border: none;
            width: 24px; height: 24px; border-radius: 4px;
            display: flex; align-items: center; justify-content: center;
            font-size: 14px; cursor: pointer; opacity: 0; transition: opacity 0.2s;
        }
        .artwork-drop-zone:hover .zone-reset-btn { opacity: 1; }
        .zone-reset-btn:hover { background: rgba(0,0,0,0.8); }

        .shuffle-btn {
            position: relative; z-index: 2; flex-shrink: 0;
            background: #f5f5f5; border: 1px solid #ddd; border-radius: 4px;
            width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
            cursor: pointer; font-size: 12px; color: #999;
            transition: all 0.2s;
        }
        .shuffle-btn:hover { border-color: #bbb; color: #555; background: #eaeaea; transform: scale(1.1); }
        
        .zone-status-bar {
            position: absolute; bottom: 0; left: 0; width: 100%;
            background: #000; color: #fff; font-size: 0.6rem; letter-spacing: 1px;
            text-align: center; padding: 4px 0; z-index: 5;
            transform: translateY(100%); transition: transform 0.3s ease;
        }
        
        .crop-warning-badge {
            position: absolute; top: 8px; left: 8px; z-index: 10;
            background: #e74c3c; color: #fff; font-weight: bold;
            font-size: 0.55rem; letter-spacing: 1.5px; text-transform: uppercase;
            padding: 4px 8px; border-radius: 2px; pointer-events: none;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        }
        .zone-status-bar.visible { transform: translateY(0); }
        .artwork-drop-zone:hover,
        .artwork-drop-zone.drag-over-adz { background-color: var(--artwork-zone-hover); }
        .artwork-drop-zone.lead-zone { border: 2px solid #000; box-shadow: 0 0 0 1px rgba(0,0,0,0.3); }

        .adz-plus { font-size: 1.8rem; color: #fff; margin-bottom: 8px; line-height: 1; }
        .adz-text {
            font-size: 0.6rem; letter-spacing: 1.5px; text-transform: uppercase;
            color: #fff; text-align: center; padding: 0 8px;
        }
        .artwork-preview-img {
            position: absolute; top: 0; left: 0;
            width: 100%; height: 100%;
            object-position: center center;
        }

        /* Preview button */
        .preview-btn {
            position: absolute; z-index: 1; /* Absolute positioning inside drop-zone-track-container */
            top: 20px; right: 20px;
            background: #000; color: #fff; border: none;
            font-family: var(--font-main);
            font-size: 0.7rem; letter-spacing: 4px; text-transform: uppercase;
            padding: 12px 24px; cursor: pointer;
            white-space: nowrap; transition: background 0.3s;
        }
        .preview-btn:hover { background: #333; }

        /* ─────────────────────────────────────────────
           FIT PANEL — NEW DESIGN
        ───────────────────────────────────────────── */
        .fit-panel {
            max-height: 0; overflow: hidden;
            transition: max-height 0.45s ease;
            background: #fff;
            margin-top: 40px; width: 100%;
            display: flex; flex-direction: column; align-items: center;
        }
        .fit-panel.open { max-height: 800px; }

        .fit-panel-inner {
            display: flex; flex-direction: column; align-items: center;
            width: 100%; max-width: 600px;
        }

        /* 1. Ratio Carousel (Hidden in fit panel now, moved to global) */
        .ratio-carousel { display: none; }

        /* 2. Preview area */
        .fit-preview-area {
            display: flex; justify-content: center;
            padding: 20px 24px 20px;
        }
        #fitPreviewCanvas { display: block; }

        /* Controls wrapper for centering */
        .fit-controls-wrapper {
            display: flex; flex-direction: column; align-items: center; width: 100%;
        }

        /* 3. Passepartout toggle */
        .passepartout-row {
            display: flex; flex-direction: row; justify-content: center;
            align-items: center; gap: 14px;
            padding: 0 28px 16px; width: 100%;
        }
        .toggle-switch {
            width: 46px; height: 24px;
            background: #ccc; border-radius: 12px;
            position: relative; cursor: pointer;
            transition: background 0.25s; flex-shrink: 0;
        }
        .toggle-switch.on { background: #000; }
        .toggle-knob {
            position: absolute; top: 3px; left: 3px;
            width: 18px; height: 18px;
            background: #fff; border-radius: 50%;
            transition: left 0.25s;
        }
        .toggle-switch.on .toggle-knob { left: 25px; }
        .toggle-label {
            font-size: 0.7rem; letter-spacing: 2px;
            text-transform: uppercase; color: #000;
        }

        /* 4. Alignment controls */
        .alignment-row {
            display: none; flex-direction: row; justify-content: center;
            align-items: center; gap: 12px;
            padding: 0 28px 16px; width: 100%;
        }
        .alignment-label {
            font-size: 0.65rem; letter-spacing: 2px;
            text-transform: uppercase; color: #666;
            white-space: nowrap;
        }
        .alignment-btns { display: flex; flex-direction: row; gap: 4px; }
        .align-btn {
            background: none; border: 1px solid #ccc;
            font-family: var(--font-main);
            font-size: 0.6rem; letter-spacing: 1.5px;
            text-transform: uppercase;
            padding: 5px 12px; cursor: pointer;
            transition: all 0.2s;
        }
        .align-btn:hover { border-color: #000; }
        .align-btn.active { background: #000; color: #fff; border-color: #000; }

        /* 5. Info text */
        .fit-info-text {
            padding: 0 28px 8px; text-align: center;
            font-size: 0.65rem; letter-spacing: 1px;
            color: #666; text-transform: uppercase; width: 100%;
        }
        .fit-warning-text {
            display: none; text-align: center;
            padding: 8px 14px; margin: 0 20px 12px;
            font-size: 0.62rem; letter-spacing: 1px;
            color: #444; text-transform: uppercase;
            background: #f5f5f5; border-left: 2px solid #000;
        }

        /* 6. Apply button */
        .fit-panel-footer { padding: 16px 28px 40px; display: flex; justify-content: center; width: 100%; }
        .apply-fit-btn {
            background: #000; color: #fff; border: none;
            font-family: var(--font-main);
            font-size: 0.7rem; letter-spacing: 4px;
            text-transform: uppercase;
            padding: 12px 36px; cursor: pointer;
            transition: background 0.3s;
        }
        .apply-fit-btn:hover { background: #333; }

        /* ─────────────────────────────────────────────
           PREVIEW SECTION — UI (NEW IN 1.9)
        ───────────────────────────────────────────── */
        .preview-thumbnail-wrapper {
            display: none; /* Shown after generation */
            flex-direction: row; align-items: flex-start;
            gap: 12px; margin-left: 40px; flex-shrink: 0;
            padding-left: 40px; border-left: 1px solid #ddd;
        }
        /* Show immediately when scene is loaded to prevent layout jump */
        body.scene-loaded .preview-thumbnail-wrapper { display: flex; }
        
        .preview-thumb-container {
            position: relative; display: inline-block; flex-shrink: 0;
        }

        .preview-thumbnail {
            display: block; width: 400px; height: 280px; /* Placeholder dimensions */
            object-fit: contain; background-color: #f0f2f4; border: 3px dashed #ccc;
            cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
        }
        .preview-thumbnail.has-image {
            border: 3px solid #000; background-color: transparent;
            width: auto; height: auto; max-width: 400px; max-height: 280px;
        }
        .preview-thumbnail:hover {
            transform: scale(1.02);
            box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        }
        .preview-name-label {
            position: absolute; bottom: 0; left: 0;
            background: #000; color: #fff;
            font-size: 0.75rem; letter-spacing: 1px; padding: 6px 14px;
            pointer-events: none;
        }

        /* Download All Views Button overlay on Preview Thumbnail */
        @keyframes shine {
            0% { left: -100%; }
            20% { left: 100%; }
            100% { left: 100%; }
        }
        
        .preview-download-btn {
            position: absolute;
            background: rgba(0,0,0,0.6);
            color: #fff;
            border: none;
            width: 46px;
            height: 46px;
            display: none; /* Hidden until generated */
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
            font-size: 24px;
            z-index: 10;
            top: 8px;
            right: 8px;
            border-radius: 4px;
            overflow: hidden;
        }
        
        .preview-download-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 50%;
            height: 100%;
            background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
            transform: skewX(-25deg);
            animation: shine 3s infinite;
            pointer-events: none;
        }

        .preview-download-btn:hover {
            background: rgba(0,0,0,0.9);
            transform: scale(1.05);
        }
        /* Only show download button when the thumbnail actually has an image */
        .preview-thumb-container:has(.preview-thumbnail.has-image) .preview-download-btn {
            display: flex;
        }

        .large-preview-section {
            display: none; flex-direction: row; align-items: flex-start; justify-content: center; width: 100%;
            margin-top: 60px; padding: 40px 0; border-top: 1px solid #ddd; gap: 40px;
        }
        .large-preview-section.visible { display: flex; }

        .large-preview-canvas-wrapper {
            position: relative;
            max-width: 70%; max-height: 70vh;
            display: inline-block;
            box-shadow: 0 20px 40px rgba(0,0,0,0.15); border: 1px solid #ccc;
        }

        .large-preview-canvas {
            display: block;
            max-width: 100%; max-height: 70vh;
            cursor: crosshair;
        }

        /* ─── ZOOM LENS ─── */
        .zoom-lens {
            position: absolute;
            display: none;
            width: 200px; /* Size of the magnifier */
            height: 200px;
            border: 2px solid #000;
            border-radius: 50%;
            pointer-events: none; /* So mouse events pass through to canvas */
            background-repeat: no-repeat;
            box-shadow: 0 10px 20px rgba(0,0,0,0.3);
            z-index: 100;
        }

        .preview-settings-panel {
            display: flex; flex-direction: column; align-items: stretch; width: 350npmpx;
            padding: 20px; background: #f9f9f9; border: 1px solid #eee; flex-shrink: 0;
        }

        .settings-row {
            display: flex; flex-direction: row; justify-content: space-between; align-items: center;
            width: 100%; margin-bottom: 20px;
        }

        .naming-options {
            display: flex; flex-direction: column; gap: 8px; width: 100%; margin-bottom: 20px;
            font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px;
        }

        .reset-name-btn {
            background: none; border: none; color: #999; font-size: 0.8rem; cursor: pointer; padding: 0 4px;
            display: inline-flex; align-items: center; justify-content: center; transition: color 0.2s;
        }
        .reset-name-btn:hover { color: #c00; }
        .reset-name-btn.hidden { display: none; }

        .action-btns {
            display: flex; flex-direction: column; gap: 10px; margin-top: auto;
        }

        /* V2 Sliders */
        .slider-row {
            display: flex; flex-direction: column; width: 100%;
        }
        .slider-header {
            display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px;
        }
        .slider-reset-btn {
            background: none; border: none; color: #999; font-size: 1rem; cursor: pointer; padding: 0 4px;
            display: inline-flex; align-items: center; justify-content: center; transition: color 0.2s; line-height: 1;
        }
        .slider-reset-btn:hover { color: #000; }
        .slider-control-group {
            display: flex; flex-direction: row; gap: 10px; align-items: center; width: 100%;
        }
        .v2-slider {
            flex: 1; margin: 0; appearance: none; background: #ddd; height: 4px; border-radius: 2px;
            outline: none; transition: background 0.2s;
        }
        .v2-slider::-webkit-slider-thumb {
            appearance: none; width: 16px; height: 16px; border-radius: 50%;
            background: #000; cursor: pointer; border: none;
        }
        .v2-slider::-moz-range-thumb {
            width: 16px; height: 16px; border-radius: 50%; background: #000; cursor: pointer; border: none;
        }
        .v2-number-input {
            width: 50px; padding: 4px; text-align: center; font-family: var(--font-main);
            font-size: 0.8rem; border: 1px solid #ccc;
        }
        .v2-number-input:focus { border-color: #000; outline: none; }

        /* Loading Spinner */
        .loading-overlay {
            display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(255,255,255,0.9); z-index: 2000;
            justify-content: center; align-items: center; flex-direction: column;
        }
        .spinner {
            width: 50px; height: 50px; border: 4px solid #f3f3f3; border-top: 4px solid #000;
            border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 20px;
        }
        @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
        .loading-text {
            font-family: var(--font-main); font-size: 0.8rem; letter-spacing: 4px; text-transform: uppercase;
        }

        /* ─── MODAL ─── */
        .modal-overlay {
            display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.5); z-index: 3000;
            justify-content: center; align-items: center;
        }
        .modal-dialog {
            background: #fff; padding: 40px; border: 1px solid #000;
            width: 100%; max-width: 400px; text-align: center;
            box-shadow: 0 20px 40px rgba(0,0,0,0.2);
        }
        .modal-title {
            font-size: 1rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 20px;
        }
        .modal-input {
            width: 100%; padding: 10px; font-family: var(--font-main);
            font-size: 0.9rem; border: 1px solid #ccc; margin-bottom: 20px; text-align: center;
        }
        .modal-input:focus { border-color: #000; outline: none; }
        .modal-actions {
            display: flex; justify-content: space-between; gap: 20px;
        }
        .modal-btn {
            flex: 1; padding: 10px; font-family: var(--font-main); font-size: 0.75rem;
            letter-spacing: 2px; text-transform: uppercase; cursor: pointer; transition: all 0.2s;
        }
        .modal-btn-cancel { background: #fff; color: #000; border: 1px solid #000; }
        .modal-btn-cancel:hover { background: #f5f5f5; }
        .modal-btn-apply { background: #000; color: #fff; border: 1px solid #000; }
        .modal-btn-apply:hover { background: #333; }

        /* ─── TOAST ─── */
        .toast {
            position: fixed; bottom: 80px; left: 50%;
            transform: translateX(-50%) translateY(12px);
            background: #000; color: #fff;
            font-size: 0.65rem; letter-spacing: 2px;
            text-transform: uppercase; padding: 10px 26px;
            opacity: 0; transition: opacity 0.3s, transform 0.3s;
            pointer-events: none; z-index: 9999; white-space: nowrap;
        }
        .toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }

        /* ─── BULK TAB ─── */
        .library-placeholder {
            display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px;
        }
        .library-item {
            aspect-ratio: 3/4; background: #fff;
            display: flex; align-items: center; justify-content: center;
            font-size: 0.7rem; color: #ccc; border: 1px solid transparent;
            transition: all 0.4s;
        }
        .library-item:hover {
            border-color: #000; box-shadow: 0 20px 40px rgba(0,0,0,0.05); transform: translateY(-5px);
        }

        /* ─── FOOTER ─── */
        footer {
            background: #000; color: #fff;
            padding: 20px 0; display: flex;
            justify-content: center; align-items: center;
            position: fixed; bottom: 0; left: 0; width: 100%; z-index: 1000;
        }
        .footer-content {
            display: flex; justify-content: space-between;
            width: 100%; max-width: 800px; padding: 0 20px; align-items: center;
        }
        .footer-left, .footer-right { font-size: 0.75rem; opacity: 0.7; letter-spacing: 1px; }
        .footer-center { font-family: var(--font-header); font-size: 1.2rem; letter-spacing: 2px; font-style: italic; }

        .footer-content a {
            color: #aaa !important;
            text-decoration: none !important;
            transition: color 0.2s;
            font-family: var(--font-main);
            letter-spacing: 1px;
        }
        .footer-content a:hover {
            color: #fff !important;
        }
