.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.row {
  display: flex;
  align-items: center;
  min-height: 32px;
}

.icon {
  display: inline-flex;
  flex: none;
  margin-right: 8px;
  color: var(--dsw-alias-state-business-primary);
}

.title {
  flex: none;
  color: var(--dsw-alias-state-business-primary);
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
}

.separator {
  flex: none;
  width: 2px;
  height: 2px;
  margin: 0 8px;
  border-radius: 50%;
  background: var(--dsw-alias-state-business-primary);
}

.summary,
.error {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--dsw-alias-label-secondary);
  font-size: 13px;
  line-height: 24px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.error {
  color: var(--dsw-alias-state-error-primary);
}

.status {
  flex: none;
  margin-left: 8px;
  color: var(--dsw-alias-label-caption);
  font-size: 12px;
  line-height: 24px;
}

.card[data-cordis-status='awaiting-approval'] .status,
.card[data-cordis-status='client-pending'] .status {
  color: var(--dsw-alias-state-warn-label);
}

.card[data-cordis-status='running'] .status {
  color: var(--dsw-alias-state-success-primary);
}

.card[data-cordis-status='failed'] .status {
  color: var(--dsw-alias-state-error-primary);
}

.inspect {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-left: 4px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--dsw-alias-label-tertiary);
  cursor: pointer;
  opacity: 0;
}

.card:hover .inspect,
.inspect:focus-visible {
  opacity: 1;
}

.inspect:hover {
  background: var(--dsw-alias-interactive-bg-hover);
}

.message {
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--dsw-alias-button-ghost-active-fill);
  color: var(--dsw-alias-label-tertiary);
  font-size: 12px;
  line-height: 18px;
}

.business {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--dsw-alias-border-l2);
  border-radius: 12px;
  background: var(--dsw-alias-bg-base);
}

.output {
  margin: 0;
  padding: 10px 12px;
  overflow: auto;
  border: 1px solid var(--dsw-alias-border-l2);
  border-radius: 8px;
  background: var(--dsw-alias-markdown-code-block);
  color: var(--dsw-alias-label-secondary);
  font: var(--dsw-font-markdown-code-block-small);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.business .output {
  border: none;
  border-radius: 0;
}
