/* /Components/ConfirmDeletionDialog.razor.rz.scp.css */
.confirm-deletion-dialog__backdrop[b-dcb6s485qs] {
    position: fixed;
    inset: 0;
    z-index: 1300;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 1rem;
}

.confirm-deletion-dialog__card[b-dcb6s485qs] {
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    width: min(100%, 24rem);
    padding: clamp(1.5rem, 4vh, 2.5rem) 1.5rem;
    background-color: var(--mud-palette-surface);
    border: 1.5px solid var(--mud-palette-error);
    border-radius: 1rem;
}

[b-dcb6s485qs] .confirm-deletion-dialog__close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
}

[b-dcb6s485qs] .confirm-deletion-dialog__title {
    color: var(--mud-palette-error) !important;
    font-weight: 800 !important;
}

.confirm-deletion-dialog__actions[b-dcb6s485qs] {
    display: flex;
    gap: 0.75rem;
    width: 100%;
    margin-top: 0.25rem;
}

.confirm-deletion-dialog__illustration[b-dcb6s485qs] {
    width: min(100%, 12rem);
    height: auto;
    margin-top: 0.5rem;
}
/* /Components/ErrorScreen.razor.rz.scp.css */
.error-dialog__overlay[b-dt07nd621n] {
    box-sizing: border-box;
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.55);
    padding: clamp(1rem, 4vh, 2.5rem) 1rem;
}

.error-dialog__card[b-dt07nd621n] {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    width: min(100%, 26rem);
    max-height: min(90dvh, 40rem);
    overflow-y: auto;
    padding: clamp(1.5rem, 4vh, 2.5rem) 1.5rem;
    border: 1.5px solid var(--mud-palette-error);
    border-radius: 0.75rem;
    background-color: var(--mud-palette-background);
    outline: none;
}

.error-dialog__title[b-dt07nd621n] {
    color: var(--mud-palette-error) !important;
    font-weight: 800 !important;
}

