:root{--ink:#183d36;--muted:#647469;--line:#dce4d5;--bg:#f5f4ee;--brand:#204b3f;--accent:#df714d;font-family:Inter,Segoe UI,system-ui,-apple-system,sans-serif;color:var(--ink);background:var(--bg)}
*{box-sizing:border-box}
body{margin:0;padding-bottom:env(safe-area-inset-bottom)}
header{position:sticky;top:0;display:flex;justify-content:space-between;align-items:center;padding:14px 16px;padding-top:max(14px,env(safe-area-inset-top));background:var(--bg);border-bottom:1px solid var(--line);z-index:1}
h1{margin:0;font-size:20px;letter-spacing:-.5px}
h1 span{color:var(--accent)}
#sync-state{font-size:12px;color:var(--muted)}
main{max-width:640px;margin:auto;padding:8px 16px 32px}
h2{font-size:14px;margin:22px 0 6px;text-transform:uppercase;letter-spacing:.5px;color:var(--muted)}
.count{font-size:13px;color:var(--muted);margin:12px 0 0}
.item{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px;margin:8px 0;cursor:pointer}
.item input{width:24px;height:24px;flex-shrink:0;accent-color:var(--brand);margin:0}
.text{flex:1;min-width:0;overflow-wrap:anywhere;font-size:16px;line-height:1.35}
.text small{display:block;font-size:12px;color:var(--muted);margin-top:2px}
.price{font-weight:700;white-space:nowrap;font-size:15px}
.done{opacity:.55}
.done .text b{text-decoration:line-through}
.total{display:flex;justify-content:space-between;align-items:baseline;border-top:1px solid #cbd5c1;margin-top:20px;padding-top:14px;font-size:14px}
.total b{font-size:20px}
.empty,#setup p{font-size:15px;line-height:1.6;color:var(--muted);padding:20px 0}
#note{font-size:12px;color:var(--muted);margin-top:20px}
