html,body{width:100%;height:100%}input::-ms-clear,input::-ms-reveal{display:none}*,*:before,*:after{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:rgba(0,0,0,0)}@-ms-viewport{width:device-width}body{margin:0}[tabindex="-1"]:focus{outline:none}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5em;font-weight:500}p{margin-top:0;margin-bottom:1em}abbr[title],abbr[data-original-title]{-webkit-text-decoration:underline dotted;text-decoration:underline;text-decoration:underline dotted;border-bottom:0;cursor:help}address{margin-bottom:1em;font-style:normal;line-height:inherit}input[type=text],input[type=password],input[type=number],textarea{-webkit-appearance:none}ol,ul,dl{margin-top:0;margin-bottom:1em}ol ol,ul ul,ol ul,ul ol{margin-bottom:0}dt{font-weight:500}dd{margin-bottom:.5em;margin-left:0}blockquote{margin:0 0 1em}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}pre,code,kbd,samp{font-size:1em;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace}pre{margin-top:0;margin-bottom:1em;overflow:auto}figure{margin:0 0 1em}img{vertical-align:middle;border-style:none}a,area,button,[role=button],input:not([type=range]),label,select,summary,textarea{touch-action:manipulation}table{border-collapse:collapse}caption{padding-top:.75em;padding-bottom:.3em;text-align:left;caption-side:bottom}input,button,select,optgroup,textarea{margin:0;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}button,html [type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{padding:0;border-style:none}input[type=radio],input[type=checkbox]{box-sizing:border-box;padding:0}input[type=date],input[type=time],input[type=datetime-local],input[type=month]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;margin:0;padding:0;border:0}legend{display:block;width:100%;max-width:100%;margin-bottom:.5em;padding:0;color:inherit;font-size:1.5em;line-height:inherit;white-space:normal}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important}mark{padding:.2em;background-color:#feffe6}:root{font-family:Noto Sans SC,Microsoft YaHei,sans-serif;color:#172b29;background:#f4f6f3;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px}button{font:inherit;cursor:pointer}button:disabled{cursor:not-allowed}h1,h2,h3,p{margin-top:0}.ant-btn-primary{background:#245a4f!important;box-shadow:none!important}.ant-btn-primary:hover{background:#367165!important}.ant-input:focus,.ant-input-focused,.ant-select-focused .ant-select-selector{border-color:#67978a!important;box-shadow:0 0 0 2px #d5e5df!important}.shell{display:flex;min-height:100vh}.sidebar{width:250px;min-width:250px;background:#143a33;color:#fff;min-height:100vh;display:flex;flex-direction:column;position:sticky;top:0;height:100vh;z-index:12}.sidebar-top{padding:29px 23px 0}.brand,.auth-brand{display:flex;align-items:center;gap:11px;font-family:"Noto Serif SC",serif;font-size:23px;font-weight:700;letter-spacing:3px}.brand span,.auth-brand small{font:400 11px Noto Sans SC,sans-serif;letter-spacing:2px;display:block;color:#a9c8bf;margin-top:2px}.brand-mark{display:grid;place-items:center;width:40px;height:40px;border:1px solid #9cbdb3;border-radius:10px;font-size:23px;line-height:1}.family-picker{margin:40px 17px 30px;padding:16px 13px 17px;background:#204a41;border:1px solid #37645a;border-radius:11px}.picker-label{font-size:12px;color:#b7cec6;display:flex;justify-content:space-between;margin-bottom:10px}.family-code{color:#e9d5a1}.family-picker .ant-select-selector{background:#fff!important;border:0!important}.nav-label{padding:0 28px;color:#95b7aa;font-size:11px;letter-spacing:2px;margin-bottom:10px}.side-nav{padding:0 12px;display:grid;gap:4px}.side-nav button{border:0;background:transparent;color:#bcd2ca;text-align:left;display:flex;align-items:center;gap:16px;padding:12px 16px;border-radius:8px;font-size:14px}.side-nav button:hover{background:#295349;color:#fff}.side-nav button.active{background:#356659;color:#fff;font-weight:600}.nav-glyph{font-family:"Noto Serif SC",serif;width:20px;text-align:center;font-size:18px;line-height:1}.side-bottom{margin-top:auto;padding:24px 20px 19px}.side-quote{border-top:1px solid #3a6259;border-bottom:1px solid #3a6259;padding:17px 6px;color:#d4e0d4;font-family:"Noto Serif SC",serif;font-size:12px;line-height:1.7}.side-quote span{display:block;text-align:right;color:#86a99d;font:11px Noto Sans SC,sans-serif;margin-top:7px}.account-row{display:flex;align-items:center;gap:10px;padding-top:18px}.avatar{height:34px;width:34px;border-radius:50%;background:#e9d9b2;color:#375248;display:grid;place-items:center}.account-name{min-width:0;flex:1}.account-name b{display:block;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-name small{display:block;color:#9fbdb2;font-size:11px;margin-top:2px}.dots{color:#b2cec2;background:transparent;border:0;font-size:22px}.main{flex:1;min-width:0}.topbar{height:72px;border-bottom:1px solid #e4eae5;display:flex;align-items:center;justify-content:space-between;background:#fff;padding:0 38px}.breadcrumbs{font-size:13px;color:#53635d}.breadcrumbs span{color:#b7c6bf;margin:0 10px}.top-actions{display:flex;align-items:center;gap:19px}.private-badge{font-size:12px;color:#71877d}.private-badge:before{content:"◈";margin-right:7px;color:#71998b}.main-content{max-width:1470px;margin:auto;padding:34px 40px 72px}.hero{background:#1c4a3e;color:#fff;border-radius:14px;min-height:310px;display:flex;justify-content:space-between;overflow:hidden;position:relative}.hero:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:radial-gradient(circle at 80% 40%,#447a675c,transparent 45%),linear-gradient(115deg,transparent 65%,#ffffff09 65.2%,transparent 65.4%);pointer-events:none}.hero-copy{padding:47px 0 44px 54px;z-index:1;max-width:600px}.hero-kicker{color:#d8c99c;letter-spacing:3px;font-size:12px}.hero h1{font-family:"Noto Serif SC",serif;font-size:46px;letter-spacing:5px;margin:16px 0 18px;font-weight:600}.hero-rule{width:38px;height:2px;background:#d1bc88;margin-bottom:19px}.hero p{font-size:14px;color:#d0e0d8;line-height:1.8}.hero-buttons{display:flex;gap:11px;margin-top:27px}.hero-buttons .ant-btn{height:38px;padding:0 21px}.hero-buttons .ant-btn-primary{background:#d8c28d!important;color:#183d34!important;font-weight:600}.ghost-btn{background:transparent!important;color:#fff!important;border-color:#829f8e!important}.hero-ornament{position:relative;min-width:315px;display:grid;place-items:center}.ornament-ring{width:228px;height:228px;border:1px solid #8cae92a8;border-radius:50%;position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;box-shadow:0 0 0 22px #acc1a20c,0 0 0 45px #acc1a20b}.ornament-ring:after{content:"";position:absolute;top:11px;right:11px;bottom:11px;left:11px;border:1px dashed #839e84aa;border-radius:50%}.ornament-ring span{font-family:"Noto Serif SC",serif;font-size:86px;color:#e5d4a4;line-height:1.2}.ornament-ring small{font-size:12px;letter-spacing:5px;color:#afcabd}.stats{display:grid;grid-template-columns:repeat(4,1fr);background:#fff;border:1px solid #e8ece7;border-radius:12px;margin:22px 0;box-shadow:0 3px 15px #153e3510}.stat{padding:23px 30px;position:relative}.stat+.stat:before{content:"";position:absolute;left:0;top:25px;bottom:25px;width:1px;background:#e8eee8}.stat span,.stat small{display:block;color:#778a81;font-size:12px}.stat strong{font-family:"Noto Serif SC",serif;font-size:31px;font-weight:600;line-height:1.6;color:#183c33}.stat small{color:#a2aea8}.overview-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:20px}.panel{background:#fff;border:1px solid #e6ebe5;border-radius:12px;box-shadow:0 3px 15px #153e3508}.overview-line,.generation-panel{min-height:335px;padding:25px 28px}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}.overline{display:block;font-size:10px;letter-spacing:2.5px;color:#8da195;font-weight:700;margin-bottom:8px}.panel-head h2{font-family:"Noto Serif SC",serif;font-size:20px;margin:0}.text-link{border:0;background:transparent;color:#347263;font-size:12px;white-space:nowrap}.text-link span{padding-left:6px}.recent-people{display:grid}.recent-person{border:0;border-top:1px solid #eef1ed;background:#fff;display:flex;align-items:center;text-align:left;gap:13px;padding:10px 0}.recent-person:hover{background:#f8faf7}.mini-avatar,.tile-avatar,.tree-avatar{background:#eaf1e8;color:#326453;display:grid;place-items:center;font-family:"Noto Serif SC",serif;border-radius:10px}.mini-avatar{height:38px;width:38px}.recent-person b,.recent-person small{display:block}.recent-person b{font-size:13px}.recent-person small{font-size:11px;color:#87988f;margin-top:3px}.end-arrow{margin-left:auto;color:#9aaca2}.generation-strip{display:flex;gap:9px;overflow-x:auto;padding:7px 0 17px}.generation-strip>div{min-width:50px;text-align:center}.generation-strip strong{display:grid;place-items:center;height:55px;background:#f4f6f0;border:1px solid #e9eee3;border-radius:7px;font:26px "Noto Serif SC",serif;color:#2f5e4c}.generation-strip small{display:block;color:#8f9f95;font-size:11px;margin-top:8px}.culture-preview{display:flex;gap:15px;border-top:1px solid #edf0eb;padding-top:22px;margin-top:11px}.culture-icon{width:39px;height:39px;flex:none;border:1px solid #c7b786;color:#a58d56;border-radius:50%;display:grid;place-items:center;font-family:"Noto Serif SC",serif}.culture-preview b{font-size:13px}.culture-preview p{font-size:12px;color:#89978d;line-height:1.6;margin:5px 0 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.page-heading{display:flex;justify-content:space-between;align-items:end;gap:16px;margin:2px 0 24px}.page-heading h1{font:600 30px "Noto Serif SC",serif;letter-spacing:1px;margin:0 0 7px}.page-heading p{font-size:13px;color:#78877e;margin:0}.page-heading .ant-btn{height:39px}.lineage-layout{display:grid;grid-template-columns:256px minmax(0,1fr);gap:20px;align-items:start}.lineage-controls{padding:24px;position:sticky;top:18px}.lineage-controls label{display:block;font-size:13px;font-weight:600;margin:0 0 11px}.mode-label{margin-top:24px!important}.segmented{display:flex;background:#f1f5f0;border-radius:8px;padding:4px}.segmented button{border:0;background:transparent;flex:1;padding:8px 0;color:#64766a;border-radius:6px;font-size:12px}.segmented button.active{background:#fff;color:#205246;font-weight:700;box-shadow:0 1px 5px #153b2b18}.lineage-hint{border-top:1px solid #ebeee9;margin-top:26px;padding-top:19px;color:#8a9b91;font-size:12px;line-height:1.9}.tree-area{min-height:600px;padding:29px 34px}.tree-title{display:flex;align-items:baseline;justify-content:space-between;padding-bottom:18px;border-bottom:1px solid #edf0eb}.tree-title span{font:600 19px "Noto Serif SC",serif}.tree-title small{color:#8c9c92;font-size:12px}.ancestor-tree{display:flex;align-items:center;flex-direction:column;padding:32px 0}.tree-person{display:flex;align-items:center;gap:15px;width:230px;text-align:left;background:#fff;border:1px solid #e0e8df;border-radius:10px;padding:13px 15px;box-shadow:0 3px 12px #193c3110}.tree-person:hover{border-color:#80aa94}.tree-person.focus{border-color:#4c816b;background:#f0f7ef;box-shadow:0 0 0 3px #dee9df}.tree-avatar{width:43px;height:43px;flex:none;font-size:18px}.tree-person b,.tree-person small{display:block}.tree-person b{font-size:14px}.tree-person small{color:#819589;font-size:11px;margin-top:4px}.tree-card-arrow{margin-left:auto;color:#93a99a}.tree-connector{height:38px;width:1px;background:#8fb3a0;position:relative}.tree-connector:after{content:"";position:absolute;bottom:0;left:-3px;width:7px;height:7px;transform:rotate(45deg);border-bottom:1px solid #8fb3a0;border-right:1px solid #8fb3a0}.tree-note{margin-top:22px;font-size:12px;color:#9aa79d;text-align:center;line-height:1.7}.desc-tree{padding-top:16px}.desc-level{padding:20px 0;border-bottom:1px dashed #dce6db}.level-caption{text-align:center;font-size:11px;color:#97a99c;margin-bottom:14px}.level-people{display:flex;justify-content:center;flex-wrap:wrap;gap:12px}.people-panel{padding:21px 23px;min-height:400px}.filter-row{display:flex;justify-content:space-between;align-items:center;color:#9aa99e;font-size:12px;margin-bottom:19px}.search-input{max-width:290px}.people-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.person-tile{display:flex;align-items:center;text-align:left;gap:14px;background:#fff;border:1px solid #e8ede7;border-radius:10px;padding:18px 17px;min-width:0}.person-tile:hover{border-color:#8cac9b;background:#fbfcfa}.tile-avatar{width:48px;height:48px;flex:none;font-size:20px}.tile-info{min-width:0;flex:1}.tile-info b,.tile-info small,.tile-info em{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tile-info b{font-size:15px}.tile-info small{font-size:12px;color:#5c8c74;margin:4px 0}.tile-info em{font-size:11px;font-style:normal;color:#9ba99e}.tile-arrow{color:#9ab0a1}.content-panel{padding:8px 28px;min-height:340px}.generation-row{display:flex;align-items:center;gap:22px;padding:17px 0;border-bottom:1px solid #edf0ec}.generation-row:last-child{border:0}.ordinal{color:#809387;font-size:13px;width:90px}.generation-char{font:26px "Noto Serif SC",serif;color:#285845;background:#f1f6ee;width:48px;height:48px;display:grid;place-items:center;border-radius:8px}.generation-note{flex:1;color:#86968a;font-size:13px}.muted-action{background:transparent;border:0;color:#9ca9a0;font-size:12px}.muted-action:hover{color:#b35e4a}.rule-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.rule-card{padding:28px;min-height:245px;display:flex;flex-direction:column}.rule-number{font-size:11px;letter-spacing:1px;color:#a58e5f}.rule-card h2{font:600 22px "Noto Serif SC",serif;margin:22px 0 11px}.rule-card p{white-space:pre-line;font-size:14px;color:#50665a;line-height:1.9;flex:1}.rule-foot{border-top:1px solid #edf0e8;padding-top:13px;color:#9caa9c;font-size:12px;display:flex;justify-content:space-between}.settings-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:20px}.settings-card{padding:27px}.account-settings,.danger-settings{margin-top:20px}@media(max-width:760px){.account-settings,.danger-settings{margin-top:14px}}.settings-card h2{font:600 20px "Noto Serif SC",serif;margin:0 0 22px}.form-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.form-row>.ant-form-item{min-width:0;flex:1}.settings-card .ant-form-item{margin-bottom:16px}.branch-item{border:1px solid #e7ede5;border-radius:8px;padding:11px 12px;margin-bottom:9px;font-size:13px}.branch-symbol{margin-right:12px;color:#478065}.setting-note{font-size:13px;color:#85968a;line-height:1.8}.add-branch{margin-top:11px}.settings-divider{height:1px;background:#e9eee7;margin:34px 0 25px}.empty-state{min-height:330px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:35px}.empty-icon{width:66px;height:66px;border-radius:50%;border:1px solid #c9d9c8;background:#f2f7ef;display:grid;place-items:center;color:#5a8b6b;font:29px "Noto Serif SC",serif;margin-bottom:19px}.empty-state h3{font:600 18px "Noto Serif SC",serif;margin:0 0 8px}.empty-state p{color:#94a296;font-size:13px}.empty-inline{font-size:13px;color:#86988c;line-height:2;padding:22px 0}.empty-inline button{border:0;background:none;color:#387b60;padding:0 5px}.detail-banner{text-align:center;background:#f3f7f1;padding:26px 10px;border-radius:10px;margin-bottom:25px}.detail-avatar{width:68px;height:68px;margin:0 auto 12px;border-radius:50%;background:#dce9d8;color:#315b49;font:31px "Noto Serif SC",serif;display:grid;place-items:center}.detail-banner h2{margin:0 0 4px;font:600 22px "Noto Serif SC",serif}.detail-banner p{color:#7c947e;font-size:12px;margin:0}.detail-section{border-bottom:1px solid #edf0e9;padding:2px 1px 21px;margin-bottom:20px}.detail-section h3{font-size:14px;margin:0 0 13px}.detail-pair{display:flex;justify-content:space-between;gap:20px;padding:8px 0;font-size:13px}.detail-pair span,.relation-group>span{color:#8a9b90}.detail-pair b{font-weight:500;text-align:right}.relation-group{display:flex;gap:15px;align-items:flex-start;font-size:13px;margin-bottom:12px}.relation-group>span{width:75px;flex:none}.relation-group>div{display:flex;flex-wrap:wrap;gap:7px}.relation-group button{background:#eff5ec;border:0;border-radius:5px;color:#356951;padding:4px 9px}.relation-group em{color:#aab5a9;font-style:normal}.detail-prose{white-space:pre-line;color:#52685d;line-height:1.9;font-size:13px}.drawer-actions{display:flex;flex-wrap:wrap;gap:8px}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}.auth-screen{min-height:100vh;background:#f3f5f1;position:relative;overflow:hidden}.auth-screen:before{content:"";position:absolute;width:650px;height:650px;background:#dfeae0;border-radius:50%;top:-400px;right:-200px}.auth-brand{position:relative;margin:35px max(5vw,30px);color:#1e5043}.auth-brand small{color:#729282}.auth-wrap{max-width:1110px;margin:9vh auto 0;padding:0 32px;display:grid;grid-template-columns:1fr 410px;align-items:center;gap:80px}.auth-intro{padding-bottom:60px}.eyebrow{font-size:12px;letter-spacing:4px;color:#71907a}.auth-intro h1{font:600 clamp(44px,5vw,72px)/1.35 "Noto Serif SC",serif;color:#173e33;letter-spacing:5px;margin:25px 0}.auth-intro h1 em{font-style:normal;color:#a28c5c}.auth-intro p{max-width:430px;font-size:15px;line-height:2;color:#6e8678}.auth-line{border-top:1px solid #cbd8cd;display:flex;gap:28px;padding-top:22px;margin-top:45px;font-size:12px;color:#607768}.auth-line span:before{content:"◇";color:#b29b62;margin-right:7px}.auth-card,.onboard-card{background:#fff;border:1px solid #e7eee7;border-radius:14px;padding:35px 38px 37px;box-shadow:0 25px 80px #254b3312;position:relative}.small-seal{font:20px "Noto Serif SC",serif;color:#bc9e6e;border:1px solid #c5ae86;width:39px;height:39px;display:grid;place-items:center;border-radius:4px;margin-bottom:21px}.auth-card h2{font:600 25px "Noto Serif SC",serif;margin:0 0 6px}.auth-card>p,.onboard-card>p{color:#8b9b8e;font-size:13px;line-height:1.8;margin-bottom:26px}.auth-card .ant-form-item{margin-bottom:18px}.auth-switch{font-size:12px;color:#89998b;text-align:center;margin-top:19px}.auth-switch a{color:#2c715a;margin-left:6px}.loading-screen{min-height:100vh;display:grid;place-items:center}.onboarding{display:flex;flex-direction:column}.onboard-card{width:min(500px,calc(100% - 32px));margin:5vh auto 30px}.onboard-card h1{font:600 30px "Noto Serif SC",serif;margin:11px 0}.logout-link{display:block;text-align:center;color:#82948a;font-size:12px;margin-top:20px}.menu-scrim,.mobile-menu,.side-close{display:none}@media(max-width:1100px){.sidebar{width:215px;min-width:215px}.main-content{padding:28px 25px 50px}.topbar{padding:0 25px}.overview-grid{grid-template-columns:1fr}.people-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.sidebar{position:fixed;left:0;top:0;bottom:0;transform:translate(-100%);transition:transform .2s;width:250px;min-width:250px}.sidebar-open{transform:translate(0)}.side-close{display:block;border:0;background:transparent;color:#fff;font-size:25px;margin-left:auto}.sidebar-top{display:flex;align-items:center}.menu-scrim{display:block;position:fixed;top:0;right:0;bottom:0;left:0;background:#102c27a8;z-index:11}.mobile-menu{display:block;border:0;background:none;color:#295c4a;font-size:22px;margin-right:13px;padding:4px}.topbar{height:60px;padding:0 17px}.breadcrumbs{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}.top-actions{gap:7px}.private-badge,.top-add{display:none}.main-content{padding:19px 15px 55px}.hero{min-height:247px}.hero-copy{padding:29px 25px;max-width:100%}.hero h1{font-size:33px;margin:15px 0}.hero p{font-size:12px}.hero-ornament{display:none}.stats{grid-template-columns:repeat(2,1fr);margin:15px 0}.stat{padding:14px 20px}.stat:nth-child(3):before{display:none}.stat strong{font-size:26px}.overview-grid,.lineage-layout,.settings-grid,.rule-grid{grid-template-columns:1fr;gap:14px}.overview-line,.generation-panel{padding:20px;min-height:0}.lineage-controls{position:static}.tree-area{min-height:460px;padding:20px}.page-heading{align-items:start;margin-top:8px}.page-heading h1{font-size:25px}.page-heading p{font-size:12px;line-height:1.6}.page-heading .ant-btn{white-space:nowrap}.people-grid{grid-template-columns:1fr}.people-panel{padding:16px}.auth-wrap{display:flex;flex-direction:column;gap:18px;margin:3vh auto 30px;padding:0 16px}.auth-intro{padding:0;align-self:stretch}.auth-intro h1{font-size:38px;margin:14px 0}.auth-intro p{font-size:13px;line-height:1.8}.auth-line{display:none}.auth-card{width:100%;padding:26px 24px}.auth-brand{margin:20px}.onboard-card{margin-top:5vh}.form-row{gap:9px}.generation-row{gap:10px}.ordinal{width:70px}.generation-note{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tree-person{width:min(230px,100%)}.desc-level .tree-person{width:180px}.desc-level .level-people{gap:8px}}@media(max-width:390px){.page-heading{display:block}.page-heading .ant-btn{margin-top:16px}.hero-buttons{gap:7px}.hero-buttons .ant-btn{padding:0 14px}.stat{padding:13px}.stat span,.stat small{font-size:11px}.desc-level .tree-person{width:100%}}.join-box{border-top:1px solid #e8eee5;margin-top:24px;padding-top:20px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.join-box span{font-size:12px;color:#778d7e;width:100%}.join-box .ant-input{flex:1;min-width:150px}.invite-box{display:flex;gap:9px;margin-top:19px}.invite-result{margin-top:13px;padding:12px;background:#f2f7f0;border-radius:8px}.invite-result p{font-size:12px;color:#69836f}.invite-result .ant-btn{margin-top:8px}.relation-chip{display:inline-flex;background:#eff5ec;border-radius:5px}.relation-chip button{background:transparent!important}.relation-chip .unlink{border-left:1px solid #d7e4d3;padding:4px 7px!important;color:#8ea595}.topbar{position:sticky;top:0;z-index:10;box-shadow:0 2px 12px #173c3210;gap:12px}.back-button{display:flex;align-items:center;gap:4px;flex:none;border:1px solid #dfe9e1;background:#f7faf6;color:#275c4b;border-radius:8px;padding:6px 11px;font-size:20px;line-height:1}.back-button span{font-size:13px;font-weight:600}.back-button:hover{background:#e8f3ea}.breadcrumbs{min-width:0;flex:1}.lineage-controls{top:90px}.segmented{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px}.people-group+.people-group{margin-top:26px}.people-group-heading{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e7eee7;margin-bottom:14px;padding:0 2px 11px;gap:8px}.people-group-heading h2{font:600 17px "Noto Serif SC",serif;color:#285947;margin:0}.people-group-heading span{font-size:12px;color:#87998a;white-space:nowrap}.family-tree{padding:20px 0 4px;text-align:center}.family-level-label{font-size:12px;font-weight:700;color:#678274;letter-spacing:2px;margin:6px 0 13px}.family-row{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:12px 20px}.family-unit{text-align:left;max-width:100%}.family-role{display:block;color:#799487;font-size:11px;margin:0 0 7px 5px}.partner-unit{position:relative}.partner-unit:before{content:"—";color:#83ad96;position:absolute;left:-16px;top:41px}.family-unit .tree-person{width:215px;max-width:100%}.family-link{height:36px;width:1px;background:#8fb3a0;margin:14px auto}.family-empty{font-size:12px;color:#9aab9d;padding:12px 0}.family-add{border:1px dashed #9cbba7;border-radius:7px;background:#f7fbf6;color:#347059;font-size:12px;padding:7px 11px;margin:10px auto 0}.inline-add{margin:19px 0 0}.family-children{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:12px;align-items:stretch;text-align:left}.child-unit{border:1px solid #e4ede4;border-radius:10px;background:#fcfdfb;padding:16px;min-width:0}.child-unit .family-row{justify-content:flex-start}.child-unit .tree-person,.child-unit .family-unit{width:100%}.child-unit .partner-unit{border-top:1px dashed #dce8de;padding-top:9px}.child-unit .partner-unit:before{content:"↳";top:17px;left:0}.child-unit .partner-unit .family-role{margin-left:16px}.family-note{color:#92a297;font-size:11px;line-height:1.7;margin:22px 0 0}@media(max-width:760px){.topbar{gap:7px}.back-button{padding:6px 8px}.back-button span{font-size:12px}.mobile-menu{margin:0 3px 0 0}.breadcrumbs{font-size:11px}.lineage-controls{position:static}.family-unit .tree-person{width:100%}.parent-row .family-unit{width:min(220px,100%)}.family-children{grid-template-columns:1fr}}.generation-strip{flex-wrap:wrap;overflow-x:visible;align-content:flex-start}.generation-strip>div{flex:0 0 50px}.person-relations{padding:16px;background:#f7faf6;border:1px solid #e2ebe0;border-radius:9px;margin:6px 0 20px}.person-relations-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.person-relations-head b{font-size:14px;color:#285947}.person-relations-head p,.person-relations-empty,.person-relation-example{font-size:12px;color:#819587;line-height:1.7;margin:5px 0 12px}.person-relations-head .ant-btn{flex:none}.person-relation-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 27px;align-items:end;gap:10px;margin-top:10px}.person-relation-row .ant-form-item{margin:0;min-width:0}.person-relation-remove{border:0;background:transparent;color:#a57669;font-size:22px;height:32px}.person-relation-example{margin:13px 0 0}@media(max-width:560px){.person-relations-head{display:block}.person-relations-head .ant-btn{margin-bottom:10px}.person-relation-row{grid-template-columns:minmax(0,1fr) 27px}.person-relation-row .ant-form-item:first-child{grid-column:1/2}.person-relation-row .ant-form-item:nth-child(2){grid-column:1/2}.person-relation-remove{grid-column:2;grid-row:1/3;align-self:center}}.child-order-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px;color:#315c49;font-size:12px}.child-sort-actions{display:flex;align-items:center;gap:5px}.child-sort-actions button{border:1px solid #dce8dd;background:#fff;border-radius:5px;color:#4c7860;min-height:29px;min-width:28px;padding:2px 6px}.child-sort-actions button:disabled{opacity:.38}.child-sort-actions .child-drag-handle{cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none;padding:3px 9px}.child-sort-actions .child-drag-handle:active{cursor:grabbing}.child-unit.child-dragging{opacity:.55}.child-unit.child-drop-target{border-color:#398464;box-shadow:0 0 0 2px #c6e1cc}.family-person-tile{display:block;padding:0;overflow:hidden}.person-tile-main{display:flex;align-items:center;gap:14px;width:100%;background:transparent;border:0;text-align:left;padding:18px 17px}.person-tile-main:hover,.tile-spouses button:hover{background:#f6faf5}.tile-spouses{border-top:1px solid #e9eee7;padding:9px 16px 13px;background:#fafcf9}.tile-spouse-label{display:block;font-size:11px;color:#829989;margin-bottom:5px}.tile-spouses button{width:100%;display:flex;align-items:center;gap:8px;text-align:left;border:0;background:transparent;padding:6px 4px;color:#365f4b;border-radius:5px;font-size:13px}.tile-spouses button small{font-size:11px;color:#99a89c;margin-left:auto}.inline-spouse-panel{background:#fbfcf8;border:1px solid #e4ebe0;border-radius:9px;padding:16px;margin:0 0 20px}.inline-spouse-existing{font-size:12px;color:#819587;margin:6px 0 12px}.inline-spouse-existing button{border:0;background:#edf5ea;color:#356951;border-radius:5px;padding:4px 9px;margin:0 5px}.inline-spouse-fields{border-top:1px solid #e8eee4;margin-top:10px;padding-top:15px}.inline-spouse-fields .ant-form-item{margin-bottom:12px}.branch-filter{display:flex;align-items:center;gap:10px;flex-wrap:wrap;border-bottom:1px solid #edf1eb;padding:0 0 19px;margin-bottom:20px}.branch-filter>span{font-size:12px;color:#738e7d}.branch-section+.branch-section{margin-top:32px}.branch-section-heading{display:flex;align-items:center;gap:10px;background:#f0f6ef;border-left:3px solid #4b8868;border-radius:5px;padding:11px 14px;margin-bottom:19px}.branch-section-heading .branch-symbol{margin:0;background:#dcebdd;color:#32644b;width:25px;height:25px;border-radius:5px;display:grid;place-items:center;font-size:12px}.branch-section-heading h2{margin:0;font:600 17px "Noto Serif SC",serif;color:#275740;min-width:0;overflow-wrap:anywhere}.branch-section-heading small{font-size:11px;color:#7c9580;margin-left:auto;white-space:nowrap}.people-group-heading h3{font:600 16px "Noto Serif SC",serif;color:#285947;margin:0}@media(max-width:760px){.branch-section-heading{gap:7px;padding:10px}.branch-section-heading h2{font-size:15px}}.member-order-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 12px 0;color:#8ba090;font-size:11px}.member-order-bar>div{display:flex;align-items:center;gap:4px}.member-order-bar button{min-width:25px;height:26px;border:1px solid #e0e9df;border-radius:5px;background:#fff;color:#4b7761;padding:2px 5px}.member-order-bar button:disabled{opacity:.35}.member-order-bar .member-drag-handle{cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none;padding:2px 8px}.member-order-bar .member-drag-handle:active{cursor:grabbing}.family-person-tile.member-dragging{opacity:.55}.family-person-tile.member-drop-target{border-color:#3e8767;box-shadow:0 0 0 2px #c8e4d0}.segmented{grid-template-columns:repeat(3,minmax(0,1fr))}.full-map{padding-top:15px}.map-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;color:#809586;font-size:11px;margin-bottom:12px}.map-toolbar>div{display:flex;align-items:center;gap:7px;flex:none}.map-toolbar button{border:1px solid #dce8dd;background:#fff;color:#3e7055;border-radius:5px;width:26px;height:26px}.map-toolbar b{min-width:37px;text-align:center;font-size:11px}.map-scroll{overflow:auto;max-height:72vh;border:1px solid #e6ede5;border-radius:8px;background:#fff;overscroll-behavior:contain}.map-note{font-size:11px;color:#8a9e8d;line-height:1.7;margin:12px 0 0}@media(max-width:760px){.map-toolbar{align-items:flex-start}.map-toolbar>span{line-height:1.6}}.generation-row{min-width:0}.generation-actions{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.generation-actions button{border:1px solid #dfe8dd;border-radius:5px;background:#fff;color:#4a7158;padding:4px 7px;font-size:12px;white-space:nowrap}.generation-actions button:disabled{opacity:.35}.generation-actions .generation-drag-handle{cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none}.generation-actions .generation-drag-handle:active{cursor:grabbing}.generation-actions .generation-delete{color:#9b6657}.generation-row.generation-dragging{opacity:.5}.generation-row.generation-drop-target{background:#edf6eb;box-shadow:inset 0 0 0 1px #7bab83}@media(max-width:760px){.generation-row{flex-wrap:wrap}.generation-note{flex:1;min-width:80px}.generation-actions{width:100%;padding-left:80px}}.generation-help{font-size:11px;color:#91a18f;line-height:1.6;margin-top:5px}.person-entry-modal.ant-modal{top:16px;max-width:calc(100vw - 20px);padding-bottom:16px}.person-entry-modal .ant-modal-body{max-height:calc(100vh - 130px);max-height:calc(100dvh - 130px);overflow-y:auto;overscroll-behavior:contain;padding-bottom:0}.person-entry-modal .modal-actions{position:sticky;bottom:0;z-index:1;background:#fff;padding:12px 0 16px;box-shadow:0 -8px 12px -12px #315b4940}@media(max-width:760px){.person-entry-modal.ant-modal{top:8px;padding-bottom:8px}.person-entry-modal .ant-modal-body{max-height:calc(100vh - 80px);max-height:calc(100dvh - 80px)}}.auth-screen:before{pointer-events:none}.auth-wrap{position:relative;z-index:1}@media(max-width:760px){.auth-screen:before{width:340px;height:340px;top:-230px;right:-140px;opacity:.55}.auth-wrap{margin:12px auto 30px;gap:24px}.auth-card{order:-1}.auth-intro h1{font-size:29px;line-height:1.4;letter-spacing:2px;margin:8px 0}.auth-intro p{margin-bottom:0}.sidebar{height:100vh;height:100dvh;overflow-y:auto;overscroll-behavior:contain}}
