/* /Components/Admin/AdminNav.razor.rz.scp.css */
.rs-admin-nav[b-4b1w3ad6iq] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--rs-space-2);
    border-bottom: 1px solid var(--rs-color-border);
}

[b-4b1w3ad6iq] .rs-admin-nav__link {
    display: inline-flex;
    align-items: center;
    gap: var(--rs-space-2);
    padding: var(--rs-space-2) var(--rs-space-3);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    color: var(--rs-color-fg-muted);
    text-decoration: none;
}

[b-4b1w3ad6iq] .rs-admin-nav__link:hover {
    color: var(--rs-color-fg);
}

[b-4b1w3ad6iq] .rs-admin-nav__link.active {
    border-bottom-color: var(--rs-color-accent);
    color: var(--rs-color-fg);
    font-weight: var(--rs-font-weight-semibold);
}
/* /Components/Audit/AuditLog.razor.rz.scp.css */
/* An audit log: a wrapping filter bar, then one row per event. Rows are a grid on wide screens and a stack at phone
   width. Every value is a --rs-* token, so light and dark follow the role remap. */

.rs-audit[b-731p7kkact] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-4);
}

.rs-audit__filters[b-731p7kkact] {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: var(--rs-space-3);
}

.rs-audit__filters[b-731p7kkact]  .rs-form-field {
    flex: 0 1 12rem;
    min-width: 10rem;
}

.rs-audit__chips[b-731p7kkact] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--rs-space-2);
}

.rs-audit__chip[b-731p7kkact] {
    display: inline-flex;
    align-items: center;
    gap: var(--rs-space-1);
    padding: 0 0 0 var(--rs-space-3);
    border: 1px solid var(--rs-color-border);
    border-radius: var(--rs-radius-pill);
    font-size: var(--rs-text-sm);
    overflow-wrap: anywhere;
}

.rs-audit__list[b-731p7kkact] {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--rs-color-border);
}

.rs-audit__row[b-731p7kkact] {
    display: grid;
    grid-template-columns: 10rem minmax(0, 1.4fr) minmax(0, 1.4fr) minmax(0, 1fr);
    grid-template-areas: "when what who where" "when details details details";
    align-items: baseline;
    gap: var(--rs-space-1) var(--rs-space-4);
    padding: var(--rs-space-3) 0;
    border-bottom: 1px solid var(--rs-color-border);
}

.rs-audit__when[b-731p7kkact] {
    grid-area: when;
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-sm);
    font-variant-numeric: tabular-nums;
}

.rs-audit__what[b-731p7kkact] {
    grid-area: what;
    font-weight: var(--rs-font-weight-semibold);
}

.rs-audit__who[b-731p7kkact] {
    grid-area: who;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow-wrap: anywhere;
}

.rs-audit__where[b-731p7kkact] {
    grid-area: where;
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: var(--rs-text-sm);
}

.rs-audit__details[b-731p7kkact] {
    grid-area: details;
}

.rs-audit__muted[b-731p7kkact] {
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-sm);
    overflow-wrap: anywhere;
}

.rs-audit__link[b-731p7kkact] {
    padding: 0;
    border: 0;
    background: none;
    color: var(--rs-color-accent);
    font: inherit;
    text-align: start;
    cursor: pointer;
    overflow-wrap: anywhere;
}

.rs-audit__link:hover[b-731p7kkact] {
    text-decoration: underline;
}

.rs-audit__more[b-731p7kkact] {
    display: flex;
    justify-content: center;
}

@media (max-width: 48rem) {
    .rs-audit__row[b-731p7kkact] {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "what" "who" "where" "details" "when";
    }

    .rs-audit__filters[b-731p7kkact]  .rs-form-field {
        flex: 1 1 100%;
    }
}
/* /Components/Groups/GroupsPanel.razor.rz.scp.css */
/*
 * The groups management panel (E12 Phase 1). Every value is a --rs-* token; light/dark ride the semantic role
 * remap, so there is no theme block here by design.
 *
 * The shape: a header that states what a group is, then a stack of group rows. A row is a single wide target that
 * expands in place to reveal its members — membership is the point of a group, so it is one click away and stays
 * in the context of the group it belongs to rather than behind a modal. A selected row carries an accent left rule
 * so the expanded panel visibly belongs to the row above it.
 */

.rs-groups[b-nkyepxwafl] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-4);
}

/* --- header ------------------------------------------------------------------------------------- */

.rs-groups__head[b-nkyepxwafl] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--rs-space-4);
}

.rs-groups__head-text[b-nkyepxwafl] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-1);
}

.rs-groups__title[b-nkyepxwafl] {
    margin: 0;
    font-size: var(--rs-text-lg);
    font-weight: var(--rs-font-weight-semibold);
    line-height: var(--rs-line-height-tight);
    color: var(--rs-color-fg);
}

.rs-groups__subtitle[b-nkyepxwafl] {
    margin: 0;
    max-width: 52ch;
    font-size: var(--rs-text-sm);
    line-height: var(--rs-line-height-normal);
    color: var(--rs-color-fg-muted);
}

.rs-groups__new[b-nkyepxwafl] {
    flex: none;
    height: var(--rs-control-height);
    padding: 0 var(--rs-space-4);
    border: 1px solid transparent;
    border-radius: var(--rs-radius-md);
    background-color: var(--rs-color-accent);
    color: var(--rs-color-fg-on-accent);
    font-family: inherit;
    font-size: var(--rs-text-sm);
    font-weight: var(--rs-font-weight-medium);
    cursor: pointer;
}

.rs-groups__new:hover:not(:disabled)[b-nkyepxwafl] {
    background-color: var(--rs-color-accent-hover);
}

.rs-groups__new:active:not(:disabled)[b-nkyepxwafl] {
    background-color: var(--rs-color-accent-active);
}

/* --- status / error / empty --------------------------------------------------------------------- */

.rs-groups__status[b-nkyepxwafl] {
    margin: 0;
    padding: var(--rs-space-3) 0;
    font-size: var(--rs-text-sm);
    color: var(--rs-color-fg-muted);
}

.rs-groups__error[b-nkyepxwafl] {
    margin: 0;
    padding: var(--rs-space-3) var(--rs-space-4);
    border: 1px solid var(--rs-color-error-strong);
    border-radius: var(--rs-radius-md);
    background-color: var(--rs-color-error-subtle);
    font-size: var(--rs-text-sm);
    color: var(--rs-color-error-strong);
}

.rs-groups__empty[b-nkyepxwafl] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--rs-space-2);
    padding: var(--rs-space-6) var(--rs-space-4);
    border: 1px dashed var(--rs-color-border);
    border-radius: var(--rs-radius-lg);
    background-color: var(--rs-color-surface);
    text-align: center;
}

.rs-groups__empty-icon[b-nkyepxwafl] {
    font-size: var(--rs-text-xl);
    color: var(--rs-color-fg-muted);
}

.rs-groups__empty-title[b-nkyepxwafl] {
    margin: 0;
    font-size: var(--rs-text-md);
    font-weight: var(--rs-font-weight-semibold);
    color: var(--rs-color-fg);
}

.rs-groups__empty-note[b-nkyepxwafl] {
    margin: 0;
    max-width: 44ch;
    font-size: var(--rs-text-sm);
    line-height: var(--rs-line-height-normal);
    color: var(--rs-color-fg-muted);
}

/* --- the create / edit form --------------------------------------------------------------------- */

.rs-groups__form[b-nkyepxwafl],
.rs-groups__confirm[b-nkyepxwafl] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-2);
    padding: var(--rs-space-4);
    border: 1px solid var(--rs-color-border);
    border-radius: var(--rs-radius-md);
    background-color: var(--rs-color-surface-muted);
}

.rs-groups__confirm[b-nkyepxwafl] {
    border-color: var(--rs-color-error-strong);
    background-color: var(--rs-color-error-subtle);
}

.rs-groups__form-title[b-nkyepxwafl] {
    margin: 0 0 var(--rs-space-1);
    font-size: var(--rs-text-sm);
    font-weight: var(--rs-font-weight-semibold);
    color: var(--rs-color-fg);
}

.rs-groups__label[b-nkyepxwafl] {
    font-size: var(--rs-text-xs);
    font-weight: var(--rs-font-weight-medium);
    color: var(--rs-color-fg-muted);
}

.rs-groups__optional[b-nkyepxwafl] {
    font-weight: var(--rs-font-weight-normal);
}

.rs-groups__input[b-nkyepxwafl] {
    width: 100%;
    height: var(--rs-control-height);
    padding: 0 var(--rs-space-3);
    border: 1px solid var(--rs-color-border-strong);
    border-radius: var(--rs-radius-sm);
    background-color: var(--rs-color-surface);
    color: var(--rs-color-fg);
    font-family: inherit;
    font-size: var(--rs-text-sm);
}

.rs-groups__input[b-nkyepxwafl]::placeholder {
    color: var(--rs-color-fg-muted);
}

.rs-groups__form-actions[b-nkyepxwafl],
.rs-groups__confirm-actions[b-nkyepxwafl] {
    display: flex;
    gap: var(--rs-space-2);
    margin-top: var(--rs-space-2);
}

.rs-groups__save[b-nkyepxwafl] {
    height: var(--rs-control-height);
    padding: 0 var(--rs-space-4);
    border: 1px solid transparent;
    border-radius: var(--rs-radius-md);
    background-color: var(--rs-color-accent);
    color: var(--rs-color-fg-on-accent);
    font-family: inherit;
    font-size: var(--rs-text-sm);
    font-weight: var(--rs-font-weight-medium);
    cursor: pointer;
}

.rs-groups__save:hover:not(:disabled)[b-nkyepxwafl] {
    background-color: var(--rs-color-accent-hover);
}

.rs-groups__cancel[b-nkyepxwafl] {
    height: var(--rs-control-height);
    padding: 0 var(--rs-space-4);
    border: 1px solid var(--rs-color-border-strong);
    border-radius: var(--rs-radius-md);
    background-color: var(--rs-color-surface);
    color: var(--rs-color-fg);
    font-family: inherit;
    font-size: var(--rs-text-sm);
    cursor: pointer;
}

.rs-groups__cancel:hover[b-nkyepxwafl] {
    background-color: var(--rs-color-overlay-hover);
}

.rs-groups__confirm-text[b-nkyepxwafl] {
    margin: 0;
    font-size: var(--rs-text-sm);
    line-height: var(--rs-line-height-normal);
    color: var(--rs-color-fg);
}

.rs-groups__confirm-remove[b-nkyepxwafl] {
    height: var(--rs-control-height);
    padding: 0 var(--rs-space-4);
    border: 1px solid transparent;
    border-radius: var(--rs-radius-md);
    background-color: var(--rs-color-error);
    color: var(--rs-color-fg-on-accent);
    font-family: inherit;
    font-size: var(--rs-text-sm);
    font-weight: var(--rs-font-weight-medium);
    cursor: pointer;
}

.rs-groups__confirm-remove:hover:not(:disabled)[b-nkyepxwafl] {
    background-color: var(--rs-color-error-hover);
}

/* --- the group rows ----------------------------------------------------------------------------- */

.rs-groups__items[b-nkyepxwafl] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-2);
    margin: 0;
    padding: 0;
    list-style: none;
}

.rs-groups__row[b-nkyepxwafl] {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: var(--rs-space-2);
    padding: var(--rs-space-3) var(--rs-space-4);
    border: 1px solid var(--rs-color-border);
    border-left: 3px solid transparent;
    border-radius: var(--rs-radius-md);
    background-color: var(--rs-color-surface);
    box-shadow: var(--rs-shadow-sm);
}

.rs-groups__row:hover[b-nkyepxwafl] {
    background-color: var(--rs-color-row-hover);
}

.rs-groups__row--selected[b-nkyepxwafl] {
    border-left-color: var(--rs-color-accent);
    background-color: var(--rs-color-row-selected);
}

.rs-groups__row-main[b-nkyepxwafl] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--rs-space-1);
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

.rs-groups__row-name[b-nkyepxwafl] {
    font-size: var(--rs-text-md);
    font-weight: var(--rs-font-weight-semibold);
    color: var(--rs-color-fg);
}

.rs-groups__row-description[b-nkyepxwafl] {
    font-size: var(--rs-text-sm);
    color: var(--rs-color-fg-muted);
}

.rs-groups__row-count[b-nkyepxwafl] {
    font-size: var(--rs-text-xs);
    font-variant-numeric: var(--rs-font-variant-numeric);
    color: var(--rs-color-fg-muted);
}

.rs-groups__row-actions[b-nkyepxwafl] {
    display: flex;
    gap: var(--rs-space-1);
}

.rs-groups__row-action[b-nkyepxwafl] {
    height: var(--rs-control-height);
    padding: 0 var(--rs-space-3);
    border: 1px solid var(--rs-color-border-strong);
    border-radius: var(--rs-radius-sm);
    background-color: var(--rs-color-surface);
    color: var(--rs-color-fg);
    font-family: inherit;
    font-size: var(--rs-text-xs);
    cursor: pointer;
}

.rs-groups__row-action:hover:not(:disabled)[b-nkyepxwafl] {
    background-color: var(--rs-color-overlay-hover);
}

.rs-groups__row-action--danger[b-nkyepxwafl] {
    border-color: var(--rs-color-error);
    color: var(--rs-color-error-strong);
}

/* --- the expanded member panel ------------------------------------------------------------------ */

.rs-groups__members[b-nkyepxwafl] {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-3);
    margin-top: var(--rs-space-3);
    padding-top: var(--rs-space-3);
    border-top: 1px solid var(--rs-color-border);
}

.rs-groups__members-head[b-nkyepxwafl] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--rs-space-2);
}

.rs-groups__members-title[b-nkyepxwafl] {
    margin: 0;
    font-size: var(--rs-text-sm);
    font-weight: var(--rs-font-weight-semibold);
    color: var(--rs-color-fg);
}

.rs-groups__members-close[b-nkyepxwafl] {
    padding: var(--rs-space-1) var(--rs-space-2);
    border: 0;
    border-radius: var(--rs-radius-sm);
    background: none;
    color: var(--rs-color-fg-muted);
    font-family: inherit;
    font-size: var(--rs-text-xs);
    cursor: pointer;
}

.rs-groups__members-close:hover[b-nkyepxwafl] {
    background-color: var(--rs-color-overlay-hover);
    color: var(--rs-color-fg);
}

.rs-groups__members-empty[b-nkyepxwafl] {
    margin: 0;
    font-size: var(--rs-text-sm);
    color: var(--rs-color-fg-muted);
}

.rs-groups__member-items[b-nkyepxwafl] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--rs-space-2);
    margin: 0;
    padding: 0;
    list-style: none;
}

.rs-groups__member[b-nkyepxwafl] {
    display: inline-flex;
    align-items: center;
    gap: var(--rs-space-2);
    padding: var(--rs-space-1) var(--rs-space-1) var(--rs-space-1) var(--rs-space-3);
    border-radius: var(--rs-radius-pill);
    background-color: var(--rs-color-chip-indigo-bg);
    color: var(--rs-color-chip-indigo-fg);
}

.rs-groups__member-label[b-nkyepxwafl] {
    font-size: var(--rs-text-xs);
    font-weight: var(--rs-font-weight-medium);
}

.rs-groups__member-remove[b-nkyepxwafl] {
    padding: 0 var(--rs-space-2);
    border: 0;
    border-radius: var(--rs-radius-pill);
    background: none;
    color: inherit;
    font-family: inherit;
    font-size: var(--rs-text-xs);
    cursor: pointer;
    opacity: 0.75;
}

.rs-groups__member-remove:hover:not(:disabled)[b-nkyepxwafl] {
    opacity: 1;
}

/* --- add a member ------------------------------------------------------------------------------- */

.rs-groups__add-member[b-nkyepxwafl] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-2);
}

.rs-groups__add-member-row[b-nkyepxwafl] {
    display: flex;
    gap: var(--rs-space-2);
}

.rs-groups__hint[b-nkyepxwafl] {
    margin: 0;
    max-width: 60ch;
    font-size: var(--rs-text-xs);
    line-height: var(--rs-line-height-normal);
    color: var(--rs-color-fg-muted);
}

/* --- shared interaction states ------------------------------------------------------------------ */

.rs-groups button:disabled[b-nkyepxwafl] {
    opacity: 0.55;
    cursor: not-allowed;
}

.rs-groups button:focus-visible[b-nkyepxwafl],
.rs-groups__input:focus-visible[b-nkyepxwafl] {
    outline: var(--rs-focus-ring-width) solid var(--rs-color-focus-ring);
    outline-offset: 2px;
}

@media (max-width: 40rem) {
    .rs-groups__head[b-nkyepxwafl] {
        flex-direction: column;
    }

    .rs-groups__row[b-nkyepxwafl] {
        grid-template-columns: 1fr;
    }

    .rs-groups__row-actions[b-nkyepxwafl] {
        justify-content: flex-end;
    }
}
/* /Components/Layout/MainLayout.razor.rz.scp.css */
.rs-shell[b-qe4d0srdxm] {
    display: grid;
    grid-template-columns: var(--rs-sidebar-width) 1fr;
    height: 100vh;
    overflow: hidden;
    background-color: var(--rs-color-bg);
    transition: grid-template-columns 0.18s ease;
}

/* Immersive database shell (issue #124): inside a /db/{id}/… route the global nav collapses to an icon
   rail, reclaiming horizontal space for the data. Purely a column-width change here; the Sidebar renders
   its own icons-only state. The route context that toggles this lives in ShellNavViewModel. */
.rs-shell--rail[b-qe4d0srdxm] {
    grid-template-columns: var(--rs-rail-width) 1fr;
}

/* The main content lives in a white card that floats on the gray app background: inset from the
   top/right/bottom window edges with a small gap from the gray sidebar, rounded + clipped so the
   TopBar header and the scrolling content share its corners. */
.rs-shell__main[b-qe4d0srdxm] {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    margin: var(--rs-space-4) var(--rs-space-4) var(--rs-space-4) var(--rs-space-0);
    background-color: var(--rs-color-surface);
    border: 1px solid var(--rs-color-border);
    border-radius: var(--rs-radius-xl);
    box-shadow: var(--rs-shadow-sm);
    overflow: hidden;
}

.rs-shell__content[b-qe4d0srdxm] {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: var(--rs-space-5);
    background-color: var(--rs-color-surface);
    /* A flex column so a page can opt into filling the viewport (a flex:1 child that scrolls its own body, e.g.
       the records page) while ordinary pages still flow and page-scroll as before. */
    display: flex;
    flex-direction: column;
}

@media (max-width: 48rem) {
    .rs-shell[b-qe4d0srdxm] {
        grid-template-columns: 1fr;
    }

    .rs-shell__main[b-qe4d0srdxm] {
        margin: var(--rs-space-3);
    }
}
/* /Components/Layout/NotificationBell.razor.rz.scp.css */
/* The top bar's bell. Round like the other top-bar icon buttons, with the unread count as a small pill on its corner. */
.rs-bell[b-s78xgzsdiy] {
    position: relative;
    display: inline-flex;
}

.rs-bell[b-s78xgzsdiy]  .rs-icon-button {
    width: var(--rs-control-height);
    height: var(--rs-control-height);
    border-radius: var(--rs-radius-pill);
}

.rs-bell__badge[b-s78xgzsdiy] {
    position: absolute;
    top: 0.15rem;
    right: 0.1rem;
    min-width: 1.1rem;
    height: 1.1rem;
    padding: 0 0.3rem;
    border-radius: var(--rs-radius-pill);
    background-color: var(--rs-color-error);
    box-shadow: 0 0 0 2px var(--rs-color-surface);
    color: var(--rs-color-fg-on-accent);
    font-size: 0.65rem;
    font-weight: var(--rs-font-weight-semibold);
    line-height: 1.1rem;
    text-align: center;
    pointer-events: none;
}

.rs-bell__panel[b-s78xgzsdiy] {
    width: min(24rem, calc(100vw - 2rem));
}

.rs-bell__header[b-s78xgzsdiy] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--rs-space-2);
    padding: var(--rs-space-1) var(--rs-space-1) var(--rs-space-2) var(--rs-space-3);
    border-bottom: 1px solid var(--rs-color-border);
}

.rs-bell__title[b-s78xgzsdiy] {
    color: var(--rs-color-fg);
    font-size: var(--rs-text-sm);
    font-weight: var(--rs-font-weight-semibold);
}

.rs-bell__message[b-s78xgzsdiy] {
    margin: 0;
    padding: var(--rs-space-4) var(--rs-space-3);
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-sm);
    text-align: center;
}

.rs-bell__message--error[b-s78xgzsdiy] {
    padding: var(--rs-space-2) var(--rs-space-3);
    color: var(--rs-color-error);
    text-align: left;
}

.rs-bell__list[b-s78xgzsdiy] {
    max-height: 26rem;
    margin: 0;
    padding: var(--rs-space-1) 0 0;
    overflow-y: auto;
    list-style: none;
}

.rs-bell__item[b-s78xgzsdiy] {
    display: flex;
    align-items: flex-start;
    gap: var(--rs-space-3);
    width: 100%;
    padding: var(--rs-space-2) var(--rs-space-3);
    border: none;
    border-radius: var(--rs-radius-sm);
    background-color: transparent;
    color: var(--rs-color-fg-muted);
    font: inherit;
    font-size: var(--rs-text-sm);
    text-align: left;
    cursor: pointer;
    transition: background-color 0.12s ease;
}

.rs-bell__item:hover[b-s78xgzsdiy] {
    background-color: var(--rs-color-surface-muted);
}

/* A notification that leads nowhere (access that was removed) only marks itself read. */
.rs-bell__item--nolink[b-s78xgzsdiy] {
    cursor: default;
}

.rs-bell__item--unread[b-s78xgzsdiy] {
    color: var(--rs-color-fg);
}

.rs-bell__item--unread .rs-bell__item-text[b-s78xgzsdiy] {
    font-weight: var(--rs-font-weight-medium);
}

.rs-bell__item-icon[b-s78xgzsdiy] {
    width: 1rem;
    margin-top: 0.15rem;
    color: var(--rs-color-fg-muted);
}

.rs-bell__item--unread .rs-bell__item-icon[b-s78xgzsdiy] {
    color: var(--rs-color-accent);
}

.rs-bell__item-body[b-s78xgzsdiy] {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
}

.rs-bell__item-time[b-s78xgzsdiy] {
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-xs);
}

.rs-bell__item-dot[b-s78xgzsdiy] {
    flex: none;
    width: 0.5rem;
    height: 0.5rem;
    margin-top: 0.4rem;
    border-radius: var(--rs-radius-pill);
    background-color: var(--rs-color-accent);
}
/* /Components/Layout/Sidebar.razor.rz.scp.css */
.rs-sidebar[b-kwdssv6uq4] {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    /* Top inset matches the white panel's margin-top (space-4) so the rail and the panel start at the
       same Y; the logo sits near the top. */
    padding: var(--rs-space-4);
    background-color: var(--rs-color-bg);
}

/* Brand sits near the top of the rail (no divider, natural height — it no longer needs to match the
   TopBar height to align a divider). */
.rs-sidebar__brand[b-kwdssv6uq4] {
    display: flex;
    align-items: center;
    gap: var(--rs-space-3);
    padding: var(--rs-space-3) var(--rs-space-2);
}

/* Standalone brand glyph — brand-blue, a bit larger than the nav icons, no chip background. */
.rs-sidebar__brand-mark[b-kwdssv6uq4] {
    color: var(--rs-color-brand);
    font-size: 1.75rem;
}

/* Wordmark — black, enlarged to sit with the logo. */
.rs-sidebar__brand-name[b-kwdssv6uq4] {
    font-family: var(--rs-font-brand);
    font-size: 1.75rem;
    font-weight: var(--rs-font-weight-bold);
}

.rs-sidebar__nav[b-kwdssv6uq4] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-1);
    margin-top: var(--rs-space-4);
}

/* Separate the secondary nav group from the primary one with whitespace (replaces the old divider). */
.rs-sidebar__nav + .rs-sidebar__nav[b-kwdssv6uq4] {
    margin-top: var(--rs-space-5);
}

/* NavLink is a child component, so Blazor's scoped-CSS attribute never lands on the <a> it renders —
   these rules must reach through with ::deep, or the link/active styling silently doesn't apply and the
   anchors fall back to the global link colour. */
.rs-sidebar[b-kwdssv6uq4]  .rs-sidebar__link {
    display: flex;
    align-items: center;
    gap: var(--rs-space-3);
    height: 2.5rem;
    padding: 0 var(--rs-space-3);
    border-radius: var(--rs-radius-md);
    color: var(--rs-color-fg);
    font-size: var(--rs-text-sm);
    font-weight: var(--rs-font-weight-medium);
    text-decoration: none;
    transition: background-color 0.12s ease, color 0.12s ease;
}

.rs-sidebar[b-kwdssv6uq4]  .rs-sidebar__link:hover {
    background-color: var(--rs-color-surface-muted);
}

.rs-sidebar[b-kwdssv6uq4]  .rs-sidebar__icon {
    width: 1.25rem;
    text-align: center;
    color: var(--rs-color-fg-muted);
}

.rs-sidebar[b-kwdssv6uq4]  .rs-sidebar__link.active {
    background-color: var(--rs-color-accent-subtle);
    color: var(--rs-color-accent);
}

.rs-sidebar[b-kwdssv6uq4]  .rs-sidebar__link.active .rs-sidebar__icon {
    color: var(--rs-color-accent);
}

/* ── Icon rail (immersive database shell, issue #124) ─────────────────────────────────────────────────
   When Collapsed, the same nav renders icons-only: labels are visually hidden (still in the DOM for
   assistive tech, and exposed as native hover tooltips via each link's title) and the rail narrows.
   Purely visual — the links/permissions are unchanged. */
.rs-sidebar--rail[b-kwdssv6uq4] {
    padding-left: var(--rs-space-2);
    padding-right: var(--rs-space-2);
}

/* Center the brand mark and drop the wordmark. */
.rs-sidebar--rail .rs-sidebar__brand[b-kwdssv6uq4] {
    justify-content: center;
    padding-inline: 0;
}

.rs-sidebar--rail .rs-sidebar__brand-name[b-kwdssv6uq4] {
    display: none;
}

/* Collapse each link to a centered icon square. ::deep so the rules also reach the NavLink-rendered
   anchors (child component → no scope attribute on the <a> otherwise). */
.rs-sidebar--rail[b-kwdssv6uq4]  .rs-sidebar__link {
    justify-content: center;
    gap: 0;
    padding-inline: 0;
}

/* Keep the label in the DOM (screen readers + title tooltip) but take it out of the visual flow. */
.rs-sidebar--rail[b-kwdssv6uq4]  .rs-sidebar__link > span {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    white-space: nowrap;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
}

/* The back-to-databases item is the rail's pinned top affordance — give its icon the accent so the way
   out reads as primary among the icons. */
.rs-sidebar--rail[b-kwdssv6uq4]  .rs-sidebar__link--back .rs-sidebar__icon {
    color: var(--rs-color-accent);
}

.rs-sidebar__footer[b-kwdssv6uq4] {
    margin-top: auto;
    padding: var(--rs-space-3);
}
/* /Components/Layout/StorageFullNotice.razor.rz.scp.css */
.rs-storage-full[b-1sag0p7dso] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--rs-space-3);
    padding: var(--rs-space-3) var(--rs-space-4);
    border-bottom: 1px solid var(--rs-color-border);
}

.rs-storage-full__message[b-1sag0p7dso] {
    flex: 1 1 20rem;
    margin: 0;
    min-width: 0;
    font-size: var(--rs-text-sm);
}

.rs-storage-full__link[b-1sag0p7dso] {
    flex: none;
    font-size: var(--rs-text-sm);
}
/* /Components/Layout/SurfaceSwitcher.razor.rz.scp.css */
/* The Design-mode surface switcher: a compact "Design ▸ [surface]" cluster that sits in the TopBar's search
   slot. The leading mark + label name the mode; the Select carries the surface choice. */
.rs-surface-switcher[b-0str0ck0co] {
    display: flex;
    align-items: center;
    gap: var(--rs-space-2);
    min-width: 0;
}

.rs-surface-switcher__mark[b-0str0ck0co] {
    color: var(--rs-color-primary);
    font-size: var(--rs-text-sm);
}

.rs-surface-switcher__label[b-0str0ck0co] {
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-sm);
    font-weight: var(--rs-font-weight-semibold);
    white-space: nowrap;
}

/* Let the Select stay compact — it names a surface, it isn't a long field. ::deep reaches the child
   Select's own scoped DOM. */
.rs-surface-switcher[b-0str0ck0co]  .rs-select-field {
    min-width: 10rem;
}
/* /Components/Layout/TopBar.razor.rz.scp.css */
/* The TopBar is the white panel's fixed header: transparent (inherits the panel's white surface)
   with a bottom divider that aligns with the sidebar brand divider. Content scrolls beneath it. */
.rs-topbar[b-avq44j66lw] {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--rs-space-4);
    height: var(--rs-topbar-height);
    padding: 0 var(--rs-space-5);
    background-color: transparent;
    border-bottom: 1px solid var(--rs-color-border);
}

/* Database-shell breadcrumb (issue #124): identifies the current database in the chrome and links back to
   the databases list. Sits at the far left. */
.rs-topbar__crumbs[b-avq44j66lw] {
    flex: none;
    display: flex;
    align-items: center;
    gap: var(--rs-space-2);
    min-width: 0;
    font-size: var(--rs-text-sm);
}

.rs-topbar__crumb-link[b-avq44j66lw] {
    color: var(--rs-color-fg-muted);
    font-weight: var(--rs-font-weight-medium);
    text-decoration: none;
    white-space: nowrap;
}

.rs-topbar__crumb-link:hover[b-avq44j66lw] {
    color: var(--rs-color-fg);
    text-decoration: underline;
}

.rs-topbar__crumb-sep[b-avq44j66lw] {
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-xs);
}

.rs-topbar__crumb-current[b-avq44j66lw] {
    color: var(--rs-color-fg);
    font-weight: var(--rs-font-weight-semibold);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Design mode (epic #257): the surface switcher + "Done" exit, left-aligned ahead of the action cluster. */
.rs-topbar__design[b-avq44j66lw] {
    display: flex;
    align-items: center;
    gap: var(--rs-space-3);
    flex: 1 1 auto;
    min-width: 0;
    max-width: 36rem;
}

.rs-topbar__cluster[b-avq44j66lw] {
    display: flex;
    align-items: center;
    gap: var(--rs-space-3);
    flex: none;
    margin-left: auto;
}

/* Make the wrapped IconButtons circular (the inner button carries its own scope). */
.rs-topbar__round[b-avq44j66lw]  .rs-icon-button {
    width: var(--rs-control-height);
    height: var(--rs-control-height);
    border-radius: var(--rs-radius-pill);
}

.rs-topbar__divider[b-avq44j66lw] {
    width: 1px;
    height: 1.5rem;
    background-color: var(--rs-color-border);
}

.rs-topbar__user[b-avq44j66lw] {
    display: inline-flex;
    align-items: center;
    gap: var(--rs-space-2);
    padding: var(--rs-space-1) var(--rs-space-2);
    border: none;
    border-radius: var(--rs-radius-pill);
    background-color: transparent;
    color: var(--rs-color-fg);
    font: inherit;
    font-size: var(--rs-text-sm);
    font-weight: var(--rs-font-weight-medium);
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.12s ease;
}

.rs-topbar__user:hover[b-avq44j66lw] {
    background-color: var(--rs-color-surface-muted);
}

.rs-dropdown-link[b-avq44j66lw],
.rs-dropdown-signout[b-avq44j66lw] {
    display: flex;
    align-items: center;
    gap: var(--rs-space-2);
    width: 100%;
    padding: var(--rs-space-2) var(--rs-space-3);
    border: none;
    border-radius: var(--rs-radius-sm);
    background-color: transparent;
    color: var(--rs-color-fg);
    font: inherit;
    font-size: var(--rs-text-sm);
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.rs-dropdown-link:hover[b-avq44j66lw],
.rs-dropdown-signout:hover[b-avq44j66lw] {
    background-color: var(--rs-color-surface-muted);
}

.rs-dropdown-link i[b-avq44j66lw],
.rs-dropdown-signout i[b-avq44j66lw] {
    width: 1rem;
    color: var(--rs-color-fg-muted);
}
/* /Components/Pages/Admin/AdminAudit.razor.rz.scp.css */
.rs-admin-audit[b-d0i206hw0z] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-5);
}

.rs-admin-audit__note[b-d0i206hw0z] {
    margin: 0;
    color: var(--rs-color-fg-muted);
}
/* /Components/Pages/Admin/AdminInvites.razor.rz.scp.css */
.rs-admin-invites[b-z38lah01d2] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-5);
    max-width: 48rem;
}

.rs-admin-invites__note[b-z38lah01d2] {
    margin: 0;
}

.rs-admin-invites__form[b-z38lah01d2] {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: var(--rs-space-3);
}

.rs-admin-invites__form[b-z38lah01d2]  .rs-form-field {
    flex: 1 1 16rem;
    min-width: 0;
}

.rs-admin-invites__list[b-z38lah01d2] {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--rs-color-border);
}

.rs-admin-invites__row[b-z38lah01d2] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--rs-space-2) var(--rs-space-4);
    padding: var(--rs-space-3) 0;
    border-bottom: 1px solid var(--rs-color-border);
}

.rs-admin-invites__email[b-z38lah01d2] {
    flex: 1 1 14rem;
    min-width: 0;
    overflow-wrap: anywhere;
    font-weight: var(--rs-font-weight-semibold);
}

.rs-admin-invites__muted[b-z38lah01d2] {
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-sm);
}
/* /Components/Pages/Admin/AdminUser.razor.rz.scp.css */
.rs-admin-user[b-bqiufdmfne] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-5);
    max-width: 48rem;
}

.rs-admin-user__back[b-bqiufdmfne] {
    display: inline-flex;
    align-items: center;
    gap: var(--rs-space-2);
    color: var(--rs-color-fg-muted);
    text-decoration: none;
}

.rs-admin-user__back:hover[b-bqiufdmfne] {
    color: var(--rs-color-fg);
}

.rs-admin-user__card[b-bqiufdmfne],
.rs-admin-user__section[b-bqiufdmfne] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-3);
    padding: var(--rs-space-4);
    border: 1px solid var(--rs-color-border);
    border-radius: var(--rs-radius-lg);
    background: var(--rs-color-surface);
}

.rs-admin-user__email[b-bqiufdmfne],
.rs-admin-user__heading[b-bqiufdmfne] {
    margin: 0;
    font-size: var(--rs-text-md, 1rem);
    font-weight: var(--rs-font-weight-semibold);
    overflow-wrap: anywhere;
}

.rs-admin-user__muted[b-bqiufdmfne],
.rs-admin-user__notice[b-bqiufdmfne] {
    margin: 0;
}

.rs-admin-user__muted[b-bqiufdmfne] {
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-sm);
}

.rs-admin-user__badges[b-bqiufdmfne],
.rs-admin-user__actions[b-bqiufdmfne] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--rs-space-2);
}

