/* The session marks only the first workspace rendered after a successful sign-in. */
.workspace-arrival { display:none; }
.workspace-arrival-ready [data-arrival-pending], .login-departing .workspace-arrival {
  position:fixed; inset:0; z-index:2147483646; display:grid; place-items:center; isolation:isolate;
  overflow:hidden; background:radial-gradient(ellipse at 78% 110%,var(--ws-accent-soft) 5%,transparent 62%),
    var(--ws-bg); color:var(--ws-text); font-family:var(--ws-font); text-align:center;
}
.workspace-arrival::before {
  content:""; position:absolute; z-index:-1; inset:0;
  background:linear-gradient(130deg,var(--ws-accent),var(--ws-muted));
  mask:url('/static/admin-halftone.png') 72% 95% / max(85%,650px) auto no-repeat; opacity:.22;
}
.workspace-greeting { display:grid; justify-items:center; gap:18px; padding:16px; }
.workspace-signature { display:inline-flex; align-items:center; gap:10px; color:var(--ws-accent);
  font-size:13px; font-weight:750; letter-spacing:.19em; }
.workspace-signature i { display:grid; place-items:center; width:30px; height:30px; border-radius:8px;
  background:var(--ws-accent); color:var(--ws-on-accent); font:800 18px/1 var(--ws-font); letter-spacing:-.12em; }
.workspace-greeting strong { font-size:clamp(38px,8vw,100px); line-height:1.06; letter-spacing:-.065em; font-weight:680; }
.workspace-arrival.is-revealing { animation:workspace-lift 650ms cubic-bezier(.68,.04,.24,1) both; }
@keyframes workspace-lift { to { transform:translateY(-101%); } }
@media (prefers-reduced-motion: reduce) {
  html[data-welcome-motion="gentle"] .workspace-arrival.is-revealing {
    animation:workspace-fade 420ms ease-out both!important;
  }
  /* An explicit On in Appearance opts back into the curtain. */
  html[data-welcome-motion="full"] .workspace-arrival.is-revealing {
    animation:workspace-lift 650ms cubic-bezier(.68,.04,.24,1) both!important;
  }
}
@keyframes workspace-fade { to { opacity:0; } }

/* Keep a readable sign-in confirmation when movement is disabled. */
html[data-welcome-motion="still"] .workspace-arrival {
  inset:max(14px,env(safe-area-inset-top)) 0 auto; width:max-content; max-width:100%; margin-inline:auto;
  border:1px solid var(--ws-border); border-radius:16px; background:var(--ws-surface-strong); box-shadow:var(--ws-shadow);
  animation:none;
}
html[data-welcome-motion="still"] .workspace-arrival::before { display:none; }
html[data-welcome-motion="still"] .workspace-greeting { gap:4px; padding:12px 24px; }
html[data-welcome-motion="still"] .workspace-greeting strong { font-size:19px; letter-spacing:-.035em; }
html[data-admin-motion="off"] *,
html[data-admin-motion="off"] *::before,
html[data-admin-motion="off"] *::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; }
body:is(.portal-merchant,.portal-support,.workspace-security) { isolation:isolate; }
