html,
body {
    margin: 0;
    min-height: 100%;
    background: var(--rl-bg-app, #f3f5f8);
}

/* The startup screen paints before the stylesheets that define the design tokens matter, so it
   carries its own two-colour pair, keyed off the theme the head script restored. Without this a
   dark-themed install starts with a bright window. */
html[data-theme="dark"],
html[data-theme="dark"] body {
    background: var(--rl-bg-app, #14181d);
}

.boot-status {
    display: grid;
    min-height: 100vh;
    place-items: center;
    color: var(--rl-text-primary, #1b2530);
    font: 600 1rem/1.5 system-ui, sans-serif;
}

html[data-theme="dark"] .boot-status {
    color: var(--rl-text-primary, #e8ecf1);
}

#blazor-error-ui {
    display: none;
    position: fixed;
    inset: auto 1rem 1rem 1rem;
    z-index: 1000;
    padding: 1rem 3rem 1rem 1rem;
    border: 1px solid var(--rl-danger-border, #d0aaa7);
    border-radius: var(--rl-radius-sm, 4px);
    background: var(--rl-danger-bg, #fdecec);
    color: var(--rl-danger, #c62828);

}

#blazor-error-ui .reload {
    margin-left: 0.5rem;
    color: inherit;
    font-weight: 700;
}

#blazor-error-ui .dismiss {
    position: absolute;
    top: 0.55rem;
    right: 0.65rem;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-size: 1.4rem;
}
