/* ═══ ClipSpeedAI — THE WHITE SIGN-IN (r296, Kyle 2026-10-18) ═══════════════════════════════════
   ONE stylesheet for every sign-in surface, so one value changes all of them:
     S1  app/index.html #authGate             the full-page sign-in on every logged-out /app/ visit
     S2  landing.js     #popupOverlay/#popupCard, skinned at load on the ~370 marketing pages
     S3  home.html      its own #popupCard (same skin) + the #lhSigninWiz returning-member card
   Every surface uses the same nesting and class names:
     .csai-si-frame         fixed, full-screen, scrolls if it ever must     (#authGate, #popupCard, #lhSigninWiz)
       .csai-si-center      min-height:100% column, so the sheet centres without clipping its top
         .csai-si-sheet     phone: no chrome on white · >=640px: the centred white card
           .csai-si[data-mode=new|returning]   the component; [data-si-new]/[data-si-ret] carry per-mode copy
   The popup backdrop is #popupOverlay.csai-si-overlay (S2/S3); the wizard frame paints its own.
   Host pages carry inline styles and old dark !important rules on these same ids, so visual
   properties here are !important and id-qualified where an id is involved. Deliberately no dark
   media block: it stays white under prefers-color-scheme: dark (color-scheme:light). */

:root{--csai-si-ready:1}   /* landing.js holds the popup until this has applied — no flash of the old shell */
.csai-si-frame,.csai-si-overlay,.csai-si-sheet,.csai-si{color-scheme:light}

