/* /Components/Custom/AccountListPanel.razor.rz.scp.css */
/* Sibling of ProjectListPanel.razor.css. The two panels are near-identical by
   design; the duplication is worth collapsing into a generic
   SelectableListPanel<T> once the visual work has settled. */

.account-panel[b-479uar34ds] {
    display: flex;
    flex-direction: column;
    /* Was calc(100vh - 60px) against a 50px appbar - a magic number that no
       longer matched the bar even before this redesign. dvh also avoids the
       mobile address-bar overflow that 100vh causes. */
    height: calc(100dvh - var(--mud-appbar-height) - var(--fp-space-4));
    min-height: 0;
    padding: var(--fp-panel-pad);
    border-radius: var(--fp-radius-lg);
    background-color: var(--fp-surface);
    box-shadow: var(--fp-shadow-sm);
}

.account-panel__scroll[b-479uar34ds] {
    flex: 1;
    min-height: 0;
    overflow-y: auto;

    /* See ProjectListPanel.razor.css for the reasoning: the scrollbar is moved
       into the panel's right padding so it stops taking width out of the row
       column, which otherwise leaves rows ~15px short of the search field and
       footer button. */
    margin-right: calc(var(--fp-panel-pad) * -1);
    scrollbar-gutter: stable;
    /* No scrollbar-width/scrollbar-color - see ProjectListPanel.razor.css:
       either one makes Chrome ignore the exact ::-webkit-scrollbar width. */
}

.account-panel__scroll[b-479uar34ds]::-webkit-scrollbar {
    width: var(--fp-panel-pad);
}

.account-panel__scroll[b-479uar34ds]::-webkit-scrollbar-track {
    background: var(--fp-scroll-track);
}

.account-panel__scroll[b-479uar34ds]::-webkit-scrollbar-thumb {
    background: var(--fp-scroll-thumb);
    border-radius: var(--fp-radius-pill);
    border: 3px solid transparent;
    background-clip: content-box;
}

/* --- search ------------------------------------------------------------- */

/* Search and the pin share one row; the row owns the gap below it. */
.account-panel__head[b-479uar34ds] {
    display: flex;
    align-items: center;
    gap: var(--fp-space-1);
    flex: 0 0 auto;
    margin-bottom: var(--fp-space-2);
}

.account-panel[b-479uar34ds]  .account-search-field {
    flex: 1;
    min-width: 0;
}

.account-panel__head[b-479uar34ds]  .workspace-pin {
    flex-shrink: 0;
    color: var(--fp-text-faint);
}

.account-panel__head[b-479uar34ds]  .workspace-pin:hover {
    color: var(--fp-text);
    background-color: var(--fp-surface-sunken);
}

.account-panel__head[b-479uar34ds]  .workspace-pin--on {
    color: var(--mud-palette-primary);
}

/* Inside a WorkspaceLayout the column already has the page height, so fill
   it rather than sizing against the viewport (as on /accounts). */
.workspace-layout__list-inner .account-panel[b-479uar34ds] {
    height: 100%;
}

.account-panel[b-479uar34ds]  .account-search-field .mud-input-outlined-border {
    border-radius: var(--fp-radius-pill);
    border-color: transparent;
}

/* See ProjectListPanel.razor.css - the fill belongs on .mud-input, which wraps
   the start adornment as well as the input, so the pill encloses the magnifier
   rather than starting after it. The padding puts the search icon on the same
   12px text column as the row titles and the footer label. */
.account-panel[b-479uar34ds]  .account-search-field .mud-input {
    padding-left: var(--fp-space-3);
    background-color: var(--fp-surface-sunken);
    border-radius: var(--fp-radius-pill);
}

.account-panel[b-479uar34ds]  .account-search-field .mud-input-slot {
    background-color: transparent;
}

.account-panel[b-479uar34ds]  .account-search-field .mud-input-adornment .mud-icon-root {
    color: var(--fp-text-faint);
}

/* --- rows ---------------------------------------------------------------- */

.account-panel[b-479uar34ds]  .account-list-item {
    padding: var(--fp-space-2) var(--fp-space-3);
    margin: 2px 0;
    border-radius: var(--fp-radius-md);
    transition: background-color var(--fp-dur-fast) var(--fp-ease);
}

.account-panel[b-479uar34ds]  .account-list-item:hover {
    background-color: var(--fp-surface-sunken);
}

