/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-4aktslleg6] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-4aktslleg6] {
    flex: 1;
}

.sidebar[b-4aktslleg6] {
    background-image: none;
}

.top-row[b-4aktslleg6] {
    background-color: var(--surface-card);
    border-bottom: 1px solid var(--surface-card-border);
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

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

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

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

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

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

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

    .sidebar[b-4aktslleg6] {
        /* rem, not px: the sidebar widens with the reader's text size, so its labels keep fitting. */
        width: 15.625rem;
        height: 100vh;
        position: sticky;
        top: 0;
        overflow: hidden;
    }

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

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

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

.top-row-user[b-4aktslleg6] {
    margin-left: 1.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-body);
    white-space: nowrap;
}

.top-row-signout[b-4aktslleg6] {
    position: relative;
    margin-left: 0.75rem;
    padding: 5px 14px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent-text);
    background: var(--accent-primary-softer);
    border: 1px solid rgba(224,138,99,0.2);
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

/* The pill is ~28px tall; this stretches its hit area to 44px without making it look heavier in a
   56px bar. */
.top-row-signout[b-4aktslleg6]::after {
    content: "";
    position: absolute;
    inset: -8px -4px;
}

.top-row-signout:hover[b-4aktslleg6] {
    background: rgba(224,138,99,0.14);
}

/* Stock Blazor ships a full-width lightyellow strip. This is a floating card instead, matching the
   warm-neutral surfaces used across the console. The outer element stays a bare positioned block:
   Blazor reveals it with an inline display:block, which would beat any display set here. */
#blazor-error-ui[b-4aktslleg6] {
    display: none;
    position: fixed;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    width: min(560px, calc(100vw - 2rem));
    box-sizing: border-box;
    z-index: 1000;
}

    #blazor-error-ui .error-card[b-4aktslleg6] {
        position: relative;
        display: flex;
        align-items: flex-start;
        gap: 0.85rem;
        background: var(--surface-card);
        border: 1px solid var(--surface-card-border);
        border-left: 4px solid var(--accent-primary);
        border-radius: 14px;
        padding: 1rem 2.25rem 1rem 1.1rem;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1), 0 2px 8px var(--accent-primary-softer);
        animation: blazor-error-rise-b-4aktslleg6 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    }

@keyframes blazor-error-rise-b-4aktslleg6 {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

    #blazor-error-ui .error-icon[b-4aktslleg6] {
        flex-shrink: 0;
        font-size: 1.35rem;
        line-height: 1.3;
    }

    #blazor-error-ui .error-copy[b-4aktslleg6] {
        flex: 1;
        min-width: 0;
    }

    #blazor-error-ui .error-title[b-4aktslleg6] {
        margin: 0;
        font-size: 0.95rem;
        font-weight: 700;
        color: var(--text-heading);
    }

    #blazor-error-ui .error-detail[b-4aktslleg6] {
        margin: 0.15rem 0 0;
        font-size: 0.85rem;
        line-height: 1.45;
        color: var(--text-body);
    }

    #blazor-error-ui .reload[b-4aktslleg6] {
        flex-shrink: 0;
        align-self: center;
        background: var(--accent-fill);
        color: var(--text-on-accent);
        font-size: 0.85rem;
        font-weight: 600;
        text-decoration: none;
        white-space: nowrap;
        padding: 0.5rem 1rem;
        border-radius: 20px;
        transition: background 0.2s;
    }

    #blazor-error-ui .reload:hover[b-4aktslleg6] { background: var(--accent-fill-hover); }

    #blazor-error-ui .reload:active[b-4aktslleg6] { background: var(--accent-fill-active); }

    /* A 44px square in the corner: the glyph alone was an ~18px target. */
    #blazor-error-ui .dismiss[b-4aktslleg6] {
        position: absolute;
        top: 0;
        right: 0;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: var(--text-muted);
        font-size: 0.9rem;
        line-height: 1;
        transition: color 0.2s;
    }

    #blazor-error-ui .dismiss:hover[b-4aktslleg6] { color: var(--text-body); }

