.bar {
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
  font-size: var(--font-xs);
}

.hidden {
  display: none;
}

.summaryRow {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 4px 10px;
  color: var(--fg-secondary);
}

.summaryToggle {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  padding: 2px 0;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

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

.caret {
  color: var(--fg-tertiary);
  font-size: 10px;
  width: 10px;
  text-align: center;
}

.label {
  color: var(--fg-primary);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 10px;
}

.count {
  color: var(--fg-secondary);
  font-variant-numeric: tabular-nums;
}

.errCount {
  color: var(--err);
}

.tuiMode {
  color: var(--accent);
}

.details {
  padding: 4px 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 240px;
  overflow: auto;
}

.section {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sectionLabel {
  color: var(--fg-tertiary);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.badge {
  font-size: 9px;
  padding: 1px 5px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.badgeOk {
  background: color-mix(in srgb, var(--ok, #2ea043) 20%, transparent);
  color: var(--ok, #2ea043);
}

.badgeErr {
  background: color-mix(in srgb, var(--err, #d73a49) 20%, transparent);
  color: var(--err, #d73a49);
}

.badgeInferred {
  background: var(--bg-hover);
  color: var(--fg-tertiary);
}

.badgeTui {
  background: color-mix(in srgb, var(--accent, #3b82f6) 20%, transparent);
  color: var(--accent, #3b82f6);
}

.cmd {
  font-family: var(--font-mono);
  color: var(--fg-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.exit {
  color: var(--fg-tertiary);
  font-family: var(--font-mono);
}

.historyBtn {
  flex-shrink: 0;
  padding: 1px 6px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--fg-secondary);
  font: inherit;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.historyBtn:hover {
  color: var(--fg-primary);
  background: var(--bg-hover);
}