.account-panel[b-479uar34ds]  .account-list-item.mud-selected-item {
    background-color: var(--fp-surface-sunken);
    color: var(--fp-text);
}

.account-panel[b-479uar34ds]  .account-list-item.mud-selected-item::before {
    content: none;
}

.account-list-item__row[b-479uar34ds] {
    display: flex;
    align-items: center;
    gap: var(--fp-space-2);
    width: 100%;
}

.account-list-item__text[b-479uar34ds] {
    min-width: 0;
    flex: 1;
}

.account-panel[b-479uar34ds]  .account-list-item__title {
    font-weight: 600;
    color: var(--fp-text);
}

.account-panel[b-479uar34ds]  .account-list-item__subtitle {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--fp-text-faint);
}

/* --- delete -------------------------------------------------------------- */

.account-panel[b-479uar34ds]  .account-list-item__delete {
    opacity: 0;
    /* See ProjectListPanel.razor.css - cancels the icon button's own 3px padding
       so the glyph and the title share a 12px inset. */
    margin-right: -3px;
    color: var(--fp-text-faint);
    transition: opacity var(--fp-dur-fast) var(--fp-ease),
                color var(--fp-dur-fast) var(--fp-ease);
}

.account-panel[b-479uar34ds]  .account-list-item:hover .account-list-item__delete,
.account-panel[b-479uar34ds]  .account-list-item:focus-within .account-list-item__delete {
    opacity: 1;
}

.account-panel[b-479uar34ds]  .account-list-item__delete:hover {
    color: var(--fp-danger);
    background-color: var(--fp-danger-soft);
}

/* --- empty and loading states --------------------------------------------- */

.account-panel__state[b-479uar34ds] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--fp-space-2);
    padding: var(--fp-space-6) var(--fp-space-4);
    text-align: center;
    color: var(--fp-text-faint);
}

.account-panel[b-479uar34ds]  .account-panel__state-icon {
    color: var(--fp-text-faint);
    opacity: .7;
}

/* --- footer --------------------------------------------------------------- */

.account-panel__footer[b-479uar34ds] {
    flex: 0 0 auto;
    padding-top: var(--fp-space-2);
    margin-top: var(--fp-space-1);
    border-top: 1px solid var(--fp-line);
}

.account-panel[b-479uar34ds]  .account-panel__add {
    justify-content: flex-start;
    padding-left: var(--fp-space-3);
    color: var(--fp-text-muted);
    font-weight: 500;
}

