html,
body {
    --body-font: "Segoe UI Variable", "Segoe UI", sans-serif;
    font-family: var(--body-font);
    margin: 0;
    min-height: 100dvh;
}

h1:focus {
    outline: none;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.fluent-layout {
    grid-template-areas:
        "header"
        "content";
    grid-template-columns: minmax(0, 1fr);
}

/* FluentLayout paints its header brand blue with `.fluent-layout-item[area=header]`; this selector is one class more specific so the
   neutral header wins. */
.fluent-layout-item.app-header[area=header] {
    border-bottom: 1px solid var(--colorNeutralStroke1);
    background: var(--colorNeutralBackground1);
    color: var(--colorNeutralForeground1);
    overflow: visible;
    position: relative;
    z-index: 20;
}

.app-header-content {
    box-sizing: border-box;
    overflow: visible;
    width: 100%;
}

.app-title {
    margin-inline-end: 1rem;
    white-space: nowrap;
}

.app-header-spacer {
    flex: 1 1 auto;
    min-width: 1rem;
}

.settings-button {
    flex: 0 0 auto;
}

/* The zone every time is shown in, stated once (D99 (5)). */
.app-version {
    color: var(--colorNeutralForeground3);
    font-size: var(--fontSizeBase200);
    white-space: nowrap;
}

.app-header-zone {
    align-items: center;
    color: var(--colorNeutralForeground2);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: var(--fontSizeBase200);
    gap: var(--spacingHorizontalXS);
    white-space: nowrap;
}

.main {
    min-width: 0;
    overflow: auto;
    color: var(--colorNeutralForeground1);
}

.content {
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
}

#main-menu {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: transparent;
}

.top-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 2rem;
    padding: 0 0.625rem;
    border-radius: 4px;
    color: var(--colorNeutralForeground1);
    text-decoration: none;
    white-space: nowrap;
}

.top-nav-link:hover,
.top-nav-link.active {
    background: var(--colorSubtleBackgroundHover);
    color: var(--colorBrandForeground1);
}

/* The count on Requests and Schedules (D116): a small pill after the label; its text for a screen reader is the visually-hidden span inside it. */
.top-nav-badge {
    background: var(--colorStatusDangerBackground3);
    border-radius: 999px;
    color: var(--colorNeutralForegroundOnBrand);
    font-size: var(--fontSizeBase200);
    font-weight: var(--fontWeightSemibold);
    line-height: 1;
    min-width: 1.25rem;
    padding: 0.2rem 0.4rem;
    text-align: center;
}

/* The Operations menu: a native details element, so it needs no script; it closes when a link is followed (NavMenu) and folds into the panel on narrow screens. */
.top-nav-menu {
    flex: 0 0 auto;
    position: relative;
}

.top-nav-menu > summary {
    cursor: pointer;
    list-style: none;
}

.top-nav-menu > summary::-webkit-details-marker {
    display: none;
}

.top-nav-menu-list {
    background: var(--colorNeutralBackground1);
    border: var(--strokeWidthThin) solid var(--colorNeutralStroke1);
    border-radius: var(--borderRadiusMedium);
    box-shadow: var(--shadow16);
    display: flex;
    flex-direction: column;
    gap: var(--spacingVerticalXXS);
    inset-inline-start: 0;
    list-style: none;
    margin: var(--spacingVerticalXS) 0 0;
    min-width: 12rem;
    padding: var(--spacingVerticalXS);
    position: absolute;
    top: 100%;
    z-index: 30;
}

.surface-card {
    margin-top: 0.75rem;
    border: 1px solid var(--colorNeutralStroke1);
    border-radius: 10px;
    padding: 0.25rem;
    overflow-x: auto;
}

/* FluentDataGrid renders a plain <table class="fluent-data-grid"> in 5.x, so cells are styled directly (no ::part). */
.surface-card .fluent-data-grid {
    width: 100%;
}

.surface-card .fluent-data-grid th {
    background: var(--colorNeutralBackground2);
    font-weight: 600;
}

.surface-card .fluent-data-grid td {
    border-bottom: 1px solid var(--colorNeutralStroke2);
}

.job-name-cell {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem 0.4rem;
    max-width: 100%;
    min-width: 0;
}

.job-name-text,
.job-name-link {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.job-name-link {
    color: var(--colorBrandForeground1);
    font-weight: 600;
    text-decoration: none;
}

.job-name-link:hover,
.job-name-link:focus-visible {
    text-decoration: underline;
}

.job-name-cell--member {
    padding-inline-start: var(--spacingHorizontalXL);
}

.job-count-badge {
    margin-inline-start: var(--spacingHorizontalS);
}

.job-group-rollup {
    color: var(--colorNeutralForeground3);
    font-size: var(--fontSizeBase200);
    white-space: nowrap;
}

.job-family-label {
    cursor: pointer;
    font-weight: 700;
    white-space: nowrap;
}

.job-tags {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    min-width: 0;
}

.job-tag {
    padding: 0 0.35rem;
    border: 1px solid var(--colorNeutralStroke2);
    border-radius: var(--borderRadiusSmall);
    color: var(--colorNeutralForeground3);
    font-size: var(--fontSizeBase100);
    font-weight: 400;
    white-space: nowrap;
}

.triage-indicator {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.dashboard-actions-cell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    white-space: nowrap;
}

.dashboard-actions-cell:not(.dashboard-actions-cell--grid) fluent-button {
    min-width: 2rem;
}

.dashboard-actions-cell--grid fluent-button {
    background: transparent;
    border-color: transparent;
}

.dashboard-actions-cell--grid {
    gap: 2px;
    justify-content: center;
}

.dashboard-action-slot {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    justify-content: center;
    width: 32px;
}

.dashboard-action-slot fluent-button {
    margin: 0;
}

.page-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.page-header-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

/* The shared page opening (PageHeader): breadcrumbs, icon, title and one-line summary, actions at the right. */
.page-header-block {
    margin-bottom: var(--spacingVerticalL);
}

.page-header-block .page-header {
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.page-header-icon {
    color: var(--colorBrandForeground1);
    flex: 0 0 auto;
    margin-top: var(--spacingVerticalXXS);
}

.page-header-text {
    min-width: 0;
}

.page-header-summary {
    color: var(--colorNeutralForeground3);
    font-size: var(--fontSizeBase200);
    line-height: var(--lineHeightBase200);
    margin: var(--spacingVerticalXXS) 0 0;
}

.page-header-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacingHorizontalS);
}

