/* ═══ Go Around · Designer layer v2 (12 Nov 2026) — loaded LAST, on top of Go Around's v49 logic ═══
   Owns: sign-in scene (finite runway, PAPI, tower + beacon), auth stack order, Google button (official
   branding), passkey button + sheet, email-code cells, Google hand-off preview, passkey offer, motion.
   MT rules: themes Midnight/Amethyst/Pearl/Champagne (values from DESIGN.md, unchanged); fonts Clash Display /
   General Sans / Satoshi / JetBrains Mono (+ Google Sans ONLY inside the Google button, as Google requires);
   curve cubic-bezier(.32,.72,0,1); transform + opacity only; no logo, emoji, aurora, pulse dots or gauges. */
/* ── NEXT SESSION — from Designer ──────────────────────────────────────────────────────────────────────────
   Shown here with no backend yet: .gsi.google (Google, sign-in + sign-up), .alt-btn.passkey + .pk-wrap (passkey sheet
   stand-in), .code (email sign-in code), .pk-offer (add a passkey), .g-hand (Google hand-off preview, DELETE when the
   real redirect is wired). Go Around: wire them through auth-hooks.js (startGoogleOAuth, handleOAuthCallback,
   passkeySignIn, passkeyRegister, sendEmailCode, verifyEmailCode, requestPasswordReset). Keep the Google button
   styles exactly as they are: they follow Google's branding guidelines, which app verification requires.
   ─────────────────────────────────────────────────────────────────────────────────────────────────────────── */
