.gpc5-tree,.gpc5-memorial,.gpc5-locked{font-family:inherit;border:1px solid #ddd9cd;border-radius:12px;background:#fffdf8;color:#322c25;padding:18px;margin:20px 0}.gpc5-toolbar{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin-bottom:12px}.gpc5-toolbar label{display:flex;flex-direction:column;font-size:14px;gap:4px}.gpc5-toolbar input{min-width:240px;padding:8px;border:1px solid #a89b85;border-radius:5px}.gpc5-toolbar button{border:0;border-radius:5px;padding:10px 14px;background:#6e2530;color:white;cursor:pointer}.gpc5-canvas{height:520px;max-height:65vh;overflow:auto;border:1px solid #e5dccc;border-radius:8px;background:linear-gradient(#fffcf6,#f7f0e3)}.gpc5-canvas svg{display:block;max-width:none}.gpc5-node{cursor:pointer}.gpc5-node rect{fill:white;stroke:#b8a17a;stroke-width:1.3}.gpc5-node.selected rect{stroke:#972f3a;stroke-width:3;fill:#fff3ea}.gpc5-node text{fill:#29251f;font-size:13px;dominant-baseline:middle}.gpc5-link{stroke:#967f66;stroke-width:1.6;fill:none}.gpc5-link.spouse{stroke-dasharray:6 4;stroke:#a45c68}.gpc5-help,.gpc5-small{font-size:12px;color:#74695d;margin:8px 0 0}.gpc5-memorial h3{margin:0 0 15px}.gpc5-memorial ul{list-style:none;padding:0;margin:0}.gpc5-memorial li{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #eee4d8;padding:12px 0;gap:15px}.gpc5-memorial li:last-child{border:0}.gpc5-memorial li div{display:flex;flex-direction:column}.gpc5-memorial span,.gpc5-memorial small{font-size:12px;color:#74695d}.gpc5-date{font-weight:600;text-align:right;white-space:nowrap}.gpc5-locked a{display:inline-block;background:#722a37;color:white;padding:9px 14px;border-radius:5px;text-decoration:none}
/* Tree visualizations 0.2.0 */
.gpc5-toolbar{align-items:center;gap:9px}.gpc5-toolbar select{min-width:115px;padding:8px;border:1px solid #b7a995;border-radius:7px;background:white}.gpc5-toolbar .gpc5-view{min-width:205px}.gpc5-toolbar button{border-radius:20px;padding:8px 13px;font-weight:500}.gpc5-checkbox{flex-direction:row!important;align-items:center;white-space:nowrap}.gpc5-checkbox input{min-width:0;width:auto}.gpc5-canvas{height:600px;max-height:75vh;background-color:#fcfaf5;background-image:radial-gradient(#dcd4c6 0.7px,transparent 0.7px);background-size:18px 18px;scroll-behavior:smooth}.gpc5-svg{display:block;max-width:none;overflow:visible}.gpc5-person{cursor:pointer;outline:none}.gpc5-person-bg{fill:white;stroke:#d6d0c4;stroke-width:1.5;filter:drop-shadow(0 3px 4px rgba(49,41,35,.1))}.gpc5-person:hover .gpc5-person-bg,.gpc5-person:focus .gpc5-person-bg{stroke:#b88d44;stroke-width:3}.gpc5-person.is-active .gpc5-person-bg{fill:#fff6e4;stroke:#b36e1b;stroke-width:3}.gpc5-person.is-deceased{opacity:.78}.gpc5-person-symbol{font-size:18px;font-weight:bold;fill:#594a42}.gpc5-person-name{font-size:12px;font-weight:650;fill:#39322c}.gpc5-person-meta{font-size:10px;fill:#857a70}.gpc5-edge{stroke:#b6a991;stroke-width:2;fill:none;opacity:.85}.gpc5-edge.spouse{stroke:#cf8496;stroke-dasharray:5 5}.gpc5-edge.is-related{stroke:#d28b2e;stroke-width:3}.gpc5-toggle{cursor:pointer}.gpc5-toggle circle{fill:#fff;stroke:#d2c4ae;stroke-width:1.5}.gpc5-toggle text{fill:#564c40;font-size:18px;font-weight:700}.gpc5-status{margin:0 0 8px;font-size:12px;color:#726657}.gpc5-tree button:focus-visible,.gpc5-tree input:focus-visible,.gpc5-tree select:focus-visible{outline:2px solid #b77525;outline-offset:2px}
/* v0.3: stone, amber and rounded card styles adapted from original tree component aesthetics. */
.gpc5-tree{background:#fff;border-color:#e7e5e4;color:#44403c;position:relative}.gpc5-toolbar{background:rgba(255,255,255,.95);border:1px solid #e7e5e4;border-radius:14px;padding:12px;box-shadow:0 1px 7px #29252409}.gpc5-toolbar button{background:#fafaf9;color:#57534e;border:1px solid #e7e5e4;border-radius:12px}.gpc5-toolbar button:hover{background:#fffbeb;border-color:#fcd34d;color:#92400e}.gpc5-canvas{background-color:#fafaf9;background-image:radial-gradient(#d6d3d1 0.7px,transparent .7px);border-color:#e7e5e4;border-radius:16px;min-height:580px}.gpc5-node-card{cursor:pointer}.gpc5-node-card .gpc5-card-bg{fill:#fff;stroke:#e7e5e4;stroke-width:1.5;filter:drop-shadow(0px 2px 5px #29252416)}.gpc5-node-card:hover .gpc5-card-bg,.gpc5-node-card:focus .gpc5-card-bg{stroke:#f59e0b;stroke-width:2.5}.gpc5-node-card.is-active .gpc5-card-bg{fill:#fffbeb;stroke:#d97706;stroke-width:2.5}.gpc5-node-card.is-deceased{opacity:.78}.gpc5-node-card .gpc5-card-name{fill:#292524;font-size:12px;font-weight:650}.gpc5-node-card .gpc5-card-subtitle{fill:#78716c;font-size:10px}.gpc5-avatar-initials{fill:white;font-weight:600;font-size:12px}.gpc5-node-toggle{cursor:pointer}.gpc5-node-toggle circle{fill:#fff;stroke:#d6d3d1;stroke-width:1.5}.gpc5-node-toggle text{fill:#78716c;font-size:17px;font-weight:600}.gpc5-edge{stroke:#a8a29e;stroke-width:1.5;fill:none}.gpc5-edge.spouse{stroke:#c08497;stroke-dasharray:5 4}.gpc5-edge.related{stroke:#d97706;stroke-width:2.8}.gpc5-member-detail{margin:8px 0;padding:10px 14px;border:1px solid #fde68a;border-radius:10px;background:#fffbeb;display:flex;flex-wrap:wrap;gap:10px;align-items:center;font-size:13px}.gpc5-member-detail[hidden]{display:none}.gpc5-member-detail span{color:#78716c}.gpc5-tree:fullscreen{background:#fafaf9;overflow:auto;padding:20px}.gpc5-tree:fullscreen .gpc5-canvas{height:calc(100vh - 230px);max-height:none}@media(max-width:600px){.gpc5-toolbar input{min-width:140px}.gpc5-toolbar{gap:6px}.gpc5-canvas{height:65vh}}
.gpc5-node-card.view-family .gpc5-card-bg{fill:#fff;stroke:#e7e5e4;filter:drop-shadow(0 2px 6px #29252416)}.gpc5-node-card.view-family .gpc5-card-name{font-size:11px}.gpc5-node-card.view-family:hover{filter:drop-shadow(0px 3px 4px #b4530920)}.gpc5-ring{font-size:12px}.gpc5-node-card.view-mindmap .gpc5-card-bg{fill:#ffffffec}.gpc5-node-card.view-bubble .gpc5-card-bg{fill:#fff;stroke:#e7e5e4}

/* v0.4: interactive scroll-pan viewport and source-inspired member list */
.gpc5-canvas:not(.gpc5-list-mode){cursor:grab;touch-action:none;scroll-behavior:auto;overscroll-behavior:contain;user-select:none;-webkit-user-select:none}
.gpc5-canvas.is-dragging{cursor:grabbing!important}
.gpc5-canvas.is-dragging .gpc5-node-card{cursor:grabbing}
.gpc5-canvas.gpc5-list-mode{overflow:auto;cursor:auto;background:#fafaf9;padding:18px;touch-action:auto;max-height:75vh}
.gpc5-list-tools{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;font-weight:650;margin-bottom:20px;color:#44403c}
.gpc5-list-tools select{background:white;border:1px solid #d6d3d1;border-radius:10px;padding:8px 12px}
.gpc5-list-group{margin-bottom:25px}.gpc5-list-group h3{color:#78716c;font-size:14px;font-weight:650;margin:0 0 10px}
.gpc5-list-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}
.gpc5-list-person{display:flex;align-items:center;gap:12px;text-align:left;min-width:0;padding:13px!important;border-radius:14px!important;background:#fff!important;color:#292524!important;border:1px solid #e7e5e4!important;cursor:pointer}
.gpc5-list-person:hover,.gpc5-list-person.is-active{border-color:#d97706!important;background:#fffbeb!important}
.gpc5-list-avatar{display:flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;border-radius:50%;overflow:hidden;background:#a8a29e;color:white;font-weight:650}
.gpc5-list-avatar img{width:100%;height:100%;object-fit:cover}
.gpc5-list-info{min-width:0;display:flex;flex-direction:column;gap:4px}.gpc5-list-info strong{font-size:13px;overflow-wrap:anywhere}.gpc5-list-info small{font-size:11px;color:#78716c}

/* v0.5: real scene panning (not scroll-based); browser-default SVG overflow must not interfere */
.gpc5-tree .gpc5-canvas:not(.gpc5-list-mode){position:relative;overflow:hidden!important;touch-action:none!important;cursor:grab!important;overscroll-behavior:contain;user-select:none;-webkit-user-select:none}
.gpc5-tree .gpc5-canvas:not(.gpc5-list-mode).is-dragging{cursor:grabbing!important}
.gpc5-tree .gpc5-canvas:not(.gpc5-list-mode) .gpc5-svg{display:block!important;width:100%!important;height:100%!important;min-width:0!important;max-width:none!important;touch-action:none!important;user-select:none!important}
.gpc5-tree .gpc5-canvas:not(.gpc5-list-mode) .gpc5-svg .gpc5-scene{transform-box:view-box}
.gpc5-tree .gpc5-canvas.gpc5-list-mode{overflow:auto!important;touch-action:auto!important}
.gpc5-tree .gpc5-zoom-label{font-size:12px;color:#78716c;font-variant-numeric:tabular-nums;min-width:35px;text-align:center}

.gpc5-spouse-rank{fill:#92400e;font-size:11px;font-weight:650;pointer-events:none}

/* v0.6 - shared spouse family frame, icon, full member profile popover */
.gpc5-family-frame-bg{fill:#fff7ed;fill-opacity:.65;stroke:#d6a45a;stroke-width:1.6;stroke-dasharray:0;filter:drop-shadow(0 4px 10px #78350f13)}
.gpc5-family-frame-badge{fill:#ffedd5;stroke:#f5cf98;stroke-width:.7}
.gpc5-family-frame-title{font-size:12px;fill:#9a3412;font-weight:700;pointer-events:none}
.gpc5-node-card .gpc5-gender-icon{font-size:17px;fill:#9a7e70;font-weight:700;pointer-events:none}
.gpc5-node-card .gpc5-ring{fill:#be4561;font-size:14px;pointer-events:none}
.gpc5-tree{isolation:isolate}
.gpc5-tree .gpc5-member-detail{position:absolute;right:26px;top:104px;width:min(385px,calc(100% - 52px));max-height:min(580px,70vh);overflow:auto;z-index:11;display:block;padding:18px;background:#fff;border:1px solid #ead6b5;border-radius:18px;box-shadow:0 20px 60px #29252433}
.gpc5-tree .gpc5-member-detail[hidden]{display:none!important}
.gpc5-detail-header{display:flex;gap:12px;align-items:center;margin-bottom:13px;position:relative;padding-right:29px}
.gpc5-detail-avatar{width:64px;height:64px;border-radius:50%;background:#b08e71;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;flex:none;overflow:hidden}
.gpc5-detail-avatar img{width:100%;height:100%;object-fit:cover}
.gpc5-detail-header h3{margin:2px 0 5px;font-size:19px;line-height:1.35;color:#292524}
.gpc5-detail-eyebrow{font-size:10px;letter-spacing:.09em;color:#78716c;font-weight:700}
.gpc5-detail-generation{font-size:12px;color:#92400e;background:#fffbeb;padding:4px 8px;border-radius:20px}
.gpc5-detail-close{position:absolute;right:0;top:0;border:0!important;background:#f5f5f4!important;color:#44403c!important;border-radius:50%!important;width:30px;height:30px;padding:0!important;font-size:20px!important}
.gpc5-detail-body{display:grid;gap:0}.gpc5-detail-line{display:grid;grid-template-columns:104px minmax(0,1fr);gap:8px;border-bottom:1px solid #f1f0ee;padding:9px 0;align-items:start;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}
.gpc5-detail-line strong{color:#78716c;font-weight:600}.gpc5-detail-line span{color:#292524;line-height:1.5}
.gpc5-detail-actions{display:flex;gap:9px;padding-top:13px}.gpc5-detail-actions button{border-radius:10px;background:#fafaf9;border:1px solid #e7e5e4;color:#44403c;padding:8px 12px;cursor:pointer}
.gpc5-detail-actions button:first-child{background:#78350f;color:white;border-color:#78350f}
@media(max-width:600px){.gpc5-tree .gpc5-member-detail{right:12px;top:86px;width:calc(100% - 24px);max-height:65vh;padding:13px}.gpc5-detail-line{grid-template-columns:90px minmax(0,1fr)}}

/* v0.7: closer to original Gia Pha OS source screenshots; grouped family hierarchy. */
.gpc5-tree{background:#fff;color:#292524;border:1px solid #e7e5e4}
.gpc5-tree .gpc5-canvas{background:#fafafa;background-image:none;border-radius:16px;border-color:#e7e5e4}
.gpc5-tree .gpc5-toolbar{border-radius:18px;background:#fff;border-color:#e7e5e4;box-shadow:0 2px 8px #29252408}
.gpc5-family-frame-bg{fill:#fff;fill-opacity:1;stroke:#e7e5e4;stroke-width:1.6;filter:drop-shadow(0 3px 5px #29252422)}
.gpc5-family-ring-bg{fill:#fff;stroke:#e7e5e4;stroke-width:1.2;filter:drop-shadow(0 2px 3px #29252418)}
.gpc5-family-ring{fill:#a8a29e;font-size:16px;font-weight:700;pointer-events:none}
.gpc5-tree .gpc5-node-card.view-family.in-family .gpc5-card-bg{fill:transparent;stroke:transparent;filter:none}
.gpc5-tree .gpc5-node-card.view-family:hover .gpc5-card-bg,.gpc5-tree .gpc5-node-card.view-family.is-active .gpc5-card-bg{fill:#fffbeb;stroke:#f59e0b;stroke-width:1.5}
.gpc5-tree .gpc5-node-card.view-family .gpc5-gender-icon{fill:#a8a29e}
.gpc5-tree .gpc5-edge.parent{stroke:#c9c9c9;stroke-width:1.7;opacity:1}
.gpc5-tree .gpc5-mindmap-edge{stroke:#d6d3d1;stroke-width:1.5}
.gpc5-mindmap-unit{cursor:pointer}
.gpc5-mindmap-bg{fill:#fff;stroke:#e7e5e4;stroke-width:1.4;filter:drop-shadow(0 2px 3px #29252412)}
.gpc5-mindmap-unit:hover .gpc5-mindmap-bg,.gpc5-mindmap-unit.is-active .gpc5-mindmap-bg{stroke:#f59e0b;stroke-width:2}
.gpc5-mindmap-spouse-bg{fill:#fafaf9;stroke:#e7e5e4;stroke-width:1}
.gpc5-mindmap-spouse-label{fill:#78716c;font-size:10px;font-weight:650}
.gpc5-mindmap-toggle{cursor:pointer}.gpc5-mindmap-toggle rect{fill:#fff;stroke:#d6d3d1;stroke-width:1}
.gpc5-mindmap-toggle text{fill:#78716c;font-size:15px}
.gpc5-tree .gpc5-avatar-initials{font-size:12px}
.gpc5-tree .gpc5-list-person{border-radius:16px!important}
.gpc5-tree .gpc5-list-avatar{background:#0284c7}
.gpc5-tree .gpc5-list-person:has(.gpc5-list-avatar img) .gpc5-list-avatar{background:#fafafa}

/* Original-inspired centered view switcher. */
.gpc5-tree .gpc5-view-tabs{display:flex;justify-content:center;align-items:center;gap:4px;width:max-content;max-width:100%;overflow-x:auto;margin:0 auto 18px;padding:6px;background:#f5f5f4;border:1px solid #e7e5e4;border-radius:11px}
.gpc5-tree .gpc5-view-tab{border:0!important;background:transparent!important;color:#78716c!important;border-radius:11px!important;padding:10px 18px!important;font-size:14px;font-weight:650!important;white-space:nowrap;cursor:pointer;transition:background .15s,color .15s}
.gpc5-tree .gpc5-view-tab.is-active{background:#fff!important;color:#292524!important;box-shadow:0 1px 4px #29252422}
.gpc5-tree .gpc5-toolbar label:has(.gpc5-view){display:none!important}
@media(max-width:600px){.gpc5-tree .gpc5-view-tab{padding:9px 11px!important;font-size:12px}}

/* v0.8.0: isolate SVG typography from WordPress theme styles and keep 4 modes consistent. */
.gpc5-tree .gpc5-svg text {font-family:Arial,Helvetica,sans-serif!important;line-height:normal!important;letter-spacing:normal!important;text-transform:none!important;text-decoration:none!important;stroke:none!important;paint-order:normal!important;}
.gpc5-tree .gpc5-svg .gpc5-card-name {font-size:13px!important;font-weight:650!important;fill:#292524!important;}
.gpc5-tree .gpc5-svg .gpc5-card-subtitle {font-size:11px!important;font-weight:450!important;fill:#78716c!important;}
.gpc5-tree .gpc5-svg .gpc5-node-card.view-family .gpc5-card-name {font-size:11px!important;}
.gpc5-tree .gpc5-svg .gpc5-mindmap-spouse-label {font-size:10px!important;font-weight:650!important;fill:#78716c!important;}
.gpc5-tree .gpc5-svg .gpc5-mindmap-toggle text {font-size:13px!important;fill:#78716c!important;}
.gpc5-tree .gpc5-svg .gpc5-node-toggle text {font-size:15px!important;fill:#78716c!important;}
.gpc5-tree .gpc5-svg .gpc5-family-ring {font-size:16px!important;fill:#a8a29e!important;}
.gpc5-tree .gpc5-toolbar button:disabled {opacity:.45!important;cursor:not-allowed!important;}
.gpc5-tree .gpc5-list-person {font-size:13px!important;line-height:1.4!important;}
.gpc5-tree .gpc5-list-info strong {font-size:13px!important;line-height:1.45!important;}
.gpc5-tree .gpc5-list-info small {font-size:11px!important;line-height:1.35!important;}
.gpc5-tree .gpc5-svg .gpc5-mindmap-unit {outline:none;}
.gpc5-tree .gpc5-svg .gpc5-mindmap-unit .gpc5-mindmap-bg {stroke:#e7e5e4;}
.gpc5-tree .gpc5-svg .gpc5-mindmap-unit.is-active .gpc5-mindmap-bg {stroke:#d97706;stroke-width:2;}
/* Keep control strip operable while the profile panel is open. */
.gpc5-tree .gpc5-view-tabs,.gpc5-tree .gpc5-toolbar{position:relative;z-index:15}
.gpc5-tree .gpc5-member-detail{z-index:12}

/* v0.9.0: GiaPha OS screenshot guided list/mindmap/bubble layout. */
.gpc5-tree{position:relative;background:#fafafa!important;border-color:#eceae8!important;border-radius:18px!important;font-family:Arial,Helvetica,sans-serif!important}
.gpc5-tree .gpc5-view-tabs{margin:0 auto 15px!important;padding:5px!important;background:#f3f2f2!important;box-shadow:none!important}
.gpc5-tree .gpc5-view-tab{font-size:13px!important;font-weight:500!important;padding:8px 14px!important}
.gpc5-tree .gpc5-view-tab.is-active{color:#9a3412!important}
.gpc5-tree .gpc5-rootbar{display:flex;align-items:center;gap:8px;justify-content:flex-start;margin:0 0 8px 0;font-size:11px;color:#78716c}
.gpc5-tree .gpc5-rootbar select{min-width:190px;max-width:min(330px,78vw);padding:8px 30px 8px 11px;border:1px solid #e7e5e4;border-radius:14px;background:#fff;font-size:12px;color:#44403c}
.gpc5-tree .gpc5-toolbar{display:flex;justify-content:flex-end;align-items:center;gap:6px;margin-bottom:9px;padding:7px!important;border:none!important;background:transparent!important;box-shadow:none!important}
.gpc5-tree .gpc5-toolbar label{font-size:11px;color:#78716c}
.gpc5-tree .gpc5-toolbar input.gpc5-search{min-width:135px;max-width:180px;background:#fff;border:1px solid #e7e5e4!important;border-radius:999px!important;padding:8px 10px!important;font-size:12px}
.gpc5-tree .gpc5-toolbar select.gpc5-gender{border:1px solid #e7e5e4;border-radius:999px;background:white;font-size:12px;min-width:95px}
.gpc5-tree .gpc5-toolbar button{padding:7px 10px!important;border-radius:999px!important;border:1px solid #e7e5e4!important;background:#fff!important;color:#57534e!important;font-size:12px!important}
.gpc5-tree .gpc5-toolbar button:hover{border-color:#d97706!important}
.gpc5-tree .gpc5-toolbar .gpc5-export-svg{color:#92400e!important}
.gpc5-tree .gpc5-toolbar .gpc5-zoom-slider{appearance:auto!important;-webkit-appearance:auto!important;width:95px!important;min-width:45px!important;accent-color:#d97706!important;margin:0 4px!important;padding:0!important;height:20px!important;background:transparent!important;border:0!important}
.gpc5-tree .gpc5-canvas:not(.gpc5-list-mode){height:680px;max-height:77vh;background:#fafafa!important;border-color:#f0efed!important}
.gpc5-tree .gpc5-canvas.gpc5-list-mode{max-height:none!important;height:auto!important;min-height:400px!important;background:#fafafa!important;overflow:visible!important;padding:15px!important}
/* List: generation divider and labeled family rows in screenshot */
.gpc5-tree .gpc5-generation-section{margin-bottom:22px}
.gpc5-tree .gpc5-generation-title{margin:12px auto 16px;padding:6px 14px;width:max-content;background:#fffbeb;border:1px solid #fce8bf;border-radius:25px;color:#b45309;font-size:13px;font-weight:650}
.gpc5-tree .gpc5-generation-family{position:relative;margin:15px 0 22px;padding:19px 12px 15px;border:1px solid #e7e5e4;border-radius:19px;background:#fff}
.gpc5-tree .gpc5-family-label{position:absolute;top:-12px;left:14px;max-width:90%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:1px solid #e7e5e4;background:#fff;border-radius:16px;padding:3px 11px;color:#78716c;font-size:10px}
.gpc5-tree .gpc5-generation-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(268px,1fr));gap:10px}
.gpc5-tree .gpc5-list-family-pack{display:flex;align-items:stretch;min-width:0;gap:0;padding:5px;border:1px solid #f1ede4;border-radius:13px;background:#fffbef}
.gpc5-tree .gpc5-list-family-pack:not(.has-spouses){background:#fff;border-color:transparent}
.gpc5-tree .gpc5-list-person{display:flex;flex:1 1 0;min-width:0;text-align:left;gap:8px;padding:7px!important;border-radius:12px!important;background:#fff!important;border:1px solid #e7e5e4!important;color:#292524!important}
.gpc5-tree .gpc5-list-person:hover{border-color:#d97706!important}
.gpc5-tree .gpc5-list-avatar{width:36px;height:36px;font-size:14px!important}
.gpc5-tree .gpc5-list-avatar.male{background:#0284c7!important}.gpc5-tree .gpc5-list-avatar.female{background:#e83767!important}
.gpc5-tree .gpc5-list-info{gap:2px;min-width:0}.gpc5-tree .gpc5-list-info strong{font-size:11px!important;line-height:1.25!important;white-space:normal;overflow-wrap:anywhere}
.gpc5-tree .gpc5-list-info small{font-size:10px!important;color:#a8a29e!important}
.gpc5-tree .gpc5-list-join{align-self:center;padding:0 3px;color:#c4a36d;font-size:12px}
.gpc5-tree .gpc5-list-chips{display:flex;flex-wrap:wrap;gap:3px;margin-top:3px}
.gpc5-tree .gpc5-list-chips em{font-size:8px;font-style:normal;border-radius:5px;padding:2px 4px;background:#eafaf2;color:#15803d;white-space:nowrap}
.gpc5-tree .gpc5-list-chips em:first-child{background:#fff0f2;color:#be123c}
/* Mindmap: small stacked rows, spouse avatars in same card, vertical hierarchy */
.gpc5-tree .gpc5-svg .gpc5-mindmap-bg{fill:#fff;stroke:#eeece9;stroke-width:1;filter:drop-shadow(0 1px 2px #2925240f)}
.gpc5-tree .gpc5-svg .gpc5-mindmap-spouse-bg{fill:#fafafa;stroke:#eeece9}
.gpc5-tree .gpc5-svg .gpc5-mindmap-edge{stroke:#dad7d1;stroke-width:1.2}
.gpc5-tree .gpc5-svg .gpc5-mindmap-unit .gpc5-card-name{font-size:12px!important;font-weight:600!important}
.gpc5-tree .gpc5-svg .gpc5-mindmap-unit .gpc5-card-subtitle{font-size:10px!important}
.gpc5-tree .gpc5-svg .gpc5-mindmap-unit .gpc5-mindmap-spouse-label{font-size:9px!important}
/* Bubble: compact family avatar circles and plain relationship edges */
.gpc5-tree .gpc5-svg .gpc5-bubble-outline{fill:#fff;stroke:#4f86fa;stroke-width:1.5}
.gpc5-tree .gpc5-svg .gpc5-bubble-outline.female{stroke:#eb4580}
.gpc5-tree .gpc5-svg .gpc5-bubble-unit.is-active .gpc5-bubble-outline{stroke:#d97706;stroke-width:2.5}
.gpc5-tree .gpc5-svg .gpc5-bubble-label{fill:#57534e;font-weight:600!important;font-size:10px!important}
.gpc5-tree .gpc5-svg .gpc5-bubble-member{cursor:pointer;outline:none}
.gpc5-tree .gpc5-svg .gpc5-bubble-member:focus{filter:drop-shadow(0 0 4px #d97706)}
@media(max-width:680px){.gpc5-tree{padding:9px!important}.gpc5-tree .gpc5-toolbar{justify-content:center!important;flex-wrap:wrap!important}.gpc5-tree .gpc5-rootbar{justify-content:center}.gpc5-tree .gpc5-view-tab{padding:7px 9px!important;font-size:11px!important}.gpc5-tree .gpc5-generation-grid{grid-template-columns:1fr}.gpc5-tree .gpc5-toolbar .gpc5-zoom-slider{width:70px!important}}
/* Prevent multiple spouses from compressing names into vertical one-letter columns. */
.gpc5-tree .gpc5-generation-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr))}
.gpc5-tree .gpc5-list-family-pack.has-spouses{grid-column:1/-1;justify-content:flex-start;flex-wrap:wrap;row-gap:7px}
.gpc5-tree .gpc5-list-person{flex:0 1 210px;min-width:min(175px,100%)}
.gpc5-tree .gpc5-list-family-pack:not(.has-spouses) .gpc5-list-person{flex:1 1 210px}
.gpc5-tree .gpc5-list-join{align-self:center;flex:none}
@media(max-width:550px){.gpc5-tree .gpc5-list-family-pack.has-spouses .gpc5-list-person{flex:1 1 160px;min-width:min(155px,100%)}.gpc5-tree .gpc5-list-join{display:none}}

/* v1.0: wide genealogy stage with stable root and explicit spouse slots */
.gpc5-tree{box-sizing:border-box!important;width:calc(100vw - 28px)!important;max-width:none!important;position:relative;left:50%;transform:translateX(-50%);margin:14px 0!important;padding:12px!important;overflow:visible!important}
.gpc5-tree .gpc5-canvas:not(.gpc5-list-mode){height:max(640px,calc(100dvh - 205px))!important;min-height:560px!important;max-height:none!important;overflow:hidden!important;touch-action:none;cursor:grab}
.gpc5-tree .gpc5-canvas:not(.gpc5-list-mode).is-dragging{cursor:grabbing!important}
.gpc5-tree .gpc5-svg{width:100%!important;height:100%!important;max-height:none!important}
.gpc5-tree:fullscreen{left:0!important;transform:none!important;margin:0!important;width:100vw!important;height:100dvh!important;border-radius:0!important;overflow:auto!important;z-index:999999!important}
.gpc5-tree:fullscreen .gpc5-canvas:not(.gpc5-list-mode){height:calc(100dvh - 180px)!important;min-height:320px!important}
.gpc5-tree .gpc5-generation-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,350px),1fr))!important}
.gpc5-tree .gpc5-list-family-viewport{grid-column:1/-1;min-width:0;max-width:100%;overflow-x:auto;scrollbar-width:thin}
.gpc5-tree .gpc5-list-family-pack{display:grid!important;grid-template-columns:repeat(var(--gpc5-slots,1),minmax(170px,1fr))!important;gap:7px!important;width:100%!important;min-width:max-content!important;max-width:none!important;align-items:stretch;justify-items:stretch;box-sizing:border-box}
.gpc5-tree .gpc5-list-family-pack.has-spouses{flex-wrap:nowrap!important}
.gpc5-tree .gpc5-list-family-pack .gpc5-list-person{min-width:170px!important;width:100%;max-width:none!important;box-sizing:border-box;flex:none!important}
.gpc5-tree .gpc5-list-family-pack .gpc5-list-person .gpc5-list-info strong{overflow-wrap:normal!important;word-break:normal!important}
.gpc5-tree .gpc5-bubble-toggle,.gpc5-tree .gpc5-family-toggle{cursor:pointer}
.gpc5-tree .gpc5-bubble-toggle circle,.gpc5-tree .gpc5-family-toggle circle{fill:#fff;stroke:#d6d3d1;stroke-width:1.4}
.gpc5-tree .gpc5-bubble-toggle text,.gpc5-tree .gpc5-family-toggle text{fill:#78716c;font-size:13px!important;font-weight:700!important}
.gpc5-tree .gpc5-bubble-toggle:hover circle,.gpc5-tree .gpc5-family-toggle:hover circle{stroke:#d97706;stroke-width:2}
@media(max-width:700px){.gpc5-tree{width:calc(100vw - 12px)!important;padding:7px!important}.gpc5-tree .gpc5-canvas:not(.gpc5-list-mode){height:max(540px,calc(100dvh - 185px))!important;min-height:480px!important}.gpc5-tree .gpc5-list-family-pack{grid-template-columns:repeat(var(--gpc5-slots,1),minmax(155px,1fr))!important}.gpc5-tree .gpc5-list-family-pack .gpc5-list-person{min-width:155px!important}}
@media(prefers-reduced-motion:reduce){.gpc5-tree .gpc5-scene{animation:none!important;transition:none!important}}


/* v0.11.0 display/export menus + refined list */
.gpc5-tree .gpc5-toolbar{position:relative}
.gpc5-tree .gpc5-display-menu,.gpc5-tree .gpc5-export-menu{position:absolute;top:44px;right:118px;z-index:40;min-width:210px;padding:14px;border:1px solid #e7e5e4;border-radius:18px;background:#fff;box-shadow:0 12px 30px rgba(0,0,0,.08)}
.gpc5-tree .gpc5-export-menu{right:44px;min-width:230px;padding:8px}
.gpc5-tree .gpc5-export-menu button{display:flex;width:100%;padding:11px 12px!important;justify-content:flex-start;border:0!important;border-radius:12px!important;background:#fff!important;color:#44403c!important}
.gpc5-tree .gpc5-export-menu button:hover{background:#fffbeb!important}
.gpc5-tree .gpc5-menu-section-title{font-size:12px;font-weight:700;color:#78716c;margin-bottom:10px}
.gpc5-tree .gpc5-menu-divider{height:1px;background:#ece7df;margin:10px 0}
.gpc5-tree .gpc5-menu-check,.gpc5-tree .gpc5-menu-range{display:flex;align-items:center;gap:8px;font-size:14px;color:#44403c;margin:7px 0}
.gpc5-tree .gpc5-menu-range{justify-content:space-between}
.gpc5-tree .gpc5-menu-range input{width:58px;min-width:58px;border:1px solid #e7e5e4;border-radius:12px;padding:6px 8px}
.gpc5-tree .gpc5-menu-check input{width:16px;height:16px;min-width:16px}
.gpc5-tree .gpc5-display-toggle,.gpc5-tree .gpc5-export-toggle{color:#b45309!important;border-color:#f1d293!important;background:#fffaf0!important}
.gpc5-tree .gpc5-list-mode .gpc5-generation-section{max-width:1320px;margin:0 auto 18px auto}
.gpc5-tree .gpc5-generation-family{max-width:1280px;margin:0 auto 14px auto}
.gpc5-tree .gpc5-generation-grid{grid-template-columns:1fr!important;gap:10px!important}
.gpc5-tree .gpc5-list-family-viewport{display:flex;justify-content:center;overflow-x:auto;padding:0 4px}
.gpc5-tree .gpc5-list-family-pack{width:auto!important;min-width:min(100%,980px)!important;max-width:980px!important;justify-content:center!important;background:#fff!important;border:1px solid #efe6cf!important;border-radius:22px!important;padding:12px!important}
.gpc5-tree .gpc5-list-family-pack.has-spouses{grid-template-columns:repeat(var(--gpc5-slots,1),minmax(240px,360px))!important}
.gpc5-tree .gpc5-list-family-pack:not(.has-spouses){grid-template-columns:minmax(280px,360px)!important}
.gpc5-tree .gpc5-list-person{background:#f6f5f2;border:1px solid #ddd8cd!important;border-radius:24px!important;padding:14px 16px!important;box-shadow:none!important}
.gpc5-tree .gpc5-list-person .gpc5-list-info strong{font-size:16px;line-height:1.3}
.gpc5-tree .gpc5-list-person .gpc5-date-line{color:#78716c;font-size:13px;display:block;margin-top:4px}
.gpc5-tree .gpc5-list-person .gpc5-list-chips{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.gpc5-tree .gpc5-list-person .gpc5-list-chips em{font-style:normal;padding:4px 10px;border-radius:10px;font-size:12px}
.gpc5-tree .gpc5-list-person .gpc5-list-chips .is-role{background:#ffe4e6;color:#e11d48}
.gpc5-tree .gpc5-list-person .gpc5-list-chips .is-generation{background:#dcfce7;color:#059669}
.gpc5-tree .gpc5-list-person .gpc5-list-chips .is-deceased{background:#e7e5e4;color:#78716c}
.gpc5-tree .gpc5-node-card .gpc5-card-bg,.gpc5-tree .gpc5-mindmap-bg,.gpc5-tree .gpc5-mindmap-spouse-bg{fill:#f7f6f3!important}
.gpc5-tree .gpc5-card-subtitle,.gpc5-tree .gpc5-bubble-label{fill:#78716c!important}
.gpc5-tree.gpc5-minimal .gpc5-card-subtitle,.gpc5-tree.gpc5-minimal .gpc5-bubble-label,.gpc5-tree.gpc5-minimal .gpc5-family-label,.gpc5-tree.gpc5-minimal .gpc5-status,.gpc5-tree.gpc5-minimal .gpc5-help{display:none!important}
.gpc5-tree.gpc5-minimal .gpc5-family-frame-bg{fill:#fff!important;stroke:#efeadf!important}
@media(max-width:900px){.gpc5-tree .gpc5-display-menu,.gpc5-tree .gpc5-export-menu{position:fixed;right:12px;top:90px;max-width:calc(100vw - 24px)}.gpc5-tree .gpc5-list-family-pack.has-spouses{grid-template-columns:1fr!important;max-width:430px!important}.gpc5-tree .gpc5-list-family-pack:not(.has-spouses){max-width:430px!important}}

/* v0.12.0 – user-reference list/controls refinements. Keep below legacy declarations. */
.gpc5-tree .gpc5-canvas.gpc5-list-mode {
  border:0!important;box-shadow:none!important;border-radius:0!important;
  min-height:0!important;height:auto!important;max-height:none!important;
  max-width:min(1280px,100%)!important;margin:0 auto!important;
  padding:4px 8px 18px!important;background:transparent!important;overflow:visible!important;
}
.gpc5-tree .gpc5-list-mode .gpc5-generation-section {
  width:100%!important;max-width:1180px!important;margin:0 auto 18px!important;
}
.gpc5-tree .gpc5-list-mode .gpc5-generation-family {
  box-sizing:border-box!important;width:fit-content!important;max-width:100%!important;
  min-width:min(100%,320px)!important;margin:13px auto 12px!important;
  padding:9px 10px!important;border:1px solid #dfdcd7!important;
  border-radius:26px!important;background:#fff!important;box-shadow:none!important;
}
.gpc5-tree .gpc5-list-mode .gpc5-generation-grid {
  display:flex!important;justify-content:center!important;align-items:stretch!important;
  grid-template-columns:none!important;gap:0!important;max-width:100%!important;
}
.gpc5-tree .gpc5-list-mode .gpc5-list-family-viewport {
  display:block!important;max-width:100%!important;width:auto!important;
  min-width:0!important;overflow-x:auto!important;overflow-y:hidden!important;
  margin:0!important;padding:4px!important;scrollbar-width:thin;
}
.gpc5-tree .gpc5-list-mode .gpc5-list-family-pack {
  position:relative!important;display:grid!important;box-sizing:border-box!important;
  grid-template-columns:repeat(var(--gpc5-slots,1),minmax(240px,285px))!important;
  width:max-content!important;min-width:0!important;max-width:none!important;
  gap:8px!important;padding:8px!important;margin:0 auto!important;
  background:#fffcf2!important;border:1px solid #f5d775!important;border-radius:24px!important;
  justify-content:start!important;align-items:stretch!important;
}
.gpc5-tree .gpc5-list-mode .gpc5-list-family-pack:not(.has-spouses) {
  grid-template-columns:minmax(250px,300px)!important;
  background:#fff!important;border-color:#edeae5!important;
}
.gpc5-tree .gpc5-list-mode .gpc5-list-family-pack .gpc5-list-person {
  position:relative!important;box-sizing:border-box!important;width:100%!important;
  min-width:0!important;max-width:none!important;min-height:108px!important;
  padding:12px!important;display:flex!important;align-items:center!important;
  gap:12px!important;background:#f7f6f3!important;color:#44403c!important;
  border:1px solid #e7e5e4!important;border-radius:22px!important;
  box-shadow:none!important;text-align:left!important;
}
.gpc5-tree .gpc5-list-mode .gpc5-list-family-pack .gpc5-list-person:hover {
  background:#fff!important;border-color:#d97706!important;
}
.gpc5-tree .gpc5-list-mode .gpc5-list-family-pack .gpc5-list-person.gpc5-spouse-linked:not(:last-child)::after {
  content:"";position:absolute;width:9px;height:2px;right:-9px;top:50%;
  transform:translateY(-50%);background:#e8a11c;z-index:3;pointer-events:none;
}
.gpc5-tree .gpc5-list-mode .gpc5-list-avatar {
  width:48px!important;height:48px!important;min-width:48px!important;
}
.gpc5-tree .gpc5-list-mode .gpc5-list-info {display:flex!important;flex-direction:column!important;min-width:0!important;gap:4px!important;}
.gpc5-tree .gpc5-list-mode .gpc5-list-info strong {
  font-size:16px!important;line-height:1.3!important;letter-spacing:normal!important;
  font-weight:650!important;color:#44403c!important;overflow-wrap:break-word!important;
}
.gpc5-tree .gpc5-list-mode .gpc5-list-info .gpc5-date-line {
  font-size:13px!important;color:#89857f!important;line-height:1.5!important;
}
.gpc5-tree .gpc5-list-mode .gpc5-list-chips {gap:5px!important;margin-top:3px!important;}
.gpc5-tree .gpc5-list-mode .gpc5-list-chips em {
  font-size:11px!important;padding:4px 7px!important;border-radius:8px!important;
  white-space:nowrap!important;
}
.gpc5-tree .gpc5-list-mode .gpc5-list-chips em.is-deceased {background:#e7e5e4!important;color:#78716c!important;}
.gpc5-tree .gpc5-list-mode .gpc5-generation-title {margin:10px auto 15px!important;font-size:13px!important;}
.gpc5-tree .gpc5-list-mode .gpc5-family-label {top:-12px!important;font-size:11px!important;}

/* Bubble labels: centered under family cluster and not masked by WordPress rules */
.gpc5-tree .gpc5-svg .gpc5-bubble-label {
  font-family:Arial,Helvetica,sans-serif!important;font-size:11px!important;
  font-weight:650!important;fill:#57534e!important;text-anchor:middle!important;
  dominant-baseline:alphabetic!important;pointer-events:none!important;
}

/* Dropdown must not inherit generic .gpc5-toolbar label { flex-direction:column }. */
.gpc5-tree .gpc5-toolbar .gpc5-popover-anchor {
  position:relative!important;display:inline-flex!important;align-items:center!important;
  flex:0 0 auto!important;z-index:60!important;
}
.gpc5-tree .gpc5-toolbar .gpc5-popover-anchor:has([aria-expanded="true"]) {z-index:95!important;}
.gpc5-tree .gpc5-toolbar .gpc5-popover-anchor .gpc5-display-menu,
.gpc5-tree .gpc5-toolbar .gpc5-popover-anchor .gpc5-export-menu {
  position:absolute!important;inset:auto 0 auto auto!important;top:calc(100% + 8px)!important;
  width:240px!important;min-width:240px!important;max-width:min(92vw,270px)!important;
  box-sizing:border-box!important;padding:13px 14px!important;
  border:1px solid #e5e2dc!important;border-radius:22px!important;
  box-shadow:0 12px 28px #29252415!important;background:#fff!important;
  color:#57534e!important;text-align:left!important;z-index:100!important;
}
.gpc5-tree .gpc5-toolbar .gpc5-popover-anchor .gpc5-export-menu {
  padding:7px!important;width:238px!important;
}
.gpc5-tree .gpc5-toolbar .gpc5-display-menu[hidden],
.gpc5-tree .gpc5-toolbar .gpc5-export-menu[hidden] {display:none!important;}
.gpc5-tree .gpc5-toolbar .gpc5-display-menu .gpc5-menu-section-title {
  font-size:12px!important;letter-spacing:.01em!important;font-weight:650!important;
  color:#78716c!important;margin:0 0 9px!important;text-align:left!important;
}
.gpc5-tree .gpc5-toolbar .gpc5-display-menu label.gpc5-menu-check {
  display:flex!important;flex-direction:row!important;justify-content:flex-start!important;
  align-items:center!important;gap:9px!important;width:100%!important;
  margin:7px 0!important;padding:1px 0!important;
  font-size:14px!important;line-height:1.5!important;font-weight:400!important;
  color:#57534e!important;white-space:nowrap!important;text-align:left!important;
}
.gpc5-tree .gpc5-toolbar .gpc5-display-menu label.gpc5-menu-range {
  display:flex!important;flex-direction:row!important;align-items:center!important;
  justify-content:space-between!important;gap:8px!important;width:100%!important;
  margin:9px 0!important;font-size:14px!important;color:#57534e!important;
}
.gpc5-tree .gpc5-toolbar .gpc5-display-menu .gpc5-menu-check input[type=checkbox] {
  display:inline-block!important;appearance:checkbox!important;-webkit-appearance:checkbox!important;
  box-sizing:border-box!important;width:16px!important;height:16px!important;min-width:16px!important;
  margin:0!important;padding:0!important;flex:0 0 16px!important;accent-color:#d97706!important;
}
.gpc5-tree .gpc5-toolbar .gpc5-display-menu .gpc5-menu-range input[type=number] {
  width:58px!important;height:34px!important;min-width:58px!important;
  padding:5px 8px!important;margin:0!important;font-size:14px!important;
}
.gpc5-tree .gpc5-toolbar .gpc5-export-menu button {
  display:block!important;width:100%!important;min-height:36px!important;
  padding:9px 11px!important;text-align:left!important;font-size:13px!important;
  border:none!important;background:#fff!important;color:#57534e!important;
}
.gpc5-tree .gpc5-toolbar .gpc5-export-menu button:hover {background:#fffbeb!important;color:#92400e!important;}
@media(max-width:720px){
  .gpc5-tree .gpc5-list-mode .gpc5-generation-family{max-width:100%!important;min-width:0!important;width:100%!important;}
  .gpc5-tree .gpc5-list-mode .gpc5-list-family-pack{grid-template-columns:repeat(var(--gpc5-slots,1),minmax(215px,235px))!important;}
  .gpc5-tree .gpc5-list-mode .gpc5-list-family-pack:not(.has-spouses){grid-template-columns:minmax(245px,280px)!important;}
  .gpc5-tree .gpc5-list-mode .gpc5-list-family-pack .gpc5-list-person{min-height:102px!important;}
  .gpc5-tree .gpc5-toolbar .gpc5-popover-anchor .gpc5-display-menu,
  .gpc5-tree .gpc5-toolbar .gpc5-popover-anchor .gpc5-export-menu{position:absolute!important;right:0!important;left:auto!important;top:calc(100% + 8px)!important;}
}

/* Keep four-member family fully visible inside the centered list container. */
.gpc5-tree .gpc5-list-mode .gpc5-list-family-pack{grid-template-columns:repeat(var(--gpc5-slots,1),minmax(225px,255px))!important;}

/* v0.13.0: sibling families are separate stacked rows; site themes must not
   collapse responsive layouts or strip gender icon badges. */
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-generation-family{
  display:block!important;width:min(100%,1100px)!important;max-width:1100px!important;
  min-width:0!important;box-sizing:border-box!important;
}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-generation-grid.gpc5-sibling-rows{
  display:flex!important;flex-direction:column!important;align-items:center!important;
  justify-content:center!important;gap:12px!important;width:100%!important;
  grid-template-columns:none!important;
}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-sibling-row{
  display:flex!important;justify-content:center!important;align-items:stretch!important;
  box-sizing:border-box!important;width:100%!important;max-width:100%!important;
  min-width:0!important;overflow-x:auto!important;overflow-y:hidden!important;
  padding:5px 2px!important;margin:0!important;
}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-sibling-row .gpc5-list-family-pack{
  box-sizing:border-box!important;margin:0 auto!important;
  width:max-content!important;max-width:none!important;min-width:0!important;
}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-siblings-caption{
  font-size:12px!important;color:#78716c!important;margin:2px 4px 8px!important;text-align:left!important;
}
.gpc5-tree .gpc5-list-mode .gpc5-list-avatar{position:relative!important;flex:0 0 48px!important;overflow:visible!important;}
.gpc5-tree .gpc5-list-mode .gpc5-list-avatar .gpc5-list-sex{
  position:absolute!important;right:-4px!important;bottom:-5px!important;
  display:grid!important;place-items:center!important;width:18px!important;height:18px!important;
  border-radius:50%!important;box-sizing:border-box!important;
  background:#fff!important;border:1px solid #e7e5e4!important;
  font-family:Arial,sans-serif!important;font-size:14px!important;font-weight:700!important;
  line-height:1!important;z-index:3!important;
}
.gpc5-tree .gpc5-list-mode .gpc5-list-sex.male{color:#0284c7!important}
.gpc5-tree .gpc5-list-mode .gpc5-list-sex.female{color:#e11d48!important}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-list-info{min-width:0!important}
@media(max-width:700px){
  .gpc5-tree{box-sizing:border-box!important;width:100%!important;max-width:100%!important;
    min-width:0!important;margin:10px auto!important;padding:9px!important;overflow:visible!important}
  .gpc5-tree .gpc5-view-tabs{box-sizing:border-box!important;display:flex!important;
    max-width:100%!important;width:max-content!important;gap:0!important;
    overflow-x:auto!important;scrollbar-width:thin!important;padding:4px!important;margin:0 auto 10px!important}
  .gpc5-tree .gpc5-view-tab{flex-shrink:0!important;white-space:nowrap!important;padding:7px 9px!important;font-size:12px!important}
  .gpc5-tree .gpc5-toolbar{display:flex!important;flex-wrap:wrap!important;
    gap:6px!important;justify-content:center!important;align-items:center!important;
    width:100%!important;box-sizing:border-box!important}
  .gpc5-tree .gpc5-toolbar label{max-width:100%!important;min-width:0!important}
  .gpc5-tree .gpc5-toolbar .gpc5-search{min-width:130px!important;width:145px!important;max-width:100%!important}
  .gpc5-tree .gpc5-canvas.gpc5-list-mode{box-sizing:border-box!important;
    padding:5px!important;width:100%!important;min-width:0!important}
  .gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-generation-section,
  .gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-generation-family{
    width:100%!important;max-width:100%!important;min-width:0!important}
  .gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-sibling-row{width:100%!important;overflow:visible!important}
  .gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-sibling-row .gpc5-list-family-pack{
    display:flex!important;flex-direction:column!important;gap:9px!important;
    width:100%!important;max-width:420px!important;min-width:0!important;padding:9px!important;
    grid-template-columns:none!important}
  .gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-list-person{
    width:100%!important;min-width:0!important;max-width:none!important;min-height:88px!important;
    grid-column:auto!important;box-sizing:border-box!important}
  .gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-list-person.gpc5-spouse-linked:not(:last-child)::after{
    top:auto!important;bottom:-9px!important;right:50%!important;left:auto!important;
    transform:translateX(50%)!important;width:2px!important;height:9px!important}
  .gpc5-tree .gpc5-list-mode .gpc5-list-avatar{flex-basis:43px!important;width:43px!important;height:43px!important;min-width:43px!important}
  .gpc5-tree .gpc5-canvas:not(.gpc5-list-mode){width:100%!important;min-height:450px!important;
    height:65dvh!important;max-height:none!important;box-sizing:border-box!important}
  .gpc5-tree .gpc5-status,.gpc5-tree .gpc5-help{font-size:12px!important;line-height:1.45!important;overflow-wrap:anywhere!important}
}

/* v0.14.0 – list genealogy layout matched to supplied 1/2/3-household references.
   These overrides intentionally supersede accumulated v0.10–0.13 styles. */
.gpc5-tree .gpc5-canvas.gpc5-list-mode{
  width:100%!important;max-width:1360px!important;border:0!important;background:transparent!important;
  padding:12px 12px 24px!important;margin:0 auto!important;overflow:visible!important;
}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-generation-section{
  max-width:1250px!important;width:100%!important;min-width:0!important;margin:8px auto 28px!important;
  box-sizing:border-box!important;
}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-generation-title{
  display:flex!important;align-items:center!important;gap:13px!important;justify-content:center!important;
  width:100%!important;margin:10px auto 35px!important;padding:0!important;
  background:none!important;border:0!important;border-radius:0!important;
  color:#a35211!important;font-family:Georgia,serif!important;font-weight:700!important;font-size:17px!important;
}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-generation-title::before,
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-generation-title::after{
  content:"";display:block;flex:1;height:1px;background:#e7e5e4;
}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-generation-title{white-space:nowrap!important}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-generation-title::first-letter{font-weight:700}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-generation-family{
  box-sizing:border-box!important;display:block!important;width:100%!important;max-width:1200px!important;
  min-width:0!important;margin:0 auto 21px!important;padding:19px 16px 15px!important;
  background:#fff!important;border:1px solid #d9d6d2!important;border-radius:37px!important;
  box-shadow:none!important;
}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-family-label{
  position:absolute!important;top:-15px!important;left:25px!important;width:max-content!important;max-width:calc(100% - 40px)!important;
  padding:5px 14px!important;border:1px solid #ddd9d5!important;border-radius:16px!important;
  background:#f9f8f7!important;color:#56514c!important;font-size:14px!important;
  line-height:1.15!important;font-weight:500!important;white-space:normal!important;
}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-generation-grid.gpc5-sibling-rows{
  display:flex!important;flex-direction:column!important;align-items:stretch!important;
  justify-content:flex-start!important;gap:8px!important;width:100%!important;
}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-sibling-row{
  box-sizing:border-box!important;display:flex!important;width:100%!important;max-width:none!important;
  align-items:flex-start!important;justify-content:flex-start!important;overflow-x:auto!important;
  overflow-y:hidden!important;padding:0!important;margin:0!important;scrollbar-width:thin;
}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-sibling-row .gpc5-list-family-pack{
  box-sizing:border-box!important;display:grid!important;grid-template-columns:repeat(var(--gpc5-slots,1),minmax(0,365px))!important;
  width:max-content!important;max-width:none!important;min-width:0!important;
  gap:23px!important;margin:0!important;padding:13px 15px!important;
  border:1px solid #f5d46f!important;border-radius:28px!important;background:#fffdf5!important;
  align-items:stretch!important;justify-content:start!important;
}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-sibling-row .gpc5-list-family-pack:not(.has-spouses){
  grid-template-columns:minmax(245px,365px)!important;border-color:transparent!important;
  padding:0!important;background:transparent!important;
}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-list-family-pack .gpc5-list-person{
  width:365px!important;min-width:245px!important;max-width:365px!important;min-height:115px!important;
  display:flex!important;gap:15px!important;align-items:center!important;text-align:left!important;
  padding:15px!important;border:1px solid #e4e3e0!important;border-radius:25px!important;
  background:#faf9f6!important;color:#44403c!important;box-shadow:none!important;
}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-list-family-pack .gpc5-list-person.gpc5-spouse-linked:not(:last-child)::after{
  content:""!important;position:absolute!important;right:-24px!important;left:auto!important;top:50%!important;
  width:24px!important;height:2px!important;background:#f1a300!important;transform:translateY(-50%)!important;
  display:block!important;pointer-events:none!important;
}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-list-avatar{
  width:58px!important;height:58px!important;min-width:58px!important;flex:0 0 58px!important;
  border-radius:50%!important;overflow:hidden!important;
}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-list-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-list-sex{display:none!important}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-list-info{display:flex!important;flex-direction:column!important;gap:6px!important}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-list-info strong{
  font-size:18px!important;font-weight:700!important;line-height:1.3!important;color:#302f2c!important;
}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-date-line{font-size:14px!important;color:#888581!important}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-list-chips em{
  font-size:12px!important;padding:5px 8px!important;border-radius:8px!important;
}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-list-person.is-active{border-color:#df8b28!important}
.gpc5-tree .gpc5-detail-line a{overflow-wrap:anywhere}
@media(max-width:1050px){
 .gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-list-family-pack .gpc5-list-person{width:290px!important;min-width:230px!important;max-width:290px!important}
 .gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-sibling-row .gpc5-list-family-pack{grid-template-columns:repeat(var(--gpc5-slots,1),minmax(0,290px))!important;gap:14px!important}
 .gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-list-family-pack .gpc5-list-person.gpc5-spouse-linked:not(:last-child)::after{right:-15px!important;width:15px!important}
}
@media(max-width:700px){
 .gpc5-tree .gpc5-canvas.gpc5-list-mode{padding:8px 2px 18px!important}
 .gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-generation-family{border-radius:22px!important;padding:16px 9px 10px!important;margin-bottom:22px!important}
 .gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-sibling-row{overflow:visible!important}
 .gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-sibling-row .gpc5-list-family-pack,
 .gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-sibling-row .gpc5-list-family-pack.has-spouses{
   box-sizing:border-box!important;display:flex!important;flex-direction:column!important;gap:12px!important;
   width:100%!important;max-width:100%!important;min-width:0!important;padding:8px!important;
   grid-template-columns:none!important;
 }
 .gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-list-family-pack .gpc5-list-person{
   box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:none!important;
   min-height:100px!important;grid-column:auto!important;padding:12px!important;
 }
 .gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-list-family-pack .gpc5-list-person.gpc5-spouse-linked:not(:last-child)::after{
   left:50%!important;right:auto!important;top:auto!important;bottom:-13px!important;
   height:13px!important;width:2px!important;transform:translateX(-50%)!important;
 }
 .gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-list-info strong{font-size:16px!important}
 .gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-list-avatar{width:47px!important;height:47px!important;min-width:47px!important;flex-basis:47px!important}
 .gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-generation-title{font-size:15px!important;margin:12px auto 28px!important}
}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-generation-pill{
 display:inline-block!important;flex:0 0 auto!important;white-space:nowrap!important;
 background:#fffbf1!important;color:#a35211!important;border:1px solid #fde68a!important;
 padding:9px 17px!important;border-radius:999px!important;font-size:17px!important;
 line-height:1.1!important;font-weight:700!important;font-family:Georgia,serif!important;
}
/* Prevent text/card overlap for large marital groups; scroll within family row. */
@media(min-width:1051px){
 .gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-sibling-row .gpc5-list-family-pack{
   grid-template-columns:repeat(var(--gpc5-slots,1),350px)!important;
 }
}
@media(min-width:701px) and (max-width:1050px){
 .gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-sibling-row .gpc5-list-family-pack{
   grid-template-columns:repeat(var(--gpc5-slots,1),275px)!important;
 }
}
@media(min-width:701px){
 .gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-sibling-row .gpc5-list-family-pack .gpc5-list-person{
   width:100%!important;min-width:0!important;max-width:none!important;
 }
}

/* v0.15: natural spouse hearts, gender glyphs in list and gesture stability */
.gpc5-tree .gpc5-svg .gpc5-family-heart{font-family:Arial,sans-serif!important;font-size:18px!important;font-weight:650!important;fill:#d97790!important;stroke:none!important;pointer-events:none!important}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-gender-inline{display:inline!important;background:transparent!important;border:0!important;border-radius:0!important;position:static!important;vertical-align:baseline!important;font-family:Arial,sans-serif!important;font-weight:700!important;font-size:18px!important;margin-left:5px!important;padding:0!important;box-shadow:none!important}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-gender-inline.male{color:#028bc6!important}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-gender-inline.female{color:#eb315e!important}
.gpc5-tree .gpc5-canvas:not(.gpc5-list-mode),.gpc5-tree .gpc5-canvas:not(.gpc5-list-mode) svg{touch-action:none!important;-webkit-user-select:none!important;user-select:none!important;overscroll-behavior:contain!important}
.gpc5-tree .gpc5-canvas:not(.gpc5-list-mode) .gpc5-scene{will-change:transform}


/* v0.16.0 – root picker, gender corner badges, balanced toolbar */
.gpc5-tree .gpc5-rootpicker{position:relative!important;z-index:60!important;justify-content:flex-start!important;margin:2px 0 14px!important}
.gpc5-tree .gpc5-rootpicker .gpc5-root-label,.gpc5-tree .gpc5-rootpicker .gpc5-root-native{display:none!important}
.gpc5-tree .gpc5-root-trigger{display:flex!important;align-items:center!important;gap:10px!important;padding:7px 11px!important;min-width:245px;max-width:min(330px,90vw);border:1px solid #f6ca6c!important;border-radius:8px!important;background:#fff!important;box-shadow:0 2px 7px #29252412!important;text-align:left!important;cursor:pointer!important;color:#44403c!important}
.gpc5-tree .gpc5-root-current-avatar,.gpc5-tree .gpc5-root-option-avatar{position:relative!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;width:37px!important;height:37px!important;flex:0 0 37px!important;border-radius:50%!important;overflow:visible!important;background:#d6d3d1;color:white;font-size:17px}
.gpc5-tree .gpc5-root-option-avatar.male{background:#028bc6!important}.gpc5-tree .gpc5-root-option-avatar.female{background:#eb315e!important}
.gpc5-tree .gpc5-root-option-avatar img{width:100%;height:100%;border-radius:50%;object-fit:cover}
.gpc5-tree .gpc5-root-current-text{display:flex!important;flex-direction:column!important;flex:1;min-width:0;gap:2px}
.gpc5-tree .gpc5-root-current-caption{font-size:12px!important;line-height:1.2!important;font-weight:400!important;color:#a8a29e!important}
.gpc5-tree .gpc5-root-current-title{font-size:14px!important;line-height:1.2!important;font-weight:650!important;color:#292524!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gpc5-tree .gpc5-root-chevron{font-size:21px!important;color:#d97706!important;margin-left:auto!important}
.gpc5-tree .gpc5-root-popup{position:absolute!important;z-index:70!important;top:calc(100% + 8px)!important;left:0!important;width:320px!important;max-width:min(350px,93vw)!important;box-sizing:border-box!important;padding:10px!important;background:white!important;border:1px solid #e7e5e4!important;border-radius:18px!important;box-shadow:0 16px 45px #29252422!important}
.gpc5-tree .gpc5-root-popup[hidden]{display:none!important}
.gpc5-tree .gpc5-root-search{box-sizing:border-box!important;width:100%!important;margin:0 0 9px!important;padding:12px 14px!important;background:#fff!important;border:1px solid #f9b949!important;border-radius:14px!important;font-size:14px!important;outline-offset:2px!important;color:#44403c!important}
.gpc5-tree .gpc5-root-options{max-height:290px;overflow-y:auto;overscroll-behavior:contain;padding-right:3px;display:flex;flex-direction:column;gap:4px}
.gpc5-tree .gpc5-root-option{display:flex!important;align-items:center!important;gap:12px!important;width:100%!important;min-height:59px!important;border:0!important;border-radius:12px!important;background:#fff!important;text-align:left!important;padding:7px 8px!important;cursor:pointer!important;color:#44403c!important}
.gpc5-tree .gpc5-root-option:hover,.gpc5-tree .gpc5-root-option[aria-selected="true"]{background:#fffbeb!important}
.gpc5-tree .gpc5-root-option-meta{display:flex!important;flex:1!important;min-width:0!important;flex-direction:column!important;gap:3px!important;align-items:flex-start!important}
.gpc5-tree .gpc5-root-option-meta strong{color:#44403c!important;font-size:13px!important;line-height:1.2!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.gpc5-tree .gpc5-root-option-meta small{color:#a8a29e!important;font-size:12px!important;line-height:1.2!important}
.gpc5-tree .gpc5-root-option-check{color:#d97706!important;font-weight:750!important;font-size:18px!important}
.gpc5-tree .gpc5-root-empty{font-size:13px;color:#78716c;padding:10px;text-align:center}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-gender-inline{display:none!important}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-list-avatar{position:relative!important;overflow:visible!important;isolation:isolate}
.gpc5-tree .gpc5-avatar-sex{position:absolute!important;right:-3px!important;bottom:-3px!important;display:flex!important;justify-content:center!important;align-items:center!important;min-width:16px!important;height:16px!important;padding:0!important;border-radius:50%!important;background:white!important;border:1px solid #ddd6cf!important;font-family:Arial,sans-serif!important;font-size:12px!important;font-weight:700!important;line-height:1!important;box-shadow:0 1px 3px #29252420;z-index:3}
.gpc5-tree .gpc5-avatar-sex.male{color:#028bc6!important}.gpc5-tree .gpc5-avatar-sex.female{color:#eb315e!important}
.gpc5-tree .gpc5-svg .gpc5-family-heart{font-size:27px!important;fill:#e36c88!important;font-weight:650!important;pointer-events:none!important}
.gpc5-tree .gpc5-svg .gpc5-gender-avatar-symbol{font-family:Arial,sans-serif!important;font-weight:750!important;pointer-events:none!important}
.gpc5-tree .gpc5-svg .gpc5-card-subtitle{font-size:13px!important;font-weight:650!important}
.gpc5-tree .gpc5-zoom-group{display:flex;align-items:center;gap:3px;white-space:nowrap;padding:0 5px}
.gpc5-tree .gpc5-zoom-group .gpc5-zoom-slider{width:100px!important;margin:0 4px!important}
.gpc5-tree .gpc5-toolbar .gpc5-action-icon{display:inline-block!important;width:16px!important;height:16px!important;vertical-align:middle!important;flex:none!important;fill:none!important;stroke:currentColor!important;stroke-width:1.7!important;stroke-linecap:round!important;stroke-linejoin:round!important;margin-right:5px!important}
.gpc5-tree .gpc5-toolbar button.gpc5-display-toggle,.gpc5-tree .gpc5-toolbar button.gpc5-expand,.gpc5-tree .gpc5-toolbar button.gpc5-collapse,.gpc5-tree .gpc5-toolbar button.gpc5-reset,.gpc5-tree .gpc5-toolbar button.gpc5-export-toggle{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:2px!important}
.gpc5-tree .gpc5-toolbar{gap:7px!important}
@media(max-width:700px){.gpc5-tree .gpc5-rootpicker{justify-content:center!important}.gpc5-tree .gpc5-root-trigger{width:min(320px,100%)!important}.gpc5-tree .gpc5-root-popup{left:50%!important;transform:translateX(-50%)!important}.gpc5-tree .gpc5-zoom-group .gpc5-zoom-slider{width:85px!important}}
/* v0.17.0 — original GiaPha OS toolbar distribution and family profile */
.gpc5-tree .gpc5-list-controls{display:flex;gap:12px;align-items:center;flex-wrap:wrap;max-width:1280px;margin:12px auto 22px;padding:20px;border:1px solid #ebe8e5;border-radius:16px;background:#fff}
.gpc5-tree .gpc5-list-search-label{display:flex;flex:1 1 290px;align-items:center;gap:8px;border:1px solid #e7e5e4;border-radius:14px;padding:0 12px;color:#a8a29e;max-width:390px}
.gpc5-tree .gpc5-list-search-label .gpc5-search{border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;width:100%!important;min-width:0!important;max-width:none!important;font-size:14px!important;padding:11px 2px!important}
.gpc5-tree .gpc5-list-controls select{min-height:42px!important;padding:9px 13px!important;border:1px solid #e7e5e4!important;background:#fff!important;color:#57534e!important;border-radius:13px!important;max-width:100%;font-size:13px!important}
.gpc5-tree .gpc5-add-person{display:inline-flex;align-items:center;justify-content:center;margin-left:auto;border-radius:8px!important;background:#1c1917!important;color:#fff!important;padding:12px 18px!important;text-decoration:none!important;font-size:13px!important;font-weight:650!important;white-space:nowrap}
.gpc5-tree .gpc5-add-person:hover{background:#44403c!important}
.gpc5-tree:not(.gpc5-mode-list) .gpc5-list-controls{display:none!important}
.gpc5-tree.gpc5-mode-list .gpc5-rootbar,.gpc5-tree.gpc5-mode-list .gpc5-toolbar{display:none!important}
.gpc5-tree.gpc5-mode-family .gpc5-expand,.gpc5-tree.gpc5-mode-family .gpc5-collapse,.gpc5-tree.gpc5-mode-family .gpc5-reset{display:none!important}
.gpc5-tree.gpc5-mode-bubble .gpc5-expand,.gpc5-tree.gpc5-mode-bubble .gpc5-collapse{display:none!important}
.gpc5-tree.gpc5-mode-mindmap .gpc5-zoom-group{display:none!important}
.gpc5-tree.gpc5-mode-mindmap .gpc5-reset,.gpc5-tree.gpc5-mode-mindmap .gpc5-fullscreen{display:none!important}
.gpc5-tree.gpc5-mode-mindmap .gpc5-toolbar,.gpc5-tree.gpc5-mode-family .gpc5-toolbar,.gpc5-tree.gpc5-mode-bubble .gpc5-toolbar{margin-bottom:18px!important}
.gpc5-tree .gpc5-zoom-group{border:1px solid #e7e5e4;border-radius:999px!important;background:#fff;padding:3px!important}
.gpc5-tree .gpc5-avatar-sex{min-width:0!important;width:auto!important;height:auto!important;padding:0!important;right:-4px!important;bottom:-4px!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;font-size:17px!important;font-weight:800!important;text-shadow:-1.5px -1.5px white,1.5px -1.5px white,-1.5px 1.5px white,1.5px 1.5px white}
.gpc5-tree .gpc5-family-heart{display:none!important}
.gpc5-tree .gpc5-wedding-ring{pointer-events:none!important;filter:drop-shadow(0 1px 1px #a8a29e55)}
.gpc5-tree .gpc5-bubble-unit{transition:opacity 250ms ease;cursor:pointer;outline:none}
.gpc5-tree .gpc5-bubble-unit.gpc5-bubble-faded{opacity:.16!important}
.gpc5-tree .gpc5-bubble-unit.gpc5-bubble-focused .gpc5-bubble-outline{stroke:#d97706!important;stroke-width:3!important;fill:#fffbeb!important}
.gpc5-tree .gpc5-bubble-edge{transition:stroke 250ms ease,stroke-opacity 250ms ease,opacity 250ms ease,stroke-width 250ms ease}
.gpc5-tree .gpc5-bubble-edge.gpc5-bubble-edge-faded{opacity:.08!important}
.gpc5-tree .gpc5-bubble-edge.gpc5-bubble-edge-highlight{opacity:.9!important;stroke:#d97706!important;stroke-width:3!important}
@media(max-width:700px){.gpc5-tree .gpc5-list-controls{padding:10px;gap:8px;margin:12px auto!important}.gpc5-tree .gpc5-list-search-label{flex:1 1 100%;max-width:none}.gpc5-tree .gpc5-add-person{margin:0;width:100%;padding:10px!important}.gpc5-tree .gpc5-list-controls select{flex:1 1 calc(50% - 5px);min-width:0!important}}

/* Profile modal rendered at body level to escape clipping and WordPress page widths. */
body.gpc5-modal-open{overflow:hidden!important}
.gpc5-profile-overlay{box-sizing:border-box!important;position:fixed!important;inset:0!important;z-index:2147483000!important;background:rgba(15,23,42,.48)!important;display:flex!important;justify-content:center!important;align-items:flex-start!important;overflow-y:auto!important;overscroll-behavior:contain!important;padding:12px!important;font-family:Arial,Helvetica,sans-serif!important;color:#292524!important}
.gpc5-profile-overlay[hidden]{display:none!important}
.gpc5-profile-overlay,.gpc5-profile-overlay *{box-sizing:border-box!important}
.gpc5-profile-sheet{position:relative!important;width:min(890px,100%)!important;min-height:420px!important;max-height:calc(100dvh - 24px)!important;overflow-y:auto!important;overscroll-behavior:contain!important;scrollbar-width:thin!important;background:#fff!important;border:1px solid #e7e5e4!important;border-radius:26px!important;box-shadow:0 18px 65px #0003!important;padding:0!important;scroll-behavior:smooth}
.gpc5-profile-banner{position:relative!important;height:154px!important;min-height:154px!important;background:linear-gradient(112deg,#eae4d4 0%,#f7f7f7 53%,#cce5f0 100%)!important;border-radius:24px 24px 0 0!important}
.gpc5-profile-top-actions{position:sticky!important;top:0!important;z-index:2!important;display:flex!important;justify-content:flex-end!important;align-items:center!important;gap:8px!important;padding:18px!important;flex-wrap:wrap!important}
.gpc5-profile-overlay .gpc5-profile-action,.gpc5-profile-overlay a.gpc5-profile-action{border:0!important;border-radius:8px!important;background:#df8300!important;color:#111!important;padding:11px 16px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;white-space:nowrap!important;font-size:13px!important;font-weight:650!important;line-height:1.15!important;text-decoration:none!important;cursor:pointer!important;box-shadow:none!important}
.gpc5-profile-overlay .gpc5-profile-action:hover{background:#f4a218!important}
.gpc5-profile-close{display:inline-grid!important;place-items:center!important;border:0!important;background:#f5f5f4!important;border-radius:50%!important;width:40px!important;height:40px!important;flex:none!important;line-height:1!important;font-size:27px!important;color:#57534e!important;cursor:pointer!important}
.gpc5-profile-content{padding:0 32px 32px!important}
.gpc5-profile-identity{position:relative!important;display:flex!important;align-items:flex-end!important;gap:18px!important;margin:-60px 0 23px!important;min-height:112px!important}
.gpc5-profile-photo{width:43px!important;height:43px!important;min-width:43px!important;display:inline-flex!important;justify-content:center!important;align-items:center!important;position:relative!important;border-radius:50%!important;background:#028bc6!important;color:white!important;overflow:visible!important;flex:none!important}
.gpc5-profile-photo.female{background:#eb315e!important}
.gpc5-profile-photo img{width:100%!important;height:100%!important;object-fit:cover!important;border-radius:50%!important;display:block!important}
.gpc5-profile-photo.is-large{width:124px!important;height:124px!important;min-width:124px!important;background:#028bc6!important;border:6px solid white!important;box-shadow:0 2px 9px #0001!important}
.gpc5-profile-silhouette{font-size:22px;color:white!important;line-height:1!important}
.gpc5-profile-gender{position:absolute!important;right:-2px!important;bottom:-2px!important;display:inline-grid!important;place-items:center!important;width:23px!important;height:23px!important;border-radius:50%!important;background:#e0f2fe!important;color:#028bc6!important;border:3px solid white!important;font-size:16px!important;font-weight:750!important;line-height:1!important}
.gpc5-profile-gender.female{background:#ffe4e6!important;color:#eb315e!important}
.gpc5-profile-identity-title{padding-bottom:4px!important;min-width:0}
.gpc5-profile-identity h2{font-size:29px!important;line-height:1.2!important;letter-spacing:-.02em!important;font-weight:750!important;color:#292524!important;margin:0 0 12px!important;font-family:Georgia,serif!important}
.gpc5-profile-pills{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:7px!important}
.gpc5-profile-pill{border-radius:8px!important;padding:6px 9px!important;border:1px solid #e7e5e4!important;font-size:12px!important;color:#78716c!important;background:#fafaf9!important}
.gpc5-profile-pill.green{border-color:#a7f3d0!important;background:#effdf7!important;color:#059669!important}
.gpc5-profile-stat-grid,.gpc5-profile-descendant-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px!important}
.gpc5-profile-stat{display:flex!important;flex-direction:column!important;gap:10px!important;min-height:116px!important;padding:18px!important;background:#fff!important;border:1px solid #e7e5e4!important;border-radius:17px!important}
.gpc5-profile-stat.accent{background:#fffbf1!important;border-color:#fde68a!important}
.gpc5-profile-stat-title{font-size:14px!important;color:#a8a29e!important;font-weight:650!important}
.gpc5-profile-stat-value{font-size:15px!important;color:#44403c!important;font-weight:750!important;line-height:1.3!important}
.gpc5-profile-stat.accent .gpc5-profile-stat-value{color:#b45309!important}
.gpc5-profile-stat small{font-size:12px!important;color:#78716c!important;line-height:1.4!important}
.gpc5-profile-section{margin-top:24px!important}
.gpc5-profile-section-heading{font-size:17px!important;font-weight:750!important;color:#292524!important;margin:0 0 14px!important;line-height:1.4!important}
.gpc5-profile-descendants{border:1px solid #fde68a!important;border-radius:16px!important;padding:16px!important}
.gpc5-profile-count{min-height:90px!important;display:flex!important;flex-direction:column!important;gap:6px!important;border:1px solid #eee!important;background:#fafafa!important;border-radius:13px!important;padding:12px!important}
.gpc5-profile-count strong{font-size:13px!important;color:#57534e!important;font-weight:650!important}
.gpc5-profile-count b{font-size:22px!important;color:#292524!important}
.gpc5-profile-count small{font-size:12px!important;color:#78716c!important;line-height:1.3!important}
.gpc5-profile-main-grid{display:grid!important;grid-template-columns:minmax(0,2fr) minmax(220px,1fr)!important;gap:28px!important;align-items:start!important}
.gpc5-profile-notes,.gpc5-profile-info{background:#fff!important;border:1px solid #e7e5e4!important;border-radius:14px!important;padding:17px!important;font-size:14px!important;line-height:1.7!important;white-space:pre-wrap!important;color:#57534e!important;overflow-wrap:anywhere!important}
.gpc5-profile-contact{background:#fafafa!important;border:1px solid #e7e5e4!important;border-radius:18px!important;padding:16px!important}
.gpc5-profile-contact .gpc5-profile-section-heading{font-size:15px!important}
.gpc5-profile-contact .gpc5-profile-info{background:transparent!important;border:0!important;padding:0!important}
.gpc5-profile-pair{display:grid!important;grid-template-columns:1fr!important;gap:3px!important;border-bottom:1px solid #eee!important;padding:9px 0!important;white-space:normal!important}
.gpc5-profile-pair strong{font-size:12px!important;color:#78716c!important}
.gpc5-profile-pair span{font-size:13px!important;color:#44403c!important;overflow-wrap:anywhere!important}
.gpc5-profile-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:9px}
.gpc5-profile-links a{color:#b45309!important;text-decoration:underline!important;font-size:13px!important}
.gpc5-profile-family-section{margin-top:26px!important;scroll-margin-top:20px!important}
.gpc5-profile-family-block{padding:16px 12px!important;border-bottom:1px solid #edeae7!important}
.gpc5-profile-family-block h4{font-size:14px!important;font-weight:750!important;color:#57534e!important;margin:0 0 12px!important}
.gpc5-profile-empty{font-size:13px!important;color:#a8a29e!important}
.gpc5-profile-people-list{display:flex!important;flex-direction:column!important;gap:8px!important}
.gpc5-profile-overlay .gpc5-profile-person-item{display:flex!important;align-items:center!important;gap:11px!important;width:100%!important;min-height:52px!important;background:#fff!important;color:#292524!important;border:0!important;border-radius:14px!important;padding:6px 10px!important;text-align:left!important;cursor:pointer!important;text-decoration:none!important}
.gpc5-profile-overlay .gpc5-profile-person-item:hover{background:#f5f5f4!important}
.gpc5-profile-person-meta{display:flex!important;flex-direction:column!important;gap:3px!important;min-width:0!important}
.gpc5-profile-person-meta strong{font-size:14px!important;color:#292524!important;font-weight:650!important}
.gpc5-profile-person-meta small{color:#d97706!important;font-size:12px!important;font-style:italic!important}
.gpc5-profile-family-actions{display:flex!important;flex-wrap:wrap!important;gap:10px!important;padding:16px 6px!important}
.gpc5-profile-family-action{display:inline-flex!important;align-items:center!important;justify-content:center!important;border:2px dashed #e7e5e4!important;border-radius:15px!important;padding:12px 14px!important;font-size:13px!important;color:#78716c!important;text-decoration:none!important;white-space:nowrap!important}
.gpc5-profile-family-action:hover{background:#fffbeb!important;border-color:#facc15!important;color:#92400e!important}
.gpc5-profile-overlay :focus-visible{outline:2px solid #d97706!important;outline-offset:3px!important}
@media(max-width:750px){
 .gpc5-profile-overlay{padding:0!important}
 .gpc5-profile-sheet{max-height:100dvh!important;min-height:100dvh!important;border-radius:0!important;width:100%!important}
 .gpc5-profile-banner{height:132px!important;min-height:132px!important;border-radius:0!important}
 .gpc5-profile-top-actions{padding:9px!important;gap:5px!important;justify-content:flex-end!important}
 .gpc5-profile-overlay .gpc5-profile-action{padding:9px!important;font-size:11px!important}
 .gpc5-profile-close{width:36px!important;height:36px!important}
 .gpc5-profile-content{padding:0 16px 24px!important}
 .gpc5-profile-identity{margin:-48px 0 20px!important;align-items:flex-end!important;gap:10px!important}
 .gpc5-profile-photo.is-large{width:96px!important;height:96px!important;min-width:96px!important}
 .gpc5-profile-identity h2{font-size:22px!important}
 .gpc5-profile-stat-grid,.gpc5-profile-descendant-grid{grid-template-columns:1fr!important;gap:9px!important}
 .gpc5-profile-stat{min-height:0!important;padding:13px!important}
 .gpc5-profile-main-grid{grid-template-columns:1fr!important;gap:10px!important}
 .gpc5-profile-family-actions{gap:8px!important}
}
@media(prefers-reduced-motion:reduce){.gpc5-bubble-unit,.gpc5-bubble-edge,.gpc5-profile-sheet{transition:none!important;scroll-behavior:auto!important}}
/* High-specificity toolbar visibility overrides older !important rules. */
.gpc5-tree.gpc5-mode-family .gpc5-toolbar button.gpc5-expand,
.gpc5-tree.gpc5-mode-family .gpc5-toolbar button.gpc5-collapse,
.gpc5-tree.gpc5-mode-family .gpc5-toolbar button.gpc5-reset,
.gpc5-tree.gpc5-mode-bubble .gpc5-toolbar button.gpc5-expand,
.gpc5-tree.gpc5-mode-bubble .gpc5-toolbar button.gpc5-collapse,
.gpc5-tree.gpc5-mode-mindmap .gpc5-toolbar button.gpc5-reset,
.gpc5-tree.gpc5-mode-mindmap .gpc5-toolbar button.gpc5-fullscreen{display:none!important}
.gpc5-tree.gpc5-mode-mindmap .gpc5-toolbar .gpc5-zoom-group{display:none!important}
.gpc5-profile-silhouette{display:block!important;width:55%!important;height:55%!important;fill:#fff!important}
.gpc5-profile-gender{right:-2px!important;bottom:-3px!important;width:auto!important;height:auto!important;border:0!important;border-radius:0!important;background:transparent!important;color:#028bc6!important;font-size:21px!important;text-shadow:-1.5px -1.5px white,1.5px -1.5px white,-1.5px 1.5px white,1.5px 1.5px white}
.gpc5-profile-gender.female{background:transparent!important;color:#eb315e!important}
.gpc5-profile-top-actions{height:0!important;min-height:0!important;overflow:visible!important;position:sticky!important;top:0!important;z-index:50!important;pointer-events:none!important}
.gpc5-profile-top-actions>*{pointer-events:auto!important}
.gpc5-tree .gpc5-toolbar button.gpc5-fit-button{min-width:37px!important;width:37px!important;height:37px!important;border-radius:50%!important;display:inline-flex!important;justify-content:center!important;align-items:center!important;padding:0!important;font-size:23px!important;color:#57534e!important}
.gpc5-tree.gpc5-mode-list .gpc5-toolbar button.gpc5-fit-button,.gpc5-tree.gpc5-mode-mindmap .gpc5-toolbar button.gpc5-fit-button{display:none!important}
@media(max-width:500px){
 .gpc5-profile-top-actions{padding:8px!important;gap:4px!important;flex-wrap:nowrap!important;justify-content:flex-end!important}
 .gpc5-profile-overlay .gpc5-profile-action{font-size:10px!important;padding:8px 6px!important;white-space:nowrap!important}
 .gpc5-profile-close{width:30px!important;height:30px!important;min-width:30px!important;flex:0 0 30px!important;font-size:22px!important}
}

/* v0.18.0 — original icon silhouettes, centered controls, refined modal and bubble transition */
.gpc5-tree .gpc5-view-tabs{max-width:max-content!important;gap:4px!important;padding:5px!important;margin:0 auto 20px!important}
.gpc5-tree .gpc5-view-tab{font-size:15px!important;font-weight:700!important;line-height:1.4!important;padding:10px 15px!important;color:#57534e!important}
.gpc5-tree .gpc5-view-tab.is-active{color:#1c1917!important;font-weight:800!important;box-shadow:0 1px 4px #1c19171c!important}
.gpc5-tree .gpc5-controls-row{display:flex!important;align-items:center!important;justify-content:center!important;flex-wrap:wrap!important;gap:12px!important;width:min(1200px,100%)!important;margin:0 auto 14px!important;position:relative!important;z-index:40!important}
.gpc5-tree .gpc5-controls-row .gpc5-rootbar{margin:0!important;flex:0 1 292px!important;min-width:230px!important;justify-content:center!important}
.gpc5-tree .gpc5-controls-row .gpc5-toolbar{flex:0 1 auto!important;justify-content:center!important;gap:7px!important;margin:0!important;min-height:48px!important}
.gpc5-tree .gpc5-controls-row .gpc5-root-trigger{max-width:292px!important}
.gpc5-tree.gpc5-mode-list .gpc5-controls-row{display:none!important}
.gpc5-tree .gpc5-avatar-sex{bottom:-4px!important;right:-4px!important;color:#028bc6!important;display:grid!important;place-items:center!important;filter:drop-shadow(0px 0px 2px #fff) drop-shadow(0px 1px 1px #fff)!important;line-height:0!important}
.gpc5-tree .gpc5-avatar-sex.female,.gpc5-tree .gpc5-gender-original.female{color:#e11d48!important}
.gpc5-tree .gpc5-avatar-sex.male,.gpc5-tree .gpc5-gender-original.male{color:#028bc6!important}
.gpc5-tree .gpc5-avatar-sex svg{display:block!important;width:17px!important;height:17px!important;stroke-width:2.3px!important;fill:none!important}
.gpc5-tree .gpc5-svg-gender{filter:drop-shadow(0 0 1.2px #fff) drop-shadow(0 1px 1px #fff)!important;overflow:visible!important;pointer-events:none!important}
.gpc5-tree .gpc5-svg-gender *{fill:none!important;stroke:inherit!important;stroke-width:inherit!important;stroke-linecap:round!important;stroke-linejoin:round!important}
.gpc5-tree .gpc5-svg .gpc5-source-ring{font-family:Apple Color Emoji,Segoe UI Emoji,Noto Color Emoji,sans-serif!important;font-size:23px!important;stroke:none!important;paint-order:normal!important;fill:#e58a1e!important;pointer-events:none!important}
.gpc5-tree .gpc5-bubble-entrance{animation:gpc5-bubble-appear 380ms ease-out both!important}
@keyframes gpc5-bubble-appear{from{opacity:.3}to{opacity:1}}
.gpc5-tree .gpc5-list-controls select{min-width:174px!important;max-width:250px!important;appearance:auto!important;font-weight:550!important}
.gpc5-tree .gpc5-list-controls select option,.gpc5-tree .gpc5-list-controls optgroup{font-size:14px!important;line-height:1.6!important}
.gpc5-tree .gpc5-list-controls .gpc5-list-search-label{min-width:220px!important}
.gpc5-profile-overlay .gpc5-profile-stat-grid .gpc5-profile-stat{border-radius:16px!important;box-shadow:0 2px 12px rgba(41,37,36,.035)!important}
.gpc5-profile-overlay .gpc5-profile-family-section{margin-top:22px!important}
.gpc5-profile-overlay .gpc5-profile-main-grid{gap:22px!important}
@media(max-width:900px){.gpc5-tree .gpc5-controls-row{max-width:100%!important;gap:8px!important}.gpc5-tree .gpc5-view-tab{font-size:13px!important;padding:9px 10px!important}}
@media(max-width:540px){.gpc5-tree .gpc5-controls-row{flex-direction:column!important;gap:8px!important}.gpc5-tree .gpc5-controls-row .gpc5-rootbar{flex:0 0 auto!important;width:min(320px,100%)!important;min-width:0!important}.gpc5-tree .gpc5-controls-row .gpc5-toolbar{width:100%!important;max-width:100%!important;justify-content:center!important}.gpc5-tree .gpc5-view-tabs{width:100%!important;max-width:100%!important;justify-content:space-between!important}.gpc5-tree .gpc5-view-tab{font-size:12px!important;padding:9px 7px!important}.gpc5-tree .gpc5-list-controls select{min-width:0!important;max-width:100%!important}}
@media(prefers-reduced-motion:reduce){.gpc5-tree .gpc5-bubble-entrance{animation:none!important}}

.gpc5-profile-gender svg{width:18px!important;height:18px!important;display:block!important;fill:none!important;stroke-width:2.2px!important}
/* v0.18 original member detail content: cover portrait on its own row, then title and status badges. */
.gpc5-profile-overlay .gpc5-profile-identity{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:10px!important;margin:-72px 0 23px!important;min-height:0!important}
.gpc5-profile-overlay .gpc5-profile-identity-title{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:9px!important;width:100%!important;padding-top:2px!important}
.gpc5-profile-overlay .gpc5-profile-identity-title h2{font-family:Georgia,Times New Roman,serif!important;font-weight:750!important;font-size:29px!important;margin:0!important}
.gpc5-profile-overlay .gpc5-profile-stat-grid{margin-top:15px!important}
.gpc5-profile-overlay .gpc5-profile-stat-title{font-size:15px!important}
.gpc5-profile-overlay .gpc5-profile-stat-value{font-size:15px!important}
.gpc5-profile-overlay .gpc5-profile-descendants{margin:24px 0!important}
.gpc5-profile-overlay .gpc5-profile-identity .gpc5-profile-photo.is-large{width:130px!important;height:130px!important;min-width:130px!important}
@media(max-width:680px){.gpc5-profile-overlay .gpc5-profile-identity{margin-top:-55px!important}.gpc5-profile-overlay .gpc5-profile-identity .gpc5-profile-photo.is-large{width:103px!important;height:103px!important;min-width:103px!important}.gpc5-profile-overlay .gpc5-profile-identity-title h2{font-size:24px!important}}

/* v0.19.0 – Gia Pha OS source-guided icon and inline relationship controls */
.gpc5-tree .gpc5-avatar-sex{
 right:0px!important;bottom:0px!important;filter:drop-shadow(0 0 1px #fff) drop-shadow(0 0 2px #fff)!important;
 display:grid!important;place-items:center!important;line-height:0!important;transform:translate(0,0)!important;
}
.gpc5-tree .gpc5-avatar-sex svg{width:15px!important;height:15px!important;stroke-width:2.6px!important}
.gpc5-tree .gpc5-list-avatar,.gpc5-tree .gpc5-root-option-avatar{position:relative!important}
.gpc5-tree .gpc5-svg-gender{overflow:visible!important;pointer-events:none!important}
.gpc5-tree .gpc5-svg .gpc5-source-ring{font-size:31px!important;fill:#d97706!important;filter:drop-shadow(0 1px 1px rgba(0,0,0,.15));}
.gpc5-tree .gpc5-wedding-ring{filter:none!important}
.gpc5-profile-family-actions button.gpc5-profile-family-action{cursor:pointer!important;background:#fafaf9!important;font-family:inherit!important}
.gpc5-profile-family-actions button.gpc5-profile-family-action:hover{background:#fffbeb!important}
.gpc5-original-ui-icon{display:inline-block!important;flex:none!important;vertical-align:middle!important;width:18px!important;height:18px!important;color:inherit!important}
.gpc5-profile-section-heading,.gpc5-profile-stat-title,.gpc5-profile-action,.gpc5-profile-family-action{display:flex!important;align-items:center!important;gap:7px!important}
.gpc5-profile-close .gpc5-original-ui-icon{width:21px!important;height:21px!important}
.gpc5-quick-host:empty{display:none!important}
.gpc5-quick-host{padding:0 8px 18px!important}
.gpc5-quick-panel{border:1px solid #f5d29d!important;background:#fffbef!important;border-radius:16px!important;padding:17px!important;box-shadow:0 1px 4px #7c2d120b!important}
.gpc5-quick-form{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px 14px!important}
.gpc5-quick-form h4{grid-column:1/-1!important;margin:0!important;font-size:16px!important;color:#44403c!important}
.gpc5-quick-hint{grid-column:1/-1!important;margin:0 0 4px!important;font-size:12px!important;color:#78716c!important}
.gpc5-quick-field{display:flex!important;flex-direction:column!important;align-items:stretch!important;min-width:0!important;gap:6px!important;font-weight:500!important;color:#57534e!important;font-size:13px!important}
.gpc5-quick-field span{line-height:1.35!important}
.gpc5-quick-field input,.gpc5-quick-field select{width:100%!important;min-height:41px!important;min-width:0!important;background:white!important;color:#292524!important;border:1px solid #d6d3d1!important;border-radius:11px!important;font-size:14px!important;padding:9px 10px!important;box-sizing:border-box!important}
.gpc5-quick-field[hidden]{display:none!important}
.gpc5-quick-feedback{grid-column:1/-1!important;font-size:13px!important;margin:0!important;color:#047857!important}
.gpc5-quick-feedback.is-error{color:#be123c!important;font-weight:600!important}
.gpc5-quick-buttons{grid-column:1/-1!important;display:flex!important;gap:8px!important;justify-content:flex-end!important}
.gpc5-quick-buttons button{border-radius:12px!important;padding:8px 14px!important;font-size:13px!important;font-weight:650!important;cursor:pointer!important}
.gpc5-quick-cancel{background:white!important;color:#57534e!important;border:1px solid #e7e5e4!important}
.gpc5-quick-save{background:#c97806!important;color:#fff!important;border:1px solid #c97806!important}
.gpc5-quick-save:disabled{opacity:.6!important;cursor:wait!important}
@media(max-width:650px){
 .gpc5-quick-form{grid-template-columns:1fr!important}
 .gpc5-quick-panel{padding:12px!important}
 .gpc5-profile-family-actions{display:grid!important;grid-template-columns:1fr!important}
 .gpc5-profile-family-action{white-space:normal!important;text-align:left!important}
}

/* v0.20.0: icon parity and adopted-child relationship */
.gpc5-tree .gpc5-svg .gpc5-source-ring{font-size:28px!important}
.gpc5-tree .gpc5-view-tab{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important}
.gpc5-tree .gpc5-view-tab .gpc5-view-icon{width:18px!important;height:18px!important;min-width:18px!important;flex:none!important;fill:none!important;stroke:currentColor!important}
.gpc5-tree .gpc5-fit-button .gpc5-view-icon{display:block!important;width:18px!important;height:18px!important;fill:none!important;stroke:currentColor!important}
.gpc5-tree .gpc5-view-tab.is-active .gpc5-view-icon{color:#b45309!important}
.gpc5-profile-overlay .gpc5-profile-family-block h4{display:flex!important;align-items:center!important;gap:8px!important}
.gpc5-profile-overlay .gpc5-profile-pair strong{display:inline-flex!important;align-items:center!important;gap:6px!important}
.gpc5-profile-overlay .gpc5-profile-count strong{display:flex!important;align-items:center!important;gap:6px!important}
.gpc5-tree .gpc5-edge.adoptive{stroke:#d97706!important;stroke-dasharray:6 5!important;stroke-width:2px!important}
.gpc5-tree .gpc5-list-chips em.is-role.adoptive{background:#fff7ed!important;color:#b45309!important}
@media(max-width:550px){.gpc5-tree .gpc5-view-tab{gap:4px!important}.gpc5-tree .gpc5-view-tab .gpc5-view-icon{width:16px!important;height:16px!important;min-width:16px!important}}

.gpc5-tree .gpc5-date-line{display:inline-flex!important;align-items:center!important;gap:5px!important}
.gpc5-tree .gpc5-date-line .gpc5-original-ui-icon{height:14px!important;width:14px!important;color:#a8a29e!important}

/* v0.21: Compact partner frame and print profile control. */
.gpc5-tree .gpc5-family-frame-bg{fill:#fff!important;stroke:#e7e5e4!important;stroke-width:1.1!important;filter:drop-shadow(0 2px 4px #29252413)!important}
.gpc5-profile-top-actions .gpc5-profile-print{display:inline-flex!important}
@media(max-width:680px){.gpc5-profile-top-actions .gpc5-profile-print{font-size:11px!important}}

/* A lone couple should not be marooned in a large empty tree viewport. */
.gpc5-tree .gpc5-canvas.gpc5-single-family:not(.gpc5-list-mode){height:min(56dvh,460px)!important;min-height:320px!important;max-height:none!important}
@media(max-width:680px){.gpc5-tree .gpc5-canvas.gpc5-single-family:not(.gpc5-list-mode){height:390px!important;min-height:330px!important}}

/* v0.22 – Stable 26px vector wedding ring; always painted above partner cards. */
.gpc5-tree .gpc5-family-ornaments{pointer-events:none!important;isolation:isolate}
.gpc5-tree .gpc5-family-ornaments .gpc5-wedding-ring{pointer-events:none!important;filter:drop-shadow(0 1px 1px rgba(146,64,14,.17));}
.gpc5-tree .gpc5-family-ornaments .gpc5-wedding-ring path,
.gpc5-tree .gpc5-family-ornaments .gpc5-wedding-ring ellipse{vector-effect:non-scaling-stroke;paint-order:normal}
/* Unobtrusive transitions like original bubble selection. Prefer reduced motion. */
.gpc5-tree .gpc5-bubble-unit{transition:opacity 250ms ease!important}
.gpc5-tree .gpc5-bubble-edge{transition:stroke 250ms ease,opacity 250ms ease,stroke-width 250ms ease!important}
@media(prefers-reduced-motion:reduce){
 .gpc5-tree .gpc5-bubble-unit,.gpc5-tree .gpc5-bubble-edge{transition:none!important}
}

/* v0.23 -- lineage-root Bubble styling, responsive labels. */
.gpc5-tree .gpc5-bubble-root .gpc5-bubble-outline{stroke:#d97706!important;stroke-width:2.5!important;fill:#fffbeb!important;filter:drop-shadow(0 4px 8px rgba(180,83,9,.18))}
.gpc5-tree .gpc5-svg .gpc5-bubble-root .gpc5-bubble-label{font-size:13px!important;font-weight:700!important;fill:#92400e!important}
.gpc5-tree .gpc5-svg .gpc5-bubble-root .gpc5-bubble-member{outline:none}

/* v0.24.0: shared profile/List avatar, mobile overlay and stable interactive menus. */
.gpc5-tree .gpc5-list-avatar .gpc5-list-silhouette {
  display:block!important;width:65%!important;height:65%!important;
  fill:#fff!important;stroke:none!important;overflow:visible!important;
}
.gpc5-tree .gpc5-list-avatar .gpc5-list-silhouette circle,
.gpc5-tree .gpc5-list-avatar .gpc5-list-silhouette path {fill:#fff!important;stroke:none!important}
.gpc5-tree:fullscreen > .gpc5-profile-overlay {
  position:fixed!important;inset:0!important;width:100%!important;height:100%!important;
  max-width:none!important;z-index:2147483000!important;overflow-y:auto!important;
  display:flex!important;transform:none!important;contain:none!important;
}
.gpc5-tree:fullscreen > .gpc5-profile-overlay[hidden]{display:none!important}
@media(max-width:680px){
  .gpc5-tree .gpc5-toolbar .gpc5-popover-anchor .gpc5-display-menu,
  .gpc5-tree .gpc5-toolbar .gpc5-popover-anchor .gpc5-export-menu{
    width:min(240px,calc(100vw - 20px))!important;
    min-width:0!important;max-width:calc(100vw - 20px)!important;
    overflow-x:hidden!important;
  }
  .gpc5-profile-overlay .gpc5-profile-sheet {overscroll-behavior:contain!important}
}
/* Make all profile actions visible on 390px phones (no clipped left-side button). */
@media(max-width:500px){
 .gpc5-profile-overlay .gpc5-profile-top-actions{
   right:0!important;left:0!important;max-width:100%!important;
   justify-content:flex-end!important;flex-wrap:nowrap!important;gap:5px!important;
   padding:9px!important;
 }
 .gpc5-profile-overlay .gpc5-profile-top-actions .gpc5-profile-action{
   flex:0 0 34px!important;min-width:34px!important;width:34px!important;height:34px!important;
   overflow:hidden!important;white-space:nowrap!important;font-size:0!important;
   padding:7px!important;gap:0!important;border-radius:999px!important;
 }
 .gpc5-profile-overlay .gpc5-profile-top-actions .gpc5-profile-action .gpc5-original-ui-icon{
   width:19px!important;height:19px!important;min-width:19px!important;
 }
 .gpc5-profile-overlay .gpc5-profile-top-actions .gpc5-profile-close{
   flex:0 0 34px!important;width:34px!important;height:34px!important;min-width:34px!important;
 }
}

/* v0.25.0: keep the mobile Display menu visually centered. The final
   horizontal offset is calculated from the actual viewport in tree.js. */
@media(max-width:680px){
  .gpc5-tree .gpc5-toolbar .gpc5-popover-anchor .gpc5-display-menu {
    width:min(250px,calc(100vw - 24px))!important;
    min-width:0!important;
    max-width:calc(100vw - 24px)!important;
    right:0!important;left:auto!important;
  }
  /* The contact information panel is permission-gated in PHP. On phones it
     must appear before the long family listing, including in fullscreen. */
  .gpc5-profile-overlay .gpc5-profile-main-grid{
    display:flex!important;flex-direction:column!important;
    align-items:stretch!important;gap:12px!important;
  }
  .gpc5-profile-overlay .gpc5-profile-contact{
    order:-1!important;display:block!important;width:100%!important;
    min-width:0!important;margin:10px 0!important;
    scroll-margin-top:72px!important;
  }
  .gpc5-profile-overlay .gpc5-profile-main-left{order:1!important;width:100%!important;min-width:0!important}
  .gpc5-profile-overlay .gpc5-profile-contact .gpc5-profile-info{display:block!important}
}
.gpc5-profile-overlay .gpc5-profile-alias{
  display:flex!important;align-items:center!important;gap:7px!important;
  margin:7px 0 0!important;font-size:13px!important;line-height:1.5!important;
  font-weight:500!important;color:#78716c!important;overflow-wrap:anywhere!important;
}
.gpc5-tree .gpc5-list-chips .is-birth-order{
  background:#fef3c7!important;color:#92400e!important;border-radius:7px!important;
  padding:3px 7px!important;font-style:normal!important;font-size:11px!important;
}

/* v0.26.0 – Mobile fullscreen profile quick actions: always accessible to authorized editors.
   The old family action row stays near the family details, while this bar is near the header. */
.gpc5-profile-overlay .gpc5-profile-mobile-quick-actions{display:none!important}
@media(max-width:680px){
 .gpc5-profile-overlay .gpc5-profile-mobile-quick-actions{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:7px!important;width:100%!important;box-sizing:border-box!important;
  position:relative!important;z-index:3!important;padding:10px!important;
  margin:6px 0 14px!important;border-radius:15px!important;background:#fffaf0!important;
  border:1px solid #f7dfa7!important;
 }
 .gpc5-profile-overlay .gpc5-profile-mobile-quick-btn{
  display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
  gap:5px!important;min-width:0!important;min-height:64px!important;padding:8px 5px!important;
  border:1px solid #f1d6a4!important;border-radius:11px!important;background:#fff!important;
  color:#92400e!important;font:600 11px/1.25 Arial,sans-serif!important;text-align:center!important;
  white-space:normal!important;overflow-wrap:anywhere!important;cursor:pointer!important;
 }
 .gpc5-profile-overlay .gpc5-profile-mobile-quick-btn svg{height:19px!important;width:19px!important;flex:none!important}
 .gpc5-profile-overlay .gpc5-profile-family-actions{display:grid!important;grid-template-columns:1fr!important;visibility:visible!important;opacity:1!important}
 .gpc5-profile-overlay .gpc5-profile-family-action{display:flex!important;visibility:visible!important;opacity:1!important}
 .gpc5-profile-overlay .gpc5-quick-host{scroll-margin-top:76px!important}
}
/* Kinship dialog is ported from the source algorithm, but kept in its own modal rather than
   depending on WordPress theme styles or the tree's normal SVG camera. */
.gpc5-tree .gpc5-kinship-trigger{
 display:inline-flex!important;gap:7px!important;align-items:center!important;justify-content:center!important;
 white-space:nowrap!important;padding:9px 13px!important;border-radius:8px!important;
 background:#fffbeb!important;color:#92400e!important;border:1px solid #fcd34d!important;
 font:600 12px/1.3 Arial,sans-serif!important;cursor:pointer!important;
}
.gpc5-tree .gpc5-kinship-list-trigger{margin-left:auto!important;flex:none!important}
.gpc5-kinship-overlay[hidden]{display:none!important}
.gpc5-kinship-overlay{
 position:fixed!important;inset:0!important;z-index:2147483000!important;
 background:rgba(20,18,15,.56)!important;backdrop-filter:blur(2px)!important;
 display:flex!important;align-items:center!important;justify-content:center!important;
 padding:12px!important;overflow-y:auto!important;box-sizing:border-box!important;
}
.gpc5-kinship-dialog{
 width:min(660px,100%)!important;max-height:min(92dvh,820px)!important;overflow-y:auto!important;
 padding:22px!important;box-sizing:border-box!important;margin:auto!important;
 background:white!important;border:1px solid #e7e5e4!important;border-radius:22px!important;
 box-shadow:0 20px 70px rgba(0,0,0,.20)!important;color:#292524!important;
 font:14px/1.5 Arial,Helvetica,sans-serif!important;
}
.gpc5-kinship-header{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:12px!important;margin-bottom:12px!important}
.gpc5-kinship-header h2{font:700 24px/1.3 Georgia,serif!important;color:#292524!important;margin:0!important}
.gpc5-kinship-close{border:1px solid #e7e5e4!important;background:#fafaf9!important;color:#44403c!important;border-radius:50%!important;font-size:24px!important;width:36px!important;height:36px!important;cursor:pointer!important}
.gpc5-kinship-intro,.gpc5-kinship-footnote{font-size:13px!important;color:#78716c!important;margin:10px 0 18px!important}
.gpc5-kinship-fields{display:grid!important;grid-template-columns:minmax(0,1fr) 42px minmax(0,1fr)!important;align-items:end!important;gap:10px!important}
.gpc5-kinship-field{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:7px!important;font-weight:650!important;color:#57534e!important;min-width:0!important}
.gpc5-kinship-field input,.gpc5-kinship-field select{width:100%!important;min-width:0!important;max-width:100%!important;min-height:41px!important;border:1px solid #d6d3d1!important;border-radius:11px!important;background:#fff!important;padding:8px!important;color:#292524!important;box-sizing:border-box!important;font:13px/1.4 Arial,sans-serif!important}
.gpc5-kinship-swap{height:41px!important;width:41px!important;border-radius:50%!important;background:#fafaf9!important;border:1px solid #e7e5e4!important;color:#d97706!important;font-size:23px!important;cursor:pointer!important}
.gpc5-kinship-calculate{display:block!important;margin:18px auto!important;padding:10px 25px!important;border-radius:12px!important;border:1px solid #c97806!important;background:#c97806!important;color:white!important;font-weight:700!important;cursor:pointer!important}
.gpc5-kinship-result:empty{display:none!important}
.gpc5-kinship-answer-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important}
.gpc5-kinship-answer{background:#fffbeb!important;border:1px solid #fde68a!important;border-radius:13px!important;padding:15px!important}
.gpc5-kinship-answer small{display:block!important;font-size:12px!important;color:#78716c!important;margin-bottom:7px!important}
.gpc5-kinship-answer strong{display:block!important;color:#92400e!important;font-size:20px!important;overflow-wrap:anywhere!important}
.gpc5-kinship-reason{margin:13px 0 5px!important;color:#44403c!important;font-weight:600!important}
.gpc5-kinship-warning{background:#fff7ed!important;border-left:3px solid #f59e0b!important;padding:9px 12px!important;color:#9a3412!important;border-radius:6px!important;font-size:13px!important}
.gpc5-kinship-error{padding:10px!important;color:#be123c!important;background:#fff1f2!important;border-radius:10px!important}
.gpc5-kinship-path{font-size:13px!important;color:#57534e!important;margin-top:12px!important;border:1px solid #e7e5e4!important;padding:12px!important;border-radius:11px!important}
.gpc5-kinship-path summary{cursor:pointer!important;font-weight:650!important}
.gpc5-kinship-path ol{padding-left:23px!important;margin:8px 0!important}
body.gpc5-kinship-open{overflow:hidden!important}
@media(max-width:600px){
 .gpc5-kinship-dialog{padding:16px!important;max-height:94dvh!important}
 .gpc5-kinship-header h2{font-size:21px!important}
 .gpc5-kinship-fields{grid-template-columns:1fr!important;gap:8px!important}
 .gpc5-kinship-swap{justify-self:center!important;transform:rotate(90deg)!important}
 .gpc5-kinship-answer-grid{grid-template-columns:1fr!important}
 .gpc5-tree .gpc5-kinship-trigger{font-size:11px!important;padding:8px 9px!important}
 .gpc5-tree .gpc5-kinship-list-trigger{width:100%!important;margin:8px auto 0!important}
}


/* v0.28.0 — Portraits, full spouse names and subtree-hover highlights. */
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-list-avatar{
  width:56px!important;height:56px!important;min-width:56px!important;min-height:56px!important;
  flex:0 0 56px!important;border-radius:16px!important;
}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-list-avatar img{border-radius:14px!important}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-list-avatar::after{border-radius:14px!important}
.gpc5-tree .gpc5-svg .gpc5-mindmap-spouse-name{
  font-family:Arial,Helvetica,sans-serif!important;font-size:11.5px!important;
  font-weight:650!important;fill:#44403c!important;text-anchor:start!important;
  pointer-events:none!important;
}
.gpc5-tree .gpc5-svg .gpc5-mindmap-spouse-label{
  font-size:11px!important;font-weight:650!important;fill:#a16207!important;
  text-anchor:start!important;pointer-events:none!important;
}
.gpc5-tree .gpc5-svg .gpc5-mindmap-unit.gpc5-branch-highlight > .gpc5-mindmap-bg{
  stroke:#f59e0b!important;stroke-width:3px!important;
  filter:drop-shadow(0 0 5px rgba(245,158,11,.32))!important;
}
.gpc5-tree .gpc5-svg .gpc5-mindmap-unit.gpc5-branch-highlight .gpc5-mindmap-spouse-bg{
  stroke:#f59e0b!important;stroke-width:2px!important;
}
.gpc5-tree .gpc5-svg .gpc5-family-frame.gpc5-branch-highlight .gpc5-family-frame-bg{
  stroke:#f59e0b!important;stroke-width:3px!important;
  filter:drop-shadow(0 0 5px rgba(245,158,11,.28))!important;
}
.gpc5-tree .gpc5-svg .gpc5-node-card.view-family.gpc5-branch-highlight .gpc5-card-bg{
  fill:rgba(255,251,235,.82)!important;stroke:#f59e0b!important;stroke-width:2.6px!important;
}
.gpc5-tree .gpc5-svg .gpc5-edge.gpc5-branch-edge-highlight{
  stroke:#f59e0b!important;stroke-width:2.8px!important;opacity:1!important;
  filter:drop-shadow(0 0 2px rgba(245,158,11,.32));
}
.gpc5-tree .gpc5-svg .gpc5-family-frame-bg,
.gpc5-tree .gpc5-svg .gpc5-mindmap-bg,
.gpc5-tree .gpc5-svg .gpc5-mindmap-spouse-bg,
.gpc5-tree .gpc5-svg .gpc5-node-card.view-family .gpc5-card-bg,
.gpc5-tree .gpc5-svg .gpc5-edge{
  transition:stroke .17s ease,stroke-width .17s ease,fill .17s ease,filter .17s ease;
}
@media(max-width:680px){
 .gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-list-avatar{
  width:51px!important;height:51px!important;min-width:51px!important;min-height:51px!important;flex-basis:51px!important;
 }
}
@media(prefers-reduced-motion:reduce){
 .gpc5-tree .gpc5-svg .gpc5-family-frame-bg,
 .gpc5-tree .gpc5-svg .gpc5-mindmap-bg,
 .gpc5-tree .gpc5-svg .gpc5-mindmap-spouse-bg,
 .gpc5-tree .gpc5-svg .gpc5-node-card.view-family .gpc5-card-bg,
 .gpc5-tree .gpc5-svg .gpc5-edge{transition:none!important}
}

/* v0.29.0 – divorced marriages and five-generation kinship-on-hover. */
.gpc5-profile-overlay .gpc5-marital-controls{
  margin:10px 0 20px;padding:12px 14px;border:1px solid #f2dfb6;
  border-radius:13px;background:#fffcf3;
}
.gpc5-profile-overlay .gpc5-marital-control{
  display:flex;align-items:center;gap:9px;flex-wrap:wrap;
  margin:0;padding:10px 0;border-bottom:1px solid #ede7dc;
}
.gpc5-profile-overlay .gpc5-marital-control:last-child{border-bottom:0}
.gpc5-profile-overlay .gpc5-marital-control strong{font-size:13px;min-width:120px;flex:1 1 120px}
.gpc5-profile-overlay .gpc5-marital-select,.gpc5-profile-overlay .gpc5-marital-date{
  border:1px solid #d6d3d1!important;border-radius:9px!important;background:white!important;
  font-size:13px!important;padding:8px!important;max-width:180px;
}
.gpc5-profile-overlay .gpc5-marital-date[hidden]{display:none!important}
.gpc5-profile-overlay .gpc5-marital-save{
  background:#fff6e7!important;border:1px solid #fcd34d!important;border-radius:9px!important;
  color:#92400e!important;font-weight:650!important;font-size:13px!important;padding:8px 11px!important;
  cursor:pointer;
}
.gpc5-profile-overlay .gpc5-marital-feedback{font-size:12px;color:#9a3412}
.gpc5-tree .gpc5-svg .gpc5-divorced-ring{opacity:.85}
.gpc5-tree .gpc5-kinship-hover-overlay{pointer-events:none!important;isolation:isolate}
.gpc5-tree .gpc5-svg .gpc5-kinship-hover-tag rect{
  fill:#fffbeb!important;stroke:#f59e0b!important;stroke-width:1.6px!important;
  filter:drop-shadow(0px 2px 4px rgba(92,56,10,.19));
}
.gpc5-tree .gpc5-svg .gpc5-kinship-hover-tag text{
  fill:#78350f!important;font-family:Arial,sans-serif!important;font-weight:700!important;
  font-size:11px!important;pointer-events:none!important;
}
.gpc5-tree .gpc5-canvas .gpc5-hover-kinship-legend{
  position:absolute;left:12px;bottom:12px;z-index:7;pointer-events:none;
  width:min(330px,calc(100% - 24px));max-height:170px;overflow:hidden;
  background:rgba(255,253,246,.97);border:1px solid #f0cf85;border-radius:13px;
  box-shadow:0px 6px 18px rgba(77,57,34,.12);padding:10px 12px;
  color:#57534e;font-size:12px;line-height:1.4;
}
.gpc5-tree .gpc5-hover-kinship-legend[hidden]{display:none!important}
.gpc5-tree .gpc5-hover-kinship-legend strong{font-size:12px;font-weight:750;color:#92400e;display:block;margin-bottom:6px}
.gpc5-tree .gpc5-hover-kinship-items{display:flex;flex-direction:column;gap:3px}
@media(max-width:640px){
 .gpc5-profile-overlay .gpc5-marital-control{flex-direction:column;align-items:stretch}
 .gpc5-profile-overlay .gpc5-marital-select,.gpc5-profile-overlay .gpc5-marital-date{max-width:none}
 .gpc5-tree .gpc5-hover-kinship-legend{display:none!important}
}

/* v0.30.0 – mobile kinship press, neutral divorced wedding ring, closer couple cards */
.gpc5-tree .gpc5-svg .gpc5-divorced-ring{opacity:1!important;filter:none!important}
@media(max-width:680px){
 .gpc5-tree .gpc5-canvas .gpc5-hover-kinship-legend:not([hidden]){
  display:block!important;position:absolute!important;left:50%!important;right:auto!important;bottom:10px!important;
  transform:translateX(-50%)!important;width:calc(100% - 24px)!important;
  max-height:min(160px,27dvh)!important;overflow-y:auto!important;z-index:22!important;
  background:rgba(255,251,235,.96)!important;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
  pointer-events:none!important;padding:9px 11px!important;box-sizing:border-box!important;
 }
 .gpc5-tree .gpc5-canvas .gpc5-hover-kinship-legend strong{font-size:12px!important}
 .gpc5-tree .gpc5-canvas .gpc5-hover-kinship-legend .gpc5-hover-kinship-items{font-size:11px!important}
}


/* v0.31.0 — floating detailed kinship panel (never clipped by SVG canvas)
   and mobile Mindmap touch-highlight support. */
.gpc5-tree .gpc5-kinship-detail-panel[hidden]{display:none!important}
.gpc5-tree .gpc5-kinship-detail-panel:not([hidden]){
 display:block!important;position:fixed!important;top:120px!important;right:18px!important;
 left:auto!important;bottom:auto!important;transform:none!important;isolation:isolate;
 z-index:2147483000!important;pointer-events:auto!important;box-sizing:border-box!important;
 width:min(380px,calc(100vw - 28px))!important;max-width:calc(100vw - 28px)!important;
 max-height:min(65dvh,560px)!important;overflow-y:auto!important;overscroll-behavior:contain;
 background:rgba(255,253,247,.98)!important;border:1px solid #e9c46a!important;
 border-radius:17px!important;box-shadow:0 15px 44px #45310d35!important;
 padding:14px!important;color:#44403c!important;font:13px/1.45 Arial,sans-serif!important;
 backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
}
.gpc5-tree .gpc5-kinship-panel-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:6px}
.gpc5-tree .gpc5-kinship-panel-header strong{color:#92400e!important;font-size:15px!important;font-weight:700!important}
.gpc5-tree .gpc5-kinship-panel-close{border:1px solid #e5e2dc!important;background:#fff!important;border-radius:50%!important;
 width:32px!important;height:32px!important;flex:0 0 32px!important;padding:0!important;line-height:30px!important;
 color:#57534e!important;cursor:pointer!important;font-size:16px!important}
.gpc5-tree .gpc5-kinship-panel-note{color:#78716c!important;font-size:12px!important;margin:0 0 8px!important}
.gpc5-tree .gpc5-kinship-panel-rows{display:flex;flex-direction:column;gap:2px}
.gpc5-tree .gpc5-kinship-panel-row{display:flex;align-items:start;justify-content:space-between;gap:12px;
 padding:9px 4px!important;border-bottom:1px solid #eee9df!important}
.gpc5-tree .gpc5-kinship-panel-row>span{min-width:0;flex:1;color:#44403c!important;overflow-wrap:anywhere}
.gpc5-tree .gpc5-kinship-panel-row>strong{flex:0 0 43%;color:#a16207!important;text-align:right!important;
 font-size:12px!important;line-height:1.4!important;overflow-wrap:anywhere}
.gpc5-tree .gpc5-svg .gpc5-mindmap-unit.gpc5-branch-highlight>.gpc5-mindmap-bg,
.gpc5-tree .gpc5-svg .gpc5-mindmap-unit.gpc5-branch-highlight .gpc5-mindmap-spouse-bg{
 stroke:#f59e0b!important;stroke-width:3.2px!important;filter:drop-shadow(0 0 5px #f59e0b55)!important}
/* 10 px gap between adjacent spouse cards, and no yellow marriage connector
   where JavaScript detects a divorce. */
@media(min-width:701px){
 .gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-sibling-row .gpc5-list-family-pack{gap:10px!important}
 .gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-list-family-pack .gpc5-list-person.gpc5-spouse-linked::after{right:-11px!important;width:11px!important}
}
@media(max-width:700px){
 .gpc5-tree .gpc5-kinship-detail-panel:not([hidden]){
   top:auto!important;bottom:max(12px,env(safe-area-inset-bottom))!important;
   left:50%!important;right:auto!important;transform:translateX(-50%)!important;
   width:calc(100vw - 24px)!important;max-height:min(52dvh,480px)!important;
 }
 .gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-sibling-row .gpc5-list-family-pack{gap:8px!important}
 .gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-list-family-pack .gpc5-list-person.gpc5-spouse-linked::after{
   bottom:-9px!important;height:9px!important;left:50%!important;right:auto!important;width:2px!important}
}


/* v0.32 — draggable/resizable detailed kinship overlay for mouse and touch.
   Final overrides intentionally defeat older fixed/mobile panel positioning. */
.gpc5-tree .gpc5-kinship-detail-panel:not([hidden]){
 position:fixed!important;
 left:var(--gpc5-panel-x,20px)!important;top:var(--gpc5-panel-y,100px)!important;
 right:auto!important;bottom:auto!important;transform:none!important;
 width:var(--gpc5-panel-w,360px)!important;height:var(--gpc5-panel-h,330px)!important;
 min-width:0!important;min-height:0!important;
 max-width:calc(100vw - 16px)!important;max-height:calc(100dvh - 16px)!important;
 padding:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;
 z-index:2147483000!important;user-select:none;-webkit-user-select:none;
}
.gpc5-tree .gpc5-kinship-panel-header{
 flex:none!important;padding:10px 11px 9px!important;margin:0!important;
 background:rgba(254,243,199,.6)!important;border-bottom:1px solid #f5e3bc!important;
 display:flex!important;align-items:center!important;gap:7px!important;
 cursor:grab!important;touch-action:none!important;user-select:none!important;
}
.gpc5-tree .gpc5-panel-is-moving .gpc5-kinship-panel-header{cursor:grabbing!important}
.gpc5-tree .gpc5-kinship-panel-header strong{flex:1;min-width:0;font-size:13px!important;line-height:1.3!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gpc5-tree .gpc5-kinship-panel-grip{flex:none;color:#a16207;font-size:19px;line-height:1;opacity:.75}
.gpc5-tree .gpc5-kinship-panel-controls{flex:none;display:flex;gap:5px;align-items:center}
.gpc5-tree .gpc5-kinship-panel-controls button{
 width:29px!important;height:29px!important;min-width:29px!important;padding:0!important;
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 border:1px solid #e5d7b9!important;border-radius:9px!important;color:#57534e!important;
 background:#fff!important;font-size:17px!important;line-height:1!important;cursor:pointer!important;
 touch-action:manipulation!important;box-shadow:none!important;
}
.gpc5-tree .gpc5-kinship-panel-controls button:hover{background:#fff7ed!important;border-color:#f59e0b!important}
.gpc5-tree .gpc5-kinship-panel-note{flex:none;margin:0!important;padding:8px 12px 6px!important;font-size:11px!important}
.gpc5-tree .gpc5-kinship-panel-rows{
 flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;
 overflow-x:hidden!important;overscroll-behavior:contain!important;
 padding:0 12px 18px!important;user-select:text;-webkit-user-select:text;
 -webkit-overflow-scrolling:touch;
}
.gpc5-tree .gpc5-kinship-panel-resize{
 position:absolute;right:0;bottom:0;z-index:2;
 width:32px;height:32px;display:flex;align-items:end;justify-content:end;
 padding:0 5px 2px 0;box-sizing:border-box;
 color:#a16207;font-size:20px;cursor:nwse-resize;touch-action:none!important;
 background:linear-gradient(135deg,transparent 50%,#fef3c7b3 50%);
 border-bottom-right-radius:17px;
}
.gpc5-tree .gpc5-kinship-panel-resize:focus-visible{outline:2px solid #f59e0b;outline-offset:-3px}
@media(max-width:700px){
 .gpc5-tree .gpc5-kinship-detail-panel:not([hidden]){
 left:var(--gpc5-panel-x,12px)!important;top:var(--gpc5-panel-y,170px)!important;
 width:var(--gpc5-panel-w,calc(100vw - 24px))!important;
 height:var(--gpc5-panel-h,295px)!important;right:auto!important;bottom:auto!important;transform:none!important;
 }
 .gpc5-tree .gpc5-kinship-panel-header{padding:8px!important;gap:4px!important}
 .gpc5-tree .gpc5-kinship-panel-header strong{font-size:12px!important}
 .gpc5-tree .gpc5-kinship-panel-controls{gap:3px!important}
 .gpc5-tree .gpc5-kinship-panel-controls button{width:28px!important;height:28px!important;min-width:28px!important}
}
/* Keep spouse cards close, but never overlap the content; inactive
   marriage remains unconnected by existing v0.31 logic. */
@media(min-width:701px){
 .gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-sibling-row .gpc5-list-family-pack{gap:6px!important}
 .gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-list-family-pack .gpc5-list-person.gpc5-spouse-linked::after{right:-7px!important;width:7px!important}
}
@media(max-width:700px){
 .gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-sibling-row .gpc5-list-family-pack{gap:6px!important}
 .gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-list-family-pack .gpc5-list-person.gpc5-spouse-linked::after{bottom:-7px!important;height:7px!important}
}


/* v0.33.0 — draggable, resizable member profile on desktop and touchscreens. */
.gpc5-profile-overlay{
  display:block!important;overflow:hidden!important;padding:0!important;
  overscroll-behavior:contain!important;
}
.gpc5-profile-overlay .gpc5-profile-window{
  position:absolute!important;box-sizing:border-box!important;
  left:var(--gpc5-profile-x,calc(50% - 445px))!important;
  top:var(--gpc5-profile-y,12px)!important;
  width:var(--gpc5-profile-w,min(890px,calc(100vw - 24px)))!important;
  height:var(--gpc5-profile-h,min(760px,calc(100dvh - 24px)))!important;
  max-width:none!important;max-height:none!important;
  display:flex!important;flex-direction:column!important;min-width:0!important;min-height:0!important;
  border:1px solid #e7e5e4!important;border-radius:22px!important;
  background:white!important;overflow:hidden!important;
  box-shadow:0 20px 72px rgba(15,23,42,.28)!important;
}
.gpc5-profile-overlay .gpc5-profile-window-bar{
  position:relative!important;z-index:15!important;box-sizing:border-box!important;
  width:100%!important;min-height:44px!important;max-height:44px!important;
  padding:5px 11px!important;display:flex!important;align-items:center!important;gap:9px!important;
  background:linear-gradient(110deg,rgba(254,243,199,.92),rgba(255,255,255,.97))!important;
  border-bottom:1px solid #f2e5c9!important;
  cursor:grab!important;touch-action:none!important;user-select:none!important;
}
.gpc5-profile-overlay .gpc5-profile-moving .gpc5-profile-window-bar{cursor:grabbing!important}
.gpc5-profile-overlay .gpc5-profile-window-grip{font-size:18px!important;line-height:1!important;color:#a16207!important}
.gpc5-profile-overlay .gpc5-profile-window-label{
  min-width:0!important;flex:1 1 auto!important;overflow:hidden!important;
  text-overflow:ellipsis!important;white-space:nowrap!important;font:700 13px/1.4 Arial,sans-serif!important;
  color:#92400e!important;
}
.gpc5-profile-overlay .gpc5-profile-window-tools{display:flex!important;flex:none!important;gap:4px!important}
.gpc5-profile-overlay .gpc5-profile-window-tool{
  width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;
  display:inline-flex!important;justify-content:center!important;align-items:center!important;
  border:1px solid #ead8b8!important;border-radius:9px!important;
  background:rgba(255,255,255,.92)!important;color:#57534e!important;
  padding:0!important;font:700 19px/1 Arial,sans-serif!important;
  cursor:pointer!important;touch-action:manipulation!important;
}
.gpc5-profile-overlay .gpc5-profile-window-tool:hover{background:#fff7ed!important;border-color:#f59e0b!important}
.gpc5-profile-overlay .gpc5-profile-window .gpc5-profile-sheet{
  display:block!important;position:relative!important;
  flex:1 1 auto!important;min-height:0!important;max-height:none!important;
  height:auto!important;width:100%!important;max-width:none!important;
  margin:0!important;border:0!important;border-radius:0!important;
  box-shadow:none!important;overflow-x:hidden!important;overflow-y:auto!important;
  overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important;
}
.gpc5-profile-overlay .gpc5-profile-window-resize{
  position:absolute!important;right:0!important;bottom:0!important;z-index:30!important;
  width:34px!important;height:34px!important;padding:0 4px 3px 0!important;
  display:flex!important;align-items:flex-end!important;justify-content:flex-end!important;
  border-bottom-right-radius:20px!important;cursor:nwse-resize!important;
  touch-action:none!important;user-select:none!important;
  background:linear-gradient(135deg,transparent 52%,rgba(254,243,199,.88) 52%)!important;
  font-size:20px!important;color:#a16207!important;
}
.gpc5-profile-overlay .gpc5-profile-window-resize:focus-visible{outline:2px solid #d97706!important;outline-offset:-2px!important}
@media(max-width:700px){
 .gpc5-profile-overlay .gpc5-profile-window{border-radius:17px!important}
 .gpc5-profile-overlay .gpc5-profile-window-bar{padding:5px 8px!important;gap:6px!important}
 .gpc5-profile-overlay .gpc5-profile-window-tool{width:32px!important;min-width:32px!important;height:32px!important;min-height:32px!important}
}
/* v0.33.0 — bring gender symbols above actual portraits and glass borders. */
.gpc5-tree .gpc5-list-avatar,
.gpc5-tree .gpc5-root-option-avatar,
.gpc5-tree .gpc5-root-current-avatar,
.gpc5-profile-overlay .gpc5-profile-photo{position:relative!important;overflow:visible!important;isolation:isolate!important}
.gpc5-tree .gpc5-avatar-sex{
  position:absolute!important;right:-5px!important;bottom:-5px!important;
  z-index:50!important;overflow:visible!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  pointer-events:none!important;filter:none!important;
}
.gpc5-tree .gpc5-avatar-sex svg{
  display:block!important;position:relative!important;z-index:51!important;
  width:18px!important;height:18px!important;overflow:visible!important;
  filter:drop-shadow(0 0 2px white) drop-shadow(0 1px 1px white)!important;
}
.gpc5-tree .gpc5-svg .gpc5-svg-avatar,
.gpc5-tree .gpc5-svg .gpc5-svg-gender{overflow:visible!important}
.gpc5-tree .gpc5-svg .gpc5-svg-gender{
  filter:drop-shadow(0 0 1.5px white) drop-shadow(0 0 2px white)!important;
}
.gpc5-profile-overlay .gpc5-profile-photo .gpc5-profile-gender{
  z-index:60!important;right:-6px!important;bottom:-6px!important;pointer-events:none!important;
  display:inline-grid!important;place-items:center!important;
}
.gpc5-profile-overlay .gpc5-profile-photo .gpc5-profile-gender svg{
  display:block!important;width:22px!important;height:22px!important;
  position:relative!important;z-index:61!important;
  filter:drop-shadow(0 0 2px #fff) drop-shadow(0 1px 1px #fff)!important;
}


/* v0.34.0: repair horizontal marriage connector and scrolling in list view. */
.gpc5-tree .gpc5-canvas.gpc5-list-mode {
  overflow-x:clip!important;max-width:100%!important;box-sizing:border-box!important;
}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-generation-section,
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-generation-family,
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-generation-grid {
  max-width:100%!important;min-width:0!important;box-sizing:border-box!important;
}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-sibling-row {
  overflow-x:auto!important;overflow-y:hidden!important;
  max-width:100%!important;overscroll-behavior-x:contain!important;
  scrollbar-gutter:stable!important;
}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-sibling-row .gpc5-list-family-pack{
  gap:10px!important;overflow:visible!important;
}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-list-person::after {content:none!important;}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-list-person.gpc5-spouse-linked::after {
  content:""!important;display:block!important;position:absolute!important;
  right:-10px!important;left:auto!important;top:50%!important;bottom:auto!important;
  width:10px!important;height:2px!important;background:#e8a11c!important;
  border:0!important;transform:translateY(-50%)!important;
  pointer-events:none!important;z-index:3!important;
}
@media(max-width:700px){
 .gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-sibling-row {overflow-x:hidden!important;scrollbar-gutter:auto!important}
 .gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-list-person.gpc5-spouse-linked::after {
  top:auto!important;right:50%!important;bottom:-10px!important;left:auto!important;
  width:2px!important;height:10px!important;transform:translateX(50%)!important;
 }
}
/* Dedicated private profile deep link and inline admin editing. */
.gpc5-profile-overlay .gpc5-inline-profile-edit[hidden],
.gpc5-profile-overlay .gpc5-profile-content[hidden]{display:none!important}
.gpc5-profile-overlay .gpc5-inline-profile-edit {
  overflow-y:auto!important;overscroll-behavior:contain!important;
  padding:24px!important;margin:0!important;flex:1 1 auto!important;min-height:0!important;
  background:#fff!important;color:#292524!important;
}
.gpc5-profile-overlay .gpc5-inline-profile-edit h3 {margin:0 0 12px!important;font-size:21px!important}
.gpc5-profile-overlay .gpc5-inline-edit-note{font-size:13px!important;color:#78716c!important;margin:0 0 15px!important}
.gpc5-profile-overlay .gpc5-inline-edit-form {
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:14px!important;margin:0!important;padding:0!important;
}
.gpc5-profile-overlay .gpc5-inline-edit-field {display:flex!important;flex-direction:column!important;gap:6px!important;margin:0!important;min-width:0!important;font-size:13px!important;color:#44403c!important}
.gpc5-profile-overlay .gpc5-inline-edit-field input,
.gpc5-profile-overlay .gpc5-inline-edit-field textarea,
.gpc5-profile-overlay .gpc5-inline-edit-field select{
  box-sizing:border-box!important;display:block!important;width:100%!important;min-height:39px!important;
  border:1px solid #e7e5e4!important;border-radius:10px!important;padding:9px 10px!important;
  background:#fff!important;color:#292524!important;font-size:14px!important;
}
.gpc5-profile-overlay .gpc5-inline-edit-field textarea {min-height:76px!important;resize:vertical!important}
.gpc5-profile-overlay .gpc5-inline-edit-check {display:flex!important;align-items:center!important;gap:8px!important}
.gpc5-profile-overlay .gpc5-inline-edit-check input {width:18px!important;height:18px!important}
.gpc5-profile-overlay .gpc5-inline-edit-actions {grid-column:1/-1;display:flex!important;gap:10px!important;align-items:center!important;flex-wrap:wrap!important}
.gpc5-profile-overlay .gpc5-inline-edit-actions button,
.gpc5-profile-overlay .gpc5-inline-edit-actions a {
  padding:9px 13px!important;background:#fff!important;color:#78350f!important;border:1px solid #e7e5e4!important;
  border-radius:11px!important;text-decoration:none!important;font-size:13px!important;
}
.gpc5-profile-overlay .gpc5-inline-edit-actions .gpc5-inline-edit-save{background:#d97706!important;color:#fff!important}
.gpc5-profile-overlay .gpc5-inline-edit-feedback {grid-column:1/-1;color:#9a3412!important;font-size:13px!important}
.gpc5-profile-overlay .gpc5-member-link-status {max-width:250px;font-size:11px!important;color:#57534e!important;overflow-wrap:anywhere}
@media(max-width:700px){
 .gpc5-profile-overlay .gpc5-inline-profile-edit{padding:13px!important}
 .gpc5-profile-overlay .gpc5-inline-edit-form{grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
}

.gpc5-profile-overlay .gpc5-profile-sheet.gpc5-profile-is-editing .gpc5-profile-banner{display:none!important}
.gpc5-profile-overlay .gpc5-profile-sheet.gpc5-profile-is-editing .gpc5-profile-top-actions{position:relative!important;top:auto!important;z-index:1!important}

/* v0.35.0 — Restore the compact, centered list layout. Specific rules here
   intentionally override legacy v0.7–v0.34 full-width layout rules. */
.gpc5-tree .gpc5-canvas.gpc5-list-mode {
  box-sizing:border-box!important;
  width:100%!important;max-width:100%!important;
  min-height:0!important;height:auto!important;max-height:none!important;
  padding:14px clamp(8px,2vw,22px) 26px!important;
  overflow-x:hidden!important;overflow-y:visible!important;
  border:0!important;background:#fafafa!important;
}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-generation-section {
  box-sizing:border-box!important;width:100%!important;max-width:1040px!important;
  margin:0 auto 22px!important;min-width:0!important;
}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-generation-family {
  box-sizing:border-box!important;width:100%!important;max-width:1040px!important;
  min-width:0!important;margin:0 auto 19px!important;
  padding:17px clamp(9px,1.5vw,17px) 13px!important;
}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-generation-grid.gpc5-sibling-rows {
  width:100%!important;max-width:100%!important;margin:0 auto!important;
}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-sibling-row {
  display:flex!important;box-sizing:border-box!important;width:100%!important;
  max-width:100%!important;min-width:0!important;
  justify-content:flex-start!important;overflow-x:auto!important;
  overflow-y:hidden!important;scrollbar-width:thin;
  padding:3px 1px 7px!important;margin:0 auto!important;
}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-sibling-row .gpc5-list-family-pack,
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-sibling-row .gpc5-list-family-pack.has-spouses {
  box-sizing:border-box!important;display:grid!important;
  grid-template-columns:repeat(var(--gpc5-slots,1),275px)!important;
  gap:10px!important;width:max-content!important;min-width:0!important;
  max-width:none!important;margin-left:auto!important;margin-right:auto!important;
  padding:10px!important;align-items:stretch!important;
}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-list-family-pack .gpc5-list-person,
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-sibling-row .gpc5-list-family-pack .gpc5-list-person {
  box-sizing:border-box!important;width:275px!important;
  min-width:0!important;max-width:275px!important;min-height:100px!important;
  padding:11px 12px!important;gap:10px!important;
}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-list-family-pack .gpc5-list-person.gpc5-spouse-linked::after{
  right:-11px!important;width:11px!important;
}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-list-info strong {font-size:16px!important}
@media(min-width:701px) and (max-width:1000px){
 .gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-sibling-row .gpc5-list-family-pack,
 .gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-sibling-row .gpc5-list-family-pack.has-spouses {
   grid-template-columns:repeat(var(--gpc5-slots,1),235px)!important;
 }
 .gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-list-family-pack .gpc5-list-person,
 .gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-sibling-row .gpc5-list-family-pack .gpc5-list-person {
   width:235px!important;max-width:235px!important;
 }
}
@media(max-width:700px){
 .gpc5-tree .gpc5-canvas.gpc5-list-mode {padding:10px 4px 18px!important}
 .gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-generation-section,
 .gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-generation-family {width:100%!important;max-width:100%!important}
 .gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-sibling-row {overflow-x:hidden!important;overflow-y:visible!important}
 .gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-sibling-row .gpc5-list-family-pack,
 .gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-sibling-row .gpc5-list-family-pack.has-spouses {
   display:flex!important;flex-direction:column!important;
   width:100%!important;min-width:0!important;max-width:100%!important;
   margin:0 auto!important;padding:8px!important;gap:9px!important;
   grid-template-columns:none!important;
 }
 .gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-list-family-pack .gpc5-list-person,
 .gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-sibling-row .gpc5-list-family-pack .gpc5-list-person {
   width:100%!important;max-width:100%!important;min-width:0!important;
   min-height:90px!important;
 }
 .gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-list-family-pack .gpc5-list-person.gpc5-spouse-linked::after{
   left:50%!important;right:auto!important;top:auto!important;bottom:-10px!important;
   height:10px!important;width:2px!important;transform:translateX(-50%)!important;
 }
}


/* v0.36.0 — list aligned to 1 / 2 / 3-household Gia Phả OS examples.
   Keep a single centered generation group, with each sibling household on its
   own row. The small labels must NEVER break in the middle of “Đã mất”. */
.gpc5-tree .gpc5-canvas.gpc5-list-mode {
  width:100%!important; max-width:100%!important; padding:18px 12px 32px!important;
  overflow-x:hidden!important; background:#fafafa!important;
}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-generation-section {
  width:100%!important;max-width:1160px!important;margin:0 auto 24px!important;
}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-generation-family {
  width:100%!important; max-width:1160px!important;margin:0 auto 20px!important;
  padding:18px clamp(10px,1.4vw,20px) 14px!important;
  border:1px solid #ddd9d2!important;border-radius:30px!important;
  background:rgba(255,255,255,.94)!important;
}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-generation-grid.gpc5-sibling-rows{
  display:flex!important;flex-direction:column!important;align-items:stretch!important;
  gap:12px!important;margin:0 auto!important;min-width:0!important;
}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-sibling-row{
  display:flex!important;justify-content:flex-start!important;align-items:stretch!important;
  overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:thin;
  width:100%!important;max-width:100%!important;min-width:0!important;
  padding:1px 0 3px!important;margin:0!important;
}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-sibling-row .gpc5-list-family-pack,
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-sibling-row .gpc5-list-family-pack.has-spouses {
  display:grid!important;grid-template-columns:repeat(var(--gpc5-slots,1),minmax(0,1fr))!important;
  width:min(100%,var(--gpc5-pack-width,360px))!important;
  min-width:0!important;max-width:100%!important;
  flex:0 1 auto!important;gap:12px!important;
  margin-left:0!important;margin-right:auto!important;
  padding:12px!important;box-sizing:border-box!important;
  border:1px solid #f7d97a!important;background:#fffdf3!important;
  border-radius:27px!important;
}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-sibling-row .gpc5-list-family-pack .gpc5-list-person{
  display:flex!important;align-items:center!important;flex-direction:row!important;
  box-sizing:border-box!important;min-width:0!important;max-width:none!important;
  width:100%!important;min-height:116px!important;
  gap:12px!important;padding:14px!important;
  border-radius:22px!important;background:#fcfbf8!important;
  border:1px solid #e7e4dd!important;
}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-list-info{
  flex:1 1 auto!important;min-width:0!important;gap:5px!important;
}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-list-info strong{
  font-size:16px!important;line-height:1.25!important;
  white-space:normal!important;overflow-wrap:break-word!important;
}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-list-chips{
  display:flex!important;flex-flow:row wrap!important;align-items:center!important;
  gap:5px!important;min-width:0!important;max-width:100%!important;
}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-list-chips em,
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-list-chips .is-deceased {
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  flex:0 0 auto!important;white-space:nowrap!important;word-break:keep-all!important;
  overflow-wrap:normal!important;line-height:1.2!important;
  min-width:max-content!important;padding:4px 8px!important;margin:0!important;
  border-radius:9px!important;font-size:11px!important;
}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-date-line{
  white-space:nowrap!important;line-height:1.3!important;
}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-list-avatar{
  flex:0 0 58px!important;min-width:58px!important;width:58px!important;height:58px!important;
}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-list-person.gpc5-spouse-linked::after{
  content:""!important;display:block!important;
  position:absolute!important;top:50%!important;right:-13px!important;bottom:auto!important;left:auto!important;
  height:2px!important;width:13px!important;background:#e6a21b!important;
  border:0!important;transform:translateY(-50%)!important;z-index:3!important;
}
@media(max-width:700px){
 .gpc5-tree .gpc5-canvas.gpc5-list-mode {padding:12px 5px 24px!important}
 .gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-generation-family {padding:13px 9px!important;border-radius:23px!important}
 .gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-sibling-row{overflow:visible!important;}
 .gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-sibling-row .gpc5-list-family-pack,
 .gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-sibling-row .gpc5-list-family-pack.has-spouses{
  display:flex!important;flex-direction:column!important;width:100%!important;max-width:100%!important;
  gap:9px!important;padding:9px!important;margin:0 auto!important;
 }
 .gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-sibling-row .gpc5-list-family-pack .gpc5-list-person{
  width:100%!important;max-width:100%!important;min-height:92px!important;padding:10px 12px!important;
 }
 .gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-list-avatar{
  flex-basis:50px!important;min-width:50px!important;width:50px!important;height:50px!important;
 }
 .gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-list-person.gpc5-spouse-linked::after{
  top:auto!important;bottom:-11px!important;right:50%!important;left:auto!important;
  width:2px!important;height:11px!important;transform:translateX(50%)!important;
 }
}


/* v0.37.0: gap-only marriage links; never overlay a person's avatar/card. */
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-list-family-pack{
 position:relative!important;isolation:isolate!important;
}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-list-family-pack .gpc5-list-person{
 position:relative!important;z-index:1!important;
}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-list-person.gpc5-spouse-linked::after{
 content:none!important;display:none!important;width:0!important;height:0!important;
}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-marriage-gap-line{
 position:absolute!important;display:block;background:#e6a21b!important;
 pointer-events:none!important;z-index:0!important;border-radius:2px!important;
 transform:none!important;box-shadow:none!important;
}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-marriage-gap-line[hidden]{display:none!important}
/* View on Tree: make the centered person easy to identify, without moving cards. */
.gpc5-tree .gpc5-scene .gpc5-node-card[data-gpc5-focus-target="true"] .gpc5-card-bg{
 stroke:#d97706!important;stroke-width:2.6!important;
}


/* v0.38.0 — Mobile member profile touch interaction. Only the title bar and
   resize grip capture dragging. All content and the admin editor use the
   SAME native scroll container (profile-sheet), avoiding nested scroll traps. */
.gpc5-profile-overlay .gpc5-profile-window{
  touch-action:auto!important;
  overscroll-behavior:contain!important;
}
.gpc5-profile-overlay .gpc5-profile-window-bar{
  touch-action:none!important;
  -webkit-user-select:none!important;
  user-select:none!important;
}
.gpc5-profile-overlay .gpc5-profile-window-resize{
  touch-action:none!important;
}
.gpc5-profile-overlay .gpc5-profile-window .gpc5-profile-sheet{
  overflow-y:auto!important;
  overflow-x:hidden!important;
  touch-action:pan-y!important;
  overscroll-behavior-y:contain!important;
  overscroll-behavior-x:none!important;
  -webkit-overflow-scrolling:touch!important;
  scroll-behavior:auto!important;
  min-height:0!important;
}
.gpc5-profile-overlay .gpc5-profile-window .gpc5-inline-profile-edit{
  display:block!important;
  position:relative!important;
  overflow:visible!important;
  height:auto!important;
  max-height:none!important;
  min-height:0!important;
  flex:none!important;
  touch-action:pan-y!important;
  overscroll-behavior:auto!important;
  -webkit-user-select:text!important;
  user-select:text!important;
}
.gpc5-profile-overlay .gpc5-profile-window .gpc5-inline-profile-edit[hidden]{
  display:none!important;
}
.gpc5-profile-overlay .gpc5-profile-window .gpc5-profile-content,
.gpc5-profile-overlay .gpc5-profile-window .gpc5-inline-edit-form,
.gpc5-profile-overlay .gpc5-profile-window .gpc5-inline-edit-field{
  touch-action:pan-y!important;
}
@media(max-width:700px){
  .gpc5-profile-overlay .gpc5-profile-window{
    max-width:calc(100dvw - 16px)!important;
    max-height:calc(100dvh - 16px)!important;
  }
  .gpc5-profile-overlay .gpc5-profile-window .gpc5-inline-edit-actions{
    padding-bottom:30px!important;
  }
}

/* Keep mobile profile action buttons INSIDE the sheet's scroll flow. In older
   versions the zero-height sticky toolbar could overlap the drag bar, causing
   touches to hit the drag handle instead of the Edit button. */
@media(max-width:700px){
 .gpc5-profile-overlay .gpc5-profile-window .gpc5-profile-top-actions{
   position:relative!important;
   top:auto!important;
   height:auto!important;
   min-height:48px!important;
   padding:7px 10px!important;
   margin:0!important;
   flex:0 0 auto!important;
   pointer-events:auto!important;
   overflow:visible!important;
   z-index:10!important;
   background:#fffdf9!important;
 }
}
.gpc5-profile-overlay .gpc5-profile-window .gpc5-profile-top-actions button,
.gpc5-profile-overlay .gpc5-profile-window .gpc5-profile-top-actions a{
  touch-action:manipulation!important;
  -webkit-tap-highlight-color:transparent;
}
.gpc5-profile-overlay .gpc5-profile-window .gpc5-profile-top-actions button svg,
.gpc5-profile-overlay .gpc5-profile-window .gpc5-profile-top-actions button svg *{
  pointer-events:none!important;
}


/* v0.44 – visual refinement for the family website theme; no layout engine changes. */
.gpc5-tree.gpc5-theme-refined{background:linear-gradient(155deg,#fffdf8 0%,#fbf6ec 100%)!important;border:1px solid #e8dcc1!important;border-radius:24px!important;box-shadow:0 14px 36px rgba(75,58,28,.07);padding:18px!important;color:#2d3b30!important;overflow:visible}
.gpc5-tree.gpc5-theme-refined .gpc5-toolbar{border-radius:16px;padding:12px!important;border:1px solid #eee0c4;background:#fffaf1;gap:8px 10px!important}
.gpc5-tree.gpc5-theme-refined .gpc5-view-tabs{border:1px solid #e7dccd;background:#f4eee6!important;border-radius:11px!important}
.gpc5-tree.gpc5-theme-refined .gpc5-canvas{border-radius:18px!important;background:#fffefa!important;border-color:#eae2d3!important}
.gpc5-tree.gpc5-theme-refined .gpc5-toolbar button:focus-visible,.gpc5-tree.gpc5-theme-refined .gpc5-toolbar select:focus-visible{outline:2px solid #b68a3c;outline-offset:2px}
.gpc5-tree.gpc5-theme-refined .gpc5-status{color:#7a6b55;font-size:12px!important;margin:8px 4px!important}
@media(max-width:700px){.gpc5-tree.gpc5-theme-refined{border-radius:18px!important;padding:9px!important;box-shadow:none!important}.gpc5-tree.gpc5-theme-refined .gpc5-toolbar{padding:10px!important;border-radius:13px}.gpc5-tree.gpc5-theme-refined .gpc5-canvas{border-radius:12px!important}}

.gpc5-own-avatar-preview{width:100px;height:100px;object-fit:cover;border-radius:50%;border:1px solid #ddd;margin:8px 0}.gpc5-own-avatar-preview[hidden],.gpc5-inline-edit-check[hidden]{display:none!important}.gpc5-my-requests{padding:12px;margin:12px 0;border:1px solid #ddd;border-radius:10px}.gpc5-my-requests summary{cursor:pointer;font-weight:600}.gpc5-my-requests p{margin:8px 0;overflow-wrap:anywhere}

/* v0.50.0 — unified interface */

.gpc5-tree.gpc5-theme-refined{background:#fcf8ef!important;border:1px solid #e6d6b9!important;box-shadow:0 5px 20px #5942210c!important;padding:clamp(12px,2vw,22px)!important}
.gpc5-workspace-head{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:0 0 15px;padding:0 4px;color:#213b30}.gpc5-workspace-head h2{font:700 clamp(26px,3vw,36px)/1.15 'Baloo 2',system-ui,sans-serif;margin:5px 0}.gpc5-workspace-head p{margin:0;color:#655f53;font-size:14px}.gpc5-workspace-kicker{font-size:11px;letter-spacing:.16em;color:#986019;font-weight:800}.gpc5-workspace-count{border:1px solid #e6d6b9;background:#fffdf8;border-radius:30px;padding:7px 13px;font-size:13px}.gpc5-workspace-count strong{font-size:18px;color:#204f37}
.gpc5-tree[data-directory-engine] .gpc5-workspace-head,.gpc5-tree[data-profile-page="1"] .gpc5-workspace-head{display:none!important}
.gpc5-tree.gpc5-theme-refined .gpc5-toolbar{background:#fffdf8!important;border-color:#e6d6b9!important;box-shadow:none!important}.gpc5-tree.gpc5-theme-refined .gpc5-canvas{border:1px solid #e6d6b9!important;background:#fffefb!important}
.gpc5-profile-overlay .gpc5-profile-sheet{background:#fffdf8!important;color:#213b30!important}.gpc5-profile-overlay .gpc5-profile-banner{background:linear-gradient(115deg,#e6eedd 0%,#f4efdf 65%,#eee0c5 100%)!important}.gpc5-profile-overlay .gpc5-profile-stat-grid .gpc5-profile-stat,.gpc5-profile-overlay .gpc5-profile-section{background:#fffdf8!important;border-color:#e6d6b9!important;box-shadow:0 5px 20px #5942210c!important}.gpc5-profile-overlay .gpc5-profile-section-heading,.gpc5-profile-overlay .gpc5-profile-identity-title{color:#213b30!important}.gpc5-profile-overlay .gpc5-profile-top-actions .gpc5-profile-action,.gpc5-profile-overlay .gpc5-inline-edit-actions .gpc5-inline-edit-save{background:#204f37!important;color:#fff!important;border-color:#204f37!important}.gpc5-profile-overlay .gpc5-profile-top-actions .gpc5-profile-action:hover,.gpc5-profile-overlay .gpc5-inline-edit-actions .gpc5-inline-edit-save:hover{background:#153c2a!important}.gpc5-profile-overlay .gpc5-inline-profile-edit{background:#fffdf8!important}.gpc5-profile-overlay .gpc5-inline-edit-field input,.gpc5-profile-overlay .gpc5-inline-edit-field select,.gpc5-profile-overlay .gpc5-inline-edit-field textarea{border-color:#d9cbae!important;border-radius:9px!important}.gpc5-inline-death-group{grid-column:1/-1;display:grid;gap:9px;border:1px solid #e6d6b9;border-radius:12px;background:#fcf8ef;padding:13px}.gpc5-inline-death-group .gpc5-inline-edit-note{margin:0!important}.gpc5-inline-death-group label[hidden]{display:none!important}
.gpc5-kinship-overlay .gpc5-kinship-dialog,.gpc5-quick-panel{background:#fffdf8!important;border-color:#e6d6b9!important}.gpc5-kinship-overlay .gpc5-kinship-calculate,.gpc5-quick-save{background:#204f37!important;color:#fff!important;border-color:#204f37!important}
.gpc5-memorial{background:#fffdf8!important;border-color:#e6d6b9!important;border-radius:16px!important;color:#213b30!important}.gpc5-memorial h3{color:#213b30!important;font-family:'Baloo 2',system-ui,sans-serif!important}.gpc5-memorial li{border-color:#e6d6b9!important}.gpc5-memorial .gpc5-date{color:#9e3027!important}
@media(max-width:700px){.gpc5-workspace-head p{font-size:13px}.gpc5-workspace-head{gap:8px}.gpc5-tree.gpc5-theme-refined{padding:9px!important}}

/* 0.52 Member profile: semantic colors, for modal and full-page profile. */
.gpc5-profile-overlay .gpc5-profile-sheet{background:#fcf8ef!important}
.gpc5-profile-overlay .gpc5-profile-banner{background:linear-gradient(115deg,#dceadf,#f6f2e6 65%,#e3d2b1)!important}
.gpc5-profile-overlay .gpc5-profile-stat-grid .gpc5-profile-stat.birth{background:#edf5ef!important;border-color:#c4dfcb!important;color:#1c563b!important}
.gpc5-profile-overlay .gpc5-profile-stat-grid .gpc5-profile-stat.death{background:#f2f0ed!important;border-color:#d8d1c8!important;color:#655449!important}
.gpc5-profile-overlay .gpc5-profile-stat-grid .gpc5-profile-stat.accent{background:#fff3dd!important;border-color:#e8c690!important;color:#925517!important}
.gpc5-profile-overlay .gpc5-profile-stat-grid .gpc5-profile-stat-title,.gpc5-profile-overlay .gpc5-profile-stat-grid .gpc5-profile-stat-value{color:inherit!important}
.gpc5-profile-overlay .gpc5-profile-stat-grid .gpc5-profile-stat small{color:#625c52!important}
.gpc5-profile-overlay .gpc5-profile-count[data-category="child"]{background:#edf5ef!important;border-color:#c4dfcb!important;--gpc5-stat-ink:#246247}
.gpc5-profile-overlay .gpc5-profile-count[data-category="adopted"]{background:#f4eef9!important;border-color:#d9c8e9!important;--gpc5-stat-ink:#6d478e}
.gpc5-profile-overlay .gpc5-profile-count[data-category="inlaw"]{background:#edf3fa!important;border-color:#c5d6e9!important;--gpc5-stat-ink:#315d85}
.gpc5-profile-overlay .gpc5-profile-count[data-category="grandchild"]{background:#fff3dd!important;border-color:#e8c690!important;--gpc5-stat-ink:#925517}
.gpc5-profile-overlay .gpc5-profile-count[data-category] strong,.gpc5-profile-overlay .gpc5-profile-count[data-category] b{color:var(--gpc5-stat-ink)!important}
.gpc5-profile-overlay .gpc5-profile-family-block{background:#fffdf8!important;border:1px solid #e6d6b9!important;border-left:4px solid #709879!important;border-radius:10px!important;margin:9px 0!important}
.gpc5-profile-overlay .gpc5-profile-family-block[data-category="partner"]{border-left-color:#b65c70!important}
.gpc5-profile-overlay .gpc5-profile-family-block[data-category="adopted"]{border-left-color:#9173b3!important}
.gpc5-profile-overlay .gpc5-profile-family-block[data-category="descendant"]{border-left-color:#bc8a40!important}
.gpc5-profile-overlay .gpc5-profile-family-block[data-category="partner"] h4{color:#8c4054!important}
.gpc5-profile-overlay .gpc5-profile-family-block[data-category="adopted"] h4{color:#6d478e!important}
.gpc5-profile-overlay .gpc5-profile-family-block[data-category="descendant"] h4{color:#85551d!important}
.gpc5-profile-overlay .gpc5-profile-section.gpc5-profile-contact{background:#f1f6f4!important;border-color:#c9ded4!important}
.gpc5-profile-overlay .gpc5-profile-phone{display:inline-flex!important;align-items:center!important;gap:7px!important;width:fit-content;max-width:100%;color:#1b6045!important;background:#e1f0e7!important;border:1px solid #b9d6c3;border-radius:9px;padding:7px 10px;font-weight:800!important;text-decoration:none!important;overflow-wrap:anywhere}
.gpc5-profile-overlay .gpc5-profile-phone:hover{text-decoration:underline!important;background:#d2eadb!important}
.gpc5-profile-overlay .gpc5-profile-phone:focus-visible{outline:2px solid #1b6045;outline-offset:3px}
.gpc5-profile-overlay .gpc5-profile-links a{display:inline-flex;align-items:center;gap:5px}
.gpc5-profile-overlay .gpc5-profile-top-actions .gpc5-profile-action:not(.gpc5-profile-edit-button){background:#fffdf8!important;color:#204f37!important;border-color:#c6b998!important}
.gpc5-profile-overlay .gpc5-profile-top-actions .gpc5-profile-action:not(.gpc5-profile-edit-button):hover{background:#e7efe4!important}

/* v0.53: profile uses one uninterrupted canvas; section headings are transparent. */
.gpc5-profile-overlay .gpc5-profile-main-left,.gpc5-profile-overlay .gpc5-profile-main-grid,.gpc5-profile-overlay .gpc5-profile-family-section,.gpc5-profile-overlay .gpc5-profile-section:not(.gpc5-profile-contact):not(.gpc5-profile-descendants){background:transparent!important;box-shadow:none!important;border:0!important;padding:0!important}
.gpc5-profile-overlay .gpc5-profile-section-heading{background:transparent!important;border:0!important;padding:0!important;margin:0 0 12px!important;color:#234c37!important}
.gpc5-profile-overlay .gpc5-profile-family-block{background:#fffdfa!important;border:1px solid #e4dac7!important;border-left:4px solid #72987f!important;border-radius:12px!important;margin:0 0 12px!important;padding:14px!important}
.gpc5-profile-overlay .gpc5-profile-family-block[data-category="partner"]{border-left-color:#b9677f!important}.gpc5-profile-overlay .gpc5-profile-family-block[data-category="adopted"]{border-left-color:#8866ad!important}.gpc5-profile-overlay .gpc5-profile-family-block[data-category="descendant"]{border-left-color:#b88b43!important}
.gpc5-profile-overlay .gpc5-profile-family-block .gpc5-profile-person-item{background:#fff!important;border:1px solid #eee8da!important}
.gpc5-profile-overlay .gpc5-profile-is-editing .gpc5-inline-edit-field{display:grid!important;gap:5px;margin:8px 0!important;min-width:0}.gpc5-profile-overlay .gpc5-profile-is-editing .gpc5-inline-edit-field input,.gpc5-profile-overlay .gpc5-profile-is-editing .gpc5-inline-edit-field select,.gpc5-profile-overlay .gpc5-profile-is-editing .gpc5-inline-edit-field textarea{width:100%;min-width:0;border:1px solid #d6c8ac;border-radius:8px;padding:9px;background:white;color:#213b30;box-sizing:border-box}.gpc5-profile-overlay .gpc5-profile-is-editing .gpc5-inline-death-group{padding:8px!important;min-width:0}.gpc5-profile-overlay .gpc5-profile-is-editing .gpc5-profile-stat-grid{align-items:start;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr))!important}.gpc5-profile-overlay .gpc5-profile-is-editing .gpc5-profile-identity{flex-wrap:wrap!important}.gpc5-profile-overlay .gpc5-profile-is-editing .gpc5-inline-edit-actions{position:sticky;bottom:0;background:#fffdf8;z-index:2}.gpc5-life-add[hidden]{display:none!important}

.gpc5-profile-overlay .gpc5-profile-sheet.gpc5-profile-is-editing .gpc5-profile-banner{display:block!important;height:auto!important;min-height:0!important;background:transparent!important;padding:10px!important}.gpc5-profile-overlay .gpc5-profile-sheet.gpc5-profile-is-editing .gpc5-profile-top-actions{display:flex!important;flex-wrap:wrap}.gpc5-profile-overlay .gpc5-profile-sheet.gpc5-profile-is-editing .gpc5-profile-identity{margin-top:0!important}.gpc5-profile-overlay .gpc5-life-symbol svg,.gpc5-profile-overlay .gpc5-life-empty-icon svg{display:block;width:23px;height:23px;flex:none}

.gpc5-profile-overlay .gpc5-edit-top-save[hidden],.gpc5-profile-overlay .gpc5-edit-top-cancel[hidden]{display:none!important}.gpc5-profile-overlay .gpc5-edit-top-save{background:#204f37!important;color:white!important}.gpc5-profile-overlay .gpc5-profile-is-editing .gpc5-profile-identity-title{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px!important;flex:1!important;width:100%;min-width:0}.gpc5-profile-overlay .gpc5-profile-is-editing .gpc5-profile-identity-title h2{grid-column:1/-1}.gpc5-profile-overlay .gpc5-profile-is-editing .gpc5-profile-identity-title .gpc5-profile-pills{grid-column:1/-1}.gpc5-profile-overlay .gpc5-profile-is-editing .gpc5-profile-stat:has(.gpc5-inline-edit-field)>.gpc5-profile-stat-value{display:none!important}.gpc5-profile-overlay .gpc5-profile-is-editing .gpc5-profile-pair:has(.gpc5-inline-edit-field)>span,.gpc5-profile-overlay .gpc5-profile-is-editing .gpc5-profile-pair:has(.gpc5-inline-edit-field)>.gpc5-profile-phone{display:none!important}

/* v0.54 — contact layout: single surface, aligned labels and values */
.gpc5-profile-overlay .gpc5-profile-section.gpc5-profile-contact{padding:18px!important;background:#f4f8f5!important;border:1px solid #c9ded4!important;box-shadow:none!important;min-width:0!important;align-self:start!important}
.gpc5-profile-overlay .gpc5-profile-contact .gpc5-profile-section-heading{display:flex!important;align-items:center!important;margin:0 0 14px!important;padding:0 0 13px!important;border-bottom:1px solid #d4e3d9!important;background:transparent!important;color:#204f37!important;font-size:15px!important;line-height:1.4!important}
.gpc5-profile-overlay .gpc5-profile-contact .gpc5-profile-info{display:grid!important;gap:0!important;padding:0!important;white-space:normal!important;background:transparent!important;min-width:0!important}
.gpc5-profile-overlay .gpc5-profile-contact .gpc5-profile-pair{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:5px!important;padding:11px 0!important;border-bottom:1px solid #dce8df!important;margin:0!important;min-width:0!important}
.gpc5-profile-overlay .gpc5-profile-contact .gpc5-profile-pair:first-child{padding-top:0!important}
.gpc5-profile-overlay .gpc5-profile-contact .gpc5-profile-pair strong{color:#4c6356!important;font-size:12px!important;line-height:1.5!important;gap:7px!important}
.gpc5-profile-overlay .gpc5-profile-contact .gpc5-profile-pair strong svg{flex:none; width:16px!important;height:16px!important}
.gpc5-profile-overlay .gpc5-profile-contact .gpc5-profile-pair>span{font-size:14px!important;color:#213b30!important;line-height:1.55!important;overflow-wrap:anywhere!important}
.gpc5-profile-overlay .gpc5-profile-contact .gpc5-profile-phone{background:transparent!important;border:0!important;padding:0!important;border-radius:0!important;color:#175e43!important;font-size:15px!important;line-height:1.55!important;word-break:break-word!important;text-decoration:underline!important;text-underline-offset:3px}
.gpc5-profile-overlay .gpc5-profile-contact .gpc5-profile-links{margin:0!important;padding-top:12px!important;gap:10px!important;align-items:center!important}
.gpc5-profile-overlay .gpc5-profile-contact .gpc5-profile-links a{color:#236447!important;font-weight:700!important;line-height:1.5!important}

/* v0.56.0 — profile portrait, upload and typography */
.gpc5-profile-overlay .gpc5-profile-identity-title h2{font-family:'Baloo 2','Nunito Sans',Arial,sans-serif!important;color:#204f37!important}
.gpc5-profile-avatar-group{display:flex;flex-direction:column;align-items:center;gap:10px;flex:none;min-width:0}
.gpc5-profile-overlay .gpc5-profile-identity .gpc5-profile-photo.is-large .gpc5-profile-gender{right:1px!important;bottom:1px!important;width:32px!important;height:32px!important;background:white!important;border:2px solid #fff!important;border-radius:50%!important;box-shadow:0 1px 5px #25452e33!important}
.gpc5-profile-overlay .gpc5-profile-identity .gpc5-profile-photo.is-large .gpc5-profile-gender svg{width:25px!important;height:25px!important;filter:none!important}
.gpc5-profile-overlay .gpc5-profile-is-editing .gpc5-profile-identity{display:grid!important;grid-template-columns:minmax(155px,200px) minmax(0,1fr)!important;align-items:start!important;gap:18px!important}
.gpc5-profile-overlay .gpc5-profile-is-editing .gpc5-avatar-edit-field{margin:0!important;width:100%;text-align:center;background:#fffdf8;border:1px solid #e6d6b9;border-radius:10px;padding:9px;cursor:pointer;color:#204f37!important}
.gpc5-avatar-edit-field>span{font-weight:800;color:#204f37}.gpc5-avatar-edit-field input[type=file]{font-size:11px!important;padding:5px!important;max-width:100%;cursor:pointer}.gpc5-avatar-edit-field input::file-selector-button{background:#204f37;color:white;border:0;border-radius:6px;padding:5px 7px;cursor:pointer}.gpc5-avatar-edit-help,.gpc5-avatar-filename{font-size:11px!important;line-height:1.35;color:#655f53;overflow-wrap:anywhere}
.gpc5-profile-overlay .gpc5-profile-photo .gpc5-avatar-live-preview{position:absolute!important;inset:0;width:100%!important;height:100%!important;object-fit:cover!important;border-radius:50%!important;z-index:5!important}
@media(max-width:600px){.gpc5-profile-overlay .gpc5-profile-is-editing .gpc5-profile-identity{grid-template-columns:minmax(0,1fr)!important;gap:12px!important}.gpc5-profile-avatar-group{width:100%;align-items:flex-start}.gpc5-profile-overlay .gpc5-profile-is-editing .gpc5-avatar-edit-field{max-width:225px}.gpc5-profile-overlay .gpc5-profile-identity .gpc5-profile-photo.is-large .gpc5-profile-gender{width:28px!important;height:28px!important}.gpc5-profile-overlay .gpc5-profile-identity .gpc5-profile-photo.is-large .gpc5-profile-gender svg{width:22px!important;height:22px!important}}

/* v0.58.0 additive modal, not the offscreen directory engine. */
.gpc5-standalone-dialog{box-sizing:border-box;width:min(650px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;margin:auto;padding:0;border:1px solid #dfcda8;border-radius:18px;background:#fffdf8;color:#213b30;box-shadow:0 24px 80px #173b3050;font:15px/1.5 "Nunito Sans",system-ui,sans-serif}.gpc5-standalone-dialog::backdrop{background:#182c24a0}.gpc5-standalone-dialog[open]{display:block}.gpc5-standalone-head{display:flex;align-items:center;justify-content:space-between;background:#204f37;color:white;padding:13px 20px;letter-spacing:.08em;font-size:12px}.gpc5-standalone-head button{background:transparent;color:white;border:0;font-size:26px;line-height:1;cursor:pointer}.gpc5-standalone-dialog .gpc5-quick-panel{border:0!important;box-shadow:none!important;padding:20px!important}.gpc5-standalone-dialog .gpc5-quick-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.gpc5-standalone-dialog .gpc5-quick-form>h4,.gpc5-standalone-dialog .gpc5-quick-form>p,.gpc5-standalone-dialog .gpc5-quick-buttons{grid-column:1/-1}.gpc5-standalone-dialog h4{font:700 24px/1.3 "Baloo 2",sans-serif;color:#204f37;margin:0}.gpc5-standalone-dialog .gpc5-quick-field input,.gpc5-standalone-dialog .gpc5-quick-field select{width:100%;box-sizing:border-box;min-height:42px;border:1px solid #d8c6a6;border-radius:9px;padding:9px 12px;background:#fff;color:#213b30}.gpc5-tree .gpc5-add-person{background:#204f37!important;border:0;cursor:pointer}.gpc5-directory-primary[data-gpc5-add-member]{cursor:pointer;border:0}.gpc5-standalone-dialog .gpc5-quick-feedback:empty{display:none}@media(max-width:540px){.gpc5-standalone-dialog .gpc5-quick-form{grid-template-columns:1fr}.gpc5-standalone-dialog .gpc5-quick-panel{padding:14px!important}}

/* v0.59 full member creation and profile window */
.gpc5-standalone-dialog{width:min(840px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overscroll-behavior:contain}
.gpc5-standalone-head{position:sticky;top:0;z-index:3}
.gpc5-full-create .gpc5-create-section{grid-column:1/-1;margin:12px 0 0;padding:9px 0 6px;border-bottom:1px solid #e6d6b9;font-size:16px;color:#204f37;font-weight:800}
.gpc5-full-create .gpc5-create-wide,.gpc5-full-create .gpc5-create-death-options{grid-column:1/-1}
.gpc5-full-create .gpc5-quick-field{min-width:0;display:flex;flex-direction:column;gap:6px}
.gpc5-full-create .gpc5-quick-field[hidden],.gpc5-full-create .gpc5-create-check[hidden],.gpc5-create-avatar-preview[hidden]{display:none!important}
.gpc5-full-create .gpc5-quick-field textarea{width:100%;box-sizing:border-box;min-height:76px;border:1px solid #d8c6a6;border-radius:9px;padding:9px 12px;background:#fff;color:#213b30;font:inherit}
.gpc5-full-create .gpc5-create-death-options{display:flex;flex-wrap:wrap;gap:10px 16px;align-items:center;padding:10px;background:#f6f1e4;border-radius:9px}
.gpc5-full-create .gpc5-create-check{display:inline-flex!important;flex-direction:row!important;align-items:center!important;gap:7px;line-height:1.45;font-size:13px;color:#204f37}
.gpc5-full-create .gpc5-create-check input{width:18px!important;height:18px!important;min-height:0!important;margin:0!important;accent-color:#204f37}
.gpc5-create-avatar-preview{width:84px;height:84px;object-fit:cover;border:2px solid #e6d6b9;border-radius:50%;grid-column:1/-1}
.gpc5-profile-overlay:not(.gpc5-profile-page) .gpc5-profile-window{max-width:calc(100dvw - 16px)!important;max-height:calc(100dvh - 16px)!important}
.gpc5-profile-overlay:not(.gpc5-profile-page) .gpc5-profile-window-bar{flex:0 0 44px!important}
.gpc5-profile-overlay:not(.gpc5-profile-page) .gpc5-profile-window .gpc5-profile-sheet{min-width:0!important;overflow-y:auto!important;overflow-x:hidden!important;overflow-wrap:anywhere}
.gpc5-profile-overlay:not(.gpc5-profile-page) .gpc5-profile-top-actions{flex-wrap:wrap!important;max-width:100%!important}
@media(max-width:700px){.gpc5-profile-overlay:not(.gpc5-profile-page) .gpc5-profile-window .gpc5-profile-main-grid{display:flex!important;flex-direction:column!important;min-width:0!important}.gpc5-profile-overlay:not(.gpc5-profile-page) .gpc5-profile-window .gpc5-profile-contact,.gpc5-profile-overlay:not(.gpc5-profile-page) .gpc5-profile-window .gpc5-profile-main-left{width:100%!important;min-width:0!important;max-width:100%!important}.gpc5-profile-overlay:not(.gpc5-profile-page) .gpc5-profile-window .gpc5-profile-top-actions{justify-content:flex-start!important;gap:5px!important}}

/* v0.61.0: viewer-specific kinship card, shared by all profile renderers. */
.gpc5-profile-overlay .gpc5-profile-viewer-kinship{border:1px solid #cadccb!important;border-radius:13px!important;background:#edf4eb!important;color:#204f37!important;margin:0 0 16px!important;padding:14px 16px!important;box-sizing:border-box!important;min-width:0!important}.gpc5-profile-overlay .gpc5-viewer-kinship-heading{display:flex!important;align-items:center!important;gap:7px!important;color:#204f37!important;font:700 16px/1.4 'Nunito Sans',sans-serif!important;margin:0 0 5px!important;background:transparent!important;padding:0!important}.gpc5-viewer-kinship-heading svg{width:18px;height:18px;flex:none}.gpc5-profile-overlay .gpc5-viewer-kinship-origin,.gpc5-profile-overlay .gpc5-viewer-kinship-note{font:400 13px/1.5 'Nunito Sans',sans-serif!important;margin:4px 0!important;color:#506354!important;overflow-wrap:anywhere}.gpc5-viewer-kinship-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:10px}.gpc5-profile-overlay .gpc5-viewer-kinship-item{display:flex;flex-direction:column;gap:4px;background:#fffdf8!important;border:1px solid #d7e3d3;border-radius:9px;padding:9px 12px;min-width:0;overflow-wrap:anywhere}.gpc5-viewer-kinship-item span{font-size:12px;color:#526557}.gpc5-viewer-kinship-item strong{font-size:17px;color:#204f37;font-weight:800}@media(max-width:420px){.gpc5-viewer-kinship-grid{grid-template-columns:1fr;gap:7px}.gpc5-profile-overlay .gpc5-profile-viewer-kinship{padding:11px!important}}

/* v0.62.0 — read-only identity: portrait beside title, status below title. */
.gpc5-profile-overlay .gpc5-profile-sheet:not(.gpc5-profile-is-editing) .gpc5-profile-identity{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;gap:18px!important;margin-top:-30px!important;min-height:0!important}
.gpc5-profile-overlay .gpc5-profile-sheet:not(.gpc5-profile-is-editing) .gpc5-profile-avatar-group{flex:0 0 auto!important;width:auto!important;align-items:center!important}
.gpc5-profile-overlay .gpc5-profile-sheet:not(.gpc5-profile-is-editing) .gpc5-profile-identity-title{display:flex!important;flex:1 1 0!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;gap:8px!important;width:auto!important;min-width:0!important;padding:10px 0 0!important}
.gpc5-profile-overlay .gpc5-profile-sheet:not(.gpc5-profile-is-editing) .gpc5-profile-identity-title h2{margin:0!important;overflow-wrap:anywhere;max-width:100%}
.gpc5-profile-overlay .gpc5-profile-sheet:not(.gpc5-profile-is-editing) .gpc5-profile-pills{justify-content:flex-start!important;max-width:100%}
@media(max-width:680px){.gpc5-profile-overlay .gpc5-profile-sheet:not(.gpc5-profile-is-editing) .gpc5-profile-identity{gap:12px!important;margin-top:-20px!important}.gpc5-profile-overlay .gpc5-profile-sheet:not(.gpc5-profile-is-editing) .gpc5-profile-identity .gpc5-profile-photo.is-large{width:88px!important;height:88px!important;min-width:88px!important}.gpc5-profile-overlay .gpc5-profile-sheet:not(.gpc5-profile-is-editing) .gpc5-profile-identity-title h2{font-size:clamp(20px,5vw,25px)!important}}

/* v0.63.0: the identity row IS the colour strip; avatar and title centre vertically. */
.gpc5-profile-overlay .gpc5-profile-sheet:not(.gpc5-profile-is-editing) .gpc5-profile-banner{display:none!important}
.gpc5-profile-overlay .gpc5-profile-sheet:not(.gpc5-profile-is-editing) .gpc5-profile-top-actions{position:relative!important;top:auto!important;height:auto!important;min-height:0!important;overflow:visible!important;flex-wrap:wrap!important;padding:12px 16px!important;background:#fffdf8!important}
.gpc5-profile-overlay .gpc5-profile-sheet:not(.gpc5-profile-is-editing) .gpc5-profile-identity{margin:0 0 22px!important;padding:20px 24px!important;min-height:170px!important;align-items:center!important;gap:20px!important;border-radius:16px!important;background:linear-gradient(115deg,#dceadf,#f6f2e6 65%,#e3d2b1)!important;box-sizing:border-box!important}
.gpc5-profile-overlay .gpc5-profile-sheet:not(.gpc5-profile-is-editing) .gpc5-profile-identity-title{padding:0!important;align-self:center!important}
.gpc5-profile-overlay .gpc5-profile-sheet:not(.gpc5-profile-is-editing) .gpc5-profile-avatar-group{align-self:center!important}
@media(max-width:600px){.gpc5-profile-overlay .gpc5-profile-sheet:not(.gpc5-profile-is-editing) .gpc5-profile-identity{min-height:120px!important;padding:15px 12px!important;gap:12px!important;margin-bottom:16px!important;border-radius:12px!important}.gpc5-profile-overlay .gpc5-profile-sheet:not(.gpc5-profile-is-editing) .gpc5-profile-top-actions{padding:8px 10px!important}}


/* v0.68.0 — mobile tree cleanup + kinship emphasis */
.gpc5-kinship-standalone .gpc5-kinship-find-button{margin:0 0 16px!important}
.gpc5-kinship-standalone .gpc5-kinship-standalone-result{margin-top:2px!important}
.gpc5-kinship-standalone .gpc5-kinship-result-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px!important}
.gpc5-kinship-standalone .gpc5-kinship-result-grid article{display:flex!important;flex-direction:column!important;justify-content:space-between!important;min-height:148px!important;padding:22px 20px!important;border:1px solid #e5d7b8!important;border-radius:18px!important;background:#fffdfa!important}
.gpc5-kinship-standalone .gpc5-kinship-result-grid small{font-size:18px!important;line-height:1.6!important;color:#6f6555!important}
.gpc5-kinship-standalone .gpc5-kinship-result-grid strong{margin:auto 0!important;padding-top:18px!important;display:block!important;text-align:center!important;font-size:clamp(28px,4vw,42px)!important;line-height:1.15!important;color:#ab671c!important}
@media(max-width:700px){
 .gpc5-tree .gpc5-workspace-count{display:none!important}
 .gpc5-tree .gpc5-zoom-group,.gpc5-tree .gpc5-toolbar .gpc5-zoom-out,.gpc5-tree .gpc5-toolbar .gpc5-zoom-in,.gpc5-tree .gpc5-toolbar .gpc5-zoom-slider,.gpc5-tree .gpc5-toolbar .gpc5-zoom-label{display:none!important}
 .gpc5-tree .gpc5-controls-row{align-items:stretch!important}
 .gpc5-tree .gpc5-controls-row .gpc5-toolbar{width:100%!important;justify-content:center!important;gap:8px!important}
 .gpc5-tree .gpc5-toolbar button.gpc5-fit-button{order:99!important;flex:0 0 100%!important;margin:6px auto 0!important;width:44px!important;height:44px!important}
 .gpc5-tree .gpc5-add-person{margin:0 auto!important;padding:10px 14px!important;font-size:12px!important;min-height:42px!important}
 .gpc5-kinship-standalone .gpc5-kinship-result-grid{grid-template-columns:1fr!important}
 .gpc5-kinship-standalone .gpc5-kinship-result-grid article{min-height:130px!important;padding:18px 16px!important}
 .gpc5-kinship-standalone .gpc5-kinship-result-grid small{font-size:16px!important}
 .gpc5-kinship-standalone .gpc5-kinship-result-grid strong{font-size:32px!important}
}

/* v0.69.0 — actual mobile footer, counts and compact controls */
.gpc5-tree .gpc5-mobile-tree-footer{display:none!important}
@media(max-width:700px){
 .gpc5-tree .gpc5-workspace-count,.gpc5-tree .gpc5-count-status,.gpc5-tree .gpc5-toolbar button.gpc5-fit-button,.gpc5-tree .gpc5-zoom-group{display:none!important}
 .gpc5-tree:not(.gpc5-mode-list):not([data-directory-engine]):not(.gpc5-is-profile-page) .gpc5-mobile-tree-footer{display:flex!important;justify-content:center!important;padding:10px 0 2px!important}
 .gpc5-tree .gpc5-mobile-fit{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;padding:8px 15px!important;min-height:44px!important;width:auto!important;border:1px solid #d9c8a7!important;border-radius:999px!important;background:#fffdf8!important;color:#204f37!important;font-size:13px!important;font-weight:750!important}
 .gpc5-tree .gpc5-controls-row{flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:8px!important}
 .gpc5-tree .gpc5-controls-row .gpc5-rootbar{flex:1 1 100%!important;width:100%!important;min-width:0!important;max-width:100%!important;order:0!important}
 .gpc5-tree .gpc5-controls-row .gpc5-toolbar{flex:1 1 100%!important;width:100%!important;min-width:0!important;order:1!important;padding:8px!important;gap:6px!important}
 .gpc5-tree .gpc5-controls-row>.gpc5-add-person,.gpc5-tree .gpc5-list-controls>.gpc5-add-person{flex:0 0 auto!important;width:auto!important;max-width:100%!important;min-width:0!important;padding:8px 13px!important;min-height:40px!important;font-size:12px!important;margin:0 0 0 auto!important;order:2!important}
 .gpc5-tree .gpc5-controls-row .gpc5-toolbar>button:not(.gpc5-fit-button){padding:7px 10px!important;min-height:38px!important;font-size:12px!important}
 .gpc5-tree .gpc5-view-tabs{max-width:100%!important;flex-wrap:wrap!important;justify-content:center!important}
}

/* v0.74.0 — BubbleMapTree source-specific appearance; other view modes untouched. */
.gpc5-tree.gpc5-mode-bubble.gpc5-theme-refined .gpc5-canvas{position:relative!important;background:#fafaf9!important;background-image:none!important;border:1px solid #e7e5e4!important;border-radius:16px!important}
.gpc5-tree.gpc5-mode-bubble .gpc5-svg .gpc5-bubble-unit .gpc5-bubble-outline{fill:#fff!important;stroke:#3b82f6!important;stroke-width:2!important;filter:drop-shadow(0 3px 3px #29252414)!important}
.gpc5-tree.gpc5-mode-bubble .gpc5-svg .gpc5-bubble-unit .gpc5-bubble-outline.female{stroke:#ec4899!important}
.gpc5-tree.gpc5-mode-bubble .gpc5-svg .gpc5-bubble-root .gpc5-bubble-outline{stroke-width:4!important}
.gpc5-tree.gpc5-mode-bubble .gpc5-svg .gpc5-bubble-unit.gpc5-bubble-focused .gpc5-bubble-outline{fill:#fffbeb!important;stroke:#d97706!important;stroke-width:4!important}
.gpc5-tree.gpc5-mode-bubble .gpc5-svg .gpc5-bubble-root.gpc5-bubble-focused .gpc5-bubble-outline{stroke-width:6!important}
.gpc5-tree.gpc5-mode-bubble .gpc5-svg .gpc5-bubble-label{fill:#44403c!important;font-family:Arial,Helvetica,sans-serif!important}
.gpc5-tree.gpc5-mode-bubble .gpc5-svg .gpc5-bubble-edge{stroke:#d6d3d1!important;stroke-width:2!important;opacity:.6!important;stroke-dasharray:none!important}
.gpc5-tree.gpc5-mode-bubble .gpc5-svg .gpc5-bubble-edge.gpc5-bubble-edge-faded{opacity:.08!important}
.gpc5-tree.gpc5-mode-bubble .gpc5-svg .gpc5-bubble-edge.gpc5-bubble-edge-highlight{opacity:.9!important;stroke:#d97706!important;stroke-width:3!important}
.gpc5-tree.gpc5-mode-bubble .gpc5-bubble-unit:focus-visible .gpc5-bubble-outline{stroke:#d97706!important;stroke-dasharray:4 2!important}
.gpc5-tree.gpc5-mode-bubble .gpc5-bubble-tools{position:absolute;top:16px;right:16px;z-index:5;display:flex;align-items:center;gap:4px;padding:6px;border:1px solid #e7e5e4;border-radius:12px;background:#ffffffd9;backdrop-filter:blur(8px);touch-action:auto;cursor:default}
.gpc5-tree.gpc5-mode-bubble .gpc5-bubble-tools button{display:grid!important;place-items:center;width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;padding:0!important;background:transparent!important;border:0!important;border-radius:8px!important;color:#57534e!important;font:20px/1 Arial,sans-serif!important;cursor:pointer}
.gpc5-tree.gpc5-mode-bubble .gpc5-bubble-tools button:hover{background:#f5f5f4!important;color:#1c1917!important}
.gpc5-tree.gpc5-mode-bubble .gpc5-bubble-range{width:112px!important;min-width:0!important;accent-color:#d97706;padding:0!important;margin:0!important;cursor:pointer}
.gpc5-tree.gpc5-mode-bubble .gpc5-bubble-percent{width:40px;color:#78716c;font-size:13px;text-align:center;font-variant-numeric:tabular-nums}
.gpc5-tree.gpc5-mode-bubble .gpc5-bubble-reset,.gpc5-tree.gpc5-mode-bubble .gpc5-bubble-full{border-left:1px solid #e7e5e4!important}
.gpc5-tree.gpc5-mode-bubble .gpc5-toolbar .gpc5-zoom-group,.gpc5-tree.gpc5-mode-bubble .gpc5-toolbar .gpc5-reset,.gpc5-tree.gpc5-mode-bubble .gpc5-toolbar .gpc5-fullscreen{display:none!important}
@media(max-width:700px){.gpc5-tree.gpc5-mode-bubble .gpc5-bubble-tools{top:8px;right:8px}.gpc5-tree.gpc5-mode-bubble .gpc5-bubble-tools .gpc5-bubble-zoom,.gpc5-tree.gpc5-mode-bubble .gpc5-bubble-range,.gpc5-tree.gpc5-mode-bubble .gpc5-bubble-percent{display:none!important}}

.gpc5-tree.gpc5-mode-bubble .gpc5-bubble-tools-divider{width:1px;height:20px;background:#e7e5e4;margin:0 2px;flex:none}
.gpc5-tree.gpc5-mode-bubble .gpc5-bubble-tools .gpc5-bubble-reset,.gpc5-tree.gpc5-mode-bubble .gpc5-bubble-tools .gpc5-bubble-full{border-left:0!important}
.gpc5-tree.gpc5-mode-bubble .gpc5-bubble-tools button svg{width:16px!important;height:16px!important;pointer-events:none}
.gpc5-tree.gpc5-mode-bubble .gpc5-bubble-outline{transform-box:fill-box;transform-origin:center;transition:transform .15s,fill .25s,stroke .25s,stroke-width .25s}
@media(hover:hover){.gpc5-tree.gpc5-mode-bubble .gpc5-bubble-unit:hover .gpc5-bubble-outline{transform:scale(1.05)}}
@media(max-width:700px){.gpc5-tree.gpc5-mode-bubble .gpc5-bubble-tools-divider:first-of-type{display:none}}
@media(prefers-reduced-motion:reduce){.gpc5-tree.gpc5-mode-bubble .gpc5-bubble-outline{transition:none!important}}

/* v0.75.0 — solid, flat genealogy surfaces; no liquid-glass effect. */
.gpc5-tree,.gpc5-tree *,.gpc5-profile-overlay,.gpc5-profile-overlay *,.gpc5-kinship-overlay,.gpc5-kinship-overlay *{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-list-avatar,.gpc5-tree .gpc5-root-current-avatar,.gpc5-tree .gpc5-root-option-avatar,.gpc5-profile-overlay .gpc5-profile-photo{border:0!important;box-shadow:none!important}
.gpc5-tree .gpc5-list-avatar::after,.gpc5-tree .gpc5-list-avatar::before{content:none!important;display:none!important}
.gpc5-tree .gpc5-svg-avatar-glass-plate,.gpc5-tree .gpc5-svg-avatar-glass-rim,.gpc5-tree .gpc5-svg-avatar-light{display:none!important}
.gpc5-tree .gpc5-svg .gpc5-card-bg,.gpc5-tree .gpc5-svg .gpc5-mindmap-bg,.gpc5-tree .gpc5-svg .gpc5-mindmap-spouse-bg,.gpc5-tree .gpc5-svg .gpc5-family-frame-bg,.gpc5-tree.gpc5-mode-bubble .gpc5-svg .gpc5-bubble-unit .gpc5-bubble-outline{filter:none!important;fill-opacity:1!important}
.gpc5-tree .gpc5-toolbar,.gpc5-tree .gpc5-bubble-tools,.gpc5-tree .gpc5-hover-kinship-legend,.gpc5-tree .gpc5-kinship-detail-panel:not([hidden]){background:#fffdf8!important;box-shadow:none!important}
.gpc5-tree .gpc5-list-controls .gpc5-popover-anchor{position:relative;flex:none}
.gpc5-tree .gpc5-list-controls .gpc5-export-toggle{border:1px solid #e6d6b9!important;background:#fffdf8!important;color:#204f37!important;border-radius:12px!important;padding:10px 14px!important;font-weight:700}
.gpc5-tree .gpc5-list-controls .gpc5-export-menu{position:absolute!important;top:calc(100% + 8px)!important;right:0!important;left:auto!important;z-index:100!important;background:#fffdf8!important;max-width:calc(100vw - 20px);min-width:220px}
.gpc5-tree .gpc5-list-controls .gpc5-export-menu[hidden]{display:none!important}


/* v0.76.0 — only the deceased portrait is darkened; labels and actions stay legible. */
.gpc5-profile-photo.is-deceased > img,
.gpc5-profile-photo.is-deceased > .gpc5-profile-silhouette,
.gpc5-list-avatar.is-deceased > img,
.gpc5-list-avatar.is-deceased > .gpc5-list-silhouette,
.gpc5-tree .gpc5-svg image[data-deceased="1"] {
  filter: grayscale(.92) brightness(.96) contrast(1.01) !important;
}
.gpc5-tree .gpc5-node-card.is-deceased {opacity:1!important}
.gpc5-tree .gpc5-node-card.is-deceased image,
.gpc5-tree .gpc5-node-card.is-deceased .gpc5-card-avatar,
.gpc5-tree .gpc5-node-card.is-deceased .gpc5-avatar-placeholder {filter:grayscale(.92) brightness(.96) contrast(1.01)!important}
.gpc5-tree .gpc5-person.is-deceased {opacity:1!important}
.gpc5-tree .gpc5-person.is-deceased image {filter:grayscale(.92) brightness(.96)!important}


/* v0.77.0: shared flat portraits, dark deceased avatar in every SVG view. */
.gpc5-tree .gpc5-svg-avatar.is-deceased .gpc5-svg-avatar-portrait{filter:grayscale(.96) brightness(.96) contrast(1.01)!important;opacity:1!important}
.gpc5-tree .gpc5-svg-avatar.is-deceased .gpc5-svg-gender{filter:none!important;opacity:1!important}
.gpc5-tree .gpc5-node-card.is-deceased .gpc5-card-name,.gpc5-tree .gpc5-node-card.is-deceased .gpc5-card-subtitle{opacity:1!important}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-list-person.is-deceased .gpc5-list-chips .is-generation,
.gpc5-tree .gpc5-list-person.is-deceased .gpc5-list-chips .is-generation{background:#e7e5e4!important;color:#78716c!important;border-color:#d6d3d1!important}
.gpc5-profile-overlay .gpc5-profile-pills .gpc5-profile-pill.neutral{background:#e7e5e4!important;color:#78716c!important;border-color:#d6d3d1!important}
.gpc5-tree .gpc5-bubble-member.is-deceased .gpc5-svg-avatar-portrait{filter:grayscale(.96) brightness(.96) contrast(1.01)!important}

/* Prevent legacy image filters from stacking with the shared portrait grayscale. */
.gpc5-tree .gpc5-svg-avatar.is-deceased .gpc5-svg-avatar-portrait image[data-deceased="1"]{filter:none!important}


/* v0.80.0 — the Đời badge follows the same palette for wives, husbands, daughters and sons.
   Living: green; deceased (including women): neutral grey. Scope excludes Members directory. */
.gpc5-profile-overlay .gpc5-profile-pills .gpc5-profile-pill.green{
  background:#effdf7!important;color:#059669!important;border-color:#a7f3d0!important;
}
.gpc5-profile-overlay .gpc5-profile-pills .gpc5-profile-pill.neutral{
  background:#e7e5e4!important;color:#78716c!important;border-color:#d6d3d1!important;
}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-list-person:not(.is-deceased) .gpc5-list-chips em.is-generation{
  background:#dcfce7!important;color:#059669!important;border:1px solid #a7f3d0!important;
}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-list-person.is-deceased .gpc5-list-chips em.is-generation{
  background:#e7e5e4!important;color:#78716c!important;border:1px solid #d6d3d1!important;
}


/* v0.81.0 — Match living female Đời badges to the original Dâu role color.
   Palette copied from .gpc5-list-person .gpc5-list-chips .is-role: #ffe4e6 / #e11d48.
   Deceased women remain neutral gray; Members directory is deliberately excluded. */
.gpc5-profile-overlay .gpc5-profile-pills .gpc5-profile-pill.rose{
  background:#ffe4e6!important;color:#e11d48!important;border-color:#fda4af!important;
}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-list-person.is-female-living .gpc5-list-chips em.is-generation{
  background:#ffe4e6!important;color:#e11d48!important;border:1px solid #fda4af!important;
}


/* v0.82.0 — list view: give relationship/death chips a visible outline like Đời thứ.
   Preserve existing role colors and living/deceased generation palettes. */
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-list-chips em.is-role {
  box-sizing:border-box!important;
  border:1px solid #fda4af!important;
}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-list-chips em.is-role.adoptive {
  border-color:#fed7aa!important;
}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-list-chips em.is-deceased {
  box-sizing:border-box!important;
  border:1px solid #d6d3d1!important;
}


/* v0.83.0 — list labels follow person status and the existing Đời palette.
   Deceased people: neutral gray role labels (Dâu, Con trai, Rể, Con nuôi, etc.).
   Living males: Con trai / Rể use exactly the living Đời badge palette.
   Scope intentionally excludes Members page, Profile and other tree modes. */
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-list-person:not(.is-deceased) .gpc5-list-chips em.is-role.is-male-lineage{
 background:#dcfce7!important;
 color:#059669!important;
 border:1px solid #a7f3d0!important;
}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-list-person.is-deceased .gpc5-list-chips em.is-role,
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-list-person.is-deceased .gpc5-list-chips em.is-deceased{
 background:#e7e5e4!important;
 color:#78716c!important;
 border:1px solid #d6d3d1!important;
}


/* v0.84.0 — family tree node cards: avatar fits more comfortably and labels sit lower. */
.gpc5-tree .gpc5-node-card.view-family .gpc5-card-name{dominant-baseline:middle}
.gpc5-tree .gpc5-node-card.view-family .gpc5-card-subtitle{dominant-baseline:middle}


/* v0.85.0 — family tree cards show the full portrait and overlay text on the image. */
.gpc5-tree .gpc5-node-card.view-family .gpc5-family-text-overlay{fill:rgba(255,255,255,.84);stroke:rgba(255,255,255,.38);stroke-width:.6}
.gpc5-tree .gpc5-node-card.view-family .gpc5-card-name-overlay{fill:#292524!important;font-size:11px!important;font-weight:700!important;dominant-baseline:middle;text-shadow:none}
.gpc5-tree .gpc5-node-card.view-family .gpc5-card-subtitle-overlay{fill:#57534e!important;font-size:10px!important;font-weight:700!important;dominant-baseline:middle;text-shadow:none}


/* v0.86.0 — family tree portrait nearly fills the card with a compact bottom overlay. */
.gpc5-tree .gpc5-node-card.view-family .gpc5-family-text-overlay{fill:rgba(255,255,255,.86);stroke:rgba(255,255,255,.42);stroke-width:.6}
.gpc5-tree .gpc5-node-card.view-family .gpc5-svg-avatar-family .gpc5-svg-avatar-portrait image,
.gpc5-tree .gpc5-node-card.view-family .gpc5-svg-avatar-family .gpc5-svg-avatar-portrait rect,
.gpc5-tree .gpc5-node-card.view-family .gpc5-svg-avatar-family .gpc5-svg-avatar-portrait circle{shape-rendering:geometricPrecision}


/* v0.87.0 — portrait covers 100% of rounded Family Tree card, not a padded inner avatar. */
.gpc5-tree .gpc5-node-card.view-family .gpc5-family-card-outline{fill:none!important;stroke:#e7e5e4!important;stroke-width:1.5!important;vector-effect:non-scaling-stroke;pointer-events:none!important}
.gpc5-tree .gpc5-node-card.view-family:hover .gpc5-family-card-outline,.gpc5-tree .gpc5-node-card.view-family:focus .gpc5-family-card-outline{stroke:#d97706!important;stroke-width:2!important}
.gpc5-tree .gpc5-node-card.view-family.is-active .gpc5-family-card-outline{stroke:#d97706!important;stroke-width:2.4!important}
.gpc5-tree .gpc5-node-card.view-family .gpc5-card-name-overlay{fill:#292524!important;font-size:12px!important;font-weight:700!important;dominant-baseline:auto!important;text-shadow:0 1px 1px #fff9!important}
.gpc5-tree .gpc5-node-card.view-family .gpc5-card-subtitle-overlay{fill:#57534e!important;font-size:10px!important;font-weight:700!important;dominant-baseline:auto!important;text-shadow:0 1px 1px #fff9!important}
.gpc5-tree .gpc5-node-card.view-family .gpc5-family-cover-fade{pointer-events:none!important}


/* v0.89.0 — increase avatar sizes in List, Mindmap and Member views. */
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-list-avatar{
  width:68px!important;height:68px!important;min-width:68px!important;flex:0 0 68px!important;
}
@media(max-width:700px){
  .gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-list-avatar{
    width:56px!important;height:56px!important;min-width:56px!important;flex-basis:56px!important;
  }
}
.gpc5-profile-photo{width:50px!important;height:50px!important;min-width:50px!important}
.gpc5-profile-photo.is-large{width:138px!important;height:138px!important;min-width:138px!important}
.gpc5-profile-person-item .gpc5-profile-photo{width:42px!important;height:42px!important;min-width:42px!important}
@media(max-width:680px){
  .gpc5-profile-overlay .gpc5-profile-identity .gpc5-profile-photo.is-large{width:112px!important;height:112px!important;min-width:112px!important}
}
@media(max-width:600px){
  .gpc5-profile-overlay .gpc5-profile-identity .gpc5-profile-photo.is-large{width:104px!important;height:104px!important;min-width:104px!important}
}


/* v0.90.0 — explicit avatar enlargement for List, Mindmap and Member page. */
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-list-avatar{
  width:74px!important;height:74px!important;min-width:74px!important;flex:0 0 74px!important;
}
@media(max-width:700px){
  .gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-list-avatar{
    width:60px!important;height:60px!important;min-width:60px!important;flex-basis:60px!important;
  }
}
.gpc5-profile-photo{width:56px!important;height:56px!important;min-width:56px!important}
.gpc5-profile-photo.is-large{width:150px!important;height:150px!important;min-width:150px!important}
.gpc5-profile-person-item .gpc5-profile-photo{width:46px!important;height:46px!important;min-width:46px!important}
@media(max-width:680px){
  .gpc5-profile-overlay .gpc5-profile-identity .gpc5-profile-photo.is-large{width:118px!important;height:118px!important;min-width:118px!important}
}
@media(max-width:600px){
  .gpc5-profile-overlay .gpc5-profile-identity .gpc5-profile-photo.is-large{width:108px!important;height:108px!important;min-width:108px!important}
}


/* v0.92.0 — larger List/Mindmap avatars and corrected Mindmap frame spacing. */
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-list-avatar{
  width:82px!important;height:82px!important;min-width:82px!important;flex:0 0 82px!important;
}
.gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-list-avatar img{width:100%!important;height:100%!important;object-fit:cover!important}
@media(max-width:700px){
  .gpc5-tree .gpc5-canvas.gpc5-list-mode .gpc5-list-avatar{
    width:66px!important;height:66px!important;min-width:66px!important;flex-basis:66px!important;
  }
}
.gpc5-tree .gpc5-svg .gpc5-mindmap-bg{rx:20px}
.gpc5-tree .gpc5-svg .gpc5-mindmap-spouse-bg{rx:14px}
.gpc5-tree .gpc5-svg .gpc5-mindmap-unit .gpc5-card-name{font-size:13px!important}
.gpc5-tree .gpc5-svg .gpc5-mindmap-unit .gpc5-card-subtitle{font-size:11px!important}
.gpc5-tree .gpc5-svg .gpc5-mindmap-spouse-name{font-size:11px!important;font-weight:650!important;fill:#44403c!important}
.gpc5-tree .gpc5-svg .gpc5-mindmap-spouse-label{font-size:10px!important}


/* v0.94.0 — remove gender icons, square avatars except Bubble, add hover lift, add mindmap calendar icon. */
.gpc5-tree .gpc5-avatar-sex,.gpc5-tree .gpc5-gender-original,.gpc5-tree .gpc5-svg-gender,.gpc5-tree .gpc5-profile-gender,.gpc5-tree .gpc5-profile-gender-icon,
.gpc5-profile-overlay .gpc5-profile-gender,.gpc5-profile-overlay .gpc5-profile-gender-icon{display:none!important}
.gpc5-tree .gpc5-root-option-avatar,.gpc5-tree .gpc5-list-avatar,.gpc5-tree .gpc5-list-avatar img,.gpc5-tree .gpc5-root-option-avatar img{border-radius:14px!important}
.gpc5-profile-photo,.gpc5-profile-photo img,.gpc5-profile-photo.is-large{border-radius:16px!important}
.gpc5-profile-person-item .gpc5-profile-photo{border-radius:12px!important}
.gpc5-tree .gpc5-svg-avatar-rounded .gpc5-svg-avatar-portrait image,.gpc5-tree .gpc5-svg-avatar-rounded .gpc5-svg-avatar-portrait rect{rx:14px!important}
/* Only HTML cards move on hover. SVG <g> elements must retain their layout
   transform attribute: CSS transform on them overrides translate(x,y) and can
   trigger pointerover/pointerout oscillation when an avatar is hovered. */
.gpc5-tree .gpc5-list-person,.gpc5-content a.gpc5-directory-card,.gpc5-profile-overlay .gpc5-profile-person-item,.gpc5-profile-overlay .gpc5-profile-family-action{transition:transform .18s ease,filter .18s ease,box-shadow .18s ease,border-color .18s ease!important}
.gpc5-tree .gpc5-list-person:hover{transform:translateY(-3px)!important;filter:drop-shadow(0 10px 18px rgba(80,58,28,.16))!important}
.gpc5-content a.gpc5-directory-card:hover,.gpc5-profile-overlay .gpc5-profile-person-item:hover,.gpc5-profile-overlay .gpc5-profile-family-action:hover{transform:translateY(-3px)!important;box-shadow:0 10px 22px rgba(80,58,28,.12)!important}
.gpc5-tree .gpc5-svg .gpc5-mindmap-bg,.gpc5-tree .gpc5-svg .gpc5-mindmap-spouse-bg,.gpc5-tree .gpc5-node-card.view-family .gpc5-card-bg{transition:stroke .18s ease,filter .18s ease,fill .18s ease!important}
.gpc5-tree .gpc5-mindmap-unit:hover>.gpc5-mindmap-bg,.gpc5-tree .gpc5-mindmap-unit:hover .gpc5-mindmap-spouse-bg,.gpc5-tree .gpc5-node-card.view-family:hover .gpc5-card-bg{stroke:#d0a35a!important}
.gpc5-tree .gpc5-svg .gpc5-mindmap-date-icon{color:#8b806d!important;overflow:visible!important}
.gpc5-tree .gpc5-svg .gpc5-mindmap-date-icon rect,.gpc5-tree .gpc5-svg .gpc5-mindmap-date-icon path{fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important}
.gpc5-tree .gpc5-svg .gpc5-mindmap-date-text{fill:#78716c!important}


/* v0.95.0 — Stable elevated hover for SVG Family Tree / Mindmap.
 * Do not set CSS transform (including transform:none) on the SVG node groups:
 * CSS transforms override their essential SVG transform="translate(x y)". */
.gpc5-tree .gpc5-svg .gpc5-node-card.view-family .gpc5-family-card-outline,
.gpc5-tree .gpc5-svg .gpc5-node-card.view-family .gpc5-svg-avatar-family-cover,
.gpc5-tree .gpc5-svg .gpc5-mindmap-unit > .gpc5-mindmap-bg,
.gpc5-tree .gpc5-svg .gpc5-mindmap-unit .gpc5-mindmap-spouse-bg{
  transition: filter .18s ease, stroke .18s ease!important;
}
.gpc5-tree .gpc5-svg .gpc5-node-card.view-family:hover .gpc5-svg-avatar-family-cover,
.gpc5-tree .gpc5-svg .gpc5-node-card.view-family:focus-visible .gpc5-svg-avatar-family-cover{
  filter:drop-shadow(0 5px 8px rgba(80,58,28,.22))!important;
}
.gpc5-tree .gpc5-svg .gpc5-mindmap-unit:hover > .gpc5-mindmap-bg,
.gpc5-tree .gpc5-svg .gpc5-mindmap-unit:focus-within > .gpc5-mindmap-bg{
  filter:drop-shadow(0 5px 8px rgba(80,58,28,.19))!important;
}
@media(prefers-reduced-motion:reduce){
  .gpc5-tree .gpc5-svg .gpc5-node-card.view-family .gpc5-family-card-outline,
  .gpc5-tree .gpc5-svg .gpc5-node-card.view-family .gpc5-svg-avatar-family-cover,
  .gpc5-tree .gpc5-svg .gpc5-mindmap-unit > .gpc5-mindmap-bg,
  .gpc5-tree .gpc5-svg .gpc5-mindmap-unit .gpc5-mindmap-spouse-bg{transition:none!important}
}


/* v0.96.0 — distinctly visible hover on portraits (NOT an additional gold
   outline). Move/scale only the painted photo, never the positioned SVG node.
   The fixed clip keeps a zoomed photo inside its unchanged avatar/card.
   This is intentionally scoped to Family Tree and Mindmap, not Bubble. */
.gpc5-tree .gpc5-svg .gpc5-node-card.view-family .gpc5-svg-avatar-portrait image,
.gpc5-tree .gpc5-svg .gpc5-mindmap-unit .gpc5-svg-avatar-rounded .gpc5-svg-avatar-portrait image,
.gpc5-tree .gpc5-svg .gpc5-node-card.view-family .gpc5-svg-avatar-portrait > circle,
.gpc5-tree .gpc5-svg .gpc5-node-card.view-family .gpc5-svg-avatar-portrait > path,
.gpc5-tree .gpc5-svg .gpc5-mindmap-unit .gpc5-svg-avatar-rounded .gpc5-svg-avatar-portrait > circle,
.gpc5-tree .gpc5-svg .gpc5-mindmap-unit .gpc5-svg-avatar-rounded .gpc5-svg-avatar-portrait > path{
  transform-origin:center center!important;
  transform-box:fill-box!important;
  transition:transform .22s ease,opacity .22s ease!important;
  pointer-events:none!important;
}
.gpc5-tree .gpc5-svg .gpc5-node-card.view-family:hover .gpc5-svg-avatar-portrait image,
.gpc5-tree .gpc5-svg .gpc5-node-card.view-family:focus-visible .gpc5-svg-avatar-portrait image,
.gpc5-tree .gpc5-svg .gpc5-mindmap-unit:hover .gpc5-svg-avatar-rounded .gpc5-svg-avatar-portrait image,
.gpc5-tree .gpc5-svg .gpc5-mindmap-unit:focus-within .gpc5-svg-avatar-rounded .gpc5-svg-avatar-portrait image{
  transform:scale(1.09)!important;
}
.gpc5-tree .gpc5-svg .gpc5-node-card.view-family:hover .gpc5-svg-avatar-portrait > circle,
.gpc5-tree .gpc5-svg .gpc5-node-card.view-family:hover .gpc5-svg-avatar-portrait > path,
.gpc5-tree .gpc5-svg .gpc5-mindmap-unit:hover .gpc5-svg-avatar-rounded .gpc5-svg-avatar-portrait > circle,
.gpc5-tree .gpc5-svg .gpc5-mindmap-unit:hover .gpc5-svg-avatar-rounded .gpc5-svg-avatar-portrait > path{
  transform:scale(1.09)!important;
  opacity:1!important;
}
/* A cool, bright photographic lift is visually separate from the existing
   golden border. Do not alter the deceased portrait's grayscale at rest. */
.gpc5-tree .gpc5-svg .gpc5-node-card.view-family:hover .gpc5-svg-avatar-portrait,
.gpc5-tree .gpc5-svg .gpc5-mindmap-unit:hover .gpc5-svg-avatar-rounded .gpc5-svg-avatar-portrait{
  filter:brightness(1.09) contrast(1.025)!important;
}
/* Existing neutral-gray treatment for deceased portraits takes priority. */
.gpc5-tree .gpc5-svg .gpc5-node-card.view-family.is-deceased:hover .gpc5-svg-avatar-portrait,
.gpc5-tree .gpc5-svg .gpc5-mindmap-unit .gpc5-svg-avatar-rounded.is-deceased .gpc5-svg-avatar-portrait{
  filter:grayscale(.96) brightness(.96) contrast(1.01)!important;
}
@media(prefers-reduced-motion:reduce){
 .gpc5-tree .gpc5-svg .gpc5-node-card.view-family .gpc5-svg-avatar-portrait image,
 .gpc5-tree .gpc5-svg .gpc5-mindmap-unit .gpc5-svg-avatar-rounded .gpc5-svg-avatar-portrait image,
 .gpc5-tree .gpc5-svg .gpc5-node-card.view-family .gpc5-svg-avatar-portrait > circle,
 .gpc5-tree .gpc5-svg .gpc5-node-card.view-family .gpc5-svg-avatar-portrait > path,
 .gpc5-tree .gpc5-svg .gpc5-mindmap-unit .gpc5-svg-avatar-rounded .gpc5-svg-avatar-portrait > circle,
 .gpc5-tree .gpc5-svg .gpc5-mindmap-unit .gpc5-svg-avatar-rounded .gpc5-svg-avatar-portrait > path{transition:none!important}
}

/* The prior golden-looking shadow is not the hover effect anymore; retain
   the existing selected-branch outline but make the portrait change obvious. */
.gpc5-tree .gpc5-svg .gpc5-node-card.view-family:hover .gpc5-svg-avatar-family-cover,
.gpc5-tree .gpc5-svg .gpc5-node-card.view-family:focus-visible .gpc5-svg-avatar-family-cover,
.gpc5-tree .gpc5-svg .gpc5-mindmap-unit:hover > .gpc5-mindmap-bg,
.gpc5-tree .gpc5-svg .gpc5-mindmap-unit:focus-within > .gpc5-mindmap-bg{
  filter:none!important;
}
.gpc5-tree .gpc5-svg .gpc5-node-card.view-family .gpc5-svg-avatar-portrait,
.gpc5-tree .gpc5-svg .gpc5-mindmap-unit .gpc5-svg-avatar-rounded .gpc5-svg-avatar-portrait{
  transition:filter .22s ease!important;
}
@media(prefers-reduced-motion:reduce){
 .gpc5-tree .gpc5-svg .gpc5-node-card.view-family .gpc5-svg-avatar-portrait,
 .gpc5-tree .gpc5-svg .gpc5-mindmap-unit .gpc5-svg-avatar-rounded .gpc5-svg-avatar-portrait{transition:none!important}
}


/* v1.0.8 — only eligible linked members see the profile chat shortcut. */
.gpc5-profile-overlay .gpc5-profile-chat[hidden]{display:none!important}
.gpc5-profile-overlay .gpc5-profile-chat{display:inline-flex!important;align-items:center!important;gap:7px!important;background:#20583e!important;color:#fff!important;border-color:#20583e!important;font-weight:750!important}
.gpc5-profile-overlay .gpc5-profile-chat:hover{background:#287250!important;color:#fff!important}
.gpc5-profile-overlay .gpc5-profile-chat svg{stroke:currentColor!important}

/* Explicitly win over existing light toolbar button rule. */
.gpc5-profile-overlay .gpc5-profile-top-actions .gpc5-profile-action.gpc5-profile-chat:not(.gpc5-profile-edit-button){background:#20583e!important;border-color:#20583e!important;color:#fff!important}
.gpc5-profile-overlay .gpc5-profile-top-actions .gpc5-profile-action.gpc5-profile-chat:not(.gpc5-profile-edit-button):hover{background:#287250!important;border-color:#287250!important;color:#fff!important}
.gpc5-profile-overlay .gpc5-profile-top-actions .gpc5-profile-action.gpc5-profile-chat[hidden]{display:none!important}

/* v1.1.8 — screenshot audit: the root picker and add-person action are
   rectangular controls, not pills. Keep their dimensions and interactions. */
.gpc5-tree .gpc5-controls-row .gpc5-root-trigger,
.gpc5-tree .gpc5-rootpicker .gpc5-root-trigger{border-radius:8px!important}
.gpc5-tree .gpc5-controls-row>.gpc5-add-person,
.gpc5-tree .gpc5-list-controls>.gpc5-add-person{border-radius:8px!important}
