/* Preserve the forest graph; the controller now owns loading and proposals. */
#familyTreeSheet .familyTreeLoading{white-space:normal;overflow-wrap:anywhere}
#familyTreeSheet .familyTreeLoading button{width:auto!important;height:auto!important;min-height:48px!important;padding:10px 16px!important;border:1px solid #d9bd68;border-radius:14px;background:#e4c45f;color:#15372d;font:700 16px/1.4 system-ui}
#familyTreeSheet #ltg16Propose{min-height:44px!important;white-space:normal!important;overflow-wrap:anywhere;line-height:1.35!important}
#familyTreeSheet #familyTreeBody .pv5Controls button{width:44px!important;height:auto!important;min-width:44px!important;min-height:44px!important;white-space:normal!important;line-height:1.2!important}
#familyTreeSheet #familyTreeBody .pv5Controls button.fit{width:auto!important;padding:8px 10px!important}
#familyTreeSheet .pv5Node[role="listitem"]{cursor:default}
#ltg16Modal .card{box-sizing:border-box;min-width:0;overflow-wrap:anywhere}
#ltg16Modal :is(input,select){min-width:0;max-width:100%;height:auto!important;min-height:48px!important;padding:10px 12px!important}
#ltg16Modal button{height:auto!important;min-height:48px!important;max-width:100%;white-space:normal!important;overflow-wrap:anywhere;line-height:1.35!important}
#ltg16Modal button[hidden]{display:none!important}
#ltg16Modal .btns{flex-wrap:wrap}
html[data-text-size]:not([data-text-size="standard"]) #familyTreeSheet{overflow-y:auto!important;align-items:flex-start!important}
html[data-text-size]:not([data-text-size="standard"]) #familyTreeSheet .familyTreeCard.pv5Card{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;display:block!important;margin:8px auto!important}
html[data-text-size]:not([data-text-size="standard"]) #familyTreeSheet .familyTreeTitle{padding-right:46px;white-space:normal!important;overflow-wrap:anywhere}
html[data-text-size]:not([data-text-size="standard"]) #familyTreeSheet #familyTreeBody.pv5Body{display:block!important;overflow:visible!important;flex:none!important}
html[data-text-size]:not([data-text-size="standard"]) #familyTreeSheet #familyTreeBody.pv5Body>.pv5Shell{display:block!important;overflow:visible!important;flex:none!important}
html[data-text-size]:not([data-text-size="standard"]) #familyTreeSheet #familyTreeBody .pv5Viewport{height:340px!important;min-height:300px!important;max-height:none!important;flex:none!important}

#familyTreeSheet .familyTreeClose{width:44px!important;height:44px!important;min-height:44px!important}
#familyTreeSheet .heritageTab{min-height:44px!important;white-space:normal!important;overflow-wrap:anywhere}

/* Only the optional circular portrait is new. Original tree artwork, branch
   geometry, positions, colours and node dimensions remain untouched. */
#familyTreeSheet .pv5Node .pv5Portrait{
 position:absolute!important;
 width:48px!important;height:48px!important;
 left:-23px!important;top:-22px!important;
 display:block!important;object-fit:cover!important;
 border-radius:50%!important;
 border:1.5px solid #dec476!important;
 box-shadow:0 2px 7px rgba(0,0,0,.4)!important;
 background:#0a352b!important;
 pointer-events:none!important;
}
