html, body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body, 'Inter', system-ui, sans-serif);
    background: var(--riq-bg-app);
    color: var(--riq-fg-1);
}

/* Pre-Blazor-boot splash (RIQ-443, Login.dc.html "splash"). No component can render before the WASM
   runtime loads, so index.html carries static copies of the IQWaveLoader artwork; riqTheme.js has already
   set <html data-theme>, which picks the light or dark copy. AuthLayout's IQWaveLoader takes over after boot. */
.riq-preboot {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-5, 20px);
    padding: var(--space-6, 24px);
    background: var(--riq-bg-app);
}

.riq-preboot-wave {
    display: block;
    width: min(240px, 60vw);
    height: auto;
}

html[data-theme="dark"] .riq-preboot-wave--light,
html:not([data-theme="dark"]) .riq-preboot-wave--dark {
    display: none;
}

.riq-preboot-tagline {
    font-family: var(--font-body, 'Inter', system-ui, sans-serif);
    font-weight: 600;
    font-size: var(--fs-caption, 12px);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--riq-fg-2);
}

#blazor-error-ui {
    background: var(--riq-danger);
    color: var(--riq-soft-white);
    bottom: 0;
    box-shadow: var(--shadow-2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
