[data-wd-demo="agent-procedure-and-tool-discovery"] .ag-which {
  width: auto;
  min-width: 14rem;
}

[data-wd-demo="agent-procedure-and-tool-discovery"] .wd-topbar .wd-input {
  width: 220px;
}

[data-wd-demo="agent-procedure-and-tool-discovery"] [data-wd-type] {
  white-space: pre-wrap;
}

[data-wd-demo="agent-procedure-and-tool-discovery"] .ag-have,
[data-wd-demo="agent-procedure-and-tool-discovery"] .ag-io {
  display: grid;
  gap: 8px;
}

[data-wd-demo="agent-procedure-and-tool-discovery"] .ag-have li,
[data-wd-demo="agent-procedure-and-tool-discovery"] .ag-io li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

[data-wd-demo="agent-procedure-and-tool-discovery"] .ag-have .wd-badge,
[data-wd-demo="agent-procedure-and-tool-discovery"] .ag-io .wd-badge {
  flex: none;
  white-space: nowrap;
}

[data-wd-demo="agent-procedure-and-tool-discovery"] .ag-keep {
  box-shadow: inset 3px 0 0 #0d6efd;
}

[data-wd-demo="agent-procedure-and-tool-discovery"] .ag-drop {
  opacity: 0.72;
}

[data-wd-demo="agent-procedure-and-tool-discovery"] .ag-chain {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.15fr) auto minmax(0, 1.15fr);
  gap: 8px;
  align-items: stretch;
}

[data-wd-demo="agent-procedure-and-tool-discovery"] .ag-node {
  border: 1px solid #373b3e;
  border-radius: 8px;
  background: #23272b;
  padding: 10px 12px;
  font-size: 13px;
}

[data-wd-demo="agent-procedure-and-tool-discovery"] .ag-node span {
  display: block;
  margin-top: 4px;
  color: #6edff6;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 12px;
}

[data-wd-demo="agent-procedure-and-tool-discovery"] .ag-node-tool {
  border-color: #0d6efd;
  box-shadow: 0 0 0 1px rgba(13, 110, 253, 0.35);
}

[data-wd-demo="agent-procedure-and-tool-discovery"] .ag-arrow {
  align-self: center;
  color: #8f979e;
  font-size: 18px;
}

[data-wd-demo="agent-procedure-and-tool-discovery"] .ag-arrow-feed {
  color: #6edff6;
}

@media (max-width: 760px) {
  [data-wd-demo="agent-procedure-and-tool-discovery"] .ag-chain {
    grid-template-columns: 1fr;
  }

  [data-wd-demo="agent-procedure-and-tool-discovery"] .ag-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }
}
