:root{--bg:#f7f5f0;--paper:#fffdf9;--ink:#242a27;--muted:#78817c;--line:#e6e8e1;--green:#2d705b;--green-2:#e3f1e9;--orange:#d58242;--orange-2:#faeadc;--red:#c76152;--shadow:0 12px 34px rgba(38,51,44,.07)}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:'Noto Sans SC',-apple-system,BlinkMacSystemFont,'PingFang SC',sans-serif;font-size:14px}button,input,textarea,select{font:inherit}button{border:0;background:none;color:inherit;cursor:pointer}.app-shell{max-width:1180px;min-height:100vh;margin:0 auto;background:var(--bg);padding-bottom:86px}.topbar{height:74px;display:flex;align-items:center;justify-content:space-between;padding:0 42px;border-bottom:1px solid rgba(221,224,216,.7);background:rgba(247,245,240,.88);backdrop-filter:blur(16px);position:sticky;top:0;z-index:5}.brand{display:flex;gap:10px;align-items:center;cursor:pointer}.brand-mark{height:36px;width:36px;border-radius:12px;display:grid;place-items:center;color:#fff;background:var(--green);font-weight:700;font-size:20px;box-shadow:0 5px 12px #2d705b38}.brand b{display:block;font-size:16px;line-height:18px}.brand small{color:var(--muted);font-size:10px;letter-spacing:2px}.top-actions{display:flex;align-items:center;gap:16px}.icon-btn{font-size:25px;color:var(--muted);padding:8px}.profile-chip{display:flex;align-items:center;gap:7px;color:#4d5751;font-size:12px}.profile-chip i{font-style:normal;color:#abb2ad}.avatar{display:grid;place-items:center;color:#4f7667;background:#d9eadf;border-radius:50%;font-weight:700}.avatar.tiny{width:28px;height:28px;font-size:12px}.avatar.orange{color:#9c5e30;background:#fae0ca}.avatar.dark{color:#fff;background:#456c62}.content{padding:38px 42px}.page-title{font-size:25px;letter-spacing:-.5px;margin:0 0 6px}.eyebrow{font-size:11px;letter-spacing:2px;color:var(--orange);font-weight:700;margin-bottom:10px}.subline{color:var(--muted);margin:0}.grid{display:grid;gap:18px}.grid.two{grid-template-columns:1.35fr 1fr}.grid.three{grid-template-columns:repeat(3,1fr)}.card{background:var(--paper);border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow)}.card.pad{padding:23px}.hero{min-height:245px;padding:27px 30px;position:relative;overflow:hidden;background:#e6f1e9 url("data:image/svg+xml,%3Csvg width='440' height='240' viewBox='0 0 440 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M300 220c-8-75 13-125 57-172M338 166c27-24 60-31 102-19M320 132c-2-33-12-65-36-96M348 106c23-11 40-30 54-58M280 203c-34-29-64-39-112-38M276 153c-29-25-54-53-72-89' fill='none' stroke='%23b4d5c3' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") right bottom/auto 100% no-repeat}.hero h2{font-size:31px;margin:4px 0 10px}.hero p{max-width:330px;color:#5a7566;line-height:1.8;margin:0}.hero .button-row{margin-top:25px}.button-row{display:flex;gap:10px;flex-wrap:wrap}.btn{min-height:44px;padding:0 16px;border-radius:12px;background:var(--green);color:white;font-weight:600;display:inline-flex;gap:8px;align-items:center;justify-content:center}.btn.secondary{background:#fff;border:1px solid #d9e2dc;color:var(--green)}.btn.ghost{background:transparent;color:var(--green);padding:0 5px}.btn.warm{background:var(--orange)}.section-head{display:flex;align-items:center;justify-content:space-between;margin:0 0 15px}.section-head h3{margin:0;font-size:15px}.section-head span{font-size:12px;color:var(--muted)}.stat-card{padding:18px 20px}.stat-card p{color:var(--muted);font-size:12px;margin:0 0 15px}.stat-card strong{font-size:28px;font-weight:600}.stat-card .unit{font-size:12px;color:var(--muted);margin-left:5px}.stat-icon{float:right;color:var(--green);background:var(--green-2);width:34px;height:34px;border-radius:10px;display:grid;place-items:center;font-size:18px}.progress{height:7px;border-radius:20px;background:#edf0eb;overflow:hidden;margin-top:15px}.progress i{display:block;height:100%;border-radius:inherit;background:var(--green)}.list{display:flex;flex-direction:column}.list-item{display:flex;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid var(--line)}.list-item:last-child{border-bottom:0}.list-item .grow{flex:1;min-width:0}.list-item h4{margin:0 0 4px;font-size:13px;font-weight:600}.list-item p{margin:0;color:var(--muted);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.list-item time{color:#a0a7a2;font-size:10px;white-space:nowrap}.badge{display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:20px;font-size:10px;background:#f0f2ee;color:#6d7971}.badge.green{color:var(--green);background:var(--green-2)}.badge.orange{color:#9d622f;background:var(--orange-2)}.badge.red{color:var(--red);background:#f9e4e1}.tag-row{display:flex;gap:7px;flex-wrap:wrap}.empty{padding:30px 12px;text-align:center;color:var(--muted)}
/* tree */.tree-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.segmented{padding:4px;background:#ecefe9;border-radius:12px;display:flex;gap:2px}.segmented button{padding:8px 14px;border-radius:9px;color:var(--muted);font-size:12px}.segmented button.active{background:white;color:var(--green);box-shadow:0 2px 8px #26332c14;font-weight:600}.tree-layout{display:grid;grid-template-columns:1fr 275px;gap:18px}.canvas-card{min-height:610px;overflow:hidden;position:relative;background:#f1f5f0}.canvas-head{position:absolute;z-index:2;left:20px;right:20px;top:18px;display:flex;justify-content:space-between;align-items:center}.canvas-title{font-size:12px;color:#6a786f;background:#ffffffe8;padding:8px 11px;border-radius:9px}.zoom-actions{background:#ffffffe8;border-radius:9px;padding:2px;display:flex}.zoom-actions button{font-size:16px;color:var(--muted);width:30px;height:28px}.tree-canvas{width:100%;height:560px;display:block}.tree-canvas text{font-family:inherit}.tree-line{stroke:#bad0c5;stroke-width:2;fill:none}.node{cursor:pointer}.node rect{fill:#fffdf9;stroke:#cfded5;stroke-width:1.5}.node.current rect{fill:var(--green);stroke:var(--green)}.node.dead rect{fill:#f3eee5;stroke:#dfd4c3}.node text{font-size:12px;fill:#36443d}.node.current text{fill:white}.node .node-dot{fill:#86ad99}.node.dead .node-dot{fill:#cfaa78}.node.current .node-dot{fill:#f5cf9b}.tree-side .card{padding:20px;margin-bottom:18px}.tree-side h3{margin:0 0 18px;font-size:15px}.legend{display:grid;gap:12px;color:#647169;font-size:12px}.legend span{display:flex;align-items:center;gap:8px}.legend i{width:9px;height:9px;border-radius:50%;background:#86ad99}.legend i.dead{background:#cfaa78}.legend i.empty-dot{background:#fff;border:1px solid #a8b8ae}.tree-tip{background:var(--orange-2);color:#8e5b31;line-height:1.7;font-size:11px;padding:12px;border-radius:12px}.member-detail{cursor:pointer}
/* tabs, circle */.tab-nav{display:flex;gap:23px;border-bottom:1px solid var(--line);margin:25px 0 20px}.tab-nav button{padding:0 2px 12px;color:var(--muted);font-size:13px;border-bottom:2px solid transparent}.tab-nav button.active{color:var(--green);border-color:var(--green);font-weight:600}.post{padding:19px 0;border-bottom:1px solid var(--line)}.post:last-child{border-bottom:0}.post-head{display:flex;align-items:center;gap:10px}.post-head .grow{flex:1}.post-head strong{display:block;font-size:13px}.post-head small{display:block;color:#a0a7a2;font-size:10px;margin-top:2px}.post-body{padding:12px 0 12px 42px;line-height:1.7;color:#4d5952}.post-actions{display:flex;gap:20px;padding-left:42px;color:var(--muted);font-size:12px}.comment{margin:12px 0 0 42px;background:#f6f5f1;border-radius:10px;padding:8px 10px;color:#68736c;font-size:11px}.ritual-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.ancestor{padding:15px;cursor:pointer}.ancestor .portrait{height:110px;border-radius:12px;background:linear-gradient(145deg,#e9e0d2,#f6f1e9);display:grid;place-items:center;color:#ac946e;font-size:32px;margin-bottom:10px}.ancestor h4{margin:0 0 4px;font-size:13px}.ancestor p{margin:0;color:var(--muted);font-size:11px}.notice{display:flex;gap:10px;align-items:flex-start;padding:13px;background:#f6f3eb;border-radius:12px;color:#796f5f;font-size:11px;line-height:1.6}
/* admin */.admin-hero{display:flex;justify-content:space-between;gap:20px;align-items:flex-end;margin-bottom:22px}.admin-hero .button-row{justify-content:flex-end}.review-card{padding:18px}.review-card .action-row{display:flex;gap:8px;margin-top:13px}.action-row .btn{min-height:35px;font-size:11px;padding:0 12px}.log-row{display:flex;gap:12px;padding:13px 0;border-bottom:1px solid var(--line);align-items:flex-start}.log-dot{width:8px;height:8px;border-radius:50%;background:var(--green);margin-top:5px}.log-row .grow{flex:1}.log-row strong{font-size:12px}.log-row p{margin:4px 0 0;color:var(--muted);font-size:11px}.log-row time{color:#a0a7a2;font-size:10px}
/* modal/form */.modal-backdrop{position:fixed;inset:0;background:#26332c66;z-index:20;display:grid;place-items:center;padding:20px}.modal{width:min(480px,100%);max-height:90vh;overflow:auto;background:var(--paper);border-radius:22px;padding:25px;box-shadow:0 20px 70px #26332c33}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:19px}.modal-head h3{margin:0;font-size:18px}.close{font-size:23px;color:var(--muted)}.field{margin-bottom:14px}.field label{display:block;font-size:11px;color:var(--muted);margin-bottom:6px}.field input,.field textarea,.field select{width:100%;border:1px solid var(--line);background:#fbfaf7;border-radius:10px;padding:11px 12px;outline:0;color:var(--ink)}.field input:focus,.field textarea:focus{border-color:#9fc3b0;box-shadow:0 0 0 3px #dfeee6}.field textarea{min-height:90px;resize:vertical}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.modal .button-row{margin-top:20px;justify-content:flex-end}.choice-row{display:flex;gap:8px}.choice-row button{flex:1;padding:10px;border:1px solid var(--line);border-radius:10px;color:var(--muted)}.choice-row button.selected{border-color:var(--green);background:var(--green-2);color:var(--green)}.drawer{position:fixed;left:50%;bottom:0;transform:translateX(-50%);width:min(560px,100%);background:var(--paper);border-radius:22px 22px 0 0;z-index:21;padding:14px 22px 28px;box-shadow:0 -10px 50px #26332c24}.drawer-handle{width:34px;height:4px;background:#dfe4df;border-radius:9px;margin:0 auto 17px}.drawer h3{margin:0;font-size:19px}.drawer .member-meta{color:var(--muted);font-size:12px;margin:4px 0 20px}.drawer-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.drawer-actions button{background:#f1f4ef;border-radius:12px;padding:12px 4px;color:#5c6b62;font-size:11px}.drawer-actions button span{display:block;font-size:21px;margin-bottom:5px;color:var(--green)}.toast-root{position:fixed;z-index:50;left:50%;top:82px;transform:translateX(-50%);display:grid;gap:8px}.toast{background:#26332c;color:white;padding:10px 15px;border-radius:10px;font-size:12px;box-shadow:var(--shadow);animation:fade .2s ease}.onboarding{max-width:580px;margin:34px auto}.stepper{display:flex;align-items:center;justify-content:center;gap:8px;margin:25px 0}.stepper i{width:28px;height:28px;border-radius:50%;background:#e6ebe6;color:var(--muted);display:grid;place-items:center;font-style:normal;font-size:11px}.stepper i.active{background:var(--green);color:#fff}.stepper b{height:1px;width:48px;background:#dfe6df}.onboarding .card{padding:30px}.onboarding h2{text-align:center;margin:0 0 7px}.onboarding .subline{text-align:center;margin-bottom:25px}.shortcut{display:flex;gap:12px;align-items:center;padding:15px 0;border-bottom:1px solid var(--line)}.shortcut:last-child{border:0}.shortcut-icon{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:var(--green-2);color:var(--green);font-size:19px}.shortcut .grow{flex:1}.shortcut h4{margin:0 0 4px;font-size:13px}.shortcut p{margin:0;color:var(--muted);font-size:11px}.shortcut em{font-style:normal;color:#a5aea7;font-size:18px}
@keyframes fade{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:820px){.topbar{padding:0 20px}.content{padding:27px 20px}.grid.two,.tree-layout{grid-template-columns:1fr}.tree-side{display:grid;grid-template-columns:1fr 1fr;gap:14px}.tree-side .card{margin:0}.canvas-card{min-height:530px}.tree-canvas{height:500px}.admin-hero{display:block}.admin-hero .button-row{justify-content:flex-start;margin-top:15px}}
@media(max-width:520px){.topbar{height:64px}.profile-chip>span:not(.avatar){display:none}.tree-switcher{max-width:145px;padding:7px 9px;font-size:10px}.page-title{font-size:23px}.grid.three{grid-template-columns:repeat(3,1fr);gap:8px}.stat-card{padding:13px 11px}.stat-card p{font-size:10px;margin-bottom:10px;white-space:nowrap}.stat-card strong{font-size:21px}.stat-icon{display:none}.hero{padding:24px 21px;min-height:270px}.hero h2{font-size:27px}.tree-side{display:block}.tree-side .card{margin-bottom:14px}.ritual-grid{grid-template-columns:1fr 1fr}.ritual-grid .ancestor:nth-child(3){display:none}.drawer-actions{gap:5px}.drawer-actions button{font-size:10px}.form-grid{grid-template-columns:1fr}.canvas-card{margin:0 -5px}.top-actions{gap:3px}}
.admin-team-row{min-width:0}@media(max-width:820px){.admin-team-row{grid-template-columns:1fr}.assign-box{max-width:480px}}@media(max-width:520px){.admin-list{grid-template-columns:1fr}.assign-box{display:block}.assign-box label{position:static;margin:0 0 6px}.assign-box select{width:100%;margin:0 0 8px}.assign-box .btn{width:100%}}
.nine-grid{max-width:620px;margin:10px auto 0;display:grid;grid-template-columns:repeat(3,1fr);gap:12px;align-items:stretch}.member-tile{min-height:112px;padding:14px 8px;border:1px solid #dce8df;background:#fbfdf9;border-radius:15px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;transition:.16s}.member-tile:hover{border-color:#8fb9a2;transform:translateY(-2px)}.member-tile.dead{background:#f7f1e8;border-color:#e7dccb}.member-tile.placeholder{border-style:dashed;color:#a4ada6;background:#fafbf8}.member-tile.placeholder>span{width:28px;height:28px;border-radius:50%;background:#edf1eb;display:grid;place-items:center;font-size:20px;color:#7c9b8b}.member-tile strong{font-size:12px}.member-tile small{font-size:10px;color:var(--muted)}.grid-center{display:flex;align-items:center}.grid-center .member-tile{width:100%;background:var(--green);border-color:var(--green);color:#fff}.grid-center .member-tile small{color:#d0e6d8}.nine-label{font-size:10px;color:#9aa59d;text-align:center;padding:1px 0;align-self:center}.canvas-foot{color:#9ca8a0;font-size:10px;text-align:center;margin-top:18px}
.claim-hero{text-align:center;padding:12px 15px 20px}.claim-badge{width:54px;height:54px;border-radius:17px;margin:0 auto 13px;display:grid;place-items:center;background:var(--green-2);color:var(--green);font-size:27px}.claim-hero h2{font-size:18px;margin:0 0 8px}.claim-hero p{color:var(--muted);line-height:1.8;font-size:12px;margin:0}
.welcome-page{min-height:calc(100vh - 30px);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:40px 20px;color:var(--ink)}.welcome-mark{width:74px;height:74px;border-radius:24px;display:grid;place-items:center;background:var(--green);color:#fff;font-size:38px;font-weight:700;box-shadow:0 12px 25px #2d705b33;margin-bottom:23px}.welcome-mark.small{width:58px;height:58px;font-size:28px;margin:0 auto 16px}.welcome-page h1{font-size:30px;margin:0 0 12px;letter-spacing:-1px}.welcome-page>p{max-width:330px;color:var(--muted);line-height:1.9;margin:0}.welcome-features{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin:25px 0;color:#6f7c73;font-size:11px}.welcome-features span{padding:8px 10px;background:#eef3ee;border-radius:20px}.welcome-btn{min-width:270px;min-height:50px;border-radius:14px}.dev-login{margin-top:10px;min-width:270px}.welcome-note{max-width:360px;color:#a1aaa3;font-size:10px;line-height:1.7;margin-top:20px}.empty-state{text-align:center;padding:60px 24px}.empty-state p{color:var(--muted);margin:0 0 20px;line-height:1.8}
.f3-tree-host{border-radius:16px;overflow:hidden;position:relative;color:#fff}.f3-tree-host #f3Canvas>svg.main_svg{height:100%;width:100%;}.f3-tree-host #htmlSvg{pointer-events:none}.f3-tree-host #htmlSvg .cards_view{pointer-events:none}.f3-tree-host #htmlSvg .card{pointer-events:auto;width:118px;min-height:112px;text-align:center;color:#fff;background:transparent!important;border:0!important;box-shadow:none!important}.f3-tree-host #htmlSvg .card-inner{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:5px;background:transparent!important;border:0!important;box-shadow:none!important}.f3-tree-host #htmlSvg .card-image-circle img,.f3-tree-host #htmlSvg .person-icon{display:block!important;box-sizing:border-box;width:76px!important;height:76px!important;left:auto!important;top:auto!important;border-radius:50%;overflow:hidden;border:2px solid #9fc4d0;background:#76a7b6;color:#fff}.f3-tree-host #htmlSvg .card-female .person-icon{background:#c98799;border-color:#e1a6b4}.f3-tree-host #htmlSvg .card-genderless .person-icon{background:#8e9a96;border-color:#b5c0ba}.f3-tree-host #htmlSvg .card-image-circle img{object-fit:cover}.f3-tree-host #htmlSvg .person-icon svg{width:100%;height:100%;padding:16px;box-sizing:border-box;color:#fff;fill:currentColor}.f3-tree-host #htmlSvg .card-label{display:inline-block;max-width:106px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:2px 6px;border-radius:3px;background:#111;color:#fff;font-size:12px;line-height:17px}.f3-tree-host #htmlSvg .card-male .card-label{background:#101719}.f3-tree-host #htmlSvg .card-female .card-label{background:#23171b}.f3-tree-host #htmlSvg .card-main .card-label{background:#2d705b}.f3-tree-host .links_view path.link{stroke:#d7d7d7;stroke-width:2px;stroke-opacity:.9}.f3-tree-host .fit_screen_icon{display:none!important}
.stat-bar-row{display:grid;grid-template-columns:72px 1fr 28px;gap:10px;align-items:center;margin:15px 0;color:#68746c;font-size:11px}.stat-bar{height:9px;background:#edf1ec;border-radius:20px;overflow:hidden}.stat-bar i{display:block;height:100%;border-radius:inherit}.stat-bar-row b{font-size:12px;color:var(--ink);text-align:right}.donut-wrap{display:flex;align-items:center;gap:27px}.donut{width:128px;height:128px;border-radius:50%;display:grid;place-items:center;position:relative;background:conic-gradient(#5d967b 0 var(--male),#d68a5c var(--male) calc(var(--male) + var(--female)),#dfe5df calc(var(--male) + var(--female)) 100%)}.donut:after{content:'';position:absolute;width:78px;height:78px;background:var(--paper);border-radius:50%}.donut strong,.donut small{z-index:1;grid-column:1;grid-row:1}.donut strong{font-size:25px}.donut small{font-size:10px;color:var(--muted);margin-top:34px}.donut-legend{display:grid;gap:11px;color:#68746c;font-size:11px}.donut-legend span{display:flex;align-items:center;gap:5px}.donut-legend i{display:inline-block;width:9px;height:9px;border-radius:50%;background:#5d967b}.donut-legend i.female{background:#d68a5c}.donut-legend i.unknown{background:#dfe5df}.relationship-summary{display:flex;gap:30px;align-items:center}.relationship-summary>div:not(.relationship-tags){min-width:105px}.relationship-summary strong{display:block;font-size:27px;color:var(--green)}.relationship-summary span{font-size:11px;color:var(--muted)}.relationship-tags{display:flex;flex-wrap:wrap;gap:8px}
.profile-title{display:flex;gap:12px;align-items:center;padding:13px;background:#f2f5f0;border-radius:14px;margin-bottom:18px}.profile-title .avatar{width:42px;height:42px}.profile-title strong,.profile-title small{display:block}.profile-title strong{font-size:16px}.profile-title small{font-size:10px;color:var(--muted);margin-top:4px}.profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px 17px}.profile-grid>div{min-width:0}.profile-grid label{display:block;color:#99a39c;font-size:10px;margin-bottom:4px}.profile-grid b{display:block;font-size:12px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-wide{grid-column:1/-1}.profile-wide p{font-size:12px;color:#68746c;line-height:1.8;margin:5px 0 0;white-space:normal}
.admin-team{margin-top:18px}.admin-team-row{display:grid;grid-template-columns:1fr 270px;gap:20px}.admin-list{display:grid;grid-template-columns:1fr 1fr;gap:10px}.admin-person{display:flex;align-items:center;gap:9px;padding:11px;background:#f6f8f4;border-radius:12px}.admin-person .avatar{width:34px;height:34px;font-size:12px}.admin-person .grow{min-width:0}.admin-person strong,.admin-person small{display:block}.admin-person strong{font-size:12px}.admin-person small{font-size:10px;color:var(--muted);margin-top:3px}.admin-person .btn{min-height:30px;font-size:10px;margin-left:auto}.assign-box{display:flex;gap:8px;align-items:end}.assign-box label{display:block;font-size:10px;color:var(--muted);position:absolute;margin-bottom:54px}.assign-box select{flex:1;min-width:0;border:1px solid var(--line);background:#fbfaf7;border-radius:10px;padding:10px;color:var(--ink);margin-top:24px}.assign-box .btn{white-space:nowrap;font-size:11px;padding:0 11px}
.relationship-line{stroke:#d68a5c;stroke-width:2;stroke-dasharray:5 4;opacity:.85}.relationship-line.special{stroke:#9b83b4}.relationship-label{font-size:10px;fill:#8a684e;text-anchor:middle}.relationship-label+text{fill:#806995}
.legend i.marriage-line,.legend i.special-line{width:20px;height:0;border-radius:0;border-top:2px dashed var(--orange);background:none}.legend i.special-line{border-top-color:#9b83b4}
.tree-side .legend i.dead{width:12px;height:12px;background:transparent;border:2px solid #a0a0a0;opacity:.48}.tree-side .legend i.marriage-line{border-top:2px solid #d7d7d7}.tree-side .legend i.special-line{border-top:2px dashed #59436a}
.avatar{overflow:hidden}.avatar img{width:100%;height:100%;object-fit:cover}.default-avatar.male{background:#d9e9f2;color:#46738d}.default-avatar.female{background:#f4dfdf;color:#a56363}.default-avatar.unknown{background:#e5eae5;color:#64736a}
.f3-tree-host #htmlSvg .card.f3-dead{opacity:.48;filter:none}.f3-tree-host #htmlSvg .card.f3-dead .card-label{background:#000;color:#fff}.f3-tree-host #htmlSvg .card.f3-dead .person-icon{border-color:#a0a0a0;border-width:4px}.f3-tree-host #htmlSvg .card.f3-dead .card-image-circle img{filter:none;border-color:#a0a0a0;border-width:4px}.f3-marriage-label-layer{position:absolute;inset:0;z-index:3;pointer-events:none;overflow:visible}.f3-relationship-label rect{fill:#111;fill-opacity:.86}.f3-special-label rect{fill:#59436a}.f3-relationship-label text{fill:#fff;font-size:11px;font-family:inherit;text-anchor:middle;dominant-baseline:middle}
.comment-count{color:inherit;font-size:inherit}.comment-list{display:grid;gap:0}.comment-row{display:flex;gap:10px;padding:11px 0;border-bottom:1px solid var(--line)}.comment-row:last-child{border-bottom:0}.comment-row .avatar{width:34px;height:34px;flex:0 0 auto}.comment-row .grow{min-width:0}.comment-row strong,.comment-row small{display:block}.comment-row strong{font-size:12px}.comment-row small{margin-top:2px;color:#a0a7a2;font-size:10px}.comment-row p{margin:5px 0 0;color:#68736c;font-size:12px;line-height:1.6;word-break:break-word}
.tree-switcher{display:flex;align-items:center;gap:8px;max-width:260px;padding:8px 12px;border:1px solid var(--line);border-radius:12px;background:#fff;color:#53635a;font-size:12px}.tree-switcher span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tree-switcher i{font-style:normal;color:#9ba59e}.tree-list{display:grid;gap:8px;margin-bottom:18px}.tree-list-item{display:flex;align-items:center;gap:10px;width:100%;padding:12px;border:1px solid transparent;border-radius:12px;text-align:left;background:#f6f8f4;color:var(--ink)}.tree-list-item:hover,.tree-list-item.selected{border-color:#a6c8b4;background:var(--green-2)}.tree-list-item .grow{min-width:0}.tree-list-item strong,.tree-list-item small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tree-list-item strong{font-size:13px}.tree-list-item small{margin-top:3px;color:var(--muted);font-size:10px}.tree-list-mark{width:32px;height:32px;display:grid;place-items:center;flex:0 0 auto;border-radius:10px;background:var(--green);color:#fff;font-size:16px}.tree-list-item>span:last-child{color:var(--green);font-size:18px}.tree-list-modal{width:min(520px,100%)}
.post-category{display:inline-flex;align-items:center;padding:3px 7px;border-radius:8px;background:#eef3ee;color:#62806d;font-size:10px;white-space:nowrap}.post-manage-actions{display:inline-flex;gap:10px}.post-delete,.comment-delete{color:#a86b61}.comment-delete{align-self:flex-start;font-size:11px;white-space:nowrap}.section-manage-list{display:grid;gap:10px;margin-bottom:18px}.section-manage-row{display:flex;gap:8px;align-items:center}.section-manage-row input{flex:1;min-width:0;border:1px solid var(--line);background:#fbfaf7;border-radius:10px;padding:10px 12px;color:var(--ink);outline:0}.section-manage-row .btn{min-height:36px;padding:0 10px;font-size:11px;white-space:nowrap}.section-create-row{border-top:1px solid var(--line);padding-top:17px}