.error-dialog__message[b-dt07nd621n] {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.error-dialog__illustration[b-dt07nd621n] {
    width: min(100%, 14rem);
    height: auto;
    margin-top: 0.5rem;
}

.error-dialog__actions[b-dt07nd621n] {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.error-dialog__action-button[b-dt07nd621n] {
    position: relative;
}

.error-dialog__retry-spinner[b-dt07nd621n] {
    margin-right: 0.5rem;
}

.error-dialog__details-toggle[b-dt07nd621n] {
    margin-top: 0.25rem;
}

.error-dialog__details[b-dt07nd621n] {
    box-sizing: border-box;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background-color: var(--mud-palette-background-grey);
}

.error-dialog__details-text[b-dt07nd621n] {
    box-sizing: border-box;
    width: 100%;
    max-height: 12rem;
    overflow: auto;
    margin: 0;
    padding: 0.5rem;
    text-align: left;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: var(--mud-typography-caption-family, monospace);
    font-size: 0.75rem;
    border-radius: 0.35rem;
    background-color: var(--mud-palette-background);
    user-select: text;
}

.error-dialog__copy-button[b-dt07nd621n] {
    align-self: center;
}
/* /Components/FatalErrorScreen.razor.rz.scp.css */
.fatal-error-screen[b-rd05uv832f] {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100dvh;
    padding: clamp(1rem, 4vh, 2.5rem) 1rem;
}

.fatal-error-screen__card[b-rd05uv832f] {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    width: min(100%, 24rem);
    padding: clamp(1.5rem, 4vh, 2.5rem) 1.5rem;
    border: 1.5px solid var(--mud-palette-error);
    border-radius: 0.75rem;
}

.fatal-error-screen__title[b-rd05uv832f] {
    color: var(--mud-palette-error) !important;
    font-weight: 800 !important;
}

.fatal-error-screen__actions[b-rd05uv832f] {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.fatal-error-screen__illustration[b-rd05uv832f] {
    width: min(100%, 14rem);
    height: auto;
    margin-top: 0.5rem;
}
/* /Components/ThemeModeSwitch.razor.rz.scp.css */
.theme-mode-switch[b-1bsdofpr1m] {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

/* MudIcon renders its own <svg>/<span> markup outside this component's CSS-isolation scope —
   ::deep is required to reach it, same as for MudSwitch's track below. */
[b-1bsdofpr1m] .theme-mode-switch__icon {
    flex-shrink: 0;
    transition: opacity 0.15s ease-in-out, color 0.15s ease-in-out;
}

[b-1bsdofpr1m] .theme-mode-switch__icon--active {
    opacity: 1;
    color: var(--mud-palette-primary);
}

[b-1bsdofpr1m] .theme-mode-switch__icon--muted {
    opacity: 1;
    color: var(--mud-palette-text-secondary);
}

/* MudSwitch renders its own markup (label/input/track) outside this component's scope —
   ::deep is required to reach it. Track color is synced with the active theme: rich primary
   while checked (dark), pale lavender while unchecked (light) — see issue #41. */
[b-1bsdofpr1m] .theme-mode-switch__switch .mud-switch-track.mud-primary {
    background-color: var(--mud-palette-primary) !important;
    opacity: 1 !important;
}

[b-1bsdofpr1m] .theme-mode-switch__switch .mud-switch-track.mud-default {
    background-color: #d9d3f7 !important;
    opacity: 1 !important;
}

[b-1bsdofpr1m] .theme-mode-switch__switch .mud-switch-span {
    margin: 0;
}
/* /Components/UnsavedChangesDialog.razor.rz.scp.css */
.unsaved-changes-dialog__backdrop[b-0it084jt14] {
    position: fixed;
    inset: 0;
    z-index: 1300;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 1rem;
}

.unsaved-changes-dialog__card[b-0it084jt14] {
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    width: min(100%, 24rem);
    padding: clamp(1.5rem, 4vh, 2.5rem) 1.5rem;
    background-color: var(--mud-palette-surface);
    border: 1.5px solid var(--mud-palette-warning);
    border-radius: 1rem;
}

[b-0it084jt14] .unsaved-changes-dialog__close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
}

[b-0it084jt14] .unsaved-changes-dialog__title {
    color: var(--mud-palette-warning) !important;
    font-weight: 800 !important;
}

.unsaved-changes-dialog__actions[b-0it084jt14] {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    margin-top: 0.25rem;
}

[b-0it084jt14] .unsaved-changes-dialog__button {
    text-transform: none !important;
}

.unsaved-changes-dialog__illustration[b-0it084jt14] {
    width: min(100%, 12rem);
    height: auto;
    margin-top: 0.5rem;
}
/* /Components/WarningDialog.razor.rz.scp.css */
.warning-dialog__backdrop[b-34d8h6waz0] {
    position: fixed;
    inset: 0;
    z-index: 1300;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 1rem;
}

.warning-dialog__card[b-34d8h6waz0] {
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    width: min(100%, 24rem);
    padding: clamp(1.5rem, 4vh, 2.5rem) 1.5rem;
    background-color: var(--mud-palette-surface);
    border: 1.5px solid var(--mud-palette-warning);
    border-radius: 1rem;
}

[b-34d8h6waz0] .warning-dialog__close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
}

[b-34d8h6waz0] .warning-dialog__title {
    color: var(--mud-palette-warning) !important;
    font-weight: 800 !important;
}

[b-34d8h6waz0] .warning-dialog__action {
    margin-top: 0.25rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

.warning-dialog__illustration[b-34d8h6waz0] {
    width: min(100%, 12rem);
    height: auto;
    margin-top: 0.5rem;
}
/* /Features/Authentication/AuthCompletePage.razor.rz.scp.css */
.auth-complete[b-5riw9pzqfo] {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100dvh;
}
/* /Features/Authentication/AuthenticationPage.razor.rz.scp.css */
.auth-page__loading[b-g3syn2goz0] {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100dvh;
}

.auth-page[b-g3syn2goz0] {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    padding: clamp(1rem, 4vh, 2.5rem) 1rem;
}

.auth-page__toolbar[b-g3syn2goz0] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.15rem;
    flex-shrink: 0;
    align-self: stretch;
    width: 100%;
    max-width: 100%;
}

/* MudSelect defaults to width:100% — pin to content width. The outer .mud-select wrapper
   (the actual flex child of .auth-page__toolbar) also defaults to flex:1 1 auto, which grows
   to fill the toolbar and leaves the fixed-width select hugging its own left edge; pin the
   wrapper itself to content width and push it to the toolbar's right edge instead. */
.auth-page__toolbar[b-g3syn2goz0]  .mud-select {
    flex: 0 0 auto !important;
    margin-left: auto;
}

.auth-page__toolbar[b-g3syn2goz0]  .auth-page__lang.mud-input-control,
.auth-page__toolbar[b-g3syn2goz0]  .auth-page__lang {
    width: 10.5rem !important;
    max-width: 10.5rem !important;
    flex: 0 0 10.5rem !important;
    margin: 0 !important;
}

.auth-page__toolbar[b-g3syn2goz0]  .auth-page__lang .mud-input-control-input-container,
.auth-page__toolbar[b-g3syn2goz0]  .auth-page__lang .mud-select {
    width: 100%;
}

.auth-page__card[b-g3syn2goz0] {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.9rem;
    width: min(100%, 26rem);
    flex: 1 1 auto;
    justify-content: center;
    margin: 0 auto;
}

.auth-page__brand[b-g3syn2goz0] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.auth-page__logo[b-g3syn2goz0] {
    width: clamp(3.5rem, 10vh, 5rem);
    height: auto;
}

/* MudText/MudButton render their own <p>/<button> — the parent's scope attribute
   never reaches child-component markup, so these selectors must use ::deep. */
[b-g3syn2goz0] .auth-page__title {
    font-weight: 700 !important;
    color: var(--mud-palette-primary) !important;
}

[b-g3syn2goz0] .auth-page__headline {
    text-align: center !important;
    text-transform: uppercase !important;
    color: var(--mud-palette-primary) !important;
    font-weight: 700 !important;
    margin-bottom: 0.25rem;
}

[b-g3syn2goz0] .auth-page__google-btn {
    text-transform: none !important;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.auth-page__google-icon[b-g3syn2goz0] {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.6rem;
}

.auth-page__divider[b-g3syn2goz0] {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 0.75rem;
}

.auth-page__divider-line[b-g3syn2goz0] {
    flex: 1 1 auto;
    height: 1px;
    min-width: 0;
    background-color: var(--mud-palette-lines-default);
}

[b-g3syn2goz0] .auth-page__divider-text {
    flex: 0 0 auto;
    margin: 0;
    line-height: 1;
    white-space: nowrap;
    color: var(--mud-palette-text-secondary);
    text-transform: lowercase;
}

[b-g3syn2goz0] .auth-page__form {
    width: 100%;
}

[b-g3syn2goz0] .auth-page__continue-btn {
    text-transform: uppercase !important;
    font-weight: 600 !important;
    min-height: clamp(2.6rem, 6vh, 3.1rem);
    border-radius: 0.65rem !important;
}

[b-g3syn2goz0] .auth-page__alert {
    margin-bottom: 0.25rem;
}
/* /Features/CurriculumCatalog/CountrySelectionSubForm.razor.rz.scp.css */
/* Matches Assets/Forms/CountrySelectionSubForm-{desktop,mobile}.png. */
.country-selection__intro[b-ofapqlfnhg] {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
}

[b-ofapqlfnhg] .country-selection__title {
    color: var(--mud-palette-info) !important;
    font-weight: 700 !important;
}

[b-ofapqlfnhg] .country-selection__subtitle {
    color: var(--mud-palette-text-secondary) !important;
}

.country-selection__loading[b-ofapqlfnhg],
.country-selection__error[b-ofapqlfnhg] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 0;
}

.country-selection__empty[b-ofapqlfnhg] {
    color: var(--mud-palette-text-secondary);
}

.country-selection__grid[b-ofapqlfnhg] {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

[b-ofapqlfnhg] .country-selection__card {
    box-sizing: border-box;
    flex: 0 0 auto;
    width: 12rem;
    border: 1.5px solid var(--mud-palette-primary);
    border-radius: 0.65rem;
    box-shadow: none;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

[b-ofapqlfnhg] .country-selection__card:hover {
    background-color: var(--mud-palette-primary-hover, rgba(107, 92, 231, 0.05));
}

[b-ofapqlfnhg] .country-selection__card--selected {
    background-color: var(--mud-palette-primary);
}

[b-ofapqlfnhg] .country-selection__card--selected .mud-typography {
    color: var(--mud-palette-primary-text) !important;
}

.country-selection__card-content[b-ofapqlfnhg] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem !important;
}

[b-ofapqlfnhg] .country-selection__card-content .mud-typography {
    color: var(--mud-palette-primary);
    font-weight: 700;
}

.country-selection__flag[b-ofapqlfnhg] {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    object-fit: cover;
}

@media (max-width: 600px) {
    .country-selection__grid[b-ofapqlfnhg] {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    [b-ofapqlfnhg] .country-selection__card {
        width: auto;
    }
}
/* /Features/CurriculumCatalog/CurriculumBrowserPage.razor.rz.scp.css */
/* Keeps a nested admin subform (GradeSubjectCreateSubform/GradeSubjectEditSubform) mounted, not destroyed,
   while SubjectForm is open on top of it — so its in-progress state (select value, status, filters)
   survives the round trip (003_02_05_CurriculumBrowserPage_Frontend_Task_v8.md §4.3.8.1 rule 4). */
.curriculum-browser__hidden[b-5bxrn8sr2w] {
    display: none;
}

/* Matches Assets/Forms/CurriculumBrowserPage-{desktop,mobile}.png. */
.curriculum-browser[b-5bxrn8sr2w] {
    box-sizing: border-box;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.curriculum-browser__loading[b-5bxrn8sr2w] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 2rem 0;
}

[b-5bxrn8sr2w] .curriculum-browser__header .mud-typography {
    color: var(--mud-palette-info) !important;
    font-weight: 700 !important;
}

/* Mobile: the "Учебные программы" page title steps back visually to ~h6 (~20px) so the current subform's
   own h5 heading stays the dominant heading on screen (issue-71 §3). Desktop keeps the full h4 size —
   Razor markup/Typo stays untouched, only the rendered size changes here. */
@media (max-width: 959.98px) {
    [b-5bxrn8sr2w] .curriculum-browser__header .mud-typography {
        font-size: 1.25rem !important;
        line-height: 1.6 !important;
    }
}

/* §4.3.4 — desktop dot row; hidden on mobile in favor of the "Step X of Y" text below. */
.curriculum-browser__steps[b-5bxrn8sr2w] {
    display: none;
    align-items: center;
    gap: 0.35rem;
}

.curriculum-browser__step[b-5bxrn8sr2w] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.curriculum-browser__step-dot[b-5bxrn8sr2w] {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    border: 2px solid var(--mud-palette-primary);
    background-color: transparent;
}

.curriculum-browser__step--done .curriculum-browser__step-dot[b-5bxrn8sr2w] {
    background-color: var(--mud-palette-primary);
}

.curriculum-browser__step-label[b-5bxrn8sr2w] {
    font-size: 0.75rem;
    color: var(--mud-palette-text-secondary);
    white-space: nowrap;
}

.curriculum-browser__step-line[b-5bxrn8sr2w] {
    flex: 1 1 2rem;
    height: 2px;
    background-color: var(--mud-palette-lines-default);
    margin-bottom: 1.1rem;
}

.curriculum-browser__step-line--done[b-5bxrn8sr2w] {
    background-color: var(--mud-palette-primary);
}

.curriculum-browser__step-mobile[b-5bxrn8sr2w] {
    color: var(--mud-palette-text-secondary);
    font-size: 0.85rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

@media (min-width: 960px) {
    .curriculum-browser__steps[b-5bxrn8sr2w] {
        display: flex;
    }

    .curriculum-browser__step-mobile[b-5bxrn8sr2w] {
        display: none;
    }
}

/* issue-71 §2: mobile-only collapsible wrapper around "Шаг X из Y" + breadcrumb, with a compact handle
   that stays visible/clickable in both expanded and collapsed state. The collapse/expand animation itself
   is handled by MudCollapse (grid-template-rows based, no fixed max-height); the width/spacing rule below
   only wraps the MudCollapse container. On desktop (see media query below) the content is always shown and
   the handle is hidden — stepper dots + breadcrumb stay unconditionally visible there, unchanged from
   before this ticket. */
.curriculum-browser__mobile-nav[b-5bxrn8sr2w] {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.curriculum-browser__mobile-nav[b-5bxrn8sr2w]  .mud-collapse-container {
    width: 100%;
}

.curriculum-browser__mobile-nav-handle[b-5bxrn8sr2w] {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 1rem;
    padding: 0;
    margin-top: 0.15rem;
    border: none;
    border-radius: 0.5rem;
    background-color: var(--mud-palette-table-hover);
    color: var(--mud-palette-text-secondary);
    cursor: pointer;
}

@media (max-width: 959.98px) {
    .curriculum-browser__mobile-nav-handle[b-5bxrn8sr2w] {
        display: flex;
    }
}

@media (min-width: 960px) {
    /* display: block overrides MudCollapse's own display: grid, so its grid-template-rows transition
       (0fr <-> 1fr) no longer applies here and the content always renders at its natural height.
       ::deep is required because MudCollapse's root element is created by the child component itself,
       not by markup in this file, so plain scoped-CSS selectors would never match it (Blazor CSS
       isolation only scopes the current component's own DOM by default). */
    .curriculum-browser__mobile-nav[b-5bxrn8sr2w]  .mud-collapse-container {
        display: block;
        overflow: visible;
        visibility: visible;
    }
}

.curriculum-browser__breadcrumb[b-5bxrn8sr2w] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.15rem;
}

.curriculum-browser__breadcrumb-item[b-5bxrn8sr2w] {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
}

[b-5bxrn8sr2w] .curriculum-browser__breadcrumb .mud-button-root {
    color: var(--mud-palette-primary) !important;
    text-transform: none !important;
    font-weight: 600;
    padding: 0.15rem 0.35rem;
    min-width: 0;
}

.curriculum-browser__breadcrumb-sep[b-5bxrn8sr2w] {
    color: var(--mud-palette-text-secondary);
}

[b-5bxrn8sr2w] .curriculum-browser__breadcrumb-current {
    color: var(--mud-palette-text-primary) !important;
    font-weight: 600 !important;
    padding: 0.15rem 0.35rem;
}

.curriculum-browser__content[b-5bxrn8sr2w] {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-block: 0.5rem;
    padding-inline-end: 0.5rem;
    scrollbar-gutter: stable;
}

.curriculum-browser__actions[b-5bxrn8sr2w] {
    flex-shrink: 0;
    display: flex;
    gap: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--mud-palette-lines-default);
}

[b-5bxrn8sr2w] .curriculum-browser__actions .mud-button-root {
    text-transform: uppercase !important;
}
/* /Features/CurriculumCatalog/CurriculumSelectionSubForm.razor.rz.scp.css */
/* Matches Assets/Forms/CurriculumSelectionSubForm-{desktop,mobile}.png — full-width stacked rows. */
.curriculum-selection__header[b-xu7vlfngv5] {
    margin-bottom: 1.5rem;
}

.curriculum-selection__header[b-xu7vlfngv5]  .curriculum-selection__title {
    display: block;
    font-weight: 700;
}

.curriculum-selection__loading[b-xu7vlfngv5],
.curriculum-selection__error[b-xu7vlfngv5] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 0;
}

.curriculum-selection__empty[b-xu7vlfngv5] {
    color: var(--mud-palette-text-secondary);
}

.curriculum-selection__grid[b-xu7vlfngv5] {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

[b-xu7vlfngv5] .curriculum-selection__card {
    box-sizing: border-box;
    width: 100%;
    border: 1.5px solid var(--mud-palette-primary);
    border-radius: 0.65rem;
    box-shadow: none;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

[b-xu7vlfngv5] .curriculum-selection__card:hover {
    background-color: rgba(107, 92, 231, 0.05);
}

[b-xu7vlfngv5] .curriculum-selection__card--selected {
    background-color: var(--mud-palette-primary);
}

[b-xu7vlfngv5] .curriculum-selection__card--selected .mud-typography {
    color: var(--mud-palette-primary-text) !important;
}

[b-xu7vlfngv5] .curriculum-selection__card .mud-card-content {
    padding: 1rem !important;
}

[b-xu7vlfngv5] .curriculum-selection__card .mud-typography {
    color: var(--mud-palette-primary);
    font-weight: 700;
}

[b-xu7vlfngv5] .curriculum-selection__card--inactive {
    border-color: var(--mud-palette-lines-default);
}

[b-xu7vlfngv5] .curriculum-selection__name--inactive {
    color: var(--mud-palette-text-disabled, #bdbdbd) !important;
    font-weight: 400 !important;
}
/* /Features/CurriculumCatalog/GradeForm.razor.rz.scp.css */
/* Matches Assets/Forms/GradeForm-{desktop,mobile}.png. */
.grade-form[b-q0ed0fmce8] {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

[b-q0ed0fmce8] .grade-form__title {
    color: var(--mud-palette-info) !important;
    font-weight: 700 !important;
}

.grade-form__loading[b-q0ed0fmce8],
.grade-form__error[b-q0ed0fmce8] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 0;
}

.grade-form__fields[b-q0ed0fmce8] {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

[b-q0ed0fmce8] .grade-form__section-title {
    display: block;
    color: var(--mud-palette-primary) !important;
    font-weight: 700 !important;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.grade-form__translations-grid[b-q0ed0fmce8] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.grade-form__properties-row[b-q0ed0fmce8] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.grade-form__properties-grid[b-q0ed0fmce8] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.grade-form__source-label[b-q0ed0fmce8] {
    grid-column: span 2;
}

.grade-form__creation-source[b-q0ed0fmce8] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.grade-form__actions[b-q0ed0fmce8] {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

[b-q0ed0fmce8] .grade-form__action-button {
    text-transform: uppercase !important;
}

@media (max-width: 960px) {
    .grade-form__translations-grid[b-q0ed0fmce8],
    .grade-form__properties-grid[b-q0ed0fmce8] {
        grid-template-columns: 1fr;
    }

    .grade-form__source-label[b-q0ed0fmce8] {
        grid-column: auto;
    }
}
/* /Features/CurriculumCatalog/GradeSelectionSubForm.razor.rz.scp.css */
/* Matches Assets/Forms/GradeSelectionSubForm-{desktop,mobile,Card,CardMenu}.png — full-width outlined rows
   with move arrows on the left and a "..." menu on the right, all in a single line. */
.grade-selection__header[b-xya8ia65p5] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.grade-selection__toolbar[b-xya8ia65p5] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

[b-xya8ia65p5] .grade-selection__header .mud-typography {
    color: var(--mud-palette-info) !important;
    font-weight: 700 !important;
}

.grade-selection__loading[b-xya8ia65p5],
.grade-selection__error[b-xya8ia65p5] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 0;
}

.grade-selection__empty[b-xya8ia65p5] {
    color: var(--mud-palette-text-secondary);
}

.grade-selection__grid[b-xya8ia65p5] {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

[b-xya8ia65p5] .grade-selection__card {
    box-sizing: border-box;
    width: 100%;
    border: 1.5px solid var(--mud-palette-primary);
    border-radius: 0.65rem;
    box-shadow: none;
}

[b-xya8ia65p5] .grade-selection__card--selected {
    background-color: rgba(107, 92, 231, 0.08);
}

/* Inactive grade — grey border instead of the primary purple (background is unaffected).
   Uses action-disabled rather than lines-default: lines-default is a 12%-opacity divider token,
   too subtle to read as a distinct disabled-like state in dark theme. */
[b-xya8ia65p5] .grade-selection__card--inactive {
    border-color: var(--mud-palette-action-disabled);
}

.grade-selection__card-row[b-xya8ia65p5] {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    min-height: 2.75rem;
}

/* On desktop these grouping wrappers are transparent to layout so their children
   flow as direct items of .grade-selection__card-row (single line). On mobile
   (media query below) they become their own flex rows, producing two lines. */
.grade-selection__card-title-group[b-xya8ia65p5],
.grade-selection__card-secondary[b-xya8ia65p5] {
    display: contents;
}

.grade-selection__move-buttons[b-xya8ia65p5] {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.1rem;
}

[b-xya8ia65p5] .grade-selection__move-buttons .mud-icon-button {
    color: var(--mud-palette-primary);
}

[b-xya8ia65p5] .grade-selection__card-title {
    flex-shrink: 0;
    color: var(--mud-palette-primary) !important;
    font-weight: 700 !important;
}

[b-xya8ia65p5] .grade-selection__card-title--inactive {
    color: var(--mud-palette-text-disabled) !important;
}

.grade-selection__card-meta[b-xya8ia65p5] {
    flex-shrink: 0;
    color: var(--mud-palette-text-secondary);
    font-size: 0.8rem;
}

.grade-selection__badges[b-xya8ia65p5] {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

@media (max-width: 600px) {
    .grade-selection__header[b-xya8ia65p5] {
        flex-wrap: wrap;
    }

    .grade-selection__toolbar[b-xya8ia65p5] {
        flex-wrap: wrap;
    }

    [b-xya8ia65p5] .grade-selection__toolbar .mud-button-root {
        flex-basis: 100%;
    }

    .grade-selection__card-row[b-xya8ia65p5] {
        flex-wrap: wrap;
        align-items: stretch;
    }

    /* Line 1: move buttons + title. Line 2: subject count (left) and status/method/menu (right). */
    .grade-selection__card-title-group[b-xya8ia65p5] {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex-basis: 100%;
    }

    .grade-selection__card-secondary[b-xya8ia65p5] {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        flex-basis: 100%;
    }

    .grade-selection__badges[b-xya8ia65p5] {
        margin-left: 0;
    }
}
/* /Features/CurriculumCatalog/GradeSubjectCreateSubform.razor.rz.scp.css */
/* Matches Assets/Forms/GradeSubjectCreateForm-{desktop,mobile}.png and Assets/Components/GradeSubjectCreateForm-SelectSubject.png. */
.grade-subject-create[b-kv2ah1l1nr] {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

[b-kv2ah1l1nr] .grade-subject-create__title {
    color: var(--mud-palette-info) !important;
    font-weight: 700 !important;
}

[b-kv2ah1l1nr] .grade-subject-create__grade-name {
    color: var(--mud-palette-info) !important;
    margin-bottom: 0.75rem;
}

.grade-subject-create__loading[b-kv2ah1l1nr],
.grade-subject-create__error[b-kv2ah1l1nr] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 0;
}

.grade-subject-create__fields[b-kv2ah1l1nr] {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    min-width: 0;
}

.grade-subject-create__subject-row[b-kv2ah1l1nr] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    min-width: 0;
}

.grade-subject-create__subject-select-host[b-kv2ah1l1nr] {
    min-width: 0;
}

.grade-subject-create__edit-action[b-kv2ah1l1nr] {
    width: fit-content;
}

[b-kv2ah1l1nr] .grade-subject-create__subject-select {
    width: 100%;
    min-width: 0;
}

.grade-subject-create__status-row[b-kv2ah1l1nr] {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    min-width: 0;
}

[b-kv2ah1l1nr] .grade-subject-create__status-select {
    flex: 1 1 20rem;
    max-width: 20rem;
    min-width: 0;
}

.grade-subject-create__actions[b-kv2ah1l1nr] {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

[b-kv2ah1l1nr] .grade-subject-create__action-button {
    text-transform: uppercase !important;
}

@media (max-width: 960px) {
    [b-kv2ah1l1nr] .grade-subject-create__status-select {
        flex: 1 1 auto;
        max-width: none;
    }
}
/* /Features/CurriculumCatalog/GradeSubjectEditSubform.razor.rz.scp.css */
/* Matches Assets/Forms/GradeSubjectEditForm-{desktop,mobile}.png. */
.grade-subject-edit[b-p55b4kh1h2] {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

[b-p55b4kh1h2] .grade-subject-edit__title {
    color: var(--mud-palette-info) !important;
    font-weight: 700 !important;
}

[b-p55b4kh1h2] .grade-subject-edit__grade-name {
    color: var(--mud-palette-info) !important;
    margin-bottom: 0.75rem;
}

.grade-subject-edit__loading[b-p55b4kh1h2],
.grade-subject-edit__error[b-p55b4kh1h2] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 0;
}

.grade-subject-edit__fields[b-p55b4kh1h2] {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    min-width: 0;
}

[b-p55b4kh1h2] .grade-subject-edit__subject-field {
    width: 100%;
}

.grade-subject-edit__status-row[b-p55b4kh1h2] {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    min-width: 0;
}

[b-p55b4kh1h2] .grade-subject-edit__status-select {
    flex: 1 1 20rem;
    max-width: 20rem;
    min-width: 0;
}

.grade-subject-edit__actions[b-p55b4kh1h2] {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

[b-p55b4kh1h2] .grade-subject-edit__action-button {
    text-transform: uppercase !important;
}

@media (max-width: 960px) {
    [b-p55b4kh1h2] .grade-subject-edit__status-select {
        flex: 1 1 auto;
        max-width: none;
    }
}
/* /Features/CurriculumCatalog/GradeSubjectSelectionSubForm.razor.rz.scp.css */
/* Matches Assets/Forms/GradeSubjectSelectionSubForm-{desktop,mobile,Card,CardMenu}.png — cards with a lavender
   header strip (name + "..." menu) and a white body (topic count + status/creation-source chips). */
.grade-subject-selection__header[b-hw67zzm41l] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

[b-hw67zzm41l] .grade-subject-selection__header .mud-typography {
    color: var(--mud-palette-info) !important;
    font-weight: 700 !important;
}

.grade-subject-selection__filters[b-hw67zzm41l] {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.grade-subject-selection__loading[b-hw67zzm41l],
.grade-subject-selection__error[b-hw67zzm41l] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 0;
}

.grade-subject-selection__empty[b-hw67zzm41l] {
    color: var(--mud-palette-text-secondary);
}

.grade-subject-selection__grid[b-hw67zzm41l] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

[b-hw67zzm41l] .grade-subject-selection__card {
    box-sizing: border-box;
    border: 1.5px solid var(--mud-palette-primary);
    border-radius: 0.65rem;
    box-shadow: none;
    overflow: hidden;
}

[b-hw67zzm41l] .grade-subject-selection__card--selected {
    outline: 2px solid var(--mud-palette-primary);
}

.grade-subject-selection__card-header[b-hw67zzm41l] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    background-color: rgba(107, 92, 231, 0.08);
    cursor: pointer;
}

[b-hw67zzm41l] .grade-subject-selection__card-title {
    color: var(--mud-palette-primary) !important;
    font-weight: 700 !important;
}

.grade-subject-selection__card-body[b-hw67zzm41l] {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.75rem 0.85rem;
    cursor: pointer;
}

[b-hw67zzm41l] .grade-subject-selection__topic-count {
    color: var(--mud-palette-primary) !important;
    font-weight: 700 !important;
}

.grade-subject-selection__chip-row[b-hw67zzm41l] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 960px) {
    .grade-subject-selection__grid[b-hw67zzm41l] {
        grid-template-columns: 1fr;
    }
}
/* /Features/CurriculumCatalog/SubjectForm.razor.rz.scp.css */
/* Matches Assets/Forms/SubjectForm-{desktop,mobile}.png. */
.subject-card[b-fc9o0kf512] {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

[b-fc9o0kf512] .subject-card__title {
    color: var(--mud-palette-info) !important;
    font-weight: 700 !important;
}

.subject-card__loading[b-fc9o0kf512],
.subject-card__error[b-fc9o0kf512] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 0;
}

.subject-card__fields[b-fc9o0kf512] {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

[b-fc9o0kf512] .subject-card__section-title {
    display: block;
    color: var(--mud-palette-primary) !important;
    font-weight: 700 !important;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.subject-card__translations-grid[b-fc9o0kf512] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

[b-fc9o0kf512] .subject-card__official-name-hint {
    display: block;
    color: var(--mud-palette-text-secondary) !important;
    margin-top: -0.5rem;
}

.subject-card__applicable-for[b-fc9o0kf512] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 1rem;
    row-gap: 0.5rem;
}

.subject-card__applicable-row[b-fc9o0kf512] {
    grid-column: 1;
    box-sizing: border-box;
    padding: 0.65rem 1rem;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 0.4rem;
    cursor: pointer;
    user-select: none;
}

.subject-card__applicable-row--included[b-fc9o0kf512] {
    background-color: light-dark(
        var(--mud-palette-tertiary-lighten),
        var(--mud-palette-tertiary-darken)
    );
    border-color: light-dark(
        var(--mud-palette-tertiary-lighten),
        var(--mud-palette-tertiary-darken)
    );
}

.subject-card__creation-source[b-fc9o0kf512] {
    align-self: flex-start;
    width: fit-content;
}

.subject-card__actions[b-fc9o0kf512] {
    display: flex;
    gap: 0.75rem;
}

[b-fc9o0kf512] .subject-card__action-button {
    text-transform: uppercase !important;
}

@media (max-width: 960px) {
    .subject-card__translations-grid[b-fc9o0kf512],
    .subject-card__applicable-for[b-fc9o0kf512] {
        grid-template-columns: 1fr;
    }
}
/* /Features/CurriculumCatalog/TopicForm.razor.rz.scp.css */
/* Matches Assets/Forms/TopicForm-{desktop,mobile}.png. Fills the height handed down by
   .curriculum-browser__content so .topic-form__actions can stay pinned to the bottom while
   .topic-form__scroll is the only part that scrolls (issue: admin had to scroll past all fields
   just to reach Save/Cancel). */
.topic-form[b-wm1rasd0u2] {
    box-sizing: border-box;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.topic-form__scroll[b-wm1rasd0u2] {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-inline-end: 0.25rem;
}

[b-wm1rasd0u2] .topic-form__title {
    color: var(--mud-palette-info) !important;
    font-weight: 700 !important;
}

.topic-form__loading[b-wm1rasd0u2],
.topic-form__error[b-wm1rasd0u2] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 0;
}

.topic-form__curriculum-name[b-wm1rasd0u2] {
    color: var(--mud-palette-text-secondary);
}

.topic-form__subject-grade[b-wm1rasd0u2] {
    color: var(--mud-palette-info);
}

.topic-form__hierarchy[b-wm1rasd0u2] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    color: var(--mud-palette-text-secondary);
}

.topic-form__hierarchy-arrows[b-wm1rasd0u2] {
    color: var(--mud-palette-text-disabled);
}

.topic-form__hierarchy-item[b-wm1rasd0u2] {
    overflow-wrap: break-word;
}

.topic-form__fields[b-wm1rasd0u2] {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

[b-wm1rasd0u2] .topic-form__section-title {
    display: block;
    color: var(--mud-palette-primary) !important;
    font-weight: 700 !important;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.topic-form__translations-grid[b-wm1rasd0u2] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.topic-form__creation-source[b-wm1rasd0u2] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.topic-form__properties-grid[b-wm1rasd0u2] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.topic-form__actions[b-wm1rasd0u2] {
    flex-shrink: 0;
    display: flex;
    gap: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--mud-palette-lines-default);
}

[b-wm1rasd0u2] .topic-form__action-button {
    text-transform: uppercase !important;
}

@media (max-width: 960px) {
    .topic-form__translations-grid[b-wm1rasd0u2],
    .topic-form__properties-grid[b-wm1rasd0u2] {
        grid-template-columns: 1fr;
    }
}
/* /Features/CurriculumCatalog/TopicSelectionHierarchySubForm.razor.rz.scp.css */
/* Matches Assets/Forms/TopicSelectionHierarchySubForm-{desktop,mobile,FiltersPopupForm,ItemCutOffBanner}.png. */
.topic-selection__header[b-d1dssqa1vu] {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin-bottom: 0.75rem;
}

[b-d1dssqa1vu] .topic-selection__header .mud-typography-h5 {
    color: var(--mud-palette-info) !important;
    font-weight: 700 !important;
}

.topic-selection__subheader[b-d1dssqa1vu] {
    color: var(--mud-palette-info);
}

.topic-selection__toolbar[b-d1dssqa1vu] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.topic-selection__search[b-d1dssqa1vu] {
    flex: 1 1 12rem;
    min-width: 8rem;
}

.topic-selection__view-mode-title[b-d1dssqa1vu] {
    display: block;
    padding: 0.25rem 1rem;
    color: var(--mud-palette-text-secondary);
}

.topic-selection__view-mode-item[b-d1dssqa1vu] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
}

.topic-selection__filters-popup[b-d1dssqa1vu] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 0.65rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background-color: var(--mud-palette-surface);
}

[b-d1dssqa1vu] .topic-selection__filters-title {
    color: var(--mud-palette-primary) !important;
    font-weight: 700 !important;
}

.topic-selection__filters-warning[b-d1dssqa1vu] {
    margin: 0.25rem 0;
}

.topic-selection__filters-reset[b-d1dssqa1vu] {
    align-self: flex-start;
}

.topic-selection__filters-actions[b-d1dssqa1vu] {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.topic-selection__cut-banner[b-d1dssqa1vu] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    background-color: var(--mud-palette-warning);
    color: var(--mud-palette-warning-text);
    border-radius: 0.5rem;
    position: sticky;
    top: 0;
    z-index: 5;
}

.topic-selection__loading[b-d1dssqa1vu],
.topic-selection__error[b-d1dssqa1vu] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 0;
}

.topic-selection__empty[b-d1dssqa1vu] {
    color: var(--mud-palette-text-secondary);
}

.topic-selection__empty-search[b-d1dssqa1vu] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem 0;
    text-align: center;
}

.topic-selection__empty-search-illustration[b-d1dssqa1vu] {
    max-width: 16rem;
    width: 100%;
}

.topic-selection__tree[b-d1dssqa1vu] {
    display: flex;
    flex-direction: column;
    overflow-x: auto;
}

@media (max-width: 600px) {
    .topic-selection__toolbar[b-d1dssqa1vu] {
        justify-content: space-between;
    }

    .topic-selection__search[b-d1dssqa1vu] {
        flex-basis: 100%;
    }
}
/* /Features/CurriculumCatalog/TopicSelectionSimpleSubForm.razor.rz.scp.css */
/* Matches Assets/Forms/TopicSelectionSimpleSubForm-{desktop,mobile}.png and reuses the topic-search visual language. */
.topic-simple-selection__header[b-jlm2plhr96] {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin-bottom: 0.75rem;
}

[b-jlm2plhr96] .topic-simple-selection__header .mud-typography-h5 {
    color: var(--mud-palette-info) !important;
    font-weight: 700 !important;
}

.topic-simple-selection__subheader[b-jlm2plhr96] {
    color: var(--mud-palette-info);
}

.topic-simple-selection__toolbar[b-jlm2plhr96] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.topic-simple-selection__search[b-jlm2plhr96] {
    flex: 1 1 18rem;
    min-width: 8rem;
}

.topic-simple-selection__view-mode-title[b-jlm2plhr96] {
    display: block;
    padding: 0.25rem 1rem;
    color: var(--mud-palette-text-secondary);
}

.topic-simple-selection__view-mode-item[b-jlm2plhr96] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
}

.topic-simple-selection__filters-popup[b-jlm2plhr96] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 0.65rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background-color: var(--mud-palette-surface);
}

[b-jlm2plhr96] .topic-simple-selection__filters-title {
    color: var(--mud-palette-primary) !important;
    font-weight: 700 !important;
}

.topic-simple-selection__filters-reset[b-jlm2plhr96] {
    align-self: flex-start;
}

.topic-simple-selection__filters-actions[b-jlm2plhr96] {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.topic-simple-selection__recent[b-jlm2plhr96] {
    margin: 0.25rem 0 1rem;
}

.topic-simple-selection__recent-title[b-jlm2plhr96] {
    color: var(--mud-palette-text-secondary);
    margin-bottom: 0.45rem;
}

.topic-simple-selection__recent-items[b-jlm2plhr96] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.topic-simple-selection__recent-item[b-jlm2plhr96] {
    appearance: none;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    background: var(--mud-palette-surface);
    color: var(--mud-palette-text-primary);
    font: inherit;
    cursor: pointer;
}

.topic-simple-selection__recent-item:hover[b-jlm2plhr96],
.topic-simple-selection__recent-item:focus-visible[b-jlm2plhr96] {
    background: var(--mud-palette-action-default-hover);
}

.topic-simple-selection__loading[b-jlm2plhr96] {
    display: flex;
    padding: 1rem 0;
}

.topic-simple-selection__count[b-jlm2plhr96] {
    color: var(--mud-palette-text-secondary);
    margin-bottom: 0.75rem;
}

.topic-simple-selection__groups[b-jlm2plhr96] {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.topic-simple-selection__group[b-jlm2plhr96] {
    background: transparent;
}

.topic-simple-selection__group-title[b-jlm2plhr96] {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    padding: 0 0.9rem 0.5rem;
    color: var(--mud-palette-text-secondary);
    background: transparent;
    border-bottom: 1px solid var(--mud-palette-lines-default);
    font-weight: 600;
}

.topic-simple-selection__group-title-text[b-jlm2plhr96] {
    min-width: 0;
    overflow-wrap: anywhere;
}

[b-jlm2plhr96] .topic-simple-selection__group-icon,
[b-jlm2plhr96] .topic-simple-selection__topic-icon {
    flex-shrink: 0;
    color: var(--mud-palette-text-secondary);
}

.topic-simple-selection__group-items[b-jlm2plhr96] {
    display: flex;
    flex-direction: column;
}

.topic-simple-selection__topic[b-jlm2plhr96] {
    appearance: none;
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--mud-palette-lines-default);
    padding: 0.85rem 0.9rem;
    background: var(--mud-palette-surface);
    color: var(--mud-palette-text-primary);
    font: inherit;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    cursor: pointer;
}

.topic-simple-selection__topic:last-child[b-jlm2plhr96] {
    border-bottom: 0;
}

.topic-simple-selection__topic:hover[b-jlm2plhr96],
.topic-simple-selection__topic:focus-visible[b-jlm2plhr96],
.topic-simple-selection__topic--selected[b-jlm2plhr96] {
    background: var(--mud-palette-action-default-hover);
}

.topic-simple-selection__topic-name[b-jlm2plhr96] {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}

.topic-simple-selection__highlight[b-jlm2plhr96] {
    border-radius: 0.15rem;
    padding: 0 0.08rem;
    color: inherit;
    background: var(--mud-palette-warning);
}

.topic-simple-selection__legacy[b-jlm2plhr96] {
    flex: 0 0 auto;
    border: 1px solid var(--mud-palette-warning);
    border-radius: 999px;
    padding: 0.15rem 0.45rem;
    color: var(--mud-palette-warning-darken);
    font-size: 0.75rem;
}

.topic-simple-selection__empty-search[b-jlm2plhr96] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem 0;
    text-align: center;
}

.topic-simple-selection__empty-search-illustration[b-jlm2plhr96] {
    max-width: 16rem;
    width: 100%;
}

@media (max-width: 600px) {
    .topic-simple-selection__toolbar[b-jlm2plhr96] {
        justify-content: flex-end;
    }

    .topic-simple-selection__search[b-jlm2plhr96] {
        flex-basis: 100%;
    }

    .topic-simple-selection__recent-items[b-jlm2plhr96] {
        flex-direction: column;
        align-items: stretch;
    }

    .topic-simple-selection__recent-item[b-jlm2plhr96] {
        min-height: 2.75rem;
        border-radius: 0.5rem;
        text-align: left;
    }

    .topic-simple-selection__topic[b-jlm2plhr96] {
        min-height: 3rem;
    }
}
/* /Features/CurriculumCatalog/TopicTreeNodeView.razor.rz.scp.css */
/* Matches Assets/Forms/TopicSelectionHierarchySubForm-{desktop,mobile,ItemMenu,ItemCutOff}.png. */
.topic-tree-node__row[b-fdyp101q6y] {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 0.35rem 0.5rem;
    cursor: pointer;
    border-radius: 0.4rem;
    min-height: 2.25rem;
}

.topic-tree-node__row--selected[b-fdyp101q6y] {
    background-color: rgba(107, 92, 231, 0.08);
}

.topic-tree-node__row--cut[b-fdyp101q6y] {
    border: 1px dashed var(--mud-palette-warning);
    opacity: 0.7;
}

/* hover(hover) excludes touch devices, where a tap would otherwise leave the row stuck in :hover. */
@media (hover: hover) {
    .topic-tree-node__row:hover[b-fdyp101q6y] {
        background-color: rgba(107, 92, 231, 0.04);
    }

    .topic-tree-node__row--selected:hover[b-fdyp101q6y] {
        background-color: rgba(107, 92, 231, 0.12);
    }
}

/* Fixed-width slot shared by the expand/collapse button and its placeholder, so the type icon
   that follows starts at the same X position for same-depth rows regardless of whether the
   button is present (MudIconButton's own footprint is narrower than this reserved width). */
.topic-tree-node__expand-slot[b-fdyp101q6y] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    flex-shrink: 0;
}

[b-fdyp101q6y] .topic-tree-node__expand {
    flex-shrink: 0;
    margin-top: -0.25rem;
}

[b-fdyp101q6y] .topic-tree-node__type-icon {
    flex-shrink: 0;
    color: var(--mud-palette-text-secondary);
    margin-top: 0.15rem;
}

.topic-tree-node__status-dot[b-fdyp101q6y] {
    flex-shrink: 0;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    margin-top: 0.5rem;
}

.topic-tree-node__status-dot--current[b-fdyp101q6y] {
    background-color: var(--mud-palette-primary);
}

.topic-tree-node__status-dot--legacy[b-fdyp101q6y] {
    background-color: var(--mud-palette-warning);
}

.topic-tree-node__status-dot--hidden[b-fdyp101q6y] {
    background-color: var(--mud-palette-text-disabled);
}

.topic-tree-node__name[b-fdyp101q6y] {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: break-word;
    padding-top: 0.15rem;
}

.topic-tree-node__menu[b-fdyp101q6y] {
    flex-shrink: 0;
    margin-left: auto;
}
/* /Features/Home/HomePage.razor.rz.scp.css */
.home-page[b-79elkxnylc] {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.home-page__placeholder[b-79elkxnylc] {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    box-sizing: border-box;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 0.65rem;
}
/* /Features/Landing/LandingPage.razor.rz.scp.css */
.landing[b-axssl71c63] {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    padding: clamp(0.5rem, 1.5vh, 1rem) clamp(0.75rem, 2vw, 1.5rem) clamp(0.75rem, 2vh, 1.25rem);
}

.landing__loading[b-axssl71c63] {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100dvh;
}

.landing__toolbar[b-axssl71c63] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.15rem;
    flex-shrink: 0;
    align-self: stretch;
    width: 100%;
    max-width: 100%;
}

/* MudSelect defaults to width:100% — pin to content width. The outer .mud-select wrapper
   (the actual flex child of .landing__toolbar) also defaults to flex:1 1 auto, which grows
   to fill the toolbar and leaves the fixed-width select hugging its own left edge; pin the
   wrapper itself to content width and push it to the toolbar's right edge instead. */
.landing__toolbar[b-axssl71c63]  .mud-select {
    flex: 0 0 auto !important;
    margin-left: auto;
}

.landing__toolbar[b-axssl71c63]  .landing__lang.mud-input-control,
.landing__toolbar[b-axssl71c63]  .landing__lang {
    width: 10.5rem !important;
    max-width: 10.5rem !important;
    flex: 0 0 10.5rem !important;
    margin: 0 !important;
}

.landing__toolbar[b-axssl71c63]  .landing__lang .mud-input-control-input-container,
.landing__toolbar[b-axssl71c63]  .landing__lang .mud-select {
    width: 100%;
}

.landing__body[b-axssl71c63] {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(1rem, 3vh, 2rem);
}

.landing__brand[b-axssl71c63] {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: clamp(0.4rem, 1.2vh, 0.75rem);
    max-width: 28rem;
    width: 100%;
}

.landing__logo[b-axssl71c63] {
    width: clamp(4.5rem, 14vh, 7.5rem);
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
}

.landing__title[b-axssl71c63] {
    font-weight: 700 !important;
    line-height: 1.1 !important;
    color: var(--mud-palette-primary) !important;
    font-size: clamp(2rem, 5vh, 2.75rem) !important;
}

.landing__tagline[b-axssl71c63] {
    color: var(--mud-palette-primary) !important;
    font-size: clamp(0.85rem, 2.2vh, 1.05rem) !important;
    line-height: 1.35 !important;
    max-width: 22rem;
    white-space: pre-line;
}

.landing__actions[b-axssl71c63] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(1rem, 3vh, 1.75rem);
    width: min(100%, 22rem);
}

.landing__buttons[b-axssl71c63] {
    display: flex;
    flex-direction: column;
    gap: clamp(0.55rem, 1.5vh, 0.85rem);
    width: 100%;
}

.landing__btn[b-axssl71c63] {
    min-height: clamp(2.6rem, 6vh, 3.1rem);
    text-transform: uppercase !important;
    letter-spacing: 0.02em;
    font-weight: 600 !important;
    border-radius: 0.65rem !important;
}

.landing__carousel[b-axssl71c63] {
    display: grid;
    grid-template-columns: 0.7rem 1fr 0.7rem;
    gap: 0.55rem;
    align-items: stretch;
    width: 100%;
    height: clamp(5.5rem, 14vh, 8rem);
}

.landing__carousel-card[b-axssl71c63],
.landing__carousel-side[b-axssl71c63] {
    border: 1.5px solid var(--mud-palette-primary);
    border-radius: 0.65rem;
    box-sizing: border-box;
}

.landing__carousel-card[b-axssl71c63] {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mud-palette-primary);
    font-weight: 600;
    font-size: clamp(0.95rem, 2.2vh, 1.1rem);
}

.landing__carousel-side[b-axssl71c63] {
    opacity: 0.85;
}

@media (min-width: 960px) {
    .landing[b-axssl71c63] {
        padding: clamp(0.75rem, 2vh, 1.5rem) clamp(2rem, 5vw, 4rem);
    }

    .landing__body[b-axssl71c63] {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        justify-items: center;
        gap: clamp(2rem, 6vw, 5rem);
        width: 100%;
        max-width: 72rem;
        margin-inline: auto;
    }

    .landing__brand[b-axssl71c63] {
        max-width: 26rem;
    }

    .landing__logo[b-axssl71c63] {
        width: clamp(8rem, 22vh, 12rem);
    }

    .landing__title[b-axssl71c63] {
        font-size: clamp(2.5rem, 6vh, 3.5rem) !important;
    }

    .landing__tagline[b-axssl71c63] {
        font-size: clamp(1rem, 2.4vh, 1.2rem) !important;
        max-width: 24rem;
    }

    .landing__actions[b-axssl71c63] {
        width: min(100%, 24rem);
    }

    .landing__carousel[b-axssl71c63] {
        height: clamp(7rem, 16vh, 10rem);
        grid-template-columns: 1rem 1fr 1rem;
    }
}
/* /Features/Profile/InitialProfilePage.razor.rz.scp.css */
.profile-setup__loading[b-2zckwrotck] {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100dvh;
}

.profile-setup[b-2zckwrotck] {
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    /* align-items:flex-start (instead of the default stretch) lets the card grow taller than the
       viewport instead of being clamped to it — that overflow is what makes overflow-y:auto below
       actually scroll, rather than just clipping into the app-shell's own overflow:hidden. */
    align-items: flex-start;
    /* The app-shell (html/body/#app/.app-shell — see app.css) is height:100% + overflow:hidden, so
       this page must own its own scrolling: a fixed (not min-) height matches the viewport exactly,
       so overflow-y:auto scrolls the whole page rather than an inner region. */
    height: 100dvh;
    overflow-y: auto;
    padding: clamp(1rem, 4vh, 2rem) 1rem clamp(1rem, 3vh, 1.5rem);
}

.profile-setup__card[b-2zckwrotck] {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    width: min(100%, 30rem);
}

.profile-setup__header[b-2zckwrotck] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
    flex-shrink: 0;
}

