/* Curation and publication workflow surfaces: the org settings pages (Workflow,
   Curation), the record Curation and Publish tabs, and the Curation overview.
   Everything consumes design tokens (design-tokens.css) or the fast-compat
   aliases, so light mode derives automatically. */

/* ---------- Shared bits ---------- */

/* dashboard.css scopes the segment count pill to .dashboard; the curation surfaces
   (settings bodies, record tabs) sit outside it, so mirror the rule unscoped. */
.segment .segment-count {
    margin-left: 6px;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    background: var(--status-neutral-bg);
    color: var(--neutral-foreground-hint);
}

.segment.active .segment-count {
    background: rgba(255, 255, 255, 0.25);
    color: var(--foreground-on-accent-rest, #ffffff);
}

.banner-danger {
    background: var(--status-danger-bg);
    border-color: var(--status-danger-bg);
}

.mini-progress {
    width: 60px;
    height: 5px;
    border-radius: 999px;
    background: var(--surface-track);
    overflow: hidden;
    flex: none;
}

.mini-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: var(--success-bright);
}

.quote-block {
    border-left: 3px solid var(--border-strong);
    padding: 4px 12px;
    margin: 8px 0;
    font-size: 12.5px;
    color: var(--text-tertiary);
    font-style: italic;
}

/* Native inputs for anything submitted with a keyboard shortcut. The fluent web
   components commit typed text to Blazor asynchronously, so a Ctrl+Enter handler
   can read a value that is missing the last fast keystrokes; native elements get
   Blazor's synchronous, ordered per-keystroke binding. Styled to match the
   filled fluent inputs in app.css. */
.native-field {
    width: 100%;
    box-sizing: border-box;
    background: var(--surface-input);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    padding: 7px 10px;
    font-family: var(--font-sans);
    font-size: var(--fs-body);
    color: var(--text-secondary);
    line-height: 1.5;
}

.native-field::placeholder {
    color: var(--text-muted);
}

.native-field:focus {
    outline: none;
    border-color: var(--brand-accent);
}

textarea.native-field {
    resize: vertical;
}

.inline-form-hints {
    font-size: 12px;
    color: var(--text-muted);
}

.inline-form-hints .key-chip {
    font-family: var(--font-mono, monospace);
    font-size: 11px;
    border: 1px solid var(--border-strong);
    border-radius: 4px;
    padding: 0 5px;
}

.inline-confirm-panel {
    background: var(--surface-card-elev);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    padding: 14px 16px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.18);
}

.dashed-empty {
    border: 1px dashed var(--border-strong);
    border-radius: 8px;
    padding: 30px 16px;
    text-align: center;
}

.dashed-empty-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.dashed-empty-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.locked-check {
    opacity: 0.55;
    pointer-events: none;
}

/* ---------- Settings: automated check rows ---------- */

.check-category-header {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 12px 16px 3px;
}

.check-category-header:not(:first-child) {
    border-top: 1px solid var(--border-muted);
}

.check-row {
    display: flex;
    gap: 12px;
    padding: 10px 16px 11px;
    align-items: flex-start;
}

.check-row + .check-row {
    border-top: 1px solid var(--border-muted);
}

.check-row-body {
    min-width: 0;
    flex: 1;
}

.check-row-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

.check-row-desc {
    font-size: 12px;
    margin-top: 2px;
    line-height: 1.45;
    color: var(--text-tertiary);
}

.check-row-off .check-row-name {
    color: var(--text-tertiary);
}

.check-row-off .check-row-desc {
    color: var(--text-muted);
}

.check-row-severity {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    flex: none;
}

.link-button {
    background: none;
    border: none;
    padding: 0;
    font-size: 11.5px;
    color: var(--brand-accent-soft);
    cursor: pointer;
}

.link-button:hover {
    color: var(--brand-accent);
}

.autosave-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}

/* ---------- Settings: manual checks ---------- */

.manual-check-card {
    margin-top: 10px;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    background: var(--surface-card);
}

.manual-check-card.editing {
    background: var(--surface-card-elev);
}

.manual-check-body {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 12px 14px;
}

