/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-7n2m2iwqs9],
.components-reconnect-repeated-attempt-visible[b-7n2m2iwqs9],
.components-reconnect-failed-visible[b-7n2m2iwqs9],
.components-reconnect-outdated-visible[b-7n2m2iwqs9],
.components-pause-visible[b-7n2m2iwqs9],
.components-resume-failed-visible[b-7n2m2iwqs9],
.components-rejoining-animation[b-7n2m2iwqs9] {
    display: none;
}

#components-reconnect-modal.components-reconnect-outdated .components-reconnect-outdated-visible[b-7n2m2iwqs9] {
    display: block;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-7n2m2iwqs9],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-7n2m2iwqs9],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-7n2m2iwqs9],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-7n2m2iwqs9],
#components-reconnect-modal.components-reconnect-retrying[b-7n2m2iwqs9],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-7n2m2iwqs9],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-7n2m2iwqs9],
#components-reconnect-modal.components-reconnect-failed[b-7n2m2iwqs9],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-7n2m2iwqs9] {
    display: block;
}


#components-reconnect-modal[b-7n2m2iwqs9] {
    background-color: var(--snow-surface);
    color: var(--snow-text);
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgb(var(--snow-shadow-rgb) / 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-7n2m2iwqs9 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-7n2m2iwqs9 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-7n2m2iwqs9 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-7n2m2iwqs9]::backdrop {
    background-color: rgb(var(--snow-black-rgb) / 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-7n2m2iwqs9 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-7n2m2iwqs9 {
    0% {
        transform: translateY(30px) scale(0.95);
    }

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

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

    100% {
        opacity: 1;
    }
}

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

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-7n2m2iwqs9] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-7n2m2iwqs9] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-7n2m2iwqs9] {
    border: 0;
    background-color: var(--snow-primary);
    /* Surface colour as the label inverts per theme: dark text on the light-blue
       dark-mode fill, light text on the deeper light-mode fill. */
    color: var(--snow-surface);
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-7n2m2iwqs9] {
        background-color: rgb(var(--snow-primary-rgb) / 0.85);
    }

    #components-reconnect-modal button:active[b-7n2m2iwqs9] {
        background-color: var(--snow-primary);
    }

