        :root {
            --primary: #2563eb;
            --primary-hover: #1d4ed8;
            --secondary: #64748b;
            --light: #f1f5f9;
            --dark: #1e293b;
            --card-bg: #ffffff;
            --text: #334155;
            --border: #e2e8f0;
            --shadow: rgba(0, 0, 0, 0.1);
            --header-height: 72px;
            --radius: 8px;
            --transition: all 0.3s ease;
        }
        body.dark {
            --primary: #3b82f6;
            --primary-hover: #60a5fa;
            --secondary: #94a3b8;
            --light: #1e293b;
            --dark: #f1f5f9;
            --card-bg: #334155;
            --text: #e2e8f0;
            --border: #475569;
            --shadow: rgba(0, 0, 0, 0.25);
        }
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background-color: var(--light);
            color: var(--text);
            transition: var(--transition);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }
        header {
            height: var(--header-height);
            background-color: var(--card-bg);
            box-shadow: 0 2px 10px var(--shadow);
            position: sticky;
            top: 0;
            z-index: 100;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 24px;
            transition: var(--transition);
        }
        .header-left { display: flex; align-items: center; gap: 16px; }
        .logo { height: 40px; width: 40px; border-radius: 50%; overflow: hidden; }
        .logo img { width: 100%; height: 100%; object-fit: cover; }
        .site-title { font-size: 1.2rem; font-weight: 600; color: var(--text); }
        .header-right { display: flex; align-items: center; gap: 16px; }
        .theme-toggle {
            background: none; border: none; color: var(--text); cursor: pointer;
            font-size: 1.2rem; display: flex; align-items: center; justify-content: center;
            width: 40px; height: 40px; border-radius: 50%; transition: var(--transition);
        }
        .theme-toggle:hover { background-color: var(--border); }
        main {
            max-width: 1100px;
            width: 96%;
            margin: 40px auto;
            padding: 0 24px;
            flex: 1;
        }
        .page-title { margin-bottom: 32px; text-align: center; }
        .page-title h1 { font-size: 2rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
        .page-title p { color: var(--secondary); font-size: 1.1rem; }
        .card {
            background-color: var(--card-bg);
            border-radius: var(--radius);
            border: 1px solid var(--border);
            box-shadow: 0 4px 12px var(--shadow);
            padding: 32px 24px;
            margin-bottom: 32px;
            width: 98%;
            max-width: 900px;
            margin-left: auto;
            margin-right: auto;
        }
        .form-group { margin-bottom: 20px; }
        .form-group label {
            display: block;
            margin-bottom: 6px;
            font-weight: 500;
            color: var(--text);
            text-align: left;
        }
        .form-group input {
            width: 100%;
            padding: 10px;
            border-radius: var(--radius);
            border: 1px solid var(--border);
            font-size: 1rem;
            background: var(--light);
            color: var(--text);
            transition: var(--transition);
        }
        .form-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            justify-content: center;
            margin-top: 16px;
        }
        button, .btn {
            padding: 10px 16px;
            border-radius: var(--radius);
            font-weight: 500;
            text-decoration: none;
            text-align: center;
            transition: var(--transition);
            cursor: pointer;
            border: none;
            font-size: 0.95rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            background-color: var(--primary);
            color: white;
        }
        button:hover, .btn:hover { background-color: var(--primary-hover); }
        .btn-secondary {
            background-color: transparent;
            color: var(--primary);
            border: 1px solid var(--primary);
        }
        .btn-secondary:hover { background-color: var(--light); }
        #results-container {
            width: 98%;
            max-width: 900px;
            min-height: 215px;
            max-height: 800px;
            overflow-y: scroll;
            background-color: var(--card-bg);
            box-shadow: 0 4px 12px var(--shadow);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 20px;
            margin: 0 auto 32px auto;
        }
        .result {
            margin-bottom: 1px;
        }
        @media (max-width: 768px) {
            main { padding: 0 8px; }
            .card, #results-container { padding: 16px 8px; }
        }
        footer {
            background-color: var(--card-bg);
            border-top: 1px solid var(--border);
            padding: 24px;
            text-align: center;
            transition: var(--transition);
        }
        footer p { color: var(--secondary); font-size: 0.9rem; margin-bottom: 8px; }
        footer a { color: var(--primary); text-decoration: none; }
        footer a:hover { text-decoration: underline; }
        .github-link {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: var(--primary);
            font-weight: 500;
        }