.breadcrumbs {
    font-size: var(--fontSizeBase200);
    margin-bottom: var(--spacingVerticalXS);
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacingHorizontalXS);
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumbs li + li::before {
    color: var(--colorNeutralForeground3);
    content: "/";
    margin-inline-end: var(--spacingHorizontalXS);
}

.breadcrumbs span[aria-current] {
    color: var(--colorNeutralForeground3);
}

/* A detail page's title (a job, a run, a request) keeps the larger size it had as an h2. */
.page-header-title--detail {
    font-size: 1.5rem;
}

.page-header-spacer {
    flex: 1;
}

.detail-grid {
    align-items: stretch;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.detail-card {
    box-sizing: border-box;
    display: block;
    height: 100%;
    /* A grid item is as wide as its content by default; a card must fit its column and let its content wrap. */
    min-width: 0;
}

.kv-table {
    width: 100%;
    border-collapse: collapse;
}

.kv-table td {
    padding: 0.3rem 0;
}

.kv-key {
    color: var(--colorNeutralForeground2);
    padding-inline-end: var(--spacingHorizontalL);
    white-space: nowrap;
    font-weight: 600;
    width: 1%;
}

.entry-label {
    font-weight: 600;
    line-height: 1.35;
}

.schedule-entry-list {
    display: grid;
    gap: 0.65rem;
    grid-template-columns: minmax(0, 1fr);
}

.schedule-next-run-summary {
    background: var(--colorBrandBackground);
    border-radius: 6px;
    color: var(--colorNeutralForegroundOnBrand);
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding: 0.6rem 0.75rem;
}

.schedule-next-run-summary .entry-meta-label {
    color: var(--colorNeutralForegroundOnBrand);
    opacity: 0.85;
}

.schedule-next-run-summary strong {
    font-size: 1rem;
    line-height: 1.25;
}

.schedule-entry-card {
    border: 1px solid var(--colorNeutralStroke1);
    border-radius: 6px;
    padding: 0.65rem;
}

.schedule-entry-header {
    align-items: flex-start;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
}

.schedule-entry-meta-line {
    align-items: baseline;
    color: var(--colorNeutralForeground3);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.82rem;
    gap: 0.25rem 0.45rem;
}

.schedule-entry-meta-line > span:not(:first-child)::before {
    content: "\00b7";
    margin-right: 0.45rem;
}

.entry-meta-label {
    color: var(--colorNeutralForeground3);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
}

.schedule-friendly-list {
    display: grid;
    gap: 0.35rem;
    margin-top: 0.5rem;
}

.schedule-friendly-row {
    align-items: center;
    background: var(--colorNeutralBackground2);
    border-left: 3px solid transparent;
    border-radius: 4px;
    /* Wraps (rule, cron, then the Next marker) instead of fixed max-content columns, which pushed the row out of a narrow card. */
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    padding: 0.35rem 0.45rem;
}

.schedule-friendly-row .schedule-rule-text {
    flex: 1 1 8.5rem;
}

.schedule-friendly-row--next {
    background: color-mix(in srgb, var(--colorBrandBackground) 9%, var(--colorNeutralBackground2));
    border-left-color: var(--colorBrandBackground);
}

.schedule-rule-text {
    min-width: 0;
}

.schedule-friendly-row code {
    background: var(--colorNeutralBackground2);
    border: 1px solid var(--colorNeutralStroke1);
    border-radius: 4px;
    color: var(--colorNeutralForeground1);
    padding: 0.15rem 0.35rem;
}

.schedule-next-marker {
    align-items: center;
    background: color-mix(in srgb, var(--colorBrandBackground) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--colorBrandBackground) 34%, transparent);
    border-radius: 999px;
    color: var(--colorNeutralForeground1);
    display: inline-flex;
    font-size: 0.78rem;
    gap: 0.4rem;
    justify-self: end;
    padding: 0.12rem 0.45rem;
    white-space: nowrap;
}

.schedule-next-marker > span {
    color: var(--colorBrandForeground1);
    font-weight: 600;
    text-transform: uppercase;
}

.schedule-next-placeholder {
    display: block;
    width: 0;
}

.cron-description,
.cron-next-run {
    color: var(--colorNeutralForeground3);
    font-size: 0.85rem;
}

.note-card {
    border: 1px solid var(--colorNeutralStroke1);
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
}

.triage-composer {
    border: 1px solid var(--colorNeutralStroke1);
    border-radius: 6px;
    background: var(--colorNeutralBackground2);
    margin-bottom: 0.75rem;
    padding: 0.75rem;
}

.danger-action {
    color: var(--colorStatusDangerForeground1);
}

.job-family-toggle {
    margin-inline-start: 2px;
}

.triage-note-markdown {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.triage-note-markdown > :first-child {
    margin-top: 0;
}

.triage-note-markdown > :last-child {
    margin-bottom: 0;
}

.nowrap {
    white-space: nowrap;
}

@media (max-width: 900px) {
    #main-menu {
        overflow-x: auto;
        width: 100% !important;
    }
}

