:root{--green:#233f35;--green-dark:#193129;--sage:#e8eee7;--paper:#f8f7f3;--ink:#26362f;--muted:#7b8178;--line:#e5e7df;--white:#fff;--accent:#b69361;--shadow:0 8px 30px #24392d0a;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);font-size:14px;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:var(--paper)}button,input,textarea,select{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);border-radius:8px;padding:10px 15px;background:white;color:var(--ink);font-weight:550;transition:background .15s,box-shadow .15s}button:hover{background:#f1f3ed}button:disabled{cursor:wait;opacity:.55}button.primary{background:var(--green);border-color:var(--green);color:white}button.primary:hover{background:var(--green-dark)}button.subtle{background:transparent;border-color:transparent}button.danger{color:#aa433e;border-color:#eed6d3}button.icon-button{padding:9px;width:36px;height:36px;flex-shrink:0}button.small{padding:7px 10px;font-size:12px}svg.icon{width:18px;height:18px;flex-shrink:0;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}a{color:var(--green)}h1,h2,h3,p{margin:0}h1,h2,h3{font-weight:550}button:focus-visible,a:focus-visible{outline:3px solid #b69c62;outline-offset:3px}input,textarea,select{width:100%;padding:11px 12px;background:#fff;border:1px solid #dce0d6;border-radius:7px;color:var(--ink);outline:none;min-width:0}input:focus,textarea:focus,select:focus{border-color:#718d72;box-shadow:0 0 0 3px #718d721b}input[type=checkbox]{width:17px;height:17px;accent-color:var(--green)}textarea{resize:vertical;min-height:95px}label{display:block;font-size:12px;font-weight:600;margin-bottom:7px}small,.muted{color:var(--muted)}.hidden{display:none!important}.row{display:flex;align-items:center;gap:12px}.between{justify-content:space-between}.wrap{flex-wrap:wrap}.grow{flex:1;min-width:0}.eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:650;text-transform:uppercase;color:var(--muted)}.serif{font-family:Georgia,"Times New Roman",serif}.pill{display:inline-flex;align-items:center;gap:5px;border-radius:20px;padding:5px 9px;font-size:10px;background:var(--sage);color:#53684d;font-weight:600;white-space:nowrap}.pill.gold{color:#93703e;background:#f6eedc}.pill.gray{background:#eef0ec;color:#737c70}.dot{width:5px;height:5px;background:currentColor;border-radius:50%}.boot{min-height:100vh;display:grid;align-content:center;justify-items:center;gap:20px;color:var(--muted)}.boot-mark{background:var(--green);color:#f5edda;border-radius:15px;width:65px;height:65px;font:50px Georgia;text-align:center}.app-shell{display:grid;grid-template-columns:228px 1fr;height:100dvh;overflow:hidden}.sidebar{display:flex;flex-direction:column;background:#fff;border-right:1px solid var(--line);padding:29px 19px 18px;z-index:20}.brand{display:flex;align-items:center;gap:10px;padding:0 9px}.brand-mark{width:32px;height:34px;background:var(--green);border-radius:10px;color:#f5efdf;font:29px Georgia;text-align:center;line-height:31px}.brand-name{font-family:Georgia,serif;font-size:29px;letter-spacing:-1.2px}.brand-tag{color:#92988b;font-size:10px;letter-spacing:1.2px;margin:9px 10px 0}.workspace-label{margin:48px 11px 13px}.nav{display:grid;gap:6px}.nav button{justify-content:flex-start;padding:12px 13px;background:transparent;border:none;color:#7c837a;font-size:12px;font-weight:500}.nav button.active{background:var(--sage);color:var(--green);font-weight:650}.nav button:hover{background:#f3f5ef}.nav .icon{width:17px}.nav-count{margin-left:auto;font-size:10px;padding:2px 5px;background:#dce6d8;border-radius:4px}.sidebar-note{margin:auto 8px 24px;border:1px solid #e8e9df;background:#fafbf7;padding:17px 14px;border-radius:9px}.sidebar-note .icon{color:#869d76;margin-bottom:8px}.sidebar-note p{font-size:11px;line-height:1.7;color:#929887;margin-top:7px}.sidebar-note strong{font-size:12px;font-weight:550}.account{border-top:1px solid var(--line);padding:18px 5px 0;display:flex;align-items:center;gap:10px}.avatar{display:flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:50%;background:#ebe9e0;color:#7a7965;font-size:12px;font-weight:600;overflow:hidden}.avatar img{width:100%;height:100%;object-fit:cover}.account .avatar{width:35px;height:35px;background:#e8eadd;color:#66714f}.account-name{font-size:12px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-role{font-size:10px;color:var(--muted);text-transform:capitalize;margin-top:3px}.account button{margin-left:auto;width:28px;padding:3px}.main{min-width:0;display:flex;flex-direction:column;height:100dvh;overflow:hidden}.topbar{height:73px;flex-shrink:0;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 35px;gap:15px}.breadcrumbs{display:flex;align-items:center;gap:12px;font-size:11px;color:#8e9388;min-width:0}.breadcrumbs strong{color:#4a584d;font-weight:550;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.breadcrumbs .icon{width:14px}.topbar-right{display:flex;align-items:center;gap:16px;flex-shrink:0}.private-label{font-size:10px;color:#7d8877;display:flex;align-items:center;gap:6px}.private-label .icon{width:13px}.topbar-right .icon-button{background:transparent;border:none}.mobile-menu{display:none!important}.page-heading{padding:31px 35px 24px;display:flex;align-items:center;justify-content:space-between;gap:20px;flex-shrink:0}.page-heading h1{font:30px Georgia,serif;letter-spacing:-.7px;margin-bottom:8px}.page-heading p{font-size:11px;color:var(--muted);line-height:1.7}.page-heading .actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.page-heading button{font-size:11px;padding:9px 13px}.tree-subnav{margin:0 35px;display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid var(--line);flex-shrink:0}.tabs{display:flex;gap:26px}.tab{padding:12px 0;border:0;border-bottom:2px solid transparent;border-radius:0;background:none;font-size:11px;color:var(--muted);gap:7px}.tab .icon{width:14px;height:14px}.tab.active{color:var(--green);border-bottom-color:var(--green)}.tab:hover{background:none;color:var(--green)}.tree-summary{font-size:10px;color:#8b9286;display:flex;align-items:center;gap:14px}.tree-summary span{display:flex;align-items:center;gap:5px}.tree-summary .icon{height:13px;width:13px}.tree-toolbar{display:flex;align-items:center;justify-content:space-between;padding:20px 35px 0;gap:12px;z-index:3;flex-shrink:0}.search{position:relative;display:flex;align-items:center;max-width:280px;width:100%}.search>.icon{position:absolute;left:12px;width:15px;color:#8d9689}.search input{padding:10px 12px 10px 35px;font-size:11px;background:white;box-shadow:0 2px 5px #24392d03}.tree-toolbar .toolbar-right{display:flex;gap:7px;align-items:center}.tree-toolbar button{font-size:10px;padding:8px 10px}.tree-toolbar button .icon{width:14px;height:14px}.tree-area{flex:1;min-height:150px;position:relative;overflow:hidden;background-image:radial-gradient(#bdc5b540 .8px,transparent .8px);background-size:22px 22px;touch-action:none}.tree-world{position:absolute;transform-origin:0 0;will-change:transform}.tree-world>svg{position:absolute;overflow:visible;pointer-events:none}.tree-line{fill:none;stroke:#b1bcaa;stroke-width:1.5}.tree-line.spouse{stroke:#c4b79f;stroke-dasharray:4 3}.person-card{position:absolute;width:182px;height:88px;text-align:left;display:flex;justify-content:flex-start;gap:11px;padding:13px 14px;border:1px solid #e1e5db;border-radius:8px;background:#fff;box-shadow:0 3px 9px #2c422611;font-weight:400;user-select:none;touch-action:none}.person-card:hover{background:white;border-color:#9caf91;box-shadow:0 4px 15px #263c2920}.person-card.selected{border-color:#6e8960;box-shadow:0 0 0 2px #83987133,0 4px 12px #2c422612}.person-card .avatar{height:43px;width:43px;font-size:15px;font-family:Georgia,serif;background:#e9edf1;color:#8092a1}.person-card.female .avatar{background:#f0e7e2;color:#b59583}.person-card.unknown .avatar{background:#edece4;color:#9a997b}.person-name{font-size:11px;font-weight:600;line-height:1.5;max-width:107px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.person-dates{font-size:9px;color:#8f968a;margin-top:4px}.person-card .deceased{position:absolute;top:7px;right:8px;color:#a5ab9d;font-size:9px}.tree-overlay-note{position:absolute;bottom:20px;left:35px;color:#969e8f;font-size:9px;display:flex;gap:6px;align-items:center;pointer-events:none}.tree-overlay-note .icon{width:12px;height:12px}.tree-controls{position:absolute;bottom:24px;right:30px;display:flex;align-items:center;background:white;border:1px solid var(--line);box-shadow:var(--shadow);border-radius:8px;padding:3px;gap:3px}.tree-controls button{border:none;padding:7px;background:white;width:30px;height:30px}.tree-controls button .icon{width:15px}.zoom-value{font-size:10px;color:#7d8776;width:38px;text-align:center}.tree-controls .divider{height:17px;width:1px;background:var(--line);margin:0 4px}.tree-footer{height:38px;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 35px;font-size:9px;color:#969c90;background:#fafaf7;flex-shrink:0}.tree-footer span{display:flex;align-items:center;gap:6px}.tree-footer .icon{width:12px;height:12px}.profile-panel{position:absolute;z-index:5;top:14px;right:22px;bottom:73px;width:310px;background:white;border:1px solid var(--line);border-radius:12px;box-shadow:0 10px 40px #293f291a;overflow:auto;touch-action:pan-y}.profile-top{padding:15px 15px 22px;background:#f3f5ee;text-align:center;border-bottom:1px solid var(--line)}.profile-top .avatar{width:74px;height:74px;font:26px Georgia;margin:3px auto 13px;background:#e3e8dc;color:#738765}.profile-top h2{font:24px Georgia}.profile-top p{font-size:11px;color:var(--muted);margin-top:8px}.profile-body{padding:20px}.detail-row{display:flex;gap:12px;margin-bottom:22px}.detail-row>.icon{color:#95a18b;width:16px;margin-top:2px}.detail-label{font-size:9px;letter-spacing:1px;text-transform:uppercase;color:#919886;margin-bottom:6px}.detail-value{font-size:11px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}.profile-actions{display:flex;gap:8px;margin-top:14px}.profile-actions button{font-size:10px;flex:1}.relative{display:flex;align-items:center;gap:9px;margin:9px 0;padding:7px;border:none;width:100%;text-align:left;justify-content:flex-start;font-size:11px}.relative .avatar{width:29px;height:29px;font-size:10px}.relative small{font-size:9px}.scroll-content{overflow:auto;flex:1;padding:0 35px 35px}.welcome-banner{padding:25px 28px;background:#eaf0e5;border:1px solid #dce5d4;border-radius:12px;display:flex;align-items:center;justify-content:space-between;gap:25px;margin:5px 0 28px}.welcome-banner h2{font:25px Georgia;margin:9px 0}.welcome-banner p{color:#75866c;font-size:12px;line-height:1.8;max-width:550px}.welcome-banner .banner-art{font:80px Georgia;color:#a5b99a;line-height:1;opacity:.8;flex-shrink:0}.projects-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(265px,1fr));gap:18px}.project-card{border:1px solid var(--line);border-radius:11px;overflow:hidden;background:white;box-shadow:var(--shadow)}.project-art{height:115px;background:#edf0e8;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}.project-art .icon{width:65px;height:65px;color:#a1b493;stroke-width:.9}.project-art:before,.project-art:after{content:'';width:160px;height:160px;border:1px solid #c9d4c04a;border-radius:50%;position:absolute;left:22px;top:25px}.project-art:after{left:auto;right:-45px;top:-65px;width:250px;height:250px}.project-body{padding:20px}.project-body h2{font:23px Georgia;margin:10px 0}.project-body p{font-size:11px;color:var(--muted);line-height:1.7;min-height:38px}.project-meta{display:flex;justify-content:space-between;align-items:center;margin:18px 0;font-size:10px;color:#899180}.project-body>button{width:100%;font-size:11px}.empty-state{text-align:center;padding:65px 20px;color:var(--muted)}.empty-state>.icon{width:46px;height:46px;color:#a7b49b;margin-bottom:20px;stroke-width:1}.empty-state h2{font:25px Georgia;color:var(--ink);margin-bottom:10px}.empty-state p{font-size:12px;line-height:1.8;margin-bottom:20px}.table-wrap{background:white;border:1px solid var(--line);border-radius:10px;overflow:auto;margin-top:20px}table{border-collapse:collapse;width:100%;text-align:left;white-space:nowrap}th{font-size:9px;text-transform:uppercase;letter-spacing:1px;color:#8c9585;font-weight:600;background:#fafbf7;padding:15px 18px}td{padding:14px 18px;border-top:1px solid #eff0ea;font-size:11px}td .avatar{width:33px;height:33px}td button{padding:6px 9px;font-size:10px}tr.clickable{cursor:pointer}tr.clickable:hover{background:#f8faf5}.help-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:20px}.help-card{background:white;border:1px solid var(--line);padding:25px;border-radius:10px}.help-card h2{font:22px Georgia;margin-bottom:16px}.help-card p,.help-card li{font-size:12px;line-height:1.9;color:var(--muted)}.help-card ul{padding-left:18px}.help-card code{font-size:11px;color:var(--green);background:var(--sage);padding:3px 5px;border-radius:4px}.help-card .icon{color:#9cab8e;margin-bottom:13px}dialog{border:1px solid var(--line);padding:0;border-radius:15px;box-shadow:0 25px 90px #102e2a2e;width:530px;max-width:calc(100vw - 28px);max-height:calc(100dvh - 35px);color:var(--ink);background:#fff}dialog::backdrop{background:#182e2559;backdrop-filter:blur(3px)}.modal-header{padding:23px 25px 19px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}.modal-header h2{font:25px Georgia}.modal-body{padding:23px 25px}.modal-body>p{font-size:12px;color:var(--muted);line-height:1.8;margin-bottom:20px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.form-field{margin-bottom:18px}.form-grid .form-field{margin-bottom:0}.full{grid-column:1/-1}.form-hint{display:block;font-size:10px;font-weight:400;color:#929989;margin-top:6px;line-height:1.7}.form-error{padding:10px 12px;border:1px solid #edccc6;border-radius:6px;background:#fff6f3;color:#a04b40;font-size:11px;margin:0 0 18px;line-height:1.7}.modal-footer{display:flex;justify-content:flex-end;gap:8px;padding:18px 25px;border-top:1px solid var(--line);background:#fcfcf9}.modal-footer button{font-size:12px}.checkbox-label{display:flex;align-items:center;gap:10px;font-weight:400;font-size:12px;margin-top:18px;line-height:1.7}.notice{background:#f3f5ee;border:1px solid #e4e9dc;border-radius:7px;padding:12px 14px;color:#7c876f;font-size:11px;line-height:1.8;margin:15px 0}.notice .icon{width:14px;vertical-align:middle;margin-right:5px}.dropzone{border:1px dashed #b9c7ae;border-radius:10px;background:#fafbf7;padding:24px;text-align:center;margin-bottom:17px}.dropzone .icon{width:30px;height:30px;color:#91a380;margin-bottom:10px}.dropzone label{font-size:12px;margin-bottom:12px}.dropzone input{font-size:11px;background:white}.invite-link{display:flex;gap:8px}.invite-link input{font-size:11px}.member-list{margin-top:22px}.member-item{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid #eff0e9;font-size:11px}.member-item p{font-size:10px;color:var(--muted);margin-top:5px}.member-item button{margin-left:auto;font-size:10px;padding:5px 8px}.member-item .avatar{width:30px;height:30px}.auth-layout{display:grid;grid-template-columns:1fr 1fr;min-height:100dvh}.auth-story{background:var(--green);padding:45px 65px;display:flex;flex-direction:column;color:#f1efdf;position:relative;overflow:hidden}.auth-story .brand{padding:0}.auth-story .brand-mark{background:#f2efdf;color:var(--green)}.auth-story .brand-name{font-size:34px}.auth-story-content{margin:auto 0;max-width:460px;padding:60px 0;position:relative;z-index:1}.auth-story h1{font:clamp(40px,4.1vw,67px)/1.12 Georgia;letter-spacing:-1.8px;margin:22px 0}.auth-story h1 em{font-weight:400;color:#bbcba7}.auth-story-content>p{color:#a8bba6;font-size:13px;line-height:1.9;max-width:360px}.auth-story .eyebrow{color:#a8bd94}.auth-story-footer{font-size:10px;letter-spacing:.6px;color:#98ad91;display:flex;align-items:center;gap:7px}.auth-art{margin-top:45px;height:150px;position:relative}.auth-art .art-person{position:absolute;width:115px;height:52px;border:1px solid #78927766;border-radius:7px;background:#2a483d;display:flex;align-items:center;gap:9px;padding:10px;font-size:10px;color:#c7d3bd}.art-person .avatar{height:27px;width:27px;color:#c1cfad;background:#4f6852;font-size:10px}.auth-art:before{content:'';position:absolute;top:52px;left:56px;width:255px;height:45px;border:1px solid #69816488;border-top:none;border-radius:0 0 8px 8px}.auth-story:after{content:'';position:absolute;width:600px;height:600px;right:-350px;bottom:-250px;border:1px solid #718c6b30;border-radius:50%;box-shadow:0 0 0 60px #718c6b0c,0 0 0 120px #718c6b08}.auth-form-side{display:flex;align-items:center;justify-content:center;padding:40px;background:#fafaf6}.auth-form{max-width:350px;width:100%}.auth-form h2{font:35px Georgia;letter-spacing:-.8px;margin-bottom:12px}.auth-form>p{font-size:12px;color:var(--muted);line-height:1.8;margin-bottom:30px}.auth-form .form-field{margin-bottom:20px}.auth-form button.primary{width:100%;margin-top:5px;padding:13px}.auth-footnote{margin-top:27px!important;font-size:10px!important;text-align:center;line-height:1.9!important;color:#979f8e!important}.auth-form .notice{font-size:10px}.auth-form label{font-size:11px}#toasts{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);z-index:100;display:grid;gap:10px;max-width:calc(100vw - 30px);pointer-events:none}.toast{background:var(--green);color:white;border:1px solid #56714c;border-radius:9px;padding:13px 20px;box-shadow:0 5px 25px #16332826;font-size:12px;line-height:1.7;animation:toast-in .2s ease}.toast.error{background:#873f37;border-color:#a7544b}@keyframes toast-in{from{transform:translateY(10px);opacity:0}to{transform:translateY(0);opacity:1}}.mobile-backdrop{display:none}.split-label{display:flex;justify-content:space-between;align-items:center}.section-label{margin:22px 0 12px}.export-options{display:grid;gap:9px}.export-option{display:flex;align-items:center;gap:12px;padding:13px;border:1px solid var(--line);border-radius:8px;cursor:pointer}.export-option:has(input:checked){border-color:#819775;background:#f5f8f0}.export-option input{width:16px;accent-color:var(--green)}.export-option strong{display:block;font-size:12px;font-weight:550}.export-option small{font-size:10px;font-weight:400;display:block;line-height:1.7;margin-top:3px}.connection-row{padding:10px 0;border-bottom:1px solid var(--line);font-size:11px;display:flex;align-items:center;gap:10px}.connection-row button{margin-left:auto}.file-note{font-size:10px;line-height:1.9;color:#929b88;margin-top:12px}.people-search{margin-top:20px}.result-count{font-size:11px;color:var(--muted);margin-top:15px}.mobile-only{display:none}
@media(min-width:1600px){.page-heading{padding-top:38px;padding-bottom:28px}.tree-toolbar{padding-top:25px}}
@media(max-width:1100px){.app-shell{grid-template-columns:195px 1fr}.sidebar{padding-left:13px;padding-right:13px}.topbar,.page-heading{padding-left:25px;padding-right:25px}.tree-subnav{margin:0 25px}.tree-toolbar{padding-left:25px;padding-right:25px}.page-heading h1{font-size:27px}.page-heading{gap:12px}.page-heading .actions{gap:6px}.page-heading button{padding:8px 10px}.tree-summary{display:none}.auth-story{padding:40px}.scroll-content{padding-left:25px;padding-right:25px}.tree-footer{padding:0 25px}.profile-panel{right:15px;width:285px}}
@media(max-width:760px){.app-shell{display:block}.sidebar{position:fixed;left:0;top:0;bottom:0;width:235px;transform:translateX(-100%);transition:transform .2s;box-shadow:20px 0 70px #14302520}.app-shell.menu-open .sidebar{transform:translateX(0)}.app-shell.menu-open .mobile-backdrop{display:block;position:fixed;inset:0;background:#132a2555;z-index:15}.mobile-menu{display:inline-flex!important}.topbar{height:58px;padding:0 16px;gap:10px}.breadcrumbs{gap:8px;font-size:10px}.breadcrumbs>span,.breadcrumbs>.icon{display:none}.topbar-right{gap:3px}.private-label{font-size:9px}.topbar-right>.icon-button{display:none}.page-heading{padding:23px 18px 17px;align-items:flex-start;flex-wrap:wrap;gap:17px}.page-heading h1{font-size:28px}.page-heading p{font-size:10px;max-width:270px}.page-heading .actions{gap:7px;width:100%}.page-heading button{font-size:10px;padding:9px 11px}.page-heading .actions .primary{margin-left:auto}.tree-subnav{margin:0 18px}.tabs{gap:23px}.tab{font-size:10px;padding:12px 0}.tree-toolbar{padding:14px 18px 0;gap:8px}.search{max-width:220px}.tree-toolbar .toolbar-right button span{display:none}.tree-toolbar .toolbar-right button{padding:9px}.tree-toolbar .toolbar-right{gap:3px}.tree-overlay-note{left:18px;bottom:17px;font-size:8px;max-width:120px;line-height:1.7}.tree-controls{right:15px;bottom:18px}.tree-footer{padding:0 18px;font-size:8px;height:32px}.tree-footer>span:last-child{display:none}.scroll-content{padding:0 18px 25px}.welcome-banner{padding:20px;margin-bottom:20px}.welcome-banner h2{font-size:23px}.welcome-banner p{font-size:11px}.welcome-banner .banner-art{display:none}.projects-grid{grid-template-columns:1fr}.project-art{height:95px}.project-body p{min-height:0}.profile-panel{position:absolute;top:auto;bottom:65px;left:12px;right:12px;width:auto;max-height:58%;border-radius:12px;box-shadow:0 0 0 1000px #142d2514}.profile-top{padding:10px 15px 15px}.profile-top .avatar{width:47px;height:47px;font-size:19px;margin:0 auto 8px}.profile-top h2{font-size:23px}.profile-body{padding:16px 20px}.detail-row{margin-bottom:14px}.auth-layout{grid-template-columns:1fr}.auth-story{padding:25px 28px 30px;min-height:unset}.auth-story-content{padding:32px 0 0;max-width:none}.auth-story h1{font-size:38px;margin:12px 0}.auth-story-content>p{font-size:11px;max-width:310px}.auth-story .eyebrow{font-size:8px}.auth-art,.auth-story-footer{display:none}.auth-form-side{padding:35px 25px}.auth-form{max-width:390px}.auth-form h2{font-size:29px}.auth-form>p{margin-bottom:23px;font-size:11px}.auth-form .form-field{margin-bottom:16px}.modal-header{padding:18px 20px}.modal-header h2{font-size:23px}.modal-body{padding:20px}.modal-footer{padding:15px 20px}.form-grid{gap:14px 12px}.form-grid label{font-size:11px}.form-grid input,.form-grid select{font-size:12px;padding:10px}.help-grid{grid-template-columns:1fr}.mobile-only{display:initial}.hide-mobile{display:none!important}td,th{padding:12px}.person-card{box-shadow:0 3px 8px #2c422611}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.tree-view-status{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:11px 35px 8px;flex-shrink:0;min-height:40px;color:#7b8674;font-size:10px}.tree-view-description{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;min-width:0}.tree-view-description strong{font-weight:600;color:var(--green)}.tree-view-description>span{overflow-wrap:anywhere}.tree-view-description>span+span:before{content:'·';margin-right:10px;color:#aeb8a4}.tree-view-status>.row{flex-shrink:0;gap:6px}.tree-view-status button{font-size:9px;padding:6px 8px;white-space:nowrap}.tree-connectors{position:absolute;inset:0;width:100%;height:100%;overflow:hidden;pointer-events:none}.person-node{position:absolute;width:182px;height:88px;touch-action:none}.person-node>.person-card{left:0;top:0}.person-card.reference-person{border-color:#b39b63;box-shadow:0 0 0 2px #c8b1782b,0 3px 9px #2c422611}.person-card.reference-person.selected{border-color:#6e8960;box-shadow:0 0 0 2px #c8b17866,0 3px 9px #2c422611}.branch-control{position:absolute;left:50%;transform:translateX(-50%);height:20px;min-width:32px;border-radius:12px;padding:1px 6px;font-size:9px;line-height:1;color:#657b56;border:1px solid #d8e1ce;box-shadow:0 2px 4px #203f2910;z-index:1;background:#fdfefb;touch-action:none}.branch-control.ancestors{top:-18px}.branch-control.descendants{bottom:-18px}.branch-control[aria-expanded=false]{background:#e7eedf;border-color:#9caf8d;color:#3c5c32;font-weight:700}.branch-control:hover{background:#e7eedf}.branch-control:focus-visible{outline-offset:2px}.profile-navigation{border-bottom:1px solid var(--line);margin-bottom:19px;padding-bottom:15px}.profile-navigation>.focus-person-action{width:100%;font-size:11px;padding:10px}.profile-navigation>p{font-size:9px;line-height:1.7;color:#8b9581;margin-top:9px}.profile-branch-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:11px}.profile-branch-actions button{font-size:9px;padding:6px 8px}.profile-branch-actions button .icon{width:12px;height:12px}
@media(max-width:1100px){.tree-view-status{padding-left:25px;padding-right:25px}}
@media(max-width:760px){.tree-view-status{padding:10px 18px 5px;font-size:9px;gap:8px;align-items:flex-start}.tree-view-description{gap:5px 9px}.tree-view-description>span+span:before{margin-right:7px}.tree-view-status>.row{flex-direction:column;align-items:stretch;gap:4px}.tree-view-status button{padding:5px 7px;font-size:9px}.profile-navigation{margin-bottom:14px;padding-bottom:13px}.profile-navigation>.focus-person-action{font-size:11px}.profile-branch-actions button{font-size:9px}.tree-toolbar .toolbar-right button[data-action=view-options]{min-width:34px}}
.tree-overview-person{pointer-events:all;cursor:pointer}.tree-overview-person:focus-visible{outline:5px solid #b69c62}
.tree-world{pointer-events:none}.person-node,.tree-world .empty-state{pointer-events:auto}
.branch-control{width:22px;height:22px;min-width:22px;max-width:22px;padding:0;border-radius:50%;font-size:12px;flex-shrink:0}.branch-control span{line-height:1}.relative-row{display:flex;align-items:center;gap:3px}.relative-row>.relative{flex:1;min-width:0}.relative-row>.relative .grow{overflow-wrap:anywhere}.relative-row>.remove-connection{width:28px;height:28px;padding:5px;flex-shrink:0;color:#a26c60}.relative-row>.remove-connection .icon{width:14px;height:14px}.relation-picker-actions{display:flex;justify-content:flex-end;margin-top:8px}.new-relative-fields{border:1px solid #dde5d5;border-radius:9px;padding:17px;margin:15px 0;background:#fafbf7;min-width:0}.new-relative-fields legend{padding:0 7px;font:19px Georgia,serif;color:var(--green)}.new-relative-fields textarea{min-height:75px}.new-relative-fields .form-hint{margin-top:13px}
.table-sort{border:0;padding:0;background:transparent;border-radius:2px;font:inherit;letter-spacing:inherit;text-transform:inherit;color:inherit;justify-content:flex-start;text-align:left;white-space:nowrap}.table-sort:hover{background:transparent;color:var(--green)}th[aria-sort=ascending],th[aria-sort=descending]{color:var(--green)}.table-sort>span>span{margin-left:6px;color:#8a9b7e}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.member-permission{width:75px;padding:6px;font-size:11px}.member-item>.grow{min-width:120px}.member-item p{overflow-wrap:anywhere}.member-item .small{margin-left:0}
.settings-panel{max-width:760px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:25px;margin:5px 0 25px}.settings-panel>.checkbox-label{margin-top:0}.settings-panel .form-grid{margin:20px 0}.settings-panel .full>.form-field{margin-bottom:6px}.settings-panel #email-test-result{font-size:12px;line-height:1.8;margin-top:15px;color:var(--green)}.button-link{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);border-radius:8px;padding:10px 15px;background:white;color:var(--ink);font-size:12px;font-weight:550;text-decoration:none}.button-link:hover{background:#f1f3ed}#invitation-message{font-size:11px;line-height:1.7;min-height:220px}#invite-result{margin-top:18px}
@media(max-width:760px){.settings-panel{padding:18px}.settings-panel .row>button{width:100%;font-size:11px}.button-link{font-size:11px;padding:10px}.settings-panel label{font-size:11px}}
.selection-cell{width:46px;text-align:center}.selection-cell label{display:inline-flex;align-items:center;justify-content:center;margin:0;padding:5px;cursor:pointer}.selection-cell input{margin:0;cursor:pointer}.copy-selection-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px;color:var(--muted);margin-top:12px;min-height:30px}.copy-selection-summary button{font-size:10px;flex-shrink:0}
dialog{overflow:hidden}dialog[open]>form{display:flex;flex-direction:column;min-height:0;max-height:calc(100dvh - 37px)}.modal-header,.modal-footer{flex-shrink:0}.modal-body{min-height:0;overflow-y:auto;overscroll-behavior:contain}.tree-toolbar [data-action=copy-members]:disabled,#email-settings-form button:disabled{cursor:not-allowed}
html,body{max-width:100%;overflow-x:hidden}.main,.scroll-content,.tree-toolbar,.page-heading,.topbar{min-width:0;max-width:100%}.page-heading>div{min-width:0;max-width:100%}.page-heading h1{min-width:0;overflow-wrap:anywhere}
.app-shell{width:100vw;max-width:100vw}.main{width:100%}
dialog[open]{position:fixed;inset:auto;left:50vw;top:50dvh;transform:translate(-50%,-50%);margin:0}
.profile-top .avatar[role=button]{cursor:pointer}.profile-top .avatar[role=button]:focus-visible{outline:3px solid #b69c62;outline-offset:4px}.photo-gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(65px,1fr));gap:9px;margin-bottom:18px}.gallery-thumb{padding:3px;display:block;position:relative;height:77px;border-radius:9px}.gallery-thumb img{width:100%;height:100%;object-fit:cover;border-radius:6px}.gallery-thumb.active{border:2px solid #5f8051;background:#edf4e7}.gallery-thumb>span{position:absolute;bottom:4px;left:4px;right:4px;background:#233f35df;color:white;font-size:8px;border-radius:3px;padding:2px}.photo-crop-stage{width:300px;max-width:100%;aspect-ratio:1;margin:0 auto 14px;background:#e8eee4;border-radius:8px;overflow:hidden}#photo-crop-canvas{width:100%;height:auto;display:block;cursor:move;touch-action:none}#photo-crop-zoom{padding:0;accent-color:var(--green)}#photo-crop-zoom-value{font-size:11px;min-width:42px}.gallery-full-image{display:block;max-width:100%;max-height:420px;margin:0 auto 18px;object-fit:contain}.empty-gallery{grid-column:1/-1;text-align:center;padding:15px}.empty-gallery .avatar{width:70px;height:70px;font:25px Georgia;margin:0 auto 12px}.empty-gallery p{font-size:12px;color:var(--muted)}#gallery-upload{margin:12px 0;font-size:11px}.modal-footer{flex-wrap:wrap}
.tree-toolbar{position:relative;z-index:8}.selection-tools{position:relative;flex-shrink:0}.selection-menu{position:absolute;right:0;top:calc(100% + 8px);width:250px;max-width:calc(100vw - 36px);padding:10px;background:white;border:1px solid var(--line);border-radius:10px;box-shadow:0 8px 28px #17362a22;display:grid;gap:5px}.selection-menu[hidden]{display:none}.selection-menu>p{font-size:11px;color:var(--green);padding:6px 8px;font-weight:600}.tree-toolbar .selection-menu button{justify-content:flex-start;font-size:11px;padding:10px;text-align:left;min-height:36px}.tree-toolbar .selection-menu button span{display:inline}.selection-menu button[aria-pressed=true]{background:var(--sage);border-color:#a7b89b}.selection-menu>small{font-size:10px;line-height:1.7;padding:7px}.person-node.bulk-selected>.person-card{border-color:#4f7944;box-shadow:0 0 0 2px #6e965543,0 4px 12px #2c422612}.person-node.bulk-selected:after{content:'✓';position:absolute;top:-7px;left:-7px;width:19px;height:19px;display:grid;place-items:center;background:#446c3b;border:2px solid white;border-radius:50%;color:white;font-size:11px;pointer-events:none;z-index:2}.member-selection-count{color:#4f7944;font-weight:600}
.branch-control:disabled{cursor:default;opacity:.8}.selection-menu button:disabled{cursor:not-allowed}
.selection-menu{position:fixed;right:auto;overflow-y:auto}
.profile-navigation>.lineage-person-action{width:100%;margin-top:8px;font-size:11px;padding:10px}
.avatar[data-gender=M]{border:2px solid #6c91b7}.avatar[data-gender=F]{border:2px solid #c47e88}.avatar[data-gender=X],.avatar[data-gender=U]{border:2px solid #8b9687}.person-card-text{flex:1;min-width:0}.person-name-group{display:flex;align-items:center;gap:4px}.person-name-group>.person-name{flex:1;min-width:0;max-width:none}.gender-badge{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:14px;height:16px;font-family:"Segoe UI Symbol","Apple Symbols",sans-serif;font-size:13px;font-weight:600;line-height:1;vertical-align:middle}.gender-badge[data-gender=M]{color:#4d739c}.gender-badge[data-gender=F]{color:#a65867}.gender-badge[data-gender=X],.gender-badge[data-gender=U]{color:#707b6b;font-size:10px}.profile-name-row{display:flex;align-items:center;justify-content:center;gap:8px}.profile-name-row h2{min-width:0;overflow-wrap:anywhere}.profile-name-row .gender-badge{width:20px;height:22px;font-size:19px}.profile-name-row .gender-badge[data-gender=X],.profile-name-row .gender-badge[data-gender=U]{font-size:13px}
.app-version{padding:6px 26px;color:var(--muted);font-size:11px}
.settings-panel .file-note,.notice .form-hint{overflow-wrap:anywhere}
.tree-page{position:relative}.tree-page>.topbar{height:58px;position:relative;z-index:12}.tree-page>.tree-area{position:absolute;inset:58px 0 0;min-height:0}.tree-page>.page-heading,.tree-page>.tree-subnav,.tree-page>.tree-toolbar,.tree-page>.tree-view-status{position:relative;z-index:9;background:rgba(248,249,244,.76);background:color-mix(in srgb,var(--paper) 76%,transparent);backdrop-filter:blur(4px);pointer-events:none}.tree-page>.page-heading{padding:12px 24px 8px}.tree-page>.page-heading h1{font-size:25px}.tree-page>.tree-subnav{margin:0;padding:0 24px}.tree-page>.tree-toolbar{padding:8px 24px 0}.tree-page>.tree-view-status{padding:6px 24px;min-height:30px}.tree-page button,.tree-page input,.tree-page select,.tree-page a,.tree-page .selection-menu{pointer-events:auto}.tree-page>.tree-footer{position:absolute;bottom:0;left:0;right:0;height:24px;z-index:2;background:rgba(248,249,244,.7);pointer-events:none}.tree-tools-toggle,.tree-search-toggle{display:none}.tree-page .person-node,.tree-page .person-card{width:var(--tree-card-width,160px);height:var(--tree-card-height,76px)}.tree-page .person-card{gap:8px;padding:10px}.tree-page .person-card .avatar{width:36px;height:36px;font-size:13px}.tree-page .person-dates{margin-top:2px}.tree-page .profile-panel{width:min(400px,calc(100% - 32px));right:16px;bottom:35px;z-index:20}.tree-page .profile-body{padding:22px 25px}.tree-page .profile-top{padding-left:25px;padding-right:25px}.tree-page .profile-top h2{font-size:24px}.relation-person-search{margin:12px 0}.relation-person-search .form-hint{display:block;margin-top:6px}
@media(max-width:760px){.tree-page>.topbar{height:44px;padding:0 8px}.tree-page>.tree-area{top:44px}.tree-page>.page-heading{display:none}.tree-page.tree-tools-open>.page-heading{display:flex;position:absolute;top:108px;left:8px;right:8px;max-height:52dvh;overflow:auto;padding:14px;border:1px solid var(--line);border-radius:10px;background:rgba(248,249,244,.94);z-index:16;pointer-events:auto}.tree-page.tree-tools-open>.page-heading h1{font-size:21px}.tree-page>.tree-subnav{position:absolute;top:49px;left:8px;padding:0;border:0;gap:0;z-index:10;background:transparent;backdrop-filter:none}.tree-page .tree-summary{display:none}.tree-page .tabs{gap:2px}.tree-page .tab{width:31px;height:32px;padding:5px;min-width:0}.tree-page .tab span{display:none}.tree-page .tab .icon{width:16px;height:16px}.tree-page>.tree-toolbar{margin-left:76px;padding:5px 8px 4px 0;min-height:42px;gap:4px}.tree-page .toolbar-right{gap:3px}.tree-page .toolbar-right button{height:32px;min-width:31px;padding:6px}.tree-page .toolbar-right>[data-action=fit]{display:none}.tree-page .tree-tools-toggle,.tree-page .tree-search-toggle{display:inline-flex}.tree-page .tree-toolbar .search{width:33px;min-width:33px;padding:0;border:0;background:transparent;box-shadow:none}.tree-page .tree-toolbar .search>.icon,.tree-page .tree-toolbar .search>input{display:none}.tree-page .tree-search-toggle{width:32px;height:32px;padding:6px}.tree-page .search:has(input:not(:placeholder-shown)) .tree-search-toggle{color:var(--green);background:#e7eedf}.tree-page.tree-search-open .tree-toolbar .search{position:absolute;left:-68px;right:8px;top:4px;width:auto;padding:0 5px;border:1px solid var(--line);border-radius:8px;background:#fafbf7;z-index:15}.tree-page.tree-search-open .tree-toolbar .search>input{display:block;flex:1;min-width:0;width:100%;font-size:12px;padding:7px}.tree-page.tree-search-open .toolbar-right{visibility:hidden}.tree-page>.tree-view-status{padding:2px 8px 4px;min-height:22px;max-height:29px;font-size:9px;gap:4px;overflow:hidden}.tree-page .tree-view-description{flex-wrap:nowrap;white-space:nowrap;overflow:auto;scrollbar-width:none;gap:5px}.tree-page .tree-view-description>span+span:before{margin-right:4px}.tree-page .tree-view-status>.row{flex-direction:row}.tree-page .tree-view-status button{padding:3px 5px;font-size:8px}.tree-page>.tree-footer,.tree-page .tree-overlay-note{display:none}.tree-page .tree-controls{right:8px;bottom:8px;padding:2px;gap:1px;border-radius:7px;background:rgba(250,251,247,.88)}.tree-page .tree-controls button{width:27px;height:27px;padding:5px;background:transparent}.tree-page .zoom-value{min-width:30px;font-size:9px}.tree-page .profile-panel{top:auto!important;left:8px;right:8px;bottom:44px;width:auto;max-height:78%;border-radius:12px}.tree-page .profile-top .avatar{width:56px;height:56px;font-size:22px}.tree-page .profile-body{padding:18px 22px}.tree-page .profile-top h2{font-size:23px}}
.tree-page>.tree-toolbar{backdrop-filter:none}
.tree-page>.tree-area{background-color:var(--paper)}.tree-page .person-card .avatar{width:43px;height:43px;font-size:15px}
.person-resources{max-height:38vh;overflow:auto;margin:12px 0}.person-resources .grow{min-width:0;overflow-wrap:anywhere}.resource-meta{display:block;color:var(--muted);overflow-wrap:anywhere}.profile-actions{flex-wrap:wrap}
.topbar-right .account{border-top:0;padding:0;max-width:240px;min-width:0}.topbar-right .account button{margin-left:0;margin-right:2px}.topbar-right .account .grow{text-align:right}.topbar-right .account .grow{max-width:155px}.profile-navigation>.profile-tree-links-action{width:100%;margin-top:8px;font-size:11px;padding:10px}@media(max-width:760px){.topbar-right>.private-label{display:none}.topbar-right .account{padding:0;gap:7px;max-width:160px}.topbar-right .account .avatar{width:30px;height:30px;flex-shrink:0}.topbar-right .account .grow{max-width:82px}.topbar-right .account-name{font-size:10px}.topbar-right .account-role{font-size:9px;margin-top:1px}.topbar-right .account button{width:32px;height:36px;flex-shrink:0}}

/* Header: the Private workspace → Help → Settings controls are direct peers,
   with uniform button boxes and a uniform horizontal gap. */
.topbar-right{gap:16px}
.topbar-right>button[data-action="help"],.topbar-right>button[data-action="account"]{
  display:inline-flex;align-items:center;justify-content:center;
  box-sizing:border-box;width:32px;height:36px;padding:6px;margin:0;
  flex-shrink:0;
}
.topbar-right>.account{gap:10px}
.home-pin-badge{display:inline-flex;align-items:center;gap:5px;font-size:10px;font-weight:650;
  color:#57724a;background:#edf3e8;border:1px solid #c4d5b9;border-radius:20px;
  padding:3px 8px;white-space:nowrap}
.home-pin-badge .icon{width:12px;height:12px}
.profile-navigation>.home-pin-action{display:inline-flex;justify-content:center;gap:8px;
  width:100%;margin:7px 0 0;padding:9px 12px;font-size:11px}
.profile-navigation>.home-pin-current{color:#526c46;border-color:#8da880;background:#eff5ec}
#account-photo-crop-canvas{width:100%;height:auto;display:block;cursor:move;touch-action:none}
#account-photo-zoom{padding:0;accent-color:var(--green)}
#account-photo-zoom-value{font-size:11px;min-width:42px}
@media(max-width:760px){
  .topbar-right{gap:7px}
  .topbar-right>button[data-action="account"]{
    display:inline-flex!important;width:32px;height:36px;padding:6px;margin:0
  }
  .topbar-right>button[data-action="help"]{display:none}
  .topbar-right>.account{gap:7px}
}

/* Backup row pin and compact header refinement (unreleased). */
.backup-row-actions{display:flex;align-items:center;justify-content:flex-start;flex-wrap:nowrap;gap:6px;white-space:nowrap}
.backup-row-actions .button-link,.backup-row-actions button{display:inline-flex;align-items:center;justify-content:center;height:34px;min-height:34px;box-sizing:border-box;margin:0;padding:6px 10px;white-space:nowrap;font-size:11px;line-height:1.2;border-radius:8px}
.backup-row-actions .backup-pin{min-width:58px}
.backup-row-actions .backup-pin.is-pinned{background:var(--green);border-color:var(--green);color:#fff;font-weight:700}
.backup-row-actions .backup-pin.is-pinned:hover{background:var(--green-dark);border-color:var(--green-dark);color:#fff}
.backup-row-actions .backup-pin.is-pinned:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
/* Group utility controls closely; keep a distinct separation from identity. */
.topbar-right{gap:6px}
.topbar-right>button[data-action="desktop-download"]{width:32px;height:36px;padding:6px;margin:0}
.topbar-right>.account{margin-left:22px;gap:12px}
.activity-tree-picker{max-width:420px;margin-bottom:18px}
@media(max-width:760px){
  .topbar-right{gap:5px}
  .topbar-right>.account{margin-left:13px;gap:10px}
  /* Keep Fit between Tree view and Options on narrow screens as well. */
  .tree-page .toolbar-right{gap:2px}
  .tree-page .toolbar-right button{min-width:28px;padding:5px}
  .tree-page .toolbar-right>[data-action=fit]{display:inline-flex}
}
.account-photo-summary>.avatar{width:56px;height:56px;flex:0 0 56px;font-size:20px}.account-photo-summary>.avatar img{width:100%;height:100%;object-fit:cover}

/* Activity log filters stay compact on desktop, wrap on narrow screens. */
.activity-filters{display:grid;grid-template-columns:minmax(120px,1.5fr) minmax(90px,.7fr) minmax(120px,1.3fr) minmax(125px,1fr) minmax(125px,1fr) auto;gap:10px;align-items:end;margin:0 0 18px;padding:14px;background:#f4f6f0;border:1px solid var(--line);border-radius:10px}
.activity-filters .form-field{min-width:0;margin:0}
.activity-filters label{font-size:10px}
.activity-filters input,.activity-filters select{font-size:11px;height:36px;min-height:36px;padding:8px}
.activity-filter-actions{display:flex;gap:6px;align-items:center;margin-bottom:0}
.activity-filter-actions button{height:36px;white-space:nowrap;font-size:10px}
@media(max-width:1100px){.activity-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.activity-filter-actions{grid-column:1/-1}}
@media(max-width:500px){.activity-filters{grid-template-columns:1fr}.activity-filter-actions{grid-column:1}}

/* Tree-level backups are optional, in addition to Admin full-installation copies. */
.project-actions{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin-top:12px}
.project-actions>button{min-height:36px}
.project-actions>[data-action="tree-backups"]{border:1px solid var(--line);background:transparent}
.project-actions>[data-action="tree-backups"]:hover{background:#edf3e8}
.activity-filters .activity-filter-actions{display:flex;align-self:end;align-items:center;
  flex-wrap:nowrap;justify-content:flex-start;gap:8px;min-height:36px;padding:0;margin:0}
.activity-filters .activity-filter-actions>button{display:inline-flex;box-sizing:border-box;
  align-items:center;justify-content:center;height:36px;min-height:36px;
  margin:0;padding:7px 11px;line-height:1.1;white-space:nowrap;vertical-align:middle}
.activity-filters .activity-filter-actions .icon{width:14px;height:14px;flex-shrink:0}
@media(max-width:550px){
  .project-actions{width:100%}
  .project-actions>button{flex:1;justify-content:center}
  .activity-filters .activity-filter-actions{width:100%}
}

/* Top-layer selection controls must not be clipped/covered by cream toolbars. */
.tree-page>.tree-toolbar{backdrop-filter:none}
.selection-menu[popover]{margin:0;inset:auto;z-index:100;max-width:calc(100vw - 24px)}

/* v0.9.0: preserve the compact People table row height. */
.person-table-actions{white-space:nowrap;min-width:190px}
.person-table-actions>button{display:inline-flex;vertical-align:middle;align-items:center;margin:0 3px 0 0;padding:6px 8px;min-height:29px;line-height:1}
.person-table-actions .icon{width:13px;height:13px}
.branch-section-heading{font:600 17px Georgia,serif;color:var(--green);margin:19px 0 10px}
.people-branch-section{margin-bottom:21px}
.branches-page,.birthplace-page{padding:18px 0;max-width:1100px}
.branches-page .row{gap:14px;margin:0 0 14px}
.branches-page h2,.birthplace-page h2{margin-bottom:8px}
.branches-page td,.branches-page th{vertical-align:middle}
.branch-membership-options{display:flex;flex-direction:column;gap:3px;max-height:50vh;overflow:auto;margin:10px 0}
.branch-membership-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;padding:10px;border-bottom:1px solid var(--line);font-size:12px}
.branch-membership-row[hidden]{display:none}
.branch-membership-row input{accent-color:var(--green)}
.branch-membership-row small{font-size:10px;color:var(--muted)}
.birthplace-world{display:block;width:100%;max-width:1000px;height:auto;border:1px solid var(--line);border-radius:12px;background:#eef4ee;margin:14px 0 22px}
.birthplace-page h3{margin:20px 0 10px;color:var(--green);font-size:15px}
.place-item{display:flex;align-items:center;gap:10px;margin:4px 0;padding:7px 0;border-bottom:1px solid var(--line);font-size:12px;flex-wrap:wrap}
.place-item button{margin-left:auto}
@media(max-width:760px){.person-table-actions{min-width:150px}.person-table-actions>button{font-size:9px;padding:5px;gap:3px}.branch-section-heading{font-size:15px;margin-top:15px}.branches-page,.birthplace-page{padding:10px 0}}

/* Keep all four tree tabs accessible on narrow screens without covering search. */
@media(max-width:760px){.tree-page>.tree-toolbar{margin-left:143px}.tree-page.tree-search-open .tree-toolbar .search{left:-135px}}

/* Collapsed branch summaries leave existing genealogy nodes and connections intact. */
.hidden-branch-cards{display:flex;gap:5px;align-items:center;max-width:47vw;overflow-x:auto;flex-shrink:0;scrollbar-width:thin}
.hidden-branch-card{white-space:nowrap;flex-shrink:0;font-size:9px;padding:5px 8px;border:1px solid var(--line);background:#edf3e8;color:var(--green)}
@media(max-width:760px){.hidden-branch-cards{max-width:42vw}.hidden-branch-card{font-size:8px;padding:3px 5px}}

/* People: compact rows, independent horizontal scrolling, actions stay reachable. */
#people-content{min-height:0;min-width:0;width:100%;max-width:100%;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain}
#people-content .people-branch-section{min-width:0;max-width:100%}
#people-content .people-branch-section .table-wrap{display:block;width:100%;max-width:100%;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y;scrollbar-width:thin;scrollbar-color:#8d9c82 #edf1e9}
#people-content .people-branch-section .table-wrap::-webkit-scrollbar{height:10px}
#people-content .people-branch-section .table-wrap::-webkit-scrollbar-thumb{background:#8d9c82;border-radius:8px}
#people-content .people-branch-section table{width:max-content;min-width:100%;table-layout:auto}
#people-content .people-branch-section th,#people-content .people-branch-section td{white-space:nowrap}
#people-content .people-branch-section td:nth-child(2) strong{display:block;max-width:230px;overflow:hidden;text-overflow:ellipsis}
#people-content .people-branch-section td:nth-child(4){max-width:260px;overflow:hidden;text-overflow:ellipsis}
#people-content .people-branch-section thead th:last-child{position:sticky;right:0;background:#fafbf7;z-index:2;box-shadow:-6px 0 10px -10px #334c40}
#people-content .people-branch-section td.person-table-actions{position:sticky;right:0;z-index:1;background:#fff;box-shadow:-6px 0 10px -10px #334c40}
#people-content .people-branch-section tr:hover td.person-table-actions{background:#f8faf5}
.people-scroll-hint{display:none}
@media(max-width:760px){
  #people-content .people-branch-section td,#people-content .people-branch-section th{padding:9px 10px}
  #people-content .people-branch-section td.person-table-actions{padding:5px 7px;min-width:0}
  #people-content .people-branch-section td:nth-child(2) strong{max-width:160px}
  .people-scroll-hint{display:block;color:var(--muted);font-size:11px;margin:8px 0 0}
}

/* Real Google Maps tiles are loaded only after the user opts in. */
.tree-page>#people-content{position:absolute;inset:58px 0 0;padding:0 24px 32px;background:var(--paper)}
.tree-page .branches-page,.tree-page .birthplace-page{max-width:none;padding-top:0}
.tree-page>.tree-toolbar{min-height:42px}
.tree-page.tree-search-open>.tree-toolbar{z-index:11}
.offline-birthplace-map{display:block;width:100%;height:100%;background:#e6eff1}
.offline-birthplace-map circle{fill:#365c43;stroke:#fff;stroke-width:1.5;vector-effect:non-scaling-stroke}
.map-source{margin:8px 0 15px;color:var(--muted);font-size:11px}
.google-map-options{margin:15px 0}
.google-map-options>summary{cursor:pointer;color:var(--green);font-weight:600;padding:10px 0}
.birthplace-page button[hidden]{display:none}
@media(max-width:760px){.tree-page>#people-content{top:44px;padding-left:12px;padding-right:12px}}
@media(max-width:760px){.google-birthplaces-map:has(>.offline-birthplace-map){height:auto;min-height:0;aspect-ratio:2/1}}
/* Four tabs plus all tree actions need two rows on very narrow phones. */
@media(max-width:380px){
  .tree-page>.tree-toolbar{margin-left:0;padding:43px 8px 4px;min-height:80px}
  .tree-page.tree-search-open .tree-toolbar .search{left:8px;top:43px}
  .tree-page.tree-tools-open>.page-heading{top:132px}
}
.google-maps-setup{display:grid;grid-template-columns:minmax(0,1fr);gap:9px;max-width:640px;margin:15px 0}
.google-maps-setup>label{margin:0}
.google-maps-setup>input{width:100%;max-width:480px}
.google-maps-setup>.row{gap:8px}
.google-maps-privacy{max-width:780px;line-height:1.7}
.google-birthplaces-map{width:100%;height:clamp(320px,58vh,620px);min-height:320px;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#e6ebe5;margin:15px 0 10px}
.google-birthplaces-map .map-placeholder{display:flex;align-items:center;justify-content:center;text-align:center;height:100%;padding:22px;line-height:1.8;font-size:13px;color:var(--muted)}
.google-map-status{line-height:1.7;margin:8px 0 12px}
.birthplace-page .place-item strong{min-width:0;max-width:min(75%,440px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:760px){.google-birthplaces-map{height:min(56vh,480px);min-height:290px}.google-maps-setup>.row{flex-wrap:wrap}.google-maps-setup>.row button{font-size:11px}}

/* Third-party map runs only in the authenticated opt-in iframe. */
.place-review{margin-top:16px;border-top:1px solid var(--line);padding-top:15px}
.place-review fieldset{margin-top:14px;border:1px solid var(--line);border-radius:8px;padding:14px;min-width:0}
.map-zoom-controls{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.map-zoom-controls button{min-height:36px}
.location-cluster[role=button]{cursor:pointer}.location-cluster:focus-visible{outline:3px solid #b69c62}.location-member-list .location-place-list{max-height:220px;overflow:auto;margin:8px 0;border:1px solid var(--line);border-radius:8px}.location-member-list .location-place-entry{padding:9px 11px;font-size:12px;line-height:1.5;overflow-wrap:anywhere}.location-member-list .location-place-entry+.location-place-entry{border-top:1px solid var(--line)}.location-member-list{max-width:100%;overflow-wrap:anywhere}.location-member-list ul{padding-left:20px;max-height:40vh;overflow:auto}.location-member-list li{margin:6px 0}.location-member-list button{font-size:12px;padding:8px}
.import-mapping{margin-top:16px}.import-mapping pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f1f4ed;padding:12px;border-radius:8px;font-size:12px}.import-mapping button[hidden]{display:none}.import-mapping input[type=number]{min-width:65px}.import-mapping td{padding:6px}
.tree-page>.map-toolbar{align-items:flex-start;gap:8px}
.map-toolbar>.map-zoom-controls{flex:1;min-width:0}
@media(max-width:760px){
  .tree-page>.map-toolbar{margin-left:0;padding:43px 8px 6px;min-height:80px}
  .map-toolbar>.map-zoom-controls{gap:5px}
  .map-toolbar>.map-zoom-controls button{padding:7px;font-size:11px;min-height:36px}
}
.map-layer-button>span{display:inline-flex;align-items:center;gap:7px}
.map-layer-dot{width:10px;height:10px;border-radius:50%;flex:none}
.map-layer-button[aria-pressed="true"]{background:#e2ebdd;border-color:transparent;color:var(--green);box-shadow:none}
.map-layer-button[aria-pressed="false"]{background:#fff;border-color:transparent;color:var(--muted);box-shadow:none}
.branches-page button{height:36px;white-space:nowrap}
.branch-row-actions{display:flex;align-items:center;gap:8px}
.branch-row-actions>button{min-width:96px;justify-content:center}
.branch-new-member{margin-top:14px}
.branch-new-member fieldset{margin-bottom:0}
.branch-add-picker{margin-top:14px;padding:14px;border-radius:9px;background:#f3f6ef}
.branch-add-picker .branch-membership-options{max-height:28vh}
#modal [data-action="branch-show-more"][hidden],#modal [data-action="branch-add-more"][hidden],#modal [data-action="branch-create-more"][hidden]{display:none}
.branches-page tr[data-unassigned-branch]{background:#f3f6ef;border-top:2px solid var(--line)}
.language-control{display:grid;gap:6px;font-size:11px;margin:14px 0;color:var(--green)}
.language-control select{font-size:12px;padding:7px;max-width:220px}
.sidebar>.language-control{flex-shrink:0}
.auth-form>.language-control{margin:0 0 20px}
html[dir=rtl] .app-shell,html[dir=rtl] .auth-layout{direction:ltr}
html[dir=rtl] .sidebar,html[dir=rtl] .auth-form,html[dir=rtl] .modal-header,html[dir=rtl] .modal-body{direction:rtl;text-align:right}
html[dir=rtl] .language-control{direction:rtl;text-align:right}
.map-layer-controls .checkbox-label{display:flex;gap:8px;align-items:center;margin:0}
.map-zoom-controls{margin:12px 0}
.tree-page .map-toolbar .map-zoom-controls{margin:6px 0}
.offline-birthplace-map{touch-action:none;cursor:grab}
.map-offline-controls{align-items:center;margin:10px 0;gap:12px}
.map-offline-style-control{display:flex;gap:10px;align-items:center;margin:0;flex-wrap:wrap;font-size:12px;min-width:0}
.map-offline-style-control[hidden]{display:none!important}
.map-offline-style-control select{width:auto;max-width:min(100%,260px);font-size:12px;min-height:36px;padding:7px 30px 7px 11px;background:#fff}
.offline-map-labels{user-select:none;pointer-events:none;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.offline-map-label{paint-order:stroke;stroke:#f5f8ef;stroke-linejoin:round;font-weight:560}
.offline-map-label.country{fill:#435b4b;font-weight:650}
.offline-map-label.city{fill:#526862;font-weight:500}
@media(max-width:560px){.map-offline-style-control{flex:1 1 100%}.map-offline-style-control select{max-width:100%}}
.location-cluster text{pointer-events:none;font-weight:650;user-select:none}
.location-map{position:relative;width:100%;height:clamp(140px,calc(100dvh - 240px),820px);min-height:140px;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#e6ebe5;margin:3px 0 8px;z-index:0}
.location-map .leaflet-control-attribution{font-size:10px;background:#fffe;max-width:100%;white-space:normal}
.osm-location-marker{background:none;border:none}
.osm-location-marker>span{display:flex;align-items:center;justify-content:center;background:#365c43ed;border:2px solid white;box-shadow:0 1px 5px #183c3755;border-radius:50%;color:white;font-size:12px;font-weight:700}
.osm-location-marker[aria-label*="double-click"]{cursor:zoom-in}

/* Online and offline maps share a taller, viewport-relative area on phones.
   The SVG scales within it; do not shrink the map to a fixed 2:1 panel. */
#google-birthplace-frame{display:block;width:100%;height:100%;border:0;background:#e6ebe5}

/* A closed mobile sidebar must never capture clicks while its 200ms slide-out
   transition is still running (including immediately after responsive resize).
   Restore hit testing only when the user explicitly opens the navigation. */
@media(max-width:760px){
  .app-shell:not(.menu-open)>.sidebar{pointer-events:none}
  .app-shell.menu-open>.sidebar{pointer-events:auto}
}

/* Five parts of one private living address. Only Street spans both
   columns; Building/Postal code and Town/Country share paired rows. */
.living-address-block{min-width:0}
.living-address-heading{font-size:12px;font-weight:650;margin:0 0 12px;color:var(--ink)}
.living-address-block>.form-grid{gap:12px 15px}
.living-address-block>.form-grid .form-field{min-width:0}
.living-address-block>.form-grid input::placeholder{color:#8b9186;opacity:1}
.living-address-block [data-address-part="building"]::placeholder{font-size:11px}
.living-address-block>[data-address-limit]{margin:10px 0 0}
.public-place-card [data-private-original]{white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:560px){.living-address-block>.form-grid{grid-template-columns:minmax(0,1fr)}}

/* Original person fields remain editable; a first-entry public-place suggestion
   stays adjacent to the place text without sending lookup requests while typing. */
.public-place-quick{margin:9px 0 2px;padding:11px 12px;border:1px solid var(--line);border-radius:9px;background:#f6f9f3;min-width:0}
.public-place-quick[hidden],.public-place-quick [hidden]{display:none!important}
.public-place-quick .public-place-quick-title{font-size:12px;font-weight:700;margin:0 0 5px}
.public-place-quick .file-note{font-size:11px;line-height:1.45;margin:5px 0 8px}
.public-place-quick label{display:block;max-width:100%;min-width:0;font-size:12px;margin:7px 0}
.public-place-quick input,.public-place-quick select{width:100%;max-width:100%;min-width:0;box-sizing:border-box}
.public-place-quick .row{gap:7px;margin:7px 0;align-items:center}
.public-place-quick button{min-height:34px}
@media(max-width:480px){.public-place-quick{padding:9px}.public-place-quick .row button{flex:1 1 auto}}
/* Advanced public locations are always available in the separate review dialog. */
.place-review-launch{margin:14px 0 2px;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:#f5f8f2}
.place-review-launch .file-note{margin:6px 0 0;line-height:1.55}
.location-review-dialog{width:min(680px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}
.location-review-dialog .modal-body{padding-bottom:16px}
.public-place-card{margin:12px 0;border:1px solid var(--line);border-radius:9px;background:white;overflow:hidden}
.public-place-card>summary{cursor:pointer;display:flex;justify-content:space-between;gap:10px;align-items:center;padding:13px;font-weight:650}
.public-place-card[open]>summary{border-bottom:1px solid var(--line);background:#f4f7f1}
.public-place-status{font-size:12px;font-weight:400;color:var(--muted);text-align:right;overflow-wrap:anywhere}
.public-place-card-body{padding:12px}
.public-place-card .form-grid{margin:10px 0}
.public-place-advanced{margin:12px 0;padding:10px;border:1px solid var(--line);border-radius:8px}
.public-place-advanced>summary{cursor:pointer;font-size:12px;font-weight:600;padding:5px}
.public-place-advanced label{display:block;margin:9px 0}
.public-place-advanced [data-public-lookup]{margin:6px 0}
.public-place-card [data-public-clear]{margin-top:8px}
@media(max-width:480px){.location-review-dialog .modal-header,.location-review-dialog .modal-body,.location-review-dialog .modal-footer{padding-left:15px;padding-right:15px}.public-place-card>summary{display:block}.public-place-status{display:block;text-align:left;margin-top:5px}}

/* New branches propose existing people without assigning them until Create. */
.branch-create-search-row [data-action="branch-create-select-all"][hidden],
.branch-create-search-row [data-action="branch-create-unselect-all"][hidden]{display:none}
.branch-create-search-row [data-action="branch-create-select-all"],
.branch-create-search-row [data-action="branch-create-unselect-all"]{white-space:nowrap}
.branch-create-suggestions{margin-top:15px;padding:12px;border:1px solid var(--line);border-radius:10px;min-width:0;background:#f7faf4}
.branch-create-suggestions>p{margin:3px 0 9px}
.branch-create-suggestions .branch-membership-options{max-height:36vh;margin:7px 0 10px}
.branch-create-suggestions .branch-membership-row{min-width:0;grid-template-columns:25px minmax(0,1fr) auto}
.branch-create-suggestions .branch-membership-row span{min-width:0;overflow-wrap:anywhere}
@media(max-width:480px){.branch-create-suggestions{padding:9px}.branch-create-suggestions .branch-membership-row{gap:7px}.branch-create-suggestions .branch-membership-row small{font-size:9px}}

/* Compact non-modal, map-contained circle details. The underlying map stays
   visible and unblurred; a long list scrolls inside the bounded panel. */
.location-map-circle-details{
  position:absolute;
  z-index:1400;
  top:12px;
  right:12px;
  width:min(370px,calc(100% - 24px));
  max-height:calc(100% - 24px);
  display:flex;
  flex-direction:column;
  min-height:0;
  min-width:0;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--paper);
  box-shadow:0 5px 20px #1d34352a;
  color:var(--ink);
  pointer-events:auto;
}
.location-map-circle-heading{
  display:flex;
  align-items:center;
  gap:10px;
  justify-content:space-between;
  flex:0 0 auto;
  min-width:0;
  padding:11px 13px;
  border-bottom:1px solid var(--line);
}
.location-map-circle-heading h3{
  margin:0;
  min-width:0;
  font-size:15px;
  line-height:1.35;
  overflow-wrap:anywhere;
}
.location-map-circle-close{
  flex:0 0 auto;
  width:32px;
  height:32px;
  padding:0;
  font-size:23px;
  line-height:1;
  border-radius:7px;
  border:1px solid var(--line);
  background:transparent;
  color:inherit;
}
.location-map-circle-close:focus-visible{outline:2px solid #b69c62;outline-offset:2px}
.location-map-circle-body{
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:12px 13px;
  font-size:12px;
}
.location-map-circle-body .location-member-list ul,
.location-map-circle-body .location-member-list .location-place-list{
  max-height:none;
  overflow:visible;
}
.location-map-circle-body .location-member-list>.row{flex-wrap:wrap}
.location-map-circle-body .location-member-list{min-width:0;overflow-wrap:anywhere}
@media(max-width:480px){
  .location-map-circle-details{top:8px;right:8px;width:calc(100% - 16px);max-height:calc(100% - 16px)}
  .location-map-circle-heading{padding:8px 10px}
  .location-map-circle-body{padding:9px 10px}
}

