@charset "UTF-8";
:root{--green:#244c3b;--ink:#253b31;--muted:#829087;--line:#e4e8df;--cream:#f7f8f2;--gold:#b68b49}*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--ink);font:14px 'Be Vietnam Pro',Arial,sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer}button:hover{filter:brightness(.96)}button:focus-visible,a:focus-visible{outline:3px solid #c5a76b}button{border:0;background:none;color:inherit}aside{width:238px;position:fixed;inset:0 auto 0 0;background:#fff;border-right:1px solid var(--line);padding:32px 22px;display:flex;flex-direction:column}.brand{display:flex;gap:12px;align-items:center;padding:0 10px 32px}.brand-icon{background:var(--green);color:#e2d4a6;border-radius:13px;width:43px;height:43px;display:grid;place-items:center;font-size:27px}.brand b{font:700 23px 'Noto Serif',Georgia,serif}.brand small{display:block;font-size:9px;letter-spacing:2px;margin-top:5px;color:var(--muted)}.family{background:#f7f8f2;border:1px solid var(--line);border-radius:10px;padding:15px;margin-bottom:26px}.family small{display:block;color:var(--muted);font-size:10px;margin-bottom:8px}.family b{font-size:13px}.nav-label{font-size:10px;letter-spacing:1.5px;color:#98a097;padding:0 13px;margin:14px 0}nav button{width:100%;padding:14px 13px;text-align:left;margin:3px 0;border-radius:8px;color:#768278;display:flex;align-items:center;gap:12px;font-size:12px}nav button.active{background:#edf2e9;color:var(--green);font-weight:650}nav button span{font-size:18px;width:22px}.sidebar-bottom{margin-top:auto;border-top:1px solid var(--line);padding:23px 10px 0;font-size:11px;color:var(--muted);line-height:1.8}main{margin-left:238px}header{height:84px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 36px}.breadcrumb{font-size:12px;color:#89928a}.breadcrumb b{color:var(--ink);font-weight:500}.account{display:flex;gap:18px;align-items:center}.avatar{width:36px;height:36px;border-radius:50%;background:#e7edde;display:grid;place-items:center;color:var(--green);font-size:12px;font-weight:600}.account small{display:block;color:var(--muted);font-size:10px;margin-top:4px}.content{padding:32px 36px}.page-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:27px}h1{font:600 29px 'Noto Serif',Georgia,serif;margin:0 0 9px}p{color:var(--muted);font-size:12px;line-height:1.8;margin:0}.actions{display:flex;gap:10px}.btn{padding:12px 17px;border-radius:7px;background:#fff;border:1px solid #dfe5da;font-size:11px;font-weight:500}.btn.primary{background:var(--green);color:#fff;border-color:var(--green)}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:25px}.stat{background:#fff;border:1px solid var(--line);border-radius:10px;padding:20px;display:flex;gap:15px;align-items:center}.stat-icon{width:43px;height:43px;background:#f0f3e9;color:#7c926b;border-radius:10px;display:grid;place-items:center;font-size:22px}.stat:nth-child(2) .stat-icon{background:#f8f1e5;color:#b29460}.stat:nth-child(3) .stat-icon{background:#ecf1f6;color:#829bb3}.stat:nth-child(4) .stat-icon{background:#f5eded;color:#b48b86}.stat small{font-size:10px;color:var(--muted)}.stat strong{display:block;font-size:25px;font-weight:600;margin-top:5px}.layout{display:grid;grid-template-columns:minmax(0,1fr) 283px;gap:23px}.panel{background:white;border:1px solid var(--line);border-radius:11px;overflow:hidden}.panel-title{padding:21px 22px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.panel-title h2{font-size:14px;margin:0;font-weight:600}.tag{font-size:9px;color:#8b987d;background:#f2f5ed;padding:6px 9px;border-radius:5px}.toolbar{padding:16px;display:flex;gap:8px;border-bottom:1px solid var(--line);flex-wrap:wrap}.search{flex:1;min-width:130px;position:relative}.search input{width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:6px;font-size:10px;background:#fafbf8;color:var(--ink)}select{border:1px solid var(--line);border-radius:6px;padding:8px;color:#6f7f71;background:white;font-size:10px}.tree-viewport{height:425px;position:relative;overflow:auto;background-color:#fafbf7;background-image:radial-gradient(#dfe4d8 1px,transparent 1px);background-size:17px 17px}.tree{width:750px;height:390px;position:relative;transform-origin:top left;transition:transform .15s}.tree svg{position:absolute;inset:0;width:750px;height:390px;pointer-events:none}.person{position:absolute;width:144px;background:white;border:1px solid #dfe6d7;border-radius:7px;padding:12px 8px;text-align:center;box-shadow:0 3px 7px #273c2d06}.person:hover{border-color:#8caa76;box-shadow:0 4px 12px #244c3b16}.person.root{border-top:3px solid var(--gold);background:#fffef9}.person .portrait{margin:auto auto 8px;background:#eaf0e3;border:3px solid #f8faf5;width:37px;height:37px;border-radius:50%;display:grid;place-items:center;font-size:16px;color:#76916a}.person.female .portrait{background:#f3eae2;color:#b39282}.person b{display:block;font-size:10px;font-weight:600}.person small{display:block;font-size:8px;color:#94a08f;margin-top:5px}.person .gen{position:absolute;right:6px;top:6px;font-size:7px;color:#9ca68f}.tree-footer{padding:13px 18px;display:flex;justify-content:space-between;align-items:center;font-size:9px;color:var(--muted)}.legend{display:flex;gap:14px}.dot{display:inline-block;width:6px;height:6px;background:#9db58e;border-radius:50%;margin-right:5px}.dot.gold{background:#c5a36a}.zoom{position:absolute;bottom:16px;right:16px;display:flex;background:white;border:1px solid var(--line);border-radius:6px;box-shadow:0 2px 7px #00000008;z-index:2}.zoom button{padding:9px 12px;font-size:12px}.side-stack{display:grid;gap:20px;align-content:start}.events{padding:6px 19px}.event{display:flex;gap:12px;padding:16px 0;border-bottom:1px solid #f0f2eb}.event:last-child{border:0}.date{width:42px;flex-shrink:0;background:#f5f1e7;border-radius:7px;text-align:center;padding:8px 3px;color:#a68a55}.date b{display:block;font-size:18px}.date small{font-size:8px}.event h3{font-size:10px;margin:3px 0 7px;font-weight:600}.event p{font-size:9px;line-height:1.7}.event label{display:block;font-size:8px;color:#a28b61;margin-top:7px}.quote{padding:24px;background:var(--green);color:white;border-radius:10px;position:relative}.quote .symbol{font:48px Georgia;color:#aabd9a;height:34px}.quote p{color:#e0e8d6;font:italic 15px/1.9 'Noto Serif',Georgia,serif}.quote small{display:block;font-size:8px;letter-spacing:1.5px;margin-top:17px;color:#b9c9af}.bottom{margin-top:24px}.table{width:100%;border-collapse:collapse;font-size:11px}.table th{text-align:left;padding:14px 20px;background:#fafbf8;color:var(--muted);font-size:9px;font-weight:500}.table td{padding:15px 20px;border-top:1px solid #eef0e9}.pill{background:#edf4e8;color:#799267;padding:5px 8px;border-radius:5px;font-size:9px}.foot{display:flex;justify-content:space-between;font-size:9px;color:#a2aa9d;padding-top:25px}.empty{padding:50px;text-align:center;color:var(--muted)}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.resource{padding:25px}.resource h3{font-size:14px}.resource p{margin-bottom:20px}.modal-backdrop{position:fixed;inset:0;background:#15291f65;z-index:10;display:grid;place-items:center;backdrop-filter:blur(3px)}.modal{width:480px;max-width:94vw;background:white;padding:28px;border-radius:13px;max-height:90vh;overflow:auto}.modal h2{font:600 23px 'Noto Serif',Georgia,serif;margin:0 0 20px}.modal label{display:block;font-size:11px;margin:14px 0 6px}.modal input,.modal select,.modal textarea{width:100%;padding:11px;border:1px solid var(--line);border-radius:6px}.modal .actions{justify-content:flex-end;margin-top:23px}.detail-avatar{width:70px;height:70px;background:#edf2e8;border-radius:50%;display:grid;place-items:center;font-size:30px;margin-bottom:18px}.detail-row{padding:12px 0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;font-size:12px}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:var(--green);color:white;padding:14px 24px;border-radius:9px;z-index:20;font-size:12px}body.horizontal .tree{transform-origin:top left}body.horizontal .tree svg{opacity:.4}@media(min-width:1550px){.tree{margin-left:calc((100% - 750px)/2)}}@media(max-width:1150px){aside{width:200px;padding:24px 15px}main{margin-left:200px}.content{padding:25px}.layout{grid-template-columns:1fr}.side-stack{grid-template-columns:1fr 1fr}.stats{gap:10px}.stat{padding:15px;gap:9px}.stat-icon{width:32px;height:36px}.account-name{display:none}}@media(max-width:700px){aside{position:static;width:100%;padding:15px}.brand{padding:0 0 15px}.family,.nav-label,.sidebar-bottom{display:none}nav{display:flex;overflow:auto}nav button{min-width:125px;padding:10px}main{margin:0}header{height:60px;padding:0 18px}.content{padding:22px 14px}.page-top{display:block}.actions{margin-top:17px}h1{font-size:25px}.stats{grid-template-columns:1fr 1fr}.side-stack,.cards{grid-template-columns:1fr}.table td,.table th{padding:13px 10px}.stat strong{font-size:22px}.account{gap:8px}.foot{line-height:1.8}.tree-viewport{height:420px}}
@media print{aside,header,.actions,.toolbar,.zoom,.side-stack,.foot{display:none}main{margin:0}.layout{display:block}.tree-viewport{overflow:visible}.content{padding:0}.panel{break-inside:avoid}}
/* PHP application layout */
body{font-family:"Segoe UI",Arial,sans-serif}h1,h2,.brand b{font-family:Georgia,"Times New Roman",serif}a{color:inherit;text-decoration:none}input,select,textarea{color:var(--ink)}a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #9aad83;outline-offset:2px}.brand{color:var(--ink)}.brand-icon{flex-shrink:0}.family{line-height:1.7}.family small{font-size:9px}nav a{width:100%;padding:14px 13px;margin:3px 0;border-radius:8px;color:#768278;display:flex;align-items:center;gap:12px;font-size:12px}nav a.active{background:#edf2e9;color:var(--green);font-weight:650}nav a span{font-size:18px;width:22px}.sidebar-bottom a{display:block;margin-bottom:12px}.sidebar-bottom p{font-size:10px;margin-bottom:12px}.breadcrumb span{margin:0 12px}.account{font-size:11px}.account small{display:block}.btn{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap}.text-btn{font-size:11px;padding:4px 0;color:#7b8c6b;display:inline-block}.text-btn:hover{text-decoration:underline}.danger{color:#b25e54}.inline{display:inline;margin-left:10px}.notice{background:#eaf2e3;border:1px solid #d9e5cf;padding:15px 18px;color:#47683c;font-size:12px;border-radius:8px;margin:0 0 22px;line-height:1.7}.notice.error{background:#fbefeb;border-color:#efd5cb;color:#a25344}.toolbar{align-items:center}.toolbar .search{padding:10px 12px;border:1px solid var(--line);border-radius:6px;font-size:11px;background:#fafbf8}.toolbar .btn{padding:9px 14px}.tree-viewport{height:520px;cursor:grab;touch-action:pan-x pan-y}.tree-viewport.dragging{cursor:grabbing;user-select:none}.tree-canvas{position:relative;min-width:100%;min-height:100%}.tree-lines{position:absolute;left:0;top:0;pointer-events:none}.parent-line{stroke:#b8c9ac;stroke-width:1.4;fill:none}.spouse-line{stroke:#bf9e62;stroke-width:2;fill:none;stroke-dasharray:4 3}.person{width:152px;min-height:112px;display:block}.person b{font-size:11px;line-height:1.5;overflow-wrap:anywhere}.person small{font-size:9px}.person.deceased{border-top:3px solid #bea06c;background:#fffef9}.person .portrait img{width:100%;height:100%;object-fit:cover;border-radius:50%}.tree-footer{gap:8px}.zoom{position:static;box-shadow:none;flex-shrink:0}.zoom button{padding:6px 10px}.hint{font-size:9px;margin-left:9px}.events-list{padding:0 18px}.event{color:inherit}.event:hover h3{color:#a68a55}.date-box{width:44px;min-width:44px;border-radius:7px;background:#f5f1e7;text-align:center;padding:8px 3px;color:#a68a55;height:53px}.date-box b{display:block;font-size:19px}.date-box small{font-size:8px}.event h3{line-height:1.5}.muted{font-size:9px;color:var(--muted)}.quote>div{font:48px Georgia;color:#aabd9a;height:34px}.quote p{font-family:Georgia,serif;font-size:16px}.table-wrap{overflow:auto}.table td{font-size:12px;line-height:1.6}.member-name{font-weight:600}.member-name:hover{color:var(--gold)}.subtext{display:block;font-size:10px;color:var(--muted);margin-top:4px}.pill.gold{background:#f4efe2;color:#a38956}.nowrap{white-space:nowrap}.section-note{padding:18px 22px;background:#fafbf7;border-bottom:1px solid var(--line);font-size:11px}.resource-icon{font-size:32px;color:#a68a55;margin-bottom:18px}.resource{overflow-wrap:anywhere}.resource p{min-height:65px}.resource-actions{display:flex;align-items:center;gap:14px}.fund-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-bottom:25px}.fund-summary section{padding:25px;border:1px solid var(--line);border-radius:10px;background:white}.fund-summary small{font-size:10px;color:#8c9785}.fund-summary strong{display:block;font-size:25px;margin-top:10px}.fund-summary .balance{background:var(--green);color:white}.fund-summary .balance small{color:#c3d0ba}.award{padding:22px;display:flex;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line)}.award h3{font-size:14px;margin:0 0 12px}.award b{font-size:12px;font-weight:500}.award p{margin-top:10px}.account-panel{max-width:650px}.form-body{padding:25px}.form-body h3{margin-top:30px}.form-body input{display:block;width:100%;padding:12px;border:1px solid var(--line);border-radius:6px;margin:8px 0 16px}.form-body label{font-size:12px}footer{display:flex;justify-content:space-between;gap:18px;padding-top:27px;color:#9aa392;font-size:10px}.modal{width:560px;padding:26px}.modal.wide{width:650px}.modal-heading{display:flex;justify-content:space-between;gap:15px;align-items:flex-start;margin-bottom:15px}.modal-heading h2{margin:0;font:600 24px Georgia,serif}.close-modal{font-size:26px;color:#9aa392;line-height:1}.modal input[type=file]{font-size:11px;background:#fafbf8}.modal .check input,.check input{width:auto;padding:0}.check{display:flex!important;align-items:center;gap:8px;color:var(--muted);font-size:10px!important;line-height:1.6}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.form-actions{border-top:1px solid var(--line);padding-top:19px;align-items:center}.help{font-size:10px;margin:13px 0 0}.detail-avatar{width:70px;height:70px}.detail-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}.detail-row{gap:18px;font-size:12px;line-height:1.7}.detail-row span{color:var(--muted);white-space:nowrap}.detail-row b{font-weight:500;text-align:right}.prose{font-size:13px;line-height:1.9;margin:22px 0;overflow-wrap:anywhere;color:#697a65}.modal h3{font-size:13px;margin-top:22px}.children-links{display:flex;gap:8px;flex-wrap:wrap}.auth-body{min-height:100vh;display:grid;place-items:center;padding:35px;background:#edf0e6}.auth-shell{width:930px;max-width:100%;display:grid;grid-template-columns:1fr 1fr;background:#fff;border-radius:18px;overflow:hidden;box-shadow:0 20px 70px #244c3b0d}.auth-story{background:var(--green);padding:45px;color:white;position:relative;overflow:hidden}.auth-story .brand{color:white;padding:0 0 45px}.auth-story .brand-icon{background:#ffffff15}.auth-story .brand small{color:#bcccad}.auth-story h2{font:500 36px/1.5 Georgia,serif;margin:0 0 22px}.auth-story p{color:#c1cfb6;line-height:2.2;font-size:13px}.auth-story>small{color:#b5c9aa;font-size:10px;display:block;margin-top:100px}.auth-tree{font-size:210px;position:absolute;bottom:20px;right:0;color:#ffffff0a;pointer-events:none}.auth-form{padding:45px 40px}.auth-form h1{font-size:27px;margin-bottom:15px}.auth-form>p{margin-bottom:25px}.auth-form label{display:block;margin:17px 0 7px;font-size:11px}.auth-form input{width:100%;padding:12px;border:1px solid var(--line);border-radius:7px}.auth-form .check input{width:auto}.auth-form .full{width:100%;margin-top:25px}.auth-note{text-align:center;font-size:9px;color:#a0aa98;margin-top:30px}
@media(max-width:1150px){.sidebar{width:200px}.stats{grid-template-columns:repeat(4,1fr)}.stat small{font-size:9px}.page-top{gap:15px}.actions{flex-wrap:wrap}.cards{grid-template-columns:repeat(2,1fr)}.tree-viewport{height:490px}.auth-shell{width:850px}.fund-summary strong{font-size:20px}}@media(max-width:700px){.sidebar{width:100%;position:static}.sidebar nav a{min-width:136px;padding:10px}.sidebar nav{display:flex;overflow:auto}.stats{grid-template-columns:repeat(2,1fr)}.breadcrumb{font-size:10px}.breadcrumb span{margin:0 6px}.account>div:last-child{display:none}.cards{grid-template-columns:1fr}.fund-summary{gap:8px}.fund-summary section{padding:15px 10px}.fund-summary strong{font-size:14px}.fund-summary small{font-size:8px}.form-grid{grid-template-columns:1fr}.auth-shell{grid-template-columns:1fr}.auth-story{padding:25px}.auth-story .brand{padding:0}.auth-story h2,.auth-story>p,.auth-story>small{display:none}.auth-form{padding:30px 24px}.auth-body{padding:15px}.hint{display:none}.table td{font-size:11px}footer{flex-direction:column;font-size:9px}.modal{padding:23px}.page-top .actions{gap:6px}.btn{padding:10px 12px}.sidebar-bottom{display:block;padding:8px 0 0;border:0}.sidebar-bottom p,.sidebar-bottom>a{display:none}.sidebar-bottom form{text-align:right}.tree-footer{font-size:8px}}
@media print{.sidebar,header,.page-top .actions,.toolbar,.zoom,.side-stack,footer,.modal-backdrop,.text-btn,.resource-actions,.notice{display:none!important}main{margin:0}.content{padding:0}.tree-viewport{height:auto;overflow:visible}.tree-canvas{zoom:.65!important}.layout{display:block}.tree-footer .hint{display:none}.stats{grid-template-columns:repeat(4,1fr)}.panel{overflow:visible}.table-wrap{overflow:visible}.table{font-size:10px}.table td,.table th{padding:8px}body{background:white}}

/* Vietnamese typography and emerald theme — self-hosted fonts */
@font-face{font-family:'GiaPha Vietnamese';src:url('fonts/BeVietnamPro-Regular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:'GiaPha Vietnamese';src:url('fonts/BeVietnamPro-SemiBold.ttf') format('truetype');font-style:normal;font-weight:500 600;font-display:swap}
@font-face{font-family:'GiaPha Vietnamese';src:url('fonts/BeVietnamPro-Bold.ttf') format('truetype');font-style:normal;font-weight:650 900;font-display:swap}
:root{--green:#018f41;--ink:#193c2b;--muted:#667d70;--line:#dceae2;--cream:#f4f9f6;--gold:#ad853d;--green-soft:#e7f6ed;--green-dark:#006f32;--font-ui:'GiaPha Vietnamese','Segoe UI',Arial,sans-serif}
body,button,input,select,textarea,h1,h2,h3,h4,.brand b,.quote p,.quote>div,.modal h2,.modal-heading h2,.auth-story h2,.auth-form h1{font-family:var(--font-ui);font-synthesis:none}
body{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;line-height:1.6}
h1{font-size:28px;font-weight:700;line-height:1.5}h2,h3{line-height:1.6}.panel-title h2{font-size:14px;font-weight:600}.brand b{font-size:23px;font-weight:700;line-height:1.4}.brand small{letter-spacing:1.2px;font-size:8px;line-height:1.8}.brand-icon{background:var(--green);color:#fff}.family{background:#f1faf5}.family b{font-size:12px}.nav-label{color:#708b7b;letter-spacing:1px}nav a{font-size:12px;color:#617d6d}nav a.active{background:var(--green-soft);color:var(--green-dark)}nav a:hover{background:#f0f9f4;color:var(--green-dark)}nav a.active:hover{background:#def2e6}.avatar{background:var(--green-soft);color:var(--green-dark)}.btn{border-color:#d2e5d9;font-weight:600}.btn.primary{background:#018f41;border-color:#018f41;color:#fff}.btn.primary:hover{background:var(--green-dark);border-color:var(--green-dark);filter:none}.btn:not(.primary):hover{background:#edf8f2;border-color:#9bcfaf}.text-btn{color:var(--green-dark)}.text-btn.danger{color:#b25046}.member-name:hover,.event:hover h3{color:var(--green-dark)}.stat .stat-icon,.stat:nth-child(2) .stat-icon,.stat:nth-child(3) .stat-icon,.stat:nth-child(4) .stat-icon{background:var(--green-soft);color:var(--green)}.stat strong{font-size:26px;font-weight:600}.stat small{font-size:11px}.tag{background:var(--green-soft);color:var(--green-dark)}.pill{background:#e8f6ee;color:#146d3c}.pill.gold{background:#f6f0e3;color:#866627}.table th{background:#f4faf6;color:#587462;font-size:10px}.table td{font-size:12px}.subtext{font-size:10px;color:#6d8576}.table tbody tr:hover{background:#fafdfb}.tree-viewport{background-color:#f6fbf8;background-image:radial-gradient(#cfdfd5 1px,transparent 1px)}.parent-line{stroke:#87c6a1}.person{border-color:#c8e4d3}.person:hover{border-color:var(--green);box-shadow:0 4px 14px #018f411c}.person .portrait{background:var(--green-soft);color:var(--green)}.person b{font-size:10px;font-weight:600;line-height:1.7}.person small{color:#6a8575;line-height:1.8}.person .gen{color:#637e6e}.dot{background:var(--green)}.dot.gold{background:#b5985c}.quote{background:#018f41}.quote p{color:#fff;font-style:normal;font-size:14px;line-height:2}.quote>div{color:#c1efd4}.quote small{color:#ddf5e7}.date-box{background:var(--green-soft);color:var(--green-dark)}.event h3{font-size:11px}.event p{font-size:10px}.notice{background:#e8f7ee;border-color:#c8e8d5;color:#14663a}.notice.error{background:#fbefeb;border-color:#efd5cb;color:#a25344}.fund-summary .balance{background:#018f41}.fund-summary .balance small{color:#d5f2e2}.fund-summary strong{font-size:23px}.resource-icon{color:var(--green)}.resource h3{font-weight:600}.detail-avatar{background:var(--green-soft);color:var(--green)}.prose{color:#4d6a59}.auth-body{background:#eff8f3}.auth-story{background:#018f41}.auth-story .brand{color:white}.auth-story .brand small{color:#ddf5e7}.auth-story .brand-icon{background:#ffffff20}.auth-story h2{font-size:32px;line-height:1.7;font-weight:600}.auth-story p,.auth-story>small{color:#e4f8ec}.auth-form h1{font-size:25px;line-height:1.7;font-weight:700}.auth-form label,.modal label{line-height:1.8}.modal-heading h2{font-size:22px;line-height:1.6;font-weight:700}.quote small{letter-spacing:1px}input:focus-visible,select:focus-visible,textarea:focus-visible,button:focus-visible,a:focus-visible{outline:2px solid #018f41;outline-offset:3px}.check input{accent-color:#018f41}.search:focus,input:focus,select:focus,textarea:focus{border-color:#5fb887}.resource p,.modal p{overflow-wrap:anywhere}footer{color:#6d8576}.auth-note{color:#6d8576}
@media(max-width:700px){h1{font-size:24px}.brand b{font-size:22px}.stat small{font-size:10px}.stat strong{font-size:24px}.fund-summary strong{font-size:13px}.table td{font-size:11px}.modal-heading h2{font-size:20px}.auth-form h1{font-size:23px}.sidebar nav a{font-size:11px;min-width:136px}.quote p{font-size:13px}}
/* Review release: notifications and mobile usability */
.menu-toggle,.menu-scrim{display:none}.notification-link{display:flex;gap:6px;align-items:center;color:var(--green-dark);margin-left:auto;margin-right:22px;font-size:20px}.notification-link span{font-size:10px;background:var(--green-soft);padding:2px 7px;border-radius:20px}.reminder-banner{display:flex;align-items:center;gap:18px;padding:17px 20px;border:1px solid #abd9be;border-radius:9px;background:#e8f7ee;color:#136a38;font-size:12px;margin:0 0 23px}.reminder-banner a{margin-left:auto;font-weight:600}.reminder-banner span{line-height:1.8}.checklist{padding:8px 22px}.checklist>div{display:flex;justify-content:space-between;gap:20px;padding:15px 0;border-bottom:1px solid var(--line);font-size:12px}.checklist>div:last-child{border:0}.check-ok{color:#087c3d}.check-warning{color:#a56914}.finding{padding:18px 22px;border-bottom:1px solid var(--line)}.finding p{margin-top:7px}.memorial-config{border-top:1px solid var(--line);padding-top:15px;margin-top:25px}.memorial-config .btn{margin-top:18px}.memorial-config .check{font-size:12px!important;color:var(--ink)}.memorial-config .check input{width:18px;height:18px}.date-box{width:52px;min-width:52px;height:auto;min-height:57px}.date-box small{font-size:7px;white-space:nowrap}.layout>*,.stat>*,.cards>*,.page-top>*,.content{min-width:0}.table-wrap{overscroll-behavior-x:contain}.form-actions{flex-wrap:wrap}.modal-backdrop{padding:12px}.modal{max-height:calc(100dvh - 24px);overscroll-behavior:contain}.event h3{overflow-wrap:anywhere}
@media(max-width:1100px){.page-top{align-items:flex-start;flex-wrap:wrap}.page-top .actions{margin-top:8px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){
 body.menu-open{overflow:hidden}.sidebar{position:fixed!important;inset:0 auto 0 0;width:285px;max-width:85vw;height:100dvh;z-index:50;padding:24px 18px;transform:translateX(-100%);transition:transform .2s;overflow-y:auto;display:flex;flex-direction:column;box-shadow:8px 0 30px #12362415}.menu-open .sidebar{transform:translateX(0)}.sidebar .brand{padding-bottom:23px}.sidebar .family,.sidebar .nav-label{display:block}.sidebar .family{margin-bottom:12px}.sidebar nav{display:flex;flex-direction:column;overflow:visible;gap:3px}.sidebar nav a{width:100%;min-width:0;min-height:48px;font-size:13px;padding:12px}.sidebar-bottom{margin-top:auto;border-top:1px solid var(--line);padding:20px 10px 0}.sidebar-bottom>a,.sidebar-bottom p{display:block}.sidebar-bottom form{text-align:left}.sidebar-bottom .text-btn{min-height:44px}.menu-scrim:not([hidden]){display:block;position:fixed;inset:0;background:#102f2166;z-index:45;width:100%;height:100%;padding:0}.menu-toggle{display:grid;place-items:center;width:44px;height:44px;flex-shrink:0;background:var(--green-soft);border-radius:8px;color:var(--green-dark);font-size:22px;margin-right:10px}header{height:72px;padding:0 12px;gap:4px}.breadcrumb{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;flex:1}.breadcrumb span{margin:0 5px}.notification-link{margin:0 5px;width:42px;min-height:44px;justify-content:center;gap:2px;font-size:17px}.notification-link span{font-size:9px;padding:1px 5px}.account .avatar{width:32px;height:32px}.content{padding:24px 12px}.page-top{margin-bottom:24px}.page-top .actions{width:100%;gap:7px;margin-top:18px}.page-top .actions .btn{min-height:44px;padding:10px 11px;font-size:11px}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.stat{padding:15px 12px;gap:9px}.stat strong{font-size:25px}.stat small{font-size:10px;line-height:1.7;display:block}.stat-icon{width:32px;min-width:32px}.layout{gap:18px}.panel-title{padding:18px 16px;gap:10px;flex-wrap:wrap}.toolbar{padding:13px;gap:9px}.toolbar .search{width:100%;flex-basis:100%;min-height:44px;font-size:16px}.toolbar select{flex:1;min-width:0;min-height:44px;font-size:12px}.toolbar .btn{min-height:44px}.table{min-width:610px}.table th{font-size:10px}.table td,.table th{padding:14px}.table td{font-size:12px}.table .text-btn{padding:10px 2px}.subtext{font-size:10px}.tree-viewport{height:440px;-webkit-overflow-scrolling:touch}.tree-footer{padding:12px;gap:7px;flex-wrap:wrap}.zoom button{min-width:36px;min-height:38px}.reminder-banner{padding:14px;gap:7px;align-items:flex-start;flex-direction:column;font-size:11px}.reminder-banner a{margin-left:0;padding:5px 0}.fund-summary{grid-template-columns:1fr;gap:10px}.fund-summary section{padding:17px;display:flex;justify-content:space-between;align-items:center}.fund-summary small{font-size:10px}.fund-summary strong{font-size:19px;margin:0}.award{padding:18px;flex-direction:column;gap:8px}.award .text-btn{padding:8px 0}.modal-backdrop{align-items:center}.modal,.modal.wide{width:100%;max-width:100%;padding:21px 17px;border-radius:11px}.modal h2{font-size:20px}.close-modal{min-width:36px;min-height:36px;text-align:right}.modal input:not([type=checkbox]):not([type=hidden]),.modal select,.modal textarea,.form-body input{font-size:16px;min-height:44px}.modal label{font-size:12px}.modal .btn{min-height:44px}.form-grid{grid-template-columns:1fr}.auth-body{padding:12px}.auth-form{padding:27px 20px}.auth-form input{font-size:16px;min-height:44px}.auth-form .check input{min-height:0}.auth-form .btn{min-height:46px}.auth-form h1{font-size:22px}.checklist{padding:6px 16px}.checklist>div{font-size:11px;gap:10px;align-items:flex-start}.checklist b{white-space:nowrap}.detail-row{flex-wrap:wrap;gap:4px}.detail-row b{overflow-wrap:anywhere}.prose{font-size:13px}.form-body{padding:20px 16px}
}
@media(prefers-reduced-motion:reduce){.sidebar{transition:none}}
@media print{.menu-toggle,.menu-scrim,.notification-link,.reminder-banner,.sidebar{display:none!important}header{display:none!important}.table{min-width:0}.table-wrap{overflow:visible}.stat{break-inside:avoid}}
@media(min-width:701px) and (max-width:1100px){.fund-summary{grid-template-columns:1fr}.fund-summary section{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px}.fund-summary strong{margin:0;font-size:22px}.award{flex-wrap:wrap}.account-panel{max-width:100%}}
.mobile-menu-close{display:none}@media(max-width:700px){.mobile-menu-close{display:grid;place-items:center;position:absolute;top:9px;right:8px;width:36px;height:36px;font-size:25px;color:var(--green-dark);border-radius:7px}.sidebar .brand{padding-top:19px}.table-wrap::before{content:'↔ Vuốt ngang để xem thêm các cột';display:block;padding:10px 14px;background:#f5faf7;color:#637e6d;font-size:9px}}