/* Schedule editor (job detail, Schedules tab) */
.schedule-editor {
    margin-bottom: 1rem;
}

.schedule-editor-hint {
    color: var(--colorNeutralForeground3);
    font-size: 0.85rem;
    margin: 0.25rem 0 0.5rem;
}

.schedule-editor-notices {
    display: grid;
    gap: 0.5rem;
}

.schedule-editor-notices:not(:empty) {
    margin: 0.5rem 0;
}

.schedule-editor-unmapped {
    margin: 0.25rem 0 0;
    padding-left: 1.25rem;
}

/* Fluent gives every field a 12px margin above and below (.my-3-o); the editor's grids and columns have their own gaps, so it only added loose spacing
   and threw off the buttons placed beside a field. */
.schedule-editor fluent-field {
    margin-block: 0;
}

.schedule-editor-fields {
    align-items: start;
    display: grid;
    gap: 0.75rem 1rem;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    margin: 0.75rem 0;
}

.schedule-editor-fields fluent-text-input,
.schedule-editor-fields fluent-number-input,
.schedule-editor-fields fluent-select {
    width: 100%;
}

.schedule-editor-entries-header,
.schedule-editor-entry-header {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: space-between;
}

.schedule-editor-title {
    margin: 0 0 var(--spacingVerticalXXS);
}

.schedule-editor-subtitle {
    margin: 0;
}

/* The action bar stays at the bottom of the viewport while the editor is taller than it (D99 (6)); the unsaved marker is text, with a dot as decoration. */
.schedule-editor-bar {
    align-items: center;
    background: var(--colorNeutralBackground1);
    border: var(--strokeWidthThin) solid var(--colorNeutralStroke2);
    border-radius: var(--borderRadiusMedium);
    bottom: 0;
    box-shadow: var(--shadow8);
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacingHorizontalS);
    justify-content: space-between;
    margin-top: var(--spacingVerticalM);
    padding: var(--spacingVerticalS) var(--spacingHorizontalM);
    position: sticky;
    z-index: 2;
}

.schedule-editor-bar-status {
    align-items: center;
    display: flex;
    flex: 1 1 12rem;
    flex-wrap: wrap;
    gap: var(--spacingHorizontalS) var(--spacingHorizontalM);
}

.schedule-editor-bar-status:focus-visible {
    outline: var(--strokeWidthThick) solid var(--colorStrokeFocus2);
    outline-offset: var(--strokeWidthThin);
}

.schedule-editor-bar-actions {
    display: flex;
    gap: var(--spacingHorizontalS);
}

.schedule-editor-unsaved {
    font-weight: var(--fontWeightSemibold);
}

.schedule-editor-unsaved::before {
    background: var(--colorStatusWarningForeground1);
    border-radius: var(--borderRadiusCircular);
    content: "";
    display: inline-block;
    height: var(--spacingHorizontalS);
    margin-inline-end: var(--spacingHorizontalXS);
    width: var(--spacingHorizontalS);
}

.schedule-editor-no-changes {
    color: var(--colorNeutralForeground3);
}

.schedule-editor-entry {
    border: 1px solid var(--colorNeutralStroke1);
    border-radius: 6px;
    margin: 0.75rem 0;
    padding: 0.65rem;
}

.schedule-editor-expressions {
    display: grid;
    gap: 0.5rem;
}

.schedule-editor-expression {
    align-items: start;
    column-gap: 0.25rem;
    display: grid;
    grid-template-columns: minmax(0, 22rem) auto;
    justify-content: start;
}

