.tree-workspace{padding-block:24px 60px;max-width:1200px}.tree-mode{font-weight:700;background:#f0e3ff;border-radius:12px;padding:12px 18px}.tree-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-block:20px}.tree-toolbar input[type=file]{max-width:320px}.tree-toolbar button{min-height:48px}#tree-status{font-weight:700;color:#54258c}#tree-status:empty{display:none}.tree-viewport{width:100%;overflow:auto;border:2px solid #a4c995;border-radius:24px;background:#f4fbf0;margin-block:24px}.tree-scene{position:relative;min-width:900px;margin:auto;background-image:url('arvore-frondosa.webp');background-position:center;background-size:100% 100%;isolation:isolate}.tree-connections{position:absolute;inset:0;width:100%;height:100%;z-index:-1;overflow:visible}.tree-connections path{fill:none;stroke:#7b56a2;stroke-width:5;stroke-dasharray:7 5}.tree-node{position:absolute;transform:translate(-50%,-50%);width:190px;padding:8px;border:3px solid #a16dc9;border-radius:20px;background:#fffdf7;color:#302063;box-shadow:0 5px 16px #273d2530;display:flex;flex-direction:column;align-items:center;gap:6px;white-space:normal}.tree-node strong{font-size:1.05rem;line-height:1.3;max-width:100%;overflow-wrap:anywhere}.tree-node small{font-size:.875rem;line-height:1.25}.tree-node:hover,.tree-node:focus-visible{border-color:#60239a;outline:4px solid #fff}.tree-node .tree-portrait{width:100%;height:105px;object-fit:cover;border-radius:12px;object-position:center}.tree-node .couple-portrait{object-position:center 20%}.tree-node[data-person=helena]{width:250px}.tree-node[data-person=helena] .tree-portrait{height:130px}.tree-initial{width:75px;height:75px;border-radius:50%;background:#e1f2db;color:#42742c;display:grid;place-items:center;font:2.5rem Georgia,serif}.tree-empty{position:absolute;top:55%;left:50%;transform:translateX(-50%);padding:24px;border:2px solid #b18cc9;background:#fff;border-radius:20px;max-width:400px;text-align:center}.tree-editor,.ancestor-box{padding:26px;border:2px solid #af8fc8;border-radius:22px;background:#f6efff;margin-block:24px}.tree-editor form{display:grid;grid-template-columns:1fr;gap:10px;max-width:750px}.tree-editor label,.ancestor-box label{display:block;font-weight:700;margin-top:10px}.tree-editor input,.tree-editor textarea,.tree-editor select,.ancestor-box input,.ancestor-box select{width:100%;padding:12px;border:1px solid #8b71ad;border-radius:10px;font:inherit;background:white;color:#302063}.tree-editor button,.ancestor-box button{margin-top:12px;min-height:48px}.ancestor-box form{max-width:750px}#tree-photo-preview{width:200px;max-height:180px;object-fit:contain;border-radius:12px}#tree-list details{padding:20px;border:2px solid #cdb4df;border-radius:18px;margin-block:16px;background:#fff}#tree-list summary{font-weight:700;cursor:pointer;min-height:44px}#tree-list .tree-portrait{width:160px;max-height:130px;object-fit:cover;border-radius:14px;margin-block:14px}#tree-list p{white-space:pre-wrap;overflow-wrap:anywhere}#tree-list button,#tree-list a{margin:10px 12px 0 0}.reading-simple .tree-scene{background-image:none}.reading-contrast .tree-scene{background-image:none!important}@media(max-width:600px){.tree-editor,.ancestor-box{padding:18px}.tree-toolbar{display:grid;grid-template-columns:1fr}.tree-toolbar button{width:100%}.tree-toolbar input[type=file]{max-width:100%}.tree-viewport{border-radius:16px}.tree-workspace{padding-top:16px}}

.familysearch-access{background:#dff5ee;border:2px solid #91c8b1;border-radius:22px;padding:24px;margin-bottom:28px}.familysearch-access h2{font-size:1.8rem;margin:0 0 18px}.familysearch-button{display:inline-block;background:#6230a7;color:#fff!important;border-radius:28px;padding:14px 24px;font-weight:700;text-decoration:none;min-height:48px}.familysearch-button:hover{text-decoration:underline}.familysearch-access p{font-size:1rem;margin:16px 0 0;max-width:75ch}
