/* /Components/Layout/MainLayout.razor.rz.scp.css */
.shell[b-qsccz94pge] {
    display: flex;
    min-height: 100vh;
    background: var(--ml-bg);
}

/* ---------- Sidebar ---------- */
.sidebar[b-qsccz94pge] {
    width: var(--ml-sidebar-width);
    flex-shrink: 0;
    background: var(--ml-sidebar-bg);
    color: var(--ml-sidebar-text);
    border-right: 1px solid var(--ml-sidebar-border);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

/* Logo and, on wide screens, the collapse button beside it. */
.sidebar-head[b-qsccz94pge] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    height: var(--ml-topbar-height);
    padding: 0 0.75rem 0 1.25rem;
    border-bottom: 1px solid var(--ml-sidebar-border);
}

.brand[b-qsccz94pge] {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    min-width: 0;
    color: var(--ml-sidebar-text-strong);
    text-decoration: none;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

/* The logo mark, brightened so its navy end stays visible on the sidebar (dark in both themes). */
.brand-mark[b-qsccz94pge] {
    width: auto;
    height: 1.75rem;
    flex-shrink: 0;
}

/* ---------- Main column ---------- */
.main[b-qsccz94pge] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.topbar[b-qsccz94pge] {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    height: var(--ml-topbar-height);
    padding: 0 1.5rem;
    background: var(--ml-surface);
    border-bottom: 1px solid var(--ml-border);
}

.topbar-spacer[b-qsccz94pge] {
    flex: 1;
}

.topbar-prefs[b-qsccz94pge] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-link[b-qsccz94pge] {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    max-width: 16rem;
    color: var(--ml-text);
    text-decoration: none;
    font-size: 0.9rem;
}

.user-name[b-qsccz94pge] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-link:hover .user-name[b-qsccz94pge] {
    text-decoration: underline;
}

/* Phones show the account link as an icon; the name stays in its title and for screen readers. */
.user-icon[b-qsccz94pge] {
    display: none;
    width: 1.15rem;
    height: 1.15rem;
    fill: currentColor;
}

/* ---------- Theme and language in the slide-in menu (narrow screens only) ---------- */
.sidebar-prefs[b-qsccz94pge] {
    display: none;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--ml-sidebar-border);
}

/* The sidebar is dark in both themes: outlined buttons use its text colours, and the chosen one is
   filled (a shape change as well as a colour change). */
.sidebar-prefs[b-qsccz94pge]  .btn-outline-secondary {
    --bs-btn-color: var(--ml-sidebar-text);
    --bs-btn-border-color: var(--ml-sidebar-muted);
    --bs-btn-hover-color: var(--ml-sidebar-text-strong);
    --bs-btn-hover-bg: var(--ml-sidebar-hover);
    --bs-btn-hover-border-color: var(--ml-sidebar-muted);
}

.sidebar-prefs[b-qsccz94pge]  .btn-secondary,
.sidebar-prefs[b-qsccz94pge]  .theme-option[aria-pressed=true] {
    --bs-btn-color: var(--ml-sidebar-bg);
    --bs-btn-bg: var(--ml-sidebar-text-strong);
    --bs-btn-border-color: var(--ml-sidebar-text-strong);
    --bs-btn-hover-color: var(--ml-sidebar-bg);
    --bs-btn-hover-bg: var(--ml-sidebar-text-strong);
    --bs-btn-hover-border-color: var(--ml-sidebar-text-strong);
    color: var(--ml-sidebar-bg);
    background: var(--ml-sidebar-text-strong);
    border-color: var(--ml-sidebar-text-strong);
}

.role-badge[b-qsccz94pge] {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: var(--ml-accent-soft);
    color: var(--ml-accent-soft-text);
    white-space: nowrap;
}

.content[b-qsccz94pge] {
    flex: 1;
    padding: 2rem 1.5rem;
    max-width: 80rem;
    width: 100%;
}

/* ---------- Mobile navigation (CSS-only, works without interactivity) ---------- */
.nav-toggle[b-qsccz94pge] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.nav-toggle-button[b-qsccz94pge] {
    display: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: -0.5rem;
    border-radius: 0.375rem;
}

.nav-toggle-button:hover[b-qsccz94pge] {
    background: var(--ml-bg);
}

.hamburger[b-qsccz94pge],
.hamburger[b-qsccz94pge]::before,
.hamburger[b-qsccz94pge]::after {
    display: block;
    width: 1.25rem;
    height: 2px;
    background: var(--ml-text);
    position: relative;
}

