: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;}.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}
.audit-log-card{padding:0!important;overflow:hidden}.audit-table-toolbar{display:flex;gap:10px;align-items:center;padding:20px}.audit-table-toolbar input{width:min(360px,100%);min-height:40px;border:1px solid #d9d9d9;border-radius:6px;padding:0 12px;background:#fff;outline:none}.audit-table-toolbar input:focus{border-color:#4096ff;box-shadow:0 0 0 2px #1677ff1a}.audit-table-toolbar .btn{min-height:40px;border-radius:6px}.audit-table-scroll{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.audit-table{width:100%;min-width:740px;border-collapse:collapse;text-align:left;background:#fff;font-size:12px}.audit-table th,.audit-table td{padding:15px 16px;border-bottom:1px solid #f0f0f0;vertical-align:top;line-height:1.6}.audit-table th{background:#fafafa;color:#333;font-weight:600;white-space:nowrap}.audit-table tbody tr:hover{background:#fafafa}.audit-table td small{display:block;color:#8c8c8c;font-size:10px;word-break:break-all}.audit-table td .audit-log-id{margin-top:4px}.audit-table .audit-nowrap{white-space:nowrap}.audit-table .audit-table-empty{text-align:center;color:#8c8c8c;padding:36px 16px}.audit-table-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:16px 20px;color:#666;font-size:12px}.audit-pagination{display:flex;align-items:center;gap:6px}.audit-pagination button{min-width:34px;min-height:34px;padding:0 6px;border:1px solid #d9d9d9;border-radius:6px;background:#fff;color:#333}.audit-pagination button.active{border-color:#1677ff;color:#1677ff;font-weight:600}.audit-pagination button:disabled{color:#bfbfbf;cursor:not-allowed}.audit-table-footer select{height:34px;border:1px solid #d9d9d9;border-radius:6px;background:#fff;color:#333;padding:0 7px}
/* 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}}
@media(max-width:520px){.audit-log-card{margin:0 -8px}.audit-table-toolbar{padding:14px}.audit-table-footer{justify-content:center;text-align:center;padding:14px}.audit-table-footer>span{width:100%}.audit-table-footer label{width:100%}.audit-pagination button{min-width:40px;min-height:40px}}
.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%}}
@media(max-width:520px){.brand>span:last-child{display:none}.tree-switcher{max-width:112px}.top-actions .icon-btn{min-width:42px;min-height:48px;padding:4px;font-size:14px;font-weight:700}.profile-chip i{display:none}.topbar{padding:0 12px}}
.migration-feature{display:grid;grid-template-columns:158px minmax(0,1fr);align-items:center;gap:24px;margin-top:18px;padding:18px;overflow:hidden;background:linear-gradient(105deg,#fffdf9 0%,#f2f7f1 100%)}
.migration-feature>img{width:100%;height:192px;object-fit:cover;object-position:top;border-radius:12px;box-shadow:0 8px 24px #26332c1c}
.migration-feature-copy h3{font-size:22px;line-height:1.35;margin:0 0 10px;color:var(--ink)}
.migration-feature-copy p{max-width:460px;margin:0 0 16px;color:var(--muted);line-height:1.7;font-size:13px}
.migration-feature-copy .btn{min-height:48px}
.migration-poster-modal{width:min(760px,100%);padding:18px}
.migration-poster-modal img{display:block;width:100%;height:auto;border-radius:10px}
.migration-poster-modal p{font-size:12px;line-height:1.6;color:var(--muted)}
@media(max-width:520px){.migration-feature{grid-template-columns:96px minmax(0,1fr);gap:12px;padding:12px}.migration-feature>img{height:132px;border-radius:8px}.migration-feature-copy .eyebrow{font-size:10px;letter-spacing:.5px;margin-bottom:5px}.migration-feature-copy h3{font-size:16px;margin-bottom:5px}.migration-feature-copy p{font-size:11px;line-height:1.5;margin-bottom:8px}.migration-feature-copy .btn{font-size:11px;padding:0 9px;min-height:48px}.migration-poster-modal{padding:12px}.migration-poster-modal .modal-head h3{font-size:16px}}
.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}

/* 登录后的成员档案使用独立路由页；分享链接仍复用 /member/:treeId/:memberId。 */
.member-profile-page{max-width:1080px;margin:0 auto 40px}
.member-profile-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}.member-profile-top>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:12px}.member-profile-top .btn{min-height:46px;flex:none}
.member-profile-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:28px 30px;background:linear-gradient(125deg,#eef6ef 0%,#fffaf0 100%)}
.member-profile-identity{display:flex;align-items:center;gap:20px;min-width:0}.member-profile-identity>.avatar{width:86px;height:86px;flex:0 0 86px;border:4px solid #fff;box-shadow:0 8px 24px #314d3d20;font-size:30px}.member-profile-identity>div{min-width:0}.member-profile-identity .eyebrow{margin-bottom:5px}.member-profile-name-row{display:flex;align-items:center;gap:10px;min-width:0;margin-bottom:8px}.member-profile-identity h1{flex:none;margin:0;font-size:30px;line-height:1.25;white-space:nowrap}.member-profile-identity p{color:#627269;font-size:12px;line-height:1.6}.member-profile-tag-row{flex:1;min-width:0;align-items:center;flex-wrap:nowrap;margin:0;padding:2px 0;overflow-x:auto;scrollbar-width:none}.member-profile-tag-row::-webkit-scrollbar{display:none}.member-profile-tag-row>.badge,.member-profile-tag-row>.member-profile-branch-tag{flex:none}.member-profile-branch-tag{display:inline-flex;align-items:center;gap:4px;height:24px;margin:0;padding:0 8px;border:1px solid #91caff;border-radius:6px;background:#e6f4ff;color:#0958d9;font-size:11px;line-height:22px;text-decoration:none;white-space:nowrap;transition:color .2s,border-color .2s,background .2s}.member-profile-branch-tag:hover{border-color:#69b1ff;background:#bae0ff;color:#003eb3}.member-profile-branch-tag svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.member-profile-identity .member-profile-status{margin:0 0 7px}.member-profile-introduction-text{max-width:620px;margin:0!important;color:#42594c!important;font-size:13px!important;line-height:1.75!important;white-space:pre-wrap;overflow-wrap:anywhere}
.member-profile-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;max-width:380px}.member-profile-actions .btn{min-height:46px;white-space:nowrap}
.member-profile-memorial{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin:13px 4px 0;color:#8a7452;font-size:12px}.member-profile-memorial>span{margin-right:auto}.member-profile-memorial button{min-height:42px;padding:0 13px;border:1px solid #eadac0;border-radius:11px;background:#fffaf2;color:#8b6940}.member-profile-memorial button:hover{background:#f9eddc}
.member-profile-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(290px,.85fr);gap:16px;margin-top:16px}.member-profile-side{min-width:0}.member-profile-section{padding:25px 27px}.member-profile-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:20px}.member-profile-section-head span{display:block;margin-bottom:4px;color:#789083;font-size:9px;font-weight:700;letter-spacing:1.6px}.member-profile-section-head h2{margin:0;font-size:18px}.member-profile-section-head>small{color:var(--muted);font-size:10px;text-align:right}
.member-profile-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 28px}.member-profile-fact{min-width:0;padding:13px 0;border-bottom:1px solid var(--line)}.member-profile-fact.wide{grid-column:1/-1}.member-profile-fact span{display:block;margin-bottom:6px;color:#909c94;font-size:10px}.member-profile-fact strong{display:block;overflow-wrap:anywhere;font-size:13px;font-weight:600;line-height:1.55}
.member-profile-relation-group+.member-profile-relation-group{margin-top:19px;padding-top:18px;border-top:1px solid var(--line)}.member-profile-relation-group h3{margin:0 0 10px;color:#79867e;font-size:11px;font-weight:500}.member-profile-relation-group>div{display:flex;flex-wrap:wrap;gap:7px}.member-profile-relation-tag{display:inline-flex;align-items:center;gap:6px;min-height:38px;padding:7px 10px;border:1px solid #dce7df;border-radius:10px;background:#f5f9f5;color:#4e6558;text-align:left}.member-profile-relation-tag span{font-size:10px;color:#7e9185}.member-profile-relation-tag strong{font-size:12px}.member-profile-relation-tag i{font-style:normal;font-size:18px;color:#82998b}.member-profile-relation-tag.marriage{border-color:#eadbc8;background:#fff9ef}.member-profile-relation-tag.special{border-color:#e3d9ed;background:#faf7fd;color:#69567b}.member-profile-empty-tag{color:#9aa49d;font-size:11px}
.member-profile-children h3{display:flex;align-items:center;justify-content:space-between;gap:10px}.member-profile-children h3 small{color:#527361;font-size:10px;font-weight:600}.member-profile-relation-tag.child{border-color:#d6e5dc;background:#f1f7f3}
.member-profile-biography{margin-top:16px}.member-biography-empty{padding:10px 0;color:#98a39c;font-size:12px}.member-biography-timeline{position:relative;margin:0;padding:2px 0 1px;list-style:none}.member-biography-timeline-item{position:relative;min-height:70px;padding:0 0 26px 32px}.member-biography-timeline-item:last-child{min-height:0;padding-bottom:2px}.member-biography-timeline-item .ant-timeline-item-tail{position:absolute;top:12px;bottom:-12px;left:7px;width:2px;background:#dce7df}.member-biography-timeline-item:last-child .ant-timeline-item-tail{display:none}.member-biography-timeline-item .ant-timeline-item-head{position:absolute;top:5px;left:0;width:16px;height:16px;border:3px solid var(--green);border-radius:50%;background:var(--paper);box-shadow:0 0 0 3px #eef5f0}.member-biography-timeline-item time{display:block;margin-bottom:7px;color:var(--green);font-size:12px;font-weight:700;line-height:1.5}.member-biography-timeline-item p{margin:0;color:#55665c;font-size:14px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:820px){.member-profile-hero{align-items:flex-start;flex-direction:column}.member-profile-actions{justify-content:flex-start;max-width:none}.member-profile-layout{grid-template-columns:1fr}}
@media(max-width:520px){.member-profile-page{margin:0 -5px 85px}.member-profile-top{padding:0 5px}.member-profile-top>span{font-size:10px}.member-profile-hero{gap:20px;padding:22px 18px;border-radius:17px}.member-profile-identity{align-items:flex-start;gap:14px}.member-profile-identity>.avatar{width:68px;height:68px;flex-basis:68px;font-size:24px}.member-profile-identity h1{font-size:24px}.member-profile-introduction-text{font-size:12px!important;line-height:1.7!important}.member-profile-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.member-profile-actions .btn{min-width:0;padding:0 8px;font-size:12px}.member-profile-memorial{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:12px 0 0}.member-profile-memorial>span{grid-column:1/-1}.member-profile-memorial button{padding:0 5px}.member-profile-section{padding:21px 18px;border-radius:17px}.member-profile-section-head{display:block}.member-profile-section-head>small{display:block;margin-top:6px;text-align:left}.member-profile-facts{gap:0 18px}.member-profile-fact strong{font-size:12px}.member-biography-timeline-item p{font-size:13px;line-height:1.9}.member-biography-timeline-item{padding-left:28px}}
.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}
.tree-side .legend i.dead{width:12px;height:12px;background:transparent;border:2px solid #a0a0a0;opacity:.48}.tree-side .legend i.gender-male{width:12px;height:12px;background:#76a7b6}.tree-side .legend i.gender-female{width:12px;height:12px;background:#c98799}.tree-side .legend i.gender-unknown{width:12px;height:12px;background:#8e9a96}.tree-side .legend i.kinship-line{width:20px;height:0;border-radius:0;border-top:2px solid #d7d7d7;background:none}
.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-tree-host #htmlSvg .card.f3-forest-root{display:none!important}
.canvas-head .canvas-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tree-branch-reset{min-height:32px;padding:0 9px;flex:none;white-space:nowrap;font-size:11px}.tree-branch-reset[hidden]{display:none}
.tree-focus-member-link{padding:0;border:0;background:transparent;color:inherit;font:inherit;font-weight:700;text-decoration:underline;text-decoration-color:#91ad98;text-underline-offset:3px;cursor:pointer}.tree-focus-member-link:hover{color:var(--green)}.tree-focus-member-link:focus-visible{outline:2px solid #6c9e7d;outline-offset:2px;border-radius:3px}
.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}
.relation-editor{margin-top:18px;padding-top:18px;border-top:1px solid var(--line)}.relation-editor-title{font-size:13px;font-weight:600;margin-bottom:14px;color:var(--ink)}.relation-check-list{display:grid;gap:7px;max-height:150px;overflow:auto;padding:9px 10px;border:1px solid var(--line);border-radius:10px;background:#fbfaf7}.relation-check-option{display:flex!important;align-items:center;gap:8px;margin:0!important;padding:5px 3px;color:var(--ink)!important;font-size:11px!important;cursor:pointer}.relation-check-option input{width:17px!important;height:17px;flex:0 0 auto;accent-color:var(--green)}.relation-check-option span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.relation-check-empty{padding:8px 3px;color:var(--muted);font-size:11px}
.relation-member-search{min-height:42px!important;margin-bottom:7px!important;padding-left:12px!important;background:#fff!important}.relation-search-hint{display:block;margin-top:5px;color:var(--muted);font-size:10px}.relation-search-empty{padding:11px 3px;color:var(--muted);font-size:11px;text-align:center}.relation-check-option[hidden],.relation-search-empty[hidden]{display:none!important}

/* Viewport fullscreen also works in WeChat WebViews without the Fullscreen API. */
.tree-fullscreen-active{overflow:hidden}
.zoom-actions .tree-fullscreen-toggle{width:auto;padding:0 11px;border-left:1px solid var(--line);font-size:12px;font-weight:600;color:var(--green);white-space:nowrap}
.canvas-card.is-tree-fullscreen{position:fixed;inset:0;z-index:1000;width:100vw;height:100vh;height:100dvh;min-height:0;margin:0;border:0;border-radius:0;background:#f1f5f0}
.canvas-card.is-tree-fullscreen .tree-canvas{height:100%;min-height:0;border-radius:0}
.canvas-card.is-tree-fullscreen .canvas-head{top:max(16px,env(safe-area-inset-top));left:max(16px,env(safe-area-inset-left));right:max(16px,env(safe-area-inset-right))}
.tree-fullscreen-active .modal-backdrop{z-index:1100}
@media(max-width:520px){.canvas-card.is-tree-fullscreen{margin:0}}

/* Ant Design outline icons in the H5 account actions. */
.top-actions .icon-btn,.top-actions .profile-chip{position:relative;display:inline-flex;align-items:center;justify-content:center;min-width:48px;min-height:48px;padding:8px;border-radius:12px;transition:background-color .15s,color .15s}
.top-actions .icon-btn:hover,.top-actions .profile-chip:hover{background:#e9f0ea}
.top-actions .ant-icon{display:block;flex:none;width:21px;height:21px;fill:currentColor}
.top-actions .vip-icon-btn{color:#ae823c}
.top-actions .notification-icon-btn{color:#5f7467}
.top-actions .profile-chip{gap:8px;padding-inline:10px;color:#4d5751}
.top-actions .profile-chip .ant-icon{color:#557a68}
.bottom-nav[hidden],.bottom-nav button[hidden]{display:none!important}
@media(max-width:820px){.bottom-nav.without-admin{grid-template-columns:repeat(5,minmax(0,1fr))}}
.account-management{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:18px;background:#f4f8f3}.account-management h3{margin:0 0 7px;font-size:17px}.account-management p{margin:0;color:var(--muted);font-size:12px;line-height:1.6}.account-management .btn{flex:none;min-height:48px}
@media(max-width:820px){.account-management{display:none}}
.app-shell .site-footer{grid-template-columns:minmax(0,1fr) auto}
.account-phone-note{margin:0 0 4px;padding:0 0 12px;border-bottom:1px solid var(--line);color:#8a978e;font-size:11px;line-height:1.6}
.welcome-poster-page{display:grid;grid-template-columns:minmax(240px,320px) minmax(0,660px);align-items:start;justify-content:center;gap:36px;min-height:0;max-width:1100px;margin:0 auto;padding:16px 0 48px;text-align:left}.welcome-poster-intro{position:sticky;top:105px;padding:32px 0}.welcome-poster-intro .welcome-mark{margin-bottom:20px}.welcome-poster-intro h1{font-size:30px}.welcome-poster-intro>p{max-width:300px;margin:0;color:var(--muted);line-height:1.8}.welcome-poster-intro .welcome-poster-hint{margin:24px 0 16px;color:var(--green);font-size:13px;font-weight:700}.welcome-poster-intro .welcome-btn,.welcome-poster-intro .dev-login{width:100%;min-width:0}.welcome-poster-intro .dev-login{display:flex;align-items:center;justify-content:center}.welcome-poster-disclaimer{display:block;margin-top:18px;color:#8a978e;font-size:11px;line-height:1.7}.welcome-auth-error{margin:0 0 15px;padding:11px 12px;border:1px solid #efc8bd;border-radius:10px;background:#fff1ed;color:#a84e3d;font-size:12px;line-height:1.6}.welcome-poster-trigger{display:block;width:100%;min-width:0;padding:0;overflow:hidden;border:1px solid #e4dfd2;border-radius:15px;background:#f5eee2;box-shadow:0 18px 45px #273a2c1c;line-height:0;text-align:left;cursor:pointer}.welcome-poster-trigger img{display:block;width:100%;height:auto}.welcome-poster-trigger:hover{box-shadow:0 20px 48px #273a2c2e}.welcome-poster-trigger:focus-visible{outline:3px solid var(--green);outline-offset:4px}
@media(max-width:760px){.welcome-poster-page{display:flex;align-items:stretch;flex-direction:column;gap:20px;max-width:600px;padding:4px 0 28px}.welcome-poster-intro{position:static;padding:4px 0 0;text-align:center}.welcome-poster-intro .welcome-mark{width:52px;height:52px;margin:0 auto 12px;border-radius:16px;font-size:26px}.welcome-poster-intro .eyebrow{margin-bottom:5px}.welcome-poster-intro h1{margin-bottom:7px;font-size:24px}.welcome-poster-intro>p{max-width:440px;margin:0 auto;font-size:12px}.welcome-poster-intro .welcome-poster-hint{margin:11px auto 13px}.welcome-poster-intro .welcome-btn,.welcome-poster-intro .dev-login{max-width:440px}.welcome-poster-disclaimer{margin-top:10px}.welcome-poster-trigger{border-radius:10px}}
.app-shell:has(.welcome-poster-page:not([hidden])){min-height:100dvh;padding-bottom:0;overflow:hidden}.welcome-poster-page{height:calc(100dvh - 74px);min-height:0;padding:10px 0;align-items:center;overflow:hidden}.welcome-poster-trigger{height:100%;display:flex;align-items:center;justify-content:center;cursor:default}.welcome-poster-trigger img{width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain}
.app-shell:has(.welcome-default-page:not([hidden])){height:100dvh;min-height:0;padding-bottom:0;overflow:hidden}.welcome-default-page{height:calc(100dvh - 74px);min-height:0;padding:20px;justify-content:center;overflow:hidden}
@media(max-width:760px){.app-shell:has(.welcome-poster-page:not([hidden])){padding-bottom:0}.welcome-poster-page{height:calc(100dvh - 74px);gap:10px;padding:8px 14px}.welcome-poster-intro{flex:none}.welcome-poster-intro .welcome-mark{display:none}.welcome-poster-intro .eyebrow{display:none}.welcome-poster-intro h1{font-size:21px}.welcome-poster-intro>p{font-size:11px}.welcome-poster-trigger{flex:1;min-height:0}.welcome-poster-trigger img{height:100%;width:100%;object-fit:contain}}
.top-actions .profile-chip{max-width:180px;text-align:left}.top-actions .profile-chip #top-user-name{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.top-actions .profile-chip[aria-current="page"]{background:#e4efe6;color:var(--green)}.top-actions .header-logout{flex:none;min-width:48px;min-height:48px;padding:0 10px;border-radius:12px;color:#6d7971;font-size:12px}.top-actions .header-logout:hover{background:#f2e9e6;color:#9b5546}
.account-page{max-width:1040px;margin:0 auto 36px}.account-heading{margin-bottom:20px}.account-heading h1{margin:0 0 7px;font-size:28px}.account-heading p{margin:0;color:var(--muted)}.account-hero{display:flex;align-items:center;gap:20px;padding:25px 28px;background:linear-gradient(110deg,#e6f2e8,#f8faf5)}.account-portrait{display:grid;flex:none;width:76px;height:76px;place-items:center;overflow:hidden;border:3px solid #fff;border-radius:50%;background:#adcdb8;box-shadow:0 6px 17px #214d3424;color:#fff;font-size:27px;font-weight:700}.account-portrait img{width:100%;height:100%;object-fit:cover}.account-identity>span,.account-identity small{color:#678372;font-size:12px}.account-identity h2{margin:4px 0;font-size:24px}.account-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:18px}.account-panel{min-width:0}.account-panel .section-head{margin-bottom:13px}.account-detail-row{display:flex;justify-content:space-between;gap:16px;padding:13px 0;border-bottom:1px solid var(--line)}.account-detail-row:last-child{border-bottom:0}.account-detail-row span,.account-usage span,.account-rights-grid span{color:var(--muted);font-size:12px}.account-detail-row strong{min-width:0;overflow-wrap:anywhere;text-align:right;font-size:13px;font-weight:600}.account-plan-head{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:16px;border-radius:14px;background:#eef6ed}.account-plan-head h3{margin:4px 0;font-size:22px}.account-plan-head small{color:#698474}.account-plan-label{color:#60796a;font-size:11px}.account-plan-badge{padding:6px 10px;border-radius:20px;background:#fff;color:var(--green);font-size:11px;font-weight:800;letter-spacing:1px}.account-usage{margin-top:18px}.account-usage>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:8px}.account-usage strong{font-size:12px}.account-usage .progress{margin-top:10px}.account-rights-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}.account-rights-grid>div{display:grid;gap:7px;padding:13px;border:1px solid var(--line);border-radius:12px}.account-rights-grid strong{font-size:13px}.account-benefits{margin:15px 0 0;line-height:1.7;color:#57705e;font-size:12px}.account-rights-note{margin:14px 0 0;color:#8a978e;font-size:11px}.account-error{padding:15px;text-align:center}.account-shortcuts{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.account-shortcuts .btn{min-height:48px}
.top-actions [hidden]{display:none!important}.top-actions .header-auth-entry{min-height:42px;padding:0 14px;white-space:nowrap}
.welcome-poster-page{display:none}
@media(max-width:760px){.welcome-default-page{display:none}.welcome-poster-page{display:flex}}
@media(max-width:820px){.account-columns{grid-template-columns:1fr}.top-actions{gap:5px}}
@media(max-width:520px){.topbar{gap:5px}.topbar .brand{flex:none}.topbar .tree-switcher{flex:1;max-width:95px;min-width:0}.top-actions{flex:none;gap:1px}.top-actions .feedback-icon-btn{display:none}.top-actions .notification-icon-btn{min-width:40px;padding:5px}.top-actions .profile-chip{min-width:0;max-width:105px;gap:5px;padding:5px}.top-actions .profile-chip #top-user-name{display:block;max-width:67px;font-size:11px}.top-actions .profile-chip .ant-icon{width:18px;height:18px}.top-actions .header-logout{min-width:42px;padding:0 4px}.account-page{margin-bottom:90px}.account-heading h1{font-size:25px}.account-hero{padding:20px;gap:14px}.account-portrait{width:62px;height:62px}.account-identity h2{font-size:21px}.account-panel{padding:18px!important}.account-rights-grid{grid-template-columns:1fr 1fr}.account-shortcuts .btn{flex:1}}
.notification-count{position:absolute;top:1px;right:1px;display:grid;place-items:center;min-width:17px;height:17px;padding:0 4px;border-radius:9px;background:#c76152;color:#fff;font-size:10px;line-height:1;font-weight:700}
.notification-count[hidden]{display:none}

.member-profile-edit-modal{width:min(620px,100%)}.biography-editor{margin-top:18px;padding-top:18px;border-top:1px solid var(--line)}.biography-editor-title{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:12px}.biography-editor-title>div{min-width:0}.biography-editor-title label{margin:0 0 5px;color:var(--ink);font-size:13px;font-weight:600}.biography-editor-title small{display:block;color:var(--muted);font-size:10px;line-height:1.6}.biography-add{min-height:38px;padding:0 12px;flex:none;font-size:11px}.biography-add b{font-size:18px;font-weight:400;line-height:1}.biography-editor-row{position:relative;margin-bottom:12px;padding:12px;border:1px solid #dfe6df;border-radius:12px;background:#fbfaf7}.biography-editor-row-head{display:flex;align-items:center;gap:8px;margin-bottom:8px}.field .biography-editor-row .biography-period{flex:1;min-width:0;background:#fff}.biography-remove{flex:none;min-height:40px;padding:0 8px;color:#a86b61;font-size:11px}.field .biography-editor-row .biography-content{min-height:100px;background:#fff}.biography-editor-row:last-child{margin-bottom:0}
@media(max-width:520px){.biography-editor-title{align-items:stretch;flex-direction:column}.biography-add{align-self:flex-start}.biography-editor-row{padding:10px}.biography-editor-row-head{align-items:stretch;flex-direction:column}.biography-remove{align-self:flex-end;min-height:32px}}

.relation-details{margin:18px 0;border:1px solid var(--line);border-radius:12px;background:#fbfaf7;overflow:hidden}
.relation-details summary{position:relative;display:flex;align-items:center;gap:8px;min-height:48px;padding:10px 36px 10px 14px;list-style:none;cursor:pointer;color:var(--ink);font-size:13px;font-weight:600}
.relation-details summary::-webkit-details-marker{display:none}
.relation-details summary small{color:var(--muted);font-size:11px;font-weight:400}
.relation-details summary::after{content:'⌄';position:absolute;right:15px;color:var(--green);font-size:18px;transition:transform .15s}
.relation-details[open] summary::after{transform:rotate(180deg)}
.relation-details .relation-editor{margin:0;padding:16px 14px;border-top:1px solid var(--line)}
.relation-details .relation-editor-title{display:none}
@media(max-width:520px){.relation-details summary{align-items:flex-start;flex-direction:column;gap:2px}}

.stat-icon .ant-stat-icon{display:block;width:19px;height:19px;fill:currentColor}
@media(max-width:520px){.stat-icon{display:grid;width:28px;height:28px;border-radius:8px}.stat-icon .ant-stat-icon{width:16px;height:16px}.stat-card p{white-space:normal;line-height:1.4;min-height:28px}}

.festival-panel{display:block;padding:18px;color:var(--text,#34443b)}
.festival-home-notice{display:block}
.festival-panel-head{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin-bottom:12px}
.festival-panel-head strong{font-size:15px}
.festival-panel-head span,.festival-panel-note{color:var(--muted);font-size:11px}
.festival-countdown-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.festival-countdown{display:flex;flex-direction:column;gap:5px;min-width:0;padding:12px;border:1px solid var(--line);border-radius:10px;background:#fff}
.festival-countdown.is-next{border-color:#ba9a65;background:#fffaf1}
.festival-countdown div{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px}
.festival-countdown b{font-size:13px}
.festival-countdown div span,.festival-countdown small{font-size:10px;color:var(--muted)}
.festival-countdown>strong{font-size:15px;color:var(--orange)}
.festival-panel-note{margin:12px 0 0}
@media(max-width:520px){.festival-countdown-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.festival-panel-head{align-items:flex-start;flex-direction:column}}

.phone-auth-entry{display:block;width:min(270px,100%);min-height:48px;margin:10px auto 0;border-radius:14px}
.welcome-poster-intro .phone-auth-entry{width:100%;max-width:none}
.phone-auth-modal{width:min(430px,100%)}
.phone-auth-modal .subline{display:block;margin-top:5px;font-size:11px}
.phone-auth-tabs{margin:0 0 18px}
.phone-auth-tabs button{min-height:44px}
.phone-auth-hint,.phone-auth-code-state>p,.phone-auth-unavailable{margin:0 0 15px;color:var(--muted);font-size:12px;line-height:1.7}
.phone-auth-modal>.btn,.phone-auth-code-state>.btn{width:100%;min-height:48px}
.phone-auth-error{margin-bottom:15px;padding:11px 12px;border:1px solid #efc8bd;border-radius:10px;background:#fff1ed;color:#a84e3d;font-size:12px;line-height:1.6}
.phone-auth-unavailable{margin:10px 0 0;color:#a36a4f}
.phone-auth-step{display:block;margin:0 0 8px;color:var(--green);font-size:13px;font-weight:700}
.phone-auth-challenge{margin:12px 0 10px;padding:15px 10px;border:1px dashed #98b7a0;border-radius:14px;background:#f2f7f2;color:var(--ink);font-size:34px;font-weight:800;letter-spacing:12px;text-align:center;font-variant-numeric:tabular-nums}
.phone-auth-copy{width:100%;margin-bottom:14px}
.phone-auth-waiting{display:grid;place-items:center;width:54px;height:54px;margin:18px auto;border-radius:50%;background:#e8f3e9;color:#3d7950;font-size:28px;font-weight:800}
.phone-auth-code-state .field{margin-top:14px}
.phone-auth-code-state input{text-align:center;font-size:20px;letter-spacing:8px}
.phone-auth-qr{display:flex;align-items:center;gap:13px;margin:0 0 15px;padding:10px;border:1px solid var(--line);border-radius:12px;background:#fbfaf7}
.phone-auth-qr img{display:block;width:92px;height:92px;flex:none;object-fit:contain;border-radius:8px;background:#fff}
.phone-auth-qr figcaption{color:var(--muted);font-size:11px;line-height:1.65}
.phone-auth-desktop-flow{text-align:center}
.phone-auth-desktop-flow>p{margin:5px 0 12px;color:var(--muted);font-size:12px;line-height:1.7;text-align:left}
.phone-auth-oauth-qr{display:grid;place-items:center;width:204px;height:204px;margin:8px auto 10px;padding:8px;border:1px solid var(--line);border-radius:14px;background:#fff}
.phone-auth-oauth-qr svg{display:block;width:100%;height:100%}
.phone-auth-desktop-flow>small{display:block;margin-bottom:15px;color:var(--muted);font-size:11px}
.phone-auth-desktop-flow>.btn{width:100%;min-height:46px}
@media(max-width:520px){.phone-auth-modal{align-self:end;width:100%;max-height:calc(100dvh - 18px);padding:22px 19px calc(20px + env(safe-area-inset-bottom));border-radius:20px 20px 0 0}.welcome-poster-intro .phone-auth-entry{max-width:440px}}

/* 家族圈：以手机单列动态流为主，所有主要操作保留可点按尺寸。 */
.circle-page{max-width:820px;margin:0 auto}
.circle-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:22px;padding:26px 28px;border:1px solid #dbe7dc;border-radius:20px;background:linear-gradient(120deg,#e8f2e9 0%,#f8f7ed 100%)}
.circle-heading .eyebrow{margin-bottom:6px}
.circle-heading .page-title{font-size:29px;margin-bottom:6px}
.circle-heading-copy{min-width:0}
.circle-heading-copy>p{margin:0 0 13px;color:#536e5e;line-height:1.6}
.circle-tree-name{display:inline-flex;max-width:100%;padding:6px 10px;border-radius:20px;background:#fff9;color:#4e7860;font-size:11px;overflow-wrap:anywhere}
.circle-heading-actions{display:flex;gap:8px;flex:0 0 auto}
.circle-heading-actions .btn{min-height:48px;white-space:nowrap}
.circle-tabs{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;overscroll-behavior-x:contain;scroll-snap-type:x proximity;padding:18px 0 14px;margin-bottom:5px}
.circle-tabs::-webkit-scrollbar{display:none}
.circle-tabs button{flex:0 0 auto;min-height:44px;padding:0 17px;border-radius:22px;background:#ebeee9;color:#66736a;font-size:13px;scroll-snap-align:start;white-space:nowrap}
.circle-tabs button.active{background:var(--green);color:#fff;font-weight:700;box-shadow:0 5px 12px #2d705b26}
.circle-tabs button:focus-visible,.circle-action:focus-visible,.circle-post-manage button:focus-visible{outline:2px solid var(--green);outline-offset:2px}
.circle-feed{display:grid;gap:14px}
.circle-post{padding:20px 22px;border-radius:18px}
.circle-post.is-pinned{border-color:#ead5b2;background:linear-gradient(180deg,#fffcf5 0%,var(--paper) 28%)}
.circle-post-head{display:flex;align-items:center;gap:11px;min-width:0}
.circle-post-head>.avatar{width:43px;height:43px;flex:0 0 43px;font-size:18px}
.circle-post-author{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0}
.circle-post-author strong{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.circle-post-author small{color:var(--muted);font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.circle-post-tags{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:5px;max-width:48%}
.circle-post-tags .badge,.circle-post-tags .post-category{min-height:23px;padding:3px 8px;font-size:10px}
.circle-post-body{padding:18px 0 19px;color:#344139;font-size:14px;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere}
.circle-post-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding-top:10px;border-top:1px solid var(--line)}
.circle-action{display:flex;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:46px;padding:0 5px;border-radius:10px;color:#68766d;font-size:12px;white-space:nowrap}
.circle-action:hover,.circle-action:active{background:#f0f5ef}
.circle-action>span{font-size:20px;line-height:1}
.circle-action b{font-size:11px;font-weight:500}
.circle-action.is-liked{color:var(--red)}
.circle-action-reply{background:#edf4ee;color:var(--green);font-weight:600}
.circle-latest-comment{display:flex;gap:2px;width:100%;min-height:44px;align-items:center;text-align:left;padding:8px 11px;margin-top:9px;border-radius:10px;background:#f4f6f2;color:#5c685f;font-size:12px}
.circle-latest-comment strong{flex:0 0 auto;color:var(--green)}
.circle-latest-comment span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.circle-latest-comment em{flex:0 0 auto;margin-left:auto;color:#849187;font-size:10px;font-style:normal}
.circle-post-manage{display:flex;justify-content:flex-end;gap:5px;margin-top:9px;padding-top:7px;border-top:1px dashed var(--line)}
.circle-post-manage button{min-height:44px;padding:0 11px;color:#738078;font-size:12px}
.circle-post-manage .post-delete{color:#aa6459}
.circle-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:270px;padding:30px;text-align:center}
.circle-empty>span{display:grid;place-items:center;width:62px;height:62px;margin-bottom:15px;border-radius:18px;background:var(--green-2);color:var(--green);font-size:28px}
.circle-empty strong{font-size:16px}
.circle-empty p{margin:8px 0 18px;color:var(--muted);line-height:1.7}
.circle-empty .btn{min-height:48px}
.circle-compose-modal .field label,.circle-comment-compose label{font-size:13px;color:#4f5d53;font-weight:600}
.circle-compose-modal #post-content{min-height:160px;font-size:15px;line-height:1.7}
.circle-field-hint{display:block;margin-top:6px;color:var(--muted);font-size:11px}
.circle-comments-modal{display:flex;flex-direction:column;max-height:88vh}
.circle-comments-modal .comment-list{min-height:80px;overflow-y:auto;overscroll-behavior:contain}
.circle-comments-modal .comment-row{align-items:flex-start}
.circle-comments-modal .comment-delete{min-height:44px;padding:0 5px}
.circle-comment-compose{display:grid;gap:8px;padding-top:14px;border-top:1px solid var(--line)}
.circle-comment-compose textarea{width:100%;min-height:78px;padding:11px 12px;border:1px solid var(--line);border-radius:11px;background:#fbfaf7;resize:vertical;outline:0;font-size:14px}
.circle-comment-compose textarea:focus{border-color:#9fc3b0;box-shadow:0 0 0 3px #dfeee6}
.circle-comment-compose .btn{min-height:48px}
@media(min-width:1024px){
  .circle-page{max-width:1100px}
}
@media(max-width:620px){
  .circle-heading{display:block;padding:21px 19px;border-radius:17px}
  .circle-heading .page-title{font-size:25px}
  .circle-heading-copy>p{font-size:13px}
  .circle-heading-actions{display:grid;grid-template-columns:1fr auto;margin-top:18px}
  .circle-heading-actions .circle-compose-btn{grid-column:1;grid-row:1}
  .circle-heading-actions .circle-manage-btn{grid-column:2;grid-row:1;padding:0 11px;font-size:12px}
  .circle-tabs{position:sticky;top:64px;z-index:4;margin:0 -20px 6px;padding:12px 20px;background:var(--bg)}
  .circle-feed{margin:0 -6px}
  .circle-post{padding:17px 15px;border-radius:16px}
  .circle-post-head{flex-wrap:wrap}
  .circle-post-tags{width:100%;max-width:none;justify-content:flex-start;padding-left:54px}
  .circle-post-body{padding:15px 0;font-size:14px}
  .circle-action{font-size:11px;gap:3px}
  .circle-modal-backdrop{place-items:end center;padding:0}
  .circle-modal-backdrop .modal{width:100%;max-height:90vh;max-height:calc(100dvh - 18px);padding:22px 19px calc(20px + env(safe-area-inset-bottom));border-radius:20px 20px 0 0}
  .circle-compose-modal .button-row{display:grid;grid-template-columns:1fr 1fr}
  .circle-compose-modal .button-row .btn{min-height:48px}
  .circle-comments-modal .comment-list{flex:1}
}

/* 字辈传承：沿用 Ant Design Timeline 的节点、尾线和内容结构。 */
.generation-page{max-width:900px;margin:0 auto}
@media(min-width:1024px){.generation-page{max-width:1100px}}
.generation-top{display:flex;justify-content:space-between;gap:10px;margin-bottom:18px}
.generation-top .btn,.generation-jump,.generation-add-row,.generation-word-remove{min-height:48px}
.generation-hero{position:relative;overflow:hidden;padding:38px 40px 30px;border-radius:24px;background:linear-gradient(130deg,#244d40,#35725a 72%,#5c8c6e);color:#fff;box-shadow:0 14px 35px #2753412b}
.generation-hero::after{content:'字';position:absolute;right:24px;top:-25px;color:#ffffff10;font-family:serif;font-size:235px;line-height:1;pointer-events:none}
.generation-hero .eyebrow{position:relative;z-index:1;color:#e6c994}
.generation-hero h1{position:relative;z-index:1;margin:0;font-size:34px;letter-spacing:3px}
.generation-hero>p{position:relative;z-index:1;margin:10px 0 25px;color:#e3f1e8;font-size:16px;letter-spacing:2px}
.generation-kpis{position:relative;z-index:1;display:flex;flex-wrap:wrap;gap:10px}
.generation-kpis span{display:inline-flex;align-items:baseline;gap:5px;padding:9px 14px;border:1px solid #ffffff40;border-radius:12px;background:#ffffff18;font-size:12px}
.generation-kpis b{font-size:19px}
.generation-content{padding:30px 8px 5px}
.generation-intro{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin:0 0 24px}
.generation-intro h2{margin:0 0 7px;font-size:20px}
.generation-intro p{margin:0;color:var(--muted);line-height:1.7}
.generation-jump{flex:none;padding:0 16px;border:1px solid #bcd8c7;border-radius:12px;background:#edf6ef;color:var(--green);font-weight:600}
.generation-hint{margin:0 0 25px;padding:13px 16px;border:1px solid #e6e9d7;border-radius:12px;background:#fafbef;color:#687453;line-height:1.6}
.generation-timeline{margin:0;padding:0;list-style:none}
.generation-timeline .ant-timeline-item{position:relative;min-height:104px;padding:0 0 24px 38px;scroll-margin-top:90px}
.generation-timeline .ant-timeline-item-tail{position:absolute;left:9px;top:23px;bottom:0;width:2px;background:#c9decf}
.generation-timeline .ant-timeline-item:last-child .ant-timeline-item-tail{display:none}
.generation-timeline .ant-timeline-item-head{position:absolute;left:0;top:14px;width:20px;height:20px;border:5px solid #fff;border-radius:50%;background:var(--green);box-shadow:0 0 0 2px #8bb99a}
.generation-timeline .ant-timeline-item.is-mine .ant-timeline-item-head{background:#d7974e;box-shadow:0 0 0 2px #d7974e}
.generation-timeline .ant-timeline-item-content{padding:17px 20px 15px;border:1px solid #e0e8de;border-radius:16px;background:var(--paper);box-shadow:0 6px 20px #2d534010}
.generation-entry-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.generation-index{font-size:15px;font-weight:700;color:#2e664e}
.generation-total{font-size:12px;color:var(--muted)}
.generation-words{display:grid;gap:8px}
.generation-word{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:60px;padding:9px 13px;border-radius:12px;background:#f1f7f1}
.generation-word.is-mine{background:#fff6e9}
.generation-word-name{display:flex;align-items:baseline;flex-wrap:wrap;gap:5px;min-width:0}
.generation-word-name strong{color:#244d40;font-size:22px;line-height:1.2;overflow-wrap:anywhere}
.generation-word-name>span{color:#678174;font-size:12px}
.generation-word-name em{padding:2px 7px;border-radius:10px;background:#f0d7aa;color:#7d561b;font-size:11px;font-style:normal;font-weight:600}
.generation-word-name small{width:100%;color:#a1774b;font-size:11px}
.generation-word-count{display:flex;flex:none;align-items:baseline;gap:3px;color:#547063;font-size:12px}
.generation-word-count b{color:#244d40;font-size:19px}
.generation-word-empty{padding:14px;border-radius:12px;background:#f5f6f1;color:#77837a;line-height:1.6}
.generation-unrecorded{margin:12px 0 0;color:#818b83;font-size:12px;line-height:1.6}
.generation-empty{text-align:center;padding:38px 20px;border:1px dashed #d1ddcf;border-radius:18px;background:#fffdf9}
.generation-empty>span{display:inline-grid;place-items:center;width:58px;height:58px;border-radius:50%;background:#e4f0e6;color:var(--green);font-size:27px;font-family:serif}
.generation-empty h3{margin:13px 0 6px}.generation-empty p{color:var(--muted);line-height:1.7}.generation-empty .btn{margin-top:9px}
.generation-footnote{color:#89938a;font-size:12px;line-height:1.6}
.generation-admin-card{margin-top:18px}
.generation-admin-head{display:flex;align-items:center;justify-content:space-between;gap:20px}
.generation-admin-head h3{margin:0 0 6px;font-size:17px}.generation-admin-head p{margin:0;color:var(--muted);line-height:1.6}
.generation-admin-preview{display:flex;flex-wrap:wrap;gap:7px;margin-top:17px}
.generation-admin-preview span{padding:7px 11px;border-radius:20px;background:#edf5ee;color:#447258;font-size:12px}
.generation-admin-preview small{align-self:center;color:var(--muted)}
.tree-delete-card{margin-top:18px;display:flex;align-items:center;justify-content:space-between;gap:24px;border-color:#f0c5c0;background:linear-gradient(135deg,#fff 0%,#fff8f7 100%)}
.tree-delete-card h3{margin:5px 0 8px;color:#8f2f25}
.tree-delete-card p{margin:0 0 7px;color:#5e312c}
.tree-delete-card small{display:block;max-width:720px;color:var(--muted);line-height:1.6}
.tree-delete-button{flex:0 0 auto;background:#a33a30;border-color:#a33a30}
.tree-delete-button:hover{background:#882c24;border-color:#882c24}
.tree-delete-button:disabled{background:#d8cfcc;border-color:#d8cfcc;color:#fff;cursor:not-allowed}
@media(max-width:680px){.tree-delete-card{align-items:stretch;flex-direction:column}.tree-delete-button{width:100%;min-height:48px}}
.generation-editor{max-width:610px;max-height:min(88vh,800px);max-height:min(88dvh,800px);overflow-y:auto}
.generation-editor-tip{padding:11px 13px;border-radius:10px;background:#f0f6ee;color:#506e59;font-size:12px;line-height:1.65}
.generation-word-list{display:grid;gap:9px;margin:16px 0}
.generation-word-row{display:grid;grid-template-columns:126px 1fr auto;align-items:center;gap:9px}
.generation-word-row label{display:flex;align-items:center;gap:5px;white-space:nowrap;color:#5d6d60}
.generation-word-row input{min-width:0;min-height:46px;border:1px solid #d9e3d9;border-radius:10px;background:#fff;padding:0 10px;outline:0}
.generation-word-row label input{width:65px;text-align:center}
.generation-word-row input:focus{border-color:#73a78a;box-shadow:0 0 0 3px #e5f1e8}
.generation-word-remove{padding:0 10px;border-radius:10px;color:#a66155}
.generation-word-remove:hover{background:#fdf0ec}
.generation-add-row{width:100%;border:1px dashed #accbb5;border-radius:11px;color:var(--green);font-weight:600}
.generation-editor-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:20px}
@media(max-width:620px){
  .generation-hero{padding:28px 22px 25px;border-radius:19px}
  .generation-hero::after{right:-15px;top:10px;font-size:175px}
  .generation-hero h1{font-size:28px}.generation-hero>p{font-size:13px;letter-spacing:1px;line-height:1.6}
  .generation-kpis{gap:7px}.generation-kpis span{padding:7px 9px;font-size:11px}.generation-kpis b{font-size:17px}
  .generation-content{padding:24px 0 0}.generation-intro{display:block}.generation-intro h2{font-size:18px}.generation-intro p{font-size:12px}
  .generation-jump{margin-top:13px}
  .generation-timeline .ant-timeline-item{padding-left:30px}.generation-timeline .ant-timeline-item-content{padding:14px 13px}
  .generation-word{padding:9px}.generation-word-name strong{font-size:19px}
  .generation-admin-head{display:block}.generation-admin-head .button-row{margin-top:15px}
  .generation-word-row{grid-template-columns:110px 1fr auto;gap:5px}.generation-word-row label input{width:51px;padding:0 3px}.generation-word-row input{padding:0 7px}.generation-word-remove{padding:0 4px;font-size:12px}
}

/* 成员墓葬地址：腾讯地图选点，选点前保留手工输入。 */
.tomb-address-actions{display:flex;gap:8px;align-items:stretch}
.tomb-address-actions input{flex:1;min-width:0}
.tomb-address-actions .btn{flex:none;min-height:48px;white-space:nowrap}
#tomb-picked-location{display:block;margin-top:7px;color:#6b806f;line-height:1.5}
.map-picker-layer{position:fixed;inset:0;z-index:1200;display:grid;place-items:center;padding:22px;background:#17241ecb}
.map-picker-panel{display:flex;flex-direction:column;width:min(960px,100%);height:min(780px,90vh);height:min(780px,90dvh);overflow:hidden;border-radius:18px;background:#fff;box-shadow:0 18px 55px #0004}
.map-picker-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 18px;border-bottom:1px solid var(--line)}
.map-picker-head strong{display:block;font-size:16px}.map-picker-head small{display:block;margin-top:4px;color:var(--muted)}
.map-picker-head button{width:48px;height:48px;flex:none;border-radius:10px;font-size:26px;color:#54635a}
.map-picker-head button:hover{background:#f0f4ef}
.map-picker-panel iframe{display:block;flex:1;width:100%;border:0;background:#f4f6f2}
@media(max-width:620px){
  .tomb-address-actions{flex-direction:column}.tomb-address-actions .btn{width:100%}
  .map-picker-layer{padding:0}.map-picker-panel{width:100%;height:100vh;height:100dvh;border-radius:0}
  .map-picker-head{padding:10px 14px calc(10px + env(safe-area-inset-top))}
}

/* 分享档案与认领邀请：访客只看到独立的只读预览。 */
.public-preview{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;min-height:calc(100vh - 160px);min-height:calc(100dvh - 160px);padding:20px 0}
.public-preview-brand{display:flex;align-items:center;justify-content:center;gap:10px;max-width:100%;color:var(--green);font-size:23px;font-weight:700}
.public-preview-brand span{min-width:0;overflow-wrap:anywhere;font-size:16px;letter-spacing:2px}
.public-preview-card{width:min(100%,620px);padding:36px 40px}
.public-preview-card>.eyebrow{text-align:center}
.public-preview-card>h1,.public-preview-error h1{margin:8px 0 10px;text-align:center;font-size:25px;line-height:1.4}
.public-preview-card>p{color:var(--muted);line-height:1.8;text-align:center}
.public-preview-summary{display:grid;grid-template-columns:110px minmax(0,1fr);gap:13px;margin:24px 0;padding:19px;border-radius:14px;background:#f1f6f1}
.public-preview-summary span,.public-preview-details span{color:var(--muted)}
.public-preview-summary strong{min-width:0;overflow-wrap:anywhere}
.public-preview-note{margin-top:20px;padding:13px 15px;border-radius:12px;background:#f8f4e9;color:#726a55;line-height:1.7;font-size:12px}
.public-preview-auth-error{color:#a7473a!important}
.public-preview-primary{display:flex;align-items:center;justify-content:center;width:100%;min-height:50px;margin-top:20px;text-decoration:none}
.public-preview-tree{margin:0 0 20px!important;text-align:left!important;font-size:12px}
.public-preview-person{display:flex;align-items:center;gap:17px;margin:14px 0 27px}
.public-preview-person .avatar{width:68px;height:68px;flex:none;font-size:30px}
.public-preview-person h1{margin:0 0 4px;font-size:25px}
.public-preview-person p{margin:0;color:var(--muted);font-size:12px}
.public-preview-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 20px}
.public-preview-details>div{display:grid;gap:6px;min-width:0;padding-bottom:12px;border-bottom:1px solid var(--line)}
.public-preview-details strong{overflow-wrap:anywhere;font-weight:600}
.public-preview-family{margin-top:21px;padding:15px 17px;border:1px solid #e8e9df;border-radius:13px;background:#f8f8f3}
.public-preview-family h2{margin:0 0 8px;color:#435344;font-size:15px}
.public-preview-family>div{display:grid;grid-template-columns:60px minmax(0,1fr);gap:10px;padding:7px 0;border-bottom:1px solid #e8e9df;font-size:12px;line-height:1.6}
.public-preview-family>div:last-child{border-bottom:0}
.public-preview-family span{color:var(--muted)}
.public-preview-family strong{min-width:0;color:#465448;font-weight:600;overflow-wrap:anywhere}
.public-preview-bio{margin-top:24px}
.public-preview-bio h2{font-size:16px}
.public-preview-bio p{white-space:pre-wrap;line-height:1.8}
.public-preview-error{text-align:center}
.claim-card-backdrop{z-index:30;overflow-y:auto;padding:20px}
.claim-invitation-modal{width:min(520px,100%);margin:auto;padding:22px}
.claim-invitation-modal>.modal-head{align-items:flex-start;margin-bottom:15px}
.claim-invitation-modal>.modal-head h3{margin:0 0 4px;font-size:17px}
.claim-invitation-modal>.modal-head small{color:var(--muted);font-size:11px}
.claim-invitation-card{position:relative;overflow:hidden;padding:24px 22px 17px;border:1px solid #e8ddc8;border-radius:20px;background:radial-gradient(ellipse at 50% 0%,#fffdf6 0%,#f7f3e9 72%);color:#273a31;text-align:center}
.claim-invitation-card:before,.claim-invitation-card:after{position:absolute;z-index:0;color:#b5c7b8;opacity:.22;font-size:68px;line-height:1;pointer-events:none}
.claim-invitation-card:before{content:'枝';top:8px;left:8px}.claim-invitation-card:after{content:'脉';right:8px;bottom:50px}
.claim-invitation-card>*{position:relative;z-index:1}
.claim-invitation-eyebrow{color:#8a7350;font-size:11px;font-weight:700;letter-spacing:2px}
.claim-invitation-card h2{margin:12px 0 17px;color:#273a31;font-size:23px;line-height:1.55}
.claim-invitation-target{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:4px;padding:11px 12px;border:1px solid #ead7ad;border-radius:13px;background:#fffaf0;color:#536b5b;font-size:13px}
.claim-invitation-target strong{color:#8a6230;font-size:16px}
.claim-invitation-description{margin:12px 0 18px;color:#69776c;font-size:12px;line-height:1.7}
.claim-invitation-relationship{display:grid;grid-template-columns:minmax(72px,1fr) minmax(70px,.8fr) minmax(72px,1fr);align-items:center;max-width:340px;margin:0 auto 18px}
.claim-person{display:grid;justify-items:center;gap:4px;min-width:0}
.claim-person>i{display:grid;width:48px;height:48px;place-items:center;border:2px solid #d7e3d8;border-radius:50%;background:#edf4ed;color:#55735f;font-size:20px;font-style:normal}
.claim-person.pending>i{border-color:#eadbbf;background:#fff7e8;color:#a37b43}
.claim-person>b{max-width:100%;overflow:hidden;color:#35483d;font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.claim-person>small{color:#89958a;font-size:10px}
.claim-relationship-line{position:relative;display:flex;align-items:center;justify-content:center;height:1px;background:#c6ad7c}
.claim-relationship-line>i{position:absolute;padding:3px 8px;border:1px solid #e7dcc6;border-radius:20px;background:#f9f6ef;color:#83714e;font-size:9px;font-style:normal;white-space:nowrap}
.claim-invitation-qr-wrap{display:flex;align-items:center;justify-content:center;gap:13px;width:max-content;max-width:100%;margin:0 auto;padding:10px 14px;border:1px solid #e9e2d4;border-radius:14px;background:#fff}
.claim-invitation-qr{display:grid;width:112px;height:112px;flex:none;place-items:center;overflow:hidden}
.claim-invitation-qr svg{display:block;width:100%;height:100%}
.claim-invitation-qr-wrap>span{color:#586b5e;font-size:11px;line-height:1.7;text-align:left}
.claim-qr-fallback{color:#8a6c44;font-size:10px;line-height:1.6}
.claim-invitation-footer{margin-top:14px;color:#877b66;font-size:10px;letter-spacing:.5px}
.claim-invitation-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:14px}
.claim-invitation-actions .btn{min-width:0;min-height:46px;padding:0 8px;font-size:12px;white-space:nowrap}
.claim-invitation-url{width:100%;height:34px;margin-top:10px;padding:0 9px;border:1px solid #e5e8e2;border-radius:8px;background:#f8f9f6;color:#78837a;font-size:10px}
@media(max-width:620px){
  .claim-card-backdrop{align-items:end;padding:10px 10px calc(10px + env(safe-area-inset-bottom))}
  .claim-invitation-modal{max-height:calc(100dvh - 20px);overflow-y:auto;padding:17px;border-radius:20px}
  .claim-invitation-card{padding:20px 14px 15px}
  .claim-invitation-card h2{font-size:21px}
  .claim-invitation-qr{width:100px;height:100px}
  .claim-invitation-qr-wrap{padding:9px 10px}
  .claim-invitation-url{height:40px}
  .public-preview{min-height:calc(100dvh - 130px);padding:4px 0 20px}
  .public-preview-card{padding:27px 21px;border-radius:18px}
  .public-preview-card>h1{font-size:21px}
  .public-preview-summary{grid-template-columns:90px minmax(0,1fr);gap:11px;padding:15px;font-size:12px}
  .public-preview-person .avatar{width:58px;height:58px}
  .public-preview-family{padding:12px 13px}
  .public-preview-person h1{font-size:21px}
}

/* H5 原生实现 Ant Design Table 的布局与交互，避免引入整套 React 运行时。 */
.member-list-card{overflow:hidden;background:#fff}
.member-list-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 24px 18px}
.member-list-toolbar h2{margin:0 0 4px;font-size:18px}
.member-list-toolbar p{margin:0;color:#8c8c8c;font-size:12px}
.member-list-search{display:flex;align-items:center;gap:8px;width:min(330px,100%);min-height:42px;padding:0 11px;border:1px solid #d9d9d9;border-radius:7px;background:#fff;transition:border-color .2s,box-shadow .2s}
.member-list-search:focus-within{border-color:#4096ff;box-shadow:0 0 0 2px #1677ff1a}
.member-list-search svg{width:15px;height:15px;flex:none;fill:#8c8c8c}
.member-list-search input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:#262626;font-size:13px}
.member-list-count{padding:0 24px 12px;color:#8c8c8c;font-size:12px}
.member-list-table-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
.member-list-table{width:100%;min-width:735px;border-collapse:collapse;background:#fff;text-align:left;font-size:13px}
.member-list-table th,.member-list-table td{padding:14px 16px;border-bottom:1px solid #f0f0f0;white-space:nowrap}
.member-list-table th{background:#fafafa;color:#262626;font-weight:600}
.member-list-table tbody tr:hover td{background:#fafafa}
.member-list-table tbody tr:last-child td{border-bottom:0}
.member-list-name{display:inline-flex;align-items:center;gap:9px;min-height:38px;padding:0;color:#262626;font-weight:600;text-align:left}
.member-list-name:hover,.member-list-name:focus-visible,.member-list-table .ant-btn-link:hover{color:#1677ff}
.member-list-status{display:inline-flex;align-items:center;min-height:24px;padding:0 8px;border-radius:5px;font-size:11px}
.member-list-status.is-living{background:#f6ffed;color:#389e0d}
.member-list-status.is-deceased{background:#f5f5f5;color:#8c8c8c}
.member-list-status.is-unknown{background:#fff7e6;color:#936b29}
.member-list-placeholder,.member-list-claim-status{display:inline-flex;margin-left:5px;padding:3px 6px;border-radius:4px;font-size:10px}
.member-list-placeholder,.member-list-claim-status.is-pending{background:#fff7e6;color:#ad6800}
.member-list-claim-status.is-claimed{background:#f6ffed;color:#389e0d}
.memorial-ancestor{display:flex;min-width:0;flex-direction:column;transition:transform .18s ease,box-shadow .18s ease}
.memorial-ancestor:hover,.memorial-ancestor:focus-visible{transform:translateY(-2px);box-shadow:0 10px 28px #56391a17;outline:0}
.memorial-family{display:grid;gap:11px;margin:18px 0;padding:14px;border:1px solid #ece5da;border-radius:12px;background:#fbfaf7}
.memorial-family-row{display:grid;grid-template-columns:42px minmax(0,1fr);gap:10px;align-items:start}
.memorial-family-row>strong{color:#8a7150;font-size:11px;line-height:24px}
.memorial-family-row small{display:block;margin:2px 0 7px;color:#7d857f;font-size:10px;line-height:1.5}
.memorial-relation-list{display:flex;flex-wrap:wrap;gap:6px;min-width:0}
.memorial-relation-tag,.memorial-relation-empty{display:inline-flex;max-width:100%;padding:4px 7px;border-radius:5px;font-size:10px;line-height:1.45}
.memorial-relation-tag{overflow-wrap:anywhere;white-space:normal}
.memorial-relation-tag.spouse{background:#fff1f0;color:#a84f48}
.memorial-relation-tag.child{background:#f0f5ff;color:#496d9f}
.memorial-relation-empty{padding-left:0;color:#a5aaa6}
.memorial-family.is-compact{gap:8px;margin:13px 0 0;padding:11px;background:#faf9f6}
.memorial-family.is-compact .memorial-family-row{grid-template-columns:34px minmax(0,1fr);gap:7px}
.memorial-card-tag{margin-top:auto;padding-top:12px}
.memorial-modal .memorial-family{margin-top:0}
@media(max-width:900px){.memorial-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.memorial-grid{grid-template-columns:1fr}.memorial-grid .ancestor:nth-child(3){display:flex}.memorial-family-row{grid-template-columns:38px minmax(0,1fr)}}
.memorial-page{display:grid;gap:20px;max-width:1320px;margin:0 auto}
.memorial-hero{position:relative;display:flex;min-height:188px;align-items:center;justify-content:space-between;gap:24px;overflow:hidden;padding:30px 34px;border:1px solid #e7e1d3;border-radius:22px;background:radial-gradient(ellipse at 82% 12%,#d9e6d5 0,transparent 32%),linear-gradient(112deg,#f5f2e8 0%,#fbfaf6 54%,#eaf0e8 100%)}
.memorial-hero-copy{position:relative;z-index:1;min-width:0}.memorial-hero .eyebrow{margin-bottom:8px;color:#8c795a;letter-spacing:1.4px}.memorial-hero .page-title{margin:0;font-size:30px}.memorial-hero-copy>p{margin:9px 0 0;color:#737c71;font-size:13px;line-height:1.7}.memorial-heading-actions{position:relative;z-index:1;flex:none;gap:9px}.memorial-heading-actions .btn{min-height:46px}.memorial-heading-actions .btn span{margin-right:5px;font-size:16px}
.memorial-hero-ornament{position:absolute;right:245px;bottom:-43px;color:#a7956e12;font-family:serif;font-size:190px;line-height:1;pointer-events:none}
.memorial-overview{display:flex;align-items:center;gap:19px;padding:15px 21px;border:1px solid #ece8dd;border-radius:16px;background:#fffefa}.memorial-overview>div{display:flex;align-items:center;gap:10px}.memorial-overview>div>span:last-child{display:grid;gap:2px}.memorial-overview strong{color:#394b3e;font-size:18px;line-height:1.1}.memorial-overview small{color:#858c82;font-size:10px}.memorial-overview-icon{display:grid;width:38px;height:38px;place-items:center;border-radius:12px;background:#f1eee4;color:#967c4e;font-size:19px}.memorial-overview-icon.map{background:#edf3eb;color:#5d8763}.memorial-overview>i{width:1px;height:28px;background:#e9e6dc}.memorial-overview>p{margin:0 0 0 auto;color:#899087;font-size:11px}
.memorial-festival-panel{margin:0;border:1px solid #e9e4d9;border-radius:16px;background:linear-gradient(120deg,#f8f5ed,#fffefa)}.memorial-festival-panel .festival-panel-head{margin-bottom:13px}.memorial-festival-panel .festival-countdown{border-color:#eee9dd;background:#fff}.memorial-festival-panel .festival-countdown.is-next{border-color:#d8c49e;background:#fffbf2}.memorial-festival-fallback{color:#827968;font-size:12px}
.memorial-ancestors-section{display:grid;gap:14px}.memorial-list-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;padding:3px 2px}.memorial-list-heading .eyebrow{margin-bottom:4px;color:#9a8867;letter-spacing:1.2px}.memorial-list-heading h2{margin:0;color:#38463b;font-size:20px}.memorial-list-heading p{margin:5px 0 0;color:#899087;font-size:11px}.memorial-list-heading>span{flex:none;padding:6px 10px;border:1px solid #e6e8df;border-radius:20px;background:#fff;color:#68796b;font-size:10px}
.ritual-grid.memorial-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.memorial-ancestor{overflow:hidden;padding:0;border:1px solid #e9e5da;border-radius:17px;background:#fffefa;box-shadow:0 3px 12px #49381a08;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}.memorial-ancestor:hover,.memorial-ancestor:focus-visible{transform:translateY(-3px);border-color:#d5c8aa;box-shadow:0 12px 30px #49381a12;outline:0}
.memorial-card-main{display:flex;width:100%;min-width:0;flex:1;flex-direction:column;padding:0;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer}.memorial-card-main:focus-visible{outline:3px solid #93ae8f;outline-offset:-3px}.memorial-quick-actions{display:flex;gap:8px;padding:0 17px 15px}.memorial-quick-actions button{min-height:38px;flex:1;padding:0 10px;border:1px solid #e8e4d9;border-radius:10px;background:#fff;color:#776c54;font-size:10px;transition:background .15s,border-color .15s}.memorial-quick-actions button:hover{border-color:#cfbf9d;background:#fbf8ef}.memorial-quick-actions button:first-child{border-color:#eadfc5;background:#fbf6e9;color:#8a7449}
.memorial-card-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.72;filter:saturate(.72)}.memorial-card-cover.has-photo::before{z-index:0;width:100%;height:100%;border:0;border-radius:0;background:linear-gradient(180deg,#f4efe0a8 0%,#f6f1e8a0 56%,#e8ecdfdc 100%)}.memorial-card-cover.has-photo::after{display:none}.memorial-card-cover.has-photo .memorial-card-seal,.memorial-card-cover.has-photo .memorial-card-generation,.memorial-card-cover.has-photo .memorial-card-cover-label{z-index:1}.memorial-quick-actions button.is-pending{background:#f5f3ed;color:#928b7b;cursor:wait}.memorial-quick-actions button.is-complete{border-color:#cbdcc9;background:#f1f7ef;color:#4c7651}
.memorial-card-cover{position:relative;display:grid;min-height:118px;place-items:center;overflow:hidden;background:radial-gradient(circle at 50% 20%,#fff9e9 0,transparent 38%),linear-gradient(132deg,#e7e2d3,#f3eee3 48%,#e6ece3)}.memorial-card-cover::before,.memorial-card-cover::after{position:absolute;content:"";border:1px solid #a9956a24;border-radius:50%}.memorial-card-cover::before{width:148px;height:148px}.memorial-card-cover::after{width:112px;height:112px}.memorial-card-seal{position:relative;z-index:1;display:grid;width:52px;height:52px;place-items:center;border:1px solid #b8a67d;border-radius:50%;background:#fffaf0d9;color:#806e4e;font-family:serif;font-size:23px;box-shadow:0 4px 14px #60503110}.memorial-card-generation{position:absolute;top:13px;left:14px;padding:5px 8px;border:1px solid #ffffffa8;border-radius:20px;background:#ffffffa1;color:#776c57;font-size:9px;backdrop-filter:blur(8px)}.memorial-card-cover-label{position:absolute;right:13px;bottom:11px;color:#82775f;font-size:9px;letter-spacing:1.8px}
.memorial-card-content{display:flex;min-width:0;flex:1;flex-direction:column;padding:16px 17px 13px}.memorial-card-title{display:flex;align-items:center;justify-content:space-between;gap:10px}.memorial-card-title h2{overflow:hidden;margin:0;color:#344238;font-size:16px;text-overflow:ellipsis;white-space:nowrap}.memorial-card-title p{overflow:hidden;margin:5px 0 0;color:#899087;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.memorial-card-title p span{padding:0 2px;color:#b0a58f}.memorial-card-arrow{display:grid;width:30px;height:30px;flex:none;place-items:center;border-radius:10px;background:#f3f2eb;color:#8a7958;font-size:15px}.memorial-card-intro{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;margin:12px 0 0;color:#70796f;font-size:11px;line-height:1.65}
.memorial-card-content .memorial-family.is-compact{gap:8px;margin:13px 0 10px;padding:10px;border-color:#eeeae1;background:#faf9f5}.memorial-card-content .memorial-family.is-compact .memorial-family-row{grid-template-columns:32px minmax(0,1fr);gap:6px}.memorial-card-content .memorial-family-row>strong{font-size:10px;line-height:22px}.memorial-card-content .memorial-relation-tag,.memorial-card-content .memorial-relation-empty{padding:3px 6px;font-size:9px}.memorial-card-content .memorial-family-row small{margin:2px 0 5px;font-size:9px}
.memorial-card-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;padding-top:11px;border-top:1px solid #f0eee7}.memorial-card-footer>span{display:flex;align-items:center;gap:6px;color:#92978d;font-size:9px}.memorial-card-footer>span i{width:6px;height:6px;border-radius:50%;background:#b5a47d}.memorial-card-footer strong{color:#77704f;font-size:10px;font-weight:600}.memorial-card-footer b{margin-left:4px;font-size:13px}
.memorial-empty{display:grid;justify-items:center;padding:36px 24px;border:1px dashed #dcd9cd;background:#fffefa;text-align:center}.memorial-empty>span{display:grid;width:54px;height:54px;place-items:center;border-radius:17px;background:#f3f0e6;color:#9b8760;font-size:25px}.memorial-empty h2{margin:16px 0 5px;color:#38463b;font-size:16px}.memorial-empty p{max-width:460px;margin:0 0 18px;color:#858d83;font-size:12px;line-height:1.8}
.memorial-directory-toolbar{display:grid;grid-template-columns:minmax(220px,1fr) auto auto;align-items:center;gap:10px}.memorial-search,.memorial-generation-filter{display:flex;min-height:44px;align-items:center;gap:9px;padding:0 12px;border:1px solid #e6e7df;border-radius:12px;background:#fffefa}.memorial-search:focus-within,.memorial-generation-filter:focus-within{border-color:#a8bca7;box-shadow:0 0 0 3px #6d947b14}.memorial-search>span{color:#849184;font-size:21px;line-height:1}.memorial-search input,.memorial-generation-filter select{width:100%;min-width:0;border:0;outline:0;background:transparent;color:#4c5a4e;font:inherit;font-size:11px}.memorial-search input::placeholder{color:#a2a69d}.memorial-generation-filter>span{flex:none;color:#8b9086;font-size:10px}.memorial-generation-filter select{min-width:88px;cursor:pointer}.memorial-filter-count{padding:0 5px;color:#8a9087;font-size:10px;white-space:nowrap}.memorial-ancestor[hidden]{display:none}.memorial-filter-empty{padding:22px 14px;border:1px dashed #e1ded3;border-radius:14px;background:#fffefa;color:#81877e;font-size:12px;line-height:1.7;text-align:center}.memorial-filter-empty[hidden]{display:none}
@media(max-width:900px){.memorial-directory-toolbar{grid-template-columns:minmax(0,1fr) auto auto}.memorial-search{grid-column:1/-1}}
@media(max-width:600px){.memorial-directory-toolbar{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.memorial-search{grid-column:1/-1;min-height:46px}.memorial-generation-filter{min-height:42px;padding:0 9px}.memorial-generation-filter select{min-width:0}.memorial-filter-count{grid-column:1/-1;text-align:right}}
@media(max-width:1000px){.ritual-grid.memorial-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.memorial-hero{padding:26px}.memorial-hero-ornament{right:205px}}
@media(max-width:600px){.memorial-page{gap:13px}.memorial-hero{min-height:0;align-items:flex-start;flex-direction:column;gap:16px;padding:21px 19px;border-radius:17px}.memorial-hero .page-title{font-size:25px}.memorial-hero-copy>p{max-width:290px;font-size:11px}.memorial-heading-actions{width:100%;display:grid;grid-template-columns:1.25fr 1fr;gap:8px}.memorial-heading-actions .btn{min-width:0;min-height:46px;padding:0 9px;font-size:11px;white-space:nowrap}.memorial-hero-ornament{right:17px;bottom:3px;font-size:105px}.memorial-overview{flex-wrap:wrap;gap:12px;padding:12px}.memorial-overview>div{gap:7px}.memorial-overview-icon{width:32px;height:32px;border-radius:10px;font-size:16px}.memorial-overview strong{font-size:16px}.memorial-overview small{font-size:9px}.memorial-overview>i{height:23px}.memorial-overview>p{flex-basis:100%;margin:0;padding:8px 2px 0;border-top:1px solid #efede5;font-size:10px}.memorial-festival-panel{padding:13px}.memorial-festival-panel .festival-panel-head strong{font-size:13px}.memorial-festival-panel .festival-panel-head span{font-size:9px}.memorial-list-heading h2{font-size:18px}.memorial-list-heading p{font-size:10px}.memorial-list-heading>span{padding:5px 8px}.ritual-grid.memorial-grid{grid-template-columns:minmax(0,1fr);gap:11px}.memorial-ancestor{display:grid;grid-template-columns:82px minmax(0,1fr);align-items:stretch;border-radius:14px}.memorial-card-cover{min-height:100%;grid-row:1}.memorial-card-cover::before{width:92px;height:92px}.memorial-card-cover::after{width:70px;height:70px}.memorial-card-seal{width:42px;height:42px;font-size:19px}.memorial-card-generation{top:7px;left:6px;padding:3px 5px;font-size:8px}.memorial-card-cover-label{right:0;bottom:6px;left:0;text-align:center;font-size:7px;letter-spacing:1px}.memorial-card-content{padding:12px 11px 10px}.memorial-card-title h2{font-size:14px}.memorial-card-title p{font-size:9px}.memorial-card-arrow{width:25px;height:25px}.memorial-card-intro{margin-top:8px;font-size:10px}.memorial-card-content .memorial-family.is-compact{gap:6px;margin:9px 0 7px;padding:8px}.memorial-card-content .memorial-family.is-compact .memorial-family-row{grid-template-columns:28px minmax(0,1fr);gap:5px}.memorial-card-footer{padding-top:8px}.memorial-card-footer>span{font-size:8px}.memorial-card-footer strong{font-size:9px}.memorial-empty{padding:28px 17px}}
@media(max-width:600px){.memorial-ancestor{grid-template-columns:82px minmax(0,1fr)}.memorial-card-main{display:grid;grid-column:1/-1;grid-template-columns:82px minmax(0,1fr)}.memorial-card-cover{grid-column:1;grid-row:1}.memorial-card-content{grid-column:2;grid-row:1}.memorial-quick-actions{grid-column:2;padding:0 11px 10px 0}.memorial-quick-actions button{min-height:36px;padding:0 6px;font-size:9px}}
.member-list-table .ant-btn-link{min-height:42px;padding:0;color:#1677ff;font-size:12px}
.member-list-actions{display:flex;align-items:center;gap:14px;white-space:nowrap}
.member-list-empty{padding:45px 16px!important;text-align:center;color:#8c8c8c}
.member-list-pagination{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:16px 24px;border-top:1px solid #f0f0f0;color:#595959;font-size:12px}
.member-list-pagination .ant-pagination{display:flex;align-items:center;gap:7px}
.member-list-pagination .ant-pagination button{min-width:36px;min-height:36px;padding:0 7px;border:1px solid #d9d9d9;border-radius:6px;background:#fff;color:#262626}
.member-list-pagination .ant-pagination button:hover:not(:disabled){border-color:#4096ff;color:#1677ff}
.member-list-pagination .ant-pagination .ant-pagination-item-active{border-color:#1677ff;color:#1677ff;font-weight:600}
.member-list-pagination .ant-pagination button:disabled{color:#bfbfbf;cursor:not-allowed}
.member-list-pagination .ant-pagination-item-ellipsis{padding:0 2px;color:#8c8c8c}
.member-list-pagination select{height:36px;margin-left:4px;padding:0 8px;border:1px solid #d9d9d9;border-radius:6px;background:#fff;color:#262626}
@media(max-width:820px){.tree-toolbar{align-items:flex-start;flex-wrap:wrap;gap:10px}.tree-toolbar .segmented{max-width:100%;overflow-x:auto}.member-list-toolbar{flex-wrap:wrap}}
@media(max-width:520px){
  .tree-toolbar .segmented{width:100%;justify-content:space-between}.tree-toolbar .segmented button{flex:1;min-height:44px;padding:8px 6px;white-space:nowrap}
  .member-list-card{margin:0 -5px}.member-list-toolbar{padding:18px 16px 12px}.member-list-search{width:100%;min-height:48px}
  .member-list-count{padding:0 16px 10px}.member-list-table{min-width:720px;border-collapse:separate;border-spacing:0}
  .member-list-table th,.member-list-table td{padding:12px 13px}
  .member-list-table thead th:first-child{position:sticky;left:0;z-index:2;background:#fafafa;box-shadow:2px 0 5px #0000000d}
  .member-list-name-cell{position:sticky;left:0;z-index:1;width:130px;background:#fff;box-shadow:2px 0 5px #0000000d}
  .member-list-table tbody tr:hover .member-list-name-cell{background:#fafafa}
  .member-list-pagination{justify-content:center;padding:16px}.member-list-pagination>span{width:100%;text-align:center}
  .member-list-pagination .ant-pagination button{min-width:44px;min-height:44px}.member-list-pagination label{width:100%;text-align:center}
}

/* 同一份成员关系的欧式五世页与苏式支脉页。 */
.classic-page{max-width:1180px;margin:0 auto 45px;color:#273b31}
.classic-top{margin-bottom:14px}.classic-top .btn{min-height:48px}
.classic-hero{padding:28px 30px;border-radius:18px;background:linear-gradient(120deg,#244c3b,#47745a);color:#fff}
.classic-hero .eyebrow{color:#d9e9cf}.classic-hero h1{margin:7px 0;font-size:30px}.classic-hero p{margin:0;line-height:1.7;color:#ecf3e9}
.classic-controls{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:16px;padding:16px;border-radius:16px}
.classic-mode{display:grid;grid-template-columns:repeat(3,minmax(170px,1fr));gap:8px;min-width:0;flex:1}.classic-mode button{display:grid;gap:4px;min-width:0;min-height:62px;padding:9px 14px;border:1px solid #dce6dc;border-radius:12px;background:#fff;text-align:left;color:#33463a}
.classic-mode button.active{border-color:#4a8060;background:#edf6ee;box-shadow:0 0 0 2px #4a80601f}
.classic-mode button strong{font-size:14px}.classic-mode button small{font-size:11px;color:#6a7f71}
.classic-filter{display:flex;align-items:center;gap:9px;min-width:0}.classic-filter label{flex:none;font-size:12px;color:#627267}.classic-filter select{width:200px;max-width:100%;min-height:48px;padding:0 10px;border:1px solid #cad9ca;border-radius:9px;background:#fff;color:#273b31}.classic-filter .btn{min-height:48px;white-space:nowrap}
.classic-reading-note{margin:16px 0;padding:12px 15px;border-left:3px solid #76a784;border-radius:7px;background:#f0f6ee;line-height:1.65;font-size:12px;color:#536c59}
.classic-ou,.classic-su{overflow:hidden;border-radius:16px;background:#fff}
.classic-page-turn{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 20px;border-bottom:1px solid #e7ede6}.classic-page-turn .btn{min-height:48px}.classic-page-turn>div{display:grid;gap:3px;text-align:center}.classic-page-turn strong{font-size:17px}.classic-page-turn small{font-size:11px;color:#7a8a7d}
.classic-ou-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}.classic-ou-columns{display:grid;grid-template-columns:repeat(5,minmax(195px,1fr));min-width:975px}
.classic-generation{min-width:0;padding:17px 13px 22px;border-right:1px solid #edf0ea}.classic-generation:last-child{border-right:0}.classic-generation h2{display:flex;align-items:baseline;justify-content:space-between;margin:0 0 13px;padding:0 2px 10px;border-bottom:2px solid #bbd2bc;font-size:16px}.classic-generation h2 span{font-size:11px;font-weight:400;color:#7a8a7d}.classic-generation-members{display:grid;align-content:start;gap:10px}
.classic-person{min-width:0;padding:10px;border:1px solid #e1e9e0;border-radius:11px;background:#fff}.classic-person.is-deceased{opacity:.48;border-color:#929b93}.classic-person-main{display:flex;align-items:center;gap:9px;width:100%;min-height:48px;padding:0;text-align:left;color:#263c2c}.classic-person-main>.avatar{flex:none}.classic-person-main>span:nth-child(2){display:grid;gap:3px;min-width:0;flex:1}.classic-person-main strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}.classic-person-main small{font-size:11px;color:#7a8a7d}.classic-person-main>span:last-child{color:#759178;font-size:20px}.classic-person-main:hover strong{text-decoration:underline}.classic-person-tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:5px}.classic-person-tags:empty{display:none}.classic-tag{padding:2px 6px;border-radius:5px;background:#eef2ea;color:#657667;font-size:10px}.classic-tag.special{background:#fff2dd;color:#885f24}.classic-tag.deceased{background:#e9ece9;color:#4e5950}.classic-parent-note{margin:6px 0 0;line-height:1.45;font-size:10px;color:#718074;overflow-wrap:anywhere}.classic-no-members{color:#8b978b;font-size:12px}
.classic-bio{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:3;margin:8px 0 0;padding-top:7px;border-top:1px dashed #d3ddd1;font-size:11px;line-height:1.5;color:#586c5c;overflow-wrap:anywhere}
.classic-su{padding:20px}.classic-su-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding-bottom:14px;border-bottom:1px solid #e8eee6}.classic-su-head h2{margin:0;font-size:19px}.classic-su-head span{font-size:11px;color:#738776}.classic-branches,.classic-children{margin:0;padding:0;list-style:none}.classic-branches{padding-top:16px}.classic-branch{position:relative;margin:0 0 8px}.classic-branch-line{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.classic-branch-line>.classic-person{width:min(260px,100%)}.classic-spouses{display:flex;flex-wrap:wrap;gap:6px}.classic-spouse{min-height:42px;padding:6px 10px;border:1px solid #d9e3da;border-radius:8px;background:#f8faf7;color:#526c59;font-size:12px}.classic-expand{min-height:44px;padding:6px 10px;border-radius:8px;background:#edf5ed;color:#346343;font-size:12px}.classic-expand span{margin-left:5px;color:#67836a}.classic-children{margin:7px 0 0 19px;padding-left:17px;border-left:2px solid #a8c5ad}.classic-children>.classic-branch:before{position:absolute;top:27px;left:-17px;width:13px;border-top:2px solid #a8c5ad;content:''}.classic-footnote{margin:15px 18px;color:#839083;font-size:11px;line-height:1.6}.classic-empty{padding:35px;text-align:center;color:#687b6d}
.classic-generation-map{overflow:hidden}.classic-map-summary{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:22px 24px;border-bottom:1px solid #e5ece4;background:linear-gradient(110deg,#f8fbf6,#eef5ec)}.classic-map-summary .eyebrow{color:#76917c}.classic-map-summary h2{margin:4px 0;font-size:21px}.classic-map-summary p{margin:0;color:#718075;font-size:12px}.classic-map-summary-stats{display:flex;gap:8px}.classic-map-summary-stats span{display:grid;min-width:72px;padding:9px 12px;border:1px solid #dce7da;border-radius:10px;background:#fff;text-align:center;color:#748075;font-size:10px}.classic-map-summary-stats b{color:#315842;font-size:19px}.classic-map-list{margin:0;padding:20px 24px 24px;list-style:none}.classic-map-generation{display:grid;grid-template-columns:105px minmax(0,1fr);gap:18px;position:relative}.classic-map-generation+.classic-map-generation{padding-top:20px}.classic-map-axis{display:flex;align-items:center;align-self:stretch;flex-direction:column;position:relative;padding-top:2px;text-align:center}.classic-map-axis>span{z-index:1;min-width:83px;padding:7px 9px;border:1px solid #98b49e;border-radius:999px;background:#f4f8f1;color:#315c41;font-weight:700;font-size:13px}.classic-map-axis small{z-index:1;margin-top:5px;padding:1px 5px;background:#fff;color:#7b8b7d;font-size:10px}.classic-map-axis i{position:absolute;top:36px;bottom:-24px;width:2px;background:linear-gradient(#9fbea6,#dbe7da)}.classic-map-generation-body{min-width:0;padding:15px;border:1px solid #e0e9df;border-radius:14px;background:#fbfcfa}.classic-map-generation-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px;padding-bottom:10px;border-bottom:1px dashed #d7e2d5}.classic-map-words,.classic-map-status{display:flex;flex-wrap:wrap;gap:6px}.classic-map-word,.classic-map-status span{padding:4px 7px;border-radius:6px;background:#edf5eb;color:#4f6c56;font-size:10px}.classic-map-word b{margin-right:2px;color:#315a3f;font-size:13px}.classic-map-word.is-empty{background:#f2f3f1;color:#929a93}.classic-map-status{justify-content:flex-end}.classic-map-status span{background:#f2f4f1;color:#708074}.classic-map-people{display:grid;grid-template-columns:repeat(auto-fill,minmax(205px,1fr));gap:8px}.classic-map-person{display:flex;align-items:center;gap:9px;min-width:0;min-height:68px;padding:8px 9px;border:1px solid #dfe7de;border-radius:10px;background:#fff;text-align:left;color:#2f4435}.classic-map-person:hover{border-color:#82a88c;box-shadow:0 3px 10px #385b4014}.classic-map-person.is-mine{border-color:#4f8c62;background:#f1f8f1;box-shadow:inset 3px 0 #4f8c62}.classic-map-person.is-deceased{opacity:.48;border-color:#929b93}.classic-map-person>.avatar{flex:none}.classic-map-person-main{display:grid;gap:2px;min-width:0;flex:1}.classic-map-person-main strong,.classic-map-person-main small,.classic-map-person-main em{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classic-map-person-main strong{font-size:13px}.classic-map-person-main small{color:#708075;font-size:10px}.classic-map-person-main em{color:#8a958d;font-style:normal;font-size:9px}.classic-map-person-status{flex:none;padding:3px 5px;border-radius:5px;background:#eef3ed;color:#65776a;font-size:9px}
.lineage-chart{overflow:hidden;background:#fbf8ef}.lineage-chart-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:22px 24px;border-bottom:1px solid #d9ccb1;background:linear-gradient(110deg,#f7f1df,#efe3c7)}.lineage-chart-head .eyebrow{color:#956f3a}.lineage-chart-head h2{margin:4px 0;color:#432e20;font-family:STKaiti,KaiTi,serif;font-size:24px}.lineage-chart-head p{margin:0;color:#806c52;font-size:12px}.lineage-chart-stats{display:flex;gap:8px}.lineage-chart-stats span{display:grid;min-width:66px;padding:8px 11px;border:1px solid #d8c6a4;border-radius:4px;background:#fffaf0;text-align:center;color:#8b7455;font-size:10px}.lineage-chart-stats b{color:#8d261f;font-family:Georgia,serif;font-size:19px}.lineage-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 18px;border-bottom:1px solid #e2d8c3;background:#fffdf8}.lineage-depth,.lineage-zoom{display:flex;align-items:center;gap:7px}.lineage-depth>span{margin-right:3px;color:#756550;font-size:11px}.lineage-depth button,.lineage-zoom button{min-width:42px;min-height:38px;padding:5px 10px;border:1px solid #d8cdb8;border-radius:5px;background:#fff;color:#624f39;font-size:11px}.lineage-depth button.active{border-color:#8d261f;background:#8d261f;color:#fff}.lineage-zoom span{min-width:43px;text-align:center;color:#756550;font-size:11px}.lineage-legend{display:flex;align-items:center;flex-wrap:wrap;gap:14px;padding:9px 18px;border-bottom:1px solid #e7decc;background:#f9f4e8;color:#77664f;font-size:10px}.lineage-legend span{display:flex;align-items:center;gap:5px}.lineage-legend i{display:inline-block;width:18px;height:8px;border:1px solid #7c694f;background:#fffaf0}.lineage-legend .lineage-legend-spouse{border-color:#a34035;background:#f7e8dc}.lineage-legend .lineage-legend-special{border-style:dashed;border-color:#7e5c94;background:#f2ebf5}.lineage-legend .lineage-pan-tip{margin-left:auto;color:#9a876b}.lineage-scroll{overflow:auto;max-height:72vh;padding:28px 20px 36px;-webkit-overflow-scrolling:touch;background-color:#f8f2e3;background-image:linear-gradient(#7d624012 1px,transparent 1px),linear-gradient(90deg,#7d62400a 1px,transparent 1px);background-size:24px 24px}.lineage-paper{width:max-content;min-width:100%;transform-origin:top center}.lineage-tree,.lineage-tree ul{display:flex;justify-content:center;position:relative;margin:0;padding:28px 0 0;list-style:none}.lineage-tree{min-width:max-content;padding-top:0}.lineage-tree li{position:relative;padding:28px 7px 0;text-align:center}.lineage-tree>li{padding-top:0}.lineage-tree li:before,.lineage-tree li:after{position:absolute;top:0;right:50%;width:50%;height:28px;border-top:1.5px solid #6f5b40;content:''}.lineage-tree li:after{right:auto;left:50%;border-left:1.5px solid #6f5b40}.lineage-tree li:only-child:before,.lineage-tree li:only-child:after{display:none}.lineage-tree li:only-child{padding-top:0}.lineage-tree li:first-child:before,.lineage-tree li:last-child:after{border:0}.lineage-tree li:last-child:before{border-right:1.5px solid #6f5b40;border-radius:0 5px 0 0}.lineage-tree li:first-child:after{border-radius:5px 0 0}.lineage-tree ul:before{position:absolute;top:0;left:50%;height:28px;border-left:1.5px solid #6f5b40;content:''}.lineage-node-wrap{display:grid;justify-items:center;position:relative}.lineage-family{position:relative;width:184px;border:1.5px solid #6e5b42;border-radius:3px;background:#fffdf6;box-shadow:0 3px 8px #4e391012;color:#443425}.lineage-family.is-deceased{opacity:.48;border-color:#858178}.lineage-family.is-mine{border-color:#8d261f;box-shadow:0 0 0 2px #8d261f24}.lineage-generation-seal{position:absolute;top:-9px;left:8px;padding:2px 6px;border:1px solid #9a4338;border-radius:2px;background:#fff8eb;color:#8d261f;font-family:STKaiti,KaiTi,serif;font-size:10px}.lineage-person{display:grid;width:100%;min-height:75px;padding:17px 10px 8px;background:transparent;text-align:center;color:#443425}.lineage-person small{color:#9a876c;font-size:9px}.lineage-person strong{margin:2px 0;color:#2f241a;font-family:STKaiti,KaiTi,serif;font-size:19px}.lineage-person span{color:#806f59;font-size:9px}.lineage-spouses{display:grid;border-top:1px solid #ded2bb}.lineage-spouse{display:grid;grid-template-columns:50px minmax(0,1fr);min-height:34px;padding:0 8px;background:#f8eee2;text-align:left}.lineage-spouse+.lineage-spouse{border-top:1px dashed #d9c7aa}.lineage-spouse span{align-self:center;color:#9a4a3d;font-size:9px}.lineage-spouse strong{align-self:center;overflow:hidden;color:#543a2c;font-family:STKaiti,KaiTi,serif;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.lineage-spouse.is-deceased{opacity:.48}.lineage-family footer{display:flex;align-items:center;justify-content:space-between;gap:5px;padding:6px 8px;border-top:1px solid #e1d6c0;background:#f6f0e4;color:#8a785f;font-size:8px}.lineage-family footer button{min-height:28px;padding:2px 5px;border:1px solid #cab99b;border-radius:3px;background:#fffaf0;color:#795938;font-size:8px}.lineage-relation-tag{z-index:2;margin-bottom:-6px;padding:2px 6px;border:1px dashed #76528c;border-radius:9px;background:#f5edf8;color:#704786;font-size:8px}.lineage-more{margin-top:8px;min-height:32px;padding:4px 8px;border:1px dashed #ad9270;border-radius:4px;background:#fffaf0;color:#876c4a;font-size:9px}
.lineage-union-tag{z-index:2;margin-bottom:-6px;padding:2px 6px;border:1px solid #b78858;border-radius:9px;background:#fff5df;color:#815225;font-size:8px}.lineage-union-tag+.lineage-relation-tag{margin-top:8px}
.feedback-icon-btn{color:#657c70}.feedback-page{max-width:1080px;margin:0 auto 40px}.feedback-hero{display:flex;align-items:center;justify-content:space-between;gap:30px;margin-bottom:18px;padding:30px 34px;border-radius:22px;background:linear-gradient(128deg,#244f40,#4e7a63);color:#fff;box-shadow:0 14px 34px #254b3924}.feedback-hero h1{margin:5px 0 10px;font-size:30px}.feedback-hero p{max-width:620px;margin:0;color:#dfece4;line-height:1.8}.feedback-hero .eyebrow{color:#c8dfcf}.feedback-author{display:grid;flex:none;min-width:160px;padding:17px 20px;border:1px solid #ffffff30;border-radius:16px;background:#ffffff10;text-align:center}.feedback-author span,.feedback-author small{color:#d2e3d8;font-size:11px}.feedback-author strong{margin:4px 0;font-size:22px}.feedback-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr);gap:18px}.feedback-form-card .field{margin-bottom:16px}.feedback-form-card .field label{display:block;margin-bottom:7px;color:#4f6257;font-size:12px}.feedback-form-card input,.feedback-form-card select,.feedback-form-card textarea{width:100%;min-height:46px;padding:11px 12px;border:1px solid #dbe3dc;border-radius:10px;background:#fff;color:#2f4037;outline:0}.feedback-form-card textarea{resize:vertical;line-height:1.7}.feedback-form-card input:focus,.feedback-form-card select:focus,.feedback-form-card textarea:focus{border-color:#4f8068;box-shadow:0 0 0 3px #4f806817}.feedback-form-card .field small{display:block;margin-top:6px;color:#98a19b;font-size:10px}.feedback-submit{width:100%;min-height:48px}.feedback-submit:disabled{opacity:.65;cursor:wait}.feedback-support{position:relative;overflow:hidden;background:linear-gradient(150deg,#fffdf8,#f7f0df)}.support-heart{display:grid;width:46px;height:46px;place-items:center;margin-bottom:16px;border-radius:15px;background:#f4dfd6;color:#a45c4b;font-size:23px}.feedback-support h2{margin:4px 0 10px;color:#4a392d;font-size:20px}.feedback-support>p{margin:0 0 16px;color:#75685d;line-height:1.8}.feedback-support>small{display:block;margin-top:16px;color:#9a8e84;font-size:10px;line-height:1.6}.support-qr-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.support-qr-card{margin:0;padding:10px;border:1px solid #eadfca;border-radius:13px;background:#fff;text-align:center}.support-qr-card img{display:block;width:100%;aspect-ratio:1;object-fit:contain;border-radius:7px}.support-qr-card figcaption{display:grid;gap:2px;margin-top:7px}.support-qr-card strong{font-size:12px}.support-qr-card span{color:#9c8f80;font-size:9px}.support-not-configured{padding:24px 15px;border:1px dashed #d8c6a6;border-radius:12px;background:#fffaf0;color:#917d61;text-align:center;font-size:12px}.feedback-history{margin-top:25px}.feedback-history>.section-head{padding:0 4px}.feedback-item{margin-bottom:10px;padding:17px 20px;border:1px solid var(--line);border-radius:15px;background:#fff;box-shadow:0 4px 13px #3e544709}.feedback-item-head{display:flex;align-items:center;gap:8px}.feedback-item-head strong{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.feedback-kind,.feedback-status{flex:none;padding:3px 7px;border-radius:999px;font-size:10px}.feedback-kind{background:#ecf3ee;color:#54725f}.feedback-status{background:#fff4dd;color:#9a6d23}.feedback-status.processing{background:#e8f2fb;color:#39759d}.feedback-status.resolved{background:#e8f5ec;color:#32724a}.feedback-item>p{margin:12px 0;line-height:1.75;color:#5d6d63;white-space:pre-wrap;overflow-wrap:anywhere}.feedback-item footer{display:flex;gap:12px;color:#9ba49e;font-size:10px}.feedback-reply{margin-top:13px;padding:10px 12px;border-left:3px solid #6c997c;border-radius:6px;background:#f1f7f3;color:#587060;font-size:12px;line-height:1.7}.feedback-reply b{margin-right:8px;color:#35634a}.feedback-empty{border:1px dashed #d6ded7;border-radius:15px;background:#fff}
.feedback-layout-single{grid-template-columns:minmax(0,760px);justify-content:center}
.bottom-nav{display:none}.site-footer{display:grid;grid-template-columns:auto minmax(260px,1fr) auto;align-items:center;gap:34px;margin:10px 42px 0;padding:24px 0 28px;border-top:1px solid var(--line);color:#69756e}.site-footer-brand{display:flex;align-items:center;gap:10px}.site-footer-brand strong,.site-footer-brand small{display:block}.site-footer-brand strong{color:#34433b;font-size:14px}.site-footer-brand small{margin-top:3px;color:#9aa39d;font-size:9px;letter-spacing:1px}.site-footer-copy p{margin:0 0 5px;line-height:1.6;font-size:11px}.site-footer-copy small{color:#a4aca7;font-size:9px}.site-footer nav{display:flex;align-items:center;gap:5px}.site-footer nav button{min-height:40px;padding:0 10px;border-radius:9px;color:#708078;font-size:11px}.site-footer nav button:hover{background:#e9f1eb;color:var(--green)}.site-footer nav .footer-feedback{background:var(--green-2);color:var(--green);font-weight:600}
@media(max-width:900px){.classic-controls{align-items:stretch;flex-direction:column}.classic-filter select{flex:1;width:auto}}
@media(max-width:820px){.app-shell{padding-bottom:calc(92px + env(safe-area-inset-bottom))}.site-footer{display:none!important}.bottom-nav{position:fixed;right:10px;bottom:calc(8px + env(safe-area-inset-bottom));left:10px;z-index:18;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));align-items:end;min-height:68px;padding:7px 5px 5px;border:1px solid #dce5df;border-radius:20px;background:#fffdfbf2;box-shadow:0 12px 38px #26332c2b;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}.bottom-nav button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;min-width:0;min-height:54px;padding:4px 1px;border-radius:12px;color:#86918b}.bottom-nav button:active{background:#edf4ef}.bottom-nav .bottom-icon{width:21px;height:21px;fill:currentColor}.bottom-nav label{max-width:100%;overflow:hidden;font-size:9px;line-height:1.2;text-overflow:ellipsis;white-space:nowrap;pointer-events:none}.bottom-nav button.active{color:var(--green);font-weight:700}.bottom-nav button.active:after{position:absolute;bottom:2px;width:17px;height:3px;border-radius:5px;background:var(--green);content:''}.bottom-nav button{position:relative}.bottom-nav .nav-main{transform:translateY(-10px);color:var(--green)}.bottom-nav .nav-main span{display:grid;width:48px;height:48px;place-items:center;border:4px solid var(--bg);border-radius:50%;background:var(--green);box-shadow:0 7px 16px #2d705b4a;color:#fff;font-size:28px;font-weight:300;line-height:1}.bottom-nav .nav-main label{margin-top:-1px;color:#52685c;font-weight:700}.bottom-nav .nav-main:active{background:transparent}.bottom-nav .nav-main:active span{transform:scale(.96)}}
@media(max-width:360px){.bottom-nav{right:5px;left:5px}.bottom-nav label{font-size:8px}.bottom-nav .bottom-icon{width:19px;height:19px}}
@media(max-width:760px){.feedback-page{margin-bottom:85px}.feedback-hero{align-items:flex-start;flex-direction:column;padding:24px 20px}.feedback-hero h1{font-size:25px}.feedback-author{width:100%;grid-template-columns:auto 1fr;align-items:center;min-width:0;text-align:left}.feedback-author small{grid-column:1/-1;margin-top:5px}.feedback-layout{grid-template-columns:1fr}.feedback-support{order:2}.feedback-item{padding:15px}.feedback-item-head{align-items:flex-start;flex-wrap:wrap}.feedback-item-head strong{width:calc(100% - 80px);order:2}.feedback-status{margin-left:auto}.support-qr-card{padding:8px}}
@media(max-width:620px){.classic-page{margin-bottom:90px}.classic-hero{padding:24px 19px}.classic-hero h1{font-size:25px}.classic-controls{padding:12px}.classic-mode{grid-template-columns:repeat(3,minmax(148px,1fr));width:100%;overflow-x:auto;scroll-snap-type:x mandatory}.classic-mode button{min-width:0;padding:9px;scroll-snap-align:start}.classic-mode button strong{font-size:12px}.classic-mode button small{font-size:10px}.classic-filter{flex-wrap:wrap}.classic-filter label{width:100%}.classic-filter select{min-width:0}.classic-page-turn{gap:5px;padding:13px 8px}.classic-page-turn .btn{padding:8px;font-size:11px}.classic-page-turn strong{font-size:13px}.classic-page-turn small{font-size:10px}.classic-ou-scroll{scroll-snap-type:x mandatory}.classic-ou-columns{grid-template-columns:repeat(5,minmax(190px,75vw));min-width:0}.classic-generation{scroll-snap-align:start}.classic-su{padding:15px}.classic-su-head{display:grid}.classic-children{margin-left:9px;padding-left:12px}.classic-children>.classic-branch:before{left:-12px;width:9px}.classic-branch-line>.classic-person{width:100%}.classic-spouses{max-width:100%}.classic-map-summary{align-items:flex-start;flex-direction:column;padding:18px 15px}.classic-map-summary-stats{width:100%}.classic-map-summary-stats span{min-width:0;flex:1}.classic-map-list{padding:15px 12px 20px}.classic-map-generation{grid-template-columns:1fr;gap:8px}.classic-map-generation+.classic-map-generation{padding-top:22px}.classic-map-axis{align-items:flex-start;min-height:34px}.classic-map-axis small{position:absolute;top:7px;left:91px}.classic-map-axis i{top:32px;bottom:-23px;left:17px}.classic-map-generation-body{padding:11px}.classic-map-generation-head{align-items:flex-start;flex-direction:column}.classic-map-status{justify-content:flex-start}.classic-map-people{grid-template-columns:1fr}.classic-map-person{min-height:72px}}
@media(max-width:620px){.lineage-chart-head{align-items:flex-start;flex-direction:column;padding:18px 15px}.lineage-chart-head h2{font-size:21px}.lineage-chart-stats{width:100%}.lineage-chart-stats span{min-width:0;flex:1}.lineage-toolbar{align-items:flex-start;flex-direction:column;padding:10px 12px}.lineage-depth,.lineage-zoom{width:100%}.lineage-depth button{flex:1}.lineage-zoom{justify-content:flex-end}.lineage-legend{gap:8px;padding:8px 12px}.lineage-legend .lineage-pan-tip{width:100%;margin-left:0}.lineage-scroll{max-height:68vh;padding:24px 12px 32px}.lineage-family{width:166px}.lineage-tree li{padding-right:5px;padding-left:5px}}

.lineage-fullscreen-active{overflow:hidden}
.lineage-chart.is-lineage-fullscreen{position:fixed;inset:0;z-index:1000;display:flex;flex-direction:column;width:100vw;height:100vh;height:100dvh;min-height:0;margin:0;border:0;border-radius:0;background:#fbf8ef}
.lineage-chart.is-lineage-fullscreen .lineage-scroll{flex:1;min-height:0;max-height:none}
.lineage-fullscreen-active .modal-backdrop{z-index:1100}
.lineage-fullscreen-button{border-color:#a9bcae!important;color:#315842!important;font-weight:600!important;white-space:nowrap}
@media(max-width:620px){
  .lineage-depth{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
  .lineage-depth>span{grid-column:1/-1}
  .lineage-depth button{min-width:0;padding:5px 3px;font-size:10px}
  .lineage-zoom{flex-wrap:wrap;gap:5px}
  .lineage-chart.is-lineage-fullscreen .lineage-chart-head{padding-top:max(14px,env(safe-area-inset-top))}
  .lineage-chart.is-lineage-fullscreen .lineage-scroll{max-height:none;padding-bottom:calc(28px + env(safe-area-inset-bottom))}
}

/* Keep QR codes large enough to scan, including on narrow phones. */
.support-qr-card img{width:min(100%,230px);height:auto;aspect-ratio:auto;margin-inline:auto}
@media(max-width:620px){.support-qr-grid{grid-template-columns:minmax(0,1fr)}.support-qr-card{padding:14px}.support-qr-card img{width:min(100%,260px)}}

/* Family permissions and handoff: one readable, touch-friendly column on phones. */
@media(max-width:820px){
  .admin-team.card.pad{min-width:0;padding:18px 14px}
  .admin-team .section-head{align-items:flex-start;flex-direction:column;gap:10px}
  .admin-team .section-head>div{min-width:0}
  .admin-team .section-head span{line-height:1.5}
  .admin-team .admin-team-row{grid-template-columns:minmax(0,1fr);gap:14px}
  .admin-team .admin-list{grid-template-columns:minmax(0,1fr)}
  .admin-team .admin-person{min-width:0;flex-wrap:wrap;padding:12px}
  .admin-team .admin-person .grow{flex:1}
  .admin-team .admin-person strong{font-size:13px;overflow-wrap:anywhere}
  .admin-team .admin-person small{font-size:11px;line-height:1.5}
  .admin-team .admin-person .btn{min-height:48px;padding:0 12px;font-size:12px}
  .admin-team .assign-box{display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch;gap:10px;max-width:none;min-width:0;margin-top:16px;padding:14px;border:1px solid var(--line);border-radius:14px;background:#fbfaf7}
  .admin-team .admin-team-row>.assign-box{margin-top:0}
  .admin-team .assign-box label{position:static;margin:0;color:var(--ink);font-size:13px;font-weight:600;line-height:1.5}
  .admin-team .assign-box select,.admin-team .assign-box input{width:100%;min-width:0;min-height:48px;margin:0;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink)}
  .admin-team .assign-box .btn{width:100%;min-height:48px;padding:0 12px;font-size:13px}
  .admin-team .section-manage-row{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;padding:12px 0;border-top:1px solid var(--line)}
  .admin-team .section-manage-row .grow{min-width:0;font-size:12px;overflow-wrap:anywhere}
  .admin-team .section-manage-row .btn{min-height:48px}
}

.feedback-item footer{align-items:center;flex-wrap:wrap}
.feedback-delete{min-height:44px;margin-left:auto;padding:0 12px;border-radius:9px;color:#a4534b;font-size:12px;font-weight:600}
.feedback-delete:hover,.feedback-delete:focus-visible{background:#fff0ed;color:#8e3d35}
.feedback-pagination{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:14px;color:var(--muted);font-size:12px}
.feedback-pagination button{min-height:44px;padding:0 14px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--green);font-weight:600}
.feedback-pagination button:disabled{opacity:.45;cursor:not-allowed}

/* Signed-in homepage: one clear primary action, then progress and discovery. */
.home-page{max-width:1100px;margin:0 auto}
.home-lead{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(300px,.9fr);gap:18px;align-items:stretch}
.home-hero{display:flex;align-items:center;min-width:0;min-height:316px;padding:34px 36px;background:radial-gradient(circle at 88% 14%,#ffffff1f 0 13%,transparent 14%),linear-gradient(125deg,#214c3e 0%,#337359 70%,#6e9b77 100%);color:#fff}
.home-hero:after{position:absolute;right:-44px;bottom:-142px;width:350px;height:350px;border:1px solid #ffffff2b;border-radius:50%;content:'';pointer-events:none}
.home-hero-copy{position:relative;z-index:1;min-width:0;width:100%}
.home-hero .eyebrow{color:#c9e6d3;letter-spacing:1.2px}
.home-hero .home-greeting{max-width:none;margin:0 0 8px;color:#e2f0e6;font-size:13px}
.home-hero h1{margin:0 0 10px;font-size:clamp(26px,3vw,37px);line-height:1.3;overflow-wrap:anywhere}
.home-hero .home-description{display:-webkit-box;max-width:520px;margin:0;color:#dfede2;line-height:1.75;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.home-hero-meta{display:flex;gap:9px;flex-wrap:wrap;margin-top:18px}
.home-hero-meta span{padding:5px 10px;border:1px solid #ffffff3b;border-radius:999px;background:#ffffff13;color:#f0f9f1;font-size:11px}
.home-hero .button-row{margin-top:24px}
.home-hero .btn{min-height:48px;background:#fff;color:#285d47}
.home-hero .btn.secondary{border-color:#ffffff75;background:#ffffff12;color:#fff}
.home-hero .btn.home-manage-action{border-color:#b7d8c1;background:#244f41;color:#fff}
.home-hero-seal{position:absolute;right:38px;bottom:22px;display:grid;place-items:center;width:160px;height:160px;border:2px solid #ffffff25;border-radius:50%;color:#ffffff24;font-family:STKaiti,KaiTi,serif;font-size:76px;pointer-events:none}
.home-activity{min-width:0;min-height:316px;padding:24px!important}
.home-activity .section-head{align-items:flex-start;gap:8px;margin-bottom:16px}
.home-activity h2,.home-section-head h2,.home-lower h2{margin:0;font-size:18px;line-height:1.35}
.home-activity .eyebrow,.home-lower .eyebrow{margin-bottom:5px}
.home-activity .section-head>span{padding-top:4px;text-align:right;font-size:11px}
.home-activity .notice{display:block;min-height:79px;margin-bottom:8px;padding:13px 14px;background:#f7f3e8;color:#79654e;font-size:12px;line-height:1.8}
.home-activity-link{display:flex;align-items:center;gap:11px;width:100%;min-height:63px;padding:9px 4px;border-bottom:1px solid var(--line);text-align:left}
.home-activity-link:last-child{border-bottom:0}
.home-activity-link>span:nth-child(2){display:grid;min-width:0;gap:3px;flex:1}
.home-activity-link strong{font-size:13px}
.home-activity-link small{overflow:hidden;color:var(--muted);font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.home-activity-link i{color:var(--green);font-size:18px;font-style:normal}
.home-activity-icon{display:grid;place-items:center;flex:none;width:39px;height:39px;border-radius:12px;background:#e6f2e9;color:#3a8061;font-size:18px}
.home-activity-icon.memorial{background:#f7ece0;color:#a37144}
.home-activity-link:hover,.home-member:hover{background:#f7faf6}
.home-progress,.home-shortcuts{margin-top:25px}
.home-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:13px;padding:0 2px}
.home-section-head .eyebrow{display:block;margin-bottom:4px}
.home-section-head>button{min-height:44px;padding:0 8px;color:var(--green);font-size:12px;font-weight:600;white-space:nowrap}
.home-stats{gap:12px}
.home-stats .stat-card{min-width:0;min-height:134px;padding:20px 22px}
.home-stats .stat-card p{margin-bottom:11px}
.home-stats .stat-card .progress{margin-top:12px}
.home-quick-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.home-quick-link{position:relative;display:grid;justify-items:start;align-content:center;gap:5px;min-width:0;min-height:132px;padding:16px 18px;border:1px solid var(--line);border-radius:18px;background:var(--paper);box-shadow:var(--shadow);text-align:left}
.home-quick-link:hover,.home-quick-link:focus-visible{border-color:#a8c9b4;background:#f7fbf7;transform:translateY(-2px)}
.home-quick-link strong{font-size:14px}
.home-quick-link small{color:var(--muted);font-size:11px}
.home-quick-link i{position:absolute;top:15px;right:16px;color:#a0b5a6;font-size:16px;font-style:normal}
.home-quick-icon{display:grid;place-items:center;width:37px;height:37px;margin-bottom:5px;border-radius:11px;background:#e5f0e7;color:#3f785c;font-family:STKaiti,KaiTi,serif;font-size:19px}
.home-quick-icon.tree{background:#e5edf4;color:#4b7693}.home-quick-icon.classic{background:#f7ecdf;color:#a47541}.home-quick-icon.generations{background:#f1e9f3;color:#8a668f}
.home-lower{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:22px}
.home-lower>.card{min-width:0;min-height:254px}
.home-lower .section-head{gap:8px;margin-bottom:10px}
.home-lower .btn.ghost{min-height:44px;white-space:nowrap}
.home-member{width:100%;min-height:58px;text-align:left}
.home-member .avatar{flex:none;width:36px;height:36px;font-size:12px}
.home-member .grow{display:grid;gap:4px}
.home-member strong{font-size:12px}
.home-member small{color:var(--muted);font-size:10px}
.home-list-arrow{color:#8dad97;font-size:17px}
.home-memories .ritual-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.home-memory{display:block;width:100%;min-width:0;text-align:left}
.home-memory .portrait{height:82px;margin-bottom:9px}
.home-memory strong,.home-memory small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.home-memory strong{font-size:13px}.home-memory small{margin-top:4px;color:var(--muted);font-size:10px}
.home-empty{grid-column:1/-1;padding:28px 12px;color:var(--muted);font-size:12px;line-height:1.7;text-align:center}
.home-page>.migration-feature{margin-top:22px}
@media(max-width:820px){.home-lead,.home-lower{grid-template-columns:minmax(0,1fr)}.home-hero{min-height:285px}.home-activity{min-height:0}.home-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.home-hero{min-height:0;padding:26px 22px}.home-hero h1{font-size:28px}.home-hero .home-greeting{font-size:12px}.home-hero-seal{right:8px;bottom:22px;font-size:58px}.home-hero .button-row{gap:8px}.home-hero .btn{flex:1;min-width:125px;padding:0 10px;font-size:12px}.home-activity{padding:20px!important}.home-activity .section-head>span{max-width:105px}.home-progress,.home-shortcuts{margin-top:22px}.home-section-head h2{font-size:17px}.home-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.home-stats .stat-card{min-height:123px;padding:13px 10px}.home-stats .stat-card p{min-height:28px;margin-bottom:6px;font-size:10px}.home-stats .stat-card strong{font-size:22px}.home-stats .stat-icon{width:27px;height:27px}.home-quick-grid{gap:9px}.home-quick-link{min-height:118px;padding:13px}.home-quick-link strong{font-size:12px}.home-quick-link small{font-size:10px}.home-quick-link i{top:12px;right:12px}.home-lower{gap:14px}.home-lower>.card{padding:18px}.home-memories .ritual-grid{gap:8px}.home-memory{padding:10px}.home-memory .portrait{height:69px}}
@media(max-width:520px){.home-hero-actions .home-manage-action{flex-basis:100%}}

/* Give the holographic canvas the full reading width; supporting details follow it. */
.tree-page.is-holographic .tree-page-heading{align-items:flex-end;gap:18px;margin-bottom:18px}
.tree-page.is-holographic .tree-page-heading>div:first-child{min-width:0}
.tree-page.is-holographic .tree-page-heading .button-row{justify-content:flex-end}
.tree-page.is-holographic .tree-page-heading .btn{min-height:42px;white-space:nowrap}
.tree-page.is-holographic .tree-toolbar{margin-bottom:14px}
.tree-page.is-holographic .tree-layout{grid-template-columns:minmax(0,1fr);gap:14px}
.tree-page.is-holographic .canvas-card{min-width:0;min-height:0;height:700px;border-color:#e0e9df;border-radius:22px;background:#f0f4f0}
.tree-page.is-holographic .tree-canvas{height:100%}
.tree-page.is-holographic .canvas-head{justify-content:flex-end;gap:8px;left:18px;right:18px;top:16px}
.tree-page.is-holographic .canvas-title{margin-right:auto;border:1px solid #e4ebe3;color:#415e4d;font-weight:600}
.tree-page.is-holographic .zoom-actions{gap:2px;border:1px solid #e4ebe3;box-shadow:0 4px 15px #28473214}
.tree-page.is-holographic .tree-orientation-actions{display:flex;gap:2px;padding:2px;border:1px solid #e4ebe3;border-radius:10px;background:#ffffffe8;box-shadow:0 4px 15px #28473214}
.tree-page.is-holographic .tree-orientation-button{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:64px;height:40px;padding:0 9px;border-radius:7px;color:#627268;font-size:11px;white-space:nowrap}
.tree-page.is-holographic .tree-orientation-button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.tree-page.is-holographic .tree-orientation-button:hover{background:#edf5ef;color:#245d44}
.tree-page.is-holographic .tree-orientation-button.active{background:#e8f2eb;color:#245d44;font-weight:600}
.tree-page.is-holographic .zoom-actions button{width:40px;height:40px;border-radius:8px}
.tree-page.is-holographic .zoom-actions button:hover{background:#edf5ef;color:#245d44}
.tree-page.is-holographic .zoom-actions .tree-fullscreen-toggle{width:auto;min-height:40px;padding:0 12px}
.tree-page.is-holographic .tree-branch-reset{min-height:42px;background:#fff;color:#2d705b}
.tree-page.is-holographic .canvas-foot{z-index:2;max-width:calc(100% - 36px);margin:0;padding:7px 10px;border:1px solid #e8eee7;border-radius:9px;background:#fffffff0;color:#64776a;line-height:1.5;text-align:left}
.tree-page.is-holographic .tree-side{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(250px,1fr);gap:14px;min-width:0}
.tree-page.is-holographic .tree-side .card{min-width:0;margin:0;padding:19px 22px}
.tree-page.is-holographic .tree-side h3{margin-bottom:13px}
.tree-page.is-holographic .legend{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px;line-height:1.55}
.tree-page.is-holographic .legend span{align-items:flex-start;min-width:0}
.tree-page.is-holographic .legend i{flex:none;margin-top:4px}
.tree-page.is-holographic .tree-side .progress{margin-top:13px}
.tree-page.is-holographic .tree-tip{margin-top:13px!important}
.tree-page.is-holographic .canvas-card.is-tree-fullscreen{height:100vh;height:100dvh;margin:0;border-radius:0}
@media(max-width:820px){
  .tree-page.is-holographic .tree-page-heading{display:block}
  .tree-page.is-holographic .tree-page-heading .button-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:15px}
  .tree-page.is-holographic .tree-page-heading .btn{min-width:0;padding:0 8px}
  .tree-page.is-holographic .canvas-card{height:650px}
}
@media(max-width:600px){
  .tree-page.is-holographic .tree-page-heading .button-row{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:13px}
  .tree-page.is-holographic .tree-page-heading .btn{min-height:44px;font-size:12px}
  .tree-page.is-holographic .tree-toolbar{gap:9px;margin-bottom:12px}
  .tree-page.is-holographic .tree-toolbar .tag-row{gap:6px}
  .tree-page.is-holographic .tree-toolbar .badge{font-size:10px}
  .tree-page.is-holographic .canvas-card{height:600px}
  .tree-page.is-holographic .canvas-head{display:flex;flex-wrap:wrap;align-items:flex-start;gap:7px;left:12px;right:12px;top:12px}
  .tree-page.is-holographic .canvas-title{flex:0 1 95px;max-width:95px;margin-right:auto}
  .tree-page.is-holographic .tree-branch-reset{min-height:38px;padding:0 8px;font-size:10px}
  .tree-page.is-holographic .zoom-actions{flex:none}
  .tree-page.is-holographic .tree-orientation-actions{flex:none}
  .tree-page.is-holographic .tree-orientation-button{min-width:48px;height:38px;padding:0 6px;gap:3px;font-size:10px}
  .tree-page.is-holographic .zoom-actions button{width:36px;height:38px}
  .tree-page.is-holographic .zoom-actions .tree-fullscreen-toggle{min-height:38px;padding:0 8px}
  .tree-page.is-holographic .tree-side{grid-template-columns:minmax(0,1fr)}
  .tree-page.is-holographic .tree-side .card{padding:17px}
  .tree-page.is-holographic .canvas-foot{max-width:calc(100% - 24px);padding:6px 8px;font-size:10px}
}
@media(max-width:520px){
  .tree-page.is-holographic .canvas-card{height:max(590px,68dvh);margin:0 -20px;border-radius:16px}
  .tree-page.is-holographic .legend{grid-template-columns:minmax(0,1fr);gap:9px}
  .tree-page.is-holographic .canvas-card.is-tree-fullscreen{height:100vh;height:100dvh;margin:0;border-radius:0}
}

/* Family tomb map */
.tomb-map-page{display:grid;gap:16px}.tomb-map-heading{align-items:flex-end;margin-bottom:0}.tomb-map-heading>div:first-child{min-width:0}.tomb-map-heading .btn{min-height:42px;white-space:nowrap}
.tomb-map-summary{display:flex;align-items:center;gap:13px;padding:15px 18px;border:1px solid #e4e9df;background:linear-gradient(110deg,#f7f5eb,#fff)}.tomb-map-summary-icon{display:grid;width:42px;height:42px;flex:none;place-items:center;border-radius:13px;background:#eaf1e9;color:#42765a;font-size:26px}.tomb-map-summary strong,.tomb-map-summary small{display:block}.tomb-map-summary strong{font-size:14px}.tomb-map-summary small{margin-top:4px;color:var(--muted);font-size:11px}
.tomb-map-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;align-items:stretch;gap:16px;min-width:0}.tomb-map-canvas-card{position:relative;min-width:0;min-height:620px;overflow:hidden;padding:0;border:1px solid #e3e8e1;border-radius:18px;background:#eef2ed}.tomb-map-canvas{width:100%;height:clamp(560px,68vh,820px);min-height:560px}.tomb-map-canvas[hidden]{display:none}.tomb-map-status{position:absolute;top:14px;left:14px;max-width:min(500px,calc(100% - 28px));padding:9px 12px;border:1px solid #e6e9e2;border-radius:10px;background:#fffffff2;color:#66736a;font-size:11px;line-height:1.55;box-shadow:0 3px 12px #23332612}.tomb-map-selection{position:absolute;right:14px;bottom:14px;left:14px;padding:10px 13px;border:1px solid #e4e9e2;border-radius:11px;background:#fffffff2;color:#46594c;font-size:12px;line-height:1.55;box-shadow:0 3px 12px #23332612}
.tomb-map-canvas-card.is-map-unavailable{display:grid;min-height:220px;place-items:center;padding:24px;background:#f7f8f5}.tomb-map-canvas-card.is-map-unavailable .tomb-map-status{position:static;max-width:520px;border:0;background:transparent;text-align:center;box-shadow:none}
.tomb-map-list-card{display:flex;min-width:0;max-height:620px;flex-direction:column;overflow:hidden;padding:18px}.tomb-map-list-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}.tomb-map-list-head h2{margin:0;font-size:17px}.tomb-map-list-head p{margin:4px 0 0;color:var(--muted);font-size:11px}.tomb-map-list-head>span{flex:none;padding:5px 8px;border-radius:20px;background:#eef4ef;color:#42765a;font-size:10px}.tomb-map-search{display:flex;min-height:42px;align-items:center;gap:8px;margin-bottom:10px;padding:0 11px;border:1px solid #e1e5df;border-radius:10px;background:#fff}.tomb-map-search:focus-within{border-color:#8eb49a;box-shadow:0 0 0 3px #6c9e7d18}.tomb-map-search svg{width:16px;height:16px;flex:none;fill:none;stroke:#8a968d;stroke-width:1.7;stroke-linecap:round}.tomb-map-search input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--ink);font-size:12px}.tomb-map-people{display:grid;gap:7px;min-height:0;overflow:auto;padding:1px 3px 3px 1px;-webkit-overflow-scrolling:touch}.tomb-map-person{display:flex;min-height:62px;align-items:center;gap:10px;padding:9px;border:1px solid transparent;border-radius:12px;background:#f7f8f5;text-align:left;color:var(--ink);transition:background .18s,border-color .18s}.tomb-map-person:hover,.tomb-map-person.is-selected{border-color:#aac7b2;background:#edf5ef}.tomb-map-person.is-unlocated{background:#faf9f6}.tomb-map-person[hidden]{display:none}.tomb-map-pin{display:grid;width:34px;height:34px;flex:none;place-items:center;border-radius:11px;background:#e6f0e8;color:#397551;font-size:17px}.tomb-map-person.is-unlocated .tomb-map-pin{background:#f0efeb;color:#99968f}.tomb-map-person-copy{display:block;min-width:0;flex:1}.tomb-map-person-copy strong,.tomb-map-person-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tomb-map-person-copy strong{font-size:12px}.tomb-map-person-copy small{margin-top:4px;color:#828d84;font-size:10px}.tomb-map-person-arrow{color:#73927d;font-size:21px}.tomb-map-list-note{margin:11px 0 0;padding-top:10px;border-top:1px solid #edf0eb;color:#8b958d;font-size:10px;line-height:1.6}.tomb-map-empty-list{padding:22px 12px;color:#89938b;font-size:12px;line-height:1.8;text-align:center}
.member-tomb-map-card{display:flex;width:100%;min-height:90px;align-items:center;gap:14px;margin-top:13px;padding:14px 17px;border:1px solid #e1e8de;border-radius:17px;background:linear-gradient(105deg,#f5f4e9,#fff);text-align:left;color:var(--ink);transition:transform .18s,border-color .18s,box-shadow .18s}.member-tomb-map-card:hover{transform:translateY(-1px);border-color:#a6c3aa;box-shadow:0 8px 22px #263b2b12}.member-tomb-map-art{display:grid;width:54px;height:54px;flex:none;place-items:center;border-radius:15px;background:#e6efe4;color:#527f5f}.member-tomb-map-art svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.member-tomb-map-copy{display:block;min-width:0;flex:1}.member-tomb-map-copy small,.member-tomb-map-copy strong,.member-tomb-map-copy>span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.member-tomb-map-copy small{color:#829182;font-size:9px;font-weight:700;letter-spacing:1px}.member-tomb-map-copy strong{margin:4px 0;color:#34463a;font-size:14px}.member-tomb-map-copy>span{color:#758078;font-size:11px}.member-tomb-map-arrow{color:#64846c;font-size:25px}
@media(max-width:900px){.tomb-map-layout{grid-template-columns:minmax(0,1fr)}.tomb-map-canvas-card{min-height:480px}.tomb-map-canvas{height:56vh;min-height:480px}.tomb-map-list-card{max-height:none}.tomb-map-people{max-height:340px;grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.tomb-map-page{gap:12px}.tomb-map-heading{align-items:flex-start;flex-direction:column;gap:11px}.tomb-map-heading .btn{min-height:42px}.memorial-heading-actions{width:100%;justify-content:flex-start;flex-wrap:wrap}.tomb-map-summary{padding:12px}.tomb-map-summary strong{font-size:13px}.tomb-map-layout{gap:12px}.tomb-map-canvas-card{min-height:380px;border-radius:14px}.tomb-map-canvas{height:55dvh;min-height:380px;max-height:560px}.tomb-map-status{top:10px;left:10px;font-size:10px}.tomb-map-selection{right:10px;bottom:10px;left:10px;padding:8px 10px;font-size:11px}.tomb-map-list-card{padding:14px}.tomb-map-people{grid-template-columns:minmax(0,1fr);max-height:320px}.member-tomb-map-card{min-height:82px;margin-top:10px;padding:12px;border-radius:14px}.member-tomb-map-art{width:46px;height:46px}}

/* 我的族谱：九宫格按亲属分区，成员列表保持可横向浏览。 */
.tree-page:not(.is-holographic) .tree-page-heading{align-items:flex-end;gap:18px;margin-bottom:20px}
.tree-page:not(.is-holographic) .tree-page-heading .button-row{justify-content:flex-end}
.tree-page:not(.is-holographic) .tree-toolbar{gap:14px;padding:10px 12px;border:1px solid #e7eae3;border-radius:15px;background:#fffdf9;box-shadow:0 4px 16px #26332c08}
.tree-page:not(.is-holographic) .tree-toolbar .segmented{padding:4px;background:#f1f3ee}
.tree-page:not(.is-holographic) .tree-toolbar .segmented button{min-height:40px;padding:0 16px}
.tree-page:not(.is-holographic) .tree-toolbar .tag-row{justify-content:flex-end}
.tree-page:not(.is-holographic) .canvas-card.nine-family-card{min-height:0;padding:0 24px 18px;border-color:#e3e9e1;background:linear-gradient(180deg,#f4f7f2 0%,#fbfcf9 100%)}
.nine-family-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:23px 0 19px;border-bottom:1px solid #e6ebe4}
.nine-family-head .eyebrow{margin:0 0 5px;color:#789080;font-size:9px;letter-spacing:1.5px}
.nine-family-head h2{margin:0;color:#304739;font-size:18px}
.nine-family-head h2 small{color:#718076;font-size:13px;font-weight:500}
.nine-family-head p{margin:6px 0 0;color:#89938b;font-size:11px}
.nine-family-head>.btn{min-height:42px;flex:none}
.nine-grid-layout{display:grid;gap:13px;max-width:900px;margin:20px auto 0}
.nine-zone{min-width:0;padding:13px;border:1px solid #e7ebe5;border-radius:15px;background:#ffffffc9}
.nine-zone-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;color:#526558}
.nine-zone-heading strong{font-size:12px;font-weight:650}
.nine-zone-heading span{flex:none;padding:3px 8px;border-radius:20px;background:#f0f4ef;color:#849087;font-size:10px}
.nine-zone-people{display:grid;grid-template-columns:repeat(auto-fit,minmax(118px,1fr));gap:9px;min-width:0}
.nine-zone .member-tile{width:100%;min-width:0;min-height:100px;padding:11px 8px;border-color:#e6ece6;border-radius:13px;background:#fff;box-shadow:0 2px 8px #26332c05}
.nine-zone .member-tile:hover{border-color:#a9c4ae;background:#fbfefb}
.nine-zone .member-tile.dead{background:#f4f3ee;border-color:#d7d8cf}
.nine-zone .member-tile.placeholder{border-style:dashed;background:#fafbf8;box-shadow:none}
.nine-zone .member-tile .avatar:not(.tiny){width:40px;height:40px}
.nine-middle{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,1.15fr) minmax(0,1fr);align-items:stretch;gap:13px}
.nine-zone-center{border-color:#d6e3d8;background:linear-gradient(160deg,#f0f6f0,#fff)}
.nine-zone-center .nine-zone-heading strong{color:#2d705b}
.nine-zone-center .member-tile:not(.placeholder){min-height:150px;border-color:#2d705b;background:#2d705b;color:#fff;box-shadow:0 8px 18px #2d705b20}
.nine-zone-center .member-tile:not(.placeholder) .avatar{box-shadow:0 0 0 3px #ffffff24}
.nine-zone-center .member-tile:not(.placeholder) small{color:#d8e9dd}
.nine-grid-foot{display:flex;align-items:flex-start;gap:7px;max-width:900px;margin:14px auto 0;color:#849087;font-size:10px;line-height:1.6}
.nine-grid-foot span{color:#76927e}
.member-list-card{border-color:#e5e9e2;border-radius:17px}
.member-list-toolbar{min-height:94px;padding:19px 22px 15px}
.member-list-toolbar h2{color:#344b3d;font-size:17px}
.member-list-toolbar p{margin-top:5px;color:#8b958d;font-size:11px}
.member-list-search{width:min(360px,48%);min-height:44px;border-color:#e2e7e0;border-radius:11px;background:#fff}
.member-list-search input{font-size:12px}
.member-list-count{padding:0 22px 12px;color:#7f8a81;font-size:11px}
.member-list-table{min-width:790px;font-size:12px}
.member-list-table th{padding-top:13px;padding-bottom:13px;background:#f6f8f5;color:#59695d;font-size:11px}
.member-list-table td{height:60px;color:#58645b}
.member-list-table tbody tr:nth-child(even) td{background:#fdfdfa}
.member-list-table tbody tr:hover td{background:#f3f8f3}
.member-list-name{gap:10px;font-size:12px}
.member-list-pagination{padding:14px 22px;border-top-color:#edf0eb}
@media(max-width:820px){
  .tree-page:not(.is-holographic) .tree-page-heading{display:block}
  .tree-page:not(.is-holographic) .tree-page-heading .button-row{justify-content:flex-start;margin-top:14px}
  .tree-page:not(.is-holographic) .tree-toolbar{align-items:stretch;flex-direction:column;gap:9px}
  .tree-page:not(.is-holographic) .tree-toolbar .tag-row{justify-content:flex-start}
  .nine-middle{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
  .nine-zone{padding:11px}
}
@media(max-width:520px){
  .tree-page:not(.is-holographic) .tree-page-heading .button-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .tree-page:not(.is-holographic) .tree-page-heading .btn{min-width:0;min-height:42px;padding:0 8px;font-size:11px;white-space:nowrap}
  .tree-page:not(.is-holographic) .tree-toolbar{margin:0 -3px 13px;padding:9px;border-radius:13px}
  .tree-page:not(.is-holographic) .tree-toolbar .segmented{width:100%;gap:2px}
  .tree-page:not(.is-holographic) .tree-toolbar .segmented button{min-width:0;min-height:44px;padding:0 4px;font-size:11px}
  .tree-page:not(.is-holographic) .tree-toolbar .tag-row{gap:5px}
  .tree-page:not(.is-holographic) .tree-toolbar .badge{height:23px;padding:0 7px;font-size:9px}
  .tree-page:not(.is-holographic) .canvas-card.nine-family-card{margin:0 -5px;padding:0 13px 15px;border-radius:16px}
  .nine-family-head{align-items:flex-start;padding:17px 0 14px}
  .nine-family-head h2{font-size:16px}
  .nine-family-head h2 small{font-size:11px}
  .nine-family-head p{max-width:230px;font-size:10px;line-height:1.5}
  .nine-family-head>.btn{min-height:40px;padding:0 10px;font-size:10px;white-space:nowrap}
  .nine-grid-layout{gap:9px;margin-top:12px}
  .nine-zone{padding:9px;border-radius:12px}
  .nine-zone-heading{margin-bottom:8px}
  .nine-zone-heading strong{font-size:11px}
  .nine-zone-heading span{padding:3px 6px;font-size:9px}
  .nine-zone-people{grid-template-columns:repeat(auto-fit,minmax(92px,1fr));gap:7px}
  .nine-zone .member-tile{min-height:91px;padding:8px 5px;border-radius:11px}
  .nine-zone .member-tile .avatar:not(.tiny){width:34px;height:34px}
  .nine-zone .member-tile strong{max-width:100%;overflow:hidden;font-size:11px;text-overflow:ellipsis;white-space:nowrap}
  .nine-zone .member-tile small{font-size:9px}
  .nine-middle{grid-template-columns:1fr;gap:9px}
  .nine-zone-center{order:-1}
  .nine-zone-center .member-tile:not(.placeholder){min-height:112px}
  .nine-grid-foot{margin-top:11px;font-size:9px}
  .member-list-card{margin:0 -5px;border-radius:15px}
  .member-list-toolbar{gap:12px;padding:16px 14px 12px}
  .member-list-toolbar>div{width:100%}
  .member-list-toolbar h2{font-size:16px}
  .member-list-search{width:100%;min-height:46px}
  .member-list-count{padding:0 14px 10px;font-size:10px}
  .member-list-table{min-width:720px}
  .member-list-table th,.member-list-table td{padding:11px 10px}
  .member-list-table td{height:56px}
  .member-list-name-cell{width:130px;min-width:130px}
  .member-list-name{gap:7px;font-size:11px}
  .member-list-actions{gap:10px}
  .member-list-table .ant-btn-link{min-height:42px;font-size:11px}
  .member-list-pagination{gap:10px;padding:13px 10px}
}

.family-precepts-page{display:grid;gap:18px;max-width:1060px;margin:0 auto}
.family-precepts-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.family-precepts-top .btn{min-height:42px}
.family-precepts-hero{position:relative;overflow:hidden;padding:34px 38px;border:1px solid #e8e1d1;border-radius:22px;background:radial-gradient(circle at 90% 8%,#ffffffad 0 12%,transparent 12.5%),linear-gradient(125deg,#f3eee0 0%,#fbf9f1 52%,#e8efe6 100%)}
.family-precepts-hero:after{position:absolute;right:32px;bottom:-52px;width:200px;height:200px;border:1px solid #879b7b24;border-radius:50%;content:"";box-shadow:0 0 0 18px #879b7b0a,0 0 0 38px #879b7b08}
.family-precepts-hero .eyebrow{margin-bottom:8px;color:#907d53;font-size:9px;letter-spacing:1.7px}
.family-precepts-hero h1{margin:0;color:#3f4c3d;font-family:STKaiti,KaiTi,serif;font-size:31px}
.family-precepts-hero p{max-width:620px;margin:10px 0 0;color:#737c6d;font-size:13px;line-height:1.8}
.family-precepts-count{display:flex;align-items:baseline;gap:8px;margin-top:17px;color:#7f806d;font-size:11px}
.family-precepts-count strong{color:#667a5f;font-size:22px;font-weight:650}
.family-precepts-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.family-precept-card{min-width:0;padding:20px 22px;border:1px solid #e8e8df;border-radius:17px;background:#fffdf9;box-shadow:0 5px 18px #333d2f08}
.family-precept-card-head{display:flex;align-items:center;gap:9px}
.family-precept-index{color:#aeb5a8;font-family:Georgia,serif;font-size:12px;letter-spacing:1px}
.family-precept-category{padding:4px 8px;border-radius:20px;background:#eef3e9;color:#718362;font-size:10px}
.family-precept-actions{display:flex;gap:5px;margin-left:auto}
.family-precept-actions button{min-height:34px;padding:0 9px;border-radius:8px;color:#728074;font-size:11px}
.family-precept-actions button:hover{background:#f0f4ef;color:#326747}
.family-precept-actions button:last-child:hover{background:#fbefed;color:#b05043}
.family-precept-card h2{margin:15px 0 8px;color:#39483b;font-family:STKaiti,KaiTi,serif;font-size:19px;line-height:1.5}
.family-precept-card p{margin:0;color:#657166;font-size:13px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere}
.family-precepts-empty{display:grid;justify-items:center;padding:48px 22px;border:1px dashed #d9dfd3;border-radius:18px;background:#fbfcf8;text-align:center}
.family-precepts-empty>span{display:grid;width:58px;height:58px;place-items:center;border-radius:18px;background:#edf2e8;color:#738664;font-family:STKaiti,KaiTi,serif;font-size:27px}
.family-precepts-empty h2{margin:15px 0 5px;color:#455343;font-family:STKaiti,KaiTi,serif;font-size:19px}
.family-precepts-empty p{max-width:420px;margin:0;color:#858e81;font-size:12px;line-height:1.8}
.family-precepts-note{margin:0;color:#8a9286;font-size:10px;line-height:1.6;text-align:center}
.family-precept-modal{max-width:600px}
.family-precept-modal .field{margin-bottom:15px}
.family-precept-modal .field>label{display:block;margin-bottom:7px;color:#59675b;font-size:12px}
.family-precept-modal .field input,.family-precept-modal .field select,.family-precept-modal .field textarea{width:100%;min-height:44px;padding:10px 12px;border:1px solid #dfe5dc;border-radius:10px;background:#fff;color:#354338;outline:none}
.family-precept-modal .field textarea{min-height:150px;resize:vertical;line-height:1.7}
.family-precept-modal .field input:focus,.family-precept-modal .field select:focus,.family-precept-modal .field textarea:focus{border-color:#86a78d;box-shadow:0 0 0 3px #6d947b17}
.family-precept-modal .field small{display:block;margin-top:5px;color:#899287;font-size:10px}
@media(max-width:700px){.family-precepts-list{grid-template-columns:minmax(0,1fr)}}
@media(max-width:520px){.family-precepts-page{gap:12px;margin-bottom:80px}.family-precepts-top{gap:8px}.family-precepts-top .btn{min-height:42px;padding:0 10px;font-size:11px}.family-precepts-hero{padding:25px 21px;border-radius:17px}.family-precepts-hero h1{font-size:27px}.family-precepts-hero p{max-width:290px;font-size:11px}.family-precepts-hero:after{right:7px;bottom:-64px;width:150px;height:150px}.family-precept-card{padding:17px 16px;border-radius:14px}.family-precept-card h2{font-size:17px}.family-precept-card p{font-size:12px}.family-precepts-empty{padding:35px 18px}.family-precept-modal{width:calc(100vw - 28px);padding:18px}}

/* 成员关系明细列：首列仍固定，其他信息可在横向滚动区浏览。 */
.member-list-table{min-width:1280px}
.member-list-relative-names{display:inline-block;max-width:155px;overflow:hidden;color:#53685a;text-overflow:ellipsis;vertical-align:bottom}
.member-list-relative-empty{color:#b0b8b1}
@media(max-width:520px){.member-list-table{min-width:1280px}.member-list-name-cell{width:130px;min-width:130px}}

/* 可扫码、可导出的家族纪念分享卡。 */
.memorial-share-backdrop{z-index:40;overflow-y:auto;padding:18px}
.memorial-share-modal{width:min(540px,100%);max-height:calc(100dvh - 36px);overflow-y:auto;margin:auto;padding:21px;border-radius:20px}
.memorial-share-modal>.modal-head{align-items:flex-start;margin-bottom:14px}
.memorial-share-modal>.modal-head h3{margin:0 0 4px;color:#34473a;font-size:17px}
.memorial-share-modal>.modal-head small{color:#879084;font-size:10px;line-height:1.55}
.memorial-share-card{position:relative;overflow:hidden;padding:24px 24px 17px;border:1px solid #e7dfce;border-radius:18px;background:radial-gradient(circle at 50% 12%,#fffefa 0,#f8f5eb 58%,#f1f0e6 100%);color:#35463a;text-align:center;box-shadow:0 8px 22px #3543320c}
.memorial-share-ornament{position:absolute;top:14px;right:15px;display:grid;width:38px;height:38px;place-items:center;border:1px solid #b6a77c;border-radius:50%;color:#8a7851;font-family:STKaiti,KaiTi,serif;font-size:18px;opacity:.7}
.memorial-share-kicker{color:#8d7951;font-family:STKaiti,KaiTi,serif;font-size:16px;letter-spacing:2px}
.memorial-share-tree{margin-top:5px;color:#889184;font-size:10px}
.memorial-share-seal{display:grid;width:64px;height:64px;margin:15px auto 8px;place-items:center;border:1px solid #c7c6b6;border-radius:50%;background:#e7e9df;color:#667a67;font-family:STKaiti,KaiTi,serif;font-size:28px}
.memorial-share-card h2{margin:5px 0;color:#34463a;font-family:STKaiti,KaiTi,serif;font-size:23px}
.memorial-share-meta{color:#788274;font-size:10px;line-height:1.7}
.memorial-share-intro{max-width:370px;margin:12px auto 0;color:#687468;font-size:11px;line-height:1.7;overflow-wrap:anywhere}
.memorial-share-family,.memorial-share-story{max-width:390px;margin:14px auto 0;padding:11px 13px;border:1px solid #e7e5d9;border-radius:11px;background:#ffffff9c;text-align:left}
.memorial-share-family h3,.memorial-share-story h3{margin:0 0 7px;color:#8b7954;font-family:STKaiti,KaiTi,serif;font-size:13px}
.memorial-share-family>div{display:grid;grid-template-columns:44px minmax(0,1fr);gap:8px;padding:3px 0;color:#7c8579;font-size:10px;line-height:1.6}
.memorial-share-family strong{min-width:0;color:#4b5c4e;font-weight:500;overflow-wrap:anywhere}
.memorial-share-story p{margin:0;color:#5d6a5e;font-size:10px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}
.memorial-share-qr-row{display:flex;align-items:center;justify-content:center;gap:13px;width:max-content;max-width:100%;margin:15px auto 0;padding:9px 13px;border:1px solid #e5e2d7;border-radius:13px;background:#fff}
.memorial-share-qr{display:grid;width:94px;height:94px;flex:none;place-items:center;overflow:hidden}
.memorial-share-qr svg{display:block;width:100%;height:100%}
.memorial-share-qr-row>div:last-child{display:grid;gap:5px;text-align:left}
.memorial-share-qr-row strong{color:#405849;font-size:11px}
.memorial-share-qr-row span{color:#848d82;font-size:9px;line-height:1.6}
.memorial-share-footer{margin-top:12px;color:#8a806a;font-family:STKaiti,KaiTi,serif;font-size:11px;letter-spacing:.5px}
.memorial-share-privacy{margin:10px 1px;color:#8a9287;font-size:9px;line-height:1.6;text-align:center}
.memorial-share-actions{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;margin-top:12px}
.memorial-share-actions .btn{min-width:0;min-height:44px;padding:0 8px;font-size:11px;white-space:nowrap}
.memorial-share-link-label{display:block;margin:12px 0 5px;color:#748073;font-size:10px}
.memorial-share-link{width:100%;height:40px;padding:0 10px;border:1px solid #e3e7df;border-radius:9px;background:#f9faf7;color:#667268;font-size:10px}
.memorial-share-hint{display:block;margin-top:7px;color:#969d92;font-size:9px;line-height:1.5;text-align:center}
@media(max-width:520px){.memorial-share-backdrop{align-items:flex-end;padding:8px 8px calc(8px + env(safe-area-inset-bottom))}.memorial-share-modal{max-height:calc(100dvh - 16px);padding:15px;border-radius:18px}.memorial-share-card{padding:19px 14px 14px;border-radius:15px}.memorial-share-ornament{top:10px;right:10px;width:32px;height:32px}.memorial-share-kicker{font-size:14px}.memorial-share-seal{width:54px;height:54px;margin-top:12px;font-size:23px}.memorial-share-card h2{font-size:21px}.memorial-share-family,.memorial-share-story{padding:9px 10px}.memorial-share-qr{width:84px;height:84px}.memorial-share-qr-row{gap:10px;padding:8px 10px}.memorial-share-actions{gap:6px}.memorial-share-actions .btn{min-height:44px;padding:0 5px;font-size:10px}}
