#modalOverlay .editor-linkedin-row {
  display: flex;
  flex-flow: row nowrap;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  min-width: 0;
}
#modalOverlay .modal-form-group .editor-linkedin-row > input#editLinkedIn {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#modalOverlay a.editor-profile-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--ui-r, 8px);
  background: var(--input-bg);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
#modalOverlay a.editor-profile-link:hover {
  border-color: var(--text);
}
#modalOverlay .editor-profile-link[hidden],
#modalOverlay .profile-photo-view[hidden] {
  display: none;
}
#modalOverlay .profile-photo-view {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 110px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
#modalOverlay .profile-photo-view:disabled {
  opacity: 1;
  cursor: default;
}
#modalOverlay .profile-photo-view:focus-visible,
#modalOverlay .editor-profile-link:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}
#imagePopout.editor-photo-preview {
  z-index: 11000;
  align-items: flex-start;
  padding-top: 80px;
  padding-bottom: 24px;
}
#imagePopout.editor-photo-preview .image-popout-controls,
#imagePopout.editor-photo-preview .image-popout-counter {
  display: none;
}
#imagePopout.editor-photo-preview .image-popout-content {
  width: min(1000px, calc(100vw - 32px));
  height: calc(100vh - 112px);
  height: calc(100dvh - 112px);
  gap: 8px;
}
#imagePopout.editor-photo-preview .image-popout-name {
  flex: 0 1 auto;
  max-width: 100%;
  max-height: 25%;
  overflow: auto;
  overflow-wrap: anywhere;
}
#imagePopout.editor-photo-preview .image-popout-container {
  flex: 1 1 auto;
  width: 100%;
  height: 0;
  min-height: 0;
}

#imagePopout.editor-photo-preview.editor-photo-error .image-popout-counter {
  display: block;
}

#modalOverlay .location-review {
  min-width: 0;
  grid-column: 1 / -1;
  max-width: 100%;
  overflow-wrap: anywhere;
}
#modalOverlay .location-review button {
  min-height: 48px;
  max-width: 100%;
  white-space: normal;
}
#modalOverlay .location-review p {
  margin: 8px 0;
}

.editor-delete-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.editor-delete-section button {
  min-height: 44px;
  max-width: 100%;
  white-space: normal;
}
.editor-delete-section #editorDeleteBtn {
  color: #b42318;
  border-color: #b42318;
}
body.dark-mode .editor-delete-section #editorDeleteBtn {
  color: #ffaaa4;
  border-color: #ffaaa4;
}
.editor-delete-section p {
  font-size: 13px;
  line-height: 1.5;
  margin: 8px 0;
  overflow-wrap: anywhere;
}
.editor-delete-section [hidden] {
  display: none;
}

/* Not available: an X beside a detail the person has not shared. */
#modalOverlay .editor-na-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
#modalOverlay .modal-form-group .editor-na-row > input {
  flex: 1 1 auto;
  min-width: 0;
}
#modalOverlay .editor-na-btn {
  flex: 0 0 44px;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--text-secondary, var(--text));
  font-size: 1rem;
  cursor: pointer;
}
#modalOverlay .editor-na-btn[aria-pressed="true"] {
  background: var(--danger-soft-bg);
  color: var(--danger-soft-text);
  border-color: var(--danger-line);
  font-weight: 700;
}
#modalOverlay .editor-na-btn[hidden] {
  display: none;
}
#modalOverlay input.editor-na-on::placeholder {
  color: var(--danger-soft-text);
  font-style: italic;
}
