/* /Components/Common/EditorCard.razor.rz.scp.css */
.editor-card[b-stp61zqod0] {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #fff;
    margin-bottom: 0.75rem;
}

.editor-card-header[b-stp61zqod0] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.5rem 0.35rem 0.85rem;
    background: #f6f7f9;
    border-bottom: 1px solid #e9ecef;
    border-radius: 8px 8px 0 0;
    min-height: 40px;
}

.editor-card-title[b-stp61zqod0] {
    font-weight: 600;
}

.editor-card-subtitle[b-stp61zqod0] {
    color: #6c757d;
    font-size: 0.85rem;
}

.editor-card-spacer[b-stp61zqod0] {
    flex: 1 1 0;
}

.editor-card-body[b-stp61zqod0] {
    padding: 0.85rem;
}
/* /Components/Encounters/EncounterBarResourceRow.razor.rz.scp.css */
.resource-value-display[b-zo8kgx1god] {
    font-size: 0.875rem;
    line-height: 1.25rem;
    min-height: 1.25rem;
}

.resource-inline-text[b-zo8kgx1god] {
    font-size: inherit;
    line-height: inherit;
}

.resource-inline-button[b-zo8kgx1god] {
    padding: 0;
    margin: 0;
    border: none;
    background: none;
    color: inherit;
    font: inherit;
    line-height: inherit;
    min-height: 0;
    box-shadow: none;
    outline: none;
    text-decoration: none;
    cursor: pointer;
}

    .resource-inline-button:hover[b-zo8kgx1god] {
        text-decoration: underline;
    }

    .resource-inline-button:focus[b-zo8kgx1god],
    .resource-inline-button:focus-visible[b-zo8kgx1god] {
        outline: none;
        box-shadow: none;
    }

.resource-inline-editor[b-zo8kgx1god] {
    padding: 0 0.2rem;
    border: 1px solid #ced4da;
    border-radius: 0.2rem;
    font: inherit;
    line-height: inherit;
    height: 1.4rem;
    min-height: 1.4rem;
}
/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-y0x10pkydk] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-y0x10pkydk] {
    flex: 1;
}

.sidebar[b-y0x10pkydk] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-y0x10pkydk] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-y0x10pkydk]  a, .top-row[b-y0x10pkydk]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-y0x10pkydk]  a:hover, .top-row[b-y0x10pkydk]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-y0x10pkydk]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-y0x10pkydk] {
        justify-content: space-between;
    }

    article[b-y0x10pkydk] {
        padding: 0.75rem;
    }

    .top-row[b-y0x10pkydk]  a, .top-row[b-y0x10pkydk]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-y0x10pkydk] {
        flex-direction: row;
    }

    .sidebar[b-y0x10pkydk] {
        flex: 0 0 auto;
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
        transition: width 0.15s ease;
    }

    .page.nav-collapsed .sidebar[b-y0x10pkydk] {
        width: 64px;
    }

    main[b-y0x10pkydk] {
        min-width: 0;
    }

    .top-row[b-y0x10pkydk] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-y0x10pkydk]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-y0x10pkydk], article[b-y0x10pkydk] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui[b-y0x10pkydk] {
    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-y0x10pkydk] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* .nav-collapsed (wide screens: icon rail) and .nav-open (phones: menu shown) sit on MainLayout's
   .page element, set by uiNav.toggle in js/ui.js. */

.top-row[b-mp9gbft5ju] {
    min-height: 3.5rem;
    padding: 0 0.75rem 0 1rem;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
}

.navbar-brand[b-mp9gbft5ju] {
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
}

.nav-toggle[b-mp9gbft5ju] {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.08);
}

    .nav-toggle:hover[b-mp9gbft5ju],
    .nav-toggle:focus-visible[b-mp9gbft5ju] {
        color: #fff;
        background: rgba(255, 255, 255, 0.18);
    }

.nav-scrollable[b-mp9gbft5ju] {
    display: none;
    flex-direction: column;
    padding: 0.75rem 0.75rem 1rem;
}

.nav-open .nav-scrollable[b-mp9gbft5ju] {
    display: flex;
}