.account-panel[b-479uar34ds]  .account-panel__add:hover {
    color: var(--fp-brand);
    background-color: var(--fp-brand-softer);
}
/* /Components/Custom/ModelValidationView.razor.rz.scp.css */
.mv[b-8e8ycm2bnv] {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mv-head[b-8e8ycm2bnv] {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 28px;
    font-size: 0.75rem;
}

.mv-status[b-8e8ycm2bnv] {
    color: var(--fp-text);
    font-weight: 500;
}

.mv-status--ok[b-8e8ycm2bnv] {
    color: var(--mud-palette-success);
}

.mv-status--failed[b-8e8ycm2bnv] {
    color: var(--fp-danger);
}

.mv-outdated[b-8e8ycm2bnv] {
    color: var(--fp-text-faint);
    font-style: italic;
}

.mv-spacer[b-8e8ycm2bnv] {
    flex: 1;
}

.mv-findings[b-8e8ycm2bnv] {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mv-findings--outdated[b-8e8ycm2bnv] {
    opacity: .6;
}

.mv-finding[b-8e8ycm2bnv] {
    padding: 8px 10px;
    border-radius: 6px;
    border-left: 3px solid var(--fp-danger);
    background: var(--fp-surface);
    font-size: 0.8125rem;
}

.mv-finding--warning[b-8e8ycm2bnv] {
    border-left-color: var(--fp-warning);
}

.mv-finding--done[b-8e8ycm2bnv] {
    border-left-color: var(--fp-line);
}

.mv-finding-main[b-8e8ycm2bnv] {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.mv-finding--error .mv-finding-main[b-8e8ycm2bnv]  .mv-finding-icon {
    color: var(--fp-danger);
}

.mv-finding--warning .mv-finding-main[b-8e8ycm2bnv]  .mv-finding-icon {
    color: var(--fp-warning);
}

.mv-finding--done .mv-finding-main[b-8e8ycm2bnv]  .mv-finding-icon {
    color: var(--fp-text-faint);
}

.mv-message[b-8e8ycm2bnv] {
    color: var(--fp-text);
    line-height: 1.4;
}

.mv-quote[b-8e8ycm2bnv] {
    margin: 6px 0 0 26px;
    padding: 2px 0 2px 8px;
    border-left: 2px solid var(--fp-line);
    font-size: 0.75rem;
    white-space: pre-line;
}

.mv-quote mark[b-8e8ycm2bnv] {
    padding: 0 2px;
    border-radius: 2px;
}

.mv-detail[b-8e8ycm2bnv] {
    margin: 4px 0 0 26px;
    font-size: 0.75rem;
    color: var(--fp-text);
    white-space: pre-line;
}

.mv-detail-label[b-8e8ycm2bnv] {
    font-weight: 600;
    color: var(--fp-text-faint);
    margin-right: 4px;
}

.mv-evidence[b-8e8ycm2bnv] {
    color: var(--fp-text-faint);
}

.mv-finding-actions[b-8e8ycm2bnv] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0 0 26px;
}

.mv-link[b-8e8ycm2bnv] {
    border: 0;
    background: none;
    padding: 0;
    font: inherit;
    font-size: 0.75rem;
    color: var(--fp-brand);
    cursor: pointer;
}

.mv-link:hover[b-8e8ycm2bnv] {
    text-decoration: underline;
}

.mv-done[b-8e8ycm2bnv] {
    font-size: 0.75rem;
    color: var(--fp-text-faint);
}

[b-8e8ycm2bnv] .mv-action {
    text-transform: none;
    font-size: 0.75rem;
    padding: 1px 10px;
    min-width: 0;
}

[b-8e8ycm2bnv] .mv-icon-action {
    padding: 4px;
}

[b-8e8ycm2bnv] .mv-spinner {
    width: 14px !important;
    height: 14px !important;
}
/* /Components/Custom/ProjectListPanel.razor.rz.scp.css */
/* The project list, soft warm: a white panel floating on the warm canvas, with
   rows separated by rhythm rather than by rules.

   Everything below .project-panel needs ::deep - MudPaper, MudList, MudListItem
   and MudTextField all render markup this component does not own. */

.project-panel[b-pi9phdb8kl] {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    padding: var(--fp-panel-pad);
    border-radius: var(--fp-radius-lg);
    background-color: var(--fp-surface);
    box-shadow: var(--fp-shadow-sm);
}

.project-panel__scroll[b-pi9phdb8kl] {
    flex: 1;
    min-height: 0;
    overflow-y: auto;

    /* A classic scrollbar takes its width out of this element's content box, so
       rows would end ~15px short of the right edge while the search field and
       the footer button - which do not scroll - keep the full width. That gap
       is what made a selected row look inset on the right.

       Fix: pull the scroller out into the panel's right padding and pin the
       scrollbar to exactly that padding width, so it occupies the gutter rather
       than any of the row column. Rows, search field and footer then share one
       right edge. scrollbar-gutter keeps the space reserved when the list is
       short, so nothing shifts as items are added or filtered away. */
    margin-right: calc(var(--fp-panel-pad) * -1);
    scrollbar-gutter: stable;
}

/* Deliberately NOT setting scrollbar-width/scrollbar-color here. Chrome treats
   either of those as opting in to standard scrollbar rendering and then ignores
   the ::-webkit-scrollbar width below - measured: the gutter comes out 10px
   instead of 12px and rows overhang the column by 2px. WebKit/Blink honours an
   exact width, which is what keeps the gutter equal to --fp-panel-pad.
   Firefox falls back to its default scrollbar, so alignment there is close but
   not to the pixel. */
.project-panel__scroll[b-pi9phdb8kl]::-webkit-scrollbar {
    width: var(--fp-panel-pad);
}

.project-panel__scroll[b-pi9phdb8kl]::-webkit-scrollbar-track {
    background: var(--fp-scroll-track);
}

.project-panel__scroll[b-pi9phdb8kl]::-webkit-scrollbar-thumb {
    background: var(--fp-scroll-thumb);
    border-radius: var(--fp-radius-pill);
    /* Inset the thumb inside its track so it reads as a slim pill. */
    border: 3px solid transparent;
    background-clip: content-box;
}

/* --- search ------------------------------------------------------------- */

/* Search and the pin share one row; the row now owns the gap below it. */
.project-panel__head[b-pi9phdb8kl] {
    display: flex;
    align-items: center;
    gap: var(--fp-space-1);
    flex: 0 0 auto;
    margin-bottom: var(--fp-space-2);
}

.project-panel__head[b-pi9phdb8kl]  .workspace-pin {
    flex-shrink: 0;
    color: var(--fp-text-faint);
}

.project-panel__head[b-pi9phdb8kl]  .workspace-pin:hover {
    color: var(--fp-text);
    background-color: var(--fp-surface-sunken);
}

.project-panel__head[b-pi9phdb8kl]  .workspace-pin--on {
    color: var(--mud-palette-primary);
}

/* A recessed pill rather than an outlined box: one less border in a panel that
   already has a lot of edges. The brand-coloured magnifier is gone too - a
   navy search icon on every panel was pure decoration. */
.project-panel[b-pi9phdb8kl]  .project-search-field {
    flex: 1;
    min-width: 0;
}

.project-panel[b-pi9phdb8kl]  .project-search-field .mud-input-outlined-border {
    border-radius: var(--fp-radius-pill);
    border-color: transparent;
}

/* The fill goes on .mud-input, the wrapper that holds the start adornment AND
   the input. Putting it on .mud-input-slot - the <input> itself - starts the
   pill after the magnifier, because the adornment sits outside that element.

   The search icon, the row titles and the footer label all sit on one text
   column, 12px inside the panel's content edge. Without the padding here the
   three land at 50 / 48 / 44 and the panel reads as slightly ragged. */
.project-panel[b-pi9phdb8kl]  .project-search-field .mud-input {
    padding-left: var(--fp-space-3);
    background-color: var(--fp-surface-sunken);
    border-radius: var(--fp-radius-pill);
}

.project-panel[b-pi9phdb8kl]  .project-search-field .mud-input-slot {
    background-color: transparent;
}

.project-panel[b-pi9phdb8kl]  .project-search-field .mud-input-adornment .mud-icon-root {
    color: var(--fp-text-faint);
}

/* --- rows ---------------------------------------------------------------- */

.project-panel[b-pi9phdb8kl]  .project-list-item {
    padding: var(--fp-space-2) var(--fp-space-3);
    margin: 2px 0;
    border-radius: var(--fp-radius-md);
    transition: background-color var(--fp-dur-fast) var(--fp-ease);
}

.project-panel[b-pi9phdb8kl]  .project-list-item:hover {
    background-color: var(--fp-surface-sunken);
}

/* Selected reads as a filled tile, not as a brand-coloured row. */
.project-panel[b-pi9phdb8kl]  .project-list-item.mud-selected-item {
    background-color: var(--fp-surface-sunken);
    color: var(--fp-text);
}

.project-panel[b-pi9phdb8kl]  .project-list-item.mud-selected-item::before {
    content: none;
}

.project-list-item__row[b-pi9phdb8kl] {
    display: flex;
    align-items: center;
    gap: var(--fp-space-2);
    width: 100%;
}

.project-list-item__text[b-pi9phdb8kl] {
    min-width: 0;
    flex: 1;
}

.project-panel[b-pi9phdb8kl]  .project-list-item__title {
    font-weight: 600;
    color: var(--fp-text);
}

/* Was a hardcoded #b0b0b0 - invisible against the dark palette, and slightly
   wrong against the light one. */
.project-panel[b-pi9phdb8kl]  .project-list-item__subtitle {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--fp-text-faint);
}

/* --- delete -------------------------------------------------------------- */

/* A red trash icon on every row is noise, and an easy misclick. Revealed on
   hover, and on focus-within so keyboard users keep access to it. */
.project-panel[b-pi9phdb8kl]  .project-list-item__delete {
    opacity: 0;
    /* Optical alignment. MudBlazor's icon button carries 3px of its own padding,
       so with the button box flush against the row's 12px inset the glyph lands
       15px from the right edge while the title sits 12px from the left. Pulling
       the button out by exactly that padding puts both marks on 12px. */
    margin-right: -3px;
    color: var(--fp-text-faint);
    transition: opacity var(--fp-dur-fast) var(--fp-ease),
                color var(--fp-dur-fast) var(--fp-ease);
}

.project-panel[b-pi9phdb8kl]  .project-list-item:hover .project-list-item__delete,
.project-panel[b-pi9phdb8kl]  .project-list-item:focus-within .project-list-item__delete {
    opacity: 1;
}

.project-panel[b-pi9phdb8kl]  .project-list-item__delete:hover {
    color: var(--fp-danger);
    background-color: var(--fp-danger-soft);
}

/* --- empty and loading states --------------------------------------------- */

.project-panel__state[b-pi9phdb8kl] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--fp-space-2);
    padding: var(--fp-space-6) var(--fp-space-4);
    text-align: center;
    color: var(--fp-text-faint);
}

