:root{--bg:#f5f6f3;--ink:#263d34;--muted:#7c867e;--green:#285748;--line:#e6e9e3;--white:#fff;--orange:#b97443}*{box-sizing:border-box}body{margin:0;font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--ink);background:var(--bg);font-size:14px}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid #8ab69a;outline-offset:3px}[hidden]{display:none!important}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin:0}button{border:0;background:none;color:inherit}label{display:flex;flex-direction:column;gap:9px;font-size:13px;font-weight:500}input,select,textarea{background:#fff;color:var(--ink);border:1px solid #dfe4dc;border-radius:8px;padding:12px;outline:none;min-width:0}input:focus,select:focus,textarea:focus{border-color:#72977c;box-shadow:0 0 0 3px #e8efe6}input::placeholder,textarea::placeholder{color:#a0a79f}select{cursor:pointer}.brand{display:flex;align-items:center;gap:9px;font-size:24px;font-weight:700;letter-spacing:-1.2px}.brand-icon{font-size:29px;display:grid;place-items:center;background:var(--green);color:white;width:38px;height:40px;border-radius:12px;line-height:1}.brand-number{font-weight:400;color:#8c998c;font-size:22px}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:650;color:#889582;display:block}.muted{color:var(--muted)}.primary,.secondary{padding:12px 18px;border-radius:8px;font-weight:550;display:inline-flex;align-items:center;justify-content:center;gap:12px;white-space:nowrap}.primary{background:var(--green);color:white}.primary:hover{background:#1e4538}.secondary{border:1px solid #dce2d8;background:white}.secondary:hover{background:#f2f5ef}.wide{width:100%;justify-content:space-between}.hint{font-size:12px;color:var(--muted);line-height:1.7}.auth-layout{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.welcome{background:#e9ede3;padding:55px 65px;display:flex;flex-direction:column;justify-content:space-between;min-height:100vh;position:relative;overflow:hidden}.welcome:after{content:'';position:absolute;width:360px;height:360px;border:1px solid #d8e0ce;border-radius:50%;bottom:-210px;right:-70px;pointer-events:none}.welcome h1{font-size:clamp(35px,4vw,60px);line-height:1.17;letter-spacing:-2px;margin:20px 0 24px;font-weight:550}.welcome p{font-size:15px;line-height:1.9;color:#75816e}.welcome-years{display:flex;align-items:center;gap:18px;margin-top:38px;font-size:14px}.welcome-years span{background:#dbe3d0;width:34px;height:34px;border-radius:50%;display:grid;place-items:center}.welcome small{color:#7d8a74}.auth-panel{display:grid;place-items:center;padding:45px 30px;background:#fcfcf9}.auth-card{width:100%;max-width:370px}.auth-card h2{font-size:30px;letter-spacing:-.8px;margin:15px 0 12px}.auth-card>p{color:var(--muted);line-height:1.6}.auth-tabs{display:flex;border-bottom:1px solid var(--line);margin:28px 0}.auth-tabs button{padding:13px 25px;color:var(--muted);border-bottom:2px solid transparent}.auth-tabs button.selected{color:var(--green);border-color:var(--green);font-weight:600}form label{margin-bottom:18px}.form-message{font-size:13px;line-height:1.6;color:#a24a32;margin:10px 0}.form-message.success{color:var(--green)}.auth-card .hint{margin-top:20px}.privacy-note{border-top:1px solid var(--line);padding-top:22px;margin-top:32px;font-size:11px;color:#919b8e;line-height:1.7}.workspace{display:flex;min-height:100vh}.sidebar{width:238px;flex:none;background:#fafbf7;border-right:1px solid var(--line);padding:35px 22px 16px;display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0}.sidebar .brand{margin:0 10px 47px}.sidebar-caption{font-size:9px;letter-spacing:1.8px;color:#a0a99a;margin:0 14px 18px}.nav-item{display:flex;align-items:center;gap:13px;padding:14px;border-radius:8px;width:100%;text-align:left;margin-bottom:5px;color:#7e887b;font-size:13px}.nav-item span{font-size:20px;width:19px}.nav-item.selected{color:var(--green);background:#eaf0e4;font-weight:600}.nav-item b{font-size:11px;background:#d9e5ce;padding:2px 6px;border-radius:4px}.sidebar-bottom{margin-top:auto}.sidebar-note{padding:18px 14px;background:#f0f3eb;border-radius:10px;margin-bottom:23px}.sidebar-note>span{display:block;font-size:22px;color:#849973;margin-bottom:10px}.sidebar-note strong{font-size:12px}.sidebar-note p{font-size:11px;color:#929c88;line-height:1.6;margin-top:8px}.profile{border-top:1px solid var(--line);padding-top:18px;display:flex;gap:10px;align-items:center}.avatar{border-radius:50%;background:#e6ebdc;width:34px;height:34px;display:grid;place-items:center;font-size:13px;flex:none}.profile>div{min-width:0;flex:1}.profile strong{font-size:11px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile small{font-size:10px;color:var(--muted);display:block;margin-top:5px}.profile button{font-size:21px}main{margin-left:238px;width:calc(100% - 238px)}.topbar{height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 44px;border-bottom:1px solid var(--line);font-size:12px;background:#fafbf8}.private-tag{font-size:10px;color:#879180}.content{max-width:1430px;margin:auto;padding:42px 44px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:30px}.page-heading h1{font-size:32px;letter-spacing:-1px;font-weight:600;margin:10px 0}.page-heading p{font-size:13px;color:var(--muted)}.year-select{font-size:10px;color:#889181;gap:6px;min-width:165px}.year-select select{font-size:13px;font-weight:600;padding:11px 14px}.summary{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:26px}.summary-card{background:white;border:1px solid var(--line);border-radius:13px;padding:23px}.summary-card>div{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#84907d;font-size:12px}.stat-icon{background:#eef2e8;width:31px;height:31px;border-radius:9px;display:grid;place-items:center;font-size:16px}.summary-card strong{display:block;font-size:32px;letter-spacing:-1px;font-weight:550;margin:15px 0 14px;overflow-wrap:anywhere}.summary-card small{font-size:10px;color:#939b8d}.summary-card.balance{background:#285748;border-color:#285748;color:white}.balance>div,.balance small{color:#c2d2c2}.balance .stat-icon{background:#426b59;color:#d7e4d2}.green{background:#edf4e7;color:#72955b}.orange{background:#faf0e3;color:#bf945f}.overview-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:24px;margin-bottom:28px}.panel{background:white;border:1px solid var(--line);border-radius:12px;overflow:hidden}.panel-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:25px}h2{font-size:16px;font-weight:600;letter-spacing:-.2px}.panel-heading>span{font-size:11px}.category-panel{padding:25px}.categories{min-height:160px;display:flex;flex-direction:column;justify-content:center;gap:16px}.category-row>div{display:flex;justify-content:space-between;gap:20px;margin-bottom:8px;font-size:11px}.bar{background:#f1f3ec;border-radius:4px;overflow:hidden;height:5px}.bar i{display:block;height:100%;background:#a9b78f;border-radius:4px;width:var(--value,0%)}.year-note{background:#edf0e4;padding:25px 28px;position:relative}.note-icon{float:right;font-size:30px;color:#99a786}.year-note h2{font-size:23px;line-height:1.3;font-weight:500;margin-top:15px}.year-note p{font-size:11px;color:#8a957d;line-height:1.8;margin:13px 0}.permission-tag{font-size:10px;background:#e0e7d4;display:inline-block;border-radius:5px;padding:7px 10px;color:#6d7e5f}.ledger-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:25px}.ledger-heading p{color:#939c8e;font-size:11px;margin-top:7px}.actions{display:flex;gap:10px}.actions button{font-size:11px;padding:11px 14px}.filters{display:flex;gap:10px;border-top:1px solid #f0f1ec;padding:16px 25px}.search{display:flex;flex-direction:row;align-items:center;gap:9px;border:1px solid #e3e8df;border-radius:7px;padding:0 10px;flex:1;max-width:300px}.search span{font-size:22px;color:#99a18f}.search input{border:0;width:100%;padding:10px 0;font-size:11px;box-shadow:none}.filters select{font-size:11px;padding:9px;max-width:190px}.text-button{font-size:11px;color:#939d89;margin-left:auto}.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;text-align:left;white-space:nowrap}th{background:#f8faf5;color:#97a08e;font-size:10px;font-weight:500;padding:14px 20px;border-block:1px solid #edf0e7}td{padding:18px 20px;border-bottom:1px solid #f1f3ec;font-size:11px;color:#7b8873}td.description{min-width:170px;max-width:350px;white-space:normal;font-size:12px;color:#3f5135}td.description small{display:block;color:#99a28f;font-size:10px;margin-top:5px;overflow-wrap:anywhere}.category-badge{background:#f3f5ed;padding:6px 8px;border-radius:5px;font-size:10px}.amount{font-variant-numeric:tabular-nums;font-weight:600;color:#526044}.amount.income{color:#5d8953}.row-action{font-size:12px;color:#82936e;padding:5px}.row-action.danger{color:#bb8367}.table-footer{display:flex;justify-content:space-between;font-size:10px;color:#a0a894;padding:16px 25px}.empty{text-align:center;padding:45px 20px 50px}.empty>span{font-size:30px;color:#a7b49b}.empty h3{font-size:15px;font-weight:500;margin:12px 0 8px}.empty p{font-size:12px;color:#9ba58f}.footer-note{text-align:center;font-size:10px;color:#a0a891;line-height:1.6;margin-top:24px}.small-empty{font-size:12px;color:#99a38d;line-height:1.9;text-align:center}.audit-row{padding:20px 25px;border-top:1px solid var(--line)}.audit-row strong{font-size:13px}.audit-row small{display:block;color:var(--muted);margin-top:7px;font-size:11px}.audit-row details{margin-top:10px;font-size:11px;color:var(--muted)}.audit-row pre{white-space:pre-wrap;overflow-wrap:anywhere}.user-select{font-size:11px;padding:8px;max-width:180px}dialog{border:1px solid var(--line);border-radius:16px;padding:28px;width:min(540px,calc(100% - 28px));color:var(--ink);box-shadow:0 20px 100px #203b3226}dialog::backdrop{background:#21392e66;backdrop-filter:blur(3px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:25px}.dialog-heading h2{font-size:23px;margin-top:8px}.icon-button{font-size:28px;color:#91a083}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.dialog-actions button{font-size:12px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#284e3e;color:white;border-radius:9px;padding:15px 22px;box-shadow:0 8px 30px #21392e22;z-index:10;max-width:90vw;font-size:13px;line-height:1.5}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@media(min-width:1500px){.content{padding-top:55px}}@media(max-width:1100px){.sidebar{width:210px;padding-inline:15px}main{margin-left:210px;width:calc(100% - 210px)}.content{padding:30px 24px}.topbar{padding:0 24px}.summary-card{padding:18px}.summary-card strong{font-size:27px}.overview-grid{grid-template-columns:1.2fr 1fr}.filters{flex-wrap:wrap}.filters .search{max-width:none}.welcome{padding:40px}}@media(max-width:760px){.auth-layout{grid-template-columns:1fr}.welcome{min-height:auto;padding:25px;gap:35px}.welcome h1{font-size:34px;letter-spacing:-1px;margin-bottom:15px}.welcome p{font-size:12px}.welcome-years,.welcome small{display:none}.auth-panel{padding:35px 25px}.sidebar{position:static;width:100%;padding:18px;border-right:0;border-bottom:1px solid var(--line)}.sidebar .brand{margin:0;font-size:21px}.sidebar-caption,.sidebar-note{display:none}.sidebar nav{display:flex;gap:5px;margin-top:20px;overflow:auto}.nav-item{white-space:nowrap;width:auto;font-size:11px;padding:10px;flex:none}.nav-item span{font-size:16px}.sidebar-bottom{position:absolute;right:18px;top:15px}.profile{border:0;padding:0}.profile .avatar,.profile>div{display:none}.workspace{display:block}main{width:100%;margin:0}.topbar{height:48px;padding:0 20px;font-size:10px}.private-tag{display:none}.content{padding:28px 18px}.page-heading{align-items:flex-end;gap:12px}.page-heading h1{font-size:25px}.page-heading p{font-size:11px;line-height:1.6}.page-heading .eyebrow{font-size:8px;letter-spacing:1.5px}.year-select{min-width:130px}.year-select select{font-size:12px;padding:10px}.summary{gap:9px}.summary-card{padding:13px 10px;border-radius:9px}.summary-card>div{font-size:9px}.summary-card .stat-icon{display:none}.summary-card strong{font-size:20px;letter-spacing:-.5px;margin:16px 0 10px}.summary-card small{font-size:8px;line-height:1.5;display:block}.overview-grid{grid-template-columns:1fr;gap:15px}.category-panel{padding:20px}.year-note{display:none}.ledger-heading{padding:20px;align-items:flex-start;flex-direction:column}.actions{width:100%}.actions button{flex:1;font-size:10px}.filters{padding:14px;gap:8px}.search{flex-basis:100%}.filters select{flex:1;max-width:none;min-width:0;font-size:10px}.text-button{padding:8px 0}.table-footer{padding:15px;font-size:9px}td,th{padding:14px}.form-grid{gap:10px}.form-grid label{font-size:11px}dialog{padding:22px}.footer-note{font-size:9px}.panel-heading>span{font-size:9px}}
