@font-face{font-family:Manrope;src:url('/assets/manrope-regular.ttf') format('truetype');font-weight:400;font-display:swap}@font-face{font-family:Manrope;src:url('/assets/manrope-bold.ttf') format('truetype');font-weight:600 900;font-display:swap}
:root{--blue:#2563eb;--ink:#172033;--muted:#606c7d;--border:#dfe5ee}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;background:#f5f7fb;color:var(--ink);font:14px/1.65 Manrope,Arial,sans-serif}a{color:var(--blue);text-decoration:none}button,input,select{font:inherit}button{cursor:pointer}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #759eff;outline-offset:3px}h1,h2,h3,p{margin:0}h1,h2,h3{line-height:1.25;letter-spacing:-.04em}h1{font-size:32px}h2{font-size:19px}h3{font-size:17px}button{color:inherit}button:disabled{cursor:not-allowed}.demo-banner{background:#203b72;color:#fff;display:flex;justify-content:space-between;gap:20px;padding:10px 30px;font-size:10px}.demo-banner a{color:#fff;text-decoration:underline;text-underline-offset:3px}.budget-wrap{width:min(1180px,calc(100% - 64px));margin-inline:auto}.budget-header{background:#fff;border-bottom:1px solid var(--border)}.budget-header>.budget-wrap{display:flex;align-items:center;min-height:82px;gap:48px}.budget-brand{display:flex;gap:10px;align-items:center;color:var(--ink);font-size:23px;font-weight:700;letter-spacing:-.06em}.budget-brand>span{display:grid;place-items:center;width:37px;height:37px;background:var(--blue);color:#fff;border-radius:11px;font-size:21px}.budget-header nav{display:flex;gap:7px;flex:1}.budget-header nav button{border:0;background:transparent;font-size:12px;color:var(--muted);padding:9px 14px;border-radius:6px}.budget-header nav button.active{background:#edf3ff;color:#194ec0}.budget-header nav button:hover{background:#f3f6fb}.demo-user{font-size:11px;color:var(--muted)}main.budget-wrap{min-height:75vh;padding-block:26px 50px}.budget-notice{background:#edf2fc;border:1px solid #d8e3f8;border-radius:7px;padding:12px 16px;font-size:10px;display:flex;justify-content:space-between;align-items:center;gap:20px;color:#40567b;margin-bottom:30px}.budget-notice button{background:transparent;border:0;padding:5px;color:#234d99;white-space:nowrap;font-size:10px;text-decoration:underline;text-underline-offset:3px}.budget-page-heading{display:flex;justify-content:space-between;gap:30px;align-items:center;margin-bottom:29px}.eyebrow{color:var(--blue);font-size:10px;letter-spacing:.12em;font-weight:700;margin-bottom:9px}.muted{color:var(--muted);font-size:12px;margin-top:8px}.b-button{border:1px solid var(--border);background:#fff;color:#42536b;font-size:12px;font-weight:600;border-radius:7px;padding:11px 17px;min-height:42px;white-space:nowrap}.b-button:hover{background:#edf2fa}.primary{background:var(--blue);border-color:var(--blue);color:white}.primary:hover{background:#194ec0}.budget-status{background:#eaf7ec;color:#226537;border:1px solid #bbdfc2;padding:12px 15px;font-size:12px;border-radius:6px;margin-bottom:20px}.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-bottom:27px}.stats-grid>article{background:#fff;border:1px solid var(--border);border-radius:12px;padding:24px;box-shadow:0 2px 8px #17203304}.stat-label{display:flex;align-items:center;gap:10px;color:#536174;font-size:11px}.stat-icon{width:29px;height:29px;border-radius:8px;display:grid;place-items:center;font-size:18px}.income{background:#e5f6e9;color:#18783a}.expense{background:#fff0ee;color:#c64038}.balance{background:#eaf1ff;color:#2563eb}.stats-grid article>p{font-size:34px;font-weight:700;letter-spacing:-.055em;line-height:1.3;margin-top:17px;font-variant-numeric:tabular-nums}.stats-grid small{font-size:10px;color:var(--muted);display:block;margin-top:9px}.income-text{color:#18753c}.expense-text{color:#b83b36}.ledger-card{border:1px solid var(--border);background:#fff;border-radius:12px;overflow:hidden}.ledger-heading{display:flex;align-items:center;justify-content:space-between;padding:25px;gap:20px}.text-button{border:0;background:none;color:#2051b3;font-size:11px;padding:7px 0}.ledger-heading .muted{font-size:11px;margin-top:6px}.table-scroll{overflow-x:auto}table{border-collapse:collapse;width:100%;min-width:650px;font-size:12px}thead{background:#fafbfe;border-block:1px solid var(--border)}th,td{text-align:left;padding:17px 25px;border-bottom:1px solid #ebeff5}thead th{font-size:10px;font-weight:600;color:#68758b}tbody th{font-weight:600;font-size:12px;max-width:310px;overflow-wrap:anywhere}tbody th small{display:block;color:var(--muted);font-size:9px;font-weight:400;margin-top:4px}.align-right{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.category-badge{background:#f0f3f8;border:1px solid #e7ebf1;color:#536078;border-radius:5px;padding:4px 8px;font-size:9px;white-space:nowrap}.date-cell{font-size:10px;color:var(--muted);white-space:nowrap}.row-actions{white-space:nowrap;text-align:right}.row-actions button{border:0;background:transparent;color:#2051b3;font-size:10px;padding:7px 6px}.row-actions button:last-child{color:#b83b36}.row-actions button:hover{text-decoration:underline}.ledger-footer{display:flex;justify-content:space-between;padding:17px 25px;font-size:9px;color:var(--muted);gap:20px}.filters{padding:0 25px 24px;display:flex;gap:20px}.filters label{flex:1;font-size:10px;color:var(--muted)}.filters label:first-child{flex:1.5}input,select{background:white;color:var(--ink);width:100%;border:1px solid #cdd5e2;border-radius:6px;padding:10px;font-size:12px;min-height:40px}label input,label select{display:block;margin-top:6px}.category-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;padding:0 25px 25px}.category-grid article{border:1px solid var(--border);border-radius:8px;padding:20px}.category-grid h3{margin-top:20px;font-size:18px}.category-grid article>p{font-size:26px;font-weight:700;margin-top:10px;font-variant-numeric:tabular-nums}.category-grid small{font-size:10px;color:var(--muted)}.budget-source{font-size:10px;color:var(--muted);max-width:700px;line-height:1.8;margin-top:23px}.budget-source a{margin-left:5px}.budget-footer{border-top:1px solid var(--border);text-align:center;padding:25px;font-size:10px;color:var(--muted);background:#fff}.empty-state{height:170px;text-align:center}.empty-state h3{font-size:17px;margin-bottom:10px}.empty-state p{color:var(--muted);font-size:12px}dialog{border:1px solid var(--border);border-radius:12px;width:min(520px,calc(100% - 32px));padding:28px;max-height:calc(100vh - 40px);color:var(--ink);box-shadow:0 30px 100px #14264b30}dialog::backdrop{background:#14213e66;backdrop-filter:blur(3px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:25px}.dialog-heading h2{font-size:23px}.close-dialog:not(.b-button){border:0;background:none;font-size:25px;padding:0 5px;line-height:1}form>label{display:block;font-size:11px;margin-bottom:18px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:18px}.form-grid label{font-size:11px}.dialog-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:25px}.form-hint{font-size:10px;color:var(--muted);margin-top:20px}#form-error{font-size:12px;color:#b83b36;margin:15px 0}#confirm-dialog>p{font-size:13px;color:var(--muted);margin-top:18px;overflow-wrap:anywhere}.danger-button{background:#b83b36;color:#fff;border-color:#b83b36}.danger-button:hover{background:#9c2e2a}.skip{position:fixed;top:-80px;left:20px;z-index:100;background:#2563eb;color:white;padding:12px 20px}.skip:focus{top:10px}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:900px){.budget-header>.budget-wrap{gap:20px}.demo-user{display:none}.budget-header nav{justify-content:flex-end}.stats-grid article>p{font-size:28px}.stats-grid>article{padding:20px}.stats-grid{gap:15px}th,td{padding:15px 20px}.category-grid{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.budget-wrap{width:calc(100% - 32px)}.demo-banner{font-size:8px;padding:10px 16px}.budget-header>.budget-wrap{display:block;padding-block:18px 12px}.budget-brand{font-size:22px}.budget-brand>span{width:32px;height:32px;font-size:19px}.budget-header nav{margin:14px -6px 0;justify-content:flex-start;gap:3px}.budget-header nav button{font-size:11px;padding:8px 12px}.budget-notice{font-size:9px;padding:10px 12px;align-items:flex-start;gap:10px;margin-bottom:24px}.budget-notice>span{max-width:230px}.budget-notice button{font-size:9px;padding-top:0}.budget-page-heading{display:block;margin-bottom:24px}.budget-page-heading h1{font-size:28px}.budget-page-heading>.b-button{margin-top:20px}.stats-grid{gap:10px;grid-template-columns:1fr}.stats-grid>article{display:grid;grid-template-columns:1fr 1fr;align-items:center;padding:17px 20px}.stat-label{font-size:10px}.stat-icon{width:26px;height:26px;font-size:16px}.stats-grid article>p{margin:0;font-size:25px;text-align:right;grid-column:2;grid-row:1 / span 2}.stats-grid small{font-size:9px;margin:7px 0 0 36px}.ledger-heading{padding:20px 17px}.ledger-heading h2{font-size:17px}.ledger-heading .muted{font-size:10px}.filters{padding:0 17px 20px;flex-wrap:wrap;gap:15px}.filters label:first-child{flex-basis:100%}.filters label{flex-basis:40%}.ledger-footer{padding:15px 17px;font-size:8px}.ledger-footer>span:last-child{max-width:100px;text-align:right}.table-scroll{margin-inline:0}.category-grid{padding:0 17px 17px;gap:12px}.category-grid article{padding:15px}.category-grid h3{font-size:16px}.category-grid article>p{font-size:22px}.category-grid small{font-size:9px}dialog{padding:23px}.form-grid{gap:12px}.budget-source{font-size:9px}}
@media(prefers-reduced-motion:reduce){dialog::backdrop{backdrop-filter:none}}

.budget-app{font-size:16px}.budget-header nav button{font-size:14px}.demo-user{font-size:13px}.budget-notice{font-size:12px}.budget-notice button{font-size:12px;min-height:40px}.muted,.ledger-heading .muted{font-size:14px}.eyebrow{font-size:12px}.b-button{font-size:14px;min-height:46px}.stat-label{font-size:14px}.stats-grid small{font-size:12px}.text-button{font-size:14px;min-height:44px}.ledger-heading h2{font-size:22px}table{font-size:14px}thead th{font-size:12px}tbody th{font-size:14px}tbody th small,.date-cell{font-size:12px}.category-badge{font-size:12px}.row-actions button{font-size:13px;min-height:44px;padding-inline:8px}.ledger-footer{font-size:12px}.filters label,form>label,.form-grid label{font-size:14px}input,select{font-size:16px;min-height:46px}.budget-source,.budget-footer{font-size:12px}.form-hint{font-size:12px}.category-grid small{font-size:12px}.table-scroll:focus-visible{outline:3px solid #759eff;outline-offset:-3px}
@media(max-width:600px){.budget-header nav button{font-size:13px}.budget-notice{font-size:12px}.budget-notice>span{max-width:200px}.budget-notice button{font-size:11px;white-space:normal;max-width:65px;text-align:right}.stat-label{font-size:13px;gap:8px}.stats-grid>article{padding:17px 15px;grid-template-columns:1.1fr 1fr}.stat-icon{flex-shrink:0}.stats-grid article>p{font-size:24px}.stats-grid small{font-size:11px;margin-left:0}.ledger-heading .muted{font-size:13px}.ledger-heading h2{font-size:20px}.text-button{font-size:13px}.ledger-footer{font-size:11px}.budget-source{font-size:12px}.demo-banner{font-size:10px}.category-grid article{min-width:0}.category-grid h3{font-size:16px}.category-grid small{font-size:11px}}

/* Explicit sizing keeps SVG icons consistent in Safari and other browsers. */
.icon{display:inline-block;width:1em;height:1em;flex-shrink:0;vertical-align:-.125em;pointer-events:none}
