/* EDGE ID returning door (/signin), 12 Oct 2026. The landing's own door panel (estate/landing.css: the glass panel on the right,
   lion and wordmark as images top-left, white primary, assurances and legal at the foot), with a calm lion stage in place of the
   scenes. Labels and controls only. AAA contrast on every text; text 12.5px or more; every target 44px or more; one filled
   button per view; pills; no grey text. Standalone: nothing from the chat shell loads here. */
:root{--bg:#04090d;--text:#fff;--text-2:#d8eef8;--acc:#72e4ff;--ink:#04121b;--line:rgba(114,228,255,.22);--edge:rgba(255,255,255,.5);
 --field:rgba(120,200,235,.07);--bad:#ffb8c1;--ok:#8ff5c8;--warn:#ffe2a8;--focus:#a6f0ff;--gap:16px;--door-w:clamp(400px,24vw,520px);color-scheme:dark}
*,*::before,*::after{box-sizing:border-box}
html,body{margin:0;min-height:100%}
body{background:var(--bg);color:var(--text);font:15px/1.45 -apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",system-ui,Roboto,sans-serif;
 -webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%;text-size-adjust:100%}
::selection{background:rgba(114,228,255,.3);color:#fff}
.sprite{position:absolute;width:0;height:0;overflow:hidden}
svg.i{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.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}
[hidden]{display:none!important}
a{color:var(--text)}
:focus{outline:none}
:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
h1,h2,p{margin:0}

/* ---------- frame: phones are the door, full screen ---------- */
.frame{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;position:relative;isolation:isolate}
.frame::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;
 background:radial-gradient(ellipse 90% 55% at 50% 22%,rgba(8,102,150,.34),transparent 70%),radial-gradient(ellipse 70% 40% at 85% 100%,rgba(114,228,255,.07),transparent 70%)}
.stage{display:none}
.door{flex:1;display:flex}
.door-in{flex:1;display:flex;flex-direction:column;gap:22px;width:100%;
 padding:max(14px,env(safe-area-inset-top)) 16px calc(6px + env(safe-area-inset-bottom))}
.brand{display:flex;align-items:center;gap:12px;min-height:52px}
.home{display:inline-flex;border-radius:14px;flex:none}
.brand .lion{display:block;width:44px;height:44px;border-radius:12px;box-shadow:0 10px 30px rgba(8,102,150,.35)}
.brand h1{display:flex;min-width:0}
.brand .wm{display:block;width:min(184px,100%);height:auto}
.views{display:grid;width:100%;max-width:440px;margin:auto;padding:8px 0}

/* ---------- a view ---------- */
.view{display:flex;flex-direction:column;animation:rise .28s ease-out both}
@keyframes rise{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
h2{margin:0 0 20px;font-size:26px;line-height:1.2;font-weight:700;letter-spacing:-.015em}
h2:focus,h2:focus-visible{outline:none}   /* a heading takes focus only so a screen reader starts there; it is not a control */
.lab{display:block;font-size:14px;font-weight:620;margin:0 0 8px;color:var(--text)}
.field{display:block}
input{font:inherit}
.view input:not(.sr){display:block;width:100%;height:56px;padding:0 20px;border-radius:999px;border:1.5px solid var(--edge);background:var(--field);
 color:#fff;font-size:17px;letter-spacing:.005em;transition:border-color .15s,background .15s}
.view input:not(.sr):hover{border-color:rgba(255,255,255,.75)}
.view input:not(.sr):focus-visible{outline:3px solid var(--focus);outline-offset:2px;border-color:#fff;background:rgba(120,200,235,.1)}
.view input[aria-invalid="true"]{border-color:var(--bad)}
.view input+.field,.view .pw+.field,#rec-mail{margin-top:16px}
#code,#totp{letter-spacing:.3em;font-variant-numeric:tabular-nums;font-size:20px}
.pw{position:relative;display:block}
.pw input{padding-right:62px!important}
.pw .eye{position:absolute;right:6px;top:6px}
.icon-btn{display:inline-grid;place-items:center;width:44px;height:44px;border-radius:999px;border:0;background:transparent;color:var(--text);cursor:pointer;flex:none}
.icon-btn:hover{background:rgba(255,255,255,.1)}

/* the one filled button: white, as on the landing */
.primary{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:56px;margin-top:18px;padding:0 24px;border:0;border-radius:999px;
 background:#fff;color:var(--ink);font:inherit;font-size:16.5px;font-weight:650;letter-spacing:-.005em;cursor:pointer;
 box-shadow:0 10px 30px rgba(114,228,255,.18);transition:background .2s,transform .12s}
.primary:hover{background:#e3f7ff}
.primary:active{transform:scale(.985)}
.primary:focus-visible{outline:3px solid var(--acc);outline-offset:3px}
.primary[aria-busy="true"]{cursor:progress}
.primary[aria-busy="true"] svg.i{border-radius:50%;border:2.5px solid rgba(4,18,27,.28);border-top-color:var(--ink);stroke:none;animation:spin 1s linear infinite}
.primary[aria-busy="true"] svg.i use{opacity:0}
@keyframes spin{to{transform:rotate(360deg)}}
button:disabled{cursor:default}
.alts{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:14px}
.pill{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 16px;border-radius:999px;border:1.5px solid var(--edge);
 background:rgba(255,255,255,.04);color:#fff;font:inherit;font-size:14px;font-weight:600;text-decoration:none;cursor:pointer;transition:background .15s,border-color .15s}
.pill svg.i{color:var(--acc);width:18px;height:18px}
.pill:hover{background:rgba(255,255,255,.1);border-color:#fff}
.pill:disabled{border-style:dashed;cursor:default;background:transparent}
.pill .count{font-variant-numeric:tabular-nums;font-size:13px}
.pill.primaryish{background:#fff;color:var(--ink);border-color:#fff;font-weight:650}
.pill.primaryish svg.i{color:var(--ink)}
.newrow{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:22px;padding-top:18px;border-top:1px solid rgba(114,228,255,.14)}

/* who you are, and what is happening, as chips and pills */
.chips{display:flex;flex-wrap:wrap;gap:8px;margin:-6px 0 18px}
.chip{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:0 12px;border-radius:999px;background:rgba(114,228,255,.1);
 border:1px solid var(--line);font-size:13px;font-weight:600;white-space:nowrap;color:#fff}
.chip svg.i{width:16px;height:16px;color:var(--acc)}
.chip.warn{color:var(--warn);border-color:rgba(255,201,107,.5);background:rgba(48,33,8,.7)}
.chip.warn svg.i{color:var(--warn)}
.ident{display:flex;align-items:center;gap:10px;min-height:54px;padding:4px 5px 4px 18px;margin:-4px 0 18px;border-radius:999px;border:1px solid var(--line);
 background:rgba(255,255,255,.04)}
.ident>svg.i{color:var(--acc)}
.ident-who{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
.person{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:-4px 0 4px}
.person b{font-size:20px;font-weight:650;min-width:0;overflow-wrap:anywhere}
.avatar{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:var(--acc);color:var(--ink);font-size:21px;font-weight:750;flex:none}
.err{display:flex;gap:8px;align-items:flex-start;margin:12px 0 0;padding:10px 14px;border-radius:16px;background:rgba(255,122,138,.1);
 border:1px solid rgba(255,184,193,.45);color:var(--bad);font-size:14px;font-weight:560}
.err svg.i{width:18px;height:18px;margin-top:1px}
.routes{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.routes .pill{width:100%;justify-content:flex-start;flex-wrap:wrap;min-height:54px;padding:6px 20px;font-size:15px;text-align:left}
.routes .pill small{margin-left:auto;font-size:13px;font-weight:600}
.routes .note{display:flex;align-items:center;gap:8px;min-height:54px;padding:6px 20px;border-radius:999px;border:1.5px dashed var(--edge);font-size:15px;font-weight:600}
.routes .note svg.i{color:var(--acc)}
.wait{display:flex;gap:10px;margin:6px 0 4px}
.wait i{width:10px;height:10px;border-radius:50%;background:var(--acc);animation:pulse 1.4s ease-in-out infinite}
.wait i:nth-child(2){animation-delay:.2s}.wait i:nth-child(3){animation-delay:.4s}
@keyframes pulse{0%,100%{opacity:.3;transform:scale(.8)}50%{opacity:1;transform:none}}
.done-mark{display:grid;place-items:center;width:72px;height:72px;border-radius:50%;background:rgba(143,245,200,.12);color:var(--ok);box-shadow:0 0 0 2px rgba(143,245,200,.5)}
.done-mark svg.i{width:36px;height:36px;stroke-width:2.2}

/* the foot of the door: assurances, then the legal row (as on the landing) */
.trust{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 16px;margin:0;padding:0;list-style:none;font-size:13px;color:var(--text-2)}
.trust li{display:inline-flex;align-items:center;gap:6px;min-height:28px}
.trust svg.i{width:16px;height:16px;color:var(--acc)}
.legal{display:flex;flex-wrap:wrap;justify-content:center;gap:0 14px;margin-top:-10px;border-top:1px solid rgba(114,228,255,.14);padding-top:4px}
.legal a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;font-size:13px;color:var(--text-2);text-decoration:none;border-radius:10px}
.legal a:hover{color:#fff;text-decoration:underline;text-underline-offset:3px}

/* ---------- tablets: the same glass panel as the landing, centred ---------- */
@media (min-width:600px){
 .door{align-items:center;justify-content:center;padding:24px}
 .door-in{flex:none;width:min(540px,100%);min-height:min(760px,calc(100dvh - 48px));gap:22px;padding:30px 36px 10px;border-radius:28px;
  background:linear-gradient(180deg,rgba(10,24,34,.9),rgba(5,13,20,.92));border:1px solid rgba(114,228,255,.2);
  box-shadow:0 30px 80px rgba(0,0,0,.45),inset 0 1px 0 rgba(255,255,255,.06);-webkit-backdrop-filter:blur(28px) saturate(1.35);backdrop-filter:blur(28px) saturate(1.35)}
 .brand{flex-direction:column;align-items:flex-start;gap:18px}
 .brand .lion{width:64px;height:64px;border-radius:18px}
 .brand .wm{width:min(240px,100%)}
 .views{max-width:none}
 h2{font-size:28px}
}

/* ---------- wide: the calm stage fills the screen, the door is glass on the right, exactly where the landing keeps it ---------- */
@media (min-width:1000px) and (min-height:560px){
 html,body{height:100%;overflow:hidden}
 .frame{height:100vh;height:100dvh}
 .frame::before{background:radial-gradient(ellipse 46% 58% at calc((100% - var(--door-w) - var(--gap) * 2) / 2) 50%,rgba(8,102,150,.38),transparent 72%),
  radial-gradient(ellipse 60% 40% at 30% 110%,rgba(114,228,255,.06),transparent 70%)}
 .stage{display:grid;place-items:center;position:fixed;inset:0;right:calc(var(--door-w) + var(--gap) * 2);padding:48px}
 .lion-xl{display:block;width:min(40vmin,460px);height:auto;aspect-ratio:1;border-radius:22%;
  box-shadow:0 40px 120px rgba(0,0,0,.55),0 0 0 1px rgba(114,228,255,.14),0 0 140px rgba(8,102,150,.45);animation:breathe 9s ease-in-out infinite}
 @keyframes breathe{0%,100%{box-shadow:0 40px 120px rgba(0,0,0,.55),0 0 0 1px rgba(114,228,255,.14),0 0 120px rgba(8,102,150,.35)}
  50%{box-shadow:0 40px 120px rgba(0,0,0,.55),0 0 0 1px rgba(114,228,255,.24),0 0 180px rgba(8,102,150,.6)}}
 .door{position:fixed;top:var(--gap);right:var(--gap);bottom:var(--gap);width:var(--door-w);padding:0;display:flex}
 .door-in{flex:1;width:auto;min-height:0;height:100%;overflow-y:auto;gap:20px;padding:clamp(28px,4.2vh,52px) clamp(26px,2.4vw,44px) 12px;scrollbar-width:thin}
 .brand{gap:22px}
 .brand .lion{width:clamp(64px,4.6vw,84px);height:clamp(64px,4.6vw,84px);border-radius:20px}
 .brand .wm{width:min(clamp(200px,13vw,280px),100%)}
 .trust{justify-content:flex-start}
 .legal{justify-content:flex-start}
 .views{margin:auto 0}
 .primary{min-height:clamp(56px,6.2vh,64px);font-size:clamp(16px,1vw,18px)}
 h2{font-size:clamp(26px,1.7vw,34px)}
}
@media (min-width:1800px) and (min-height:560px){
 body{font-size:16px}
 .view input:not(.sr){height:60px;font-size:18px}
 .pill{min-height:48px;font-size:15px}
 .lab{font-size:15px}
}
@media (min-width:2200px) and (min-height:1200px){
 body{font-size:17px}
 svg.i{width:22px;height:22px}
 .view input:not(.sr){height:66px;font-size:19px;padding:0 24px}
 .primary{min-height:70px;font-size:20px}
 .pill{min-height:54px;font-size:16px;padding:0 20px}
 .pill svg.i{width:20px;height:20px}
 .lab{font-size:16px}
 .chip{min-height:38px;font-size:15px}
 .err{font-size:16px}
 .trust{font-size:15px}
 .trust svg.i{width:19px;height:19px}
 .legal a{font-size:14.5px}
 .person b{font-size:24px}
 .avatar{width:60px;height:60px;font-size:24px}
}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media (forced-colors:active){.primary,.pill,.chip,.ident,.err,.view input:not(.sr),.door-in{border:1px solid CanvasText}}
