/* ==========================================================================================================
   mm-tabular.css — the tabular laboratory (/lab/tabular). Loaded after site.css and labs.css; tokens only.
   ========================================================================================================== */
.tab-bench .pred-value .digit.word { font-size: clamp(1.0625rem, 0.92rem + 0.55vw, 1.4375rem); white-space: normal; overflow-wrap: anywhere; }
.tab-bench .pred-card .badge.bad { white-space: normal; }
.tab-bench .tab-row-stepper { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; width: 100%; }
.tab-bench .tab-row-stepper select { min-width: 0; font-variant-numeric: tabular-nums; }
.tab-two-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tab-two-fields > div { display: grid; gap: 0.4rem; min-width: 0; }
.tab-warn { color: var(--amber); font-weight: 600; }

/* the transaction table: locked, derived, changed and rejected cells */
table.tab-rows th[scope="row"] { font-weight: 600; color: var(--ink-2); background: transparent; position: static; font-size: 0.875rem; }
table.tab-rows .fid { display: block; font-family: var(--font-mono); font-size: 0.6875rem; color: var(--faint); font-weight: 500; margin-top: 1px; }
table.tab-rows tr.is-locked th[scope="row"] { color: var(--muted); }
table.tab-rows .lockwrap { display: inline-flex; vertical-align: -2px; margin-right: 5px; color: var(--faint); }
table.tab-rows .ic.lock { width: 14px; height: 14px; }
table.tab-rows .fx { font-family: var(--font-display); font-style: italic; font-weight: 700; color: var(--orange); margin-right: 5px; }
table.tab-rows td.chg { background: color-mix(in srgb, var(--orange-soft) 90%, transparent); color: var(--ink); font-weight: 650; box-shadow: inset 3px 0 0 var(--orange-vivid); }
table.tab-rows td.chg-derived { background: color-mix(in srgb, var(--orange-soft) 45%, transparent); color: var(--ink-2); }
table.tab-rows td.bad { background: color-mix(in srgb, var(--coral-soft) 90%, transparent); color: var(--coral); font-weight: 650; box-shadow: inset 3px 0 0 var(--coral-vivid); }
table.tab-rows tfoot th, table.tab-rows tfoot td { border-top: 1px solid var(--line-strong); font-weight: 650; font-size: 0.8125rem; }
table.tab-rows tfoot tr.is-bad td { color: var(--coral); }

/* checks beside the control on wide screens */
.tab-split { display: grid; gap: 16px 28px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1280px) { .tab-split { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); } }
.tab-split > section { min-width: 0; }
.tab-h { margin: 0 0 8px; font-size: 0.9375rem; font-weight: 650; }
.tab-ctl-list { margin: 4px 0 6px; padding-left: 1.1rem; }
.tab-ctl-list li { font-size: 0.8125rem; }
#ctl-result dl.rows { margin-top: 4px; }
#ctl-result dl.rows dt, #ctl-result dl.rows dd { font-size: 0.8125rem; }

/* trace */
.mm-trace tr.tr-stop td { font-style: italic; color: var(--muted); }
.tab-rej { margin-top: 10px; }
.tab-rej .mm-trace { max-height: 240px; }

/* manual editor */
.tab-editor { display: grid; gap: 8px 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); margin: 6px 0 10px; }
.tab-editor .field { margin: 0; }
.tab-editor .field-label { font-size: 0.78rem; }
.tab-editor .field-label .mono { color: var(--faint); font-size: 0.72rem; }
.tab-editor input.locked { border-style: dashed; }
.tab-exports { margin-top: 2px; }
.tab-schema-h { margin-top: 22px; }

/* figures: one explicit column, so a wide table scrolls inside its wrapper instead of widening the page */
[data-mod="tabular"] .fig { grid-template-columns: minmax(0, 1fr); }
.tab-pop-metrics { margin: 18px 0 8px; }
#pop-compare td:first-child, #seed-table td:first-child { white-space: nowrap; }
#repro-hashes td { white-space: nowrap; font-variant-numeric: tabular-nums; }
/* phones and tablets: the FGSM workbench reorders its children with CSS order (site.css); this bench keeps source order */
@media (max-width: 1023px) {
  .workbench.tab-bench .wb-controls > *, .workbench.tab-bench .wb-results > * { order: 0; }
}
.tab-refs li { margin-bottom: 8px; max-width: 80ch; }
.sec-aside.error { color: var(--bad); }