@media (max-width: 640.98px) {
    /* Five nowrap items do not fit 375px: the signed-in email alone pushed Sign out 90px off the
       right edge. Which account is signed in matters least on a phone, so the email goes there. */
    .top-row[b-4aktslleg6] {
        gap: 10px;
        font-size: 0.8125rem;
    }

    .top-row-user[b-4aktslleg6] {
        display: none;
    }

    .top-row-signout[b-4aktslleg6] {
        margin-left: 0;
    }
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-rvo4a2chpt] {
    appearance: none;
    cursor: pointer;
    width: 2.75rem;
    height: 2.75rem;
    color: var(--text-heading);
    position: absolute;
    top: 0.375rem;
    right: 1rem;
    /* Matched to the site's warm palette and rounded corners; the stock Bootstrap grey box looked unfinished. */
    border: 1px solid var(--surface-card-border);
    border-radius: 12px;
    background: var(--icon-menu) no-repeat center/1.4rem var(--surface-card);
}

.navbar-toggler:checked[b-rvo4a2chpt] {
    background-color: var(--accent-primary-soft);
}

.navbar-toggler:focus-visible[b-rvo4a2chpt] {
    outline: 2px solid var(--accent-primary-hover);
    outline-offset: 2px;
}

.top-row[b-rvo4a2chpt] {
    min-height: 3.5rem;
    background-color: var(--surface-card);
    border-bottom: 1px solid var(--surface-card-border);
}

.navbar-brand[b-rvo4a2chpt] {
    font-size: 1.15rem;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--text-heading);
    opacity: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand-icon[b-rvo4a2chpt] {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.bi[b-rvo4a2chpt] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill-nav-menu[b-rvo4a2chpt] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu[b-rvo4a2chpt] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu[b-rvo4a2chpt] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.bi-lock-nav-menu[b-rvo4a2chpt] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath d='M8 1a2 2 0 0 1 2 2v4H6V3a2 2 0 0 1 2-2zm3 6V3a3 3 0 0 0-6 0v4a2 2 0 0 0-2 2v5a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2zM5 8h6a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1z'/%3E%3C/svg%3E");
}

.bi-person-nav-menu[b-rvo4a2chpt] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-person' viewBox='0 0 16 16'%3E%3Cpath d='M8 8a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm2-3a2 2 0 1 1-4 0 2 2 0 0 1 4 0Zm4 8c0 1-1 1-1 1H3s-1 0-1-1 1-4 6-4 6 3 6 4Zm-1-.004c-.001-.246-.154-.986-.832-1.664C11.516 10.68 10.289 10 8 10c-2.29 0-3.516.68-4.168 1.332-.678.678-.83 1.418-.832 1.664h10Z'/%3E%3C/svg%3E");
}

.bi-person-badge-nav-menu[b-rvo4a2chpt] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-person-badge' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 2a.5.5 0 0 0 0 1h3a.5.5 0 0 0 0-1h-3zM11 8a3 3 0 1 1-6 0 3 3 0 0 1 6 0z'/%3E%3Cpath d='M4.5 0A2.5 2.5 0 0 0 2 2.5V14a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V2.5A2.5 2.5 0 0 0 11.5 0h-7zM3 2.5A1.5 1.5 0 0 1 4.5 1h7A1.5 1.5 0 0 1 13 2.5v10.795a4.2 4.2 0 0 0-.776-.492C11.392 12.387 10.063 12 8 12s-3.392.387-4.224.803a4.2 4.2 0 0 0-.776.492V2.5z'/%3E%3C/svg%3E");
}

.bi-person-fill-nav-menu[b-rvo4a2chpt] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-person-fill' viewBox='0 0 16 16'%3E%3Cpath d='M3 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1H3Zm5-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z'/%3E%3C/svg%3E");
}