.project-panel[b-pi9phdb8kl]  .project-panel__state-icon {
    color: var(--fp-text-faint);
    opacity: .7;
}

/* --- footer --------------------------------------------------------------- */

.project-panel__footer[b-pi9phdb8kl] {
    flex: 0 0 auto;
    padding-top: var(--fp-space-2);
    margin-top: var(--fp-space-1);
    border-top: 1px solid var(--fp-line);
}

.project-panel[b-pi9phdb8kl]  .project-panel__add {
    justify-content: flex-start;
    padding-left: var(--fp-space-3);
    color: var(--fp-text-muted);
    font-weight: 500;
}

.project-panel[b-pi9phdb8kl]  .project-panel__add:hover {
    color: var(--fp-brand);
    background-color: var(--fp-brand-softer);
}
/* /Components/Custom/ProjectSummary.razor.rz.scp.css */
.summary-chips[b-2qzxsntz0e] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.summary-entry-link[b-2qzxsntz0e] {
    display: inline-flex;
    max-width: 100%;
    color: inherit;
    text-decoration: none;
    border-radius: 16px;
}

.summary-entry-link[b-2qzxsntz0e]  .summary-entry-chip {
    font-size: 1rem;
    margin: 0;
    max-width: 100%;
    height: auto;
    min-height: 24px;
    cursor: pointer;
    pointer-events: none;
}

