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

/* Match the app's background so removing the splash does not flash. The theme
   the app will use is a stored preference the splash cannot read, so it follows
   the operating system — the same default the app falls back to. */
body {
    background: #F6F6F8;
}

#splash {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F6F6F8;
    z-index: 1;
}

.splash-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #E4E4E9;
    border-top-color: #4F46E5;
    border-radius: 50%;
    animation: splash-spin 1s linear infinite;
}

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

@media (prefers-color-scheme: dark) {
    body, #splash { background: #0B0B0E; }

    .splash-spinner {
        border-color: #2A2A31;
        border-top-color: #818CF8;
    }
}

@media (prefers-reduced-motion: reduce) {
    .splash-spinner { animation: none; }
}
