:root{--bg: #0f172a;--surface: #1e293b;--surface-2: #334155;--text: #e2e8f0;--muted: #94a3b8;--accent: #38bdf8;--good: #34d399;--bad: #f87171;--radius: 14px;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color-scheme:dark}*{box-sizing:border-box}html,body{margin:0;padding:0;background:var(--bg);color:var(--text)}body{min-height:100dvh;-webkit-font-smoothing:antialiased}.app{max-width:560px;margin:0 auto;padding:1rem 1rem 6rem}h1,h2,h3{font-weight:650;line-height:1.2}h1{font-size:1.4rem;margin:.5rem 0 1rem}h2{font-size:1.05rem;margin:1.25rem 0 .5rem}a{color:var(--accent);text-decoration:none}.card{background:var(--surface);border-radius:var(--radius);padding:1rem;margin-bottom:.85rem}.row{display:flex;align-items:center;justify-content:space-between;gap:.75rem}.muted{color:var(--muted);font-size:.85rem}label,.field-label{display:block;font-size:.85rem;color:var(--muted);margin:.75rem 0 .3rem}input,select,button,textarea{width:100%;font:inherit;color:var(--text);background:var(--surface-2);border:1px solid transparent;border-radius:10px;padding:.7rem .8rem}input:focus,select:focus,textarea:focus{outline:2px solid var(--accent)}button{background:var(--accent);color:#04212e;font-weight:650;border:none;cursor:pointer}button.secondary{background:var(--surface-2);color:var(--text)}button:disabled{opacity:.5;cursor:default}.balance{text-align:center;padding:1.5rem 1rem}.balance .amount{font-size:2.2rem;font-weight:750;margin:.2rem 0}.good{color:var(--good)}.bad{color:var(--bad)}.error{color:var(--bad);font-size:.9rem;margin-top:.5rem}.nav{position:fixed;bottom:0;left:0;right:0;display:flex;background:var(--surface);border-top:1px solid var(--surface-2);padding:.4rem env(safe-area-inset-right) calc(.4rem + env(safe-area-inset-bottom)) env(safe-area-inset-left)}.nav a{flex:1;text-align:center;color:var(--muted);font-size:.75rem;padding:.4rem}.nav a.active{color:var(--accent)}.nav a .ico{display:block;font-size:1.2rem}ul.list{list-style:none;padding:0;margin:0}ul.list li{padding:.7rem 0;border-bottom:1px solid var(--surface-2)}ul.list li:last-child{border:none}.tag{font-size:.7rem;background:var(--surface-2);padding:.1rem .45rem;border-radius:999px;color:var(--muted)}.bar-row{display:flex;align-items:center;gap:.5rem;margin:.45rem 0}.bar-label{flex:0 0 30%;font-size:.85rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bar-track{flex:1;background:var(--surface-2);border-radius:999px;height:10px}.bar-fill{background:var(--accent);height:100%;border-radius:999px;min-width:2px}.bar-val{flex:0 0 5rem;font-size:.8rem;color:var(--muted);text-align:right}.trend{display:flex;align-items:flex-end;gap:.4rem;height:120px;margin-top:.5rem}.trend-col{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%}.trend-bar{width:70%;background:var(--accent);border-radius:6px 6px 0 0;min-height:2px}.trend-label{font-size:.7rem;color:var(--muted);margin-top:.3rem}option{background:var(--surface);color:var(--text)}input[type=number]::-webkit-outer-spin-button,input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield;-webkit-appearance:textfield;appearance:textfield}.iconbtn{width:auto;background:transparent;color:var(--text);border:none;font-size:1.4rem;line-height:1;padding:.1rem .5rem;cursor:pointer;text-decoration:none}.cat-btn{background:var(--surface-2);color:var(--text);font-weight:400;text-align:left;display:flex;justify-content:space-between;align-items:center}.cat-grid{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.5rem}.inline-add{display:flex;gap:.5rem}.inline-add input{flex:1}.chip{width:auto;background:var(--surface-2);color:var(--text);border-radius:999px;padding:.35rem .8rem;font-size:.85rem;font-weight:500;cursor:pointer}.chip.sel{background:var(--accent);color:#04212e}.avatar{display:flex;align-items:center;justify-content:center;border-radius:50%;color:#04212e;font-weight:700}.avatar-lg{width:72px;height:72px;font-size:1.8rem}.color-row{display:flex;flex-wrap:wrap;gap:.5rem}.swatch{width:2rem;height:2rem;border-radius:50%;border:2px solid transparent;padding:0;cursor:pointer}.swatch.sel{border-color:var(--text)}.swatch:disabled{cursor:not-allowed}.dot-btn{width:1.4rem;height:1.4rem;border-radius:50%;border:none;padding:0;cursor:pointer;flex:0 0 auto}.cdot{display:inline-block;width:.6rem;height:.6rem;border-radius:50%;margin-right:.35rem;vertical-align:middle}.bal-link{display:block;color:inherit}.balance.bal-link .amount{font-size:1.8rem}