.manual-check-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.manual-check-desc {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 2px;
    line-height: 1.45;
}

.applies-pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--status-neutral-bg);
    color: var(--text-secondary);
    margin-top: 7px;
}

.retired-section {
    margin-top: 18px;
    border: 1px solid var(--border-muted);
    border-radius: 8px;
}

.retired-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    background: none;
    border: none;
    padding: 10px 14px;
    cursor: pointer;
    text-align: left;
    color: var(--text-secondary);
    font-size: 12.5px;
    font-weight: 600;
}

.retired-row {
    border-top: 1px solid var(--border-muted);
    padding: 11px 14px;
    display: flex;
    align-items: center;
    gap: 11px;
}

.retired-row-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.3;
}

.retired-row-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 3px;
}

.retired-row-refs {
    font-size: 12px;
    color: var(--text-muted);
    flex: none;
    white-space: nowrap;
}

.confirm-inline-text {
    font-size: 12px;
    color: var(--status-danger);
    flex: none;
}

/* ---------- Workflow settings ---------- */

/* The design's full-height twin-rail layout: the status rail sits flush
   against the settings rail and its divider runs from the top of the content
   area to the bottom of the page. The layout cancels .settings-content's
   padding (20px 26px 56px) with negative margins and each column re-adds its
   own, so the divider spans the full height even on short pages. */
.wf-layout {
    display: flex;
    align-items: stretch;
    margin: -20px -26px -56px;
    min-height: calc(100vh - 92px);
}

.wf-rail {
    width: 300px;
    flex: none;
    padding: 20px 16px 24px;
    border-right: 1px solid var(--border-subtle);
}

/* Compact Add button in the rail header, per the design (11.5px semibold with
   a small plus icon); a default FluentButton reads as oversized next to the
   13px rail heading. */
.wf-add-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--surface-input);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    font-size: 11.5px;
    font-weight: var(--fw-semibold);
    font-family: inherit;
    color: var(--text-secondary);
    cursor: pointer;
}

.wf-add-button:hover {
    background: var(--surface-card-elev);
    color: var(--text-primary);
}

.wf-add-button svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
    flex: none;
}

/* Pin the rail heading to the design's 13px bold: it renders as the page's H1,
   and the h1 type size would wrap "Publication workflow" beside the Add button. */
.wf-rail-title {
    margin: 0;
    font-size: var(--fs-body);
    font-weight: var(--fw-bold);
    white-space: nowrap;
}

.wf-rail-help {
    font-size: 12px;
    color: var(--text-muted);
    margin: 6px 0 12px;
    line-height: 1.45;
}

.wf-form {
    flex: 1;
    min-width: 0;
    /* 660px of content plus the column's own horizontal padding. */
    max-width: 716px;
    padding: 20px 28px 56px;
}

/* Inside the status rail the sortable items should look exactly like the plain,
   non-draggable rows (the design's rail has no boxes at all); the grab icon is
   the only drag affordance. In v5 the component is a div with this class. */
.wf-rail .fluent-sortable-list {
    --fluent-sortable-list-item-background-color: transparent;
    --fluent-sortable-list-item-border-color: transparent;
    --fluent-sortable-list-item-spacing: 0;
    --fluent-sortable-list-item-padding: 0;
}

/* Neutralize the library's -7px grab offset (it compensates for the item
   padding removed above), so the 32px handle starts at the rail edge. */
.wf-rail .fluent-sortable-list .sortable-grab {
    left: 0;
}

/* Rows without a grab handle (the pinned initial status and the universal
   statuses) get a matching 32px indent so all circles share one left edge.
   Applied only while the list is actually draggable. */
.wf-row-static {
    margin-left: 32px;
}

.wf-status-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 8px;
    border-radius: 7px;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    position: relative;
}

.wf-status-row:hover {
    background: var(--status-neutral-bg);
}

.wf-status-row.selected {
    background: var(--accent-bg);
}

.wf-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11.5px;
    font-weight: 700;
    background: var(--surface-canvas);
    border: 1.5px solid var(--border-strong);
    color: var(--text-secondary);
}