.rs-admin-user__facts[b-bqiufdmfne] {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: var(--rs-space-2) var(--rs-space-4);
    margin: 0;
}

.rs-admin-user__facts dt[b-bqiufdmfne] {
    color: var(--rs-color-fg-muted);
}

.rs-admin-user__facts dd[b-bqiufdmfne] {
    margin: 0;
    overflow-wrap: anywhere;
}

.rs-admin-user__id[b-bqiufdmfne] {
    font-family: var(--rs-font-mono, monospace);
    font-size: var(--rs-text-sm);
}

.rs-admin-user__control[b-bqiufdmfne] {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: var(--rs-space-3);
}

.rs-admin-user__control[b-bqiufdmfne]  .rs-form-field {
    flex: 1 1 12rem;
    min-width: 0;
}

@media (max-width: 40rem) {
    .rs-admin-user__facts[b-bqiufdmfne] {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .rs-admin-user__facts dd[b-bqiufdmfne] {
        margin-bottom: var(--rs-space-2);
    }
}
/* /Components/Pages/Admin/AdminUsers.razor.rz.scp.css */
.rs-admin[b-2ifaofqdub] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-5);
}

.rs-admin__search[b-2ifaofqdub] {
    display: flex;
    gap: var(--rs-space-3);
    max-width: 36rem;
}

.rs-admin__search[b-2ifaofqdub]  .rs-text-field,
.rs-admin__search[b-2ifaofqdub]  input {
    flex: 1;
    min-width: 0;
}

.rs-admin__list[b-2ifaofqdub] {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--rs-color-border);
}

.rs-admin__row[b-2ifaofqdub] {
    display: grid;
    grid-template-columns: minmax(0, 2fr) auto minmax(0, 1.5fr) minmax(0, 1.2fr);
    align-items: center;
    gap: var(--rs-space-4);
    padding: var(--rs-space-3) 0;
    border-bottom: 1px solid var(--rs-color-border);
}

.rs-admin__who[b-2ifaofqdub] {
    display: flex;
    flex-direction: column;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.rs-admin__who:hover .rs-admin__email[b-2ifaofqdub] {
    text-decoration: underline;
}

.rs-admin__email[b-2ifaofqdub] {
    overflow-wrap: anywhere;
    font-weight: var(--rs-font-weight-semibold);
}

.rs-admin__badges[b-2ifaofqdub] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--rs-space-2);
}

.rs-admin__muted[b-2ifaofqdub] {
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-sm);
    overflow-wrap: anywhere;
}

.rs-admin__pager[b-2ifaofqdub] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--rs-space-3);
}

.rs-admin__pager > span[b-2ifaofqdub] {
    flex: 1;
}

@media (max-width: 48rem) {
    .rs-admin__row[b-2ifaofqdub] {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--rs-space-2);
    }

    .rs-admin__search[b-2ifaofqdub] {
        max-width: none;
    }
}
/* /Components/Pages/Data/AskBox.razor.rz.scp.css */
/* The Ask box sits under the records toolbar, above the Find and Sort panels its answer fills. */
.rs-ask[b-h067qaut54] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-2);
    padding: var(--rs-space-2) var(--rs-space-3);
    border-bottom: 1px solid var(--rs-color-border);
}

.rs-ask__form[b-h067qaut54] {
    display: flex;
    align-items: center;
    gap: var(--rs-space-2);
}

.rs-ask__icon[b-h067qaut54] {
    color: var(--rs-color-accent);
}

/* .rs-text-field is width:100%; the input takes the row's free space and shrinks before the button does. */
.rs-ask__input[b-h067qaut54] {
    flex: 1 1 auto;
    min-width: 0;
}

.rs-ask__status[b-h067qaut54] {
    margin: 0;
    color: var(--rs-color-fg-muted);
}

.rs-ai-hint[b-h067qaut54] {
    margin: 0;
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-sm);
}

.rs-ask__message[b-h067qaut54] {
    display: flex;
    align-items: flex-start;
    gap: var(--rs-space-2);
    padding: var(--rs-space-2) var(--rs-space-3);
    border-radius: var(--rs-radius-md);
    background: var(--rs-color-accent-subtle);
    color: var(--rs-color-fg);
}

.rs-ask__message > span[b-h067qaut54] {
    flex: 1 1 auto;
}

.rs-ask__message--unanswered[b-h067qaut54] {
    background: var(--rs-color-warning-subtle);
}

.rs-ask__message--error[b-h067qaut54] {
    background: var(--rs-color-error-subtle);
}

.rs-ask__dismiss[b-h067qaut54] {
    border: 0;
    background: none;
    padding: 0;
    color: var(--rs-color-fg-muted);
    cursor: pointer;
}

.rs-ask__dismiss:hover[b-h067qaut54] {
    color: var(--rs-color-fg);
}
/* /Components/Pages/Data/FindPanel.razor.rz.scp.css */
/* The panel surface, header and footer come from the shared .rs-data-panel chrome (components.css); the rules
   here are the Find panel's own layout — the criterion rows and their sized field / operator / value cells. */
.rs-find-panel__rows[b-a7bsc3by4s] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-2);
}

.rs-find-panel__row[b-a7bsc3by4s] {
    display: flex;
    align-items: center;
    gap: var(--rs-space-2);
    flex-wrap: wrap;
}

/* The field controls are width:100% (built to fill a FormField), so each is wrapped in a sized flex cell to
   keep field / operator / value on one line. The min-widths let the row wrap to stacked only when cramped
   (e.g. a narrow / mobile viewport); the "not" checkbox and the remove icon-button size to their content. */
.rs-find-panel__field[b-a7bsc3by4s] {
    flex: 1 1 12rem;
    min-width: 9rem;
}

.rs-find-panel__op[b-a7bsc3by4s] {
    flex: 0 1 11rem;
    min-width: 8rem;
}

.rs-find-panel__value[b-a7bsc3by4s] {
    flex: 2 1 12rem;
    min-width: 9rem;
}

.rs-find-panel__match[b-a7bsc3by4s] {
    display: flex;
    align-items: center;
    gap: var(--rs-space-2);
}

.rs-find-panel__actions[b-a7bsc3by4s] {
    display: flex;
    align-items: center;
    gap: var(--rs-space-2);
    margin-left: auto;
}

.rs-find-panel__result[b-a7bsc3by4s] {
    margin: 0;
    color: var(--rs-color-fg-muted);
}
/* /Components/Pages/Data/RecentlyDeletedDialog.razor.rz.scp.css */
.rs-recently-deleted[b-8raz2dty09] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-4);
}

.rs-recently-deleted__intro[b-8raz2dty09],
.rs-recently-deleted__notice[b-8raz2dty09],
.rs-recently-deleted__loading[b-8raz2dty09] {
    margin: 0;
}

.rs-recently-deleted__list[b-8raz2dty09] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-3);
    margin: 0;
    padding: 0;
    list-style: none;
}

.rs-recently-deleted__row[b-8raz2dty09] {
    display: flex;
    align-items: center;
    gap: var(--rs-space-4);
    padding-bottom: var(--rs-space-3);
    border-bottom: 1px solid var(--rs-color-border);
}

.rs-recently-deleted__text[b-8raz2dty09] {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: var(--rs-space-1);
    min-width: 0;
}

.rs-recently-deleted__title[b-8raz2dty09] {
    overflow-wrap: anywhere;
    font-weight: var(--rs-font-weight-semibold);
}

.rs-recently-deleted__meta[b-8raz2dty09],
.rs-recently-deleted__days[b-8raz2dty09] {
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-sm);
}

/* At phone width the text takes the whole row and the time left and Restore wrap beneath it. */
@media (max-width: 40rem) {
    .rs-recently-deleted__row[b-8raz2dty09] {
        flex-wrap: wrap;
    }

    .rs-recently-deleted__text[b-8raz2dty09] {
        flex-basis: 100%;
    }
}
/* /Components/Pages/Data/RecordAppearancesSection.razor.rz.scp.css */
.rs-record-form__appearances[b-xlbam7ti9b] {
    margin-top: var(--rs-space-4, 1rem);
    padding-top: var(--rs-space-4, 1rem);
    border-top: 1px solid var(--rs-color-border, #d1d5db);
}
/* /Components/Pages/Data/RecordCsvImportDialog.razor.rz.scp.css */
.rs-csv-import[b-fgms15uq29] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-4);
}

.rs-csv-import__file[b-fgms15uq29] {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--rs-space-3);
    padding: var(--rs-space-4);
    border: 1px dashed var(--rs-color-border-strong);
    border-radius: var(--rs-radius-md);
    background-color: var(--rs-color-surface-muted);
    cursor: pointer;
}

.rs-csv-import__file:hover[b-fgms15uq29] {
    border-color: var(--rs-color-accent);
}

.rs-csv-import__file:focus-within[b-fgms15uq29] {
    outline: var(--rs-focus-ring-width) solid var(--rs-color-focus-ring);
    outline-offset: 2px;
}

.rs-csv-import__file--busy[b-fgms15uq29] {
    cursor: progress;
    opacity: 0.7;
}

/* The native input covers the whole drop zone, so a click or a dropped file anywhere on it reaches the input. */
.rs-csv-import__file[b-fgms15uq29]  input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: inherit;
}

.rs-csv-import__file-icon[b-fgms15uq29] {
    font-size: var(--rs-text-2xl);
    color: var(--rs-color-accent);
}

.rs-csv-import__file-text[b-fgms15uq29] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-1);
    min-width: 0;
    overflow-wrap: anywhere;
}

.rs-csv-import__file-hint[b-fgms15uq29],
.rs-csv-import__status[b-fgms15uq29],
.rs-csv-import__samples[b-fgms15uq29],
.rs-csv-import__note[b-fgms15uq29],
.rs-csv-import__more[b-fgms15uq29] {
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-xs);
}

.rs-csv-import__status[b-fgms15uq29],
.rs-csv-import__more[b-fgms15uq29] {
    margin: 0;
}

.rs-csv-import__summary[b-fgms15uq29] {
    margin: 0;
    padding: var(--rs-space-2) var(--rs-space-3);
    border-radius: var(--rs-radius-md);
    font-weight: var(--rs-font-weight-medium);
}

.rs-csv-import__summary--ready[b-fgms15uq29] {
    background-color: var(--rs-color-success-subtle);
    color: var(--rs-color-success-strong);
}

.rs-csv-import__summary--blocked[b-fgms15uq29] {
    background-color: var(--rs-color-warning-subtle);
    color: var(--rs-color-fg);
}

.rs-csv-import__problems[b-fgms15uq29] {
    margin: 0;
    padding-left: var(--rs-space-5);
    color: var(--rs-color-error-strong);
}

.rs-csv-import__columns[b-fgms15uq29] {
    width: 100%;
    border-collapse: collapse;
}

.rs-csv-import__columns th[b-fgms15uq29],
.rs-csv-import__columns td[b-fgms15uq29] {
    padding: var(--rs-space-2);
    border-bottom: 1px solid var(--rs-color-border);
    text-align: left;
    vertical-align: top;
}

.rs-csv-import__columns thead th[b-fgms15uq29] {
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-xs);
    font-weight: var(--rs-font-weight-semibold);
}

.rs-csv-import__columns tbody th[b-fgms15uq29] {
    width: 45%;
    font-weight: var(--rs-font-weight-normal);
}

.rs-csv-import__note[b-fgms15uq29] {
    display: block;
    margin-top: var(--rs-space-1);
}

.rs-csv-import__header[b-fgms15uq29] {
    display: block;
    font-weight: var(--rs-font-weight-medium);
    overflow-wrap: anywhere;
}

.rs-csv-import__samples[b-fgms15uq29] {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 18rem;
}

.rs-csv-import__column--skipped .rs-csv-import__header[b-fgms15uq29] {
    color: var(--rs-color-fg-muted);
}

.rs-csv-import__rows[b-fgms15uq29] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-2);
}

.rs-csv-import__rows-head[b-fgms15uq29] {
    margin: 0;
    font-size: var(--rs-text-sm);
}

.rs-csv-import__rows ul[b-fgms15uq29] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-1);
    margin: 0;
    padding: 0;
    list-style: none;
}

.rs-csv-import__rows li[b-fgms15uq29] {
    display: flex;
    gap: var(--rs-space-3);
}

.rs-csv-import__row-number[b-fgms15uq29] {
    flex: none;
    min-width: 4rem;
    color: var(--rs-color-fg-muted);
}

@media (max-width: 40rem) {
    .rs-csv-import__columns tbody th[b-fgms15uq29] {
        width: auto;
    }

    .rs-csv-import__samples[b-fgms15uq29] {
        max-width: 10rem;
    }
}
/* /Components/Pages/Data/RecordPageViewerSection.razor.rz.scp.css */
.rs-record-form__page-viewer[b-t4rxikmj7j] {
    margin-top: var(--rs-space-4, 1rem);
    padding-top: var(--rs-space-4, 1rem);
    border-top: 1px solid var(--rs-color-border, #d1d5db);
}

.rs-record-form__appearances-title[b-t4rxikmj7j] {
    margin: 0 0 var(--rs-space-3, 0.75rem);
    font-size: var(--rs-text-md, 1rem);
    font-weight: 600;
}
/* /Components/Pages/Data/ReviewPage.razor.rz.scp.css */
/* Unified review page (DC.3): two stacked sections — data checks and sync conflicts. Tokens only. */

.rs-review-page[b-acp7s6226c] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-5);
    width: min(100%, 72rem);
    margin: 0 auto;
    padding: var(--rs-space-5);
}

.rs-review-page__crumbs[b-acp7s6226c] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--rs-space-2);
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-sm);
}

.rs-review-page__crumbs a[b-acp7s6226c] {
    color: var(--rs-color-accent);
}

.rs-review-page__section[b-acp7s6226c] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-3);
}

.rs-review-page__section-head[b-acp7s6226c] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-1);
}

.rs-review-page__section-title[b-acp7s6226c] {
    margin: 0;
    font-size: var(--rs-text-lg);
    font-weight: var(--rs-font-weight-semibold);
    color: var(--rs-color-fg);
}

.rs-review-page__section-note[b-acp7s6226c] {
    margin: 0;
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-sm);
    line-height: var(--rs-line-height-snug);
}

@media (max-width: 40rem) {
    .rs-review-page[b-acp7s6226c] {
        padding: var(--rs-space-3);
    }
}
/* /Components/Pages/Data/SortPanel.razor.rz.scp.css */
/* The panel surface, header and footer come from the shared .rs-data-panel chrome (components.css); the rules
   here are the Sort panel's own layout — the ordered sort-key rows, the priority badge and the field cells. */
.rs-sort-panel__empty[b-smhja8nrh1] {
    margin: 0;
    color: var(--rs-color-fg-muted);
}

.rs-sort-panel__keys[b-smhja8nrh1] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-2);
}

.rs-sort-panel__key[b-smhja8nrh1] {
    display: flex;
    align-items: center;
    gap: var(--rs-space-2);
    flex-wrap: wrap;
}

.rs-sort-panel__priority[b-smhja8nrh1] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    border-radius: var(--rs-radius-md);
    background: var(--rs-color-accent);
    color: var(--rs-color-fg-on-accent);
    font-size: var(--rs-text-xs);
}

.rs-sort-panel__field[b-smhja8nrh1] {
    flex: 1 1 8rem;
    min-width: 8rem;
    font-weight: 600;
}

/* The direction Select is width:100%, so wrap it in a sized flex cell to keep the key on one line; the
   reorder / remove icon-buttons size to their content. The row wraps to stacked only when cramped. */
.rs-sort-panel__direction[b-smhja8nrh1] {
    flex: 0 1 11rem;
    min-width: 8rem;
}

.rs-sort-panel__add[b-smhja8nrh1] {
    display: flex;
    align-items: center;
    gap: var(--rs-space-2);
}
/* /Components/Pages/Design/DesignWorkspace.razor.rz.scp.css */
/* The page column for the surfaces that are a single form rather than a master/detail split. */
.rs-design-workspace__page[b-a5i0jcfjjn] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-5);
    width: 100%;
    max-width: 60rem;
    margin: 0 auto;
    padding: var(--rs-space-6);
}
/* /Components/Pages/Design/PrivilegesSurface.razor.rz.scp.css */
/* Privileges surface (E5 Phase 2, #381) — the owner-only, database-scoped management page that hosts the P2
   privilege-set editor + assignment panel against a real database. Every value is a --rs-* token, so light/dark ride
   the semantic role remap. Layout: a padded, max-width column of two carded sections — Privilege sets, then Member
   assignments — over the shared PageHeader, with the set editor living in a Modal. This surface owns all of its
   styling (no borrowed/shared surface classes). */

.rs-privileges[b-vez2x0zo8x] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-5);
    max-width: 60rem;
    margin: 0 auto;
    padding: var(--rs-space-6);
}

/* ---- Sections (carded) ---- */
.rs-privileges__section[b-vez2x0zo8x] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-4);
    padding: var(--rs-space-5);
    border: 1px solid var(--rs-color-border);
    border-radius: var(--rs-radius-lg);
    background-color: var(--rs-color-surface);
    box-shadow: var(--rs-shadow-sm);
}

.rs-privileges__section-head[b-vez2x0zo8x] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-1);
}

.rs-privileges__section-title[b-vez2x0zo8x] {
    margin: 0;
    color: var(--rs-color-fg);
    font-size: var(--rs-text-md);
    font-weight: var(--rs-font-weight-semibold);
}

.rs-privileges__section-hint[b-vez2x0zo8x] {
    margin: 0;
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-xs);
    line-height: var(--rs-line-height-snug);
}

/* ---- Privilege-set list ---- */
.rs-privileges__set-list[b-vez2x0zo8x] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-2);
}

.rs-privileges__set[b-vez2x0zo8x] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--rs-space-3);
    padding: var(--rs-space-3) var(--rs-space-4);
    border: 1px solid var(--rs-color-border);
    border-radius: var(--rs-radius-md);
    background-color: var(--rs-color-surface);
    transition: border-color 120ms ease, background-color 120ms ease;
}

.rs-privileges__set:hover[b-vez2x0zo8x] {
    border-color: var(--rs-color-accent);
    background-color: var(--rs-color-row-hover);
}

/* Built-in sets read as read-only reference rows — a muted, dashed frame sets them apart from the owner's own sets. */
.rs-privileges__set--builtin[b-vez2x0zo8x] {
    border-style: dashed;
    background-color: var(--rs-color-surface-muted);
}

.rs-privileges__set--builtin:hover[b-vez2x0zo8x] {
    border-color: var(--rs-color-border-strong);
    background-color: var(--rs-color-surface-muted);
}

.rs-privileges__set-info[b-vez2x0zo8x] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--rs-space-2) var(--rs-space-3);
    min-width: 0;
}

.rs-privileges__set-name[b-vez2x0zo8x] {
    display: inline-flex;
    align-items: center;
    gap: var(--rs-space-2);
    color: var(--rs-color-fg);
    font-size: var(--rs-text-sm);
    font-weight: var(--rs-font-weight-semibold);
}

.rs-privileges__set-icon[b-vez2x0zo8x] {
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-sm);
}

.rs-privileges__set-meta[b-vez2x0zo8x] {
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-xs);
}

.rs-privileges__set-description[b-vez2x0zo8x] {
    flex-basis: 100%;
    max-width: 48rem;
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-xs);
    line-height: var(--rs-line-height-snug);
}

.rs-privileges__badge[b-vez2x0zo8x] {
    display: inline-flex;
    align-items: center;
    padding: 0 var(--rs-space-2);
    height: 1.35rem;
    border-radius: var(--rs-radius-pill);
    background-color: var(--rs-color-chip-indigo-bg);
    color: var(--rs-color-chip-indigo-fg);
    font-size: var(--rs-text-xs);
    font-weight: var(--rs-font-weight-medium);
    letter-spacing: 0.02em;
}

.rs-privileges__set-actions[b-vez2x0zo8x] {
    display: flex;
    align-items: center;
    gap: var(--rs-space-2);
    flex: 0 0 auto;
}

.rs-privileges__empty-hint[b-vez2x0zo8x] {
    margin: 0;
    padding: var(--rs-space-3) var(--rs-space-4);
    border: 1px dashed var(--rs-color-border);
    border-radius: var(--rs-radius-md);
    background-color: var(--rs-color-surface-muted);
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-xs);
    line-height: var(--rs-line-height-snug);
}

@media (max-width: 40rem) {
    .rs-privileges[b-vez2x0zo8x] {
        padding: var(--rs-space-4);
    }

    .rs-privileges__set[b-vez2x0zo8x] {
        align-items: flex-start;
    }

    .rs-privileges__set-actions[b-vez2x0zo8x] {
        width: 100%;
        justify-content: flex-end;
    }
}
/* /Components/Pages/Design/ReplicasSurface.razor.rz.scp.css */
/* Replicas surface (replica-safe-serial epic, Phase 2, #497) — the owner-only, database-scoped page that names each
   replica the database has seen. Every value is a --rs-* token, so light/dark ride the semantic role remap. Layout: a
   padded, max-width column of rows over the shared PageHeader, with the annotation form living in a Modal. This
   surface owns all of its styling (no borrowed/shared surface classes).

   The design idea the styling carries: the SHORT CODE is the anchor — it is what an admin sees on a serial and comes
   here to decode — so it leads each row in mono, chip-framed, and the human name reads as its expansion. An
   unlabelled replica is drawn as an unfinished row (dashed, muted), never as an error: it is a display gap, and its
   serials are perfectly valid. */

.rs-replicas[b-dqkiz70s8t] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-5);
    max-width: 60rem;
    margin: 0 auto;
    padding: var(--rs-space-6);
}

/* ---- Replica rows ---- */
.rs-replicas__list[b-dqkiz70s8t] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-2);
}

.rs-replicas__row[b-dqkiz70s8t] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--rs-space-3);
    padding: var(--rs-space-3) var(--rs-space-4);
    border: 1px solid var(--rs-color-border);
    border-radius: var(--rs-radius-md);
    background-color: var(--rs-color-surface);
    box-shadow: var(--rs-shadow-sm);
    transition: border-color 120ms ease, background-color 120ms ease;
}

.rs-replicas__row:hover[b-dqkiz70s8t] {
    border-color: var(--rs-color-accent);
    background-color: var(--rs-color-row-hover);
}

/* An unnamed replica reads as an unfinished row inviting a name — not as a fault. */
.rs-replicas__row--unlabelled[b-dqkiz70s8t] {
    border-style: dashed;
    background-color: var(--rs-color-surface-muted);
}

.rs-replicas__row--unlabelled:hover[b-dqkiz70s8t] {
    border-color: var(--rs-color-border-strong);
    background-color: var(--rs-color-surface-muted);
}

.rs-replicas__identity[b-dqkiz70s8t] {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--rs-space-2) var(--rs-space-3);
    min-width: 0;
}

/* The code is machine-derived and read aloud off a field device — mono, tabular, chip-framed so it never blends
   into the prose beside it. */
.rs-replicas__code[b-dqkiz70s8t] {
    display: inline-flex;
    align-items: center;
    padding: 0 var(--rs-space-2);
    height: 1.5rem;
    border-radius: var(--rs-radius-sm);
    background-color: var(--rs-color-chip-indigo-bg);
    color: var(--rs-color-chip-indigo-fg);
    font-family: var(--rs-font-mono);
    font-variant-numeric: var(--rs-font-variant-numeric);
    font-size: var(--rs-text-sm);
    font-weight: var(--rs-font-weight-semibold);
    letter-spacing: 0.04em;
}

.rs-replicas__name[b-dqkiz70s8t] {
    color: var(--rs-color-fg);
    font-size: var(--rs-text-sm);
    font-weight: var(--rs-font-weight-semibold);
}

.rs-replicas__row--unlabelled .rs-replicas__name[b-dqkiz70s8t] {
    color: var(--rs-color-fg-muted);
    font-weight: var(--rs-font-weight-normal);
    font-style: italic;
}

/* The worked example — "this is how one of its serials will read" — is supporting evidence, so it sits quiet and
   mono beneath the name. */
.rs-replicas__sample[b-dqkiz70s8t] {
    color: var(--rs-color-fg-muted);
    font-family: var(--rs-font-mono);
    font-size: var(--rs-text-xs);
    line-height: var(--rs-line-height-snug);
}

.rs-replicas__meta[b-dqkiz70s8t] {
    display: flex;
    align-items: center;
    gap: var(--rs-space-3);
    flex: 0 0 auto;
}

.rs-replicas__seen[b-dqkiz70s8t] {
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-xs);
    white-space: nowrap;
}

/* ---- Annotation form (inside the Modal) ---- */
.rs-replicas__editor[b-dqkiz70s8t] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-4);
    min-width: min(26rem, 100%);
}

.rs-replicas__editor-hint[b-dqkiz70s8t] {
    margin: 0;
    padding: var(--rs-space-3) var(--rs-space-4);
    border: 1px solid var(--rs-color-border);
    border-radius: var(--rs-radius-md);
    background-color: var(--rs-color-surface-muted);
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-xs);
    line-height: var(--rs-line-height-snug);
}

@media (max-width: 40rem) {
    .rs-replicas[b-dqkiz70s8t] {
        padding: var(--rs-space-4);
    }

    .rs-replicas__row[b-dqkiz70s8t] {
        align-items: flex-start;
    }

    .rs-replicas__meta[b-dqkiz70s8t] {
        width: 100%;
        justify-content: space-between;
    }
}
/* /Components/Pages/Design/ReportsSurface.razor.rz.scp.css */
/* E9 Phase 4 — the Reports design surface's own chrome. The master list here carries per-row Run/Delete
   actions (unlike the shared rs-table-master panes), so it gets bespoke classes — but styled to the SAME visual
   language as its siblings (Schema / Layouts / Value Lists): a workspace-height header whose divider lines up
   across the master | detail split, a small-caps muted title, and accent-subtle selection. Every colour and gap
   is a design token, so light and dark themes track automatically with no per-theme overrides. */

/* --- master: the saved-reports list ----------------------------------------------------------- */

.rs-reports__master-header[b-yd60agj6lj] {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--rs-space-2);
    /* Match the shared master-pane header height so this bottom divider lines up with the detail toolbar's,
       reading as one continuous rule across the split. */
    height: var(--rs-workspace-header-height);
    padding: 0 var(--rs-space-3);
    border-bottom: 1px solid var(--rs-color-border);
}

.rs-reports__master-title[b-yd60agj6lj] {
    margin: 0;
    font-size: var(--rs-text-sm);
    font-weight: var(--rs-font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--rs-color-fg-muted);
}

/* Fills the remaining master height and scrolls on its own (the loaded list is a direct flex child of the
   workspace master column, so header stays pinned while a long report list scrolls beneath it). */
.rs-reports__master-list[b-yd60agj6lj] {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    margin: 0;
    padding: var(--rs-space-2);
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* A row is the selectable label plus a trailing Run/Delete action cluster, laid out so the actions pin right. */
.rs-reports__master-row[b-yd60agj6lj] {
    display: flex;
    align-items: center;
    gap: var(--rs-space-1);
    border-radius: var(--rs-radius-sm);
}

.rs-reports__master-row:hover[b-yd60agj6lj] {
    background-color: var(--rs-color-surface-muted);
}

.rs-reports__master-row--selected[b-yd60agj6lj],
.rs-reports__master-row--selected:hover[b-yd60agj6lj] {
    background-color: var(--rs-color-accent-subtle);
}

/* The selectable label: report name over a small summary-count meta line. */
.rs-reports__master-button[b-yd60agj6lj] {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: var(--rs-space-2);
    background: none;
    border: 0;
    border-radius: var(--rs-radius-sm);
    cursor: pointer;
    text-align: left;
    color: var(--rs-color-fg);
    font: inherit;
}

.rs-reports__master-button:focus-visible[b-yd60agj6lj] {
    outline: 2px solid var(--rs-color-accent);
    outline-offset: -2px;
}

.rs-reports__master-name[b-yd60agj6lj] {
    font-size: var(--rs-text-sm);
    font-weight: var(--rs-font-weight-medium);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rs-reports__master-row--selected .rs-reports__master-name[b-yd60agj6lj] {
    color: var(--rs-color-accent);
}

.rs-reports__master-meta[b-yd60agj6lj] {
    font-size: var(--rs-text-xs);
    color: var(--rs-color-fg-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Run/Delete pinned right. Dimmed while the row is at rest so the list reads calmly, but always present
   (never hover-only — Run must stay reachable on touch and by keyboard). */
.rs-reports__master-actions[b-yd60agj6lj] {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: var(--rs-space-1);
    padding-right: var(--rs-space-1);
    opacity: 0.55;
    transition: opacity 0.12s ease-in-out;
}

.rs-reports__master-row:hover .rs-reports__master-actions[b-yd60agj6lj],
.rs-reports__master-row--selected .rs-reports__master-actions[b-yd60agj6lj],
.rs-reports__master-actions:focus-within[b-yd60agj6lj] {
    opacity: 1;
}

/* The report-editor detail block (.rs-report-detail*) is shared with the /styleguide demo, so — per the same
   rule the master-pane chrome follows — it lives in the GLOBAL wwwroot/css/components.css, not here: a scoped
   .razor.css only styles its own component, which would leave the styleguide's editor mock unstyled. */
/* /Components/Pages/Design/ResidencySurface.razor.rz.scp.css */
/* "Data on devices" surface: a column of sections, each a heading with its rows beneath. Rows wrap rather than scroll,
   so the form holds together at phone width. Every value is a --rs-* token, so light and dark follow the role remap. */

.rs-residency[b-o9wrea0341] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-5);
}

.rs-residency__section[b-o9wrea0341] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-3);
    padding-top: var(--rs-space-4);
    border-top: 1px solid var(--rs-color-border);
}

.rs-residency__head[b-o9wrea0341] {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--rs-space-3);
}

.rs-residency__title[b-o9wrea0341] {
    margin: 0;
    font-size: var(--rs-text-md);
    font-weight: var(--rs-font-weight-semibold);
}

.rs-residency__hint[b-o9wrea0341],
.rs-residency__empty[b-o9wrea0341] {
    margin: var(--rs-space-1) 0 0;
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-sm);
}

.rs-residency__row[b-o9wrea0341] {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: var(--rs-space-3);
}

.rs-residency__row[b-o9wrea0341]  .rs-form-field {
    flex: 1 1 9rem;
    min-width: 0;
}

.rs-residency__tables[b-o9wrea0341] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--rs-space-2) var(--rs-space-5);
}

.rs-residency__actions[b-o9wrea0341] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--rs-space-3);
}

.rs-residency__status[b-o9wrea0341] {
    margin: 0;
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-sm);
}
/* /Components/Pages/Design/ScriptsSurface.razor.rz.scp.css */
/* E10 Phase 1 — the Scripts design surface's own chrome. The master list here carries per-row Run/Delete actions
   (unlike the shared rs-table-master panes), so it gets bespoke classes — but styled to the SAME visual language as
   its siblings (Schema / Layouts / Value Lists / Reports): a workspace-height header whose divider lines up across
   the master | detail split, a small-caps muted title, and accent-subtle selection. Every colour and gap is a
   design token, so light and dark themes track automatically with no per-theme overrides. */

/* --- master: the saved-scripts list ----------------------------------------------------------- */

.rs-scripts__master-header[b-p44rlwf3rr] {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--rs-space-2);
    /* Match the shared master-pane header height so this bottom divider lines up with the detail toolbar's,
       reading as one continuous rule across the split. */
    height: var(--rs-workspace-header-height);
    padding: 0 var(--rs-space-3);
    border-bottom: 1px solid var(--rs-color-border);
}

.rs-scripts__master-title[b-p44rlwf3rr] {
    margin: 0;
    font-size: var(--rs-text-sm);
    font-weight: var(--rs-font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--rs-color-fg-muted);
}

