/* The consent page for AI assistants (/connect/, connect.js). Builds on
   site.css: the glass card, the sign-up form's fields and checkboxes. */
.connect h2 { margin-top: 8px; }
.connect h3 { margin: 18px 0 0; font-size: 1.05rem; }
.connect-status:empty { display: none; }
.connect-link { padding: 0; border: 0; background: none; font: inherit; color: var(--violet-ink); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; min-height: 44px; }
.connect-badge { display: inline-block; margin: 0; padding: 6px 12px; border-radius: 999px; background: var(--lav); color: var(--violet-ink); font-weight: 600; font-size: 0.9rem; overflow-wrap: anywhere; }
.connect-badge.connect-unverified { background: #fef3f2; color: #b42318; border-radius: 14px; }
.connect-note { padding: 12px 14px; border-radius: 14px; background: var(--mist); font-size: 0.95rem; }
/* Allow and Cancel: the same size and weight, nothing preselected. */
.connect-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.connect-btn { min-height: 52px; border-radius: 14px; font: inherit; font-weight: 600; cursor: pointer; justify-content: center; }
.connect-allow { border: 1.5px solid var(--ink); background: var(--ink); color: #fff; }
.connect-cancel { border: 1.5px solid var(--ink); background: #fff; color: var(--ink); }
.connect-btn:focus-visible { outline: 3px solid var(--violet-2); outline-offset: 2px; }
@media (max-width: 420px) { .connect-actions { grid-template-columns: 1fr; } }
/* Sign in with Google and Apple in the providers' own button styles
   (Google: white, grey outline; Apple: black), full width, the mark
   before the label. */
.connect-providers { display: grid; gap: 12px; margin: 16px 0 4px; }
.connect-provider { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; padding: 10px 16px; border-radius: 14px; font: inherit; font-weight: 600; cursor: pointer; }
.connect-provider:focus-visible { outline: 3px solid var(--violet-2); outline-offset: 2px; }
.connect-provider-mark { flex: none; }
.connect-google { border: 1px solid #747775; background: #fff; color: #1f1f1f; }
.connect-apple { border: 1px solid #000; background: #000; color: #fff; }
.connect-or { display: flex; align-items: center; gap: 12px; margin: 4px 0 0; color: var(--muted); font-size: 0.95rem; }
.connect-or::before, .connect-or::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: 0.35; }
.connect-warn { background: #fef3f2; color: #7a271a; }
/* The help page (/assistants/): the server address with Copy, the drawn
   steps (mirrored right to left) and the trademark note. */
.assist [hidden] { display: none !important; }
.assist-address { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 12px 14px; border-radius: 14px; background: var(--mist); border: 1px solid var(--line); }
.assist-address code { flex: 1 1 14em; font-size: 1.05rem; font-weight: 600; overflow-wrap: anywhere; }
.assist-copy { min-height: 44px; padding: 0 18px; border-radius: 12px; font: inherit; font-weight: 600; cursor: pointer; }
.assist-copied:empty { display: none; }
.assist-steps { padding-inline-start: 0; list-style: none; counter-reset: step; }
.assist-steps li { counter-increment: step; margin: 0 0 18px; }
.assist-step { display: grid; gap: 10px; }
.assist-step > span::before { content: counter(step); display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; margin-inline-end: 10px; border-radius: 50%; background: var(--lav); color: var(--violet-ink); font-weight: 700; font-size: 0.9em; }
.assist-drawing { width: 100%; max-width: 320px; height: auto; }
[dir="rtl"] .assist-drawing { transform: scaleX(-1); }
.assist-drawing .d-win { fill: #fff; stroke: rgba(17, 12, 40, 0.18); stroke-width: 1.2; }
.assist-drawing .d-soft { fill: #ecebf1; }
.assist-drawing .d-tint { fill: var(--lav); }
.assist-drawing .d-accent { fill: var(--violet-2); }
.assist-drawing .d-field { fill: var(--mist); stroke: rgba(17, 12, 40, 0.18); stroke-width: 1.2; }
.assist-drawing .d-knob { fill: #fff; }
.assist-drawing .d-ok { fill: #22a06b; }
.assist-drawing .d-check { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.assist-drawing .d-halo { fill: none; stroke: #fff; stroke-width: 5; }
.assist-drawing .d-ring { fill: none; stroke: var(--violet-2); stroke-width: 2; }
.assist-trademarks { margin-top: 28px; font-size: 0.9rem; }
/* site.css gives some of these elements a display; hidden wins. */
.connect [hidden] { display: none !important; }