.schedule-editor-expression-input {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

/* Level with the input: its label and spacing are about 24px, the input is 32px tall and so is an icon-only button. */
.schedule-editor-expression > fluent-button {
    margin-top: 1.5rem;
}

.schedule-editor-expression-input fluent-text-input {
    width: 100%;
}

.schedule-editor-expression-description {
    display: block;
}

/* The column's own gap spaces the input, the error and the description. */
.schedule-editor-expression-input .schedule-field-error {
    margin: 0;
}

.schedule-editor-tags {
    margin: 1rem 0;
}

.schedule-editor-tag {
    align-items: start;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.schedule-editor-tag-input {
    flex: 1 1 12rem;
    min-width: 0;
}

.schedule-editor-tag-input fluent-text-input {
    width: 100%;
}

/* Level with the input, below its label (as the cron row's remove button). */
.schedule-editor-tag > fluent-button {
    margin-top: 1.5rem;
}

.schedule-editor-code-tag {
    align-items: center;
    color: var(--colorNeutralForeground2);
    display: flex;
    gap: 0.5rem;
    margin: 0.35rem 0;
}

.schedule-editor-code-tag-text {
    min-width: 0;
    overflow-wrap: anywhere;
}

.schedule-field-error {
    color: var(--colorStatusDangerForeground1);
    font-size: 0.8rem;
    margin: 0.2rem 0 0;
}

.schedule-editor-save-hint {
    color: var(--colorStatusDangerForeground1);
    font-size: 0.85rem;
}

.schedule-preview {
    background: var(--colorNeutralBackground2);
    border-radius: 4px;
    margin-top: 0.75rem;
    padding: 0.45rem 0.6rem;
}

.schedule-preview-list {
    display: grid;
    gap: 0.15rem;
    margin: 0.25rem 0 0;
    padding-left: 1.25rem;
}

.schedule-preview-display-zone {
    color: var(--colorNeutralForeground3);
    margin-left: 0.75rem;
}

.schedule-edit-link {
    align-items: center;
    color: var(--colorNeutralForeground1);
    display: inline-flex;
    justify-content: center;
    min-height: 2rem;
    min-width: 2rem;
}

/* Monitoring card (job detail, Monitoring tab) */
.monitoring-card {
    grid-column: 1 / -1;
}

.monitoring-table {
    border-collapse: collapse;
    width: 100%;
}

.monitoring-table caption {
    color: var(--colorNeutralForeground3);
    font-size: 0.85rem;
    padding-bottom: 0.35rem;
    text-align: left;
}

.monitoring-table th,
.monitoring-table td {
    border-bottom: 1px solid var(--colorNeutralStroke1);
    padding: 0.4rem 0.75rem 0.4rem 0;
    text-align: left;
    vertical-align: top;
}

.monitoring-table thead th {
    font-size: 0.85rem;
}

.monitoring-table tbody th {
    font-weight: 600;
}

.monitoring-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.monitoring-policy {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.75rem 0;
}

.monitoring-panel {
    border: 1px solid var(--colorNeutralStroke1);
    border-radius: 6px;
    margin: 0.75rem 0;
    padding: 0.65rem;
}

.monitoring-panel-fields {
    align-items: start;
    display: grid;
    gap: 0.75rem 1rem;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    margin: 0.75rem 0;
}

.monitoring-panel-fields fluent-number-input {
    width: 100%;
}

.monitoring-panel-reason {
    margin: 0.75rem 0;
}

.monitoring-reason-count {
    color: var(--colorNeutralForeground3);
    font-size: 0.8rem;
}

.monitoring-history-heading {
    margin: 1rem 0 0.35rem;
}

.monitoring-history-scroll {
    overflow-x: auto;
}

.monitoring-history-reason {
    min-width: 12rem;
    overflow-wrap: anywhere;
}

.monitoring-history-footer {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.monitoring-pager {
    display: flex;
    gap: 0.25rem;
}

.visually-hidden {
    border: 0;
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.run-ratio-slow {
    color: var(--colorStatusWarningForeground1);
    font-weight: 600;
}

/* StatusBadge (D99 (2)): icon and words on one line, the icon in the badge's text colour (set on the icon itself). */
.status-badge > span {
    align-items: center;
    display: inline-flex;
    gap: var(--spacingHorizontalXS);
    white-space: nowrap;
}

.status-badge svg {
    flex-shrink: 0;
}

/* A cell of several badges (the dashboard Status column) wraps them: grid cells are nowrap and clip, which hid a badge that ran past the edge. */
.status-cell {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacingVerticalXXS) var(--spacingHorizontalXS);
    padding-block: var(--spacingVerticalXXS);
    white-space: normal;
}

.status-cell > .status-badge {
    flex-shrink: 0;
}

/* ---- Entry forms (D99 (6), ui-refresh slice F): sections, two columns that fold to one, hints and errors under their input ---- */
.entry-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacingVerticalL);
    /* Room for a focused control's outline: the dialog body scrolls, so anything past its content box is clipped. */
    padding: var(--spacingVerticalXXS) var(--spacingHorizontalXS);
    box-sizing: border-box;
    width: 100%;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: var(--spacingVerticalS);
}

.form-section + .form-section {
    border-top: var(--strokeWidthThin) solid var(--colorNeutralStroke2);
    padding-top: var(--spacingVerticalL);
}

.form-section-title {
    color: var(--colorNeutralForeground1);
    font-size: var(--fontSizeBase400);
    font-weight: var(--fontWeightSemibold);
    line-height: var(--lineHeightBase400);
    margin: 0;
}

/* Two columns of at least 15rem each, so a 640 px dialog has two and a phone has one. */
.form-grid,
.parameter-grid {
    column-gap: var(--spacingHorizontalL);
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
    row-gap: var(--spacingVerticalM);
}

.form-grid > *,
.parameter-grid > * {
    min-width: 0;
}

.form-wide,
.parameter-field--wide {
    grid-column: 1 / -1;
}

.parameter-field--conditional {
    border-inline-start: var(--strokeWidthThick) solid var(--colorNeutralStroke2);
    margin-inline-start: var(--spacingHorizontalS);
    padding-inline-start: var(--spacingHorizontalM);
}

.parameter-input,
.form-input {
    width: 100%;
}

/* A date-time parameter: the date, then the time of day beside it (below it when the column is narrow). */
.parameter-instant {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacingHorizontalS);
}

.parameter-instant > .parameter-input {
    flex: 1 1 10rem;
    min-width: 0;
    width: auto;
}

.parameter-time {
    flex: 0 1 8rem;
    min-width: 6rem;
}

.parameter-instant-picker {
    display: flex;
    flex-direction: column;
    gap: var(--spacingVerticalS);
}

/* FluentUI gives every field a 12 px margin above and below (.my-3-o); in a grid that has its own gaps it tripled the spacing and pushed
   controls beside a field out of line, so fields in forms and the dialog footer have none. */
.entry-form fluent-field,
.parameter-form fluent-field,
.dialog-actions fluent-field {
    margin-block: 0;
}

.form-hint,
.form-zone,
.form-error {
    font-size: var(--fontSizeBase200);
    line-height: var(--lineHeightBase200);
    margin: var(--spacingVerticalXXS) 0 0;
}

.form-hint,
.form-zone {
    color: var(--colorNeutralForeground3);
}

.form-zone {
    margin: 0;
}

.form-error {
    color: var(--colorStatusDangerForeground1);
}

.form-error p {
    margin: 0;
}

.form-error-summary {
    background: var(--colorStatusDangerBackground1);
    border: var(--strokeWidthThin) solid var(--colorStatusDangerBorder1);
    border-radius: var(--borderRadiusMedium);
    color: var(--colorNeutralForeground1);
    padding: var(--spacingVerticalS) var(--spacingHorizontalM);
}

