/* =========================================================================
   source-glossary-review.css - the review pane of the Sources workspace
   (web/modules/source-glossary-review.js). Theme tokens only; classes sg-.

   Colour encodes a state or a category and nothing else. Every colour has a
   second sign: the chip's glyph and label, and a line style.
   The statement states are NOT styled here: their chips carry the workspace
   class .sg-state[data-sg-state] (source-glossary.css, from STATEMENT_STYLES),
   so a line style means one thing everywhere: solid = declared or
   module-reviewed, double = verified, dashed = suggested, dotted and struck =
   rejected. Hatched = restricted or withdrawn.
   ========================================================================= */

.sg-review { display: flex; flex-direction: column; gap: var(--space-3); }

.sg-rv-tabs { display: flex; gap: var(--space-1); border-bottom: 1px solid var(--border); }
.sg-rv-tab {
  appearance: none; background: transparent; border: 0; border-bottom: 2px solid transparent;
  padding: var(--space-2) var(--space-3); font: inherit; font-size: var(--fs-small); color: var(--text-dim); cursor: pointer;
}
.sg-rv-tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--brand); font-weight: 600; }
.sg-rv-tab:focus-visible { outline: none; box-shadow: var(--focus-ring); }

.sg-rv-body { display: flex; flex-direction: column; gap: var(--space-3); }
.sg-rv-note { color: var(--text-faint); font-size: var(--fs-micro); }
.sg-rv-why, .sg-rv-barred { margin: 0; font-size: var(--fs-micro); color: var(--text-dim); }

/* ---- server-stated counts ---- */
.sg-rv-waiting { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; margin: 0; padding: 0; font-size: var(--fs-small); color: var(--text-dim); }
.sg-rv-kind-filter {
  appearance: none; font: inherit; font-size: var(--fs-small); color: var(--text-dim); cursor: pointer;
  border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 2px var(--space-3); background: var(--surface);
}
.sg-rv-kind-filter:hover { background: var(--surface-subtle); }
.sg-rv-kind-filter:focus-visible { outline: none; box-shadow: var(--focus-ring); }
/* The chosen kind: brand border, heavier text and a tick mark, so it reads without colour. */
.sg-rv-kind-filter[aria-pressed="true"] { border-color: var(--brand); border-width: 2px; color: var(--text); font-weight: 600; background: var(--brand-tint); }
.sg-rv-kind-filter[aria-pressed="true"]::before { content: "\2713  "; }
.sg-rv-count { font-family: var(--mono); color: var(--text); font-weight: 600; }
.sg-rv-more { align-items: center; }

/* ---- legend: swatches and the same entries as text ---- */
.sg-rv-legend { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: var(--space-3); padding: var(--space-3); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--surface-subtle); }
.sg-rv-legend ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-1); }
.sg-rv-legend-list { font-size: var(--fs-micro); color: var(--text-dim); }
@media (max-width: 720px) { .sg-rv-legend { grid-template-columns: 1fr; } }

