/* Step B pages (Sources, Manual inputs, Verification). Loaded after app.css; the same tokens
   (theme/tokens.css) and the same components (panel, ledger, tag, result chip, errbox, log). */

/* ---------- sources ---------- */
.src-files td.fn { font-family: var(--hr-mono); font-size: var(--hr-fs-mono); overflow-wrap: anywhere; }
.src-files td.fn .dir { display: block; color: var(--hr-muted); font-size: var(--hr-fs-caption); }
.src-files td.note { font-size: 12px; color: var(--hr-ink-2); overflow-wrap: anywhere; max-width: 360px; }
.src-files td.per { white-space: nowrap; font-size: 12px; }
.tag.st-active { color: var(--hr-ok); border-color: var(--ui-ok-edge); background: var(--ui-ok-wash); }
.tag.st-noparse, .tag.st-ignored { color: var(--hr-ink-2); }
.tag.st-dropped { color: var(--hr-warn); border-color: var(--hr-warn-tint); background: var(--ui-warn-wash); }
.missing-list { margin: 8px 0 0; padding-left: 20px; font-size: var(--hr-fs-body); }
.missing-list li { margin-top: 4px; }
.plats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

/* ---------- manual inputs ---------- */
.mgrid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1100px) { .mgrid { grid-template-columns: minmax(0, 1fr); } }
.mtabs { display: flex; gap: 2px; border-bottom: 1px solid var(--hr-line-2); margin-top: 8px; }
.mtabs button { border: 0; background: transparent; padding: 6px 12px 7px; font: 500 12.5px/1.3 var(--hr-sans); color: var(--hr-ink-2);
  cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.mtabs button.current { color: var(--hr-ink); font-weight: 600; border-bottom-color: var(--hr-accent); }
.mtabs button:disabled { color: var(--hr-muted); cursor: not-allowed; }
.mform details { border: 1px solid var(--hr-line-2); border-radius: var(--hr-r-btn); margin-top: 12px; background: var(--hr-surface); }
.mform summary { cursor: pointer; padding: 8px 12px; font-weight: 600; font-size: var(--hr-fs-body); display: flex; gap: 8px; align-items: baseline; }
.mform summary .mono { font-weight: 400; }
.mform summary .small { font-weight: 400; color: var(--hr-muted); }
.mform .sec { padding: 4px 12px 12px; overflow-x: auto; }
.mform .kvf { display: grid; grid-template-columns: minmax(120px, 200px) minmax(0, 1fr); gap: 8px 12px; align-items: center; }
.mform .kvf > label { font-size: var(--hr-fs-label); font-weight: 500; color: var(--hr-ink-2); font-family: var(--hr-mono); overflow-wrap: anywhere; }
.mform fieldset { grid-column: 1 / -1; border: 1px solid var(--hr-line-soft); border-radius: var(--hr-r-btn); margin: 4px 0 0; padding: 8px 12px; }
.mform legend { font-family: var(--hr-mono); font-size: var(--hr-fs-label); color: var(--hr-ink-2); padding: 0 4px; }
.mform .input { height: 28px; }
.mform textarea.input { height: auto; min-height: 56px; font-family: var(--hr-sans); font-size: var(--hr-fs-body); padding: 6px 8px; resize: vertical; }
.mform .input.chg { border-color: var(--hr-info); }
.mform table.mt { border-collapse: collapse; font-size: 12px; min-width: 100%; }
.mform table.mt th { text-align: left; font: 600 var(--hr-fs-stat-label)/1.3 var(--hr-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--hr-muted);
  padding: 4px; border-bottom: 1px solid var(--hr-line-2); white-space: nowrap; position: sticky; top: 0; background: var(--hr-surface); }
.mform table.mt td { padding: 2px 4px; border-bottom: 1px solid var(--hr-line-soft); }
.mform table.mt td.n { font-family: var(--hr-mono); font-size: var(--hr-fs-caption); color: var(--hr-muted); text-align: right; }
.mform table.mt .input { min-width: 90px; padding: 0 6px; }
.mform table.mt .input.num { text-align: right; }
.mform .tblwrap { max-height: 420px; overflow: auto; }
.mform .ro { font-family: var(--hr-mono); font-size: var(--hr-fs-caption); color: var(--hr-muted); }
.mform .rm { border: 0; background: transparent; cursor: pointer; padding: 2px 4px; color: var(--hr-muted); font-size: 12px; }
.mform .rm:hover { color: var(--hr-err); }
.yaml { width: 100%; min-height: 480px; font: 400 var(--hr-fs-mono)/1.45 var(--hr-mono); color: var(--hr-ink); border: 1px solid var(--hr-line);
  border-radius: var(--hr-r-btn); padding: 12px; margin-top: 12px; resize: vertical; tab-size: 2; white-space: pre; }
.yaml:focus-visible { border-color: var(--hr-accent); box-shadow: var(--hr-focus); outline: none; }
.vlist { list-style: none; margin: 8px 0 0; padding: 0; }
.vlist li { padding: 8px 12px; border-radius: var(--hr-r-chip); background: var(--ui-err-wash); margin-top: 4px; font-size: 12.5px; overflow-wrap: anywhere; }
.vlist li .mono { color: var(--hr-err); font-size: var(--hr-fs-mono); margin-right: 8px; }
.dirty-note { margin-top: 12px; font-size: 12.5px; color: var(--hr-ink-2); }

/* ---------- verification ---------- */
.against { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; font-size: var(--hr-fs-body); }
.against label { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.against input { accent-color: var(--hr-accent); }
.stats4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kinds { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.kinds button { border: 1px solid var(--hr-line); background: var(--hr-surface); border-radius: var(--hr-r-tag); padding: 3px 8px;
  font: 500 var(--hr-fs-label)/1.3 var(--hr-sans); color: var(--hr-ink-2); cursor: pointer; }
.kinds button .mono { margin-left: 4px; color: var(--hr-ink); }
.kinds button.current { border-color: var(--hr-accent); color: var(--hr-ink); box-shadow: inset 0 -2px 0 var(--hr-accent); }
table.diffs tbody tr { cursor: pointer; }
table.diffs tbody tr:hover td { background: var(--hr-panel); }
table.diffs td { font-size: 12px; }
table.diffs td.mono { font-size: var(--hr-fs-caption); overflow-wrap: anywhere; }
table.diffs td.num { font-size: var(--hr-fs-caption); white-space: nowrap; overflow-wrap: normal; min-width: 10ch; }
/* a text value wraps in its column; structural rows sit under their (right-aligned) headers; the sheet name keeps its words */
table.diffs td.num.txt { white-space: normal; overflow-wrap: anywhere; min-width: 0; }
table.diffs td.det.al-r { text-align: right; }
table.diffs td:first-child { min-width: 11em; overflow-wrap: normal; }
#cells { overflow-x: auto; }
table.diffs td.det { font-size: 12px; color: var(--hr-ink-2); overflow-wrap: anywhere; }
.pager { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: 12px; color: var(--hr-muted); }
.pager .btn.ghost { height: 28px; padding: 0 12px; }

/* ---------- Review toolbar: number style switch (wired with the step A changes) ---------- */
.numsw { display: inline-flex; border: 1px solid var(--hr-line); border-radius: var(--hr-r-btn); overflow: hidden; margin-left: auto; }
.numsw button { border: 0; background: var(--hr-surface); padding: 3px 10px; font: 400 var(--hr-fs-caption)/1.4 var(--hr-mono); color: var(--hr-ink-2); cursor: pointer; }
.numsw button + button { border-left: 1px solid var(--hr-line); }
.numsw button.current { background: var(--hr-accent-tint); color: var(--hr-ink); box-shadow: inset 0 -2px 0 var(--hr-accent); }

/* ---------- Review grid: a cell with an explicit white fill has no grid lines (wired with the step A changes) ---------- */
.xg .c.wf { border-right-color: transparent; border-bottom-color: transparent; }

/* ======================= step B part 2 and the Chrome findings (wired with the pending edits) ======================= */

/* D5 rail: label on one line, its state under it; nothing can overlap at any width */
.rail nav a.step, .rail nav .later { display: grid; grid-template-columns: 7px minmax(0, 1fr); column-gap: 8px; align-items: center; padding: 6px 12px; }
.rail nav a.step .lbl, .rail nav .later .lbl { overflow-wrap: anywhere; }
.rail nav a.step .st, .rail nav .later .st { grid-column: 2; white-space: normal; text-align: left; max-width: none; line-height: 1.3; }
.rail nav a.step .st:empty { display: none; }

/* log rows: time, level, text; a long line folds to two lines and opens on a click */
.log.timed .row { grid-template-columns: 56px 40px minmax(0, 1fr); }
.log .row .at { color: var(--hr-muted); }
.log .row.long { cursor: pointer; }
.log .row.long:not(.open) .tx { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.log .row.long:not(.open) .tx::after { content: ""; }
.log .row.long:not(.open) { box-shadow: inset 0 -1px 0 var(--hr-line-soft); }

/* a job that runs: something that moves, its state and elapsed time, Cancel */
.jobbar { display: flex; align-items: center; gap: 12px; margin-top: 12px; font: 400 var(--hr-fs-mono)/1.3 var(--hr-mono); color: var(--hr-ink-2); }
.jobbar .jb-move { position: relative; flex: none; width: 96px; height: 4px; border-radius: 2px; background: var(--hr-line-2); overflow: hidden; }
.jobbar .jb-move::after { content: ""; position: absolute; top: 0; bottom: 0; width: 32px; border-radius: 2px; background: var(--hr-ink-2); animation: jbmove 1.1s ease-in-out infinite alternate; }
.jobbar.done .jb-move::after { animation: none; left: 0; width: 100%; background: var(--hr-drop); }
.jobbar .jb-cancel { height: 28px; padding: 0 12px; }
@keyframes jbmove { from { left: 0; } to { left: 64px; } }
@media (prefers-reduced-motion: reduce) { .jobbar .jb-move::after { animation: none; width: 100%; opacity: .5; } }

/* glossary text beside an engine term */
.gloss { display: block; font-family: var(--hr-sans); font-size: 12px; color: var(--hr-ink-2); white-space: normal; margin-top: 2px; }
.gloss-in { font-family: var(--hr-sans); font-size: 12px; color: var(--hr-ink-2); }
.checks td.id { white-space: normal; min-width: 180px; }

/* readiness: where each window is read from */
table.matrix th .rf { display: inline-block; margin-top: 4px; padding: 1px 6px; border-radius: var(--hr-r-tag); font: 500 var(--hr-fs-caption)/1.3 var(--hr-sans); border: 1px solid var(--hr-line); color: var(--hr-ink-2); }
table.matrix th .rf-exports { color: var(--hr-ok); border-color: var(--ui-ok-edge); background: var(--ui-ok-wash); }
table.matrix th .rf-carried { color: var(--hr-info); border-color: var(--hr-line); background: var(--hr-x-partial); }
table.matrix td.cell.tpl { background: var(--hr-x-partial); border-color: var(--hr-line); }
table.matrix td.cell.tpl .s { color: var(--hr-info); }

/* build: warnings one per line */
.warns .w { display: block; margin-bottom: 4px; }

/* V1 Home: the state tag keeps its distance from the title */
.due a { grid-template-columns: 190px minmax(0, 1fr) 110px; }
.due .hr-tag { white-space: normal; max-width: 100%; }

/* D2 Send: which file to send */
.files li.tosend { background: var(--hr-accent-tint); margin: 0 -8px; padding: 8px; border-radius: var(--hr-r-btn); border-top: none; }
.files li.working .what-l { color: var(--hr-err); }
.files .what-l { font-size: var(--hr-fs-body); font-weight: 500; color: var(--hr-ink); }

/* D1 detail card: long values wrap inside the card */
.rvsel .kv > span, .rvsel .cellid { min-width: 0; overflow-wrap: anywhere; }

/* D3 review list: the full cell id wraps; headers fit */
table.rvt2 col.w-val { width: 26%; }
table.rvt2 td.cid { white-space: normal; overflow-wrap: anywhere; }
table.rvt2 .ro-tag { font: 500 var(--hr-fs-caption)/1.2 var(--hr-sans); color: var(--hr-muted); border: 1px dashed var(--hr-drop); border-radius: var(--hr-r-tag); padding: 0 4px; }
table.rvt2 tbody.edited td { background: var(--hr-panel); }
table.rvt2 tbody.edited .rvv.pending { color: var(--hr-info); }
table.rvt2 .rvv { margin-top: 2px; color: var(--hr-ink); }

/* D4 sheet tabs: the strip shows that it scrolls */
.tabs { scrollbar-width: thin; scrollbar-color: var(--hr-drop) transparent; padding-bottom: 2px; }
.tabs::-webkit-scrollbar { height: 6px; }
.tabs::-webkit-scrollbar-thumb { background: var(--hr-drop); border-radius: 3px; }

/* the review form */
.rv { overflow: hidden; }
.rvf { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--hr-line-2); }
.rvf-grid { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px 12px; align-items: center; margin-top: 8px; }
.rvf-grid label { font-size: var(--hr-fs-label); font-weight: 500; color: var(--hr-ink-2); }
.rvf-grid textarea.input { height: auto; font-family: var(--hr-sans); font-size: var(--hr-fs-body); padding: 6px 8px; resize: vertical; }
.rvf-msg.err { color: var(--hr-err); margin-top: 4px; }
.rvf-warn { margin-top: 8px; color: var(--hr-ink-2); }
.rvchanges { flex: none; max-height: 45%; overflow: auto; margin-top: 8px; }
.rvchanges:empty { display: none; }
.rvchanges .changes, .rvchanges .confirm-box, .rvchanges .saving { border-top: 1px solid var(--hr-line-2); padding-top: 8px; }
.rvchanges table.chg td, .rvchanges table.chg th { padding: 4px; font-size: 12px; overflow-wrap: anywhere; }
.lockmsg { margin: 8px 0 0; padding: 8px 12px; border-radius: var(--hr-r-btn); background: var(--ui-warn-wash); color: var(--hr-ink); font-size: 12.5px; }
#saved:empty { display: none; }
#saved .result { margin-top: 8px; }

/* grid: alignment, wrap, rotation from the workbook */
.xg .c.ha > span { text-align: var(--ha, left); }
.xg .c.w > span { align-self: auto; }
.xg .c.vstack > span, .xg .c.vup > span, .xg .c.vdown > span { writing-mode: vertical-rl; white-space: nowrap; text-overflow: clip; }
.xg .c.vstack > span { text-orientation: upright; }
.xg .c.vup > span { transform: rotate(180deg); }

/* workspace page */
table.outcomes td { padding: 4px 8px; }

/* review at 1024: a wider list */
@media (max-width: 1100px) {
  .pg-review .grid { grid-template-columns: minmax(0, 1fr) 320px; }
  .due a { grid-template-columns: 190px minmax(0, 1fr); }
}
.rvchanges table.chg td.num { white-space: nowrap; overflow-wrap: normal; }
table.rvt2 .ro-tag { white-space: nowrap; }
.btn[disabled]:hover, .btn.disabled:hover { background: var(--hr-panel); }

/* ======================= Playwright findings on step A (e2e_a) ======================= */
:root { --ui-warn-ink: #8A5A16; /* DERIVED: --hr-warn darkened to reach 4.5:1 on the warn tints (4.95:1) */ }

/* F1: the detail box scrolls inside itself; the review list always keeps a usable height */
.rv > * { flex: none; }
.rv .rvlist { flex: 1 1 auto; min-height: 160px; }
/* the detail card keeps one height whatever it shows, so the list does not move under the pointer */
.rvsel { flex: none; height: 36%; min-height: 120px; overflow: auto; overscroll-behavior: contain; }
.rvsel .btnbar .btn { white-space: normal; max-width: 100%; text-align: left; height: auto; }
.rvchanges table.chg .chg-sheet { display: block; overflow-wrap: anywhere; }
.rvchanges table.chg .chg-cell { display: block; white-space: nowrap; }
.opchanged { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 12px; padding: 8px 12px;
  border: 1px solid var(--ui-warn-ink); border-left-width: 4px; border-radius: var(--hr-r-btn); background: var(--hr-panel); font-size: 13px; }
.mform .input.bad { border-color: var(--hr-err); box-shadow: 0 0 0 2px var(--hr-err-tint); background: var(--hr-err-tint); }
.sec-about { margin: 4px 0 8px; }
.gloss-in { color: var(--hr-muted); font-size: 12px; }
table.diffs td.det + td.det { color: var(--hr-ink); }
.temp-once { margin-top: 8px; }
.temp-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.errbox .detail.rule { font-family: inherit; }
.rvchanges { max-height: 32%; }

/* F3: ghost buttons show the focus ring too */
.btn.ghost:focus-visible, .tabs button:focus-visible, .numsw button:focus-visible, .mtabs button:focus-visible,
.kinds button:focus-visible { box-shadow: var(--hr-focus); outline: none; }

/* F4: list rows and the grid are reachable with the keyboard */
table.rvt tbody:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--hr-accent); }
.xg:focus-visible { box-shadow: inset 0 0 0 2px var(--hr-accent-tint); }

/* F6: a cell keeps its own line breaks and spaces */
.xg .c > span { white-space: pre; }
.xg .c.w > span { white-space: pre-wrap; }

/* F7: warn text at 4.5:1 or more; the refusal box's counter in the second ink */
.tag.lvl-warn, .log .row.WARN .lv, .lockmsg { color: var(--ui-warn-ink); }
.accept #acc-n { color: var(--hr-ink-2); }

/* F11: the first Review after a build waits for the server */
.gridwrap .msg .mono { color: var(--hr-ink-2); }
/* the accent is for the primary action, the active step, selection and focus only: the file to send is
   marked with the ok colour and the primary download button */
.files li.tosend { background: var(--ui-ok-wash); box-shadow: inset 3px 0 0 var(--hr-ok); }

/* ======================= Final page fixes before the owner's manual test (2026-11-26) ======================= */
/* the glossary fills in after the page is drawn: an element still without its description takes no room */
span.gl:empty, div.gl:empty { display: none; }

/* a step chosen: the page is cleared at once and the loading line counts the seconds */
.route-loading { padding: 8px 0; }

/* Home: the archive's number says what it counts */
.archive .big-wrap { display: flex; flex-direction: column; align-items: center; flex: none; }
.archive .big-unit { font-size: var(--hr-fs-stat-label); color: var(--hr-muted); text-transform: uppercase; letter-spacing: .08em; text-align: center; max-width: 9em; }
.stat .k { overflow-wrap: anywhere; }

/* Review form: the label above a box as wide as the card; the hint wraps under it */
.rvf-fields { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.rvf-fields label { font-size: var(--hr-fs-label); font-weight: 500; color: var(--hr-ink-2); margin-top: 4px; }
.rvf-fields .input { width: 100%; max-width: 100%; box-sizing: border-box; }
.rvf-fields textarea.input { height: auto; font-family: var(--hr-sans); font-size: var(--hr-fs-body); padding: 6px 8px; resize: vertical; }
.rvf-hint { white-space: normal; overflow-wrap: anywhere; }
.rvsel .rvf .btnbar .btn { min-height: 32px; padding-top: 6px; padding-bottom: 6px; }

/* Manual inputs: a wide table scrolls sideways inside its card, with a scrollbar that stays visible */
.mform .tblwrap { max-width: 100%; }
.mform .tblwrap::-webkit-scrollbar { height: 10px; width: 10px; }
.mform .tblwrap::-webkit-scrollbar-thumb { background: var(--hr-drop); border-radius: 5px; }
.mform .tblwrap::-webkit-scrollbar-track { background: var(--hr-panel); }
.mform .wide-note { margin: 0 0 4px; }

/* Send: what the last build still lacks, above the downloads */
.notready { margin: 0 0 20px; padding: 12px 16px; border: 1px solid var(--ui-warn-ink); border-left-width: 4px; border-radius: var(--hr-r-btn);
  background: var(--hr-surface); font-size: 13px; }
.notready > b { display: block; font-size: var(--hr-fs-body); }
.notready p { margin: 6px 0 0; }
.notready h3 { margin: 12px 0 0; font-weight: 600; }
.notready table.nr { margin-top: 6px; }
.notready table.nr td { padding: 4px 8px; vertical-align: top; }
.notready table.nr td.mono { white-space: nowrap; }

/* Manual inputs: a text box in a table is as wide as its text (its size attribute) */
.mform table.mt .input[size] { width: auto; }
.notready details.nr-list { margin-top: 6px; }
.notready details.nr-list > summary { cursor: pointer; color: var(--hr-ink-2); }

/* ======================= Video parity, P1b (2026-11-26): the first video's functions, in the app's own components ======================= */
/* the command a job stands for: folded, monospace, with Copy */
.cmdbox { margin-top: 12px; border: 1px solid var(--hr-line-2); border-radius: var(--hr-r-btn); background: var(--hr-panel); }
.cmdbox > summary { cursor: pointer; padding: 6px 12px; font-size: 12px; font-weight: 500; color: var(--hr-ink-2); }
.cmdbox .cmd-body { padding: 0 12px 10px; }
.cmd-row { display: flex; gap: 8px; align-items: flex-start; margin-top: 6px; }
pre.cmd { flex: 1; min-width: 0; margin: 0; padding: 8px; background: var(--hr-surface); border: 1px solid var(--hr-line-soft); border-radius: var(--hr-r-chip);
  font-size: var(--hr-fs-caption); line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--hr-ink); max-height: 240px; overflow: auto; }
.cmd-act { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.btn.ghost.sm { height: 24px; padding: 0 8px; font-size: 12px; }

/* the period rule in force (Readiness) */
.period-rules { margin-top: 16px; }
.period-rules .pr { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; padding: 8px 12px; border: 1px solid var(--hr-line-2); border-radius: var(--hr-r-btn); }

/* what each build stage produced */
ol.stages { list-style: none; margin: 8px 0 0; padding: 0; }
ol.stages li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-top: 1px solid var(--hr-line-2); font-size: 12.5px; }
ol.stages li:first-child { border-top: none; }
ol.stages .sn { font-weight: 600; color: var(--hr-ink); }
ol.stages .sd { color: var(--hr-ink-2); overflow-wrap: anywhere; }
ol.stages .sd .mono { font-size: var(--hr-fs-caption); color: var(--hr-ink); }

/* override a cell (Manual inputs) */
.ovr-form { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.ovr-form textarea.input { height: auto; font-family: var(--hr-sans); font-size: var(--hr-fs-body); padding: 6px 8px; resize: vertical; }
table.ovl td { padding: 4px 6px; font-size: 12px; vertical-align: top; overflow-wrap: break-word; }
table.ovl td.num, table.ovl .result { white-space: nowrap; }
table.ovl .result { padding: 2px 8px 2px 6px; font-size: 12px; }
.ovr-ign { margin-top: 8px; padding: 8px 12px; border-left: 3px solid var(--ui-warn-ink); background: var(--hr-panel); }

/* the cell's sources (Review detail card) */
.xsrc .csrc { font-size: 12px; }
.xsrc .csrc .kv { grid-template-columns: 96px minmax(0, 1fr); gap: 2px 8px; margin-top: 4px; font-size: 12px; }
.csrc-h { font-weight: 600; color: var(--hr-ink); margin-bottom: 2px; }
ul.csrc-files { list-style: none; margin: 0; padding: 0; }
ul.csrc-files li { overflow-wrap: anywhere; }
ul.csrc-files li + li { margin-top: 4px; }

/* approve and sent (Send) */
.marks .field { margin-top: 8px; }
.mark-row { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 8px; align-items: center; }

/* the score (Verification) */
.score4 .stat .v .pct { font-family: var(--hr-mono); font-size: var(--hr-fs-mono); font-weight: 400; color: var(--hr-ink-2); }
.score4 .stat.bad { border-color: var(--ui-err-edge); background: var(--hr-err-tint); }
.score4 .stat.bad .v { color: var(--hr-err); }
.score4 .stat.good .v { color: var(--hr-ok); }
.sc-filter { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.sc-filter select.input { max-width: 360px; }
table.sc-diffs td.det { max-width: 420px; }
.tag.pass { color: var(--hr-ok); border-color: var(--ui-ok-edge); background: var(--ui-ok-wash); }

/* Scores: bars per family and trend lines (CSS / SVG in the theme's colours) */
.fbars { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.fbar { display: grid; grid-template-columns: 210px minmax(0, 1fr) 150px; gap: 12px; align-items: center; padding: 6px 8px; margin: 0 -8px;
  border: 0; border-radius: var(--hr-r-btn); background: transparent; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.fbar:hover, .fbar.on { background: var(--hr-panel); }
.fbar.none { cursor: default; }
.fbar .fl { font-weight: 500; font-size: var(--hr-fs-body); }
.fbar .ft { position: relative; height: 12px; background: var(--hr-line-soft); border-radius: 0 4px 4px 0; }
.fbar .fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--hr-ink-2); border-radius: 0 4px 4px 0; }
.fbar .fill.bad { background: var(--hr-err); }
.fbar .th { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--hr-accent); }
.fbar .fv { white-space: nowrap; }
.spk-row { display: grid; grid-template-columns: 170px 220px minmax(0, 1fr); gap: 12px; align-items: center; padding: 4px 0; border-top: 1px solid var(--hr-line-2); font-size: var(--hr-fs-body); }
.spk-row:first-child { border-top: none; }
.spk-row svg polyline { fill: none; stroke: var(--hr-ink-2); stroke-width: 1.5; }
.spk-row svg circle { fill: var(--hr-ink); }
.spk-row svg line.base { stroke: var(--hr-line-2); }
.spk-row .vals { font-size: var(--hr-fs-caption); color: var(--hr-muted); overflow-wrap: anywhere; }
table.sc-eds td { padding: 4px 6px; font-size: 12px; }

/* Sources: add files, raw files, connectors */
.dropzone { margin-top: 12px; padding: 20px; border: 1.5px dashed var(--hr-drop); border-radius: var(--hr-r-card); text-align: center; background: var(--hr-panel); }
.dropzone.over { border-color: var(--hr-accent); background: var(--hr-accent-tint); }
.dropzone label.btn { margin: 0 6px; }
.dropzone .small { margin-top: 8px; }
.up-done { margin-top: 12px; }
.up-done .ledger { margin-top: 8px; }
table.rawt td { vertical-align: top; font-size: 12px; }
table.rawt .sha { font-size: var(--hr-fs-caption); }
table.pullt td { vertical-align: top; overflow-wrap: anywhere; }

/* Home: the week picker */
.weekpick { display: inline-flex; align-items: center; gap: 8px; }
.weekpick select.input { width: auto; min-width: 230px; height: var(--hr-btn-h); }
table.rawt td.fn { font-family: var(--hr-mono); font-size: var(--hr-fs-mono); overflow-wrap: anywhere; }
table.rawt td.fn .dir, table.up-res td.fn .dir { display: block; font-family: var(--hr-sans); color: var(--hr-muted); font-size: var(--hr-fs-caption); }
/* Home: the families table stays inside its card */
.famwrap { overflow-x: auto; }
table.famall td { vertical-align: top; }
.score4 .stat .k.parts { text-transform: none; letter-spacing: 0; font-size: 11px; }
.fbar .fv .unx { display: block; color: var(--hr-err); }
#ovr-target.bad { border-color: var(--hr-err); box-shadow: 0 0 0 2px var(--hr-err-tint); }
.ovr-conf { margin-top: 4px; color: var(--ui-warn-ink); }
.basis { margin: 4px 0 8px; }
.basis.warn-note { padding: 6px 10px; border-left: 3px solid var(--ui-warn-ink); background: var(--hr-panel); }
.kept { color: var(--hr-err); margin-top: 2px; }
.confirm-inline { margin-top: 6px; padding: 8px 10px; border: 1px solid var(--hr-line-2); border-radius: var(--hr-r-btn); background: var(--hr-panel); }

/* ======================= Video parity, P2 (2026-11-26): the second video's functions ======================= */
/* Review: ours, the delivered report, or both side by side; the cells that differ marked */
/* the switch in a row of its own at the end of the sheet card, under the grid */
.sheetp .viewrow { flex: none; display: flex; align-items: center; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.viewrow .viewsw { display: inline-flex; border: 1px solid var(--hr-line); border-radius: var(--hr-r-btn); overflow: hidden; }
.viewrow .viewsw button { border: 0; background: var(--hr-surface); padding: 3px 10px; font: 400 var(--hr-fs-caption)/1.4 var(--hr-mono); color: var(--hr-ink-2); cursor: pointer; }
.viewrow .viewsw button + button { border-left: 1px solid var(--hr-line); }
.viewrow .viewsw button.current { background: var(--hr-accent-tint); color: var(--hr-ink); box-shadow: inset 0 -2px 0 var(--hr-accent); }
.viewrow .viewsw button[disabled] { color: var(--hr-muted); cursor: not-allowed; }
.viewrow .vw-note { flex: 1 1 240px; min-width: 0; }
.viewrow #csrc-show { margin-left: auto; }
/* the card under the Review page: shown on request, it shares the page's height while open */
.content.pg-review .xsrc { flex: none; max-height: 42%; overflow: auto; padding: 12px 16px; }
.xsrc .xsrc-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.dm-key { display: inline-block; width: 10px; height: 10px; vertical-align: -1px; box-shadow: inset 0 0 0 2px var(--ui-warn-ink); background: var(--ui-warn-wash); }
.xg .c.dm { box-shadow: inset 0 0 0 2px var(--ui-warn-ink); }
.xg .c.dm.sel { box-shadow: inset 0 0 0 2px var(--hr-accent); }
.gridwrap .sbs { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
.gridwrap .half { position: relative; display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.gridwrap .half + .half { border-left: 1px solid var(--hr-line-2); padding-left: 6px; }
.gridwrap .half-h { flex: none; font: 600 var(--hr-fs-stat-label)/1.6 var(--hr-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--hr-muted); }
.gridwrap .gw-in { position: relative; flex: 1; min-height: 0; }
.gridwrap .vw-one { position: absolute; inset: 0; }
/* the review loop's before and after */
.xsrc .loop { padding: 0; }
table.loopt { margin: 4px 0; }
table.loopt td, table.loopt th { padding: 3px 4px; font-size: 12px; vertical-align: top; }
/* Verification: the parallel run */
.pr-upload { margin-top: 8px; }
.stat .v.mono-v { font-family: var(--hr-mono); font-size: 16px; }
#parp .stat.good .v, #scorep .stat.good .v { color: var(--hr-ok); }
#parp .stat.bad .v, #scorep .stat.bad .v { color: var(--hr-err); }
table.bysheet td, table.bysheet th { padding: 4px 8px; }
/* Scores: suite A and the dashboard */
table.sa-t tr.pick { cursor: pointer; }
table.sa-t tr.pick:hover td, table.sa-t tr.pick.on td { background: var(--hr-panel); }
table.sa-t td, table.sa-eds td { padding: 4px 6px; font-size: 12px; }
details.dbt { margin-top: 8px; border: 1px solid var(--hr-line-2); border-radius: var(--hr-r-btn); }
details.dbt > summary { cursor: pointer; padding: 6px 10px; font-weight: 500; }
details.dbt > p { padding: 0 10px; }
.dbt-wrap { max-height: 340px; overflow: auto; padding: 0 6px 6px; }
.dbt-wrap td, .dbt-wrap th { padding: 3px 6px; font-size: 12px; white-space: nowrap; }
/* Parallel runs and Engine checks */
.tblscroll { overflow-x: auto; }
table.cycles td, table.ac28 td, table.specs td, table.books td { padding: 6px 8px; vertical-align: top; }
.vres { margin-top: 4px; max-width: 280px; }

/* the score's differing cells (not table.diffs: that is the comparison's list) */
table.scd-cells td { vertical-align: top; overflow-wrap: anywhere; }
table.scd-cells td.num { white-space: nowrap; }
table.scd-cells td.det { max-width: 420px; }

/* ======================= Final batch (2026-11-26): every rule scoped to the new cards' own classes ======================= */
#scorep .sc-means { margin-top: 10px; }
#scorep .sc-ties { margin-top: 4px; }
#parp .pr-rule { margin-top: 8px; }
#main.pg-parallel .acc-what { margin-bottom: 6px; }
#marksp #mk-sendwhy { margin-left: 8px; }
#ddp .bysheet + h3, #ddp .facts + table { margin-top: 12px; }
#ddp h3.small { margin-top: 12px; }
#ddp h3.small:first-of-type { margin-top: 4px; }