.form-error-summary:focus-visible {
    outline: var(--strokeWidthThick) solid var(--colorStrokeFocus2);
    outline-offset: var(--strokeWidthThin);
}

.form-error-summary-title {
    font-weight: var(--fontWeightSemibold);
    margin: 0 0 var(--spacingVerticalXS);
}

.form-error-summary ul {
    margin: 0;
    padding-inline-start: var(--spacingHorizontalXL);
}

.parameter-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacingVerticalM);
    width: 100%;
}

.parameter-group {
    font-size: var(--fontSizeBase300);
    font-weight: var(--fontWeightSemibold);
    margin: var(--spacingVerticalS) 0 0;
}

.parameter-date-actions {
    align-items: center;
    display: inline-flex;
    gap: var(--spacingHorizontalXXS);
}

.parameter-default {
    margin: 0;
}

.parameter-advanced-toggle {
    align-self: flex-start;
}

.parameter-rows {
    border: var(--strokeWidthThin) solid var(--colorNeutralStroke1);
    border-radius: var(--borderRadiusMedium);
    margin: 0;
    padding: var(--spacingVerticalS) var(--spacingHorizontalS);
}

.parameter-rows legend {
    font-weight: var(--fontWeightSemibold);
    padding: 0 var(--spacingHorizontalXS);
}

.parameter-row {
    align-items: flex-end;
    border-bottom: var(--strokeWidthThin) solid var(--colorNeutralStroke2);
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacingHorizontalS);
    padding: var(--spacingVerticalXS) 0;
}

.parameter-cell {
    flex: 1 1 10rem;
    min-width: 8rem;
}

.parameter-rows-add {
    margin-top: var(--spacingVerticalS);
}

.relative-date-help {
    font-size: var(--fontSizeBase200);
    padding: var(--spacingVerticalXS);
}

.relative-date-help p,
.relative-date-help ul {
    margin: 0 0 var(--spacingVerticalS);
}

.relative-date-help p:last-child {
    margin-bottom: 0;
}

.relative-date-help ul {
    padding-inline-start: var(--spacingHorizontalXL);
}

.relative-date-help-title {
    font-weight: var(--fontWeightSemibold);
}

/* A dialog footer with a control at the start (Enabled) and the actions at the end. */
.dialog-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacingHorizontalS);
    width: 100%;
}

.dialog-actions-start {
    margin-inline-end: auto;
}

.user-schedule-job {
    margin: 0;
}

/* Triage composers: the text area, its preview toggle and preview, then the work item and the actions. */
.markdown-field-preview {
    background: var(--colorNeutralBackground1);
    border: var(--strokeWidthThin) solid var(--colorNeutralStroke2);
    border-radius: var(--borderRadiusMedium);
    margin-top: var(--spacingVerticalXS);
    padding: var(--spacingVerticalS) var(--spacingHorizontalM);
}

.triage-composer-row {
    align-items: flex-end;
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacingHorizontalM);
    justify-content: space-between;
    margin-top: var(--spacingVerticalM);
}

.triage-work-item {
    width: 14rem;
}

.triage-composer-actions {
    display: flex;
    gap: var(--spacingHorizontalS);
    margin-inline-start: auto;
}

.triage-comment-actions {
    margin-top: var(--spacingVerticalXS);
}

/* Warning policy choices: the name and, under it, what the choice does. */
.policy-choice-name {
    display: block;
    font-weight: var(--fontWeightSemibold);
}

.policy-choice-help {
    color: var(--colorNeutralForeground3);
    display: block;
    font-size: var(--fontSizeBase200);
    line-height: var(--lineHeightBase200);
}

/* A row of actions inside a form section (Check inputs, Save these parameters as...); the grow cell takes the rest of the row. */
.form-toolbar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacingHorizontalS);
}

.form-toolbar-grow {
    flex: 1 1 10rem;
    min-width: 0;
}

/* Card headings (D99 (3)): one modest size for the title of every card, not the browser's h3. */
.card-title {
    color: var(--colorNeutralForeground1);
    font-size: var(--fontSizeBase400);
    font-weight: var(--fontWeightSemibold);
    line-height: var(--lineHeightBase400);
    margin: 0;
}

.card-title--block {
    margin-bottom: var(--spacingVerticalM);
}

.card-title--tight {
    margin-bottom: var(--spacingVerticalXS);
}

/* One filter row everywhere: Fluent controls with inline labels, centred, with a fixed gap between them. */
.filter-bar {
    margin-bottom: 0.75rem;
}

.filter-bar--page {
    margin-top: 0.75rem;
}

.filter-spacer {
    flex: 1 1 auto;
}

.card-toolbar {
    align-items: center;
    display: flex;
    gap: var(--spacingHorizontalS);
    margin-bottom: var(--spacingVerticalM);
}

.run-filter-chip {
    align-items: center;
    border: var(--strokeWidthThin) solid var(--colorNeutralStroke1);
    border-radius: var(--borderRadiusCircular);
    display: inline-flex;
    gap: var(--spacingHorizontalXS);
    padding: 0 var(--spacingHorizontalXS) 0 var(--spacingHorizontalM);
}

.runs-page-count {
    color: var(--colorNeutralForeground3);
    font-size: var(--fontSizeBase200);
    white-space: nowrap;
}

/* The title row of a job, run or request page. */
.detail-header {
    gap: var(--spacingHorizontalS);
    margin-bottom: var(--spacingVerticalL);
}

.detail-header--tight {
    margin-bottom: var(--spacingVerticalS);
}

.detail-header-meta {
    color: var(--colorNeutralForeground3);
    font-size: var(--fontSizeBase200);
}