/* Fills the remaining master height and scrolls on its own (header stays pinned while a long list scrolls). */
.rs-scripts__master-list[b-p44rlwf3rr] {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    margin: 0;
    padding: var(--rs-space-2);
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* A row is the selectable label plus a trailing Run/Delete action cluster, laid out so the actions pin right. */
.rs-scripts__master-row[b-p44rlwf3rr] {
    display: flex;
    align-items: center;
    gap: var(--rs-space-1);
    border-radius: var(--rs-radius-sm);
}

.rs-scripts__master-row:hover[b-p44rlwf3rr] {
    background-color: var(--rs-color-surface-muted);
}

.rs-scripts__master-row--selected[b-p44rlwf3rr],
.rs-scripts__master-row--selected:hover[b-p44rlwf3rr] {
    background-color: var(--rs-color-accent-subtle);
}

/* The selectable label: script name over a small engine · step-count meta line. */
.rs-scripts__master-button[b-p44rlwf3rr] {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: var(--rs-space-2);
    background: none;
    border: 0;
    border-radius: var(--rs-radius-sm);
    cursor: pointer;
    text-align: left;
    color: var(--rs-color-fg);
    font: inherit;
}

.rs-scripts__master-button:focus-visible[b-p44rlwf3rr] {
    outline: 2px solid var(--rs-color-accent);
    outline-offset: -2px;
}

.rs-scripts__master-name[b-p44rlwf3rr] {
    font-size: var(--rs-text-sm);
    font-weight: var(--rs-font-weight-medium);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rs-scripts__master-row--selected .rs-scripts__master-name[b-p44rlwf3rr] {
    color: var(--rs-color-accent);
}

.rs-scripts__master-meta[b-p44rlwf3rr] {
    font-size: var(--rs-text-xs);
    color: var(--rs-color-fg-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Run/Delete pinned right. Dimmed while the row is at rest so the list reads calmly, but always present
   (never hover-only — Run must stay reachable on touch and by keyboard). */
.rs-scripts__master-actions[b-p44rlwf3rr] {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: var(--rs-space-1);
    padding-right: var(--rs-space-1);
    opacity: 0.55;
    transition: opacity 0.12s ease-in-out;
}

.rs-scripts__master-row:hover .rs-scripts__master-actions[b-p44rlwf3rr],
.rs-scripts__master-row--selected .rs-scripts__master-actions[b-p44rlwf3rr],
.rs-scripts__master-actions:focus-within[b-p44rlwf3rr] {
    opacity: 1;
}

/* The script-editor detail block (.rs-script-detail*) and the run view (.rs-script-run*) are shared with the
   /styleguide demo, so — per the same rule the master-pane chrome follows — they live in the GLOBAL
   wwwroot/css/components.css, not here: a scoped .razor.css only styles its own component, which would leave the
   styleguide's specimen unstyled. */
/* /Components/Pages/Design/ScriptTriggersSurface.razor.rz.scp.css */
/* E10 Phase 3 — the Triggers design surface's own chrome. Like its sibling Scripts surface, the master list carries a
   per-row Delete action, so it gets bespoke classes — but styled to the SAME visual language as its siblings (a
   workspace-height header whose divider lines up across the master | detail split, a small-caps muted title, and
   accent-subtle selection). Every colour and gap is a design token, so light and dark themes track automatically. */

/* --- master: the event-triggers list ---------------------------------------------------------- */

.rs-triggers__master-header[b-303nxed608] {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--rs-space-2);
    height: var(--rs-workspace-header-height);
    padding: 0 var(--rs-space-3);
    border-bottom: 1px solid var(--rs-color-border);
}

.rs-triggers__master-title[b-303nxed608] {
    margin: 0;
    font-size: var(--rs-text-sm);
    font-weight: var(--rs-font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--rs-color-fg-muted);
}

.rs-triggers__master-list[b-303nxed608] {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    margin: 0;
    padding: var(--rs-space-2);
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rs-triggers__master-row[b-303nxed608] {
    display: flex;
    align-items: center;
    gap: var(--rs-space-1);
    border-radius: var(--rs-radius-sm);
}

.rs-triggers__master-row:hover[b-303nxed608] {
    background-color: var(--rs-color-surface-muted);
}

.rs-triggers__master-row--selected[b-303nxed608],
.rs-triggers__master-row--selected:hover[b-303nxed608] {
    background-color: var(--rs-color-accent-subtle);
}

/* The selectable label: the event over a script-name line and a small run-location · enabled meta line. */
.rs-triggers__master-button[b-303nxed608] {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: var(--rs-space-2);
    background: none;
    border: 0;
    border-radius: var(--rs-radius-sm);
    cursor: pointer;
    text-align: left;
    color: var(--rs-color-fg);
    font: inherit;
}

.rs-triggers__master-button:focus-visible[b-303nxed608] {
    outline: 2px solid var(--rs-color-accent);
    outline-offset: -2px;
}

.rs-triggers__master-event[b-303nxed608] {
    font-size: var(--rs-text-sm);
    font-weight: var(--rs-font-weight-medium);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rs-triggers__master-row--selected .rs-triggers__master-event[b-303nxed608] {
    color: var(--rs-color-accent);
}

.rs-triggers__master-script[b-303nxed608] {
    font-size: var(--rs-text-xs);
    color: var(--rs-color-fg);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rs-triggers__master-meta[b-303nxed608] {
    font-size: var(--rs-text-xs);
    color: var(--rs-color-fg-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rs-triggers__master-disabled[b-303nxed608] {
    color: var(--rs-color-danger);
}

/* Delete pinned right. Dimmed at rest so the list reads calmly, but always present (never hover-only, so it stays
   reachable on touch and by keyboard). */
.rs-triggers__master-actions[b-303nxed608] {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: var(--rs-space-1);
    padding-right: var(--rs-space-1);
    opacity: 0.55;
    transition: opacity 0.12s ease-in-out;
}

.rs-triggers__master-row:hover .rs-triggers__master-actions[b-303nxed608],
.rs-triggers__master-row--selected .rs-triggers__master-actions[b-303nxed608],
.rs-triggers__master-actions:focus-within[b-303nxed608] {
    opacity: 1;
}

/* The trigger-editor detail block (.rs-trigger-detail*) is shared with the /styleguide demo, so — per the same rule
   the Scripts surface follows — it lives in the GLOBAL wwwroot/css/components.css, not here (a scoped .razor.css only
   styles its own component, which would leave the styleguide's specimen unstyled). */
/* /Components/Pages/Help.razor.rz.scp.css */
.rs-help[b-lec9hjt4sd] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-6);
    max-width: 44rem;
}

.rs-help__title[b-lec9hjt4sd] {
    margin: 0;
    font-size: var(--rs-text-lg);
    font-weight: var(--rs-font-weight-semibold);
}

.rs-help__section h2[b-lec9hjt4sd] {
    margin: 0 0 var(--rs-space-2);
    font-size: var(--rs-text-md);
    font-weight: var(--rs-font-weight-semibold);
}

.rs-help__section p[b-lec9hjt4sd],
.rs-help__section ol[b-lec9hjt4sd] {
    margin: 0 0 var(--rs-space-2);
    color: var(--rs-color-fg-muted);
}

.rs-help__section code[b-lec9hjt4sd] {
    font-size: var(--rs-text-sm);
}
/* /Components/Pages/Home.razor.rz.scp.css */
.rs-dashboard[b-vfnimngpeg] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-6);
    max-width: var(--rs-container-max);
}

.rs-dashboard__section[b-vfnimngpeg] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-4);
}

.rs-dashboard__section-head[b-vfnimngpeg] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--rs-space-3);
}

.rs-dashboard__section-title[b-vfnimngpeg] {
    margin: 0;
    font-size: var(--rs-text-lg);
    font-weight: var(--rs-font-weight-semibold);
}

.rs-dashboard__section-actions[b-vfnimngpeg] {
    display: flex;
    align-items: center;
    gap: var(--rs-space-3);
}

/* Pin the segmented control to the shared control height so it matches the "Add new" button (which
   already gets --rs-control-height from its size) — they read as a matched pair. */
.rs-dashboard__section-actions[b-vfnimngpeg]  .rs-segmented {
    height: var(--rs-control-height);
}

.rs-dashboard__group[b-vfnimngpeg] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-3);
}

.rs-dashboard__group-title[b-vfnimngpeg] {
    margin: 0;
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-sm);
    font-weight: var(--rs-font-weight-semibold);
}

.rs-dashboard__cards[b-vfnimngpeg] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--rs-space-5);
}

.rs-dashboard__cards--list[b-vfnimngpeg] {
    grid-template-columns: 1fr;
}

@media (max-width: 64rem) {
    .rs-dashboard__cards[b-vfnimngpeg] {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 40rem) {
    .rs-dashboard__cards[b-vfnimngpeg] {
        grid-template-columns: 1fr;
    }
}

.rs-dashboard__recent-link[b-vfnimngpeg] {
    display: inline-flex;
    align-items: center;
    gap: var(--rs-space-2);
    color: var(--rs-color-fg);
    font-weight: var(--rs-font-weight-medium);
    text-decoration: none;
}

.rs-dashboard__recent-link:hover[b-vfnimngpeg],
.rs-dashboard__recent-link:focus-visible[b-vfnimngpeg] {
    color: var(--rs-color-accent);
    text-decoration: underline;
}

.rs-dashboard__recent-icon[b-vfnimngpeg] {
    color: var(--rs-color-accent);
    font-size: var(--rs-text-sm);
}

.rs-dashboard__recent-when[b-vfnimngpeg] {
    white-space: nowrap;
    color: var(--rs-color-fg-muted);
}
/* /Components/Pages/NotFound.razor.rz.scp.css */
.rs-not-found[b-xh7xo7i62t] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--rs-space-3);
    min-height: 60vh;
    text-align: center;
}

.rs-not-found__chip[b-xh7xo7i62t] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: var(--rs-radius-xl);
    background-color: var(--rs-color-accent-subtle);
    color: var(--rs-color-accent);
    font-size: var(--rs-text-2xl);
}

.rs-not-found__title[b-xh7xo7i62t] {
    margin: 0;
    font-size: var(--rs-text-xl);
}

.rs-not-found__message[b-xh7xo7i62t] {
    margin: 0;
    max-width: 28rem;
    font-size: var(--rs-text-sm);
    color: var(--rs-color-fg-muted);
}

.rs-not-found__back[b-xh7xo7i62t] {
    margin-top: var(--rs-space-2);
    color: var(--rs-color-accent);
    font-size: var(--rs-text-sm);
    font-weight: var(--rs-font-weight-medium);
    text-decoration: none;
}

.rs-not-found__back:hover[b-xh7xo7i62t] {
    text-decoration: underline;
}
/* /Components/Pages/Settings.razor.rz.scp.css */
/* Settings shell — the tab strip plus the active panel below it. */
.rs-settings[b-n5m0keobt4] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-5);
    max-width: 72rem;
}

.rs-settings__panel[b-n5m0keobt4] {
    display: block;
}
/* /Components/Pages/SharedWithMe.razor.rz.scp.css */
.rs-shared[b-hs9ly8bvmq] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-5);
}

.rs-shared__title[b-hs9ly8bvmq] {
    margin: 0;
    font-size: var(--rs-text-lg);
    font-weight: var(--rs-font-weight-semibold);
}

.rs-shared__cards[b-hs9ly8bvmq] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--rs-space-5);
}

@media (max-width: 64rem) {
    .rs-shared__cards[b-hs9ly8bvmq] {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 40rem) {
    .rs-shared__cards[b-hs9ly8bvmq] {
        grid-template-columns: 1fr;
    }
}
/* /Components/Pages/StyleGuide.razor.rz.scp.css */
.rs-styleguide[b-kukk59a6uc] {
    gap: var(--rs-space-5);
}

.rs-styleguide__note[b-kukk59a6uc] {
    font-size: var(--rs-text-sm);
    color: var(--rs-color-fg-muted);
}

/* The E3 sync-status states row — top-aligned columns (the error state is taller) with roomier gaps. */
.rs-styleguide__sync-states[b-kukk59a6uc] {
    align-items: flex-start;
    gap: var(--rs-space-6);
}

/* A mock TopBar slot for the Design mode demo: the surface switcher + Done. */
.rs-styleguide__topbar-slot[b-kukk59a6uc] {
    display: flex;
    align-items: center;
    gap: var(--rs-space-3);
    padding: var(--rs-space-2) var(--rs-space-3);
    border: 1px solid var(--rs-color-border);
    border-radius: var(--rs-radius-md);
    background-color: var(--rs-color-surface);
}

/* Frames the report-editor mock as a bounded example (the real surface sits in the detail pane; here it's a
   standalone card demo). The .rs-report-detail block itself is styled globally, shared with the live surface. */
.rs-styleguide__report-editor-demo[b-kukk59a6uc] {
    padding: var(--rs-space-4);
    border: 1px solid var(--rs-color-border);
    border-radius: var(--rs-radius-md);
    background-color: var(--rs-color-surface);
}

.rs-swatch[b-kukk59a6uc] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 6rem;
    padding: var(--rs-space-3);
    border-radius: var(--rs-radius-md);
    font-size: var(--rs-text-sm);
    color: var(--rs-color-fg-on-accent);
}

.rs-swatch--bordered[b-kukk59a6uc] {
    border: 1px solid var(--rs-color-border-strong);
}

/* Typography specimen — stack the scale samples with a little air. */
.rs-sg-type[b-kukk59a6uc] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-2);
}

/*
  Demo record grid for the Density + Data-grid-patterns sections. This is a styleguide-only specimen
  that consumes the new density scale (--rs-density-*) and data-grid roles (--rs-color-row-*,
  --rs-color-grid-header-bg) directly — the shipping component is Phase 4's RecordGrid. Kept here so the
  tokens have a live reference without pulling a feature component forward.
*/
.rs-sg-grid[b-kukk59a6uc] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: var(--rs-color-surface);
    border: 1px solid var(--rs-color-border);
    border-radius: var(--rs-radius-lg);
    overflow: hidden;
    font-size: var(--rs-density-font-size);
    line-height: var(--rs-density-line-height);
}

.rs-sg-grid th[b-kukk59a6uc] {
    position: sticky;
    top: 0;
    text-align: left;
    font-weight: var(--rs-font-weight-medium);
    color: var(--rs-color-fg-muted);
    background-color: var(--rs-color-grid-header-bg);
    padding: var(--rs-density-cell-pad-y) var(--rs-density-cell-pad-x);
    border-bottom: 1px solid var(--rs-color-border);
    white-space: nowrap;
}

.rs-sg-grid td[b-kukk59a6uc] {
    height: var(--rs-density-row-min-height);
    padding: var(--rs-density-cell-pad-y) var(--rs-density-cell-pad-x);
    border-bottom: 1px solid var(--rs-color-border);
    white-space: nowrap;
}

.rs-sg-grid tbody tr:last-child td[b-kukk59a6uc] {
    border-bottom: none;
}

.rs-sg-grid__num[b-kukk59a6uc] {
    text-align: right;
}

/* Stripe < hover < selected — so a hovered/selected row still reads over the zebra. */
.rs-sg-grid tbody tr:nth-child(even)[b-kukk59a6uc] {
    background-color: var(--rs-color-row-stripe);
}

.rs-sg-grid tbody tr:hover[b-kukk59a6uc] {
    background-color: var(--rs-color-row-hover);
}

.rs-sg-grid tbody tr.is-selected[b-kukk59a6uc] {
    background-color: var(--rs-color-row-selected);
}

/* A neutral bordered demo surface — frames a representative state (e.g. the records toolbar's two layouts)
   so it reads as a self-contained example rather than floating loose in the card. */
.rs-sg-panel[b-kukk59a6uc] {
    padding: var(--rs-space-3) var(--rs-space-4);
    border: 1px solid var(--rs-color-border);
    border-radius: var(--rs-radius-lg);
    background-color: var(--rs-color-surface);
}

/* The toolbar's margin-bottom is page chrome — neutralise it inside the demo panel so it sits centred. */
.rs-sg-panel .rs-records__toolbar[b-kukk59a6uc] {
    margin-bottom: 0;
}

/* Horizontal-scroll container for the frozen-column demo — also the scroll container the sticky first
   column anchors to. overflow-x:auto clips the content to the rounded corners. */
.rs-sg-scroll[b-kukk59a6uc] {
    overflow-x: auto;
    border: 1px solid var(--rs-color-border);
    border-radius: var(--rs-radius-lg);
}

/* The wide/frozen variant must NOT establish its own scrollport — the base .rs-sg-grid sets
   overflow:hidden (to clip its own corners), but that would make the table the sticky cells' scroll
   container, so the first column would stick to the table and nothing would freeze. Inside
   .rs-sg-scroll the wrapper provides the border/clipping, so the table clears its own. */
.rs-sg-grid--wide[b-kukk59a6uc] {
    min-width: 72rem;
    border: none;
    border-radius: 0;
    overflow: visible;
}

/* Freeze the first column: it sticks to the left edge of the scroll container as the rest scrolls
   under it, separated by a crisp divider (continuous across rows — a per-cell soft shadow segments
   into per-row blobs). Sticky cells need an opaque background (the header cell already carries
   --rs-color-grid-header-bg) and a z-index to paint over the scrolling columns. The soft,
   scroll-position-aware edge shadows (off the frozen column + a trailing scroll cue) come with
   Phase 4's RecordGrid, which has the scroll listener to show them only when scrollable. */
.rs-sg-grid--wide th:first-child[b-kukk59a6uc],
.rs-sg-grid--wide td:first-child[b-kukk59a6uc] {
    position: sticky;
    left: 0;
    z-index: 1;
    border-right: 1px solid var(--rs-color-border-strong);
}

.rs-sg-grid--wide td:first-child[b-kukk59a6uc] {
    background-color: var(--rs-color-surface);
}

/* ── Navigation-shell demo (issue #124) ───────────────────────────────────────────────────────────────
   Show the real Sidebar in both states side by side, framed at the shell column widths. */
.rs-sg-shells[b-kukk59a6uc] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--rs-space-5);
    align-items: flex-start;
}

.rs-sg-shell[b-kukk59a6uc] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-2);
}

.rs-sg-shell__caption[b-kukk59a6uc] {
    font-size: var(--rs-text-xs);
    font-weight: var(--rs-font-weight-medium);
    color: var(--rs-color-fg-muted);
}

.rs-sg-shell__frame[b-kukk59a6uc] {
    width: var(--rs-sidebar-width);
    border: 1px solid var(--rs-color-border);
    border-radius: var(--rs-radius-lg);
    overflow: hidden;
    background-color: var(--rs-color-bg);
}

.rs-sg-shell__frame--rail[b-kukk59a6uc] {
    width: var(--rs-rail-width);
}

/* Tame the real Sidebar for the inline frame: it is normally a full-height sticky rail — here it renders
   inline at natural height. The doubled class out-specifies the component's own scoped rule. */
.rs-sg-shell__frame[b-kukk59a6uc]  .rs-sidebar.rs-sidebar {
    position: static;
    height: auto;
}

/* Master-pane showcase: a few capped frames side by side so the with/without-selection and empty states
   read at a glance and the list's independent scroll is visible. */
.rs-sg-master-row[b-kukk59a6uc] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--rs-space-4);
}

.rs-sg-master[b-kukk59a6uc] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-2);
}

.rs-sg-master__caption[b-kukk59a6uc] {
    font-size: var(--rs-text-xs);
    font-weight: var(--rs-font-weight-medium);
    color: var(--rs-color-fg-muted);
}

.rs-sg-master__frame[b-kukk59a6uc] {
    width: 16rem;
    height: 12rem;
    border: 1px solid var(--rs-color-border);
    border-radius: var(--rs-radius-lg);
    overflow: hidden;
    background-color: var(--rs-color-surface);
}

.rs-styleguide__code[b-kukk59a6uc] {
    margin: 0;
    padding: var(--rs-space-3);
    border: 1px solid var(--rs-color-border);
    border-radius: var(--rs-radius-md);
    background-color: var(--rs-color-surface);
    font-family: var(--rs-font-mono);
    font-size: var(--rs-text-xs);
    white-space: pre;
    overflow-x: auto;
}
/* /Components/Pages/Sync/ConflictReview.razor.rz.scp.css */
.rs-review-page[b-vy5x0c2l3p] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-4);
    width: min(100%, 72rem);
    margin: 0 auto;
    padding: var(--rs-space-5);
}

.rs-review-page__crumbs[b-vy5x0c2l3p] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--rs-space-2);
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-sm);
}

.rs-review-page__crumbs a[b-vy5x0c2l3p] {
    color: var(--rs-color-accent);
}

@media (max-width: 40rem) {
    .rs-review-page[b-vy5x0c2l3p] {
        padding: var(--rs-space-3);
    }
}
/* /Components/Pages/Sync/RecordHistory.razor.rz.scp.css */
.rs-history-page[b-k6cdo4lrbg] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-4);
    width: min(100%, 64rem);
    margin: 0 auto;
    padding: var(--rs-space-5);
}

.rs-history-page__crumbs[b-k6cdo4lrbg] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--rs-space-2);
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-sm);
}

.rs-history-page__crumbs a[b-k6cdo4lrbg] {
    color: var(--rs-color-accent);
}

@media (max-width: 40rem) {
    .rs-history-page[b-k6cdo4lrbg] {
        padding: var(--rs-space-3);
    }
}

.rs-history-page__section[b-k6cdo4lrbg] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-3);
    margin-top: var(--rs-space-5);
}

.rs-history-page__section-title[b-k6cdo4lrbg] {
    margin: 0;
    font-size: var(--rs-text-md);
    font-weight: var(--rs-font-weight-semibold);
}

.rs-history-page__note[b-k6cdo4lrbg] {
    margin: var(--rs-space-5) 0 0;
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-sm);
}
/* /Components/Pages/Templates.razor.rz.scp.css */
.rs-templates[b-8fn7sul3i4] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-5);
}

.rs-templates__title[b-8fn7sul3i4] {
    margin: 0;
    font-size: var(--rs-text-lg);
    font-weight: var(--rs-font-weight-semibold);
}

.rs-templates__cards[b-8fn7sul3i4] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--rs-space-5);
}

.rs-templates__card[b-8fn7sul3i4] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-2);
    padding: var(--rs-space-4);
    background: var(--rs-color-surface);
    border: 1px solid var(--rs-color-border);
    border-radius: var(--rs-radius-lg);
}

.rs-templates__name[b-8fn7sul3i4] {
    margin: 0;
    font-size: var(--rs-text-md);
    font-weight: var(--rs-font-weight-semibold);
}

.rs-templates__description[b-8fn7sul3i4],
.rs-templates__tables[b-8fn7sul3i4] {
    margin: 0;
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-sm);
}

.rs-templates__tables[b-8fn7sul3i4] {
    flex: 1;
}

@media (max-width: 64rem) {
    .rs-templates__cards[b-8fn7sul3i4] {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 40rem) {
    .rs-templates__cards[b-8fn7sul3i4] {
        grid-template-columns: 1fr;
    }
}
/* /Components/Pages/Trash.razor.rz.scp.css */
.rs-trash[b-8l2z5gsjnn] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-5);
}

.rs-trash__title[b-8l2z5gsjnn] {
    margin: 0;
    font-size: var(--rs-text-lg);
    font-weight: var(--rs-font-weight-semibold);
}

.rs-trash__intro[b-8l2z5gsjnn],
.rs-trash__notice[b-8l2z5gsjnn] {
    margin: 0;
}

.rs-trash__list[b-8l2z5gsjnn] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-3);
    margin: 0;
    padding: 0;
    list-style: none;
}

.rs-trash__row[b-8l2z5gsjnn] {
    display: flex;
    align-items: center;
    gap: var(--rs-space-4);
}

.rs-trash__name[b-8l2z5gsjnn] {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
    font-weight: var(--rs-font-weight-semibold);
}

@media (max-width: 40rem) {
    .rs-trash__row[b-8l2z5gsjnn] {
        flex-wrap: wrap;
    }

    .rs-trash__name[b-8l2z5gsjnn] {
        flex-basis: 100%;
    }
}
/* /Components/Privileges/GroupAssignmentPanel.razor.rz.scp.css */
.rs-group-assignment[b-p0dez8240e] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-2);
}

.rs-group-assignment__empty[b-p0dez8240e] {
    margin: 0;
    font-size: var(--rs-text-sm);
    color: var(--rs-color-fg-muted);
    font-style: italic;
}

.rs-group-assignment__list[b-p0dez8240e] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-1);
}

.rs-group-assignment__row[b-p0dez8240e] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--rs-space-3);
    flex-wrap: wrap;
    padding: var(--rs-space-2) var(--rs-space-3);
    border: 1px solid var(--rs-color-border);
    border-left: 3px solid var(--rs-color-accent, var(--rs-color-primary));
    border-radius: var(--rs-radius-md);
    background: var(--rs-color-surface);
}

.rs-group-assignment__identity[b-p0dez8240e] {
    display: flex;
    align-items: center;
    gap: var(--rs-space-3);
    min-width: 0;
}

.rs-group-assignment__icon[b-p0dez8240e] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    border-radius: var(--rs-radius-full, 999px);
    background: var(--rs-color-surface-raised, var(--rs-color-bg-muted));
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-sm);
}

.rs-group-assignment__text[b-p0dez8240e] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-1);
    min-width: 0;
}

.rs-group-assignment__name[b-p0dez8240e] {
    font-weight: var(--rs-font-weight-medium);
    color: var(--rs-color-fg);
}

.rs-group-assignment__meta[b-p0dez8240e] {
    display: flex;
    align-items: center;
    gap: var(--rs-space-1);
    font-size: var(--rs-text-xs);
    color: var(--rs-color-fg-muted);
}

.rs-group-assignment__count[b-p0dez8240e] {
    font-variant-numeric: tabular-nums;
}

.rs-group-assignment__dot[b-p0dez8240e] {
    opacity: 0.5;
}

.rs-group-assignment__actions[b-p0dez8240e] {
    display: flex;
    align-items: center;
    gap: var(--rs-space-2);
}
/* /Components/Privileges/PrivilegeAssignmentPanel.razor.rz.scp.css */
.rs-privilege-assignment-panel[b-mfbo6g4hbg] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-2);
}

.rs-privilege-assignment-panel__empty[b-mfbo6g4hbg] {
    margin: 0;
    font-size: var(--rs-text-sm);
    color: var(--rs-color-fg-muted);
    font-style: italic;
}

.rs-privilege-assignment-panel__list[b-mfbo6g4hbg] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-1);
}

.rs-privilege-assignment-panel__row[b-mfbo6g4hbg] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--rs-space-3);
    flex-wrap: wrap;
    padding: var(--rs-space-2) var(--rs-space-3);
    border: 1px solid var(--rs-color-border);
    border-radius: var(--rs-radius-md);
    background: var(--rs-color-surface);
}

.rs-privilege-assignment-panel__member[b-mfbo6g4hbg] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-1);
    min-width: 0;
}

.rs-privilege-assignment-panel__email[b-mfbo6g4hbg] {
    font-weight: var(--rs-font-weight-medium);
    color: var(--rs-color-fg);
}

.rs-privilege-assignment-panel__current[b-mfbo6g4hbg] {
    font-size: var(--rs-text-xs);
    color: var(--rs-color-fg-muted);
}

.rs-privilege-assignment-panel__actions[b-mfbo6g4hbg] {
    display: flex;
    align-items: center;
    gap: var(--rs-space-2);
}
/* /Components/Privileges/PrivilegeSetEditor.razor.rz.scp.css */
.rs-privilege-set-editor[b-ui9i3fdxmt] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-3);
    min-width: 0;
}

.rs-privilege-set-editor__grid-wrap[b-ui9i3fdxmt] {
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid var(--rs-color-border);
    border-radius: var(--rs-radius-md);
}

.rs-privilege-set-editor__default-scope[b-ui9i3fdxmt] {
    align-self: flex-start;
}

.rs-privilege-set-editor__authority[b-ui9i3fdxmt] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-3);
    padding: var(--rs-space-4);
    border: 1px solid var(--rs-color-border);
    border-radius: var(--rs-radius-md);
    background: var(--rs-color-surface-muted);
    min-width: 0;
}

.rs-privilege-set-editor__section-heading[b-ui9i3fdxmt] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-1);
}

.rs-privilege-set-editor__section-heading h3[b-ui9i3fdxmt],
.rs-privilege-set-editor__section-heading p[b-ui9i3fdxmt] {
    margin: 0;
}

.rs-privilege-set-editor__section-heading h3[b-ui9i3fdxmt] {
    color: var(--rs-color-fg);
    font-size: var(--rs-text-sm);
    font-weight: var(--rs-font-weight-semibold);
}

.rs-privilege-set-editor__section-heading p[b-ui9i3fdxmt] {
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-xs);
    line-height: var(--rs-line-height-snug);
}

.rs-privilege-set-editor__authority-grid[b-ui9i3fdxmt],
.rs-privilege-set-editor__script-list[b-ui9i3fdxmt] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: var(--rs-space-2) var(--rs-space-4);
}

.rs-privilege-set-editor__grid[b-ui9i3fdxmt] {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--rs-text-sm);
}

.rs-privilege-set-editor__head[b-ui9i3fdxmt] {
    padding: var(--rs-space-2) var(--rs-space-3);
    text-align: center;
    font-weight: var(--rs-font-weight-semibold);
    color: var(--rs-color-fg-muted);
    background: var(--rs-color-surface-muted);
    border-bottom: 1px solid var(--rs-color-border);
    white-space: nowrap;
}

.rs-privilege-set-editor__head--table[b-ui9i3fdxmt] {
    text-align: left;
}

.rs-privilege-set-editor__row[b-ui9i3fdxmt] {
    border-bottom: 1px solid var(--rs-color-border);
}

.rs-privilege-set-editor__row:last-child[b-ui9i3fdxmt] {
    border-bottom: none;
}

.rs-privilege-set-editor__row--all[b-ui9i3fdxmt] {
    background: var(--rs-color-surface-muted);
    font-weight: var(--rs-font-weight-medium);
}

.rs-privilege-set-editor__table[b-ui9i3fdxmt] {
    padding: var(--rs-space-2) var(--rs-space-3);
    color: var(--rs-color-fg);
    white-space: nowrap;
}

.rs-privilege-set-editor__cell[b-ui9i3fdxmt] {
    padding: var(--rs-space-2) var(--rs-space-3);
    text-align: center;
}

.rs-privilege-set-editor__head--records[b-ui9i3fdxmt],
.rs-privilege-set-editor__cell--records[b-ui9i3fdxmt] {
    border-left: 1px solid var(--rs-color-border);
}

/* Record-scope segmented toggle (P4): its own two-state control, not a borrowed checkbox — the active segment is
   filled with the accent so "All vs Own" reads at a glance across the grid. */
.rs-record-scope[b-ui9i3fdxmt] {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid var(--rs-color-border);
    border-radius: var(--rs-radius-sm);
    overflow: hidden;
    background: var(--rs-color-surface);
}

.rs-record-scope__option[b-ui9i3fdxmt] {
    appearance: none;
    border: none;
    margin: 0;
    padding: var(--rs-space-1) var(--rs-space-3);
    font: inherit;
    font-size: var(--rs-text-xs);
    font-weight: var(--rs-font-weight-medium);
    line-height: 1.4;
    color: var(--rs-color-fg-muted);
    background: transparent;
    cursor: pointer;
    transition: background-color 0.12s ease, color 0.12s ease;
}

.rs-record-scope__option + .rs-record-scope__option[b-ui9i3fdxmt] {
    border-left: 1px solid var(--rs-color-border);
}

.rs-record-scope__option:hover:not(:disabled):not(.rs-record-scope__option--active)[b-ui9i3fdxmt] {
    background: var(--rs-color-surface-muted);
    color: var(--rs-color-fg);
}

.rs-record-scope__option--active[b-ui9i3fdxmt] {
    background: var(--rs-color-accent);
    color: var(--rs-color-accent-on, #fff);
}

.rs-record-scope__option:focus-visible[b-ui9i3fdxmt] {
    outline: 2px solid var(--rs-color-accent);
    outline-offset: -2px;
}

.rs-record-scope__option:disabled[b-ui9i3fdxmt] {
    cursor: default;
    opacity: 0.6;
}

.rs-privilege-set-editor__note[b-ui9i3fdxmt] {
    margin: 0;
    font-size: var(--rs-text-xs);
    color: var(--rs-color-fg-muted);
    font-style: italic;
}

.rs-privilege-set-editor__field-tables[b-ui9i3fdxmt] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-2);
    min-width: 0;
}

.rs-privilege-set-editor__field-table[b-ui9i3fdxmt] {
    border: 1px solid var(--rs-color-border);
    border-radius: var(--rs-radius-sm);
    background: var(--rs-color-surface);
    min-width: 0;
}

.rs-privilege-set-editor__field-table summary[b-ui9i3fdxmt] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--rs-space-3);
    padding: var(--rs-space-3);
    color: var(--rs-color-fg);
    font-size: var(--rs-text-sm);
    font-weight: var(--rs-font-weight-medium);
    cursor: pointer;
}

.rs-privilege-set-editor__field-table summary:focus-visible[b-ui9i3fdxmt] {
    outline: 2px solid var(--rs-color-accent);
    outline-offset: 2px;
}

.rs-privilege-set-editor__field-summary[b-ui9i3fdxmt] {
    min-width: 0;
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-xs);
    font-weight: var(--rs-font-weight-regular);
    overflow-wrap: anywhere;
    text-align: right;
}

.rs-privilege-set-editor__field-policy[b-ui9i3fdxmt] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-3);
    padding: 0 var(--rs-space-3) var(--rs-space-3);
}

.rs-privilege-set-editor__field-default[b-ui9i3fdxmt],
.rs-privilege-set-editor__field-row[b-ui9i3fdxmt] {
    display: grid;
    grid-template-columns: minmax(8rem, 1fr) repeat(3, auto);
    align-items: center;
    gap: var(--rs-space-3);
}

.rs-privilege-set-editor__field-default[b-ui9i3fdxmt] {
    padding: var(--rs-space-2) 0;
    border-bottom: 1px solid var(--rs-color-border);
}

.rs-privilege-set-editor__field-row[b-ui9i3fdxmt] {
    padding: var(--rs-space-2);
    border-radius: var(--rs-radius-sm);
}

.rs-privilege-set-editor__field-row:nth-child(odd)[b-ui9i3fdxmt] {
    background: var(--rs-color-surface-muted);
}

.rs-privilege-set-editor__field-label[b-ui9i3fdxmt],
.rs-privilege-set-editor__field-name[b-ui9i3fdxmt] {
    min-width: 0;
    overflow: hidden;
    color: var(--rs-color-fg);
    font-size: var(--rs-text-xs);
    font-weight: var(--rs-font-weight-medium);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rs-privilege-set-editor__inherit[b-ui9i3fdxmt] {
    appearance: none;
    padding: var(--rs-space-1) var(--rs-space-2);
    border: 1px solid var(--rs-color-border);
    border-radius: var(--rs-radius-sm);
    color: var(--rs-color-fg);
    background: var(--rs-color-surface);
    font: inherit;
    font-size: var(--rs-text-xs);
    cursor: pointer;
}

.rs-privilege-set-editor__inherit:hover:not(:disabled)[b-ui9i3fdxmt] {
    border-color: var(--rs-color-accent);
}

.rs-privilege-set-editor__inherit:focus-visible[b-ui9i3fdxmt] {
    outline: 2px solid var(--rs-color-accent);
    outline-offset: 2px;
}

.rs-privilege-set-editor__inherit:disabled[b-ui9i3fdxmt] {
    cursor: default;
    opacity: 0.55;
}

@media (max-width: 40rem) {
    .rs-privilege-set-editor__field-default[b-ui9i3fdxmt],
    .rs-privilege-set-editor__field-row[b-ui9i3fdxmt] {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: var(--rs-space-2);
    }

    .rs-privilege-set-editor__field-label[b-ui9i3fdxmt],
    .rs-privilege-set-editor__field-name[b-ui9i3fdxmt] {
        grid-column: 1 / -1;
    }
}
/* /Components/Privileges/ServiceAccountAssignmentPanel.razor.rz.scp.css */
.rs-service-account-assignments__list[b-kjemqi15l0] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-2);
    margin: 0;
    padding: 0;
    list-style: none;
}

.rs-service-account-assignments__row[b-kjemqi15l0] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--rs-space-3);
    padding: var(--rs-space-3);
    border: 1px solid var(--rs-color-border);
    border-radius: var(--rs-radius-md);
    background: var(--rs-color-surface);
}

.rs-service-account-assignments__identity[b-kjemqi15l0] {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.rs-service-account-assignments__id[b-kjemqi15l0] {
    overflow: hidden;
    color: var(--rs-color-fg);
    font-family: var(--rs-font-mono);
    font-size: var(--rs-text-sm);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rs-service-account-assignments__current[b-kjemqi15l0],
.rs-service-account-assignments__empty[b-kjemqi15l0] {
    margin: 0;
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-xs);
}

.rs-service-account-assignments__actions[b-kjemqi15l0] {
    display: flex;
    align-items: center;
    gap: var(--rs-space-2);
}

@media (max-width: 40rem) {
    .rs-service-account-assignments__row[b-kjemqi15l0] {
        align-items: stretch;
        flex-direction: column;
    }

    .rs-service-account-assignments__actions[b-kjemqi15l0] {
        align-items: stretch;
        flex-direction: column;
    }
}
/* /Components/Residency/ResidencyExplainCard.razor.rz.scp.css */
/* "Why is this on my device" explain card (E12.P4). Presentation-only; every value is a --rs-* token so light/dark
   ride the semantic role remap. A resident row reads success-toned; a shed/parked row reads muted. */

.rs-residency-explain[b-xam3tfivb8] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-3);
    padding: var(--rs-space-4);
    border: 1px solid var(--rs-color-border);
    border-radius: var(--rs-radius-lg);
    background-color: var(--rs-color-bg);
}

.rs-residency-explain__head[b-xam3tfivb8] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--rs-space-3);
    flex-wrap: wrap;
}

.rs-residency-explain__badge[b-xam3tfivb8] {
    padding: var(--rs-space-2) var(--rs-space-3);
    border-radius: var(--rs-radius-md);
    font-size: var(--rs-text-xs);
    font-weight: var(--rs-font-weight-semibold);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.rs-residency-explain__badge--resident[b-xam3tfivb8] {
    background-color: var(--rs-color-success-subtle);
    color: var(--rs-color-success-strong);
}

.rs-residency-explain__badge--shed[b-xam3tfivb8] {
    background-color: var(--rs-color-accent-subtle);
    color: var(--rs-color-fg-muted);
}

.rs-residency-explain__owner[b-xam3tfivb8] {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.rs-residency-explain__owner-label[b-xam3tfivb8] {
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-xs);
}

.rs-residency-explain__owner-value[b-xam3tfivb8] {
    color: var(--rs-color-fg);
    font-size: var(--rs-text-sm);
    font-weight: var(--rs-font-weight-semibold);
}

.rs-residency-explain__row[b-xam3tfivb8] {
    margin: 0;
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-xs);
}

