:root{--bg:#f9f5ef;--cream:#fffdf9;--sage:#507b55;--sageDeep:#335d3c;--olive:#354d29;--peach:#ffddca;--peachDeep:#b96f55;--gold:#dcae5c;--ink:#342d27;--muted:#8a7d70;--line:#eee7de;--white:#fff;--soft:#f5efe7;--shadow:0 10px 32px rgba(86,63,37,.055),0 2px 7px rgba(86,63,37,.04);--radius:22px}
*{box-sizing:border-box}html{font-size:15px;-webkit-text-size-adjust:100%}body{margin:0;background:var(--bg);font-family:'Be Vietnam Pro','Segoe UI',system-ui,-apple-system,Arial,sans-serif;color:var(--ink);line-height:1.5}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #d8a75e;outline-offset:3px}a{text-decoration:none;color:inherit}svg{flex-shrink:0}h1,h2,h3,p{margin:0}h1,h2,h3{letter-spacing:-.04em}h1{font-size:clamp(1.75rem,3vw,2.5rem)}h2{font-size:1.35rem}h3{font-size:1.07rem}.muted{color:var(--muted)}.small{font-size:.86rem}.tiny{font-size:.75rem}.eyebrow{font-size:.71rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#8f947c}.money{font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:800;letter-spacing:-.04em}.positive{color:#377547}.negative{color:#bb5b50}.center{text-align:center}.hidden{display:none!important}
button{border:0;background:none;color:inherit}button.primary{background:linear-gradient(125deg,#47774d,#2d5d3b);color:white;border-radius:15px;padding:13px 20px;font-weight:750;box-shadow:0 5px 14px #49784c30;display:inline-flex;align-items:center;justify-content:center;gap:8px}button.primary:hover{filter:brightness(1.06)}button.primary:disabled{opacity:.55;cursor:wait}button.secondary{background:#f3eee5;border:1px solid #e7dfd4;padding:11px 16px;border-radius:13px;font-weight:700}button.iconbtn{width:42px;height:42px;display:inline-grid;place-items:center;border:1px solid #ece5da;border-radius:14px;background:#fffaf4}button.link{font-size:.83rem;color:var(--sageDeep);font-weight:800;display:flex;gap:3px;align-items:center;padding:4px 0}.app-layout{display:flex;min-height:100dvh}.sidebar{width:248px;flex-shrink:0;background:#fffdfa;border-right:1px solid #eae6dd;padding:28px 18px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;gap:10px;align-items:center;margin:0 0 36px;padding:0 8px}.brand-logo{width:46px;height:46px;display:grid;place-items:center;background:#eaf1e3;border-radius:15px;color:#588060}.brand-name{font-family:Georgia,serif;font-size:1.22rem;font-weight:800;color:#315539;line-height:1.12;white-space:nowrap}.brand-sub{font-size:.73rem;color:#b0a08f;margin-top:4px}.nav-section{color:#aba092;font-size:.68rem;font-weight:800;letter-spacing:.16em;padding:14px 14px 8px}.nav-link{display:flex;gap:13px;align-items:center;border-radius:13px;padding:12px 14px;margin-bottom:4px;color:#887a6c;font-weight:690;font-size:.91rem;width:100%;text-align:left}.nav-link:hover{background:#f8f4ec}.nav-link.active{background:#e6eee0;color:#315c3b}.nav-link svg{width:20px;height:20px}.sidebar-bottom{margin-top:auto;padding:14px 8px;border-top:1px solid var(--line)}.mini-avatar{width:38px;height:38px;border-radius:50%;background:#edf0e1;color:#446849;display:grid;place-items:center;font-size:1.1rem;font-weight:800}.sidebar-user{display:flex;align-items:center;gap:10px}.content-wrap{flex:1;min-width:0}.topbar{height:77px;padding:0 clamp(20px,4vw,54px);display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ebe5db;background:#fffcf7e5;position:sticky;top:0;z-index:20;backdrop-filter:blur(16px)}.topbar h2{font-size:1.03rem;font-weight:800}.topbar .top-sub{font-size:.76rem;color:#a5998a}.topbar-right{display:flex;align-items:center;gap:12px}.topbar .avatar{width:40px;height:40px;border-radius:50%;background:linear-gradient(140deg,#f6dac4,#e0eccc);color:#416741;display:grid;place-items:center}.scope-select,.family-select{border:1px solid #e9e0d4;border-radius:13px;padding:10px 12px;background:#fffefa;color:#55493c;font-weight:700;max-width:170px}.main{max-width:1320px;margin:0 auto;padding:28px clamp(18px,3vw,45px) 60px}.view-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px;gap:14px}.view-head p{margin-top:3px}.page-title{font-size:1.9rem;font-weight:850;color:#384d34}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:22px 0 12px}.section-heading h2{font-size:1.19rem;color:#413629;display:flex;align-items:center;gap:8px}.section-heading h2 svg{color:#62815e}.soft-card{background:rgba(255,253,249,.96);border:1px solid #f3e9de;box-shadow:var(--shadow);border-radius:var(--radius)}
.hero{min-height:260px;display:grid;grid-template-columns:49% 51%;overflow:hidden;position:relative;background:linear-gradient(100deg,#fdf1d9 0%,#fff5e6 60%,#f4e9dd 100%);border:1px solid #f0e2ce;border-radius:27px;box-shadow:var(--shadow)}.hero-image{position:relative;overflow:hidden;min-height:255px}.hero-image img{position:absolute;width:100%;height:100%;object-fit:cover;object-position:50% 37%}.hero-image:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent 80%,#fff3e3e0)}.hero-copy{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:9px;padding:24px 22px 26px 6px;position:relative;z-index:2}.hero-copy .logo-mark{color:#b1773e;display:flex;align-items:center;gap:8px;font-size:.79rem}.hero-copy h1{font-family:Georgia,'Times New Roman',serif;font-size:clamp(2.15rem,4.2vw,3.6rem);color:#354c27;font-weight:800;letter-spacing:-.05em;line-height:1.06}.hero-copy .chip{background:#f8e0c1;color:#8b5837;padding:6px 13px;border-radius:999px;font-weight:650;font-size:.88rem}.hero-copy .tagline{font-family:Georgia,serif;font-size:1.05rem;color:#9d5e48;font-style:italic;line-height:1.35}.hero-spark{position:absolute;right:6%;bottom:8%;font-size:1.8rem;color:#eaa88d;opacity:.65}
.hero-illustration{font-size:6rem}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(360px,.9fr);gap:22px;margin-top:22px}.balance-card{background:radial-gradient(circle at 95% 15%,#93a870 0%,transparent 37%),linear-gradient(125deg,#3c714c,#2a5739);color:#fff;min-height:192px;border-radius:26px;position:relative;overflow:hidden;padding:25px 30px;box-shadow:0 15px 35px #456f4630}.balance-card .balance-label{display:flex;align-items:center;gap:8px;color:#e4f0dc;font-weight:700}.balance-card .balance-number{font-size:clamp(2.15rem,3.6vw,3.3rem);letter-spacing:-.06em;margin:8px 0 14px}.balance-footer{display:inline-flex;align-items:center;gap:7px;background:#e4f1d7e3;border-radius:999px;color:#2d6339;padding:6px 13px;font-size:.82rem;font-weight:760}.balance-deco{position:absolute;right:18px;bottom:4px;font-size:6rem;opacity:.83;filter:drop-shadow(0 5px 8px #173e2555)}.stats-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin-top:14px}.stat-card{display:flex;align-items:center;gap:14px;padding:18px 20px;min-height:98px}.stat-card.income{background:linear-gradient(110deg,#edf5e5,#fffef6)}.stat-card.expense{background:linear-gradient(120deg,#fff0e8,#fffdf9)}.round-icon{width:48px;height:48px;border-radius:50%;background:#e3efdc;display:grid;place-items:center;color:#4e824e;flex-shrink:0}.expense .round-icon{color:#b16e55;background:#f9dfd0}.stat-card .money{font-size:1.5rem;color:#384c2d}.stat-card.expense .money{color:#82503f}.quick-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:14px}.quick-button{padding:16px 5px 13px;display:flex;align-items:center;flex-direction:column;gap:9px;font-size:.82rem;font-weight:750;border:1px solid #efe6de;background:#fffdfb;border-radius:19px;box-shadow:var(--shadow);transition:transform .18s,box-shadow .18s}.quick-button:hover{transform:translateY(-2px);box-shadow:0 13px 20px #65533b15}.quick-button .tile-ico{width:47px;height:47px;border-radius:16px;display:grid;place-items:center;background:#f7e8d7;color:#c18744}.quick-button:nth-child(2) .tile-ico{background:#f9e1e3;color:#ce7a8c}.quick-button:nth-child(3) .tile-ico{background:#e9f1e2;color:#4d8056}.quick-button:nth-child(4) .tile-ico{background:#f9ebca;color:#bb8a35}
.month-card{padding:22px;height:100%;min-height:350px}.month-card .eyebrow{margin-bottom:4px}.monthly-total{font-size:2rem;color:#394d36;margin:6px 0 16px}.flow-bars{height:135px;display:flex;align-items:flex-end;gap:11px;padding:14px 6px 0;border-bottom:1px dashed #d9d0c0}.flow-col{flex:1;display:flex;justify-content:end;flex-direction:column;gap:4px;height:100%;align-items:center}.flow-rect{width:100%;max-width:27px;min-height:5px;border-radius:8px 8px 2px 2px;background:linear-gradient(#abc696,#6e9b68)}.flow-col:nth-child(even) .flow-rect{background:linear-gradient(#f3c8ad,#e1a080)}.flow-label{font-size:.64rem;color:#9d9184}.chart-legend{display:flex;gap:14px;font-size:.79rem;color:#88796c;margin-top:13px}.legend-dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:#6e9b68;margin-right:5px}.chart-legend .alt{background:#e1a080}.category-list{margin-top:14px;display:grid;gap:10px}.category-row{display:grid;grid-template-columns:minmax(110px,1fr) 2.1fr auto;align-items:center;gap:10px;font-size:.78rem;color:#7c6c5b}.category-track,.progress-track{height:8px;border-radius:30px;background:#ece6de;overflow:hidden}.category-fill{height:100%;background:linear-gradient(90deg,#93ae80,#56885d);border-radius:30px}.category-row .money{font-size:.78rem;color:#6d6156}
.lower-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:10px}.event-tile{display:flex;align-items:center;gap:14px;padding:13px;min-height:142px}.event-art{width:112px;height:105px;border-radius:16px;object-fit:cover;background:#f4e9d6}.event-details{flex:1;min-width:0}.event-details h3{color:#5a3e2e;margin-bottom:4px}.event-details .small{font-size:.79rem;margin-bottom:3px}.progress-track{margin:11px 0 4px;height:9px}.progress-fill{height:100%;border-radius:20px;background:linear-gradient(90deg,#eeb1a7,#e18e94)}.progress-fill.green{background:linear-gradient(90deg,#a8c58d,#6a9a5b)}.list-card{padding:8px 20px}.transaction-row{display:flex;align-items:center;gap:13px;padding:13px 3px;border-bottom:1px solid var(--line);min-width:0}.transaction-row:last-child{border-bottom:0}.transaction-icon{width:48px;height:48px;border-radius:16px;background:#f5e8d8;color:#c58a4c;display:grid;place-items:center}.transaction-row:nth-child(3n+2) .transaction-icon{background:#f1e7f1;color:#9c7a9e}.transaction-row:nth-child(3n) .transaction-icon{background:#e9f0e0;color:#62865b}.transaction-name{font-weight:770;font-size:.91rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.transaction-sub{font-size:.77rem;color:#9d9184}.transaction-amount{margin-left:auto;font-size:.94rem}.transaction-main{min-width:0;flex:1}.transaction-top{display:flex;gap:14px}.data-card{padding:20px;margin-top:16px}.filter-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.filter-pill{border:1px solid #e9ded4;border-radius:999px;padding:9px 15px;background:#fffdf8;color:#776759;font-weight:750;font-size:.81rem}.filter-pill.active{background:#466d4b;color:#fff;border-color:#466d4b}.data-row{padding:16px;border:1px solid #f0e8df;border-radius:16px;margin-top:12px;background:#fffdfa;display:flex;align-items:center;gap:14px}.data-row h3{margin-bottom:3px}.data-row .data-right{margin-left:auto;text-align:right}.data-icon{width:50px;height:50px;border-radius:15px;background:#edf1e6;color:#5b815c;display:grid;place-items:center}.empty-state{text-align:center;padding:50px 16px;color:#947f6e}.empty-state .empty-icon{display:grid;place-items:center;width:72px;height:72px;border-radius:23px;background:#f4ebe0;color:#b69166;margin:0 auto 15px}.empty-state h3{color:#4a3e34;margin-bottom:5px}.empty-state p{max-width:400px;margin:0 auto 17px}.overview-columns{display:grid;grid-template-columns:1.3fr .7fr;gap:20px}.summary-pill{background:#eef3e8;border-radius:15px;padding:13px 15px;color:#3e6744;font-weight:760}.person-avatars{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px}.person-card{background:#fffdfa;border:1px solid #efe6dc;border-radius:20px;padding:23px 16px;text-align:center;box-shadow:var(--shadow)}.person-card .person-bubble{width:67px;height:67px;border-radius:50%;display:grid;place-items:center;font-size:1.65rem;margin:0 auto 10px;background:linear-gradient(145deg,#ffe1d2,#e5efdb)}.badge{display:inline-flex;font-size:.7rem;font-weight:800;border-radius:999px;padding:4px 10px;background:#eaf1e5;color:#456f49}.badge.alt{background:#faeae5;color:#ae776a}.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.feature-card{padding:22px;display:flex;flex-direction:column;gap:12px}.feature-card .feature-icon{height:58px;width:58px;border-radius:19px;background:#f3e5d4;display:grid;place-items:center;color:#b28b5e}.feature-card .money{font-size:1.25rem}.feature-card p{color:#948679;font-size:.83rem}
.bottom-nav{display:none}.mobile-title{display:none}.overlay{position:fixed;inset:0;z-index:80;background:#2c302659;display:flex;align-items:center;justify-content:center;padding:16px;backdrop-filter:blur(5px)}.modal{background:#fffdf9;border:1px solid #f7eade;box-shadow:0 40px 90px #211a183f;border-radius:26px;width:min(520px,100%);max-height:90dvh;overflow:auto;padding:25px}.modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.modal h2{font-size:1.42rem;color:#39563c}.form-grid{display:grid;gap:14px}.field{display:flex;flex-direction:column;gap:6px}.field label{font-size:.8rem;font-weight:800;color:#736254}.field input,.field select{border:1px solid #e8ded3;border-radius:13px;padding:13px 14px;background:#fff;color:#3e352e;min-width:0;width:100%;font-size:.94rem}.field input:focus,.field select:focus{border-color:#7ca478;outline:3px solid #a7ca982e}.form-two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.form-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:9px}.form-actions button{flex:1}.direction-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:5px 0 7px}.direction-tabs button{border:1px solid #e8e0d6;padding:12px 4px;border-radius:13px;font-weight:750;color:#78695a;background:#fff9f3}.direction-tabs button.active{background:#e7eee2;border-color:#9bba98;color:#3c6945}.login-wrap{min-height:100dvh;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(360px,.9fr);background:#fbf7f0}.login-illustration{position:relative;overflow:hidden;display:flex;align-items:flex-end;background:#f3e4d2}.login-illustration>img{position:absolute;width:100%;height:100%;object-fit:cover;object-position:52% 28%;filter:saturate(.95)}.login-illustration:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#32573bbb 0%,transparent 45%)}.login-quote{position:relative;z-index:2;padding:60px;color:white;font-family:Georgia,serif;font-size:clamp(1.8rem,3vw,3rem);max-width:680px;line-height:1.18}.login-panel{display:flex;align-items:center;justify-content:center;padding:50px 26px}.login-box{width:min(400px,100%)}.login-box .brand-logo{margin-bottom:24px;width:58px;height:58px}.login-box h1{font-family:Georgia,serif;color:#344f37;font-size:2.6rem}.login-box p{color:#938475;margin:9px 0 28px}.login-box .form-grid{gap:19px}.login-box .primary{width:100%;margin-top:8px}.login-foot{font-size:.77rem;margin-top:25px;color:#a1978c}.boot-loader{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:7px;min-height:100dvh;color:#456b47}.boot-loader .leaf{font-size:2.2rem;color:#e99f9d}#toast{position:fixed;bottom:32px;right:30px;z-index:120;background:#355f3f;color:white;box-shadow:0 13px 35px #20341a38;border-radius:13px;padding:13px 17px;max-width:min(430px,90vw);opacity:0;pointer-events:none;transform:translateY(14px);transition:opacity .2s,transform .2s}#toast.show{opacity:1;transform:translateY(0)}#toast.error{background:#974d43}
@media(max-width:1060px){.sidebar{width:205px;padding:23px 11px}.brand-name{font-size:1rem}.main{padding:24px 20px 80px}.dashboard-grid{grid-template-columns:1fr}.month-card{min-height:285px}.hero{min-height:230px}}
@media(max-width:740px){html{font-size:14px}.sidebar{display:none}.topbar{height:63px;padding:0 17px;position:sticky}.topbar h2{font-size:.95rem}.topbar-right{gap:8px}.scope-select{max-width:108px;padding:8px 6px;font-size:.74rem}.family-select{max-width:130px;padding:8px;font-size:.76rem}.topbar .avatar{height:35px;width:35px}.topbar .top-sub{display:none}.main{padding:15px 14px calc(100px + env(safe-area-inset-bottom))}.view-head{margin-bottom:17px}.view-head h1{font-size:1.6rem}.hero{min-height:205px;grid-template-columns:52% 48%;border-radius:22px}.hero-image{min-height:205px}.hero-image img{object-position:48% 37%}.hero-copy{padding:15px 10px 16px 1px;gap:7px}.hero-copy h1{font-size:clamp(1.85rem,7vw,2.6rem)}.hero-copy .chip{font-size:.67rem;padding:4px 9px}.hero-copy .tagline{font-size:.79rem}.hero-copy .logo-mark{font-size:.67rem}.hero-spark{display:none}.dashboard-grid{margin-top:12px;gap:13px}.balance-card{min-height:166px;padding:20px;border-radius:23px}.balance-card .balance-number{font-size:clamp(2.05rem,8vw,3.05rem)}.balance-deco{font-size:4.4rem;bottom:4px;right:10px}.balance-footer{font-size:.7rem;max-width:calc(100% - 48px)}.stats-grid{gap:9px;margin-top:10px}.stat-card{padding:12px 10px;gap:8px;min-height:85px;border-radius:18px}.round-icon{width:40px;height:40px}.stat-card .money{font-size:1.34rem}.quick-grid{gap:8px;margin-top:10px}.quick-button{padding:11px 2px;border-radius:17px;font-size:.71rem;gap:6px}.quick-button .tile-ico{height:43px;width:43px}.month-card{min-height:auto;padding:18px}.flow-bars{height:90px}.lower-grid{grid-template-columns:1fr;gap:0}.event-tile{min-height:123px}.event-art{height:90px;width:98px}.section-heading{margin:18px 0 9px}.section-heading h2{font-size:1.08rem}.list-card{padding:5px 12px}.transaction-row{padding:11px 2px;gap:9px}.transaction-icon{width:43px;height:43px}.transaction-name{font-size:.86rem}.transaction-amount{font-size:.82rem}.bottom-nav{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;bottom:0;left:0;right:0;height:calc(72px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);z-index:32;background:#fffdf9ee;backdrop-filter:blur(18px);border-top:1px solid #ebe6dc;box-shadow:0 -8px 24px #342a2011}.bottom-item{color:#928475;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;font-size:.65rem;font-weight:700}.bottom-item.active{color:#38623f}.bottom-item.primary-plus{margin-top:-17px}.bottom-item.primary-plus .plus-circle{width:53px;height:53px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#f8b777,#f18d5b);border:4px solid #fff;box-shadow:0 5px 12px #bd6b4238;color:white}.overview-columns,.grid-3{grid-template-columns:1fr}.data-card{padding:14px}.data-row{padding:13px}.data-row .money{font-size:.91rem}.modal{max-height:95dvh;padding:19px;border-radius:22px}.overlay{align-items:flex-end;padding:0}.modal{width:100%;border-radius:24px 24px 0 0;padding-bottom:calc(24px + env(safe-area-inset-bottom))}.login-wrap{grid-template-columns:1fr}.login-illustration{min-height:250px;max-height:250px}.login-illustration img{object-position:center 30%}.login-quote{font-size:1.4rem;padding:18px}.login-panel{align-items:flex-start;padding:35px 24px}.login-box h1{font-size:2.2rem}}
@media(max-width:360px){.hero{min-height:177px}.hero-image{min-height:177px}.hero-copy h1{font-size:1.64rem}.hero-copy .chip{font-size:.61rem}.hero-copy .tagline{font-size:.69rem}.topbar .topbar-title{display:none}.balance-card{padding:16px}.balance-card .balance-number{font-size:1.9rem}.balance-deco{font-size:3.4rem}.stats-grid .stat-card{padding:9px 6px}.round-icon{width:34px;height:34px}.stat-card .money{font-size:1.1rem}.quick-button .tile-ico{width:40px;height:40px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
