#relation-map-root { overflow: visible !important; }
#relation-map-root .pedigree-map { width: 100%; max-width: 100%; margin: 0 auto; color: #4a5759; }
#relation-map-root .pedigree-title {
  margin: 0 0 18px;
  text-align: center;
  font-family: 'NARZISS', serif;
  font-size: 34px;
  line-height: 1.1;
  color: #4a5759;
}
#relation-map-root .pedigree-scroll { overflow: auto; padding-bottom: 10px; }
#relation-map-root .pedigree-canvas { position: relative; margin: 0 auto; }
#relation-map-root .pedigree-lines { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
#relation-map-root .ped-line { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#relation-map-root .ped-line-marriage { stroke: #7d8a8a; }
#relation-map-root .ped-line-official_parent { stroke: #7d8a8a; }
#relation-map-root .ped-line-favorite { stroke: #8f6c3a; stroke-dasharray: 7 4; }
#relation-map-root .ped-line-affair { stroke: #8f6c3a; stroke-dasharray: 4 4; }
#relation-map-root .ped-line-secret_parent { stroke: #6c6c6c; stroke-dasharray: 2 5; }
#relation-map-root .ped-line-twin,
#relation-map-root .ped-line-triplet { stroke: #9b8866; stroke-dasharray: 5 4; }
#relation-map-root .ped-marker-lock { font-size: 14px; text-anchor: middle; dominant-baseline: middle; }
#relation-map-root .ped-node-wrap,
#relation-map-root .ped-union-wrap { position: absolute; }
#relation-map-root .ped-node { position: relative; width: 112px; text-align: center; z-index: 2; }
#relation-map-root .ped-node:hover,
#relation-map-root .ped-node.is-open,
#relation-map-root .ped-node:focus-within { z-index: 50; }
#relation-map-root .ped-node-name {
  min-height: 28px;
  margin: 0 0 4px;
  color: #4a5759;
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-size: 10px;
  font-weight: bold;
  line-height: 1.2;
  text-transform: uppercase;
}
#relation-map-root .ped-node-name a { color: #4a5759 !important; text-decoration: none; }
#relation-map-root .ped-node-status {
  min-height: 12px;
  margin: 0 0 4px;
  color: #777;
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-size: 9px;
  font-weight: bold;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
#relation-map-root .ped-node-status-empty { visibility: hidden; }
#relation-map-root .ped-node-avatar {
  width: 84px;
  height: 84px;
  margin: 0 auto 6px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #f0f0f0;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  box-sizing: border-box;
  background: transparent;
}
#relation-map-root .ped-node-default .ped-node-avatar { border-color: #f0f0f0; }
#relation-map-root .ped-node-dead .ped-node-avatar { border-color: #2f2f2f; }
#relation-map-root .ped-node-spec .ped-node-avatar { border-color: #983e3e; }
#relation-map-root .ped-node-wanted .ped-node-avatar { border-color: #60765b; }
#relation-map-root .ped-node-avatar .profile-card,
#relation-map-root .ped-node-avatar img,
#relation-map-root .ped-node-avatar .user-avatar,
#relation-map-root .ped-node-avatar-fallback {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
}
#relation-map-root .ped-node-avatar .profile-card { margin: 0; border: none; box-shadow: none; background: transparent; }
#relation-map-root .ped-node-avatar img { object-fit: cover; object-position: top center; }
#relation-map-root .ped-node-avatar .user-avatar { background-size: cover; background-position: center 30%; }
#relation-map-root .ped-node-avatar-fallback {
  display: flex; align-items: center; justify-content: center;
  background: #c8cccc; color: #4a5759; font-size: 24px; font-weight: bold;
  font-family: 'Trebuchet MS', Arial, sans-serif;
}
#relation-map-root .ped-node-meta {
  color: #6f7777;
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-size: 10px;
  font-style: italic;
  line-height: 1.2;
}
#relation-map-root .ped-union {
  width: 28px;
  height: 14px;
  border-radius: 10px;
  background: #f3f3f3;
  border: 1px solid #9aa6a7;
}
#relation-map-root .ped-union-favorite { border-style: dashed; }
#relation-map-root .ped-union-affair { border-style: dashed; background: #faf7f0; }
#relation-map-root .ped-popup {
  position: absolute;
  left: 50%;
  top: 100%;
  width: 310px;
  transform: translateX(-50%) translateY(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 999;
}
#relation-map-root .ped-node:hover .ped-popup,
#relation-map-root .ped-node.is-open .ped-popup,
#relation-map-root .ped-node:focus-within .ped-popup {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(14px);
}
#relation-map-root .ped-popup-inner {
  background: #f7f7f7;
  border: 1px solid #b5b5b5;
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(0,0,0,.14);
  padding: 12px;
  text-align: left;
}
#relation-map-root .ped-popup-name {
  margin: 0 0 4px;
  color: #4a5759;
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-size: 15px;
  font-weight: bold;
  line-height: 1.2;
  text-transform: uppercase;
}
#relation-map-root .ped-popup-name a { color: #4a5759 !important; text-decoration: none; }
#relation-map-root .ped-popup-race {
  margin: 0 0 10px;
  color: #666;
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-size: 11px;
  font-style: italic;
  line-height: 1.2;
}
#relation-map-root .ped-popup-occ {
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
  color: #333;
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-size: 12px;
  line-height: 1.45;
}
#relation-map-root .ped-popup-loyalty {
  margin-top: 10px;
  padding: 8px 10px;
  background: #d8dbdb;
  border-top: 1px solid #c2c7c7;
  border-radius: 4px;
  color: #333;
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-size: 11px;
  line-height: 1.35;
  text-align: left;
}
#relation-map-root .ped-popup-place {
  margin-top: 8px;
  padding: 7px 8px 6px;
  background: #4e4e4e;
  border-radius: 4px;
  color: #d1d4d1;
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-size: 9px;
  line-height: 1.2;
  letter-spacing: .4px;
  text-align: center;
  text-transform: uppercase;
}
#relation-map-root .ped-error {
  padding: 12px 14px;
  background: #f7e8e8;
  border: 1px solid #d7b0b0;
  border-radius: 6px;
  color: #983e3e;
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-size: 12px;
}
