/* Edit person: hoist above canvas transform, toolbar, cards, wires, Unplaced, Share, pan. */
.hc-edit-overlay {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: none;
  place-items: center;
  padding: 1.25rem;
  pointer-events: auto;
}
.hc-edit-overlay.is-open {
  display: grid;
}
.hc-edit-overlay[hidden] {
  display: none !important;
}
.hc-edit-overlay-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  background: rgba(16, 28, 36, 0.5);
  cursor: pointer;
}
.hc-edit-overlay-slot {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}
.hc-edit-overlay .hc-edit[open] {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  isolation: isolate;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: min(42rem, calc(100vw - 2rem));
  max-width: min(42rem, calc(100vw - 2rem));
  max-height: 90vh;
  overflow: hidden;
  margin: 0;
  background: #fff;
  border: 1px solid #c5d8d4;
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 20px 48px rgba(16, 28, 36, 0.28);
  text-align: left;
  opacity: 1 !important;
  pointer-events: auto !important;
}
.hc-edit-overlay .hc-edit > summary {
  display: none;
}
.hc-edit-overlay .hc-edit-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0;
  padding: 0.85rem 1.15rem 0.7rem;
  border-bottom: 1px solid #e4eeec;
}
.hc-edit-overlay .hc-edit-bar::before {
  content: "Edit person";
  font-family: var(--font-display), Georgia, serif;
  font-size: 1.25rem;
  font-weight: 650;
  color: #142033;
}
.hc-edit-overlay .hc-edit-close {
  font-size: 0.85rem;
  padding: 0.3rem 0.85rem;
}
.hc-edit-overlay .hc-edit-form {
  overflow-y: auto;
  overscroll-behavior: contain;
  max-height: calc(90vh - 4.4rem);
  margin: 0;
  padding: 1rem 1.15rem 1.2rem;
  gap: 0.7rem;
  pointer-events: auto;
}
.hc-edit-overlay .hc-edit-form label {
  font-size: 0.86rem;
}
.hc-edit-overlay .hc-edit-form input[type="text"],
.hc-edit-overlay .hc-edit-form input[type="date"],
.hc-edit-overlay .hc-edit-form input[type="file"],
.hc-edit-overlay .hc-edit-form textarea,
.hc-edit-overlay .hc-edit-form select {
  width: 100%;
  box-sizing: border-box;
  font-size: 1rem;
  padding: 0.5rem 0.65rem;
  pointer-events: auto;
}
.hc-edit-overlay .hc-edit-form textarea {
  min-height: 6.5rem;
}
.hc-edit-overlay .fam-thumbs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}
.hc-edit-overlay .fam-thumb img {
  height: 5.5rem;
}
.hc-edit-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.25rem;
}
.hc-edit-home {
  display: none !important;
}
body.is-edit-open {
  overflow: hidden;
}
body.is-edit-open #hc-chart,
body.is-edit-open .tree-chrome,
body.is-edit-open #share-panel,
body.is-edit-open #people-tray,
body.is-edit-open .topbar {
  pointer-events: none !important;
}
body.is-edit-open .hc-edit-overlay,
body.is-edit-open .hc-edit-overlay * {
  pointer-events: auto;
}
body.is-edit-open .fam-tour-spot,
body.is-edit-open .fam-tour-tip {
  visibility: hidden !important;
  pointer-events: none !important;
}