.hamburger[b-qsccz94pge]::before,
.hamburger[b-qsccz94pge]::after {
    content: "";
    position: absolute;
}

.hamburger[b-qsccz94pge]::before {
    top: -6px;
}

.hamburger[b-qsccz94pge]::after {
    top: 6px;
}

.sidebar-backdrop[b-qsccz94pge] {
    display: none;
}

/* ---------- Tablets and phones: the account link becomes an icon to leave room for the portal name ---------- */
@media (max-width: 991.98px) {
    .user-link[b-qsccz94pge] {
        display: inline-grid;
        place-items: center;
        width: 2rem;
        height: 2rem;
        border-radius: 0.5rem;
        color: var(--ml-text-muted);
    }

    .user-link:hover[b-qsccz94pge] {
        background: var(--ml-accent-soft);
        color: var(--ml-accent-soft-text);
    }

    .user-icon[b-qsccz94pge] {
        display: block;
    }

    .user-name[b-qsccz94pge] {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
}

/* ---------- Collapsible menu on wide screens (wwwroot/sidebar.js sets data-nav-collapsed) ---------- */
.nav-collapse-button[b-qsccz94pge] {
    display: inline-block;
    flex-shrink: 0;
    cursor: pointer;
    padding: 0.5rem;
    border: 0;
    border-radius: 0.375rem;
    background: none;
}

.nav-collapse-button:hover[b-qsccz94pge] {
    background: var(--ml-sidebar-hover);
}

/* The sidebar is dark in both themes, so its button lines use the sidebar text colour. */
.nav-collapse-button .hamburger[b-qsccz94pge],
.nav-collapse-button .hamburger[b-qsccz94pge]::before,
.nav-collapse-button .hamburger[b-qsccz94pge]::after {
    background: var(--ml-sidebar-text);
}

@media (min-width: 768px) {
    .sidebar[b-qsccz94pge] {
        transition: width 0.2s ease;
    }

    html[data-nav-collapsed] .sidebar[b-qsccz94pge] {
        width: var(--ml-sidebar-collapsed-width);
        overflow-x: hidden;
    }

    /* Collapsed: only the button stays at the top, centred above the icons. */
    html[data-nav-collapsed] .sidebar-head[b-qsccz94pge] {
        justify-content: center;
        padding: 0;
    }

    html[data-nav-collapsed] .brand[b-qsccz94pge] {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .nav-toggle-button[b-qsccz94pge] {
        display: inline-block;
    }

    .nav-collapse-button[b-qsccz94pge] {
        display: none;
    }

    .sidebar[b-qsccz94pge] {
        position: fixed;
        z-index: 30;
        left: 0;
        transform: translateX(-100%);
        transition: transform 0.2s ease;
    }

    .nav-toggle:checked ~ .sidebar[b-qsccz94pge] {
        transform: translateX(0);
    }

    .nav-toggle:checked ~ .sidebar-backdrop[b-qsccz94pge] {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 20;
        background: var(--ml-backdrop);
    }

    .topbar[b-qsccz94pge] {
        gap: 0.5rem;
        padding: 0 1rem;
    }

    .topbar-prefs[b-qsccz94pge],
    .role-badge[b-qsccz94pge] {
        display: none;
    }

    .sidebar-prefs[b-qsccz94pge] {
        display: flex;
    }

    .content[b-qsccz94pge] {
        padding: 1.5rem 1rem;
    }
}

/* ---------- Signed-out pages ---------- */
.auth-shell[b-qsccz94pge] {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
    background: var(--ml-bg) url("/images/auth-bg-light.svg") center / cover no-repeat;
}

[data-bs-theme=dark] .auth-shell[b-qsccz94pge] {
    background-image: url("/images/auth-bg-dark.svg");
}

.auth-card[b-qsccz94pge] {
    width: 100%;
    max-width: 26rem;
    background: var(--ml-surface);
    border: 1px solid var(--ml-border);
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 1px 3px var(--ml-shadow);
}

/* The dark theme swaps in a logo variant with light "Media" lettering. */
.auth-logo[b-qsccz94pge] {
    display: flex;
    justify-content: center;
    padding: 0.75rem;
}

.auth-logo img[b-qsccz94pge] {
    width: 100%;
    max-width: 18rem;
    height: auto;
}

.auth-logo .logo-dark[b-qsccz94pge],
[data-bs-theme=dark] .auth-logo .logo-light[b-qsccz94pge] {
    display: none;
}

[data-bs-theme=dark] .auth-logo .logo-dark[b-qsccz94pge] {
    display: block;
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.nav-menu[b-ohfcxmlf91] {
    display: flex;
    flex-direction: column;
    padding: 1rem 0.75rem;
    gap: 0.125rem;
}

.nav-section[b-ohfcxmlf91] {
    padding: 0.75rem 0.75rem 0.375rem;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--ml-sidebar-muted);
}

.nav-menu[b-ohfcxmlf91]  .nav-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    color: var(--ml-sidebar-text);
    text-decoration: none;
    font-size: 0.925rem;
    transition: background-color 0.15s, color 0.15s;
}

/* The Support entry is a button that looks like the links around it. */
.nav-menu .nav-button[b-ohfcxmlf91] {
    width: 100%;
    border: 0;
    background: none;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

/* The sidebar is dark in both themes; the ring uses the sidebar's strong text colour. */
.nav-menu[b-ohfcxmlf91]  .nav-item:focus-visible {
    outline: 2px solid var(--ml-sidebar-text-strong);
    outline-offset: -2px;
}

.nav-menu[b-ohfcxmlf91]  .nav-item:hover {
    background: var(--ml-sidebar-hover);
    color: var(--ml-sidebar-text-strong);
}

.nav-menu[b-ohfcxmlf91]  .nav-item.active {
    background: var(--ml-sidebar-active);
    color: var(--ml-sidebar-text-strong);
    font-weight: 500;
}

.nav-menu[b-ohfcxmlf91]  .nav-icon {
    width: 1.1rem;
    height: 1.1rem;
    fill: currentColor;
    flex-shrink: 0;
}

/* Collapsed menu on wide screens: icons only. Labels stay readable to screen readers, link titles
   show them on hover, and section headings become thin dividers. */
@media (min-width: 768px) {
    html[data-nav-collapsed] .nav-menu[b-ohfcxmlf91] {
        padding: 1rem 0.5rem;
    }

    html[data-nav-collapsed] .nav-menu[b-ohfcxmlf91]  .nav-item {
        justify-content: center;
        padding: 0.5rem;
    }

    html[data-nav-collapsed] .nav-label[b-ohfcxmlf91] {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    html[data-nav-collapsed] .nav-section[b-ohfcxmlf91] {
        height: 1px;
        margin: 0.625rem 0.5rem;
        padding: 0;
        overflow: hidden;
        font-size: 0;
        background: var(--ml-sidebar-border);
    }

    html[data-nav-collapsed] .nav-section:first-child[b-ohfcxmlf91] {
        display: none;
    }
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-gus3x7bzym],
.components-reconnect-repeated-attempt-visible[b-gus3x7bzym],
.components-reconnect-failed-visible[b-gus3x7bzym],
.components-pause-visible[b-gus3x7bzym],
.components-resume-failed-visible[b-gus3x7bzym],
.components-rejoining-animation[b-gus3x7bzym] {
    display: none;
}

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


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

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

}

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

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

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

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

    100% {
        opacity: 1;
    }
}

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

    100% {
        opacity: 0;
    }
}

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

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

