/* Static first-paint protection also applies before modules are downloaded. */
[hidden]{display:none!important}
body[data-auth-startup]:not([data-auth-startup="ready"]) #workspace,
body[data-auth-startup="checking"] #gate,body[data-auth-startup="error"] #gate,
body[data-auth-startup="checking"] #sign-in-gate,body[data-auth-startup="error"] #sign-in-gate,
body[data-auth-startup]:not([data-auth-startup="ready"]) .c2-rail,
body[data-auth-startup]:not([data-auth-startup="ready"]) #c2-intro,
body[data-auth-startup]:not([data-auth-startup="ready"]) .c2-header-actions{display:none!important}
body[data-auth-startup]:not([data-auth-startup="ready"]) .c2-layout{display:block!important}
.auth-startup,#sign-in-gate,body[data-auth-startup="signed-out"] #gate{box-sizing:border-box;width:calc(100% - 32px);max-width:480px;margin:clamp(32px,9vh,96px) auto;padding:32px 24px;text-align:center;background:#fff;border:1px solid #dce5e8;border-radius:8px;line-height:1.6}
.auth-startup{width:calc(100% - 32px)}
.auth-startup h1{font-size:1.5rem;line-height:1.3;margin:16px 0}
.auth-startup button,.auth-startup a{display:inline-block;margin:8px;padding:10px 18px;border-radius:8px}
body:has(.brand) .auth-startup button{border-radius:12px}
.auth-startup[aria-busy="true"] img{animation:auth-breathe 1.5s ease-in-out infinite alternate}
@keyframes auth-breathe{to{opacity:.45}}
@media(prefers-reduced-motion:reduce){.auth-startup img{animation:none!important}}

/* The fallback replaces checking copy when scripting is disabled. */
.auth-startup:has(noscript p) [data-auth-message]{display:none}
