.original-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.synced-genealogy {
  display: grid;
  grid-template-columns: minmax(500px, 1.2fr) minmax(340px, .8fr);
  gap: 16px;
  align-items: stretch;
}

.synced-tree-pane,
.synced-original-pane {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(91, 59, 34, .18);
  border-radius: 10px;
  background: rgba(255, 252, 245, .72);
}

.synced-pane-title {
  margin-bottom: 10px;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: .08em;
}

.synced-tree-pane .tree-container {
  height: min(78vh, 980px);
  min-height: 720px;
  max-height: none;
}

.synced-tree-pane .tree-root {
  width: max-content;
  min-width: 100%;
  padding: 28vh 42% 38vh;
  box-sizing: content-box;
}

.synced-tree-pane .tree-children {
  gap: 18px;
}

.synced-tree-pane .tree-child {
  padding-inline: 10px;
}

.member-card.sync-active {
  border-color: #d59c2e;
  background: #fff4c9;
  box-shadow: 0 0 0 4px rgba(213, 156, 46, .22);
}

.original-controls select,
.original-controls button {
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  font-family: inherit;
}

.original-controls select {
  min-width: 260px;
}

.original-status {
  color: var(--text-light);
  font-size: .88rem;
}

.original-viewport {
  position: relative;
  width: 100%;
  height: min(78vh, 980px);
  min-height: 720px;
  overflow: hidden;
  border: 1px solid rgba(91, 59, 34, .28);
  border-radius: 10px;
  background: #303b3e;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, .25);
}

.original-map {
  position: absolute;
  width: 0;
  height: 0;
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  transform: scale(1);
  transform-origin: 50% 50%;
  transition: transform 160ms ease-out;
}

.original-hotspot,
.continuation-node {
  position: absolute;
  z-index: 3;
  transform: translate(-50%, -50%);
}

.original-hotspot {
  border: 2px solid transparent;
  border-radius: 48% 48% 10% 10%;
  cursor: pointer;
}

.continuation-node {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3f3025;
  font: 6px/1.05 "Kaiti SC", "STKaiti", "KaiTi", "SimKai", serif;
  writing-mode: vertical-rl;
  text-orientation: upright;
  white-space: nowrap;
  word-break: keep-all;
  border: 1px solid rgba(61, 105, 119, .76);
  border-bottom-width: 3px;
  border-radius: 50% 50% 10% 10%;
  background:
    linear-gradient(90deg, rgba(68, 110, 120, .07), transparent 30% 70%, rgba(68, 110, 120, .07)),
    rgba(244, 240, 220, .92);
  box-shadow:
    0 2px 4px rgba(38, 54, 55, .16),
    inset 0 0 0 1px rgba(255, 255, 255, .55);
  cursor: pointer;
}

.original-hotspot.active,
.continuation-node.active {
  border-color: #ffde74;
  background: rgba(255, 247, 207, .7);
  box-shadow: 0 0 0 4px rgba(158, 47, 42, .72), 0 0 20px 7px rgba(255, 222, 116, .68);
}

.continuation-lines {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.continuation-haze {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(239, 233, 216, .12), rgba(239, 233, 216, .52) 12%, rgba(239, 233, 216, .6));
  backdrop-filter: blur(4px) saturate(.62) brightness(1.1);
  -webkit-backdrop-filter: blur(4px) saturate(.62) brightness(1.1);
}

.original-legend {
  display: flex;
  gap: 18px;
  margin-top: 10px;
  color: var(--text-light);
  font-size: .84rem;
}

.original-legend i {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: 5px;
  border-radius: 50%;
  vertical-align: -1px;
}

@media (max-width: 700px) {
  .synced-genealogy {
    grid-template-columns: 1fr;
  }
  .synced-tree-pane .tree-container {
    height: 56vh;
    min-height: 480px;
  }
  .synced-tree-pane .tree-root {
    padding: 20vh 38% 28vh;
  }
  .original-viewport {
    height: 76vh;
    min-height: 650px;
  }
  .original-controls select {
    width: 100%;
    min-width: 0;
  }
}

