:root{
  --bg:#f5f7f4;--surface:#fff;--ink:#202b27;--muted:#7c8982;--line:#e8ede8;
  --green:#286b55;--green-dark:#1d5744;--mint:#e6f3ec;--violet:#eeeaff;--amber:#fff2d9;
  --shadow:0 8px 28px rgba(35,61,49,.055);--radius:22px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;background:var(--bg)}
body{margin:0;background:var(--bg);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Tahoma,sans-serif;font-size:14px;line-height:1.7}
button,textarea{font:inherit}
button{cursor:pointer}
.app-shell{max-width:680px;margin:0 auto;min-height:100vh;padding:calc(20px + env(safe-area-inset-top)) 17px calc(105px + env(safe-area-inset-bottom))}
.topbar{display:flex;align-items:center;justify-content:space-between;margin:4px 2px 22px}
.eyebrow{font-size:11px;color:var(--green);font-weight:700;margin-bottom:3px}
h1{font-size:23px;line-height:1.4;margin:0;font-weight:800;letter-spacing:-.5px}
.muted{color:var(--muted);font-size:12px;margin:3px 0 0}
.avatar{width:46px;height:46px;border-radius:16px;background:#dcece2;color:var(--green);display:grid;place-items:center;font-size:22px;font-weight:800}
.hero-card{position:relative;overflow:hidden;border-radius:26px;padding:23px 21px;background:linear-gradient(120deg,#245f4b,#397d62);color:#fff;box-shadow:var(--shadow);margin-bottom:15px}
.hero-copy{position:relative;z-index:1;max-width:83%}
.hero-kicker{font-size:11px;color:#d6eee0;font-weight:600}
.hero-card h2{font-size:19px;line-height:1.6;margin:7px 0 4px;font-weight:800}
.hero-card p{font-size:12px;color:#dceee4;margin:0}
.hero-mark{position:absolute;left:13px;bottom:-23px;font-size:105px;line-height:1;color:rgba(255,255,255,.12)}
.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:15px}
.stat-card,.section-card{background:var(--surface);border:1px solid rgba(226,234,227,.8);border-radius:var(--radius);box-shadow:var(--shadow)}
.stat-card{padding:13px 12px;min-width:0}
.stat-icon{width:30px;height:30px;border-radius:11px;display:grid;place-items:center;font-size:17px;margin-bottom:7px}
.violet{background:var(--violet);color:#7663bc}.mint{background:var(--mint);color:var(--green)}.amber{background:var(--amber);color:#b17a23}
.stat-number{font-size:22px;font-weight:800;line-height:1.3}
.stat-label{font-size:10px;color:var(--muted);margin-top:2px}
.section-card{padding:17px;margin-bottom:14px}
.section-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:13px}
.section-heading h2{font-size:15px;margin:0;font-weight:800}
.section-heading p{font-size:11px}
.sparkle{font-size:23px;color:#8bb49b}
textarea{display:block;width:100%;resize:vertical;min-height:83px;border:1px solid var(--line);border-radius:15px;background:#fafcf9;padding:12px 13px;color:var(--ink);outline:none;font-size:13px;line-height:1.9}
textarea:focus{border-color:#8eb8a1;box-shadow:0 0 0 3px rgba(70,135,99,.1)}
.entry-footer{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:10px}
.entry-hint{font-size:10px;color:var(--muted);max-width:55%}
.primary-btn{border:0;border-radius:13px;background:var(--green);color:white;padding:10px 15px;font-size:12px;font-weight:700;white-space:nowrap}
.primary-btn:active{background:var(--green-dark);transform:scale(.98)}
.count-pill{background:#edf5ef;color:var(--green);padding:4px 9px;border-radius:30px;font-size:10px;white-space:nowrap}
.list-stack{display:flex;flex-direction:column;gap:8px}
.empty-state{background:#fafcf9;border:1px dashed #dfe8e0;border-radius:14px;padding:14px;color:var(--muted);font-size:11px;text-align:center}
.item-row{display:flex;align-items:center;gap:10px;padding:10px 11px;border:1px solid var(--line);border-radius:14px;background:#fff}
.check-btn{width:23px;height:23px;flex:0 0 23px;border:1.5px solid #cbd8ce;border-radius:8px;background:#fff;color:#fff;display:grid;place-items:center;padding:0}
.check-btn.checked{background:var(--green);border-color:var(--green)}
.item-main{flex:1;min-width:0}
.item-title{font-size:12px;font-weight:600;overflow-wrap:anywhere}
.item-meta{font-size:10px;color:var(--muted);margin-top:2px}
.item-row.completed .item-title{text-decoration:line-through;color:#9aa69e}
.activity-dot{width:9px;height:9px;flex:0 0 9px;border-radius:50%;background:#83b79a;margin:0 7px}
.privacy-note{display:flex;gap:11px;align-items:flex-start;background:#edf5ef;border:1px solid #deebe1;border-radius:18px;padding:14px;margin:3px 0 14px}
.privacy-icon{font-size:20px}
.privacy-note strong{font-size:11px;color:#315c46}
.privacy-note p{font-size:10px;color:#668071;margin:3px 0 0;line-height:1.8}
.tools-card{margin-bottom:18px}
.tool-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.secondary-btn{border:1px solid #dce8df;background:#f8fbf8;color:var(--green);border-radius:12px;padding:10px 8px;font-size:10px;font-weight:700}
.feedback{font-size:11px;color:var(--green);min-height:16px;margin:6px 2px 0}
.bottom-nav{position:fixed;z-index:5;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,680px);padding:9px 12px calc(9px + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(4,1fr);background:rgba(255,255,255,.94);backdrop-filter:blur(18px);border-top:1px solid var(--line)}
.nav-item{text-decoration:none;color:#99a49d;display:flex;flex-direction:column;align-items:center;gap:1px;padding:3px}
.nav-item span{font-size:21px;line-height:1.25}.nav-item small{font-size:9px}.nav-item.active{color:var(--green);font-weight:700}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:600px){.app-shell{padding-top:32px}.hero-card{padding:29px}.section-card{padding:20px}.stat-card{padding:16px}}
@media(prefers-reduced-motion:no-preference){.section-card,.stat-card{animation:rise .35s ease both}@keyframes rise{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}}
