.family-tree-dialog,.family-tree-surface{--tree-ink:#334439;--tree-soft:#788174;--tree-line:#c1b79e;--tree-paper:#faf8f1;color:var(--tree-ink);font-family:inherit;box-sizing:border-box}.family-tree-dialog{width:min(1180px,97vw);max-height:96dvh;padding:clamp(18px,3vw,34px);border:1px solid #dfd7c8;border-radius:28px;background:var(--tree-paper);box-shadow:0 28px 110px #23302445}.family-tree-dialog::backdrop{background:#26372e8a;backdrop-filter:blur(5px)}.family-tree-dialog .modal-head{display:flex;justify-content:space-between;gap:18px;align-items:start}.family-tree-dialog h2,.family-tree-inline-heading h2{font:500 clamp(30px,4.8vw,43px)/1.12 Georgia,'Times New Roman',serif;letter-spacing:-.035em;margin:0}.family-tree-dialog .icon-btn{min-width:44px;min-height:44px}.family-tree-surface{padding:clamp(18px,3vw,32px);border:1px solid #e0d9ca;border-radius:28px;background:linear-gradient(150deg,#fdfbf7,#f5f3e8);box-shadow:0 12px 45px #3e45380a}.family-tree-inline-heading{padding-bottom:18px;border-bottom:1px solid #e2ddcf}.family-tree-book-label,.family-tree-kicker{margin:0 0 10px;font:600 11px/1.4 system-ui,sans-serif;letter-spacing:.17em;text-transform:uppercase;color:#798571}.family-tree-intro{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 20px;margin:20px 0 4px}.family-tree-intro .family-tree-kicker{width:100%;font-size:10px;margin-bottom:0;color:#84907a}.family-tree-help{max-width:62ch;line-height:1.55;margin:7px 0;color:#70776a;font-size:14px}.family-tree-tools,.family-tree-zoom{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.family-tree-tools{margin:8px 0}.family-tree-tools .btn{min-height:44px}.family-tree-zoom{justify-content:flex-end;padding:6px 0 12px}.family-tree-zoom .icon-btn{border:1px solid #e0dece;background:#fffef9;border-radius:50%;font-size:22px;width:42px;height:42px}.family-tree-zoom .btn{min-height:44px;padding:8px 13px;font-size:13px}.family-tree-scale{font:500 12px system-ui;min-width:40px;text-align:center;color:#737b6c}.family-tree-readonly{font-size:12px;border:1px solid #dce0d1;border-radius:999px;padding:8px 12px;background:#eff1e7}.family-tree-viewport{height:clamp(390px,61dvh,700px);min-height:390px;overflow:auto;overscroll-behavior:contain;touch-action:pan-x pan-y;position:relative;border:1px solid #ded9c9;border-radius:22px;background:radial-gradient(ellipse at 15% 18%,#e5ead94d,transparent 50%),radial-gradient(ellipse at 86% 80%,#efdbc833,transparent 55%),#faf8ef;scroll-behavior:auto;box-shadow:inset 0 0 70px #b9b28a0c;outline-offset:4px}.family-tree-space{position:relative;min-width:100%;min-height:100%}.family-tree-canvas{position:relative;transform-origin:0 0}.family-tree-branches{position:absolute;inset:0;pointer-events:none;overflow:visible}.tree-link{fill:none;stroke:#aca88b;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round}.tree-link.partner{stroke:#b6998c;stroke-width:2;stroke-dasharray:5 5}.family-tree-generation{position:absolute;left:18px;font:500 9px/1.4 system-ui;letter-spacing:.13em;text-transform:uppercase;color:#a2a58f;pointer-events:none}.family-tree-person{box-sizing:border-box;position:absolute;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:15px 13px 13px;text-align:center;background:#fffef9;border:1px solid #d9d5c6;border-radius:22px;box-shadow:0 6px 17px #444e3810,0 1px 0 #fff inset;cursor:pointer;color:#334439;font-family:inherit;transition:box-shadow .16s,border-color .16s}.family-tree-person:hover,.family-tree-person:focus-visible{border-color:#7e9271;box-shadow:0 9px 26px #43533a25;outline:3px solid #84997655;outline-offset:4px}.family-tree-person[aria-pressed=true]{border-color:#82956d;box-shadow:0 0 0 3px #8da47824,0 8px 20px #43533a14}.family-tree-avatar,.family-tree-detail-avatar{display:grid;place-items:center;flex:none;width:66px;height:66px;border-radius:50%;font:500 25px Georgia,serif;background:var(--tree-color,#dce5cf);color:#4c5a4b;box-shadow:0 0 0 5px #fffdf8,0 0 0 6px #e6e6d8}.family-tree-name{font:500 20px/1.15 Georgia,'Times New Roman',serif;letter-spacing:-.025em;max-width:100%;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.family-tree-node-caption{font:500 10px system-ui;letter-spacing:.025em;color:#919581}.family-tree-add-relative{position:absolute;z-index:2;width:44px;height:44px;display:grid;place-items:center;padding:0;border:4px solid #faf8ef;border-radius:50%;background:#667a55;color:white;font:300 26px system-ui;cursor:pointer;box-shadow:0 3px 6px #42573518}.family-tree-add-relative:hover,.family-tree-add-relative:focus-visible{background:#425b38;outline:3px solid #9db18a;outline-offset:2px}.tree-color-sage{--tree-color:#dce7ce}.tree-color-rose{--tree-color:#f1d9da}.tree-color-sky{--tree-color:#dce9ed}.tree-color-lavender{--tree-color:#e5dff0}.tree-color-sand{--tree-color:#ece2c9}.tree-color-peach{--tree-color:#f1ddc9}.family-tree-person-dialog,.family-tree-form-dialog{width:min(450px,95vw)}.family-tree-detail-avatar{width:84px;height:84px;font-size:33px;margin:25px auto}.family-tree-notes{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65;color:#687160;text-align:center}.family-tree-person-dialog .actions-row{display:flex;gap:10px;margin-top:15px}.family-tree-person-dialog .actions-row .btn{flex:1}.family-tree-relative-choices{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:22px 0}.family-tree-relative-choice{display:flex;flex-direction:column;align-items:center;gap:12px;min-height:104px;padding:17px 8px;border:1px solid #d9ddce;border-radius:17px;background:#fffef9;color:#526249;font:inherit;cursor:pointer}.family-tree-relative-choice span{font:300 28px system-ui}.family-tree-relative-choice strong{font-size:14px}.family-tree-relative-choice:hover,.family-tree-relative-choice:focus-visible{background:#edf1e4;border-color:#98a68b;outline:2px solid #b8c6a8}.family-tree-relative-context{padding:12px 15px;border-radius:13px;background:#edf0e3;color:#5d6d52;line-height:1.5}.family-tree-connections{margin-top:18px;border-top:1px solid #deded1;padding:13px 1px;color:#6c7563}.family-tree-connections summary{cursor:pointer;font-size:13px;min-height:28px}.family-tree-connection{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid #e5e4d9;padding:12px 0;overflow-wrap:anywhere;font-size:13px}.family-tree-connection .btn{flex:none;min-height:44px}.family-tree-empty{text-align:center;padding:38px 18px 44px;background:radial-gradient(ellipse at top,#eaf0df80,transparent 60%),#faf8ef;border:1px solid #e3ddce;border-radius:22px;margin:18px 0}.family-tree-empty svg{display:block;width:230px;max-width:80%;height:145px;margin:0 auto 20px;color:#a1b08c}.family-tree-empty circle{fill:#f7f8ef;stroke:#a8b691;stroke-width:2}.family-tree-empty h3{font:500 clamp(27px,4vw,36px)/1.2 Georgia,serif;letter-spacing:-.035em;margin:12px 0}.family-tree-empty p{max-width:42ch;margin:14px auto;line-height:1.6;color:#7b816e;font-size:14px}.family-tree-empty .btn{margin:9px 0 12px;min-height:48px}.family-tree-empty .tiny{font-size:12px}.family-tree-status,.family-tree-form-status{overflow-wrap:anywhere;line-height:1.6;color:#666f5d}.family-tree-status:empty{display:none}.family-tree-form-status{padding-top:8px;font-size:13px}.family-tree-legend{line-height:1.6;color:#8b907d;font-size:11px;text-align:center;margin:12px 0}.family-tree-dialog .field label{display:block;margin-bottom:7px;font-size:13px}.family-tree-dialog input,.family-tree-dialog select,.family-tree-dialog textarea{width:100%;box-sizing:border-box;font:inherit;padding:13px;border:1px solid #d8d9ce;border-radius:12px;background:#fffefa}.family-tree-dialog .field{margin:17px 0}@media(max-width:480px){.family-tree-dialog{padding:18px 15px;border-radius:22px}.family-tree-surface{padding:18px 12px;border-radius:22px}.family-tree-inline-heading h2{font-size:32px}.family-tree-intro{margin-top:16px}.family-tree-help{font-size:13px}.family-tree-tools{width:100%;gap:7px}.family-tree-tools .btn{min-height:44px;font-size:12px;padding:10px 12px}.family-tree-tools .btn:first-child{flex:1}.family-tree-zoom{justify-content:center;gap:7px;padding-top:10px}.family-tree-viewport{height:58dvh;min-height:390px;border-radius:18px}.family-tree-connection{align-items:start}.family-tree-dialog .actions-row .btn{min-height:46px}.family-tree-relative-choice strong{font-size:12px}.family-tree-empty{padding:24px 12px}.family-tree-empty p{font-size:13px}}@media(prefers-reduced-motion:reduce){.family-tree-person{transition:none}}@media print{.family-tree-dialog,.family-tree-surface{display:none!important}}
.family-tree-page > .child-hero{display:none}.family-tree-person{gap:6px;padding:11px 13px}.family-tree-avatar{width:60px;height:60px}.family-tree-viewport{cursor:grab}.family-tree-viewport.is-panning{cursor:grabbing;user-select:none}
.family-tree-chart{position:relative}.family-tree-chart>.family-tree-zoom{position:absolute;top:10px;right:10px;z-index:4;margin:0;padding:5px 7px;gap:5px;background:#fffef5e8;backdrop-filter:blur(12px);border:1px solid #e4dfcb;border-radius:999px;box-shadow:0 3px 12px #4f56300c}.family-tree-chart>.family-tree-zoom .icon-btn{width:34px;height:34px;min-width:34px;min-height:34px;font-size:20px}.family-tree-chart>.family-tree-zoom .btn{min-height:34px;font-size:11px;padding:6px 10px;border-radius:99px;background:transparent}.family-tree-chart .family-tree-scale{min-width:32px;font-size:10px}@media(max-width:520px){.family-tree-inline-heading{padding-bottom:11px}.family-tree-inline-heading h2{font-size:29px}.family-tree-book-label{font-size:9px;margin-bottom:5px}.family-tree-intro{margin:10px 0 4px;gap:0}.family-tree-intro .family-tree-kicker{display:none}.family-tree-help{font-size:12px;margin:2px 0 5px}.family-tree-tools{margin:4px 0 9px;gap:6px}.family-tree-tools .btn{font-size:11px;min-height:40px;padding:8px 11px}.family-tree-viewport{height:63dvh;min-height:430px}.family-tree-chart>.family-tree-zoom{top:8px;right:8px;padding:4px;gap:3px}.family-tree-chart>.family-tree-zoom .btn{padding:6px 8px}.family-tree-legend{font-size:10px;margin:10px 0}.family-tree-surface{padding-top:15px}}
.family-tree-intro .family-tree-kicker,.family-tree-intro .family-tree-help{display:none}.family-tree-intro{margin:8px 0 10px}.family-tree-surface .family-tree-intro{display:none}.family-tree-inline-heading{display:grid;grid-template-columns:1fr auto;gap:0 22px;align-items:center;padding-bottom:15px;margin-bottom:14px}.family-tree-inline-heading .family-tree-book-label{grid-column:1;margin-bottom:5px}.family-tree-inline-heading h2{grid-column:1;font-size:35px}.family-tree-header-tools{grid-column:2;grid-row:1/span 2;align-self:center}.family-tree-header-tools .family-tree-tools{margin:0}.family-tree-viewport{height:68dvh;max-height:650px}.family-tree-canvas{position:absolute;top:0}.family-tree-space{overflow:hidden}.family-tree-dialog h2,.family-tree-inline-heading h2{overflow-wrap:anywhere}.family-tree-dialog .modal-head>.icon-btn{flex:none}@media(max-width:700px){.family-tree-inline-heading{display:block;margin-bottom:10px;padding-bottom:10px}.family-tree-inline-heading h2{font-size:29px}.family-tree-header-tools{margin-top:10px}.family-tree-header-tools .family-tree-tools{margin:0}.family-tree-viewport{height:63dvh;min-height:430px}.family-tree-surface{padding-top:15px}}
