/* ==========================================================================
   Shot-to-Track views (release 7.9.0, lane L12): the Run bar of every module
   and the Experiment Runs page. Built on the tokens of assets/lab-core/labs.css
   (docs/V770-PLAN.md section 2): one accent, no chips, badges, glows or
   gradients; statuses, provenance and origins are plain text (D6).
   ========================================================================== */

/* ---- Run bar (top of a module's settings column) ------------------------ */
.run-bar { padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 13px; line-height: 20px; }
.run-bar[hidden] { display: none; }
.run-bar-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 12px; }
.run-bar-title { margin: 0; color: var(--text); font-size: 15px; font-weight: 600; line-height: 22px; }
.run-bar-name { margin: 0; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.run-bar-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 2px 12px; margin: 8px 0 0; }
.run-bar-facts > div { display: contents; }
.run-bar-facts dt { color: var(--text-2); font-weight: 400; }
.run-bar-facts dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.run-bar-link { min-height: 0; padding: 0; border: 0; background: none; color: var(--accent); font: inherit; text-align: left; text-decoration: underline; cursor: pointer; }
.run-bar-link:hover { color: var(--accent-hover); }
.run-bar-stages { margin: 8px 0 0; }
.run-bar-stages > summary { color: var(--text); cursor: pointer; }
.run-bar-stage-list { margin: 4px 0 0; padding: 0 0 0 18px; }
.run-bar-stage-list li { margin: 0; overflow-wrap: anywhere; }
.run-bar .buttonrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 0; }
.run-bar .buttonrow a { font-size: 13px; }
.run-bar-open, .run-bar-new { display: grid; gap: 4px; margin: 12px 0 0; }
.run-bar-open label, .run-bar-new label { color: var(--text); font-size: 13px; }
.run-bar-open select, .run-bar-new input { width: 100%; max-width: 100%; min-height: 28px; font-size: 13px; }
.run-bar-new[hidden] { display: none; }
.run-bar-message { margin: 8px 0 0; color: var(--text-2); font-size: 12px; line-height: 18px; overflow-wrap: anywhere; }
/* a compute of the run, from any control of the page: the stage that runs, its progress and Stop (fix round FX01c, V790-U04) */
.run-bar-compute { margin: 8px 0 0; }
.run-bar-compute[hidden] { display: none; }
.run-bar-computing { margin: 0 0 4px; color: var(--text); font-size: 13px; line-height: 20px; overflow-wrap: anywhere; }
.run-bar-progress { display: block; width: 100%; max-width: 320px; margin: 0 0 4px; }
.run-bar-message:empty { display: none; }
.run-bar-more { margin: 8px 0 0; }
.run-bar-more > summary { color: var(--text); cursor: pointer; }
.run-bar-more[open] > summary { margin-bottom: 4px; }
.run-bar-more .run-bar-open { margin-top: 4px; }

/* ---- Experiment Runs page ----------------------------------------------- */
.runs-tree-host { margin: 12px -16px 0; }
.runs-tree-host[hidden] { display: none; }
.runs-tree, .runs-tree [role="group"] { margin: 0; padding: 0; list-style: none; }
.runs-tree li { margin: 0; }
.runs-tree .tree-text { min-width: 0; overflow-wrap: anywhere; }
.run-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 16px; margin: 0; }
.run-facts > div { display: contents; }
.run-facts dt { color: var(--text-2); font-weight: 400; }
.run-facts dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.runs-actions { margin-top: 12px; }
.runs-actions .field, .runs-change .field, .runs-pick .field { max-width: 420px; margin: 8px 0; }
.runs-actions .field select, .runs-change .field select, .runs-change .field input, .runs-pick .field select { width: 100%; min-height: 30px; font-size: 13px; }
.runs-confirm { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.runs-confirm[hidden], .runs-actions[hidden], .runs-change[hidden] { display: none; }
.runs-change { margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.runs-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; max-width: 860px; }
.runs-table-wrap { max-width: 100%; overflow-x: auto; margin: 8px 0 16px; }
.runs-table { min-width: 480px; }
.runs-table caption { padding: 0 0 4px; color: var(--text); font-weight: 600; text-align: left; }
.runs-table th[scope="row"] { color: var(--text); font-weight: 400; }
.runs-table thead th { color: var(--text-2); font-weight: 600; }

/* ---- Headline numbers (leaf J03): each number with its kind of number as plain text beside it (D6) ---- */
.headline-view { max-width: 960px; }
.headline-line { margin: 0 0 16px; padding: 0 0 12px; border-bottom: 1px solid var(--border); }
.headline-line h3 { margin: 0 0 4px; color: var(--text); font-size: 15px; font-weight: 600; line-height: 22px; }
.headline-label { margin: 0 0 4px; color: var(--text); font-size: 13px; line-height: 20px; }
.headline-parts { display: grid; grid-template-columns: minmax(0, max-content) minmax(0, 1fr); gap: 4px 16px; margin: 0; }
.headline-parts > div { display: contents; }
.headline-parts dt { color: var(--text-2); font-weight: 400; }
.headline-parts dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.headline-value { font-weight: 600; font-variant-numeric: tabular-nums; }
.headline-kinds { color: var(--text-2); }
/* the parentheses around the kind are text in the page (V790-U14); SYNTHETIC beside a measurement of a synthetic image (V790-U02) */
.headline-synthetic { color: var(--text); }
.headline-note { display: block; color: var(--text-2); font-size: 12px; line-height: 18px; }
.headline-drill td { font-variant-numeric: tabular-nums; }
/* the drill-down fits the results column (V790-U10): no minimum width; the column heads, the cells and the table buttons wrap between their
   words, never inside one (V790-Q03), so the table is as narrow as its longest words; a column narrower than that scrolls with its note */
.headline-drill { min-width: 0; width: 100%; }
.headline-drill thead th { white-space: normal; }
.headline-drill th, .headline-drill td { overflow-wrap: break-word; }
.headline-drill .run-bar-link { white-space: normal; overflow-wrap: break-word; }
.headline-scroll-note { margin: 8px 0 0; color: var(--text); }
.headline-scroll-note[hidden] { display: none; }
.headline-blind { color: var(--text); }
.headline-flag { color: var(--text); }
@media (max-width: 600px) {
  .runs-pick { grid-template-columns: minmax(0, 1fr); }
  .runs-table { min-width: 0; }
  .headline-parts { grid-template-columns: minmax(0, 1fr); }
}
