.block {
  margin: 0;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  overflow: hidden;
}

.pending {
  border-color: #dbeafe;
  background: #f0f7ff;
}

.success {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.error {
  border-color: #fecaca;
  background: #fef2f2;
}

.summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  user-select: none;
}

.summary::-webkit-details-marker {
  display: none;
}

.toolName {
  font-weight: 600;
  color: #374151;
  font-size: 0.92em;
}

.status {
  flex-shrink: 0;
  font-size: 11px;
  color: #6b7280;
}

.pending .status {
  color: #2563eb;
}

.success .status {
  color: #15803d;
}

.error .status {
  color: #b91c1c;
}

.detail {
  margin: 0;
  padding: 8px 10px 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.args {
  margin: 0 0 6px;
  font-size: 0.85em;
  color: #6b7280;
  font-family: var(--font-mono, ui-monospace, monospace);
  word-break: break-all;
}

.detailPre {
  margin: 0;
  padding: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: inherit;
  line-height: inherit;
  font-family: var(--font-mono, ui-monospace, monospace);
}

.detailPre :global(.diffAdd) {
  color: #15803d;
}

.detailPre :global(.diffDel) {
  color: #b91c1c;
}

.detailPre :global(.diffMeta) {
  color: #6b7280;
}