/* ---- chips: glyph + label, colour by meaning ---- */
.sg-rv-chip {
  display: inline-flex; align-items: center; gap: var(--space-1); height: 22px; padding: 0 var(--space-2);
  border: 1px solid var(--border-strong); border-radius: var(--radius-pill); background: var(--surface);
  font-size: var(--fs-micro); color: var(--text-body); white-space: nowrap;
}
.sg-rv-glyph { font-family: var(--mono); font-weight: 700; }
/* State chips: the workspace's .sg-state draws them; only the height is matched to this pane's chips. */
.sg-rv-state { height: 22px; }
.sg-rv-chip[data-style="decided-here"] { border-color: var(--text-dim); color: var(--text); }
.sg-rv-chip[data-style="left-queue"] { color: var(--text-dim); background: var(--surface-subtle); }
.sg-rv-chip[data-style="bulk-permitted"] { border-color: var(--ok-border); color: var(--ok-text); }
.sg-rv-chip[data-style="bulk-barred"] { border-color: var(--border-strong); color: var(--text-dim); }
.sg-rv-chip[data-style="class-additive"] { border-color: var(--ok-border); color: var(--ok-text); background: var(--ok-tint); }
.sg-rv-chip[data-style="class-breaking"] { border-color: var(--down-border); color: var(--down-text); background: var(--down-tint); font-weight: 600; }
.sg-rv-chip[data-style="class-descriptive"] { border-color: var(--unknown-border); color: var(--text-dim); background: var(--unknown-tint); }
.sg-rv-chip[data-style="class-visibility"] { border-color: var(--info-border); color: var(--info-text); background: var(--info-tint); }
.sg-rv-chip[data-style="item-open"],
.sg-rv-chip[data-style="item-deferred"],
.sg-rv-chip[data-style="item-superseded"] { color: var(--text-dim); }
.sg-rv-chip[data-style="item-accepted"] { border-color: var(--ok-border); color: var(--ok-text); }
.sg-rv-chip[data-style="item-rejected"] { border-color: var(--down-border); color: var(--down-text); text-decoration: line-through; }
.sg-rv-chip[data-style="restricted"],
.sg-rv-chip[data-style="withdrawn"] {
  color: var(--text-dim);
  background: repeating-linear-gradient(135deg, var(--surface-muted) 0 4px, var(--surface) 4px 8px);
}
.sg-rv-chip[data-style="withdrawn"] { text-decoration: line-through; }

/* ---- groups and members ---- */
.sg-rv-groups, .sg-rv-members, .sg-rv-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.sg-rv-group, .sg-rv-proposal { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.sg-rv-group > .sg-rv-barred, .sg-rv-group > .sg-rv-refusal, .sg-rv-group > .sg-rv-bulk, .sg-rv-group > .sg-rv-members { margin: 0 var(--space-3) var(--space-3); }
.sg-rv-group-head {
  appearance: none; width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2);
  padding: var(--space-3); border: 0; background: transparent; font: inherit; text-align: left; cursor: pointer; color: var(--text);
}
.sg-rv-group-head:hover { background: var(--surface-subtle); }
.sg-rv-group-head:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.sg-rv-kind { font-size: var(--fs-label); text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-faint); font-weight: 600; }
.sg-rv-proposed { font-weight: 600; font-size: var(--fs-sm); min-width: 0; overflow-wrap: anywhere; display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--space-2); }
.sg-rv-concept { font-family: var(--mono); font-weight: 600; color: var(--text); }
.sg-rv-proposed-part { font-weight: 400; font-size: var(--fs-micro); color: var(--text-dim); }
.sg-rv-proposed-part::before { content: "\00B7  "; color: var(--text-faint); }
.sg-rv-count-label { font-family: var(--mono); font-size: var(--fs-micro); color: var(--text-dim); margin-left: auto; }
/* The head line: kind, value and proposer read as one line, so two groups of one value never look alike. */
.sg-rv-head-line { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--space-2); min-width: 0; flex: 1 1 24rem; }
.sg-rv-proposer { font-size: var(--fs-small); color: var(--text-body); font-weight: 400; }
.sg-rv-proposer::before { content: "\00B7  "; color: var(--text-faint); }
.sg-rv-concept-label { font-weight: 600; color: var(--text); }
.sg-rv-concept-label + .sg-rv-concept { font-weight: 400; font-size: var(--fs-micro); color: var(--text-dim); }
.sg-rv-groups-shown { margin: 0; }
/* History: the subject a decision was about, in words; its raw id is in the title. */
.sg-rv-subject-what { font-weight: 600; color: var(--text-body); }
.sg-rv-subject[data-resolved="false"] code { color: var(--text-faint); }

