/* /Components/Layout/MainLayout.razor.rz.scp.css */
#blazor-error-ui[b-ql6cz4rype] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-ql6cz4rype] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
/* Which parts show in which state. Blazor puts components-reconnect-* classes on the dialog. */
.components-reconnect-first-attempt-visible[b-rkg6g3yoed],
.components-reconnect-repeated-attempt-visible[b-rkg6g3yoed],
.components-reconnect-failed-visible[b-rkg6g3yoed],
.components-pause-visible[b-rkg6g3yoed],
.components-resume-failed-visible[b-rkg6g3yoed],
.components-rejoining-animation[b-rkg6g3yoed] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-rkg6g3yoed],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-rkg6g3yoed],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-rkg6g3yoed],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-rkg6g3yoed],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-rkg6g3yoed],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-rkg6g3yoed],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-rkg6g3yoed] {
    display: block;
}
/* Blazor keeps "show" while it adds "retrying" or "failed", so the later state wins. */
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-first-attempt-visible[b-rkg6g3yoed],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-first-attempt-visible[b-rkg6g3yoed],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-repeated-attempt-visible[b-rkg6g3yoed],
#components-reconnect-modal.components-reconnect-failed .components-rejoining-animation[b-rkg6g3yoed] {
    display: none;
}
#components-reconnect-modal .reconnect-icon.components-reconnect-failed-visible[b-rkg6g3yoed],
#components-reconnect-modal .reconnect-icon.components-resume-failed-visible[b-rkg6g3yoed] { display: none; }
#components-reconnect-modal.components-reconnect-failed .reconnect-icon[b-rkg6g3yoed],
#components-reconnect-modal.components-reconnect-resume-failed .reconnect-icon[b-rkg6g3yoed] { display: inline-flex; }
#components-reconnect-modal .reconnect-actions > button[b-rkg6g3yoed] { display: none; }
#components-reconnect-modal.components-reconnect-failed .reconnect-actions > .components-reconnect-failed-visible[b-rkg6g3yoed],
#components-reconnect-modal.components-reconnect-paused .reconnect-actions > .components-pause-visible[b-rkg6g3yoed],
#components-reconnect-modal.components-reconnect-resume-failed .reconnect-actions > .components-resume-failed-visible[b-rkg6g3yoed] {
    display: inline-flex;
}

/* The dialog: the shared card look, on the theme tokens. */
#components-reconnect-modal[b-rkg6g3yoed] {
    width: min(22rem, calc(100vw - 2rem));
    margin: auto;
    padding: 1.75rem 1.5rem 1.5rem;
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius-lg);
    background: var(--ui-surface);
    color: var(--ui-text);
    box-shadow: var(--ui-shadow-raised);
    opacity: 0;
    transition: display 0.4s allow-discrete, overlay 0.4s allow-discrete;
    animation: reconnect-fade-out-b-rkg6g3yoed 0.3s both;
}
#components-reconnect-modal[open][b-rkg6g3yoed] {
    animation: reconnect-up-b-rkg6g3yoed 0.45s cubic-bezier(.22, 1, .36, 1) 0.25s both, reconnect-fade-in-b-rkg6g3yoed 0.3s ease-out 0.25s both;
}
#components-reconnect-modal[b-rkg6g3yoed]::backdrop {
    background: rgba(2, 6, 23, 0.55);
    backdrop-filter: blur(3px);
    animation: reconnect-fade-in-b-rkg6g3yoed 0.3s ease-out;
}

.components-reconnect-container[b-rkg6g3yoed] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}
.components-reconnect-container .dgb-loader[b-rkg6g3yoed] { --dgb-loader-size: 4.5rem; margin-bottom: 0.25rem; }
.reconnect-icon[b-rkg6g3yoed] {
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 9999px;
    color: var(--ui-danger, #dc2626);
    background: color-mix(in srgb, var(--ui-danger, #dc2626) 12%, transparent);
}
.reconnect-title[b-rkg6g3yoed] { margin: 0; font-size: 1.0625rem; font-weight: 700; }
.reconnect-text[b-rkg6g3yoed] { margin: 0; font-size: 0.875rem; line-height: 1.5; color: var(--ui-text-muted); }
.reconnect-actions[b-rkg6g3yoed] { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 0.5rem; width: 100%; }
.reconnect-actions > button[b-rkg6g3yoed] { flex: 1 1 8rem; justify-content: center; }

@keyframes reconnect-up-b-rkg6g3yoed { from { transform: translateY(16px) scale(0.98); } to { transform: none; } }
@keyframes reconnect-fade-in-b-rkg6g3yoed { from { opacity: 0; } to { opacity: 1; } }
@keyframes reconnect-fade-out-b-rkg6g3yoed { from { opacity: 1; } to { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
    #components-reconnect-modal[b-rkg6g3yoed], #components-reconnect-modal[open][b-rkg6g3yoed], #components-reconnect-modal[b-rkg6g3yoed]::backdrop { animation-duration: 0.01s; }
}