/* ── frame / centre / sheet ────────────────────────────────────────────────────────────────── */
.csai-si-frame{position:fixed!important;top:0!important;right:0!important;bottom:0!important;left:0!important;width:auto!important;height:auto!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;transform:none!important;animation:none!important;background:#fff!important;background-image:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;box-sizing:border-box!important;text-align:center!important}
.csai-si-center{display:flex!important;flex-direction:column!important;box-sizing:border-box!important;width:100%!important;min-height:100%!important;margin:0!important;padding:0!important}
.csai-si-sheet{position:relative!important;box-sizing:border-box!important;width:100%!important;max-width:none!important;flex:1 0 auto!important;margin:0!important;padding:max(20px,calc(env(safe-area-inset-top) + 12px)) max(22px,env(safe-area-inset-right)) max(20px,calc(env(safe-area-inset-bottom) + 12px)) max(22px,env(safe-area-inset-left))!important;background:#fff!important;background-image:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;animation:none!important;overflow:visible!important;text-align:center!important;display:flex!important;flex-direction:column!important;justify-content:center!important}
.csai-si-overlay{background:#fff!important;background-image:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
.csai-si-sheet:focus{outline:none!important}   /* focus lands on the dialog itself when it opens */
#popupOverlay.csai-si-overlay{background:#fff!important;z-index:9998!important}
#popupCard.csai-si-frame{z-index:9999!important}   /* above the sticky site nav (9000) and the scan overlay */
html.csai-si-open,html.csai-si-open body{background:#fff!important}
/* phones: size the sheet to the SCREEN. On a page whose content overflows sideways (wide tables on ~57
   blog/compare pages) Chrome stretches the layout viewport past the screen, and inset:0 followed it, so
   the sheet's centre fell off the right edge. vw/dvh follow the device width and the visible height. */
@media (max-width:639px){
  .csai-si-frame{right:auto!important;bottom:auto!important;width:100vw!important;height:calc(100vh - var(--csai-consent-h,0px))!important;height:calc(100dvh - var(--csai-consent-h,0px))!important}
}
/* S1 first paint: app/index.html's <head> sets html.csai-si-pre on a logged-out load (no live session
   in storage), so the page is white from its first frame instead of the app's black canvas, grid and
   chrome — the 4MB document paints for a while before the boot reaches the line that shows #authGate.
   Lifted the moment the gate shows (or at DOMContentLoaded if this load never shows it). */
html.csai-si-pre,html.csai-si-pre body{background:#fff!important;background-image:none!important}
html.csai-si-pre body>:not(#authGate){visibility:hidden!important}
/* a sign-in open over a page that shows the cookie bar (home.html): the bar turns white with it, and
   the sign-in stops above it so the terms line is never under it. Both stay reachable. */
html.csai-si-open .csai-si-frame{bottom:var(--csai-consent-h,0px)!important}
html.csai-si-open #csaiConsent{background:#fff!important;background-image:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;border-top:1px solid #e5e7eb!important;box-shadow:0 -6px 18px rgba(17,24,39,.06)!important}
html.csai-si-open #csaiConsent span{color:#4b5563!important}
html.csai-si-open #csaiConsent a{color:#6d28d9!important}
html.csai-si-open #csaiConsent button[onclick*="Decline"]{color:#374151!important;border-color:#d1d5db!important;background:#fff!important}

/* the legacy popup furniture (proof pill, stats, feature list, trial footer…) stays in the DOM for
   any script that still writes to it, and is never shown */
.csai-si-legacy{display:none!important}

/* ── the component ─────────────────────────────────────────────────────────────────────────── */
.csai-si{
  --si-mark:28px;--si-word:20px;
  --si-h1:28px;--si-sub-fs:15px;
  --si-ctl:48px;--si-in-fs:16px;--si-btn-fs:15px;--si-label-fs:14px;--si-small-fs:13.5px;
  --si-gap-brand:18px;--si-gap-title:6px;--si-gap-sub:18px;--si-gap-or:12px;
  --si-gap-field:12px;--si-gap-label:6px;--si-gap-cta:14px;--si-gap-foot:12px;
  position:relative!important;display:block!important;width:100%!important;max-width:440px!important;margin:0 auto!important;padding:0!important;
  box-sizing:border-box!important;text-align:center!important;color:#111827!important;background:none!important;
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif!important;   /* the app's own stack, on every surface: one typeface everywhere, no web-font fetch, a real italic */
  font-size:15px!important;font-weight:500!important;line-height:1.45!important;letter-spacing:normal!important;
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;
}
.csai-si *,.csai-si *::before,.csai-si *::after{box-sizing:border-box!important}
.csai-si[data-mode="new"] [data-si-ret],.csai-si[data-mode="returning"] [data-si-new]{display:none!important}

/* 1 — logo row: the existing bolt mark + "ClipSpeed.AI" */
.csai-si .csai-si-brand{display:flex!important;align-items:center!important;justify-content:center!important;gap:10px!important;margin:0 0 var(--si-gap-brand)!important;padding:0!important}
/* the SAME tile as the site header's .csnav-mark (home.html): #a855f7→#6366f1, the ⚡ emoji, radius 28%,
   soft purple glow (Kyle 2026-10-18: "clean like the one on our website"). The inline SVG stays in the
   markup for a no-emoji fallback but is hidden; the bolt is painted by ::before. */
.csai-si .csai-si-mark{width:var(--si-mark)!important;height:var(--si-mark)!important;border-radius:calc(var(--si-mark) * .28)!important;flex:none!important;display:inline-grid!important;place-items:center!important;background:linear-gradient(135deg,#a855f7,#6366f1)!important;color:#fff!important;box-shadow:0 0 14px rgba(168,85,247,.4)!important;border:0!important;animation:none!important;line-height:1!important;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif!important}
.csai-si .csai-si-mark svg{display:none!important}
.csai-si .csai-si-mark::before{content:"\26A1";font-size:calc(var(--si-mark) * .47);line-height:1;display:block}
.csai-si .csai-si-word{font-size:var(--si-word)!important;font-weight:900!important;letter-spacing:-.03em!important;line-height:1!important;color:#111827!important;-webkit-text-fill-color:#111827!important;background:none!important}
.csai-si .csai-si-word span{color:#7c3aed!important;-webkit-text-fill-color:#7c3aed!important}

/* 2 — headline with one accent word */
.csai-si .csai-si-title{display:block!important;margin:0 0 var(--si-gap-title)!important;padding:0!important;font-family:inherit!important;font-size:var(--si-h1)!important;font-weight:900!important;letter-spacing:-.04em!important;line-height:1.08!important;color:#111827!important;-webkit-text-fill-color:#111827!important;background:none!important;text-wrap:balance}
/* background-clip:text paints only inside the em's box, and a slanted glyph overhangs its advance
   width: the right padding widens the paint box (so the last letter is never cut flat) and the
   negative margin gives the width back, so the layout does not move */
.csai-si .csai-si-title em{font-style:italic!important;font-weight:900!important;color:#7c3aed!important;-webkit-text-fill-color:#7c3aed!important;padding:0 .22em 0 .04em!important;margin:0 -.18em 0 -.04em!important}
@supports ((-webkit-background-clip:text) or (background-clip:text)){
  .csai-si .csai-si-title em{background:linear-gradient(135deg,#7c3aed,#a855f7)!important;-webkit-background-clip:text!important;background-clip:text!important;-webkit-text-fill-color:transparent!important}
}

/* 3 — sub */
.csai-si .csai-si-sub{display:block!important;margin:0 0 var(--si-gap-sub)!important;padding:0!important;font-size:var(--si-sub-fs)!important;font-weight:500!important;letter-spacing:0!important;line-height:1.45!important;color:#6b7280!important;-webkit-text-fill-color:#6b7280!important;background:none!important}

/* 4 — the white Google pill (no tag, no glow) */
.csai-si .csai-si-google{position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:12px!important;width:100%!important;height:var(--si-ctl)!important;min-height:0!important;margin:0!important;padding:0 18px!important;background:#fff!important;background-image:none!important;border:1px solid #e5e7eb!important;border-radius:999px!important;box-shadow:0 1px 2px rgba(16,24,40,.06)!important;animation:none!important;color:#111827!important;-webkit-text-fill-color:#111827!important;font-family:inherit!important;font-size:var(--si-btn-fs)!important;font-weight:700!important;letter-spacing:-.01em!important;line-height:1!important;text-decoration:none!important;text-transform:none!important;cursor:pointer!important;transform:none!important;transition:border-color .15s,box-shadow .15s!important;-webkit-appearance:none!important;appearance:none!important}
.csai-si .csai-si-google:hover{border-color:#c7d2fe!important;box-shadow:0 1px 3px rgba(16,24,40,.08)!important}
.csai-si .csai-si-google:focus{outline:none!important}
.csai-si .csai-si-google:focus-visible{border-color:#a78bfa!important;box-shadow:0 0 0 4px rgba(167,139,250,.3)!important}
.csai-si .csai-si-google svg{width:20px!important;height:20px!important;flex:none!important;display:block!important}
.csai-si .csai-si-google span{color:inherit!important;-webkit-text-fill-color:inherit!important;font:inherit!important}

/* 5 — OR */
.csai-si .csai-si-or{display:flex!important;align-items:center!important;gap:14px!important;margin:var(--si-gap-or) 0!important;padding:0!important;font-size:12px!important;font-weight:600!important;letter-spacing:.14em!important;line-height:1!important;color:#9ca3af!important;-webkit-text-fill-color:#9ca3af!important}
.csai-si .csai-si-or::before,.csai-si .csai-si-or::after{content:""!important;flex:1!important;height:1px!important;background:#e5e7eb!important}

/* 6/7 — labels, inputs, the password eye */
.csai-si .csai-si-form{display:block!important;margin:0!important;padding:0!important;text-align:left!important}
.csai-si .csai-si-field{display:block!important;margin:0!important;padding:0!important}
.csai-si .csai-si-field+.csai-si-field{margin-top:var(--si-gap-field)!important}
.csai-si .csai-si-label{display:block!important;margin:0 0 var(--si-gap-label)!important;padding:0!important;font-size:var(--si-label-fs)!important;font-weight:600!important;line-height:1.3!important;letter-spacing:0!important;text-transform:none!important;color:#111827!important;-webkit-text-fill-color:#111827!important;text-align:left!important}
.csai-si .csai-si-input{display:block!important;width:100%!important;height:var(--si-ctl)!important;min-height:0!important;margin:0!important;padding:0 16px!important;background:#fff!important;background-image:none!important;border:1px solid #e5e7eb!important;border-radius:14px!important;box-shadow:none!important;outline:none!important;color:#111827!important;-webkit-text-fill-color:#111827!important;caret-color:#7c3aed!important;font-family:inherit!important;font-size:var(--si-in-fs)!important;font-weight:500!important;line-height:normal!important;letter-spacing:0!important;opacity:1!important;transition:border-color .15s,box-shadow .15s!important;-webkit-appearance:none!important;appearance:none!important}
.csai-si .csai-si-input::placeholder{color:#9ca3af!important;-webkit-text-fill-color:#9ca3af!important;opacity:1!important}
.csai-si .csai-si-input:focus{border-color:#a78bfa!important;box-shadow:0 0 0 4px rgba(167,139,250,.22)!important}
.csai-si .csai-si-input:disabled{background:#f9fafb!important;color:#6b7280!important;-webkit-text-fill-color:#6b7280!important}
.csai-si .csai-si-input[aria-invalid="true"]{border-color:#f87171!important}
.csai-si .csai-si-input[aria-invalid="true"]:focus{box-shadow:0 0 0 4px rgba(248,113,113,.2)!important}
.csai-si .csai-si-pw{position:relative!important;display:block!important;margin:0!important;padding:0!important}
.csai-si .csai-si-pw .csai-si-input{padding-right:52px!important}
.csai-si .csai-si-eye{position:absolute!important;top:50%!important;right:2px!important;transform:translateY(-50%)!important;width:44px!important;height:44px!important;margin:0!important;padding:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;background:transparent!important;border:0!important;border-radius:999px!important;box-shadow:none!important;color:#9ca3af!important;cursor:pointer!important}
.csai-si .csai-si-eye:hover{color:#4b5563!important;background:#f3f4f6!important}
.csai-si .csai-si-eye:focus{outline:none!important}
.csai-si .csai-si-eye:focus-visible{box-shadow:0 0 0 3px rgba(167,139,250,.45)!important;color:#4b5563!important}
.csai-si .csai-si-eye svg{width:20px!important;height:20px!important;display:block!important;pointer-events:none!important}
.csai-si .csai-si-eye .csai-si-eye-off,.csai-si .csai-si-eye[aria-pressed="true"] .csai-si-eye-on{display:none!important}
.csai-si .csai-si-eye[aria-pressed="true"] .csai-si-eye-off{display:block!important}
.csai-si .csai-si-hint{margin:6px 0 0!important;font-size:12.5px!important;line-height:1.4!important;color:#6b7280!important;-webkit-text-fill-color:#6b7280!important;text-align:left!important}
.csai-si .csai-si-err{display:block!important;margin:6px 0 0!important;padding:0!important;font-size:13px!important;font-weight:600!important;line-height:1.35!important;color:#b91c1c!important;-webkit-text-fill-color:#b91c1c!important;text-align:left!important;background:none!important;border:0!important}
.csai-si .csai-si-err:empty{display:none!important}

/* 8 — the purple Continue */
.csai-si .csai-si-primary{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;height:var(--si-ctl)!important;min-height:0!important;margin:var(--si-gap-cta) 0 0!important;padding:0 18px!important;border:0!important;border-radius:999px!important;background:linear-gradient(135deg,#8b5cf6,#6d28d9)!important;box-shadow:0 1px 2px rgba(16,24,40,.08),0 6px 16px rgba(109,40,217,.18)!important;color:#fff!important;-webkit-text-fill-color:#fff!important;font-family:inherit!important;font-size:var(--si-btn-fs)!important;font-weight:800!important;letter-spacing:-.01em!important;line-height:1!important;text-transform:none!important;text-decoration:none!important;cursor:pointer!important;transition:filter .15s,box-shadow .15s!important;-webkit-appearance:none!important;appearance:none!important}
.csai-si .csai-si-primary:hover{filter:brightness(1.07)!important}
.csai-si .csai-si-primary:active{filter:brightness(.96)!important}
.csai-si .csai-si-primary:focus{outline:none!important}
.csai-si .csai-si-primary:focus-visible{box-shadow:0 0 0 4px rgba(167,139,250,.45)!important}
.csai-si .csai-si-primary[disabled]{opacity:.7!important;cursor:progress!important}

/* 9 — the mode toggle line */
.csai-si .csai-si-toggle{display:block!important;margin:var(--si-gap-foot) 0 0!important;padding:0!important;font-size:var(--si-small-fs)!important;font-weight:500!important;line-height:1.4!important;color:#6b7280!important;-webkit-text-fill-color:#6b7280!important;text-align:center!important}
.csai-si .csai-si-toggle a{color:#7c3aed!important;-webkit-text-fill-color:#7c3aed!important;font-weight:700!important;text-decoration:none!important;cursor:pointer!important;border-radius:4px;padding:12px 0!important}
.csai-si .csai-si-toggle a:hover{text-decoration:underline!important;text-underline-offset:2px}
.csai-si .csai-si-toggle a:focus-visible,.csai-si .csai-si-terms a:focus-visible,.csai-si .csai-si-link:focus-visible{outline:2px solid #a78bfa!important;outline-offset:2px!important}

/* 10 — S1's "Email me a sign-in link instead" (+ the existing magic-link row it opens) */
.csai-si .csai-si-ml{display:block!important;margin:6px 0 0!important;padding:0!important;text-align:center!important}
.csai-si .csai-si-link{display:inline-block!important;min-height:44px!important;margin:-11px 0!important;padding:11px 8px!important;background:none!important;border:0!important;box-shadow:none!important;font-family:inherit!important;font-size:13px!important;font-weight:600!important;line-height:1.4!important;color:#6b7280!important;-webkit-text-fill-color:#6b7280!important;text-decoration:underline!important;text-decoration-color:#d1d5db!important;text-underline-offset:3px!important;cursor:pointer!important;border-radius:4px}
.csai-si .csai-si-link:hover{color:#7c3aed!important;-webkit-text-fill-color:#7c3aed!important;text-decoration-color:currentColor!important}
.csai-si .csai-si-ml:has(#magicLinkWrap[style*="block"]) .csai-si-link{display:none!important}
.csai-si #magicLinkWrap{margin:8px 0 0!important;padding:0!important;text-align:left!important;background:none!important;border:0!important}
.csai-si .csai-si-mlrow{display:flex!important;gap:8px!important;align-items:stretch!important}
.csai-si .csai-si-mlrow .csai-si-input{flex:1 1 auto!important;min-width:0!important;height:44px!important}
.csai-si .csai-si-mlbtn{flex:none!important;height:44px!important;margin:0!important;padding:0 16px!important;border:1px solid #ddd6fe!important;border-radius:999px!important;background:#f5f3ff!important;color:#6d28d9!important;-webkit-text-fill-color:#6d28d9!important;font-family:inherit!important;font-size:14px!important;font-weight:800!important;line-height:1!important;cursor:pointer!important;white-space:nowrap!important;box-shadow:none!important}
.csai-si .csai-si-mlbtn:hover{background:#ede9fe!important}
.csai-si .csai-si-mlbtn[disabled]{opacity:.65!important;cursor:default!important}
.csai-si #mlStatus{margin:6px 0 0!important;min-height:0!important;font-size:12.5px!important;line-height:1.4!important;text-align:center!important;color:#6b7280!important;-webkit-text-fill-color:currentColor!important}
.csai-si #mlStatus:empty{display:none!important}
.csai-si #mlStatus[style*="rgb(239, 68, 68)"]{color:#b91c1c!important}
.csai-si #mlStatus[style*="rgb(16, 185, 129)"]{color:#047857!important}

/* 11 — terms */
.csai-si .csai-si-terms{display:block!important;margin:var(--si-gap-foot) 0 0!important;padding:0!important;font-size:12px!important;font-weight:500!important;line-height:1.5!important;color:#9ca3af!important;-webkit-text-fill-color:#9ca3af!important;text-align:center!important}
.csai-si .csai-si-terms a{color:inherit!important;-webkit-text-fill-color:inherit!important;text-decoration:underline!important;text-underline-offset:2px!important;font-weight:600!important;white-space:nowrap!important}
.csai-si .csai-si-terms a:hover{color:#6b7280!important;-webkit-text-fill-color:#6b7280!important}

/* status notices (S1 #authError): the semantic colour the handlers set is kept, re-inked for a white page */
.csai-si .csai-si-notice{margin:0 0 14px!important;padding:10px 12px!important;border-radius:12px!important;font-size:13px!important;font-weight:500!important;line-height:1.45!important;text-align:left!important;background:#fef2f2!important;border:1px solid #fecaca!important;color:#b91c1c!important;-webkit-text-fill-color:currentColor!important}
.csai-si .csai-si-form .csai-si-notice{margin:var(--si-gap-field) 0 0!important}
.csai-si .csai-si-notice b,.csai-si .csai-si-notice strong{color:inherit!important}
.csai-si .csai-si-notice[style*="rgb(16, 185, 129)"]{background:#ecfdf5!important;border-color:#a7f3d0!important;color:#047857!important}
.csai-si .csai-si-notice[style*="rgb(34, 211, 238)"]{background:#f5f3ff!important;border-color:#ddd6fe!important;color:#5b21b6!important}
.csai-si .csai-si-notice:empty{display:none!important}
/* S1's Claude/MCP arrival context (#claudeArrival): ONE line that takes the sub's place — same type,
   same slot — so a /mcp visitor sees the same component, one line, no price and no plan claim */
.csai-si .csai-si-context{margin:0 0 var(--si-gap-sub)!important;padding:0!important;font-size:var(--si-sub-fs)!important;font-weight:500!important;letter-spacing:0!important;line-height:1.45!important;color:#6b7280!important;-webkit-text-fill-color:#6b7280!important;text-align:center!important;text-wrap:balance}
.csai-si .csai-si-context-mark{display:inline-block!important;width:1.05em!important;height:1.05em!important;margin:0 .35em 0 0!important;vertical-align:-.16em!important}
.csai-si .csai-si-context-mark svg{display:block!important;width:100%!important;height:100%!important}
.csai-si:has(#claudeArrival[style*="block"]) .csai-si-sub{display:none!important}

/* the popup close ✕ — a 44px tap target in the top-right corner of the sheet */
.csai-si-sheet>.csai-si-close{position:absolute!important;top:max(6px,env(safe-area-inset-top))!important;right:max(6px,env(safe-area-inset-right))!important;z-index:3!important;width:44px!important;height:44px!important;margin:0!important;padding:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;background:transparent!important;border:0!important;border-radius:999px!important;box-shadow:none!important;color:#6b7280!important;-webkit-text-fill-color:#6b7280!important;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:20px!important;font-weight:400!important;line-height:1!important;cursor:pointer!important}
.csai-si-sheet>.csai-si-close:hover{background:#f3f4f6!important;color:#111827!important;-webkit-text-fill-color:#111827!important}
.csai-si-sheet>.csai-si-close:focus{outline:none!important}
.csai-si-sheet>.csai-si-close:focus-visible{box-shadow:0 0 0 3px rgba(167,139,250,.5)!important}

/* google-only (turbosurge.ai shares this shell and must never route into ClipSpeed's /app/) */
.csai-si.csai-si--google-only .csai-si-or,.csai-si.csai-si--google-only .csai-si-form,.csai-si.csai-si--google-only .csai-si-toggle{display:none!important}

/* ── >=640px: a centred white card on a white page / near-solid white backdrop ─────────────── */
@media (min-width:640px){
  .csai-si{
    --si-mark:32px;--si-word:22px;--si-h1:36px;--si-sub-fs:16px;
    --si-ctl:52px;--si-btn-fs:15.5px;--si-small-fs:14px;
    --si-gap-brand:22px;--si-gap-title:8px;--si-gap-sub:24px;--si-gap-or:16px;--si-gap-field:14px;
    --si-gap-label:7px;--si-gap-cta:18px;--si-gap-foot:14px;
  }
  .csai-si-center{padding:16px 0!important}
  .csai-si-sheet{display:block!important;flex:none!important;margin:auto!important;width:min(500px,calc(100% - 48px))!important;padding:40px 44px!important;border:1px solid #eceef3!important;border-radius:24px!important;box-shadow:0 24px 60px rgba(17,24,39,.08)!important}
  .csai-si-sheet>.csai-si-close{top:10px!important;right:10px!important}
  /* near-solid white: over a black marketing page .94 read as light grey with the hero showing through */
  #popupOverlay.csai-si-overlay{background:rgba(255,255,255,.985)!important;-webkit-backdrop-filter:blur(6px)!important;backdrop-filter:blur(6px)!important}
  #popupCard.csai-si-frame{background:transparent!important}
  #lhSigninWiz.csai-si-frame{background:rgba(255,255,255,.985)!important;-webkit-backdrop-filter:blur(6px)!important;backdrop-filter:blur(6px)!important}
}

/* ── >=900px: very big; the vertical rhythm follows the window height so 720px still fits ──── */
@media (min-width:900px){
  .csai-si{
    --si-mark:clamp(32px,5.6vh,40px);--si-word:clamp(24px,3.9vh,28px);
    --si-h1:clamp(32px,6.1vh,48px);--si-sub-fs:18px;
    --si-ctl:clamp(44px,7.5vh,56px);--si-in-fs:16.5px;--si-btn-fs:16.5px;--si-small-fs:14.5px;
    --si-gap-brand:clamp(14px,2.6vh,26px);--si-gap-title:clamp(8px,1.2vh,12px);--si-gap-sub:clamp(18px,3.2vh,30px);
    --si-gap-or:clamp(14px,2.2vh,20px);--si-gap-field:clamp(12px,2vh,18px);--si-gap-label:8px;
    --si-gap-cta:clamp(16px,2.4vh,22px);--si-gap-foot:clamp(12px,1.8vh,16px);
    max-width:432px!important;
  }
  .csai-si-center{padding:clamp(4px,2.2vh,16px) 0!important}
  .csai-si-sheet{width:min(520px,calc(100% - 48px))!important;padding:clamp(18px,4.4vh,44px) 44px!important}
}
/* short laptop windows (a 1280x720 screen leaves ~600px of viewport): tighter chrome, same component */
@media (min-width:900px) and (max-height:640px){
  .csai-si-center{padding:6px 0!important}
  .csai-si-sheet{padding:20px 44px!important}
}

/* ── an error, a notice or the magic-link row is showing (S1): the same component, tighter, so the
   message and every control still fit on one screen. The sub is the one line that steps aside. ── */
.csai-si:has(#authError[style*="block"]),.csai-si:has(#magicLinkWrap[style*="block"]){
  --si-gap-brand:12px;--si-gap-title:4px;--si-gap-sub:12px;--si-gap-or:8px;--si-gap-field:10px;--si-gap-label:4px;--si-gap-cta:12px;--si-gap-foot:8px;
}
.csai-si:has(#authError[style*="block"]) :is(.csai-si-sub,.csai-si-context),.csai-si:has(#magicLinkWrap[style*="block"]) :is(.csai-si-sub,.csai-si-context){display:none!important}
.csai-si:has(#authError[style*="block"]) .csai-si-notice{padding:8px 11px!important;font-size:12.5px!important;line-height:1.4!important}
.csai-si:has(#magicLinkWrap[style*="block"]) .csai-si-ml{margin-top:4px!important}
.csai-si-sheet:has(#authError[style*="block"]),.csai-si-sheet:has(#magicLinkWrap[style*="block"]){padding-top:max(12px,env(safe-area-inset-top))!important;padding-bottom:max(12px,env(safe-area-inset-bottom))!important}
@media (max-width:639px) and (max-height:660px){
  .csai-si:has(#authError[style*="block"]),.csai-si:has(#magicLinkWrap[style*="block"]){--si-ctl:44px}
}
@media (min-width:640px){
  .csai-si-sheet:has(#authError[style*="block"]),.csai-si-sheet:has(#magicLinkWrap[style*="block"]){padding-top:28px!important;padding-bottom:28px!important}
}
@media (min-width:900px){
  .csai-si:has(#authError[style*="block"]),.csai-si:has(#magicLinkWrap[style*="block"]){
    --si-ctl:clamp(44px,6.6vh,56px);--si-gap-brand:clamp(10px,1.6vh,18px);--si-gap-or:clamp(8px,1.3vh,14px);--si-gap-field:clamp(8px,1.3vh,14px);
    --si-gap-cta:clamp(10px,1.6vh,16px);--si-gap-foot:clamp(6px,1.1vh,12px);
  }
  .csai-si-sheet:has(#authError[style*="block"]),.csai-si-sheet:has(#magicLinkWrap[style*="block"]){padding-top:clamp(12px,2.4vh,32px)!important;padding-bottom:clamp(12px,2.4vh,32px)!important}
}

/* ── short windows at any width (phones in landscape, tiny laptop windows): the phone rhythm on a
   full-screen white sheet — no card, no backdrop band. Some inner scroll stays unavoidable at ~375px tall. */
@media (max-height:500px){
  .csai-si{
    --si-mark:26px;--si-word:19px;--si-h1:24px;--si-sub-fs:14px;
    --si-ctl:44px;--si-in-fs:16px;--si-btn-fs:15px;--si-small-fs:13.5px;
    --si-gap-brand:10px;--si-gap-title:4px;--si-gap-sub:12px;--si-gap-or:8px;--si-gap-field:8px;--si-gap-label:4px;--si-gap-cta:10px;--si-gap-foot:8px;
    max-width:420px!important;
  }
  .csai-si-center{padding:0!important}
  .csai-si-sheet{display:flex!important;flex:1 0 auto!important;margin:0!important;width:100%!important;padding:max(10px,env(safe-area-inset-top)) max(56px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(56px,env(safe-area-inset-left))!important;border:0!important;border-radius:0!important;box-shadow:none!important}
  .csai-si-sheet>.csai-si-close{top:max(4px,env(safe-area-inset-top))!important;right:max(6px,env(safe-area-inset-right))!important}
  #popupCard.csai-si-frame,#lhSigninWiz.csai-si-frame{background:#fff!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
}