/* A member's left rule repeats its state's line style from STATEMENT_STYLES: a suggestion is dashed, never like a fact. */
.sg-rv-member { border: 1px solid var(--border-subtle); border-left: 3px dashed var(--warn-border); border-radius: var(--radius-sm); padding: var(--space-2) var(--space-3); display: flex; flex-direction: column; gap: var(--space-1); background: var(--surface); }
.sg-rv-member[data-state="rejected"] { border-left-style: dotted; border-left-color: var(--down-border); background: var(--surface-subtle); }
.sg-rv-member[data-state="rejected"] .sg-rv-proposed { text-decoration: line-through; color: var(--text-dim); }
.sg-rv-member[data-state="decided"] { border-left-style: solid; border-left-color: var(--text-dim); }
/* Left the queue since it was loaded: a plain rule and a muted row; its chip says "No longer waits". */
.sg-rv-member[data-state="left"] { border-left: 3px solid var(--border-strong); background: var(--surface-subtle); }
.sg-rv-member[data-state="left"] .sg-rv-proposed { color: var(--text-dim); }
.sg-rv-member[data-state="declared"] { border-left: 3px solid var(--brand-border); }
.sg-rv-member[data-state="module-reviewed"] { border-left: 3px solid var(--info-border); }
.sg-rv-member[data-state="verified"] { border-left: 3px double var(--ok-border); }
.sg-rv-why-label { font-weight: 600; color: var(--text-body); }
.sg-rv-evidence { display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-micro); color: var(--text-dim); }
.sg-rv-evidence ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.sg-rv-ev-basis { font-weight: 600; color: var(--text-body); }
p.sg-rv-ev-basis { margin: 0; }
/* A group whose members hold different values: the heading names what they share, in the body weight, never one member's value. */
.sg-rv-shared { font-weight: 400; color: var(--text-body); font-style: italic; }
.sg-rv-ev-mark { display: inline-block; width: 1.2em; font-family: var(--mono); font-weight: 700; }
.sg-rv-ev-word { font-weight: 600; margin-right: var(--space-1); }
.sg-rv-evidence li[data-against="true"] { color: var(--down-text); }
.sg-rv-cap { color: var(--warn-text); font-weight: 600; }
.sg-rv-member-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.sg-rv-meta { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); font-size: var(--fs-micro); color: var(--text-dim); }
.sg-rv-tick { width: 16px; height: 16px; }
.sg-rv-table-link { appearance: none; border: 0; padding: 0; background: transparent; color: var(--brand); cursor: pointer; font: inherit; }
.sg-rv-table-link:hover code { text-decoration: underline; }
.sg-rv-table-link:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-xs); }
.sg-rv-bulk { padding: var(--space-2) 0; }

/* ---- change items ---- */
.sg-rv-proposal-head { display: flex; flex-direction: column; gap: var(--space-1); }
.sg-rv-proposal-head h3 { margin: 0; font-size: var(--fs-h3); }
.sg-rv-item { border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-3); background: var(--surface); display: flex; flex-direction: column; gap: var(--space-2); }
.sg-rv-item[data-class="breaking"] { border-left: 3px solid var(--down); }
.sg-rv-item.is-restricted { flex-direction: row; align-items: center; flex-wrap: wrap; color: var(--text-dim); background: repeating-linear-gradient(135deg, var(--surface-subtle) 0 6px, var(--surface) 6px 12px); }
.sg-rv-facts, .sg-rv-history { width: 100%; border-collapse: collapse; font-size: var(--fs-micro); }
.sg-rv-facts th, .sg-rv-facts td, .sg-rv-history th, .sg-rv-history td { text-align: left; padding: var(--space-1) var(--space-2); border-bottom: 1px solid var(--border-subtle); vertical-align: top; overflow-wrap: anywhere; }
.sg-rv-facts thead th, .sg-rv-history thead th { color: var(--text-faint); font-weight: 600; }
.sg-rv-candidates { margin: 0; padding-left: var(--space-5); display: flex; flex-direction: column; gap: var(--space-1); font-size: var(--fs-micro); }
.sg-rv-candidates li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
/* On a change item the hatched chip says a decision was withdrawn; its own words are not struck through. */
.sg-rv-item .sg-rv-chip[data-style="withdrawn"] { text-decoration: none; }