@font-face{font-family:'Google Sans';src:url(fonts/google-sans-500.woff2) format('woff2');font-weight:500;font-display:swap}
:root{--ease:cubic-bezier(.32,.72,0,1);--tap:44px;--go:#22C55E;--caution:#FF8A00;--nogo:#F80F3B}
html[data-theme=day]{--rwSurf:rgba(17,17,20,.035);--rwLine:rgba(17,17,20,.30);--rwBar:rgba(17,17,20,.34);--rwCl:rgba(17,17,20,.30);--rwLt:rgba(17,17,20,.45);--twFill:rgba(17,17,20,.04);--bcLamp:rgba(17,17,20,.35);--papiW:#fff;--papiWs:rgba(17,17,20,.45)}
html[data-theme=night]{--rwSurf:rgba(255,255,255,.035);--rwLine:rgba(255,255,255,.30);--rwBar:rgba(255,255,255,.32);--rwCl:rgba(255,255,255,.30);--rwLt:rgba(255,255,255,.85);--twFill:rgba(255,255,255,.04);--bcLamp:rgba(255,255,255,.3);--papiW:#fff;--papiWs:transparent;--acc-link:#A9BEFF}

/* ── 0. Rules: kill floating glow / bob on pills; no blur on secondary pills ── */
.pb.float,.pb:active,.pb:hover{animation:none!important}
.pb::after{display:none!important}
.pb.gls{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
.pb.pri{box-shadow:inset 0 1px 0 rgba(255,255,255,.22),inset 0 -1px 0 rgba(0,0,0,.14)!important}
#logoSlot{visibility:hidden}

/* ── 1. Sign-in area: title, lede, scene ── */
body.scr-signin-a .ga-hero{position:relative;display:flex;flex-direction:column;align-items:center;padding:6px 0 0;flex:none}
body.scr-signin-a .ga-hero h1.t{font:600 32px/1.04 'Clash Display',sans-serif;letter-spacing:-.02em;text-align:center;margin:0}
body.scr-signin-a .ga-hero .lede{display:block!important;font:500 14px/1.43 Satoshi,sans-serif;color:var(--tx2);text-align:center;margin:8px 0 0;max-width:32ch}
.art{position:relative;width:100%;max-width:560px;margin:6px 0 0;aspect-ratio:400/260;pointer-events:none;color:var(--rwLine)}
body:has(.gsi[data-mode=signup]) .art{width:74%;margin:4px auto 0} /* sign-up: same scene, smaller, so the longer form fits */
.art .rw,.ib-scene .rw{display:block;width:100%;height:100%;overflow:visible}
.rw-surf{fill:var(--rwSurf)}
.rw-edge{fill:none;stroke:var(--rwLine);stroke-width:1;vector-effect:non-scaling-stroke;stroke-linejoin:round}
.rw-bar{fill:var(--rwBar)}.rw-cl{fill:var(--rwCl)}
.rw-lt circle{fill:var(--rwLt)}
.rw-thr circle{fill:var(--go)}
.rw-end circle{fill:var(--nogo)}
.papi-base{stroke:var(--rwLine);stroke-width:1;vector-effect:non-scaling-stroke}
.papi-r{fill:var(--nogo)}.papi-w{fill:var(--papiW);stroke:var(--papiWs);stroke-width:.6}
.tw-body{fill:var(--twFill);stroke:var(--rwLine);stroke-width:1;vector-effect:non-scaling-stroke;stroke-linejoin:round}
.tw-line{fill:none;stroke:var(--rwLine);stroke-width:1;vector-effect:non-scaling-stroke;stroke-linecap:round}
.bc-lamp{fill:var(--bcLamp)}
/* Beacon: one full turn every 4 s — white flash, then green half a turn later. Opacity only. */
.beacon .bc-w,.beacon .bc-g{opacity:0;animation:bcFlash 4s var(--ease) infinite}
.beacon .bc-g{animation-delay:2s}
@keyframes bcFlash{0%{opacity:0}6%{opacity:1}22%{opacity:0}100%{opacity:0}}
html[data-theme=day] .bc-halo.bc-w{display:none} /* a white halo is invisible on Pearl; the lamp still flashes */
html[data-theme=day] .bc-core.bc-w{fill:#fff;stroke:rgba(17,17,20,.5);stroke-width:.5}
@media (prefers-reduced-motion:reduce){
  .beacon .bc-w,.beacon .bc-g{animation:none!important}
  .beacon .bc-halo{opacity:0!important}
  .beacon .bc-core.bc-g{opacity:1!important} /* still: green lamp lit, no flashing */
}

/* ── 2. Auth stack: equal-width buttons, 12px rhythm, every label fits ── */
body.scr-signin-a .signin-cluster{margin-top:-4px;position:relative;z-index:1}
.alt-auth{display:grid;gap:10px;margin:0 0 4px}
.gsi,.alt-btn{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;height:48px;min-height:var(--tap);padding:0 16px;border-radius:999px;cursor:pointer;
  white-space:nowrap;box-sizing:border-box;transition:transform .16s var(--ease),opacity .16s var(--ease);-webkit-tap-highlight-color:transparent}
.gsi:active,.alt-btn:active{transform:scale(.98)}
.gsi.busy{opacity:.7}
/* Google: official branding (developers.google.com/identity/branding-guidelines, updated 2026-07-07).
   Light = Pearl/Champagne: fill #FFF, 1px inside stroke #747775, text #1F1F1F. Dark = Midnight/Amethyst: fill #131314, stroke #8E918F, text #E3E3E3.
   Google Sans Medium; the standard multicolour G, unchanged, on its own white disc in dark mode. */
.gsi{background:#fff;color:#1F1F1F;box-shadow:inset 0 0 0 1px #747775;border:0;font:500 15px/20px 'Google Sans',Roboto,Arial,sans-serif;letter-spacing:.1px}
html[data-theme=night] .gsi{background:#131314;color:#E3E3E3;box-shadow:inset 0 0 0 1px #8E918F}
.gsi-g{display:inline-grid;place-items:center;width:20px;height:20px;flex:none}
.gsi-g svg{width:20px;height:20px;display:block}
html[data-theme=night] .gsi .gsi-g{width:28px;height:28px;border-radius:50%;background:#fff;margin-left:-4px}
html[data-theme=night] .gsi .gsi-g svg{width:18px;height:18px}
.alt-btn{background:var(--gl2);color:var(--tx);border:0;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--tx) 18%,transparent);font:600 15px/1 'General Sans',sans-serif}
.alt-btn svg{width:20px;height:20px;flex:none}
html[data-theme=day] .alt-btn{background:#fff}
.signin-cluster .or{display:flex;align-items:center;gap:12px;margin:14px 0 2px;color:var(--tx3);font:600 11px/1 'General Sans',sans-serif;letter-spacing:.08em;text-transform:uppercase}
.signin-cluster .or::before,.signin-cluster .or::after{content:"";flex:1;height:1px;background:var(--ln);transform:scaleY(.5)}
body.scr-signin-a .pair .pb{height:52px;font-size:17px;transform:none!important}
body.scr-signin-a .acts{gap:0}
body.scr-signin-a .minor{display:flex;justify-content:center;margin:8px 0 0}
body.scr-signin-a .minor a,body.scr-signin-a a.guest{display:inline-flex;align-items:center;justify-content:center;min-height:var(--tap);font:600 14px/1 'General Sans',sans-serif;color:var(--acc-link,var(--a));text-decoration:none}
body.scr-signin-a a.guest{color:var(--tx2);margin:0 auto!important;align-self:center}
body.scr-signin-a .legal{margin-top:4px;text-align:center}
a.forgot{min-height:var(--tap);display:inline-flex;align-items:center}
html[data-theme=night] a.forgot,html[data-theme=night] .linkish{color:var(--acc-link)}
.inp .eye,button.eye{min-width:44px;min-height:44px}

/* ── 3. Email code: six cells over one real input (paste + iOS one-time-code autofill work) ── */
.code{position:relative;display:flex;justify-content:center;gap:8px;margin:20px 0 6px}
.code .cell{width:46px;height:56px;border-radius:14px;background:var(--gl2);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--tx) 16%,transparent);display:grid;place-items:center;font:600 24px/1 'JetBrains Mono',monospace;color:var(--tx)}
html[data-theme=day] .code .cell{background:#fff}
.code .cell.cur{box-shadow:inset 0 0 0 1.5px var(--a)}
.code input{position:absolute;inset:0;width:100%;height:100%;opacity:0;font-size:16px;caret-color:transparent;border:0;background:none}
.code.bad .cell{box-shadow:inset 0 0 0 1.5px var(--nogo)}
.msg.c,.fine.c{text-align:center}
.fine.c{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;font:500 13px/1.45 Satoshi,sans-serif;color:var(--tx2);margin:6px 0 0}
.fine.c .sep{width:3px;height:3px;border-radius:50%;background:var(--tx3)}
.fine.c .linkish{min-height:var(--tap);display:inline-flex;align-items:center;padding:0;margin:0}
.em-echo{color:var(--tx);font-weight:600;word-break:break-all}

/* ── 4. Google hand-off preview ── */
.g-hand{margin:18px 0 6px;border-radius:20px;background:var(--gl2);box-shadow:inset 0 0 0 1px var(--ln);overflow:hidden}
html[data-theme=day] .g-hand{background:#fff}
.g-top{display:flex;align-items:center;gap:10px;padding:14px 16px;font:500 15px/20px 'Google Sans',Roboto,Arial,sans-serif;color:var(--tx);box-shadow:inset 0 -1px 0 var(--ln)}
.g-top .gsi-g{width:22px;height:22px;border-radius:50%;background:#fff}
.g-top .gsi-g svg{width:16px;height:16px}
.g-acct{display:flex;align-items:center;gap:12px;width:100%;min-height:64px;padding:10px 16px;border:0;background:none;color:var(--tx);text-align:left;cursor:pointer;transition:opacity .16s var(--ease)}
.g-acct + .g-acct{box-shadow:inset 0 1px 0 var(--ln)}
.g-acct .av{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#0B57D0;color:#fff;font:600 16px/1 'General Sans',sans-serif;flex:none}
.g-acct .av2{background:#146C2E}
.g-acct .who{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}
.g-acct .who b{font:600 15px/1.2 'General Sans',sans-serif}
.g-acct .who small{font:500 13px/1.2 Satoshi,sans-serif;color:var(--tx2);overflow:hidden;text-overflow:ellipsis}
.g-acct .chev{width:18px;height:18px;color:var(--tx3);flex:none}
.g-acct.on{opacity:.6}

/* ── 5. Passkey sheet (stand-in for the iPhone's own) ── */
.pk-wrap{position:fixed;inset:0;z-index:50;display:flex;align-items:flex-end;justify-content:center}
.pk-scrim{position:absolute;inset:0;background:rgba(0,0,0,.38);opacity:0;transition:opacity .3s var(--ease)}
.pk-sheet{position:relative;width:min(100%,430px);box-sizing:border-box;margin:0 8px 8px;padding:10px 20px 18px;border-radius:28px;background:#F2F2F7;color:#111114;text-align:center;
  transform:translateY(110%);transition:transform .42s var(--ease);font-family:-apple-system,'SF Pro Text','General Sans',sans-serif}
html[data-theme=night] .pk-sheet{background:#1C1C1E;color:#F5F5F7}
.pk-wrap.in .pk-scrim{opacity:1}.pk-wrap.in .pk-sheet{transform:none}
.pk-grab{width:36px;height:5px;border-radius:3px;background:currentColor;opacity:.2;margin:0 auto 10px}
.pk-kick{margin:0 0 8px;font:600 10.5px/1 'JetBrains Mono',monospace;letter-spacing:.06em;text-transform:uppercase;opacity:.5}
.pk-sheet h2{margin:0;font:600 20px/1.2 inherit}
.pk-q{margin:6px 0 14px;font-size:15px;line-height:1.35;opacity:.75}
.pk-acct{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:14px;background:rgba(120,120,128,.12);text-align:left}
.pk-acct span:last-child{display:flex;flex-direction:column;gap:2px;min-width:0}
.pk-acct b{font-size:15px;font-weight:600;overflow:hidden;text-overflow:ellipsis}
.pk-acct small{font-size:13px;opacity:.6}
.pk-ic svg{width:26px;height:26px;color:#0A84FF}
.pk-go{display:block;width:100%;height:50px;margin:14px 0 6px;border:0;border-radius:14px;background:#0A84FF;color:#fff;font:600 17px/1 inherit;cursor:pointer}
.pk-x{display:block;width:100%;height:44px;border:0;background:none;color:#0A84FF;font:500 17px/1 inherit;cursor:pointer}
.pk-face{position:absolute;inset:0;display:grid;place-items:center;align-content:center;gap:10px;border-radius:28px;background:inherit;opacity:0;pointer-events:none;transition:opacity .2s var(--ease)}
.pk-face svg{width:64px;height:64px;color:#0A84FF;grid-area:1/1}
.pk-face .ok{opacity:0;color:var(--go);transform:scale(.8);transition:opacity .2s var(--ease),transform .3s var(--ease)}
.pk-face span{font-size:15px;opacity:.7}
.pk-wrap.scan .pk-face{opacity:1;pointer-events:auto}
.pk-wrap.ok .pk-face svg:first-child{opacity:0;transition:opacity .15s var(--ease)}
.pk-wrap.ok .pk-face .ok{opacity:1;transform:none}

/* ── 6. Passkey offer on the done screen ── */
.pk-offer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0 0;padding:12px 14px 12px 16px;border-radius:16px;box-shadow:inset 0 0 0 1px var(--ln);text-align:left}
.pk-offer div{display:flex;flex-direction:column;gap:3px;min-width:0}
.pk-offer b{font:600 14.5px/1.25 'General Sans',sans-serif;color:var(--tx)}
.pk-offer small{font:500 13px/1.35 Satoshi,sans-serif;color:var(--tx2)}
.pk-offer .linkish{flex:none;margin:0;white-space:nowrap}
.pk-offer.added b{color:var(--go)}

/* ── 7. iPad landscape brand panel: our scene instead of the old art; no logo image ── */
.ib-scene{position:absolute;left:0;right:0;bottom:0;height:56%;color:rgba(255,255,255,.3);pointer-events:none;
  --rwSurf:rgba(255,255,255,.04);--rwLine:rgba(255,255,255,.34);--rwBar:rgba(255,255,255,.36);--rwCl:rgba(255,255,255,.32);--rwLt:rgba(255,255,255,.8);--twFill:rgba(255,255,255,.05);--bcLamp:rgba(255,255,255,.3)}
.ipad-brand .ib-logo,.ipad-brand .ib-plane,.ipad-brand .ib-tower,.ipad-brand .ib-runway{display:none!important}

/* ── 8. iPad portrait / large phones ── */
@media (min-width:744px){
  body.scr-signin-a .ga-hero h1.t{font-size:44px}
  body.scr-signin-a .ga-hero .lede{font-size:16px}
  .art{width:100%;margin:10px 0 0}
}
/* ── 9. Motion: MT curve everywhere; reduced motion jumps to the end state ── */
*{transition-timing-function:var(--ease)}
@media (prefers-reduced-motion:reduce){.pk-sheet,.pk-scrim,.pk-face,.gsi,.alt-btn{transition:none!important}}
/* ── 10. QC fixes (390 Pearl/Midnight) ── */
body.scr-signin-a .pair .pb + .pb{margin-top:0!important}
body.scr-signin-a .pair{align-items:stretch}
body.scr-signin-a .acts{margin-top:14px!important;padding-top:0!important}
body.scr-signin-a .ga-hero .lede{max-width:none}
.rw-tower{transform-box:fill-box}
@media (min-width:744px) and (orientation:landscape){
  .ib-scene{top:auto;bottom:150px;height:min(44%,360px)}
  body.scr-signin-a .art{display:none} /* the brand panel carries the scene in the split view */
  body.scr-signin-a .ga-hero{padding-top:12vh}
  body.scr-signin-a .signin-cluster{margin-top:28px}
}
.em-echo{word-break:normal;overflow-wrap:anywhere}
.pk-offer{margin-bottom:12px}
.pk-offer .linkish{color:var(--acc-link,var(--a));font-weight:600}
