/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* Trimmed to the single rule that still matches MainLayout's markup (the Blazor-template
   .page/.sidebar/.top-row selectors and its light-yellow #blazor-error-ui — which fought
   app.css's dark error banner on load order — are gone; app.css owns the error UI). */

@media (min-width: 641px) {
    article[b-68on4r6wwx] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-9wv6zaweye],
.components-reconnect-repeated-attempt-visible[b-9wv6zaweye],
.components-reconnect-failed-visible[b-9wv6zaweye],
.components-pause-visible[b-9wv6zaweye],
.components-resume-failed-visible[b-9wv6zaweye],
.components-rejoining-animation[b-9wv6zaweye] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-9wv6zaweye],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-9wv6zaweye],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-9wv6zaweye],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-9wv6zaweye],
#components-reconnect-modal.components-reconnect-retrying[b-9wv6zaweye],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-9wv6zaweye],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-9wv6zaweye],
#components-reconnect-modal.components-reconnect-failed[b-9wv6zaweye],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-9wv6zaweye] {
    display: block;
}


#components-reconnect-modal[b-9wv6zaweye] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-9wv6zaweye 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-9wv6zaweye 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-9wv6zaweye 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-9wv6zaweye]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-9wv6zaweye 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-9wv6zaweye {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-9wv6zaweye {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-9wv6zaweye {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-9wv6zaweye] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-9wv6zaweye] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-9wv6zaweye] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-9wv6zaweye] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-9wv6zaweye] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-9wv6zaweye] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-9wv6zaweye] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-9wv6zaweye 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-9wv6zaweye] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-9wv6zaweye {
    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/Admin.razor.rz.scp.css */
/* Studio stat-conflict table + source-of-truth switch states (admin card only). Uses the site's
   genetics-console tokens from app.css so it tracks the dark theme. */

/* ---- Switch-state rows: precedence + gap-fill, always visible ---- */
.switch-states[b-n3jtzmg5j6] {
    display: grid;
    gap: .5rem;
    margin: .8rem 0 .2rem;
}

.switch-row[b-n3jtzmg5j6] {
    display: flex;
    gap: .65rem;
    align-items: baseline;
    padding: .55rem .7rem;
    border: 1px solid var(--line-soft);
    border-left: 3px solid var(--ink-faint);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .015);
}

.switch-row.on[b-n3jtzmg5j6] {
    border-left-color: var(--amber);
    background: rgba(251, 191, 36, .05);
}

.switch-pill[b-n3jtzmg5j6] {
    flex: 0 0 auto;
    font-family: var(--font-mono);
    font-size: .68rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .18rem .5rem;
    border-radius: 6px;
    border: 1px solid var(--line);
    color: var(--ink-dim);
    white-space: nowrap;
}

.switch-row.on .switch-pill[b-n3jtzmg5j6] {
    color: var(--amber);
    border-color: rgba(251, 191, 36, .4);
    background: rgba(251, 191, 36, .08);
}

.switch-explain[b-n3jtzmg5j6] {
    font-size: .82rem;
    color: var(--ink-dim);
    line-height: 1.4;
}

.switch-explain code[b-n3jtzmg5j6] {
    font-family: var(--font-mono);
    font-size: .76rem;
    color: var(--teal);
    background: rgba(45, 212, 191, .07);
    padding: .05rem .3rem;
    border-radius: 4px;
}

/* ---- Conflict section ---- */
.conflicts-h[b-n3jtzmg5j6] {
    margin: 1.2rem 0 .3rem;
    font-family: var(--font-display);
    font-size: 1.02rem;
    color: var(--ink);
}

.conflicts-note[b-n3jtzmg5j6] {
    margin: 0 0 .7rem;
    max-width: 640px;
    line-height: 1.45;
}

.conflicts-note b[b-n3jtzmg5j6] { color: var(--ink-dim); }

.ph-legend[b-n3jtzmg5j6] {
    color: var(--amber);
    font-weight: 600;
}

.conflicts-empty[b-n3jtzmg5j6] {
    margin-top: .7rem;
    max-width: 560px;
    line-height: 1.45;
}

.conflicts[b-n3jtzmg5j6] {
    display: grid;
    gap: .45rem;
    max-width: 640px;
}

.conflict-group[b-n3jtzmg5j6] {
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .012);
    overflow: hidden;
}

.conflict-group > summary[b-n3jtzmg5j6] {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: baseline;
    gap: .6rem;
    padding: .5rem .7rem;
    user-select: none;
}

.conflict-group > summary[b-n3jtzmg5j6]::-webkit-details-marker { display: none; }

.conflict-group > summary[b-n3jtzmg5j6]::before {
    content: "▸";
    color: var(--ink-faint);
    font-size: .75rem;
    transition: transform .12s ease;
}

.conflict-group[open] > summary[b-n3jtzmg5j6]::before { transform: rotate(90deg); }

.conflict-group > summary:hover[b-n3jtzmg5j6] { background: rgba(45, 212, 191, .04); }

.cg-name[b-n3jtzmg5j6] {
    font-weight: 600;
    color: var(--ink);
}

.cg-form[b-n3jtzmg5j6] {
    font-family: var(--font-mono);
    font-size: .64rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--indigo);
    border: 1px solid rgba(129, 140, 248, .3);
    background: rgba(129, 140, 248, .08);
    border-radius: 5px;
    padding: .08rem .35rem;
}

.cg-count[b-n3jtzmg5j6] {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: .74rem;
    color: var(--ink-dim);
}

.cg-ph[b-n3jtzmg5j6] {
    font-family: var(--font-mono);
    font-size: .68rem;
    color: var(--amber);
    border: 1px solid rgba(251, 191, 36, .35);
    background: rgba(251, 191, 36, .08);
    border-radius: 5px;
    padding: .08rem .4rem;
}

.cg-table-wrap[b-n3jtzmg5j6] {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-top: 1px solid var(--line-soft);
}

.conflict-table[b-n3jtzmg5j6] {
    border-collapse: collapse;
    width: 100%;
    min-width: 460px;
}

.conflict-table th[b-n3jtzmg5j6] {
    text-align: left;
    padding: .4rem .7rem;
    font-size: .64rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-faint);
    border-bottom: 1px solid var(--line-soft);
    font-weight: 600;
}

.conflict-table td[b-n3jtzmg5j6] {
    padding: .38rem .7rem;
    border-bottom: 1px solid var(--line-soft);
    font-size: .86rem;
    color: var(--ink-dim);
}

.conflict-table tr:last-child td[b-n3jtzmg5j6] { border-bottom: none; }

.conflict-table th.num[b-n3jtzmg5j6],
.conflict-table td.num[b-n3jtzmg5j6] {
    text-align: right;
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
}

.conflict-table td.coef[b-n3jtzmg5j6] {
    font-family: var(--font-mono);
    font-size: .78rem;
    color: var(--ink-faint);
}

.conflict-table td.delta[b-n3jtzmg5j6] { color: var(--ink); }

/* Placeholder rows: values reads 0 — extraction is the clear winner. */
.conflict-table tr.placeholder td[b-n3jtzmg5j6] {
    background: rgba(251, 191, 36, .06);
    color: var(--ink);
}

.conflict-table tr.placeholder td:first-child[b-n3jtzmg5j6] {
    box-shadow: inset 3px 0 0 var(--amber);
}
