/* OutboundLeadPro — shared design system (auth pages, legal pages, dashboard, admin).
   Same component API as the sister product's as.css: .btn .field .hint .check .switch .notice .badge .dot
   .toast-host/.toast .panel .grid .row .spacer .stack .muted .small .hidden .spinner .logo .sr .icon-btn + auth split screen. */
@font-face { font-family: 'Space Grotesk'; font-weight: 300 700; font-display: swap; src: url('/fonts/space-grotesk-latin-wght-normal.woff2') format('woff2-variations'), url('/fonts/space-grotesk-latin-wght-normal.woff2') format('woff2'); }
@font-face { font-family: 'Geist'; font-weight: 100 900; font-display: swap; src: url('/fonts/geist-latin-wght-normal.woff2') format('woff2-variations'), url('/fonts/geist-latin-wght-normal.woff2') format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-weight: 100 900; font-display: swap; src: url('/fonts/geist-mono-latin-wght-normal.woff2') format('woff2-variations'), url('/fonts/geist-mono-latin-wght-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('/fonts/instrument-serif-latin-400-italic.woff2') format('woff2'); }

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  /* brand (theme-independent) */
  --night: #070b1a; --night-2: #0d1430; --night-3: #141d42;
  --mint: #2ef2b0; --mint-2: #14d197; --sky: #4cc9ff; --sky-2: #1fa7e8; --coral: #ff6b5c; --sun: #ffc857;
  --grad: linear-gradient(115deg, #2ef2b0 0%, #4cc9ff 100%);
  /* aliases so code written against as.css keeps working */
  --violet: var(--sky-2); --violet-2: #1590cc; --aqua: var(--mint);
  /* light theme */
  --ink: #0a1024; --ink-2: #3a4566; --muted: #67728f; --paper: #f3f6fb; --paper-2: #e9eef7; --card: #ffffff; --card-2: #f7f9fd;
  --line: #e0e6f0; --line-2: #ccd5e4; --accent: #079a6c; --accent-ink: #04261c; --link: #0b7fc0;
  --good: #079a6c; --good-soft: #dcf7ec; --warn: #b26a00; --warn-soft: #fff1d6; --bad: #d63a2c; --bad-soft: #fde6e3; --info-soft: #e3f1fb;
  --glass: rgba(255,255,255,.72); --glow: rgba(46,242,176,.25);
  --disp: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif; --body: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace; --serif: 'Instrument Serif', Georgia, serif;
  --r: 14px; --r-lg: 22px;
  --shadow: 0 1px 2px rgba(10,16,36,.05), 0 14px 36px -20px rgba(10,16,36,.28);
  --shadow-lg: 0 2px 4px rgba(10,16,36,.04), 0 40px 80px -40px rgba(10,16,36,.35);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --ink: #e9efff; --ink-2: #aab5d4; --muted: #7d89ab; --paper: #070b1a; --paper-2: #0a1024; --card: #0e1532; --card-2: #121b3d;
  --line: #1b2550; --line-2: #283466; --accent: #2ef2b0; --accent-ink: #04261c; --link: #6fd6ff;
  --good: #2ee3a4; --good-soft: rgba(46,242,176,.12); --warn: #ffc857; --warn-soft: rgba(255,200,87,.13); --bad: #ff7a6c; --bad-soft: rgba(255,107,92,.14); --info-soft: rgba(76,201,255,.12);
  --glass: rgba(14,21,50,.66); --glow: rgba(46,242,176,.18);
  --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 18px 40px -22px rgba(0,0,0,.8);
  --shadow-lg: 0 1px 0 rgba(255,255,255,.04) inset, 0 50px 100px -40px rgba(0,0,0,.9);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --ink: #e9efff; --ink-2: #aab5d4; --muted: #7d89ab; --paper: #070b1a; --paper-2: #0a1024; --card: #0e1532; --card-2: #121b3d;
  --line: #1b2550; --line-2: #283466; --accent: #2ef2b0; --accent-ink: #04261c; --link: #6fd6ff;
  --good: #2ee3a4; --good-soft: rgba(46,242,176,.12); --warn: #ffc857; --warn-soft: rgba(255,200,87,.13); --bad: #ff7a6c; --bad-soft: rgba(255,107,92,.14); --info-soft: rgba(76,201,255,.12);
  --glass: rgba(14,21,50,.66); --glow: rgba(46,242,176,.18);
  --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 18px 40px -22px rgba(0,0,0,.8);
  --shadow-lg: 0 1px 0 rgba(255,255,255,.04) inset, 0 50px 100px -40px rgba(0,0,0,.9);
  color-scheme: dark;
} }

/* ── Base ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
h1, h2, h3 { font-family: var(--disp); color: var(--ink); }
h1, h2 { font-weight: 600; letter-spacing: -.035em; line-height: 1.06; margin: 0 0 12px; }
h1 { font-size: 2.1rem; } h2 { font-size: 1.55rem; }
h3 { font-weight: 600; font-size: 1.08rem; letter-spacing: -.015em; line-height: 1.25; margin: 0 0 8px; }
p { margin: 0 0 12px; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
img, svg { max-width: 100%; }
code, kbd, .mono { font-family: var(--mono); font-size: .9em; }
::selection { background: color-mix(in srgb, var(--mint) 40%, transparent); }
.muted { color: var(--muted); } .small { font-size: .875rem; } .hidden { display: none !important; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .spacer { flex: 1; }
.stack > * + * { margin-top: 18px; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn { --b: var(--mint); position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 12px;
  padding: 11px 18px; font: 600 .95rem/1.2 var(--body); letter-spacing: -.005em; cursor: pointer; text-decoration: none; white-space: nowrap;
  background: linear-gradient(180deg, #5ff7c4 0%, #2ef2b0 45%, #19d99a 100%); color: #03211a;
  box-shadow: 0 1px 0 rgba(255,255,255,.55) inset, 0 -1px 0 rgba(0,0,0,.08) inset, 0 6px 18px -8px rgba(20,209,151,.7);
  transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .2s, background .2s, border-color .2s, color .2s; }
.btn:hover { transform: translateY(-1px); text-decoration: none; box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 0 0 4px rgba(46,242,176,.16), 0 12px 28px -10px rgba(20,209,151,.8); }
.btn:active { transform: translateY(0) scale(.985); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.secondary { background: var(--card); color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow); }
.btn.secondary:hover { border-color: color-mix(in srgb, var(--sky) 60%, var(--line-2)); box-shadow: 0 0 0 4px var(--info-soft); }
.btn.ghost { background: transparent; color: var(--ink-2); box-shadow: none; }
.btn.ghost:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); box-shadow: none; }
.btn.danger { background: var(--card); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, var(--line)); box-shadow: none; }
.btn.danger:hover { background: var(--bad-soft); box-shadow: none; }
.btn.small { padding: 7px 12px; font-size: .85rem; border-radius: 10px; }
.btn.big { padding: 14px 24px; font-size: 1.02rem; border-radius: 14px; }
.btn.block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); cursor: pointer; transition: border-color .2s, color .2s, background .2s; padding: 0; }
.icon-btn:hover { color: var(--ink); border-color: var(--line-2); }
.icon-btn svg { width: 17px; height: 17px; }
.spinner { width: 15px; height: 15px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; display: inline-block; animation: spin .7s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Forms ──────────────────────────────────────────────────────────────── */
.field { margin-bottom: 16px; }
label { display: block; font-weight: 600; font-size: .875rem; margin-bottom: 6px; color: var(--ink); }
input, select, textarea { width: 100%; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); border-radius: 12px; padding: 11px 13px;
  font: 450 .97rem/1.4 var(--body); transition: border-color .15s, box-shadow .15s, background .15s; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--ink) 25%, var(--line-2)); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sky-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sky) 20%, transparent); }
