:root{--bg:#eef1f7;--surface:#fff;--surface-2:#eef1f6;--border:#e5e9f0;--text:#151a23;--text-dim:#6b7482;--primary:#4f7cff;--primary-strong:#3b6ef5;--primary-dim:#dfe8ff;--income:#0f9d63;--expense:#e5484d;--warn:#d98a00;--radius:16px;--maxw:480px;--shadow-sm:0 1px 2px #141b2d0a, 0 1px 3px #141b2d0d;--shadow:0 6px 20px #141b2d0f, 0 2px 6px #141b2d0a;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;color:var(--text);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent;margin:0;padding:0}body{background:var(--bg);-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;min-height:100vh}#root{max-width:var(--maxw);background:var(--bg);min-height:100vh;margin:0 auto;position:relative}.app-shell{padding:16px 16px calc(84px + env(safe-area-inset-bottom)) 16px;min-height:100vh}h1{letter-spacing:-.02em;font-size:22px;font-weight:700}h2{letter-spacing:-.01em;font-size:17px;font-weight:650}h3{font-size:15px;font-weight:650}button{cursor:pointer;border:none;border-radius:12px;font-family:inherit;transition:transform 60ms,background .15s,opacity .15s}button:active{transform:scale(.985)}input,select,textarea{background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:12px;width:100%;padding:12px 14px;font-family:inherit;font-size:16px;transition:border-color .15s,box-shadow .15s}input:focus,select:focus,textarea:focus{border-color:var(--primary);outline:none;box-shadow:0 0 0 3px #4f7cff29}label{color:var(--text-dim);margin-bottom:6px;font-size:13px;display:block}.field{margin-bottom:16px}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-sm);padding:16px}.btn-primary{background:var(--primary);color:#fff;width:100%;padding:14px;font-size:16px;font-weight:650;box-shadow:0 4px 12px #4f7cff47}.btn-primary:hover{background:var(--primary-strong)}.btn-primary:disabled{opacity:.5;box-shadow:none}.btn-ghost{background:var(--surface-2);color:var(--text);padding:12px;font-weight:600}.btn-ghost:hover{background:var(--border)}.row{align-items:center;gap:12px;display:flex}.between{justify-content:space-between}.muted{color:var(--text-dim)}.income{color:var(--income)}.expense{color:var(--expense)}.text-center{text-align:center}.mt{margin-top:16px}.mt-sm{margin-top:8px}.mb{margin-bottom:16px}.bottom-nav{width:100%;max-width:var(--maxw);-webkit-backdrop-filter:saturate(1.4)blur(12px);border-top:1px solid var(--border);padding-bottom:env(safe-area-inset-bottom);z-index:50;background:#ffffffe6;display:flex;position:fixed;bottom:0;left:50%;transform:translate(-50%);box-shadow:0 -2px 12px #141b2d0a}.bottom-nav a{text-align:center;color:var(--text-dim);flex-direction:column;flex:1;align-items:center;gap:3px;padding:10px 0 12px;font-size:11px;font-weight:550;text-decoration:none;transition:color .15s;display:flex}.bottom-nav a.active{color:var(--primary)}.bottom-nav .nav-icon{font-size:20px;line-height:1}.fab{bottom:calc(76px + env(safe-area-inset-bottom));transform:translateX(calc(var(--maxw) / 2 - 50px));background:var(--primary);color:#fff;z-index:51;border-radius:50%;justify-content:center;align-items:center;width:56px;height:56px;font-size:28px;display:flex;position:fixed;left:50%;box-shadow:0 8px 22px #4f7cff6b}.fab:hover{background:var(--primary-strong)}@media (width<=520px){.fab{left:auto;right:20px;transform:none}}.list-item{border-bottom:1px solid var(--border);align-items:center;gap:12px;padding:12px 0;display:flex}.list-item:last-child{border-bottom:none}.avatar{background:var(--surface-2);border-radius:12px;flex-shrink:0;justify-content:center;align-items:center;width:40px;height:40px;font-size:20px;display:flex}.pill{background:var(--surface-2);color:var(--text-dim);border-radius:999px;padding:3px 10px;font-size:12px;display:inline-block}.seg{background:var(--surface-2);border-radius:12px;gap:4px;padding:4px;display:flex}.seg button{color:var(--text-dim);background:0 0;border-radius:9px;flex:1;padding:10px;font-weight:600}.seg button.active{background:var(--surface);color:var(--primary);box-shadow:var(--shadow-sm)}.spinner{border:3px solid var(--border);border-top-color:var(--primary);border-radius:50%;width:28px;height:28px;margin:40px auto;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.progress-track{background:var(--surface-2);border-radius:999px;height:8px;overflow:hidden}.progress-fill{background:var(--income);border-radius:999px;height:100%}.error-text{color:var(--expense);margin-top:6px;font-size:13px}.empty{text-align:center;color:var(--text-dim);padding:40px 16px}.modal-overlay{-webkit-backdrop-filter:blur(2px);z-index:100;background:#141b2d66;justify-content:center;align-items:flex-end;padding:0;display:flex;position:fixed;inset:0}.modal-sheet{background:var(--surface);width:100%;max-width:var(--maxw);padding:20px 16px calc(20px + env(safe-area-inset-bottom));border-radius:22px 22px 0 0;animation:.24s cubic-bezier(.22,1,.36,1) sheet-up;box-shadow:0 -8px 40px #141b2d29}@keyframes sheet-up{0%{transform:translateY(100%)}to{transform:translateY(0)}}.summary-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-sm);gap:12px;padding:14px 16px;display:flex}.summary-card .summary-item{flex:1}.summary-card .summary-item+.summary-item{border-left:1px solid var(--border);padding-left:12px}.debt-card{background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow-sm);border-radius:14px;margin-bottom:10px;padding:12px 14px}.debt-card .debt-top{justify-content:space-between;align-items:baseline;gap:8px;display:flex}.debt-card .debt-name{font-size:15px;font-weight:600}.debt-card .debt-remaining{white-space:nowrap;font-weight:700}.debt-card .debt-meta{color:var(--text-dim);margin-top:2px;font-size:12px}.debt-card .debt-foot{justify-content:space-between;align-items:center;gap:10px;margin-top:10px;display:flex}.debt-card .pay-btn{background:var(--surface-2);color:var(--text);border-radius:9px;padding:8px 14px;font-size:13px;font-weight:600}.overdue{color:var(--warn)!important}.section-head{justify-content:space-between;align-items:baseline;margin:18px 0 10px;display:flex}.section-head h2{font-size:15px}.section-head .section-total{font-size:14px;font-weight:700}.progress-track.thin{height:5px;margin-top:8px}