/* ---- history ---- */
.sg-rv-history tr.is-withdrawn td { color: var(--text-faint); }
.sg-rv-history tr.is-withdrawn td:nth-child(4) { text-decoration: line-through; }
.sg-rv-body > .sg-rv-history { display: block; overflow-x: auto; }

/* ---- refusal: the code is always shown ---- */
.sg-rv-refusal { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-2) var(--space-3); border: 1px solid var(--down-border); border-radius: var(--radius-sm); background: var(--down-tint); color: var(--text); font-size: var(--fs-small); }

/* ---- group title: kind and proposer read as one name ---- */
.sg-rv-title { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--space-2); }
.sg-rv-title .sg-rv-proposer::before { content: none; }
.sg-rv-title .sg-rv-proposer { font-size: var(--fs-label); text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-dim); font-weight: 600; }
.sg-rv-barred strong { color: var(--text-body); }

/* ---- filter bar: every control labelled; values are asked of the API ---- */
.sg-rv-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-2) var(--space-3); padding: var(--space-3); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--surface); }
.sg-rv-filter { display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-micro); color: var(--text-dim); min-width: 0; }
.sg-rv-filter > span { font-weight: 600; color: var(--text-body); }
.sg-rv-filter select, .sg-rv-filter input {
  font: inherit; font-size: var(--fs-small); color: var(--text); background: var(--surface); max-width: 16rem;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 2px var(--space-2); min-height: 28px;
}
.sg-rv-filter select:focus-visible, .sg-rv-filter input:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.sg-rv-filter-search { flex: 1 1 14rem; }
.sg-rv-filter-search input { max-width: none; width: 100%; }
.sg-rv-active-filters { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.sg-rv-filter-chip { display: inline-flex; align-items: center; gap: var(--space-1); padding: 0 0 0 var(--space-2); border: 2px solid var(--brand); border-radius: var(--radius-pill); background: var(--brand-tint); font-size: var(--fs-micro); color: var(--text); }

/* ---- window over long lists ---- */
.sg-rv-window { align-items: center; }

/* ---- after an act: what is left, and the next act of the same group ---- */
.sg-rv-group > .sg-rv-next, .sg-rv-group > .sg-rv-divide, .sg-rv-group > .sg-rv-parts, .sg-rv-group > .sg-rv-note { margin: 0 var(--space-3) var(--space-3); }
.sg-rv-next { align-items: center; padding: var(--space-2) var(--space-3); border: 1px solid var(--border); border-left: 3px solid var(--brand); border-radius: var(--radius-sm); background: var(--surface-subtle); }
.sg-rv-divide { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.sg-rv-parts { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.sg-rv-part { display: flex; flex-direction: column; gap: var(--space-2); }
.sg-rv-part-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); font-size: var(--fs-small); color: var(--text); padding-bottom: var(--space-1); border-bottom: 1px solid var(--border-subtle); }
.sg-rv-part-head .sg-rv-count-label { margin-left: 0; }

/* ---- alternatives of one item ---- */
.sg-rv-alternatives { font-size: var(--fs-micro); color: var(--text-dim); margin: 0; }
.sg-rv-alternatives ul { list-style: none; margin: 2px 0 0; padding: 0 0 0 var(--space-3); border-left: 2px dashed var(--border-strong); }

/* ---- progress by kind: numbers first, the bar beside them ---- */
.sg-rv-progress { border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: var(--space-2) var(--space-3); background: var(--surface); }
.sg-rv-progress summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: baseline; }
.sg-rv-progress summary:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.sg-rv-progress-table { width: 100%; border-collapse: collapse; font-size: var(--fs-micro); margin-top: var(--space-2); }
.sg-rv-progress-table th, .sg-rv-progress-table td { text-align: left; padding: 2px var(--space-2); border-bottom: 1px solid var(--border-subtle); }
.sg-rv-progress-table thead th { color: var(--text-faint); font-weight: 600; }
.sg-rv-num { font-family: var(--mono); white-space: nowrap; }
.sg-rv-meter { width: 8rem; max-width: 30vw; height: 10px; vertical-align: middle; }
.sg-rv-body > .sg-rv-progress { overflow-x: auto; }

