:root{--ink:#203b35;--pine:#26624d;--sage:#edf3ec;--cream:#f8f8f3;--line:#e1e7df;--muted:#69756b}
body{background:var(--cream);color:var(--ink);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:.95rem}
h1,h2,h3{letter-spacing:-.035em;font-weight:650}h1{font-size:clamp(2rem,4vw,3rem)}h2{font-size:1.55rem}h3{font-size:1.15rem}
a{color:var(--pine);text-decoration:none}a:hover{text-decoration:underline;color:#164632}.text-muted{color:var(--muted)!important}
.btn{border-radius:8px;font-size:.9rem;padding:.65rem 1rem;font-weight:550}.btn-primary{background:var(--pine);border-color:var(--pine)}.btn-primary:hover,.btn-primary:active{background:#1b493a!important;border-color:#1b493a!important}
.btn-outline-primary{color:var(--pine);border-color:#a1b7a5}.btn-outline-primary:hover{background:var(--pine);border-color:var(--pine)}.btn-sm{padding:.4rem .7rem}
.brand{font-weight:750;letter-spacing:-.045em;line-height:1.05;font-size:1.35rem;display:grid;grid-template-columns:42px auto;align-items:center;column-gap:9px;color:var(--ink)}.brand:hover{text-decoration:none}
.brand-mark{background:var(--pine);color:white;display:grid;place-items:center;width:39px;height:43px;border-radius:20px 20px 7px 7px;grid-row:span 2;font-family:Georgia,serif;font-size:1.6rem}
.brand-sub{font-size:.46rem;letter-spacing:.13em;margin-top:5px;font-weight:650}.navbar{min-height:84px}.nav-link{font-size:.87rem}.account-button{background:var(--sage);font-size:.83rem;color:var(--pine)}
.eyebrow{font-size:.66rem;font-weight:750;letter-spacing:.17em;color:#52745a}.hero{border:1px solid #dfe8dc;border-radius:18px;background:#edf3e8;overflow:hidden}.hero h1{font-family:Georgia,serif;font-weight:500;line-height:1.15;font-size:clamp(2rem,4vw,3.3rem)}.hero .lead{max-width:570px;font-size:1rem;color:#596b5a;line-height:1.8}
.hero-side{background:#e2ecdf;border-left:1px solid #d7e3d3}.hero-side h2{font-family:Georgia,serif;font-size:2rem;font-weight:500}.hero-side p{color:#5d705e}
.search-bar{display:flex;padding:5px;background:white;border:1px solid #dce5d8;border-radius:11px;gap:6px;max-width:570px}.search-bar input{border:0;box-shadow:none!important;font-size:.9rem}
.stat{display:flex;flex-direction:column;justify-content:center;min-height:115px;padding:22px 26px;background:#fff;border:1px solid var(--line);border-radius:12px}.stat strong{font-size:2rem;line-height:1.1;font-weight:600}.stat span{font-size:.78rem;color:var(--muted);margin-top:8px}.stat-link{background:#f0f3e8}.stat-link:hover{text-decoration:none;border-color:#91aa8d}
.section-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:26px}.section-heading h2{margin-top:9px}.section-heading>a{font-size:.85rem;white-space:nowrap}
.person-card{border:1px solid var(--line);background:#fff;border-radius:12px;padding:23px;transition:box-shadow .2s,transform .2s}.person-card:hover{box-shadow:0 6px 25px #234e3110;transform:translateY(-2px)}
.person-card-link{display:flex;align-items:center;gap:17px;color:var(--ink)}.person-card-link:hover{text-decoration:none}.person-card h3{margin:0 0 5px}.person-card p{font-size:.8rem}
.avatar{width:64px;height:64px;object-fit:cover;border-radius:50%;flex-shrink:0}.avatar-placeholder{display:grid;place-items:center;background:#e6eddf;color:#59764c;font-family:Georgia,serif;font-size:1.8rem}
.card-bottom{border-top:1px solid #eef0eb;display:flex;justify-content:space-between;margin-top:20px;padding-top:13px;font-size:.8rem;gap:8px}.small{font-size:.8rem}
.panel,.filter-panel{border:1px solid var(--line);border-radius:12px;background:white;padding:26px}.filter-panel{margin-left:0;margin-right:0}.filter-panel label{font-size:.8rem}.panel h2{margin-bottom:20px}
.form-control,.form-select,.styled-form input:not([type=checkbox],[type=hidden],[type=file]),.styled-form select,.styled-form textarea{border:1px solid #d5ddd1;border-radius:7px;background:#fff;color:var(--ink);padding:.6rem .8rem;font-size:.9rem;max-width:100%}
.styled-form input:not([type=checkbox],[type=hidden]),.styled-form select,.styled-form textarea{display:block;width:100%;margin-top:5px}.styled-form input[type=checkbox]{accent-color:var(--pine);margin-right:5px}.styled-form label{font-size:.85rem;font-weight:550}.styled-form .helptext{display:block;font-size:.75rem;color:var(--muted);margin-top:4px}.styled-form p{margin-bottom:18px}.form-panel{max-width:800px;margin:auto}.form-panel h1{font-size:2rem;margin:14px 0 24px}.errorlist{color:#a12727;background:#fff0ee;border-radius:6px;padding:10px 10px 10px 25px;font-size:.85rem}
.contact-form{padding:18px;background:#f8faf5;border-radius:8px;margin:15px 0}.profile-header{display:flex;align-items:center;gap:26px;padding:30px;background:#eaf0e4;border:1px solid var(--line);border-radius:14px}.profile-photo{width:115px;height:115px;border-radius:15px;object-fit:cover;flex-shrink:0}.profile-header h1{font-size:2.2rem;margin-top:8px}
.profile-facts{display:grid;grid-template-columns:140px 1fr;gap:12px 15px;font-size:.9rem;margin:0}.profile-facts dt{color:var(--muted);font-weight:500}.profile-facts dd{margin:0}.contact-item{display:flex;flex-direction:column;gap:7px;border-top:1px solid #eef0eb;padding:16px 0}.contact-item:first-of-type{border:0}.contact-item>a{overflow-wrap:anywhere}
.source-value,pre{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;font-size:.8rem;max-height:400px;overflow:auto}dt{font-weight:600}.account-row{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;align-items:center;border-top:1px solid #eef0eb;padding:18px 0}.account-row:first-of-type{border:0}
.action-card{display:block;border:1px solid var(--line);border-radius:12px;padding:26px;background:#eef3e8;height:100%}.action-card:hover{text-decoration:none;background:#e5eedd}.action-card h2{font-size:1.1rem}.action-card p{font-size:.85rem;color:var(--muted);margin:14px 0 0}
.empty-state{text-align:center;padding:70px 20px;max-width:800px;margin:auto}.empty-state p{color:var(--muted);margin:20px 0 25px}.device-description{max-width:700px;overflow-wrap:anywhere;font-size:.85rem;color:var(--muted)}[x-cloak]{display:none!important}.preview-cell{min-width:170px;max-width:330px;font-size:.8rem;overflow-wrap:anywhere}
.tree-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:18px;background:white;border:1px solid var(--line);padding:20px;border-radius:12px}.tree-toolbar>label{font-size:.75rem;min-width:150px;flex:1}.tree-toolbar .form-select{margin-top:6px}.tree-canvas{background:#f1f5ed;background-image:radial-gradient(#bacab0 1px,transparent 1px);background-size:22px 22px;border:1px solid #d9e3d2;border-radius:14px;overflow:hidden}#family-tree{display:block;width:100%;height:650px;touch-action:none}.tree-node rect{fill:#fff;stroke:#b6c8ad;stroke-width:1.5}.tree-node.deceased rect{fill:#edf0eb;stroke-dasharray:4 3}.tree-node text{font-family:system-ui,sans-serif;fill:var(--ink);font-size:12px;font-weight:550}.tree-node .subtext{fill:#71816b;font-size:10px;font-weight:400}.tree-node{cursor:pointer}.tree-node:hover rect{stroke:var(--pine);stroke-width:2}.tree-edge{fill:none;stroke:#7e9c70;stroke-width:1.7}.tree-partner{stroke:#6488aa;stroke-dasharray:5 4;fill:none;stroke-width:1.7}.edge-label{font-size:9px;fill:#6c7d61;paint-order:stroke;stroke:#f1f5ed;stroke-width:4px}
.login-layout{display:grid;grid-template-columns:1.1fr 1fr;border:1px solid var(--line);border-radius:20px;overflow:hidden;min-height:650px;background:white}.login-story{padding:55px;background:#e7efdf;position:relative;overflow:hidden}.login-story h1{font-family:Georgia,serif;font-size:clamp(2.8rem,5vw,4.2rem);font-weight:500;line-height:1.05;margin:25px 0}.login-story>p{max-width:320px;line-height:1.8;color:#5e7258}.login-panel{padding:70px 55px;align-self:center}.login-panel h2{font-size:2.4rem;line-height:1.2;margin:16px 0}.btn-google{border:1px solid #d3dbcf;background:#fff;box-shadow:0 2px 3px #00000005}.btn-google:hover{border-color:var(--pine);background:#f9fbf7}.google-g{font-size:1.3rem;color:#4285f4;margin-right:18px}.privacy-note{border-top:1px solid var(--line);padding-top:22px;color:#7a8775;font-size:.75rem}
.tree-art{height:180px;margin:30px auto 0;position:relative;width:230px}.tree-crown{position:absolute;background:#b8cfa6;border-radius:50%;width:180px;height:140px;left:25px;top:0;box-shadow:30px 20px 0 -12px #9dbd8c,-30px 25px 0 -13px #d0dfbd}.tree-trunk{position:absolute;background:#54794a;width:13px;height:120px;left:109px;top:62px;border-radius:9px}.tree-trunk:before,.tree-trunk:after{content:"";position:absolute;background:#54794a;width:8px;height:60px;top:10px;transform-origin:bottom}.tree-trunk:before{transform:rotate(-40deg);left:0}.tree-trunk:after{transform:rotate(40deg);right:0}
@media(max-width:767px){.hero-side{border-left:0;border-top:1px solid #d7e3d3}.profile-header{flex-wrap:wrap;padding:22px}.profile-header h1{font-size:1.8rem}.profile-photo{width:85px;height:85px}.section-heading{align-items:flex-start;flex-direction:column;gap:8px}.panel{padding:20px}.profile-facts{grid-template-columns:110px 1fr}.login-layout{grid-template-columns:1fr}.login-story{padding:30px}.login-story h1{font-size:2.6rem}.tree-art{display:none}.login-panel{padding:35px 30px}.login-story p.small{display:none}.stat{padding:18px;min-height:100px}#family-tree{height:540px}.tree-toolbar{gap:12px}.brand{font-size:1.2rem}.search-bar .btn{font-size:.8rem;white-space:nowrap}.navbar{min-height:74px}}
