/* connect/connect.css — the consent page (connect/index.html) and the guide (connect/help.html). Light and dark. */
:root {
    color-scheme: light dark;
    --bg: #f1f5f9; --card: #ffffff; --text: #1e293b; --muted: #64748b; --line: #e2e8f0;
    --brand: #1d4ed8; --brand-ink: #ffffff; --ok: #15803d; --bad: #b91c1c; --hint-bg: #fef9c3; --hint-ink: #713f12;
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0b1220; --card: #111a2e; --text: #e2e8f0; --muted: #94a3b8; --line: #1e293b;
        --brand: #3b82f6; --brand-ink: #ffffff; --ok: #4ade80; --bad: #f87171; --hint-bg: #3f3a12; --hint-ink: #fde68a;
    }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: system-ui, "Segoe UI", Tahoma, sans-serif; line-height: 1.7; }
.cx { max-width: 520px; margin: 0 auto; padding: 24px 16px 48px; }
.cx-brand { text-align: center; margin-bottom: 14px; }
.cx-brand img { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18); }
.cx-brand h1 { font-size: 1.3rem; margin: 10px 0 0; }
.cx-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08); }
.cx-card h2 { font-size: 1.12rem; margin: 0 0 6px; overflow-wrap: anywhere; }
.cx-card h3 { font-size: 0.95rem; margin: 16px 0 4px; }
.cx-card h4 { font-size: 0.9rem; margin: 12px 0 2px; }
.cx-card code { overflow-wrap: anywhere; }
.cx-muted { color: var(--muted); margin: 4px 0; }
.cx-small { font-size: 0.82rem; margin-top: 14px; }
.cx-hint { background: var(--hint-bg); color: var(--hint-ink); border-radius: 10px; padding: 8px 10px; font-size: 0.85rem; margin: 10px 0 0; }
.cx-list { margin: 0; padding-inline-start: 22px; }
.cx-list li { margin: 2px 0; }
.cx-list--yes li::marker { content: "✓  "; color: var(--ok); }
.cx-list--no li::marker { content: "✕  "; color: var(--bad); }
.cx-check { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0 4px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.cx-check input { width: 20px; height: 20px; margin: 3px 0 0; flex: 0 0 auto; }
.cx-account { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; font-size: 0.9rem; }
.cx-account b { overflow-wrap: anywhere; }
.cx-link { background: none; border: 0; color: var(--brand); font: inherit; cursor: pointer; padding: 4px; text-decoration: underline; }
.cx-msg { min-height: 1.4em; margin: 10px 0 0; font-size: 0.9rem; }
.cx-msg.is-error { color: var(--bad); }
.cx-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.cx-btn { flex: 1 1 140px; min-height: 48px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.cx-btn--primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.cx-btn:disabled { opacity: 0.6; cursor: progress; }
.cx-btn:focus-visible, .cx-link:focus-visible, .cx-check input:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
a { color: var(--brand); }
.cx-steps { padding-inline-start: 22px; }
.cx-steps li { margin-bottom: 8px; }
code { direction: ltr; display: inline-block; background: var(--bg); padding: 2px 8px; border-radius: 8px; font-size: 0.85rem; overflow-wrap: anywhere; }
