/* ═══ Designer v3 (12 Nov 2026, MT t87) — loaded LAST ═══════════════════════════════════════════════════════════
   1. Scene: the FIRST runway Designer sent (build v1: one-point perspective, piano keys, centreline, edge lights),
      with the "GO AROUND" name REMOVED. No PAPI, no tower, no beacon, no text.
   2. A dimming, blurred layer between the scene and the controls (black on Midnight/Amethyst, white/beige on
      Pearl/Champagne). Real blur only here: A = 1 surface (the sheet), B = 2 stacked layers (progressive blur).
   3. Two faithful adjustments of the original layout: ?v=a (Google + passkey above the email, floating frosted panel)
      and ?v=b (original order, Google under the pair, passkey in the link row, full-width layer with a soft blurred edge).
   Rules kept: MT themes unchanged, Clash Display / General Sans / Satoshi / JetBrains Mono, ease (.32,.72,0,1),
   transform + opacity only, reduced motion respected, 44px targets, Google button = official branding.
   ════════════════════════════════════════════════════════════════════════════════════════════════════════════ */

/* ── 0. Scene colours = build v1 values (restored) ── */
html[data-theme=day]{--rwSurf:rgba(17,17,20,.045);--rwLine:rgba(17,17,20,.22);--rwBar:rgba(17,17,20,.30);--rwCl:rgba(17,17,20,.26);--rwLt:#0019C9}
html[data-theme=night]{--rwSurf:rgba(255,255,255,.04);--rwLine:rgba(255,255,255,.22);--rwBar:rgba(255,255,255,.30);--rwCl:rgba(255,255,255,.26);--rwLt:#E6EEFF}
html[data-theme=night][data-pal=purple]{--rwLt:#E6DEF5}
html[data-theme=day][data-pal=beige]{--rwLt:#6B4E16;--rwLine:rgba(60,40,10,.24);--rwBar:rgba(60,40,10,.30);--rwCl:rgba(60,40,10,.26);--rwSurf:rgba(60,40,10,.045)}
.rw-bar{opacity:.8}.rw-lt circle{opacity:.7}
.rw .rw-edge{stroke:var(--rwLine)}

/* Dimming layer tint, per theme: the colour the blurred scene is washed toward */
html[data-pal=white]{--dim:rgba(255,255,255,.66);--dim-hi:rgba(255,255,255,1);--dim-edge:rgba(17,17,20,.07)}
html[data-pal=beige]{--dim:rgba(252,247,238,.68);--dim-hi:rgba(255,253,248,.92);--dim-edge:rgba(60,40,10,.09)}
html[data-pal=black]{--dim:rgba(8,8,10,.66);--dim-hi:rgba(255,255,255,.12);--dim-edge:rgba(255,255,255,.09)}
html[data-pal=purple]{--dim:rgba(11,7,22,.66);--dim-hi:rgba(230,215,255,.14);--dim-edge:rgba(210,190,255,.11)}

/* ── 1. The original (build v1) sign-in layout, restored: hero = top part of the screen, runway centred at its foot ── */
body.scr-signin-a .ga-hero{position:relative;height:auto;min-height:0;margin:0 -18px;padding:18px 18px 0!important;display:flex;flex-direction:column;align-items:center;overflow:visible;flex:none}
body.scr-signin-a .ga-hero h1.t{font:600 34px/1.06 'Clash Display',sans-serif!important;letter-spacing:-.022em;text-align:center;margin:8px 0 8px}
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:0;max-width:32ch}
body.scr-signin-a .art{position:relative;left:auto;bottom:auto;transform:none;width:min(100%,640px);max-width:none;margin:6px auto 0;aspect-ratio:400/240;pointer-events:none}
body.scr-signin-a .art .rw{position:absolute;inset:0;width:100%;height:100%;display:block}
body:has(.gsi[data-mode=signup]) .art{width:min(78%,500px)!important}
/* original pair + link row */
body.scr-signin-a .pair{display:flex;gap:12px}
body.scr-signin-a .pair .pb{flex:1 1 0;min-width:0;height:52px;font-size:17px}
body.scr-signin-a .minor{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;margin:6px 0 0}
body.scr-signin-a .minor > i{width:3px;height:3px;border-radius:50%;background:var(--tx3);flex:none}
body.scr-signin-a .minor a{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 2px;font:600 14px/1 'General Sans',sans-serif;color:var(--acc-link,var(--acc));text-decoration:none;white-space:nowrap}
html[data-theme=day] body.scr-signin-a .minor a{color:var(--acc)}
body.scr-signin-a .minor a.guest{color:var(--tx2);margin:0!important}
body.scr-signin-a .minor a.as-link{all:unset;display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 2px;cursor:pointer;font:600 14px/1 'General Sans',sans-serif;color:var(--acc-link,var(--acc));white-space:nowrap}
html[data-theme=day] body.scr-signin-a .minor a.as-link{color:var(--acc)}
body.scr-signin-a .minor a.as-link svg{width:17px;height:17px}
body.scr-signin-a .minor a.as-link:focus-visible{outline:2px solid var(--acc);outline-offset:2px;border-radius:6px}
body.scr-signin-a .legal{margin:6px 0 0;text-align:center;font:500 12.5px/1.5 Satoshi,sans-serif;color:var(--tx2)}
body.scr-signin-a .legal a{color:var(--tx);text-decoration:underline;text-underline-offset:2px;text-decoration-thickness:1px}
/* Forgot: under the password, right-aligned, exactly where the original had it */
body.scr-signin-a a.forgot{display:flex;justify-content:flex-end;min-height:36px;margin:-2px 0 -6px auto;width:max-content;font:600 13px/1 'General Sans',sans-serif;color:var(--acc-link,var(--acc));text-decoration:none}
html[data-theme=day] body.scr-signin-a a.forgot{color:var(--acc)}
body.scr-signin-a .acts{margin-top:14px!important;padding-top:0!important;gap:0}
body.scr-signin-a .signin-cluster .or{margin:16px 0 12px}
body.scr-signin-a .alt-auth{display:grid;gap:10px;margin:0}
body.scr-signin-a .alert-slot:empty{display:none}

/* ── 2. The dim layer: blurred + dimmed, between the scene and the controls ── */
body.scr-signin-a .stage.v2{padding-bottom:0}
body.scr-signin-a .pg{padding-bottom:0}
.dim{position:relative;z-index:1}
/* A: a floating frosted panel. It overlaps the threshold bars, so you see the runway blur away under it. */
.dim-a{margin:-58px -6px 18px!important;padding:18px 16px 12px;border-radius:28px;background:var(--dim);
  -webkit-backdrop-filter:blur(30px) saturate(170%);backdrop-filter:blur(30px) saturate(170%);
  box-shadow:inset 0 1px 0 var(--dim-hi),inset 0 0 0 1px var(--dim-edge),0 1px 2px rgba(0,0,0,.04),0 10px 30px rgba(0,0,0,.06)}
html[data-theme=night] .dim-a{box-shadow:inset 0 1px 0 var(--dim-hi),inset 0 0 0 1px var(--dim-edge),0 10px 30px rgba(0,0,0,.4)}
/* B: full width, no edge line: the blur and the tint fade in over 56px, rising out of the runway */
.dim-b{margin:-64px -18px 0!important;padding:64px 18px calc(16px + env(safe-area-inset-bottom));flex:1 0 auto}
.dim-b::before{content:"";position:absolute;inset:0;z-index:-1;background:var(--dim);
  -webkit-backdrop-filter:blur(26px) saturate(160%);backdrop-filter:blur(26px) saturate(160%);
  -webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 60px);mask-image:linear-gradient(to bottom,transparent 0,#000 60px)}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.dim-a,.dim-b::before{background:color-mix(in srgb,var(--bg) 94%,transparent)}}

/* ── 3. iPad ── */
@media (min-width:744px){
  body.scr-signin-a .ga-hero{padding-top:56px!important}
  body.scr-signin-a .ga-hero h1.t{font-size:48px!important}
  body.scr-signin-a .ga-hero .lede{font-size:16px}
  body.scr-signin-a .art{width:min(100%,560px)}
  .dim-a{margin:-80px auto 40px!important;max-width:460px;width:100%;padding:22px 24px 14px}
  .dim-b{margin:-80px -60px 0!important;padding:80px 60px 40px}
  .dim-b > *{max-width:460px;margin-left:auto;margin-right:auto}
}
@media (min-width:744px) and (orientation:landscape){
  body.scr-signin-a .art{display:none}
  body.scr-signin-a .ga-hero{padding-top:9vh!important}
  .dim-a{margin:28px auto 40px!important}
  .dim-b{margin:20px 0 0!important;padding:20px 0 40px}
  .dim-b::before{display:none}
}
/* ── 4. Plan steps (trial, plans, ATO plan, checkout): the same scene + the same dim layer as each version's sign-in ── */
.v3-scene{position:absolute;left:0;right:0;top:0;height:420px;z-index:0;pointer-events:none;overflow:hidden}
.v3-scene .rw{position:absolute;left:50%;top:96px;width:max(100%,560px);height:auto;aspect-ratio:400/240;transform:translateX(-50%);opacity:.4}
.v3-veil{position:absolute;inset:0;background:linear-gradient(to bottom,color-mix(in srgb,var(--bg) 40%,transparent) 0%,color-mix(in srgb,var(--bg) 25%,transparent) 50%,var(--bg) 100%)}
body.has-v3-scene .stage{position:relative;z-index:1}
body.has-v3-scene .top{z-index:20}
body.has-v3-scene .pg,body.has-v3-scene .stage.v2{padding-bottom:0}
.plan-sheet{position:relative;z-index:1;display:flex;flex-direction:column;flex:1 0 auto}
.plan-sheet > :first-child{margin-top:0}
.plan-sheet.ps-a{margin:18px -6px 18px;padding:16px 14px 14px;border-radius:28px;background:var(--dim);
  -webkit-backdrop-filter:blur(30px) saturate(170%);backdrop-filter:blur(30px) saturate(170%);
  box-shadow:inset 0 1px 0 var(--dim-hi),inset 0 0 0 1px var(--dim-edge),0 1px 2px rgba(0,0,0,.04),0 10px 30px rgba(0,0,0,.06)}
.plan-sheet.ps-b{margin:0 -18px;padding:44px 18px calc(18px + env(safe-area-inset-bottom))}
.plan-sheet.ps-b::before{content:"";position:absolute;inset:0;z-index:-1;background:var(--dim);
  -webkit-backdrop-filter:blur(26px) saturate(160%);backdrop-filter:blur(26px) saturate(160%);
  -webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 44px);mask-image:linear-gradient(to bottom,transparent 0,#000 44px)}
@media (min-width:744px){
  .plan-sheet.ps-a{margin:24px 0 40px;padding:24px}
  .plan-sheet.ps-b{margin:0 -40px;padding:56px 40px 40px}
}
/* ── 5. QC (390 / 320, Pearl + Midnight) ── */
body.scr-signin-a .acts > .or,body.scr-signin-a .acts > .alt-auth,body.scr-signin-a .acts > .pair{width:100%;align-self:stretch}
html body.scr-signin-a .minor a.guest{color:var(--tx2)}
body.scr-signin-a .ga-hero .lede{max-width:36ch}
@media (max-width:359px){
  body.scr-signin-a .minor{gap:7px}
  body.scr-signin-a .minor a,body.scr-signin-a .minor a.as-link{font-size:13px;gap:4px}
  body.scr-signin-a .minor a.as-link svg{width:15px;height:15px}
}
.plan-sheet.ps-a{margin-left:-12px;margin-right:-12px;padding-left:12px;padding-right:12px}
@media (min-width:744px){.plan-sheet.ps-a{margin-left:-24px;margin-right:-24px;padding-left:24px;padding-right:24px}}
body.scr-signin-a .legal{display:block!important}
/* iPad portrait: .pg is a 560px card (padding 44/48, radius 36): the B layer runs edge to edge inside it */
@media (min-width:744px) and (orientation:portrait){
  .dim-b{margin:-80px -48px 0!important;padding:80px 48px 40px}
  .dim-b::before,.plan-sheet.ps-b::before{border-radius:0 0 36px 36px}
  .plan-sheet.ps-b{margin:0 -48px;padding:56px 48px 40px}
  .dim-a{margin-bottom:36px!important}
}
.ipad-brand .ib-kick{display:none!important} /* no "Go Around" wordmark text anywhere */
/* 320–359px: the stage gutter is 14px there, so every full-bleed piece uses 14 */
@media (max-width:359px){
  body.scr-signin-a .ga-hero{margin:0 -14px;padding:18px 14px 0!important}
  .dim-b{margin:-64px -14px 0!important;padding:64px 14px calc(16px + env(safe-area-inset-bottom))}
  .plan-sheet.ps-b{margin:0 -14px;padding:44px 14px calc(18px + env(safe-area-inset-bottom))}
  .dim-a{margin-left:-4px!important;margin-right:-4px!important;padding-left:12px;padding-right:12px}
  .plan-sheet.ps-a{margin-left:-8px;margin-right:-8px;padding-left:8px;padding-right:8px}
}
