        @import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

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

        body {
            font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: linear-gradient(145deg, #0f172a 0%, #1e293b 50%, #334155 100%);
            min-height: 100vh;
            overflow-x: hidden;
            color: #f8fafc;
        }

        .container {
            max-width: 900px;
            margin: 0 auto;
            padding: 20px;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        .progress-bar {
            background: rgba(255, 255, 255, 0.1);
            height: 6px;
            border-radius: 3px;
            margin-bottom: 24px;
            overflow: hidden;
            backdrop-filter: blur(10px);
        }

        .progress-fill {
            background: linear-gradient(90deg, #22d3ee, #a78bfa);
            height: 100%;
            transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            border-radius: 3px;
        }

        .card {
            background: rgba(30, 41, 59, 0.8);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(148, 163, 184, 0.1);
            border-radius: 24px;
            padding: 32px;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
            flex: 1;
            display: flex;
            flex-direction: column;
            animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateY(24px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .question-number {
            color: #22d3ee;
            font-size: 13px;
            font-weight: 600;
            margin-bottom: 8px;
            text-transform: uppercase;
            letter-spacing: 2px;
        }

        .question {
            font-size: 28px;
            font-weight: 700;
            color: #f8fafc;
            margin-bottom: 12px;
            line-height: 1.2;
            background: linear-gradient(135deg, #f8fafc 0%, #cbd5e1 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .description {
            font-size: 16px;
            color: #94a3b8;
            margin-bottom: 28px;
            line-height: 1.6;
        }

        .input-group {
            margin-bottom: 20px;
            flex: 1;
        }

        input[type="text"],
        input[type="url"],
        input[type="email"],
        select {
            width: 100%;
            padding: 16px 20px;
            font-size: 16px;
            border: 2px solid rgba(148, 163, 184, 0.2);
            border-radius: 12px;
            transition: all 0.3s ease;
            background: rgba(15, 23, 42, 0.6);
            color: #f8fafc;
            font-family: inherit;
        }

        input::placeholder {
            color: #64748b;
            opacity: 1;
        }

        input:focus,
        select:focus {
            outline: none;
            border-color: #22d3ee;
            background: rgba(15, 23, 42, 0.8);
            box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.1);
        }

        /* URL/input validation error styles */
        input.input-error {
            border-color: #ef4444;
            box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
        }

        input.input-error:focus {
            border-color: #ef4444;
            box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2);
        }

        .input-error-message {
            color: #f87171;
            font-size: 13px;
            margin-top: 8px;
            padding-left: 4px;
        }

        .url-shortcut {
            color: rgba(96, 165, 250, 0.7);
            font-size: 13px;
            margin-top: 8px;
            padding-left: 4px;
            cursor: pointer;
            font-family: monospace;
            transition: color 0.2s;
        }

        .url-shortcut:hover {
            color: #60a5fa;
            text-decoration: underline;
        }

        select option {
            background: #1e293b;
            color: #f8fafc;
        }

        .option-grid {
            display: grid;
            gap: 12px;
            margin-bottom: 20px;
            max-height: 400px;
            overflow-y: auto;
            padding-right: 8px;
        }

        .option-grid::-webkit-scrollbar {
            width: 6px;
        }

        .option-grid::-webkit-scrollbar-track {
            background: rgba(148, 163, 184, 0.1);
            border-radius: 3px;
        }

        .option-grid::-webkit-scrollbar-thumb {
            background: rgba(148, 163, 184, 0.3);
            border-radius: 3px;
        }

        .option-button {
            padding: 16px 20px;
            background: rgba(15, 23, 42, 0.6);
            border: 2px solid rgba(148, 163, 184, 0.15);
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.2s ease;
            font-size: 15px;
            text-align: left;
            display: flex;
            justify-content: space-between;
            align-items: center;
            color: #e2e8f0;
            font-family: inherit;
        }

        .option-button:hover {
            border-color: #22d3ee;
            background: rgba(34, 211, 238, 0.1);
            transform: translateX(4px);
        }

        .option-button.selected {
            border-color: #22d3ee;
            background: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(167, 139, 250, 0.2));
            color: #f8fafc;
            font-weight: 600;
        }

        .option-button .checkmark {
            display: none;
            color: #22d3ee;
        }

        .option-button.selected .checkmark {
            display: inline;
        }

        .button-group {
            display: flex;
            gap: 12px;
            margin-top: auto;
            padding-top: 24px;
        }

        .btn {
            flex: 1;
            padding: 16px 24px;
            font-size: 16px;
            font-weight: 600;
            border: none;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            font-family: inherit;
        }

        .btn-primary {
            background: linear-gradient(135deg, #22d3ee 0%, #a78bfa 100%);
            color: #0f172a;
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 40px -10px rgba(34, 211, 238, 0.5);
        }

        .btn-primary:disabled {
            background: rgba(148, 163, 184, 0.3);
            color: rgba(148, 163, 184, 0.5);
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        .btn-secondary {
            background: rgba(148, 163, 184, 0.15);
            color: #e2e8f0;
            border: 1px solid rgba(148, 163, 184, 0.2);
        }

        .btn-secondary:hover {
            background: rgba(148, 163, 184, 0.25);
        }

        /* Checklist Styles */
        .checklist-container {
            margin: 20px 0;
        }

        .checklist-item {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            padding: 14px 16px;
            margin-bottom: 10px;
            background: rgba(15, 23, 42, 0.4);
            border: 2px solid rgba(148, 163, 184, 0.15);
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.2s ease;
            -webkit-tap-highlight-color: transparent;
        }

        .checklist-item:hover {
            border-color: rgba(34, 211, 238, 0.4);
            background: rgba(34, 211, 238, 0.05);
        }

        .checklist-item.checked {
            border-color: #10b981;
            background: rgba(16, 185, 129, 0.1);
        }

        .checklist-checkbox {
            width: 24px;
            height: 24px;
            min-width: 24px;
            border: 2px solid rgba(148, 163, 184, 0.4);
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            color: transparent;
            transition: all 0.2s ease;
            margin-top: 1px;
        }

        .checklist-item.checked .checklist-checkbox {
            background: #10b981;
            border-color: #10b981;
            color: white;
        }

        .checklist-label {
            flex: 1;
            font-size: 15px;
            color: #e2e8f0;
            line-height: 1.4;
        }

        .checklist-item.checked .checklist-label {
            color: #94a3b8;
        }

        /* Quality Review Section Styles */
        .quality-section {
            margin-bottom: 24px;
            background: rgba(15, 23, 42, 0.3);
            border-radius: 16px;
            overflow: hidden;
        }

        .quality-section-header {
            padding: 14px 18px;
            background: rgba(34, 211, 238, 0.1);
            border-bottom: 1px solid rgba(34, 211, 238, 0.2);
            font-size: 15px;
            font-weight: 600;
            color: #22d3ee;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .quality-section-header .section-progress {
            font-size: 13px;
            font-weight: 500;
            color: #94a3b8;
        }

        .quality-section-header.all-checked {
            background: rgba(16, 185, 129, 0.15);
            border-color: rgba(16, 185, 129, 0.3);
            color: #10b981;
        }

        .quality-section-header.all-checked .section-progress {
            color: #10b981;
        }

        .quality-section-body {
            padding: 12px;
        }

        .quality-images-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
            gap: 8px;
            margin-bottom: 14px;
            padding: 10px;
            background: rgba(15, 23, 42, 0.5);
            border-radius: 12px;
        }

        .quality-image-thumb {
            aspect-ratio: 1;
            border-radius: 8px;
            overflow: hidden;
            position: relative;
            cursor: pointer;
            border: 2px solid rgba(148, 163, 184, 0.2);
            transition: all 0.2s;
        }

        .quality-image-thumb:hover {
            border-color: #22d3ee;
            transform: scale(1.03);
        }

        .quality-image-thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .quality-image-thumb.missing {
            background: rgba(239, 68, 68, 0.1);
            border-color: rgba(239, 68, 68, 0.3);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        .quality-image-missing {
            font-size: 24px;
            color: #ef4444;
            margin-bottom: 4px;
        }

        .quality-image-label {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(transparent, rgba(0,0,0,0.8));
            color: white;
            font-size: 10px;
            padding: 12px 4px 4px;
            text-align: center;
            line-height: 1.2;
        }

        .quality-image-thumb.missing .quality-image-label {
            position: static;
            background: none;
            color: #ef4444;
            padding: 0;
        }

        .quality-checks-list {
            margin-top: 10px;
        }

        .quality-section .checklist-item {
            margin-bottom: 8px;
            padding: 12px 14px;
            background: rgba(15, 23, 42, 0.5);
        }

        .quality-section .checklist-item:last-child {
            margin-bottom: 0;
        }

        .quality-progress-bar {
            height: 6px;
            background: rgba(148, 163, 184, 0.2);
            border-radius: 3px;
            margin-top: 16px;
            margin-bottom: 8px;
            overflow: hidden;
        }

        .quality-progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #22d3ee, #10b981);
            border-radius: 3px;
            transition: width 0.3s ease;
        }

        .quality-progress-text {
            font-size: 14px;
            color: #94a3b8;
            text-align: center;
            margin-bottom: 16px;
        }

        /* Warning/Tip boxes */
        .tip-box {
            background: rgba(251, 191, 36, 0.1);
            border: 1px solid rgba(251, 191, 36, 0.3);
            border-radius: 12px;
            padding: 14px 16px;
            margin-bottom: 20px;
            display: flex;
            align-items: flex-start;
            gap: 12px;
        }

        .tip-box-icon {
            font-size: 20px;
            line-height: 1;
        }

        .tip-box-content {
            flex: 1;
            font-size: 14px;
            color: #fbbf24;
            line-height: 1.5;
        }

        .tip-box-content strong {
            color: #fcd34d;
        }

        /* Upload Pool Styles */
        .upload-pool-container {
            margin-bottom: 24px;
        }

        .upload-pool-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
        }

        .upload-pool-title {
            font-size: 16px;
            font-weight: 600;
            color: #e2e8f0;
        }

        .upload-pool-count {
            font-size: 14px;
            color: #94a3b8;
            background: rgba(148, 163, 184, 0.15);
            padding: 6px 12px;
            border-radius: 20px;
        }

        .selection-hint {
            background: linear-gradient(135deg, rgba(34, 211, 238, 0.15), rgba(167, 139, 250, 0.15));
            border: 1px solid rgba(34, 211, 238, 0.3);
            border-radius: 12px;
            padding: 12px 16px;
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 14px;
            color: #e2e8f0;
        }

        .selection-hint.has-selection {
            background: linear-gradient(135deg, rgba(34, 211, 238, 0.25), rgba(167, 139, 250, 0.25));
            border-color: #22d3ee;
        }

        .selection-hint-icon {
            font-size: 20px;
        }

        .selection-hint-text {
            flex: 1;
        }

        .selection-hint-text strong {
            color: #22d3ee;
        }

        .deselect-btn {
            background: rgba(239, 68, 68, 0.2);
            border: 1px solid rgba(239, 68, 68, 0.4);
            color: #fca5a5;
            padding: 6px 12px;
            border-radius: 8px;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .deselect-btn:hover {
            background: rgba(239, 68, 68, 0.3);
        }

        .upload-trigger {
            border: 2px dashed rgba(34, 211, 238, 0.3);
            border-radius: 16px;
            padding: 32px 20px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s;
            background: rgba(34, 211, 238, 0.05);
            margin-bottom: 16px;
        }

        .upload-trigger:hover,
        .upload-trigger.dragging {
            border-color: #22d3ee;
            background: rgba(34, 211, 238, 0.1);
        }

        .upload-trigger-icon {
            font-size: 48px;
            margin-bottom: 12px;
        }

        .upload-trigger-text {
            font-size: 18px;
            color: #e2e8f0;
            font-weight: 600;
            margin-bottom: 8px;
        }

        .upload-trigger-hint {
            font-size: 14px;
            color: #94a3b8;
        }

        .image-pool {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            min-height: 80px;
            padding: 16px;
            background: rgba(15, 23, 42, 0.4);
            border-radius: 16px;
            border: 2px dashed rgba(148, 163, 184, 0.15);
        }

        .pool-image {
            width: 80px;
            height: 80px;
            border-radius: 10px;
            overflow: hidden;
            cursor: pointer;
            position: relative;
            transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
            border: 3px solid transparent;
            -webkit-user-select: none;
            user-select: none;
            -webkit-tap-highlight-color: transparent;
            /* Pre-promote to own compositing layer; avoids expensive
               layer-creation during transform on click/hover */
            will-change: transform;
            contain: layout style paint;
        }

        .pool-image:hover {
            transform: scale(1.05);
            border-color: #22d3ee;
        }

        .pool-image.selected {
            border-color: #22d3ee;
            box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.3), 0 4px 12px rgba(34, 211, 238, 0.4);
            transform: scale(1.05);
        }

        .pool-image.selected::after {
            content: '✓';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: #22d3ee;
            color: #0f172a;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            font-weight: bold;
            z-index: 10;
        }

        .pool-image:active {
            transform: scale(0.95);
        }

        .pool-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            pointer-events: none;
        }

        .pool-image .remove-btn {
            position: absolute;
            top: 4px;
            right: 4px;
            width: 22px;
            height: 22px;
            background: rgba(239, 68, 68, 0.9);
            border: none;
            border-radius: 50%;
            color: white;
            font-size: 14px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.2s;
        }

        .pool-image:hover .remove-btn {
            opacity: 1;
        }

        /* Expand button for images */
        .expand-btn {
            position: absolute;
            bottom: 4px;
            right: 4px;
            width: 24px;
            height: 24px;
            background: rgba(34, 211, 238, 0.9);
            border: none;
            border-radius: 6px;
            color: #0f172a;
            font-size: 14px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.2s, transform 0.2s;
            z-index: 5;
        }

        .pool-image:hover .expand-btn,
        .bucket:hover .expand-btn {
            opacity: 1;
        }

        .expand-btn:hover {
            transform: scale(1.1);
            background: #22d3ee;
        }

        /* Touch devices - always show expand button */
        @media (hover: none) {
            .expand-btn {
                opacity: 1;
            }
        }

        /* Image Modal */
        .image-modal {
            position: fixed;
            inset: 0;
            background: rgba(15, 23, 42, 0.95);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 2000;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s, visibility 0.3s;
            backdrop-filter: blur(10px);
        }

        .image-modal.active {
            opacity: 1;
            visibility: visible;
        }

        .image-modal-content {
            position: relative;
            max-width: 90vw;
            max-height: 90vh;
            animation: modalZoomIn 0.3s ease-out;
        }

        @keyframes modalZoomIn {
            from {
                transform: scale(0.8);
                opacity: 0;
            }
            to {
                transform: scale(1);
                opacity: 1;
            }
        }

        .image-modal-content img {
            max-width: 90vw;
            max-height: 85vh;
            border-radius: 12px;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
        }

        .modal-close-btn {
            position: absolute;
            top: -40px;
            right: 0;
            width: 36px;
            height: 36px;
            background: rgba(239, 68, 68, 0.9);
            border: none;
            border-radius: 50%;
            color: white;
            font-size: 20px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.2s, background 0.2s;
        }

        .modal-close-btn:hover {
            transform: scale(1.1);
            background: #ef4444;
        }

        .modal-hint {
            position: absolute;
            bottom: -40px;
            left: 50%;
            transform: translateX(-50%);
            color: #94a3b8;
            font-size: 13px;
            white-space: nowrap;
        }

        /* Bucket Styles */
        .buckets-container {
            margin-top: 24px;
        }

        .bucket-section {
            margin-bottom: 28px;
            /* Skip rendering of off-screen sections — significant win
               when 4 sections with image thumbnails are below the fold */
            content-visibility: auto;
            contain-intrinsic-size: auto 400px;
        }

        .bucket-section-title {
            font-size: 15px;
            font-weight: 600;
            color: #22d3ee;
            margin-bottom: 8px;
            padding-bottom: 8px;
            border-bottom: 1px solid rgba(34, 211, 238, 0.2);
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .section-tip {
            font-size: 13px;
            color: #94a3b8;
            margin-bottom: 10px;
            padding: 10px 12px;
            background: rgba(148, 163, 184, 0.08);
            border-radius: 8px;
            line-height: 1.4;
            border-left: 3px solid rgba(34, 211, 238, 0.4);
        }

        .section-checklist-toggle {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            padding: 10px 14px;
            margin-bottom: 14px;
            background: rgba(34, 211, 238, 0.1);
            border: 1px solid rgba(34, 211, 238, 0.25);
            border-radius: 8px;
            color: #22d3ee;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            font-family: inherit;
        }

        .section-checklist-toggle:hover {
            background: rgba(34, 211, 238, 0.15);
            border-color: rgba(34, 211, 238, 0.4);
        }

        .section-checklist-toggle.expanded {
            background: rgba(34, 211, 238, 0.2);
            border-color: #22d3ee;
            border-radius: 8px 8px 0 0;
            margin-bottom: 0;
        }

        .section-checklist-toggle .toggle-icon {
            transition: transform 0.2s;
        }

        .section-checklist-toggle.expanded .toggle-icon {
            transform: rotate(180deg);
        }

        .section-checklist {
            display: none;
            background: rgba(15, 23, 42, 0.5);
            border: 1px solid rgba(34, 211, 238, 0.25);
            border-top: none;
            border-radius: 0 0 8px 8px;
            padding: 12px;
            margin-bottom: 14px;
        }

        .section-checklist.expanded {
            display: block;
        }

        .section-checklist-item {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            padding: 8px 10px;
            margin-bottom: 6px;
            background: rgba(148, 163, 184, 0.05);
            border-radius: 6px;
            font-size: 13px;
            color: #e2e8f0;
            line-height: 1.4;
        }

        .section-checklist-item:last-child {
            margin-bottom: 0;
        }

        .section-checklist-item .check-icon {
            color: #22d3ee;
            font-size: 14px;
            flex-shrink: 0;
            margin-top: 1px;
        }

        .bucket-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
            gap: 14px;
        }

        .bucket {
            aspect-ratio: 1;
            border: 2px dashed rgba(148, 163, 184, 0.25);
            border-radius: 14px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: border-color 0.2s, background 0.2s;
            contain: layout style paint;
            background: rgba(15, 23, 42, 0.3);
            position: relative;
            overflow: hidden;
        }

        .bucket:hover {
            border-color: #22d3ee;
            background: rgba(34, 211, 238, 0.05);
        }

        .bucket.filled {
            border-style: solid;
            border-color: #10b981;
            background: rgba(16, 185, 129, 0.1);
        }

        .bucket.filled:hover {
            border-color: #ef4444;
        }

        /* Bucket state when an image is selected in pool */
        .bucket.ready-to-receive {
            border-color: #22d3ee;
            border-style: dashed;
            animation: pulse-border 1.5s ease-in-out infinite;
        }

        .bucket.ready-to-receive:not(.filled) {
            background: rgba(34, 211, 238, 0.08);
        }

        @keyframes pulse-border {
            0%, 100% { border-color: rgba(34, 211, 238, 0.4); }
            50% { border-color: rgba(34, 211, 238, 1); }
        }

        .bucket-number {
            position: absolute;
            top: 8px;
            left: 8px;
            background: rgba(0, 0, 0, 0.6);
            color: white;
            font-size: 11px;
            font-weight: 700;
            padding: 3px 7px;
            border-radius: 6px;
            z-index: 2;
        }

        .bucket-label {
            font-size: 13px;
            color: #94a3b8;
            text-align: center;
            padding: 8px;
            line-height: 1.3;
        }

        .bucket-sublabel {
            font-size: 11px;
            color: #64748b;
            margin-top: 4px;
        }

        .bucket-icon {
            font-size: 28px;
            margin-bottom: 6px;
            opacity: 0.5;
        }

        .bucket img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            position: absolute;
            top: 0;
            left: 0;
        }

        .bucket .bucket-checkmark {
            position: absolute;
            top: 8px;
            right: 8px;
            background: #10b981;
            color: white;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            z-index: 2;
        }

        .bucket .bucket-remove {
            position: absolute;
            top: 8px;
            right: 8px;
            background: rgba(239, 68, 68, 0.9);
            color: white;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            display: none;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            z-index: 3;
            cursor: pointer;
            border: none;
        }

        .bucket.filled:hover .bucket-checkmark {
            display: none;
        }

        .bucket.filled:hover .bucket-remove {
            display: flex;
        }

        /* Success Screen */
        .success-screen {
            text-align: center;
            padding: 20px;
        }

        .success-icon {
            font-size: 80px;
            margin-bottom: 20px;
        }

        .success-title {
            font-size: 32px;
            font-weight: 700;
            background: linear-gradient(135deg, #22d3ee 0%, #a78bfa 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 16px;
        }

        .success-text {
            font-size: 18px;
            color: #94a3b8;
            margin-bottom: 32px;
        }

        .summary-box {
            background: rgba(15, 23, 42, 0.6);
            border-radius: 16px;
            padding: 24px;
            margin-bottom: 24px;
            text-align: left;
            border: 1px solid rgba(148, 163, 184, 0.1);
        }

        .summary-item {
            display: flex;
            justify-content: space-between;
            padding: 14px 0;
            border-bottom: 1px solid rgba(148, 163, 184, 0.1);
        }

        .summary-item:last-child {
            border-bottom: none;
        }

        .summary-label {
            color: #94a3b8;
            font-size: 14px;
        }

        .summary-value {
            color: #f8fafc;
            font-weight: 600;
            font-size: 14px;
        }

        .instructions-box {
            background: linear-gradient(135deg, rgba(34, 211, 238, 0.1), rgba(167, 139, 250, 0.1));
            border: 1px solid rgba(34, 211, 238, 0.2);
            border-radius: 16px;
            padding: 24px;
            margin: 24px 0;
            text-align: left;
        }

        .instructions-title {
            font-size: 18px;
            font-weight: 700;
            color: #22d3ee;
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .instructions-list {
            list-style: none;
            counter-reset: step;
        }

        .instructions-list li {
            position: relative;
            padding-left: 36px;
            margin-bottom: 14px;
            color: #e2e8f0;
            line-height: 1.5;
            font-size: 15px;
        }

        .instructions-list li::before {
            counter-increment: step;
            content: counter(step);
            position: absolute;
            left: 0;
            top: 0;
            width: 24px;
            height: 24px;
            background: rgba(34, 211, 238, 0.2);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 13px;
            font-weight: 700;
            color: #22d3ee;
        }

        .instructions-list li a {
            color: #22d3ee;
            text-decoration: none;
        }

        .instructions-list li a:hover {
            text-decoration: underline;
        }

        .instructions-list li code {
            background: rgba(15, 23, 42, 0.6);
            padding: 2px 8px;
            border-radius: 4px;
            font-family: monospace;
            font-size: 13px;
            color: #a78bfa;
        }

        .completion-stats {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 16px;
            margin-bottom: 24px;
        }

        .stat-card {
            background: rgba(15, 23, 42, 0.6);
            border-radius: 12px;
            padding: 20px;
            text-align: center;
            border: 1px solid rgba(148, 163, 184, 0.1);
        }

        .stat-value {
            font-size: 32px;
            font-weight: 700;
            background: linear-gradient(135deg, #22d3ee 0%, #a78bfa 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .stat-label {
            font-size: 13px;
            color: #94a3b8;
            margin-top: 4px;
        }

        .hidden {
            display: none;
        }

        #fileInput {
            display: none;
        }

        .info-box {
            background: rgba(34, 211, 238, 0.1);
            border: 1px solid rgba(34, 211, 238, 0.2);
            border-radius: 12px;
            padding: 20px;
            margin: 20px 0;
        }

        .info-box ul {
            margin: 12px 0;
            padding-left: 20px;
            line-height: 1.8;
            color: #e2e8f0;
        }

        .info-box strong {
            color: #22d3ee;
        }

        .lighting-select {
            margin-bottom: 24px;
        }

        .lighting-select label {
            display: block;
            font-size: 14px;
            font-weight: 600;
            color: #e2e8f0;
            margin-bottom: 8px;
        }

        /* Sticky Pool Bar — freezes the image thumbnails at the top while
           scrolling through bucket sections on the image-sort step. */
        .sticky-pool-bar {
            z-index: 20;
            background: #1e293b;
            /* Extend edge-to-edge within the .card (card padding = 32px) */
            margin-left: -32px;
            margin-right: -32px;
            padding: 12px 32px 8px;
            border-bottom: 1px solid rgba(148, 163, 184, 0.12);
            transition: box-shadow 0.25s ease;
        }

        /* Only activate sticky when the pool actually has images */
        .sticky-pool-bar.has-images {
            position: sticky;
            top: 0;
        }

        /* Stronger shadow when the bar is pinned (toggled by IntersectionObserver) */
        .sticky-pool-bar.stuck {
            box-shadow: 0 6px 24px -4px rgba(0, 0, 0, 0.45);
            border-bottom-color: rgba(34, 211, 238, 0.18);
        }

        /* ==========================================
         * Collection Time Slider
         * ========================================== */
        .collection-time-slider {
            background: rgba(30, 41, 59, 0.6);
            border: 1px solid rgba(148, 163, 184, 0.15);
            border-radius: 16px;
            padding: 24px;
            margin-bottom: 20px;
        }

        .collection-time-slider .slider-title {
            font-size: 15px;
            font-weight: 600;
            color: #e2e8f0;
            margin-bottom: 6px;
        }

        .collection-time-slider .slider-description {
            font-size: 13px;
            color: #94a3b8;
            margin-bottom: 20px;
            line-height: 1.5;
        }

        .collection-time-slider .slider-value-display {
            text-align: center;
            font-size: 32px;
            font-weight: 700;
            color: #22d3ee;
            margin-bottom: 4px;
        }

        .collection-time-slider .slider-value-display.unset {
            font-size: 15px;
            color: #64748b;
        }

        .collection-time-slider .slider-value-unit {
            text-align: center;
            font-size: 13px;
            color: #94a3b8;
            margin-bottom: 16px;
        }

        .collection-time-slider .slider-track-container {
            position: relative;
            padding: 0 2px;
        }

        .collection-time-slider input[type="range"] {
            -webkit-appearance: none;
            appearance: none;
            width: 100%;
            height: 8px;
            background: rgba(148, 163, 184, 0.2);
            border-radius: 4px;
            outline: none;
            cursor: pointer;
        }

        .collection-time-slider input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 28px;
            height: 28px;
            background: linear-gradient(135deg, #22d3ee 0%, #a78bfa 100%);
            border-radius: 50%;
            cursor: grab;
            box-shadow: 0 2px 8px rgba(34, 211, 238, 0.4);
            transition: transform 0.15s, box-shadow 0.15s;
        }

        .collection-time-slider input[type="range"]::-webkit-slider-thumb:active {
            cursor: grabbing;
            transform: scale(1.15);
            box-shadow: 0 2px 12px rgba(34, 211, 238, 0.6);
        }

        .collection-time-slider input[type="range"]::-moz-range-thumb {
            width: 28px;
            height: 28px;
            background: linear-gradient(135deg, #22d3ee 0%, #a78bfa 100%);
            border-radius: 50%;
            cursor: grab;
            border: none;
            box-shadow: 0 2px 8px rgba(34, 211, 238, 0.4);
        }

        .collection-time-slider .slider-ticks {
            display: flex;
            justify-content: space-between;
            padding: 8px 0 0 0;
        }

        .collection-time-slider .slider-tick {
            font-size: 11px;
            color: #64748b;
            cursor: pointer;
            padding: 4px 6px;
            border-radius: 6px;
            transition: color 0.15s, background 0.15s;
            user-select: none;
        }

        .collection-time-slider .slider-tick:hover {
            color: #22d3ee;
            background: rgba(34, 211, 238, 0.1);
        }

        .collection-time-slider .slider-tick.active {
            color: #22d3ee;
            font-weight: 600;
        }

        @media (max-width: 600px) {
            .container {
                padding: 16px;
            }

            .card {
                padding: 24px;
                border-radius: 20px;
            }

            .question {
                font-size: 24px;
            }

            .bucket-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 10px;
            }

            .bucket {
                border-radius: 10px;
            }

            .bucket-label {
                font-size: 10px;
                padding: 4px;
            }

            .bucket-sublabel {
                display: none;
            }

            .pool-image {
                width: 70px;
                height: 70px;
            }

            /* Adjust sticky bar margins/padding for mobile card padding (24px) */
            .sticky-pool-bar {
                margin-left: -24px;
                margin-right: -24px;
                padding-left: 24px;
                padding-right: 24px;
            }
        }