.nav-item[b-mp9gbft5ju] {
    font-size: 0.9rem;
    padding-bottom: 0.25rem;
}

    .nav-item[b-mp9gbft5ju]  .nav-link,
    .nav-button[b-mp9gbft5ju] {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        width: 100%;
        height: 2.75rem;
        padding: 0 0.75rem;
        color: #d7d7d7;
        background: none;
        border: none;
        border-radius: 6px;
        white-space: nowrap;
        overflow: hidden;
        font-size: 0.9rem;
        text-align: left;
    }

    .nav-item[b-mp9gbft5ju]  a.active {
        background-color: rgba(255, 255, 255, 0.3);
        color: white;
    }

    .nav-item[b-mp9gbft5ju]  .nav-link:hover,
    .nav-button:hover[b-mp9gbft5ju] {
        background-color: rgba(255, 255, 255, 0.1);
        color: white;
    }

    .nav-item[b-mp9gbft5ju]  .svg-icon,
    .nav-button[b-mp9gbft5ju]  .svg-icon {
        flex: 0 0 auto;
    }

.nav-section[b-mp9gbft5ju] {
    margin: 0.75rem 0 0.25rem;
    padding: 0 0.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.nav-footer[b-mp9gbft5ju] {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-user[b-mp9gbft5ju] {
    padding: 0 0.75rem 0.5rem;
    color: white;
    line-height: 1.3;
    overflow: hidden;
}

.nav-user-name[b-mp9gbft5ju] {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-user-role[b-mp9gbft5ju] {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
}

@media (min-width: 641px) {
    .nav-scrollable[b-mp9gbft5ju] {
        /* Never hidden on wide screens; scrolls when the menu is taller than the window. */
        display: flex;
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
        overflow-x: hidden;
    }

    /* Collapsed: icons only, centred under the toggle. */
    .nav-collapsed .nav-label[b-mp9gbft5ju] {
        display: none;
    }

    .nav-collapsed .top-row[b-mp9gbft5ju] {
        justify-content: center;
        padding: 0;
    }

    .nav-collapsed .nav-scrollable[b-mp9gbft5ju] {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .nav-collapsed .nav-item[b-mp9gbft5ju]  .nav-link,
    .nav-collapsed .nav-button[b-mp9gbft5ju] {
        justify-content: center;
        padding: 0;
    }

    .nav-collapsed .nav-footer[b-mp9gbft5ju] {
        padding-top: 0.5rem;
    }
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-9u7ld2wtee],
.components-reconnect-repeated-attempt-visible[b-9u7ld2wtee],
.components-reconnect-failed-visible[b-9u7ld2wtee],
.components-pause-visible[b-9u7ld2wtee],
.components-resume-failed-visible[b-9u7ld2wtee],
.components-rejoining-animation[b-9u7ld2wtee] {
    display: none;
}

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


#components-reconnect-modal[b-9u7ld2wtee] {
    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-9u7ld2wtee 0.5s both;
    &[open]

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

}

#components-reconnect-modal[b-9u7ld2wtee]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-9u7ld2wtee 0.5s ease-in-out;
    opacity: 1;
}

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

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

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

    100% {
        opacity: 1;
    }
}

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

    100% {
        opacity: 0;
    }
}

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

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

#components-reconnect-modal button[b-9u7ld2wtee] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-9u7ld2wtee] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-9u7ld2wtee] {
        background-color: #6b9ed2;
    }

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

    .components-rejoining-animation div[b-9u7ld2wtee] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-9u7ld2wtee 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

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

@keyframes components-rejoining-animation-b-9u7ld2wtee {
    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/AdminPortraits.razor.rz.scp.css */
.portrait-dropzone[b-26fe7gzr3r] {
    position: relative;
    border: 2px dashed #adb5bd;
    border-radius: 8px;
    background: #f8f9fa;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s, background-color 0.15s;
}

    .portrait-dropzone:hover[b-26fe7gzr3r],
    .portrait-dropzone:focus-within[b-26fe7gzr3r] {
        border-color: #0d6efd;
        background: #eef4ff;
    }

    .portrait-dropzone.is-busy[b-26fe7gzr3r] {
        opacity: 0.7;
    }

    /* The real <input type=file>, stretched invisibly over the zone. */
    .portrait-dropzone[b-26fe7gzr3r]  input[type=file] {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        cursor: pointer;
    }

.portrait-dropzone-text[b-26fe7gzr3r] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: #495057;
    pointer-events: none;
    text-align: center;
}

.portrait-grid[b-26fe7gzr3r] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
}

