body {
    padding: 0;
    margin: 0;
}

#efz-app {
    width: 100%;
    height: 100vh;
    -webkit-overflow-scrolling: touch;
}

/* Spinner shared by the boot loader and <Loading>: transform-only, so it stays on the compositor while the main thread is busy. */
:root {
    /* Resolved here so the boot spinner keeps the EFZ token when App.tsx themes body. */
    --efz-boot-spinner-from: var(--primary-color-bleached, #dae1e7);
    --efz-boot-spinner-to: var(--primary-color, #494e52);
}

.efz-boot-loading {
    position: fixed;
    inset: 0;
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    justify-content: center;
    background: #fff;
    z-index: 9999;
    opacity: 1;
    transition: opacity 150ms ease-out;
}

.efz-boot-loading.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.efz-boot-loading .efz-spinner-arc {
    --efz-spinner-color: url(#efz-boot-grad);
}

.efz-boot-grad-from {
    stop-color: var(--efz-boot-spinner-from);
}

.efz-boot-grad-to {
    stop-color: var(--efz-boot-spinner-to);
}

/* Non-rotating box around the spinner: clips its rotated corners so they add no scroll overflow. */
.efz-spinner-box {
    display: block;
    flex-shrink: 0;
    overflow: hidden;
}

.efz-spinner {
    display: block;
    flex-shrink: 0;
    animation: efz-spinner-rotate 1s linear infinite;
    will-change: transform;
}

.efz-spinner-arc {
    fill: none;
    stroke: var(--efz-spinner-color, var(--primary-color));
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 160 216.77;
}

@keyframes efz-spinner-rotate {
    to {
        transform: rotate(360deg);
    }
}