.profile-setup__logo[b-2zckwrotck] {
    width: 2.25rem;
    height: auto;
}

/* MudText/MudAvatar/MudButton/etc. render their own markup in their own component scope — the
   parent's scope attribute never reaches child-component markup, so these selectors must use
   ::deep (see Erudito.Client.Web/Features/Authentication/AuthenticationPage.razor.css for the
   same convention). Without ::deep these rules silently no-op. */
[b-2zckwrotck] .profile-setup__brand {
    color: var(--mud-palette-primary) !important;
    font-weight: 700 !important;
}

/* Column flex + align-items:center guarantees the avatar and the edit button below it share the
   same horizontal center, regardless of either element's own width — this is what keeps both
   controls' centers aligned to each other and to the page's horizontal center. */
.profile-setup__avatar-row[b-2zckwrotck] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.25rem;
    flex-shrink: 0;
}

[b-2zckwrotck] .profile-setup__avatar {
    width: 4.5rem !important;
    height: 4.5rem !important;
}

/* MudFileUpload's own root element defaults to width:100%, which would stretch it across the
   whole row and defeat align-items:center on the button inside it — shrink it back to its
   content so the button it wraps stays centered under the avatar. */
[b-2zckwrotck] .profile-setup__avatar-upload {
    width: auto !important;
    display: flex !important;
    justify-content: center !important;
}