.summary-entry-link[b-2qzxsntz0e]  .mud-chip-content {
    min-width: 0;
    white-space: normal;
    padding-top: 4px;
    padding-bottom: 4px;
}

.summary-entry-name[b-2qzxsntz0e] {
    overflow-wrap: anywhere;
}

.summary-required[b-2qzxsntz0e] {
    margin-left: 4px;
    color: var(--mud-palette-text-secondary);
}

.summary-entry-link:hover[b-2qzxsntz0e]  .summary-entry-chip {
    background-color: var(--mud-palette-action-default-hover);
}

.summary-entry-link:focus-visible[b-2qzxsntz0e] {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: 3px;
}
/* /Components/Custom/WorkspaceLayout.razor.rz.scp.css */
/* Replaces the MudGrid the project pages used. A 12-column grid can only snap
   between column counts; a flex row with an explicit list width can animate
   that width down to nothing. */

.workspace-layout[b-gqz4zzc96i] {
    --workspace-list-width: clamp(240px, 20vw, 320px);
    display: flex;
    min-width: 0;
}

.workspace-layout__list[b-gqz4zzc96i] {
    flex: 0 0 auto;
    width: var(--workspace-list-width);
    height: 100%;
    margin-right: var(--fp-space-3);
    overflow: hidden;
    transition: width var(--fp-dur-slow) var(--fp-ease),
                margin-right var(--fp-dur-slow) var(--fp-ease),
                opacity var(--fp-dur) var(--fp-ease);
}

/* Fixed at full width, so the rows are clipped while the outer box narrows
   rather than squeezed and re-wrapped on every frame. */
.workspace-layout__list-inner[b-gqz4zzc96i] {
    width: var(--workspace-list-width);
    height: 100%;
}

/* The short delay lets the clicked row show as selected before the list goes,
   so the slide reads as a consequence of the click. Only on the way out:
   bringing the list back should answer at once. */
.workspace-layout--collapsed .workspace-layout__list[b-gqz4zzc96i] {
    width: 0;
    margin-right: 0;
    opacity: 0;
    transition-delay: 120ms;
}

.workspace-layout__main[b-gqz4zzc96i] {
    flex: 1;
    min-width: 0;
    min-height: 0;
    height: 100%;
}

