@font-face{font-family:AppSans;src:local('Avenir Next'),local('Segoe UI');font-display:swap}
:root{--bg:#f5f6f3;--card:#fff;--ink:#182c2a;--muted:#72817c;--green:#113c38;--lime:#d6ea98;--line:#e4e9e3;--red:#ae4540;--radius:18px;--shadow:0 3px 20px #192d2304;font-family:AppSans,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}*{box-sizing:border-box}body{margin:0;font-size:15px;line-height:1.5}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a,select{touch-action:manipulation}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #7eaa50;outline-offset:3px}h1,h2,h3,p{margin-top:0}h1{font-size:38px;line-height:1.16;letter-spacing:-1.4px;margin-bottom:12px;font-weight:650}h2{font-size:22px;letter-spacing:-.5px;margin-bottom:16px;font-weight:650}h3{font-size:17px;font-weight:650}small{font-size:12px}.muted{color:var(--muted)}.topbar{height:100px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;max-width:1320px;padding:0 44px;margin:0 auto}.brand{display:flex;gap:12px;align-items:center;font-size:23px;font-weight:700;letter-spacing:-.7px}.brand-icon{display:inline-flex;align-items:center;justify-content:center;background:var(--green);color:var(--lime);border-radius:13px;width:44px;height:44px;font-size:33px;line-height:1;font-weight:650;letter-spacing:-3px;padding-right:3px}.brand small{display:block;font-size:10px;font-weight:400;letter-spacing:.5px;color:var(--muted);margin-top:1px}.topbar nav{display:flex;gap:26px;align-items:center}.topbar nav a{font-size:13px;min-height:44px;display:flex;align-items:center;border-bottom:2px solid transparent;color:var(--muted)}.topbar nav a[aria-current]{color:var(--green);border-color:var(--green);font-weight:600}.shell{max-width:1320px;margin:auto;padding:46px 44px 24px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:30px}.page-heading p{margin-bottom:0}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.9px;color:var(--muted);margin:0 0 12px}.heading-dot{color:#86a754}.add-actions{display:flex;gap:10px}.button{min-height:46px;border-radius:10px;padding:11px 19px;border:1px solid transparent;font-weight:600;font-size:13px;display:inline-flex;align-items:center;justify-content:center;gap:18px;line-height:1.5}.button.primary{background:var(--green);color:white}.button.primary:hover{background:#23524b}.button.secondary{background:white;border-color:#dce2da;color:var(--ink)}.button.secondary:hover{background:#edf1e9}.full{width:100%}.button.danger{background:var(--red);color:white}.filter-bar{display:flex;gap:20px;align-items:center;justify-content:space-between;padding:16px 18px;border:1px solid var(--line);border-radius:14px;background:#fff;margin-bottom:24px}.filter-bar form{display:flex;gap:10px;align-items:center}.filter-bar label{margin:0}.filter-bar input,.filter-bar select{min-height:40px;padding:8px 12px;border:1px solid #e3e8e1;background:#f9faf7;border-radius:8px;width:auto;font-size:13px}.filter-bar input{width:88px}.filter-button{min-height:40px;background:#eaf0df;color:var(--green);padding:8px 14px}.export-link{font-size:12px;font-weight:600;min-height:44px;display:flex;align-items:center;white-space:nowrap}.period-label{display:flex;justify-content:space-between;color:var(--muted);font-size:11px;margin-bottom:12px}.period-label span:first-child{font-weight:700;color:#465b52}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:36px}.stat{position:relative;border:1px solid var(--line);border-radius:var(--radius);padding:24px 20px 21px;background:var(--card);box-shadow:var(--shadow)}.stat-icon{display:flex;width:29px;height:29px;border-radius:8px;background:#f0f3e9;align-items:center;justify-content:center;color:var(--green);font-size:19px;margin-bottom:19px}.stat h2{font-size:11px;color:#758279;font-weight:500;letter-spacing:0;margin-bottom:7px}.stat p{font-size:26px;font-weight:650;letter-spacing:-1px;line-height:1.3;white-space:nowrap;margin-bottom:12px;font-variant-numeric:tabular-nums}.stat small{font-size:10px;color:var(--muted)}.stat.balance{background:var(--green);color:white;border-color:var(--green)}.balance .stat-icon{background:#ffffff14;color:var(--lime)}.balance h2,.balance small{color:#b6cfc5}.balance p{color:var(--lime)}.card{background:white;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:28px}.journal{padding:0;overflow:hidden}.section-heading{display:flex;justify-content:space-between;align-items:center;padding:24px 26px}.section-heading h2{margin:0}.section-heading .eyebrow{margin-bottom:5px;font-size:9px}.badge{border-radius:20px;padding:5px 10px;background:#f0f3eb;color:#758277;font-size:10px}.journal-head,.journal-row{display:grid;grid-template-columns:150px minmax(0,1fr) 160px 140px;gap:16px;padding:15px 26px;align-items:center}.journal-head{background:#fafbf8;border-top:1px solid var(--line);border-bottom:1px solid var(--line);color:var(--muted);font-size:10px}.journal-head span:nth-child(3){text-align:right}.journal-head span:last-child{text-align:right}.journal-row{min-height:108px;border-bottom:1px solid var(--line);font-size:12px}.journal-row:last-child{border-bottom:0}.entry-date{display:flex;flex-direction:column;align-items:flex-start;gap:8px}.entry-date time{font-weight:600}.entry-type{border-radius:5px;font-size:10px;padding:2px 7px}.work-tag{color:#4d735a;background:#eff4e8}.money-tag{color:#9d6441;background:#f8f0e8}.credit-tag{color:#347963;background:#eaf6f0}.entry-details{min-width:0}.entry-details strong{font-size:12px;font-weight:600}.entry-details small{display:block;font-size:10px;color:var(--muted);margin:4px 0}.note{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;color:#65716c;margin:4px 0 0}.entry-amount{text-align:right;font-size:15px;letter-spacing:-.3px;font-variant-numeric:tabular-nums;white-space:nowrap}.positive{color:#315a45}.negative{color:#a16b55}.row-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}.row-actions a{font-size:10px;display:flex;align-items:center;min-height:44px;padding:5px}.row-actions .delete-link{color:#a16b55}.empty-state{padding:45px 20px 52px;text-align:center;border-top:1px solid var(--line)}.empty-icon{width:50px;height:50px;border-radius:15px;display:grid;place-items:center;margin:0 auto 20px;background:#f0f4e8;color:#637d4a;font-size:26px}.empty-state h3{margin-bottom:8px}.empty-state p{font-size:12px;color:var(--muted);line-height:1.8;margin-bottom:23px}.footnote{font-size:10px;color:#8b968d;margin:20px 0}.footnote span{margin:0 8px}.site-footer{max-width:1232px;margin:20px auto 0;border-top:1px solid var(--line);padding:20px 0 30px;display:flex;align-items:center;justify-content:space-between;font-size:11px}.site-footer form{margin:0}.text-button{border:0;background:none;color:var(--muted);padding:10px;min-height:44px;font-size:11px}.notice{padding:15px 18px;border-radius:12px;margin-bottom:24px;font-size:13px}.success{background:#e6f0dd;color:#3a633f}.error{background:#fcece8;color:#9e4137}.back{display:inline-flex;align-items:center;min-height:44px;color:var(--muted);font-size:12px;margin-bottom:14px}.entry-form{max-width:640px;margin:0 auto}.entry-form form,.login-card form{display:grid;gap:19px}label{display:block;font-size:12px;font-weight:600}input:not([type=checkbox]),textarea,select{display:block;width:100%;min-height:48px;margin-top:7px;padding:12px 13px;border:1px solid #dce3da;border-radius:9px;background:#fcfdfa;color:var(--ink);font-size:16px;min-width:0}textarea{resize:vertical}.check{display:flex;align-items:center;gap:10px;min-height:44px;font-size:12px;font-weight:400;cursor:pointer}.check input{width:19px;height:19px;accent-color:var(--green);flex-shrink:0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.help{color:var(--muted);font-size:12px;line-height:1.7}.calculation{background:#f0f4e9;border:1px solid #e1e8d5;border-radius:12px;padding:19px;display:grid;grid-template-columns:1fr 1fr;gap:15px}.calculation span{font-size:11px;color:#6b7a61}.calculation strong{display:block;font-size:23px;letter-spacing:-.5px;color:var(--green);margin-top:4px}.calculation small{grid-column:1/-1;color:#86907c;font-size:10px}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:6px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;max-width:1000px}.settings-grid label{margin-bottom:16px}.settings-grid .full{margin-bottom:12px}.settings-grid h3{margin-top:28px}.delete-card{max-width:600px;margin:45px auto}.delete-card h1{font-size:28px}.auth-shell{min-height:100svh;max-width:1000px;margin:auto;display:grid;grid-template-columns:1fr 1fr;align-content:center;align-items:center;gap:70px;padding:60px 35px}.auth-shell>.notice{grid-column:1/-1}.auth-intro h1{font-size:57px;letter-spacing:-2.6px;margin:20px 0}.auth-intro>.brand-icon{width:54px;height:54px;margin-bottom:36px}.auth-intro>p:not(.eyebrow){color:var(--muted);font-size:14px;line-height:1.8}.auth-detail{font-size:12px;color:#64766b;margin-top:20px}.auth-detail span{color:#9ba98e;margin-right:14px;font-size:10px}.login-card{padding:36px}.login-card h2{font-size:27px;margin-bottom:7px}.login-card>.muted{font-size:12px;margin-bottom:28px}.login-card form{gap:18px}.private-note{margin:24px 0 0;text-align:center;font-size:10px;color:#98a18f}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:1400px){.shell{padding-top:56px}.stats{gap:18px}.stat{padding:26px}.stat p{font-size:29px}}
@media(max-width:1050px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.stat{padding:22px}.stat-icon{position:absolute;right:22px;top:20px}.stat h2{margin-top:4px;margin-bottom:14px}.stat p{font-size:28px}.journal-head,.journal-row{grid-template-columns:120px minmax(0,1fr) 135px 100px;gap:12px;padding-left:20px;padding-right:20px}.row-actions{gap:0}.topbar{padding:0 28px}.shell{padding-left:28px;padding-right:28px}.site-footer{margin-left:28px;margin-right:28px}.auth-shell{gap:35px}.auth-intro h1{font-size:48px}.add-actions .button{padding:11px 14px;white-space:nowrap}}
@media(max-width:680px){h1{font-size:31px}.topbar{height:79px;padding:0 20px;gap:12px}.brand{font-size:20px;gap:9px}.brand-icon{width:36px;height:36px;border-radius:10px;font-size:29px}.brand small{font-size:8px;letter-spacing:.1px}.topbar nav{gap:12px}.topbar nav a{font-size:10px}.shell{padding:27px 18px 12px}.page-heading{display:block;margin-bottom:20px}.page-heading>.add-actions{margin-top:24px;display:grid;grid-template-columns:1fr 1fr}.page-heading .muted{font-size:12px}.eyebrow{font-size:9px;letter-spacing:1.5px}.add-actions .primary{grid-column:1;grid-row:1}.add-actions .secondary{grid-column:2;grid-row:1}.button{font-size:12px;min-height:48px;padding:12px 15px}.filter-bar{display:block;padding:12px;margin-bottom:18px}.filter-bar form{display:grid;grid-template-columns:1.1fr .75fr 1fr;gap:7px}.filter-bar form label:first-child{grid-column:1/3}.filter-bar form label:nth-child(2){grid-column:3}.filter-bar form label:nth-child(3){grid-column:1/3}.filter-bar form .filter-button{grid-column:3}.filter-bar input,.filter-bar select{width:100%;min-height:44px;margin-top:0;font-size:14px;padding:9px}.filter-bar .export-link{justify-content:center;border-top:1px solid var(--line);margin-top:11px;padding-top:8px;font-size:11px}.period-label{font-size:9px;margin-bottom:10px}.stats{gap:9px;margin-bottom:24px}.stat{padding:16px 13px;border-radius:13px;min-height:131px}.stat-icon{display:none}.stat h2{font-size:10px;margin:0 0 16px}.stat p{font-size:21px;letter-spacing:-.8px;margin-bottom:10px}.stat small{font-size:8px}.section-heading{padding:20px 17px}.section-heading h2{font-size:22px}.journal-head{display:none}.journal-row{display:grid;grid-template-columns:1fr auto;gap:9px 10px;padding:18px 17px;align-items:start}.entry-date{grid-column:1;grid-row:1;gap:6px}.entry-date time{font-size:12px}.entry-amount{grid-column:2;grid-row:1;font-size:18px;padding-top:2px}.entry-details{grid-column:1/-1;grid-row:2}.entry-details strong{font-size:12px}.entry-details .divider{margin:0 4px}.entry-details small{font-size:10px}.row-actions{grid-column:1/-1;grid-row:3;justify-content:flex-end;gap:6px;border-top:1px solid #f0f2ec;margin-top:3px;padding-top:2px}.row-actions a{min-height:44px;font-size:11px;padding:7px 9px}.footnote{font-size:9px;line-height:1.9;margin-top:16px}.footnote span{display:block;height:0;visibility:hidden}.site-footer{margin:8px 18px 0;padding-bottom:calc(18px + env(safe-area-inset-bottom));font-size:9px}.site-footer .muted{display:none}.card{padding:22px}.journal{padding:0}.entry-form{padding:20px 17px}.form-grid{gap:11px}.form-grid input{padding:10px 8px}.calculation{padding:15px}.calculation strong{font-size:21px}.form-actions{display:grid;grid-template-columns:1fr 1fr}.settings-grid{grid-template-columns:1fr;gap:16px}.auth-shell{display:block;padding:35px 22px 45px;max-width:440px;min-height:100svh}.auth-intro>.brand-icon{margin-bottom:24px}.auth-intro h1{font-size:40px;margin:12px 0 16px}.auth-intro>p:not(.eyebrow){font-size:12px}.auth-intro .auth-detail{display:none}.auth-intro{margin-bottom:28px}.login-card{padding:27px 23px}.empty-state{padding:33px 16px 38px}.empty-state h3{font-size:16px}.empty-state p{font-size:11px}.delete-card{margin:15px 0}.delete-card h1{font-size:26px}}
@media(prefers-reduced-motion:no-preference){.button{transition:background .15s}.notice{animation:show .2s ease-out}@keyframes show{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}}
