/* Match the shared header while the login check holds the page body. */
html[data-login-pending]::before {
    content: "正在加载…";
    position: fixed;
    inset: 0;
    box-sizing: border-box;
    padding: calc(env(safe-area-inset-top, 0px) + 76px) 16px 0;
    background: linear-gradient(to bottom, #263b53 calc(env(safe-area-inset-top, 0px) + 52px), #edf1f5 0);
    color: #526579;
    font: 14px/1.5 system-ui, sans-serif;
    text-align: center;
    pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
    @view-transition {
        navigation: auto;
    }

    ::view-transition-group(root),
    ::view-transition-old(root),
    ::view-transition-new(root) {
        animation-duration: 120ms;
    }
}
