:root {
    color-scheme: light dark;
    --bg: #F4F2EC;
    --brand: #059669;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0C110F;
        --brand: #34D399;
    }
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: var(--bg);
}

/* Shown until Compose draws its first frame (the canvas is added on top). */
.app-loader {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    z-index: -1;
}

.app-loader__brand {
    font-size: 32px;
    font-weight: 700;
    color: var(--brand);
}

.app-loader__spinner {
    width: 28px;
    height: 28px;
    border: 3px solid color-mix(in srgb, var(--brand) 25%, transparent);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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