/* User-supplied peach brand scene; shared by gateway and workspace. */
html[data-mf-top-edge] { background: #f5f5f5!important; }
#startupScreen::after {
  content:"";position:absolute;inset:0 0 auto;height:32px;z-index:0;pointer-events:none;
  background:linear-gradient(#f5f5f5,rgba(245,245,245,.84) 23%,rgba(245,245,245,0));
  backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);
  mask-image:linear-gradient(#000,transparent);-webkit-mask-image:linear-gradient(#000,transparent);
}
#startupScreen[data-state="exit"]::after{animation:startup-content-fade-out 160ms var(--startup-out) both}
.mf-top-reading-fog {
  position:fixed;height:16px;pointer-events:none;z-index:40;
  background:linear-gradient(var(--mf-top-surface,#f5f5f5),transparent);
  backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);
  mask-image:linear-gradient(#000,transparent);-webkit-mask-image:linear-gradient(#000,transparent);
}
.mf-top-reading-fog[hidden]{display:none}
#startupScreen.startup-screen[data-motion] {
  --startup-enter-duration:950ms;
  --startup-exit-duration:550ms;
  --startup-scene-size:min(52.48vw,224px,26.88dvh);
  --startup-out:var(--motion-ease-out,cubic-bezier(.23,1,.32,1));
  position:fixed;inset:0;z-index:10000;display:block;margin:0;padding:0;
  background:transparent!important;color:#202324;
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","SF Pro Text","Microsoft YaHei",sans-serif;
  text-align:center;overflow:hidden;isolation:isolate;opacity:1;
}
#startupScreen.startup-screen[hidden]{display:none!important}
#startupScreen.startup-screen[data-motion="brief"]{--startup-enter-duration:160ms;--startup-exit-duration:220ms}
#startupScreen.startup-screen[data-motion="reduce"]{--startup-enter-duration:160ms;--startup-exit-duration:160ms}
#startupScreen .startup-curtain{position:absolute;inset:0;z-index:0;display:block;width:100%;height:100%;margin:0;padding:0;border:0;overflow:hidden;pointer-events:none}
#startupScreen .startup-curtain mask{mask-type:luminance}
#startupScreen .startup-background-words{font-family:"Arial Black",Arial,Helvetica,sans-serif;font-size:102.5px;font-weight:900;letter-spacing:-4.5px;text-anchor:middle;fill:#fffaf0;opacity:.72}
#startupScreen .startup-aperture{fill:#000;stroke:none;opacity:0;transform:scale(var(--startup-reveal-start,.32));transform-box:fill-box;transform-origin:50% 50%;animation:none!important}
/* Preserve the original square artboard; its orange-circle centre is at 50% / 48.2%. */
#startupScreen[data-motion] .startup-brand{position:absolute;top:50%;left:50%;z-index:1;display:block;width:var(--startup-scene-size);height:var(--startup-scene-size);margin:0;padding:0;transform:translate(-50%,-48.2%)!important;opacity:1;pointer-events:none}
#startupScreen .startup-mark{position:relative;display:block;width:100%;height:100%;margin:0;padding:0;transform-origin:50% 48.2%;transform:none;opacity:1}
#startupScreen .startup-mark img{
  position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;
  margin:0;padding:0;border:0;border-radius:0;object-fit:contain;box-shadow:none;pointer-events:none;
}
/* The supplied square is used unchanged. Feather only its outer background,
   preserving the face and complete wordmark inside the original artboard. */
#startupScreen .startup-artwork{
  filter:none;transform-origin:50% 48.2%;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent),linear-gradient(transparent,#000 8%,#000 84%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent),linear-gradient(transparent,#000 8%,#000 84%,transparent);
  -webkit-mask-composite:source-in;mask-composite:intersect;
}
#startupScreen .startup-slogan{z-index:3}
/* The slogan belongs to the same animated brand mark and keeps its artboard size. */
#startupScreen .startup-brand .startup-slogan{
  position:absolute;top:calc(86% + 4px);left:50%;display:block;width:max-content;
  max-width:calc(100vw - 40px);margin:0;padding:0;border:0;
  color:#514437;font-size:12px;font-weight:600;line-height:1.5;letter-spacing:.02em;
  text-align:center;white-space:nowrap;transform:translateX(-50%);
}
#startupScreen .startup-visually-hidden{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap;margin:-1px!important;padding:0!important;border:0}
#startupScreen .startup-status{position:absolute;bottom:max(10%,24px,env(safe-area-inset-bottom));left:20px;right:20px;z-index:2;margin:0;color:#675440;font-size:11px;font-weight:500;line-height:1.7;opacity:1}
#startupScreen .startup-status p{margin:0;color:inherit;font-size:11px;font-weight:500;line-height:1.7;overflow-wrap:anywhere}
#startupScreen .startup-orbit{display:block;width:18px;height:18px;margin:0 auto 12px;border:2px solid #20232422;border-top-color:#2d3031;border-radius:50%;animation:startup-orbit-turn 1000ms linear infinite!important}
#startupScreen .startup-retry{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:120px;min-height:44px;margin:16px 0 0;padding:10px 20px;border:0;border-radius:999px;background:#2d3031;color:#fff;font-size:14px;font-weight:600;line-height:1.6;text-decoration:none;white-space:normal}
#startupScreen .startup-retry[hidden]{display:none!important}
#startupScreen .startup-retry:focus-visible{outline:2px solid #2d3031;outline-offset:4px}
#startupScreen .startup-retry:active{opacity:.8}
#startupScreen[data-motion="full"] .startup-mark{transform:rotate(-1deg) scale(.86)}
#startupScreen[data-motion="full"][data-state="loading"][data-brand-ready="true"] .startup-artwork{animation:startup-artwork-settle 650ms var(--startup-out) calc(0ms - var(--startup-enter-elapsed,0ms)) both}
#startupScreen[data-motion="full"][data-state="loading"][data-brand-ready="true"] .startup-slogan{animation:startup-slogan-light 300ms var(--startup-out) calc(650ms - var(--startup-enter-elapsed,0ms)) both}
#startupScreen[data-motion="brief"][data-state="loading"][data-brand-ready="true"] .startup-mark{animation:startup-content-fade-in var(--startup-enter-duration) var(--startup-out) calc(0ms - var(--startup-enter-elapsed,0ms)) both!important}
#startupScreen:not([data-brand-ready="true"]) .startup-mark{visibility:hidden}
#startupScreen[data-motion="full"][data-state="exit"] .startup-aperture,
#startupScreen[data-motion="brief"][data-state="exit"] .startup-aperture{animation:startup-aperture-open var(--startup-exit-duration) var(--startup-out) both!important}
#startupScreen[data-motion="full"][data-state="exit"] .startup-mark{animation:startup-mark-release var(--startup-exit-duration) var(--startup-out) both!important}
#startupScreen[data-motion="brief"][data-state="exit"] .startup-mark{animation:startup-content-fade-out var(--startup-exit-duration) var(--startup-out) both!important}
#startupScreen[data-motion="full"][data-state="exit"] .startup-status,
#startupScreen[data-motion="brief"][data-state="exit"] .startup-status{animation:startup-content-fade-out 160ms var(--startup-out) both!important}
#startupScreen[data-state="error"] .startup-aperture{animation:none!important;transform:scale(var(--startup-reveal-start,.32));opacity:0}
#startupScreen[data-state="error"] .startup-mark,
#startupScreen[data-state="error"] .startup-status{animation:none!important;opacity:1}
#startupScreen[data-state="error"] .startup-mark{transform:none}
#startupScreen[data-state="error"] .startup-orbit{display:none;animation:none!important}
#startupScreen[data-motion="reduce"] .startup-mark,
#startupScreen[data-motion="reduce"] .startup-aperture,
#startupScreen[data-motion="reduce"] .startup-orbit{animation:none!important}
#startupScreen[data-motion="reduce"] .startup-mark{transform:none;opacity:1}
#startupScreen[data-motion="reduce"] .startup-aperture{transform:none;opacity:0}
#startupScreen[data-motion="reduce"][data-state="exit"]{animation:startup-screen-soft-exit 160ms var(--startup-out) both!important}
@keyframes startup-artwork-settle{from{opacity:0;transform:translateY(8px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes startup-slogan-light{from{opacity:0}to{opacity:1}}
@keyframes startup-mark-release{0%{opacity:1;transform:rotate(-1deg) scale(.86)}100%{opacity:0;transform:rotate(0deg) scale(1.08)}}
@keyframes startup-aperture-open{0%{opacity:1;transform:scale(var(--startup-reveal-start,.32))}100%{opacity:1;transform:scale(var(--startup-reveal-end,2))}}
@keyframes startup-content-fade-in{from{opacity:0}to{opacity:1}}
@keyframes startup-content-fade-out{from{opacity:1}to{opacity:0}}
@keyframes startup-screen-soft-exit{from{opacity:1}to{opacity:0}}
@keyframes startup-orbit-turn{to{transform:rotate(360deg)}}
@media(hover:hover) and (pointer:fine){#startupScreen .startup-retry:hover{opacity:.9}}
@media(max-height:520px){#startupScreen .startup-status{top:calc(50% + .39 * var(--startup-scene-size) + 40px);bottom:max(12px,env(safe-area-inset-bottom));overflow-y:auto;overscroll-behavior:contain;padding-bottom:4px}}
@media(prefers-reduced-motion:reduce){
  #startupScreen.startup-screen[data-motion][data-state] :is(.startup-artwork,.startup-slogan){animation:none!important}
  #startupScreen.startup-screen[data-motion]{--startup-enter-duration:160ms;--startup-exit-duration:160ms}
  #startupScreen.startup-screen[data-motion][data-state] .startup-mark,
  #startupScreen.startup-screen[data-motion][data-state] .startup-status,
  #startupScreen.startup-screen[data-motion][data-state] .startup-aperture,
  #startupScreen.startup-screen[data-motion][data-state] .startup-orbit{animation:none!important;opacity:1}
  #startupScreen.startup-screen[data-motion] .startup-mark{transform:none}
  #startupScreen.startup-screen[data-motion][data-state] .startup-aperture{transform:none;opacity:0}
  #startupScreen.startup-screen[data-motion][data-state="exit"]{animation:startup-screen-soft-exit 160ms var(--startup-out) both!important}
}

/* Linked authentication moves the same brand scene; homepage reveal still uses the rules above. */
#startupScreen .startup-hero{position:absolute;inset:0;z-index:1;margin:0;padding:0;transform:translateY(0);animation:none!important;pointer-events:none}
#startupScreen.startup-screen[data-motion][data-target="auth"]{position:absolute;inset:0;z-index:0;animation:none!important;opacity:1;pointer-events:none}
#startupScreen.startup-screen[data-motion][data-target="auth"][data-state="error"] .startup-status,
#startupScreen.startup-screen[data-motion][data-target="auth"][data-state="error"] .startup-retry{pointer-events:auto}
#startupScreen.startup-screen[data-motion][data-target="auth"] .startup-aperture{animation:none!important;opacity:0;transform:scale(var(--startup-reveal-start,.32))}
#startupScreen.startup-screen[data-motion][data-target="auth"] .startup-word-layer{transform:translateY(0);transform-box:view-box;animation:none!important}
#startupScreen.startup-screen[data-motion][data-target="auth"][data-state="auth-exit"] .startup-hero{animation:auth-hero-rise var(--auth-transition-duration,550ms) var(--startup-out) both!important}
#startupScreen.startup-screen[data-motion][data-target="auth"][data-state="auth-exit"] .startup-word-layer{animation:auth-pattern-rise var(--auth-transition-duration,550ms) var(--startup-out) both!important}
#startupScreen.startup-screen[data-motion][data-target="auth"][data-state="auth-ready"] .startup-hero{transform:translateY(var(--startup-auth-rise,0px));animation:none!important}
#startupScreen.startup-screen[data-motion][data-target="auth"][data-state="auth-ready"] .startup-word-layer{transform:translateY(var(--startup-auth-pattern-rise,0px));animation:none!important}
#startupScreen.startup-screen[data-motion="full"][data-target="auth"]:is([data-state="auth-exit"],[data-state="auth-ready"]) .startup-mark{animation:none!important;transform:rotate(-1deg) scale(.86);opacity:1}
#startupScreen.startup-screen[data-motion="brief"][data-target="auth"]:is([data-state="auth-exit"],[data-state="auth-ready"]) .startup-mark{animation:none!important;transform:none;opacity:1}
#startupScreen.startup-screen[data-motion][data-target="auth"][data-state="auth-exit"] .startup-status{animation:startup-content-fade-out 160ms var(--startup-out) both!important}
#startupScreen.startup-screen[data-motion][data-target="auth"][data-state="auth-ready"] .startup-status{visibility:hidden;opacity:0;animation:none!important;pointer-events:none}
#startupScreen.startup-screen[data-motion][data-target="auth"]:not([data-brand-ready="true"]):not([data-state="error"]) .startup-mark{animation:none!important;opacity:0}
/* Keyboard focus may retarget the settled scene; the first linked transition never uses these transitions. */
:is(#authDialog,#phoneCredentialDialog).branded-auth-dialog[data-auth-stage="settled"] #startupScreen.startup-screen[data-target="auth"][data-state="auth-ready"] :is(.startup-hero,.startup-word-layer){transition:transform 160ms var(--startup-out)!important}
#startupScreen.startup-screen[data-motion="reduce"][data-target="auth"][data-state] .startup-hero{transform:translateY(var(--startup-auth-rise,0px));animation:none!important;transition:none!important}
#startupScreen.startup-screen[data-motion="reduce"][data-target="auth"][data-state] .startup-word-layer{transform:translateY(var(--startup-auth-pattern-rise,0px));animation:none!important;transition:none!important}
#startupScreen.startup-screen[data-motion="reduce"][data-target="auth"][data-state] .startup-mark{animation:none!important;transform:none;opacity:1}
:is(#authDialog,#phoneCredentialDialog).branded-auth-dialog[data-auth-stage="settled"] #startupScreen.startup-screen[data-motion="reduce"][data-target="auth"][data-state="auth-ready"] :is(.startup-hero,.startup-word-layer){transition:none!important}
@keyframes auth-hero-rise{from{transform:translateY(0)}to{transform:translateY(var(--startup-auth-rise,0px))}}
@keyframes auth-pattern-rise{from{transform:translateY(0)}to{transform:translateY(var(--startup-auth-pattern-rise,0px))}}
@media(prefers-reduced-motion:reduce){
  #startupScreen.startup-screen[data-motion][data-target="auth"][data-state] .startup-hero{transform:translateY(var(--startup-auth-rise,0px));animation:none!important;transition:none!important}
  #startupScreen.startup-screen[data-motion][data-target="auth"][data-state] .startup-word-layer{transform:translateY(var(--startup-auth-pattern-rise,0px));animation:none!important;transition:none!important}
  #startupScreen.startup-screen[data-motion][data-target="auth"][data-state] .startup-mark{animation:none!important;transform:none;opacity:1}
  :is(#authDialog,#phoneCredentialDialog).branded-auth-dialog[data-auth-stage="settled"] #startupScreen.startup-screen[data-target="auth"][data-state="auth-ready"] :is(.startup-hero,.startup-word-layer){transition:none!important}
}
