:root {
    --ink: #1a1a1a;
    --muted: #6b6b6b;
    --border: #ddd;
    --accent: #ED1B2F;
    --accent-light: #fde8ea;
    --bg: #fafaf8;
}

* { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    margin: 0;
    padding: 40px 20px;
}

.wrap {
    max-width: 640px;
    margin: 0 auto;
}

h1 {
    font-size: 26px;
    margin-bottom: 6px;
}

.site-logo {
    max-width: 200px;
    max-height: 80px;
    margin-bottom: 20px;
    display: block;
}

p.lead {
    color: var(--muted);
    margin-top: 0;
    margin-bottom: 32px;
}

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 28px;
}

label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 6px;
    margin-top: 18px;
}

label:first-of-type { margin-top: 0; }

input[type=text], input[type=email], input[type=url], textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}

.hint {
    color: var(--muted);
    font-size: 12px;
    margin-top: 4px;
}

.toggle-group {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.toggle-group button {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

.toggle-group button.active {
    background: var(--accent-light);
    border-color: var(--accent);
    color: var(--accent);
}

.query-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.query-row input { flex: 1; }

.query-row button.remove {
    border: none;
    background: none;
    color: var(--muted);
    cursor: pointer;
    font-size: 18px;
    padding: 0 8px;
}

#addQueryBtn, #generateBtn {
    margin-top: 8px;
    padding: 8px 14px;
    border: 1px dashed var(--border);
    background: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

.generate-btn {
    border: none !important;
    background: #1a73e8 !important;
    color: #fff !important;
    font-weight: 600;
    padding: 12px 16px !important;
    font-size: 14px !important;
    width: 100%;
}

.generate-btn:hover { background: #1558b0 !important; }
.generate-btn:disabled { opacity: 0.7; cursor: not-allowed; }

.generated-list label {
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-top: 8px;
}

.generated-list input[type=checkbox] { width: auto; }

.submit-btn {
    width: 100%;
    padding: 13px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 24px;
}

.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 6px;
    animation: spin 0.7s linear infinite;
}

.status-box {
    text-align: center;
    padding: 40px 20px;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.error { color: #b23b3b; font-size: 13px; margin-top: 8px; }
