:root{--ink:#24372e;--green:#234d40;--muted:#788078;--line:#e1e4dc;--paper:#f6f6f0;--gold:#b39a65}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--paper);font:15px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid var(--line);background:white;color:var(--ink);padding:10px 15px;border-radius:8px;font-weight:550}button:hover{background:#edf1ea}button:focus-visible,a:focus-visible{outline:3px solid #adbf82;outline-offset:3px}.primary{background:var(--green);color:white;border-color:var(--green)}.primary:hover{background:#32624e}header{height:90px;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 36px;border-bottom:1px solid var(--line);gap:15px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink);font:23px Georgia,serif}.brandmark{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#edf2e9;color:var(--green);font-size:36px}.brand small{display:block;font:9px -apple-system,sans-serif;letter-spacing:3px;margin-top:5px}.head-actions{display:flex;gap:10px;align-items:center}.private{font-size:12px;color:#58715c;margin-right:15px}.app{display:grid;grid-template-columns:310px minmax(0,1fr);min-height:calc(100vh - 90px)}aside{background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;position:sticky;top:0;height:calc(100vh - 0px);max-height:calc(100dvh - 0px);padding:28px 18px 16px}.aside-title{display:flex;justify-content:space-between;align-items:center;padding:0 8px}.eyebrow{font-size:9px;letter-spacing:2px;color:var(--muted);font-weight:650}h2{font:25px Georgia,serif;margin:10px 0 20px}.square{font-size:23px;padding:1px;width:35px;height:35px}.search{display:flex;align-items:center;gap:9px;background:var(--paper);border:1px solid var(--line);padding:9px 11px;border-radius:8px}.search span{font-size:24px}.search input{border:0;background:transparent;width:100%;min-width:0;outline:none;font-size:13px}.list-caption{display:flex;justify-content:space-between;align-items:center;margin:20px 4px 12px;color:var(--muted);font-size:11px;gap:8px}.list-caption select{border:0;background:transparent;color:var(--muted);font-size:11px;max-width:165px}.people{overflow:auto;flex:1;padding-right:2px}.person-row{display:flex;width:100%;align-items:center;text-align:left;border:0;padding:11px 9px;gap:11px;margin-bottom:3px;background:transparent;border-radius:8px}.person-row.selected{background:#eaf0e5}.avatar{display:grid;place-items:center;flex-shrink:0;width:38px;height:38px;border:1px solid #dde3d6;background:#f5f6ef;color:#5b705c;border-radius:50%;font:15px Georgia,serif}.person-row strong{display:block;font-size:13px;font-weight:550}.person-row small{font-size:11px;color:var(--muted);display:block;margin-top:5px}.aside-foot{border-top:1px solid var(--line);padding:15px 8px 0;font-size:11px;color:#5d6c60}.aside-foot small{display:block;margin-top:6px;color:var(--muted);font-size:10px}main{max-width:1450px;width:100%;padding:38px 42px 70px;margin:auto}.intro{display:flex;justify-content:space-between;gap:15px}h1{font:36px Georgia,serif;letter-spacing:-1px;margin:13px 0}p{line-height:1.6}.intro p{color:var(--muted);font-size:13px;margin:0}.edition{text-align:center;font-size:8px;letter-spacing:2px;color:var(--muted);padding-top:8px}.edition b{font:44px Georgia,serif;color:#c3c9b8;display:block;margin-top:8px}.notice{display:flex;gap:12px;border:1px solid #dfe6d7;background:#eef2e8;border-radius:9px;padding:13px 16px;margin:25px 0}.notice>span{font-size:24px;color:#70875d}.notice b{font-size:12px;font-weight:550}.notice small{display:block;font-size:11px;color:#6d7867;line-height:1.5;margin-top:4px}.profile{background:#fff;border:1px solid var(--line);border-radius:13px;overflow:hidden}.profile-top{padding:27px 28px 23px;display:flex;gap:18px;align-items:center}.profile-top .avatar{width:65px;height:65px;font-size:25px;background:#e8eee0}.profile-top h2{margin:5px 0 6px;font-size:29px}.profile-top p{margin:0;color:var(--muted);font-size:12px}.profile-actions{margin-left:auto;display:flex;gap:8px}.profile-actions button{font-size:12px}.facts{display:grid;grid-template-columns:1fr 1fr 1fr;border-top:1px solid var(--line);background:#fbfcf8}.fact{padding:18px 26px;border-right:1px solid var(--line);font-size:13px;line-height:1.5}.fact:last-child{border:0}.fact label{display:block;font-size:9px;text-transform:uppercase;letter-spacing:1.5px;color:var(--muted);margin-bottom:7px}.fact small{display:block;color:var(--muted);font-size:11px}.tabs{display:flex;gap:24px;border-bottom:1px solid var(--line);margin-top:25px}.tabs button{padding:14px 1px;border:0;border-radius:0;background:transparent;font-size:13px;color:var(--muted)}.tabs button.active{color:var(--green);border-bottom:2px solid var(--green)}.section-head{display:flex;justify-content:space-between;align-items:center;margin:24px 0 16px}.section-head h3{font:22px Georgia,serif;margin:0}.section-head span{font-size:10px;color:var(--muted)}.tree-area{background:#eeefe6;border:1px solid #dfe2d5;border-radius:12px;padding:28px 20px;text-align:center;background-image:radial-gradient(#dce0d2 .8px,transparent .8px);background-size:14px 14px}.tree-label{font-size:9px;letter-spacing:2px;text-transform:uppercase;color:var(--muted);margin:2px 0 13px}.tree-row{display:flex;justify-content:center;gap:14px;flex-wrap:wrap}.tree-card{background:#fff;border:1px solid #d7dece;border-radius:9px;padding:15px 18px;min-width:160px;max-width:245px;box-shadow:0 3px 7px #24372e04}.tree-card strong{display:block;font:17px Georgia,serif;margin:3px 0 8px}.tree-card small{color:var(--muted);font-size:11px}.tree-card.focus{background:var(--green);color:#fff;border-color:var(--green)}.tree-card.focus small{color:#c6d9c8}.connector{width:1px;background:#aebda3;height:26px;margin:auto}.empty{font-size:13px;color:var(--muted);padding:20px}.notes,.details-box{padding:22px;background:#fff;border:1px solid var(--line);border-radius:10px;margin-top:20px;line-height:1.7;font-size:14px}.notes{white-space:pre-wrap}.event{display:grid;grid-template-columns:135px 1fr;gap:15px;border-bottom:1px solid var(--line);padding:14px 0}.event:last-child{border:0}.event small{display:block;color:var(--muted)}.family-list{display:grid;gap:12px}.family-box{padding:18px;background:#fff;border:1px solid var(--line);border-radius:10px}.family-box h4{margin:0 0 12px;font-weight:550;font-size:13px}.family-box button{margin:3px;font-size:12px}.text-action{border:0;background:transparent;color:var(--green);padding:7px;font-size:12px}.mobile-back{display:none}dialog{border:1px solid var(--line);border-radius:15px;width:640px;max-width:calc(100% - 24px);max-height:90dvh;padding:25px;color:var(--ink);box-shadow:0 20px 100px #0002}dialog::backdrop{background:#182b2566;backdrop-filter:blur(3px)}.dialog-head{display:flex;justify-content:space-between;align-items:center}.dialog-head h2{margin:8px 0 20px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}label{font-size:12px}dialog label{display:block}dialog input,dialog select,dialog textarea{display:block;width:100%;border:1px solid #d7ddd3;border-radius:7px;padding:10px;background:#fbfcf9;color:var(--ink);margin-top:7px}dialog .wide{grid-column:1/-1}.check{display:flex;align-items:center;gap:8px}.check input{width:auto;margin:0}.hint{font-size:11px;color:var(--muted);line-height:1.6}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}#relation-form>label{margin:15px 0}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);padding:13px 22px;background:var(--green);color:white;border-radius:8px;box-shadow:0 5px 25px #0002;display:none;z-index:20;font-size:13px;max-width:90vw}
@media(min-width:1700px){main{padding-left:65px;padding-right:65px}}@media(max-width:1100px){.app{grid-template-columns:265px minmax(0,1fr)}main{padding:28px 23px}.profile-top{flex-wrap:wrap;padding:22px}.profile-actions{margin-left:83px}.fact{padding:15px}h1{font-size:29px}.edition{display:none}}@media(max-width:700px){header{padding:0 16px;height:77px}.brand{font-size:18px;gap:8px}.brandmark{width:34px;height:34px;font-size:28px}.brand small{font-size:7px}.private{display:none}.head-actions{gap:6px}.head-actions button{font-size:10px;padding:9px 8px}.app{display:block}aside{height:calc(100dvh - 77px);position:static;border:0;padding:24px 16px}main{display:none;padding:17px 16px 40px}body.detail aside{display:none}body.detail main{display:block}.mobile-back{display:block;border:0;background:transparent;padding:6px 0 22px;font-size:12px}.intro .eyebrow{font-size:8px}h1{font-size:28px}.intro p{font-size:12px}.notice{margin:18px 0}.profile-top{gap:13px;padding:20px 16px}.profile-top .avatar{width:50px;height:50px;font-size:20px}.profile-top h2{font-size:24px}.profile-actions{margin-left:0;width:100%}.facts{grid-template-columns:1fr 1fr}.fact{padding:14px}.fact:last-child{grid-column:1/-1;border-top:1px solid var(--line)}.tabs{gap:20px}.tree-area{padding:22px 10px}.tree-card{min-width:130px;flex:1;padding:12px 8px}.tree-card strong{font-size:15px}.tree-row{gap:8px}.form-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}.form-grid>div:empty{display:none}dialog{padding:20px}.event{grid-template-columns:95px 1fr}.section-head span{max-width:130px;text-align:right;font-size:9px}}
.person-picker{display:flex;gap:10px;align-items:stretch;margin:7px 0 15px}.person-picker select{margin:0;min-width:0;flex:1}.person-picker button{flex-shrink:0;color:var(--green);border-color:#aabca0;background:#f0f5eb}.person-picker button span{font-size:20px;margin-right:4px}.tree-card.add-relative{border:1px dashed #9caf92;background:#f6f9f1;box-shadow:none}.tree-card.add-relative strong{font:13px -apple-system,sans-serif}.plus-mark{font-size:24px;color:var(--green)}#edit-context:empty{display:none}@media(max-width:480px){.person-picker{flex-wrap:wrap}.person-picker select{flex-basis:100%}.person-picker button{width:100%}}
/* Each family keeps its own couple and descendants together. */
.grouped-tree{padding:28px 22px 24px}.ancestor-families{display:flex;justify-content:center;gap:16px;flex-wrap:wrap}.ancestor-family{padding:18px;border:1px solid #d5ddcd;background:#f8faf4;border-radius:12px;max-width:100%}.ancestor-family .tree-label{line-height:1.7;margin-bottom:12px}.ancestor-couple{display:flex;align-items:stretch;justify-content:center;gap:10px}.ancestor-couple .tree-card{flex:1;min-width:0;max-width:220px;overflow-wrap:anywhere}.ancestry-stem{width:1px;height:26px;background:#acbca1;margin:auto}.tree-focus{display:flex;flex-direction:column;align-items:center;gap:10px}.tree-focus>.tree-card{min-width:225px;max-width:330px}.tree-focus>.tree-label{margin:0}.branches-title{display:flex;justify-content:space-between;align-items:center;text-align:left;gap:12px;margin:32px 0 15px}.branches-title h4{margin:0;font:21px Georgia,serif}.branches-title .text-action{border:1px solid #cbd7bf;background:#f8faf4;border-radius:8px;padding:9px 12px;white-space:nowrap}.family-branches{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:20px;text-align:center;align-items:start}.family-branch{background:#fafbf7;border:1px solid #cdd9c3;border-top:4px solid #6f8d62;border-radius:12px;overflow:hidden;box-shadow:0 4px 12px #22372c06}.family-branch:nth-child(3n+2){border-top-color:#869eaf}.family-branch:nth-child(3n+3){border-top-color:#b49b72}.branch-heading{display:flex;justify-content:space-between;gap:12px;padding:14px 17px;text-align:left;font-size:10px;line-height:1.6;border-bottom:1px solid #e0e6d9;background:#f3f6ed}.branch-tag{color:#5c7150}.branch-count{color:#788078;white-space:nowrap}.couple-row{display:flex;align-items:stretch;justify-content:center;padding:20px 16px 0;gap:0}.couple-row .tree-card{flex:1;min-width:0;max-width:none;padding:16px 10px;overflow-wrap:anywhere}.couple-row .tree-card strong{font-size:16px;line-height:1.4}.tree-card small{line-height:1.6;display:block}.couple-link{display:flex;align-items:center;justify-content:center;align-self:center;flex-shrink:0;width:25px;color:#6e8564;font:17px Georgia,serif;position:relative}.couple-link:before{content:'';position:absolute;top:50%;left:0;right:0;border-top:1px solid #a3b797;z-index:0}.couple-link{isolation:isolate}.couple-link:after{content:'';position:absolute;inset:0 5px;background:#fafbf7;z-index:-1}.unknown-parent{flex:1;border:1px dashed #c8d3be;border-radius:9px;display:flex;flex-direction:column;justify-content:center;font-size:13px;color:#718069;padding:12px;line-height:1.5}.unknown-parent small{font-size:10px}.descendants{position:relative;padding:28px 16px 20px}.descendants:before{content:'';height:26px;position:absolute;left:50%;top:0;border-left:1px solid #9cb08f}.children-caption{font-size:9px;text-transform:uppercase;letter-spacing:1.5px;color:#75836a;margin:6px 0 15px}.children-row{display:flex;justify-content:center;align-items:stretch;gap:0;padding-top:0}.child-node{flex:1;min-width:0;position:relative;padding:21px 6px 0}.child-node:before{content:'';position:absolute;top:0;left:0;right:0;border-top:1px solid #9cb08f}.child-node:after{content:'';position:absolute;left:50%;top:0;height:21px;border-left:1px solid #9cb08f}.child-node:first-child:before{left:50%}.child-node:last-child:before{right:50%}.child-node .tree-card{width:100%;min-width:0;max-width:none;height:100%;padding:14px 9px;overflow-wrap:anywhere}.child-node .tree-card strong{font-size:16px;line-height:1.4}.single-child .child-node{flex:0 1 250px}.no-children{font-size:12px;color:#7b8475;padding:4px 0 10px}.no-families{padding:24px;font-size:13px;color:var(--muted);background:#f9fbf4;border:1px dashed #cbd7c0;border-radius:10px}.no-families button{display:block;margin:10px auto 0}
@media(max-width:700px){.grouped-tree{padding:18px 10px}.branches-title{align-items:flex-start;flex-direction:column;margin:25px 5px 14px}.branches-title h4{font-size:20px}.family-branches{grid-template-columns:1fr;gap:20px}.ancestor-family{padding:13px 9px}.ancestor-couple{gap:0}.ancestor-couple .tree-card{padding:12px 8px}.ancestor-couple .tree-card strong{font-size:14px}.tree-focus>.tree-card{min-width:210px}.couple-row{padding:18px 10px 0}.descendants{padding-left:7px;padding-right:7px}.child-node{padding-left:4px;padding-right:4px}.child-node .tree-card{padding:13px 6px}.child-node .tree-card strong{font-size:14px}.couple-row .tree-card strong{font-size:15px}.branch-heading{padding:12px}.tree-card small{font-size:10px}}
.children-row{flex-wrap:wrap;row-gap:14px}.child-node{flex:1 1 125px}
.couple-link.relationship-married,.couple-link.relationship-divorced{width:42px;color:#9b782f}.couple-link svg{position:relative;z-index:1;background:#fafbf7;fill:none;stroke:currentColor;stroke-width:2.5}.couple-link.relationship-divorced{color:#8e9186}.marital-control{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;border-top:1px solid #e0e6d9;color:#74816c;font-size:10px;text-align:left}.marital-control select{max-width:180px;border:1px solid #d3dcc9;border-radius:6px;padding:6px 8px;color:var(--green);background:#fff;font-size:11px}.relationship-unknown{color:#9b9f94}
.couple-link.relationship-widowed{width:42px;color:#9b782f}.ring-death-mark{position:absolute;right:-3px;top:-12px;z-index:3;background:#fafbf7;border-radius:50%;width:17px;height:24px;color:#4e5c48;font:25px Georgia,serif;line-height:24px;text-align:center}.couple-link.relationship-widowed svg{margin-top:3px}
.branch-heading{justify-content:flex-end}.marital-control{justify-content:flex-end}.marital-control select{max-width:220px}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
[hidden]{display:none!important}.head-actions{flex-wrap:wrap}.owner-label{padding:0 24px 18px}.comparison{display:grid;grid-template-columns:1fr 1fr;gap:16px}.comparison pre{white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.5 monospace;background:#f3f5f1;padding:12px;max-height:300px;overflow:auto}#workspace-dialog{width:min(880px,94vw);max-height:88vh;overflow:auto}#workspace-content section{padding:20px 0;border-bottom:1px solid #ddd}#workspace-content h3{margin-bottom:12px}#workspace-content p{line-height:1.6;margin:10px 0}#workspace-content button,#migration-content button{margin:6px 8px 6px 0}#invite-form{display:flex;gap:12px;align-items:end;flex-wrap:wrap}#invite-form label{display:grid;gap:6px}#invite-form input,#invite-form select{padding:10px;border:1px solid #b8c4bc;border-radius:7px}.proposal{padding:14px;border:1px solid #d4ddd7;border-radius:9px;margin:12px 0}#migration-content{overflow-wrap:anywhere}#migration-content p{line-height:1.6;margin:16px 0}#migration-content .check{display:block;margin:20px 0}.head-actions .private{max-width:290px;white-space:normal}#history-list p{padding-bottom:10px;border-bottom:1px solid #eee}@media(max-width:650px){.comparison{grid-template-columns:1fr}.head-actions{gap:5px}.head-actions button{font-size:11px;padding:7px}.private{font-size:10px}header{gap:8px}}
