.shell-list-detail-item > p {
  margin: 0 0 var(--shell-space-4);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  -webkit-user-select: text;
  user-select: text;
}

.shell-content > .shell-segments,
.shell-list-detail-list-content > .shell-segments {
  margin-block: var(--shell-space-6) var(--shell-space-8);
}

[data-action="edit-interaction"] .shell-row-value {
  align-self: flex-start;
  flex: none;
  font-size: var(--shell-text-small);
}

[data-action="edit-interaction"] .shell-subtitle {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

/* Before a contact is selected, give the directory the same reading width as a page. */
.shell-list-detail[data-layout="split"]:has(.shell-list-detail-item:empty) {
  grid-template-columns: minmax(0, 1fr);
  width: min(100%, 720px);
  margin-inline: auto;
}
.shell-list-detail[data-layout="split"]:has(.shell-list-detail-item:empty) .shell-list-detail-list {
  border-inline-end: 0;
}
.shell-list-detail[data-layout="split"] .shell-list-detail-item:empty {
  display: none;
}
