.page-veil {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(244, 246, 248, .55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

html.page-leaving .page-veil,
html.page-arriving .page-veil {
    display: flex;
}

html.page-arriving.page-ready:not(.page-leaving) .page-veil {
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
}

.page-veil-spin {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid rgba(23, 25, 29, .18);
    border-top-color: #17191d;
    animation: page-spin .7s linear infinite;
}

html[data-admin-theme="dark"] .page-veil {
    background: rgba(23, 25, 29, .5);
}

html[data-admin-theme="dark"] .page-veil-spin {
    border-color: rgba(244, 246, 248, .22);
    border-top-color: #f4f6f8;
}

@keyframes page-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-veil {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .page-veil-spin {
        animation: none;
    }
}
