#snapshot-conflict-modal .ds-modal-footer--stack {
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
}
#snapshot-conflict-modal .ds-modal-footer--stack .ds-btn { width: 100%; }
#snapshot-conflict-modal .ds-conflict-body {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-4);
  min-width: 0;
  max-height: min(50vh, 22rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
#snapshot-conflict-modal .ds-conflict-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--ds-space-3);
  min-width: 0;
}
#snapshot-conflict-modal .ds-conflict-col {
  min-width: 0;
  padding: var(--ds-space-3);
  background: var(--ds-surface-inset, var(--ds-surface));
  border-radius: var(--ds-radius-md, 0.5rem);
}
#snapshot-conflict-modal .ds-conflict-col-label,
#snapshot-conflict-modal .ds-conflict-diff-title {
  margin: 0 0 var(--ds-space-2);
  font-size: var(--ds-text-caption);
  font-weight: var(--ds-weight-semibold);
  color: var(--ds-text-muted);
}
#snapshot-conflict-modal .ds-conflict-meta,
#snapshot-conflict-modal .ds-conflict-diff-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
#snapshot-conflict-modal .ds-conflict-meta-row,
#snapshot-conflict-modal .ds-conflict-diff-row {
  display: flex;
  align-items: baseline;
  gap: var(--ds-space-2);
  min-width: 0;
}
#snapshot-conflict-modal .ds-conflict-meta-row { justify-content: space-between; }
#snapshot-conflict-modal .ds-conflict-meta-k,
#snapshot-conflict-modal .ds-conflict-diff-kind,
#snapshot-conflict-modal .ds-conflict-diff-more {
  font-size: var(--ds-text-caption);
  color: var(--ds-text-muted);
}
#snapshot-conflict-modal .ds-conflict-meta-v {
  min-width: 0;
  text-align: right;
  font-size: var(--ds-text-body);
  font-weight: var(--ds-weight-medium);
  font-variant-numeric: tabular-nums;
  color: var(--ds-text);
  overflow-wrap: anywhere;
}
#snapshot-conflict-modal .ds-conflict-diff-mark {
  flex: 0 0 1.1rem;
  font-weight: var(--ds-weight-semibold);
  color: var(--ds-text-muted);
}
#snapshot-conflict-modal .ds-conflict-diff-mark--add { color: var(--ds-accent); }
#snapshot-conflict-modal .ds-conflict-diff-mark--remove { color: var(--ds-amount-negative); }
#snapshot-conflict-modal .ds-conflict-diff-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: var(--ds-text-body);
  line-height: 1.35;
  color: var(--ds-text);
}
#snapshot-conflict-modal .ds-conflict-diff-more { margin: var(--ds-space-2) 0 0; }
@media (max-width: 640px) {
  #snapshot-conflict-modal .ds-modal--conflict { max-width: 100%; }
  #snapshot-conflict-modal .ds-conflict-body { max-height: min(42vh, 18rem); }
}