/* ---- The multi-parent union (#421): every subject the row is resident for ---- */
.rs-residency-explain__subjects[b-xam3tfivb8] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-2);
    padding: var(--rs-space-3);
    border: 1px solid var(--rs-color-success-subtle);
    border-radius: var(--rs-radius-md);
    background-color: var(--rs-color-success-subtle);
}

.rs-residency-explain__subjects-label[b-xam3tfivb8] {
    color: var(--rs-color-success-strong);
    font-size: var(--rs-text-xs);
    font-weight: var(--rs-font-weight-semibold);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.rs-residency-explain__subject-list[b-xam3tfivb8] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--rs-space-2);
}

.rs-residency-explain__subject[b-xam3tfivb8] {
    padding: 2px var(--rs-space-2);
    border-radius: var(--rs-radius-sm);
    background-color: var(--rs-color-bg);
    color: var(--rs-color-fg);
    font-size: var(--rs-text-sm);
    font-weight: var(--rs-font-weight-medium);
}

.rs-residency-explain__caption[b-xam3tfivb8] {
    margin: 0;
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-xs);
}

.rs-residency-explain__anchors[b-xam3tfivb8] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-2);
}

.rs-residency-anchor[b-xam3tfivb8] {
    display: flex;
    align-items: center;
    gap: var(--rs-space-3);
    padding: var(--rs-space-2) var(--rs-space-3);
    border: 1px solid var(--rs-color-border);
    border-radius: var(--rs-radius-md);
    background-color: var(--rs-color-bg);
}

.rs-residency-anchor__record[b-xam3tfivb8] {
    color: var(--rs-color-fg);
    font-size: var(--rs-text-sm);
}

.rs-residency-anchor__arrow[b-xam3tfivb8] {
    color: var(--rs-color-accent);
    font-weight: var(--rs-font-weight-bold);
}

.rs-residency-anchor__subject[b-xam3tfivb8] {
    color: var(--rs-color-accent);
    font-size: var(--rs-text-sm);
    font-weight: var(--rs-font-weight-semibold);
}

/* ---- Empty (parked / shed) state ---- */
.rs-residency-explain__empty[b-xam3tfivb8] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-2);
    padding: var(--rs-space-4);
    border: 1px dashed var(--rs-color-border-strong);
    border-radius: var(--rs-radius-md);
    background-color: var(--rs-color-bg);
}

.rs-residency-explain__empty-title[b-xam3tfivb8] {
    margin: 0;
    color: var(--rs-color-fg);
    font-size: var(--rs-text-sm);
    font-weight: var(--rs-font-weight-medium);
}

.rs-residency-explain__empty-note[b-xam3tfivb8] {
    margin: 0;
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-xs);
    line-height: var(--rs-line-height-snug);
}
/* /Components/Review/FlaggedRecordList.razor.rz.scp.css */
/* One table's flagged records (DC.3): each record lists the checks it fails, with a gate badge and generic
   per-bucket provenance. Read-only — no resolve/clear affordance (#454). Tokens only. */

.rs-flagged-records[b-fi8lp5y5sy] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-3);
}

.rs-flagged-records__head[b-fi8lp5y5sy] {
    display: flex;
    align-items: center;
    gap: var(--rs-space-3);
}

.rs-flagged-records__back[b-fi8lp5y5sy] {
    display: inline-flex;
    align-items: center;
    gap: var(--rs-space-1);
    padding: var(--rs-space-1) var(--rs-space-2);
    border: none;
    background: none;
    color: var(--rs-color-accent);
    font-size: var(--rs-text-sm);
    cursor: pointer;
}

.rs-flagged-records__title[b-fi8lp5y5sy] {
    margin: 0;
    font-size: var(--rs-text-md);
    font-weight: var(--rs-font-weight-semibold);
    color: var(--rs-color-fg);
}

.rs-flagged-records__count[b-fi8lp5y5sy] {
    min-width: 2rem;
    padding: var(--rs-space-1) var(--rs-space-2);
    border-radius: var(--rs-radius-pill);
    background-color: var(--rs-color-warning-subtle);
    color: var(--rs-color-warning);
    font-weight: var(--rs-font-weight-semibold);
    text-align: center;
}

.rs-flagged-records__status[b-fi8lp5y5sy] {
    margin: 0;
    padding: var(--rs-space-4);
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-sm);
}

.rs-flagged-records__empty[b-fi8lp5y5sy] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--rs-space-2);
    padding: var(--rs-space-5);
    text-align: center;
    border: 1px dashed var(--rs-color-border);
    border-radius: var(--rs-radius-md);
    color: var(--rs-color-fg-muted);
}

.rs-flagged-records__empty-icon[b-fi8lp5y5sy] {
    font-size: var(--rs-text-xl);
    color: var(--rs-color-success);
}

.rs-flagged-records__empty-title[b-fi8lp5y5sy] {
    margin: 0;
    font-weight: var(--rs-font-weight-semibold);
    color: var(--rs-color-fg);
}

.rs-flagged-records__items[b-fi8lp5y5sy] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-2);
}

.rs-flagged-record[b-fi8lp5y5sy] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-2);
    padding: var(--rs-space-3) var(--rs-space-4);
    border: 1px solid var(--rs-color-border);
    border-left: 3px solid var(--rs-color-warning);
    border-radius: var(--rs-radius-md);
    background-color: var(--rs-color-surface);
}

.rs-flagged-record__head[b-fi8lp5y5sy] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--rs-space-3);
}

.rs-flagged-record__id[b-fi8lp5y5sy] {
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-sm);
}

.rs-flagged-record__open[b-fi8lp5y5sy] {
    border: none;
    background: none;
    color: var(--rs-color-accent);
    font-size: var(--rs-text-sm);
    cursor: pointer;
}

.rs-flagged-record__checks[b-fi8lp5y5sy] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-2);
}

.rs-flagged-record__check[b-fi8lp5y5sy] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-1);
}

.rs-flagged-record__check-head[b-fi8lp5y5sy] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--rs-space-2);
}

.rs-flagged-record__check-message[b-fi8lp5y5sy] {
    color: var(--rs-color-fg);
    font-size: var(--rs-text-sm);
}

.rs-flagged-record__gate[b-fi8lp5y5sy] {
    padding: var(--rs-space-1) var(--rs-space-2);
    border-radius: var(--rs-radius-pill);
    font-size: var(--rs-text-xs);
    font-weight: var(--rs-font-weight-semibold);
    background-color: var(--rs-color-warning-subtle);
    color: var(--rs-color-warning);
    white-space: nowrap;
}

.rs-flagged-record__gate--stop[b-fi8lp5y5sy] {
    background-color: var(--rs-color-error-subtle);
    color: var(--rs-color-error);
}

.rs-flagged-record__provenance[b-fi8lp5y5sy] {
    margin: 0;
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-xs);
    line-height: var(--rs-line-height-snug);
}
/* /Components/Review/NeedsReviewBanner.razor.rz.scp.css */
/* Per-record "Needs review" banner (DC.3): an amber, read-only explainer above the record form. Tokens only. */

.rs-needs-review-banner[b-245xdzi2j8] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-3);
    padding: var(--rs-space-3) var(--rs-space-4);
    border: 1px solid var(--rs-color-warning);
    border-left: 3px solid var(--rs-color-warning);
    border-radius: var(--rs-radius-md);
    background-color: var(--rs-color-warning-subtle);
    color: var(--rs-color-fg);
}

.rs-needs-review-banner__head[b-245xdzi2j8] {
    display: flex;
    align-items: flex-start;
    gap: var(--rs-space-2);
}

.rs-needs-review-banner__icon[b-245xdzi2j8] {
    margin-top: 0.15rem;
    color: var(--rs-color-warning);
}

.rs-needs-review-banner__headings[b-245xdzi2j8] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-1);
}

.rs-needs-review-banner__title[b-245xdzi2j8] {
    margin: 0;
    font-weight: var(--rs-font-weight-semibold);
    color: var(--rs-color-fg);
}

.rs-needs-review-banner__intro[b-245xdzi2j8] {
    margin: 0;
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-sm);
    line-height: var(--rs-line-height-snug);
}

.rs-needs-review-banner__checks[b-245xdzi2j8] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-2);
}

.rs-needs-review-banner__check[b-245xdzi2j8] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-1);
    padding: var(--rs-space-2) var(--rs-space-3);
    border-radius: var(--rs-radius-sm);
    background-color: var(--rs-color-surface);
}

.rs-needs-review-banner__check-head[b-245xdzi2j8] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--rs-space-2);
}

.rs-needs-review-banner__check-message[b-245xdzi2j8] {
    color: var(--rs-color-fg);
    font-size: var(--rs-text-sm);
}

.rs-needs-review-banner__gate[b-245xdzi2j8] {
    padding: var(--rs-space-1) var(--rs-space-2);
    border-radius: var(--rs-radius-pill);
    font-size: var(--rs-text-xs);
    font-weight: var(--rs-font-weight-semibold);
    background-color: var(--rs-color-warning-subtle);
    color: var(--rs-color-warning);
    white-space: nowrap;
}

.rs-needs-review-banner__gate--stop[b-245xdzi2j8] {
    background-color: var(--rs-color-error-subtle);
    color: var(--rs-color-error);
}

.rs-needs-review-banner__provenance[b-245xdzi2j8] {
    margin: 0;
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-xs);
    line-height: var(--rs-line-height-snug);
}

.rs-needs-review-banner__provenance--exact[b-245xdzi2j8] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--rs-space-1) var(--rs-space-2);
}

.rs-needs-review-banner__exact-link[b-245xdzi2j8] {
    color: var(--rs-color-accent);
}

.rs-needs-review-banner__staleness[b-245xdzi2j8],
.rs-needs-review-banner__related[b-245xdzi2j8] {
    display: flex;
    align-items: center;
    gap: var(--rs-space-2);
    margin: 0;
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-xs);
    line-height: var(--rs-line-height-snug);
}

.rs-needs-review-banner__related-link[b-245xdzi2j8] {
    color: var(--rs-color-accent);
}
/* /Components/Review/NeedsReviewTableList.razor.rz.scp.css */
/* Needs-review table summary (DC.3): a list of tables with a per-table count, each a drill button. Tokens only. */

.rs-needs-review[b-x46yv1s5rc] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-2);
}

.rs-needs-review__status[b-x46yv1s5rc] {
    margin: 0;
    padding: var(--rs-space-4);
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-sm);
}

.rs-needs-review__error[b-x46yv1s5rc] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--rs-space-3);
    padding: var(--rs-space-3) var(--rs-space-4);
    border: 1px solid var(--rs-color-error);
    background-color: var(--rs-color-error-subtle);
    border-radius: var(--rs-radius-md);
    color: var(--rs-color-fg);
    font-size: var(--rs-text-sm);
}

.rs-needs-review__error p[b-x46yv1s5rc] {
    margin: 0;
}

.rs-needs-review__empty[b-x46yv1s5rc],
.rs-needs-review__unavailable[b-x46yv1s5rc] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--rs-space-2);
    padding: var(--rs-space-5);
    text-align: center;
    border: 1px dashed var(--rs-color-border);
    border-radius: var(--rs-radius-md);
    color: var(--rs-color-fg-muted);
}

.rs-needs-review__empty-icon[b-x46yv1s5rc] {
    font-size: var(--rs-text-xl);
    color: var(--rs-color-success);
}

.rs-needs-review__empty-title[b-x46yv1s5rc] {
    margin: 0;
    font-weight: var(--rs-font-weight-semibold);
    color: var(--rs-color-fg);
}

.rs-needs-review__empty-note[b-x46yv1s5rc] {
    margin: 0;
    font-size: var(--rs-text-sm);
}

.rs-needs-review__tables[b-x46yv1s5rc] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-2);
}

.rs-needs-review__table-button[b-x46yv1s5rc] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--rs-space-3);
    width: 100%;
    padding: var(--rs-space-3) var(--rs-space-4);
    border: 1px solid var(--rs-color-border);
    border-radius: var(--rs-radius-md);
    background-color: var(--rs-color-surface);
    color: var(--rs-color-fg);
    font-size: var(--rs-text-md);
    cursor: pointer;
    text-align: left;
}

.rs-needs-review__table-button:hover[b-x46yv1s5rc] {
    border-color: var(--rs-color-accent);
    background-color: var(--rs-color-surface-muted);
}

.rs-needs-review__table-name[b-x46yv1s5rc] {
    font-weight: var(--rs-font-weight-medium);
}

.rs-needs-review__table-count[b-x46yv1s5rc] {
    min-width: 2rem;
    padding: var(--rs-space-1) var(--rs-space-2);
    border-radius: var(--rs-radius-pill);
    background-color: var(--rs-color-warning-subtle);
    color: var(--rs-color-warning);
    font-weight: var(--rs-font-weight-semibold);
    text-align: center;
}
/* /Components/Review/SetFieldForAllDialog.razor.rz.scp.css */
.rs-set-all[b-vlau30sm71] {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 22rem;
}

.rs-set-all__explain[b-vlau30sm71] {
    margin: 0;
    color: var(--rs-color-text-muted, #5b6472);
    font-size: 0.9rem;
    line-height: 1.4;
}

.rs-set-all__preview[b-vlau30sm71] {
    margin: 0;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    background: var(--rs-color-surface-sunken, #f4f6f9);
    font-weight: 600;
}

.rs-set-all__results[b-vlau30sm71] {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.rs-set-all__results-head[b-vlau30sm71] {
    margin: 0;
    font-size: 1rem;
}

.rs-set-all__tally[b-vlau30sm71] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rs-set-all__tally-item[b-vlau30sm71] {
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    font-size: 0.85rem;
    background: var(--rs-color-surface-sunken, #f4f6f9);
}

.rs-set-all__tally-item--updated[b-vlau30sm71] {
    background: var(--rs-color-success-soft, #e5f6ec);
    color: var(--rs-color-success-text, #1c7a45);
}

.rs-set-all__tally-item--stopped[b-vlau30sm71] {
    background: var(--rs-color-warning-soft, #fdecec);
    color: var(--rs-color-warning-text, #9a3131);
}

.rs-set-all__tally-item--pending[b-vlau30sm71] {
    background: var(--rs-color-info-soft, #eef2fb);
    color: var(--rs-color-info-text, #3a4a7a);
}

.rs-set-all__tally-item--notfound[b-vlau30sm71] {
    background: var(--rs-color-neutral-soft, #eef0f2);
    color: var(--rs-color-neutral-text, #55606b);
}

.rs-set-all__note[b-vlau30sm71] {
    margin: 0;
    font-size: 0.85rem;
    color: var(--rs-color-text-muted, #5b6472);
}

.rs-set-all__rows[b-vlau30sm71] {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rs-set-all__row[b-vlau30sm71] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.375rem 0.625rem;
    border: 1px solid var(--rs-color-border, #dfe3e8);
    border-radius: 0.375rem;
}

.rs-set-all__row-id[b-vlau30sm71] {
    font-weight: 600;
}

.rs-set-all__row-open[b-vlau30sm71] {
    border: none;
    background: none;
    padding: 0;
    color: var(--rs-color-link, #2f6fed);
    cursor: pointer;
    font-size: 0.85rem;
}

.rs-set-all__row-open:hover[b-vlau30sm71] {
    text-decoration: underline;
}
/* /Components/Settings/AiTab.razor.rz.scp.css */
.rs-ai[b-1t920m9tmc] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-4);
    min-width: 0;
}

.rs-ai__status[b-1t920m9tmc],
.rs-ai__hint[b-1t920m9tmc] {
    margin: 0;
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-sm);
}

.rs-ai__actions[b-1t920m9tmc] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--rs-space-2);
}

.rs-ai__result[b-1t920m9tmc] {
    margin: 0;
    font-size: var(--rs-text-sm);
}

.rs-ai__result--ok[b-1t920m9tmc] {
    color: var(--rs-color-success);
}

.rs-ai__result--failed[b-1t920m9tmc] {
    color: var(--rs-color-danger);
}
/* /Components/Settings/ApiKeysTab.razor.rz.scp.css */
/* Reveal-once raw key callout. */
.rs-token-reveal[b-evxc6we662] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-3);
    padding: var(--rs-space-4);
    margin-bottom: var(--rs-space-4);
    border: 1px solid var(--rs-color-success-strong);
    background: var(--rs-color-success-subtle);
    border-radius: var(--rs-radius-md);
}

.rs-token-reveal__head[b-evxc6we662] {
    display: flex;
    align-items: flex-start;
    gap: var(--rs-space-3);
}

.rs-token-reveal__icon[b-evxc6we662] {
    color: var(--rs-color-success-strong);
    font-size: var(--rs-text-lg);
    margin-top: var(--rs-space-1);
}

.rs-token-reveal__title[b-evxc6we662] {
    margin: 0;
    font-weight: var(--rs-font-weight-semibold);
}

.rs-token-reveal__note[b-evxc6we662] {
    margin: var(--rs-space-1) 0 0;
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-sm);
}

.rs-token-reveal__key[b-evxc6we662] {
    display: flex;
    align-items: center;
    gap: var(--rs-space-2);
    flex-wrap: wrap;
}

.rs-token-reveal__value[b-evxc6we662] {
    flex: 1 1 auto;
    min-width: 0;
    padding: var(--rs-space-2) var(--rs-space-3);
    background: var(--rs-color-surface);
    border: 1px solid var(--rs-color-border);
    border-radius: var(--rs-radius-sm);
    font-family: var(--rs-font-mono);
    font-size: var(--rs-text-sm);
    word-break: break-all;
}

.rs-token-reveal__actions[b-evxc6we662] {
    display: flex;
    justify-content: flex-end;
}

/* Keys table. */
.rs-tokens__name[b-evxc6we662] {
    font-weight: var(--rs-font-weight-medium);
    margin-right: var(--rs-space-2);
}

.rs-tokens__prefix[b-evxc6we662] {
    font-family: var(--rs-font-mono);
    font-size: var(--rs-text-sm);
    color: var(--rs-color-fg-muted);
}

.rs-tokens__perms[b-evxc6we662] {
    display: inline-flex;
    flex-wrap: wrap;
    gap: var(--rs-space-1);
}

.rs-tokens__muted[b-evxc6we662] {
    color: var(--rs-color-fg-muted);
}

.rs-tokens__actions-col[b-evxc6we662] {
    width: 1%;
    white-space: nowrap;
}

.rs-tokens__actions[b-evxc6we662] {
    display: flex;
    gap: var(--rs-space-2);
    justify-content: flex-end;
    white-space: nowrap;
}
/* /Components/Settings/ConnectionsTab.razor.rz.scp.css */
.rs-connections[b-kwi03x7zyx] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-4);
    min-width: 0;
}

.rs-connections__hint[b-kwi03x7zyx] {
    margin: 0;
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-sm);
}

.rs-connections__actions[b-kwi03x7zyx] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--rs-space-2);
}

.rs-connections__editor[b-kwi03x7zyx],
.rs-connections__log[b-kwi03x7zyx] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-3);
    padding: var(--rs-space-4);
    border: 1px solid var(--rs-color-border);
    border-radius: var(--rs-radius-md);
}

.rs-connections__editor-title[b-kwi03x7zyx] {
    margin: 0;
    font-size: var(--rs-text-md);
    font-weight: var(--rs-font-weight-semibold);
}

.rs-connections__log-head[b-kwi03x7zyx] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--rs-space-2);
}

.rs-connections__result[b-kwi03x7zyx] {
    margin: 0;
    font-size: var(--rs-text-sm);
}

.rs-connections__result--ok[b-kwi03x7zyx] {
    color: var(--rs-color-success);
}

.rs-connections__result--failed[b-kwi03x7zyx] {
    color: var(--rs-color-danger);
}

.rs-connections__reveal[b-kwi03x7zyx] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-2);
    padding: var(--rs-space-4);
    border: 1px solid var(--rs-color-success-strong);
    background: var(--rs-color-success-subtle);
    border-radius: var(--rs-radius-md);
}

.rs-connections__reveal-title[b-kwi03x7zyx] {
    margin: 0;
    font-weight: var(--rs-font-weight-semibold);
}

.rs-connections__reveal-note[b-kwi03x7zyx] {
    margin: 0;
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-sm);
}

.rs-connections__reveal-key[b-kwi03x7zyx] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--rs-space-2);
}

.rs-connections__reveal-value[b-kwi03x7zyx] {
    flex: 1 1 auto;
    min-width: 0;
    padding: var(--rs-space-2) var(--rs-space-3);
    background: var(--rs-color-surface);
    border: 1px solid var(--rs-color-border);
    border-radius: var(--rs-radius-sm);
    font-family: var(--rs-font-mono);
    font-size: var(--rs-text-sm);
    word-break: break-all;
}

.rs-connections__table[b-kwi03x7zyx] {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--rs-text-sm);
}

.rs-connections__table th[b-kwi03x7zyx],
.rs-connections__table td[b-kwi03x7zyx] {
    padding: var(--rs-space-2);
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--rs-color-border);
}

.rs-connections__name[b-kwi03x7zyx] {
    font-weight: var(--rs-font-weight-medium);
}

.rs-connections__url[b-kwi03x7zyx] {
    font-family: var(--rs-font-mono);
    word-break: break-all;
}

.rs-connections__row-actions[b-kwi03x7zyx] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--rs-space-1);
}

.rs-connections__sr[b-kwi03x7zyx] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}
/* /Components/Settings/MembersTab.razor.rz.scp.css */
.rs-workspace[b-q71rw2bjiv] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-4);
    min-width: 0;
}

.rs-workspace__empty[b-q71rw2bjiv] {
    margin: 0;
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-sm);
}

.rs-workspace__add[b-q71rw2bjiv] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-2);
}

.rs-workspace__add-row[b-q71rw2bjiv] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--rs-space-3);
}

.rs-workspace__member[b-q71rw2bjiv] {
    margin-right: var(--rs-space-2);
}

.rs-workspace__actions-col[b-q71rw2bjiv],
.rs-workspace__actions-cell[b-q71rw2bjiv] {
    width: 1%;
    text-align: right;
    white-space: nowrap;
}
/* /Components/Settings/PasskeySettings.razor.rz.scp.css */
.rs-passkeys__status[b-18jbm3xy19] {
    margin: 0 0 var(--rs-space-4);
    font-size: var(--rs-text-sm);
}

.rs-passkeys__hint[b-18jbm3xy19] {
    margin: 0 0 var(--rs-space-4);
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-sm);
}

.rs-passkeys__list[b-18jbm3xy19] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-3);
    margin-bottom: var(--rs-space-4);
}

.rs-passkeys__key[b-18jbm3xy19] {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: var(--rs-space-3);
    padding: var(--rs-space-4);
    border: 1px solid var(--rs-color-border);
    border-radius: var(--rs-radius-md);
}

.rs-passkeys__icon[b-18jbm3xy19] {
    margin-top: var(--rs-space-1);
    color: var(--rs-color-fg-muted);
}

.rs-passkeys__details[b-18jbm3xy19] {
    flex: 1 1 16rem;
    min-width: 0;
}

.rs-passkeys__meta[b-18jbm3xy19] {
    margin: var(--rs-space-2) 0 0;
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-sm);
}

.rs-passkeys__actions[b-18jbm3xy19] {
    display: flex;
    gap: var(--rs-space-2);
}

.rs-passkeys__save-state[b-18jbm3xy19] {
    display: flex;
    align-items: center;
    gap: var(--rs-space-1);
    margin: var(--rs-space-1) 0 0;
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-sm);
}

.rs-passkeys__save-state--saved[b-18jbm3xy19] {
    color: var(--rs-color-success);
}

.rs-passkeys__save-state--failed[b-18jbm3xy19] {
    color: var(--rs-color-error);
}
/* /Components/Settings/PermissionPicker.razor.rz.scp.css */
.rs-permission-picker[b-oa71sjbd8v] {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: var(--rs-space-3);
}

.rs-permission-picker__help[b-oa71sjbd8v],
.rs-permission-picker__choice-help[b-oa71sjbd8v],
.rs-permission-picker__additional p[b-oa71sjbd8v],
.rs-permission-picker__conversion p[b-oa71sjbd8v],
.rs-permission-picker__grant-none[b-oa71sjbd8v] {
    margin: 0;
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-sm);
}

.rs-permission-picker__ceiling-notice[b-oa71sjbd8v] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--rs-space-2);
    padding: var(--rs-space-3);
    border: 1px solid var(--rs-color-warning);
    border-radius: var(--rs-radius-md);
    background: var(--rs-color-warning-subtle);
    color: var(--rs-color-fg);
}

.rs-permission-picker__ceiling-notice p[b-oa71sjbd8v],
.rs-permission-picker__ceiling-help[b-oa71sjbd8v] {
    margin: 0;
    font-size: var(--rs-text-sm);
}

.rs-permission-picker__ceiling-help[b-oa71sjbd8v] {
    color: var(--rs-color-fg-muted);
}

.rs-permission-picker__ceiling-denied[b-oa71sjbd8v] {
    display: block;
    margin-top: var(--rs-space-1);
    color: var(--rs-color-error);
    font-weight: var(--rs-font-weight-medium);
}

.rs-permission-picker__grid[b-oa71sjbd8v] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    gap: var(--rs-space-3);
    min-width: 0;
}

.rs-permission-picker__group[b-oa71sjbd8v] {
    min-width: 0;
    margin: 0;
    padding: var(--rs-space-3);
    border: 1px solid var(--rs-color-border);
    border-radius: var(--rs-radius-md);
}

.rs-permission-picker__group legend[b-oa71sjbd8v],
.rs-permission-picker__summary h4[b-oa71sjbd8v],
.rs-permission-picker__additional h4[b-oa71sjbd8v] {
    margin: 0;
    color: var(--rs-color-fg);
    font-size: var(--rs-text-sm);
    font-weight: var(--rs-font-weight-semibold);
}

.rs-permission-picker__choice + .rs-permission-picker__choice[b-oa71sjbd8v] {
    margin-top: var(--rs-space-3);
}

.rs-permission-picker__choice-help[b-oa71sjbd8v] {
    margin-top: var(--rs-space-1);
    padding-left: calc(var(--rs-space-4) + var(--rs-space-1));
}

.rs-permission-picker__coverage[b-oa71sjbd8v] {
    display: block;
    margin-top: var(--rs-space-1);
    font-weight: var(--rs-font-weight-medium);
    color: var(--rs-color-fg);
}

.rs-permission-picker__warning[b-oa71sjbd8v] {
    margin: var(--rs-space-2) 0 0;
    padding: var(--rs-space-2);
    border-left: 3px solid var(--rs-color-warning);
    border-radius: var(--rs-radius-sm);
    background: var(--rs-color-warning-subtle);
    color: var(--rs-color-fg);
    font-size: var(--rs-text-sm);
}

.rs-permission-picker__conversion[b-oa71sjbd8v],
.rs-permission-picker__additional[b-oa71sjbd8v],
.rs-permission-picker__summary[b-oa71sjbd8v] {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--rs-space-2);
    padding: var(--rs-space-3);
    border: 1px solid var(--rs-color-border);
    border-radius: var(--rs-radius-md);
}

.rs-permission-picker__advanced[b-oa71sjbd8v] {
    min-width: 0;
}

.rs-permission-picker__advanced summary[b-oa71sjbd8v] {
    cursor: pointer;
    color: var(--rs-color-fg);
    font-weight: var(--rs-font-weight-medium);
}

.rs-permission-picker__advanced[open] summary[b-oa71sjbd8v] {
    margin-bottom: var(--rs-space-2);
}

.rs-permission-picker__badges[b-oa71sjbd8v],
.rs-permission-picker__preview-list[b-oa71sjbd8v] {
    display: flex;
    max-width: 100%;
    flex-wrap: wrap;
    gap: var(--rs-space-1);
}

.rs-permission-picker__grant[b-oa71sjbd8v] {
    max-width: 100%;
    overflow-wrap: anywhere;
    padding: var(--rs-space-1) var(--rs-space-2);
    background: var(--rs-color-surface-muted);
    border: 1px solid var(--rs-color-border);
    border-radius: var(--rs-radius-sm);
    color: var(--rs-color-fg);
    font-family: var(--rs-font-mono);
    font-size: var(--rs-text-xs);
}

.rs-permission-picker__grant-none[b-oa71sjbd8v] {
    font-style: italic;
}

.rs-permission-picker__preview[b-oa71sjbd8v] {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: var(--rs-space-3);
}

.rs-permission-picker__preview p[b-oa71sjbd8v] {
    margin: 0;
}

@media (max-width: 24rem) {
    .rs-permission-picker__group[b-oa71sjbd8v],
    .rs-permission-picker__conversion[b-oa71sjbd8v],
    .rs-permission-picker__additional[b-oa71sjbd8v],
    .rs-permission-picker__summary[b-oa71sjbd8v] {
        padding: var(--rs-space-2);
    }
}
/* /Components/Settings/ProfileTab.razor.rz.scp.css */
.rs-account[b-w59n09kz3x] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-4);
}

.rs-account__identity[b-w59n09kz3x] {
    display: flex;
    align-items: center;
    gap: var(--rs-space-4);
    min-width: 0;
}

.rs-account__details[b-w59n09kz3x] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-1);
    min-width: 0;
}

.rs-account__name[b-w59n09kz3x] {
    margin: 0;
    font-size: var(--rs-text-md);
    font-weight: var(--rs-font-weight-semibold);
}

.rs-account__email[b-w59n09kz3x] {
    margin: 0;
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-sm);
    word-break: break-all;
}

.rs-account__note[b-w59n09kz3x] {
    margin: 0;
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-sm);
}

.rs-account__signout[b-w59n09kz3x] {
    margin: 0;
    flex-shrink: 0;
}
/* /Components/Settings/ServiceAccountBadge.razor.rz.scp.css */
/* Service-account badge (E4.P1 #403) — its own polished surface, built only from the shared --rs-* design tokens
   (never borrowed from another component's classes). A pill that reads as an "app identity, not a person": a tinted
   accent chip with a robot glyph, distinct from the neutral/error Badge variants used elsewhere in the keys table. */

.rs-sa-badge[b-55vmvvionm] {
    display: inline-flex;
    align-items: center;
    gap: var(--rs-space-1);
    padding: var(--rs-space-1) var(--rs-space-2);
    border: 1px solid var(--rs-color-accent);
    border-radius: var(--rs-radius-pill, 999px);
    background: var(--rs-color-accent-subtle);
    color: var(--rs-color-accent);
    font-size: var(--rs-text-xs);
    font-weight: var(--rs-font-weight-semibold);
    line-height: 1;
    white-space: nowrap;
    vertical-align: middle;
}

.rs-sa-badge__icon[b-55vmvvionm] {
    font-size: var(--rs-text-sm);
}

.rs-sa-badge__label[b-55vmvvionm] {
    letter-spacing: 0.01em;
}

/* Dense variant for table rows: smaller type, tighter padding. */
.rs-sa-badge--sm[b-55vmvvionm] {
    padding: 0 var(--rs-space-1);
    font-size: var(--rs-text-2xs, var(--rs-text-xs));
}

.rs-sa-badge--sm .rs-sa-badge__icon[b-55vmvvionm] {
    font-size: var(--rs-text-xs);
}
/* /Components/Settings/StorageTab.razor.rz.scp.css */
.rs-storage[b-p073b6p0su] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-4);
    min-width: 0;
}

.rs-storage__plan[b-p073b6p0su],
.rs-storage__empty[b-p073b6p0su],
.rs-storage__note[b-p073b6p0su] {
    margin: 0;
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-sm);
}

.rs-storage__full[b-p073b6p0su] {
    margin: 0;
    font-size: var(--rs-text-sm);
}

.rs-storage__list[b-p073b6p0su] {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rs-storage__row[b-p073b6p0su] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--rs-space-4);
    padding: var(--rs-space-2) 0;
    min-width: 0;
}

.rs-storage__name[b-p073b6p0su] {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rs-storage__size[b-p073b6p0su] {
    flex: none;
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-sm);
}
/* /Components/Settings/WorkspaceTab.razor.rz.scp.css */
.rs-workspace[b-tw1ulpptck] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-4);
    min-width: 0;
}

.rs-workspace__empty[b-tw1ulpptck] {
    margin: 0;
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-sm);
}

.rs-workspace__details[b-tw1ulpptck] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-1);
}

.rs-workspace__name[b-tw1ulpptck] {
    margin: 0;
    font-weight: var(--rs-font-weight-semibold);
}

.rs-workspace__role[b-tw1ulpptck],
.rs-workspace__meta[b-tw1ulpptck] {
    margin: 0;
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-sm);
}

.rs-workspace__actions[b-tw1ulpptck] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--rs-space-2);
    margin-top: var(--rs-space-3);
}
/* /Components/Shared/AppearancesPanel.razor.rz.scp.css */
.rs-appearances[b-pwjalked16] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-3, 0.75rem);
}

.rs-appearances__header[b-pwjalked16] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--rs-space-2, 0.5rem);
}

.rs-appearances__title[b-pwjalked16] {
    margin: 0;
    font-size: var(--rs-text-md, 1rem);
    font-weight: 600;
}

.rs-appearances__count[b-pwjalked16] {
    font-size: var(--rs-text-sm, 0.8125rem);
    color: var(--rs-color-text-muted, #6b7280);
}

.rs-appearances__empty[b-pwjalked16],
.rs-appearances__error[b-pwjalked16] {
    margin: 0;
    font-size: var(--rs-text-sm, 0.8125rem);
    color: var(--rs-color-text-muted, #6b7280);
}

.rs-appearances__error[b-pwjalked16] {
    color: var(--rs-color-danger, #b91c1c);
}

.rs-appearances__group[b-pwjalked16] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-2, 0.5rem);
}

.rs-appearances__group-heading[b-pwjalked16] {
    margin: 0;
    font-size: var(--rs-text-xs, 0.75rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--rs-color-text-muted, #6b7280);
}

.rs-appearances__list[b-pwjalked16] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-1, 0.25rem);
}

.rs-appearances__entry[b-pwjalked16] {
    display: flex;
    align-items: center;
    gap: var(--rs-space-3, 0.75rem);
    width: 100%;
    padding: var(--rs-space-2, 0.5rem);
    border: 1px solid transparent;
    border-radius: var(--rs-radius-md, 0.5rem);
    background: transparent;
    text-align: left;
    cursor: pointer;
    color: inherit;
    transition: background 120ms ease, border-color 120ms ease;
}

.rs-appearances__entry:hover[b-pwjalked16] {
    background: var(--rs-color-surface-hover, rgba(0, 0, 0, 0.04));
}

