.tree-app{--tree-green:#2e513e;--tree-border:#dedfd4;color:#293b30;background:#faf9f5}.tree-app button,.tree-app input,.tree-app select,.tree-app textarea{font:inherit}.tree-app button{cursor:pointer;border:1px solid var(--tree-border);background:#fffefb;border-radius:7px;padding:8px 12px;font-size:13px;line-height:1.35;transition:background .12s}.tree-app button:hover:not(:disabled){background:#edf1e8;border-color:#a6b7a6}.tree-app button:disabled{cursor:default;opacity:.4}.tree-app :is(button,input,select,textarea,a):focus-visible{outline:2px solid #47785b;outline-offset:3px}.tree-app .tree-primary{background:var(--tree-green);color:#fff;border-color:var(--tree-green);font-weight:600}.tree-app .tree-primary:hover:not(:disabled){background:#213d2e}.tree-app .tree-danger{color:#9c3d31;background:transparent}.tree-toolbar{display:flex;justify-content:space-between;gap:20px;padding:22px 28px;border-bottom:1px solid var(--tree-border);background:#fffdf8}.tree-project-heading{min-width:0}.tree-eyebrow{font-size:10px;text-transform:uppercase;letter-spacing:.13em;color:#7e816f;font-weight:650;margin:0 0 8px}.tree-app .tree-title{display:flex;align-items:center;gap:18px;font-family:Georgia,serif;font-size:25px;padding:0;border:0;background:none;text-align:left;overflow-wrap:anywhere}.tree-title span{font-family:system-ui;font-size:18px;color:#9b9e8d}.tree-save{display:block;margin-top:5px;font-size:11px;color:#687b66}.tree-save-error{color:#a3392d}.tree-toolbar-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end}.tree-local-notice{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:9px 28px;border-bottom:1px solid var(--tree-border);font-size:11px;color:#6e7466;background:#f0f1e8}.tree-local-notice button{flex-shrink:0}.tree-workspace{display:grid;grid-template-columns:240px minmax(0,1fr) 320px;height:calc(100dvh - 285px);min-height:660px;max-height:1100px}.tree-people{display:flex;flex-direction:column;min-height:0;padding:22px 14px;border-right:1px solid var(--tree-border);background:#fbfbf6;overflow:auto}.tree-people label{font-size:11px;color:#697360}.tree-people select{display:block;width:100%;padding:8px;border:1px solid var(--tree-border);border-radius:5px;margin:6px 0 23px;background:white;color:#344937;font-size:12px}.tree-people-heading{display:flex;justify-content:space-between;align-items:center;padding:0 5px}.tree-people-heading h2{font-weight:650;font-size:15px}.tree-people-heading>span{border-radius:5px;background:#e9ede2;padding:2px 6px;color:#68805f;font-size:11px}.tree-search input{margin-top:14px;width:100%;padding:10px;border:1px solid var(--tree-border);border-radius:7px;background:#fff;font-size:12px}.tree-result-count{font-size:10px;color:#8a8d80;margin:10px 5px}.tree-person-list{list-style:none;padding:0;margin:0;overflow:auto;flex:1;min-height:100px}.tree-person-list li{margin:3px 0}.tree-app .tree-person-list button{display:flex;width:100%;gap:10px;align-items:center;border-color:transparent;background:transparent;text-align:left;padding:10px 6px}.tree-app .tree-person-list button[aria-current=true]{background:#e8eee2;border-color:#cdd9c5}.tree-initial{display:grid;place-items:center;border:1px solid #d6ddcd;background:#f5f6ed;border-radius:50%;width:31px;height:31px;flex-shrink:0;color:#778b6e;font-family:Georgia,serif}.tree-person-list strong{display:block;font-size:12px;font-weight:600;overflow-wrap:anywhere}.tree-person-list small{display:block;color:#828875;font-size:10px;margin-top:3px}.tree-list-pagination{display:flex;justify-content:space-between;align-items:center;padding-top:12px;gap:6px;font-size:11px;color:#7c8472}.tree-app .tree-list-pagination button{padding:5px 10px}.tree-help{font-size:11px;color:#74866a;text-align:center;padding:20px 0 0}.tree-diagram-section{display:flex;flex-direction:column;min-width:0;min-height:0}.tree-diagram-heading{padding:16px 18px;display:flex;gap:10px;align-items:center;justify-content:space-between;border-bottom:1px solid var(--tree-border);background:#fafbf6}.tree-diagram-heading strong{display:block;font-size:13px;font-weight:650}.tree-diagram-heading span{display:block;font-size:10px;color:#89917e;margin-top:3px}.tree-diagram-heading>div:last-child{display:flex;gap:4px}.tree-app .tree-diagram-heading button{font-size:11px}.tree-viewport{position:relative;flex:1;min-height:480px;overflow:hidden;background-color:#f7f8f2;background-image:radial-gradient(#cdd3c2 .8px,transparent 0);background-size:22px 22px}.tree-canvas{width:100%;height:100%;display:block;touch-action:pan-y pinch-zoom;cursor:grab}.tree-canvas:active{cursor:grabbing}.tree-canvas-tools{position:absolute;z-index:2;display:flex;align-items:center;gap:4px;bottom:36px;left:16px;padding:4px;background:#fffdf9;border:1px solid var(--tree-border);border-radius:9px;box-shadow:0 2px 8px #233b3010}.tree-app .tree-canvas-tools button{border:0;padding:6px 10px}.tree-canvas-tools span{font-size:11px;min-width:40px;text-align:center}.tree-canvas-caption{position:absolute;bottom:10px;left:16px;font-size:10px;color:#8a927e;pointer-events:none}.tree-canvas-status{position:absolute;top:16px;left:16px;z-index:2;font-size:12px;padding:8px 12px;background:#fffdf7;border:1px solid #d9dfce;border-radius:7px}.tree-empty{position:absolute;width:100%;text-align:center;padding:50px 35px;top:18%;pointer-events:none;color:#698060}.tree-empty>span{display:block;font-size:50px;color:#adbca2}.tree-empty h2{font-family:Georgia,serif;font-size:25px;margin:18px 0 12px;color:#47613e}.tree-empty p{font-size:12px;line-height:1.7}.tree-details{border-left:1px solid var(--tree-border);background:#fffefb;overflow:auto;padding:22px 20px;min-width:0}.tree-detail-heading h2{font-family:Georgia,serif;font-size:25px;line-height:1.2;overflow-wrap:anywhere;margin:10px 0 22px}.tree-tabs{display:flex;border-bottom:1px solid var(--tree-border);margin-bottom:20px;gap:6px}.tree-app .tree-tabs button{border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;padding:10px 12px;color:#808876;font-size:12px}.tree-app .tree-tabs button[aria-selected=true]{color:#365a3e;border-bottom-color:#3f6949;font-weight:650}.tree-form{display:flex;flex-direction:column;gap:15px}.tree-form p{font-size:13px;line-height:1.65}.tree-form label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:#65725e}.tree-form :is(input:not([type=file]),select,textarea){width:100%;background:#fff;color:#293d2d;padding:9px 10px;border:1px solid #d8ddcf;border-radius:5px;min-height:38px}.tree-form fieldset{border:1px solid #e1e4d9;padding:12px;border-radius:7px;display:flex;flex-direction:column;gap:10px}.tree-form legend{font-size:11px;padding:0 6px;font-weight:650}.tree-form textarea{resize:vertical}.tree-form .tree-hint,.tree-hint{color:#8a907f;font-size:11px;line-height:1.65}.tree-button-row{display:flex;gap:6px;flex-wrap:wrap}.tree-family-actions{display:flex;flex-direction:column;gap:7px;margin:12px 0 24px}.tree-family-card{margin:14px 0;border:1px solid #e0e4d6;padding:13px;border-radius:8px}.tree-family-card h3{font-size:13px;font-weight:600;margin-bottom:7px}.tree-family-card .tree-eyebrow{margin:14px 0 5px;font-size:9px}.tree-app .tree-relative{display:block;width:100%;text-align:left;padding:7px 0;border:0;background:transparent;overflow-wrap:anywhere}.tree-relative small{display:block;color:#8c927d;font-size:10px}.tree-detail-footer{margin-top:28px;border-top:1px solid var(--tree-border);padding-top:16px}.tree-details-empty{display:flex;flex-direction:column;justify-content:center;gap:20px}.tree-details-empty h2{font-family:Georgia,serif;font-size:26px;line-height:1.3}.tree-details-empty>p:not(.tree-eyebrow){font-size:13px;color:#7a846e;line-height:1.8}.tree-portrait{display:block;width:100%;max-height:320px;object-fit:contain;border:1px solid #e1e4d8;border-radius:5px}.tree-media-path{text-align:left;overflow-wrap:anywhere}.tree-file-label{border:1px dashed #c4cfbb;padding:12px;border-radius:7px}.tree-file-label input{width:100%;font-size:11px}.tree-dialog{border:1px solid #d7ddcd;padding:24px;border-radius:14px;width:min(560px,calc(100vw - 30px));max-height:calc(100dvh - 40px);overflow:auto;background:#fffdf7;color:#2d422f;box-shadow:0 20px 100px #15281b40;margin:auto}.tree-dialog::backdrop{background:#1d2d2466;backdrop-filter:blur(3px)}.tree-dialog-title{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:22px}.tree-dialog-title h2{font-family:Georgia,serif;font-size:25px}.tree-dialog-title button{font-size:23px;padding:2px 10px}.tree-message{margin:10px 16px;background:#fff4df;border:1px solid #e7cd9b;color:#765529;padding:12px;border-radius:7px;font-size:12px;line-height:1.7;overflow-wrap:anywhere}.tree-message button{margin:5px}.tree-dialog .tree-message{margin:10px 0}.tree-import-summary{padding-top:20px;border-top:1px solid #dce1d1}.tree-import-summary h3{font-weight:650;margin-bottom:8px}.tree-import-summary button{margin:15px 8px 0 0}.tree-mobile-nav{display:none}.tree-loading{min-height:60vh;padding:80px 30px;text-align:center}@media (min-width:1600px){.tree-workspace{grid-template-columns:270px minmax(0,1fr) 350px}}@media (max-width:1100px){.tree-toolbar{padding:18px;gap:12px}.tree-workspace{grid-template-columns:210px minmax(0,1fr) 290px}.tree-diagram-heading{align-items:flex-start;flex-direction:column;padding:12px}.tree-details{padding:20px 15px}}@media (max-width:950px){.tree-toolbar{flex-direction:column}.tree-toolbar-actions{justify-content:flex-start}.tree-local-notice{padding:10px 16px;align-items:flex-start}.tree-mobile-nav{display:flex;padding:10px 16px;gap:8px;border-bottom:1px solid var(--tree-border)}.tree-mobile-nav button{flex:1;min-height:40px}.tree-mobile-nav button[aria-pressed=true]{background:#e5ecde;border-color:#99af8c}.tree-workspace{display:block;height:auto;min-height:650px;max-height:none}.tree-details,.tree-diagram-section,.tree-people{display:none}.tree-panel-people .tree-people{display:flex;min-height:650px}.tree-panel-tree .tree-diagram-section{display:flex;height:70dvh;min-height:600px}.tree-panel-detail .tree-details{display:block;min-height:600px;padding:24px}.tree-panel-detail .tree-details-empty{display:flex}.tree-person-list{overflow:visible}.tree-diagram-heading{flex-direction:row;align-items:center}.tree-details .tree-form{max-width:600px}.tree-app button{min-height:40px}}@media (max-width:480px){.tree-title{font-size:23px!important}.tree-hide-small{display:none}.tree-toolbar-actions{gap:5px}.tree-toolbar-actions button{padding:8px 9px;font-size:12px}.tree-local-notice{font-size:10px}.tree-diagram-heading>div:last-child{max-width:160px;flex-wrap:wrap}.tree-diagram-heading strong{font-size:12px}.tree-canvas-caption{font-size:9px}}.tree-quick-relations{display:flex;gap:5px;margin-bottom:10px;flex-wrap:wrap}.tree-app .tree-quick-relations button{font-size:11px;padding:7px 9px}.tree-family-edit{border-top:1px solid #e1e5d9;padding-top:15px;margin:15px 0}.tree-canvas-pan{touch-action:none}.tree-touch-controls{display:none;padding:10px 14px;border-bottom:1px solid var(--tree-border);background:#fafbf6}.tree-touch-mode{display:flex;align-items:center;gap:8px;font-size:12px}.tree-app .tree-touch-mode button{padding:8px 12px}.tree-touch-mode button[aria-pressed=true]{background:#e5ecde;border-color:#99af8c;font-weight:600}.tree-touch-controls p{margin:7px 0 0;font-size:11px;color:#687560;line-height:1.5}@media (any-pointer:coarse),(max-width:950px){.tree-touch-controls{display:block}}@media (max-width:950px){.tree-viewport{min-height:360px}}.tree-confirmation{position:fixed;bottom:calc(20px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(520px,calc(100% - 32px));z-index:1000;pointer-events:none}.tree-confirmation>div{display:flex;align-items:center;gap:16px;padding:14px 18px;border:1px solid #46735c;border-radius:12px;background:#eff8f1;color:#183e2b;box-shadow:0 6px 28px #0003;pointer-events:auto}.tree-confirmation span{flex:1}.tree-confirmation button{border:0;background:transparent;color:inherit;font-size:24px;min-width:44px;min-height:44px;cursor:pointer}