.wf-status-row.selected .wf-circle {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
}

.wf-circle-dashed {
    border-style: dashed;
}

.wf-row-body {
    min-width: 0;
    flex: 1;
}

.wf-row-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.wf-meta {
    font-size: 11.5px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wf-count {
    font-size: 11.5px;
    color: var(--text-muted);
    flex: none;
}

.wf-universal-head {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 16px 0 4px;
    padding: 0 8px;
}

.wf-footnote {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 8px;
    padding: 0 8px;
    line-height: 1.45;
}

.wf-form-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}

.wf-dirty-note {
    font-size: 12px;
    color: var(--status-warning);
}

.wf-delete-button {
    background: none;
    border: none;
    padding: 0;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--status-danger);
    cursor: pointer;
}

.wf-move-pill {
    background: var(--surface-input);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
}

.wf-move-pill.selected {
    border-color: var(--brand-accent);
    background: var(--accent-bg);
    color: var(--text-primary);
}

.next-in-order-pill {
    font-size: 10.5px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--accent-bg);
    color: var(--brand-accent-soft);
    white-space: nowrap;
}

/* The dialog opens with a fixed height (DialogOptions.Height) so searching does not
   resize it. The body only sizes to its content, so stretch it to the dialog and let
   the min-content / 1fr / min-content grid keep the Done footer pinned to the bottom
   when a search filters the list short. */
fluent-dialog.req-fields-dialog fluent-dialog-body {
    min-height: 100%;
}

.req-dialog-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.req-dialog-search {
    flex: 1;
}

.req-dialog-shape-count {
    font-size: 11.5px;
    font-weight: 400;
    color: var(--text-muted);
    white-space: nowrap;
}

.req-dialog-shape-count.nonzero {
    color: var(--brand-accent);
}

/* Topic headers sit directly in the dialog body (no shape box), so pull the
   category inset back in line with the field grid and drop the separator on
   the first one, which would otherwise underline the search toolbar. */
.req-dialog-topic {
    padding-left: 2px;
    padding-right: 2px;
}

.req-dialog-toolbar + .req-dialog-topic {
    border-top: none;
}

.req-summary-row {
    padding: 6px 0;
}

.req-summary-head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.req-summary-head .req-summary-shape {
    flex: 1;
}

.req-summary-row + .req-summary-row {
    border-top: 1px solid var(--border-subtle);
}

.req-summary-shape {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-primary);
}

.req-summary-note {
    font-size: 11.5px;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 6px;
}

.req-summary-row .org-chips {
    margin-top: 6px;
}

.req-field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 16px;
    padding: 10px 2px;
}

/* The fluent-field each FluentCheckbox renders carries its own vertical margin;
   zero it so the grid gap controls the rhythm (same fix as .settings-checkboxes). */
.req-field-grid fluent-field,
.req-field-grid fluent-checkbox {
    margin-block: 0;
}

/* ---------- Record curation list ---------- */

.cur-item-row {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 14px;
    width: 100%;
    background: none;
    border: none;
    border-top: 1px solid var(--border-muted);
    cursor: pointer;
    text-align: left;
}

.cur-item-row:hover {
    background: var(--status-neutral-bg);
}

.cur-item-icon {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cur-item-icon.tone-danger { background: var(--status-danger-bg); }
.cur-item-icon.tone-warning { background: var(--status-warning-bg); }
.cur-item-icon.tone-success { background: var(--status-success-bg); }
.cur-item-icon.tone-info { background: var(--status-info-bg); }
.cur-item-icon.tone-neutral { background: var(--status-neutral-bg); }

.cur-item-body {
    min-width: 0;
    flex: 1;
}

.cur-item-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cur-item-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cur-item-trailing {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: none;
}

.comment-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    color: var(--text-muted);
}

.cur-list-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 14px;
    background: var(--surface-rail);
    border-radius: 8px 8px 0 0;
}

/* ---------- Findings ---------- */

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

.findings-table th {
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-tertiary);
    padding: 8px 12px;
    background: var(--surface-rail);
}

.findings-table td {
    padding: 8px 12px;
    font-size: 12.5px;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-muted);
}

