.timeline {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.row.clickable {
  cursor: pointer;
  border-radius: var(--radius-sm);
  padding: 2px 0;
  transition: background 0.1s;
}

.row.clickable:hover {
  background: var(--bg-hover);
}

.row.clickable:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

.name {
  width: 120px;
  text-align: right;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 0;
}

.barBg {
  flex: 1;
  height: 16px;
  background: var(--bg-inset);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}

.barFill {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 5px;
  min-width: 8px;
  transition: opacity 0.1s;
}

.barLabel {
  font-family: var(--font-mono);
  font-size: 8px;
  color: white;
  font-weight: 500;
}

.ok {
  background: color-mix(in srgb, var(--success) 50%, transparent);
}

.slow {
  background: color-mix(in srgb, var(--warning) 50%, transparent);
}

.fail {
  background: color-mix(in srgb, var(--error) 50%, transparent);
}

.dur {
  width: 42px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
  text-align: right;
}

.selectedRow {
  background: var(--amber-bg);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius-sm);
  padding: 2px 0 2px 4px;
}

/* Action trigger — hidden by default, shown on hover/selected */
.actionsTrigger {
  opacity: 0;
  transition: opacity 0.1s;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.row:hover .actionsTrigger,
.actionsVisible {
  opacity: 1;
}

.actionsBtn {
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0 4px;
  font-size: 14px;
  line-height: 1;
  color: var(--text-muted);
  transition: all 0.1s;
  font-family: var(--font-body);
}

.actionsBtn:hover {
  background: var(--bg-hover);
  border-color: var(--border-subtle);
  color: var(--text-primary);
}

/* Badges */
.badge {
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 600;
  color: #fff;
  border-radius: 6px;
  padding: 0 4px;
  text-transform: uppercase;
  white-space: nowrap;
  margin-left: 4px;
  vertical-align: middle;
}

.badgeInfo    { background: var(--running); }
.badgeSuccess { background: var(--success); }
.badgeWarning { background: var(--amber); }
.badgeError   { background: var(--error); }

.empty {
  color: var(--text-muted);
  font-size: 12px;
  padding: 16px;
  text-align: center;
}