input[type="checkbox"], input[type="radio"] { width: auto; }
textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237d89ab' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; }
.hint { font-size: .8rem; color: var(--muted); margin-top: 6px; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 450; font-size: .92rem; color: var(--ink-2); cursor: pointer; }
label.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--mint-2); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.grid { display: grid; gap: 16px; } .cols-2 { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); } .cols-3 { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); } .cols-4 { grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); }

/* ── Switch ─────────────────────────────────────────────────────────────── */
.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; margin: 0; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .tr { width: 44px; height: 26px; border-radius: 999px; background: var(--line-2); position: relative; transition: background .2s; flex: none; }
.switch .tr::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3); transition: transform .25s cubic-bezier(.3,1.4,.5,1); }
.switch input:checked + .tr { background: var(--mint-2); }
.switch input:checked + .tr::after { transform: translateX(18px); }
.switch input:focus-visible + .tr { outline: 2px solid var(--sky); outline-offset: 2px; }

/* ── Notices, badges, dots, toasts ──────────────────────────────────────── */
.notice { padding: 12px 14px; border-radius: 12px; font-size: .92rem; margin-bottom: 14px; border: 1px solid transparent; line-height: 1.5; }
.notice.ok { background: var(--good-soft); color: var(--good); border-color: color-mix(in srgb, var(--good) 25%, transparent); }
.notice.bad { background: var(--bad-soft); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 25%, transparent); }
.notice.warn { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
.notice.info { background: var(--info-soft); color: var(--ink); border-color: color-mix(in srgb, var(--sky) 25%, transparent); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: .76rem; font-weight: 600; background: var(--info-soft); color: var(--ink-2); white-space: nowrap; line-height: 1.5; }
.badge.ok, .badge.active, .badge.sent, .badge.verified, .badge.interested, .badge.won, .badge.published { background: var(--good-soft); color: var(--good); }
.badge.warn, .badge.paused, .badge.scheduled, .badge.review, .badge.risky, .badge.catchall, .badge.warming { background: var(--warn-soft); color: var(--warn); }
.badge.bad, .badge.failed, .badge.bounced, .badge.invalid, .badge.rejected, .badge.error, .badge.lost, .badge.blocked { background: var(--bad-soft); color: var(--bad); }
.badge.info, .badge.draft, .badge.running, .badge.sending, .badge.writing, .badge.publishing, .badge.meeting { background: var(--info-soft); color: var(--sky-2); }
:root[data-theme="dark"] .badge.info, :root[data-theme="dark"] .badge.running, :root[data-theme="dark"] .badge.sending, :root[data-theme="dark"] .badge.meeting { color: var(--sky); }
.badge.running::before, .badge.sending::before, .badge.writing::before, .badge.publishing::before, .badge.warming::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 1s infinite alternate; }
@keyframes pulse { to { opacity: .25; } }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--muted); flex: none; }
.dot.online { background: var(--good); box-shadow: 0 0 0 3px var(--good-soft); } .dot.degraded { background: var(--sun); box-shadow: 0 0 0 3px var(--warn-soft); } .dot.offline { background: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }
.toast-host { position: fixed; right: 18px; bottom: 18px; z-index: 100; display: grid; gap: 8px; max-width: calc(100vw - 36px); }
.toast { background: var(--night-2); color: #eef3ff; padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 16px 40px -14px rgba(0,0,0,.6); font-weight: 500; font-size: .92rem; max-width: 380px; animation: rise .3s cubic-bezier(.2,.8,.2,1); }
.toast.ok { border-left: 3px solid var(--mint); } .toast.bad { border-left: 3px solid var(--coral); } .toast.info { border-left: 3px solid var(--sky); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.offline-bar { background: var(--bad); color: #fff; text-align: center; padding: 8px; font-weight: 600; }
.status-pill { position: relative; display: inline-block; }
.status-pill > button { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); border-radius: 999px; padding: 5px 12px; font: 500 .82rem var(--body); cursor: pointer; }
.status-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: 300px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; box-shadow: var(--shadow-lg); font-size: .88rem; }
.status-pop ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.status-pop li { display: flex; align-items: center; gap: 8px; } .status-pop .d { margin-left: auto; color: var(--muted); font-size: .8rem; }

/* ── Surfaces ───────────────────────────────────────────────────────────── */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-weight: 600; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:hover td { background: color-mix(in srgb, var(--ink) 2.5%, transparent); }
kbd { border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; font-size: .78rem; background: var(--card-2); }

/* Logo: mark + word */
.logo { display: inline-flex; align-items: center; gap: 10px; font: 600 1.2rem var(--disp); text-decoration: none; color: inherit; letter-spacing: -.03em; }
.logo:hover { text-decoration: none; }
.logo img, .logo svg { width: 30px; height: 30px; flex: none; }
.logo b { font-weight: 600; } .logo b span { color: var(--accent); }

/* ── Auth pages: split screen ───────────────────────────────────────────── */
.auth-wrap { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1fr; }
@media (min-width: 960px) { .auth-wrap { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
.auth-side { background: var(--night); color: #fff; padding: 36px 48px 40px; position: relative; overflow: hidden; display: flex; flex-direction: column; isolation: isolate; }
.auth-side::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(120,150,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(120,150,255,.07) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 75%); }
.auth-side .aurora { position: absolute; inset: -20%; z-index: -2; filter: blur(80px); opacity: .55; }
.auth-side .aurora span { position: absolute; border-radius: 50%; animation: drift 18s ease-in-out infinite alternate; }
.auth-side .aurora span:nth-child(1) { width: 460px; height: 460px; left: 45%; top: 5%; background: #1b6fd1; }
.auth-side .aurora span:nth-child(2) { width: 380px; height: 380px; left: 5%; top: 55%; background: var(--mint); opacity: .45; animation-duration: 24s; }
@keyframes drift { to { transform: translate(-60px, 50px) scale(1.15); } }
.auth-side .logo { color: #fff; position: relative; z-index: 2; }
.auth-side .logo b span { color: var(--mint); }
.auth-side h1 { color: #fff; font-size: clamp(2.1rem, 3.5vw, 3.2rem); margin-top: auto; max-width: 12em; letter-spacing: -.04em; }
.auth-side h1 em { font: italic 400 1.08em/1 var(--serif); letter-spacing: -.01em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.auth-side .lead { color: rgba(226,234,255,.72); max-width: 30em; font-size: 1.04rem; }
/* orbit: mailboxes sending to an inbox (pure CSS) */
.orbit { position: absolute; right: -90px; top: 40px; width: 460px; height: 460px; z-index: -1; opacity: .9; pointer-events: none; }
.orbit i { position: absolute; inset: 0; border: 1px dashed rgba(120,170,255,.18); border-radius: 50%; animation: spin 60s linear infinite; }
.orbit i:nth-child(2) { inset: 70px; animation-duration: 40s; animation-direction: reverse; border-color: rgba(46,242,176,.2); }
.orbit i:nth-child(3) { inset: 140px; animation-duration: 28s; border-style: solid; border-color: rgba(76,201,255,.14); }
.orbit i::after { content: ''; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 18px 4px rgba(46,242,176,.6); }
.orbit i:nth-child(2)::after { background: var(--sky); box-shadow: 0 0 18px 4px rgba(76,201,255,.6); top: auto; bottom: -5px; }
.orbit i:nth-child(3)::after { width: 7px; height: 7px; background: #fff; box-shadow: 0 0 12px 3px rgba(255,255,255,.5); left: 0; top: 50%; }
.orbit b { position: absolute; inset: 200px; border-radius: 18px; background: url('/favicon.svg') center / cover no-repeat; box-shadow: 0 0 70px 14px rgba(46,242,176,.22), 0 0 0 1px rgba(255,255,255,.08); animation: bob 6s ease-in-out infinite alternate; }
@keyframes bob { to { transform: translateY(-8px) rotate(-4deg); } }
.mini-answer { margin-top: 26px; background: rgba(14,21,50,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: #e9efff; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 16px 18px; max-width: 470px; box-shadow: 0 30px 70px -30px rgba(0,0,0,.9); }
.mini-answer .q { display: flex; align-items: center; gap: 10px; font-weight: 600; margin-bottom: 10px; font-size: .92rem; }
.mini-answer .q .av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(140deg, #ff9a8b, #ff6b5c); color: #fff; font-size: .75rem; font-weight: 700; flex: none; }
.mini-answer .q small { display: block; font-weight: 400; color: rgba(226,234,255,.55); font-size: .78rem; }
.mini-answer .q .lbl { margin-left: auto; font-size: .72rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: rgba(46,242,176,.15); color: var(--mint); white-space: nowrap; }
.mini-answer p { margin: 0; font-size: .93rem; color: rgba(233,239,255,.9); min-height: 4.8em; line-height: 1.55; }
.mini-answer .cite { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 5px; background: var(--mint); color: #04261c; font: 700 .68rem var(--body); vertical-align: 1px; }
.mini-answer .src { margin-top: 12px; display: inline-flex; gap: 8px; align-items: center; border: 1px solid rgba(46,242,176,.35); background: rgba(46,242,176,.08); color: var(--mint); border-radius: 10px; padding: 5px 10px; font-size: .78rem; font-weight: 600; }
.auth-side ul.points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 9px; color: rgba(226,234,255,.78); font-size: .95rem; }
.auth-side ul.points li { display: flex; gap: 10px; align-items: baseline; }
.auth-side ul.points li::before { content: ''; flex: none; width: 16px; height: 16px; border-radius: 50%; transform: translateY(3px); background: rgba(46,242,176,.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232ef2b0' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 10px no-repeat; }
@media (max-width: 959px) {
  .auth-side { padding: 22px 20px 26px; }
  .auth-side h1 { margin-top: 22px; font-size: 1.75rem; } .auth-side .lead { font-size: .95rem; margin: 0; }
  .mini-answer, .auth-side ul.points { display: none; } .orbit { width: 300px; height: 300px; right: -120px; top: -40px; opacity: .5; } .orbit b { display: none; }
}
.auth-main { display: grid; place-items: center; padding: 48px 20px; position: relative; }
.auth-main::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(600px 300px at 50% 0%, var(--glow), transparent 70%); opacity: .6; }
.auth-card { width: min(420px, 100%); position: relative; animation: rise .5s cubic-bezier(.2,.8,.2,1); }
.auth-card h2 { font-size: 2.05rem; letter-spacing: -.04em; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); margin-bottom: 26px; }
.auth-foot { margin-top: 20px; font-size: .92rem; color: var(--muted); line-height: 1.8; }
.auth-top { position: absolute; top: 18px; right: 18px; display: flex; gap: 8px; z-index: 3; }
.pw-meter { height: 4px; border-radius: 3px; background: var(--line); margin-top: 8px; overflow: hidden; }
.pw-meter i { display: block; height: 100%; width: 0; background: var(--bad); transition: width .3s, background .3s; }
#turnstile:empty { display: none; }

/* ── Simple document pages (terms, privacy, 404) ────────────────────────── */
.doc-top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 82%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.doc-top .in { max-width: 860px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 10px; }
.doc { max-width: 860px; margin: 0 auto; padding: 40px 20px 90px; }
.doc h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); margin: 10px 0 10px; letter-spacing: -.045em; }
.doc h2 { font-size: 1.3rem; margin: 40px 0 10px; letter-spacing: -.02em; scroll-margin-top: 80px; }
.doc h3 { margin: 22px 0 6px; }
.doc p, .doc li { color: var(--ink-2); }
.doc li { margin-bottom: 6px; } .doc ul, .doc ol { padding-left: 1.2em; }
.doc .toc { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; margin: 26px 0; columns: 2 220px; column-gap: 24px; }
.doc .toc a { display: block; padding: 3px 0; color: var(--ink-2); text-decoration: none; font-size: .93rem; break-inside: avoid; }
.doc .toc a:hover { color: var(--accent); }
.doc .callout { border-left: 3px solid var(--mint-2); background: var(--good-soft); padding: 14px 18px; border-radius: 0 12px 12px 0; color: var(--ink); margin: 18px 0; }
.doc .ph { background: var(--warn-soft); color: var(--warn); padding: 1px 6px; border-radius: 6px; font-weight: 600; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: .92rem; }
.doc th, .doc td { border-bottom: 1px solid var(--line); padding: 9px 10px; text-align: left; vertical-align: top; color: var(--ink-2); }
.doc th { color: var(--ink); font-weight: 600; }
.doc-foot { border-top: 1px solid var(--line); margin-top: 50px; padding-top: 20px; color: var(--muted); font-size: .9rem; display: flex; gap: 14px; flex-wrap: wrap; }
.nf { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; text-align: center; padding: 30px 20px; position: relative; overflow: hidden; isolation: isolate; }
.nf::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(500px 300px at 50% 30%, var(--glow), transparent 70%); }
.nf .code { font: 600 clamp(6rem, 26vw, 12rem)/1 var(--disp); letter-spacing: -.07em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 18px 0 6px; }
.nf .bounce { display: inline-flex; gap: 8px; align-items: center; font: 500 .82rem var(--mono); color: var(--bad); background: var(--bad-soft); padding: 5px 12px; border-radius: 999px; }

@media (max-width: 640px) { input, select, textarea { font-size: 16px; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; } }