.rs-appearances__entry--selected[b-pwjalked16] {
    border-color: var(--rs-color-accent, #4f46e5);
    background: var(--rs-color-accent-subtle, rgba(79, 70, 229, 0.08));
}

.rs-appearances__thumb[b-pwjalked16] {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: var(--rs-radius-sm, 0.375rem);
    overflow: hidden;
    background: var(--rs-color-surface-sunken, rgba(0, 0, 0, 0.05));
    color: var(--rs-color-text-muted, #6b7280);
}

.rs-appearances__thumb img[b-pwjalked16] {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rs-appearances__meta[b-pwjalked16] {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}

.rs-appearances__page[b-pwjalked16] {
    display: flex;
    align-items: center;
    gap: var(--rs-space-2, 0.5rem);
    font-weight: 500;
}

.rs-appearances__badge[b-pwjalked16] {
    font-size: var(--rs-text-xs, 0.75rem);
    font-weight: 600;
    padding: 0.0625rem 0.375rem;
    border-radius: 999px;
    background: var(--rs-color-accent, #4f46e5);
    color: #fff;
}

.rs-appearances__qty[b-pwjalked16] {
    font-size: var(--rs-text-sm, 0.8125rem);
    color: var(--rs-color-text-muted, #6b7280);
}

.rs-appearances__no-region[b-pwjalked16] {
    font-size: var(--rs-text-xs, 0.75rem);
    font-style: italic;
    color: var(--rs-color-text-muted, #6b7280);
}
/* /Components/Shared/Avatar.razor.rz.scp.css */
.rs-avatar[b-9218p1zzav] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    overflow: hidden;
    background-color: var(--rs-color-accent-subtle);
    color: var(--rs-color-accent-hover);
    font-weight: var(--rs-font-weight-medium);
    line-height: 1;
    user-select: none;
}

/* Sizes */
.rs-avatar--xs[b-9218p1zzav] {
    width: 1.5rem;
    height: 1.5rem;
    font-size: var(--rs-text-xs);
}

.rs-avatar--sm[b-9218p1zzav] {
    width: 2rem;
    height: 2rem;
    font-size: var(--rs-text-xs);
}

.rs-avatar--md[b-9218p1zzav] {
    width: 2.5rem;
    height: 2.5rem;
    font-size: var(--rs-text-sm);
}

.rs-avatar--lg[b-9218p1zzav] {
    width: 3.5rem;
    height: 3.5rem;
    font-size: var(--rs-text-lg);
}

/* Shapes */
.rs-avatar--circle[b-9218p1zzav] {
    border-radius: var(--rs-radius-pill);
}

.rs-avatar--square[b-9218p1zzav] {
    border-radius: var(--rs-radius-md);
}

.rs-avatar__image[b-9218p1zzav] {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rs-avatar__initials[b-9218p1zzav] {
    text-transform: uppercase;
}
/* /Components/Shared/AvatarStack.razor.rz.scp.css */
.rs-avatar-stack[b-xj925l9hfm] {
    display: inline-flex;
    align-items: center;
}

.rs-avatar-stack__item[b-xj925l9hfm] {
    display: inline-flex;
    border-radius: var(--rs-radius-pill);
    box-shadow: 0 0 0 2px var(--rs-color-surface);
}

.rs-avatar-stack__item:not(:first-child)[b-xj925l9hfm] {
    /* Overlap enough to read as a stack, but not so much that two-letter initials get clipped by the
       neighbouring avatar's white ring. */
    margin-left: calc(-1.5 * var(--rs-space-1));
}

.rs-avatar-stack__overflow[b-xj925l9hfm] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    background-color: var(--rs-color-surface-muted);
    color: var(--rs-color-fg-muted);
    font-weight: var(--rs-font-weight-medium);
    border-radius: var(--rs-radius-pill);
}

.rs-avatar-stack__overflow--xs[b-xj925l9hfm] {
    width: 1.5rem;
    height: 1.5rem;
    font-size: var(--rs-text-xs);
}

.rs-avatar-stack__overflow--sm[b-xj925l9hfm] {
    width: 2rem;
    height: 2rem;
    font-size: var(--rs-text-xs);
}

.rs-avatar-stack__overflow--md[b-xj925l9hfm] {
    width: 2.5rem;
    height: 2.5rem;
    font-size: var(--rs-text-sm);
}

.rs-avatar-stack__overflow--lg[b-xj925l9hfm] {
    width: 3.5rem;
    height: 3.5rem;
    font-size: var(--rs-text-md);
}
/* /Components/Shared/Badge.razor.rz.scp.css */
.rs-badge[b-v5acv7ops8] {
    display: inline-flex;
    align-items: center;
    padding: var(--rs-space-1) var(--rs-space-2);
    border-radius: var(--rs-radius-pill);
    font-size: var(--rs-text-xs);
    font-weight: var(--rs-font-weight-medium);
    line-height: var(--rs-line-height-tight);
}

.rs-badge--neutral[b-v5acv7ops8] {
    background-color: var(--rs-color-surface-muted);
    color: var(--rs-color-fg-muted);
}

.rs-badge--accent[b-v5acv7ops8] {
    background-color: var(--rs-color-accent-subtle);
    color: var(--rs-color-accent-active);
}

.rs-badge--success[b-v5acv7ops8] {
    background-color: var(--rs-color-success-subtle);
    color: var(--rs-color-success-strong);
}

.rs-badge--warning[b-v5acv7ops8] {
    background-color: var(--rs-color-warning-subtle);
    color: var(--rs-color-warning);
}

.rs-badge--error[b-v5acv7ops8] {
    background-color: var(--rs-color-error-subtle);
    color: var(--rs-color-error-hover);
}
/* /Components/Shared/Button.razor.rz.scp.css */
.rs-button[b-735ls4okui] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--rs-space-2);
    border: 1px solid transparent;
    border-radius: var(--rs-radius-md);
    font-weight: var(--rs-font-weight-medium);
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.rs-button:disabled[b-735ls4okui] {
    cursor: not-allowed;
    opacity: 0.55;
}

/* Sizes — fixed heights (with horizontal-only padding; vertical centring via align-items) so any two
   buttons of the same size always match, and they line up with same-height controls like the
   SegmentedControl. */
.rs-button--medium[b-735ls4okui] {
    height: var(--rs-control-height);
    padding: 0 var(--rs-space-4);
    font-size: var(--rs-text-sm);
}

.rs-button--small[b-735ls4okui] {
    height: var(--rs-control-height);
    padding: 0 var(--rs-space-3);
    font-size: var(--rs-text-sm);
}

/* Primary */
.rs-button--primary[b-735ls4okui] {
    background-color: var(--rs-color-accent);
    color: var(--rs-color-fg-on-accent);
}

.rs-button--primary:hover:not(:disabled)[b-735ls4okui] {
    background-color: var(--rs-color-accent-hover);
}

.rs-button--primary:active:not(:disabled)[b-735ls4okui] {
    background-color: var(--rs-color-accent-active);
}

/* Secondary */
.rs-button--secondary[b-735ls4okui] {
    background-color: var(--rs-color-surface);
    color: var(--rs-color-fg);
    border-color: var(--rs-color-border-strong);
}

.rs-button--secondary:hover:not(:disabled)[b-735ls4okui] {
    background-color: var(--rs-color-surface-muted);
}

/* Danger */
.rs-button--danger[b-735ls4okui] {
    background-color: var(--rs-color-error);
    color: var(--rs-color-fg-on-accent);
}

.rs-button--danger:hover:not(:disabled)[b-735ls4okui] {
    background-color: var(--rs-color-error-hover);
}

/* Ghost */
.rs-button--ghost[b-735ls4okui] {
    background-color: transparent;
    color: var(--rs-color-accent);
}

.rs-button--ghost:hover:not(:disabled)[b-735ls4okui] {
    background-color: var(--rs-color-accent-subtle);
}
/* /Components/Shared/CalendarGrid.razor.rz.scp.css */
/* The month calendar (header nav + weekday row + day grid). This component is the sole renderer of the grid,
   so its styling is scoped here. All colour/size comes from --rs-* tokens, so it inherits the dark remap for
   free. The shared trigger/popover chrome lives in components.css (Picker family). */
.rs-date-popover__header[b-6vaq5b0nl4] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--rs-space-2);
    margin-bottom: var(--rs-space-2);
}

.rs-date-popover__month[b-6vaq5b0nl4] {
    font-size: var(--rs-text-sm);
    font-weight: var(--rs-font-weight-semibold);
    color: var(--rs-color-fg);
}

.rs-date-grid[b-6vaq5b0nl4] {
    border-collapse: collapse;
    table-layout: fixed;
}

.rs-date-grid__weekday[b-6vaq5b0nl4] {
    width: var(--rs-control-height);
    padding: var(--rs-space-1) 0;
    font-size: var(--rs-text-xs);
    font-weight: var(--rs-font-weight-medium);
    color: var(--rs-color-fg-muted);
}

.rs-date-grid__weekday abbr[b-6vaq5b0nl4] {
    text-decoration: none;
    cursor: default;
}

.rs-date-grid__cell[b-6vaq5b0nl4] {
    padding: 1px;
    text-align: center;
}

.rs-date-grid__day[b-6vaq5b0nl4] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--rs-control-height);
    height: var(--rs-control-height);
    padding: 0;
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: var(--rs-radius-md);
    color: var(--rs-color-fg);
    font-size: var(--rs-text-sm);
    cursor: pointer;
}

.rs-date-grid__day:hover:not(:disabled)[b-6vaq5b0nl4] {
    background-color: var(--rs-color-surface-muted);
}

.rs-date-grid__day--outside[b-6vaq5b0nl4] {
    color: var(--rs-color-fg-muted);
}

/* Today: an accent ring (kept visible alongside the selected fill). */
.rs-date-grid__day--today[b-6vaq5b0nl4] {
    border-color: var(--rs-color-accent);
}

/* Selected: the accent fill with on-accent text — wins over today/hover. */
.rs-date-grid__day--selected[b-6vaq5b0nl4],
.rs-date-grid__day--selected:hover[b-6vaq5b0nl4] {
    background-color: var(--rs-color-accent);
    border-color: var(--rs-color-accent);
    color: var(--rs-color-fg-on-accent);
}

.rs-date-grid__day:disabled[b-6vaq5b0nl4] {
    color: var(--rs-color-fg-muted);
    opacity: 0.4;
    cursor: not-allowed;
}
/* /Components/Shared/Card.razor.rz.scp.css */
.rs-card[b-9yz3tdxcfw] {
    background-color: var(--rs-color-surface);
    border: 1px solid var(--rs-color-border);
    border-radius: var(--rs-radius-xl);
    box-shadow: var(--rs-shadow-sm);
    overflow: hidden;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.rs-card:hover[b-9yz3tdxcfw] {
    box-shadow: var(--rs-shadow-md);
    transform: translateY(-1px);
}

.rs-card__header[b-9yz3tdxcfw] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--rs-space-3);
    padding: var(--rs-space-4) var(--rs-space-5);
    border-bottom: 1px solid var(--rs-color-border);
}

.rs-card__title[b-9yz3tdxcfw] {
    font-size: var(--rs-text-lg);
}

.rs-card__body[b-9yz3tdxcfw] {
    padding: var(--rs-space-5);
    font-size: var(--rs-text-sm);
}

.rs-card__footer[b-9yz3tdxcfw] {
    padding: var(--rs-space-4) var(--rs-space-5);
    border-top: 1px solid var(--rs-color-border);
}
/* /Components/Shared/Checkbox.razor.rz.scp.css */
.rs-checkbox[b-ezc8vafwn5] {
    display: inline-flex;
    align-items: center;
    gap: var(--rs-space-2);
    cursor: pointer;
}

.rs-checkbox__input[b-ezc8vafwn5] {
    width: 1rem;
    height: 1rem;
    accent-color: var(--rs-color-accent);
    cursor: pointer;
}

.rs-checkbox__input:disabled[b-ezc8vafwn5] {
    cursor: not-allowed;
}

.rs-checkbox__label[b-ezc8vafwn5] {
    font-size: var(--rs-text-sm);
}
/* /Components/Shared/ClockFormatToggle.razor.rz.scp.css */
.rs-clock-format-toggle[b-0i2mozvin9] {
    display: inline-flex;
}
/* /Components/Shared/ComingSoonPanel.razor.rz.scp.css */
.rs-coming-soon-panel[b-eq8epgkk3g] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--rs-space-3);
    padding: var(--rs-space-8) var(--rs-space-4);
    text-align: center;
}

.rs-coming-soon-panel__chip[b-eq8epgkk3g] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--rs-radius-xl);
    background-color: var(--rs-color-accent-subtle);
    color: var(--rs-color-accent);
    font-size: var(--rs-text-xl);
}

.rs-coming-soon-panel__title[b-eq8epgkk3g] {
    margin: 0;
    font-size: var(--rs-text-lg);
}

.rs-coming-soon-panel__message[b-eq8epgkk3g] {
    margin: 0;
    max-width: 28rem;
    font-size: var(--rs-text-sm);
    color: var(--rs-color-fg-muted);
}

.rs-coming-soon-panel__action[b-eq8epgkk3g] {
    margin-top: var(--rs-space-1);
}

.rs-coming-soon-panel__action[b-eq8epgkk3g]  a {
    display: inline-flex;
    align-items: center;
    gap: var(--rs-space-2);
    font-size: var(--rs-text-sm);
    font-weight: 500;
    color: var(--rs-color-accent);
    text-decoration: none;
}

.rs-coming-soon-panel__action[b-eq8epgkk3g]  a:hover {
    text-decoration: underline;
}
/* /Components/Shared/ConfirmDialog.razor.rz.scp.css */
.rs-confirm-dialog__message[b-klzu2sfacx] {
    margin: 0;
    font-size: var(--rs-text-sm);
    color: var(--rs-color-fg);
}
/* /Components/Shared/ContainerField.razor.rz.scp.css */
.rs-container-field[b-xuxi22ki6s] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-2);
}

.rs-container-field__error[b-xuxi22ki6s] {
    margin: 0;
    color: var(--rs-color-danger, #b3261e);
    font-size: var(--rs-font-size-sm, 0.85rem);
}

/* --- Empty state: drop zone --------------------------------------------------------------------- */

.rs-container-field__dropzone[b-xuxi22ki6s] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--rs-space-2);
    padding: var(--rs-space-5) var(--rs-space-4);
    border: 1px dashed var(--rs-color-border, #cbd2e0);
    border-radius: var(--rs-radius-md, 0.5rem);
    background: var(--rs-color-surface-muted, #f6f8fb);
    color: var(--rs-color-text-muted, #5b6472);
    cursor: pointer;
    text-align: center;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.rs-container-field__dropzone:hover[b-xuxi22ki6s] {
    border-color: var(--rs-color-primary, #4f46e5);
    background: var(--rs-color-surface, #fff);
}

/* The native file input is invisible but fills the label, so the whole zone is the click/drop target. */
.rs-container-field__dropzone[b-xuxi22ki6s]  input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.rs-container-field__dropzone[b-xuxi22ki6s] {
    position: relative;
}

.rs-container-field__dropzone-icon[b-xuxi22ki6s] {
    font-size: 1.5rem;
}

.rs-container-field__empty--readonly[b-xuxi22ki6s] {
    margin: 0;
    color: var(--rs-color-text-muted, #5b6472);
}

/* --- Populated state ---------------------------------------------------------------------------- */

.rs-container-field__file[b-xuxi22ki6s] {
    display: flex;
    align-items: center;
    gap: var(--rs-space-3);
    padding: var(--rs-space-3);
    border: 1px solid var(--rs-color-border, #cbd2e0);
    border-radius: var(--rs-radius-md, 0.5rem);
    background: var(--rs-color-surface, #fff);
}

.rs-container-field__preview[b-xuxi22ki6s] {
    flex: 0 0 auto;
}

.rs-container-field__preview-link[b-xuxi22ki6s] {
    display: block;
    line-height: 0;
}

.rs-container-field__image[b-xuxi22ki6s] {
    display: block;
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: var(--rs-radius-sm, 0.375rem);
    background: var(--rs-color-surface-muted, #f6f8fb);
}

.rs-container-field__icon[b-xuxi22ki6s] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    border-radius: var(--rs-radius-sm, 0.375rem);
    background: var(--rs-color-surface-muted, #f6f8fb);
    color: var(--rs-color-text-muted, #5b6472);
    font-size: 2rem;
}

.rs-container-field__meta[b-xuxi22ki6s] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1 1 auto;
}

.rs-container-field__name[b-xuxi22ki6s] {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rs-container-field__size[b-xuxi22ki6s],
.rs-container-field__pending[b-xuxi22ki6s] {
    font-size: var(--rs-font-size-sm, 0.85rem);
    color: var(--rs-color-text-muted, #5b6472);
}

.rs-container-field__actions[b-xuxi22ki6s] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--rs-space-2);
    flex: 0 0 auto;
}

/* The Replace control is a styled <label> wrapping a hidden file input (matches the ghost button chrome). */
.rs-container-field__replace[b-xuxi22ki6s] {
    position: relative;
    cursor: pointer;
}

.rs-container-field__replace[b-xuxi22ki6s]  input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
/* /Components/Shared/ContainerThumbnail.razor.rz.scp.css */
.rs-container-thumb[b-qttwa1apuu] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--rs-radius-sm, 0.375rem);
    vertical-align: middle;
}

.rs-container-thumb--image[b-qttwa1apuu] {
    object-fit: cover;
    background: var(--rs-color-surface-muted, #f6f8fb);
    border: 1px solid var(--rs-color-border, #cbd2e0);
}

.rs-container-thumb--icon[b-qttwa1apuu] {
    background: var(--rs-color-surface-muted, #f6f8fb);
    color: var(--rs-color-text-muted, #5b6472);
    font-size: 1.1rem;
}

.rs-container-thumb--empty[b-qttwa1apuu] {
    color: var(--rs-color-text-muted, #9aa3b2);
    width: auto;
    height: auto;
}
/* /Components/Shared/DatabaseBackupHost.razor.rz.scp.css */
/* Bottom-left, clear of the toasts on the right, and above the modal layer so it still shows over a dialog. */
.rs-backup-preparing[b-ak0an2vthr] {
    position: fixed;
    left: var(--rs-space-4);
    bottom: var(--rs-space-4);
    z-index: 1100;
    display: flex;
    align-items: center;
    gap: var(--rs-space-2);
    max-width: min(28rem, calc(100vw - 2 * var(--rs-space-4)));
    padding: var(--rs-space-3) var(--rs-space-4);
    border: 1px solid var(--rs-color-border);
    border-radius: var(--rs-radius-md);
    background-color: var(--rs-color-surface);
    box-shadow: var(--rs-shadow-md);
    font-size: var(--rs-text-sm);
}

.rs-backup-restore[b-ak0an2vthr] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-4);
}

.rs-backup-restore__file[b-ak0an2vthr] {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--rs-space-3);
    padding: var(--rs-space-4);
    border: 1px dashed var(--rs-color-border-strong);
    border-radius: var(--rs-radius-md);
    background-color: var(--rs-color-surface-muted);
    cursor: pointer;
}

.rs-backup-restore__file:hover[b-ak0an2vthr] {
    border-color: var(--rs-color-accent);
}

.rs-backup-restore__file:focus-within[b-ak0an2vthr] {
    outline: var(--rs-focus-ring-width) solid var(--rs-color-focus-ring);
    outline-offset: 2px;
}

.rs-backup-restore__file--busy[b-ak0an2vthr] {
    cursor: progress;
    opacity: 0.7;
}

/* The native input covers the whole drop zone, so a click or a dropped file anywhere on it reaches the input. */
.rs-backup-restore__file[b-ak0an2vthr]  input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: inherit;
}

.rs-backup-restore__file-icon[b-ak0an2vthr] {
    font-size: var(--rs-text-2xl);
    color: var(--rs-color-accent);
}

.rs-backup-restore__file-text[b-ak0an2vthr] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-1);
    min-width: 0;
    overflow-wrap: anywhere;
}

.rs-backup-restore__hint[b-ak0an2vthr] {
    margin: 0;
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-xs);
}

.rs-backup-restore__progress[b-ak0an2vthr] {
    margin: 0;
    font-size: var(--rs-text-sm);
}
/* /Components/Shared/DatabaseCard.razor.rz.scp.css */
.rs-db-card[b-muujxo6jii] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-3);
    padding: var(--rs-space-5);
    background-color: var(--rs-color-surface);
    border: 1px solid var(--rs-color-border);
    border-radius: var(--rs-radius-xl);
    box-shadow: var(--rs-shadow-sm);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.rs-db-card:hover[b-muujxo6jii] {
    box-shadow: var(--rs-shadow-md);
    transform: translateY(-2px);
}

.rs-db-card__top[b-muujxo6jii] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.rs-db-card__chip[b-muujxo6jii] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--rs-radius-lg);
    box-shadow: var(--rs-shadow-sm);
    font-size: var(--rs-text-lg);
}

.rs-db-card__chip--indigo[b-muujxo6jii] {
    background-color: var(--rs-color-chip-indigo-bg);
    color: var(--rs-color-chip-indigo-fg);
}

.rs-db-card__chip--green[b-muujxo6jii] {
    background-color: var(--rs-color-chip-green-bg);
    color: var(--rs-color-chip-green-fg);
}

.rs-db-card__chip--violet[b-muujxo6jii] {
    background-color: var(--rs-color-chip-violet-bg);
    color: var(--rs-color-chip-violet-fg);
}

.rs-db-card__name[b-muujxo6jii] {
    font-size: var(--rs-text-md);
    font-weight: var(--rs-font-weight-semibold);
    color: var(--rs-color-fg);
    text-decoration: none;
}

.rs-db-card__name:hover[b-muujxo6jii] {
    color: var(--rs-color-accent);
}

.rs-db-card__meta[b-muujxo6jii] {
    margin: 0;
    font-size: var(--rs-text-sm);
    color: var(--rs-color-fg-muted);
}

.rs-db-card__divider[b-muujxo6jii] {
    height: 1px;
    background-color: var(--rs-color-border);
}

.rs-db-card__footer[b-muujxo6jii] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--rs-space-3);
}

.rs-db-card__updated[b-muujxo6jii] {
    font-size: var(--rs-text-xs);
    color: var(--rs-color-fg-muted);
}
/* /Components/Shared/DataTable.razor.rz.scp.css */
/* border-collapse: separate (with zero spacing) so the rounded corners actually clip — collapsed
   borders ignore border-radius. The caller supplies the th/td cells, so they carry the caller's CSS
   scope, not this component's; the cell rules therefore reach through with ::deep or they never land
   on the slotted content (padding/typography would silently fall back to the UA defaults). */
.rs-data-table[b-tn5yintmko] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: var(--rs-color-surface);
    border: 1px solid var(--rs-color-border);
    border-radius: var(--rs-radius-lg);
    overflow: hidden;
}

/* Edge-to-edge variant (Design-mode detail column): drop the card's frame + rounding so the table uses the full
   width the surface gives it — no wasted gutter — matching the records grid. The surface supplies the bounds. */
.rs-data-table--flush[b-tn5yintmko] {
    border: 0;
    border-radius: 0;
}

.rs-data-table[b-tn5yintmko]  thead {
    background-color: var(--rs-color-bg);
}

.rs-data-table[b-tn5yintmko]  th {
    text-align: left;
    font-size: var(--rs-text-sm);
    font-weight: var(--rs-font-weight-medium);
    color: var(--rs-color-fg-muted);
    padding: var(--rs-space-4) var(--rs-space-5);
    border-bottom: 1px solid var(--rs-color-border);
}

.rs-data-table[b-tn5yintmko]  td {
    font-size: var(--rs-text-sm);
    padding: var(--rs-space-4) var(--rs-space-5);
    border-bottom: 1px solid var(--rs-color-border);
}

.rs-data-table[b-tn5yintmko]  tbody tr {
    transition: background-color 0.12s ease;
}

.rs-data-table[b-tn5yintmko]  tbody tr:hover {
    background-color: var(--rs-color-surface-muted);
}

.rs-data-table[b-tn5yintmko]  tbody tr:last-child td {
    border-bottom: none;
}

.rs-data-table[b-tn5yintmko]  .rs-data-table__empty-row td {
    text-align: center;
    color: var(--rs-color-fg-muted);
    padding: var(--rs-space-6) var(--rs-space-4);
}

/* Density (#267). Comfortable (the default above) is left pixel-unchanged: DataTable is a *chrome* table
   with roomier spacing than the data-dense RecordGrid, so the shared --rs-density-* tokens are NOT reused
   verbatim here (their comfortable step is tighter and would shrink this table). Only compact adds an
   override, matching the RecordGrid compact feel (space-1/space-3 padding + xs type) so the Schema
   field/relationship tables pack more rows when the user picks compact. */
.rs-data-table[data-density="compact"][b-tn5yintmko]  th,
.rs-data-table[data-density="compact"][b-tn5yintmko]  td {
    padding: var(--rs-space-1) var(--rs-space-3);
    font-size: var(--rs-text-xs);
    /* Floor the row height above the 1.75rem row-actions kebab. Compact text rows are shorter than the
       kebab, so without this the buttoned body rows stand proud of the (buttonless) header; a shared floor
       on th + td keeps the header and every row the same height. Comfortable rows already clear the kebab
       via their padding, so the floor is compact-only. */
    height: 2rem;
}

.rs-data-table[data-density="compact"][b-tn5yintmko]  .rs-data-table__empty-row td {
    padding: var(--rs-space-4) var(--rs-space-3);
}
/* /Components/Shared/DateTimePickerPopover.razor.rz.scp.css */
/* The time section sits under the calendar with a hairline divider, mirroring the footer's separation. */
.rs-datetime-popover__time[b-ql8xch5a7k] {
    margin-top: var(--rs-space-2);
    padding-top: var(--rs-space-3);
    border-top: 1px solid var(--rs-color-border);
}
/* /Components/Shared/DropdownMenu.razor.rz.scp.css */
.rs-dropdown[b-tzt6fom643] {
    position: relative;
    display: inline-flex;
}

.rs-dropdown__trigger[b-tzt6fom643] {
    display: inline-flex;
}

/* Transparent click-catcher so an outside click closes the menu. */
.rs-dropdown__backdrop[b-tzt6fom643] {
    position: fixed;
    inset: 0;
    z-index: 30;
    background-color: transparent;
}

.rs-dropdown__panel[b-tzt6fom643] {
    position: absolute;
    top: calc(100% + var(--rs-space-1));
    z-index: 31;
    min-width: 10rem;
    padding: var(--rs-space-1);
    background-color: var(--rs-color-surface);
    border: 1px solid var(--rs-color-border);
    border-radius: var(--rs-radius-md);
    box-shadow: var(--rs-shadow-md);
}

.rs-dropdown__panel--end[b-tzt6fom643] {
    right: 0;
}

.rs-dropdown__panel--start[b-tzt6fom643] {
    left: 0;
}

.rs-dropdown__item[b-tzt6fom643] {
    display: flex;
    align-items: center;
    gap: var(--rs-space-2);
    width: 100%;
    padding: var(--rs-space-2) var(--rs-space-3);
    border: none;
    border-radius: var(--rs-radius-sm);
    background-color: transparent;
    color: var(--rs-color-fg);
    font: inherit;
    font-size: var(--rs-text-sm);
    text-align: left;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.12s ease, color 0.12s ease;
}

.rs-dropdown__item:hover[b-tzt6fom643] {
    background-color: var(--rs-color-surface-muted);
}

.rs-dropdown__item--danger[b-tzt6fom643] {
    color: var(--rs-color-error);
}

.rs-dropdown__item-icon[b-tzt6fom643] {
    width: 1rem;
    font-size: var(--rs-text-sm);
    color: var(--rs-color-fg-muted);
}

.rs-dropdown__item--danger .rs-dropdown__item-icon[b-tzt6fom643] {
    color: var(--rs-color-error);
}

/* Checkable item (single-select group, e.g. density): a fixed leading checkmark slot keeps the labels
   aligned whether or not an item is the active choice; the empty modifier reserves the slot's width. */
.rs-dropdown__item-check[b-tzt6fom643] {
    width: 1rem;
    font-size: var(--rs-text-sm);
    color: var(--rs-color-accent);
}

.rs-dropdown__item-check--empty[b-tzt6fom643] {
    visibility: hidden;
}

/* Separator opening a new grouped section within the menu. */
.rs-dropdown__separator[b-tzt6fom643] {
    height: 1px;
    margin: var(--rs-space-1) 0;
    background-color: var(--rs-color-border);
}
/* /Components/Shared/EmptyState.razor.rz.scp.css */
.rs-empty-state[b-s932m0u38h] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--rs-space-2);
    text-align: center;
    padding: var(--rs-space-8) var(--rs-space-5);
    border: 1px dashed var(--rs-color-border-strong);
    border-radius: var(--rs-radius-lg);
    color: var(--rs-color-fg-muted);
}

.rs-empty-state__title[b-s932m0u38h] {
    font-size: var(--rs-text-lg);
    font-weight: var(--rs-font-weight-medium);
    color: var(--rs-color-fg);
}

.rs-empty-state__message[b-s932m0u38h] {
    font-size: var(--rs-text-sm);
    max-width: 28rem;
}

.rs-empty-state__action[b-s932m0u38h] {
    margin-top: var(--rs-space-3);
}
/* /Components/Shared/ErrorDisplay.razor.rz.scp.css */
.rs-error[b-17oi83prc6] {
    padding: var(--rs-space-3) var(--rs-space-4);
    margin-bottom: var(--rs-space-4);
    background-color: var(--rs-color-error-subtle);
    color: var(--rs-color-error-hover);
    border: 1px solid var(--rs-color-error);
    border-radius: var(--rs-radius-md);
    font-size: var(--rs-text-sm);
}

.rs-error--retry[b-17oi83prc6] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--rs-space-3);
}
/* /Components/Shared/FieldBehaviorEditor.razor.rz.scp.css */
/* Auto-enter + validation editor (E8 Phase 3). Presentation-only; matches the design-mode inspector look. */

.rs-field-behaviors[b-nehrqhurs3] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-5, 1.25rem);
}

.rs-field-behaviors__section[b-nehrqhurs3] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-3, 0.75rem);
    padding-top: var(--rs-space-4, 1rem);
    border-top: 1px solid var(--rs-border-subtle, #e5e7eb);
}

.rs-field-behaviors__section:first-child[b-nehrqhurs3] {
    padding-top: 0;
    border-top: none;
}

.rs-field-behaviors__section-head[b-nehrqhurs3] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.rs-field-behaviors__heading[b-nehrqhurs3] {
    margin: 0;
    font-size: var(--rs-font-size-sm, 0.875rem);
    font-weight: 600;
    color: var(--rs-text-strong, #111827);
}

/* Governing-sentence subtitle under the Validation-rules heading — frames the Warn/Stop picker by write
   path (Stop applies to a direct save here; synced/imported changes are flagged, never stopped — #454). */
.rs-field-behaviors__section-note[b-nehrqhurs3] {
    flex-basis: 100%;
    margin: var(--rs-space-1, 0.25rem) 0 0;
    color: var(--rs-color-fg-muted, #6b7280);
    font-size: var(--rs-text-xs, 0.75rem);
    line-height: var(--rs-line-height-snug, 1.35);
}

/* Per-rule Warn/Stop picker: a label, the segmented control, and the active option's description. */
.rs-field-behaviors__mode[b-nehrqhurs3] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-1, 0.25rem);
}

.rs-field-behaviors__mode-label[b-nehrqhurs3] {
    font-size: var(--rs-text-xs, 0.75rem);
    font-weight: var(--rs-font-weight-medium, 500);
    color: var(--rs-color-fg-muted, #6b7280);
}

.rs-field-behaviors__mode-note[b-nehrqhurs3] {
    margin: 0;
    color: var(--rs-color-fg-muted, #6b7280);
    font-size: var(--rs-text-xs, 0.75rem);
    line-height: var(--rs-line-height-snug, 1.35);
}

.rs-field-behaviors__body[b-nehrqhurs3] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-3, 0.75rem);
}

.rs-field-behaviors__row[b-nehrqhurs3] {
    display: flex;
    gap: var(--rs-space-3, 0.75rem);
}

.rs-field-behaviors__row > *[b-nehrqhurs3] {
    flex: 1 1 0;
    min-width: 0;
}