/* The reason under an Attention headline: secondary text. */
.attention-detail {
    color: var(--colorNeutralForeground3);
    font-size: var(--fontSizeBase200);
}

/* The signed-in person's avatar at the right of the header: their picture, or their initials. */
.user-menu-button {
    flex: 0 0 auto;
    padding: 0;
}

.user-avatar {
    align-items: center;
    background: var(--colorBrandBackground);
    border-radius: var(--borderRadiusCircular);
    color: var(--colorNeutralForegroundOnBrand);
    display: inline-flex;
    font-size: var(--fontSizeBase200);
    font-weight: var(--fontWeightSemibold);
    height: 2rem;
    justify-content: center;
    object-fit: cover;
    width: 2rem;
}

/* Markdown fields (triage notes and comments): the text area takes the whole width (FluentUI 5.0.1 sizes it to its content otherwise), fields carry
   no extra margin inside the composer, and an open preview sits beside the text on a wide page. */
.markdown-field fluent-field,
.triage-composer fluent-field {
    margin-block: 0;
}

.markdown-field-panes {
    display: grid;
    gap: var(--spacingHorizontalM);
    grid-template-columns: minmax(0, 1fr);
}

.markdown-field-panes--split {
    align-items: start;
}

@media (min-width: 900px) {
    .markdown-field-panes--split {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}

.markdown-field-preview {
    margin-top: 0;
    min-height: 6rem;
}

.triage-composer {
    padding: var(--spacingVerticalS) var(--spacingHorizontalM);
}

.triage-composer-row {
    margin-top: var(--spacingVerticalS);
}

/* A heading inside a menu (not an item): who is signed in, or what the next items choose. */
.menu-heading {
    color: var(--colorNeutralForeground3);
    font-size: var(--fontSizeBase200);
    padding: var(--spacingVerticalXS) var(--spacingHorizontalM);
}

.menu-heading--strong {
    color: var(--colorNeutralForeground1);
    font-size: var(--fontSizeBase300);
    font-weight: var(--fontWeightSemibold);
    padding-bottom: 0;
}

/* A data grid fills its card, however wide, and never shrinks below its columns (the card scrolls then): without the width the table stopped short of the
   card's right edge, leaving a gap beside the Actions column. */
.grid-fill,
.fluent-data-grid.grid-fill {
    min-width: max-content;
    width: 100%;
}

/* ---- Small text and spacing helpers (D99 (1): no inline style= for appearance) ---- */
.muted { color: var(--colorNeutralForeground3); }
.muted--xs { font-size: var(--fontSizeBase100); }
.muted--sm { font-size: var(--fontSizeBase200); }
.text-xs { font-size: var(--fontSizeBase100); }
.text-strong { font-weight: var(--fontWeightSemibold); }
.text-danger { color: var(--colorStatusDangerForeground1); }
.text-start { text-align: start; }
.d-block { display: block; }
.m-0 { margin: 0; }
.mb-0 { margin-bottom: 0; }
.mb-3 { margin-bottom: var(--spacingVerticalL); }
.mt-2 { margin-top: var(--spacingVerticalS); }
.flex-fill { flex: 1; }
.scroll-x { overflow-x: auto; }

/* ---- One table style for the plain tables (Attention, Requests, My schedules, the request's runs, user schedules) ---- */
.data-table {
    border-collapse: collapse;
    text-align: start;
    width: 100%;
}

.data-table th,
.data-table td {
    padding: var(--spacingVerticalS) var(--spacingHorizontalM);
}

.data-table th {
    padding-block: var(--spacingVerticalXS);
}

.data-table th:first-child,
.data-table td:first-child {
    padding-inline-start: 0;
}

.data-table th:last-child,
.data-table td:last-child {
    padding-inline-end: 0;
}

.data-table tbody tr {
    border-top: var(--strokeWidthThin) solid var(--colorNeutralStroke1);
}

/* ---- Narrow screens: the nav folds behind the Menu button and opens as a panel under the header ---- */
.top-nav-toggle {
    display: none;
}

@media (max-width: 768px) {
    .top-nav-toggle {
        display: inline-flex;
    }

    #main-menu {
        display: none;
    }

    #main-menu.top-nav--open {
        align-items: stretch;
        background: var(--colorNeutralBackground1);
        border-bottom: var(--strokeWidthThin) solid var(--colorNeutralStroke1);
        box-shadow: var(--shadow16);
        display: flex;
        flex-direction: column;
        inset-inline: 0;
        padding: var(--spacingVerticalS) var(--spacingHorizontalM);
        position: fixed;
        top: 3rem;
        z-index: 30;
    }

    #main-menu.top-nav--open .top-nav-menu-list {
        border: 0;
        box-shadow: none;
        padding-inline-start: var(--spacingHorizontalL);
        position: static;
    }

    .app-header-zone {
        display: none;
    }
}

/* Page header actions sit in one row at the right (New schedule beside Auto refresh), and wrap only when the page is narrow. */
.page-header-actions {
    flex-wrap: nowrap;
    justify-content: flex-end;
}

/* The row never squeezes an action until its label breaks ("New / schedule"): each keeps its width and its text on one line. */
.page-header-actions > * {
    flex-shrink: 0;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .page-header-actions {
        flex-wrap: wrap;
    }
}

/* The markdown text area is a native textarea (FluentTextArea in 5.0.1 kept its default width whatever the CSS), drawn with the Fluent 2 input
   tokens: label and Preview toggle on one row, the text area filling its pane, a brand underline on focus. */
.markdown-field-head {
    align-items: center;
    display: flex;
    gap: var(--spacingHorizontalS);
    justify-content: space-between;
    margin-bottom: var(--spacingVerticalXS);
}