.finding-location {
    font-family: var(--font-mono, monospace);
    font-size: 12px;
    color: var(--text-primary);
}

.finding-row {
    cursor: pointer;
}

.finding-row:hover td {
    background: var(--status-neutral-bg);
}

.finding-row-dismissed {
    opacity: 0.6;
}

.finding-expand {
    padding: 10px 12px 14px;
    background: var(--surface-inset);
}

.finding-body-text {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.finding-body-text mark {
    background: var(--status-warning-bg);
    color: var(--status-warning);
    border-radius: 3px;
    padding: 0 2px;
}

.dismiss-composer {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.run-history-row {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 0;
    font-size: 12px;
    color: var(--text-tertiary);
}

.run-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex: none;
}

.run-dot-pass { background: var(--status-success); }
.run-dot-fail { background: var(--danger-dot); }
.run-dot-pending { background: var(--status-warning); }

.waive-panel {
    border: 1px solid var(--border-muted);
    border-radius: 8px;
    padding: 12px 14px;
    margin-top: 14px;
}

.waived-box {
    background: var(--status-neutral-bg);
    border-radius: 8px;
    padding: 12px 14px;
    margin-top: 14px;
    font-size: 12.5px;
    color: var(--text-secondary);
}

.inset-box {
    background: var(--surface-inset);
    border-radius: 7px;
    padding: 10px 12px;
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* A manual check's description is authored guidance for the person performing
   the check, so present it as an instruction sheet rather than plain metadata. */
.instructions-box {
    margin-top: 12px;
    background: var(--surface-inset);
    border: 1px solid var(--border-subtle);
    border-left: 3px solid var(--brand-accent);
    border-radius: 8px;
    padding: 12px 14px;
}

.instructions-box-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

.instructions-box-text {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
    white-space: pre-wrap;
    overflow-wrap: break-word;
}

/* ---------- Comments ---------- */

.comment-thread {
    margin-top: 18px;
}

/* GitHub-style timeline: avatar in the gutter, then a bordered speech bubble
   with a tinted header bar and a caret pointing back at the avatar. */
.comment-item {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.comment-item .avatar {
    margin-top: 4px;
}

.comment-bubble {
    position: relative;
    min-width: 0;
    flex: 1;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    background: var(--surface-card);
}

.comment-bubble::before,
.comment-bubble::after {
    content: "";
    position: absolute;
    right: 100%;
    border-style: solid;
    border-color: transparent;
}

.comment-bubble::before {
    top: 9px;
    border-width: 7px 7px 7px 0;
    border-right-color: var(--border-subtle);
}

.comment-bubble::after {
    top: 10px;
    margin-right: -1px;
    border-width: 6px 6px 6px 0;
    border-right-color: var(--surface-rail);
}

.comment-bubble-header {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: var(--surface-rail);
    border-bottom: 1px solid var(--border-subtle);
    border-radius: 7px 7px 0 0;
    font-size: 12px;
    color: var(--text-muted);
}

.comment-bubble-author {
    font-weight: 600;
    color: var(--text-secondary);
}

.comment-bubble-body {
    padding: 10px 12px;
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: break-word;
}

.comment-composer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
}

.comment-composer-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ---------- Publish tab ---------- */

.pub-stepper {
    display: flex;
    align-items: flex-start;
    padding: 18px 8px 6px;
}

.pub-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: none;
    min-width: 86px;
}

.pub-step[title] {
    cursor: help;
}

.pub-step-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    border: 2px solid var(--border-strong);
    background: var(--surface-canvas);
    color: var(--text-muted);
}

.pub-step-circle.done {
    background: var(--status-success-bg);
    border-color: var(--status-success);
    color: var(--status-success);
}

.pub-step-circle.current {
    border-color: var(--brand-accent);
    color: var(--brand-accent);
    box-shadow: 0 0 0 3px var(--accent-bg);
}

.pub-step-circle.pending {
    border-color: var(--status-warning);
    color: var(--status-warning);
}

.pub-step-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
}

.pub-step-caption {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
}