.rs-field-behaviors__empty[b-nehrqhurs3] {
    margin: 0;
    color: var(--rs-text-muted, #6b7280);
    font-size: var(--rs-font-size-sm, 0.875rem);
}

/* Explanatory copy under an auto-enter kind (#502). The two serial kinds trade off against each other and the
   wrong choice only shows up later — offline, or when someone assumes a global order — so the note sits inline
   under the inputs rather than in a tooltip nobody opens. */
.rs-field-behaviors__note[b-nehrqhurs3] {
    margin: 0;
    color: var(--rs-text-muted, #6b7280);
    font-size: var(--rs-font-size-sm, 0.875rem);
    line-height: var(--rs-line-height-snug, 1.35);
}

.rs-field-behaviors__note code[b-nehrqhurs3] {
    padding: 0 var(--rs-space-1, 0.25rem);
    border-radius: var(--rs-radius-sm, 0.25rem);
    background: var(--rs-surface-sunken, #f9fafb);
    font-family: var(--rs-font-mono, ui-monospace, monospace);
}

/* The chosen kind cannot apply to this field's type — advisory, since the API is the real gate. */
.rs-field-behaviors__warning[b-nehrqhurs3] {
    display: flex;
    align-items: flex-start;
    gap: var(--rs-space-2, 0.5rem);
    margin: 0;
    padding: var(--rs-space-2, 0.5rem) var(--rs-space-3, 0.75rem);
    border: 1px solid var(--rs-color-warning, #d97706);
    border-radius: var(--rs-radius-md, 0.5rem);
    background: var(--rs-color-warning-subtle, #fef3c7);
    color: var(--rs-text-strong, #111827);
    font-size: var(--rs-font-size-sm, 0.875rem);
    line-height: var(--rs-line-height-snug, 1.35);
}

.rs-field-behaviors__rule[b-nehrqhurs3] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-2, 0.5rem);
    padding: var(--rs-space-3, 0.75rem);
    border: 1px solid var(--rs-border-subtle, #e5e7eb);
    border-radius: var(--rs-radius-md, 0.5rem);
    background: var(--rs-surface-sunken, #f9fafb);
}

.rs-field-behaviors__rule-head[b-nehrqhurs3] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rs-field-behaviors__rule-type[b-nehrqhurs3] {
    font-weight: 600;
    font-size: var(--rs-font-size-sm, 0.875rem);
    color: var(--rs-text-strong, #111827);
}

/* Non-owner note under the Validation-rules heading (#695): editing rules is Owner-only, so an Editor sees the
   rules read-only with this lock line. Authoring boundary only — it never implies rules stop synced data (#454). */
.rs-field-behaviors__owner-note[b-nehrqhurs3] {
    display: flex;
    align-items: center;
    gap: var(--rs-space-1, 0.25rem);
    flex-basis: 100%;
    margin: var(--rs-space-1, 0.25rem) 0 0;
    color: var(--rs-color-fg-muted, #6b7280);
    font-size: var(--rs-text-xs, 0.75rem);
    line-height: var(--rs-line-height-snug, 1.35);
}

/* Read-only rule content for a non-owner: term/value rows carrying the FULL rule (bounds, length, formula, value-list
   name, message, Warn/Stop mode) so read-only never means less legible. */
.rs-field-behaviors__rule-detail[b-nehrqhurs3] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-1, 0.25rem);
    margin: 0;
}

.rs-field-behaviors__rule-detail-row[b-nehrqhurs3] {
    display: flex;
    gap: var(--rs-space-2, 0.5rem);
    font-size: var(--rs-font-size-sm, 0.875rem);
    line-height: var(--rs-line-height-snug, 1.35);
}

.rs-field-behaviors__rule-detail-row dt[b-nehrqhurs3] {
    flex: 0 0 40%;
    margin: 0;
    color: var(--rs-color-fg-muted, #6b7280);
}

.rs-field-behaviors__rule-detail-row dd[b-nehrqhurs3] {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    color: var(--rs-text-strong, #111827);
}

.rs-field-behaviors__add[b-nehrqhurs3] {
    display: flex;
    align-items: center;
    gap: var(--rs-space-2, 0.5rem);
}
/* /Components/Shared/FieldEditor.razor.rz.scp.css */
/* Read-only display for system / id / relationship / binary fields in the record form. */
.rs-field-editor__readonly[b-tguugpajlw] {
    margin: 0;
    padding: var(--rs-space-2) var(--rs-space-3);
    border: 1px solid var(--rs-color-border);
    border-radius: var(--rs-radius-md);
    background-color: var(--rs-color-surface-muted);
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-sm);
}

/* Distributed-serial origin caption (#499): who minted the serial in the control above. Deliberately quiet — it
   sits below the value at the same weight as a help hint, because it is decoration on a datum that reads fine
   without it. Never renders when the origin does not resolve. */
.rs-field-editor__origin[b-tguugpajlw] {
    display: flex;
    align-items: center;
    gap: var(--rs-space-2);
    margin: var(--rs-space-1) 0 0;
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-xs);
    line-height: var(--rs-line-height-snug);
}

.rs-field-editor__origin i[b-tguugpajlw] {
    font-size: var(--rs-text-sm);
    opacity: 0.8;
}

/* Value-list radio / checkbox groups (E6): stacked options with a comfortable target and the type scale. */
.rs-field-editor__radio-group[b-tguugpajlw],
.rs-field-editor__checkbox-group[b-tguugpajlw] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-2);
}

.rs-field-editor__radio[b-tguugpajlw],
.rs-field-editor__checkbox[b-tguugpajlw] {
    display: flex;
    align-items: center;
    gap: var(--rs-space-2);
    font-size: var(--rs-text-sm);
    cursor: pointer;
}
/* /Components/Shared/FieldTypePicker.razor.rz.scp.css */
/* FieldTypePicker (E1 Phase 4): a responsive grid of selectable field-type cards. Tokens only. */
.rs-field-type-picker[b-9g5ytge63l] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
    gap: var(--rs-space-2);
}

.rs-field-type-picker__option[b-9g5ytge63l] {
    display: flex;
    align-items: flex-start;
    gap: var(--rs-space-3);
    padding: var(--rs-space-3);
    text-align: left;
    border: 1px solid var(--rs-color-border);
    border-radius: var(--rs-radius-md);
    background-color: var(--rs-color-surface);
    color: var(--rs-color-fg);
    cursor: pointer;
}

.rs-field-type-picker__option:hover:not(:disabled)[b-9g5ytge63l] {
    border-color: var(--rs-color-border-strong);
    background-color: var(--rs-color-surface-muted);
}

.rs-field-type-picker__option:focus-visible[b-9g5ytge63l] {
    outline: var(--rs-focus-ring-width) solid var(--rs-color-focus-ring);
    outline-offset: 2px;
}

.rs-field-type-picker__option:disabled[b-9g5ytge63l] {
    cursor: default;
    opacity: 0.6;
}

.rs-field-type-picker__option--selected[b-9g5ytge63l] {
    border-color: var(--rs-color-accent);
    background-color: var(--rs-color-accent-subtle);
}

.rs-field-type-picker__glyph[b-9g5ytge63l] {
    flex: 0 0 auto;
    min-width: 2.5rem;
    padding: var(--rs-space-1) var(--rs-space-2);
    font-family: var(--rs-font-mono);
    font-size: var(--rs-text-sm);
    text-align: center;
    border-radius: var(--rs-radius-sm);
    background-color: var(--rs-color-surface-muted);
    color: var(--rs-color-fg-muted);
}

.rs-field-type-picker__option--selected .rs-field-type-picker__glyph[b-9g5ytge63l] {
    background-color: var(--rs-color-accent);
    color: var(--rs-color-fg-on-accent);
}

.rs-field-type-picker__body[b-9g5ytge63l] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-1);
}

.rs-field-type-picker__label[b-9g5ytge63l] {
    font-size: var(--rs-text-sm);
    font-weight: var(--rs-font-weight-medium);
}

.rs-field-type-picker__desc[b-9g5ytge63l] {
    font-size: var(--rs-text-xs);
    color: var(--rs-color-fg-muted);
    line-height: var(--rs-line-height-normal);
}
/* /Components/Shared/FormField.razor.rz.scp.css */
.rs-form-field[b-3iu7m74a5p] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-1);
}

.rs-form-field__label[b-3iu7m74a5p] {
    font-size: var(--rs-text-sm);
    font-weight: var(--rs-font-weight-medium);
    color: var(--rs-color-fg);
}

.rs-form-field__required[b-3iu7m74a5p] {
    color: var(--rs-color-error);
    margin-left: var(--rs-space-1);
}

.rs-form-field__help[b-3iu7m74a5p] {
    font-size: var(--rs-text-sm);
    color: var(--rs-color-fg-muted);
}

.rs-form-field__error[b-3iu7m74a5p] {
    font-size: var(--rs-text-sm);
    color: var(--rs-color-error);
}
/* /Components/Shared/GettingStartedBanner.razor.rz.scp.css */
.rs-getting-started[b-ri48tkvs9u] {
    display: flex;
    align-items: center;
    gap: var(--rs-space-4);
    padding: var(--rs-space-4) var(--rs-space-5);
    background-color: var(--rs-color-accent-subtle);
    border-radius: var(--rs-radius-xl);
}

.rs-getting-started__chip[b-ri48tkvs9u] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--rs-radius-lg);
    background-color: var(--rs-color-surface);
    color: var(--rs-color-accent);
    box-shadow: var(--rs-shadow-sm);
    font-size: var(--rs-text-lg);
}

.rs-getting-started__body[b-ri48tkvs9u] {
    flex: 1 1 auto;
    min-width: 0;
}

.rs-getting-started__title[b-ri48tkvs9u] {
    margin: 0;
    font-size: var(--rs-text-md);
    font-weight: var(--rs-font-weight-bold);
    color: var(--rs-color-fg);
}

.rs-getting-started__message[b-ri48tkvs9u] {
    margin: var(--rs-space-1) 0 0;
    font-size: var(--rs-text-sm);
    color: var(--rs-color-fg-muted);
}

.rs-getting-started__actions[b-ri48tkvs9u] {
    display: flex;
    align-items: center;
    gap: var(--rs-space-2);
    flex: none;
}
/* /Components/Shared/HotspotEditor.razor.rz.scp.css */
.rs-hotspot-editor[b-14lf59cnuj] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-3, 0.75rem);
}