@media (prefers-reduced-motion: reduce) {
    .workspace-layout__list[b-gqz4zzc96i] {
        transition: none;
    }
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* Nav items in the soft warm direction: quiet at rest, and the active one
   lifts off the warm ground as a white pill rather than filling with brand
   colour. Reads as "this panel is the one you're on" instead of shouting.

   ::deep is required throughout - MudNavMenu and MudNavLink render their own
   markup, which does not carry this component's scope attribute. The .app-nav
   div in NavMenu.razor is the only element here that does. */

.app-nav[b-3gr9pdy30a] {
    padding: var(--fp-space-3) var(--fp-space-2);
}

/* Section headings. Small, faint, and set apart by space rather than a rule. */
.nav-section[b-3gr9pdy30a] {
    padding: var(--fp-space-4) var(--fp-space-3) var(--fp-space-1);
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--fp-text-faint);
}

    .nav-section:first-child[b-3gr9pdy30a] {
        padding-top: var(--fp-space-1);
    }

.app-nav[b-3gr9pdy30a]  .mud-nav-link {
    gap: var(--fp-space-3);
    padding: 9px var(--fp-space-3);
    margin: 2px 0;
    border-radius: var(--fp-radius-md);
    font-size: .8125rem;
    font-weight: 500;
    color: var(--fp-text-muted);
    transition: background-color var(--fp-dur-fast) var(--fp-ease),
                color var(--fp-dur-fast) var(--fp-ease),
                box-shadow var(--fp-dur-fast) var(--fp-ease);
}

    .app-nav[b-3gr9pdy30a]  .mud-nav-link:hover {
        background-color: var(--fp-surface-sunken);
        color: var(--fp-text);
    }

    /* The white raised pill. MudBlazor's own active rule tints the background
       with the primary colour; overriding background here is enough to replace
       it, and our sheet loads after MudBlazor's. */
    .app-nav[b-3gr9pdy30a]  .mud-nav-link.active {
        background-color: var(--fp-surface);
        box-shadow: var(--fp-shadow-xs);
        color: var(--fp-text);
        font-weight: 600;
    }

/* 20px is the Material optical size for a ~13px label. The old global rule
   forced 16px with !important and then nudged it down 3px to compensate for
   the mismatch it had just created. */
.app-nav[b-3gr9pdy30a]  .mud-nav-link .mud-icon-root {
    font-size: var(--fp-nav-icon);
    width: var(--fp-nav-icon);
    height: var(--fp-nav-icon);
    margin: 0;
    color: var(--fp-text-faint);
    transition: color var(--fp-dur-fast) var(--fp-ease);
}

.app-nav[b-3gr9pdy30a]  .mud-nav-link:hover .mud-icon-root {
    color: var(--fp-text-muted);
}

.app-nav[b-3gr9pdy30a]  .mud-nav-link.active .mud-icon-root {
    color: var(--fp-brand);
}

/* --- collapsed rail --------------------------------------------------------
   Kept here rather than in app.css: the padding rule above is (0,3,0) and this
   sheet loads last, so an equal-specificity override in app.css would lose on
   source order. The label itself is clipped by app.css, which can reach it
   because .mud-nav-link-text belongs to MudNavLink, not to this component. */
.mud-drawer--closed .app-nav[b-3gr9pdy30a]  .mud-nav-link {
    justify-content: center;
    gap: 0;
    padding-inline: 0;
}

.mud-drawer--closed .app-nav[b-3gr9pdy30a] {
    padding-inline: var(--fp-space-1);
}
/* /Components/Pages/Account.razor.rz.scp.css */
/* The main account's page when it holds the account module: header on top,
   tabs below taking the rest of the viewport, so the module inside the
   "Twoje konta" tab can fill it. The page itself does not scroll; each tab's
   content does (see __panels). */
.account-page[b-c8n53ftgf3] {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: var(--fp-space-5) var(--fp-space-5) var(--fp-space-3);
}

