@import url('/base.css');
:root{color-scheme:dark;--bg:#080a09;--panel:#101310;--gold:#e0b66c;--dim:#aaa69a;--line:#3f3625;--text:#f3ecdf;font-family:'Segoe UI',Arial,sans-serif;font-size:15px;color:var(--text);background:var(--bg)}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible{outline:2px solid var(--gold);outline-offset:4px}h1,h2,h3,h4,p{margin-top:0}h1,h2,h3,h4{font-family:Georgia,'Times New Roman',serif;font-weight:400}p{line-height:1.7}h1{font-size:clamp(30px,3.3vw,48px);letter-spacing:-1px;margin-bottom:12px}h2{font-size:34px}h3{font-size:24px}small,.muted{color:var(--dim)}.eyebrow{font-size:10px;font-weight:600;letter-spacing:2.6px;text-transform:uppercase;color:var(--gold)}.icon{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.btn{min-height:46px;border:1px solid #786039;border-radius:8px;padding:11px 20px;display:inline-flex;align-items:center;justify-content:center;gap:10px;color:var(--gold);background:#13150f;transition:background .15s,transform .15s}.btn:hover{background:#282317;border-color:var(--gold)}.btn.primary{background:linear-gradient(115deg,#bd8b40,#edc779);color:#211a0f;border-color:#e0b66c;font-weight:600;box-shadow:0 4px 22px #c8902214}.btn.primary:hover{background:#f0ca84}.btn.small{padding:8px 12px;font-size:12px;min-height:40px}.btn.plain{background:transparent;border-color:transparent;color:var(--dim)}.icon-btn{display:inline-grid;place-items:center;width:44px;height:44px;border:1px solid var(--line);border-radius:8px;background:transparent;color:var(--gold)}.actions{display:flex;gap:10px;flex-wrap:wrap}.brand{display:flex;align-items:center;gap:12px;white-space:nowrap}.brand img{width:47px;height:47px}.brand span{font:22px Georgia,serif;letter-spacing:1.7px;color:#edc779}.brand small{font:8px 'Segoe UI',sans-serif;letter-spacing:3px;display:block;margin-top:7px;color:#9f977f}.topbar{height:82px;padding:0 4%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #57412466;background:#080a09ee;position:relative;z-index:10}.topbar nav{display:flex;align-items:center;gap:30px;font-size:13px}.topbar nav a:hover{color:var(--gold)}.topbar .btn{border-radius:30px;padding-inline:26px}.menu-toggle{display:none}.landing{overflow:hidden;background:radial-gradient(ellipse at 80% 0,#48301a44,transparent 40%),#080a09}.hero{min-height:570px;position:relative;display:flex;justify-content:center;align-items:center;text-align:center;isolation:isolate;padding:42px 16px 72px}.hero-art{position:absolute;z-index:-1;inset:0;pointer-events:none;overflow:hidden}.hero-art:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#080a09,transparent 18%),radial-gradient(ellipse at 50% 45%,#080a0999 5%,transparent 55%)}.hero-tree{position:absolute;left:0;height:100%;width:43%;object-fit:cover;object-position:left center;mask-image:linear-gradient(90deg,#000 55%,transparent 98%)}.hero-candle{position:absolute;right:0;width:29%;height:100%;object-fit:cover;object-position:center;mask-image:linear-gradient(270deg,#000 35%,transparent 100%);opacity:.8}.hero-copy{width:min(850px,100%);padding-top:10px}.hero-mark{width:122px;height:122px;filter:drop-shadow(0 0 22px #d6a14b30);margin-bottom:16px}.hero h1{font-size:clamp(36px,5.8vw,80px);letter-spacing:4px;color:#edc779;text-transform:uppercase;margin-bottom:20px;line-height:1.12}.ornament{display:flex;align-items:center;justify-content:center;gap:15px;color:var(--gold);margin:18px auto;width:min(480px,75%)}.ornament:before,.ornament:after{content:'';height:1px;flex:1;background:linear-gradient(90deg,transparent,#c39246)}.ornament:after{transform:rotate(180deg)}.hero .motto{font:clamp(19px,2vw,28px)/1.55 Georgia,serif;color:#ead6ad;margin:20px 0 30px}.hero .btn{border-radius:32px;padding:16px 30px;min-height:56px}.hero .hint{font-size:11px;margin:18px 0 0;letter-spacing:1px;color:#b5a584}.features{max-width:1480px;margin:0 auto;padding:0 3% 65px;display:grid;grid-template-columns:repeat(6,1fr);gap:12px}.feature{padding:27px 17px 22px;border:1px solid #76603a88;border-radius:15px;background:linear-gradient(145deg,#1c1a12aa,#0b0e0bcc);text-align:center;position:relative;min-height:235px;transition:transform .2s,border-color .2s}.feature:hover{border-color:#cda75e;transform:translateY(-4px)}.feature .icon{width:34px;height:34px;color:var(--gold);margin-bottom:22px}.feature h3{font:17px/1.3 Georgia,serif;color:#ebd2a0;margin-bottom:12px}.feature p{font-size:12px;line-height:1.7;color:#bcb5a5}.feature .arrow{margin:18px auto 0;width:29px;height:29px;border:1px solid #80643b;border-radius:50%;display:grid;place-items:center;color:var(--gold)}.story{max-width:1120px;margin:0 auto;padding:65px 35px 85px;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr;gap:80px}.story p{color:var(--dim)}.story h2{line-height:1.25;color:#e8d5af}.story-steps{display:grid;gap:22px}.story-step{display:flex;gap:20px}.story-step b{font:24px Georgia;color:var(--gold)}.story-step h3{font-size:20px;margin-bottom:8px}.story-step p{font-size:13px;margin-bottom:0}footer{border-top:1px solid var(--line);padding:25px 4%;display:flex;justify-content:space-between;gap:20px;font-size:11px;color:#9e9585}footer span{color:#ceb17c}.app-top{padding:0 26px;height:76px}.app-top .brand span{font-size:20px}.family-label{display:flex;align-items:center;gap:13px;font-size:12px}.family-label .avatar{width:35px;height:35px;font-size:13px}.family-label small{display:block;font-size:10px;margin-top:4px}.shell{display:grid;grid-template-columns:225px minmax(0,1fr);min-height:calc(100vh - 76px)}.sidebar{padding:30px 15px;border-right:1px solid var(--line);background:linear-gradient(#0d100d,#0a0c0a);display:flex;flex-direction:column;gap:5px}.sidebar .eyebrow{font-size:9px;margin:10px 12px 22px}.side-link{display:flex;align-items:center;gap:13px;padding:13px 12px;font-size:13px;color:#bbb9ae;min-height:48px;border:1px solid transparent;border-radius:8px}.side-link .icon{color:#cfaa66;width:20px}.side-link.active{background:linear-gradient(110deg,#332918aa,#24231544);border-color:#7b603359;color:#f2d69d}.side-link:hover{background:#211e15}.side-bottom{margin-top:40px;border-top:1px solid var(--line);padding:23px 12px;color:#b6a98f;font:16px/1.65 Georgia}.local-badge{font:10px/1.6 'Segoe UI',sans-serif;border:1px solid #544631;padding:10px;border-radius:6px;color:#b8a079;margin-top:25px}.workspace{padding:35px 36px 65px;min-width:0;max-width:1800px;width:100%;margin:0 auto}.page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:26px}.page-head .eyebrow{margin-bottom:12px}.page-head h1{color:#ead1a2}.page-head p{color:var(--dim);font-size:13px;margin:0;max-width:650px}.page-head .btn{white-space:nowrap;margin-top:15px}.panel{padding:25px;border:1px solid var(--line);border-radius:12px;background:linear-gradient(145deg,#171a13,#0e110e)}.panel h3{color:#e6ce9f}.welcome{padding:36px;border:1px solid #65502d;background:linear-gradient(90deg,#191a11,#12160f);border-radius:14px;position:relative;overflow:hidden;min-height:260px}.welcome>div{position:relative;z-index:1;max-width:540px}.welcome h2{font-size:36px;color:#edd5a7;margin:15px 0}.welcome p{color:#bab3a1;font-size:14px}.welcome img{position:absolute;right:0;top:0;width:40%;height:100%;object-fit:cover;opacity:.45;mask-image:linear-gradient(90deg,transparent,#000)}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:24px 0}.stat{border:1px solid var(--line);padding:22px;border-radius:10px;background:#11140f}.stat .icon{float:right;color:#8f7447}.stat b{font:35px Georgia;color:#e0c38d;display:block;margin-bottom:9px}.stat small{font-size:12px}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:22px}.section-title{display:flex;justify-content:space-between;align-items:center;margin:5px 0 20px}.section-title h3{margin:0}.list-row{padding:15px 0;display:flex;align-items:center;gap:15px;border-bottom:1px solid #353323}.list-row:last-child{border-bottom:0}.list-row strong{font-size:14px;font-weight:500;display:block;margin-bottom:6px}.list-row small{font-size:12px}.avatar{width:48px;height:48px;border:1px solid #75603b;border-radius:50%;display:grid;place-items:center;color:#dfbf84;background:radial-gradient(circle at 30% 30%,#393321,#171b14);font:19px Georgia;flex-shrink:0;object-fit:cover}.toolbar{display:flex;flex-wrap:wrap;align-items:end;gap:15px;margin:20px 0}.toolbar label{display:block;font-size:11px;color:#b9aa91;margin-bottom:8px}.toolbar select{min-width:200px}.filter-group{display:flex;gap:4px;padding:5px;border:1px solid var(--line);border-radius:9px;background:#10130f;flex-wrap:wrap}.filter-group button{background:none;color:#aaa99b;border:0;border-radius:6px;padding:10px 12px;font-size:12px;min-height:38px}.filter-group button.active{background:#342b1b;color:#f1d6a0}.search-box{margin-left:auto;position:relative;min-width:180px}.search-box input{padding-left:36px}.search-box .icon{position:absolute;left:10px;bottom:12px;width:17px;height:17px;color:#9c916f}.tree-layout{display:grid;grid-template-columns:minmax(0,1fr) 245px;gap:16px}.tree-stage{height:660px;border:1px solid #4d412b;border-radius:12px;position:relative;overflow:hidden;background:radial-gradient(ellipse at 50% 70%,#3a2a102b,#090d09 73%);touch-action:none;cursor:grab}.tree-stage:active{cursor:grabbing}.tree-stage:before{content:'';position:absolute;inset:0;background:radial-gradient(#9b7f3633 .6px,transparent .6px);background-size:25px 25px;pointer-events:none}.tree-stage > #tree-svg{display:block;position:absolute;left:0;top:0;overflow:visible;transform-origin:0 0;user-select:none}.tree-path{fill:none;stroke:#b58b42;stroke-width:2;filter:drop-shadow(0 0 3px #bf8c4277)}.partner-path{fill:none;stroke:#dfb65f;stroke-width:1.5;stroke-dasharray:5 5}.tree-node{cursor:pointer;outline:none}.tree-node rect{fill:#191b12;stroke:#947341;stroke-width:1}.tree-node.active rect,.tree-node:focus rect{stroke:#f7d695;stroke-width:2;filter:drop-shadow(0 0 7px #d1a75e88)}.tree-node.unknown rect{stroke-dasharray:5 4}.tree-node text{fill:#e6d1a6;font:14px Georgia;pointer-events:none}.tree-node .dates{font:10px 'Segoe UI',sans-serif;fill:#aaa28b}.tree-node .initial{font:23px Georgia;fill:#c9a766}.tree-tools{position:absolute;z-index:3;top:14px;right:14px;display:flex;align-items:center;gap:7px;background:#0b100ded;border:1px solid #514329;padding:5px;border-radius:8px}.tree-tools button{border:0;background:transparent}.tree-tools span{font-size:11px;width:40px;text-align:center}.tree-caption{position:absolute;bottom:12px;left:15px;color:#a89b7b;font-size:10px;padding:7px;background:#080d09d9;border-radius:5px;pointer-events:none}.person-panel{padding:22px 18px;border:1px solid var(--line);border-radius:12px;background:#10140e}.person-panel .avatar{width:72px;height:72px;font-size:27px;margin-bottom:19px;border-radius:9px}.person-panel h3{font-size:26px;line-height:1.2;margin-bottom:7px}.person-panel .btn{width:100%;font-size:12px}.person-panel hr{border:0;border-top:1px solid var(--line);margin:22px 0}.person-panel h4{font-size:17px;color:#e7cca0;margin-bottom:15px}.rel-buttons{display:grid;grid-template-columns:1fr 1fr;gap:7px}.rel-buttons button{font-size:11px;padding:9px 6px}.person-panel p{font-size:12px;color:var(--dim)}.badge{border:1px solid #5e5134;border-radius:30px;padding:5px 10px;color:#c0a773;font-size:10px;display:inline-block}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.card{border:1px solid #48402b;border-radius:12px;overflow:hidden;background:linear-gradient(140deg,#171a14,#10140e)}.card-cover{height:170px;object-fit:cover;width:100%;display:block}.card-placeholder{height:170px;display:grid;place-items:center;background:radial-gradient(ellipse at 50% 90%,#4b452c55,transparent 80%),linear-gradient(150deg,#1c241a,#11170f);position:relative}.card-placeholder .icon{width:48px;height:48px;color:#aa925d;opacity:.8}.card-placeholder small{position:absolute;bottom:14px;font-size:10px;color:#8e917b}.card-body{padding:20px}.card-body h3{font-size:23px;color:#e2cca2;margin-bottom:9px}.card-body p{font-size:12px;color:#b1ad9c;margin-bottom:14px}.card .actions{margin-top:18px}.person-card{display:flex;align-items:center;padding:20px;gap:15px;cursor:pointer;text-align:left;width:100%;color:var(--text)}.person-card h3{font-size:20px;margin:0 0 8px}.person-card small{font-size:11px}.person-card:hover{border-color:#c1a16b}.notice{padding:14px 17px;border:1px solid #5a4b2b;border-radius:8px;font-size:12px;line-height:1.65;background:#30271344;color:#c4b696;margin:18px 0}.empty{text-align:center;padding:50px 25px;border:1px dashed #53482d;border-radius:12px;color:#b1ac99}.empty .icon{width:38px;height:38px;color:#baa16a;margin-bottom:18px}.empty h3{color:#e1c99e}.empty p{font-size:13px;max-width:500px;margin:0 auto 20px}.breadcrumbs{color:#bd9d61;font-size:12px;display:inline-flex;align-items:center;gap:8px;margin-bottom:22px}.calendar-row{display:flex;gap:20px;padding:18px 0;border-bottom:1px solid #373729}.date-square{min-width:56px;min-height:58px;border:1px solid #685332;border-radius:8px;text-align:center;padding:8px;background:#2c271966;color:#dbc18d}.date-square b{display:block;font:23px Georgia}.date-square small{font-size:9px;letter-spacing:1px;text-transform:uppercase}.calendar-row h3{font-size:19px;margin:3px 0 6px}.calendar-row p{font-size:12px;color:var(--dim);margin:0}.bottom-nav{display:none}.input,select,textarea,input:not([type=checkbox]):not([type=file]){width:100%;min-height:45px;background:#0b100c;color:#e9e4d6;border:1px solid #5a5138;padding:10px 12px;border-radius:7px;outline:none}input:focus,select:focus,textarea:focus{border-color:var(--gold)!important;box-shadow:0 0 0 2px #cfa04c22}input[type=checkbox]{accent-color:#c99f51;width:18px;height:18px}textarea{min-height:100px;resize:vertical}dialog{width:min(600px,calc(100% - 28px));max-height:90dvh;margin:auto;border:1px solid #957343;border-radius:16px;padding:0;background:#10150f;color:var(--text);box-shadow:0 30px 100px #000b}dialog::backdrop{background:#000b;backdrop-filter:blur(5px)}.dialog-head{padding:24px 25px 16px;display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid var(--line);position:sticky;top:0;background:#10150ff5;z-index:2}.dialog-head h2{font-size:26px;margin:0;color:#e5c995}.dialog-body{padding:20px 25px 25px}.field{display:block;margin-bottom:17px;font-size:12px;color:#cbb992}.field>span{display:block;margin-bottom:8px}.field small{display:block;line-height:1.6;margin-top:6px;font-size:11px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 15px}.check{display:flex;align-items:center;gap:10px;font-size:12px;color:#c1baaa;margin:14px 0}.checklist{max-height:160px;overflow:auto;border:1px solid var(--line);border-radius:7px;padding:0 13px}.form-actions{margin-top:23px;display:flex;justify-content:flex-end;gap:10px}.form-error{color:#f1b1a1;font-size:12px;line-height:1.6;margin-bottom:12px}.form-error:empty{display:none}.profile-bio{white-space:pre-wrap;font-size:14px;line-height:1.9;color:#bbb8a5}.profile-intro{display:flex;align-items:center;gap:20px;margin-bottom:25px}.profile-intro .avatar{width:80px;height:80px;font-size:30px}.profile-intro h3{margin-bottom:8px}.media-card{padding:20px}.media-card img{width:100%;height:170px;object-fit:cover;border-radius:7px;margin-bottom:15px}.media-card h3{font-size:18px;overflow-wrap:anywhere}.user-row{display:flex;align-items:center;gap:18px;padding:18px 0;border-bottom:1px solid var(--line)}.user-row .badge{margin-left:auto}.user-row strong{display:block;font-weight:500}.user-row small{display:block;margin-top:6px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.settings-grid .panel p{font-size:13px;color:var(--dim)}#toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);padding:14px 22px;border:1px solid #a9884d;border-radius:9px;background:#242719;color:#f1dfb6;z-index:100;box-shadow:0 5px 30px #0008;max-width:90%;font-size:13px;display:none}#toast.show{display:block}.skip{position:fixed;top:-100px;left:10px;background:var(--gold);color:#111;padding:12px;z-index:200}.skip:focus{top:10px}.mobile-overlay{display:none}.loading{padding:100px;text-align:center;color:var(--gold)}
@media(min-width:1600px){.hero{min-height:640px}.features{gap:18px}.feature{min-height:250px}}
@media(max-width:1200px){.topbar nav{gap:20px}.features{grid-template-columns:repeat(3,1fr)}.feature{min-height:200px}.shell{grid-template-columns:195px minmax(0,1fr)}.sidebar{padding-inline:10px}.workspace{padding:30px 22px}.tree-layout{grid-template-columns:minmax(0,1fr)}.person-panel{display:grid;grid-template-columns:1fr 1fr;gap:0 30px}.person-panel>hr{display:none}.person-panel>div:first-child{grid-row:span 2}.person-panel .rel-section{grid-column:2}.tree-stage{height:580px}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.topbar nav>a{display:none}.topbar{padding-inline:20px;height:73px}.brand span{font-size:19px;letter-spacing:1px}.brand img{width:39px;height:39px}.hero{min-height:550px;padding-bottom:45px}.hero-tree{width:60%;opacity:.55}.hero-candle{width:40%;opacity:.5}.hero-copy{padding-top:0}.hero h1{font-size:48px;max-width:500px;margin-inline:auto}.hero-mark{width:105px;height:105px}.hero .motto{font-size:23px;max-width:430px;margin-inline:auto}.features{padding-inline:20px;gap:12px}.feature h3{font-size:17px}.story{gap:30px;padding:45px 25px}.story h2{font-size:28px}.shell{display:block}.sidebar{position:fixed;left:0;top:73px;bottom:0;width:265px;z-index:30;transform:translateX(-100%);transition:transform .2s;overflow-y:auto;box-shadow:10px 0 40px #0008}.sidebar.open{transform:translateX(0)}.menu-toggle{display:inline-grid}.app-top{gap:12px;position:sticky;top:0}.app-top .brand{margin-right:auto;gap:6px}.app-top .brand small{display:none}.app-top .brand span{font-size:16px}.app-top .brand img{width:32px;height:32px}.family-label>div:not(.avatar){display:none}.family-label{gap:4px}.workspace{padding:27px 20px 105px}.mobile-overlay.visible{display:block;position:fixed;inset:73px 0 0;z-index:25;background:#0009}.bottom-nav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:20;border-top:1px solid #4f432b;background:#0c100cf5;backdrop-filter:blur(12px);padding:7px 5px calc(8px + env(safe-area-inset-bottom));justify-content:space-around}.bottom-nav a{display:flex;flex-direction:column;align-items:center;gap:5px;color:#9e9f8e;font-size:9px;min-width:55px;padding:4px}.bottom-nav a.active{color:#e3bd78}.bottom-nav .icon{width:21px;height:21px}.page-head{gap:12px}.page-head h1{font-size:33px}.page-head .btn{font-size:12px;padding:10px 12px}.page-head p{font-size:12px}.stats{gap:10px}.stat{padding:16px}.stat b{font-size:30px}.stat small{font-size:11px}.stat .icon{width:18px}.welcome{padding:28px}.welcome h2{font-size:29px}.two-col{gap:15px}.panel{padding:20px}.panel h3{font-size:23px}.toolbar{gap:12px}.toolbar>div:first-child{flex:1}.toolbar select{min-width:140px}.search-box{min-width:160px;flex:1}.tree-stage{height:540px}.tree-tools{top:10px;right:10px}.tree-tools .icon-btn{width:36px;height:36px}.settings-grid{gap:15px}#toast{bottom:90px}}
@media(max-width:520px){.landing .topbar{padding:0 15px}.landing .brand span{font-size:16px}.landing .brand small{font-size:6px;letter-spacing:2px}.landing .brand img{width:34px}.landing .topbar .btn{font-size:11px;padding:8px 13px;min-height:39px}.hero{min-height:515px;padding:28px 20px 45px}.hero h1{font-size:42px;letter-spacing:3px;max-width:340px;line-height:1.18}.hero-mark{width:85px;height:85px;margin-bottom:20px}.hero-tree{width:80%;opacity:.4;left:-8%}.hero-candle{width:50%;opacity:.32;right:-8%}.hero .motto{font-size:21px;max-width:300px;margin:19px auto 25px}.hero .btn{padding:15px 22px;font-size:13px;width:100%;max-width:335px}.hero .hint{font-size:9px}.ornament{margin:14px auto}.features{grid-template-columns:repeat(2,minmax(0,1fr));padding:0 16px 45px;gap:10px}.feature{padding:23px 12px 17px;min-height:215px}.feature h3{font-size:17px}.feature p{font-size:11px}.feature .icon{width:29px;height:29px;margin-bottom:16px}.feature .arrow{margin-top:10px}.story{display:block;padding:40px 23px}.story>div:first-child{margin-bottom:35px}.story h2{font-size:29px}footer{flex-direction:column;text-align:center;font-size:10px;gap:8px}.app-top{padding:0 12px;gap:8px}.app-top .brand span{font-size:14px;letter-spacing:.7px}.app-top .brand img{width:27px}.family-label .avatar{width:29px;height:29px;font-size:11px}.app-top>.icon-btn{width:37px;border:0}.family-label .btn{display:none}.workspace{padding:24px 15px 105px}.page-head{display:block;margin-bottom:20px}.page-head h1{font-size:31px}.page-head .eyebrow{font-size:9px}.page-head .btn{margin-top:16px;min-height:44px}.welcome{padding:25px 21px}.welcome h2{font-size:29px}.welcome p{font-size:12px}.welcome img{width:65%;opacity:.3}.welcome .btn{font-size:12px}.stats{grid-template-columns:1fr 1fr;margin:16px 0}.stat{padding:18px}.two-col,.settings-grid{grid-template-columns:1fr;gap:16px}.section-title h3{font-size:22px}.toolbar{display:block;margin:20px 0 16px}.toolbar>div{margin-bottom:12px}.filter-group{flex-wrap:nowrap;overflow:auto;padding:4px;gap:3px}.filter-group button{padding:9px;font-size:10px;white-space:nowrap;flex:1;min-height:38px}.search-box{margin-left:0}.tree-stage{height:480px;border-radius:9px}.tree-caption{font-size:9px;max-width:90%}.tree-layout{gap:14px}.person-panel{display:block;padding:22px}.person-panel>div:first-child{position:relative;padding-left:74px;min-height:75px}.person-panel .avatar{position:absolute;left:0;top:0;width:57px;height:64px}.person-panel h3{font-size:24px}.person-panel>hr{display:block}.person-panel .rel-section{margin-top:24px}.rel-buttons{grid-template-columns:repeat(3,1fr)}.person-panel .rel-buttons .btn{min-height:44px}.person-panel .btn{font-size:12px}.grid{grid-template-columns:1fr;gap:16px}.person-card{padding:17px}.card-cover,.card-placeholder{height:185px}.card-body{padding:20px}.card-body .btn{flex:1}.dialog-head{padding:20px}.dialog-head h2{font-size:23px}.dialog-body{padding:20px}.form-grid{grid-template-columns:1fr}.form-actions .btn{flex:1;padding:10px 12px}.field{font-size:12px}input,select,textarea{font-size:16px!important}.notice{font-size:11px}.profile-intro{gap:15px}.profile-intro h3{font-size:24px}.loading{padding:70px 20px}}
.welcome img{right:-8%;width:48%;clip-path:inset(0 20% 0 0)}
@media(max-width:520px){.welcome img{width:70%;right:-14%}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.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}
.space-switch{max-width:230px;margin-left:auto;margin-right:18px}.space-switch select{font-size:12px;min-height:40px;max-width:100%;text-overflow:ellipsis}
.connection-list{display:grid;gap:16px;margin-top:24px}.connection-card{display:flex;align-items:center;justify-content:space-between;gap:24px}.connection-card h3{margin-bottom:12px}.connection-card p{font-size:12px;margin:10px 0 0}.connection-card .actions{flex-shrink:0;max-width:280px}
.scope-group{border:0;padding:0;margin:20px 0}.scope-group legend{color:#e2c48e;font:20px Georgia;margin-bottom:10px}.scope-group .checklist{max-height:190px}.scope-group .check{align-items:flex-start;min-height:30px}.scope-group .check input{flex-shrink:0}.scope-group .check small{display:block;font-size:10px;margin-top:5px}.scope-preview{border:1px solid var(--line);border-radius:7px;margin:12px 0;padding:13px}.scope-preview summary{cursor:pointer;color:var(--gold);min-height:28px}.scope-item{border-top:1px solid var(--line);padding-top:13px;margin-top:10px}.scope-item p{font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--dim);margin:7px 0}.invite-code{font-family:monospace!important;font-size:15px!important;letter-spacing:1px}
@media(max-width:800px){.space-switch{max-width:155px;margin:0}.app-top .brand{min-width:0}.family-label .avatar{display:none}.connection-card{display:block}.connection-card .actions{max-width:none;margin-top:20px}}
@media(max-width:520px){.app-top{flex-wrap:wrap;height:auto;min-height:73px;padding-top:8px;padding-bottom:8px}.space-switch{order:5;max-width:none;width:100%;margin-top:3px}.space-switch select{min-height:35px;font-size:12px!important}.sidebar{top:108px}.mobile-overlay.visible{top:108px}.connection-card .btn{flex:1}.connection-card h3{font-size:22px}.scope-preview{padding:11px}.app-top .brand span{font-size:15px}}

/* v0.3 forms, history and branch selection */
.history-list pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;max-height:360px;overflow:auto}.history-list .panel{margin:12px 0}.record-controls{margin:20px 0;border-top:1px solid #4d4028;padding-top:16px}.family-filter{margin-bottom:24px;align-items:center;flex-wrap:wrap}.family-filter .field{min-width:220px;margin:0}.family-filter .badge{white-space:normal}.cover-upload{margin:18px 0}.list-row{flex-wrap:wrap}.checklist{max-height:280px;overflow:auto}.archive-card .actions{flex-wrap:wrap}@media(max-width:600px){.family-filter>*{width:100%}.form-grid{grid-template-columns:1fr}.record-controls .btn{width:100%}.list-row{gap:12px}.actions{flex-wrap:wrap}.family-filter select{width:100%;max-width:100%}.history-list pre{font-size:11px}}

.date-field{min-width:0}.date-field .check{margin:8px 0 16px}.user-row{flex-wrap:wrap}.tree-tools .icon-btn{min-width:40px;min-height:40px}

#dialog:has(.identity-tree-scroll){width:min(1000px,calc(100vw - 32px))}.identity-tree-scroll{overflow:auto;max-height:45vh;border:1px solid #66532b;overscroll-behavior:contain}.person-panel .badge{display:block;white-space:normal}.person-panel [data-manage="edge-edit"]{width:100%;white-space:normal;text-align:left;margin-bottom:8px}.rel-buttons [data-rel="wife"]{grid-column:1/-1}

/* Guided family entry */
.wizard-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding:0;margin:0 0 28px;list-style:none}.wizard-steps li{font-size:12px;color:#b5ac95;border-bottom:2px solid #373625;padding-bottom:12px}.wizard-steps span{display:block;margin-bottom:6px;font-size:18px}.wizard-steps .current{color:#f2ce82;border-color:#e7bc68}.wizard-steps .done{color:#d2b77c}.wizard-person{margin-bottom:16px}.wizard-choice{font-size:12px;color:#d2b77c}.wizard-suggestions{display:grid;gap:6px;max-height:220px;overflow:auto}.wizard-option{padding:12px;text-align:left;background:#20261c;border:1px solid #665535;border-radius:8px;color:#f2dfb4;cursor:pointer}.wizard-option small{display:block;margin-top:4px;color:#bcb8a7}.wizard-option:hover,.wizard-option:focus-visible{border-color:#e7bc68}.wizard-parent-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.wizard-sibling{padding:16px;border:1px solid #554b32;border-radius:10px;margin-bottom:16px}.wizard-actions{display:flex;justify-content:space-between;gap:12px;margin-top:24px}.wizard-summary{border:1px solid #554b32;border-radius:10px;padding:0 16px}.wizard-summary-row{display:grid;gap:5px;padding:14px 0;border-bottom:1px solid #373625}.wizard-summary-row:last-child{border:0}.wizard-summary-row span,.wizard-summary-row small{font-size:12px;color:#bcb8a7}.wizard-intro{display:flex;flex-wrap:wrap;gap:16px;align-items:center;padding:20px;border:1px solid #554b32;border-radius:12px;margin-bottom:24px;background:#141a11}.wizard-intro p{margin:6px 0 0}.wizard-intro>div{flex:1;min-width:180px}#family-wizard{width:100%}#family-wizard input,#family-wizard select{min-width:0;max-width:100%}#family-wizard h3{font-size:24px}#family-wizard .wizard-actions button{white-space:normal}button:disabled{opacity:.55;cursor:wait}@media(max-width:600px){.wizard-parent-grid{grid-template-columns:1fr}.wizard-steps{gap:5px}.wizard-steps li{font-size:10px}.wizard-actions{position:sticky;bottom:0;background:#10160f;padding:12px 0}.wizard-intro .btn{width:100%}}

.place-toolbar{padding:18px;border:1px solid var(--line);border-radius:10px;background:#14190f;margin:0 0 22px}.place-toolbar p{font-size:12px;color:var(--dim);margin:12px 0 0}.place-edit-actions{padding-top:14px;border-top:1px solid var(--line)}.place-edit-actions .btn{min-height:44px;padding:9px 13px;font-size:13px}.place-edit-actions [data-manage="delete"]{color:#edb3a0;border-color:#825844}.place-details{margin:15px 0}.page-head{flex-wrap:wrap}.page-head>div{min-width:0}.places-grid .card-body{overflow-wrap:anywhere}@media(max-width:600px){.place-toolbar .actions>.btn{flex:1 1 140px}.places-grid .actions>.btn{flex:1 1 auto}.place-toolbar .btn{white-space:normal}}

/* Heritage tree: real interactive graph over decorative artwork. */
.heritage-workspace{background:radial-gradient(ellipse at 55% 40%,#33210c24,transparent 70%)}
.heritage-workspace .page-head{margin-bottom:12px}.heritage-workspace .page-head h1{color:#f1d398;font-size:clamp(30px,3vw,43px)}
.tree-guide{font-size:12px;color:#baad92;margin:0 0 18px;border-bottom:1px solid #66502d55;padding-bottom:12px}.tree-guide summary,.relation-details summary{cursor:pointer;padding:8px 0;color:#ddc08b}.tree-guide p{margin-top:10px}.tree-guide .actions{margin-bottom:10px}
.heritage-workspace .toolbar{margin:16px 0}.tree-layout{gap:20px;align-items:start;grid-template-columns:minmax(0,1fr) 260px}
.tree-stage{height:690px;background:#090b08;border-color:#87632b88;box-shadow:inset 0 0 70px #0009,0 18px 55px #0005;isolation:isolate}
.tree-stage:before{background:linear-gradient(#090b0826,#090b0838),url('/assets/heritage-tree.jpg') center center/cover no-repeat;opacity:.82;inset:0;z-index:-1}
.tree-stage > #tree-svg{z-index:1}.tree-caption{z-index:2;color:#d7c7a7;background:#090b08e8;border:1px solid #70532966}
.tree-tools{background:#090b08ed;box-shadow:0 4px 20px #0008;flex-wrap:nowrap;width:auto!important}.tree-tools button{flex:none}
.tree-node .node-frame{fill:url(#card-gold);stroke:#c99b4b;stroke-width:1.5;filter:drop-shadow(0 4px 7px #000)}
.tree-node .node-inset{fill:none;stroke:#8f6b3466;stroke-width:.7;pointer-events:none}
.tree-node.active .node-frame,.tree-node:focus-visible .node-frame{stroke:#ffe1a0;stroke-width:2.5;filter:drop-shadow(0 0 9px #ffb735aa)}
.tree-node.active .node-inset,.tree-node:focus .node-inset{stroke:#c49b50;filter:none;stroke-width:.7}
.tree-node .portrait-medallion{fill:#191c12;stroke:#ad8543;stroke-width:1}.tree-node .initial{font-size:26px;fill:#e7be71}
.tree-node text{fill:#f2d9a5;font-size:13px}.tree-node .dates{fill:#c0ac83;font-size:9px}.tree-node .node-rule{stroke:#b9934955;stroke-width:1}
.tree-path{stroke:#ffcf78;stroke-width:2.2;filter:drop-shadow(0 0 3px #e5a331)}.partner-path{stroke:#e1b55e;stroke-width:1.6;stroke-dasharray:5 4}
.person-panel{background:linear-gradient(150deg,#211b10e8,#0d100bf5 55%);border-color:#86633088;box-shadow:0 12px 36px #0004;padding:22px;max-height:800px;overflow:auto}
.person-panel .avatar{object-fit:cover;width:88px;height:100px;border:1px solid #bd924e;box-shadow:0 0 0 4px #8c67351a;border-radius:6px}.person-panel h3{color:#f2d8a4}.person-panel .badge{line-height:1.55}
.person-panel .rel-section{min-width:0}.person-panel .rel-buttons .btn{background:#0d0f0b;border-color:#6e542f;min-height:44px}.person-panel .btn{white-space:normal}.relation-details{font-size:12px;margin:0 0 18px}.relation-details .btn{margin:4px 0}.person-panel h4{margin-top:20px}
@media(min-width:1600px){.tree-stage{height:760px}.tree-layout{grid-template-columns:minmax(0,1fr) 285px}}
@media(min-width:1001px) and (max-width:1200px){.heritage-workspace{padding:26px 18px}.tree-layout{grid-template-columns:minmax(0,1fr) 230px;gap:12px}.person-panel{display:block;padding:16px}.person-panel>hr{display:block}.tree-stage{height:650px}}
@media(max-width:1000px){.tree-layout{grid-template-columns:minmax(0,1fr)}.person-panel{max-height:none}.tree-stage{height:620px}.tree-stage:before{background-size:cover}}
@media(max-width:520px){.tree-stage{height:540px}.person-panel{display:block;padding:22px}.person-panel .avatar{width:57px;height:64px}.tree-guide{font-size:12px}.tree-tools{max-width:calc(100% - 20px)}.tree-tools .icon-btn{min-width:38px;min-height:40px}.tree-caption{font-size:10px}.rel-buttons{grid-template-columns:1fr 1fr}}
@media(prefers-reduced-motion:reduce){.tree-node{transition:none}}

.registration-alert{white-space:nowrap;margin:0 10px}.registration-alert b{border-radius:20px;padding:2px 7px;background:#c99b4b;color:#10120c}.registration-request{padding:20px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.registration-request h3{margin-bottom:10px}.registration-request p{font-size:13px}.registration-list{margin-top:20px}@media(max-width:800px){.app-top .registration-alert{font-size:11px;padding:6px;margin:0;min-height:40px}.app-top:has(.registration-alert){height:auto;min-height:108px;flex-wrap:wrap;padding-top:8px;padding-bottom:8px}}