.rs-hotspot-editor__error[b-14lf59cnuj] {
    margin: 0;
    font-size: var(--rs-text-sm, 0.8125rem);
    color: var(--rs-color-danger, #b91c1c);
}

.rs-hotspot-editor__stage[b-14lf59cnuj] {
    position: relative;
    overflow: auto;
    max-height: 70vh;
    background: var(--rs-color-surface-sunken, rgba(0, 0, 0, 0.05));
    border: 1px solid var(--rs-color-border, #d1d5db);
    border-radius: var(--rs-radius-md, 0.5rem);
    padding: var(--rs-space-3, 0.75rem);
}

.rs-hotspot-editor__surface[b-14lf59cnuj] {
    position: relative;
    display: block;
    width: 100%;
    line-height: 0;
    touch-action: none; /* let the pointer interop own drag gestures instead of the browser scrolling/zooming */
}

.rs-hotspot-editor__surface--draw[b-14lf59cnuj] {
    cursor: crosshair;
}

.rs-hotspot-editor__surface--select[b-14lf59cnuj] {
    cursor: default;
}

.rs-hotspot-editor__image[b-14lf59cnuj] {
    display: block;
    width: 100%;
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
}

.rs-hotspot-editor__decorations[b-14lf59cnuj] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none; /* all hit-testing is done in C# from the surface's pointer coordinates */
}

.rs-hotspot-editor__draft[b-14lf59cnuj] {
    fill: var(--rs-color-accent, #4f46e5);
    fill-opacity: 0.12;
    stroke: var(--rs-color-accent, #4f46e5);
    stroke-width: 2;
    stroke-dasharray: 6 4;
}

.rs-hotspot-editor__vertex[b-14lf59cnuj] {
    fill: #fff;
    stroke: var(--rs-color-accent, #4f46e5);
    stroke-width: 2;
}

.rs-hotspot-editor__handle[b-14lf59cnuj] {
    fill: var(--rs-color-accent, #4f46e5);
    stroke: #fff;
    stroke-width: 2;
}

.rs-hotspot-editor__inspector[b-14lf59cnuj] {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: var(--rs-space-4, 1rem);
    padding: var(--rs-space-3, 0.75rem);
    border: 1px solid var(--rs-color-border, #d1d5db);
    border-radius: var(--rs-radius-md, 0.5rem);
    background: var(--rs-color-surface, #fff);
}

.rs-hotspot-editor__field[b-14lf59cnuj] {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.rs-hotspot-editor__field-label[b-14lf59cnuj] {
    font-size: var(--rs-text-xs, 0.75rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--rs-color-text-muted, #6b7280);
}

.rs-hotspot-editor__input[b-14lf59cnuj] {
    height: var(--rs-control-height, 2rem);
    min-width: 6rem;
    padding: 0 var(--rs-space-2, 0.5rem);
    border: 1px solid var(--rs-color-border, #d1d5db);
    border-radius: var(--rs-radius-sm, 0.375rem);
    background: var(--rs-color-surface, #fff);
    color: inherit;
}

.rs-hotspot-editor__check[b-14lf59cnuj] {
    display: inline-flex;
    align-items: center;
    gap: var(--rs-space-2, 0.5rem);
    font-size: var(--rs-text-sm, 0.8125rem);
}

.rs-hotspot-editor__inspector-actions[b-14lf59cnuj] {
    margin-left: auto;
}

.rs-hotspot-editor__warn[b-14lf59cnuj] {
    flex-basis: 100%;
    margin: 0;
    font-size: var(--rs-text-sm, 0.8125rem);
    color: var(--rs-color-warning, #b45309);
}

.rs-hotspot-editor__links[b-14lf59cnuj] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-2, 0.5rem);
}

.rs-hotspot-editor__links-title[b-14lf59cnuj] {
    font-size: var(--rs-text-xs, 0.75rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--rs-color-text-muted, #6b7280);
}

.rs-hotspot-editor__links-list[b-14lf59cnuj] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--rs-space-2, 0.5rem);
}

.rs-hotspot-editor__link[b-14lf59cnuj] {
    padding: 0.25rem 0.625rem;
    border: 1px dashed var(--rs-color-border, #d1d5db);
    border-radius: 999px;
    background: var(--rs-color-surface, #fff);
    cursor: pointer;
    color: inherit;
    font-size: var(--rs-text-sm, 0.8125rem);
}

.rs-hotspot-editor__link--selected[b-14lf59cnuj] {
    border-style: solid;
    border-color: var(--rs-color-accent, #4f46e5);
    background: var(--rs-color-accent-subtle, rgba(79, 70, 229, 0.08));
    font-weight: 600;
}

.rs-hotspot-editor__hint[b-14lf59cnuj] {
    margin: 0;
    font-size: var(--rs-text-sm, 0.8125rem);
    color: var(--rs-color-text-muted, #6b7280);
}
/* /Components/Shared/HotspotOverlay.razor.rz.scp.css */
/* The overlay fills its positioned parent (the page-image frame) so its viewBox maps onto the rendered image. */
.rs-hotspot-overlay[b-aat8ox02zg] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.rs-hotspot[b-aat8ox02zg] {
    cursor: pointer;
    outline: none;
    transition: opacity 120ms ease;
}

.rs-hotspot__pin[b-aat8ox02zg] {
    fill: var(--rs-color-accent, #4f46e5);
    fill-opacity: 0.85;
    stroke: #fff;
    stroke-width: 1.5;
}

.rs-hotspot__box[b-aat8ox02zg],
.rs-hotspot__poly[b-aat8ox02zg] {
    fill: var(--rs-color-accent, #4f46e5);
    fill-opacity: 0.14;
    stroke: var(--rs-color-accent, #4f46e5);
    stroke-width: 2;
}

/* E14 Phase 3 — confidence bands: a proposal is tinted green/amber/red by how certain the match is, so the reviewer
   reads certainty straight off the overlay. Overrides the default accent fill/stroke for pins, boxes, and polygons. */
.rs-hotspot--band-high .rs-hotspot__pin[b-aat8ox02zg],
.rs-hotspot--band-high .rs-hotspot__box[b-aat8ox02zg],
.rs-hotspot--band-high .rs-hotspot__poly[b-aat8ox02zg] {
    fill: var(--rs-color-success, #16a34a);
    stroke: var(--rs-color-success, #16a34a);
}

.rs-hotspot--band-medium .rs-hotspot__pin[b-aat8ox02zg],
.rs-hotspot--band-medium .rs-hotspot__box[b-aat8ox02zg],
.rs-hotspot--band-medium .rs-hotspot__poly[b-aat8ox02zg] {
    fill: var(--rs-color-warning, #d97706);
    stroke: var(--rs-color-warning, #d97706);
}

.rs-hotspot--band-low .rs-hotspot__pin[b-aat8ox02zg],
.rs-hotspot--band-low .rs-hotspot__box[b-aat8ox02zg],
.rs-hotspot--band-low .rs-hotspot__poly[b-aat8ox02zg] {
    fill: var(--rs-color-danger, #dc2626);
    stroke: var(--rs-color-danger, #dc2626);
}

/* Emphasis: the highlighted item's hotspots pop, everything else recedes. */
.rs-hotspot--dim[b-aat8ox02zg] {
    opacity: 0.3;
}

.rs-hotspot--highlight .rs-hotspot__box[b-aat8ox02zg],
.rs-hotspot--highlight .rs-hotspot__poly[b-aat8ox02zg] {
    fill-opacity: 0.28;
    stroke-width: 3;
}

.rs-hotspot--highlight .rs-hotspot__pin[b-aat8ox02zg] {
    fill-opacity: 1;
}

/* Hover / keyboard focus: a brighter outline so the region under the pointer reads clearly. */
.rs-hotspot--hover .rs-hotspot__box[b-aat8ox02zg],
.rs-hotspot--hover .rs-hotspot__poly[b-aat8ox02zg],
.rs-hotspot:hover .rs-hotspot__box[b-aat8ox02zg],
.rs-hotspot:hover .rs-hotspot__poly[b-aat8ox02zg],
.rs-hotspot:focus-visible .rs-hotspot__box[b-aat8ox02zg],
.rs-hotspot:focus-visible .rs-hotspot__poly[b-aat8ox02zg] {
    fill-opacity: 0.34;
    stroke-width: 3;
}

.rs-hotspot--hover .rs-hotspot__pin[b-aat8ox02zg],
.rs-hotspot:hover .rs-hotspot__pin[b-aat8ox02zg],
.rs-hotspot:focus-visible .rs-hotspot__pin[b-aat8ox02zg] {
    stroke: var(--rs-color-accent, #4f46e5);
    stroke-width: 2.5;
}
/* /Components/Shared/IconButton.razor.rz.scp.css */
.rs-icon-button[b-6vvhdr1enk] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--rs-control-height);
    height: var(--rs-control-height);
    padding: 0;
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: var(--rs-radius-md);
    color: var(--rs-color-fg-muted);
    cursor: pointer;
    transition: background-color 0.12s ease, color 0.12s ease;
}

.rs-icon-button:hover:not(:disabled)[b-6vvhdr1enk] {
    background-color: var(--rs-color-surface-muted);
    color: var(--rs-color-fg);
}

.rs-icon-button:disabled[b-6vvhdr1enk] {
    cursor: not-allowed;
    opacity: 0.55;
}
/* /Components/Shared/ItemPickerDialog.razor.rz.scp.css */
.rs-item-picker[b-ahb7cj1ydp] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-3, 0.75rem);
    min-width: 20rem;
}

.rs-item-picker__search[b-ahb7cj1ydp] {
    display: flex;
    gap: var(--rs-space-2, 0.5rem);
}

.rs-item-picker__input[b-ahb7cj1ydp] {
    flex: 1 1 auto;
    height: var(--rs-control-height, 2rem);
    padding: 0 var(--rs-space-2, 0.5rem);
    border: 1px solid var(--rs-color-border, #d1d5db);
    border-radius: var(--rs-radius-sm, 0.375rem);
    background: var(--rs-color-surface, #fff);
    color: inherit;
}

.rs-item-picker__note[b-ahb7cj1ydp] {
    margin: 0;
    font-size: var(--rs-text-sm, 0.8125rem);
    color: var(--rs-color-text-muted, #6b7280);
}

.rs-item-picker__note--error[b-ahb7cj1ydp] {
    color: var(--rs-color-danger, #b91c1c);
}

.rs-item-picker__list[b-ahb7cj1ydp] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    max-height: 18rem;
    overflow-y: auto;
}

.rs-item-picker__item[b-ahb7cj1ydp] {
    display: block;
    width: 100%;
    padding: var(--rs-space-2, 0.5rem);
    border: 1px solid transparent;
    border-radius: var(--rs-radius-sm, 0.375rem);
    background: transparent;
    text-align: left;
    cursor: pointer;
    color: inherit;
}

.rs-item-picker__item:hover[b-ahb7cj1ydp] {
    background: var(--rs-color-surface-hover, rgba(0, 0, 0, 0.04));
    border-color: var(--rs-color-border, #d1d5db);
}
/* /Components/Shared/KeyValueListEditor.razor.rz.scp.css */
/* Key/value list editor: a tidy stack of value|label|remove rows + an add-row action. Tokens only (light + dark
   via the semantic tokens); the inputs are the shared TextField, so only the grid + adornments live here. */

.rs-kv-editor[b-tl6bjy7wta] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-2);
}

/* Each row (and the column header) is a two-column value|label grid plus a fixed remove-button track, so the
   value and label inputs line up down the list. */
.rs-kv-editor__head[b-tl6bjy7wta],
.rs-kv-editor__row[b-tl6bjy7wta] {
    display: grid;
    grid-template-columns: 1fr 1fr 2rem;
    gap: var(--rs-space-2);
    align-items: center;
}

.rs-kv-editor__head[b-tl6bjy7wta] {
    font-size: var(--rs-text-xs);
    font-weight: var(--rs-font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--rs-color-fg-muted);
    padding-inline: var(--rs-space-1);
}

.rs-kv-editor__gap[b-tl6bjy7wta] {
    /* Reserves the remove-button column in the header so the labels align with the inputs below. */
}

.rs-kv-editor__empty[b-tl6bjy7wta] {
    margin: 0;
    padding: var(--rs-space-3);
    font-size: var(--rs-text-sm);
    color: var(--rs-color-fg-muted);
    background: var(--rs-color-surface-muted);
    border-radius: var(--rs-radius-sm);
}

.rs-kv-editor__actions[b-tl6bjy7wta] {
    display: flex;
    margin-top: var(--rs-space-1);
}
/* /Components/Shared/LayoutDesignerCanvas.razor.rz.scp.css */
/* E7 #212 free-positioned design canvas: absolutely-placed element boxes with a drag grip and a resize handle. */

.rs-canvas[b-90bevsbgq2] {
    position: relative;
    width: 100%;
    min-height: 12rem;
    background-image:
        linear-gradient(to right, var(--rs-color-border, #e2e8f0) 1px, transparent 1px),
        linear-gradient(to bottom, var(--rs-color-border, #e2e8f0) 1px, transparent 1px);
    background-size: 8px 8px;
    background-color: var(--rs-color-surface-muted, #f8fafc);
    border: 1px solid var(--rs-color-border, #e2e8f0);
    border-radius: var(--rs-radius-md, 0.5rem);
    overflow: hidden;
    touch-action: none; /* let the pointer handlers own drag gestures instead of scrolling */
}

.rs-canvas__el[b-90bevsbgq2] {
    position: absolute;
    display: flex;
    align-items: center;
    gap: var(--rs-space-2, 0.5rem);
    padding: var(--rs-space-1, 0.25rem) var(--rs-space-2, 0.5rem);
    background: var(--rs-color-surface, #fff);
    border: 1px solid var(--rs-color-border-strong, #cbd5e1);
    border-radius: var(--rs-radius-sm, 0.375rem);
    box-shadow: 0 1px 2px rgb(15 23 42 / 6%);
    cursor: pointer;
    user-select: none;
    overflow: hidden;
}

.rs-canvas__el.is-selected[b-90bevsbgq2] {
    border-color: var(--rs-color-accent, #4f46e5);
    box-shadow: 0 0 0 1px var(--rs-color-accent, #4f46e5);
}

.rs-canvas__el.is-dragging[b-90bevsbgq2] {
    opacity: 0.85;
}

.rs-canvas__grip[b-90bevsbgq2] {
    cursor: grab;
    color: var(--rs-color-fg-muted, #64748b);
    padding-inline-end: var(--rs-space-1, 0.25rem);
    touch-action: none;
}

.rs-canvas__grip:active[b-90bevsbgq2] {
    cursor: grabbing;
}

.rs-canvas__type[b-90bevsbgq2] {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--rs-color-fg-muted, #64748b);
    flex-shrink: 0;
}

.rs-canvas__label[b-90bevsbgq2] {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rs-canvas__resize[b-90bevsbgq2] {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 14px;
    height: 14px;
    cursor: nwse-resize;
    touch-action: none;
    background:
        linear-gradient(135deg, transparent 50%, var(--rs-color-fg-muted, #94a3b8) 50%);
    border-bottom-right-radius: var(--rs-radius-sm, 0.375rem);
}
/* /Components/Shared/LayoutsTreeMasterPane.razor.rz.scp.css */
/* The tables → layouts tree now renders through the shared reusable TreeView; this pane only supplies the
   rs-table-master chrome + the default-layout star badge shown in a leaf's trailing slot. (The old hand-rolled
   disclosure CSS retired with the hand-rolled markup.) */

.rs-tree-star[b-qlg3r7eriq] {
    color: var(--rs-color-accent);
    font-size: 0.7rem;
}
/* /Components/Shared/LoadingContainer.razor.rz.scp.css */
.rs-loading[b-35rpsjq9c1] {
    display: inline-flex;
    align-items: center;
    gap: var(--rs-space-3);
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-sm);
}

.rs-loading__spinner[b-35rpsjq9c1] {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--rs-color-border-strong);
    border-top-color: var(--rs-color-accent);
    border-radius: var(--rs-radius-pill);
    animation: rs-loading-spin-b-35rpsjq9c1 0.7s linear infinite;
}

@keyframes rs-loading-spin-b-35rpsjq9c1 {
    to {
        transform: rotate(360deg);
    }
}
/* /Components/Shared/Modal.razor.rz.scp.css */
.rs-modal-overlay[b-i9uu5v51fg] {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--rs-space-4);
    background-color: var(--rs-color-overlay);
    z-index: 1000;
}

.rs-modal[b-i9uu5v51fg] {
    width: 100%;
    max-width: 32rem;
    max-height: calc(100vh - var(--rs-space-8));
    display: flex;
    flex-direction: column;
    background-color: var(--rs-color-surface);
    border-radius: var(--rs-radius-lg);
    box-shadow: var(--rs-shadow-lg);
    overflow: hidden;
}

.rs-modal--wide[b-i9uu5v51fg] {
    max-width: 48rem;
}

.rs-modal__header[b-i9uu5v51fg] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--rs-space-3);
    padding: var(--rs-space-4) var(--rs-space-5);
    border-bottom: 1px solid var(--rs-color-border);
}

.rs-modal__title[b-i9uu5v51fg] {
    font-size: var(--rs-text-lg);
}

.rs-modal__body[b-i9uu5v51fg] {
    padding: var(--rs-space-5);
    overflow-y: auto;
    font-size: var(--rs-text-sm);
}

.rs-modal__footer[b-i9uu5v51fg] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--rs-space-3);
    padding: var(--rs-space-4) var(--rs-space-5);
    border-top: 1px solid var(--rs-color-border);
}
/* /Components/Shared/OverlayHost.razor.rz.scp.css */
/* The portal slot carries no box of its own — its (typically position:fixed) content is out of normal flow,
   so the wrapper must never add layout. display:contents removes the box while keeping the children. */
.rs-overlay-layer[b-bb4tobgj8a] {
    display: contents;
}
/* /Components/Shared/PageHeader.razor.rz.scp.css */
/* Mirrors the dashboard `.rs-dashboard__section-head`: title on the left, optional actions pushed to the
   right on the same row. Lifted here so every page gets the shape without re-implementing it. */
.rs-page-header[b-3mt9gtj8nt] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--rs-space-3);
    margin-bottom: var(--rs-space-5);
}

.rs-page-header__heading[b-3mt9gtj8nt] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-1);
}

.rs-page-header__title[b-3mt9gtj8nt] {
    margin: 0;
    font-size: var(--rs-text-lg);
    font-weight: var(--rs-font-weight-semibold);
}

.rs-page-header__description[b-3mt9gtj8nt] {
    font-size: var(--rs-text-sm);
    color: var(--rs-color-fg-muted);
}

.rs-page-header__actions[b-3mt9gtj8nt] {
    display: flex;
    align-items: center;
    gap: var(--rs-space-3);
}
/* /Components/Shared/PageViewer.razor.rz.scp.css */
.rs-page-viewer[b-mfvpgqgz7q] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-3, 0.75rem);
}

.rs-page-viewer__toolbar[b-mfvpgqgz7q] {
    display: flex;
    align-items: center;
    gap: var(--rs-space-4, 1rem);
    flex-wrap: wrap;
}

.rs-page-viewer__zoom[b-mfvpgqgz7q] {
    display: inline-flex;
    align-items: center;
    gap: var(--rs-space-2, 0.5rem);
}

.rs-page-viewer__zoom-btn[b-mfvpgqgz7q] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--rs-control-height, 2rem);
    height: var(--rs-control-height, 2rem);
    border: 1px solid var(--rs-color-border, #d1d5db);
    border-radius: var(--rs-radius-sm, 0.375rem);
    background: var(--rs-color-surface, #fff);
    color: inherit;
    cursor: pointer;
}

.rs-page-viewer__zoom-btn:hover[b-mfvpgqgz7q] {
    background: var(--rs-color-surface-hover, rgba(0, 0, 0, 0.04));
}

.rs-page-viewer__zoom-level[b-mfvpgqgz7q] {
    min-width: 3.5rem;
    text-align: center;
    font-variant-numeric: tabular-nums;
    font-size: var(--rs-text-sm, 0.8125rem);
}

.rs-page-viewer__affordance[b-mfvpgqgz7q] {
    display: inline-flex;
    align-items: center;
    gap: var(--rs-space-2, 0.5rem);
    margin: 0;
    font-size: var(--rs-text-sm, 0.8125rem);
    color: var(--rs-color-text-muted, #6b7280);
}

/* The stage scrolls; the frame is sized to the image and scaled by zoom, with the overlay tracking it exactly. */
.rs-page-viewer__stage[b-mfvpgqgz7q] {
    position: relative;
    overflow: auto;
    max-height: 70vh;
    background: var(--rs-color-surface-sunken, rgba(0, 0, 0, 0.05));
    border: 1px solid var(--rs-color-border, #d1d5db);
    border-radius: var(--rs-radius-md, 0.5rem);
    padding: var(--rs-space-3, 0.75rem);
}

.rs-page-viewer__frame[b-mfvpgqgz7q] {
    position: relative;
    display: block;
    width: 100%;
    transform-origin: top left;
    line-height: 0;
}

.rs-page-viewer__image[b-mfvpgqgz7q] {
    display: block;
    width: 100%;
    height: auto;
}

.rs-page-viewer__empty[b-mfvpgqgz7q],
.rs-page-viewer__error[b-mfvpgqgz7q] {
    margin: 0;
    font-size: var(--rs-text-sm, 0.8125rem);
    color: var(--rs-color-text-muted, #6b7280);
}

.rs-page-viewer__error[b-mfvpgqgz7q] {
    color: var(--rs-color-danger, #b91c1c);
}

.rs-page-viewer__chooser[b-mfvpgqgz7q] {
    border: 1px solid var(--rs-color-border, #d1d5db);
    border-radius: var(--rs-radius-md, 0.5rem);
    background: var(--rs-color-surface, #fff);
    padding: var(--rs-space-3, 0.75rem);
}

.rs-page-viewer__chooser-head[b-mfvpgqgz7q] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--rs-space-2, 0.5rem);
    font-size: var(--rs-text-sm, 0.8125rem);
    font-weight: 600;
    margin-bottom: var(--rs-space-2, 0.5rem);
}

.rs-page-viewer__chooser-close[b-mfvpgqgz7q] {
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--rs-color-text-muted, #6b7280);
}

.rs-page-viewer__chooser-list[b-mfvpgqgz7q] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--rs-space-2, 0.5rem);
}

.rs-page-viewer__chooser-list button[b-mfvpgqgz7q] {
    padding: 0.25rem 0.625rem;
    border: 1px solid var(--rs-color-border, #d1d5db);
    border-radius: 999px;
    background: var(--rs-color-surface, #fff);
    cursor: pointer;
    color: inherit;
}

.rs-page-viewer__regions[b-mfvpgqgz7q] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-2, 0.5rem);
}

.rs-page-viewer__regions-title[b-mfvpgqgz7q] {
    margin: 0;
    font-size: var(--rs-text-xs, 0.75rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--rs-color-text-muted, #6b7280);
}

.rs-page-viewer__region-list[b-mfvpgqgz7q] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--rs-space-2, 0.5rem);
}

.rs-page-viewer__chip[b-mfvpgqgz7q] {
    display: inline-flex;
    align-items: center;
    gap: var(--rs-space-2, 0.5rem);
    padding: 0.25rem 0.625rem;
    border: 1px solid var(--rs-color-border, #d1d5db);
    border-radius: 999px;
    background: var(--rs-color-surface, #fff);
    cursor: pointer;
    color: inherit;
    font-size: var(--rs-text-sm, 0.8125rem);
}

.rs-page-viewer__chip:hover[b-mfvpgqgz7q],
.rs-page-viewer__chip--hover[b-mfvpgqgz7q] {
    border-color: var(--rs-color-accent, #4f46e5);
}

.rs-page-viewer__chip--highlight[b-mfvpgqgz7q] {
    border-color: var(--rs-color-accent, #4f46e5);
    background: var(--rs-color-accent-subtle, rgba(79, 70, 229, 0.08));
    font-weight: 600;
}

.rs-page-viewer__chip--page-level[b-mfvpgqgz7q] {
    border-style: dashed;
}

.rs-page-viewer__chip-note[b-mfvpgqgz7q] {
    font-size: var(--rs-text-xs, 0.75rem);
    font-style: italic;
    color: var(--rs-color-text-muted, #6b7280);
}
/* /Components/Shared/PickerPopoverShell.razor.rz.scp.css */
/* The position:fixed popover surface, rendered into the app-root OverlayHost (see Portal/OverlayHost), so it
   has no transformed / filtered ancestor to capture its containing block and no overflow ancestor to clip it
   (issue #118). datepicker.js sets the exact top/left from the trigger's getBoundingClientRect on open (and on
   scroll/resize), flips above when the natural below-placement would overflow the viewport bottom, and clamps
   into the viewport on both axes. z-index 1100 keeps it over the Modal overlay (z-index 1000). All colour/size
   comes from --rs-* tokens, so it inherits the dark remap for free. */
.rs-date-popover[b-zdbpedc6l0] {
    position: fixed;
    z-index: 1100;
    width: max-content;
    padding: var(--rs-space-3);
    background-color: var(--rs-color-surface);
    border: 1px solid var(--rs-color-border);
    border-radius: var(--rs-radius-md);
    box-shadow: var(--rs-shadow-md);
}
/* /Components/Shared/ProgressIndicator.razor.rz.scp.css */
.rs-progress[b-3yws2y0a7g] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-2);
    width: 100%;
}

.rs-progress__meta[b-3yws2y0a7g] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--rs-space-2);
}

.rs-progress__label[b-3yws2y0a7g] {
    font-size: var(--rs-text-sm);
    color: var(--rs-color-fg);
}

.rs-progress__value[b-3yws2y0a7g] {
    font-size: var(--rs-text-xs);
    color: var(--rs-color-fg-muted);
}

.rs-progress__track[b-3yws2y0a7g] {
    width: 100%;
    height: 0.5rem;
    background-color: var(--rs-color-surface-muted);
    border-radius: var(--rs-radius-pill);
    overflow: hidden;
}

.rs-progress__fill[b-3yws2y0a7g] {
    height: 100%;
    border-radius: var(--rs-radius-pill);
    transition: width 0.2s ease;
}

.rs-progress__fill--accent[b-3yws2y0a7g] {
    background-color: var(--rs-color-accent);
}

.rs-progress__fill--success[b-3yws2y0a7g] {
    background-color: var(--rs-color-success);
}

.rs-progress__fill--warning[b-3yws2y0a7g] {
    background-color: var(--rs-color-warning);
}

.rs-progress__fill--error[b-3yws2y0a7g] {
    background-color: var(--rs-color-error);
}
/* /Components/Shared/PromotionPreviewDialog.razor.rz.scp.css */
.rs-promote[b-17jvahqof6] {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 22rem;
    max-width: 30rem;
}

.rs-promote__count[b-17jvahqof6] {
    margin: 0;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    background: var(--rs-color-warning-soft, #fdecec);
    color: var(--rs-color-warning-text, #9a3131);
    font-weight: 600;
}

.rs-promote__line[b-17jvahqof6] {
    margin: 0;
    line-height: 1.45;
    color: var(--rs-color-text, #1f2733);
}

.rs-promote__status[b-17jvahqof6] {
    margin: 0;
    color: var(--rs-color-text-muted, #5b6472);
}

.rs-promote__status--warn[b-17jvahqof6] {
    color: var(--rs-color-warning-text, #9a3131);
}
/* /Components/Shared/ProposalMetricsView.razor.rz.scp.css */
/* Proposal-quality metrics (E14 Phase 4) — compact tabular summary of precision-by-band + the recommendation. */
.rs-metrics[b-0533nhn5me] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-3, 0.75rem);
    font-size: var(--rs-text-sm, 0.875rem);
}

.rs-metrics__empty[b-0533nhn5me] {
    color: var(--rs-color-text-muted, #6b7280);
    font-size: var(--rs-text-sm, 0.875rem);
    margin: 0;
}

.rs-metrics__summary[b-0533nhn5me] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--rs-space-1, 0.25rem) var(--rs-space-3, 0.75rem);
    align-items: baseline;
}

.rs-metrics__total[b-0533nhn5me] {
    font-weight: 600;
}

.rs-metrics__rate[b-0533nhn5me] {
    color: var(--rs-color-text-muted, #6b7280);
    font-variant-numeric: tabular-nums;
}

.rs-metrics__bands[b-0533nhn5me] {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}

.rs-metrics__bands th[b-0533nhn5me],
.rs-metrics__bands td[b-0533nhn5me] {
    text-align: left;
    padding: var(--rs-space-1, 0.25rem) var(--rs-space-2, 0.5rem);
    border-bottom: 1px solid var(--rs-color-border, #e5e7eb);
}

.rs-metrics__bands thead th[b-0533nhn5me] {
    color: var(--rs-color-text-muted, #6b7280);
    font-weight: 600;
    font-size: var(--rs-text-xs, 0.75rem);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.rs-metrics__providers[b-0533nhn5me] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-1, 0.25rem);
}

.rs-metrics__providers li[b-0533nhn5me] {
    display: flex;
    justify-content: space-between;
    gap: var(--rs-space-2, 0.5rem);
}

.rs-metrics__provider-name[b-0533nhn5me] {
    font-weight: 500;
}

.rs-metrics__provider-stat[b-0533nhn5me] {
    color: var(--rs-color-text-muted, #6b7280);
    font-variant-numeric: tabular-nums;
}

.rs-metrics__recommendation[b-0533nhn5me] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--rs-space-2, 0.5rem);
    margin: 0;
    padding: var(--rs-space-2, 0.5rem) var(--rs-space-3, 0.75rem);
    border-radius: var(--rs-radius-sm, 0.25rem);
    background: var(--rs-color-surface-muted, #f3f4f6);
}
/* /Components/Shared/ProposalReview.razor.rz.scp.css */
/* E14 Phase 3 — the review-queue surface: page image + confidence overlay on the left, evidence/actions/queue on the
   right. Presentation only; the ViewModel owns all state. Uses the shared design tokens (with fallbacks). */
.rs-proposal-review[b-ixgl066tdn] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-4, 1rem);
    outline: none;
}

.rs-proposal-review__empty[b-ixgl066tdn],
.rs-proposal-review__error[b-ixgl066tdn] {
    padding: var(--rs-space-6, 1.5rem);
    text-align: center;
    color: var(--rs-color-text-muted, #6b7280);
}

.rs-proposal-review__error[b-ixgl066tdn] {
    color: var(--rs-color-danger, #dc2626);
}

.rs-proposal-review__header[b-ixgl066tdn] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--rs-space-3, 0.75rem);
}

.rs-proposal-review__progress[b-ixgl066tdn] {
    display: flex;
    align-items: center;
    gap: var(--rs-space-2, 0.5rem);
}

.rs-proposal-review__progress-text[b-ixgl066tdn] {
    font-weight: 600;
}

.rs-proposal-review__filters[b-ixgl066tdn] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--rs-space-1, 0.25rem);
}

.rs-proposal-review__filter[b-ixgl066tdn],
.rs-proposal-review__sort[b-ixgl066tdn] {
    border: 1px solid var(--rs-color-border, #d1d5db);
    background: var(--rs-color-surface, #fff);
    color: var(--rs-color-text, #111827);
    border-radius: var(--rs-radius-sm, 0.25rem);
    padding: var(--rs-space-1, 0.25rem) var(--rs-space-2, 0.5rem);
    font-size: var(--rs-text-sm, 0.875rem);
    cursor: pointer;
}

.rs-proposal-review__filter--active[b-ixgl066tdn] {
    background: var(--rs-color-accent, #4f46e5);
    border-color: var(--rs-color-accent, #4f46e5);
    color: #fff;
}

.rs-proposal-review__sort[b-ixgl066tdn] {
    display: inline-flex;
    align-items: center;
    gap: var(--rs-space-1, 0.25rem);
}

.rs-proposal-review__readonly[b-ixgl066tdn] {
    display: flex;
    align-items: center;
    gap: var(--rs-space-2, 0.5rem);
    padding: var(--rs-space-2, 0.5rem) var(--rs-space-3, 0.75rem);
    background: var(--rs-color-surface-muted, #f3f4f6);
    border-radius: var(--rs-radius-md, 0.375rem);
    color: var(--rs-color-text-muted, #6b7280);
    font-size: var(--rs-text-sm, 0.875rem);
}

.rs-proposal-review__body[b-ixgl066tdn] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 22rem);
    gap: var(--rs-space-4, 1rem);
    align-items: start;
}

@media (max-width: 60rem) {
    .rs-proposal-review__body[b-ixgl066tdn] {
        grid-template-columns: minmax(0, 1fr);
    }
}

.rs-proposal-review__stage[b-ixgl066tdn] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-2, 0.5rem);
}

.rs-proposal-review__frame[b-ixgl066tdn] {
    position: relative;
    display: inline-block;
    line-height: 0;
    border: 1px solid var(--rs-color-border, #d1d5db);
    border-radius: var(--rs-radius-md, 0.375rem);
    overflow: hidden;
}

.rs-proposal-review__image[b-ixgl066tdn] {
    display: block;
    max-width: 100%;
    height: auto;
}

.rs-proposal-review__legend[b-ixgl066tdn] {
    display: flex;
    gap: var(--rs-space-3, 0.75rem);
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: var(--rs-text-sm, 0.875rem);
    color: var(--rs-color-text-muted, #6b7280);
}

.rs-proposal-review__legend li[b-ixgl066tdn] {
    display: inline-flex;
    align-items: center;
    gap: var(--rs-space-1, 0.25rem);
}

.rs-proposal-review__swatch[b-ixgl066tdn] {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 2px;
    display: inline-block;
}

.rs-proposal-review__swatch--high[b-ixgl066tdn] { background: var(--rs-color-success, #16a34a); }
.rs-proposal-review__swatch--medium[b-ixgl066tdn] { background: var(--rs-color-warning, #d97706); }
.rs-proposal-review__swatch--low[b-ixgl066tdn] { background: var(--rs-color-danger, #dc2626); }

.rs-proposal-review__panel[b-ixgl066tdn] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-4, 1rem);
}

.rs-proposal-review__evidence[b-ixgl066tdn],
.rs-proposal-review__bulk[b-ixgl066tdn],
.rs-proposal-review__auto[b-ixgl066tdn] {
    border: 1px solid var(--rs-color-border, #d1d5db);
    border-radius: var(--rs-radius-md, 0.375rem);
    padding: var(--rs-space-3, 0.75rem);
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-3, 0.75rem);
}

.rs-proposal-review__evidence-head[b-ixgl066tdn] {
    display: flex;
    align-items: center;
    gap: var(--rs-space-2, 0.5rem);
}

.rs-proposal-review__confidence[b-ixgl066tdn] {
    font-weight: 700;
    font-size: var(--rs-text-lg, 1.125rem);
}

.rs-proposal-review__evidence-list[b-ixgl066tdn] {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--rs-space-1, 0.25rem) var(--rs-space-3, 0.75rem);
    margin: 0;
    font-size: var(--rs-text-sm, 0.875rem);
}

.rs-proposal-review__evidence-list dt[b-ixgl066tdn] {
    color: var(--rs-color-text-muted, #6b7280);
}

.rs-proposal-review__evidence-list dd[b-ixgl066tdn] {
    margin: 0;
    word-break: break-word;
}

.rs-proposal-review__actions[b-ixgl066tdn] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--rs-space-2, 0.5rem);
}

.rs-proposal-review__nav[b-ixgl066tdn] {
    display: flex;
    align-items: center;
    gap: var(--rs-space-2, 0.5rem);
}

.rs-proposal-review__nav button[b-ixgl066tdn] {
    border: 1px solid var(--rs-color-border, #d1d5db);
    background: var(--rs-color-surface, #fff);
    border-radius: var(--rs-radius-sm, 0.25rem);
    width: 1.75rem;
    height: 1.75rem;
    cursor: pointer;
}

.rs-proposal-review__hint[b-ixgl066tdn] {
    font-size: var(--rs-text-xs, 0.75rem);
    color: var(--rs-color-text-muted, #6b7280);
}

.rs-proposal-review__bulk-summary[b-ixgl066tdn],
.rs-proposal-review__auto-note[b-ixgl066tdn] {
    margin: 0;
    font-size: var(--rs-text-sm, 0.875rem);
    color: var(--rs-color-text-muted, #6b7280);
}

.rs-proposal-review__bulk-actions[b-ixgl066tdn] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--rs-space-2, 0.5rem);
}

.rs-proposal-review__auto-toggle[b-ixgl066tdn] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--rs-space-2, 0.5rem);
    font-size: var(--rs-text-sm, 0.875rem);
}

.rs-proposal-review__auto-threshold[b-ixgl066tdn] {
    width: 4.5rem;
    border: 1px solid var(--rs-color-border, #d1d5db);
    border-radius: var(--rs-radius-sm, 0.25rem);
    padding: var(--rs-space-1, 0.25rem);
}

.rs-proposal-review__queue[b-ixgl066tdn] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-1, 0.25rem);
    max-height: 22rem;
    overflow-y: auto;
}

.rs-proposal-review__queue-item[b-ixgl066tdn] {
    width: 100%;
    display: flex;
    align-items: center;
    gap: var(--rs-space-2, 0.5rem);
    border: 1px solid transparent;
    background: var(--rs-color-surface, #fff);
    border-radius: var(--rs-radius-sm, 0.25rem);
    padding: var(--rs-space-1, 0.25rem) var(--rs-space-2, 0.5rem);
    cursor: pointer;
    text-align: left;
    font-size: var(--rs-text-sm, 0.875rem);
}

.rs-proposal-review__queue-item:hover[b-ixgl066tdn] {
    background: var(--rs-color-surface-muted, #f3f4f6);
}

.rs-proposal-review__queue-item--active[b-ixgl066tdn] {
    border-color: var(--rs-color-accent, #4f46e5);
    background: var(--rs-color-surface-muted, #f3f4f6);
}

.rs-proposal-review__queue-band[b-ixgl066tdn] {
    width: 0.5rem;
    height: 1.25rem;
    border-radius: 2px;
    flex: 0 0 auto;
}

.rs-proposal-review__queue-band--high[b-ixgl066tdn] { background: var(--rs-color-success, #16a34a); }
.rs-proposal-review__queue-band--medium[b-ixgl066tdn] { background: var(--rs-color-warning, #d97706); }
.rs-proposal-review__queue-band--low[b-ixgl066tdn] { background: var(--rs-color-danger, #dc2626); }

.rs-proposal-review__queue-label[b-ixgl066tdn] {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rs-proposal-review__queue-confidence[b-ixgl066tdn] {
    color: var(--rs-color-text-muted, #6b7280);
    font-variant-numeric: tabular-nums;
}

/* LLM enrichment suggestion (E14 Phase 4) — an editable hint with rationale on the selected proposal. */
.rs-proposal-review__suggestion[b-ixgl066tdn] {
    margin-top: var(--rs-space-3, 0.75rem);
    padding: var(--rs-space-2, 0.5rem) var(--rs-space-3, 0.75rem);
    border: 1px solid var(--rs-color-accent, #4f46e5);
    border-radius: var(--rs-radius-sm, 0.25rem);
    background: var(--rs-color-accent-subtle, #eef2ff);
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-2, 0.5rem);
}

.rs-proposal-review__suggestion-head[b-ixgl066tdn] {
    display: flex;
    align-items: center;
    gap: var(--rs-space-2, 0.5rem);
    margin: 0;
    font-weight: 600;
    font-size: var(--rs-text-sm, 0.875rem);
}

.rs-proposal-review__suggestion-provider[b-ixgl066tdn] {
    color: var(--rs-color-text-muted, #6b7280);
    font-weight: 400;
    font-size: var(--rs-text-xs, 0.75rem);
}

.rs-proposal-review__suggestion-facets[b-ixgl066tdn] {
    margin: 0;
    padding-left: var(--rs-space-4, 1rem);
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-1, 0.25rem);
    font-size: var(--rs-text-sm, 0.875rem);
}

/* Quality-metrics panel (E14 Phase 4). */
.rs-proposal-review__metrics[b-ixgl066tdn] {
    margin-top: var(--rs-space-3, 0.75rem);
    padding-top: var(--rs-space-3, 0.75rem);
    border-top: 1px solid var(--rs-color-border, #e5e7eb);
}

.rs-proposal-review__metrics-head[b-ixgl066tdn] {
    margin: 0 0 var(--rs-space-2, 0.5rem);
    font-size: var(--rs-text-sm, 0.875rem);
    font-weight: 600;
}
/* /Components/Shared/RecordGrid.razor.rz.scp.css */
/*
  RecordGrid (E3 Phase 4 / #125) — the data-screen grid, distinct from the chrome DataTable. Built on the
  density scale (--rs-density-*) and the data-grid roles (--rs-color-row-*, --rs-color-grid-header-bg) so the
  dark theme and the compact density are pure token remaps. The caller's th/td are slotted, so they carry the
  caller's CSS scope — the cell rules reach through with ::deep (otherwise padding/typography fall back to UA
  defaults), mirroring DataTable. data-density on the root retunes row height / padding / type together.
*/
.rs-record-grid[b-bm161dctvx] {
    /* Edge-to-edge data pane: no card frame — the grid fills the full width of the flush records detail, bounded
       instead by the toolbar's bottom divider and the pager's top divider. The inner scroll container does the
       scrolling. The grid is a flex column so, when its parent gives it height (the records page fills the
       viewport — #layout), the scroll container fills the pane and only the table body scrolls; min-height:0
       lets it shrink. */
    background-color: var(--rs-color-surface);
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    /* Allow the grid to shrink below its content width so the inner scroll container bounds + scrolls the wide
       table (and the scroll-edge cues fire) instead of the columns being clipped by an ancestor — needed when the
       grid sits in a flex ROW beside a fixed-width panel (the Layouts Table preview beside the inspector). */
    min-width: 0;
}

/* The scroll container the sticky header + frozen first column anchor to. overflow:auto scrolls wide/tall
   tables here (not the page), so the sticky header + frozen column stick within the grid; it fills the pane. */
.rs-record-grid__scroll[b-bm161dctvx] {
    overflow: auto;
    flex: 1 1 auto;
    min-height: 0;
}

.rs-record-grid__table[b-bm161dctvx] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: var(--rs-density-font-size);
    line-height: var(--rs-density-line-height);
}

/* Sticky header — orientation survives vertical scroll. Tinted grid-header role so it reads over the body. */
.rs-record-grid__table[b-bm161dctvx]  thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    text-align: left;
    font-weight: var(--rs-font-weight-medium);
    color: var(--rs-color-fg-muted);
    background-color: var(--rs-color-grid-header-bg);
    height: var(--rs-density-row-min-height);
    padding: var(--rs-density-cell-pad-y) var(--rs-density-cell-pad-x);
    border-bottom: 1px solid var(--rs-color-border);
    white-space: nowrap;
}

.rs-record-grid__table[b-bm161dctvx]  tbody td {
    height: var(--rs-density-row-min-height);
    padding: var(--rs-density-cell-pad-y) var(--rs-density-cell-pad-x);
    border-bottom: 1px solid var(--rs-color-border);
    white-space: nowrap;
    color: var(--rs-color-fg);
}

.rs-record-grid__table[b-bm161dctvx]  tbody tr:last-child td {
    border-bottom: none;
}

/* Stripe < hover < selected — a hovered/selected row still reads over the zebra. */
.rs-record-grid__table[b-bm161dctvx]  tbody tr:nth-child(even) {
    background-color: var(--rs-color-row-stripe);
}

.rs-record-grid__table[b-bm161dctvx]  tbody tr:hover {
    background-color: var(--rs-color-row-hover);
}

.rs-record-grid__table[b-bm161dctvx]  tbody tr.is-selected {
    background-color: var(--rs-color-row-selected);
}

/* Right-aligned tabular numerals — callers tag numeric cells with .rs-numeric (alignment lives here so the
   page stays declarative). */
.rs-record-grid__table[b-bm161dctvx]  .rs-numeric {
    text-align: right;
}

/*
  Frozen-right row-actions column — the kebab pins to the right edge of the scroll container, so it's always at
  the right of the row (not trailing the last data column) no matter how wide the table or how far it's
  scrolled. The mirror of the frozen key column on the left: sticky right:0, an opaque background + z-index to
  paint over the scrolling columns, the zebra/hover/selected tints re-asserted so it tracks its row, and a
  crisp divider on its left. width:1% collapses it to the kebab; no vertical padding so the kebab centers via
  the cell's flex and stays shorter than even a compact row.
*/
.rs-record-grid__table[b-bm161dctvx]  th.rs-records__actions-col,
.rs-record-grid__table[b-bm161dctvx]  td.rs-records__actions {
    position: sticky;
    right: 0;
    width: 1%;
    padding: 0 var(--rs-space-2);
    border-left: 1px solid var(--rs-color-border-strong);
}

.rs-record-grid__table[b-bm161dctvx]  thead th.rs-records__actions-col {
    z-index: 3;
}

.rs-record-grid__table[b-bm161dctvx]  tbody td.rs-records__actions {
    z-index: 1;
    background-color: var(--rs-color-surface);
}

/*
  Frozen first column — the orienting key column sticks to the left edge of the scroll container as the rest
  scroll under it, separated by a crisp divider (continuous across rows). Sticky cells need an opaque
  background and a z-index to paint over the scrolling columns; the body cells inherit the row tint via their
  own backgrounds above, so the frozen body cell re-asserts an opaque surface to avoid bleed-through.
*/
.rs-record-grid__table[b-bm161dctvx]  thead th:first-child {
    left: 0;
    z-index: 3;
    border-right: 1px solid var(--rs-color-border-strong);
}

.rs-record-grid__table[b-bm161dctvx]  tbody td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background-color: var(--rs-color-surface);
    border-right: 1px solid var(--rs-color-border-strong);
}

/* Re-assert the zebra/hover/selected tint on the frozen columns (left key + right actions) so they track their
   row. They must be opaque (scrolling content mustn't bleed through), but to match the middle cells EXACTLY the
   even-row stripe is the SAME translucent --rs-color-row-stripe painted over an opaque surface base — not a
   different, darker surface-muted. Hover/selected are opaque tints, so they drop the stripe image. */
.rs-record-grid__table[b-bm161dctvx]  tbody tr:nth-child(even) td:first-child,
.rs-record-grid__table[b-bm161dctvx]  tbody tr:nth-child(even) td.rs-records__actions {
    background-color: var(--rs-color-surface);
    background-image: linear-gradient(var(--rs-color-row-stripe), var(--rs-color-row-stripe));
}

.rs-record-grid__table[b-bm161dctvx]  tbody tr:hover td:first-child,
.rs-record-grid__table[b-bm161dctvx]  tbody tr:hover td.rs-records__actions {
    background-color: var(--rs-color-row-hover);
    background-image: none;
}

.rs-record-grid__table[b-bm161dctvx]  tbody tr.is-selected td:first-child,
.rs-record-grid__table[b-bm161dctvx]  tbody tr.is-selected td.rs-records__actions {
    background-color: var(--rs-color-row-selected);
    background-image: none;
}

/* Empty row — centred muted note spanning the grid. */
.rs-record-grid__table[b-bm161dctvx]  .rs-record-grid__empty-row td {
    text-align: center;
    color: var(--rs-color-fg-muted);
    padding: var(--rs-space-6) var(--rs-space-4);
}

/*
  Scroll-position-aware edge cues (toggled by js/recordgrid.js). Two IDENTICAL soft shadows — one per side —
  sit at the edges of the SCROLLABLE CONTENT, not the scroll viewport: content scrolls under the frozen left
  column and under the frozen right (actions) column, so each shadow is inset by that column's width (published
  by the JS as --rs-grid-left-inset / --rs-grid-right-inset; 0 when a side has no frozen column, e.g. the
  preview's right edge). Both are pinned to the non-scrolling grid root (position:relative above) so they stay
  put as the body scrolls under them; pointer-events:none keeps them click-through. Painted as gradients (not
  box-shadows) so they render on a thin edge element and read the same on both sides. Each fades in only when
  there's hidden content on that side.
*/
.rs-record-grid[b-bm161dctvx]::before,
.rs-record-grid[b-bm161dctvx]::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 8px;
    pointer-events: none;
    z-index: 4;
    opacity: 0;
    transition: opacity 120ms ease;
}

/* Left edge of the scrollable content (right edge of the frozen left column). Shows when scrolled right. */
.rs-record-grid[b-bm161dctvx]::before {
    left: var(--rs-grid-left-inset, 0);
    background: linear-gradient(to right, rgba(16, 24, 40, 0.22), rgba(16, 24, 40, 0));
}

.rs-record-grid--scrolled[b-bm161dctvx]::before {
    opacity: 1;
}

/* Right edge of the scrollable content (left edge of the frozen actions column, or the viewport edge when a
   grid has none — e.g. the Layouts Table preview). Shows when there's more to scroll. */
.rs-record-grid[b-bm161dctvx]::after {
    right: var(--rs-grid-right-inset, 0);
    background: linear-gradient(to left, rgba(16, 24, 40, 0.22), rgba(16, 24, 40, 0));
}

.rs-record-grid--more[b-bm161dctvx]::after {
    opacity: 1;
}

/* A clickable row (the page wires OnRowClick to open the record's form view) gets a pointer affordance. */
.rs-record-grid__table[b-bm161dctvx]  tbody tr.rs-record-grid__row--clickable {
    cursor: pointer;
}
/* /Components/Shared/RecordLayoutView.razor.rz.scp.css */
/* E7 Phase 1 layout renderer. The field controls carry their own FormField chrome; the layout only spaces them
   (rs-stack) and styles standalone label elements. Richer placement / theming arrives in E7 Phases 2–3. */

.rs-layout__label[b-qy8myz1qq1] {
    font-weight: 600;
    color: var(--rs-color-text-muted, #475569);
    margin-block-start: var(--rs-space-2, 0.5rem);
}

/* Free-positioned canvas (E7 #212): a designed layout renders its elements at their X/Y/W/H in browse mode,
   matching the designer. A layout with no positions keeps the plain vertical flow above (no regression). */
.rs-layout--canvas[b-qy8myz1qq1] {
    position: relative;
    width: 100%;
}

.rs-layout--canvas .rs-layout__el[b-qy8myz1qq1] {
    position: absolute;
}
/* /Components/Shared/ReportView.razor.rz.scp.css */
/* Sub-summary report view (E9 Phase 2). Rows are a shared grid so the label + summary columns line up across the
   header, sub-summary, body and footer bands — the columns of a sub-summary report. Colours/spacing come
   from the design tokens; the band structure itself is the global rs-layout__part* CSS this reuses. */

.rs-layout--report[b-d58cptr6kr] {
    border: 1px solid var(--rs-color-border);
    border-radius: var(--rs-radius-md);
    overflow: hidden;
}

.rs-report__title[b-d58cptr6kr] {
    font-weight: var(--rs-font-weight-semibold);
    font-size: var(--rs-text-lg);
}

.rs-report__row[b-d58cptr6kr] {
    display: flex;
    gap: var(--rs-space-3);
    align-items: baseline;
}

.rs-report__label[b-d58cptr6kr] {
    flex: 1 1 40%;
    min-width: 0;
}

.rs-report__cell[b-d58cptr6kr] {
    flex: 1 1 0;
    text-align: end;
    font-variant-numeric: tabular-nums;
}

.rs-report__row--head[b-d58cptr6kr] {
    font-weight: var(--rs-font-weight-medium);
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-sm);
}

.rs-report__row--detail[b-d58cptr6kr] {
    color: var(--rs-color-fg);
}

.rs-report__row--subtotal[b-d58cptr6kr] {
    font-size: var(--rs-text-sm);
    color: var(--rs-color-fg-muted);
}

.rs-report__row--total[b-d58cptr6kr] {
    font-weight: var(--rs-font-weight-semibold);
}

.rs-report__note[b-d58cptr6kr] {
    padding: var(--rs-space-2) var(--rs-space-4);
    color: var(--rs-color-warning-fg, var(--rs-color-fg-muted));
    font-size: var(--rs-text-sm);
}
/* /Components/Shared/SegmentedControl.razor.rz.scp.css */
.rs-segmented[b-190cgxnwec] {
    display: inline-flex;
    align-items: center;
    gap: var(--rs-space-1);
    padding: var(--rs-space-1);
    background-color: var(--rs-color-surface-muted);
    border-radius: var(--rs-radius-md);
}

.rs-segmented__segment[b-190cgxnwec] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--rs-space-2);
    min-width: 2rem;
    padding: var(--rs-space-1) var(--rs-space-3);
    border: none;
    border-radius: var(--rs-radius-sm);
    background-color: transparent;
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-sm);
    font-weight: var(--rs-font-weight-medium);
    cursor: pointer;
    transition: background-color 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}

.rs-segmented__segment:hover:not(.rs-segmented__segment--selected)[b-190cgxnwec] {
    color: var(--rs-color-fg);
}

.rs-segmented__segment--selected[b-190cgxnwec] {
    background-color: var(--rs-color-surface);
    color: var(--rs-color-accent);
    box-shadow: var(--rs-shadow-sm);
}

.rs-segmented__icon[b-190cgxnwec] {
    font-size: var(--rs-text-sm);
}
/* /Components/Shared/Select.razor.rz.scp.css */
/* Wrapper lets us drop the native select arrows (appearance: none) and overlay our own outlined
   FontAwesome chevron in a token colour — so the select matches the TextField + the outlined aesthetic. */
.rs-select-field[b-af97j9q11y] {
    position: relative;
    display: block;
    width: 100%;
}

/* The shared height/border/font come from the global .rs-select base (components.css); here we just
   strip the native chrome and make room for the overlaid chevron. */
.rs-select[b-af97j9q11y] {
    appearance: none;
    -webkit-appearance: none;
    padding-right: var(--rs-space-6);
    cursor: pointer;
}

.rs-select-field__chevron[b-af97j9q11y] {
    position: absolute;
    top: 50%;
    right: var(--rs-space-3);
    transform: translateY(-50%);
    display: inline-flex;
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-xs);
    pointer-events: none;
}
/* /Components/Shared/SettingsSection.razor.rz.scp.css */
/* In-page section: a titled block with no panel chrome. Consecutive sections are separated by a hairline
   top border (the divider) — the adjacent-sibling rule matches because every instance of this component
   carries the same scoped-CSS attribute, so two stacked sections are both .rs-settings-section. */
.rs-settings-section[b-p29dy0mx72] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-4);
    padding-block: var(--rs-space-6);
}

.rs-settings-section:first-child[b-p29dy0mx72] {
    padding-top: 0;
}

.rs-settings-section + .rs-settings-section[b-p29dy0mx72] {
    border-top: 1px solid var(--rs-color-border);
}

.rs-settings-section__head[b-p29dy0mx72] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--rs-space-4);
}

.rs-settings-section__title[b-p29dy0mx72] {
    margin: 0;
    min-width: 0;
    font-size: var(--rs-text-md);
    font-weight: var(--rs-font-weight-semibold);
}

.rs-settings-section__desc[b-p29dy0mx72] {
    margin: 0;
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-sm);
}

.rs-settings-section__actions[b-p29dy0mx72] {
    flex-shrink: 0;
}
/* /Components/Shared/SortableHeader.razor.rz.scp.css */
.rs-sortable-header[b-iizpihv38n] {
    display: inline-flex;
    align-items: center;
    gap: var(--rs-space-2);
    padding: 0;
    border: none;
    background-color: transparent;
    color: var(--rs-color-fg-muted);
    font: inherit;
    font-size: var(--rs-text-sm);
    font-weight: var(--rs-font-weight-medium);
    cursor: pointer;
    transition: color 0.12s ease;
}

.rs-sortable-header:hover[b-iizpihv38n],
.rs-sortable-header--active[b-iizpihv38n] {
    color: var(--rs-color-fg);
}

.rs-sortable-header__chevron[b-iizpihv38n] {
    font-size: var(--rs-text-xs);
    color: var(--rs-color-fg-muted);
}

.rs-sortable-header--active .rs-sortable-header__chevron[b-iizpihv38n] {
    color: var(--rs-color-accent);
}
/* /Components/Shared/StorageMeter.razor.rz.scp.css */
.rs-storage-meter[b-acdty37iph] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-2);
}

.rs-storage-meter__caption[b-acdty37iph] {
    font-size: var(--rs-text-xs);
    font-weight: var(--rs-font-weight-medium);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--rs-color-fg-muted);
}

.rs-storage-meter__used[b-acdty37iph] {
    font-size: var(--rs-text-xs);
    color: var(--rs-color-fg-muted);
}
/* /Components/Shared/TableMasterPane.razor.rz.scp.css */
/* The .rs-table-master* chrome moved to the GLOBAL wwwroot/css/components.css so all three master panes
   (this one, LayoutsTreeMasterPane, ValueListMasterPane) share it — a scoped .razor.css only styles its own
   component, which left the reusing panes' headers unstyled. Nothing component-scoped remains here. */
/* /Components/Shared/Tabs.razor.rz.scp.css */
.rs-tabs[b-tkne65gx9w] {
    display: flex;
    /* Declared explicitly (not left to the initial value) so a global rule on the same class name can never
       flip the strip vertical again — the collision that stacked the Settings tabs (#245). */
    flex-direction: row;
    align-items: stretch;
    gap: var(--rs-space-4);
    border-bottom: 1px solid var(--rs-color-border);
}

.rs-tabs__tab[b-tkne65gx9w] {
    display: inline-flex;
    align-items: center;
    gap: var(--rs-space-2);
    padding: var(--rs-space-2) var(--rs-space-1);
    /* Pull the tab down so its 2px underline sits on the row's hairline, not above it. */
    margin-bottom: -1px;
    border: none;
    border-bottom: 2px solid transparent;
    background-color: transparent;
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-sm);
    line-height: var(--rs-line-height-normal);
    cursor: pointer;
    transition: color 0.12s ease, border-color 0.12s ease;
}

.rs-tabs__tab:hover:not(.rs-tabs__tab--active)[b-tkne65gx9w] {
    color: var(--rs-color-fg);
}

.rs-tabs__tab--active[b-tkne65gx9w] {
    color: var(--rs-color-accent);
    font-weight: var(--rs-font-weight-medium);
    border-bottom-color: var(--rs-color-accent);
}

.rs-tabs__tab:focus-visible[b-tkne65gx9w] {
    outline: 2px solid var(--rs-color-accent);
    outline-offset: 2px;
    border-radius: var(--rs-radius-sm);
}

.rs-tabs__icon[b-tkne65gx9w] {
    font-size: var(--rs-text-sm);
}
/* /Components/Shared/TallyField.razor.rz.scp.css */
.rs-tally-field[b-52d74tkevj] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-2);
}

.rs-tally-field__error[b-52d74tkevj] {
    margin: 0;
    color: var(--rs-color-danger, #b3261e);
    font-size: var(--rs-font-size-sm, 0.85rem);
}

.rs-tally-field__row[b-52d74tkevj] {
    display: flex;
    align-items: center;
    gap: var(--rs-space-2);
}

/* The projected count reads as the primary datum — large, tabular so it doesn't jump as it changes. */
.rs-tally-field__value[b-52d74tkevj] {
    min-width: 3ch;
    font-size: var(--rs-font-size-lg, 1.15rem);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--rs-color-text, #1f2430);
}

.rs-tally-field__amount[b-52d74tkevj] {
    width: 5rem;
    padding: var(--rs-space-1) var(--rs-space-2);
    border: 1px solid var(--rs-color-border, #cbd2e0);
    border-radius: var(--rs-radius-md, 0.5rem);
    font: inherit;
    text-align: right;
}

.rs-tally-field__hint[b-52d74tkevj] {
    font-size: var(--rs-font-size-sm, 0.85rem);
    color: var(--rs-color-text-muted, #5b6472);
}
/* /Components/Shared/ThemeToggle.razor.rz.scp.css */
/* Thin wrapper around the SegmentedControl so the toggle can be placed inline (settings row / styleguide
   header) without the control stretching. The colours/sizing come from SegmentedControl + the tokens. */
.rs-theme-toggle[b-6dz9523nb8] {
    display: inline-flex;
}
/* /Components/Shared/TimeSpinner.razor.rz.scp.css */
/* The 24-hour hour:minute stepper. This component is the sole renderer of the spinner, so its styling is
   scoped here. All colour/size comes from --rs-* tokens, so it inherits the dark remap for free. */
.rs-time-spinner[b-vgqq3u3cmr] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--rs-space-2);
}

.rs-time-spinner__unit[b-vgqq3u3cmr] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--rs-space-1);
}

.rs-time-spinner__step[b-vgqq3u3cmr] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    padding: var(--rs-space-1) 0;
    background: none;
    border: none;
    border-radius: var(--rs-radius-sm);
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-xs);
    cursor: pointer;
}

.rs-time-spinner__step:hover[b-vgqq3u3cmr] {
    background-color: var(--rs-color-surface-muted);
    color: var(--rs-color-fg);
}

.rs-time-spinner__input[b-vgqq3u3cmr] {
    width: 2.5rem;
    height: var(--rs-control-height);
    padding: 0;
    background-color: var(--rs-color-surface);
    color: var(--rs-color-fg);
    border: 1px solid var(--rs-color-border-strong);
    border-radius: var(--rs-radius-md);
    font-size: var(--rs-text-lg);
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.rs-time-spinner__separator[b-vgqq3u3cmr] {
    color: var(--rs-color-fg);
    font-size: var(--rs-text-lg);
    font-weight: var(--rs-font-weight-semibold);
}

/* The AM/PM segment (12-hour mode): a small stacked two-button toggle. The row's align-items:center keeps it
   vertically centered on the input (the hour/minute steppers are symmetric, so the input is the row's midline). */
.rs-time-spinner__meridiem[b-vgqq3u3cmr] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-1);
}

.rs-time-spinner__ampm[b-vgqq3u3cmr] {
    padding: var(--rs-space-1) var(--rs-space-2);
    background-color: var(--rs-color-surface);
    color: var(--rs-color-fg-muted);
    border: 1px solid var(--rs-color-border-strong);
    border-radius: var(--rs-radius-sm);
    font-size: var(--rs-text-xs);
    font-weight: var(--rs-font-weight-medium);
    cursor: pointer;
}

.rs-time-spinner__ampm--active[b-vgqq3u3cmr] {
    background-color: var(--rs-color-accent);
    border-color: var(--rs-color-accent);
    color: var(--rs-color-fg-on-accent);
}
/* /Components/Shared/ToastCard.razor.rz.scp.css */
.rs-toast[b-dzvhiu4w4i] {
    display: flex;
    align-items: flex-start;
    gap: var(--rs-space-3);
    padding: var(--rs-space-3) var(--rs-space-3) var(--rs-space-3) var(--rs-space-4);
    border: 1px solid var(--rs-color-border);
    border-radius: var(--rs-radius-lg);
    background-color: var(--rs-color-surface);
    box-shadow: var(--rs-shadow-lg);
    color: var(--rs-color-fg);
    font-size: var(--rs-text-sm);
}

.rs-toast__icon[b-dzvhiu4w4i] {
    flex: none;
    margin-top: 0.125rem;
    font-size: var(--rs-text-md);
}

.rs-toast--success .rs-toast__icon[b-dzvhiu4w4i] {
    color: var(--rs-color-success);
}

.rs-toast--error[b-dzvhiu4w4i] {
    border-color: var(--rs-color-error);
}

.rs-toast--error .rs-toast__icon[b-dzvhiu4w4i] {
    color: var(--rs-color-error);
}

.rs-toast__message[b-dzvhiu4w4i] {
    flex: 1;
    min-width: 0;
    align-self: center;
    overflow-wrap: anywhere;
}
/* /Components/Shared/ToastHost.razor.rz.scp.css */
/* Above the modal layer (1000), so a confirmation raised from a dialog is never hidden behind it. Clicks pass through
   the empty host and land on the toasts themselves. */
.rs-toast-host[b-8oqkrgiabk] {
    position: fixed;
    right: var(--rs-space-4);
    bottom: var(--rs-space-4);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-2);
    width: min(24rem, calc(100vw - 2 * var(--rs-space-4)));
    pointer-events: none;
}

.rs-toast-host[b-8oqkrgiabk]  .rs-toast {
    pointer-events: auto;
}
/* /Components/Shared/Toolbar.razor.rz.scp.css */
.rs-toolbar[b-s4gfatkgvy] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--rs-space-3);
    flex-wrap: wrap;
}

.rs-toolbar__group[b-s4gfatkgvy] {
    display: flex;
    align-items: center;
    gap: var(--rs-space-2);
    flex-wrap: wrap;
}

.rs-toolbar__group--end[b-s4gfatkgvy] {
    margin-left: auto;
}
/* /Components/Shared/TreeView.razor.rz.scp.css */
/* Reusable tree chrome (scoped — the whole component owns its look, tokens only, so it themes light/dark for free
   and never collides with global CSS). Rows echo the master-pane feel: a compact, radius-sm, hover/selected row
   with a muted disclosure caret + icon that turn accent when selected. Depth is driven by the inline
   --rs-tree-depth custom property each row carries. */

.rs-tree[b-a88m2a4l07] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rs-tree__item[b-a88m2a4l07] {
    list-style: none;
    /* Focus lives on the treeitem <li>; suppress the default outline in favour of a ring on its row. */
    outline: none;
}

.rs-tree__row[b-a88m2a4l07] {
    display: flex;
    align-items: center;
    gap: var(--rs-space-2);
    /* Indent past one caret-width per depth level so children line up under their parent's label. */
    padding: var(--rs-space-2);
    padding-left: calc(var(--rs-space-2) + var(--rs-space-5) * var(--rs-tree-depth, 0));
    border-radius: var(--rs-radius-sm);
    font-size: var(--rs-text-sm);
    color: var(--rs-color-fg);
    cursor: pointer;
    user-select: none;
}

.rs-tree__row:hover[b-a88m2a4l07] {
    background-color: var(--rs-color-surface-muted);
}

.rs-tree__row--selected[b-a88m2a4l07],
.rs-tree__row--selected:hover[b-a88m2a4l07] {
    background-color: var(--rs-color-accent-subtle);
    color: var(--rs-color-accent);
    font-weight: var(--rs-font-weight-medium);
}

/* Keyboard focus ring on the focused treeitem's row. */
.rs-tree__item:focus-visible[b-a88m2a4l07] {
    outline: none;
}

.rs-tree__item:focus-visible > .rs-tree__row[b-a88m2a4l07] {
    outline: var(--rs-focus-ring-width) solid var(--rs-color-focus-ring);
    outline-offset: -2px;
}

.rs-tree__caret[b-a88m2a4l07] {
    flex: 0 0 auto;
    width: 0.9rem;
    height: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: none;
    border: 0;
    color: var(--rs-color-fg-muted);
    font-size: 0.7rem;
    cursor: pointer;
}

.rs-tree__caret--leaf[b-a88m2a4l07] {
    cursor: default;
}

.rs-tree__row--selected .rs-tree__caret[b-a88m2a4l07] {
    color: var(--rs-color-accent);
}

.rs-tree__icon[b-a88m2a4l07] {
    flex: 0 0 auto;
    width: 1rem;
    text-align: center;
    color: var(--rs-color-fg-muted);
}

.rs-tree__row--selected .rs-tree__icon[b-a88m2a4l07] {
    color: var(--rs-color-accent);
}

.rs-tree__label[b-a88m2a4l07] {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rs-tree__trailing[b-a88m2a4l07] {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    color: var(--rs-color-accent);
    font-size: 0.7rem;
}
/* /Components/Sync/ConflictList.razor.rz.scp.css */
/* Conflict-review list (E3 Phase 3). Every value is a --rs-* token; light/dark ride the semantic role remap.
   A clash row reads as two sides — the kept value (success tone) and the discarded value (muted/strike). */

.rs-conflict-list[b-0db6mfowwq] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-3);
}

.rs-conflict-list__caption[b-0db6mfowwq] {
    margin: 0;
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-xs);
    line-height: var(--rs-line-height-snug);
}

.rs-conflict-list__status[b-0db6mfowwq] {
    margin: 0;
    padding: var(--rs-space-4);
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-sm);
}

.rs-conflict-list__error[b-0db6mfowwq] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--rs-space-3);
    padding: var(--rs-space-3) var(--rs-space-4);
    border: 1px solid var(--rs-color-error);
    background-color: var(--rs-color-error-subtle);
    border-radius: var(--rs-radius-md);
    color: var(--rs-color-fg);
    font-size: var(--rs-text-sm);
}

.rs-conflict-list__error p[b-0db6mfowwq] {
    margin: 0;
}

/* ---- Empty "no conflicts" state ---- */
.rs-conflict-list__empty[b-0db6mfowwq],
.rs-conflict-list__unavailable[b-0db6mfowwq] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--rs-space-2);
    padding: var(--rs-space-6) var(--rs-space-4);
    border: 1px dashed var(--rs-color-border);
    border-radius: var(--rs-radius-lg);
    background-color: var(--rs-color-surface);
    text-align: center;
}

.rs-conflict-list__unavailable[b-0db6mfowwq] {
    border-style: solid;
}

.rs-conflict-list__empty-icon[b-0db6mfowwq] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--rs-radius-pill);
    background-color: var(--rs-color-success-subtle);
    color: var(--rs-color-success-strong);
    font-size: var(--rs-text-lg);
    font-weight: var(--rs-font-weight-bold);
}

.rs-conflict-list__empty-title[b-0db6mfowwq] {
    margin: 0;
    color: var(--rs-color-fg);
    font-size: var(--rs-text-md);
    font-weight: var(--rs-font-weight-semibold);
}

.rs-conflict-list__empty-note[b-0db6mfowwq] {
    margin: 0;
    max-width: 32rem;
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-sm);
    line-height: var(--rs-line-height-normal);
}

/* ---- Clash rows ---- */
.rs-conflict-list__items[b-0db6mfowwq] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-3);
}

.rs-conflict-row[b-0db6mfowwq] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-2);
    padding: var(--rs-space-3) var(--rs-space-4);
    border: 1px solid var(--rs-color-border);
    border-left: 3px solid var(--rs-color-warning);
    border-radius: var(--rs-radius-md);
    background-color: var(--rs-color-surface);
    box-shadow: var(--rs-shadow-sm);
}

.rs-conflict-row__head[b-0db6mfowwq] {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--rs-space-2) var(--rs-space-3);
}

.rs-conflict-row__field[b-0db6mfowwq] {
    color: var(--rs-color-fg);
    font-size: var(--rs-text-sm);
    font-weight: var(--rs-font-weight-semibold);
}

.rs-conflict-row__record[b-0db6mfowwq] {
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-xs);
}

a.rs-conflict-row__record[b-0db6mfowwq] {
    color: var(--rs-color-accent);
    font-size: var(--rs-text-sm);
    text-decoration: underline;
    text-underline-offset: 2px;
}

a.rs-conflict-row__record:hover[b-0db6mfowwq] {
    color: var(--rs-color-accent-hover);
}

.rs-conflict-row__observed[b-0db6mfowwq] {
    margin-left: auto;
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-xs);
}

.rs-conflict-row__history[b-0db6mfowwq] {
    appearance: none;
    border: none;
    background: none;
    padding: 0;
    color: var(--rs-color-accent);
    font-size: var(--rs-text-xs);
    font-weight: var(--rs-font-weight-medium);
    cursor: pointer;
}

.rs-conflict-row__history:hover[b-0db6mfowwq] {
    color: var(--rs-color-accent-hover);
    text-decoration: underline;
}

.rs-conflict-row__history:focus-visible[b-0db6mfowwq] {
    outline: var(--rs-focus-ring-width) solid var(--rs-color-focus-ring);
    outline-offset: 2px;
    border-radius: var(--rs-radius-sm);
}

.rs-conflict-row__history-unavailable[b-0db6mfowwq],
.rs-conflict-row__scope[b-0db6mfowwq],
.rs-conflict-row__attribution[b-0db6mfowwq],
.rs-conflict-row__resolution-unavailable[b-0db6mfowwq] {
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-xs);
}

