        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
            background: #fafaf9;
            color: #09090b;
            line-height: 1.6;
            margin: 0;
            min-height: 100vh;
        }

        .app-container {
            display: flex;
            min-height: 100vh;
        }

        .sidebar {
            position: fixed;
            top: 0;
            left: 0;
            bottom: 0;
            width: 330px;
            background: transparent;
            display: flex;
            flex-direction: column;
            overflow-y: auto;
            z-index: 50;
        }

        /* Connect button at top of sidebar - Catalyst style */
        .sidebar-header {
            padding: 16px;
            border-bottom: 1px solid rgba(9, 9, 11, 0.05);
        }

        .connect-button {
            width: 100%;
            background: transparent;
            color: #09090b;
            border: none;
            padding: 10px 8px;
            border-radius: 10px;
            cursor: default;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.15s ease;
            display: flex;
            align-items: center;
            text-align: left;
            gap: 12px;
            position: relative;
        }

        .connect-button:hover {
            background: rgba(9, 9, 11, 0.05);
        }

        .connect-avatar {
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            position: relative;
        }

        .connect-avatar svg {
            width: 20px;
            height: 20px;
            color: #71717a;
            stroke-width: 2.3;
        }

        /* Status dot - red when disconnected, green when connected */
        .connect-status-dot {
            position: absolute;
            top: -2px;
            right: -2px;
            width: 10px;
            height: 10px;
            background: #ef4444;
            /* red-500 when disconnected */
            border: 2px solid #fafaf9;
            border-radius: 50%;
            opacity: 1;
            /* always visible */
            transition: background-color 0.3s ease;
        }

        .connect-avatar.connected .connect-status-dot {
            background: #22c55e;
            /* green-500 when connected */
        }

        .connect-text {
            flex: 1;
            font-size: 14px;
            font-weight: 500;
            color: #09090b;
        }

        .connect-chevron {
            width: 16px;
            height: 16px;
            color: #52525b;
            flex-shrink: 0;
            margin-left: auto;
            transform: rotate(270deg);
        }

        .sidebar-content {
            flex: 1;
            padding: 12px;
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .sidebar-footer {
            padding: 12px;
            margin-top: auto;
        }

        .sidebar-item {
            width: 100%;
            background: transparent;
            color: #71717a;
            border: none;
            padding: 10px 12px;
            border-radius: 10px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.15s ease;
            text-align: left;
            display: flex;
            align-items: center;
            gap: 12px;
            position: relative;
            margin-left: 4px;
        }

        .sidebar-item::before {
            content: '';
            position: absolute;
            left: -16px;
            top: 50%;
            transform: translateY(-50%);
            width: 3px;
            height: 0;
            background: #18181b;
            border-radius: 0 2px 2px 0;
            transition: height 0.2s ease;
        }

        .sidebar-item svg {
            width: 16px;
            height: 16px;
            flex-shrink: 0;
            color: #71717a;
            transition: color 0.15s ease;
        }

        .sidebar-item:hover {
            background: transparent;
            color: #09090b;
        }

        .sidebar-item:hover svg {
            color: #09090b;
        }

        .sidebar-item.active {
            background: transparent;
            color: #09090b;
            font-weight: 600;
        }

        .sidebar-item.active::before {
            height: 24px;
        }

        .sidebar-item.active svg {
            color: #09090b;
        }

        .sidebar-section {
            margin-top: 24px;
        }

        .sidebar-section-title {
            font-size: 12px;
            font-weight: 600;
            color: #71717a;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            padding: 0 12px 10px;
        }

        .client-list-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 8px 12px;
            border-radius: 8px;
            cursor: pointer;
            transition: background-color 0.15s ease, color 0.15s ease;
            width: 100%;
        }

        .client-list-item:hover {
            background: rgba(9, 9, 11, 0.05);
        }

        .client-list-item.active {
            background: #18181b;
        }

        .client-avatar {
            width: 32px;
            height: 32px;
            border-radius: 6px;
            background: #e4e4e7;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 13px;
            color: #52525b;
            flex-shrink: 0;
        }

        .client-list-item.active .client-avatar {
            background: #fafafa;
            color: #18181b;
        }

        .client-name {
            font-size: 14px;
            color: #52525b;
            font-weight: 500;
            flex: 1;
        }

        .client-list-item.active .client-name {
            color: #fafafa;
            font-weight: 500;
        }

        /* Back button specific styling */
        .client-list-item.back-button {
            background: white !important;
            text-align: left;
            border: none !important;
        }

        .client-list-item.back-button:hover {
            background: rgba(9, 9, 11, 0.05) !important;
        }

        .client-list-item.back-button .client-avatar {
            background: transparent !important;
            color: #09090b !important;
            border: none !important;
        }

        .client-list-item.back-button .client-avatar svg {
            color: #09090b !important;
            fill: #09090b !important;
            stroke: none !important;
        }

        .client-list-item.back-button .client-name {
            color: #09090b !important;
            font-weight: 500 !important;
            font-size: 15px !important;
        }

        /* Right chevron for client rows */
        .client-chevron {
            margin-left: auto;
            display: flex;
            align-items: center;
        }
        .client-chevron svg {
            width: 16px;
            height: 16px;
            color: #71717a;
        }

        .folder-settings-btn {
            margin-left: 8px;
            width: 24px;
            height: 24px;
            background: transparent;
            border: none;
            color: #71717a; /* gray */
            padding: 0;
            cursor: pointer;
            transition: color 0.12s ease;
            display: none; /* only show on active row */
            align-items: center;
            justify-content: center;
        }
        .folder-settings-btn:hover {
            color: #ffffff; /* white on hover */
            background: transparent;
            border: none;
        }
        .folder-settings-btn svg {
            width: 16px;
            height: 16px;
            pointer-events: none;
        }
        .client-list-item.active .folder-settings-btn {
            display: inline-flex;
        }

        .sidebar input[type="file"] {
            display: none;
        }

        /* Accordion Styles */
        .accordion-content {
            padding: 8px 0;
            display: none;
        }

        .accordion-content.show {
            display: block;
        }

        /* Color Settings Row */
        .color-setting-row {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 6px 12px;
            min-height: 32px;
        }

        .color-setting-name {
            font-size: 13px;
            color: #52525b;
            font-weight: 500;
            min-width: 120px;
        }

        .color-setting-controls {
            display: flex;
            align-items: center;
            gap: 6px;
            margin-left: auto;
        }

        .color-setting-controls input[type="color"] {
            width: 32px;
            height: 32px;
            border: 1px solid #e4e4e7;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.12s ease;
            padding: 2px;
        }

        .color-setting-controls input[type="color"]:hover {
            border-color: #a1a1aa;
        }

        .color-setting-controls input[type="number"] {
            width: 56px;
            padding: 6px 8px;
            border: 1px solid #e4e4e7;
            border-radius: 6px;
            font-size: 13px;
            background: white;
            transition: all 0.12s ease;
            text-align: center;
        }

        .color-setting-controls input[type="number"]:focus {
            outline: none;
            border-color: #18181b;
            box-shadow: 0 0 0 2px rgba(24, 24, 27, 0.05);
        }

        .color-setting-controls .auto-detect-btn {
            width: 32px;
            height: 32px;
            padding: 0;
            background: white;
            color: #71717a;
            border: 1px solid #e4e4e7;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.12s ease;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .color-setting-controls .auto-detect-btn:hover {
            background: #fafafa;
            border-color: #a1a1aa;
            color: #09090b;
        }

        .color-setting-controls .auto-detect-btn svg {
            width: 16px;
            height: 16px;
        }

        .toggle-container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 8px;
        }

        .toggle-container label {
            font-size: 13px;
            color: #52525b;
            font-weight: 500;
        }

        .toggle-switch {
            position: relative;
            width: 24px;
            height: 24px;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }

        .toggle-switch input {
            opacity: 0;
            width: 0;
            height: 0;
            position: absolute;
        }

        .toggle-slider {
            position: absolute;
            cursor: pointer;
            width: 18px;
            height: 10px;
            background-color: #d4d4d8;
            transition: .2s;
            border-radius: 10px;
        }

        .toggle-slider:before {
            position: absolute;
            content: "";
            height: 6px;
            width: 6px;
            left: 2px;
            bottom: 2px;
            background-color: white;
            transition: .2s;
            border-radius: 50%;
            box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.1);
        }

        .toggle-switch input:checked+.toggle-slider {
            background-color: #18181b;
        }

        .toggle-switch input:checked+.toggle-slider:before {
            transform: translateX(8px);
        }

        .settings-section {
            margin-top: 12px;
            padding-left: 8px;
            display: none;
        }

        .settings-section.show {
            display: block;
        }

        .setting-item {
            margin-bottom: 16px;
        }

        .setting-item label {
            display: block;
            font-size: 13px;
            color: #425466;
            margin-bottom: 6px;
            font-weight: 500;
        }

        .setting-item input[type="color"] {
            width: 100%;
            height: 48px;
            border: 2px solid #e3e8ee;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .setting-item input[type="color"]:hover {
            border-color: #635bff;
            transform: scale(1.02);
        }

        .setting-item input[type="number"] {
            width: 100%;
            padding: 8px 12px;
            border: 1px solid #e3e8ee;
            border-radius: 6px;
            font-size: 14px;
            background: white;
            transition: all 0.2s ease;
        }

        .setting-item input[type="number"]:focus {
            outline: none;
            border-color: #635bff;
            box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.1);
        }

        .setting-item button {
            background: white;
            color: #1a1f36;
            border: 1px solid #e3e8ee;
            box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .setting-item button:hover {
            background: #f9fafb;
            border-color: #cbd5e0;
        }

        .setting-item button svg {
            width: 18px;
            height: 18px;
            flex-shrink: 0;
            color: #6b7280;
        }

        .main-content {
            flex: 1;
            padding: 32px;
            overflow-y: auto;
            background: #fafaf9;
        }

        /* Search Overlay Styles */
        .search-input-wrapper {
            position: relative;
            width: 100%;
        }

        .search-input {
            width: 100%;
            padding: 8px 12px 8px 38px;
            border: 1px solid #e4e4e7;
            border-radius: 8px;
            font-size: 14px;
            background: white;
            transition: all 0.12s ease;
            color: #09090b;
        }

        .search-input:focus {
            outline: none;
            background: white;
            border-color: #18181b;
            box-shadow: 0 0 0 3px rgba(24, 24, 27, 0.05);
        }

        .search-input::placeholder {
            color: #a1a1aa;
        }

        .search-dropdown {
            position: absolute;
            top: calc(100% + 8px);
            left: 0;
            right: 0;
            background: white;
            border: 1px solid #e4e4e7;
            border-radius: 12px;
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
            max-height: 400px;
            overflow-y: auto;
            z-index: 50;
            display: none;
        }

        .search-dropdown.show {
            display: block;
        }

        .btn-generate {
            padding: 8px 16px;
            background: #18181b;
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.12s ease;
            box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
            white-space: nowrap;
        }

        .btn-generate:hover:not(:disabled) {
            background: #27272a;
        }

        .btn-generate:disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }

        .detected-color-info {
            background: linear-gradient(135deg, #d4f4dd 0%, #c8f0d4 100%);
            padding: 16px 20px;
            border-radius: 8px;
            margin-bottom: 20px;
            font-size: 13px;
            color: #155724;
            border: 1px solid #b8e6c4;
            display: none;
            font-weight: 500;
        }

        .detected-color-info.show {
            display: block;
            animation: slideIn 0.3s ease;
        }

        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .pages {
            display: flex;
            gap: 32px;
            justify-content: center;
            flex-wrap: wrap;
            margin-top: 20px;
        }

        .page-container {
            position: relative;
            background: transparent;
            padding: 24px;
            border-radius: 12px;
        }

        .page-container h3 {
            display: none;
        }

        /* Diagonal stripe pattern background */
        .page-container::before {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: 12px;
            border: 1px dashed #9ca3af;
            opacity: 0.75;
            pointer-events: none;
            background-image:
                repeating-linear-gradient(45deg,
                    transparent,
                    transparent 10px,
                    rgba(9, 9, 11, 0.03) 10px,
                    rgba(9, 9, 11, 0.03) 11px);
        }

        .page {
            width: 330mm;
            height: 487mm;
            background: white;
            position: relative;
            transform: scale(0.4);
            transform-origin: top left;
            border: 1px solid #e4e4e7;
            box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
        }

        /* Force 1:1 scale during print capture */
        .page.printing {
            transform: scale(1) !important;
        }

        .page-container .page-wrapper {
            width: calc(330mm * 0.4);
            height: calc(487mm * 0.4);
            overflow: hidden;
        }

        .safety-background {
            position: absolute;
            width: 297mm;
            height: 447mm;
            top: 2mm;
            left: 16.5mm;
            background: #f5e6d3;
            z-index: 0;
        }

        .grid-wrapper {
            position: absolute;
            top: 7mm;
            left: 22.5mm;
            width: 285mm;
            height: 435mm;
            z-index: 1;
        }

        .grid {
            position: relative;
            width: 100%;
            height: 100%;
            display: grid;
            grid-template-columns: repeat(3, 95mm);
            grid-template-rows: repeat(3, 145mm);
        }

        .placeholder {
            width: 95mm;
            height: 145mm;
            position: relative;
            overflow: hidden;
            cursor: pointer;
            background: #f6f9fc;
            transition: all 0.3s ease;
        }

        .placeholder:hover {
            background: #e8f0fe;
            transform: scale(0.99);
        }

        .placeholder.drag-over {
            background: #d4f4dd;
            box-shadow: inset 0 0 0 3px #00d4aa;
        }

        .placeholder.dragging {
            border: 3px dashed #635bff;
            background: rgba(99, 91, 255, 0.05);
        }

        .placeholder.dragging img {
            opacity: 0.5;
        }

        .placeholder.valid-drop-zone {
            border: 3px dashed #00d4aa;
            background: rgba(0, 212, 170, 0.05);
            animation: pulse 1.5s ease-in-out infinite;
            position: relative;
        }

        .placeholder.valid-drop-zone::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 212, 170, 0.2);
            z-index: 1;
            pointer-events: none;
        }

        @keyframes pulse {

            0%,
            100% {
                border-color: #00d4aa;
            }

            50% {
                border-color: #00bd95;
            }
        }

        .placeholder.has-image {
            background: transparent;
        }

        .placeholder.has-image:hover {
            transform: scale(1);
            opacity: 0.95;
        }

        .placeholder img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: none;
            transition: opacity 0.2s ease;
        }

        .placeholder.has-image img {
            display: block;
        }

        .placeholder-stroke {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            pointer-events: none;
            z-index: 2;
            display: none;
        }

        .placeholder.has-stroke .placeholder-stroke {
            display: block;
        }

        .placeholder-label {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: #8898aa;
            font-size: 13px;
            text-align: center;
            pointer-events: none;
            background: white;
            padding: 16px 24px;
            border: 2px dashed #cbd5e0;
            border-radius: 8px;
            font-weight: 500;
        }

        .placeholder.has-image .placeholder-label {
            display: none;
        }

        .crop-mark {
            position: absolute;
            background: #1a1f36;
            z-index: 10;
        }

        .crop-mark.horizontal {
            width: 1.5mm;
            height: 0.3mm;
        }

        .crop-mark.vertical {
            width: 0.3mm;
            height: 1.5mm;
        }

        /* Search Modal */
        .search-modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background: white;
            overflow: hidden;
        }

        .search-modal.show {
            display: flex;
            flex-direction: column;
            animation: fadeIn 0.3s ease;
        }

        .search-header {
            padding: 24px 32px;
            border-bottom: 2px solid #e3e8ee;
            display: flex;
            gap: 16px;
            align-items: center;
        }

        .search-header input {
            flex: 1;
            padding: 12px 20px;
            border: 2px solid #e3e8ee;
            border-radius: 8px;
            font-size: 16px;
            transition: all 0.2s ease;
        }

        .search-header input:focus {
            outline: none;
            border-color: #635bff;
            box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.1);
        }

        .close-search {
            padding: 10px 20px;
            background: #e3e8ee;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.2s ease;
        }

        .close-search:hover {
            background: #cbd5e0;
        }

        .search-results {
            flex: 1;
            overflow-y: auto;
            padding: 32px;
        }

        .product-item {
            display: flex;
            align-items: center;
            gap: 20px;
            padding: 16px 24px;
            border: 2px solid #e3e8ee;
            border-radius: 8px;
            margin-bottom: 12px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .product-item:hover {
            border-color: #635bff;
            background: #f6f9fc;
        }

        .product-item.selected {
            border-color: #635bff;
            background: linear-gradient(135deg, #f6f9fc 0%, #e8f0fe 100%);
            box-shadow: 0 2px 8px rgba(99, 91, 255, 0.2);
        }

        .product-item.warning {
            border-color: #ffc107;
            background: #fff9e6;
        }

        .product-images {
            display: flex;
            gap: 12px;
        }

        .product-images img {
            width: 60px;
            height: 60px;
            object-fit: cover;
            border-radius: 6px;
            border: 1px solid #e3e8ee;
        }

        .product-images .missing {
            width: 60px;
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #fee;
            border: 2px dashed #f44336;
            border-radius: 6px;
            font-size: 11px;
            color: #d32f2f;
            text-align: center;
            font-weight: 500;
        }

        .product-name {
            flex: 1;
            font-size: 15px;
            font-weight: 500;
            color: #1a1f36;
        }

        .product-warning {
            color: #f57c00;
            font-size: 13px;
            font-weight: 500;
        }

        /* Quantity Modal */
        .quantity-modal {
            display: none;
            position: fixed;
            z-index: 1001;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(4px);
        }

        .quantity-modal.show {
            display: flex;
            align-items: center;
            justify-content: center;
            animation: fadeIn 0.3s ease;
        }

        .quantity-content {
            background: white;
            padding: 40px;
            border-radius: 12px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            animation: slideUp 0.3s ease;
            text-align: center;
        }

        .quantity-content h3 {
            color: #0a2540;
            font-size: 20px;
            margin-bottom: 24px;
            font-weight: 600;
        }

        .quantity-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
            margin-bottom: 20px;
        }

        .quantity-btn {
            width: 80px;
            height: 80px;
            background: linear-gradient(180deg, #635bff 0%, #5851ea 100%);
            color: white;
            border: none;
            border-radius: 12px;
            font-size: 28px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            box-shadow: 0 2px 8px rgba(99, 91, 255, 0.2);
        }

        .quantity-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 14px rgba(99, 91, 255, 0.3);
        }

        .quantity-btn:active {
            transform: translateY(0);
        }

        .quantity-btn:disabled {
            opacity: 0.3;
            cursor: not-allowed;
        }

        .quantity-hint {
            color: #8898aa;
            font-size: 13px;
            margin-top: 12px;
        }

        /* Info Modal */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(4px);
        }

        .modal.show {
            display: flex;
            align-items: center;
            justify-content: center;
            animation: fadeIn 0.3s ease;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }

        .modal-content {
            background: white;
            padding: 32px;
            border-radius: 12px;
            max-width: 600px;
            max-height: 80vh;
            overflow-y: auto;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            animation: slideUp 0.3s ease;
        }

        @keyframes slideUp {
            from {
                transform: translateY(20px);
                opacity: 0;
            }

            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        .modal-content h3 {
            color: #0a2540;
            font-size: 20px;
            margin-bottom: 20px;
            font-weight: 600;
        }

        .modal-content p {
            margin-bottom: 16px;
            line-height: 1.8;
            color: #425466;
        }

        .modal-content strong {
            color: #0a2540;
        }

        .close-modal {
            float: right;
            font-size: 28px;
            font-weight: bold;
            color: #8898aa;
            cursor: pointer;
            line-height: 20px;
            transition: color 0.2s ease;
        }

        .close-modal:hover {
            color: #1a1f36;
        }

        /* Catalyst-like main wrapper and shell */
        .main {
            display: flex;
            flex: 1;
            flex-direction: column;
            padding-bottom: 8px;
            /* pb-2 */
            background: #f4f4f5;
            position: relative;
        }

        @media (min-width: 1024px) {

            /* lg */
            .main {
                min-width: 0;
                /* lg:min-w-0 */
                padding-top: 8px;
                /* lg:pt-2 */
                padding-right: 8px;
                /* lg:pr-2 */
                padding-left: 338px;
                /* sidebar width (330px) + 8px padding */
            }
        }

        #contentShell {
            flex: 1;
            /* grow */
            padding: 24px;
            /* p-6 */
        }

        @media (min-width: 1024px) {
            #contentShell {
                /* Light mode only (no dark: variants) */
                border-radius: 12px;
                /* lg:rounded-lg */
                background: #ffffff;
                /* lg:bg-white */
                padding: 40px;
                /* lg:p-10 */
                box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
                /* lg:shadow-xs */
                border: 1px solid rgba(9, 9, 11, 0.05);
                /* lg:ring-1 lg:ring-zinc-950/5 */
            }
        }

        /* Inner max-width container: mx-auto max-w-6xl */
        .content-container {
            margin-left: auto;
            /* mx-auto */
            margin-right: auto;
            /* mx-auto */
            max-width: 72rem;
            /* max-w-6xl (72 * 16px = 1152px) */
            width: 100%;
        }

        /* Content header (Catalyst-inspired) */
        .content-header {
            display: flex;
            /* flex */
            flex-wrap: wrap;
            /* flex-wrap */
            align-items: flex-end;
            /* items-end */
            justify-content: space-between;
            /* justify-between */
            gap: 16px;
            /* gap-4 */
            margin-bottom: 32px;
            padding-bottom: 24px;
            border-bottom: 1px solid #e4e4e7;
        }

        .header-left {
            /* max-sm:w-full sm:flex-1 */
            width: 100%;
        }

        @media (min-width: 640px) {
            .header-left {
                width: auto;
                flex: 1;
            }
        }

        .content-title h1 {
            /* text-2xl/8 sm:text-xl/8 */
            font-size: 24px;
            /* 2xl */
            line-height: 32px;
            /* /8 */
            font-weight: 600;
            color: #09090b;
            /* text-zinc-950 */
            letter-spacing: -0.02em;
        }

        @media (min-width: 640px) {

            /* sm */
            .content-title h1 {
                font-size: 20px;
                /* xl */
                line-height: 32px;
                /* /8 */
            }
        }

        .header-search-row {
            /* mt-4 flex max-w-xl gap-4 */
            margin-top: 16px;
            /* mt-4 */
            display: flex;
            /* flex */
            max-width: 36rem;
            /* max-w-xl */
            gap: 16px;
            /* gap-4 */
        }

        .search-input-wrapper svg.search-input-icon {
            /* icon inside input */
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
            width: 20px;
            height: 20px;
            color: #71717a;
            pointer-events: none;
        }

        /* Print styles */
        @media print {
            body {
                background: white;
            }

            .sidebar,
            .top-bar,
            .detected-color-info,
            .modal,
            .search-modal,
            .quantity-modal {
                display: none;
            }

            .main-content {
                padding: 0;
            }

            .page {
                transform: scale(1);
                page-break-after: always;
            }

            .page-container {
                padding: 0;
                box-shadow: none;
            }
        }
        /* Inline layout dropdown anchored to the folder row */
        .layout-dropdown {
            position: absolute;
            z-index: 1000;
            background: #ffffff;
            border: 1px solid #e4e4e7;
            border-radius: 8px;
            box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
            min-width: 220px;
            overflow: hidden;
        }
        .layout-dropdown .layout-item {
            padding: 8px 12px;
            font-size: 13px;
            color: #18181b;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .layout-dropdown .layout-item:hover {
            background: #fafafa;
        }
        .layout-dropdown .layout-item .check {
            margin-left: auto;
            color: #22c55e;
            font-size: 14px;
        }

        /* Delete Zone */
        .delete-zone {
            position: fixed;
            bottom: 0;
            left: 330px;
            right: 0;
            height: 20vh;
            background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0) 100%);
            pointer-events: none;
            opacity: 0;
            transition: opacity 300ms ease;
            z-index: 100;
        }

        .delete-zone.active {
            opacity: 1;
            pointer-events: all;
        }

        .delete-zone.drag-over {
            background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(239, 68, 68, 0.3) 0%, rgba(239, 68, 68, 0) 100%);
            transition: background 300ms ease;
        }

        .delete-zone-content {
            display: none;
        }

        .delete-icon {
            display: none;
        }

        .delete-text {
            display: none;
        }

        @media (max-width: 1024px) {
            .delete-zone {
                left: 0;
            }
        }

        /* Pulse animation for Etichete Dubla Taiere layout */
        @keyframes pulseRedBackground {
            0%, 100% {
                background-color: rgba(255, 0, 0, 0);
            }
            50% {
                background-color: rgba(255, 0, 0, 0.32);
            }
        }

        .page-container.pulse-warning {
            animation: pulseRedBackground 2s ease-in-out 5;
        }