/* ---- a change to a column: before and after, then what rests on it ---- */
.sg-rv-headline { margin: 0; display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); align-items: baseline; font-size: var(--fs-small); }
.sg-rv-beforeafter { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1); font-size: var(--fs-micro); color: var(--text-dim); }
.sg-rv-ba-label { font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; font-size: var(--fs-label); color: var(--text-faint); }
.sg-rv-rests { display: flex; flex-direction: column; gap: var(--space-1); font-size: var(--fs-micro); color: var(--text-dim); padding: var(--space-2) var(--space-3); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); background: var(--surface-subtle); }
.sg-rv-rests.btn-row { padding: 0; border: 0; background: transparent; }
.sg-rv-rests-list ul { list-style: none; margin: 2px 0 0; padding: 0 0 0 var(--space-3); }
.sg-rv-usdm { display: inline-block; padding: 0 var(--space-1); border: 1px solid var(--info-border); border-radius: var(--radius-xs); color: var(--info-text); font-weight: 700; font-size: var(--fs-label); }

/* ---- what rests on a change, and its one effect (piece I). Colour repeats the chip's glyph and words. ---- */
.sg-rv-chip[data-style="effect-holds"], .sg-rv-chip[data-style="dependent-held"] { border-color: var(--down-border); color: var(--down-text); background: var(--down-tint); font-weight: 600; }
.sg-rv-chip[data-style="effect-review"], .sg-rv-chip[data-style="dependent-review-again"] { border-color: var(--warn-border); color: var(--warn-text); background: var(--warn-tint); }
.sg-rv-chip[data-style="effect-none"], .sg-rv-chip[data-style="dependent-named"] { color: var(--text-dim); }
.sg-rv-chip[data-style="effect-not-looked-up"] { color: var(--text-dim); border-style: dashed; }
.sg-rv-impact { display: flex; flex-direction: column; gap: var(--space-1); font-size: var(--fs-micro); color: var(--text-dim); padding: var(--space-2) var(--space-3); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); background: var(--surface); }
.sg-rv-impact[data-effect="holds"] { border-left: 3px solid var(--down-border); }
.sg-rv-impact[data-effect="review"] { border-left: 3px solid var(--warn-border); }
.sg-rv-impact-head { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); color: var(--text-body); }
.sg-rv-impact-summary { margin: 0; }
.sg-rv-impact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-1); }
.sg-rv-impact-list li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); padding-top: var(--space-1); border-top: 1px solid var(--border-subtle); }
.sg-rv-impact-kind { font-weight: 600; color: var(--text-body); }
.sg-rv-impact-where { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1); }
.sg-rv-impact-why, .sg-rv-impact-detail { color: var(--text-dim); overflow-wrap: anywhere; }
.sg-rv-effects { margin: 0 var(--space-3) var(--space-3); display: flex; flex-wrap: wrap; gap: var(--space-2); }
.sg-rv-proposal-head .sg-rv-effects { margin: 0; align-items: center; }
.sg-rv-calm, .sg-rv-lead { align-items: center; margin: 0; padding: var(--space-2) var(--space-3); border: 1px solid var(--border); border-left: 3px solid var(--brand); border-radius: var(--radius-sm); background: var(--surface-subtle); }