[b-2zckwrotck] .profile-setup__avatar-edit {
    margin: 0 !important;
}

[b-2zckwrotck] .profile-setup__title {
    font-weight: 700 !important;
    text-align: center;
    flex-shrink: 0;
}

.profile-setup__roles[b-2zckwrotck] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    flex-shrink: 0;
}

.profile-setup__role-card[b-2zckwrotck] {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 1.5px solid var(--mud-palette-lines-default);
    border-radius: 0.65rem;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.profile-setup__role-card:hover[b-2zckwrotck] {
    border-color: var(--mud-palette-primary);
}

.profile-setup__role-card--selected[b-2zckwrotck] {
    border-color: var(--mud-palette-primary);
    box-shadow: 0 0 0 1px var(--mud-palette-primary);
}

/* Account menu → edit mode: role is fixed post-registration, so the cards no longer act like buttons. */
.profile-setup__role-card--readonly[b-2zckwrotck] {
    cursor: default;
}

.profile-setup__role-card--readonly:hover[b-2zckwrotck] {
    border-color: var(--mud-palette-lines-default);
}

.profile-setup__role-card--readonly.profile-setup__role-card--selected:hover[b-2zckwrotck] {
    border-color: var(--mud-palette-primary);
}

/* Edit mode only, the non-current role (Issue: role card visual): dims + desaturates the illustration so
   the card no longer looks pickable, while --readonly already removes the pointer cursor / hover border. */
.profile-setup__role-card--disabled[b-2zckwrotck] {
    opacity: 0.45;
}

.profile-setup__role-card--disabled .profile-setup__role-image[b-2zckwrotck] {
    filter: grayscale(1);
}

/* Registration-only nudge (Issue #15): while no role is picked yet, both cards get an error
   outline so it's obvious the choice is mandatory — disappears the instant a role is selected. */
.profile-setup__role-card--required[b-2zckwrotck] {
    border: 2px solid var(--mud-palette-error);
    box-shadow: 0 0 0 1px var(--mud-palette-error);
}

.profile-setup__role-card--required:hover[b-2zckwrotck] {
    border-color: var(--mud-palette-error);
}

/* Now keyboard-focusable (role="radio" + tabindex, Issue #15 follow-up) — make the focus state
   as visible as the existing hover/selected states instead of relying on the browser default. */
.profile-setup__role-card:focus-visible[b-2zckwrotck] {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: 2px;
}

[b-2zckwrotck] .profile-setup__required-marker {
    color: var(--mud-palette-error);
}

[b-2zckwrotck] .profile-setup__role-required-text {
    display: block;
    text-align: center;
    margin-top: -0.4rem;
    flex-shrink: 0;
}

[b-2zckwrotck] .profile-setup__role-label {
    color: var(--mud-palette-warning);
    font-weight: 700 !important;
    text-transform: uppercase;
    text-align: center;
}

.profile-setup__role-image[b-2zckwrotck] {
    width: 100%;
    max-height: 9rem;
    object-fit: contain;
}

[b-2zckwrotck] .profile-setup__section-title {
    font-weight: 700 !important;
    text-transform: uppercase;
    text-align: center;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.profile-setup__student-block[b-2zckwrotck] {
    min-height: 0.25rem;
    flex-shrink: 0;
}

[b-2zckwrotck] .profile-setup__field {
    width: 100%;
}

.profile-setup__tos[b-2zckwrotck] {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

/* MudCheckBox's clickable touch-target padding makes its own bounding box taller than the
   checkbox glyph itself, but the glyph is centered within it — align-items:center on the row
   is enough to line its visual center up with the (possibly multi-line) label's center. */
[b-2zckwrotck] .profile-setup__tos-checkbox {
    flex-shrink: 0;
    margin: 0 !important;
}

[b-2zckwrotck] .profile-setup__tos-text {
    line-height: 1.35;
}

.profile-setup__actions[b-2zckwrotck] {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

@media (max-width: 30rem) {
    .profile-setup__actions[b-2zckwrotck] {
        flex-direction: column;
    }
}

[b-2zckwrotck] .profile-setup__cancel-btn {
    text-transform: uppercase !important;
    font-weight: 600 !important;
    min-height: clamp(2.6rem, 6vh, 3.1rem);
    border-radius: 0.65rem !important;
    flex: 1 1 0;
    width: auto !important;
    min-width: 0;
}

[b-2zckwrotck] .profile-setup__save-btn {
    text-transform: uppercase !important;
    font-weight: 600 !important;
    min-height: clamp(2.6rem, 6vh, 3.1rem);
    border-radius: 0.65rem !important;
    margin-top: 0;
    flex: 1 1 0;
    width: auto !important;
    min-width: 0;
}

@media (max-width: 30rem) {
    [b-2zckwrotck] .profile-setup__cancel-btn,
    [b-2zckwrotck] .profile-setup__save-btn {
        flex: 1 1 auto;
    }
}
/* /Layout/Components/ApplicationNavigation.razor.rz.scp.css */
/* MudNavMenu/MudNavLink render their own markup in their own component scope — the parent's scope
   attribute never reaches child-component markup, so these selectors must use ::deep (see
   AuthenticationPage.razor.css for the same convention). */
[b-ky0o0ljz6q] .application-navigation {
    padding: 0;
}

.application-navigation__item-wrapper[b-ky0o0ljz6q] {
    width: 100%;
}

[b-ky0o0ljz6q] .application-navigation__item {
    border-radius: 0;
}

/* Active links inherit the active text color, but MudNavLink keeps the icon's default color class.
   Explicitly inherit the link color so an active item does not look disabled. */
[b-ky0o0ljz6q] .application-navigation__item.mud-nav-link-active .mud-nav-link-icon {
    color: inherit !important;
}

/* §21 — MudNavLink's own Disabled state already suppresses interaction; this only makes sure the
   disabled item reads as disabled rather than just a slightly greyed-out active-looking link. */
[b-ky0o0ljz6q] .application-navigation__item.mud-nav-link-disabled {
    opacity: 0.6;
}

/* §13.4 — large touch-friendly buttons, spaced apart, with a primary border/text and the theme's own
   corner radius (no PNG pixel values). */
.application-navigation__item-wrapper--mobile[b-ky0o0ljz6q] {
    margin-bottom: 0.5rem;
}

    .application-navigation__item-wrapper--mobile:last-child[b-ky0o0ljz6q] {
        margin-bottom: 0;
    }

[b-ky0o0ljz6q] .application-navigation__item--mobile {
    box-sizing: border-box;
    min-height: 72px;
    width: 100%;
    display: flex;
    align-items: center;
    border: 1.5px solid var(--mud-palette-primary);
    border-radius: 0.65rem;
    color: var(--mud-palette-primary) !important;
    padding-inline: 1rem;
}
/* /Layout/Components/UserMenu.razor.rz.scp.css */
.user-menu__trigger[b-dkvivfebj4] {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    border-radius: 1.5rem;
}

    .user-menu__trigger:focus-visible[b-dkvivfebj4] {
        outline: 2px solid var(--mud-palette-primary);
        outline-offset: 2px;
    }

/* MudAvatar/MudIcon/MudText render their own markup in their own component scope — the parent's
   scope attribute never reaches child-component markup, so these selectors must use ::deep (see
   AuthenticationPage.razor.css for the same convention). */
[b-dkvivfebj4] .user-menu__avatar,
[b-dkvivfebj4] .user-menu__avatar-icon {
    width: 2.25rem !important;
    height: 2.25rem !important;
    font-size: 2.25rem !important;
}

/* §9.2 — the name next to the trigger avatar is desktop-only; mobile shows avatar + hamburger only. */
@media (max-width: 959px) {
    [b-dkvivfebj4] .user-menu__name {
        display: none;
    }
}

[b-dkvivfebj4] .user-menu__name {
    color: var(--mud-palette-text-primary);
    white-space: nowrap;
}

/* §10.5 — wide enough for name/email without hard-clipping; long email may ellipsis, full name may wrap. */
.user-menu__header[b-dkvivfebj4] {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    width: 100%;
    min-width: 12.75rem;
    max-width: 16rem;
    padding: 1rem 1rem 0.75rem;
    text-align: center;
}

[b-dkvivfebj4] .user-menu__header-avatar,
[b-dkvivfebj4] .user-menu__header-avatar-icon {
    width: 3.5rem !important;
    height: 3.5rem !important;
    font-size: 3.5rem !important;
}

[b-dkvivfebj4] .user-menu__header-name {
    color: var(--mud-palette-text-primary);
    font-weight: 700 !important;
    text-align: center;
    overflow-wrap: break-word;
}

[b-dkvivfebj4] .user-menu__header-email {
    color: var(--mud-palette-text-secondary);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* /Layout/MasterPage.razor.rz.scp.css */
.master-page__loading[b-y082ve5mf6] {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100dvh;
}

/* §6.3 — 100dvh (not a fixed PNG height) so the shell always matches the real viewport. */
.master-page[b-y082ve5mf6] {
    box-sizing: border-box;
    height: 100dvh;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.master-page__header[b-y082ve5mf6] {
    box-sizing: border-box;
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.5rem 1.5rem 0 1.5rem;
}

.master-page__logo-link[b-y082ve5mf6] {
    flex-shrink: 0;
    display: inline-flex;
    border-radius: 50%;
}

.master-page__logo[b-y082ve5mf6] {
    display: block;
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* §8.3 — the divider is header-main's own border-bottom, so it starts after the logo and runs under
   the app name through to the right edge of the user block, without any absolutely positioned line. */
.master-page__header-main[b-y082ve5mf6] {
    flex: 1 1 auto;
    min-width: 0;
    border-bottom: 1px solid var(--mud-palette-divider, var(--mud-palette-lines-default));
}

.master-page__header-row[b-y082ve5mf6] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-width: 0;
    padding-bottom: 0.9rem;
}

.master-page__app-name-link[b-y082ve5mf6] {
    display: inline-flex;
    min-width: 0;
    text-decoration: none;
}

/* MudText renders its own <p> in its own component scope — the parent's scope attribute never
   reaches child-component markup, so this selector must use ::deep (see AuthenticationPage.razor.css
   for the same convention). */
[b-y082ve5mf6] .master-page__app-name {
    color: var(--mud-palette-primary) !important;
    font-weight: 700 !important;
}

.master-page__header-actions[b-y082ve5mf6] {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* §12.1/§13.1 — hamburger is mobile-only; the desktop nav panel below is desktop-only. Both are
   plain CSS breakpoints (no JS layout switch), matching the rest of the project's pages. */
[b-y082ve5mf6] .master-page__hamburger {
    display: inline-flex;
}

.master-page__workspace[b-y082ve5mf6] {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem 1.5rem 1.5rem 1.5rem;
    overflow: hidden;
}

[b-y082ve5mf6] .master-page__nav-panel {
    display: none;
    box-sizing: border-box;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 0.65rem;
    overflow: hidden;
}

.master-page__nav-title[b-y082ve5mf6] {
    flex-shrink: 0;
    box-sizing: border-box;
    padding: 0.6rem 1rem;
    background-color: var(--mud-palette-primary);
    color: var(--mud-palette-primary-text);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.master-page__nav-scroll[b-y082ve5mf6] {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.master-page__content[b-y082ve5mf6] {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

/* §13.3 — content-driven height with a cap, never a fixed PNG height. */
[b-y082ve5mf6] .master-page__mobile-drawer {
    height: auto;
    max-height: min(70dvh, 34rem);
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

.master-page__mobile-drawer-swipe[b-y082ve5mf6] {
    height: 100%;
}

.master-page__mobile-drawer-list[b-y082ve5mf6] {
    box-sizing: border-box;
    height: 100%;
    overflow-y: auto;
    padding: 0.75rem;
}

@media (min-width: 960px) {
    .master-page__header[b-y082ve5mf6] {
        padding: 2.5rem 2.5rem 0 2.5rem;
    }

    .master-page__workspace[b-y082ve5mf6] {
        padding: 1rem 2.5rem 2.5rem 2.5rem;
    }

    [b-y082ve5mf6] .master-page__hamburger {
        display: none;
    }

    /* §12.3 — fixed nav width + gap; content host shrinks first, never creating horizontal scroll. */
    [b-y082ve5mf6] .master-page__nav-panel {
        display: flex;
        flex-direction: column;
        flex: 0 0 300px;
        width: 300px;
        min-width: 0;
        overflow: hidden;
    }

    /* Desktop-only CSS safety net, matching the hamburger/nav-panel pattern above: _isApplicationMenuOpen
       only gets closed on a desktop transition via the resize-based erudito.watchBreakpoint listener (§6.2),
       which can miss real-world width changes that don't fire a window "resize" event (browser/OS zoom,
       display-scale changes, monitor swaps). Without this rule the drawer has no way to be dismissed once
       the hamburger that would toggle it is itself hidden at this width. */
    [b-y082ve5mf6] .master-page__mobile-drawer {
        display: none !important;
    }
}
