.claudian-subagent-list {
  margin: 8px 0;
}

.claudian-text-block+.claudian-subagent-list {
  margin-top: 8px;
}

.claudian-subagent-list+.claudian-text-block {
  margin-top: 8px;
}

.claudian-tool-call+.claudian-subagent-list {
  margin-top: 8px;
}

.claudian-subagent-list+.claudian-tool-call {
  margin-top: 8px;
}

.claudian-subagent-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  cursor: pointer;
  overflow: hidden;
}

.claudian-subagent-icon {
  display: flex;
  align-items: center;
  color: var(--interactive-accent);
  flex-shrink: 0;
}

.claudian-subagent-icon svg {
  width: 16px;
  height: 16px;
}

.claudian-subagent-label {
  flex: 1;
  font-family: var(--font-monospace);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-normal);
}

.claudian-subagent-count {
  font-size: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.claudian-subagent-status {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.claudian-subagent-status svg {
  width: 14px;
  height: 14px;
}

.claudian-subagent-status.status-running {
  color: var(--text-accent);
}

.claudian-subagent-status.status-completed {
  color: var(--color-green);
}

.claudian-subagent-status.status-error {
  color: var(--color-red);
}

.claudian-subagent-content {
  padding: 4px 0;
  padding-inline-start: 16px;
  margin-inline-start: 7px;
  border-inline-start: 2px solid var(--background-modifier-border);
}

.claudian-subagent-section {
  margin: 2px 0 6px;
}

.claudian-subagent-section-header {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  font-family: var(--font-monospace);
  font-size: 12px;
  color: var(--text-muted);
  padding: 2px 0;
}

.claudian-subagent-section-header:hover {
  color: var(--text-normal);
}

.claudian-subagent-section-title {
  flex: 1;
  min-width: 0;
}

.claudian-subagent-section-body {
  padding-inline-start: 6px;
}

.claudian-subagent-prompt-text,
.claudian-subagent-result-output {
  font-family: var(--font-monospace);
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-muted);
  white-space: pre-wrap;
  word-break: break-word;
}

.claudian-subagent-result-output {
  max-height: 220px;
  overflow-y: auto;
}

.claudian-subagent-tools {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.claudian-subagent-tool-item {
  display: block;
}

.claudian-subagent-tool-header {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  overflow: hidden;
  padding: 2px 0;
}

.claudian-subagent-tool-header:hover {
  opacity: 0.85;
}

.claudian-subagent-tool-icon {
  display: flex;
  align-items: center;
  color: var(--text-accent);
  flex-shrink: 0;
}

.claudian-subagent-tool-icon svg {
  width: 13px;
  height: 13px;
}

.claudian-subagent-tool-name {
  font-family: var(--font-monospace);
  font-size: 12px;
  color: var(--text-normal);
  white-space: nowrap;
  flex-shrink: 0;
}

.claudian-subagent-tool-summary {
  font-family: var(--font-monospace);
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.claudian-subagent-tool-status {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.claudian-subagent-tool-status svg {
  width: 12px;
  height: 12px;
}

.claudian-subagent-tool-status.status-running {
  color: var(--text-accent);
}

.claudian-subagent-tool-status.status-completed {
  color: var(--color-green);
}

.claudian-subagent-tool-status.status-error,
.claudian-subagent-tool-status.status-blocked {
  color: var(--color-red);
}

.claudian-subagent-tool-content {
  padding: 2px 0 2px 16px;
}

.claudian-subagent-tool-empty {
  color: var(--text-faint);
  font-style: italic;
  font-family: var(--font-monospace);
  font-size: 12px;
  padding: 2px 0;
}

.claudian-subagent-status-text {
  font-size: 11px;
  font-family: var(--font-monospace);
  color: var(--text-muted);
  margin-inline-start: auto;
  padding-inline-start: 8px;
}

.claudian-subagent-list.async .claudian-subagent-icon {
  color: var(--interactive-accent);
}

.claudian-subagent-list.async.pending .claudian-subagent-status-text {
  color: var(--text-muted);
}

.claudian-subagent-list.async.running .claudian-subagent-status-text {
  color: var(--text-accent);
}

.claudian-subagent-list.async.awaiting .claudian-subagent-status-text {
  color: var(--color-yellow);
}

.claudian-subagent-list.async.completed .claudian-subagent-status-text {
  color: var(--color-green);
}

.claudian-subagent-list.async.error .claudian-subagent-status-text {
  color: var(--color-red);
}

.claudian-subagent-list.async.orphaned .claudian-subagent-status-text {
  color: var(--color-orange);
}
