 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --bg: #F9FAFB;
            --card: white;
            --text: #111827;
            --text-light: #6B7280;
            --border: #E5E7EB;
            --primary: #3B82F6;
            --primary-dark: #2563EB;
            --success: #10B981;
            --danger: #EF4444;
            --radius: 0.75rem;
            --shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.06);
        }

        body.dark {
            --bg: #0F172A;
            --card: #1E293B;
            --text: #F1F5F9;
            --text-light: #94A3B8;
            --border: #334155;
        }

        body {
            background: var(--bg);
            color: var(--text);
            font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
            padding: 2rem 1.5rem;
            line-height: 1.5;
            transition: background 0.2s ease, color 0.2s ease;
        }

        .container { max-width: 1280px; margin: 0 auto; }
        .card {
            background: var(--card);
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            padding: 1.5rem;
            margin-bottom: 1.5rem;
            border: 1px solid var(--border);
        }
        .flex {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            align-items: center;
            justify-content: space-between;
        }
        .upload-area {
            border: 2px dashed var(--border);
            border-radius: var(--radius);
            padding: 2rem;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s;
        }
        .upload-area:hover {
            border-color: var(--primary);
            background: rgba(59,130,246,0.02);
        }
        .preview-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1.5rem;
            margin-top: 1rem;
        }
        .preview-card {
            background: var(--bg);
            border-radius: var(--radius);
            padding: 1rem;
            border: 1px solid var(--border);
            text-align: center;
        }
        .preview-card img {
            max-width: 100%;
            max-height: 220px;
            object-fit: contain;
            border-radius: 0.5rem;
        }
        .btn {
            padding: 0.5rem 1rem;
            border-radius: 2rem;
            font-weight: 600;
            border: none;
            cursor: pointer;
            transition: 0.2s;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
        }
        .btn-primary {
            background: var(--primary);
            color: white;
        }
        .btn-primary:hover {
            background: var(--primary-dark);
            transform: translateY(-1px);
        }
        .btn-success {
            background: var(--success);
            color: white;
        }
        .btn-danger {
            background: var(--danger);
            color: white;
        }
        .badge {
            background: rgba(59,130,246,0.1);
            color: var(--primary);
            padding: 0.25rem 0.75rem;
            border-radius: 2rem;
            font-size: 0.75rem;
            font-weight: 600;
        }
        .toast {
            position: fixed;
            bottom: 1.5rem;
            right: 1.5rem;
            background: var(--text);
            color: white;
            padding: 0.75rem 1rem;
            border-radius: 2rem;
            opacity: 0;
            transition: 0.2s;
            z-index: 1000;
        }
        .toast.show { opacity: 1; }
        @media (max-width: 768px) {
            body { padding: 1rem; }
            .preview-grid { grid-template-columns: 1fr; }
        }