.testament-tree-diff-view {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-8);
  min-width: 0;
}

.testament-tree-diff-view .testament-tree-diff-node {
  min-width: 0;
}

.testament-tree-diff-view .testament-tree-diff-node[data-tree-change='changed'] > .record-row-view > .accordion-view:not([data-outliner-own-accordion='true']), .testament-tree-diff-view .outliner-item:has(> .outliner-row .testament-tree-diff-node[data-tree-change='changed'] > .record-row-view > .accordion-view[data-outliner-own-accordion='true']), .testament-tree-diff-view .testament-tree-diff-node[data-tree-change='removed'] > .record-row-view > .accordion-view:not([data-outliner-own-accordion='true']), .testament-tree-diff-view .outliner-item:has(> .outliner-row .testament-tree-diff-node[data-tree-change='removed'] > .record-row-view > .accordion-view[data-outliner-own-accordion='true']) {
  z-index: 1;
}

.testament-tree-diff-view .testament-tree-diff-node[data-tree-change='removed'] > .record-row-view > .accordion-view:not([data-outliner-own-accordion='true']), .testament-tree-diff-view .outliner-item:has(> .outliner-row .testament-tree-diff-node[data-tree-change='removed'] > .record-row-view > .accordion-view[data-outliner-own-accordion='true']) {
  border-color: var(--border-color-red);
  outline: var(--border-width-base) solid var(--border-color-red);
}

.testament-tree-diff-view .testament-tree-diff-node[data-tree-change='changed'] > .record-row-view > .accordion-view:not([data-outliner-own-accordion='true']), .testament-tree-diff-view .outliner-item:has(> .outliner-row .testament-tree-diff-node[data-tree-change='changed'] > .record-row-view > .accordion-view[data-outliner-own-accordion='true']) {
  border-color: var(--border-color-yellow);
  outline: var(--border-width-base) solid var(--border-color-yellow);
}
