@layer theme{:root,:host{--font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.visible{visibility:visible}.static{position:static}}:root{color:#20242c;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;font-optical-sizing:auto;background:#f4f5f7;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif}*{box-sizing:border-box}body{min-width:320px;margin:0}.app{--bg:#f4f5f7;--surface:#fff;--surface2:#f8f9fa;--text:#20242c;--muted:#89909c;--line:#eceef1;--accent:#4f72dc;--accent-soft:#edf1ff;background:var(--bg);min-height:100dvh;color:var(--text);padding:env(safe-area-inset-top) 18px calc(100px + env(safe-area-inset-bottom));max-width:640px;margin:auto;transition:background .2s,color .2s}.app.dark{--bg:#15171b;--surface:#202329;--surface2:#292d34;--text:#f0f1f4;--muted:#9da3ae;--line:#333740;--accent:#8ba2ff;--accent-soft:#2b3452;color-scheme:dark}.top{justify-content:space-between;align-items:center;height:72px;display:flex}.brand{align-items:center;gap:11px;display:flex}.brandmark{color:#4f72dc;background:#e9edff;border-radius:12px;place-items:center;width:38px;height:38px;display:grid}.eyebrow{letter-spacing:1.25px;color:var(--muted);font-size:9px;font-weight:750}.brand h1{letter-spacing:-.35px;margin:2px 0 0;font-size:18px}.avatar{color:#4e68b6;background:#dce4ff;border:0;border-radius:50%;width:36px;height:36px;font-weight:700}.avatar span{color:#d5896f}.demo{color:#98703b;background:#fff5e5;border-radius:8px;align-items:center;gap:7px;height:30px;margin:0 0 12px;padding:0 10px;font-size:10px;display:flex}.demo-dot{background:#d4a44a;border-radius:50%;width:6px;height:6px}.dark .demo{color:#ddbc7e;background:#342b1d}.monthbar{justify-content:space-between;align-items:center;height:42px;margin:2px 0 10px;display:flex}.monthbar>span,.monthlabel{text-transform:capitalize;font-size:13px;font-weight:650}.monthlabel{color:var(--text);background:0 0;border:0;align-items:center;gap:6px;display:flex}.chev{color:var(--muted);font-size:17px}.iconbtn{border:1px solid var(--line);background:var(--surface);width:34px;height:34px;color:var(--text);border-radius:10px;place-items:center;display:grid}.hero{background:var(--surface);border:1px solid var(--line);border-radius:15px;padding:19px 19px 16px;box-shadow:0 3px 14px #27304408}.hero-top{color:var(--muted);letter-spacing:1.1px;justify-content:space-between;align-items:center;font-size:9px;font-weight:750;display:flex}.hero-top button{color:var(--muted);background:0 0;border:0;padding:0}.hero-amount{letter-spacing:-1.8px;margin-top:14px;font-size:38px;font-weight:720;line-height:1.1}.hero-caption{color:var(--muted);margin-top:4px;font-size:11px}.hero-rule{background:var(--line);height:1px;margin:18px 0 13px}.hero-stats{gap:10px;display:grid}.hero-stats>div{color:var(--muted);align-items:center;font-size:11px;display:flex}.hero-stats b{color:var(--text);margin-left:auto;font-size:12px;font-weight:630}.stat-dot{border-radius:50%;width:7px;height:7px;margin-right:8px}.expense-dot{background:#dc8a76}.income-dot{background:#53b58a}.refund-dot{background:#a9b1bd}.summary{background:var(--surface);border:1px solid var(--line);border-radius:13px;justify-content:space-between;align-items:center;margin-top:10px;padding:14px 16px;display:flex}.summary>div:first-child{gap:3px;display:grid}.summary span{color:var(--muted);letter-spacing:1px;font-size:9px;font-weight:750}.summary strong{letter-spacing:-.4px;font-size:20px}.summary small{color:var(--muted);font-size:10px}.summary-icon{background:var(--accent-soft);width:34px;height:34px;color:var(--accent);border-radius:10px;place-items:center;display:grid}.negative{color:#d27869}.section-head{justify-content:space-between;align-items:center;margin:25px 0 13px;display:flex}.section-head h2{letter-spacing:-.25px;margin:0;font-size:15px;font-weight:680}.section-head p{color:var(--muted);margin:4px 0 0;font-size:10px}.textbtn{color:var(--accent);background:0 0;border:0;align-items:center;gap:1px;padding:5px 0;font-size:11px;font-weight:600;display:flex}.category-list{gap:14px;display:grid}.category{align-items:center;gap:10px;display:flex}.cat-icon,.tx-icon{background:var(--surface);border:1px solid var(--line);color:#707b91;border-radius:10px;flex:none;place-items:center;width:34px;height:34px;display:grid}.cat-main{flex:1;min-width:0}.cat-title{justify-content:space-between;align-items:center;margin-bottom:7px;font-size:11px;display:flex}.cat-title b,.cat-title span{font-weight:600}.track{background:#e9ebef;border-radius:8px;height:5px;overflow:hidden}.dark .track{background:#393d45}.track i{background:#8497e5;border-radius:8px;height:100%;display:block}.recent-head{margin-top:26px}.recent{background:var(--surface);border:1px solid var(--line);border-radius:13px;gap:1px;padding:3px 11px;display:grid}.transaction{text-align:left;border:0;border-bottom:1px solid var(--line);width:100%;min-height:59px;color:var(--text);background:0 0;align-items:center;gap:10px;padding:8px 0;display:flex}.transaction:last-child{border-bottom:0}.tx-icon{background:var(--surface2);width:34px;height:34px}.tx-icon.positive{color:#3ea67b;background:#edf8f2}.tx-info{flex:1;gap:4px;min-width:0;display:grid}.tx-info b{white-space:nowrap;text-overflow:ellipsis;font-size:11px;font-weight:620;overflow:hidden}.tx-info span{color:var(--muted);white-space:nowrap;text-overflow:ellipsis;font-size:9px;overflow:hidden}.tx-amount{white-space:nowrap;font-size:11px;font-weight:650}.positive-text{color:#369c72}.empty{background:var(--surface);border:1px solid var(--line);text-align:center;border-radius:14px;flex-direction:column;align-items:center;margin-top:8px;padding:24px 17px;display:flex}.empty-mark{background:var(--accent-soft);width:40px;height:40px;color:var(--accent);border-radius:13px;place-items:center;margin-bottom:12px;display:grid}.empty>b{font-size:13px}.empty p{color:var(--muted);max-width:260px;margin:7px 0 14px;font-size:11px;line-height:1.5}.empty button{background:var(--accent);color:#fff;border:0;border-radius:9px;align-items:center;gap:8px;height:34px;padding:0 12px;font-size:11px;font-weight:600;display:flex}.page-title{justify-content:space-between;align-items:center;padding:16px 0 19px;display:flex}.page-title h2{letter-spacing:-.8px;margin:4px 0 0;font-size:25px}.addbtn{background:var(--accent);color:#fff;border:0;border-radius:9px;align-items:center;gap:5px;height:35px;padding:0 11px;font-size:11px;font-weight:600;display:flex}.search{background:var(--surface);border:1px solid var(--line);height:40px;color:var(--muted);border-radius:10px;align-items:center;gap:9px;padding:0 11px;display:flex}.search input{color:var(--text);font:inherit;background:0 0;border:0;outline:0;flex:1;font-size:12px}.chips{scrollbar-width:none;gap:6px;padding:12px 0 8px;display:flex;overflow:auto}.chips button{white-space:nowrap;border:1px solid var(--line);background:var(--surface);color:var(--muted);border-radius:20px;padding:6px 10px;font-size:10px}.chips button.selected{background:var(--accent-soft);color:var(--accent);border-color:#0000;font-weight:650}.list-date{color:var(--muted);text-transform:capitalize;margin:14px 0 5px;font-size:11px;font-weight:650}.budget-month{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:0 9px}.budget-list{gap:10px;margin-top:12px;display:grid}.budget-card{background:var(--surface);border:1px solid var(--line);border-radius:13px;padding:15px}.budget-title{justify-content:space-between;align-items:start;margin-bottom:12px;display:flex}.budget-title>div{gap:5px;display:grid}.budget-title b{font-size:13px}.budget-title small,.budget-left{color:var(--muted);font-size:10px}.budget-title button{color:var(--accent);background:0 0;border:0;font-size:10px}.budget-card .track i{background:#59b58e}.budget-card .track i.over{background:#d77e6f}.budget-left{margin-top:7px}.settings-icon{color:var(--muted)}.settings-card{background:var(--surface);border:1px solid var(--line);border-radius:13px;margin-bottom:11px;padding:0 13px}.setting-row{border-bottom:1px solid var(--line);min-height:58px;color:var(--muted);align-items:center;gap:10px;display:flex}.setting-row:last-child{border:0}.person-avatar{color:#5973c6;background:#e7ecff;border-radius:50%;place-items:center;width:31px;height:31px;font-size:12px;font-weight:700;display:grid}.person-avatar.second{color:#c07860;background:#ffede6}.setting-label{flex:1;gap:4px;display:grid}.setting-label b{color:var(--text);font-size:11px;font-weight:620}.setting-label small{color:var(--muted);font-size:9px}.setting-icon{background:var(--surface2);border-radius:9px;place-items:center;width:30px;height:30px;display:grid}.setting-row.full{text-align:left;background:0 0;border:0;width:100%}.toggle{background:#d8dbe2;border-radius:20px;width:36px;height:21px;padding:3px;transition:all .2s}.toggle i{background:#fff;border-radius:50%;width:15px;height:15px;transition:all .2s;display:block}.toggle.on{background:#5f7ce2}.toggle.on i{transform:translate(15px)}.settings-note{text-align:center;color:var(--muted);padding:13px;font-size:10px}.fab{display:none}.tabbar{z-index:5;width:min(640px,100%);height:calc(62px + env(safe-area-inset-bottom));padding:6px 10px env(safe-area-inset-bottom);background:var(--surface);border-top:1px solid var(--line);justify-content:space-around;display:flex;position:fixed;bottom:0;left:50%;transform:translate(-50%)}.tabbar button{color:#969ca7;background:0 0;border:0;flex-direction:column;justify-content:center;align-items:center;gap:4px;width:25%;font-size:9px;display:flex}.tabbar button.active{color:var(--accent);font-weight:650}.overlay{z-index:10;background:#15192366;justify-content:center;align-items:flex-end;display:flex;position:fixed;inset:0}.sheet{background:var(--bg);width:min(640px,100%);max-height:92dvh;padding:9px 19px calc(20px + env(safe-area-inset-bottom));border-radius:18px 18px 0 0;animation:.22s ease-out slide;overflow:auto}.sheet-grab{background:#c9cbd1;border-radius:5px;width:34px;height:4px;margin:0 auto 15px}.sheet-head{justify-content:space-between;align-items:center;margin-bottom:16px;display:flex}.sheet-head h2{margin:4px 0 0;font-size:19px}.form-label{color:var(--muted);margin:12px 0 6px;font-size:10px;font-weight:650;display:block}.amount-input{background:var(--surface);border:1px solid var(--line);border-radius:11px;align-items:center;height:52px;padding:0 13px;display:flex}.amount-input input{min-width:0;color:var(--text);background:0 0;border:0;outline:0;flex:1;font-size:26px;font-weight:700}.amount-input span{color:var(--muted);font-weight:650}.type-tabs{background:var(--surface2);border-radius:9px;grid-template-columns:repeat(4,1fr);gap:4px;margin:10px 0 14px;padding:4px;display:grid}.type-tabs button{height:29px;color:var(--muted);background:0 0;border:0;border-radius:7px;font-size:9px}.type-tabs button.chosen{background:var(--surface);color:var(--text);box-shadow:0 1px 3px #0001}.field{background:var(--surface);width:100%;height:40px;color:var(--text);border:1px solid var(--line);font:inherit;border-radius:9px;outline:none;padding:0 10px;font-size:11px}.field:focus,.amount-input:focus-within{border-color:var(--accent)}.two-fields{grid-template-columns:1fr 1fr;gap:10px;display:grid}.optional{font-weight:400}.savebtn{background:var(--accent);color:#fff;border:0;border-radius:10px;justify-content:center;align-items:center;gap:7px;width:100%;height:43px;margin-top:17px;font-size:12px;font-weight:650;display:flex}.deletebtn{color:#cf685b;background:0 0;border:0;width:100%;padding:12px;font-size:11px}.form-error{color:#ce5f53;margin-top:8px;font-size:10px}.loading{background:var(--bg);color:var(--muted);z-index:20;place-items:center;font-size:12px;display:grid;position:fixed;inset:0}@keyframes slide{0%{opacity:.7;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@media(min-width:700px){.app{padding-left:26px;padding-right:26px}.hero{padding:22px}.fab{background:var(--accent);color:#fff;border:0;border-radius:24px;align-items:center;gap:7px;padding:12px 17px;font-size:11px;display:flex;position:fixed;bottom:80px;left:calc(50% + 220px);box-shadow:0 5px 15px #4f72dc44}.tabbar{height:65px}}.budget-actions{gap:8px;display:flex}.budget-actions .remove-budget{color:#ca7164}.connection-error{color:#a3473d;background:#fff2f0;border:1px solid #e5b4ae;border-radius:10px;justify-content:space-between;align-items:center;gap:10px;margin:10px 0;padding:12px;font-size:11px;display:flex}.connection-error button{color:#a3473d;font:inherit;background:0 0;border:0;text-decoration:underline}.settings-category-head{justify-content:space-between;align-items:center;padding:13px 0;display:flex}.settings-category-head>div{gap:4px;display:grid}.settings-category-head b{font-size:12px}.settings-category-head small{color:var(--muted);font-size:9px}.settings-category-head button,.category-setting button{color:var(--accent);background:0 0;border:0;font-size:10px}.category-setting{gap:8px}.category-setting b{color:var(--text);flex:1;font-size:10px;font-weight:600}.category-kind{color:var(--muted);width:42px;font-size:9px}.category-setting .category-remove{color:#ca7164}.dark .connection-error{color:#efa79b;background:#352321;border-color:#603a35}.dark .connection-error button{color:#efa79b}body:has(.app.dark){background:#15171b}