#components-reconnect-modal button[b-gus3x7bzym] {
    border: 0;
    background-color: var(--ml-primary);
    color: var(--ml-on-primary);
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-gus3x7bzym] {
        background-color: var(--ml-primary-strong);
    }

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

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

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

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

@keyframes components-rejoining-animation-b-gus3x7bzym {
    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/Layout/SupportDialog.razor.rz.scp.css */
.support-dialog[b-u5u2hlyg46] {
    width: min(32rem, calc(100vw - 2rem));
    padding: 1.25rem;
    border: 1px solid var(--ml-border);
    border-radius: 0.5rem;
    background: var(--ml-surface);
    color: var(--ml-text);
    box-shadow: 0 0.5rem 1.5rem var(--ml-shadow);
}

.support-dialog[b-u5u2hlyg46]::backdrop {
    background: var(--ml-backdrop);
}

.support-dialog h2[b-u5u2hlyg46] {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}
/* /Components/Pages/Help.razor.rz.scp.css */
.faq details + details[b-0s0gop2i7c] {
    border-top: 1px solid var(--ml-border);
}

.faq summary[b-0s0gop2i7c] {
    padding: 0.75rem 0;
    font-weight: 500;
    cursor: pointer;
}

.faq p[b-0s0gop2i7c] {
    margin: 0 0 0.75rem;
    color: var(--ml-text-muted);
}
