.tree-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  margin: 1rem 0 .8rem;
}
.tree-toolbar button,
.tree-toolbar select {
  font: inherit;
  font-weight: 700;
  padding: .45rem .8rem;
  border-radius: .5rem;
  border: 1px solid rgba(255,255,255,.08);
  background: #141418;
  color: #f5f5f7;
  cursor: pointer;
}
.tree-toolbar button.is-on,
.tree-toolbar button.go {
  background: #00ff41;
  color: #000;
  border-color: #00ff41;
}
.tree-viewport {
  height: calc(100vh - 11rem);
  min-height: 28rem;
  overflow: auto;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 1rem;
  background: #141418;
  cursor: grab;
}
.tree-viewport.is-drag { cursor: grabbing; }
.tree-canvas {
  transform-origin: 0 0;
  padding: 1.4rem 2rem 3rem;
  width: max-content;
  min-width: 100%;
}
.full-tree,
.pedigree {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.2rem;
}
.full-row,
.gen {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: nowrap;
}
.couple {
  display: flex;
  gap: 1.1rem;
  align-items: stretch;
}
.kid-branch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.4rem;
}
.gen-grand { display: flex; gap: .8rem; }
.org-card[data-role="self"] {
  border-color: #00ff41;
  box-shadow: 0 0 0 1px rgba(0,255,65,.2);
}
.org-card.is-ghost {
  border-style: dashed;
  opacity: .8;
}
.tree-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 0;
}
.tree-lines path,
.tree-lines line {
  fill: none;
  stroke: #00ff41;
  stroke-width: 2;
  stroke-linecap: square;
  stroke-linejoin: miter;
}
.tree-lines text {
  fill: #00ff41;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.unknown-link {
  color: #00ff41;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
body[data-page="tree"] .wrap {
  width: min(calc(100% - 2rem), 100%);
  max-width: none;
}
