@import "https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap";:root{color:#202824;font-synthesis:none;--ink:#202824;--muted:#707974;--paper:#f4f4ee;--surface:#fcfcf8;--line:#dedfd8;--dark:#202b26;--lime:#dff27b;--green:#86a85a;--orange:#ff7452;--soft-orange:#fff0e9;background:#f4f4ee;font-family:DM Sans,Inter,system-ui,sans-serif}*{box-sizing:border-box}html{scroll-behavior:smooth}body{background:radial-gradient(circle at 86% 2%, #dff27b47, transparent 28rem), var(--paper);min-width:320px;min-height:100vh;margin:0}button,input,select{font:inherit}button{color:inherit}.app-shell{width:min(1440px,100%);margin:0 auto;padding:0 52px}.topbar{border-bottom:1px solid #20282421;justify-content:space-between;align-items:center;height:88px;display:flex}.brand{color:var(--ink);letter-spacing:-.055em;align-items:center;gap:11px;font-family:Manrope,sans-serif;font-size:22px;font-weight:800;text-decoration:none;display:inline-flex}.brand-mark{border:2px solid var(--dark);background:var(--lime);width:35px;height:35px;box-shadow:3px 3px 0 var(--dark);border-radius:10px 10px 10px 3px;justify-content:center;align-items:flex-end;gap:3px;padding:8px 7px;display:flex}.brand-mark i{background:var(--dark);border-radius:4px 4px 1px 1px;width:4px}.brand-mark i:first-child{height:8px}.brand-mark i:nth-child(2){height:15px}.brand-mark i:nth-child(3){height:11px}.brand-mark.small{width:28px;height:28px;box-shadow:2px 2px 0 var(--dark);padding:6px}.header-right{align-items:center;gap:18px;display:flex}.logout-button{color:var(--muted);border:1px solid var(--line);cursor:pointer;background:0 0;border-radius:999px;padding:8px 12px;font-size:11px;font-weight:700}.logout-button:hover{color:#bd5339;border-color:#e3a895}.button{cursor:pointer;border:0;border-radius:11px;justify-content:center;align-items:center;gap:8px;min-height:42px;padding:0 18px;font-size:13px;font-weight:700;transition:transform .18s,box-shadow .18s;display:inline-flex}.button:hover{transform:translateY(-1px)}.button:disabled{cursor:wait;opacity:.6}.button.primary{color:#fff;background:var(--dark);box-shadow:0 7px 16px #202b2621}.button.secondary{border:1px solid var(--line);background:0 0}.add-button{min-height:43px}.auth-loading{min-height:100vh;color:var(--muted);place-items:center;font-size:12px;display:grid}.login-page{background:radial-gradient(circle at 22% 8%, #dff27b4d, transparent 25rem), var(--paper);place-items:center;min-height:100vh;padding:24px;display:grid}.login-card{border:1px solid var(--line);background:var(--surface);border-radius:24px;width:min(420px,100%);padding:38px;box-shadow:0 25px 70px #15211d21}.login-brand{letter-spacing:-.055em;align-items:center;gap:11px;margin-bottom:42px;font-family:Manrope,sans-serif;font-size:22px;font-weight:800;display:flex}.lock-icon{width:48px;height:48px;color:var(--dark);background:var(--lime);border-radius:50%;place-items:center;margin-bottom:19px;font-size:23px;font-weight:800;display:grid}.login-card h1{font-size:39px}.login-card form{margin-top:29px}.login-card form label{color:var(--muted);letter-spacing:.09em;text-transform:uppercase;margin-bottom:8px;font-size:10px;font-weight:800;display:block}.login-card form input{width:100%;color:var(--ink);border:1px solid var(--line);letter-spacing:.38em;text-align:center;background:#fff;border-radius:11px;outline:none;padding:14px;font-size:23px;font-weight:800}.login-card form input:focus{border-color:var(--dark);box-shadow:0 0 0 3px #15211d17}.login-card form button{color:#fff;background:var(--dark);cursor:pointer;border:0;border-radius:11px;width:100%;margin-top:12px;padding:14px;font-weight:800}.login-card form button:disabled{cursor:not-allowed;opacity:.45}.login-error{color:#a54328;margin:10px 0 0;font-size:11px}.hero{justify-content:space-between;align-items:flex-end;gap:32px;padding:24px 0 28px;display:flex}.eyebrow{color:#525c57;letter-spacing:.19em;margin:0 0 12px;font-family:Manrope,sans-serif;font-size:10px;font-weight:800}h1,h2{letter-spacing:-.06em;margin:0;font-family:Manrope,sans-serif;font-weight:500}h1{font-size:clamp(48px,5vw,70px);line-height:.98}h2{font-size:28px;line-height:1.15}.period-nav{align-items:center;gap:10px;padding-bottom:5px;display:flex}.period-nav strong{text-align:center;text-transform:capitalize;min-width:156px;font-family:Manrope,sans-serif;font-size:14px;font-weight:700}.icon-button{border:1px solid var(--line);background:var(--surface);cursor:pointer;border-radius:50%;place-items:center;width:39px;height:39px;padding:0;transition:all .18s;display:grid}.icon-button:hover{color:#fff;border-color:var(--dark);background:var(--dark)}.notice{color:#5b6530;background:#f5f9dc;border:1px solid #d9e4a6;border-radius:10px;margin:-22px 0 28px;padding:10px 14px;font-size:11px}.notice span{text-transform:uppercase;letter-spacing:.08em;margin-right:7px;font-weight:800}.notice.error{color:#a0442e;background:#fff0e9;border-color:#efc8ba}.summary-grid{grid-template-columns:1.16fr 1fr 1fr;gap:14px;display:grid}.summary-card{border:1px solid var(--line);background:#fcfcf8e3;border-radius:19px;align-items:center;gap:17px;min-height:150px;padding:27px;display:flex;box-shadow:0 12px 30px #2028240a}.summary-card.balance{color:#fff;border-color:var(--dark);background:var(--dark)}.summary-icon{width:43px;height:43px;color:var(--dark);background:var(--lime);border-radius:13px;flex:none;place-items:center;display:grid}.summary-icon.income{color:#54702d;background:#eef6db}.summary-icon.expense{color:#d75b3b;background:var(--soft-orange)}.summary-card div:last-child{min-width:0}.summary-card span{color:var(--muted);margin-bottom:8px;font-size:11px;display:block}.summary-card.balance span{color:#b9c0bc}.summary-card strong{letter-spacing:-.055em;text-overflow:ellipsis;white-space:nowrap;font-family:Manrope,sans-serif;font-size:clamp(20px,2vw,29px);font-weight:600;display:block;overflow:hidden}.summary-card small{color:#949c98;margin-top:9px;font-size:10px;display:block}.summary-card small.positive{color:#78994d}.summary-card small.negative{color:#d56b51}.insight-grid{grid-template-columns:1.55fr .8fr;gap:14px;margin-top:14px;display:grid}.panel{border:1px solid var(--line);background:#fcfcf8e8;border-radius:20px;box-shadow:0 12px 35px #2028240a}.chart-panel,.category-panel{min-height:382px;padding:29px}.panel-heading{justify-content:space-between;align-items:flex-start;gap:20px;display:flex}.net-pill{color:#5f793b;background:#eff6dc;border-radius:999px;padding:7px 10px;font-size:10px;font-weight:700}.net-pill.negative{color:#c5583c;background:var(--soft-orange)}.chart-legend{color:var(--muted);gap:18px;margin-top:26px;font-size:10px;display:flex}.chart-legend span{align-items:center;gap:6px;display:flex}.legend-dot{border-radius:2px;width:7px;height:7px}.legend-dot.income{background:var(--dark)}.legend-dot.expense{background:var(--orange)}.bar-chart{background:repeating-linear-gradient(#0000 0 48px,#e7e8e2 49px,#0000 50px);grid-template-columns:repeat(5,1fr);align-items:end;gap:20px;height:224px;margin-top:5px;padding-top:34px;display:grid}.bar-group{flex-direction:column;justify-content:flex-end;align-items:center;gap:11px;height:190px;display:flex}.bars{justify-content:center;align-items:flex-end;gap:5px;height:158px;display:flex}.bar{border-radius:5px 5px 2px 2px;width:13px;min-height:2px;transition:height .5s}.bar.income{background:var(--dark)}.bar.expense{background:var(--orange)}.bar-group>span{color:var(--muted);font-size:9px}.category-panel h2{max-width:250px}.category-content{align-items:center;gap:29px;margin-top:47px;display:flex}.donut{border-radius:50%;flex:none;place-items:center;width:128px;height:128px;display:grid}.donut>div{background:var(--surface);text-align:center;border-radius:50%;place-content:center;width:79px;height:79px;display:grid}.donut strong{font-family:Manrope;font-size:23px}.donut span{color:var(--muted);font-size:9px}.category-list{gap:13px;width:100%;display:grid}.category-row{grid-template-columns:8px 1fr auto;align-items:center;gap:8px;font-size:10px;display:grid}.category-row i{border-radius:2px;width:7px;height:7px}.category-row b{font-family:Manrope;font-size:10px}.empty-small{color:var(--muted);font-size:11px}.required-panel{margin-top:14px;scroll-margin-top:18px;overflow:hidden}.required-heading{border-bottom:1px solid var(--line);justify-content:space-between;align-items:flex-end;gap:20px;padding:29px;display:flex}.required-description{color:var(--muted);margin:8px 0 0;font-size:10px}.required-actions{align-items:center;gap:9px;display:flex}.required-summary{background:#f8f8f3;grid-template-columns:repeat(3,1fr);gap:20px;padding:20px 29px 24px;display:grid;position:relative}.required-summary>div:not(.required-progress){gap:5px;display:grid}.required-summary span{color:var(--muted);letter-spacing:.06em;text-transform:uppercase;font-size:9px;font-weight:700}.required-summary strong{font-family:Manrope,sans-serif;font-size:15px}.required-progress{background:#e3e5dc;border-radius:3px;height:3px;position:absolute;bottom:12px;left:29px;right:29px;overflow:hidden}.required-progress i{border-radius:inherit;background:var(--green);height:100%;transition:width .3s;display:block}.required-list{display:grid}.required-item{border-top:1px solid #e8e9e3;grid-template-columns:auto minmax(180px,1fr) auto auto;align-items:center;gap:14px;padding:15px 22px;display:grid}.required-item:first-child{border-top:0}.required-item:hover{background:#fafaf5}.required-item.paid{background:#f7f9ef}.required-item.paid .required-info strong{color:#87908b;text-decoration:line-through}.required-payment-control{align-items:center;gap:5px;display:flex}.required-payment-control button{width:25px;height:25px;color:var(--green);cursor:pointer;background:#fff;border:1px solid #cfd2c9;border-radius:7px;padding:0;font:700 15px/1 Manrope,sans-serif}.required-payment-control button:disabled{color:#b7bcb8;cursor:not-allowed;opacity:.65}.required-payment-control span{color:#68716c;text-align:center;min-width:31px;font:700 10px/1 Manrope,sans-serif}.required-check{cursor:pointer;width:25px;height:25px;position:relative}.required-check input{opacity:0;position:absolute}.required-check span{color:#0000;background:#fff;border:1px solid #cfd2c9;border-radius:7px;place-items:center;width:25px;height:25px;display:grid;transform:rotate(0)}.required-check span svg{transform:rotate(45deg)}.required-check input:checked+span{color:#fff;border-color:var(--green);background:var(--green)}.required-check input:disabled+span{cursor:wait;opacity:.6}.required-info{min-width:0}.required-info strong{font-size:12px;display:block}.required-info small{color:#919995;text-overflow:ellipsis;white-space:nowrap;margin-top:3px;font-size:10px;display:block;overflow:hidden}.required-item>b{text-align:right;min-width:150px;font-family:Manrope,sans-serif;font-size:12px}.required-item>b small{color:var(--muted);font-size:9px;font-weight:500}.required-error{color:#a0442e;background:#fff0e9;border:1px solid #efc8ba;border-radius:9px;margin:15px 22px 0;padding:10px 12px;font-size:11px}.required-empty{min-height:210px;color:var(--muted);text-align:center;flex-direction:column;justify-content:center;align-items:center;font-size:11px;display:flex}.required-empty>span{background:#eff0e9;border-radius:50%;place-items:center;width:49px;height:49px;margin-bottom:12px;display:grid}.required-empty strong{color:var(--ink);font-family:Manrope,sans-serif;font-size:14px}.required-empty p{margin:6px 0 15px}.payment-preview{color:#68716c;background:#f3f5ed;border-radius:8px;margin:-5px 0 15px;padding:9px 12px;font-size:10px}.transactions-panel{margin:14px 0 0;overflow:hidden}.backup-panel{grid-template-columns:1fr minmax(360px,.9fr);gap:36px;margin:14px 0 58px;padding:29px;display:grid}.backup-copy{align-items:flex-start;gap:16px;display:flex}.backup-copy .eyebrow{margin-bottom:8px}.backup-copy h2{font-size:25px}.backup-copy p:last-child{color:var(--muted);margin:8px 0 0;font-size:10px}.backup-copy code{background:#eff0e9;border-radius:4px;padding:2px 5px;font-size:9px}.backup-icon{width:45px;height:45px;color:var(--dark);background:var(--lime);border-radius:13px;flex:none;place-items:center;display:grid}.backup-controls{min-width:0}.backup-controls label>span{color:var(--muted);letter-spacing:.07em;text-transform:uppercase;margin-bottom:6px;font-size:9px;font-weight:700;display:block}.backup-controls select{width:100%;height:40px;color:var(--ink);border:1px solid var(--line);background:#fff;border-radius:10px;outline:0;padding:0 10px;font-size:10px}.backup-controls>small{color:#929a96;text-overflow:ellipsis;white-space:nowrap;margin-top:6px;font-size:9px;display:block;overflow:hidden}.backup-actions{justify-content:flex-end;gap:8px;margin-top:12px;display:flex}.backup-message{border-radius:8px;margin:10px 0 0;padding:8px 10px;font-size:10px}.backup-message.success{color:#587535;background:#eff6dc}.backup-message.error{color:#a0442e;background:var(--soft-orange)}.transactions-heading{border-bottom:1px solid var(--line);justify-content:space-between;align-items:flex-end;gap:20px;padding:29px;display:flex}.transaction-tools{align-items:center;gap:10px;display:flex}.month-filter{border:1px solid var(--line);background:#fff;border-radius:10px;align-items:center;gap:8px;height:37px;padding:0 10px;display:flex}.month-filter span{color:#929a96;letter-spacing:.07em;text-transform:uppercase;font-size:9px;font-weight:700}.month-filter input{width:112px;color:var(--ink);background:0 0;border:0;outline:0;padding:0;font-size:10px}.search-box{color:#89908c;border:1px solid var(--line);background:#fff;border-radius:10px;align-items:center;gap:7px;height:37px;padding:0 11px;display:flex}.search-box input{width:145px;color:var(--ink);border:0;outline:0;padding:0;font-size:11px}.filter-tabs{border:1px solid var(--line);background:#f3f3ee;border-radius:10px;padding:3px;display:flex}.filter-tabs button{cursor:pointer;color:var(--muted);background:0 0;border:0;border-radius:7px;padding:7px 11px;font-size:10px}.filter-tabs button.active{color:var(--ink);background:#fff;font-weight:700;box-shadow:0 2px 8px #20282414}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%}th{color:#929a96;letter-spacing:.08em;text-align:left;text-transform:uppercase;background:#f8f8f4;padding:13px 22px;font-size:9px;font-weight:700}td{color:#5d6661;border-top:1px solid #e8e9e3;padding:14px 22px;font-size:11px}tbody tr:first-child td{border-top:0}tbody tr:hover{background:#fafaf5}.transaction-name{align-items:center;gap:11px;min-width:190px;display:flex}.transaction-name>span{color:#c35439;background:var(--soft-orange);border-radius:10px;place-items:center;width:34px;height:34px;font-size:16px;font-weight:700;display:grid}.transaction-name.income>span{color:#587535;background:#eff6dc}.transaction-name strong{color:var(--ink);font-size:11px;display:block}.transaction-name small{color:#929a96;text-overflow:ellipsis;white-space:nowrap;max-width:250px;margin-top:3px;display:block;overflow:hidden}.category-chip{background:#f7f7f2;border:1px solid #e1e3dc;border-radius:999px;padding:5px 8px;font-size:9px}.amount{color:#c85a3e;min-width:150px;font-family:Manrope;font-weight:700}.amount.income{color:#638440}.row-actions{justify-content:flex-end;gap:3px;display:flex}.row-actions button{color:#8a928e;cursor:pointer;background:0 0;border:0;border-radius:8px;place-items:center;width:30px;height:30px;padding:0;display:grid}.row-actions button:hover{color:var(--ink);background:#edeee8}.row-actions button:last-child:hover{color:#ce593c;background:var(--soft-orange)}.pagination{border-top:1px solid var(--line);background:#fafaf6;justify-content:space-between;align-items:center;gap:18px;min-height:62px;padding:12px 22px;display:flex}.pagination>span{color:var(--muted);font-size:10px}.pagination>div{align-items:center;gap:12px;display:flex}.pagination strong{text-align:center;min-width:82px;font-size:10px}.pagination button{height:32px;color:var(--ink);border:1px solid var(--line);cursor:pointer;background:#fff;border-radius:8px;align-items:center;gap:4px;padding:0 10px;font-size:10px;font-weight:700;display:inline-flex}.pagination button:hover:not(:disabled){background:#f3f4ee;border-color:#aeb3ad}.pagination button:disabled{cursor:not-allowed;opacity:.4}.empty-state{min-height:270px;color:var(--muted);text-align:center;flex-direction:column;justify-content:center;align-items:center;font-size:12px;display:flex}.empty-state>span{background:#eff0e9;border-radius:50%;place-items:center;width:54px;height:54px;margin-bottom:13px;display:grid}.empty-state strong{color:var(--ink);font-family:Manrope;font-size:15px}.empty-state p{margin:6px 0 16px}footer{min-height:94px;color:var(--muted);border-top:1px solid #20282421;justify-content:space-between;align-items:center;gap:20px;font-size:10px;display:flex}footer .brand{font-size:18px}.modal-backdrop{z-index:20;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background:#131a1794;place-items:center;padding:24px;display:grid;position:fixed;inset:0}.transaction-modal{background:var(--surface);border:1px solid #ffffff73;border-radius:22px;width:min(570px,100%);max-height:calc(100vh - 40px);padding:30px;overflow-y:auto;box-shadow:0 32px 90px #0e141147}.modal-heading{justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:25px;display:flex}.modal-heading h2{font-size:31px}.type-switch{background:#eeeee8;border-radius:12px;grid-template-columns:1fr 1fr;gap:7px;margin-bottom:20px;padding:5px;display:grid}.type-switch button{height:42px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:9px;justify-content:center;align-items:center;gap:7px;font-size:11px;font-weight:700;display:flex}.type-switch button.active{background:#fff;box-shadow:0 4px 12px #20282414}.type-switch button.active.expense{color:#cc5b3f}.type-switch button.active.income{color:#638440}.form-row{grid-template-columns:1fr 1fr;gap:13px;display:grid}.field{margin-bottom:15px;display:block}.field>span{color:#5f6863;margin-bottom:7px;font-size:10px;font-weight:700;display:block}.field span i{color:#a0a6a2;font-weight:400}.field input,.field select{width:100%;height:43px;color:var(--ink);border:1px solid var(--line);background:#fff;border-radius:10px;outline:0;padding:0 12px;font-size:12px}.field input:focus,.field select:focus{border-color:#8c9791;box-shadow:0 0 0 3px #202b2612}.amount-field>div{border:1px solid var(--line);background:#fff;border-radius:10px;align-items:center;height:43px;padding-left:12px;display:flex}.amount-field>div:focus-within{border-color:#8c9791;box-shadow:0 0 0 3px #202b2612}.amount-field b{color:#777f7b;font-size:11px}.amount-field input{border:0;height:40px;box-shadow:none!important}.modal-actions{border-top:1px solid var(--line);justify-content:flex-end;gap:9px;margin-top:8px;padding-top:19px;display:flex}@media (width<=1000px){.app-shell{padding:0 28px}.summary-grid{grid-template-columns:1fr 1fr}.summary-card.balance{grid-column:1/-1}.insight-grid{grid-template-columns:1fr}.category-content{justify-content:center}.category-list{max-width:260px}.backup-panel{grid-template-columns:1fr}.transactions-heading{flex-direction:column;align-items:flex-start}.transaction-tools{width:100%}.search-box{flex:1}.search-box input{width:100%}}@media (width<=680px){.app-shell{padding:0 17px}.topbar{height:74px}.header-right{gap:7px}.logout-button{padding:7px 9px}.add-button{width:42px;padding:0;font-size:0}.hero{flex-direction:column;justify-content:center;align-items:flex-start;min-height:210px;padding:28px 0 24px}.hero h1{font-size:47px}.period-nav{justify-content:space-between;width:100%;padding:0}.summary-grid{grid-template-columns:1fr}.summary-card.balance{grid-column:auto}.summary-card{min-height:128px}.insight-grid{margin-top:12px}.chart-panel,.category-panel{min-height:auto;padding:22px 18px}.chart-panel h2,.category-panel h2{font-size:24px}.net-pill{display:none}.bar-chart{gap:8px}.bar{width:10px}.category-content{margin:34px 0 8px}.required-heading{flex-direction:column;align-items:flex-start;padding:22px 18px}.required-actions{flex-direction:column;align-items:stretch;width:100%}.required-actions .month-filter{justify-content:space-between}.required-summary{grid-template-columns:1fr 1fr;padding:18px 18px 24px}.required-summary>div:nth-child(2){display:none}.required-progress{left:18px;right:18px}.required-item{grid-template-columns:auto 1fr auto;gap:10px;padding:14px 16px}.required-item>b{min-width:0;font-size:11px}.required-item .row-actions{grid-column:2/-1;justify-content:flex-end;margin-top:-6px}.backup-panel{gap:24px;padding:22px 18px}.backup-actions{justify-content:stretch}.backup-actions .button{flex:1}.transactions-heading{padding:22px 18px}.transaction-tools{flex-direction:column;align-items:stretch}.month-filter{justify-content:space-between}.month-filter input{width:auto}.filter-tabs{justify-content:stretch}.filter-tabs button{flex:1}.pagination{flex-direction:column;align-items:stretch}.pagination>div{justify-content:space-between}.pagination button{font-size:0}.pagination button svg{margin:0}th,td{padding:12px 16px}table th:nth-child(2),table td:nth-child(2),table th:nth-child(3),table td:nth-child(3){display:none}footer{flex-direction:column;align-items:flex-start;padding:30px 0}.transaction-modal{padding:23px 18px}.form-row{grid-template-columns:1fr;gap:0}.modal-actions .button{flex:1}}
