:root {
    /* The Compose canvas is light-only; a dark shell would flash before it paints. */
    color-scheme: light;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.spinner-track { stroke: #ccc; }
.spinner-arc {
    stroke: #333;
    transform-origin: 25px 25px;
    animation: spin 1s linear infinite;
}

/* Slow the spinner instead of stopping it so the user still sees that work is in progress. */
@media (prefers-reduced-motion: reduce) {
    .spinner-arc { animation-duration: 6s; }
}

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

/* Text for assistive tech and crawlers: the app itself is drawn on a canvas. */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.no-script { margin: 0; padding: 1rem; text-align: center; }

.load-error { margin: 0; padding: 1rem; font-family: sans-serif; color: #333; }
.load-error a { color: #216344; }
