:root{--ink:#173e3b;--deep:#154d48;--muted:#70817b;--mint:#dcece4;--bg:#f7f8f4;--line:#e2e9e3;--white:#fff;--rose:#df8d7b;--gold:#dca95c;--shadow:0 13px 36px rgba(25,59,49,.055);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--ink);font-size:15px}*{box-sizing:border-box}body{margin:0;background:var(--bg)}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.4}a{color:inherit}.app-root{min-height:100vh}.loading{min-height:95vh;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;color:var(--deep)}.load-icon{font-size:55px}.shell{display:flex;max-width:1660px;margin:auto;min-height:100vh}.sidebar{width:258px;background:#e5eee8;padding:28px 18px;position:sticky;top:0;height:100vh;flex-shrink:0;display:flex;flex-direction:column;gap:27px}.brand{display:flex;gap:11px;align-items:center}.brandmark{background:var(--deep);color:#e7f5e8;width:43px;height:43px;display:flex;align-items:center;justify-content:center;border-radius:14px;font-size:25px;box-shadow:0 4px 8px #16484018}.brand h1{font-size:21px;letter-spacing:-.8px;margin:0}.brand small{font-size:10px;color:var(--muted)}.sidebar-label{color:#719188;font-size:10px;letter-spacing:1.5px;font-weight:800;margin:2px 12px 6px}.navlist{display:grid;gap:5px}.navbtn{border:0;background:transparent;color:#4e6963;border-radius:12px;padding:13px 14px;text-align:left;font-weight:700;display:flex;gap:12px;align-items:center}.navbtn.active{background:white;color:var(--deep);box-shadow:0 2px 8px #123c3212}.navbtn:hover{background:#ffffffaa}.nav-ico{font-size:17px;width:21px}.sidebar-bottom{margin-top:auto}.privacy-note{background:#fff;border-radius:16px;padding:16px;font-size:12px;line-height:1.7;color:var(--muted)}.privacy-note strong{display:block;color:var(--deep);margin-bottom:3px}.version{font-size:10px;color:#75958d;margin-top:14px}.main{padding:30px clamp(18px,4.1vw,66px) 100px;flex:1;min-width:0}.topstrip{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.eyebrow{font-size:11px;letter-spacing:1.8px;color:#64887e;font-weight:850;text-transform:uppercase}.monthtools{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.chip,.btn{border:1px solid var(--line);border-radius:11px;background:#fff;color:var(--deep);padding:10px 14px;font-weight:750}.chip:hover,.btn:hover{border-color:#a2bfb3}.btn.primary{background:var(--deep);color:white;border-color:var(--deep)}.btn.primary:hover{background:#22665d}.btn.soft{background:#edf4ec}.btn.ghost{background:transparent}.btn.danger{border-color:#ecc0b7;color:#a54938}.btn.mini{padding:7px 10px;font-size:12px}.btn.block{width:100%}.btn:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #4a8e81;outline-offset:2px}input,select,textarea{border:1px solid #d6e2da;border-radius:10px;background:white;color:var(--ink);padding:12px 13px;width:100%;min-height:42px}textarea{min-height:90px;resize:vertical}label{font-size:12px;font-weight:750;display:block;margin-bottom:7px;color:#4d6a61}.row{display:flex;gap:12px;align-items:center}.between{justify-content:space-between}.wrap{flex-wrap:wrap}.gap-sm{gap:7px}.grow{flex:1}.muted{color:var(--muted)}.tiny{font-size:12px}.hide{display:none!important}.page-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:24px}.page-header h2{font-size:clamp(26px,3vw,38px);letter-spacing:-1.2px;margin:5px 0 6px}.page-header p{margin:0;color:var(--muted);font-size:13px;line-height:1.6}.hero{background:linear-gradient(110deg,#154d48,#2e786b);color:#fff;padding:29px 31px;border-radius:22px;margin-bottom:22px;display:flex;align-items:center;justify-content:space-between;min-height:140px}.hero h3{margin:0 0 8px;font-size:24px;letter-spacing:-.7px}.hero p{margin:0;color:#e0f0e8;font-size:13px;max-width:510px;line-height:1.6}.hero-icon{font-size:52px;opacity:.85}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:25px}.stat{background:#fff;border:1px solid var(--line);border-radius:17px;padding:19px;box-shadow:var(--shadow);min-width:0}.stat small{font-size:12px;color:#668077;display:block;margin-bottom:13px}.stat strong{font-size:clamp(19px,2vw,27px);letter-spacing:-1px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.stat em{display:block;font-style:normal;font-size:11px;color:var(--muted);margin-top:6px}.stat.negative strong{color:#ad614d}.stat.green strong{color:#177e6b}.cols{display:grid;grid-template-columns:1.3fr 1fr;gap:16px}.card{background:#fff;border:1px solid var(--line);border-radius:19px;padding:23px;box-shadow:var(--shadow);min-width:0}.card h3{font-size:17px;margin:0 0 17px;letter-spacing:-.25px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:9px;margin:23px 0 12px}.section-title h3{margin:0;font-size:17px}.progressline{margin-bottom:17px}.bar-top{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;margin-bottom:7px}.bar-top strong{font-weight:800}.track{height:10px;border-radius:20px;background:#eef2eb;overflow:hidden}.fill{height:100%;border-radius:20px;transition:width .25s}.budget-list{display:grid;gap:8px}.groupbox{background:#f5f8f3;border-radius:14px;padding:13px 15px}.groupbox strong{font-size:13px}.empty{padding:30px 14px;text-align:center;color:var(--muted);background:#f6f8f5;border-radius:14px}.empty-icon{font-size:38px;margin-bottom:10px}.muted-box{background:#f2f6f1;border:1px solid #e5ede3;border-radius:14px;padding:16px;color:#536e63;font-size:13px;line-height:1.6}.notice{padding:15px 17px;border:1px solid #c7e2d2;border-radius:15px;background:#ecf7ef;margin-bottom:16px;color:#315b46;font-size:13px;line-height:1.6}.notice.warning{border-color:#eddcc2;background:#fff9ec;color:#816334}.notice.demo{border-color:#c7dfec;background:#edf6fc;color:#386584}.notice strong{font-weight:800}.txrow{display:flex;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid #edf0eb}.txrow:last-child{border:0}.txicon{width:39px;height:39px;border-radius:12px;background:#eef3ef;display:flex;align-items:center;justify-content:center;font-size:19px;flex-shrink:0}.txtext{min-width:0;flex:1}.txtext strong{display:block;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.txtext small{display:block;font-size:11px;color:var(--muted);margin-top:5px}.txamount{font-size:13px;font-weight:900;white-space:nowrap}.txamount.income{color:#267b5e}.txamount.expense{color:#bb6d56}.txamount.saving{color:#478c9a}.pill{border-radius:99px;background:#e4eee6;color:#326856;padding:5px 9px;font-size:11px;font-weight:800;white-space:nowrap}.pill.warn{background:#fff1d7;color:#a66b31}.type-options{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.typebtn{padding:12px;border-radius:11px;border:1px solid #dce4dd;background:#fff;color:#58766c;font-weight:800}.typebtn.selected{background:#e5f1e9;border:2px solid #276b5c;color:#165446}.typebtn.saving.selected{background:#e6f2f9;border-color:#468696}.typebtn.income.selected{background:#e6f2e9;border-color:#31775a}.typebtn.expense.selected{background:#fff2ed;border-color:#ad725e}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.field{min-width:0}.full{grid-column:1/-1}.help{font-size:11px;color:#82938a;margin-top:6px;line-height:1.5}.modal-back{position:fixed;inset:0;background:rgba(14,35,29,.55);display:flex;align-items:center;justify-content:center;z-index:50;padding:15px}.modal{background:#fff;width:min(560px,100%);max-height:min(92dvh,870px);overflow:auto;border-radius:21px;box-shadow:0 22px 60px #0c2a234a}.modal-head{padding:22px 23px 14px;display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);align-items:center}.modal-head h3{margin:0;font-size:20px}.modal-body{padding:20px 23px}.modal-foot{padding:14px 23px 20px;display:flex;justify-content:flex-end;flex-wrap:wrap;gap:9px;border-top:1px solid var(--line)}.xbtn{border:0;background:#edf3ee;width:31px;height:31px;border-radius:50%;color:#426357;font-size:18px}.labels-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.filterbar{display:grid;grid-template-columns:1fr 1fr 1.3fr;gap:10px;margin-bottom:15px}.tablehead{display:flex;gap:10px;color:var(--muted);font-size:11px;font-weight:850;text-transform:uppercase;letter-spacing:1px;padding-bottom:10px;border-bottom:1px solid var(--line)}.budget-edit{border-bottom:1px solid #eaf0e9;padding:16px 0}.budget-edit:last-child{border:0}.budget-edit-grid{display:grid;grid-template-columns:1.2fr .7fr 1fr;gap:11px;align-items:end}.smallnote{font-size:12px;color:var(--muted);line-height:1.6}.summary-row{display:flex;gap:10px;align-items:center;justify-content:space-between;padding:13px 0;border-bottom:1px solid #edf0eb}.summary-row:last-child{border:0}.summary-row strong{font-size:14px}.summary-row span{color:var(--muted);font-size:12px}.year-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:7px;align-items:end;height:180px;border-bottom:1px solid var(--line);padding-bottom:13px}.yearcell{height:100%;display:flex;align-items:center;justify-content:flex-end;flex-direction:column;gap:7px;min-width:0}.yearcell .vbar{width:min(100%,40px);height:var(--height);min-height:2px;background:linear-gradient(#4aab9b,#1d6a5b);border-radius:8px 8px 2px 2px}.yearcell small{font-size:10px;color:var(--muted)}.year-table{width:100%;border-collapse:collapse;font-size:12px}.year-table th{text-align:left;font-size:11px;color:#657c73;padding:12px 8px;border-bottom:1px solid var(--line)}.year-table td{padding:12px 8px;border-bottom:1px solid #ecf1ec}.year-table th:not(:first-child),.year-table td:not(:first-child){text-align:right}.gridcards{display:grid;grid-template-columns:1fr 1fr;gap:14px}.setting{background:#fff;border:1px solid var(--line);border-radius:19px;padding:23px}.setting h3{font-size:17px;margin:0 0 11px}.divider{height:1px;background:var(--line);margin:16px 0}.install-pop{max-width:500px}.install-icon{background:#e7f1eb;border-radius:15px;display:inline-flex;align-items:center;justify-content:center;width:55px;height:55px;font-size:33px;margin-bottom:13px}.install-steps{border:1px solid #dfebe3;border-radius:14px;padding:14px 16px;margin-top:12px;background:#fafcfa}.install-steps p{font-size:12px;line-height:1.65;margin:10px 0}.install-tab{display:flex;gap:6px;flex-wrap:wrap}.tab{border:1px solid var(--line);border-radius:9px;background:white;color:#47685b;font-weight:800;font-size:12px;padding:9px 10px}.tab.active{background:#1d5b4f;color:#fff}.quickbar{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 24px}.mobile-nav{display:none}.toast{position:fixed;z-index:99;bottom:24px;left:50%;transform:translateX(-50%);padding:13px 22px;background:#174b40;color:#fff;border-radius:12px;box-shadow:0 12px 30px #0003;font-weight:700;font-size:13px;max-width:calc(100vw - 30px);text-align:center}.toast[hidden]{display:none}.badge-dot{width:7px;height:7px;background:#e0a14b;border-radius:50%;display:inline-block;margin-left:7px}.welcome-list{background:#f1f7f1;padding:15px;border-radius:13px;font-size:13px;line-height:1.95;color:#396152}.quickchip{padding:9px 12px;border:1px solid #e2e9e1;border-radius:30px;background:#fff;font-size:12px;color:#426859;font-weight:750}.quickchip:hover{background:#eef6ef}.minirow{font-size:12px;display:flex;gap:8px;justify-content:space-between;margin:9px 0}.warning-text{color:#bd674f}.clickable{cursor:pointer}@media(max-width:1120px){.sidebar{width:222px}.stats{grid-template-columns:repeat(2,1fr)}.cols{grid-template-columns:1fr}.main{padding:24px}}@media(max-width:720px){.sidebar{display:none}.main{padding:17px 16px 104px}.mobile-nav{display:grid;position:fixed;z-index:20;bottom:0;left:0;right:0;grid-template-columns:repeat(5,1fr);background:#fff;padding:6px 2px max(7px,env(safe-area-inset-bottom));box-shadow:0 -4px 22px #17452a18;border-top:1px solid #e7eee8}.mobile-nav button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;border:0;background:transparent;font-size:10px;color:#6b867b;padding:6px 0;font-weight:700;min-width:0}.mobile-nav button strong{font-size:20px}.mobile-nav button.active{color:#135344}.topstrip{align-items:flex-start}.monthtools{gap:5px}.monthtools .chip{padding:9px;font-size:12px}.stats{grid-template-columns:repeat(2,1fr);gap:9px}.stat{padding:14px}.stat strong{font-size:21px}.hero{padding:23px 22px;min-height:115px}.hero-icon{display:none}.hero h3{font-size:21px}.page-header h2{font-size:29px}.page-header{align-items:center}.btn{padding:9px 10px;font-size:12px}.card{padding:17px}.filterbar{grid-template-columns:1fr 1fr}.filterbar .search{grid-column:1/-1}.gridcards{grid-template-columns:1fr}.formgrid{grid-template-columns:1fr}.budget-edit-grid{grid-template-columns:1fr 1fr}.budget-edit-grid .wide{grid-column:1/-1}.year-table{font-size:11px}.year-table th,.year-table td{padding:9px 3px}.modal{max-height:92dvh}.modal-head{padding:17px}.modal-body{padding:17px}.modal-foot{padding:12px 17px 17px}.txrow{gap:8px}.txicon{width:33px;height:33px;font-size:15px}.txtext strong{font-size:12px}.txamount{font-size:12px}}@media(max-width:370px){.stats{grid-template-columns:1fr 1fr}.topstrip{display:block}.monthtools{margin-top:9px}.stat strong{font-size:18px}.yearcell small{font-size:8px}}

.repeat-row{display:flex;align-items:center;gap:12px;padding:15px 0;border-bottom:1px solid #e8eee8;flex-wrap:wrap}.repeat-row:last-child{border-bottom:0}.repeat-row .txtext{min-width:180px}.repeat-row .txtext small{margin-bottom:5px}.repeat-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.repeat-choice{display:flex;align-items:center;gap:10px;background:#eef7ef;border-radius:11px;padding:13px;font-size:13px;cursor:pointer}.repeat-choice input{width:18px;height:18px;min-height:auto;flex-shrink:0}.repeat-row .txamount{min-width:80px;text-align:right}@media(max-width:720px){.mobile-nav{grid-template-columns:repeat(6,1fr)}.mobile-nav button{font-size:9px}.mobile-nav button strong{font-size:18px}.repeat-row{gap:8px}.repeat-row .txtext{min-width:125px}.repeat-row .repeat-actions{width:100%;justify-content:flex-start;margin-left:40px}}
