/* AiB Platform — run monitoring: the runs bar chart and the trace timeline. */

/* ---------- bar chart (runs overview) ---------- */
.bars-chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 190px;
  padding: 20px 22px 8px;
}
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; min-width: 0; }
.bar {
  width: 100%;
  max-width: 34px;
  border-radius: 6px 6px 2px 2px;
  background: color-mix(in srgb, var(--ink) 82%, var(--grey));
  opacity: 0.92;
  transition: opacity 0.25s;
}
.bar-col:hover .bar { opacity: 1; }
.bar-col:last-child .bar { background: var(--ink); }
.bar-label { font-family: var(--font-mono); font-size: 9.5px; color: var(--grey-dark); }
/* A member with no runs yet: the chart holds its height but centers a line
   instead of drawing a flat floor of zero-height bars. */
.bars-chart--empty { align-items: center; justify-content: center; text-align: center; }
.chart-foot {
  display: flex;
  justify-content: space-between;
  padding: 10px 22px 16px;
  color: var(--grey);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- trace timeline ---------- */
.trace { list-style: none; margin: 0; padding: 0; }
/* The live panel's window: newest step on top, the rest scroll inside the
   list — the panel's script sets max-height to its first N rendered steps. */
.trace--window { overflow-y: auto; overscroll-behavior: contain; }
.trace-step { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--hairline); }
.trace-step:first-child { border-top: 0; }
.trace-step .t { font-family: var(--font-mono); font-size: 11px; color: var(--grey); white-space: nowrap; padding-top: 3px; }
.trace-step .step-body { min-width: 0; flex: 1; }
.trace-step .step-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.trace-step .system { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey-dark); }
.trace-step .payload { display: block; margin: 6px 0 0; font-family: var(--font-mono); font-size: 11.5px; line-height: 1.6; color: var(--grey-dark); overflow-wrap: anywhere; }
.trace-step.is-pending .payload { color: var(--warn); }