.markdown-field-label {
    color: var(--colorNeutralForeground1);
    font-family: var(--fontFamilyBase);
    font-size: var(--fontSizeBase300);
    font-weight: var(--fontWeightSemibold);
    line-height: var(--lineHeightBase300);
}

textarea.markdown-field-input {
    background: var(--colorNeutralBackground1);
    border: var(--strokeWidthThin) solid var(--colorNeutralStroke1);
    border-bottom-color: var(--colorNeutralStrokeAccessible);
    border-radius: var(--borderRadiusMedium);
    box-sizing: border-box;
    color: var(--colorNeutralForeground1);
    display: block;
    font-family: var(--fontFamilyBase);
    font-size: var(--fontSizeBase300);
    line-height: var(--lineHeightBase300);
    min-width: 0;
    padding: var(--spacingVerticalS) var(--spacingHorizontalM);
    resize: vertical;
    width: 100%;
}

textarea.markdown-field-input:hover {
    border-color: var(--colorNeutralStroke1Hover);
    border-bottom-color: var(--colorNeutralStrokeAccessibleHover);
}

textarea.markdown-field-input:focus {
    border-bottom-color: var(--colorCompoundBrandStroke);
    box-shadow: inset 0 calc(-1 * var(--strokeWidthThick)) 0 0 var(--colorCompoundBrandStroke);
    outline: none;
}

.run-ratio {
    color: var(--colorNeutralForeground3);
    margin-inline-start: var(--spacingHorizontalS);
}

/* A switch in a filter row lines up with the 2rem controls beside it. */
.filter-switch {
    align-items: center;
    display: flex;
    height: 2rem;
}

/* Queues (queue-management brief, slice A). Rows never move: only values change, and a changed value flashes once. */
.queue-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.75rem; margin-bottom: 1rem; }
.queue-card { background: var(--colorNeutralBackground3); border-radius: var(--borderRadiusMedium); padding: 0.75rem 1rem; min-width: 0; }
.queue-card-label { color: var(--colorNeutralForeground3); font-size: var(--fontSizeBase200); }
.queue-card-value { font-size: var(--fontSizeHero700); font-weight: var(--fontWeightSemibold); line-height: 1.2; }
.queue-card-value--bad { color: var(--colorPaletteRedForeground1); }
.queue-card-of { font-size: var(--fontSizeBase300); font-weight: var(--fontWeightRegular); color: var(--colorNeutralForeground3); }
.queue-card-note { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sparkline { display: block; width: 100%; height: 24px; margin-top: 0.25rem; }
.spark-neutral { color: var(--colorBrandForeground1); }
.spark-bad { color: var(--colorPaletteRedForeground1); }
.queues-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; }
.queues-namespace { display: inline-flex; align-items: center; gap: 0.5rem; }
.queues-filter { min-width: 18rem; }
.queues-chip { border: 1px solid var(--colorNeutralStroke1); border-radius: 999px; background: transparent; color: var(--colorNeutralForeground1); padding: 0.125rem 0.75rem; cursor: pointer; font: inherit; font-size: var(--fontSizeBase200); }
.queues-chip[aria-pressed="true"] { background: var(--colorBrandBackground2); border-color: var(--colorBrandStroke1); color: var(--colorBrandForeground2); }
.queues-hidden { margin-left: auto; }
.queues-selection { display: flex; align-items: center; gap: 0.75rem; padding: 0.375rem 0.75rem; border-radius: var(--borderRadiusMedium); background: var(--colorBrandBackground2); color: var(--colorBrandForeground2); margin-bottom: 0.75rem; }
.queues-scroll { overflow-x: auto; }
.queues-table { table-layout: auto; width: 100%; }
.queues-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.queues-table .queues-select { width: 2rem; }
.queues-group th { text-align: left; background: var(--colorNeutralBackground3); color: var(--colorNeutralForeground3); font-size: var(--fontSizeBase200); font-weight: var(--fontWeightSemibold); }
.queues-row--selected td { background: var(--colorBrandBackground2); }
.queues-sort { border: 0; background: transparent; color: inherit; font: inherit; font-weight: inherit; cursor: pointer; padding: 0; }
.queues-badge { display: inline-block; border-radius: var(--borderRadiusSmall); padding: 0 0.375rem; font-size: var(--fontSizeBase200); }
.queues-badge--bad { background: var(--colorPaletteRedBackground2); color: var(--colorPaletteRedForeground1); font-weight: var(--fontWeightSemibold); }
.queues-badge--lock { background: var(--colorPaletteYellowBackground2); color: var(--colorPaletteYellowForeground2); }
@keyframes queues-flash-a { from { background: var(--colorPaletteYellowBackground2); } to { background: transparent; } }
@keyframes queues-flash-b { from { background: var(--colorPaletteYellowBackground2); } to { background: transparent; } }
.queues-flash-a { animation: queues-flash-a 1.2s ease-out; }
.queues-flash-b { animation: queues-flash-b 1.2s ease-out; }
@media (prefers-reduced-motion: reduce) { .queues-flash-a, .queues-flash-b { animation: none; } }

