.gph-main:has(>.heritage-workspace){max-width:none;padding:14px 16px 20px}.heritage-workspace{--tree-burgundy:#733238;--tree-gold:#b28a3e;--tree-border:#e4d7c2;border:0;border-radius:0;background:transparent;color:#302d2b;box-shadow:none}.heritage-workspace .branch-title{padding:0 4px 12px;border:0;gap:8px 20px;justify-content:flex-start}.heritage-workspace .branch-title h1{margin:0;font-family:var(--font-serif),Georgia,serif;font-size:26px;font-weight:700;color:#57252c;line-height:1.3}.heritage-workspace .branch-title .branch-stats{width:auto;padding:0;margin:0 0 0 auto;color:#756b60;font-size:12px;line-height:1.5}.genealogy-eyebrow{margin:0;color:#8b4044;font-size:12px;font-weight:800;letter-spacing:.13em;line-height:1.6}.heritage-tree .branch-action,.heritage-workspace .branch-action{border:1px solid #ddc9bd;background:#fffdfa;color:#733238;border-radius:9px;padding:8px 13px;min-height:42px;font-size:13px;font-weight:600}.heritage-tree .branch-action:hover,.heritage-workspace .branch-action:hover{background:#f7efea;border-color:#ad7770}.heritage-workspace .branch-layout{display:block;border:1px solid #e4d7c2;border-radius:14px;background:#fffefa;box-shadow:0 8px 24px #60352908}.heritage-workspace .branch-content{padding:0;min-width:0}.genealogy-workspace-toolbar{display:grid;grid-template-columns:minmax(180px,270px) minmax(180px,1fr) auto;gap:12px;align-items:center;padding:10px 14px;background:#fffefa;border-radius:14px 14px 0 0}.genealogy-scope-button{display:flex;gap:16px;align-items:center;justify-content:space-between;min-width:0;min-height:50px;padding:6px 12px;border:1px solid #d9c5b4;border-radius:9px;background:#fbf5e9;color:#69323a;text-align:left;cursor:pointer}.genealogy-scope-button>span:first-child{min-width:0}.genealogy-scope-button small{display:block;font-size:10px;color:#836e58}.genealogy-scope-button strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}.genealogy-scope-button:hover{border-color:#a77364;background:#f5ead8}.genealogy-person-search{position:relative;display:flex;align-items:center;min-width:0;border:1px solid #ded5c7;border-radius:9px;background:#fff;color:#8c7c68}.genealogy-person-search:focus-within{outline:2px solid #ad873d;outline-offset:2px}.genealogy-person-search>svg{flex-shrink:0;margin-left:12px}.genealogy-person-search>input{width:100%;min-width:0;height:48px;padding:10px;font-size:14px;border:0;background:transparent;outline:none}.heritage-workspace .genealogy-person-search>input:focus-visible{outline:none}.genealogy-clear-search{width:44px;height:44px;flex-shrink:0;font-size:22px;color:#733238}.genealogy-view-select select{max-width:100%;min-height:50px;border:1px solid #ded5c7;border-radius:9px;padding:9px 12px;background:#fffefa;color:#69323a;font-size:13px;cursor:pointer}.genealogy-mobile-contribute,.genealogy-mobile-search-toggle,.genealogy-mobile-views,.genealogy-touch-hint{display:none}.heritage-workspace .genealogy-search-results{position:absolute;top:calc(100% + 6px);left:0;width:100%;max-height:min(400px,60dvh);overflow:auto;z-index:35;padding:7px;background:#fffefa;border:1px solid #dfcfc1;border-radius:12px;box-shadow:0 15px 35px #3e262433}.heritage-workspace .genealogy-search-results>p{padding:8px;font-size:12px;color:#827266}.heritage-workspace .genealogy-search-results button{display:block;width:100%;min-height:48px;padding:10px;text-align:left;border-radius:7px;color:#663038;font-size:14px}.heritage-workspace .genealogy-search-results button:hover{background:#f6ede0}.genealogy-search-results small{display:block;margin-top:3px;color:#87715d;font-size:11px}.genealogy-cluster-notice{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 14px;font-size:13px;color:#733238}.genealogy-branch-picker{width:min(520px,calc(100vw - 28px));max-width:none;max-height:calc(100dvh - 32px);padding:0;margin:auto;border:1px solid #d5bfaa;border-radius:18px;background:#fffdf8;color:#382e2b;box-shadow:0 24px 80px #3a1b2940}.genealogy-branch-picker::backdrop{background:#30201b55;backdrop-filter:blur(2px)}.genealogy-picker-body{display:flex;flex-direction:column;max-height:min(740px,calc(100dvh - 34px));padding:22px}.genealogy-picker-body>header{display:flex;gap:12px;align-items:flex-start;justify-content:space-between;margin-bottom:18px}.genealogy-picker-body h2{font-family:var(--font-serif),Georgia,serif;font-size:24px;font-weight:700;color:#633037}.genealogy-picker-body p{margin-top:6px;font-size:13px;line-height:1.6;color:#87715d}.genealogy-picker-body header button{width:44px;height:44px;flex-shrink:0;border-radius:9px;border:1px solid #e7daca;font-size:24px;color:#733238;cursor:pointer}.genealogy-picker-body>label{font-size:12px;color:#6c5543;margin-bottom:6px}.genealogy-picker-body>input{width:100%;min-height:48px;padding:10px 12px;border:1px solid #dbc9b8;border-radius:9px;background:white;font-size:16px;flex-shrink:0}.genealogy-branch-list{min-height:0;overflow:auto;overscroll-behavior:contain;margin-top:16px;padding:3px}.genealogy-branch-list section+section{margin-top:8px}.genealogy-branch-list button{cursor:pointer}.genealogy-branch-row{display:flex;border:1px solid #e4d7c2;border-radius:10px;overflow:hidden}.genealogy-branch-choice,.genealogy-founder-choice,.genealogy-subbranch-list button{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;width:100%;min-height:62px;padding:10px 12px;text-align:left;background:#fff;color:#633239}.genealogy-branch-list strong{display:block;font-size:14px}.genealogy-branch-list small{display:block;margin-top:3px;font-size:11px;color:#887461}.genealogy-founder-choice{margin-bottom:14px;border:1px solid #ddcbaa;border-radius:10px;background:#f8eedb}.genealogy-branch-expand{flex-shrink:0;padding:10px;min-width:90px;border-left:1px solid #e4d7c2;background:#faf5eb;color:#733238;font-size:11px}.genealogy-subbranch-list{margin:6px 0 12px 18px;border-left:2px solid #e0c89f;padding-left:10px;display:grid;gap:6px}.genealogy-subbranch-list button{min-height:54px;border:1px solid #e8ddcb;border-radius:9px}.genealogy-branch-list button:hover{background:#f6eddf}.genealogy-branch-list button[aria-pressed=true]{background:#f2e1c6;color:#632c32}.genealogy-current-label{font-size:10px;white-space:nowrap;color:#733238}.genealogy-picker-empty{padding:20px 4px}.genealogy-branch-picker :focus-visible{outline:3px solid #ad873d;outline-offset:-3px}.heritage-workspace .branch-layout.has-branch-sidebar{display:grid;grid-template-columns:208px minmax(0,1fr)}.genealogy-branch-sidebar{min-width:0;border-right:1px solid #e4d7c2;border-radius:14px 0 0 14px;background:#faf6ed}.genealogy-branch-sidebar .genealogy-picker-body{position:sticky;top:12px;max-height:calc(100dvh - 150px);padding:10px}.genealogy-branch-sidebar .genealogy-picker-body>header{align-items:center;gap:4px;margin-bottom:8px}.genealogy-branch-sidebar h2{font-size:19px}.genealogy-branch-sidebar .genealogy-picker-body header button{border:0;width:44px;height:44px}.genealogy-branch-sidebar .genealogy-picker-body>label{font-size:11px}.genealogy-branch-sidebar .genealogy-picker-body>input{min-height:42px;padding:8px 10px;font-size:13px}.genealogy-branch-sidebar .genealogy-branch-list{margin-top:10px;padding:2px}.genealogy-branch-sidebar .genealogy-branch-list section+section{margin-top:6px}.genealogy-branch-sidebar .genealogy-branch-choice,.genealogy-branch-sidebar .genealogy-founder-choice,.genealogy-branch-sidebar .genealogy-subbranch-list button{min-height:54px;gap:4px;padding:7px 9px}.genealogy-branch-sidebar .genealogy-branch-list strong{font-size:13px}.genealogy-branch-sidebar .genealogy-branch-list small{font-size:10px;margin-top:2px}.genealogy-branch-sidebar .genealogy-founder-choice{margin-bottom:10px}.genealogy-branch-sidebar .genealogy-branch-expand{min-width:44px;padding:4px;font-size:16px}.genealogy-branch-sidebar .genealogy-subbranch-list{margin:5px 0 8px 7px;padding-left:6px;gap:5px}.genealogy-branch-sidebar .genealogy-current-label{font-size:13px}.genealogy-branch-sidebar :focus-visible{outline-offset:-3px}.has-branch-sidebar .genealogy-workspace-toolbar{border-top-left-radius:0}.heritage-tree.gph-tree-shell{position:relative;border:0;border-top:1px solid #e4d7c2;border-radius:0 0 14px 14px;background:#fffefa;color:#302d2b}.heritage-tree .gph-tree-toolbar[aria-label="Góc nhìn"]{background:#fffefa;color:#733238;padding:6px 10px;gap:4px;border-color:#eae0d1;flex-wrap:nowrap;overflow-x:auto}.heritage-tree .gph-tree-toolbar[aria-label="Góc nhìn"] button{border-color:transparent;color:#733238;font-size:12px;padding:6px 10px;min-height:38px}.heritage-tree .gph-tree-toolbar[aria-label="Góc nhìn"] button:hover:not(:disabled){background:#f4ecdf;color:#733238;border-color:#e3d4be}.heritage-tree .gph-tree-tool-group{min-height:38px;flex-shrink:0;flex-wrap:nowrap;gap:2px;padding-right:8px;border-color:#e6dbc9}.heritage-tree .gph-tree-tool-group:last-child{margin-left:auto}.genealogy-node-count{margin-left:auto;padding:0 7px;white-space:nowrap;color:#957b5b;font-size:11px}.genealogy-scope-summary{flex-basis:100%;margin:0;font-size:12px;color:#897358}.heritage-tree output{font-size:13px;min-width:45px;color:#733238}.heritage-tree>.gph-tree-hint:first-of-type{padding:6px 14px;font-size:11px;border:0;background:#fffefa;display:flex;align-items:center;gap:10px;color:#8a7b6c}.heritage-tree>.gph-tree-hint:first-of-type button{min-height:34px;min-width:34px;padding:4px;margin-left:auto}.heritage-tree .gph-tree-options:not([hidden]){background:#fbf5ea;padding:12px 16px;font-size:13px}.heritage-tree .gph-tree-toolbar[aria-label="Sắp xếp thẻ"]{background:#fbf5ea;padding:10px 14px;border-color:#e4d7c2;gap:5px}.heritage-tree .gph-tree-toolbar[aria-label="Sắp xếp thẻ"] button{min-height:38px;font-size:12px}.heritage-tree>.gph-tree-status{padding:8px 16px;margin:0;color:#806c58;background:#fcf8f0;font-size:12px}.heritage-tree>.gph-tree-status:empty{display:none}.genealogy-stage-heading{display:flex;flex-wrap:wrap;gap:6px 20px;align-items:center;justify-content:space-between;padding:9px 16px;border-top:1px solid #ebe0cf;color:#8a7965;font-size:11px}.genealogy-stage-heading strong{margin-left:5px;color:#6d3b3a;font-weight:600}.heritage-tree .genealogy-stage-layout{display:grid;grid-template-columns:minmax(0,1fr);min-height:0}.heritage-tree .genealogy-stage-layout.has-detail{grid-template-columns:minmax(0,1fr) 296px}.heritage-tree .tree-stage{min-width:0}.heritage-tree .tree-mount{height:max(360px,calc(100dvh - 280px))}.heritage-tree .genealogy-canvas{background-color:#fcf7ec;background-image:radial-gradient(#9f87642b .85px,transparent 0);background-size:26px 26px}.heritage-tree .genealogy-person{border:1px solid #d8c7ac;border-left:5px solid #aea69b;border-radius:11px;background:#fffdf8;color:#382e2b;box-shadow:0 5px 12px #684c3213}.heritage-tree .genealogy-person.is-male{border-left-color:#719cbb}.heritage-tree .genealogy-person.is-female{border-left-color:#c58998;background:#fff9f7}.heritage-tree .genealogy-person.is-root{border-color:#9c733d #9c733d #9c733d #d4b263;background:#74343a;color:#fff3d8;box-shadow:0 5px 18px #5d232e33}.heritage-tree .genealogy-person.is-route{border-color:#bf9a48;box-shadow:0 3px 12px #b38c342b}.heritage-tree .genealogy-person.is-selected{outline:3px solid #bc9543;outline-offset:4px;box-shadow:0 8px 22px #98703b33}.heritage-tree .genealogy-person.is-selected:not(.is-root){background:#fff8e8}.heritage-tree .genealogy-person.is-selected .genealogy-name{background:transparent;color:inherit}.heritage-tree .genealogy-person.is-gap{border-style:dashed;border-left-color:#bca37c;background:#f8f0dc;color:#826a47}.heritage-tree .genealogy-world[data-has-route=true] .genealogy-person:not(.is-route):not(.is-selected):not(:focus-within):not(:hover){opacity:.45}.heritage-tree .genealogy-world[data-has-route=true] .genealogy-edge:not(.is-route){opacity:.22}.heritage-tree .genealogy-person.is-route{box-shadow:0 5px 18px #b38c3440}.heritage-tree .genealogy-person.is-selected{box-shadow:0 8px 28px #98703b55,0 0 0 8px #c6a45d18}@media screen and (prefers-reduced-motion:no-preference){.heritage-tree .genealogy-person{transition:opacity .35s ease-out,box-shadow .2s ease,border-color .2s ease,background-color .2s ease}.heritage-tree .genealogy-edge{transition:opacity .35s ease-out,stroke .25s ease}}@media print{.heritage-tree .genealogy-world[data-has-route=true] .genealogy-edge,.heritage-tree .genealogy-world[data-has-route=true] .genealogy-person{opacity:1!important;transition:none!important}.route-reveal-wire{stroke-dashoffset:0!important}}.heritage-tree .genealogy-name{padding:7px 10px 2px;min-height:0;flex:1;text-align:left;gap:2px;overflow:hidden}.heritage-tree .genealogy-name strong{font-family:var(--font-serif),Georgia,serif;font-size:18px;line-height:1.22;font-weight:700;flex-shrink:0}.heritage-tree .genealogy-name>span{font-size:12px;color:#88735f}.heritage-tree .genealogy-name .genealogy-card-meta{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#937e66;text-transform:uppercase;letter-spacing:.08em}.genealogy-canvas-legend i,.genealogy-life-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#b0aaa0}.genealogy-canvas-legend .is-living,.genealogy-life-dot.is-living{background:#649d73}.heritage-tree .genealogy-branch{padding:2px 10px;font-size:12px;color:#887566;min-height:20px;max-height:20px;flex-shrink:0}.heritage-tree .genealogy-branch a{color:#87464a;text-decoration-color:#d4b8ae}.heritage-tree .genealogy-card-footer{margin-top:auto;padding:4px 7px 6px;display:grid;gap:4px;flex-shrink:0}.heritage-tree .genealogy-actions{padding:0;margin:0;gap:4px}.genealogy-mobile-branch-label,.heritage-tree .genealogy-actions.is-compact-actions{display:none}.heritage-tree .genealogy-actions button{border:1px solid #e0cfb7;background:#fbf5e9;color:#754047;font-size:11px;min-width:39px;min-height:26px;border-radius:6px;padding:2px 4px}.heritage-tree .genealogy-proposal-actions{display:flex;gap:4px}.heritage-tree .genealogy-proposal-actions a{display:flex;align-items:center;justify-content:center;gap:3px;flex:1;min-width:0;min-height:32px;padding:3px 5px;border:1px solid #d8bdac;border-radius:6px;color:#733238;background:#fffaf2;font-size:11px;font-weight:600;white-space:nowrap;text-decoration:none}.heritage-tree .genealogy-proposal-actions .genealogy-add-person{flex:0 0 auto;color:#fff;background:#733238;border-color:#733238}.heritage-tree .genealogy-add-person span{font-size:16px;line-height:1}.heritage-tree .genealogy-proposal-actions a:hover{background:#f1e3c9;color:#57252c}.heritage-tree .genealogy-person.is-root .genealogy-proposal-actions a{border-color:#c09c76}.heritage-tree .genealogy-person.is-root .genealogy-add-person{color:#57252c;background:#f1d8a7}.heritage-tree .genealogy-proposal-actions a:focus-visible{outline-offset:-3px}@media print{.heritage-tree .genealogy-card-footer{display:none}}.heritage-tree .genealogy-actions button:hover{background:#f1e3c9}.heritage-tree .genealogy-person.is-root .genealogy-branch,.heritage-tree .genealogy-person.is-root .genealogy-branch a,.heritage-tree .genealogy-person.is-root .genealogy-name>span{color:#f2d9b8}.heritage-tree .genealogy-person.is-root .genealogy-actions button{color:#fff0d3;background:#8a454a;border-color:#b47863}.heritage-tree .gph-minimap{bottom:14px;right:14px;background:#fffef6ed;border:1px solid #d6c29f;border-radius:10px;padding:7px;box-shadow:0 5px 16px #705d2e18;width:145px;height:92px}.heritage-tree .gph-minimap .minimap-viewport{fill:#bd964325;stroke:#956f31}.genealogy-canvas-legend{position:absolute;left:14px;bottom:14px;display:flex;flex-wrap:wrap;gap:10px;padding:8px 11px;border:1px solid #e0d2b9;border-radius:999px;background:#fffdf5ed;color:#8a765f;font-size:10px;pointer-events:none}.genealogy-canvas-legend>span{display:flex;align-items:center;gap:5px}.genealogy-dash-key:before{content:"";width:12px;border-top:1px dashed #aa8752}.genealogy-detail{position:relative;min-width:0;max-height:780px;overflow:auto;padding:24px 20px;border-left:1px solid #e3d1b5;background:#fffdfa;box-shadow:-10px 0 25px #68452706}.genealogy-detail .genealogy-detail-close{position:absolute;top:8px;right:8px;color:#80424a;font-size:25px;min-height:40px;min-width:40px;border-radius:9px}.genealogy-detail .genealogy-detail-close:hover{background:#f7ece5}.genealogy-detail>.genealogy-eyebrow{padding-right:30px;font-size:10px}.genealogy-detail h2{margin:12px 0;font-family:var(--font-serif),Georgia,serif;font-size:27px;line-height:1.2;color:#623038}.genealogy-detail-badge{display:inline-flex;padding:4px 10px;border-radius:999px;background:#f3ecdc;color:#806946;font-size:12px}.genealogy-detail dl{margin:18px 0}.genealogy-detail dl>div{display:grid;grid-template-columns:75px minmax(0,1fr);gap:10px;padding:11px 0;border-bottom:1px solid #eee5d8;font-size:13px;line-height:1.5}.genealogy-detail dt{color:#9b8977}.genealogy-detail dd{color:#594b3e;overflow-wrap:anywhere}.genealogy-detail .genealogy-detail-primary{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:47px;padding:10px 15px;border-radius:9px;background:#733238;color:white;font-size:15px;font-weight:700}.genealogy-detail-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.genealogy-detail-actions .branch-action{font-size:12px;padding:6px 10px}.genealogy-detail .genealogy-compare-start{margin-top:18px;width:100%;min-height:45px;padding:9px 12px;text-align:left;color:#855e32;background:#f7edcf;border-radius:9px;font-size:13px;font-weight:600}.genealogy-detail-note{margin-top:14px;padding:12px;border-radius:9px;background:#f8f1e5;color:#917b5c;font-size:12px;line-height:1.65}.genealogy-compare-people{display:grid;gap:9px;margin:18px 0}.genealogy-compare-people button{display:flex;flex-direction:column;align-items:flex-start;gap:5px;width:100%;padding:13px;border:1px solid #caae71;border-radius:9px;background:#fffaf0;text-align:left}.genealogy-compare-people button>span{color:#9b7a46;font-size:9px;letter-spacing:.1em}.genealogy-compare-people strong{color:#6c3538;font-family:var(--font-serif),Georgia,serif;font-size:18px}.genealogy-compare-people small,.genealogy-compare-people>p{color:#97836b;font-size:12px;line-height:1.6}.genealogy-comparison-result section{padding:14px 0;border-bottom:1px solid #e8dcc9}.genealogy-comparison-result h3{margin:7px 0;color:#79423d;font-family:var(--font-serif),Georgia,serif;font-size:23px}.genealogy-comparison-result p{color:#8a7661;font-size:12px;line-height:1.6}.genealogy-lineage{display:flex;flex-wrap:wrap;gap:8px 10px;align-items:center;padding:13px 16px;min-height:62px;border-top:1px solid #e5d8c4;background:#fffdf7;color:#98846c;font-size:12px}.genealogy-lineage .genealogy-eyebrow{font-size:10px}.genealogy-lineage-step{display:inline-flex;align-items:center;gap:8px}.heritage-tree .genealogy-lineage button{display:inline-flex;flex-wrap:wrap;gap:6px;align-items:center;min-height:36px;padding:5px 11px;border:1px solid #dac7a4;border-radius:999px;background:#fff9e9;color:#76413d;font-size:12px}.genealogy-lineage small{font-size:10px;color:#ae8751}.heritage-tree>.gph-tree-hint{font-size:11px;color:#97856d;border-color:#ede2d1;background:#fffcf6}.heritage-tree.gph-tree-fullscreen{position:fixed;inset:12px;border:1px solid #dfccaa;border-radius:16px;z-index:80}.heritage-tree.gph-tree-fullscreen .genealogy-stage-layout{flex:1;min-height:0}.heritage-tree.gph-tree-fullscreen .tree-mount,.heritage-tree.gph-tree-fullscreen .tree-stage{height:100%;min-height:0}.heritage-tree.gph-tree-fullscreen .genealogy-detail{max-height:100%}.heritage-workspace .gph-member-list,.heritage-workspace .gph-overview{padding:22px 18px;border-top:1px solid #e5d8c4}.heritage-workspace .gph-member-list h3,.heritage-workspace .gph-overview h3{color:#6e3539;font-family:var(--font-serif),Georgia,serif;font-size:23px}.heritage-workspace .gph-member-list header p,.heritage-workspace .gph-overview p{margin:8px 0 18px;font-size:13px;color:#87755f;line-height:1.6}.heritage-workspace .gph-overview button{border-radius:10px;border-color:#e1d0b5;background:#fffaf0;color:#6e3539}.heritage-tree :focus-visible,.heritage-workspace :focus-visible{outline:3px solid #ae873d;outline-offset:3px}.genealogy-canvas-toolbar{display:flex;align-items:center;gap:6px;min-height:48px;padding:4px 12px;border-bottom:1px solid #ece2d3}.genealogy-canvas-toolbar>p{flex:1;margin:0;font-size:12px;color:#8c7962}.genealogy-canvas-toolbar>p span{margin:0 7px}.heritage-tree .genealogy-canvas-toolbar .branch-action{min-height:38px;padding:6px 12px;font-size:12px;border-color:transparent;background:transparent}.heritage-tree .genealogy-canvas-toolbar .branch-action[aria-pressed=true]{color:#733238;background:#f3e7d4;border-color:#d8bd97}.heritage-tree .genealogy-canvas-toolbar button[aria-expanded=true]{background:#f3e7d4;border-color:#d8bd97}.genealogy-tools-panel{position:absolute;top:52px;right:12px;width:410px;max-width:calc(100% - 24px);max-height:min(620px,calc(100dvh - 180px));overflow:auto;overscroll-behavior:contain;z-index:30;padding:16px;border:1px solid #d8c3a8;border-radius:12px;background:#fffdf8;box-shadow:0 16px 45px #53332830}.genealogy-tools-panel>header{display:flex;justify-content:space-between;align-items:center;gap:12px;color:#69323a;margin-bottom:12px}.heritage-tree .genealogy-tools-panel>header button{width:38px;min-width:38px;min-height:38px;border:1px solid #e3d6c5;border-radius:8px;font-size:22px}.genealogy-tool-actions{display:flex;flex-wrap:wrap;gap:7px}.genealogy-tools-panel details{border-top:1px solid #e9dfd0;margin-top:14px;padding-top:6px}.genealogy-tools-panel summary{padding:10px 0;cursor:pointer;color:#733238;font-size:13px;font-weight:600}.genealogy-tools-panel p{margin:8px 0 12px;font-size:12px;line-height:1.65;color:#806c58}.genealogy-tool-fields{display:grid;gap:12px;padding:8px 0;font-size:13px}.genealogy-tool-fields label{display:flex;flex-wrap:wrap;align-items:center;gap:8px;color:#733238}.genealogy-tool-fields input[type=checkbox]{width:18px;height:18px;accent-color:#733238}.genealogy-zoom-controls{position:absolute;bottom:16px;right:16px;z-index:6;display:flex;align-items:center;gap:2px;padding:4px;border:1px solid #dac5a6;border-radius:12px;background:#fffdf7f5;box-shadow:0 4px 15px #54361c14}.heritage-tree .genealogy-zoom-controls button{min-width:40px;min-height:40px;padding:4px 8px;border-radius:8px;font-size:22px;color:#733238}.heritage-tree .genealogy-zoom-controls button:hover{background:#f3e7d4}.heritage-tree .genealogy-zoom-controls output{min-width:42px;text-align:center;font-size:12px;font-variant-numeric:tabular-nums}.heritage-tree .genealogy-zoom-controls .genealogy-fit{border-left:1px solid #e6d5bc;border-radius:0 8px 8px 0;font-size:12px;padding:4px 12px}.heritage-tree .gph-minimap{bottom:82px;right:16px}.heritage-tree.gph-tree-fullscreen .genealogy-tools-panel{max-height:calc(100dvh - 100px)}@media (max-width:1023px){.heritage-workspace .branch-layout.has-branch-sidebar{display:block}.genealogy-branch-sidebar{display:none}.has-branch-sidebar .genealogy-workspace-toolbar{border-top-left-radius:14px}}@media (max-width:850px){.genealogy-workspace-toolbar{grid-template-columns:minmax(180px,230px) minmax(150px,1fr) auto;gap:8px;padding:8px 10px}.genealogy-view-select select{padding-inline:8px}.heritage-tree .genealogy-stage-layout.has-detail{grid-template-columns:minmax(0,1fr)}.heritage-tree .genealogy-detail{border-top:1px solid #e3d1b5;border-left:0;max-height:480px;padding:20px}.heritage-tree.gph-tree-fullscreen .genealogy-stage-layout.has-detail{grid-template-rows:minmax(240px,1fr) minmax(0,.75fr)}.genealogy-canvas-toolbar>p{font-size:11px}.genealogy-canvas-legend{font-size:9px;gap:6px}}@media (max-width:759px){.heritage-tree .genealogy-actions.is-compact-actions{display:flex}.heritage-tree .genealogy-actions .genealogy-card-secondary{display:none}.heritage-tree .genealogy-actions:has(.genealogy-card-secondary):not(:has([aria-expanded])){display:none}.heritage-tree .genealogy-actions button{min-height:44px;font-size:12px}.genealogy-mobile-branch-label{display:inline}.gph-main:has(>.heritage-workspace){padding:10px 6px 12px}.heritage-workspace .branch-title{padding:0 6px 10px;gap:4px}.heritage-workspace .branch-title h1{font-size:23px}.heritage-workspace .branch-title .branch-stats{width:100%;margin:0;font-size:10px}body:has(.heritage-workspace)>.site-footer{display:none}.genealogy-workspace-toolbar{grid-template-columns:minmax(0,1fr) 50px;gap:8px;padding:8px}.genealogy-person-search{display:none;grid-column:1/-1;grid-row:3}.is-search-open .genealogy-person-search{display:flex}.genealogy-person-search>input{font-size:16px;height:48px}.genealogy-person-search input::-webkit-search-cancel-button{-webkit-appearance:none}.genealogy-view-select{display:none}.genealogy-mobile-search-toggle{display:grid;place-items:center;width:50px;height:50px;border:1px solid #d9c5b4;border-radius:10px;background:#fffaf2;color:#733238}.genealogy-mobile-search-toggle[aria-expanded=true]{background:#f2e1c6}.genealogy-mobile-views{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;background:#f2eee7;padding:3px;border-radius:10px}.genealogy-mobile-views button{min-height:44px;padding:5px;border-radius:8px;font-size:12px;font-weight:600;color:#796456}.genealogy-mobile-views button[aria-pressed=true]{background:#fffdf8;color:#733238;box-shadow:0 2px 6px #53332812}.genealogy-scope-button{gap:6px;padding:6px 10px}.genealogy-scope-button strong{font-size:15px}.genealogy-scope-button small{font-size:11px}.genealogy-canvas-toolbar{justify-content:flex-end;padding:2px 8px;min-height:48px}.genealogy-canvas-toolbar>p{display:none}.genealogy-canvas-toolbar>p span{margin:0 3px}.heritage-tree .genealogy-canvas-toolbar .branch-action{min-height:44px;padding:6px 14px;font-size:13px}.heritage-tree .tree-mount{height:max(300px,calc(100dvh - 388px - env(safe-area-inset-top) - env(safe-area-inset-bottom)));min-height:0}.heritage-workspace:has(.is-search-open) .heritage-tree:not(.gph-tree-fullscreen) .tree-mount{height:max(300px,calc(100dvh - 444px - env(safe-area-inset-top) - env(safe-area-inset-bottom)))}.genealogy-touch-hint{display:block;margin-right:auto;max-width:135px;min-width:0;color:#806c58;font-size:10px;line-height:1.5}.genealogy-stage-layout{position:relative}.heritage-tree .genealogy-stage-layout.has-detail{grid-template-columns:minmax(0,1fr)}.heritage-tree .genealogy-detail{position:absolute;z-index:15;bottom:0;left:0;right:0;max-height:55%;padding:18px 16px;border:1px solid #dac5a6;border-radius:20px 20px 0 0;box-shadow:0 -8px 30px #53332824;overscroll-behavior:contain}.genealogy-detail h2{padding-right:30px;font-size:23px;margin:8px 0}.genealogy-detail .genealogy-detail-close{min-height:44px;min-width:44px;top:6px;right:6px;background:#fffdf8}.genealogy-detail dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px;margin:12px 0}.genealogy-detail dl>div{grid-template-columns:minmax(0,1fr);gap:3px;padding:8px 0}.genealogy-detail dt{font-size:11px;color:#806c58}.genealogy-detail-actions .branch-action{flex:1;min-height:44px}.genealogy-mobile-contribute{display:flex;gap:8px;margin-top:8px}.genealogy-mobile-contribute a{flex:1;display:flex;align-items:center;justify-content:center;min-height:46px;padding:8px;font-size:12px;color:#733238;border:1px solid #d8bdac;border-radius:9px;background:#fff8ed;text-align:center}.genealogy-canvas-legend{display:none}.genealogy-zoom-controls{right:10px;bottom:10px}.heritage-tree .genealogy-zoom-controls button{min-width:44px;min-height:44px}.heritage-tree .gph-minimap{width:105px;height:70px;right:10px;bottom:76px}.genealogy-branch-picker{inset:auto 0 0;margin:0 auto;width:100%;max-width:560px;max-height:88dvh;border-radius:22px 22px 0 0;border-bottom:0}.genealogy-branch-picker:before{content:"";display:block;width:36px;height:4px;border-radius:4px;background:#d5c4ac;margin:10px auto 0}.genealogy-picker-body{padding:16px 16px calc(16px + env(safe-area-inset-bottom));max-height:calc(88dvh - 16px)}.genealogy-picker-body h2{font-size:23px}.genealogy-picker-body h2:focus{outline:none}.genealogy-branch-expand{min-width:80px;padding-inline:8px;font-size:10px}.genealogy-current-label{font-size:9px}.genealogy-tools-panel{right:6px;max-width:calc(100% - 12px);top:50px;padding:16px;max-height:min(540px,68dvh);border-radius:16px}.heritage-tree .genealogy-tools-panel .branch-action{min-height:44px}.heritage-tree .genealogy-tools-panel>header button{min-width:44px;min-height:44px}.genealogy-tool-fields select{max-width:100%;min-height:44px;font-size:16px}.heritage-tree .genealogy-lineage{padding:10px 12px;flex-wrap:nowrap;overflow-x:auto}.genealogy-lineage-step,.genealogy-lineage>.genealogy-eyebrow{flex-shrink:0}.heritage-tree .genealogy-lineage button{min-height:44px}.heritage-tree.gph-tree-fullscreen{inset:0;border-radius:0;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}.heritage-tree.gph-tree-fullscreen .genealogy-stage-layout.has-detail{grid-template-rows:minmax(0,1fr)}.heritage-tree.gph-tree-fullscreen .tree-mount{height:100%}}@media print{.genealogy-branch-picker,.genealogy-branch-sidebar,.genealogy-canvas-toolbar,.genealogy-tools-panel,.genealogy-workspace-toolbar,.genealogy-zoom-controls{display:none!important}.heritage-workspace .branch-layout.has-branch-sidebar{display:block}}