*{box-sizing:border-box}:root{color:#0f172a;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent;background:#e5e7eb;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}body{background:radial-gradient(circle at 12% 0,#34d39938,#0000 34%),linear-gradient(#f8fafc 0%,#e5e7eb 100%);min-width:320px;min-height:100vh;margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;border:0}.app-shell{background:#f1f5f9;width:100%;max-width:430px;min-height:100vh;margin:0 auto;padding-bottom:110px;box-shadow:0 0 0 1px #0f172a0a,0 30px 90px #0f172a29}.hero-card{padding:max(22px, env(safe-area-inset-top)) 18px 20px;color:#fff;background:linear-gradient(135deg,#14b8a6f2,#0f172afa),radial-gradient(circle at 80% 20%,#facc154d,#0000 30%);border-bottom-right-radius:32px;border-bottom-left-radius:32px}.hero-top,.summary-grid,.transaction-main,.section-title,.month-row,.search-row,.backup-card,.sheet-head,.two-cols{display:flex}.hero-top{justify-content:space-between;align-items:center;gap:14px;margin-bottom:20px}.eyebrow{color:#ffffffb3;letter-spacing:.06em;text-transform:uppercase;margin:0 0 4px;font-size:12px;font-weight:700}h1,h2,h3,p{margin:0}.hero-card h1{letter-spacing:-.04em;font-size:27px;line-height:1.05}.logo-badge{color:#0f172a;background:#ffffffeb;border-radius:18px;place-items:center;width:48px;height:48px;display:grid;box-shadow:0 12px 36px #00000029}.balance-box{-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);background:#ffffff1a;border:1px solid #ffffff24;border-radius:26px;padding:18px}.balance-box p,.balance-box small{color:#ffffffb8;font-size:12px;font-weight:600}.balance-box h2{letter-spacing:-.05em;margin:8px 0 14px;font-size:31px;line-height:1.05}.danger-text{color:#fecaca}.budget-bar,.mini-bar{background:#ffffff29;border-radius:999px;overflow:hidden}.budget-bar{height:8px;margin-bottom:8px}.budget-bar span{border-radius:inherit;background:linear-gradient(90deg,#facc15,#fb7185);height:100%;display:block}.summary-grid{gap:12px;margin-top:13px}.summary-card{background:#ffffff1a;border:1px solid #ffffff1f;border-radius:22px;flex:1;min-width:0;padding:14px}.summary-card svg{margin-bottom:9px}.summary-card span{color:#ffffffb3;margin-bottom:4px;font-size:11px;font-weight:700;display:block}.summary-card strong{text-overflow:ellipsis;white-space:nowrap;font-size:14px;display:block;overflow:hidden}main{padding:14px 14px 0}.control-card,.insight-card,.list-card,.backup-card{background:#fff;border:1px solid #0f172a0f;border-radius:25px;padding:16px;box-shadow:0 12px 32px #0f172a0f}.control-card{margin-top:-2px}.month-row,.search-row{color:#64748b;background:#f8fafc;border-radius:17px;align-items:center;gap:10px;padding:12px 13px}.month-row input,.search-row input,.entry-sheet input,.entry-sheet select,.entry-sheet textarea{color:#0f172a;background:0 0;border:0;outline:0;width:100%;min-width:0}.search-row{margin-top:10px}.search-row button{color:#64748b;background:0 0;place-items:center;display:grid}.filter-tabs{grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px;display:grid}.filter-tabs button,.type-switch button{color:#64748b;background:#f1f5f9;border-radius:15px;padding:11px 10px;font-size:13px;font-weight:800}.filter-tabs button.active{color:#fff;background:#0f172a}.insight-card,.list-card,.backup-card{margin-top:12px}.section-title{justify-content:space-between;align-items:center;gap:10px;margin-bottom:14px}.section-title div{color:#0f172a;align-items:center;gap:7px;font-size:14px;font-weight:900;display:flex}.section-title span{color:#94a3b8;font-size:11px;font-weight:800}.category-row+.category-row{margin-top:13px}.category-row div:first-child{justify-content:space-between;align-items:center;gap:12px;margin-bottom:7px;display:flex}.category-row b{font-size:13px}.category-row span{color:#64748b;font-size:12px;font-weight:700}.mini-bar{background:#eef2f7;height:7px}.mini-bar span{border-radius:inherit;background:linear-gradient(90deg,#fb7185,#f97316);height:100%;display:block}.transaction{background:#f8fafc;border-radius:20px;gap:12px;padding:16px 44px 16px 14px;display:flex;position:relative}.transaction+.transaction{margin-top:10px}.transaction-icon{border-radius:15px;flex:none;place-items:center;width:39px;height:39px;display:grid}.transaction-icon.income{color:#047857;background:#d1fae5}.transaction-icon.expense{color:#be123c;background:#ffe4e6}.transaction-info{flex:1;min-width:0}.transaction-main{justify-content:space-between;align-items:flex-start;gap:8px}.transaction h3{color:#0f172a;text-overflow:ellipsis;font-size:13px;font-weight:900;line-height:1.25;overflow:hidden}.transaction strong{white-space:nowrap;flex:none;font-size:12px}.transaction strong.income{color:#059669}.transaction strong.expense{color:#e11d48}.transaction-meta{color:#94a3b8;flex-wrap:wrap;gap:5px;margin-top:6px;font-size:11px;font-weight:700;display:flex}.transaction-info p{color:#64748b;margin-top:8px;font-size:12px;line-height:1.45}.delete-btn{color:#94a3b8;background:#fff;border-radius:12px;place-items:center;width:30px;height:30px;display:grid;position:absolute;top:14px;right:12px}.empty-state,.empty-small{color:#94a3b8;text-align:center}.empty-state{padding:34px 18px}.empty-state svg{margin-bottom:10px}.empty-state h3{color:#334155;font-size:15px}.empty-state p,.empty-small{margin-top:6px;font-size:12px}.backup-card{gap:8px}.backup-card button,.backup-card label{color:#334155;background:#f8fafc;border-radius:16px;flex:1;justify-content:center;align-items:center;gap:6px;padding:12px 8px;font-size:12px;font-weight:900;display:flex}.backup-card input{display:none}.fab{right:max(18px,50vw - 197px);bottom:max(22px, env(safe-area-inset-bottom));color:#fff;background:linear-gradient(135deg,#10b981,#0f172a);border-radius:22px;place-items:center;width:60px;height:60px;display:grid;position:fixed;box-shadow:0 18px 40px #0f172a47}.sheet-backdrop{z-index:30;background:#0f172a8c;justify-content:center;align-items:flex-end;padding:0 10px;display:flex;position:fixed;inset:0}.entry-sheet{width:100%;max-width:430px;max-height:92vh;padding:10px 18px max(18px, env(safe-area-inset-bottom));background:#fff;border-top-left-radius:32px;border-top-right-radius:32px;animation:.22s ease-out rise;overflow-y:auto}@keyframes rise{0%{opacity:.5;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}.sheet-handle{background:#cbd5e1;border-radius:99px;width:44px;height:5px;margin:0 auto 16px}.sheet-head{justify-content:space-between;align-items:center;margin-bottom:14px}.sheet-head h2{letter-spacing:-.03em;font-size:19px}.sheet-head button{color:#64748b;background:#f1f5f9;border-radius:14px;place-items:center;width:38px;height:38px;display:grid}.type-switch{grid-template-columns:1fr 1fr;gap:9px;margin-bottom:14px;display:grid}.type-switch button.active.expense{color:#fff;background:#e11d48}.type-switch button.active.income{color:#fff;background:#059669}.entry-sheet label{color:#64748b;margin-top:12px;font-size:12px;font-weight:900;display:block}.entry-sheet input,.entry-sheet select,.entry-sheet textarea{color:#0f172a;resize:none;background:#f8fafc;border-radius:17px;margin-top:7px;padding:14px;font-size:14px}.two-cols{gap:10px}.two-cols label{flex:1;min-width:0}.save-btn{color:#fff;background:#0f172a;border-radius:18px;width:100%;margin-top:16px;padding:15px;font-weight:900}@media (width>=431px){.app-shell{min-height:100vh}}
