*{box-sizing:border-box}body{color:#111827;background:#f3f4f6;margin:0;font-family:system-ui,sans-serif}.card{max-width:480px;margin:0 auto;padding:16px}header{justify-content:space-between;align-items:center;display:flex}h1{font-size:22px}h2{margin-top:28px;font-size:17px}form{flex-direction:column;gap:10px;display:flex}input,select{background:#fff;border:1px solid #d1d5db;border-radius:10px;padding:12px;font-size:16px}button{color:#fff;cursor:pointer;background:#2563eb;border:none;border-radius:10px;padding:12px;font-size:16px}button.link{color:#6b7280;background:0 0;padding:4px 8px}.tabs{gap:8px;display:flex}.tabs button{color:#111827;background:#e5e7eb;flex:1}.tabs button.active{color:#fff;background:#2563eb}.list{margin:0;padding:0;list-style:none}.list li{background:#fff;border-radius:10px;justify-content:space-between;align-items:center;margin-bottom:8px;padding:12px;display:flex}.muted{color:#6b7280;font-size:13px}.plus{color:#16a34a;font-weight:600}.minus{color:#dc2626;font-weight:600}.error{color:#dc2626;margin:0}.center{text-align:center;margin-top:40px}.card{padding-bottom:96px}.bottom-nav{padding:10px 16px calc(10px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #e5e7eb;justify-content:center;gap:8px;display:flex;position:fixed;bottom:0;left:0;right:0}.bottom-nav button{color:#111827;background:#e5e7eb;flex:1;max-width:236px}.bottom-nav button.active{color:#fff;background:#2563eb}.cat-row{background:#fff;border-radius:10px;justify-content:space-between;align-items:center;margin-bottom:6px;padding:6px 6px 6px 12px;display:flex}.cat-row .actions{display:flex}.inline-form{flex-direction:row;margin-bottom:8px}.inline-form input{flex:1;min-width:0}.month-switch{justify-content:space-between;align-items:center;margin:8px 0 16px;display:flex}.month-switch strong{text-transform:capitalize;font-size:18px}.month-switch button{color:#111827;background:#e5e7eb;width:48px;padding:8px}.month-switch button:disabled{opacity:.4;cursor:default}.stats{grid-template-columns:1fr 1fr;gap:8px;margin-bottom:16px;display:grid}.stat{background:#fff;border-radius:10px;padding:12px}.stat.wide{grid-column:1/-1}.stat .label{color:#6b7280;font-size:13px}.stat .value{margin-top:4px;font-size:20px;font-weight:600}.sum-row{background:#fff;border-radius:10px;margin-bottom:6px;padding:10px 12px}.sum-row .top{justify-content:space-between;gap:8px;display:flex}.sum-row .bar{background:#e5e7eb;border-radius:3px;height:6px;margin-top:8px;overflow:hidden}.sum-row .bar>div{height:100%}