/* Queues: the peek and activity panels (queue-management brief, slice B). */
.queue-peek, .queue-activity { padding: 0.75rem 1rem; margin-bottom: 0.75rem; }
.queue-peek-header { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.queue-peek-lanes { display: flex; gap: 0.5rem; margin: 0.5rem 0; }
.queue-peek-table td { vertical-align: top; }
.queue-peek-body { margin: 0; padding: 0.375rem 0.5rem; background: var(--colorNeutralBackground3); border-radius: var(--borderRadiusSmall); font-family: var(--fontFamilyMonospace); font-size: var(--fontSizeBase200); white-space: pre-wrap; max-width: 36rem; max-height: 14rem; overflow: auto; }
.queue-peek-pager { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.queues-actions { text-align: right; white-space: nowrap; }

/* Queues: the replay, purge and policy panels (queue-management brief, slice C). */
.queue-action { padding: 0.75rem 1rem; margin-bottom: 0.75rem; }
.queue-action-subheading { margin: 0.75rem 0 0.25rem; font-size: var(--fontSizeBase300); font-weight: var(--fontWeightSemibold); }
.queue-action-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.375rem; }
.queue-action-list li { display: grid; gap: 0.125rem; }
.queue-action-field { display: grid; gap: 0.125rem; margin: 0.5rem 0; max-width: 36rem; }
.queue-action-input { width: 100%; max-width: 36rem; }
.queue-action-summary { margin: 0.75rem 0; }
.queue-action-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 0.5rem; }
.queue-action-error { color: var(--colorPaletteRedForeground1); }
.queue-action-warning { color: var(--colorPaletteRedForeground1); margin: 0.5rem 0; }
.queue-policy-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.75rem; }

/* Queues: the depth alert is picked out on the whole row (not by colour alone: the count also carries an "Over n" badge in text). */
.queues-row--over td { background: var(--colorPaletteRedBackground1); }
.queues-row--over td.queues-name { box-shadow: inset 4px 0 0 var(--colorPaletteRedForeground1); font-weight: var(--fontWeightSemibold); }
.queues-row--over.queues-row--selected td { background: var(--colorPaletteRedBackground2); }
.queues-hint { margin: 0 0 0.75rem; }

/* Queues on a phone: the filters stack and stay thumb-sized, and each queue becomes a card with its own labelled numbers instead of a table row to scroll sideways. */
@media (max-width: 720px) {
    .queue-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
    .queue-card { padding: 0.5rem 0.75rem; }
    .queue-card-value { font-size: var(--fontSizeHero800); }

    .queues-bar { gap: 0.5rem; }
    .queues-namespace { width: 100%; }
    .queues-namespace select { flex: 1; min-height: 2.5rem; }
    .queues-filter { min-width: 0; width: 100%; min-height: 2.5rem; }
    .queues-chip { min-height: 2.25rem; padding: 0.25rem 0.875rem; }
    .queues-hidden { margin-left: 0; width: 100%; }

    .queues-selection { position: sticky; bottom: 0.5rem; z-index: 5; flex-wrap: wrap; box-shadow: var(--shadow8); }

    .queues-scroll { overflow-x: visible; }
    .queues-table thead { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
    .queues-table, .queues-table tbody, .queues-table tr.queues-group, .queues-table tr.queues-group th { display: block; width: 100%; }
    .queues-table tr[data-path] {
        display: grid;
        grid-template-columns: 2.75rem repeat(3, minmax(0, 1fr));
        gap: 0.25rem 0.5rem;
        padding: 0.625rem 0.75rem;
        border-bottom: 1px solid var(--colorNeutralStroke2);
        align-items: start;
    }
    .queues-table tr[data-path] td { display: block; padding: 0; border: 0; text-align: left; white-space: normal; }
    .queues-table tr[data-path] td.queues-select { grid-column: 1; grid-row: 1; }
    .queues-table tr[data-path] td.queues-select input { width: 1.5rem; height: 1.5rem; }
    .queues-table tr[data-path] td.queues-name { grid-column: 2 / -1; grid-row: 1; font-weight: var(--fontWeightSemibold); overflow-wrap: anywhere; align-self: center; }
    .queues-table tr[data-path] td[data-label]:not([data-label=""])::before { content: attr(data-label); display: block; font-size: var(--fontSizeBase200); color: var(--colorNeutralForeground3); }
    .queues-table tr[data-path] td[data-cell="active"] { grid-column: 2; grid-row: 2; }
    .queues-table tr[data-path] td[data-cell="dead-letter"] { grid-column: 3; grid-row: 2; }
    .queues-table tr[data-path] td[data-cell="oldest"] { grid-column: 4; grid-row: 2; }
    .queues-table tr[data-path] td[data-cell="replay"] { grid-column: 2 / -1; grid-row: 3; }
    .queues-table tr[data-path] td.queues-actions { grid-column: 2 / -1; grid-row: 4; display: flex; gap: 0.5rem; }
    .queues-table .queues-sort { min-height: 2.5rem; min-width: 2.75rem; }
    .queues-table tr[data-path] td.queues-name::before { display: none; }
    .queues-row--over td.queues-name { box-shadow: none; }
    .queues-row--over { box-shadow: inset 4px 0 0 var(--colorPaletteRedForeground1); }

    /* The action panels fill the width, their fields stack, and their tables become labelled cards too. */
    .queue-action, .queue-peek, .queue-activity { padding: 0.75rem; }
    .queue-action-input, .queue-action-field { max-width: 100%; width: 100%; }
    .queue-action-confirm { flex-direction: column; align-items: stretch; }
    .queue-policy-form { flex-direction: column; align-items: stretch; }
    .queue-action-table thead { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); }
    .queue-action-table, .queue-action-table tbody, .queue-action-table tr, .queue-action-table td { display: block; width: 100%; }
    .queue-action-table td { padding: 0.125rem 0; border: 0; text-align: left; }
    .queue-action-table tr { padding: 0.5rem 0; border-bottom: 1px solid var(--colorNeutralStroke2); }
    .queue-action-table td[data-label]::before { content: attr(data-label); display: inline-block; min-width: 5rem; margin-right: 0.5rem; font-size: var(--fontSizeBase200); color: var(--colorNeutralForeground3); }
}
