/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* Responsive themed app shell. Neo-brutalist constants (borders, shadows) stay
   pixel-fixed at every size; only spacing steps down. min-height uses svh to dodge
   the mobile URL-bar 100vh bug. */
.app-shell[b-0udvrg0qoo] {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    background: var(--color-bg);
    color: var(--color-ink);
}

.app-main[b-0udvrg0qoo] {
    flex: 1 1 auto;
    width: 100%;
    max-width: var(--bp-desktop-xl);
    margin-inline: auto;
    padding: var(--space-xl) var(--space-lg);
}

/* Condensed desktop / tablet — tighten gutters. */
@media (max-width: 1023px) {
    .app-main[b-0udvrg0qoo] { padding: var(--space-lg) var(--space-md); }
}

/* Mobile — full-bleed, minimal gutter (360px floor). */
@media (max-width: 767px) {
    .app-main[b-0udvrg0qoo] { padding: var(--space-md) var(--space-sm); }
}

/* --- Error UI — restyled to the neo-brutalist language ------------------- */
#blazor-error-ui[b-0udvrg0qoo] {
    display: none;
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: var(--z-flash);
    padding: var(--space-md) var(--space-lg);
    background: var(--color-accent-yellow);
    color: var(--color-ink);
    border-top: var(--border-width) solid var(--color-ink);
    box-shadow: 0 calc(-1 * var(--shadow-offset)) 0 0 var(--color-shadow);
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: var(--tracking-display-tight);
}

#blazor-error-ui .reload[b-0udvrg0qoo] {
    color: var(--color-accent-blue-text);
    margin-inline: var(--space-sm);
}

#blazor-error-ui .dismiss[b-0udvrg0qoo] {
    cursor: pointer;
    float: right;
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-rhnm12x92b],
.components-reconnect-repeated-attempt-visible[b-rhnm12x92b],
.components-reconnect-failed-visible[b-rhnm12x92b],
.components-pause-visible[b-rhnm12x92b],
.components-resume-failed-visible[b-rhnm12x92b],
.components-rejoining-animation[b-rhnm12x92b] {
    display: none;
}

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


#components-reconnect-modal[b-rhnm12x92b] {
    background-color: var(--color-panel);
    color: var(--color-ink);
    font-family: var(--font-body);
    width: 20rem;
    margin: 20vh auto;
    padding: var(--space-lg);
    border: var(--border-width) solid var(--color-ink);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hard);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-rhnm12x92b 0.5s both;
    &[open]

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

}

#components-reconnect-modal[b-rhnm12x92b]::backdrop {
    background-color: var(--color-scrim);
    animation: components-reconnect-modal-fadeInOpacity-b-rhnm12x92b 0.5s ease-in-out;
    opacity: 1;
}

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

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

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

    100% {
        opacity: 1;
    }
}

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

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-rhnm12x92b] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

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

#components-reconnect-modal button[b-rhnm12x92b] {
    background-color: var(--color-accent-blue);
    color: var(--color-on-dark);
    font-family: var(--font-display);
    text-transform: uppercase;
    padding: var(--space-sm) var(--space-lg);
    border: var(--border-width-nested) solid var(--color-ink);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hard-sm);
    cursor: pointer;
}

    #components-reconnect-modal button:hover[b-rhnm12x92b] {
        transform: translate(3px, 3px);
        box-shadow: none;
    }

    #components-reconnect-modal button:active[b-rhnm12x92b] {
        transform: translate(3px, 3px);
        box-shadow: none;
    }

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

    .components-rejoining-animation div[b-rhnm12x92b] {
        position: absolute;
        border: var(--border-width-nested) solid var(--color-accent-blue);
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-rhnm12x92b 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

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

@keyframes components-rejoining-animation-b-rhnm12x92b {
    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/Pages/Gallery.razor.rz.scp.css */
.gal[b-aluk177e2d] {
    display: grid;
    gap: var(--space-xl);
}

.gal__bar[b-aluk177e2d] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: var(--z-helper);
    padding: var(--space-sm) 0;
    background: var(--color-bg);
    border-bottom: var(--border-width) solid var(--color-ink);
}

.gal__swatches[b-aluk177e2d] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.gal__swatch[b-aluk177e2d] {
    display: grid;
    justify-items: center;
    gap: var(--space-xs);
    font-family: var(--font-mono);
    font-size: var(--text-micro);
    letter-spacing: var(--tracking-mono-wide);
}

.gal__chip[b-aluk177e2d] {
    width: 56px;
    height: 56px;
    border: var(--border-width) solid var(--color-ink);
    box-shadow: var(--shadow-hard-sm);
}
