/* Colours match the app theme (shared/.../design/Color.kt): background, onBackground, primary. */
:root {
    --bg: #F7F9FB;          /* OffWhite */
    --fg: #111C27;          /* Ink */
    --spinner-track: #D7E4F5; /* Navy100 */
    --spinner-arc: #0F3157;   /* Navy800, light primary */
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #07131F;            /* DarkBg */
        --fg: #E3EAF2;            /* DarkText */
        --spinner-track: #1E344A; /* dark surfaceContainerHighest */
        --spinner-arc: #B6CDEA;   /* Navy200, dark primary */
    }
}

:root[data-theme="dark"] {
    --bg: #07131F;
    --fg: #E3EAF2;
    --spinner-track: #1E344A;
    --spinner-arc: #B6CDEA;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: var(--bg);
    color: var(--fg);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

#loading {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

#loading .track { stroke: var(--spinner-track); }
#loading .arc { stroke: var(--spinner-arc); }

/* Loading splash: always the logo's white, like the in-app splash (SplashScreen.kt). */
#loading { background: #FFFFFF; color: #004AAD; gap: 16px; padding: 24px; box-sizing: border-box; }
#loading .logo { width: min(240px, 60vw); height: auto; }
#loading .slogan { margin: 0; font-size: 22px; font-weight: 700; text-align: center; color: #004AAD; }
#loading .track { stroke: #D3E8FA; }
#loading .arc { stroke: #289DB9; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
