:root{--bg: #f8fafc;--surface: #ffffff;--text: #1e293b;--text-muted: #64748b;--border: #e2e8f0;--accent: #6366f1;--accent-light: #eef2ff;--success: #22c55e;--radius: 16px;--shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04)}.dark{--bg: #0f172a;--surface: #1e293b;--text: #f1f5f9;--text-muted: #94a3b8;--border: #334155;--accent-light: #312e81}*{box-sizing:border-box;margin:0;padding:0}body{background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:15px}.app{display:flex;flex-direction:column;min-height:100vh}.content{flex:1;padding:16px 16px 80px;overflow-y:auto}.loading{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100vh;gap:16px;color:var(--text-muted)}.spinner{width:36px;height:36px;border:3px solid var(--border);border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.bottom-nav{position:fixed;bottom:0;left:0;right:0;display:flex;background:var(--surface);border-top:1px solid var(--border);padding:8px 0 env(safe-area-inset-bottom);z-index:100}.nav-btn{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;background:none;border:none;cursor:pointer;padding:6px;color:var(--text-muted);transition:color .2s}.nav-btn.active{color:var(--accent)}.nav-icon{font-size:22px}.nav-label{font-size:11px;font-weight:500}.card{background:var(--surface);border-radius:var(--radius);padding:16px;margin-bottom:12px;box-shadow:var(--shadow)}.card-title{font-size:13px;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.5px;margin-bottom:12px}.total-card{background:linear-gradient(135deg,#6366f1,#8b5cf6);color:#fff;border-radius:var(--radius);padding:20px;margin-bottom:12px}.total-label{font-size:13px;opacity:.85;margin-bottom:4px}.total-amount{font-size:36px;font-weight:700;letter-spacing:-1px}.total-sub{font-size:13px;opacity:.75;margin-top:4px}.category-item{display:flex;align-items:center;gap:12px;padding:8px 0;border-bottom:1px solid var(--border)}.category-item:last-child{border-bottom:none}.category-icon{width:36px;height:36px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:18px;flex-shrink:0}.category-info{flex:1}.category-name{font-weight:500;font-size:14px}.category-bar-wrap{height:4px;background:var(--border);border-radius:2px;margin-top:4px}.category-bar{height:4px;border-radius:2px;transition:width .6s ease}.category-right{text-align:right;flex-shrink:0}.category-amount{font-weight:600;font-size:14px}.category-percent{font-size:12px;color:var(--text-muted)}.tx-item{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--border)}.tx-item:last-child{border-bottom:none}.tx-icon{width:40px;height:40px;border-radius:12px;background:var(--accent-light);display:flex;align-items:center;justify-content:center;font-size:20px;flex-shrink:0}.tx-info{flex:1;overflow:hidden}.tx-merchant{font-weight:500;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tx-desc{font-size:12px;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tx-date{font-size:11px;color:var(--text-muted)}.tx-right{text-align:right;flex-shrink:0}.tx-amount{font-weight:600;font-size:15px;color:#ef4444}.tx-source{font-size:11px;color:var(--text-muted)}.source-icon{font-size:10px}.empty{text-align:center;padding:48px 16px;color:var(--text-muted)}.empty-emoji{font-size:48px;display:block;margin-bottom:12px}.empty-text{font-size:15px;font-weight:500;margin-bottom:6px}.empty-sub{font-size:13px}
