:root{--bg:#f6f7f4;--surface:#fff;--primary:#1e6b45;--primary-press:#164f33;--tint:#e3efe7;--text:#1a1f1c;--muted:#5f6b64;--line:#e2e5e0;--tomato:#e0452b;--danger:#b3261e;--radius:16px;--shadow:0 1px 2px #1a1f1c0f, 0 8px 24px #1a1f1c0f;color:var(--text);background:var(--bg);-webkit-text-size-adjust:100%;font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif}*{box-sizing:border-box}body{background:var(--bg);margin:0}button,input{font:inherit;color:inherit}a{color:var(--primary)}.page{max-width:560px;padding:20px 16px calc(96px + env(safe-area-inset-bottom));flex-direction:column;gap:20px;margin:0 auto;display:flex}.topbar{justify-content:space-between;align-items:center;min-height:44px;display:flex}.brand{letter-spacing:-.3px;align-items:center;gap:8px;font-size:20px;font-weight:700;display:flex}.brand small{color:var(--muted);font-weight:600;font-size:inherit}h1{letter-spacing:-.5px;margin:0;font-size:28px;line-height:1.15}.lead{color:var(--muted);margin:0;font-size:17px;line-height:1.45}.muted{color:var(--muted)}.btn{border-radius:var(--radius);cursor:pointer;border:0;justify-content:center;align-items:center;gap:8px;min-height:52px;padding:0 20px;font-size:17px;font-weight:700;text-decoration:none;display:inline-flex}.btn-primary{background:var(--primary);color:#fff}.btn-primary:active{background:var(--primary-press)}.btn-secondary{background:var(--surface);color:var(--text);border:1px solid var(--line)}.btn-dark{color:#fff;background:#000}.btn-link{color:var(--primary);cursor:pointer;background:0 0;border:0;padding:12px 4px;font-weight:600}.btn-danger{color:var(--danger)}.btn[disabled]{opacity:.5;cursor:default}.stack{flex-direction:column;gap:12px;display:flex}.card{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);padding:16px}.field{flex-direction:column;gap:6px;font-size:14px;font-weight:600;display:flex}.field input{border:1px solid var(--line);background:var(--surface);border-radius:12px;min-height:48px;padding:0 14px;font-size:16px;font-weight:400}.banner{background:var(--tint);color:var(--primary-press);border-radius:14px;padding:12px 14px;font-size:15px;line-height:1.4}.banner.warn{color:#7a4a1e;background:#fbefe2}.error{color:var(--danger);font-size:15px}.month{justify-content:space-between;align-items:center;gap:8px;display:flex}.month h2{margin:0;font-size:17px;font-weight:600}.icon-btn{border:1px solid var(--line);background:var(--surface);cursor:pointer;border-radius:12px;place-items:center;width:44px;height:44px;display:grid}.total{flex-direction:column;gap:2px;display:flex}.total .label{color:var(--muted);font-size:14px}.total .value{letter-spacing:-.8px;font-variant-numeric:tabular-nums;font-size:34px;font-weight:800}.day{flex-direction:column;gap:8px;display:flex}.day-head{color:var(--muted);text-transform:uppercase;letter-spacing:.4px;justify-content:space-between;padding:0 4px;font-size:13px;font-weight:600;display:flex}.rows{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}.row{align-items:center;gap:12px;min-height:64px;padding:12px 14px;display:flex}.row+.row{border-top:1px solid var(--line)}.row .ico{background:var(--tint);width:40px;height:40px;color:var(--primary);border-radius:12px;flex-shrink:0;place-items:center;display:grid}.row .main{flex-direction:column;flex:1;gap:3px;min-width:0;display:flex}.row .name{white-space:nowrap;text-overflow:ellipsis;font-size:16px;font-weight:600;overflow:hidden}.row .original{color:var(--muted);white-space:nowrap;text-overflow:ellipsis;font-size:12px;overflow:hidden}.row .meta{color:var(--muted);align-items:center;gap:6px;min-width:0;font-size:13px;display:flex}.row .meta>span:last-child{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.chip{flex-shrink:0}.row .side{flex-direction:column;flex-shrink:0;align-items:flex-end;gap:3px;display:flex}.row .time{color:var(--muted);font-variant-numeric:tabular-nums;font-size:13px}.row .amount{font-variant-numeric:tabular-nums;white-space:nowrap;font-size:16px;font-weight:700}.chip{background:var(--tint);color:var(--primary);border-radius:999px;padding:3px 8px;font-size:12px;font-weight:600}.chip.pending{color:var(--muted);background:#eceeeb}.chip.nocat{color:var(--muted);outline:1px solid var(--line);outline-offset:-1px;background:0 0}.empty{text-align:center;flex-direction:column;align-items:center;gap:12px;padding:32px 16px;display:flex}.code{letter-spacing:1px;text-align:center;background:var(--bg);-webkit-user-select:all;user-select:all;border-radius:12px;padding:14px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:22px;font-weight:700}.tabbar{-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom);background:#ffffffeb;position:fixed;bottom:0;left:0;right:0}.tabbar nav{grid-template-columns:repeat(3,1fr);max-width:560px;margin:0 auto;display:grid}.tabbar a{min-height:56px;color:var(--muted);flex-direction:column;align-items:center;gap:2px;padding:8px 0 6px;font-size:12px;font-weight:600;text-decoration:none;display:flex}.tabbar a[aria-current=page]{color:var(--primary)}.list-item{justify-content:space-between;align-items:center;gap:12px;padding:14px 16px;display:flex}.list-item+.list-item{border-top:1px solid var(--line)}.plan-free{flex-direction:column;align-items:flex-end;gap:4px;font-size:14px;display:flex}.meter{background:var(--line);border-radius:3px;width:120px;height:6px;display:block;overflow:hidden}.meter>span{background:var(--primary);height:100%;display:block}.milestone{justify-content:space-between;align-items:center;gap:8px;display:flex}.milestone p{margin:0}.milestone .btn-link{flex-shrink:0;padding:4px}.row.dup{flex-wrap:wrap}.row.dup .name,.row.dup .amount{color:var(--muted)}.row.dup .amount{text-decoration:line-through}.dup-ask{color:var(--muted);flex-basis:100%;justify-content:flex-end;align-items:center;gap:4px;margin-top:-6px;font-size:13px;display:flex}.dup-ask .btn-link{padding:4px}.heat{flex-direction:column;gap:12px;display:flex}.heat-head{justify-content:space-between;align-items:center;gap:8px;display:flex}.heat-head h2{margin:0;font-size:17px;font-weight:600}.heat-toggle{border:1px solid var(--line);border-radius:10px;display:inline-flex;overflow:hidden}.heat-toggle button{background:var(--surface);min-height:32px;color:var(--muted);cursor:pointer;border:0;padding:0 12px;font-size:13px;font-weight:600}.heat-toggle button+button{border-left:1px solid var(--line)}.heat-toggle button[aria-pressed=true]{background:var(--tint);color:var(--primary-press)}.heat-line{margin:0;font-size:16px;font-weight:600;line-height:1.4}.heat-note{margin:0;font-size:15px;line-height:1.4}.heat-grid{flex-direction:column;gap:2px;display:flex}.heat-row{grid-template-columns:28px repeat(24,minmax(0,1fr));align-items:center;column-gap:2px;display:grid}.heat-day{color:var(--muted);font-size:11px}.heat-cell{background:var(--line);opacity:.55;border-radius:3px;height:22px}.heat-cell.on{background:var(--primary)}.heat-axis{color:var(--muted);font-variant-numeric:tabular-nums;margin-top:2px;font-size:11px}.heat-legend{justify-content:flex-end;align-items:center;gap:4px;font-size:11px;display:flex}.heat-legend i{background:var(--primary);border-radius:3px;width:14px;height:14px}.week-card{flex-direction:column;gap:4px;padding:12px 16px;display:flex}.week-card p{margin:0}.week-total{font-size:17px}.week-total strong{letter-spacing:-.3px;font-size:20px}.week-line{font-size:14px;line-height:1.4}.export-card{flex-direction:column;gap:14px;display:flex}.export-title{margin:0;font-size:18px}.export-presets{grid-template-columns:repeat(3,1fr);gap:8px;display:grid}.export-presets .btn{text-align:center;padding:0 8px;font-size:15px}.export-range{grid-template-columns:1fr 1fr;gap:12px;display:grid}.export-range .field input{min-width:0}.export-go{width:100%}.export-note{margin:0;font-size:14px}@media (width<=380px){.export-presets{grid-template-columns:1fr}}.delete-account h2{margin:0;font-size:18px}.delete-account p{margin:0;line-height:1.45}.btn-danger-solid{background:var(--danger);color:#fff;border:0}.btn-danger-solid:disabled{opacity:.45}.export-range .field{min-width:0}.export-range .field input{box-sizing:border-box;width:100%}.chip-btn{cursor:pointer;border:0;min-height:28px;font-family:inherit}.chip.unsure{outline:1px dashed var(--primary);outline-offset:-1px}.chip.pending.unsure{outline-color:var(--muted)}.sheet-backdrop{z-index:50;background:#1a1f1c66;justify-content:center;align-items:flex-end;display:flex;position:fixed;inset:0}.sheet{background:var(--surface);border-radius:var(--radius) var(--radius) 0 0;width:100%;max-width:560px;max-height:90vh;padding:16px 16px calc(16px + env(safe-area-inset-bottom));flex-direction:column;gap:12px;display:flex;overflow-y:auto}.sheet-head{justify-content:space-between;align-items:center;gap:8px;display:flex}.sheet-head h2{overflow-wrap:anywhere;margin:0;font-size:18px}.sheet-hint{margin:0;font-size:14px}.cat-grid{grid-template-columns:1fr 1fr;gap:8px;display:grid}.cat-opt{border:1px solid var(--line);background:var(--surface);min-height:52px;color:var(--text);font:inherit;cursor:pointer;border-radius:12px;font-weight:600}.cat-opt[aria-pressed=true]{background:var(--tint);border-color:var(--primary);color:var(--primary-press)}.cat-opt:disabled{opacity:.6;cursor:default}.sheet-check{align-items:center;gap:10px;min-height:44px;font-size:15px;display:flex}.sheet-check input{width:22px;height:22px;accent-color:var(--primary)}
