        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
            background: #f5f7fa;
            color: #1e293b;
            line-height: 1.5;
            -webkit-font-smoothing: antialiased;
        }

        /* Premium container */
        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 2rem;
        }

        /* Header — refined */
        .header {
            margin-bottom: 2.5rem;
            text-align: center;
        }

        .logo-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background: #ffffff;
            padding: 0.5rem 1rem;
            border-radius: 100px;
            box-shadow: 0 1px 2px rgba(0,0,0,0.05);
            margin-bottom: 1.5rem;
        }

        .logo-badge span {
            font-size: 1.25rem;
        }

        h1 {
            font-size: 2.25rem;
            font-weight: 600;
            letter-spacing: -0.02em;
            background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            margin-bottom: 0.5rem;
        }

        .subtitle {
            color: #64748b;
            font-size: 0.9375rem;
            font-weight: 400;
        }

        /* SEO Description Box - Elegant and subtle */
        .seo-description {
            max-width: 800px;
            margin: 0 auto 2rem auto;
            padding: 1rem 1.5rem;
            background: #ffffff;
            border-radius: 0.75rem;
            border-left: 3px solid #059669;
            font-size: 0.875rem;
            color: #475569;
            line-height: 1.6;
            text-align: center;
            box-shadow: 0 1px 2px rgba(0,0,0,0.03);
        }

        /* Two-column layout with perfect balance */
        .workspace {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1.5rem;
            margin-bottom: 2rem;
        }

        /* Cards — minimalist elegance */
        .panel {
            background: #ffffff;
            border-radius: 1.25rem;
            box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
            transition: box-shadow 0.2s ease;
            overflow: hidden;
        }

        .panel:hover {
            box-shadow: 0 8px 25px -12px rgba(0,0,0,0.1);
        }

        .panel-header {
            padding: 1.25rem 1.5rem;
            border-bottom: 1px solid #f0f2f5;
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            flex-wrap: wrap;
            gap: 0.75rem;
        }

        .panel-title {
            font-weight: 600;
            font-size: 0.9375rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: #64748b;
        }

        .detection-chip {
            font-size: 0.75rem;
            padding: 0.25rem 0.75rem;
            background: #f8fafc;
            border-radius: 100px;
            color: #475569;
            font-weight: 500;
            letter-spacing: -0.01em;
        }

        .detection-chip.active {
            background: #eef2ff;
            color: #4f46e5;
        }

        .panel-content {
            padding: 1.5rem;
        }

        /* Text areas — clean and refined */
        .input-area, .output-area {
            width: 100%;
            min-height: 320px;
            padding: 1rem;
            font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
            font-size: 0.875rem;
            line-height: 1.6;
            border: 1px solid #e2e8f0;
            border-radius: 0.75rem;
            background: #fefefe;
            transition: all 0.2s ease;
            resize: vertical;
            color: #1e293b;
        }

        .input-area:focus, .output-area:focus {
            outline: none;
            border-color: #cbd5e1;
            box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.05);
        }

        .output-area {
            background: #fafcff;
        }

        /* Button group — minimal but purposeful */
        .button-group {
            display: flex;
            gap: 0.5rem;
            margin-top: 1rem;
            flex-wrap: wrap;
        }

        .btn {
            padding: 0.5rem 1rem;
            font-size: 0.8125rem;
            font-weight: 500;
            border-radius: 0.5rem;
            border: 1px solid #e2e8f0;
            background: #ffffff;
            color: #334155;
            cursor: pointer;
            transition: all 0.15s ease;
            font-family: inherit;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
        }

        .btn:hover {
            background: #f8fafc;
            border-color: #cbd5e1;
            transform: translateY(-1px);
        }

        .btn:active {
            transform: translateY(0);
        }

        .btn-primary {
            background: #1e293b;
            border-color: #1e293b;
            color: white;
        }

        .btn-primary:hover {
            background: #0f172a;
            border-color: #0f172a;
        }

        .btn-success {
            background: #059669;
            border-color: #059669;
            color: white;
        }

        .btn-success:hover {
            background: #047857;
        }

        .btn-outline {
            background: transparent;
            border: 1px solid #e2e8f0;
        }

        /* Stats bar — subtle info */
        .stats {
            margin-top: 1rem;
            padding: 0.75rem 0;
            display: flex;
            gap: 1.5rem;
            font-size: 0.75rem;
            color: #64748b;
            border-top: 1px solid #f1f5f9;
        }

        .stat-item {
            display: flex;
            align-items: center;
            gap: 0.375rem;
        }

        /* Drop zone — refined */
        .drop-zone {
            margin-top: 1rem;
            border: 1px dashed #cbd5e1;
            border-radius: 0.75rem;
            padding: 0.875rem;
            text-align: center;
            font-size: 0.8125rem;
            color: #64748b;
            cursor: pointer;
            transition: all 0.15s ease;
            background: #fefefe;
        }

        .drop-zone:hover {
            border-color: #94a3b8;
            background: #fafcff;
        }

        /* Format select — custom minimal */
        .format-select {
            font-size: 0.75rem;
            padding: 0.25rem 0.5rem;
            border: 1px solid #e2e8f0;
            border-radius: 0.5rem;
            background: white;
            color: #334155;
            font-family: inherit;
            cursor: pointer;
            outline: none;
        }

        /* Pipeline section — with subtle splash of color */
        .pipeline-section {
            background: linear-gradient(135deg, #ffffff 0%, #fef9f0 100%);
            border-radius: 1.25rem;
            padding: 1.25rem 1.5rem;
            margin-bottom: 1.5rem;
            box-shadow: 0 1px 3px rgba(0,0,0,0.05);
            border: 1px solid rgba(245, 158, 11, 0.1);
        }

        .section-label {
            font-size: 0.75rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: #f59e0b;
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .section-label::before {
            content: "⚡";
            font-size: 0.875rem;
        }

        .pipeline-buttons {
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
        }

        /* Code snippets — compact and refined */
        .snippets-section {
            background: #ffffff;
            border-radius: 1.25rem;
            overflow: hidden;
            margin-bottom: 2rem;
            box-shadow: 0 1px 3px rgba(0,0,0,0.05);
        }

        .snippets-header {
            padding: 1rem 1.5rem;
            border-bottom: 1px solid #f1f5f9;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 0.75rem;
        }

        .language-select {
            font-size: 0.8125rem;
            padding: 0.375rem 0.75rem;
            border: 1px solid #e2e8f0;
            border-radius: 0.5rem;
            background: white;
            color: #334155;
            font-family: inherit;
            cursor: pointer;
        }

        .code-block {
            background: #0f172a;
            margin: 0;
            padding: 1rem 1.5rem;
            position: relative;
        }

        .code-block pre {
            color: #e2e8f0;
            font-family: 'SF Mono', 'Fira Code', monospace;
            font-size: 0.75rem;
            line-height: 1.5;
            overflow-x: auto;
            white-space: pre-wrap;
            word-break: break-all;
        }

        .copy-snippet {
            position: absolute;
            top: 0.75rem;
            right: 1rem;
            background: rgba(255,255,255,0.1);
            border: none;
            padding: 0.25rem 0.75rem;
            font-size: 0.6875rem;
            border-radius: 0.375rem;
            color: #94a3b8;
            cursor: pointer;
            transition: all 0.1s ease;
        }

        .copy-snippet:hover {
            background: rgba(255,255,255,0.2);
            color: white;
        }

        /* Footer — elegant with links */
        .footer {
            margin-top: 2rem;
            padding-top: 2rem;
            border-top: 1px solid #e2e8f0;
            text-align: center;
        }

        .footer-links {
            display: flex;
            justify-content: center;
            gap: 2rem;
            flex-wrap: wrap;
            margin-bottom: 1rem;
        }

        .footer-links a {
            color: #64748b;
            text-decoration: none;
            font-size: 0.875rem;
            font-weight: 500;
            transition: color 0.15s ease;
            display: inline-flex;
            align-items: center;
            gap: 0.375rem;
        }

        .footer-links a:hover {
            color: #059669;
        }

        .footer-copyright {
            font-size: 0.75rem;
            color: #94a3b8;
        }

        /* Toast — minimal */
        .toast {
            position: fixed;
            bottom: 1.5rem;
            right: 1.5rem;
            background: #1e293b;
            color: white;
            padding: 0.5rem 1rem;
            border-radius: 0.5rem;
            font-size: 0.8125rem;
            font-weight: 500;
            z-index: 1000;
            animation: fadeUp 0.2s ease;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }

        @keyframes fadeUp {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Responsive elegance */
        @media (max-width: 900px) {
            .container {
                padding: 1rem;
            }
            .workspace {
                grid-template-columns: 1fr;
                gap: 1rem;
            }
            .stats {
                flex-wrap: wrap;
                gap: 0.75rem;
            }
            .footer-links {
                gap: 1rem;
            }
        }

        @media (max-width: 480px) {
            .button-group {
                gap: 0.375rem;
            }
            .btn {
                padding: 0.375rem 0.75rem;
                font-size: 0.75rem;
            }
            .panel-header {
                flex-direction: column;
                align-items: flex-start;
            }
            .seo-description {
                font-size: 0.8125rem;
                padding: 0.875rem 1rem;
            }
        }

        /* Utility */
        .divider {
            height: 1px;
            background: #f0f2f5;
            margin: 0.5rem 0;
        }

        /* Additional image-specific styles */
        .image-preview {
            margin-top: 1rem;
            text-align: center;
            padding: 1rem;
            background: #f8fafc;
            border-radius: 0.75rem;
            border: 1px solid #e2e8f0;
        }

        .preview-image {
            max-width: 100%;
            max-height: 300px;
            border-radius: 0.5rem;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }

        .image-info {
            margin-top: 0.75rem;
            font-size: 0.75rem;
            color: #64748b;
            display: flex;
            gap: 1rem;
            justify-content: center;
            flex-wrap: wrap;
        }

        .format-badge {
            background: #eef2ff;
            color: #4f46e5;
            padding: 0.25rem 0.75rem;
            border-radius: 1rem;
            font-size: 0.7rem;
            font-weight: 500;
        }

        .size-badge {
            background: #f1f5f9;
            color: #475569;
            padding: 0.25rem 0.75rem;
            border-radius: 1rem;
            font-size: 0.7rem;
            font-weight: 500;
        }

        .quality-control {
            margin-top: 1rem;
            padding: 1rem;
            background: #f8fafc;
            border-radius: 0.75rem;
            border: 1px solid #e2e8f0;
        }

        .quality-label {
            display: flex;
            justify-content: space-between;
            margin-bottom: 0.5rem;
            font-size: 0.75rem;
            color: #64748b;
        }

        input[type="range"] {
            width: 100%;
            margin: 0.5rem 0;
        }

        .copy-success {
            background: #059669;
            color: white;
        }

        #higherQualityText {
            font-size: 0.7rem;
             color: #64748b;
        }

        #supportedFileTypeText {
            font-size: 0.75rem;
            color: #94a3b8;
            margin-top: 0.5rem;
        }

        #logoSpan {
            font-weight: 500;
            font-size: 0.75rem;
        }

        #customSpaceStyle {
            grid-template-columns: 1fr;
        }

        #imagePreview {
            display: none;
        }

        #fileInput {
            display: none;
        }

        #dropZone {
            min-height: 200px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }

        #dropZoneSpan {
            font-size: 3rem;
            margin-bottom: 0.5rem;
        }