/* Importation explicite d'un arbre familial, dans la palette forêt et or. */
#lifeTreeOverlay .treeCopyBar{
 display:grid;gap:10px;box-sizing:border-box;
 max-width:660px;margin:12px auto 18px;padding:14px 16px;
 border:1px solid rgba(226,197,116,.43);border-radius:17px;
 background:linear-gradient(135deg,rgba(20,69,53,.95),rgba(7,44,35,.96));
 color:#f3e9cf;
}
#lifeTreeOverlay .treeCopyBar>p{margin:0;font:15px/1.45 system-ui;color:#f2e4c0}
#lifeTreeOverlay .treeCopyBar>button,
#lifeTreeOverlay .treeCopyForm button{
 display:block;box-sizing:border-box;width:100%;min-height:46px;height:auto;
 padding:10px 14px;border-radius:12px;border:1px solid #e5cd83;
 color:#12382b;background:linear-gradient(115deg,#ead38a,#c4a149);
 font:700 15px/1.4 system-ui;white-space:normal;overflow-wrap:break-word;
}
#lifeTreeOverlay .treeCopyBar>button+button{background:#19533f;color:#f5e9c8}
#lifeTreeOverlay .treeCopyForm{display:grid;gap:12px;min-width:0;padding:14px;border-radius:13px;background:#082e25}
#lifeTreeOverlay .treeCopyForm[hidden]{display:none!important}
#lifeTreeOverlay .treeCopyForm input,
#lifeTreeOverlay .treeCopyForm select{
 box-sizing:border-box;display:block;width:100%;min-width:0;min-height:46px;
 padding:10px;border:1px solid #bba56c;border-radius:11px;
 background:#0a3026;color:#f5eed7;font:16px system-ui;
}
#lifeTreeOverlay .treeCopyForm p,#lifeTreeOverlay .treeCopyForm li{
 font:15px/1.5 system-ui;color:#e1eadc;overflow-wrap:anywhere;
}
#lifeTreeOverlay .treeCopyCode{font-weight:700!important;overflow-wrap:anywhere}
#lifeTreeOverlay .treeCopyBar button:focus-visible,
#lifeTreeOverlay .treeCopyForm select:focus-visible,
#lifeTreeOverlay .treeCopyForm input:focus-visible{outline:3px solid #ffe9a7;outline-offset:2px}
#lifeTreeOverlay .treeCopyBar button:disabled{opacity:.6}

/* Compact by default: transfer controls must never displace the family tree. */
#lifeTreeOverlay .treeCopyBar{
  display:block!important;
  max-width:660px!important;
  margin:8px auto 12px!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
#lifeTreeOverlay .treeCopyToggle{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  box-sizing:border-box!important;
  width:100%!important;
  min-height:46px!important;
  height:auto!important;
  margin:0!important;
  padding:10px 14px!important;
  border-radius:14px!important;
  border:1px solid rgba(231,205,130,.6)!important;
  background:linear-gradient(120deg,#184d3d,#0b382f)!important;
  color:#f3df9f!important;
  font:700 15px/1.35 system-ui!important;
  text-align:center!important;
  white-space:normal!important;
}
#lifeTreeOverlay .treeCopyOptions{
  display:grid;
  gap:10px;
  margin-top:10px;
  padding:14px;
  border-radius:16px;
  border:1px solid rgba(226,197,116,.43);
  background:linear-gradient(135deg,rgba(20,69,53,.97),rgba(7,44,35,.98));
}
#lifeTreeOverlay .treeCopyOptions[hidden]{display:none!important}
#lifeTreeOverlay .treeCopyOptions>p{margin:0;color:#f2e4c0;font:14px/1.45 system-ui}
#lifeTreeOverlay .treeCopyOptions>button{
  width:100%!important;
  min-height:48px!important;
  padding:10px 12px!important;
  border:1px solid #e5cd83!important;
  border-radius:12px!important;
  color:#15392c!important;
  background:linear-gradient(115deg,#ead38a,#c4a149)!important;
  font:700 15px/1.4 system-ui!important;
}
#lifeTreeOverlay .treeCopyOptions>button+button{
  background:#19533f!important;
  color:#f5e9c8!important;
}
#lifeTreeOverlay .treeCopyToggle:focus-visible{
  outline:3px solid #ffe9a7!important;
  outline-offset:3px!important;
}
