#components-reconnect-modal {
    display: none;
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: min(calc(100vw - 2rem), 28rem);
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    /* MudBlazor overrides this ID with a theme variable that is absent on Login. */
    background-color: #fff !important;
    color: #293042;
    border: 1px solid #ced4da;
    border-radius: .75rem;
    box-shadow: 0 8px 32px #0003;
    overflow: hidden;
    text-align: left;
    z-index: 10001 !important;
}
#components-reconnect-modal .connection-card {
    padding: 1.5rem;
}
#components-reconnect-modal h2 {
    margin: 0 0 .5rem;
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.4;
    color: inherit;
}
#components-reconnect-modal p {
    margin: 0;
    padding: 0;
    font-size: .9375rem;
    line-height: 1.6;
    color: inherit;
}
#components-reconnect-modal p.connection-warning {
    margin-top: .75rem;
    color: #626b7a;
    font-size: .8125rem;
}
#components-reconnect-modal .connection-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.25rem;
}
#components-reconnect-modal button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: 2.5rem;
    /* Override MudBlazor's reconnect-button margin, including on Login. */
    margin: 0 !important;
    padding: .625rem 1rem;
    border: 0;
    border-radius: .375rem;
    background: #3f6ad8;
    color: #fff;
    font: inherit;
    font-size: .875rem;
    font-weight: 500;
    line-height: 1.4;
    text-transform: none;
    cursor: pointer;
}
#components-reconnect-modal button:hover {
    background: #3155b3;
}
#components-reconnect-modal button:focus-visible {
    outline: 3px solid #3f6ad8;
    outline-offset: 3px;
}
#components-reconnect-modal.components-reconnect-show,
#components-reconnect-modal.components-reconnect-retrying,
#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-rejected { display: block; }
#components-reconnect-modal .connection-retrying,
#components-reconnect-modal .connection-failed,
#components-reconnect-modal .connection-rejected { display: none; }
#components-reconnect-modal.components-reconnect-show .connection-retrying,
#components-reconnect-modal.components-reconnect-retrying .connection-retrying,
#components-reconnect-modal.components-reconnect-failed .connection-failed,
#components-reconnect-modal.components-reconnect-rejected .connection-rejected { display: block; }
