@import '_content/Microsoft.FluentUI.AspNetCore.Components/Microsoft.FluentUI.AspNetCore.Components.lcdo7z9xd2.bundle.scp.css';

/* /Components/Layout/MainLayout.razor.rz.scp.css */
#blazor-error-ui[b-rvdc6vgwr6] {
    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-rvdc6vgwr6] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
/* The circuit's modal in this product's clothes.
 *
 * The block of selectors immediately below is the framework's and is kept verbatim: the state
 * classes Blazor toggles on the dialog are what decide which line is showing. Everything after it
 * is ours, and works off the same tokens as the rest of the app, so the modal follows the theme
 * switch without knowing anything about it.
 *
 * One exception to the tokens: the backdrop is a literal colour. ::backdrop only recently began
 * inheriting custom properties from the element it belongs to, and a modal that says the server is
 * gone is the worst possible place to find out the browser disagrees. */

.components-reconnect-first-attempt-visible[b-0za8zmfkjj],
.components-reconnect-repeated-attempt-visible[b-0za8zmfkjj],
.components-reconnect-failed-visible[b-0za8zmfkjj],
.components-pause-visible[b-0za8zmfkjj],
.components-resume-failed-visible[b-0za8zmfkjj],
.components-rejoining-animation[b-0za8zmfkjj] {
    display: none;
}

/* Not simply .components-reconnect-show: Blazor adds -retrying alongside -show rather than
   instead of it, so the template's own rule left "Rejoining the server…" on screen underneath
   "Rejoin failed, trying again in n seconds" — two lines contradicting each other. The first
   attempt is the one without a retry behind it. */
#components-reconnect-modal.components-reconnect-show:not(.components-reconnect-retrying)
    .components-reconnect-first-attempt-visible[b-0za8zmfkjj],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-0za8zmfkjj],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-0za8zmfkjj],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-0za8zmfkjj],
#components-reconnect-modal.components-reconnect-retrying[b-0za8zmfkjj],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-0za8zmfkjj],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-0za8zmfkjj],
#components-reconnect-modal.components-reconnect-failed[b-0za8zmfkjj],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-0za8zmfkjj] {
    display: block;
}

/* ------------------------------------------------------------------ the card */

#components-reconnect-modal[b-0za8zmfkjj] {
    width: min(340px, calc(100vw - 32px));
    margin: 18vh auto;
    padding: 30px 28px 26px;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: var(--surface);
    color: var(--text);
    font-family: var(--font-body);
    box-shadow: var(--shadow-card);
    opacity: 0;
    transition: display 0.4s allow-discrete, overlay 0.4s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-0za8zmfkjj 0.4s both;
}

#components-reconnect-modal[open][b-0za8zmfkjj] {
    animation:
        components-reconnect-modal-slideUp-b-0za8zmfkjj 1.2s cubic-bezier(.05, .89, .25, 1.02) 0.3s,
        components-reconnect-modal-fadeInOpacity-b-0za8zmfkjj 0.4s ease-in-out 0.3s;
    animation-fill-mode: both;
}

#components-reconnect-modal[b-0za8zmfkjj]::backdrop {
    background: rgb(8 7 15 / 58%);
    backdrop-filter: blur(3px);
    animation: components-reconnect-modal-fadeInOpacity-b-0za8zmfkjj 0.4s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-0za8zmfkjj {
    0% {
        transform: translateY(24px) scale(0.97);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-0za8zmfkjj {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-0za8zmfkjj {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* ---------------------------------------------------------------- the inside */

.components-reconnect-container[b-0za8zmfkjj] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

/* Square, so the rings are circles whichever state hides them. */
.components-reconnect-mark[b-0za8zmfkjj] {
    position: relative;
    display: grid;
    place-items: center;
    width: 104px;
    height: 104px;
    margin-bottom: 2px;
}

.components-reconnect-logo[b-0za8zmfkjj] {
    position: relative;
    z-index: 1;
    line-height: 0;
}

#components-reconnect-modal p[b-0za8zmfkjj] {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-soft);
}

/* The one number on the screen that changes every second — mono, so it does not shuffle the
   words either side of it as it counts down through two digits and back to one. */
#components-seconds-to-next-attempt[b-0za8zmfkjj] {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--text);
}

#components-reconnect-modal button[b-0za8zmfkjj] {
    margin-top: 2px;
    padding: 9px 24px;
    border: 0;
    border-radius: var(--radius-pill);
    background: var(--q-violet);
    color: #FFFFFF;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 140ms var(--step-cubic), transform 140ms var(--step-cubic);
}

#components-reconnect-modal button:hover[b-0za8zmfkjj] {
    background: var(--q-violet-light);
}

#components-reconnect-modal button:active[b-0za8zmfkjj] {
    background: var(--q-violet-deep);
    transform: translateY(1px);
}

#components-reconnect-modal button:focus-visible[b-0za8zmfkjj] {
    outline: 0;
    box-shadow: var(--focus-ring);
}

/* --------------------------------------------------------------- the beacon */

.components-rejoining-animation[b-0za8zmfkjj] {
    position: absolute;
    inset: 0;
}

/* Rings expanding from just outside the mark to the edge of its box and fading out. Scaled rather
   than resized, so the whole pulse is one composited transform and a modal that appears exactly
   when the machine is already struggling does not ask the main thread for a layout every frame. */
.components-rejoining-animation div[b-0za8zmfkjj] {
    position: absolute;
    inset: 0;
    border: 2px solid var(--q-violet);
    border-radius: 50%;
    opacity: 0;
    animation: components-rejoining-animation-b-0za8zmfkjj 1.8s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.components-rejoining-animation div:nth-child(2)[b-0za8zmfkjj] {
    animation-delay: -0.9s;
}

@keyframes components-rejoining-animation-b-0za8zmfkjj {
    0% {
        transform: scale(0.42);
        opacity: 0;
    }

    14% {
        opacity: 0.65;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* Somebody who has asked not to be animated still gets the modal, the message and the buttons —
   only the pulse stops. */
@media (prefers-reduced-motion: reduce) {
    #components-reconnect-modal[b-0za8zmfkjj],
    #components-reconnect-modal[open][b-0za8zmfkjj],
    #components-reconnect-modal[b-0za8zmfkjj]::backdrop,
    .components-rejoining-animation div[b-0za8zmfkjj] {
        animation-duration: 1ms;
        animation-iteration-count: 1;
    }

    .components-rejoining-animation div[b-0za8zmfkjj] {
        opacity: 0.4;
        transform: scale(1);
    }
}
