.apiCompareContainer {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: auto;
  padding: 24px;
  gap: 16px;
}

.summary {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  background: var(--bit-bg-dent, #f6f6f6);
  border-radius: 8px;
  font-size: 13px;
}

.summaryDivider {
  opacity: 0.3;
  color: var(--bit-text-color-light, #6c707c);
}

.summaryBadge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 12px;
  white-space: nowrap;
}

.addedBadge {
  composes: summaryBadge;
  background: color-mix(in srgb, var(--bit-color-added, #2ea043) 15%, transparent);
  color: var(--bit-color-added, #2ea043);
}

.removedBadge {
  composes: summaryBadge;
  background: color-mix(in srgb, var(--bit-color-removed, #f85149) 15%, transparent);
  color: var(--bit-color-removed, #f85149);
}

.modifiedBadge {
  composes: summaryBadge;
  background: color-mix(in srgb, var(--bit-color-modified, #d29922) 15%, transparent);
  color: var(--bit-color-modified, #d29922);
}

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

.sectionTitle {
  margin: 16px 0 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--bit-text-color-light, #6c707c);
}

.diffEntry {
  border: 1px solid var(--bit-border-color-lightest, #ededed);
  border-radius: 8px;
  overflow: hidden;
}

.diffEntryHeader {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  cursor: pointer;
  user-select: none;

  &:hover {
    background: var(--bit-bg-dent, #f6f6f6);
  }
}

.statusBadge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  flex-shrink: 0;
  white-space: nowrap;
}

.statusAdded {
  composes: statusBadge;
  background: color-mix(in srgb, var(--bit-color-added, #2ea043) 15%, transparent);
  color: var(--bit-color-added, #2ea043);
}

.statusRemoved {
  composes: statusBadge;
  background: color-mix(in srgb, var(--bit-color-removed, #f85149) 15%, transparent);
  color: var(--bit-color-removed, #f85149);
}

.statusModified {
  composes: statusBadge;
  background: color-mix(in srgb, var(--bit-color-modified, #d29922) 15%, transparent);
  color: var(--bit-color-modified, #d29922);
}

.exportName {
  font-weight: 600;
  font-size: 14px;
  font-family: var(--bit-font-mono, monospace);
  color: var(--bit-text-color-heavy, #2b2b2b);
}

.schemaType {
  color: var(--bit-text-color-light, #6c707c);
  font-size: 12px;
}

.impactBadge {
  composes: summaryBadge;
  margin-left: auto;
  font-size: 11px;
}

.expandIcon {
  color: var(--bit-text-color-light, #6c707c);
  font-size: 10px;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.expandIconOpen {
  composes: expandIcon;
  transform: rotate(90deg);
}

.diffEntryBody {
  padding: 0 16px 16px;
  border-top: 1px solid var(--bit-border-color-lightest, #ededed);
}

.detailsList {
  list-style: none;
  padding: 12px 0 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detailItem {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--bit-text-color-heavy, #2b2b2b);
}

.detailDot {
  width: 7px;
  height: 7px;
  min-width: 7px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

.dotBreaking {
  composes: detailDot;
  background: var(--bit-color-removed, #f85149);
}

.dotNonBreaking {
  composes: detailDot;
  background: var(--bit-color-added, #2ea043);
}

.dotPatch {
  composes: detailDot;
  background: var(--bit-color-modified, #d29922);
}

.detailDescription {
  color: var(--bit-text-color-heavy, #2b2b2b);
}

.signatureBlock {
  margin-top: 12px;
  padding: 12px;
  background: var(--bit-bg-dent, #f6f6f6);
  border-radius: 6px;
  font-family: var(--bit-font-mono, monospace);
  font-size: 12px;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.6;
  color: var(--bit-text-color-heavy, #2b2b2b);
}

.signatureLabel {
  font-weight: 600;
  color: var(--bit-text-color-light, #6c707c);
  margin-top: 12px;
  margin-bottom: 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.signatureRemoved {
  composes: signatureBlock;
  text-decoration: line-through;
  opacity: 0.6;
}

.emptyState {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--bit-text-color-light, #6c707c);
  font-size: 14px;
}

.toggleSignatures {
  background: none;
  border: none;
  color: var(--bit-accent-color, #0366d6);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 0;
  margin-top: 12px;

  &:hover {
    text-decoration: underline;
  }
}
