.claudian-tool-call {
  margin: 8px 0;
}

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

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

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

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

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

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

.claudian-tool-summary:empty {
  display: none;
}

/* Legacy: StatusPanel bash entries still use claudian-tool-label */
.claudian-tool-label {
  font-family: var(--font-monospace);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-normal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.claudian-tool-current {
  font-family: var(--font-monospace);
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

.claudian-tool-current:empty {
  display: none;
}

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

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

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

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

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

.claudian-tool-status.status-blocked {
  color: var(--color-orange);
}

/* Tool call content - border style (like thinking block) */
.claudian-tool-content {
  padding: 4px 0;
  padding-inline-start: 16px;
  margin-inline-start: 7px;
  border-inline-start: 2px solid var(--background-modifier-border);
}

/* Tool content variants that render inline widgets instead of bordered results */
.claudian-tool-content-todo,
.claudian-tool-content-ask {
  border-inline-start: none;
  margin-inline-start: 0;
  padding-inline-start: 0;
}

/* Expanded content: per-line rendering */
.claudian-tool-lines {
  font-family: var(--font-monospace);
  font-size: 12px;
  line-height: 1.4;
  overflow-x: auto;
}

.claudian-tool-line {
  padding: 1px 0;
  color: var(--text-muted);
  white-space: pre;
}

/* Hover highlight for file search results */
.claudian-tool-line.hoverable:hover {
  background: var(--background-modifier-hover);
}

/* Truncation indicator: "... N more lines" */
.claudian-tool-truncated {
  color: var(--text-faint);
  font-style: italic;
  padding: 4px 0;
  font-family: var(--font-monospace);
  font-size: 12px;
}

/* ToolSearch expanded: icon + tool name rows */
.claudian-tool-search-item {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 0;
  font-family: var(--font-monospace);
  font-size: 12px;
  color: var(--text-muted);
}

.claudian-tool-search-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  color: var(--text-faint);
}

.claudian-tool-search-icon svg {
  width: 14px;
  height: 14px;
}

/* Web search links */
.claudian-tool-link {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 3px 0;
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  font-family: var(--font-monospace);
  font-size: 12px;
  line-height: 1.4;
}

.claudian-tool-link:hover {
  color: var(--text-accent);
}

.claudian-tool-link-icon {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  margin-top: 2px;
  color: var(--text-faint);
}

.claudian-tool-link-icon svg {
  width: 12px;
  height: 12px;
}

.claudian-tool-link-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Web search summary section */
.claudian-tool-web-summary {
  font-family: var(--font-monospace);
  font-size: 12px;
  color: var(--text-muted);
  padding-top: 4px;
  border-top: 1px solid var(--background-modifier-border);
  margin-top: 4px;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 200px;
  overflow-y: auto;
}

/* Empty state for file search */
.claudian-tool-empty {
  color: var(--text-faint);
  font-style: italic;
  font-family: var(--font-monospace);
  font-size: 12px;
  padding: 4px 0;
}

.claudian-tool-result-row {
  display: flex;
  align-items: flex-start;
}

.claudian-tool-result-text {
  font-family: var(--font-monospace);
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  white-space: pre-wrap;
  overflow: hidden;
  flex: 1;
}

.claudian-tool-result-item {
  display: block;
  margin-bottom: 2px;
}

.claudian-tool-result-item:last-child {
  margin-bottom: 0;
}