.account-page[b-c8n53ftgf3]  .account-page__tabs {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

/* MudTabs nests each tab as .mud-tabs-panels > .mud-tab-panel; both have to
   pass the height down. The scroll lives on the outer one, so ordinary tabs
   scroll as before while the module tab simply fits. */
.account-page[b-c8n53ftgf3]  .account-page__tabs > .mud-tabs-panels {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-top: var(--fp-space-4);
}

.account-page[b-c8n53ftgf3]  .account-page__tabs > .mud-tabs-panels > .mud-tab-panel-active {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

/* The module fills its tab rather than sizing itself against the viewport. */
.account-page[b-c8n53ftgf3]  .account-module {
    flex: 1;
    min-height: 0;
}

/* The name, with the list toggle beside it when the account sits in the
   module. The toggle is pulled left by its own padding so the icon lines up
   with the header's edge. */
.account-header__heading[b-c8n53ftgf3] {
    display: flex;
    align-items: center;
    gap: var(--fp-space-1);
    min-width: 0;
}

.account-header__heading[b-c8n53ftgf3]  .workspace-list-toggle {
    flex-shrink: 0;
    margin-left: calc(var(--fp-space-1) * -1);
    color: var(--fp-text-faint);
    transition: color var(--fp-dur-fast) var(--fp-ease),
                background-color var(--fp-dur-fast) var(--fp-ease);
}

.account-header__heading[b-c8n53ftgf3]  .workspace-list-toggle:hover {
    color: var(--fp-text);
    background-color: var(--fp-surface-sunken);
}

/* No account picked: one quiet prompt in the middle of the module. */
.account-module__empty[b-c8n53ftgf3] {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: var(--fp-space-5);
    text-align: center;
    color: var(--fp-text-muted);
}
/* /Components/Pages/Documents.razor.rz.scp.css */
/* The form panel. Soft warm: a white panel on the warm canvas, separated from
   its header by a hairline on the header itself rather than by a MudDivider
   element - one fewer node, and a tighter join. */

.form-panel[b-rzrygoi1x3] {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    padding: var(--fp-space-4);
    border-radius: var(--fp-radius-lg);
    background-color: var(--fp-surface);
    box-shadow: var(--fp-shadow-sm);
}

.form-panel__header[b-rzrygoi1x3] {
    flex-shrink: 0;
    padding-bottom: var(--fp-space-3);
    border-bottom: 1px solid var(--fp-line);
}

.form-panel__title[b-rzrygoi1x3] {
    min-width: 0;
}

/* The project-list toggle and the title, side by side. The toggle is pulled
   left by its own padding so the icon lines up with the panel edge instead of
   pushing the title inwards. */
.form-panel__heading[b-rzrygoi1x3] {
    display: flex;
    align-items: center;
    gap: var(--fp-space-1);
    min-width: 0;
}

.form-panel__heading[b-rzrygoi1x3]  .workspace-list-toggle {
    flex-shrink: 0;
    margin-left: calc(var(--fp-space-1) * -1);
    color: var(--fp-text-faint);
    transition: color var(--fp-dur-fast) var(--fp-ease),
                background-color var(--fp-dur-fast) var(--fp-ease);
}

.form-panel__heading[b-rzrygoi1x3]  .workspace-list-toggle:hover {
    color: var(--fp-text);
    background-color: var(--fp-surface-sunken);
}

.form-panel__meta[b-rzrygoi1x3] {
    display: block;
    color: var(--fp-text-faint);
}

/* Secondary actions: quiet until pointed at. */
.form-panel__actions[b-rzrygoi1x3]  .mud-icon-button {
    color: var(--fp-text-faint);
    transition: color var(--fp-dur-fast) var(--fp-ease),
                background-color var(--fp-dur-fast) var(--fp-ease);
}

.form-panel__actions[b-rzrygoi1x3]  .mud-icon-button:hover {
    color: var(--fp-text);
    background-color: var(--fp-surface-sunken);
}

.form-panel__body[b-rzrygoi1x3] {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-top: var(--fp-space-4);
}

.form-panel__empty[b-rzrygoi1x3] {
    color: var(--fp-text-muted);
}

/* Shown instead of the chat/form split when no project is selected. Fills the
   same space so the page does not visibly collapse, with a single quiet prompt
   centred in it. */
.workspace-empty[b-rzrygoi1x3] {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: var(--fp-space-5);
    text-align: center;
    color: var(--fp-text-muted);
}
/* /Components/Pages/DocumentsIPET.razor.rz.scp.css */
/* Sibling of Components/Pages/Documents.razor.css. Kept in step with it by
   hand, because the two pages are a compile-time fork rather than one component
   with a flag. Collapsing that fork is a worthwhile follow-up.

   The one addition over the General page is __footer: this form ends in a block
   of generate/download/upload actions that must stay pinned below the scroller. */

.form-panel[b-i7hmm3w3yc] {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    padding: var(--fp-space-4);
    border-radius: var(--fp-radius-lg);
    background-color: var(--fp-surface);
    box-shadow: var(--fp-shadow-sm);
}

.form-panel__header[b-i7hmm3w3yc] {
    flex-shrink: 0;
    padding-bottom: var(--fp-space-3);
    border-bottom: 1px solid var(--fp-line);
}

.form-panel__title[b-i7hmm3w3yc] {
    min-width: 0;
}

/* IPET/WOPFU switch: a full-width segmented control under the title. Each half
   takes equal width, and the selected one is filled so the open form reads at a glance. */
[b-i7hmm3w3yc] .form-panel__switch {
    display: flex;
    width: 100%;
    margin-top: var(--fp-space-3);
}

[b-i7hmm3w3yc] .form-panel__switch .mud-toggle-item {
    flex: 1;
    min-height: 40px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

[b-i7hmm3w3yc] .form-panel__switch .form-panel__switch-selected {
    background-color: var(--mud-palette-primary);
    color: var(--mud-palette-primary-text);
}

/* The project-list toggle and the title, side by side. The toggle is pulled
   left by its own padding so the icon lines up with the panel edge instead of
   pushing the title inwards. */
.form-panel__heading[b-i7hmm3w3yc] {
    display: flex;
    align-items: center;
    gap: var(--fp-space-1);
    min-width: 0;
}

.form-panel__heading[b-i7hmm3w3yc]  .workspace-list-toggle {
    flex-shrink: 0;
    margin-left: calc(var(--fp-space-1) * -1);
    color: var(--fp-text-faint);
    transition: color var(--fp-dur-fast) var(--fp-ease),
                background-color var(--fp-dur-fast) var(--fp-ease);
}

.form-panel__heading[b-i7hmm3w3yc]  .workspace-list-toggle:hover {
    color: var(--fp-text);
    background-color: var(--fp-surface-sunken);
}

.form-panel__meta[b-i7hmm3w3yc] {
    display: block;
    color: var(--fp-text-faint);
}

.form-panel__actions[b-i7hmm3w3yc]  .mud-icon-button {
    color: var(--fp-text-faint);
    transition: color var(--fp-dur-fast) var(--fp-ease),
                background-color var(--fp-dur-fast) var(--fp-ease);
}

.form-panel__actions[b-i7hmm3w3yc]  .mud-icon-button:hover {
    color: var(--fp-text);
    background-color: var(--fp-surface-sunken);
}

.form-panel__actions[b-i7hmm3w3yc]  .form-panel__template-link {
    color: var(--fp-text-muted);
    font-weight: 500;
    white-space: nowrap;
}

.form-panel__actions[b-i7hmm3w3yc]  .form-panel__template-link:hover {
    color: var(--fp-brand);
    background-color: var(--fp-brand-softer);
}

.form-panel__body[b-i7hmm3w3yc] {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-top: var(--fp-space-4);
}

/* Replaces a MudDivider element with a border on the thing being separated -
   one fewer node, and it cannot drift out of sync with the panel padding. */
.form-panel__footer[b-i7hmm3w3yc] {
    flex-shrink: 0;
    padding-top: var(--fp-space-4);
    margin-top: var(--fp-space-3);
    border-top: 1px solid var(--fp-line);
}

.form-panel__empty[b-i7hmm3w3yc] {
    color: var(--fp-text-muted);
}

/* Shown instead of the chat/form split when no project is selected. Fills the
   same space so the page does not visibly collapse, with a single quiet prompt
   centred in it. */
.workspace-empty[b-i7hmm3w3yc] {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: var(--fp-space-5);
    text-align: center;
    color: var(--fp-text-muted);
}

/* The trainings actions - above the form panel, or above the empty prompt
   while no project is open. Was inline on the old full-width row. */
.trainings-bar[b-i7hmm3w3yc] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--fp-space-2);
    flex-shrink: 0;
    width: 100%;
    padding: 2px var(--fp-space-2);
    box-sizing: border-box;
    white-space: nowrap;
}

/* FirstPanel holds the trainings bar and the form panel stacked; the form
   panel takes whatever height the bar leaves. */
.form-column[b-i7hmm3w3yc] {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.form-column > .form-panel[b-i7hmm3w3yc] {
    flex: 1 1 0;
    height: auto;
    min-height: 0;
}
