.mermaidDiagram {
  position: relative;
  width: 100%;
  overflow: auto;
  border-radius: 8px;
  background: #fafafa;
  border: 1px solid #f0f0f0;
  margin: 12px 0;
}

.isLoading {
  min-height: 176px;
}

.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 176px;
  color: #999;
  font-size: 14px;
}

.content {
  padding: 16px;
  display: flex;
  justify-content: center;

  svg {
    max-width: 100%;
    height: auto;
  }
}

.mermaidError {
  background: #fff2f0;
  border: 1px solid #ffccc7;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 12px 0;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 13px;
  color: #ff4d4f;

  code {
    color: inherit;
  }
}
