 * { margin: 0; padding: 0; box-sizing: border-box; }
        body {
            font-family: 'Segoe UI', Roboto, system-ui, sans-serif;
            background: #f8fafc;
            color: #0f172a;
            padding: 20px;
            transition: background 0.3s, color 0.3s;
        }
        body.dark {
            background: #0f172a;
            color: #e2e8f0;
        }
        .container {
            max-width: 1500px;
            margin: 0 auto;
        }
        .header {
            text-align: center;
            margin-bottom: 30px;
        }
        .header h1 {
            font-size: 2rem;
            background: linear-gradient(135deg, #2563eb, #7c3aed);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
        .badge {
            display: inline-block;
            background: #10b98120;
            border: 1px solid #10b981;
            border-radius: 40px;
            padding: 5px 15px;
            font-size: 0.8rem;
            margin-top: 10px;
        }
        .grid-2 {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
        }
        @media (max-width: 900px) {
            .grid-2 {
                grid-template-columns: 1fr;
            }
        }
        .card {
            background: white;
            border-radius: 28px;
            padding: 28px;
            box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
            border: 1px solid #e2e8f0;
        }
        body.dark .card {
            background: #1e293b;
            border-color: #334155;
        }
        .card h2 {
            font-size: 1.5rem;
            margin-bottom: 20px;
            border-left: 5px solid #f59e0b;
            padding-left: 15px;
        }
        label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
        }
        input, select, textarea {
            width: 100%;
            padding: 12px 15px;
            background: #ffffff;
            border: 1px solid #cbd5e1;
            border-radius: 16px;
            font-size: 1rem;
            margin-bottom: 20px;
        }
        body.dark input, body.dark select, body.dark textarea {
            background: #0f172a;
            border-color: #475569;
            color: #f1f5f9;
        }
        button {
            background: #f59e0b;
            color: #0f172a;
            border: none;
            padding: 10px 20px;
            border-radius: 40px;
            font-weight: 600;
            cursor: pointer;
            transition: 0.2s;
            margin-right: 10px;
            margin-bottom: 12px;
        }
        button:hover {
            background: #d97706;
            transform: translateY(-2px);
        }
        .btn-secondary {
            background: #e2e8f0;
            color: #1e293b;
        }
        body.dark .btn-secondary {
            background: #334155;
            color: #e2e8f0;
        }
        .flex-row {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 15px;
        }
        .lsi-box, .title-box {
            background: #f1f5f9;
            border-radius: 16px;
            padding: 12px;
            margin-bottom: 20px;
            font-size: 0.85rem;
        }
        body.dark .lsi-box, body.dark .title-box {
            background: #334155;
        }
        .output-area {
            background: #0f172a;
            color: #e2e8f0;
            border-radius: 20px;
            padding: 18px;
            font-family: 'Courier New', monospace;
            font-size: 0.75rem;
            white-space: pre-wrap;
            max-height: 600px;
            overflow-y: auto;
            margin-top: 15px;
        }
        .history-item {
            background: #f1f5f9;
            border-radius: 12px;
            padding: 10px;
            margin-bottom: 8px;
            cursor: pointer;
            font-size: 0.8rem;
        }
        body.dark .history-item {
            background: #334155;
        }
        .footer {
            text-align: center;
            margin-top: 40px;
            padding-top: 20px;
            border-top: 1px solid #e2e8f0;
            font-size: 0.8rem;
        }
        .dark-toggle {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background: #f59e0b;
            border-radius: 50%;
            width: 48px;
            height: 48px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 4px 12px rgba(0,0,0,0.2);
            z-index: 1000;
        }
        .batch-tabs {
            display: flex;
            gap: 8px;
            border-bottom: 1px solid #e2e8f0;
            margin-bottom: 15px;
            flex-wrap: wrap;
        }
        .tab-btn {
            background: none;
            border: none;
            padding: 8px 16px;
            border-radius: 30px;
            color: #64748b;
            margin: 0;
        }
        .tab-btn.active {
            background: #f59e0b;
            color: white;
        }
        .row-2col {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
            margin-bottom: 20px;
        }