.pub-connector {
    flex: 1;
    height: 2px;
    background: var(--border-strong);
    margin-top: 13px;
    min-width: 18px;
}

.pub-connector.done { background: var(--status-success); }
.pub-connector.pending { background: var(--status-warning); }

.approval-panel {
    background: var(--status-warning-bg);
    border: 1px solid var(--status-warning-bg);
    border-radius: 8px;
    padding: 14px 16px;
    margin-top: 14px;
}

.approval-panel-rejected {
    background: var(--status-danger-bg);
    border-color: var(--status-danger-bg);
}

.scheduled-panel {
    background: var(--status-warning-bg);
    border-radius: 8px;
    padding: 14px 16px;
    margin-top: 14px;
}

.vote-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    font-size: 12.5px;
    color: var(--text-secondary);
}

.pub-status-card {
    margin-top: 14px;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    background: var(--surface-card);
    display: flex;
    align-items: stretch;
    overflow: hidden;
}

.pub-status-left {
    flex: 1;
    min-width: 0;
    padding: 14px 16px;
}

.pub-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-accent);
    flex: none;
}

.pub-status-meta {
    font-size: 11.5px;
    color: var(--text-faint);
    margin-top: 12px;
}

.pub-status-rail {
    flex: 1;
    min-width: 0;
    border-left: 1px solid var(--border-muted);
    background: var(--surface-rail);
    padding: 14px 16px;
}

.pub-rail-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.pub-rail-next {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 6px;
}

.pub-rail-ready {
    display: flex;
    gap: 7px;
    align-items: flex-start;
    margin-top: 8px;
    font-size: 11.5px;
    color: var(--text-secondary);
    line-height: 1.45;
}

.pub-rail-ready svg {
    flex: none;
    margin-top: 1px;
}

fluent-button.pub-rail-button {
    display: flex;
    width: 100%;
    margin-top: 12px;
}

fluent-button.pub-rail-button::part(control) {
    flex: 1;
    align-items: center;
    justify-content: center;
}

.pub-rail-divider {
    border-top: 1px solid var(--border-muted);
    margin-top: 13px;
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.pub-rail-link {
    background: none;
    border: none;
    padding: 0;
    font-size: 11.5px;
    color: var(--text-muted);
    text-decoration: underline;
    cursor: pointer;
}

.pub-rail-link:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pub-rail-text {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.pub-rail-note {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 12px;
    line-height: 1.5;
}

@media (max-width: 700px) {
    .pub-status-card {
        flex-direction: column;
    }

    .pub-status-rail {
        border-left: none;
        border-top: 1px solid var(--border-muted);
    }
}

.pub-history-row {
    display: flex;
    gap: 14px;
    padding: 8px 0;
    border-top: 1px solid var(--border-muted);
    font-size: 12.5px;
}

.pub-history-date {
    width: 92px;
    flex: none;
    color: var(--text-muted);
    font-size: 12px;
}

/* ---------- Curation overview ---------- */

.overview-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 14px;
    align-items: start;
    margin-top: 14px;
}

.pipeline-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
    flex-wrap: wrap;
}

.pipeline-tile {
    flex: 1;
    min-width: 120px;
    background: var(--surface-card-elev);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 10px 12px;
    cursor: pointer;
    text-align: left;
}

.pipeline-tile:hover {
    border-color: var(--border-strong);
}

.pipeline-tile.active {
    border-color: var(--brand-accent);
    background: var(--accent-bg);
}

.pipeline-tile-count {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.pipeline-tile-meta {
    font-size: 11.5px;
    color: var(--text-tertiary);
    margin-top: 2px;
}

.pipeline-arrow {
    align-self: center;
    color: var(--text-muted);
    flex: none;
}

.pipeline-universal-pill {
    background: none;
    border: 1px dashed var(--border-strong);
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
}

.pipeline-universal-pill.active {
    border-color: var(--brand-accent);
    background: var(--accent-bg);
    border-style: solid;
}

.workload-row-clickable {
    cursor: pointer;
}

.pending-approval-row {
    padding: 9px 0;
    border-top: 1px solid var(--border-muted);
}
