@import "https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Noto+Sans+Arabic:wght@400;500;600&display=swap";:root{color:#26313b;--blue:#367af5;--muted:#858d98;--border:#e9ecf0;--tint:#edf4ff;background:#f6f7f9;font-family:DM Sans,Noto Sans Arabic,sans-serif;font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;color:inherit;border:1px solid var(--border);background:#fff;border-radius:9px;justify-content:center;align-items:center;gap:8px;min-height:36px;padding:8px 12px;transition:background .16s,box-shadow .16s;display:inline-flex}button:hover{background:#f1f4f8}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline-offset:2px;outline:3px solid #97bdff}button:disabled{cursor:not-allowed;opacity:.45}.primary{background:var(--blue);border-color:var(--blue);color:#fff}.soft{background:var(--tint);color:#326fd7;border-color:#0000}.ghost{background:0 0;border-color:#0000}.icon{flex-shrink:0;width:36px;padding:8px}svg{fill:none;stroke:currentColor;stroke-width:1.7px;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;width:18px;height:18px}h1,h2,h3,p{margin:0}h1{letter-spacing:-.6px;font-size:22px;font-weight:650}h2{letter-spacing:-.3px;font-size:18px}h3{font-size:14px}.muted{color:var(--muted);font-size:12px}.shell{grid-template-columns:204px minmax(0,1fr);height:100dvh;display:grid}.sidebar{border-inline-end:1px solid var(--border);background:#fbfcfd;flex-direction:column;gap:28px;padding:28px 16px 18px;display:flex}.brand{letter-spacing:-.8px;align-items:center;gap:9px;padding:0 10px;font-size:20px;font-weight:700;display:flex}.brand svg{color:var(--blue);width:26px;height:26px}.family-name{align-items:center;gap:10px;padding:0 12px;display:flex}.family-icon{background:#e9eef4;border-radius:11px;padding:10px;display:flex}.side-nav{gap:5px;display:grid}.side-nav button{color:#737d89;background:0 0;border:0;justify-content:flex-start;padding:11px 13px}.side-nav button.active{color:#2f70db;background:#eaf1fd}.count{background:#e6ecf6;border-radius:6px;min-width:21px;margin-inline-start:auto;padding:2px 6px;font-size:11px}.side-caption{letter-spacing:1.4px;text-transform:uppercase;color:#9aa2ad;margin-bottom:10px;padding:0 13px;font-size:10px}.side-bottom{gap:15px;margin-top:auto;display:grid}.demo-tag{color:#8b949f;border:1px dashed #d6dfe9;border-radius:9px;padding:12px;font-size:11px;line-height:1.7}.account{border-top:1px solid var(--border);align-items:center;gap:9px;padding:16px 8px 0;display:flex}.avatar{color:#6484b0;background:#eaf0f8;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:43px;height:43px;font-size:14px;font-weight:550;display:inline-flex;overflow:hidden}.avatar img{object-fit:cover;width:100%;height:100%}.workspace{flex-direction:column;min-width:0;display:flex}.topbar{border-bottom:1px solid var(--border);background:#fff;justify-content:space-between;align-items:center;gap:16px;min-height:92px;padding:22px 28px;display:flex}.subtitle{color:var(--muted);margin-top:5px;font-size:12px}.top-actions{align-items:center;gap:8px;display:flex}.mode{border:1px solid var(--border);color:#697482;background:#fff;border-radius:8px;max-width:170px;padding:9px;font-size:12px}.body{flex:1;min-height:0;display:flex}.main{flex-direction:column;flex:1;min-width:0;display:flex;position:relative}.toolbar{border-bottom:1px solid var(--border);background:#fff;align-items:center;gap:10px;padding:16px 22px;display:flex}.search{flex:1;max-width:320px;position:relative}.search svg{inset-inline-start:12px;color:#8c96a3;position:absolute;top:10px}.search input{border:1px solid var(--border);padding:10px 13px;background:#f9fafb;border-radius:8px;width:100%;padding-inline-start:38px;font-size:12px}.search-results{border:1px solid var(--border);z-index:9;background:#fff;border-radius:10px;width:100%;max-height:300px;position:absolute;top:42px;overflow:auto;box-shadow:0 12px 30px #182d5014}.search-results button{border:0;justify-content:flex-start;width:100%;display:flex}.view-switch{background:#f3f5f7;border-radius:8px;margin-inline-start:auto;padding:3px;display:flex}.view-switch button{background:0 0;border:0;min-height:30px;padding:5px 10px;font-size:12px}.view-switch .active{background:#fff;box-shadow:0 1px 4px #12233b10}.canvas{touch-action:none;cursor:grab;background-color:#f8f9fb;background-image:radial-gradient(#dce2ea .8px,#0000 .8px);background-size:22px 22px;flex:1;min-height:360px;position:relative;overflow:hidden}.canvas:active{cursor:grabbing}.tree-world{transform-origin:0 0;direction:ltr;position:absolute}.connections{pointer-events:none;position:absolute;inset:0;overflow:visible}.connections path{stroke:#c5ceda;stroke-width:1.5px;fill:none}.connections .partner{stroke:#91aace;stroke-dasharray:4 4}.person{text-align:start;width:190px;height:104px;direction:inherit;background:#fff;border:1px solid #e0e5ec;border-radius:12px;justify-content:flex-start;align-items:center;gap:11px;padding:16px 14px;display:flex;position:absolute;box-shadow:0 3px 8px #24384e04}.person .avatar{width:39px;height:39px;font-size:12px}.person strong{font-size:12px;font-weight:600;line-height:1.5;display:block}.person small{color:#99a2ad;margin-top:4px;font-size:11px;display:block}.person.selected{border:1.5px solid var(--blue);box-shadow:0 0 0 4px #367af50b}.person.selected:after{content:"";background:var(--blue);top:9px;border-radius:50%;width:7px;height:7px;position:absolute;inset-inline-end:10px}.person:hover{background:#fff;box-shadow:0 5px 15px #24384e10}.tree-label{top:24px;pointer-events:none;color:#a2aab6;letter-spacing:1.7px;text-transform:uppercase;font-size:10px;position:absolute;inset-inline-start:26px}.canvas-footer{pointer-events:none;justify-content:space-between;align-items:center;gap:12px;display:flex;position:absolute;bottom:20px;left:20px;right:20px}.canvas-footer>*{pointer-events:auto}.zoom-tools{border:1px solid var(--border);background:#fff;border-radius:10px;align-items:center;gap:2px;padding:3px;display:flex;box-shadow:0 4px 12px #24384e05}.zoom-tools span{text-align:center;width:40px;font-size:11px}.zoom-tools button{border:0}.return-button{font-size:11px;box-shadow:0 4px 12px #24384e05}.legend{bottom:76px;color:#929ba7;pointer-events:none;font-size:10px;position:absolute;inset-inline-start:24px}.inspector{border-inline-start:1px solid var(--border);background:#fff;flex-shrink:0;width:318px;padding:20px 23px;overflow-y:auto}.panel-top{color:#939ca8;text-transform:uppercase;letter-spacing:1.2px;justify-content:space-between;align-items:center;font-size:10px;display:flex}.profile{text-align:center;padding:23px 0 20px}.profile .avatar{color:#7192bd;background:#edf3fc;width:76px;height:76px;margin-bottom:13px;font-size:24px}.profile h2{font-size:19px}.arabic-name{color:#9aa3af;margin-top:5px;font-size:14px}.pill{color:#7d8998;background:#f4f6f9;border-radius:5px;margin-top:10px;padding:4px 7px;font-size:10px;display:inline-flex}.profile-actions{grid-template-columns:1fr 1fr;gap:7px;margin-top:17px;display:grid}.profile-actions button{font-size:11px}.section{border-top:1px solid var(--border);padding:21px 0}.section-head{justify-content:space-between;align-items:center;margin-bottom:15px;display:flex}.section-head h3{font-size:12px;font-weight:600}.detail{color:#8f9aa9;align-items:flex-start;gap:11px;margin:14px 0;display:flex}.detail svg{width:15px;margin-top:3px}.detail strong{color:#596674;font-size:12px;font-weight:450;display:block}.detail small{color:#a0a8b3;margin-top:4px;font-size:10px;display:block}.relative{text-align:start;background:0 0;border:0;justify-content:flex-start;align-items:center;width:100%;padding:7px 0;font-size:12px;display:flex}.relative .avatar{width:29px;height:29px;font-size:10px}.relative small{color:#9aa3af;margin-inline-start:auto;font-size:10px}.note{color:#75808e;white-space:pre-wrap;font-size:12px;line-height:1.8}.invite-card{color:#7e8fa7;background:#f5f8fe;border:1px solid #e6edf9;border-radius:10px;padding:14px;font-size:11px;line-height:1.7}.invite-card strong{color:#4d6d9a;margin-bottom:4px;display:block}.invite-card button{color:#567cad;background:#fff;border-color:#e1e9f6;width:100%;margin-top:10px;font-size:11px}.page{flex:1;padding:26px;overflow:auto}.page-heading{justify-content:space-between;align-items:center;margin-bottom:22px;display:flex}.people-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px;display:grid}.list-person{text-align:start;background:#fff;justify-content:flex-start;padding:16px}.list-person small{color:#969fac;margin-top:4px;font-size:11px;display:block}.review-card{border:1px solid var(--border);background:#fff;border-radius:12px;margin-bottom:14px;padding:20px}.review-top{justify-content:space-between;gap:12px;margin-bottom:14px;display:flex}.review-card .actions{flex-wrap:wrap;gap:8px;margin-top:18px;display:flex}.diff{overflow-wrap:anywhere;border-top:1px solid #f0f2f5;grid-template-columns:120px 1fr 1fr;gap:10px;padding:9px 0;font-size:12px;display:grid}.diff .old{color:#9aa4b0}.diff .new{color:#32735c}.empty{text-align:center;color:#8a95a3;padding:70px 25px}.empty svg{color:#9eafc7;width:32px;height:32px;margin-bottom:16px}.empty h2{color:#546478;margin-bottom:9px}.badge{color:#ad8443;white-space:nowrap;background:#fff5e4;border-radius:6px;padding:5px 8px;font-size:10px}.intro-banner{color:#5379b2;background:#eaf2ff;justify-content:space-between;align-items:center;gap:15px;padding:13px 22px;font-size:12px;display:flex}.intro-banner button{font-size:11px}.mobile-menu{display:none}dialog{border:1px solid var(--border);color:#293747;border-radius:16px;width:calc(100% - 28px);max-width:560px;max-height:90dvh;padding:0;box-shadow:0 24px 100px #13274425}.modal-head{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;padding:22px 24px 16px;display:flex}.modal-body>p{color:#8a95a3;margin-bottom:17px;font-size:12px;line-height:1.8}.form-grid{grid-template-columns:1fr 1fr;gap:16px;display:grid}.field{color:#6e7d8d;flex-direction:column;gap:7px;font-size:12px;display:flex}.field.full{grid-column:1/-1}.field input,.field textarea,.field select,.link-input{color:#334457;background:#fff;border:1px solid #dfe5ed;border-radius:8px;width:100%;min-width:0;padding:10px}.field textarea{resize:vertical;min-height:74px}.check{color:#758293;align-items:center;gap:8px;margin-top:12px;font-size:12px;display:flex}.modal-footer{justify-content:flex-end;gap:8px;padding-top:22px;display:flex}.form-error{color:#b74e4e;margin-top:12px;font-size:12px}.share-person{background:#f7f9fc;border-radius:10px;align-items:center;gap:12px;margin-bottom:18px;padding:15px;display:flex}.share-person small{color:#93a0b0;margin-top:4px;display:block}.share-options{gap:8px;margin:16px 0;display:flex}.share-options button{flex:1;font-size:12px}.link-input{background:#fafbfd;margin:10px 0;font-size:11px}.share-row{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding:12px 0;font-size:12px;display:flex}#toast{color:#fff;z-index:99;opacity:0;pointer-events:none;background:#26364c;border-radius:10px;max-width:90vw;padding:12px 20px;font-size:12px;transition:opacity .2s;position:fixed;bottom:24px;left:50%;transform:translate(-50%);box-shadow:0 8px 35px #18324930}#toast.show{opacity:1}.hidden{display:none!important}a{color:#367af5}html[dir=rtl] .tree-world,html[dir=rtl] .person{direction:rtl}@media (width>=1500px){.inspector{width:350px}.sidebar{padding-inline:20px}.shell{grid-template-columns:220px 1fr}}@media (width<=1150px){.shell{grid-template-columns:70px 1fr}.sidebar{padding:26px 10px}.brand{justify-content:center;padding:0}.brand span,.family-name,.side-caption,.side-nav .nav-label,.side-nav .count,.demo-tag,.account .account-text{display:none}.side-nav button{justify-content:center;padding:12px}.account{padding:16px 0}.side-bottom{align-items:center}.inspector{width:285px;padding:18px}.topbar{padding:18px 22px}.top-actions .share-top{display:none}}@media (width<=760px){.shell{display:flex}.sidebar{display:none}.workspace{width:100%}.topbar{min-height:76px;padding:14px 16px}.topbar h1{font-size:18px}.topbar .subtitle{font-size:10px}.mode{max-width:120px;padding:8px;font-size:10px}.top-actions{gap:3px}.top-actions button{min-width:32px;padding:7px}.mobile-menu{display:flex}.body{position:relative}.inspector{z-index:11;border:1px solid var(--border);border-radius:18px 18px 0 0;width:100%;max-height:68%;padding:15px 22px;position:absolute;bottom:0;left:0;right:0;box-shadow:0 -10px 35px #20345312}.inspector.closed{display:none}.profile{padding:10px 0 15px}.profile .avatar{width:54px;height:54px;margin-bottom:7px;font-size:19px}.profile-actions{margin-top:12px}.section{padding:15px 0}.toolbar{gap:7px;padding:12px}.view-switch button{padding:5px 7px;font-size:10px}.toolbar .overview{display:none}.tree-label{font-size:9px;top:18px}.canvas-footer{bottom:14px;left:12px;right:12px}.return-button{padding:8px;font-size:10px}.page{padding:17px}.diff{grid-template-columns:75px 1fr 1fr;font-size:11px}.intro-banner{padding:10px 12px;font-size:10px}.legend{display:none}.form-grid{gap:12px}.modal-body{padding:18px}.modal-head{padding:16px 18px}.people-grid{grid-template-columns:1fr}.panel-top{letter-spacing:.7px}}@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}.inspector.closed{display:none}.shell{display:flex}.workspace{width:100%}.topbar{min-height:80px;padding:17px 28px}.header-brand{align-items:center;gap:12px;display:flex}.brand-mark{color:var(--blue);background:#edf3ff;border-radius:12px;padding:11px;display:flex}.brand-mark svg{width:23px;height:23px}.header-brand h1{font-size:19px}.toolbar{padding:11px 24px}.prototype-footer{text-align:center;border-top:1px solid var(--border);color:#a0a8b3;background:#fafbfd;padding:7px;font-size:10px}.empty-canvas{justify-content:center;align-items:center;display:flex}.first-person{text-align:center;margin-top:-45px;padding:24px}.first-person-button{color:#4f79b8;background:#fff;border:1.5px dashed #9bbcf2;border-radius:17px;flex-direction:column;min-width:236px;min-height:137px;margin:0 auto 22px;padding:25px 34px;display:flex;box-shadow:0 5px 18px #355c9d06}.first-person-button svg{width:27px;height:27px;margin-bottom:7px}.first-person-button strong{font-size:13px;font-weight:550}.first-person p{color:#7f8b9b;font-size:12px;line-height:1.8}.first-person>span{color:#a2aab6;margin-top:4px;font-size:11px;display:block}.page-back{border-bottom:1px solid var(--border);background:#fff;padding:10px 20px}.couple-frame{pointer-events:none;background:#f0f4f9;border:1px solid #dce4ee;border-radius:17px;height:122px;position:absolute}.couple-caption{white-space:nowrap;color:#95a2b5;font-size:10px;position:absolute;bottom:-22px;left:50%;transform:translate(-50%)}.canvas-add{white-space:nowrap;z-index:2;position:absolute}.canvas-add button{border-radius:9px;min-height:33px;font-size:11px}.canvas-add button svg{width:14px;height:14px}.child-add,.parent-add{transform:translate(-50%)}.child-add:before{content:"";background:#b7c9e3;width:1px;height:13px;position:absolute;top:-13px;left:50%}.spouse-add button{color:#7894bc;background:#fafcff;border:1px dashed #afc3df}.parent-add button{color:#91a0b3;background:#f8f9fb;font-size:10px}.optional-details summary{cursor:pointer;color:#7a899b;font-size:12px}.optional-details[open] summary{margin-bottom:18px}.child-kind{margin-top:16px}.relation-summary{color:#7286a4;background:#f3f7fe;border-radius:8px;margin-bottom:18px;padding:11px 13px;font-size:11px}.relation-summary strong{color:#4e6d9a;font-weight:500}.workspace-switch{border-top:1px solid var(--border);gap:8px;margin-top:18px;padding-top:18px;display:grid}.workspace-switch p{margin-bottom:4px}.person small{text-overflow:ellipsis;white-space:nowrap;max-width:110px;overflow:hidden}.inspector{box-shadow:-6px 0 25px #1b335504}@media (width<=760px){.topbar{gap:6px;padding:12px}.header-brand{gap:8px}.brand-mark{padding:8px}.brand-mark svg{width:19px;height:19px}.header-brand h1{font-size:15px}.header-brand .subtitle{display:none}.top-actions .mode{max-width:100px;font-size:10px}.review-top-button{display:none}.toolbar{padding:10px}.toolbar>.soft{gap:0;font-size:0}.toolbar>.soft svg{width:16px}.first-person{padding:15px}.first-person p{font-size:11px}.prototype-footer{font-size:9px}.inspector{max-height:51%}.canvas{min-height:260px}}dialog .side-nav .nav-label,dialog .side-nav .count{display:inline}dialog .side-nav button{justify-content:flex-start}dialog .side-nav .count{margin-inline-start:auto}.optional-details>.check{margin-bottom:4px}:root{--male-bg:#eaf2fd;--male-ink:#668ab9;--female-bg:#fceef3;--female-ink:#bb7c96;--neutral-bg:#eef1f5;--neutral-ink:#8793a4}svg{stroke-width:1.8px}.avatar.male,.profile .avatar.male{background:var(--male-bg);color:var(--male-ink)}.avatar.female,.profile .avatar.female{background:var(--female-bg);color:var(--female-ink)}.avatar.neutral{background:var(--neutral-bg);color:var(--neutral-ink)}.avatar .face-icon{stroke-width:1.4px;width:32px;height:32px}.profile .avatar .face-icon{width:55px;height:55px}.relative .avatar .face-icon{width:25px;height:25px}.gender-mark{vertical-align:middle;display:inline-flex}.gender-mark svg{width:13px;height:13px}.gender-mark.male{color:var(--male-ink)}.gender-mark.female{color:var(--female-ink)}.person{gap:10px;width:218px;height:118px;padding:14px}.person-text{text-align:start;flex:1;min-width:0}.person strong{overflow-wrap:anywhere;white-space:normal;font-size:12px;line-height:1.45}.person small{align-items:center;gap:5px;max-width:none;display:flex;overflow:visible}.person.male{border-color:#dce6f2}.person.female{border-color:#eddee5}.person.selected{border-color:var(--blue)}.person.selected:after{top:7px;width:5px;height:5px;inset-inline-end:7px}.couple-caption{font-size:10px;bottom:-21px}.spouse-count{color:#8694a8;align-items:center;gap:4px;margin-top:5px;font-size:9px;display:flex}.spouse-count svg{width:12px;height:12px}.another-spouse button{color:#7b8ca5;background:#fafbfd;min-height:29px;font-size:10px}.gender-options{border:0;flex-wrap:wrap;gap:8px;margin:19px 0 0;padding:0;display:flex}.gender-options legend{color:#6e7d8d;margin-bottom:9px;font-size:12px}.gender-choice{border:1px solid var(--border);cursor:pointer;color:#7f8c9d;background:#fff;border-radius:8px;align-items:center;gap:6px;padding:9px 11px;font-size:11px;display:flex}.gender-choice input{accent-color:var(--blue);width:12px;height:12px;margin:0}.gender-choice svg{width:15px;height:15px}.gender-choice:has(input:checked){color:#5a6b82;background:#f2f5f9;border-color:#ccd7e6}.gender-choice.male:has(input:checked){background:var(--male-bg);color:#557aa9;border-color:#b9cee9}.gender-choice.female:has(input:checked){background:var(--female-bg);color:#ab6b86;border-color:#e6bfd0}.surname-hint{color:#8e9aab;margin-top:9px;font-size:10px}.spouse-fields{border:1px solid var(--border);border-radius:9px;max-height:160px;padding:12px;overflow:auto}.spouse-fields legend{padding:0 5px}.spouse-fields .check{margin-top:4px;padding:4px 0}.existing-person{margin-bottom:18px}.union-section{border-bottom:1px solid #edf0f4;margin-bottom:10px;padding:10px 0}.union-status{color:#9ba6b4;padding-inline-start:37px;font-size:10px}.union-actions{gap:6px;padding:4px 0;display:flex}.union-actions button{color:#72849e;min-height:28px;padding:5px 8px;font-size:10px}.union-actions svg{width:13px;height:13px}.branch-switch{inset-inline-end:20px;z-index:5;border:1px solid var(--border);background:#fffe;border-radius:10px;max-width:290px;padding:10px 12px;position:absolute;top:17px;box-shadow:0 4px 12px #20334a05}.branch-switch label{color:#8d9aaa;flex-direction:column;gap:5px;font-size:10px;display:flex}.branch-switch select{color:#51667e;cursor:pointer;background:0 0;border:0;max-width:265px;font-size:12px}.profile h2 .gender-mark{margin-inline-start:4px}.profile h2 .gender-mark svg{width:16px;height:16px}.identity-fields.hidden{display:none}.relative span:not(.avatar){overflow-wrap:anywhere}.relative small{white-space:nowrap}.relative .avatar{flex-shrink:0}@media (width<=760px){.gender-options{gap:5px}.gender-choice{padding:8px;font-size:10px}.branch-switch{top:12px;max-width:205px;padding:8px;inset-inline-end:12px}.branch-switch select{max-width:180px;font-size:11px}.tree-label{max-width:110px;line-height:1.6}.profile .avatar .face-icon{width:40px;height:40px}.inspector .profile h2{font-size:17px}}.proposal-union{color:#6c7d93;background:#f5f8fc;border:1px solid #e9eef6;border-radius:9px;margin-top:14px;padding:12px;font-size:12px}.proposal-union p{margin-top:6px;font-size:11px}.person.selected:after{display:none}.unified-add{z-index:4}.unified-add button{color:#4d83d5;background:#fff;border:1px solid #a8c5f4;border-radius:50%;width:30px;height:30px;min-height:30px;padding:6px;box-shadow:0 2px 5px #1b3b6a0a}.unified-add button:hover{background:#edf4ff;border-color:#367af5}.unified-add svg{width:16px;height:16px}.gender-choice.male{color:var(--male-ink)}.gender-choice.female{color:var(--female-ink)}.add-person-context{border-bottom:1px solid var(--border);align-items:center;gap:12px;padding-bottom:17px;font-size:13px;display:flex}.relation-menu{gap:5px;margin-top:12px;display:grid}.relation-menu button{text-align:start;background:#fff;border-color:#0000;justify-content:flex-start;gap:12px;padding:13px 10px}.relation-menu button:hover:not(:disabled){background:#f5f8fd}.relation-menu button>svg:first-child{color:#7e9dc4;width:17px}.relation-menu button>svg:last-child{color:#b1bccb;width:14px;margin-inline-start:auto}.relation-menu strong{font-size:12px;font-weight:550;display:block}.relation-menu small{color:#98a3b1;margin-top:5px;font-size:10px;display:block}.relation-menu button:disabled{opacity:.5}.unlink-action{border-top:1px solid var(--border);margin-top:14px;padding-top:12px}.unlink-action button{color:#8d7b7b;font-size:11px}.person{gap:10px;height:104px;padding:12px}.couple-frame{height:122px}.person .avatar{width:36px;height:36px}.avatar .outline-face{fill:none;stroke:currentColor;stroke-width:2px;width:85%;height:85%}.gender-choice .outline-face{width:26px;height:26px}:root{--blue:#007aff;--muted:#72727a;--border:#e5e5ea;--tint:#edf5ff;--surface:#fff;--grouped:#f2f2f7;--radius:14px;color:#1c1c1e;background:var(--grouped);-webkit-font-smoothing:antialiased;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Noto Sans Arabic,sans-serif}body{background:var(--grouped)}button,input,select,textarea{font-family:inherit}button{border-radius:11px;min-height:38px;font-weight:500;transition:background .16s,transform .16s}button:active:not(:disabled){transform:scale(.98)}button:focus-visible,summary:focus-visible{outline-offset:3px;outline:3px solid #80bdff}button.primary,.primary{background:var(--blue);border-color:var(--blue)}.primary:hover{background:#0068df}.soft{color:var(--blue);background:#edf5ff}.ghost{color:var(--blue)}.danger{color:#d93434}h1{letter-spacing:-.7px;font-weight:700}h2{letter-spacing:-.4px;font-weight:650}.muted,.subtitle{color:var(--muted)}.topbar{-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);background:#ffffffec;border-color:#dedee580;padding:18px 24px}.brand{letter-spacing:-.7px}.top-actions{gap:7px}.mode{color:#48484a;background:#f2f2f7;border:0;border-radius:10px;padding:10px 12px}.toolbar{-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);background:#ffffffd9;gap:12px;padding:12px 22px}.search input{color:#1c1c1e;background:#efeff4;border:0;border-radius:11px;padding-top:11px;padding-bottom:11px;font-size:13px}.search input::placeholder{color:#808087}.search svg{top:11px}.search-results{border:0;border-radius:14px;padding:6px;box-shadow:0 12px 35px #00000014}.search-results button{border-radius:8px}.view-switch{background:#e9e9ef;border-radius:10px;padding:3px}.view-switch button{color:#63636c;border-radius:8px;min-height:30px}.view-switch button.active{color:#1c1c1e;background:#fff;box-shadow:0 2px 5px #00000012}.canvas{background-color:#f5f5f9;background-image:radial-gradient(#d9d9e2 .65px,#0000 .65px);background-size:24px 24px}.tree-label{color:#85858e;font-weight:500}.connections path{stroke:#c7c7d3;stroke-width:1.5px}.person{border-color:#e2e2e9;border-radius:14px;box-shadow:0 2px 5px #00000003}.person strong{color:#29292e;font-size:12px;font-weight:600}.person small{color:#81818b}.person.selected{border-color:var(--blue);box-shadow:0 0 0 3px #007aff0b}.person:hover{box-shadow:0 4px 12px #00000008}.couple-frame{background:#ffffff5c;border-color:#dddde7;border-radius:20px}.selected-couple{background:#eff6ff70;border-color:#a7cfff}.avatar .outline-face{stroke-width:1.9px;width:83%;height:83%}.unified-add button{color:var(--blue);border-color:#b5d7ff;box-shadow:0 2px 8px #007aff0b}.zoom-tools{-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);background:#fffffff0;border:0;border-radius:13px;box-shadow:0 3px 16px #00000009}.zoom-tools button{color:var(--blue);border-radius:9px}.return-button{color:var(--blue);background:#fffffff0;border:0;border-radius:12px}.branch-switch{background:#fffffff0;border:0;border-radius:12px;box-shadow:0 3px 16px #00000009}.branch-switch select{color:#3a3a45}.branch-switch label{color:#7a7a85}.inspector{background:#f8f8fc;border-color:#e1e1e8;padding:18px}.panel-top{color:#81818b;font-size:10px}.profile{padding:18px 5px 22px}.profile .avatar{margin-bottom:12px}.profile h2{color:#1c1c1e;font-size:21px}.pill{color:#777780;background:#eaeaf1;border-radius:7px}.profile-actions button{border-radius:10px;min-height:38px}.section{border-radius:var(--radius);background:#fff;border:0;margin-bottom:12px;padding:16px}.section-head{margin-bottom:9px}.section h3{color:#3a3a40}.relative{border-radius:8px;padding:9px 0}.relative:hover{background:#f5f5fa}.union-section{border-color:#ededf2}.union-actions button{color:var(--blue)}.detail strong{color:#42424a}.detail small{color:#8a8a93}.invite-card{border-radius:var(--radius);color:#6b829c;background:#eaf3ff;border:0}.invite-card button{color:var(--blue);border:0}.invite-card strong{color:#376ba5}.page{background:var(--grouped)}.list-person,.review-card{border-radius:var(--radius);border:0}.list-person{box-shadow:0 1px 3px #00000004}.review-card{padding:20px}.badge{border-radius:7px}.intro-banner{color:#49729e;background:#eaf3ff}.empty-start button,.start-card{border-radius:20px}dialog{background:#f7f7fb;border:0;border-radius:24px;max-width:580px;box-shadow:0 24px 90px #00000030}dialog::backdrop{-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);background:#15152660}.modal-head{z-index:8;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:#ffffffc9;border-color:#e5e5ec;padding:19px 22px 15px;position:sticky;top:0}.modal-head h2{font-size:19px}.modal-head .icon{color:#80808a;background:#ededf3;border-radius:50%;width:30px;height:30px;min-height:30px;padding:7px}.modal-body{padding:21px 22px}.modal-body>p{color:#7b7b85;line-height:1.6}.form-grid{gap:16px 12px}.field{color:#62626e;gap:7px;font-size:12px}.field>label{font-weight:500}.field input,.field textarea,.field select,.link-input{color:#24242b;background:#fff;border:1px solid #e2e2e9;border-radius:11px;min-height:42px;padding:11px 12px;font-size:14px}.field input:focus,.field textarea:focus,.field select:focus{outline-offset:0;border-color:#91c3ff;outline:3px solid #007aff0b}.field input::placeholder{color:#a0a0a9;font-size:12px}.field input[type=file]{font-size:11px}.field input[type=file]::file-selector-button{color:var(--blue);background:#edf5ff;border:0;border-radius:7px;margin-inline-end:8px;padding:5px 8px}.optional-details{border-top:1px solid #e2e2e9;margin-top:18px;padding-top:14px}.optional-details>summary{color:#656570;cursor:pointer;padding:4px 0 14px;font-size:12px;font-weight:500}.relation-summary{color:#687e99;background:#eaf3ff;border:0;border-radius:10px}.gender-options{border:0;margin:20px 0 0;padding:0}.gender-options legend{color:#72727e;margin-bottom:9px}.gender-choice{background:#fff;border-color:#e3e3eb;border-radius:11px;min-height:44px}.gender-choice:has(input:checked){box-shadow:0 1px 5px #00000004}.check{color:#72727e}.check input[type=checkbox]{appearance:none;cursor:pointer;background:#d7d7de;border-radius:20px;flex-shrink:0;width:36px;height:22px;transition:background .18s;position:relative}.check input[type=checkbox]:after{content:"";background:#fff;border-radius:50%;width:18px;height:18px;transition:transform .18s;position:absolute;top:2px;left:2px;box-shadow:0 1px 3px #00000025}.check input[type=checkbox]:checked{background:#34c759}.check input[type=checkbox]:checked:after{transform:translate(14px)}.modal-footer{gap:9px;padding-top:21px}.modal-footer button{border:0;min-height:42px;padding:10px 18px}.modal-footer button:not(.primary){color:var(--blue);background:#eaeaf2}.relation-menu{background:#fff;border-radius:16px;gap:0;padding:4px 12px}.relation-menu button{border-bottom:1px solid #ededf2;border-radius:0;padding:16px 0}.relation-menu button:last-child{border-bottom:0}.relation-menu button>svg:first-child{color:var(--blue)}.add-person-context{border-color:#e2e2e9}.share-person{background:#fff;border-radius:14px}.share-options{background:#e9e9f0;border-radius:11px;gap:3px;padding:3px}.share-options button{border:0;border-radius:8px}.share-row{border-color:#e1e1e9}#toast{-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);background:#30303bed;border-radius:15px;padding:13px 20px;box-shadow:0 8px 28px #0000001a}.date-field{align-self:start;position:relative}.date-control>input{font-variant-numeric:tabular-nums;width:100%;padding-inline-end:46px}.ios-date-picker{border:0;margin:0;padding:0}.ios-date-picker>summary{top:26px;width:32px;height:32px;color:var(--blue);cursor:pointer;background:#edf5ff;border-radius:8px;justify-content:center;align-items:center;list-style:none;display:flex;position:absolute;inset-inline-end:6px}.ios-date-picker>summary::-webkit-details-marker{display:none}.ios-date-picker[open]>summary{background:var(--blue);color:#fff}.date-field:has(.ios-date-picker[open]){grid-column:1/-1}.date-hint{color:#93939d;font-size:10px}.calendar-surface{margin-top:2px;background:#fff;border:1px solid #e5e5ec;border-radius:17px;max-width:380px;margin-inline:auto;padding:15px;box-shadow:0 5px 18px #22223b06}.calendar-precision{background:#eeeef3;border-radius:9px;gap:3px;margin-bottom:16px;padding:3px;display:flex}.calendar-precision button{color:#72727e;background:0 0;border:0;border-radius:7px;flex:1;min-height:29px;padding:5px 9px;font-size:12px}.calendar-precision button[aria-pressed=true]{color:#24242c;background:#fff;box-shadow:0 1px 4px #00000012}.calendar-heading{align-items:center;gap:5px;margin-bottom:16px;display:flex}.calendar-heading .calendar-month{text-transform:capitalize;background:0 0;border:0;flex:1;width:auto;max-width:45%;min-height:34px;padding:6px 0;font-size:15px;font-weight:600}.calendar-heading .calendar-year{background:#f2f2f7;border:0;border-radius:8px;width:77px;min-height:33px;padding:5px 7px;font-size:15px;font-weight:550}.calendar-heading button{color:var(--blue);background:0 0;border:0;border-radius:8px;width:30px;min-height:34px;padding:4px}.calendar-weekdays,.calendar-days{grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;display:grid}.calendar-weekdays{text-align:center;color:#9a9aa4;margin-bottom:7px;font-size:10px}.calendar-days button{color:#35353e;background:0 0;border:0;border-radius:50%;justify-self:center;width:36px;height:36px;min-height:36px;padding:0;font-size:14px;font-weight:400}.calendar-days button:hover{background:#edf5ff}.calendar-days button[aria-pressed=true]{background:var(--blue);color:#fff;font-weight:600}.calendar-footer{border-top:1px solid #ededf3;justify-content:space-between;align-items:center;margin-top:13px;padding-top:10px;display:flex}.calendar-footer button{color:var(--blue);background:0 0;border:0;min-height:34px;padding:6px 9px;font-size:13px}.calendar-footer .calendar-done{background:#edf5ff;border-radius:9px;font-weight:650}.calendar-year-note{color:#93939e;padding:12px 0 20px;font-size:12px;line-height:1.6}.calendar-heading button:disabled{opacity:.3}@media (width<=760px){.topbar{padding:14px 16px}.toolbar{padding:10px 14px}.inspector{-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);background:#f7f7fbf5;border-radius:24px 24px 0 0;padding-top:16px}.inspector:before{content:"";background:#c7c7d0;border-radius:4px;width:32px;height:4px;margin:-5px auto 12px;display:block}dialog{width:100%;max-width:none;max-height:93dvh;padding-bottom:env(safe-area-inset-bottom);border-radius:24px 24px 0 0;margin:auto 0 0}.modal-head{padding:18px 20px 14px}.modal-body{padding:18px 20px 25px}.field input,.field textarea,.field select,.calendar-heading .calendar-year{font-size:16px}.calendar-days button{width:38px;height:38px;min-height:38px}.canvas-footer{bottom:16px}.profile h2{font-size:20px}.form-grid{gap:15px 10px}}@media (prefers-reduced-motion:reduce){button,.check input[type=checkbox],.check input[type=checkbox]:after{transition:none}button:active:not(:disabled){transform:none}}.svelte-shell{flex-direction:column;height:100dvh;display:flex;overflow:hidden}.svelte-shell>.body{flex:1;min-height:0}.svelte-shell .topbar{min-height:78px}.svelte-shell .brand{padding:0}.local-banner{color:#617c9e;background:#edf4ff;justify-content:space-between;align-items:center;gap:10px;padding:5px 22px;font-size:11px;display:flex}.local-banner button{min-height:27px;padding:4px 7px;font-size:11px}.svelte-shell .main{min-height:0}.review-button{position:relative}.svelte-shell .page>h2{margin-bottom:20px}.svelte-shell .person-text{overflow-wrap:anywhere;min-width:0}.svelte-shell .person strong{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.empty-tree{flex-direction:column;justify-content:center;align-items:center;gap:18px;display:flex;position:absolute;inset:0}.empty-tree p{color:#9595a2;font-size:12px}.first-person{color:#697b94;background:#fffd;border:1px dashed #c5d5eb;border-radius:20px;flex-direction:column;gap:15px;padding:24px 30px;font-size:13px;display:flex}.first-person>span{color:#007aff;background:#edf5ff;border-radius:50%;place-items:center;width:44px;height:44px;display:grid}.empty-search{color:#90909b;padding:16px}.form-intro{color:#81818c;margin:0 0 20px;font-size:12px;line-height:1.7}.contributor{margin-top:18px}.full{grid-column:1/-1}.photo-preview{align-items:center;gap:10px;display:flex}.svelte-date-field{align-self:start;position:relative}.svelte-date-field.expanded{grid-column:1/-1}.svelte-date-field>label{flex-direction:column;gap:7px;display:flex}.date-input{display:block}.date-input input{direction:ltr;padding-inline-end:46px!important}.date-trigger{inset-inline-end:5px;color:#007aff;background:#edf5ff;border:0;border-radius:8px;width:32px;height:32px;min-height:32px;padding:6px;position:absolute;top:25px}.svelte-date-field .calendar-surface{width:100%;margin-top:6px}.svelte-shell .gender-choice .avatar,.gender-choice .avatar{background:0 0;width:25px;height:25px}.svelte-shell .toolbar{flex-shrink:0}.diff{grid-template-columns:90px minmax(0,1fr) minmax(0,1fr)}.diff>span{overflow-wrap:anywhere}.review-card h3{margin:15px 0 9px}.svelte-shell .connections{overflow:visible}.svelte-shell .tree-world{direction:ltr}.svelte-shell[dir=rtl] .person{direction:rtl}.svelte-shell .canvas-footer{z-index:5}.svelte-shell .couple-frame{pointer-events:none}.svelte-shell .person{height:104px}@media (width<=760px){.local-banner{padding:5px 14px;font-size:10px}.local-banner button{white-space:nowrap;font-size:10px}.share-label{display:none}.svelte-shell .toolbar{gap:5px}.view-switch button{padding:5px 7px}.svelte-shell .body{position:relative}.svelte-shell .inspector{max-height:70%}.svelte-shell .topbar{padding:12px 15px}.svelte-shell .mode{max-width:135px;font-size:11px}.gender-choice{padding:8px;font-size:11px}.svelte-shell .page{padding:18px}.diff{grid-template-columns:70px minmax(0,1fr) minmax(0,1fr)}}.shared-children.svelte-4r5f19{border:0;border-block-start:1px solid var(--line,#e5e7eb);min-width:0;margin:20px 0;padding:18px 0 0}.shared-children.svelte-4r5f19 legend:where(.svelte-4r5f19){padding:0 6px 0 0;font-size:14px;font-weight:600}.shared-children.svelte-4r5f19 p:where(.svelte-4r5f19){margin:6px 0;font-size:13px}.shared-children.svelte-4r5f19 .hint:where(.svelte-4r5f19){color:var(--muted,#737782);font-size:12px}.child-options.svelte-4r5f19{gap:4px;max-height:210px;margin-top:10px;display:grid;overflow:auto}.child-option.svelte-4r5f19{cursor:pointer;border-radius:10px;align-items:center;gap:10px;padding:9px;font-size:14px;display:flex}.child-option.svelte-4r5f19:hover{background:var(--surface-soft,#f5f6f8)}.child-option.svelte-4r5f19 input:where(.svelte-4r5f19){width:17px;height:17px;accent-color:var(--accent,#007aff);flex-shrink:0}.child-option.svelte-4r5f19 .avatar{flex-shrink:0;width:30px;height:30px}.child-option.svelte-4r5f19 span:where(.svelte-4r5f19){overflow-wrap:anywhere}
