# Mobile expense ledger Build a local expense tracker in HTML and JavaScript. Use a clean, green-led interface with total expenses and balance at the top and an add action at the bottom. No login or backend is needed. Deliver an offline root `index.html`. ## Requirements Use an inline form or a dialog with a numeric amount field (`input[type=number]`) and a text description field. Use an accessible add action such as “Add expense” or “添加支出”; for submission use an Add label or a Chinese label such as “保存” or “确定”. Show each summary label immediately before its amount in reading order: “Total expenses” or “Expense total” (总支出、累计支出、总花费), and “Balance” (余额、结余). Display each saved description. Start with zero total expenses and an initial balance of your choice. Save only positive expense amounts, accepting up to two decimal places. Update expenses and balance accurately to the cent. Save valid expenses even when they make the balance negative. Store records locally so they and their summaries survive a reload. Income entry is optional; if implemented, show income amounts in green. ## Acceptance Checklist - The offline page renders and the add form is usable at a 375 px viewport without horizontal overflow. - Multiple expense entries appear individually and update the total and remaining balance. Decimals and a negative balance are displayed accurately. - A reload preserves saved records and summary amounts, including a negative balance. - Zero or negative expenses do not create records or change persisted totals.