:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#243b32;--page-base:#f7f7f1;--season-wash:#f7f7f1;--season-accent:#edf3e9;--season-tree:#f1f5ee;--season-hero:#e5eee2;--holiday-pattern:none;background-image:var(--holiday-pattern),radial-gradient(ellipse at 85% 0,var(--season-accent),transparent 48%),linear-gradient(155deg,var(--season-wash),var(--page-base) 75%);background-size:360px 360px,auto,auto;background-attachment:fixed;line-height:1.55}
:root[data-season="spring"]{--season-wash:#f8f8f2;--season-accent:#f6e8ed;--season-tree:#f2f6ef;--season-hero:#e8f0e5}
:root[data-season="summer"]{--season-wash:#faf9ef;--season-accent:#f8edcb;--season-tree:#f4f6e9;--season-hero:#edf1df}
:root[data-season="autumn"]{--season-wash:#faf7f1;--season-accent:#f4e3d2;--season-tree:#f6f2e9;--season-hero:#f0e8d9}
:root[data-season="winter"]{--season-wash:#f5f8f7;--season-accent:#e0eaf0;--season-tree:#eef3f3;--season-hero:#e4edf0}
:root[data-holiday="christmas"]{--holiday-pattern:url("christmas-pattern.svg")}
:root[data-holiday="halloween"]{--holiday-pattern:url("halloween-pattern.svg")}
.holiday-settings{max-width:900px;margin:auto}
.holiday-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin:0 0 24px}
.holiday-heading p{max-width:650px;margin:0}
.holiday-heading .button{flex:none}
.holiday-list{display:grid;gap:12px}
.holiday-list-item{display:flex;align-items:center;gap:20px;padding:16px 20px}
.holiday-list-preview{width:88px;height:88px;flex:none;object-fit:contain;background:#f5f7f2;border:1px solid #e4ebe2;border-radius:8px}
.holiday-list-info{flex:1;min-width:0}
.holiday-list-info h2{margin:0 0 6px;overflow-wrap:anywhere}
.holiday-list-info p{margin:0;font-size:.9rem}
.holiday-status{display:inline-block;margin-left:8px;padding:2px 9px;border-radius:12px;background:#edf3e9;color:#476154;font-size:.8rem}
.holiday-note{margin-top:20px;font-size:.9rem}
.holiday-editor{max-width:760px}
.holiday-editor h3{margin:0 0 8px}
.holiday-editor h3+p{margin:0 0 12px}
.holiday-designs{min-width:0;margin:0;padding:0;border:0}
.holiday-designs legend{font-family:Georgia,serif;color:#203e31;font-size:1.08rem;font-weight:bold;margin-bottom:8px}
.holiday-designs>p{margin:0 0 12px}
.holiday-design-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:10px}
.holiday-design{display:flex;flex-direction:column;align-items:center;gap:7px;min-width:0;padding:10px;border:1px solid #d5e0d5;border-radius:8px;cursor:pointer;text-align:center}
.holiday-design:has(input:checked){border-color:#315d49;box-shadow:0 0 0 1px #315d49;background:#f3f7f1}
.holiday-design input{width:auto;margin:0}
.holiday-design img{width:82px;height:82px;max-width:100%;object-fit:contain;background:#f5f7f2;border-radius:6px}
.holiday-upload-choice{justify-content:center;min-height:145px}
.holiday-upload{margin-top:16px}
.holiday-upload small{display:block;color:#65776c;font-weight:400}
.holiday-actions{display:flex;align-items:center;gap:18px}
@media(max-width:600px){.holiday-heading{flex-direction:column;gap:12px}.holiday-list-item{gap:12px;padding:14px;flex-wrap:wrap}.holiday-list-preview{width:68px;height:68px}.holiday-list-info{flex:1 1 50%}.holiday-edit{margin-left:auto}.holiday-status{margin:4px 0 0}.holiday-design-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
*{box-sizing:border-box}
body{margin:0}
a{color:#315d4a;text-decoration:none}
a:hover{text-decoration:underline}
.topbar{position:sticky;top:0;z-index:20;background:#fff;border-bottom:1px solid #e4e9e1;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px max(5%,calc((100% - 1120px)/2))}
.brand{display:inline-flex;align-items:center;gap:8px;font-family:Georgia,serif;font-size:1.25rem;font-weight:bold;color:#264538;white-space:nowrap}
.brand-icon{width:34px;height:34px;flex:none}
nav,.row-actions{display:flex;align-items:center;gap:20px;flex-wrap:wrap}
nav a,.link-button{font-size:.9rem;font-weight:600;color:#476154}
nav form,.row form{margin:0}
.settings-menu,.profile-menu,.season-settings{position:relative}
.settings-menu summary,.season-settings summary{cursor:pointer;font-size:.9rem;font-weight:600;color:#476154}
.settings-links,.profile-links,.season-settings-content{position:absolute;right:0;top:calc(100% + 10px);min-width:220px;padding:8px;background:#fff;border:1px solid #d5e0d5;border-radius:8px;box-shadow:0 6px 18px rgba(37,71,49,.16)}
.season-settings-content{padding:14px}
.settings-links .season-settings>summary{padding:9px 10px}
.settings-links .season-settings-content{position:static;min-width:0;padding:4px 10px 10px;border:0;box-shadow:none}
.season-settings-content select{margin-top:5px}
.season-status{margin:10px 0 0;font-size:.8rem}
.settings-links a{display:block;padding:9px 10px;white-space:nowrap}
.profile-menu summary{display:flex;cursor:pointer;list-style:none;border-radius:50%}
.profile-menu summary::-webkit-details-marker{display:none}
.profile-menu summary:focus-visible{outline:2px solid #315d49;outline-offset:3px}
.profile-links{min-width:150px}
.profile-links a,.profile-links button{display:block;width:100%;padding:9px 10px;text-align:left;white-space:nowrap;font-size:.9rem;font-weight:600;color:#476154;border-radius:5px}
.profile-links button{background:none}
.profile-links a:hover,.profile-links button:hover{background:#edf3ec;text-decoration:none}
.link-button{border:0;background:none;padding:0;cursor:pointer}
main{max-width:1120px;margin:0 auto;padding:52px 24px 80px;min-height:75vh}
main.tree-page{width:90vw;max-width:none;padding-left:0;padding-right:0}
.full-tree-layout{display:flex;flex-direction:column;height:100vh;height:100dvh;overflow:hidden}
main.full-tree-page{position:relative;flex:1;min-height:0;width:100%;padding:0}
.full-tree-page>.tree{height:100%;padding:0}
.full-tree-page .full-tree{height:100%;overflow:auto;overscroll-behavior:contain;margin:0;border:0;border-radius:0}
.full-tree-layout>footer{display:none}
.full-tree-overlay{position:absolute;z-index:10;top:12px;right:12px;bottom:12px;left:12px;display:flex;align-items:flex-start;align-content:flex-start;gap:12px;pointer-events:none}
.full-tree-overlay>*{pointer-events:auto}
.full-tree-gear{display:none}
.full-tree-controls{flex:0 1 auto;min-width:0;max-height:100%;overflow-y:auto;border:1px solid #d5e4d4;border-radius:10px;background:#fff;box-shadow:0 5px 16px rgba(37,71,49,.16)}
.full-tree-controls[open]{flex-basis:min(880px,100%);container-type:inline-size}
.full-tree-find.tree-toolbar{flex:0 0 auto;width:min(340px,100%);margin:0;padding:10px 14px 12px;gap:8px;border:1px solid #d5e4d4;border-radius:10px;background:#fff;box-shadow:0 5px 16px rgba(37,71,49,.16)}
.full-tree-find label,.full-tree-find .profile-select-field{width:100%}
.full-tree-find.tree-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;width:min(440px,100%)}
.full-tree-find .profile-suggest-field{display:contents}
.full-tree-find .profile-suggest-field>label,.full-tree-find .profile-suggest-field>.profile-select-status{grid-column:1/-1}
.full-tree-find .profile-suggest-field>label{margin-bottom:-2px}
.full-tree-find>button{grid-column:2;grid-row:2}
.profile-suggest-wrap{position:relative;min-width:0}
.profile-suggest-field>select[hidden],.profile-suggestions[hidden]{display:none}
:root[data-color-mode="dark"] .profile-suggestions{background:var(--dark-surface);border-color:var(--dark-border)}
:root[data-color-mode="dark"] .profile-suggestions li{color:var(--dark-text)}
:root[data-color-mode="dark"] .profile-suggestions li:hover,:root[data-color-mode="dark"] .profile-suggestions li[aria-selected="true"]{background:rgba(255,255,255,.1)}
.profile-suggestions{position:absolute;z-index:30;top:calc(100% + 4px);left:0;right:0;max-height:320px;overflow-y:auto;margin:0;padding:4px;list-style:none;border:1px solid #d5e4d4;border-radius:8px;background:#fff;box-shadow:0 8px 20px rgba(37,71,49,.18)}
.profile-suggestions li{padding:8px 10px;border-radius:6px;cursor:pointer;color:#233f31}
.profile-suggestions li:hover,.profile-suggestions li[aria-selected="true"]{background:#e8f1e6}
.profile-suggestions li.profile-suggestions-more{cursor:default;color:#5d7466;font-size:.85rem;background:none}
@container (min-width:640px){.full-tree-controls-content{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:22px;align-items:start}.full-tree-controls-content>*{grid-column:1}.full-tree-controls-content>.tree-display{grid-column:2;grid-row:1/span 30;margin-top:12px}.full-tree-controls-content>.tree-display-column>summary{padding:10px 14px;font-size:1.05rem}.full-tree-controls-content>.tree-display-column[open]>summary{border-bottom:1px solid #e5ece3}.full-tree-controls-content>.tree-display-column .tree-display-body{flex-direction:column;padding-top:12px}}
@media(max-width:700px){
.full-tree-overlay{flex-wrap:wrap;top:8px;right:8px;left:8px;bottom:8px;gap:8px}
.full-tree-controls:not([open]){flex:0 0 auto}
.full-tree-controls[open]{flex-basis:100%;max-height:calc(100% - 72px)}
.full-tree-overlay .full-tree-controls>summary{display:flex;align-items:center;gap:6px;min-height:46px;padding:8px 12px}
.full-tree-controls>summary::before{content:"\25B8";font-size:.9em}
.full-tree-controls[open]>summary::before{content:"\25BE"}
.full-tree-controls>summary::-webkit-details-marker{display:none}
.full-tree-find.tree-toolbar{position:relative;flex:1 1 180px;width:auto;padding:6px;gap:6px;column-gap:6px}
.full-tree-find .profile-suggest-wrap{position:static}
.full-tree-find .profile-suggestions{left:6px;right:6px}
.full-tree-overlay:not(.has-gear):has(.full-tree-controls[open]) .full-tree-find.tree-toolbar{order:-1;flex-basis:100%}
.full-tree-overlay.has-gear .full-tree-gear{display:flex;align-items:center;justify-content:center;flex:0 0 46px;width:46px;height:46px;min-height:0;padding:0;border:1px solid #d5e4d4;border-radius:10px;background:#fff;color:#315d49;box-shadow:0 5px 16px rgba(37,71,49,.16);cursor:pointer}
.full-tree-overlay.has-gear .full-tree-gear[aria-expanded="true"]{background:#e8f1e6}
:root[data-color-mode="dark"] .full-tree-overlay.has-gear .full-tree-gear[aria-expanded="true"]{background:rgba(255,255,255,.12)}
.full-tree-overlay.has-gear .full-tree-gear svg{transition:transform .2s}
.full-tree-overlay.has-gear .full-tree-gear[aria-expanded="true"] svg{transform:rotate(60deg)}
.full-tree-overlay.has-gear:not(:has(.full-tree-controls[open]))>:is(.full-tree-controls,.full-tree-find){display:none}
.full-tree-overlay.has-gear .full-tree-controls{order:1}
.full-tree-overlay.has-gear .full-tree-controls>summary{display:none}
.full-tree-overlay.has-gear .full-tree-controls-content{padding-top:2px}
.full-tree-find .profile-suggest-field>label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.full-tree-find>button{grid-row:auto;min-height:44px;padding:8px 14px}
.full-tree-find input[type=search]{padding:9px 10px;font-size:16px}
.profile-suggestions{max-height:min(320px,45vh)}
.profile-suggestions li{padding:11px 10px}
}
.full-tree-alert{position:absolute;z-index:10;top:68px;left:12px;width:min(440px,calc(100% - 40px))}
.full-tree-overlay:has(.full-tree-controls[open])~.full-tree-alert{display:none}
.full-tree-controls>summary{position:sticky;top:0;padding:10px 14px;cursor:pointer;font-weight:650;color:#315d49;background:#fff;white-space:nowrap}
.full-tree-controls-content{padding:0 14px 14px}
.full-tree-controls h1{font-size:1.6rem;margin:10px 0}
.full-tree-controls .eyebrow,.full-tree-controls .intro,.full-tree-controls .tree-hint{display:none}
.full-tree-controls .tree-toolbar{margin:12px 0}
.full-tree-controls .tree-exports{margin:12px 0}
h1,h2,h3{font-family:Georgia,serif;color:#203e31;line-height:1.2}
h1{font-size:clamp(2.2rem,5vw,3.8rem);font-weight:normal;margin:0 0 16px}
h2{font-size:1.45rem;margin:0 0 16px}
h3{font-size:1.08rem;margin:24px 0 10px}
p{color:#65776c;margin:0 0 16px}
.eyebrow{font-family:system-ui,sans-serif;font-size:.7rem;letter-spacing:.16em;font-weight:750;color:#77907d;margin:0 0 14px}
.intro{max-width:660px;font-size:1.05rem}
.hero{background-color:var(--season-hero);border-radius:20px;padding:60px 48px;position:relative;overflow:hidden;text-align:center}
.hero p:last-child{font-size:1.1rem;margin:0}
.hero>p,.hero>h1{position:relative;z-index:1}
.hero-trees{position:absolute;inset:0;pointer-events:none}
.hero-tree{position:absolute;left:var(--tree-left);bottom:var(--tree-bottom);width:clamp(100px,var(--tree-width),280px);aspect-ratio:1;transform:translateX(-50%);background:url("ourtribe-icon.svg") center/contain no-repeat;opacity:.16}
.hero-x-0{--tree-left:0%}.hero-x-1{--tree-left:5%}.hero-x-2{--tree-left:10%}.hero-x-3{--tree-left:15%}.hero-x-4{--tree-left:20%}.hero-x-5{--tree-left:25%}.hero-x-6{--tree-left:30%}
.hero-x-7{--tree-left:35%}.hero-x-8{--tree-left:40%}.hero-x-9{--tree-left:45%}.hero-x-10{--tree-left:50%}.hero-x-11{--tree-left:55%}.hero-x-12{--tree-left:60%}.hero-x-13{--tree-left:65%}
.hero-x-14{--tree-left:70%}.hero-x-15{--tree-left:75%}.hero-x-16{--tree-left:80%}.hero-x-17{--tree-left:85%}.hero-x-18{--tree-left:90%}.hero-x-19{--tree-left:95%}.hero-x-20{--tree-left:100%}
.hero-size-0{--tree-width:16%}.hero-size-1{--tree-width:18%}.hero-size-2{--tree-width:20%}.hero-size-3{--tree-width:22%}.hero-size-4{--tree-width:24%}.hero-size-5{--tree-width:26%}.hero-size-6{--tree-width:28%}
.hero-level-0{--tree-bottom:-60px}.hero-level-1{--tree-bottom:-40px}.hero-level-2{--tree-bottom:-20px}.hero-level-3{--tree-bottom:0}.hero-level-4{--tree-bottom:20px}.hero-level-5{--tree-bottom:40px}.hero-level-6{--tree-bottom:60px}.hero-level-7{--tree-bottom:80px}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:20px}
.section-head h2{margin-bottom:0}
.section-head h1{margin-bottom:12px}
.count{font-family:system-ui,sans-serif;color:#718d79;font-size:.8rem;background:#e8efe7;border-radius:20px;padding:5px 10px;vertical-align:middle}
.space{margin-top:42px}
.search,.inline-form{display:flex;gap:12px;align-items:end;flex-wrap:wrap}
.search{margin:24px 0}
.search label{flex:1}
label{display:block;color:#385347;font-size:.86rem;font-weight:650}
.profile-select-field{min-width:0;max-width:100%;display:grid;gap:6px}
.profile-select-field input,.profile-select-field select{margin-top:0;min-width:0}
.date-field{min-width:0;display:grid;gap:7px}
.date-entry{position:relative;display:flex;gap:8px;align-items:stretch}
.date-entry input{margin-top:0;min-width:0;flex:1}
.date-entry .date-button{flex:none;padding:0 14px}
.date-entry .date-button[hidden]{display:none}
.date-entry .date-picker{position:absolute;left:0;bottom:0;width:1px;height:1px;padding:0;border:0;opacity:0;pointer-events:none}
.date-entry .date-picker.date-picker-visible{position:static;width:auto;height:auto;padding:11px 12px;border:1px solid #d5e0d5;opacity:1;pointer-events:auto}
.date-inexact{font-weight:500}
.profile-select-status:empty{display:none}
.tree-toolbar .profile-select-field{width:min(370px,100%)}
@media(max-width:700px){.inline-form .profile-select-field{width:100%}}
.checkbox-label{display:flex;align-items:center;gap:10px}
.checkbox-label input{width:auto;margin:0}
input,textarea,select{display:block;width:100%;margin-top:7px;border:1px solid #d5e0d5;border-radius:7px;background:#fff;color:#233f31;padding:11px 12px;font:inherit}
input:focus,textarea:focus,select:focus{outline:2px solid #9bb9a3;outline-offset:1px}
textarea{resize:vertical}
button,.button{border:0;border-radius:7px;background:#315d49;color:white;padding:11px 18px;font:600 .9rem system-ui,sans-serif;cursor:pointer;display:inline-block;text-align:center}
button:hover,.button:hover{background:#264b3a;text-decoration:none}
.secondary{background:#edf3ec;color:#315d49}
.secondary:hover{background:#dfeadf}
.card,.person-card{background:#fff;border:1px solid #e4ebe2;border-radius:12px;box-shadow:0 5px 18px rgba(37,71,49,.035)}
.card{padding:26px}
.card p:last-child{margin-bottom:0}
.people-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(265px,1fr));gap:16px}
.person-card{padding:20px;display:flex;gap:15px;align-items:center;color:#244333}
.person-card:hover{border-color:#a9c2ad;text-decoration:none;transform:translateY(-1px)}
.person-card strong,.person-card small,.row small{display:block}
.person-card strong:only-child{font-size:1.15rem}
.person-card small,.row small{color:#829488;font-size:.8rem;margin-top:3px}
.avatar{width:44px;height:44px;display:grid;place-items:center;flex:none;border-radius:50%;background:#e8f0e5;color:#50775b;font-family:Georgia,serif;font-size:1.2rem}
.avatar img{width:100%;height:100%;object-fit:cover;border-radius:inherit}
.arrow{margin-left:auto;color:#8aa28e}
.profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:24px}
.relative{display:flex;justify-content:space-between;padding:11px 0;border-bottom:1px solid #edf1ec}
.relationship-status{display:block;color:#829488;font-size:.78rem}
.partner-editor{padding:16px 0;border-top:1px solid #edf1ec}
.partner-editor p{margin:8px 0 0}
.partner-actions{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-top:8px}
.partner-actions form{margin:0}
.partner-add{border-top:1px solid #edf1ec;padding-top:18px;margin-top:20px}
.child-editor{margin-top:16px}
.child-editor summary{cursor:pointer;color:#315d49;font-weight:650}
.child-editor>p{margin-top:16px}
.child-link-form{border-top:1px solid #edf1ec;margin-top:20px;padding-top:18px}
dl{display:grid;grid-template-columns:90px 1fr;gap:10px;margin:0}
dt{color:#829488}dd{margin:0}
.login-details dl,.update-package dl{grid-template-columns:90px minmax(0,1fr)}
.login-details dd,.update-package dd{overflow-wrap:anywhere}
.preserve{white-space:pre-wrap;overflow-wrap:anywhere}
.research-fact,.timeline-event,.family-story{border-top:1px solid #edf1ec;padding:16px 0}
.research-fact h3,.timeline-event h3,.family-story h3{margin:0 0 8px}
.research-source{border-left:3px solid #d5e0d5;margin:12px 0;padding:4px 14px}
.research-review{margin:12px 0 4px}
.timeline-event p,.family-story p{margin:6px 0}
.family-story audio{display:block;width:min(520px,100%);margin:14px 0}
.stack>*+*{margin-top:16px}
.stack h2,.stack p{margin-bottom:0}
.columns{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.narrow{max-width:650px;margin:auto}
.back{display:inline-block;margin-bottom:26px;font-size:.9rem}
.login-panel{max-width:480px;margin:25px auto}
.login-panel .card{margin-top:32px}
.alert{border:1px solid #bdd7be;background:#e9f4e8;padding:14px 18px;border-radius:8px;margin-bottom:24px;overflow-wrap:anywhere}
.error{border-color:#e4c4bd;background:#fdf0ed;color:#8b3e31}
.row{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:14px 0;border-top:1px solid #edf1ec;flex-wrap:wrap}
.account-card{margin-top:16px}
.account-card>.section-head{margin-bottom:8px}
.account-card .status-label{font-size:.78rem;color:#657d6c;background:#edf3ec;border-radius:20px;padding:5px 9px}
.account-access-editor{margin-top:12px;border-top:1px solid #edf1ec;padding-top:10px}
.account-access-editor summary{cursor:pointer;font-weight:650;color:#476154;margin-bottom:12px}
.admin-filter-bar{display:grid;grid-template-columns:minmax(220px,1fr) repeat(3,minmax(140px,.45fr)) auto;gap:10px;align-items:end;margin:18px 0}
.admin-filter-bar input,.admin-filter-bar select{width:100%}
.bulk-toolbar{display:flex;align-items:end;gap:12px;padding:12px 0}
.bulk-toolbar label{display:flex;flex-direction:column;gap:5px}
.result-count{margin-left:auto;color:#718176;font-size:.86rem}
.account-table-wrap{overflow-x:auto;border:1px solid #e2e9e1;border-radius:10px}
.account-table{width:100%;border-collapse:collapse;background:#fff}
.account-table th,.account-table td{padding:13px 14px;border-bottom:1px solid #edf1ec;text-align:left;vertical-align:middle}
.account-table th{background:#f7f9f6;color:#62766a;font-size:.78rem;text-transform:uppercase;letter-spacing:.04em}
.account-table tbody tr:last-child td{border-bottom:0}
.account-table tbody tr:hover{background:#fbfcfa}
.account-table td strong,.account-table td small{display:block}
.account-table td small{margin-top:3px;color:#7b8d81;font-size:.78rem}
.role-badge,.status-badge{display:inline-block;border-radius:20px;padding:5px 9px;font-size:.78rem;white-space:nowrap}
.role-badge{background:#edf3ec;color:#486353}
.status-active{background:#e5f3e4;color:#376442}
.status-disabled{background:#f2eae7;color:#8b5548}
.account-actions{position:relative}
.account-actions summary{cursor:pointer;color:#315d49;font-weight:650;white-space:nowrap}
.account-action-menu{position:absolute;right:0;top:calc(100% + 8px);z-index:5;width:260px;padding:12px;background:#fff;border:1px solid #d9e3d8;border-radius:10px;box-shadow:0 12px 30px rgba(37,71,49,.16)}
.account-action-menu form+form{margin-top:8px}
.account-action-menu form,.account-action-menu button{width:100%}
.pagination{display:flex;justify-content:flex-end;align-items:center;gap:10px;margin-top:16px}
.pagination span{margin-right:auto;color:#718176;font-size:.86rem}
.account-page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:22px}
.account-page-head h1{margin:3px 0 4px;font-size:2rem}
.account-page-head .intro{margin:0;color:#718176}
.account-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}
.account-stat{display:flex;align-items:center;justify-content:space-between;padding:16px 18px;background:#fff;border:1px solid #e3eae2;border-radius:10px;color:#627268;text-decoration:none}
.account-stat strong{font-family:Georgia,serif;font-size:1.55rem;color:#203e31}
.account-stat:hover{border-color:#b5c8b6;background:#fbfcfa;text-decoration:none}
.account-manager{background:#fff;border:1px solid #e3eae2;border-radius:12px;overflow:hidden}
.account-manager-toolbar{padding:14px 16px;border-bottom:1px solid #edf1ec}
.account-search{display:flex;align-items:center;gap:8px}
.account-search label{min-width:0}
.account-search label:has(input[type="search"]){flex:1}
.account-search input,.account-search select{height:44px;margin-top:0;padding:8px 12px;line-height:1.4}
.account-search button{height:40px}
.bulk-toolbar{min-height:52px;padding:8px 16px;border-bottom:1px solid #edf1ec}
.bulk-toolbar select{height:44px;margin-top:0;padding:8px 12px;line-height:1.4}
.bulk-delete-confirmation{padding:14px 16px;border-bottom:1px solid}
.bulk-delete-confirmation p{margin:0 0 10px;font-size:.86rem}
.bulk-delete-confirmation p,.bulk-delete-confirmation label{color:inherit}
.account-empty{text-align:center;padding:48px 20px;color:#718176}
.account-empty strong{display:block;color:#203e31;margin-bottom:4px}
.account-empty p{margin:0}
.checkbox-column{width:44px;text-align:center}
.account-table{table-layout:auto}
.account-table th{font-size:.72rem;font-weight:700}
.account-table th a{color:inherit;text-decoration:none}
.account-table td{font-size:.88rem}
.user-cell{display:flex;align-items:center;gap:10px;min-width:150px}
.user-avatar{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#e8efe7;color:#45634f;font-family:Georgia,serif;font-weight:700;flex:none}
.user-cell div{min-width:0}
.user-cell strong,.user-cell small{display:block}
.user-cell small{margin-top:1px;color:#7b8d81;overflow:hidden;text-overflow:ellipsis;max-width:230px}
.status-badge i{display:inline-block;width:6px;height:6px;border-radius:50%;background:currentColor;margin-right:6px;vertical-align:1px}
.profile-link-cell{color:#556c60}
.action-column{text-align:right;width:68px}
.table-action{display:inline-block;padding:6px 9px;border-radius:6px;color:#315d49;font-size:.82rem;font-weight:700}
.table-action:hover{background:#edf3ec;text-decoration:none}
.pagination{min-height:58px;padding:10px 16px;border-top:1px solid #edf1ec;justify-content:flex-end}
.pagination-button{width:34px;height:34px;border:1px solid #dfe7dd;border-radius:7px;display:grid;place-items:center;color:#315d49;text-decoration:none;font-size:1.1rem}
.pagination-button:hover{background:#edf3ec;text-decoration:none}
.role-reference{margin-top:14px;border:1px solid #e3eae2;border-radius:10px;background:#fff}
.role-reference summary{padding:14px 16px;cursor:pointer;font-weight:700;color:#385347}
.role-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;border-top:1px solid #edf1ec}
.role-grid div{padding:16px;border-right:1px solid #edf1ec}
.role-grid div:last-child{border-right:0}
.role-grid p{margin:6px 0 0;color:#718176;font-size:.84rem}
.account-drawer{position:fixed;inset:0;margin:auto;width:min(640px,calc(100vw - 32px));max-height:calc(100dvh - 48px);padding:0;overflow-y:auto;background:#fff;color:#243b32;border:1px solid #dce5da;border-radius:14px;box-shadow:0 24px 70px rgba(23,39,31,.25)}
.account-drawer::backdrop{background:rgba(23,39,31,.35)}
.drawer-head{position:sticky;top:0;z-index:1;background:#fff;display:flex;justify-content:space-between;align-items:center;padding:18px 20px;border-bottom:1px solid #e7ede5}
.drawer-head .user-avatar{width:42px;height:42px}
.drawer-close{width:36px;height:36px;flex:none;border-radius:50%;display:grid;place-items:center;line-height:1;color:#607268;font-size:1.5rem;text-decoration:none}
.drawer-close svg{display:block}
.drawer-close:hover{background:#edf3ec;text-decoration:none}
.drawer-status{display:flex;gap:8px;padding:14px 20px;border-bottom:1px solid #edf1ec}
.drawer-section{padding:18px 20px;border-bottom:1px solid #edf1ec}
.drawer-section h2{font-family:system-ui,sans-serif;font-size:.82rem;text-transform:uppercase;letter-spacing:.05em;margin:0 0 12px}
.drawer-form{display:grid;gap:12px}
.drawer-form button{width:100%}
.drawer-inline-action{margin-top:8px}
.drawer-inline-action button{width:100%}
.drawer-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.drawer-actions h2{grid-column:1/-1}
.drawer-actions button{width:100%}
.danger-button{background:#fff;color:#9b4638;border:1px solid #dfbbb3}
.danger-button:hover{background:#fdf0ed}
.invite-dialog{width:min(520px,calc(100vw - 32px));padding:0;border:1px solid #dce5da;border-radius:14px;box-shadow:0 24px 70px rgba(23,39,31,.25)}
.invite-dialog::backdrop{background:rgba(23,39,31,.35)}
.invite-dialog-form{display:grid;gap:14px;padding:22px}
.dialog-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:4px}
.dialog-head h2{margin:2px 0 0}
.dialog-close{width:36px;height:36px;flex:none;padding:0;display:grid;place-items:center;line-height:1;border:0;border-radius:50%;background:transparent;color:#607268;font-size:1.4rem}
.dialog-close:hover{background:#edf3ec}
.dialog-help{margin:0;color:#718176;font-size:.84rem}
.dialog-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin-top:4px}
.source-actions{margin-top:24px}
.source{margin-bottom:12px}
.source .section-head{align-items:start}
.source .eyebrow{overflow-wrap:anywhere}
.empty{text-align:center;padding:55px}
.portrait{width:72px;height:72px;display:inline-flex;align-items:center;justify-content:center;flex:none;overflow:hidden;border-radius:50%;background:#e8f0e5;border:3px solid #fff;box-shadow:0 0 0 1px #d4e4d3}
.portrait img{width:100%;height:100%;object-fit:cover}
.portrait-placeholder{position:relative;width:24px;height:24px;border-radius:50%;background:#aac2ae;transform:translateY(-7px)}
.portrait-placeholder:after{content:"";position:absolute;width:42px;height:25px;border-radius:22px 22px 8px 8px;background:#aac2ae;top:28px;left:-9px}
.profile-portrait{width:100px;height:100px}
.menu-portrait{width:40px;height:40px}
.menu-portrait .portrait-placeholder{transform:translateY(-4px) scale(.6)}
.profile-heading,.photo-editor{display:flex;align-items:center;gap:22px}
.photo-editor{margin:18px 0}
.photo-editor p{margin:0}
.photo-remove{margin-top:12px}
.profile-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:16px}
.gallery-photo{min-width:0}
.gallery-photo>a{display:block}
.gallery-photo img{display:block;width:100%;height:160px;object-fit:cover;border-radius:8px}
.gallery-remove{margin-top:8px}
.gallery-remove summary,.gallery-settings summary{cursor:pointer;font-weight:650}
.gallery-upload,.gallery-settings{margin-top:24px}
.photo-crop-frame{position:relative;width:min(280px,100%);aspect-ratio:1;overflow:hidden;background:#fff;border:1px solid #d5e0d5;touch-action:none;cursor:grab}
.photo-crop-frame:active{cursor:grabbing}
.photo-crop-frame img{position:absolute;max-width:none;user-select:none;pointer-events:none}
.photo-crop-frame:after{content:"";position:absolute;inset:0;border:2px solid #fff;border-radius:50%;box-shadow:0 0 0 280px rgba(0,0,0,.4);pointer-events:none}
.photo-crop label{margin-top:12px}
.photo-crop-error{margin:0}
.animal-profile-heading{display:flex;align-items:center;gap:18px;margin:0 0 20px}
.animal-profile-heading h1{margin:0}
.animal-profile-heading img,.animal-profile-placeholder{width:112px;height:112px;flex:none;border-radius:50%;object-fit:cover;border:3px solid #fff;box-shadow:0 0 0 1px #d4e4d3}
.animal-profile-placeholder{display:grid;place-items:center;background:#f0e9f4;color:#704d83;font-size:2rem;font-weight:700}
.animal-photo-current{display:block;width:min(240px,100%);aspect-ratio:1;object-fit:cover;border-radius:12px;margin:0 0 18px}
.animal-preview-heading{display:flex;align-items:center;gap:12px}
.animal-preview-heading h3{margin:0}
.animal-preview-heading img{width:56px;height:56px;object-fit:cover;border-radius:50%}
.tree-toolbar{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:28px 0 18px}
.tree-person.tree-person-found{animation:tree-person-found 2.4s ease-out}
@keyframes tree-person-found{0%,60%{box-shadow:0 0 0 4px #e0a43b,0 0 18px 4px rgba(224,164,59,.55)}100%{box-shadow:0 0 0 0 rgba(224,164,59,0)}}
.tree-toolbar label{width:min(370px,100%)}
.tree-toolbar a{padding:10px 0;font-size:.9rem;font-weight:600}
.tree-exports{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:18px 0;font-size:.85rem}
.tree-exports .button{padding:8px 12px}
.tree-hint{font-size:.87rem}
.tree{padding:2px 0 24px}
.tree-zoom{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:0 0 8px;font-size:.8rem;color:#476154}
.tree-zoom button{padding:6px 10px}
.tree-zoom output{min-width:3.5em;text-align:center;font-weight:650}
.branch-heading{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px 18px;margin:28px 0 12px}
.branch-heading h2{margin:0;max-width:100%;overflow-wrap:anywhere}
.branch-title-editor{max-width:100%}
.branch-title-editor summary{cursor:pointer;color:#315d4a;font-size:.9rem;font-weight:600}
.branch-title-editor form{margin-top:12px}
.branch-title-editor label{flex:1;min-width:0}
.tree-branch{width:100%;overflow-x:auto;overscroll-behavior-x:contain;padding:28px 20px;margin-bottom:16px;border:1px solid #e1eade;border-radius:14px;background-color:var(--season-tree);background-image:var(--holiday-pattern);background-size:360px 360px}
.full-tree-chart{display:flex;flex-direction:column;align-items:stretch;width:max-content;min-width:100%;gap:24px}
.full-tree-chart>.tree-branches{justify-content:flex-start;gap:12px}
.full-tree-chart>.tree-secondary-branches{width:min-content;min-width:100%;flex-direction:column;align-items:flex-start}
.full-tree-chart>.tree-branches:empty{display:none}
.full-tree-chart.tree-overview{width:100%}
.full-tree-chart.tree-overview>.tree-main-branches{width:100%;flex-wrap:wrap;align-items:flex-start}
.tree-branch:focus{outline:2px solid #9bb9a3;outline-offset:3px}
.tree-branches,.tree-branches ul{display:flex;justify-content:center;position:relative;list-style:none;margin:0;padding:0}
.tree-branches{width:max-content;min-width:100%}
.tree-branches.tree-overview{width:100%;flex-wrap:wrap;align-items:flex-start}
.tree-branches ul{padding-top:20px}
.tree-branches ul:before{content:"";position:absolute;top:0;left:50%;height:20px;border-left:2px solid #b5cbb6}
.tree-branches li{position:relative;display:flex;flex-direction:column;align-items:center;padding:20px 5px 0}
.tree-branches li:before,.tree-branches li:after{content:"";position:absolute;top:0;width:50%;height:20px;border-top:2px solid #b5cbb6}
.tree-branches li:before{right:50%}
.tree-branches li:after{left:50%;border-left:2px solid #b5cbb6}
.tree-branches li:only-child{padding-top:0}
.tree-branches li:only-child:before,.tree-branches li:only-child:after,.tree-branches>li:before,.tree-branches>li:after{display:none}
.tree-branches li:first-child:before,.tree-branches li:last-child:after{border-top:0}
.tree-branches>li{padding-top:0}
.branch-download{position:relative;z-index:2;margin-bottom:8px;font-size:.75rem}
.branch-download summary{cursor:pointer;color:#315d49;font-weight:650;white-space:nowrap}
.branch-download>div{position:absolute;top:100%;left:50%;transform:translateX(-50%);min-width:145px;padding:5px;background:#fff;border:1px solid #d5e4d4;border-radius:8px;box-shadow:0 5px 16px rgba(37,71,49,.12)}
.branch-download a{display:block;padding:5px 8px;white-space:nowrap}
.branch-download a:hover{background:#edf3ec;border-radius:4px;text-decoration:none}
.tree-person{display:flex;flex-direction:column;align-items:center;gap:4px;width:var(--tree-card-width,150px);min-height:var(--tree-card-min,132px);padding:10px 8px;text-align:center;background:#fff;border:1px solid #dce8da;border-radius:12px;color:#294a37;box-shadow:0 5px 16px rgba(37,71,49,.06)}
.tree-person:hover{border-color:#8faf91;box-shadow:0 6px 20px rgba(37,71,49,.12);text-decoration:none}
.tree-person-review{justify-content:center;background:#f7f5ef;color:#685d4b}
.ancestor-tree>.tree-ancestors{display:flex;justify-content:center;align-items:flex-start;width:max-content;min-width:100%;padding:0}
.tree-ancestors{display:flex;justify-content:center;align-items:flex-start;gap:12px;list-style:none;margin:0;padding:0}
.tree-ancestor-node{position:relative;display:flex;flex-direction:column;align-items:center;padding:0 6px}
.tree-ancestor-parents{position:relative;display:flex;flex-direction:column;align-items:center;padding-top:24px}
.tree-ancestor-parents:before{content:"";position:absolute;top:0;left:50%;height:24px;border-left:2px solid #b5cbb6}
.tree-ancestor-parents>strong{margin-bottom:8px;color:#54765d;font-size:.75rem}
.tree-ancestor-parents>.tree-ancestors{position:relative;padding-top:16px}
.tree-ancestor-parents>.tree-ancestors:before{content:"";position:absolute;top:0;left:25%;right:25%;border-top:2px solid #b5cbb6}
.tree-ancestor-parents>.tree-ancestors>.tree-ancestor-node:before{content:"";position:absolute;top:0;left:50%;height:16px;border-left:2px solid #b5cbb6}
.tree-ancestor-repeat{margin-top:5px;color:#718575;font-size:.7rem}
.tree-person-filtered{visibility:hidden!important}
.tree-partner.tree-filtered-out{visibility:hidden!important}
.tree-color-generation .tree-person:not(.tree-person-review){background:hsl(var(--tree-generation-hue,150),35%,92%)}
.tree-color-family .tree-person:not(.tree-person-review){background:hsl(var(--tree-family-hue,150),36%,93%)}
.tree-person.tree-path-active{position:relative;z-index:2;outline:3px solid #b66b2b;outline-offset:2px;box-shadow:0 0 0 6px rgba(182,107,43,.16)}
.tree-person.tree-path-dim{opacity:.28;filter:grayscale(.7)}
.tree-extra-options{display:grid;gap:12px;width:100%;margin:0;padding:0;border:0}
.tree-extra-options legend{margin-bottom:4px;font-weight:650;color:#476154}
.tree-extra-options select{width:auto;min-width:145px;margin:0;padding:6px 8px;font-size:.85rem}
.tree-relationship-tools,.tree-line-tools,.tree-extra-actions{align-items:center}
.tree-relationship-tools>strong{width:100%;color:#476154}
.tree-relationship-tools select{flex:1;min-width:180px}
.tree-relation-result{flex-basis:100%;color:#315d49;line-height:1.45}
.tree-filter-status{flex-basis:100%;margin:0;padding:8px 10px;border-radius:6px;background:#fff3dd;color:#70572e}
.tree-minimap{width:160px;height:84px;flex:none;border:1px solid #d5e4d4;border-radius:6px;background:#eef3eb;cursor:crosshair}
.tree-dragging{cursor:grabbing!important;user-select:none}
.tree-branch{position:relative;touch-action:pan-x pan-y}
.tree-timeline{max-width:980px;margin:24px auto;padding:24px;border:1px solid #d5e4d4;border-radius:14px;background:#fff}
.tree-timeline h2{margin-bottom:20px}
.tree-timeline ol{position:relative;display:grid;gap:0;list-style:none;margin:0;padding:0 0 0 28px}
.tree-timeline ol:before{content:"";position:absolute;top:8px;bottom:8px;left:8px;border-left:2px solid #b5cbb6}
.tree-timeline li{position:relative;display:grid;grid-template-columns:minmax(90px,130px) 1fr;gap:12px;padding:8px 0}
.tree-timeline li:before{content:"";position:absolute;top:16px;left:-25px;width:12px;border:2px solid #6f9576;border-radius:50%;background:#fff}
.tree-timeline li[hidden]{display:none}
.tree-timeline time{color:#54765d;font-weight:650}
.tree-timeline li div{display:grid;gap:3px}
.tree-timeline li span,.tree-timeline li p{margin:0;color:#718575;font-size:.85rem}
.tree-display[open] .tree-extra-options{padding-top:10px;border-top:1px solid #e5ece3}
.full-tree-page>.tree-timeline{height:100%;overflow:auto;margin:0;border:0;border-radius:0}
.tree-printing .tree-frame-active{position:static!important;display:block!important;overflow:visible!important}
@media print{
    body.tree-printing .topbar,body.tree-printing .full-tree-controls,body.tree-printing .tree-display,
    body.tree-printing .tree-zoom,body.tree-printing .tree-toolbar,body.tree-printing .tree-hint,
    body.tree-printing .tree-exports,body.tree-printing .branch-heading,body.tree-printing footer{display:none!important}
    body.tree-printing .tree-frame:not([data-print-target]){display:none!important}
    body.tree-printing main{width:100%;max-width:none;padding:0;margin:0}
    body.tree-printing .tree-branch{width:100%;height:auto;max-height:none;overflow:visible;border:0;background:#fff!important}
    body.tree-printing .tree-person{break-inside:avoid;box-shadow:none}
    body.tree-printing .full-tree-chart,body.tree-printing .tree-branches{zoom:.8}
}
.tree-person strong{font-family:Georgia,serif;font-size:1rem;line-height:1.25;overflow-wrap:anywhere}
.tree-couple{display:grid;grid-template-columns:1fr auto 1fr;align-items:start;width:max-content;isolation:isolate}
.tree-couple>.tree-partner-before{grid-column:1;grid-row:1}
.tree-couple>.tree-person-wrap{grid-column:2;grid-row:1}
.tree-couple>.tree-partner-after{grid-column:3;grid-row:1}
.tree-person-wrap{display:flex;align-items:flex-start}
.tree-animals{position:relative;width:max-content;margin:12px 0 0 18px;font-size:.72rem;text-align:left;color:#704d83}
.tree-animals:before{content:"";position:absolute;top:11px;left:-18px;width:18px;border-top:2px solid #a87cbd}
.tree-animals summary{cursor:pointer;color:#704d83;font-weight:650;padding:3px 8px;background:#f4edf8;border:1px solid #d7c2e2;border-radius:8px;white-space:nowrap}
.tree-animal-list{display:flex;flex-direction:column;gap:4px;width:180px;max-height:160px;overflow:auto;margin-top:5px}
.tree-animal-list a{padding:4px 8px;background:#fbf7fd;border:1px solid #d7c2e2;border-radius:6px;color:#704d83;overflow-wrap:anywhere}
.animal-dialog{width:min(600px,94vw);max-height:85vh;padding:24px;border:1px solid #d7c2e2;border-radius:14px;box-shadow:0 12px 40px rgba(37,34,41,.25);overflow:auto}
.animal-dialog::backdrop{background:rgba(25,34,29,.55)}
.animal-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}
.animal-dialog-heading h2{margin:0}
.animal-dialog-content{overflow-wrap:anywhere}
.animal-dialog-content .animal-lineage{width:max-content}
.animal-lineage{margin:8px 0 0 8px;padding-left:12px;border-left:2px solid #c5a5d3}
.animal-node{position:relative;margin:7px 0}
.animal-node:before{content:"";position:absolute;left:-12px;top:12px;width:12px;border-top:2px solid #c5a5d3}
.animal-node>a{display:inline-block;max-width:220px;padding:4px 8px;background:#fbf7fd;border:1px solid #d7c2e2;border-radius:6px;color:#704d83;overflow-wrap:anywhere}
.animal-descendants{margin-left:14px;padding-left:12px;border-left:2px solid #c5a5d3}
.animal-repeat{color:#876e91}
.tree-partner-before .tree-person-wrap{flex-direction:row-reverse}
.tree-partner-before .tree-animals{margin:12px 18px 0 0}
.tree-partner-before .tree-animals:before{left:auto;right:-18px}
.tree-partner-side{display:flex;align-items:flex-start}
.tree-partner-before{justify-content:flex-end}
.tree-partner{position:relative;display:flex;flex-direction:column;align-items:center}
.tree-partner-before .tree-partner{padding-right:12px}
.tree-partner-after .tree-partner{padding-left:12px}
.tree-partner:before{content:"";position:absolute;z-index:-1;top:calc(var(--tree-card-min,132px) / 2);width:12px;border-top:2px solid #b5cbb6}
.tree-partner-before .tree-partner:before{right:0}
.tree-partner-after .tree-partner:before{left:calc(12px - var(--partner-gap, 12px));width:var(--partner-gap, 12px)}
.tree-partner-after .tree-partner-around-animals:before{top:-8px;height:calc(var(--tree-card-min,132px) / 2 + 10px);border-left:2px solid #b5cbb6;border-right:2px solid #b5cbb6}
.tree-partner-before .tree-partner:not(:last-child):before,.tree-partner-after .tree-partner:not(:first-child):before{display:none}
.tree-coparent:before{display:none}
.tree-partner-status{font-size:.68rem;color:#718575;line-height:1.3;margin-top:6px;max-width:var(--tree-card-width,150px);overflow-wrap:anywhere}
.tree-family-groups{display:flex;align-items:flex-start;gap:12px;width:max-content;padding-top:28px}
.tree-family-connectors{position:absolute;top:0;left:0;overflow:visible;pointer-events:none}
.tree-family-connectors path{fill:none;stroke-width:2}
.tree-descendants{width:max-content;text-align:center}
.tree-descendants>summary{display:inline-block;position:relative;max-width:220px;padding:4px 10px;border:1px solid #d5e4d4;border-radius:20px;background:#fff;color:#54765d;font-size:.7rem;font-weight:650;cursor:pointer}
.tree-descendants>summary::-webkit-details-marker{display:none}
.tree-descendants>summary:after{content:" +"}
.tree-descendants[open]>summary:after{content:" −"}
.tree-portrait{width:50px;height:50px;margin-bottom:3px}
.tree-portrait .portrait-placeholder{transform:translateY(-5px) scale(.8)}
.tree-date{font-size:.72rem;color:#718575;line-height:1.35;overflow-wrap:anywhere}
.tree-other-parent{font-size:.69rem;color:#829485;line-height:1.3;overflow-wrap:anywhere}
.tree{--tree-card-width:150px;--tree-card-min:132px}
.tree.tree-hide-photos{--tree-card-min:84px}
.tree.tree-size-compact{--tree-card-width:120px;--tree-card-min:100px}
.tree.tree-size-compact.tree-hide-photos{--tree-card-min:56px}
.tree.tree-size-large{--tree-card-width:190px;--tree-card-min:164px}
.tree.tree-size-large.tree-hide-photos{--tree-card-min:100px}
.tree-size-compact .tree-person{gap:2px;padding:6px}
.tree-size-compact .tree-person strong{font-size:.84rem}
.tree-size-compact .tree-portrait{width:36px;height:36px;margin-bottom:1px}
.tree-size-compact .tree-date,.tree-size-compact .tree-other-parent{font-size:.64rem}
.tree-size-large .tree-person{gap:6px;padding:14px 10px}
.tree-size-large .tree-person strong{font-size:1.15rem}
.tree-size-large .tree-portrait{width:72px;height:72px}
.tree-size-large .tree-date,.tree-size-large .tree-other-parent{font-size:.8rem}
.tree-hide-photos .tree-person .tree-portrait,.tree-hide-dates .tree-date,.tree-hide-animals .tree-animals,.tree-hide-notes .tree-partner-status,.tree-hide-notes .tree-other-parent{display:none}
.tree-hide-photos .tree-person{justify-content:center}
.tree-shade-deceased .tree-person[data-deceased]{background:#eff1ed;border-style:dashed;color:#566a5d}
.tree-shade-deceased .tree-person[data-deceased] .tree-portrait{filter:grayscale(1);opacity:.85}
.tree-display{margin:0 0 14px;border:1px solid #d5e4d4;border-radius:10px;background:#fff;font-size:.85rem}
.tree-display>summary{padding:8px 14px;cursor:pointer;font-weight:650;color:#315d49}
.tree-display-body{display:flex;flex-wrap:wrap;gap:12px 24px;padding:4px 14px 14px}
.tree-display fieldset{display:flex;flex-wrap:wrap;gap:6px 14px;margin:0;padding:0;border:0}
.tree-display legend{width:100%;margin-bottom:4px;font-weight:650;color:#476154}
.tree-display label{display:inline-flex;align-items:center;gap:4px;margin:0;font-weight:normal;cursor:pointer}
.tree-display input{width:auto;margin:0}
.tree-display-actions{display:flex;align-items:center;flex-wrap:wrap;gap:6px;width:100%}
.tree-display-actions span{font-weight:650;color:#476154}
.tree-display-actions button{padding:6px 10px}
.full-tree-controls .tree-display{margin:12px 0 0}
.tree-frame-title{display:none}
.tree-frame-active{display:flex;flex-direction:column;gap:6px;padding:12px 16px;background:#f6f9f4;overflow:hidden}
.tree-frame-active .tree-frame-title{display:block;margin:0;font-size:1.25rem}
.tree-frame-active>.tree-zoom,.tree-frame-active>.tree-display{flex:none;margin:0}
.tree-frame-active>.tree-branch{flex:1;min-height:0;margin:0;overflow:auto;overscroll-behavior:contain}
.tree-frame-expanded{position:fixed;inset:0;z-index:1000}
body.tree-frame-open{overflow:hidden}
.tree-fullscreen-button{margin-left:auto}
footer{text-align:center;color:#96a49a;font-size:.8rem;border-top:1px solid #e4e9e1;padding:25px}footer span{padding:0 8px}
.sr-only{position:absolute;left:0;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:700px){.topbar{align-items:flex-start;flex-direction:column;padding:16px 24px}nav{gap:14px}.profile-menu{position:absolute;top:16px;right:24px}.settings-menu,.season-settings{position:static}.settings-links,.season-settings-content{left:12px;right:12px;top:calc(100% + 4px);min-width:0}main{padding-top:32px}.hero{padding:38px 26px}.profile-grid,.columns{grid-template-columns:1fr}.section-head{align-items:flex-start;flex-wrap:wrap}.inline-form label{width:100%}.profile-heading{align-items:flex-start}.profile-portrait{width:72px;height:72px}.tree-branch{padding:20px 10px}.tree{--tree-card-width:140px}.admin-filter-bar{grid-template-columns:1fr}.bulk-toolbar{align-items:stretch;flex-wrap:wrap}.result-count{width:100%;margin-left:0}.account-action-menu{position:fixed;left:16px;right:16px;bottom:16px;top:auto;width:auto}}
@media(max-width:700px){.account-page-head{align-items:flex-start}.account-page-head .button{white-space:nowrap}.account-stat-grid{grid-template-columns:1fr 1fr}.account-search{display:grid;grid-template-columns:1fr}.account-search button{width:100%}.account-table th:nth-child(3),.account-table td:nth-child(3),.account-table th:nth-child(5),.account-table td:nth-child(5){display:none}.role-grid{grid-template-columns:1fr 1fr}.role-grid div:nth-child(2){border-right:0}.role-grid div:nth-child(-n+2){border-bottom:1px solid #edf1ec}.pagination span:nth-of-type(2){display:none}}
.admin-accounts-page main{max-width:1180px;background:transparent}
.admin-accounts-page input,.admin-accounts-page textarea,.admin-accounts-page select{color:#183128;-webkit-text-fill-color:#183128;opacity:1}
.admin-accounts-page input::placeholder,.admin-accounts-page textarea::placeholder{color:#718178;-webkit-text-fill-color:#718178;opacity:1}
.admin-accounts-page select option{color:#183128;background:#fff}
.account-manager-toolbar,.account-table-wrap,.account-stat-grid,.role-reference{background:#fff}
.account-table th{color:#53685d}
.account-table td{color:#243b32}
.account-search input,.account-search select,.bulk-toolbar select{background:#fff;color:#183128}
.appearance-toggle{flex:none;min-height:44px}
.appearance-toggle[aria-pressed="true"]{box-shadow:inset 3px 0 currentColor}
.appearance-toggle[hidden],.back-to-top[hidden]{display:none}
.back-to-top{position:fixed;right:24px;bottom:24px;z-index:30;width:48px;height:48px;padding:0;border-radius:50%;display:grid;place-items:center;box-shadow:0 4px 18px rgba(0,0,0,.25)}
.back-to-top svg{display:block}
.appearance-toggle:focus-visible,.back-to-top:focus-visible{outline:3px solid #9bb9a3;outline-offset:3px}
:root[data-color-mode="light"]{color-scheme:light}
:root[data-color-mode="dark"]{color-scheme:dark;color:#e8f0eb;--page-base:#101a15;--season-wash:#13221a;--season-accent:#293c30;--season-tree:#172a20;--season-hero:#21382b;--dark-surface:#18251f;--dark-raised:#263b30;--dark-text:#e8f0eb;--dark-muted:#b5c6ba;--dark-border:#496352}
:root[data-color-mode="dark"][data-season="spring"]{--season-wash:#211c25;--season-accent:#422a3b;--season-tree:#23212d;--season-hero:#302537}
:root[data-color-mode="dark"][data-season="summer"]{--season-wash:#232216;--season-accent:#3e3821;--season-tree:#272b1b;--season-hero:#343920}
:root[data-color-mode="dark"][data-season="autumn"]{--season-wash:#261d17;--season-accent:#443021;--season-tree:#2d251d;--season-hero:#3b2c20}
:root[data-color-mode="dark"][data-season="winter"]{--season-wash:#17222a;--season-accent:#263d4c;--season-tree:#1c2a33;--season-hero:#253a46}
:root[data-color-mode="dark"] :is(.topbar,.card,.person-card,.settings-links,.profile-links,.account-table,.account-manager,.account-stat,.role-reference,.account-drawer,.drawer-head,.invite-dialog,.animal-dialog,.full-tree-controls,.full-tree-gear,.full-tree-find,.full-tree-controls>summary,.branch-download>div,.tree-person,.tree-descendants>summary,.account-action-menu,.account-manager-toolbar,.account-table-wrap,.account-stat-grid){background:var(--dark-surface);color:var(--dark-text);border-color:var(--dark-border)}
:root[data-color-mode="dark"] :is(h1,h2,h3,label,.holiday-designs legend,.account-stat strong,.account-empty strong){color:var(--dark-text)}
:root[data-color-mode="dark"] :is(p,small,dt,.eyebrow,.tree-date,.tree-other-parent,.tree-partner-status,.relationship-status,.profile-link-cell,.dialog-help,.result-count,.pagination span,.account-empty){color:var(--dark-muted)}
:root[data-color-mode="dark"] a:not(.button),:root[data-color-mode="dark"] :is(summary,.link-button,.profile-links button){color:#aedcbd}
:root[data-color-mode="dark"] :is(input,textarea,select,select option){background:#101c16;color:var(--dark-text);-webkit-text-fill-color:var(--dark-text);border-color:var(--dark-border)}
:root[data-color-mode="dark"] :is(input,textarea)::placeholder{color:var(--dark-muted);-webkit-text-fill-color:var(--dark-muted)}
:root[data-color-mode="dark"] :is(input,textarea,select):focus{outline-color:#8fbba0}
:root[data-color-mode="dark"] :is(.secondary,.role-badge,.holiday-status,.count,.avatar,.user-avatar,.account-card .status-label){background:var(--dark-raised);color:var(--dark-text)}
:root[data-color-mode="dark"] :is(.secondary:hover,.profile-links a:hover,.profile-links button:hover,.table-action:hover,.drawer-close:hover,.dialog-close:hover,.branch-download a:hover,.pagination-button:hover,.account-stat:hover,.account-table tbody tr:hover){background:#2e4939}
:root[data-color-mode="dark"] .account-table th{background:var(--dark-raised);color:var(--dark-muted)}
:root[data-color-mode="dark"] :is(.account-table td,.account-table td strong){color:var(--dark-text)}
:root[data-color-mode="dark"] :is(.account-table td small,.user-cell small,.role-grid p,.account-page-head .intro,.person-card small,.row small){color:var(--dark-muted)}
:root[data-color-mode="dark"] :is(.drawer-status,.drawer-section,.relative,.row,.partner-editor,.partner-add,.child-link-form,.account-manager-toolbar,.bulk-toolbar,.pagination,.role-grid,.role-grid div,.research-fact,.research-source,.timeline-event,.family-story,footer,.account-table th,.account-table td){border-color:var(--dark-border)}
:root[data-color-mode="dark"] .status-active{background:#234631;color:#b4e2c1}
:root[data-color-mode="dark"] .status-disabled{background:#493128;color:#efc5b5}
:root[data-color-mode="dark"] .danger-button{background:var(--dark-surface);color:#f4b6aa;border-color:#bc8176}
:root[data-color-mode="dark"] .danger-button:hover{background:#493128}
:root[data-color-mode="dark"] .alert{background:#234631;color:var(--dark-text);border-color:#638e70}
:root[data-color-mode="dark"] .error{background:#493128;color:#ffd1c5;border-color:#bc8176}
:root[data-color-mode="dark"] .bulk-delete-confirmation :is(p,label){color:inherit}
:root[data-color-mode="dark"] .portrait{background:var(--dark-raised);border-color:var(--dark-surface);box-shadow:0 0 0 1px var(--dark-border)}
:root[data-color-mode="dark"] .brand-icon{background:#dbeadf;border-radius:50%}
:root[data-color-mode="dark"] .holiday-design{border-color:var(--dark-border)}
:root[data-color-mode="dark"] .holiday-design:has(input:checked){background:var(--dark-raised);border-color:#aedcbd;box-shadow:0 0 0 1px #aedcbd}
:root[data-color-mode="dark"] :is(.tree-animals summary,.tree-animal-list a,.animal-node>a){background:#35263f;color:#e0c4f1;border-color:#936eaa}
:root[data-color-mode="dark"] .animal-repeat{color:#d2b4e3}
@media print{.appearance-toggle,.back-to-top{display:none}}
.email-template>summary{cursor:pointer}
.email-template .badge{display:inline-block;margin-left:.4rem;padding:.05rem .5rem;border-radius:999px;background:#dcefe3;color:#1f5137;font-size:.8rem}
.placeholder-list{display:grid;grid-template-columns:max-content 1fr;gap:.25rem .75rem;margin:0}
.placeholder-list dd{margin:0}
.email-preview{border:1px solid #c9d6cf;border-radius:8px;padding:.75rem 1rem;background:#fff;color:#243b32;overflow-wrap:anywhere;overflow:hidden}
.email-preview img{max-width:100%;height:auto}
.email-templates>p{background:#edf3ec;border:1px solid #d4e4d3;border-radius:8px;padding:12px 16px;color:#486353}
.email-preview-text{white-space:pre-wrap;overflow-wrap:anywhere}
:root[data-color-mode="dark"] .email-template .badge{background:#2f4a3a;color:#d6f0de}
