:root{--bg:#f4f5f1;--ink:#1b2a27;--mut:#7a8884;--pri:#0f5c4d;--acc:#f2a93b;--red:#d64545;--card:#fff;--ln:#e6e9e4}
*{box-sizing:border-box;margin:0;-webkit-tap-highlight-color:transparent}
body{font:500 14px Montserrat,system-ui,sans-serif;background:var(--bg);color:var(--ink);min-height:100vh}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
input,select{font:inherit;width:100%;padding:13px 14px;border:1.5px solid var(--ln);border-radius:14px;background:#fff;color:var(--ink);margin-top:8px}
#login{max-width:340px;margin:0 auto;padding:22vh 24px;text-align:center}#login h1{font-weight:800;font-size:28px;color:var(--pri)}
#login p{color:var(--mut);margin:8px 0 18px}#err{display:block;color:var(--red);min-height:20px;margin-top:6px}
.pri{width:100%;background:var(--pri);color:#fff;font-weight:700;padding:14px;border-radius:14px;margin-top:12px}
header{position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:center;gap:14px;padding:calc(12px + env(safe-area-inset-top)) 16px 10px;background:var(--bg)}
header button{font-size:22px;width:36px;height:36px;border-radius:50%;background:#fff}header b{min-width:150px;text-align:center;font-weight:700}
header span{position:absolute;right:16px;font-size:10px;color:var(--mut)}
main{padding:4px 16px calc(100px + env(safe-area-inset-bottom));max-width:560px;margin:auto}
.hero{background:var(--pri);color:#fff;border-radius:26px;padding:22px;display:flex;justify-content:space-between;align-items:center}
.hero small{opacity:.7;font-weight:600}.hero h1{font-size:34px;font-weight:800;margin:4px 0}.hero h1 span{font-size:13px;opacity:.7}.hero p{opacity:.7;font-size:12px}
.rg{width:82px}.rg text,.dn text{font:700 17px Montserrat;fill:#fff}.dn text{fill:var(--ink);font-size:11px}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:12px 0}
.stats div{background:var(--card);border-radius:18px;padding:13px}.stats small,.row small,.card small{display:block;color:var(--mut);font-size:11px;font-weight:600}.stats b{font-size:15px}
h2{font-size:15px;font-weight:700;margin:20px 2px 10px;display:flex;justify-content:space-between}h2 small{color:var(--mut);font-weight:600}
.row,.card{background:var(--card);border-radius:18px;padding:12px 14px;margin-bottom:8px}.row{display:flex;align-items:center;gap:12px}
.row>div{flex:1;min-width:0}.row b{display:block;font-size:13px}.row small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.row>span{font-weight:700}
i{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;flex:none}i svg{width:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.bar{height:8px;background:var(--ln);border-radius:9px;margin:10px 0 6px;overflow:hidden}.bar u{display:block;height:100%;border-radius:9px}
em{font-style:normal;font-size:10px;font-weight:700;padding:3px 8px;border-radius:9px;background:#e8f1ee;color:var(--pri);margin-right:6px}em.b{background:#fdf0d8;color:#9a6200}em.r{background:#fbe4e4;color:var(--red)}
.neg{color:var(--red)}.warn{background:#fdf0d8;color:#7a4d00;border-radius:16px;padding:12px 14px;font-size:12px;font-weight:600;margin-bottom:10px}
.dn{width:150px;display:block;margin:6px auto}.bars{width:100%;background:var(--card);border-radius:20px;padding:10px}.bars text{font:600 9px Montserrat;fill:var(--mut)}
.split{display:flex;align-items:center;gap:16px;background:var(--card);border-radius:20px;padding:14px}
.lg{flex:1;font-size:11px;font-weight:600}.lg div{display:flex;gap:7px;align-items:center;margin:4px 0}.lg s{width:9px;height:9px;border-radius:3px}
nav{position:fixed;bottom:0;left:0;right:0;display:flex;justify-content:space-around;align-items:center;background:#fff;padding:8px 6px calc(8px + env(safe-area-inset-bottom));border-radius:24px 24px 0 0;box-shadow:0 -6px 24px #0f5c4d14;z-index:6}
nav button{display:flex;flex-direction:column;align-items:center;gap:3px;font-size:10px;font-weight:600;color:var(--mut);width:64px}nav button.on{color:var(--pri)}
nav svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#fab{width:56px;height:56px;border-radius:20px;background:var(--acc);color:#1b2a27;margin-top:-30px;box-shadow:0 8px 20px #f2a93b66;display:grid;place-items:center}
#sheet{position:fixed;inset:0;z-index:20}.bk{position:absolute;inset:0;background:#0008}
.sh{position:absolute;bottom:0;left:0;right:0;max-height:90vh;overflow:auto;background:var(--bg);border-radius:28px 28px 0 0;padding:20px 18px calc(24px + env(safe-area-inset-bottom));max-width:560px;margin:auto;animation:up .22s ease-out}
@keyframes up{from{transform:translateY(40px);opacity:0}}.sh h3{font-size:17px;font-weight:800;margin-bottom:6px}.sh label{display:block;margin-top:10px;font-size:11px;font-weight:600;color:var(--mut)}
.big{font-size:34px;font-weight:800;text-align:center;border:0;background:#fff}
.chips{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}.chip{padding:8px 13px;border-radius:20px;background:#fff;font-size:12px;font-weight:600;border:1.5px solid var(--ln)}.chip.on{background:var(--pri);color:#fff;border-color:var(--pri)}
.del{width:100%;color:var(--red);font-weight:700;padding:14px}.btn{width:100%;text-align:left;background:#fff;border-radius:16px;padding:15px;margin-bottom:8px;font-weight:600}
.empty{text-align:center;color:var(--mut);padding:24px;font-size:12px}
