.Root {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: fit-content;
}

.Preview {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-subtle);

  & > svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--text-muted);
  }
}

.PreviewText {
  font-size: 13px;
  color: var(--text-default);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.PreviewLabel {
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-muted);
  border-bottom: 1px solid var(--border-color);
}

.PreviewContent {
  padding: 16px;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;

  & svg {
    display: block;
  }
}

.PreviewImage {
  display: block;
  max-width: 200px;
  height: auto;
}