.rs-conflict-row__scope[b-0db6mfowwq],
.rs-conflict-row__attribution[b-0db6mfowwq],
.rs-conflict-row__resolution-unavailable[b-0db6mfowwq] {
    margin: 0;
}

.rs-conflict-row__clash[b-0db6mfowwq] {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: var(--rs-space-2);
}

.rs-conflict-row__side[b-0db6mfowwq] {
    flex: 1 1 12rem;
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-1);
    padding: var(--rs-space-2) var(--rs-space-3);
    border-radius: var(--rs-radius-sm);
    background-color: var(--rs-color-surface-muted);
}

.rs-conflict-row__side--kept[b-0db6mfowwq] {
    background-color: var(--rs-color-success-subtle);
}

.rs-conflict-row__side-label[b-0db6mfowwq] {
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-xs);
    font-weight: var(--rs-font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.rs-conflict-row__side--kept .rs-conflict-row__side-label[b-0db6mfowwq] {
    color: var(--rs-color-success-strong);
}

.rs-conflict-row__value[b-0db6mfowwq] {
    color: var(--rs-color-fg);
    font-size: var(--rs-text-sm);
    font-weight: var(--rs-font-weight-medium);
    word-break: break-word;
}

.rs-conflict-row__side--discarded .rs-conflict-row__value[b-0db6mfowwq] {
    color: var(--rs-color-fg-muted);
    text-decoration: line-through;
}

.rs-conflict-row__author[b-0db6mfowwq],
.rs-conflict-row__stamp[b-0db6mfowwq],
.rs-conflict-row__resolution[b-0db6mfowwq] {
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-xs);
}

.rs-conflict-row__stamp[b-0db6mfowwq] {
    font-family: var(--rs-font-mono);
    word-break: break-all;
}

.rs-conflict-row__resolution[b-0db6mfowwq] {
    margin: var(--rs-space-2) 0 0;
    padding-top: var(--rs-space-2);
    border-top: 1px solid var(--rs-color-border);
}

.rs-conflict-row__resolution-summary[b-0db6mfowwq] {
    margin: 0;
    color: var(--rs-color-fg);
    line-height: var(--rs-line-height-normal);
}

.rs-conflict-row__technical[b-0db6mfowwq] {
    margin-top: var(--rs-space-2);
}

.rs-conflict-row__technical-summary[b-0db6mfowwq] {
    cursor: pointer;
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-xs);
    font-weight: var(--rs-font-weight-medium);
}

.rs-conflict-row__evidence[b-0db6mfowwq] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    gap: var(--rs-space-2) var(--rs-space-4);
    margin: var(--rs-space-2) 0 0;
}

.rs-conflict-row__evidence div[b-0db6mfowwq] {
    min-width: 0;
}

.rs-conflict-row__evidence dt[b-0db6mfowwq] {
    color: var(--rs-color-fg-muted);
    font-weight: var(--rs-font-weight-medium);
}

.rs-conflict-row__evidence dd[b-0db6mfowwq] {
    margin: var(--rs-space-1) 0 0;
    color: var(--rs-color-fg);
    overflow-wrap: anywhere;
}

.rs-conflict-row__vs[b-0db6mfowwq] {
    align-self: center;
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-xs);
    font-style: italic;
}

@media (max-width: 40rem) {
    .rs-conflict-row__observed[b-0db6mfowwq] {
        margin-left: 0;
    }

    .rs-conflict-row__vs[b-0db6mfowwq] {
        display: none;
    }
}
/* /Components/Sync/RecordHistoryTimeline.razor.rz.scp.css */
/* Record change-history timeline (E3 Phase 3). A vertical rail of change rows, each with its author + time meta and
   the fields it touched rendered old→new. Every value is a --rs-* token; light/dark ride the semantic role remap. */

.rs-history[b-71dqr4yw64] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-3);
}

.rs-history__range-note[b-71dqr4yw64] {
    margin: 0;
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-xs);
}

.rs-history__status[b-71dqr4yw64] {
    margin: 0;
    padding: var(--rs-space-4);
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-sm);
}

.rs-history__error[b-71dqr4yw64] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--rs-space-3);
    padding: var(--rs-space-3) var(--rs-space-4);
    border: 1px solid var(--rs-color-error);
    background-color: var(--rs-color-error-subtle);
    border-radius: var(--rs-radius-md);
    color: var(--rs-color-fg);
    font-size: var(--rs-text-sm);
}

.rs-history__error p[b-71dqr4yw64] {
    margin: 0;
}

.rs-history__empty[b-71dqr4yw64],
.rs-history__unavailable[b-71dqr4yw64] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--rs-space-1);
    padding: var(--rs-space-6) var(--rs-space-4);
    border: 1px dashed var(--rs-color-border);
    border-radius: var(--rs-radius-lg);
    background-color: var(--rs-color-surface);
    text-align: center;
}

.rs-history__unavailable[b-71dqr4yw64] {
    border-style: solid;
}

.rs-history__empty-title[b-71dqr4yw64] {
    margin: 0;
    color: var(--rs-color-fg);
    font-size: var(--rs-text-md);
    font-weight: var(--rs-font-weight-semibold);
}

.rs-history__empty-note[b-71dqr4yw64] {
    margin: 0;
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-sm);
    line-height: var(--rs-line-height-normal);
}

/* ---- Timeline ---- */
.rs-history__timeline[b-71dqr4yw64] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.rs-history__entry[b-71dqr4yw64] {
    position: relative;
    display: flex;
    gap: var(--rs-space-3);
    padding: 0 0 var(--rs-space-4) var(--rs-space-4);
}

/* The connecting rail sits under the markers, drawn on every entry except the last. */
.rs-history__entry[b-71dqr4yw64]::before {
    content: "";
    position: absolute;
    top: 0.75rem;
    bottom: 0;
    left: 0.3125rem;
    width: 2px;
    background-color: var(--rs-color-border);
}

.rs-history__entry:last-child[b-71dqr4yw64] {
    padding-bottom: 0;
}

.rs-history__entry:last-child[b-71dqr4yw64]::before {
    display: none;
}

.rs-history__marker[b-71dqr4yw64] {
    position: absolute;
    top: 0.375rem;
    left: 0;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: var(--rs-radius-pill);
    background-color: var(--rs-color-accent);
    box-shadow: 0 0 0 3px var(--rs-color-accent-subtle);
    flex: 0 0 auto;
}

.rs-history__entry--delete .rs-history__marker[b-71dqr4yw64] {
    background-color: var(--rs-color-error);
    box-shadow: 0 0 0 3px var(--rs-color-error-subtle);
}

.rs-history__body[b-71dqr4yw64] {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-2);
    min-width: 0;
}

.rs-history__meta[b-71dqr4yw64] {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--rs-space-1) var(--rs-space-3);
}

.rs-history__author[b-71dqr4yw64] {
    color: var(--rs-color-fg);
    font-size: var(--rs-text-sm);
    font-weight: var(--rs-font-weight-semibold);
}

.rs-history__time[b-71dqr4yw64] {
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-xs);
}

.rs-history__replica[b-71dqr4yw64] {
    color: var(--rs-color-fg-muted);
    font-family: var(--rs-font-mono);
    font-size: var(--rs-text-xs);
}

.rs-history__delete[b-71dqr4yw64] {
    margin: 0;
    color: var(--rs-color-error);
    font-size: var(--rs-text-sm);
    font-weight: var(--rs-font-weight-medium);
}

/* The per-save summary line ("Changed Name and Category") shown above the field detail when one save (a shared
   apply-id) touched several fields. Quiet caption weight so the field old→new rows remain the focus. */
.rs-history__summary[b-71dqr4yw64] {
    margin: 0;
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-xs);
    font-weight: var(--rs-font-weight-medium);
}

.rs-history__fields[b-71dqr4yw64] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-1);
}

.rs-history__field[b-71dqr4yw64] {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--rs-space-2);
    padding: var(--rs-space-1) var(--rs-space-3);
    border-radius: var(--rs-radius-sm);
    background-color: var(--rs-color-surface-muted);
    font-size: var(--rs-text-sm);
}

.rs-history__field-name[b-71dqr4yw64] {
    color: var(--rs-color-fg);
    font-weight: var(--rs-font-weight-medium);
}

.rs-history__from[b-71dqr4yw64] {
    color: var(--rs-color-fg-muted);
    text-decoration: line-through;
    word-break: break-word;
}

.rs-history__arrow[b-71dqr4yw64] {
    color: var(--rs-color-fg-muted);
}

.rs-history__to[b-71dqr4yw64] {
    color: var(--rs-color-fg);
    word-break: break-word;
}
/* /Components/Sync/SyncConfigPanel.razor.rz.scp.css */
/* Per-database sync-config panel (E3 Phase 4). Every value is a --rs-* token; light/dark ride the semantic role
   remap. A vertical stack of labelled selects (mode, then direction + type side-by-side) with a save affordance. */

.rs-sync-config[b-44y7j68uo7] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-4);
    padding: var(--rs-space-4);
    border: 1px solid var(--rs-color-border);
    border-radius: var(--rs-radius-lg);
    background-color: var(--rs-color-surface);
    box-shadow: var(--rs-shadow-sm);
}

.rs-sync-config__status[b-44y7j68uo7] {
    margin: 0;
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-sm);
}

.rs-sync-config__error[b-44y7j68uo7] {
    display: flex;
    align-items: center;
    gap: var(--rs-space-3);
    margin: 0;
    padding: var(--rs-space-3) var(--rs-space-4);
    border: 1px solid var(--rs-color-error);
    background-color: var(--rs-color-error-subtle);
    border-radius: var(--rs-radius-md);
    color: var(--rs-color-fg);
    font-size: var(--rs-text-sm);
}

.rs-sync-config__error-text[b-44y7j68uo7] {
    flex: 1 1 auto;
}

.rs-sync-config__retry[b-44y7j68uo7] {
    flex: 0 0 auto;
    padding: var(--rs-space-1) var(--rs-space-3);
    border: 1px solid var(--rs-color-error);
    border-radius: var(--rs-radius-sm);
    background-color: transparent;
    color: var(--rs-color-error);
    font-size: var(--rs-text-sm);
    font-weight: var(--rs-font-weight-medium);
    cursor: pointer;
}

.rs-sync-config__retry:hover[b-44y7j68uo7] {
    background-color: var(--rs-color-error);
    color: var(--rs-color-on-error, #fff);
}

.rs-sync-config__retry:focus-visible[b-44y7j68uo7] {
    outline: var(--rs-focus-ring-width) solid var(--rs-color-focus-ring);
    outline-offset: 2px;
}

/* Stale-save conflict banner (#410): a concurrent owner moved the config out from under the open panel. Deliberately
   WARNING-toned, not error-toned — nothing failed and nothing is malformed, the edits simply need re-basing — and it
   wraps on a narrow panel so the long explanation stays readable next to its Reload action. */
.rs-sync-config__conflict[b-44y7j68uo7] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--rs-space-3);
    margin: 0;
    padding: var(--rs-space-3) var(--rs-space-4);
    border: 1px solid var(--rs-color-warning);
    background-color: var(--rs-color-warning-subtle);
    border-radius: var(--rs-radius-md);
    color: var(--rs-color-fg);
    font-size: var(--rs-text-sm);
}

.rs-sync-config__conflict-text[b-44y7j68uo7] {
    flex: 1 1 16rem;
}

.rs-sync-config__reload[b-44y7j68uo7] {
    flex: 0 0 auto;
    padding: var(--rs-space-1) var(--rs-space-3);
    border: 1px solid var(--rs-color-warning);
    border-radius: var(--rs-radius-sm);
    background-color: transparent;
    color: var(--rs-color-fg);
    font-size: var(--rs-text-sm);
    font-weight: var(--rs-font-weight-medium);
    cursor: pointer;
}

/* Lift the button off the amber banner on hover rather than inverting onto it: there is no on-warning foreground
   token, and white-on-amber is unreadable in the light theme. --rs-color-surface remaps per theme, so this reads in
   both. */
.rs-sync-config__reload:hover[b-44y7j68uo7] {
    background-color: var(--rs-color-surface);
}

.rs-sync-config__reload:focus-visible[b-44y7j68uo7] {
    outline: var(--rs-focus-ring-width) solid var(--rs-color-focus-ring);
    outline-offset: 2px;
}

.rs-sync-config__reload:disabled[b-44y7j68uo7] {
    opacity: 0.55;
    cursor: not-allowed;
}

.rs-sync-config__row[b-44y7j68uo7] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--rs-space-4);
}

.rs-sync-config__field[b-44y7j68uo7] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-1);
    min-width: 0;
}

/* Grow only inside the wrapping rows. A direct child of the panel's column would stretch 12rem tall. */
.rs-sync-config__row .rs-sync-config__field[b-44y7j68uo7],
.rs-sync-config__policy-grid .rs-sync-config__field[b-44y7j68uo7] {
    flex: 1 1 12rem;
}

.rs-sync-config__label[b-44y7j68uo7] {
    color: var(--rs-color-fg);
    font-size: var(--rs-text-sm);
    font-weight: var(--rs-font-weight-semibold);
}

.rs-sync-config__select[b-44y7j68uo7] {
    appearance: none;
    width: 100%;
    height: var(--rs-control-height);
    padding: 0 var(--rs-space-6) 0 var(--rs-space-3);
    border: 1px solid var(--rs-color-border-strong);
    border-radius: var(--rs-radius-md);
    background-color: var(--rs-color-surface);
    color: var(--rs-color-fg);
    font-size: var(--rs-text-sm);
    font-family: inherit;
    cursor: pointer;
    /* A token-tinted chevron so the native select reads as part of the design system. */
    background-image: linear-gradient(45deg, transparent 50%, var(--rs-color-fg-muted) 50%),
        linear-gradient(135deg, var(--rs-color-fg-muted) 50%, transparent 50%);
    background-position: calc(100% - 1.1rem) center, calc(100% - 0.75rem) center;
    background-size: 0.35rem 0.35rem, 0.35rem 0.35rem;
    background-repeat: no-repeat;
}

.rs-sync-config__select:hover[b-44y7j68uo7] {
    border-color: var(--rs-color-accent);
}

.rs-sync-config__select:focus-visible[b-44y7j68uo7] {
    outline: var(--rs-focus-ring-width) solid var(--rs-color-focus-ring);
    outline-offset: 1px;
    border-color: var(--rs-color-accent);
}

.rs-sync-config__hint[b-44y7j68uo7] {
    margin: 0;
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-xs);
    line-height: var(--rs-line-height-snug);
}

/* ---- Per-table policies (authoring editor, E12 P3) ---- */
.rs-sync-config__policies[b-44y7j68uo7] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-3);
    padding: var(--rs-space-3);
    border: 1px dashed var(--rs-color-border);
    border-radius: var(--rs-radius-md);
    background-color: var(--rs-color-surface-muted);
}

.rs-sync-config__policies-head[b-44y7j68uo7] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--rs-space-3);
}

.rs-sync-config__policies-title[b-44y7j68uo7] {
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-xs);
    font-weight: var(--rs-font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.rs-sync-config__policies-empty[b-44y7j68uo7] {
    margin: 0;
    color: var(--rs-color-fg-muted);
    font-size: var(--rs-text-xs);
}

.rs-sync-config__policy-add[b-44y7j68uo7] {
    appearance: none;
    padding: var(--rs-space-1) var(--rs-space-3);
    border: 1px solid var(--rs-color-border-strong);
    border-radius: var(--rs-radius-sm);
    background-color: var(--rs-color-surface);
    color: var(--rs-color-accent);
    font-size: var(--rs-text-xs);
    font-weight: var(--rs-font-weight-semibold);
    cursor: pointer;
}

.rs-sync-config__policy-add:hover[b-44y7j68uo7] {
    border-color: var(--rs-color-accent);
    background-color: var(--rs-color-surface-muted);
}

.rs-sync-config__policy-add:focus-visible[b-44y7j68uo7] {
    outline: var(--rs-focus-ring-width) solid var(--rs-color-focus-ring);
    outline-offset: 1px;
}

.rs-sync-config__policy-list[b-44y7j68uo7] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-3);
}

.rs-sync-config__policy-editor[b-44y7j68uo7] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-1);
    padding: var(--rs-space-3);
    border: 1px solid var(--rs-color-border);
    border-radius: var(--rs-radius-md);
    background-color: var(--rs-color-surface);
}

.rs-sync-config__policy-grid[b-44y7j68uo7] {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: var(--rs-space-3);
}

.rs-sync-config__input[b-44y7j68uo7] {
    width: 100%;
    height: var(--rs-control-height);
    padding: 0 var(--rs-space-3);
    border: 1px solid var(--rs-color-border-strong);
    border-radius: var(--rs-radius-md);
    background-color: var(--rs-color-surface);
    color: var(--rs-color-fg);
    font-size: var(--rs-text-sm);
    font-family: inherit;
}

.rs-sync-config__input:hover[b-44y7j68uo7] {
    border-color: var(--rs-color-accent);
}

.rs-sync-config__input:focus-visible[b-44y7j68uo7] {
    outline: var(--rs-focus-ring-width) solid var(--rs-color-focus-ring);
    outline-offset: 1px;
    border-color: var(--rs-color-accent);
}

.rs-sync-config__policy-remove[b-44y7j68uo7] {
    appearance: none;
    flex: 0 0 auto;
    height: var(--rs-control-height);
    padding: 0 var(--rs-space-3);
    border: 1px solid var(--rs-color-border-strong);
    border-radius: var(--rs-radius-sm);
    background-color: transparent;
    color: var(--rs-color-error-strong);
    font-size: var(--rs-text-xs);
    font-weight: var(--rs-font-weight-medium);
    cursor: pointer;
}

.rs-sync-config__policy-remove:hover[b-44y7j68uo7] {
    border-color: var(--rs-color-error);
    background-color: var(--rs-color-error-subtle);
}

.rs-sync-config__policy-remove:focus-visible[b-44y7j68uo7] {
    outline: var(--rs-focus-ring-width) solid var(--rs-color-focus-ring);
    outline-offset: 1px;
}

/* ---- Actions ---- */
.rs-sync-config__actions[b-44y7j68uo7] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--rs-space-3);
}

.rs-sync-config__save[b-44y7j68uo7] {
    appearance: none;
    height: var(--rs-control-height);
    padding: 0 var(--rs-space-5);
    border: 1px solid transparent;
    border-radius: var(--rs-radius-md);
    background-color: var(--rs-color-accent);
    color: var(--rs-color-fg-on-accent);
    font-size: var(--rs-text-sm);
    font-weight: var(--rs-font-weight-semibold);
    cursor: pointer;
}

.rs-sync-config__save:hover:not(:disabled)[b-44y7j68uo7] {
    background-color: var(--rs-color-accent-hover);
}

.rs-sync-config__save:active:not(:disabled)[b-44y7j68uo7] {
    background-color: var(--rs-color-accent-active);
}

.rs-sync-config__save:focus-visible[b-44y7j68uo7] {
    outline: var(--rs-focus-ring-width) solid var(--rs-color-focus-ring);
    outline-offset: 2px;
}

.rs-sync-config__save:disabled[b-44y7j68uo7] {
    opacity: 0.55;
    cursor: not-allowed;
}

.rs-sync-config__action-error[b-44y7j68uo7] {
    color: var(--rs-color-error-strong);
    font-size: var(--rs-text-sm);
}

@media (max-width: 40rem) {
    .rs-sync-config__row[b-44y7j68uo7] {
        flex-direction: column;
        gap: var(--rs-space-3);
    }
}
/* /Components/Sync/SyncPanel.razor.rz.scp.css */
/* The sync panel — a small self-contained surface. Tones remap one component-scoped --rs-sync-dot var, mirroring
   the header indicator, so the two surfaces read as one system. */

.rs-sync-panel[b-6er6b9npod] {
    --rs-sync-dot: var(--rs-color-fg-muted);
    --rs-sync-halo: var(--rs-color-surface-muted);

    display: flex;
    flex-direction: column;
    gap: var(--rs-space-2);
    padding: var(--rs-space-4);
    border: 1px solid var(--rs-color-border);
    border-radius: var(--rs-radius-lg);
    background-color: var(--rs-color-surface);
    box-shadow: var(--rs-shadow-sm);
    max-width: 20rem;
}

.rs-sync-panel--online[b-6er6b9npod] {
    --rs-sync-dot: var(--rs-color-success);
    --rs-sync-halo: var(--rs-color-success-subtle);
}

.rs-sync-panel--syncing[b-6er6b9npod] {
    --rs-sync-dot: var(--rs-color-accent);
    --rs-sync-halo: var(--rs-color-accent-subtle);
}

.rs-sync-panel--offline[b-6er6b9npod] {
    --rs-sync-dot: var(--rs-color-fg-muted);
    --rs-sync-halo: var(--rs-color-surface-muted);
}

.rs-sync-panel--error[b-6er6b9npod] {
    --rs-sync-dot: var(--rs-color-error);
    --rs-sync-halo: var(--rs-color-error-subtle);
}

/* Degraded ("sync stuck"): a distinct attention tone — the stream is pinned, not broken, so it reads as an
   amber caution rather than a red error. */
.rs-sync-panel--degraded[b-6er6b9npod] {
    --rs-sync-dot: var(--rs-color-warning);
    --rs-sync-halo: var(--rs-color-warning-subtle);
}

.rs-sync-panel__header[b-6er6b9npod] {
    display: flex;
    align-items: center;
    gap: var(--rs-space-2);
}

.rs-sync-panel__dot[b-6er6b9npod] {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.6875rem;
    height: 0.6875rem;
    border-radius: var(--rs-radius-pill);
    background-color: var(--rs-sync-dot);
    flex: 0 0 auto;
}

.rs-sync-panel--online .rs-sync-panel__dot[b-6er6b9npod],
.rs-sync-panel--error .rs-sync-panel__dot[b-6er6b9npod],
.rs-sync-panel--degraded .rs-sync-panel__dot[b-6er6b9npod] {
    box-shadow: 0 0 0 3px var(--rs-sync-halo);
}

.rs-sync-panel--syncing .rs-sync-panel__dot[b-6er6b9npod] {
    background-color: transparent;
}

.rs-sync-panel__spinner[b-6er6b9npod] {
    width: 0.6875rem;
    height: 0.6875rem;
    border-radius: var(--rs-radius-pill);
    border: 2px solid var(--rs-sync-halo);
    border-top-color: var(--rs-sync-dot);
    animation: rs-spin 0.8s linear infinite;
}

.rs-sync-panel__status[b-6er6b9npod] {
    font-size: var(--rs-text-md);
    font-weight: var(--rs-font-weight-semibold);
    color: var(--rs-color-fg);
}

.rs-sync-panel__badge[b-6er6b9npod] {
    margin-left: auto;
}

.rs-sync-panel__meta[b-6er6b9npod] {
    margin: 0;
    font-size: var(--rs-text-sm);
    color: var(--rs-color-fg-muted);
}

.rs-sync-panel__error[b-6er6b9npod] {
    margin: 0;
    font-size: var(--rs-text-sm);
    color: var(--rs-color-error);
    background-color: var(--rs-color-error-subtle);
    padding: var(--rs-space-2) var(--rs-space-3);
    border-radius: var(--rs-radius-md);
}

.rs-sync-panel__notices[b-6er6b9npod] {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-2);
    margin: 0;
    padding: 0;
    list-style: none;
}

.rs-sync-panel__notice[b-6er6b9npod] {
    margin: 0;
    font-size: var(--rs-text-sm);
    color: var(--rs-color-warning-fg, var(--rs-color-fg));
    background-color: var(--rs-color-warning-subtle);
    padding: var(--rs-space-2) var(--rs-space-3);
    border-radius: var(--rs-radius-md);
}

.rs-sync-panel__notice--critical[b-6er6b9npod] {
    color: var(--rs-color-error);
    background-color: var(--rs-color-error-subtle);
}

.rs-sync-panel__actions[b-6er6b9npod] {
    margin-top: var(--rs-space-1);
    display: flex;
    justify-content: flex-start;
}

/* Rotation keyframe (rs-spin) is shared in components.css; only the reduced-motion slowdown is local. */
@media (prefers-reduced-motion: reduce) {
    .rs-sync-panel__spinner[b-6er6b9npod] {
        animation-duration: 2.4s;
    }
}
/* /Components/Sync/SyncStatusIndicator.razor.rz.scp.css */
/* The top bar's sync notice. The tone is driven by a single component-scoped --rs-sync-dot var that each modifier
   remaps to a semantic role token. */

.rs-sync-indicator[b-yse0zoxuej] {
    --rs-sync-dot: var(--rs-color-fg-muted);
    --rs-sync-halo: var(--rs-color-surface-muted);

    display: inline-flex;
    align-items: center;
    gap: var(--rs-space-2);
    padding: var(--rs-space-2);
    border-radius: var(--rs-radius-md);
    font-size: var(--rs-text-sm);
    line-height: var(--rs-line-height-tight);
    color: var(--rs-color-fg);
    text-decoration: none;
    white-space: nowrap;
}

.rs-sync-indicator:hover[b-yse0zoxuej] {
    background-color: var(--rs-color-surface-muted);
}

.rs-sync-indicator:focus-visible[b-yse0zoxuej] {
    outline: var(--rs-focus-ring-width) solid var(--rs-color-focus-ring);
    outline-offset: var(--rs-focus-ring-offset);
}

.rs-sync-indicator--error[b-yse0zoxuej] {
    --rs-sync-dot: var(--rs-color-error);
    --rs-sync-halo: var(--rs-color-error-subtle);
}

/* Degraded: an amber caution tone distinct from the red error — work is held, not broken. */
.rs-sync-indicator--degraded[b-yse0zoxuej] {
    --rs-sync-dot: var(--rs-color-warning);
    --rs-sync-halo: var(--rs-color-warning-subtle);
}

.rs-sync-indicator__dot[b-yse0zoxuej] {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: var(--rs-radius-pill);
    background-color: var(--rs-sync-dot);
    box-shadow: 0 0 0 3px var(--rs-sync-halo);
    flex: 0 0 auto;
}

.rs-sync-indicator__status[b-yse0zoxuej] {
    font-weight: var(--rs-font-weight-medium);
}