.components-rejoining-animation[b-7n2m2iwqs9] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-7n2m2iwqs9] {
        position: absolute;
        border: 3px solid var(--snow-primary);
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-7n2m2iwqs9 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-7n2m2iwqs9] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-7n2m2iwqs9 {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
/* /Components/SnowRichTextEditor.razor.rz.scp.css */
.snow-rte[b-7g3r06riil] {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.snow-rte-label[b-7g3r06riil] {
    color: var(--snow-text-soft);
}

/* Toolbar + surface read as one control: a single visible border around both,
   with only a hairline divider between them. */
.snow-rte-box[b-7g3r06riil] {
    border: 1px solid rgb(var(--snow-primary-rgb) / 0.25);
    border-radius: 10px;
    overflow: hidden;
    background: rgb(var(--snow-bg-rgb) / 0.55);
    transition: border-color 120ms ease;
}

.snow-rte-box:focus-within[b-7g3r06riil] {
    border-color: rgb(var(--snow-primary-rgb) / 0.6);
}

.snow-rte-toolbar[b-7g3r06riil] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
    padding: 4px 6px;
    border-bottom: 1px solid rgb(var(--snow-primary-rgb) / 0.18);
    background: rgb(var(--snow-surface-rgb) / 0.65);
}

.snow-rte-toolbar-spacer[b-7g3r06riil] {
    flex: 1 1 auto;
}

/* .snow-rte-ph-group (the category band) is styled globally in app.css: MudMenu
   teleports its popover out of this component's subtree, so scoped CSS can't
   reach it. See the .snow-rte-ph-popover rules there. */

.snow-rte-ph-menuitem[b-7g3r06riil] {
    padding-left: 16px;
    padding-right: 16px;
}

.snow-rte-ph-item[b-7g3r06riil] {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    padding: 2px 0;
}

.snow-rte-ph-name[b-7g3r06riil] {
    color: var(--snow-text);
}

.snow-rte-ph-desc[b-7g3r06riil] {
    font-size: 0.72rem;
    color: var(--snow-text-soft);
}

.snow-rte-surface[b-7g3r06riil] {
    position: relative;
    min-height: 120px;
    max-height: 360px;
    overflow-y: auto;
    padding: 10px 12px;
    background: rgb(var(--snow-bg-rgb) / 0.35);
    color: var(--snow-text);
    line-height: 1.4;
    outline: none;
    white-space: pre-wrap;
    word-break: break-word;
}

/* The surface is never truly :empty (it always holds <div><br></div>), so the
   JS toggles .snow-rte-empty and we overlay the placeholder via ::before. It is
   plain text from an attribute, so it never goes through the markdown path. The
   absolute position keeps it from adding a stray blank line above the caret. */
.snow-rte-surface.snow-rte-empty[b-7g3r06riil]::before {
    content: attr(data-placeholder);
    position: absolute;
    top: 10px;
    left: 12px;
    right: 12px;
    color: var(--snow-text-soft);
    pointer-events: none;
    white-space: pre-wrap;
}

/* Compact: short label fields (e.g. rarity names) that don't need a tall body. */
.snow-rte-surface.snow-rte-compact[b-7g3r06riil] {
    min-height: 0;
}

.snow-rte-footer[b-7g3r06riil] {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.snow-rte-hint[b-7g3r06riil] {
    color: var(--snow-text-faint);
}

.snow-rte-count[b-7g3r06riil] {
    color: var(--snow-text-soft);
    white-space: nowrap;
}

.snow-rte-over[b-7g3r06riil] {
    color: var(--snow-warning);
    font-weight: 600;
}

.snow-rte-preview[b-7g3r06riil] {
    border: 1px solid rgb(var(--snow-primary-rgb) / 0.25);
    border-radius: 10px;
    overflow: hidden;
    background: rgb(var(--snow-bg-rgb) / 0.55);
}

.snow-rte-preview-head[b-7g3r06riil] {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-bottom: 1px solid rgb(var(--snow-primary-rgb) / 0.18);
    background: rgb(var(--snow-surface-rgb) / 0.65);
    color: var(--snow-text-soft);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.snow-rte-preview-body[b-7g3r06riil] {
    padding: 10px 12px;
    color: var(--snow-text);
    line-height: 1.4;
    word-break: break-word;
}

.snow-rte-test[b-7g3r06riil] {
    align-self: flex-start;
}

/* Inner content is rendered either by JS (editable surface) or via MarkupString
   (preview), so it has no CSS-isolation scope attribute: style it with ::deep. */

.snow-rte[b-7g3r06riil]  .snow-md-chip {
    display: inline-block;
    padding: 1px 7px;
    margin: 0 1px;
    border-radius: 6px;
    background: rgb(var(--snow-primary-rgb) / 0.2);
    color: var(--snow-primary);
    border: 1px solid rgb(var(--snow-primary-rgb) / 0.35);
    font-size: 0.82em;
    white-space: nowrap;
    user-select: none;
}

.snow-rte[b-7g3r06riil]  .snow-md-spoiler {
    background: rgb(var(--snow-text-rgb) / 0.25);
    border-radius: 4px;
    padding: 0 2px;
}

.snow-rte[b-7g3r06riil]  code {
    background: rgb(var(--snow-bg-rgb) / 0.8);
    border-radius: 4px;
    padding: 1px 4px;
    font-size: 0.88em;
}

.snow-rte[b-7g3r06riil]  pre {
    background: rgb(var(--snow-bg-rgb) / 0.8);
    border-radius: 6px;
    padding: 8px 10px;
    overflow-x: auto;
}

.snow-rte[b-7g3r06riil]  pre code {
    background: none;
    padding: 0;
}

.snow-rte[b-7g3r06riil]  blockquote {
    margin: 2px 0;
    padding-left: 10px;
    border-left: 3px solid rgb(var(--snow-primary-rgb) / 0.4);
    color: var(--snow-text-muted);
}

.snow-rte[b-7g3r06riil]  h1,
.snow-rte[b-7g3r06riil]  h2,
.snow-rte[b-7g3r06riil]  h3 {
    margin: 4px 0;
    line-height: 1.2;
}

.snow-rte[b-7g3r06riil]  h1 { font-size: 1.4rem; }
.snow-rte[b-7g3r06riil]  h2 { font-size: 1.2rem; }
.snow-rte[b-7g3r06riil]  h3 { font-size: 1.05rem; }

.snow-rte[b-7g3r06riil]  ul,
.snow-rte[b-7g3r06riil]  ol {
    margin: 2px 0;
    padding-left: 22px;
}

.snow-rte[b-7g3r06riil]  a {
    color: var(--snow-primary);
}

.snow-rte-preview-body[b-7g3r06riil]  p {
    margin: 0 0 4px;
}