@media (max-width: 720px) {
  .sg-rv-filter select, .sg-rv-filter input { max-width: 100%; }
  .sg-rv-filter { flex: 1 1 100%; }
}
/* A structure change waiting in the queue is not a suggestion: a plain solid rule, its chip says Open. */
.sg-rv-member[data-state="open"] { border-left: 3px solid var(--border-strong); }

/* ---- focus: the panel a deep link opens, and the item it marks. The mark is an arrow and words, never colour alone. ---- */
.sg-rv-focus {
  display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-3);
  border: 2px solid var(--brand-border); border-radius: var(--radius-md); background: var(--surface); font-size: var(--fs-small); color: var(--text-body);
}
.sg-rv-focus p { margin: 0; }
.sg-rv-focus-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.sg-rv-focus-what { font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.sg-rv-focus-head .btn { margin-left: auto; }
.sg-rv-focus .sg-rv-members { list-style: none; margin: 0; padding: 0; }
.sg-rv-focus[data-focus-status="not-found"], .sg-rv-focus[data-focus-status="not-stated"], .sg-rv-focus[data-focus-status="settled"] { border-style: dashed; border-color: var(--border-strong); }
.sg-rv-focus-mark { margin: 0; font-size: var(--fs-micro); font-weight: 600; color: var(--text); }
.sg-rv-member[data-focused="true"] { box-shadow: var(--focus-ring); }
/* Round 2: the queue head when grouping is not served (a dashed border and its words, never colour alone); the value a decision set. */
.sg-rv-route-note { margin: 0 0 var(--space-2); padding: var(--space-2) var(--space-3); border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text-dim); font-size: var(--fs-small); }
.sg-rv-route-note strong { color: var(--text); }
.sg-rv-decided-value { font-weight: 600; color: var(--text); }

/* ---- session 2: a refused control said beside it; a row that changed after it was ticked; a kept batch to send again ---- */
p.sg-rv-blocked, p.sg-rv-changed, p.sg-rv-unticked { margin: 0; }
.sg-rv-blocked strong, .sg-rv-changed strong, .sg-rv-unticked strong { color: var(--text-body); }
/* A row that changed after it was ticked: a dashed rule and its words, never colour alone. */
.sg-rv-changed { padding-left: var(--space-2); border-left: 2px dashed var(--warn-border); }
.sg-rv-refusal .btn-row { align-items: center; }
.sg-rv-studies { white-space: nowrap; }

/* Remap a column that changed and is not a rename (round 4): the column chosen, what is carried, the reason. */
.sg-rv-remap { display: grid; gap: var(--space-2); margin-top: var(--space-2); padding: var(--space-3); border: 1px solid var(--border); border-left: 3px solid var(--brand-border); border-radius: var(--radius-sm); background: var(--surface); }
.sg-rv-remap-list { margin: 0; padding-left: var(--space-4); display: grid; gap: var(--space-1); font-size: var(--fs-small); }
.sg-rv-remap-problems { margin: 0; padding-left: var(--space-4); color: var(--down-text); font-size: var(--fs-small); }
.sg-rv-reason { display: grid; gap: var(--space-1); font-size: var(--fs-small); }
.sg-rv-reason textarea { font: inherit; font-size: var(--fs-small); padding: 6px 8px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); }
.sg-rv-releases-pin { color: var(--warn-text); }
details.sg-rv-route-note > summary { cursor: pointer; width: max-content; }
.sg-rv-progress-how { margin: var(--space-1) 0 var(--space-2); }

/* Round 6: a decision that is not offered to this person. Said once above the list (a plain rule and its words, never
   colour alone) and on each row in the place of its controls. */
.sg-rv-gate-note { margin: 0 0 var(--space-2); padding: var(--space-2) var(--space-3); border: 1px solid var(--border); border-left: 3px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface-subtle); color: var(--text-dim); font-size: var(--fs-small); }
p.sg-rv-gated { margin: 0; }
.sg-rv-gate-note strong, .sg-rv-gated strong { color: var(--text-body); }