.bi-arrow-bar-left-nav-menu[b-rvo4a2chpt] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-arrow-bar-left' viewBox='0 0 16 16'%3E%3Cpath d='M12.5 15a.5.5 0 0 1-.5-.5v-13a.5.5 0 0 1 1 0v13a.5.5 0 0 1-.5.5ZM10 8a.5.5 0 0 1-.5.5H3.707l2.147 2.146a.5.5 0 0 1-.708.708l-3-3a.5.5 0 0 1 0-.708l3-3a.5.5 0 1 1 .708.708L3.707 7.5H9.5a.5.5 0 0 1 .5.5Z'/%3E%3C/svg%3E");
}

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

    .nav-item:first-of-type[b-rvo4a2chpt] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-rvo4a2chpt] {
        padding-bottom: 1rem;
    }

    .nav-item[b-rvo4a2chpt]  .nav-link {
        color: var(--text-body);
        background: none;
        border: none;
        border-radius: 4px;
        /* A minimum, not a fixed height with a 3rem line-height: at a larger text size a label wraps,
           and each wrapped line was 3rem tall. */
        min-height: 3rem;
        display: flex;
        align-items: center;
        line-height: 1.25;
        padding: 0.5rem 0.75rem;
        width: 100%;
    }

.nav-item[b-rvo4a2chpt]  a.active {
    background-color: var(--accent-primary-soft);
    color: var(--accent-primary-deep);
}

.nav-item[b-rvo4a2chpt]  .nav-link:hover {
    background-color: rgba(224,138,99,0.09);
    color: var(--accent-text);
}

.icon-chip[b-rvo4a2chpt] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    font-size: 0.8125rem;
    flex-shrink: 0;
    background: var(--accent-primary-soft);
    transition: background 0.15s;
    margin-right: 10px;
    vertical-align: middle;
}

.icon-chip svg[b-rvo4a2chpt] {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--accent-primary-hover);
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-item[b-rvo4a2chpt]  a.active .icon-chip {
    background: var(--accent-fill);
}

.nav-item[b-rvo4a2chpt]  a.active .icon-chip svg {
    stroke: var(--text-on-accent);
}

.nav-pro-badge[b-rvo4a2chpt] {
    margin-left: 8px;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    /* Not --accent-text: on an active nav row the badge's tint stacks on the row's, and amber-700 drops
       to 4.4:1 there. */
    color: var(--accent-text-strong);
    background: var(--accent-primary-soft);
    border-radius: 10px;
    padding: 1px 6px;
    line-height: 1.5;
    vertical-align: middle;
    /* The nav link is a flex row that stretches its children; without these the badge became a
       tall pill as high as the row. */
    align-self: center;
    flex: none;
}

.nav-scrollable[b-rvo4a2chpt] {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable[b-rvo4a2chpt] {
    display: block;
}

@media (min-width: 641px) {
    .navbar-toggler[b-rvo4a2chpt] {
        display: none;
    }

    .nav-scrollable[b-rvo4a2chpt] {
        /* Never collapse the sidebar for wide screens */
        display: block;

        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-cv0nd628i6],
.components-reconnect-repeated-attempt-visible[b-cv0nd628i6],
.components-reconnect-failed-visible[b-cv0nd628i6],
.components-pause-visible[b-cv0nd628i6],
.components-resume-failed-visible[b-cv0nd628i6],
.components-rejoining-animation[b-cv0nd628i6] {
    display: none;
}

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

/* One message at a time. Blazor adds components-reconnect-retrying without removing
   components-reconnect-show (blazor.web.js, 10.0), so the rule above would show the first-attempt
   line and the repeated-attempt line together — "Rejoining the server..." twice after every deploy.
   Same specificity as the rule above, so being later is what makes these win. */
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-first-attempt-visible[b-cv0nd628i6],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-first-attempt-visible[b-cv0nd628i6],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-repeated-attempt-visible[b-cv0nd628i6] {
    display: none;
}


/* Display devices never show this. The rules above turn the dialog visible from the framework's
   state classes alone, which outranks the UA's `dialog:not([open])` rule, so suppressing it needs a
   style rule and not just skipping showModal() in the JS. Reconnection still runs, silently. */
.display-screen #components-reconnect-modal[b-cv0nd628i6] {
    display: none;
}

#components-reconnect-modal[b-cv0nd628i6] {
    background-color: var(--surface-card);
    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-cv0nd628i6 0.5s both;

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

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

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

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

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

    100% {
        opacity: 1;
    }
}

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

    100% {
        opacity: 0;
    }
}

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

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

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

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

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

@keyframes components-rejoining-animation-b-cv0nd628i6 {
    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;
    }
}
