:root{--ink: #18332d;--muted: #73807b;--line: #dde4e0;--paper: #f7f9f6;--green: #2c6b59;--green-dark: #205346;--green-soft: #e6f0eb;--white: #fff;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}html,body{margin:0;min-height:100%}body{overflow:hidden;background:var(--paper)}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}.app-shell{min-height:100vh}.topbar{height:72px;display:flex;align-items:center;justify-content:space-between;padding:0 24px;border-bottom:1px solid var(--line);background:#ffffffe6;backdrop-filter:blur(18px);position:relative;z-index:10}.brand{display:flex;align-items:center;gap:11px;color:var(--ink);text-decoration:none;font-family:Georgia,serif;font-size:21px;font-weight:700;letter-spacing:-.3px}.brand-mark{width:42px;height:42px;flex:none;display:block;object-fit:contain}.header-actions{display:flex;align-items:center;gap:10px}.search-box{width:184px;height:40px;display:flex;align-items:center;gap:7px;padding:0 11px;border:1px solid var(--line);border-radius:11px;background:#fff;color:#84908b;transition:.2s}.search-box:focus-within{width:235px;border-color:#9bb7ab;box-shadow:0 0 0 3px #2c6b5914}.search-box span{font-size:20px;line-height:1}.search-box input{width:100%;min-width:0;border:0;outline:0;background:transparent;font-size:12px}.language-button{height:40px;padding:0 12px;border:1px solid var(--line);background:#fff;border-radius:11px;font-size:12px;font-weight:800;letter-spacing:.05em}.language-button span{margin-left:7px;color:var(--muted)}.account-link,.admin-access-link{width:40px;height:40px;display:grid;place-items:center;border:1px solid var(--line);border-radius:11px;background:#fff;color:var(--green);text-decoration:none;font-size:13px}.admin-access-link[hidden]{display:none}.account-link:hover,.admin-access-link:hover{border-color:#9bb7ab;background:var(--green-soft)}.add-button{height:42px;padding:0 17px;border:0;border-radius:12px;background:var(--green);color:#fff;font-weight:700;font-size:13px;box-shadow:0 7px 18px #2c6b5933;transition:.18s}.add-button:hover{transform:translateY(-1px);background:var(--green-dark)}.add-button span{margin-right:4px;font-size:17px}.add-button b{font-weight:inherit}.workspace{display:grid;grid-template-columns:72px minmax(0,1fr);height:calc(100vh - 72px)}.rail{padding:22px 15px;border-right:1px solid var(--line);display:flex;align-items:center;flex-direction:column;gap:10px;background:#fbfcfa}.rail-button{width:42px;height:42px;border:0;border-radius:12px;background:transparent;color:#75817d;font-size:18px}.rail-button.active{background:var(--green-soft);color:var(--green)}.rail-spacer{flex:1}.connection-dot{width:9px;height:9px;margin-bottom:7px;border-radius:50%;background:#c5ccc9;box-shadow:0 0 0 5px #f0f2f1;transition:.25s}.connection-dot.online{background:#4f9b73;box-shadow:0 0 0 5px #e4f2e9}.tree-area{min-width:0;position:relative;overflow:hidden;background-color:#f7f9f6;background-image:radial-gradient(#d8dfdb .8px,transparent .8px);background-size:19px 19px}.tree-heading{height:92px;display:flex;align-items:center;justify-content:space-between;padding:0 34px;border-bottom:1px solid rgba(216,224,219,.85);background:#f8faf7db;backdrop-filter:blur(8px);position:relative;z-index:2}.tree-heading p{margin:0 0 3px;color:var(--muted);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.09em}.tree-heading h1{margin:0;font-family:Georgia,serif;font-size:27px;letter-spacing:-.6px}.tree-tools{display:flex;align-items:center;height:36px;border:1px solid var(--line);background:#fff;border-radius:10px;overflow:hidden;box-shadow:0 3px 10px #18332d0a}.tree-tools button{height:100%;width:35px;border:0;background:#fff;font-size:16px}.tree-tools button:hover{background:#f3f7f4}.tree-tools span{padding:0 9px;font-size:11px;color:var(--muted);border-left:1px solid var(--line);border-right:1px solid var(--line)}.tree-tools button:last-child{border-left:1px solid var(--line)}.tree-viewport{height:calc(100% - 92px);overflow:auto;padding:38px 45px 80px}.tree-graph{min-width:550px;min-height:100%;display:flex;flex-direction:column;align-items:center;gap:68px;transform-origin:top center;transition:transform .18s ease;position:relative}.tree-graph.tree-mode{display:block}.tree-graph.list-mode{display:block;min-width:0;width:100%;transform:none!important}.people-grid{width:100%;display:grid;grid-template-columns:repeat(auto-fill,minmax(224px,1fr));gap:16px}.people-grid .person-card{width:100%}.library-grid{width:100%;display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:16px}.library-photo{position:relative;aspect-ratio:4 / 3;min-width:0;padding:0;overflow:hidden;border:1px solid #dbe3df;border-radius:16px;background:#fff;box-shadow:0 8px 24px #2a433b12;text-align:left;transition:.18s ease}.library-photo:hover{transform:translateY(-2px);box-shadow:0 12px 28px #2a433b1f}.library-photo img{width:100%;height:100%;object-fit:cover}.library-photo>span{position:absolute;left:0;right:0;bottom:0;display:flex;flex-direction:column;gap:2px;padding:23px 11px 10px;color:#fff;background:linear-gradient(transparent,#10251fe0)}.library-photo strong{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-family:Georgia,serif;font-size:13px}.library-photo small{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;opacity:.78;font-size:9px}.library-photo>b{position:absolute;top:8px;left:8px;padding:4px 7px;border-radius:12px;background:#ffffffe6;color:#7f681f;font-size:8px;text-transform:uppercase;letter-spacing:.05em}.generation-label{position:absolute;z-index:3;left:0;display:grid;place-items:center;width:27px;height:27px;border:1px solid var(--line);border-radius:50%;background:#fff;color:#86928d;font-family:Georgia,serif;font-size:11px}.graph-node{position:absolute;z-index:2;width:224px;height:77px}.edge-line{position:absolute;z-index:0;display:block;background:#92aaa0;pointer-events:none}.edge-vertical{width:1px}.edge-horizontal{height:1px}.edge-dot{position:absolute;z-index:1;width:9px;height:9px;border:2px solid var(--paper);border-radius:50%;background:var(--green);pointer-events:none}.edge-label{position:absolute;z-index:1;max-width:205px;padding:4px 8px;transform:translate(-50%,-50%);border:1px solid #d6e1dc;border-radius:999px;background:#f7f9f6f5;color:var(--green-dark);box-shadow:0 2px 8px #18332d0f;font-size:9px;font-weight:800;line-height:1.2;text-align:center;white-space:nowrap;pointer-events:none}.edge-label-compact{padding:3px 6px;font-size:8px}.edge-label-child{padding:3px 7px}.edge-co-parent{opacity:.72}.person-card{position:relative;display:flex;align-items:center;width:224px;height:77px;padding:0;border:1px solid #dbe3df;border-radius:16px;background:#fffffff5;box-shadow:0 8px 24px #2a433b12;text-align:left;transition:.18s ease}.person-card:hover{transform:translateY(-2px);box-shadow:0 12px 28px #2a433b1c}.person-card.is-selected{border-color:var(--green);box-shadow:0 0 0 3px #2c6b591a,0 10px 28px #2a433b1a}.person-main{width:100%;height:100%;min-width:0;display:flex;align-items:center;padding:10px 13px;border:0;border-radius:inherit;background:transparent;text-align:left}.card-add{position:absolute;z-index:2;right:-10px;top:-10px;width:27px;height:27px;display:grid;place-items:center;padding:0;border:2px solid var(--paper);border-radius:50%;background:var(--green);color:#fff;box-shadow:0 5px 12px #2c6b593b;font-size:16px;line-height:1;opacity:.88;transition:.15s ease}.person-card:hover .card-add,.card-add:focus-visible{opacity:1;transform:scale(1.08)}.person-avatar{width:51px;height:51px;flex:none;display:grid;place-items:center;border-radius:50%;font-family:Georgia,serif;font-size:14px;font-weight:700;overflow:hidden}.person-avatar img,.profile-photo img{width:100%;height:100%;object-fit:cover}.tone-0{background:#dce8de;color:#446957}.tone-1{background:#eadfce;color:#755f43}.tone-2{background:#ead5d1;color:#805953}.tone-3{background:#d8e4e8;color:#4e6871}.tone-4{background:#eee4c8;color:#7e6c3e}.person-copy{min-width:0;margin-left:11px;display:flex;flex-direction:column;gap:5px}.person-copy strong{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-family:Georgia,serif;font-size:14px}.person-copy small{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--muted);font-size:10.5px}.card-years{position:absolute;right:12px;bottom:7px;color:#a0aaa6;font-size:9px}.canvas-add{position:absolute;z-index:3;width:39px;height:39px;flex:none;border:0;border-radius:50%;background:var(--green);color:#fff;font-size:20px;box-shadow:0 6px 16px #2c6b5938}.loading-ring{width:28px;height:28px;margin:150px auto;border:2px solid #d6dfda;border-top-color:var(--green);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.empty-state{margin:auto;display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;color:var(--muted)}.empty-state strong{color:var(--ink);font-family:Georgia,serif;font-size:21px}.empty-state span{font-size:12px}.empty-state button{margin-top:6px;padding:10px 14px;border:0;border-radius:11px;background:var(--green);color:#fff;font-size:12px;font-weight:700}.profile-panel{position:fixed;z-index:12;right:0;top:72px;bottom:0;width:340px;overflow:auto;border-left:1px solid var(--line);background:#fff;padding:0 25px 24px;box-shadow:-18px 0 42px #18332d21;transform:translate(0);transition:transform .25s ease}.profile-panel.is-empty{transform:translate(100%);pointer-events:none}.profile-panel.is-empty .profile-content{display:none}.profile-head{height:68px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #edf0ee;color:var(--muted);font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.09em}.profile-head button{border:0;background:transparent;color:#89948f;font-size:24px;font-weight:300}.profile-photo{position:relative;width:108px;height:108px;margin:27px auto 15px;border-radius:50%;display:grid;place-items:center;border:5px solid white;outline:1px solid var(--line);font-family:Georgia,serif;font-size:25px;font-weight:700;overflow:visible}.profile-photo-crop{position:absolute;inset:0;display:block;overflow:hidden;border-radius:50%}.profile-photo-crop img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 50%}.profile-photo button{position:absolute;z-index:2;right:-4px;bottom:3px;width:32px;height:32px;border-radius:50%;background:var(--green);color:#fff;border:3px solid white;font-size:17px}.profile-title{text-align:center}.profile-title p{display:inline-block;margin:0 0 8px;padding:4px 8px;border-radius:20px;background:var(--green-soft);color:var(--green);font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.profile-name-edit{max-width:100%;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:3px 6px;border:0;border-radius:9px;background:transparent}.profile-name-edit:hover{background:var(--green-soft)}.profile-name-edit h2{overflow:hidden;margin:0;font-family:Georgia,serif;font-size:23px;letter-spacing:-.4px;text-overflow:ellipsis}.profile-name-edit>span{color:#83918b;font-size:12px}.profile-title>span{display:block;margin-top:4px;color:var(--muted);font-size:12px}.inline-name-editor{display:grid;gap:8px;padding:12px;border:1px solid #dce6e1;border-radius:14px;background:#f8fbf9;text-align:left}.inline-name-editor label{display:grid;gap:4px}.inline-name-editor label span{color:var(--muted);font-size:8px;font-weight:800;text-transform:uppercase}.inline-name-editor input{width:100%;height:35px;padding:0 9px;border:1px solid #d6e1dc;border-radius:9px;background:#fff;outline:0;font-size:12px}.inline-name-editor input:focus{border-color:#7fa492;box-shadow:0 0 0 3px #2c6b5914}.inline-name-editor>div{display:flex;justify-content:flex-end;gap:7px}.inline-name-editor button{height:31px;padding:0 10px;border:1px solid var(--line);border-radius:9px;background:#fff;font-size:10px;font-weight:750}.inline-name-editor button:last-child{border-color:var(--green);background:var(--green);color:#fff}.facts{margin:24px 0 0;padding:8px 0;border-top:1px solid #edf0ee;border-bottom:1px solid #edf0ee}.facts div{display:grid;grid-template-columns:93px minmax(0,1fr);align-items:center;gap:9px;padding:7px 0;font-size:12px}.facts dt{color:var(--muted)}.facts dd{margin:0;font-weight:650}.profile-relations{padding:18px 0;border-bottom:1px solid #edf0ee}.profile-relations-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px}.profile-relations h3{margin:0;font-size:12px}.relation-add-button{width:29px;height:29px;display:grid;place-items:center;padding:0;border:1px solid #c9d9d2;border-radius:9px;background:var(--green-soft);color:var(--green);font-size:17px;font-weight:500}.relation-add-button:hover,.relation-add-button.active{border-color:var(--green);background:var(--green);color:#fff}.relation-row{position:relative;display:flex;align-items:center;gap:5px;padding:2px 0}.relation-person{min-width:0;display:flex;flex:1;align-items:center;gap:9px;padding:6px 4px;border:0;border-radius:10px;background:transparent;text-align:left}.relation-person:hover{background:var(--green-soft)}.person-avatar.relation-list-avatar{width:34px;height:34px;font-size:9px}.relation-person>span:not(.person-avatar){min-width:0;display:flex;flex:1;flex-direction:column;gap:2px}.profile-relations small{color:var(--green);font-size:8.5px;font-weight:800;text-transform:uppercase}.profile-relations strong{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:11px}.relation-person>b{color:var(--muted);font-size:17px;font-weight:400}.remove-relation{width:24px;height:24px;flex:none;display:grid;place-items:center;padding:0;border:0;border-radius:8px;background:transparent;color:#a36a64;font-size:16px}.remove-relation:hover{background:#fff0ee}.extended-relations{margin-top:12px;padding-top:11px;border-top:1px solid #edf0ee}.extended-relations summary{display:flex;align-items:center;gap:8px;padding:6px 5px;border-radius:9px;color:var(--green-dark);cursor:pointer;font-size:10.5px;font-weight:800;list-style:none}.extended-relations summary::-webkit-details-marker{display:none}.extended-relations summary:before{content:"›";font-size:17px;font-weight:400;transition:transform .16s ease}.extended-relations[open] summary:before{transform:rotate(90deg)}.extended-relations summary:hover{background:var(--green-soft)}.extended-relations summary span{flex:1}.extended-relations summary b{min-width:22px;padding:3px 6px;border-radius:999px;background:var(--green-soft);color:var(--green);font-size:9px;text-align:center}.extended-list{padding-top:5px}.derived-relation .relation-person{padding-right:3px}.derived-relation i{flex:none;padding:3px 5px;border-radius:6px;background:#f0f3f1;color:#84908b;font-size:7px;font-style:normal;font-weight:800;text-transform:uppercase;letter-spacing:.03em}.close-derived{margin-top:2px;border-top:1px dashed #e4e9e6}.notes{padding:20px 0;border-bottom:1px solid #edf0ee}.notes h3,.photo-strip-title h3{margin:0;font-size:12px}.notes p{margin:9px 0 0;color:#66736e;font-size:12px;line-height:1.55}.photo-strip-title{margin-top:19px;display:flex;align-items:center;justify-content:space-between}.photo-strip-title button{border:0;background:none;color:var(--green);font-size:10.5px;font-weight:750}.photo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:11px}.mini-photo,.add-photo-tile{position:relative;aspect-ratio:1;min-width:0;border-radius:10px;overflow:hidden}.mini-photo img{width:100%;height:100%;object-fit:cover}.mini-photo>span{position:absolute;left:4px;bottom:4px;padding:2px 5px;border-radius:8px;background:#18332dd9;color:#fff;font-size:8px;font-weight:700}.mini-photo button{position:absolute;display:grid;place-items:center;width:20px;height:20px;border:0;border-radius:50%;background:#ffffffe6;font-size:10px}.make-main{left:4px;top:4px;color:#9b761b}.remove-photo{right:4px;top:4px;color:#934941}.add-photo-tile{border:1px dashed #afbeb8;background:#f8faf8;color:var(--green);font-size:20px}.profile-actions{display:grid;grid-template-columns:1fr auto;gap:8px;margin-top:20px}.edit-profile,.delete-profile{height:42px;border-radius:11px;font-weight:750;font-size:12px}.edit-profile{border:1px solid #b8c9c2;background:#fff;color:var(--green)}.delete-profile{padding:0 14px;border:1px solid #efd8d4;background:#fff6f4;color:#9c4d45}.person-dialog{width:min(610px,calc(100vw - 30px));max-height:calc(100vh - 30px);padding:0;border:0;border-radius:20px;background:#fff;box-shadow:0 28px 90px #1228223d;color:var(--ink)}.person-dialog::backdrop{background:#1525216b;backdrop-filter:blur(4px)}.person-dialog form{padding:26px}.dialog-head{display:flex;justify-content:space-between;align-items:flex-start;padding-bottom:20px;border-bottom:1px solid #edf0ee}.dialog-head p{margin:0 0 4px;color:var(--muted);font-size:10px;text-transform:uppercase;font-weight:800;letter-spacing:.1em}.dialog-head h2{margin:0;font-family:Georgia,serif;font-size:25px}.dialog-head button{width:32px;height:32px;border:0;border-radius:10px;background:#f3f6f4;color:#71807a;font-size:21px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px;padding:21px 0}.form-grid label{display:flex;flex-direction:column;gap:6px}.form-grid label>span{color:#63716c;font-size:11px;font-weight:700}.form-grid .full{grid-column:1 / -1}.form-grid input,.form-grid select,.form-grid textarea{width:100%;border:1px solid #dbe3df;border-radius:10px;background:#fbfcfb;padding:10px 11px;outline:none;font-size:13px}.form-grid input:focus,.form-grid select:focus,.form-grid textarea:focus{border-color:#82a797;box-shadow:0 0 0 3px #2c6b5914;background:#fff}.form-grid textarea{resize:vertical;min-height:82px}.relation-fields{display:grid;grid-template-columns:1fr 1fr;gap:15px}.relation-fields.hidden{display:none}.relation-summary{margin:-5px 0 0;padding:9px 11px;border-radius:10px;background:var(--green-soft);color:var(--green-dark);font-size:10.5px;line-height:1.45}.gender-toggle{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.gender-toggle button{min-height:52px;display:flex;align-items:center;justify-content:center;gap:7px;padding:7px;border:1px solid #dce4e0;border-radius:12px;background:#fbfcfb;color:#697771;transition:.15s ease}.gender-toggle button:hover{transform:translateY(-1px);background:#fff}.gender-toggle b{width:27px;height:27px;display:grid;place-items:center;border-radius:9px;background:#edf1ef;font-size:16px}.gender-toggle span{font-size:10px;font-weight:750}.gender-toggle button[data-gender=male].active{border-color:#78a9c5;background:#edf7fc;color:#286580;box-shadow:0 0 0 3px #4a91b417}.gender-toggle button[data-gender=male].active b{background:#cfe9f5}.gender-toggle button[data-gender=female].active{border-color:#d69aab;background:#fff2f5;color:#91485e;box-shadow:0 0 0 3px #c2688214}.gender-toggle button[data-gender=female].active b{background:#f5d8e0}.gender-toggle button[data-gender=other].active{border-color:#aa9bcf;background:#f7f3ff;color:#6b579c;box-shadow:0 0 0 3px #7961b114}.gender-toggle button[data-gender=other].active b{background:#e8def8}.gender-toggle button[data-gender=unspecified].active{border-color:#a9b5b0;background:#f1f4f2;color:#52635c;box-shadow:0 0 0 3px #5a706712}.relation-type-picker{position:relative;min-width:0}.relation-type-trigger{width:100%;min-height:43px;display:flex;align-items:center;gap:8px;padding:6px 9px;border:1px solid #dbe3df;border-radius:10px;background:#fbfcfb;text-align:left}.relation-type-trigger:hover,.relation-type-picker.open .relation-type-trigger{border-color:#82a797;background:#fff;box-shadow:0 0 0 3px #2c6b5914}.relation-type-trigger>b,.relation-type-option>b{width:27px;height:27px;flex:none;display:grid;place-items:center;border-radius:8px;background:var(--green-soft);color:var(--green);font-size:13px}.relation-type-trigger>span{min-width:0;flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:11px;font-weight:750}.relation-type-trigger>i{color:var(--muted);font-size:11px;font-style:normal}.relation-type-menu{position:absolute;z-index:18;top:calc(100% + 6px);left:0;right:0;display:none;min-width:190px;padding:6px;border:1px solid var(--line);border-radius:13px;background:#fff;box-shadow:0 18px 45px #12282233}.relation-type-picker.open .relation-type-menu{display:grid;gap:2px}.relation-type-option{width:100%;min-height:42px;display:flex;align-items:center;gap:9px;padding:5px 7px;border:0;border-radius:9px;background:transparent;text-align:left}.relation-type-option:hover,.relation-type-option.selected{background:var(--green-soft)}.relation-type-option span{flex:1;font-size:11px;font-weight:700}.relation-type-option i{color:var(--green);font-size:11px;font-style:normal}.relation-type-picker.compact{width:105px;flex:none}.relation-type-picker.compact .relation-type-trigger{min-height:31px;gap:5px;padding:3px 6px;border:0;background:var(--green-soft)}.relation-type-picker.compact .relation-type-trigger>b{width:21px;height:21px;border-radius:7px;background:#fff;font-size:10px}.relation-type-picker.compact .relation-type-trigger>span{color:var(--green-dark);font-size:8.5px;text-transform:uppercase}.relation-type-picker.compact .relation-type-menu{right:0;left:auto}.relation-type-picker.compact .relation-type-trigger:hover,.relation-type-picker.compact.open .relation-type-trigger{box-shadow:0 0 0 2px #2c6b591f}.dialog-relations{padding:13px;border:1px solid #e0e7e3;border-radius:12px;background:#fafcfb}.dialog-relations-head{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:7px;margin-bottom:7px}.dialog-relations-head h3{margin:0;font-size:11px}.dialog-relations-head>span{min-width:22px;padding:3px 6px;border-radius:999px;background:var(--green-soft);color:var(--green);font-size:9px;font-weight:800;text-align:center}.dialog-relation-add{width:28px;height:28px;display:grid;place-items:center;padding:0;border:1px solid #cbdad3;border-radius:9px;background:#fff;color:var(--green);font-size:16px}.dialog-relation-add:hover,.dialog-relation-add.active{border-color:var(--green);background:var(--green);color:#fff}.dialog-relation-row{display:grid;grid-template-columns:34px minmax(90px,1fr) 112px 27px;align-items:center;gap:7px;padding:5px 0}.dialog-relation-row>span:not(.person-avatar){min-width:0;display:flex;flex-direction:column;gap:2px}.dialog-relation-row strong{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:11px}.dialog-remove-relation{width:27px;height:27px;display:grid;place-items:center;padding:0;border:0;border-radius:8px;background:transparent;color:#a36a64;font-size:15px}.dialog-remove-relation:hover{background:#fff0ee}.profile-relation-composer{display:grid;gap:9px;margin:0 0 12px;padding:11px;border:1px solid #d4e2dc;border-radius:14px;background:#f8fbf9;box-shadow:0 8px 22px #214a3e0f}.composer-head{display:flex;align-items:center;justify-content:space-between}.composer-head strong{font-size:10.5px}.composer-head button{width:25px;height:25px;padding:0;border:0;border-radius:7px;background:#edf2ef;color:var(--muted);font-size:16px}.profile-person-search{height:37px;display:flex;align-items:center;gap:6px;padding:0 9px;border:1px solid #d9e2de;border-radius:10px;background:#fff;color:#86928d}.profile-person-search input{width:100%;min-width:0;padding:0;border:0;outline:0;background:transparent;font-size:11px}.composer-results{max-height:172px;overflow:auto}.composer-results>button,.composer-selected{width:100%;min-height:43px;display:flex;align-items:center;gap:8px;padding:5px 6px;border:0;border-radius:9px;background:transparent;text-align:left}.composer-results>button:hover{background:var(--green-soft)}.composer-results>button>span:not(.person-avatar),.composer-selected>span:not(.person-avatar){min-width:0;display:flex;flex:1;flex-direction:column}.composer-results strong,.composer-selected strong{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:10.5px}.composer-results small,.composer-selected small{color:var(--muted);font-size:8.5px}.composer-results>button>b{color:var(--green);font-size:15px}.composer-results p{margin:12px 0;color:var(--muted);font-size:10px;text-align:center}.composer-selected{border:1px solid #d6e3dd;background:#fff}.composer-selected>button{width:24px;height:24px;padding:0;border:0;border-radius:7px;background:#fff0ee;color:#a36a64}.composer-save{height:36px;border:0;border-radius:10px;background:var(--green);color:#fff;font-size:11px;font-weight:800}.composer-save:disabled{cursor:default;opacity:.42}.person-picker{position:relative}.person-picker.locked .person-picker-trigger{cursor:default;opacity:.78;box-shadow:none}.person-picker-trigger{width:100%;height:43px;display:flex;align-items:center;gap:9px;padding:5px 9px;border:1px solid #dbe3df;border-radius:10px;background:#fbfcfb;text-align:left}.person-picker-trigger:hover,.person-picker.open .person-picker-trigger{border-color:#82a797;background:#fff;box-shadow:0 0 0 3px #2c6b5914}.person-picker-trigger>span:not(.person-avatar){min-width:0;display:flex;flex:1;flex-direction:column}.person-picker-trigger strong{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:11px}.person-picker-trigger small{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--muted);font-size:9px}.person-picker-trigger>b{margin-left:auto;color:var(--muted);font-size:12px}.picker-placeholder{color:#7b8883;font-size:12px}.person-avatar.picker-avatar{width:31px;height:31px;font-size:9px}.person-picker-popover{position:absolute;z-index:6;left:0;right:0;top:calc(100% + 7px);display:none;padding:8px;border:1px solid var(--line);border-radius:13px;background:#fff;box-shadow:0 18px 45px #1228222e}.person-picker.open .person-picker-popover{display:block}.picker-search{height:36px;display:flex;align-items:center;gap:6px;padding:0 9px;border-radius:9px;background:#f3f6f4;color:#84908b}.picker-search input{padding:0;border:0;background:transparent;box-shadow:none;font-size:11px}.picker-search input:focus{box-shadow:none;background:transparent}.picker-options{max-height:205px;overflow:auto;margin-top:6px}.picker-option{width:100%;min-height:46px;display:flex;align-items:center;gap:9px;padding:6px 7px;border:0;border-radius:9px;background:transparent;text-align:left}.picker-option:hover,.picker-option.selected{background:var(--green-soft)}.picker-option>span:not(.person-avatar){min-width:0;display:flex;flex:1;flex-direction:column}.picker-option strong{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:11px}.picker-option small{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--muted);font-size:9px}.picker-option>b{margin-left:auto;color:var(--green);font-size:11px}.picker-none>span{width:31px;height:31px;display:grid;place-items:center;border-radius:50%;background:#edf1ef;color:var(--muted)}.picker-empty-results{margin:14px 8px;color:var(--muted);font-size:10px;text-align:center}.dialog-actions{display:flex;align-items:center;gap:9px;padding-top:18px;border-top:1px solid #edf0ee}.dialog-actions>span{flex:1}.dialog-actions button{height:40px;padding:0 16px;border-radius:10px;font-size:12px;font-weight:750}.primary-button{border:0;background:var(--green);color:#fff}.secondary-button{border:1px solid var(--line);background:#fff}.delete-dialog-button{display:none;border:0;background:#fff0ee;color:#9c4d45}.delete-dialog-button.visible{display:block}.relation-dialog{width:min(430px,calc(100vw - 30px));padding:24px;border:0;border-radius:20px;background:#fff;box-shadow:0 28px 90px #1228223d;color:var(--ink)}.relation-dialog::backdrop{background:#1525216b;backdrop-filter:blur(4px)}.relation-dialog-head{display:flex;align-items:center;justify-content:space-between}.relation-dialog-head p{margin:0;color:var(--muted);font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.1em}.relation-dialog-head button{width:30px;height:30px;border:0;border-radius:9px;background:#f3f6f4;color:#71807a;font-size:20px}.relation-target{margin:18px 0 16px;display:flex;align-items:center;gap:11px;padding:11px;border-radius:13px;background:#f3f7f4}.person-avatar.relation-avatar{width:42px;height:42px;font-size:11px}.relation-target>span{display:flex;flex-direction:column;gap:2px}.relation-target small{color:var(--muted);font-size:9px}.relation-target strong{font-family:Georgia,serif;font-size:14px}.relation-dialog h2{margin:0 0 13px;font-family:Georgia,serif;font-size:20px}.relation-choices{display:grid;grid-template-columns:1fr 1fr;gap:9px}.relation-choices button{min-height:67px;display:flex;align-items:center;gap:10px;padding:10px;border:1px solid var(--line);border-radius:12px;background:#fff;text-align:left;transition:.15s ease}.relation-choices button:hover{border-color:#9cb8ac;background:var(--green-soft)}.relation-choices b{width:30px;height:30px;flex:none;display:grid;place-items:center;border-radius:9px;background:var(--green-soft);color:var(--green);font-size:14px}.relation-choices span{font-size:10.5px;font-weight:750}.toast{position:fixed;z-index:30;left:50%;bottom:24px;transform:translate(-50%,20px);padding:10px 15px;border-radius:11px;background:var(--ink);color:#fff;box-shadow:0 10px 30px #12282233;opacity:0;pointer-events:none;font-size:12px;font-weight:700;transition:.2s}.toast.show{opacity:1;transform:translate(-50%)}.toast.is-error{background:#944d45}html[data-role=viewer] .add-button,html[data-role=viewer] .card-add,html[data-role=viewer] .canvas-add,html[data-role=viewer] .profile-photo button,html[data-role=viewer] .relation-add-button,html[data-role=viewer] .relation-type-picker,html[data-role=viewer] .remove-relation,html[data-role=viewer] .photo-strip-title button,html[data-role=viewer] .make-main,html[data-role=viewer] .remove-photo,html[data-role=viewer] .add-photo-tile,html[data-role=viewer] .profile-actions{display:none}@media(max-width:1080px){.workspace{grid-template-columns:64px 1fr}.search-box{width:150px}}@media(max-width:720px){body{overflow:auto}.topbar{padding:0 13px}.brand>span:last-child{display:none}.search-box{width:40px;padding:0 9px}.search-box input{width:0}.search-box:focus-within{position:absolute;left:62px;right:120px;width:auto;z-index:2}.search-box:focus-within input{width:100%}.add-button{width:42px;padding:0}.add-button b{display:none}.add-button span{margin:0}.workspace{grid-template-columns:1fr;height:calc(100vh - 72px)}.rail{position:fixed;z-index:14;left:50%;bottom:12px;width:auto;height:58px;display:flex;flex-direction:row;gap:5px;padding:7px;transform:translate(-50%);border:1px solid var(--line);border-radius:17px;background:#fffffff0;box-shadow:0 12px 35px #18332d2b;backdrop-filter:blur(14px)}.rail-spacer,.connection-dot{display:none}.tree-heading{height:78px;padding:0 15px}.tree-heading h1{font-size:23px}.tree-heading p{font-size:9px}.tree-viewport{height:calc(100% - 78px);padding:28px 14px 88px}.tree-graph{min-width:500px;transform-origin:top left;align-items:flex-start}.tree-graph.list-mode{min-width:0}.generation-label{left:4px}.people-grid{grid-template-columns:1fr}.library-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.profile-panel{width:min(340px,92vw)}.form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:auto}.relation-fields{grid-template-columns:1fr}.gender-toggle{grid-template-columns:1fr 1fr}.dialog-relation-row{grid-template-columns:34px minmax(72px,1fr) 105px 27px}.dialog-actions{flex-wrap:wrap}.delete-dialog-button{order:5;width:100%}}