.portrait-card[b-26fe7gzr3r] {
    overflow: hidden;
}

.portrait-card-image[b-26fe7gzr3r] {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: #e9ecef;
}

.portrait-card-name[b-26fe7gzr3r] {
    font-size: 0.85rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
/* /Components/Pages/EncounterViewer.razor.rz.scp.css */
/* RWBY "Scroll" overlay styling. Two connected holographic "screens" — the player strip (a long
   phone-style scroll with a white handle on each end) and the right column (info + feed + tech as
   one continuous screen with a white handle down its right edge). Each screen is a teal display with
   a honeycomb pattern that spans the whole surface; internal content is separated by thin dividers,
   not gaps. Read-only; sized to fill the viewport for video capture. */

/* NOTE: these custom properties are declared on .viewer-root (a scoped component element), NOT on
   :root — Blazor CSS isolation rewrites ":root" to ":root[b-hash]", which never matches, so vars
   declared there silently fail. Declared here they inherit to every descendant correctly. */
.viewer-root[b-d239hdnptx] {
    --scroll-cyan: #39c6e6;
    --scroll-cyan-soft: rgba(57, 198, 230, 0.55);
    --scroll-cyan-dim: rgba(57, 198, 230, 0.22);
    --scroll-gold: #e8a43a;
    --scroll-ink: #d6f3fb;
    --scroll-ink-dim: rgba(214, 243, 251, 0.6);
    --scroll-bg: #04070b;

    /* Shared teal display surface + divider, used by both screens so they read as one material.
       Brighter cyan-teal to match the Scroll references. */
    --screen-teal-top: #3fd3e0;
    --screen-teal-mid: #27aec2;
    --screen-teal-bot: #1b8aa0;
    --screen-divider: rgba(255, 255, 255, 0.45);
    --on-teal: #ffffff;
    --on-teal-dim: rgba(255, 255, 255, 0.85);
    --teal-shadow: 0 1px 2px rgba(0, 35, 45, 0.55);

    position: fixed;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 25rem;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 1rem;
    padding: 1rem;
    background: radial-gradient(ellipse at 40% 30%, #0a1420 0%, var(--scroll-bg) 70%);
    color: var(--scroll-ink);
    font-family: "Roboto", "Segoe UI", sans-serif;
    overflow: hidden;
}

.viewer-status[b-d239hdnptx] {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--scroll-bg);
    color: var(--scroll-ink-dim);
    font-family: "Roboto", "Segoe UI", sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
}

.viewer-status-error[b-d239hdnptx] {
    color: #ff8080;
}

/* ── Scroll screen (shared teal display surface) ──────────────────────── */
.scroll-screen[b-d239hdnptx] {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: linear-gradient(150deg, var(--screen-teal-top) 0%, var(--screen-teal-mid) 50%, var(--screen-teal-bot) 100%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow:
        0 0 18px rgba(57, 198, 230, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 0 50px rgba(8, 40, 55, 0.35);
}

/* Honeycomb pattern spanning the entire screen (seamless tile). */
.scroll-hex[b-d239hdnptx] {
    position: absolute;
    inset: 0;
    background-image: url("/images/hex-pattern.svg");
    background-size: 30px auto;
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

.scroll-screen-strip[b-d239hdnptx] {
    border-radius: 4px;
}

.scroll-screen-side[b-d239hdnptx] {
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    /* Slightly shorter than the column so the white handle overhangs it top and bottom. */
    align-self: center;
    height: calc(100% - 1.4rem);
}

/* ── Scroll handles (physical white Scroll casing) ────────────────────── */
/* Brushed-white casing with a faint grey outline and soft inner shading, like the Scroll body. */
.scroll-handle[b-d239hdnptx] {
    position: relative;
    flex: 0 0 auto;
    background: linear-gradient(100deg, #ffffff 0%, #f4f7f9 55%, #dde4e9 100%);
    box-shadow: inset 0 0 0 1px rgba(150, 168, 180, 0.5);
    z-index: 3;
}

/* Player-strip end caps: rounded white caps, TALLER than the teal screen so they overhang it
   top and bottom (as in playerScrollRef). Big outer-corner rounding, squarer inner edge. */
.scroll-handle-end[b-d239hdnptx] {
    align-self: center;
    width: 2.5rem;
    height: calc(100% + 1.4rem);
    filter: drop-shadow(0 2px 4px rgba(0, 20, 30, 0.25));
}

.scroll-handle-left[b-d239hdnptx] {
    border-radius: 20px 4px 4px 20px;
    /* Overlap the teal screen's left edge slightly so cap and screen read as one unit. */
    margin-right: -0.5rem;
}

.scroll-handle-right[b-d239hdnptx] {
    border-radius: 4px 20px 20px 4px;
    margin-left: -0.5rem;
}

/* Amber kite diamond on the left cap — tall, pointed top/bottom, with a centre crease (folded-paper
   look), straddling the cap↔screen seam. */
.scroll-kite[b-d239hdnptx] {
    position: absolute;
    top: 50%;
    right: -0.7rem;
    transform: translateY(-50%);
    width: 1.5rem;
    height: 3.2rem;
    z-index: 4;
    /* Two halves meeting at the vertical crease: lighter left, deeper right. */
    background: linear-gradient(90deg, #f9bd57 0%, #f3ac37 49%, #d98f22 51%, #c67d16 100%);
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
    filter: drop-shadow(0 1px 3px rgba(80, 45, 0, 0.45));
}

/* Side-column right-edge handle: thick white casing with a dark navy outline, overhanging the teal
   screen top and bottom (rounded like the player caps). A cyan light panel sits up top; a big gold
   diamond about a quarter of the way down, with straight connector lines above and below it. */
.scroll-handle-edge[b-d239hdnptx] {
    align-self: stretch;
    width: 4rem;
    border-radius: 4px 20px 20px 4px;
    background: linear-gradient(100deg, #fbfdfe 0%, #eef3f6 55%, #d4dce2 100%);
    border: 2px solid #16222e;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), 0 2px 6px rgba(0, 20, 30, 0.3);
    /* Overlap the teal screen's right edge slightly so handle and screen read as one unit. */
    margin-left: -0.5rem;
}

/* Cyan light panel: starts just below the top padding and runs ~half the handle's height. */
.scroll-handle-edge .scroll-glow[b-d239hdnptx] {
    position: absolute;
    top: 4%;
    height: 46%;
    left: 50%;
    transform: translateX(-50%);
    width: 1.6rem;
    border-radius: 7px;
    background: linear-gradient(180deg, #ffffff 0%, #b6f3ff 16%, #5fd8f4 52%, var(--scroll-cyan) 100%);
    border: 1.5px solid #16222e;
    box-shadow:
        0 0 14px var(--scroll-cyan),
        0 0 28px var(--scroll-cyan-soft),
        0 0 44px rgba(57, 198, 230, 0.45),
        inset 0 0 10px rgba(255, 255, 255, 0.95);
}

/* Big pointed gold diamond ~three quarters of the way down (a quarter up from the bottom). The navy
   outline is the parent's own background showing through a slightly-inset gold ::before. */
.scroll-handle-edge .scroll-diamond[b-d239hdnptx] {
    position: absolute;
    top: 75%;
    left: 50%;
    width: 3.0rem;
    height: 4.25rem;
    transform: translate(-50%, -50%);
    background: #16222e;
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
    z-index: 1;
}

.scroll-handle-edge .scroll-diamond[b-d239hdnptx]::before {
    content: "";
    position: absolute;
    inset: 3px;
    background: linear-gradient(100deg, #ffde73 0%, #f8c948 50%, #e4ad2c 100%);
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

/* Straight vertical connector lines, centred. Top: base of the cyan bar → diamond's top tip.
   Bottom: diamond's bottom tip → base of the handle. */
.scroll-handle-edge .scroll-line[b-d239hdnptx] {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    background: #16222e;
    opacity: 0.5;
}

/* Cyan bar ends at 50%; diamond top tip is at 75% − half its height (~2.7%) ≈ 63%. */
.scroll-handle-edge .scroll-line-top[b-d239hdnptx] {
    top: 50%;
    height: 25%;
}

/* Diamond bottom tip (~87%) to near the base. */
.scroll-handle-edge .scroll-line-bottom[b-d239hdnptx] {
    top: 75%;
    bottom: 0%;
}

/* ── Video area ───────────────────────────────────────────────────────── */
.viewer-video[b-d239hdnptx] {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    min-height: 0;
    /* Size container so the inner box can be sized to the largest true 16:9 rectangle that fits the
       cell (via cqw/cqh below) rather than stretching to fill it. */
    container-type: size;
    display: flex;
    align-items: center;
    justify-content: center;
}

.viewer-video-inner[b-d239hdnptx] {
    position: relative;
    /* Largest width that is both ≤ cell width and ≤ (cell height × 16/9); aspect-ratio sets the
       height. Keeps a strict 16:9 at any window size, padding the leftover space with background. */
    width: min(100cqw, 100cqh * 16 / 9);
    aspect-ratio: 16 / 9;
    /* The outer box stays transparent; the black fill is inset (see ::before) so a 1:1 video overlay
       doesn't butt against a hard black edge — it has a transparent gutter to breathe. */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Inset black fill — gutter on every side keeps the fill itself 16:9. */
.viewer-video-inner[b-d239hdnptx]::before {
    content: "";
    position: absolute;
    inset: 2.5%;
    background: #05090d;
    border: 1px solid var(--scroll-cyan-dim);
    box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.8), 0 0 10px var(--scroll-cyan-dim);
}

.viewer-video-reticle[b-d239hdnptx] {
    position: absolute;
    width: 42%;
    aspect-ratio: 1;
    border: 1px solid rgba(57, 198, 230, 0.12);
    border-radius: 50%;
    box-shadow: inset 0 0 40px rgba(57, 198, 230, 0.06);
}

.viewer-video-label[b-d239hdnptx] {
    text-align: center;
    color: rgba(214, 243, 251, 0.35);
    letter-spacing: 0.2em;
    z-index: 1;
}

.viewer-video-title[b-d239hdnptx] {
    font-size: 2rem;
    font-weight: 300;
}

.viewer-video-sub[b-d239hdnptx] {
    font-size: 1rem;
    margin-top: 0.3rem;
}

/* ── Player stat strip (one connected scroll, handle on each end) ──────── */
.viewer-strip[b-d239hdnptx] {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    align-items: stretch;
    gap: 0;
}

/* 4 equal columns across the single screen, separated by dividers (no gaps). */
.strip-players[b-d239hdnptx] {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 100%;
}

.player-slot[b-d239hdnptx] {
    position: relative;
    overflow: hidden;
    padding: 0.7rem 0.85rem;
}

/* Divider between players — the teal/honeycomb background runs unbroken underneath. */
.player-slot + .player-slot[b-d239hdnptx] {
    border-left: 1px solid var(--screen-divider);
}

/* Faint white Shade emblem watermark per slot, lower-right (à la the Huntsman license backing art). */
.player-card-watermark[b-d239hdnptx] {
    position: absolute;
    right: -1.6rem;
    bottom: -2.4rem;
    width: 10.5rem;
    height: 10.5rem;
    background: url("/images/shade-emblem.svg") no-repeat center / contain;
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
}

.player-card-content[b-d239hdnptx] {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    min-height: 0;
    height: 100%;
}

.player-card-head[b-d239hdnptx] {
    display: flex;
    gap: 0.6rem;
}

.player-portrait[b-d239hdnptx] {
    width: 5rem;
    height: 5rem;
    flex: 0 0 auto;
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 2px;
    overflow: hidden;
    background: #0a151c;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.35);
}

.player-portrait img[b-d239hdnptx] {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-portrait-empty[b-d239hdnptx] {
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(45deg, #0d1b24, #0d1b24 6px, #122530 6px, #122530 12px);
}

.player-head-body[b-d239hdnptx] {
    flex: 1 1 auto;
    min-width: 0;
}

.player-name-row[b-d239hdnptx] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
}

.player-name[b-d239hdnptx] {
    color: var(--on-teal);
    font-weight: 800;
    font-size: 1.02rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 3px rgba(0, 30, 40, 0.55);
}

.player-class[b-d239hdnptx] {
    color: var(--on-teal-dim);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.3rem;
    text-shadow: var(--teal-shadow);
}

.player-bars[b-d239hdnptx] {
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
}

.player-bar-row[b-d239hdnptx] {
    display: grid;
    grid-template-columns: 3.6rem 1fr auto;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.68rem;
}

/* Empty reserved shield slot — matches a real row's height so AP/Flair/Resolve/Parry line up across
   cards whether or not a player has a shield. */
.player-bar-row-placeholder[b-d239hdnptx] {
    height: 0.95rem;
}

.player-bar-label[b-d239hdnptx] {
    color: var(--on-teal);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: var(--teal-shadow);
}

.player-bar-track[b-d239hdnptx] {
    height: 0.6rem;
    background: rgba(6, 26, 34, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 3px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 20, 28, 0.5);
}

.player-bar-fill[b-d239hdnptx] {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.25);
}

.player-bar-value[b-d239hdnptx] {
    color: var(--on-teal);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    text-shadow: var(--teal-shadow);
}

.player-counters[b-d239hdnptx] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    padding-top: 0.5rem;
    margin-top: auto;
}

.player-counter[b-d239hdnptx] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.12rem;
    padding: 0.3rem 0.2rem;
    border-radius: 4px;
    background: rgba(6, 28, 38, 0.46);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.player-counter-label[b-d239hdnptx] {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--on-teal-dim);
    text-transform: uppercase;
    text-shadow: var(--teal-shadow);
}

.player-counter-value[b-d239hdnptx] {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--on-teal);
    line-height: 1;
    text-shadow: 0 1px 3px rgba(0, 30, 40, 0.55);
}

/* ── Right column (info / feed / tech as one connected screen) ────────── */
.viewer-side[b-d239hdnptx] {
    grid-column: 2;
    grid-row: 1 / span 2;
    display: flex;
    align-items: stretch;
    gap: 0;
    min-height: 0;
}

.side-sections[b-d239hdnptx] {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    height: 100%;
    min-height: 0;
}

/* Sections are separated by a divider; the teal/honeycomb background is continuous beneath. */
.side-section[b-d239hdnptx] {
    position: relative;
    min-height: 0;
}

.side-section + .side-section[b-d239hdnptx] {
    border-top: 1px solid var(--screen-divider);
}

.panel-heading[b-d239hdnptx] {
    color: var(--on-teal);
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    padding: 0.55rem 0.9rem 0.4rem;
    text-shadow: var(--teal-shadow);
}

/* Encounter info */
.info-panel[b-d239hdnptx] {
    padding-bottom: 0.3rem;
}

/* Single status line: "ROUND N - X TURN | TEAM RESOLVE n", divider-separated. Kept on one line
   (no wrap); segments shrink/tighten rather than pushing team resolve to a second row. */
.info-line[b-d239hdnptx] {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.5rem;
    padding: 0.1rem 0.8rem 0.6rem;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--on-teal);
    text-transform: uppercase;
    text-shadow: var(--teal-shadow);
    white-space: nowrap;
}

.info-segment[b-d239hdnptx] {
    white-space: nowrap;
}

.info-divider[b-d239hdnptx] {
    width: 2px;
    align-self: stretch;
    min-height: 0.95rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 1px;
}

.info-val[b-d239hdnptx] {
    color: var(--on-teal);
    font-weight: 800;
}

.info-val-resolve[b-d239hdnptx] {
    color: #fff0cf;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 8px rgba(255, 210, 120, 0.5), var(--teal-shadow);
}

/* Encounter feed */
.feed-panel[b-d239hdnptx] {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.feed-scroll[b-d239hdnptx] {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 0.5rem 0.7rem 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    /* No visible scrollbar (Firefox + WebKit). */
    scrollbar-width: none;
}

.feed-scroll[b-d239hdnptx]::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.feed-empty[b-d239hdnptx] {
    color: var(--on-teal-dim);
    font-size: 0.8rem;
    padding: 0.4rem;
}

/* Each entry is its own darkened box (as in feedScrollRef). */
.feed-row[b-d239hdnptx] {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    padding: 0.45rem 0.55rem;
    border-radius: 4px;
    background: rgba(6, 28, 38, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.feed-icon[b-d239hdnptx] {
    flex: 0 0 auto;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 3px;
    background: rgba(8, 40, 55, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.45);
    position: relative;
}

/* A small colored marker per entry type stands in for the mockup's per-row glyphs. */
.feed-icon[b-d239hdnptx]::after {
    content: "";
    position: absolute;
    inset: 0.45rem;
    border-radius: 1px;
    background: #ffffff;
}

.feed-icon-techaction[b-d239hdnptx]::after { background: #d6b3ff; }
.feed-icon-basicaction[b-d239hdnptx]::after { background: #b6ffd0; }
.feed-icon-resourcechange[b-d239hdnptx]::after { background: #bfe6ff; }
.feed-icon-effectchange[b-d239hdnptx]::after,
.feed-icon-effecttick[b-d239hdnptx]::after { background: #ffe79a; }
.feed-icon-chatmessage[b-d239hdnptx]::after { background: #ffffff; }
.feed-icon-system[b-d239hdnptx]::after { background: #d4dde4; }

.feed-body[b-d239hdnptx] {
    min-width: 0;
}

.feed-name[b-d239hdnptx] {
    color: var(--on-teal);
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-shadow: var(--teal-shadow);
}

.feed-action[b-d239hdnptx] {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.78rem;
    line-height: 1.3;
    text-shadow: var(--teal-shadow);
}

.feed-detail[b-d239hdnptx] {
    color: var(--on-teal-dim);
    font-size: 0.76rem;
    line-height: 1.3;
    font-variant-numeric: tabular-nums;
    text-shadow: var(--teal-shadow);
}

/* Tech action card */
.tech-panel[b-d239hdnptx] {
    padding: 0.6rem 0.7rem 0.7rem;
}

.tech-empty[b-d239hdnptx] {
    color: var(--on-teal-dim);
    font-size: 0.8rem;
    padding: 0.5rem 0.4rem;
}

/* Darkened box wrapping the tech content (matches the feed entries' boxed look). */
.tech-box[b-d239hdnptx] {
    border-radius: 5px;
    background: rgba(6, 28, 38, 0.46);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    padding-bottom: 0.7rem;
    overflow: hidden;
}

.tech-title-row[b-d239hdnptx] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.5rem 0.75rem 0.2rem;
}

.tech-title[b-d239hdnptx] {
    color: var(--on-teal);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-shadow: 0 1px 4px rgba(0, 30, 40, 0.6);
    line-height: 1.1;
}

.tech-cost[b-d239hdnptx] {
    flex: 0 0 auto;
    color: #fff0cf;
    font-weight: 800;
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 8px rgba(255, 210, 120, 0.5), var(--teal-shadow);
}

.tech-meta[b-d239hdnptx] {
    padding: 0 0.75rem 0.5rem;
    color: var(--on-teal);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    text-shadow: var(--teal-shadow);
}

.tech-desc[b-d239hdnptx] {
    padding: 0.6rem 0.75rem 0;
    color: var(--on-teal);
    font-size: 0.86rem;
    line-height: 1.45;
    text-shadow: var(--teal-shadow);
}
/* /Components/Pages/Home.razor.rz.scp.css */
.home-hero[b-ipfbowprb2] {
    padding: 1.75rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    color: #fff;
    background-image: linear-gradient(135deg, rgb(5, 39, 103) 0%, #3a0647 100%);
}

.home-title[b-ipfbowprb2] {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.home-lead[b-ipfbowprb2] {
    font-size: 1.05rem;
    max-width: 52rem;
    opacity: 0.92;
}

.home-section-title[b-ipfbowprb2] {
    margin: 1.5rem 0 0.75rem;
    font-weight: 600;
}

.home-features[b-ipfbowprb2] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.home-feature[b-ipfbowprb2] {
    color: inherit;
    text-decoration: none;
    transition: box-shadow 0.15s, transform 0.15s;
}

    .home-feature:hover[b-ipfbowprb2],
    .home-feature:focus-visible[b-ipfbowprb2] {
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
        transform: translateY(-2px);
    }

    .home-feature .card-text[b-ipfbowprb2] {
        font-size: 0.875rem;
        color: #495057;
    }

.home-feature-icon[b-ipfbowprb2] {
    display: inline-flex;
    padding: 0.4rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    color: #3a0647;
    background: #efe7f3;
}

.home-roles th[b-ipfbowprb2] {
    width: 9rem;
    white-space: nowrap;
}

.home-roles[b-ipfbowprb2] {
    max-width: 52rem;
}
/* /Components/Techs/FormulaNodeEditor.razor.rz.scp.css */
.fnode[b-urxy8nople] {
    --fnode-guide: #1976d2;
}

.fnode-depth-1[b-urxy8nople] { --fnode-guide: #7b1fa2; }
.fnode-depth-2[b-urxy8nople] { --fnode-guide: #00897b; }
.fnode-depth-3[b-urxy8nople] { --fnode-guide: #ef6c00; }

.fnode-root[b-urxy8nople] {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 0.5rem 0.5rem 0.4rem;
    background: #fcfcfd;
}

.fnode-row[b-urxy8nople] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    min-height: 40px;
}

.fnode-toggle-spacer[b-urxy8nople] {
    display: inline-block;
    width: 27px;
}

.fnode-label[b-urxy8nople] {
    font-size: 0.8rem;
    font-weight: 600;
    color: #495057;
}

/* Fixed field widths so a node reads left-to-right at a predictable spacing:
   [Stat] [Weapon] [Bonus]. */
.fnode-w-kind[b-urxy8nople] { flex: 0 0 auto; width: 236px; }
.fnode-w-cover[b-urxy8nople] { flex: 0 0 auto; width: 224px; }
.fnode-w-metric[b-urxy8nople] { flex: 0 0 auto; width: 256px; }
.fnode-w-resource[b-urxy8nople] { flex: 0 0 auto; width: 264px; }
.fnode-w-number[b-urxy8nople] { flex: 0 0 auto; width: 144px; }
.fnode-w-text[b-urxy8nople] { flex: 0 0 auto; width: 280px; }

.fnode-menu[b-urxy8nople] {
    position: relative;
}

.fnode-menu-backdrop[b-urxy8nople] {
    position: fixed;
    inset: 0;
    z-index: 1040;
}

.fnode-menu-list[b-urxy8nople] {
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 1050;
    font-size: 0.875rem;
}

/* Set by uiMenu.open in js/ui.js when there's no room below the button. */
.fnode-menu[data-drop="up"] .fnode-menu-list[b-urxy8nople] {
    top: auto;
    bottom: 100%;
}

.fnode-summary[b-urxy8nople] {
    font-family: Consolas, 'Courier New', monospace;
    font-size: 0.8rem;
    color: #6c757d;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1 1 120px;
}

.fnode-spacer[b-urxy8nople] {
    flex: 1 1 0;
}

.fnode-children[b-urxy8nople] {
    margin-left: 13px;
    padding-left: 12px;
    border-left: 2px solid var(--fnode-guide);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.fnode-operator[b-urxy8nople] {
    font-weight: 700;
    font-size: 1rem;
    color: var(--fnode-guide);
    padding-left: 34px;
    line-height: 1;
}

.fnode-branch[b-urxy8nople] {
    border: 1px dashed #ced4da;
    border-radius: 6px;
    padding: 0.35rem 0.4rem;
}

.fnode-branch-header[b-urxy8nople] {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.25rem;
}

.fnode-preview[b-urxy8nople] {
    margin-top: 0.4rem;
    padding-top: 0.35rem;
    border-top: 1px dashed #dee2e6;
    font-family: Consolas, 'Courier New', monospace;
    font-size: 0.8rem;
    color: #495057;
    word-break: break-word;
}

/* /Components/Techs/HighlightedTechText.razor.rz.scp.css */
/* Keyword highlighting for Tech descriptions. Colors validated (dataviz skill) for >=3:1
   contrast on the light feed surface; status also carries a dotted underline so its identity
   never rests on color alone. */
.kw[b-lal6gafrcm] {
    font-weight: 600;
}

.kw-range[b-lal6gafrcm] {
    color: #1c5cab;
}

.kw-melee[b-lal6gafrcm] {
    color: #b5322f;
}

.kw-ranged[b-lal6gafrcm] {
    color: #0090a8;
}

.kw-dust[b-lal6gafrcm] {
    color: #6a4bb8;
}

.kw-cost[b-lal6gafrcm] {
    color: #946200;
}

.kw-status[b-lal6gafrcm] {
    color: #2f7d32;
    text-decoration: underline dotted;
    cursor: help;
}

.kw-riposte[b-lal6gafrcm] {
    color: #a61e4d;
}

/* Timing phrases: bold black, no color. */
.kw-timing[b-lal6gafrcm] {
    color: inherit;
}
/* /Components/Techs/TechCard.razor.rz.scp.css */
.tech-card[b-be5kazagcz] {
    border-color: #dee2e6;
    border-radius: 8px;
}

.tech-card-title[b-be5kazagcz] {
    font-weight: 600;
}

.tech-card-chip[b-be5kazagcz] {
    background: #fff;
    color: #495057;
    border: 1px solid #ced4da;
    font-weight: 500;
}

.tech-card-actions[b-be5kazagcz] {
    background: #fafbfc;
    border-top-color: #e9ecef;
}
