.runs-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; margin: 0 0 4px; }
#runs-views { flex: 1 1 auto; min-width: 0; }
.priority-switch { display: flex; align-items: center; gap: 8px; margin: 0 0 8px auto; }
.priority-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.seg { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--track); }
.seg .tab { margin: 0; border: 0; border-radius: 999px; padding: 6px 16px; font-size: 14px; }
.seg .tab[aria-checked="true"] { background: var(--accent); color: var(--surface); }

/* Horizontal result bars, one panel per runtime */
.rb-split { display: grid; grid-template-columns: 1fr; gap: 24px; }
.rb-panel { min-width: 0; }
.rb-panel { border-top: 1px solid var(--line-strong); padding: 10px 0 0; }
.rb-title { margin: 0 0 8px; font-size: 15px; font-weight: 600; }
.rb-split .rb-row { grid-template-columns: 1fr 120px; gap: 4px 8px; }
.rb-split .rb-label { grid-column: 1 / -1; }
.rb-split .rb-label .setting { display: inline; }

.rbars { display: grid; gap: 8px; margin: 4px 0 6px; }
.rb-row { display: grid; grid-template-columns: 300px 1fr 130px; align-items: center; gap: 12px; }
.rb-label { min-width: 0; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-label .rb-model { font-weight: 600; color: var(--text); }
.rb-label .setting { margin-left: 6px; }
.rb-track { height: 16px; border-radius: 4px; background: var(--track); overflow: hidden; }
.rb-bar { display: block; height: 100%; border-radius: 4px; background: var(--t4); }
.rb-bar.think-on { background: var(--t2); }
.rb-value { font-size: 13px; font-weight: 600; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rb-unit { display: block; font-size: 11px; font-weight: 400; color: var(--muted); }
.rb-row.is-planned .rb-value { font-weight: 500; color: var(--muted); }
.rb-row.is-planned .rb-track { background: repeating-linear-gradient(135deg, var(--track) 0 6px, transparent 6px 12px); }
.rb-group { margin: 10px 0 2px; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }

.runs-table td.model-cell { white-space: normal; min-width: 180px; }
.runs-table .sub { display: block; font-size: 12px; color: var(--muted); }
.status { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 500; }
.status-done { background: color-mix(in srgb, var(--t1) 18%, transparent); color: var(--text); }
.status-planned { background: var(--track); color: var(--muted); }
.status-failed { background: color-mix(in srgb, var(--amber) 22%, transparent); color: var(--text); }

@media (max-width: 640px) {
  .rb-row { grid-template-columns: 1fr 120px; gap: 4px 8px; }
  .rb-label { grid-column: 1 / -1; font-size: 13px; }
  .rb-label .setting { display: inline; }
}
.swatch.rb-bar { height: 10px; background: var(--t4); }
.swatch.rb-bar.think-on { background: var(--t2); }
.swatch-planned { border: 1px solid var(--line-strong); background: repeating-linear-gradient(135deg, var(--track) 0 2px, transparent 2px 4px); }
.runs-table tr.is-planned td { color: var(--muted); }
.runs-table tr.is-planned strong { color: var(--text); font-weight: 500; }

/* Result per task */
.task-table td, .task-table th { vertical-align: top; }
.task-table thead th { white-space: normal; vertical-align: bottom; text-transform: none; letter-spacing: 0; font-size: 12.5px; min-width: 96px; }
.task-table .sub { display: block; font-size: 12px; font-weight: 400; color: var(--muted); white-space: normal; }
.task-table th.task-name { white-space: normal; font-weight: 500; }
.task-cell { font-variant-numeric: tabular-nums; }
.task-cell .pct { font-weight: 600; }
.task-cell.zero .pct { color: var(--muted); font-weight: 500; }
.task-cell .sub.reason { color: var(--amber); }
.level { font-size: 11px; padding: 1px 7px; background: var(--track); color: var(--muted); }
@media (max-width: 640px) {
  .task-table td, .task-table th { padding: 9px 5px; }
  .task-table thead th { min-width: 76px; font-size: 11.5px; }
  .task-table thead th:first-child { min-width: 0; }
  .task-title { display: none !important; }
}

.rb-chart + .rb-chart { margin-top: 28px; }
.rb-chart-title { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.rb-chart .rb-panel { margin-top: 12px; }
.rb-views { margin-bottom: 4px; }
.rb-views .tab { padding: 6px 10px; font-size: 14px; white-space: nowrap; }
.rb-chart .rb-panel:first-of-type { margin-top: 0; }
.rb-chart-title { display: none; }
.rb-views { border-bottom: 0; }
.rb-views .tab { margin-bottom: 0; border: 1px solid transparent; border-radius: 999px; }
.rb-views .tab:hover { background: var(--track); }
.rb-views .tab[aria-selected="true"] { background: var(--track); border-color: var(--line-strong); }
/* Quiet priority switch: small muted text, the selected label bold with an underline. */
.priority-switch { gap: 6px; }
.priority-label { font-size: 12px; font-weight: 400; }
.seg { padding: 0; gap: 10px; border: 0; background: none; border-radius: 0; }
.seg .tab { padding: 2px 0; font-size: 12px; font-weight: 400; color: var(--muted); border-radius: 0; border-bottom: 1px solid transparent; background: none; }
.seg .tab:hover { color: var(--text); }
.seg .tab[aria-checked="true"] { background: none; color: var(--text); font-weight: 600; border-bottom-color: var(--text); }
/* Priority options as small label chips: outlined when off, filled when selected. */
.seg { gap: 6px; }
.seg .tab { padding: 2px 9px; font-size: 12px; font-weight: 500; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 999px; background: none; }
.seg .tab:hover { color: var(--text); }
.seg .tab[aria-checked="true"] { background: var(--track); color: var(--text); font-weight: 600; border-color: var(--muted); }
.runs-settings { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 16px; margin-left: auto; }
.runs-settings .priority-switch { margin: 0 0 8px; }
.rb-label .tier-badge { min-width: 52px; padding: 2px 8px; font-size: 12px; margin-right: 8px; vertical-align: 1px; }
.tier-none { background: transparent; color: var(--muted); border: 1px solid var(--border, currentColor); font-weight: 500; }
