:root{--zozo-bg:#f5f8f6;--zozo-ink:#173c2b;--zozo-brand:#0c7860;--zozo-brand-dark:#0a6650;--zozo-soft:#e4f6eb;--zozo-card:#fff;--zozo-muted:#6e8578;--zozo-danger:#ac493b;--zozo-warn:#8a6d3b}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--zozo-bg);color:var(--zozo-ink);font-family:Tahoma,"Segoe UI",Arial,sans-serif}
body.zozo-portal{padding-bottom:76px;min-height:100vh}
.zozo-shell{max-width:720px;margin:0 auto}
.zozo-top{position:sticky;top:0;z-index:20;background:#fff;box-shadow:0 2px 14px #22362b11;padding:12px 14px}
.zozo-top h1{margin:0;font-size:20px;color:var(--zozo-brand-dark)}
.zozo-top .sub{font-size:12px;color:var(--zozo-muted);margin-top:2px}
.zozo-content{padding:14px}
.zozo-card{background:var(--zozo-card);border:1px solid #e0ebe3;border-radius:16px;padding:14px;margin-bottom:12px;box-shadow:0 2px 7px #1c39220a}
.zozo-glucose{display:flex;justify-content:space-between;align-items:flex-end;gap:12px}
.zozo-glucose .value{font-size:42px;font-weight:900;line-height:1;color:var(--zozo-brand-dark)}
.zozo-glucose .meta{font-size:13px;color:var(--zozo-muted);text-align:left}
.zozo-badge{display:inline-block;padding:4px 10px;border-radius:999px;font-size:12px;font-weight:700}
.zozo-badge.live{background:#d8f3e4;color:#0a6650}
.zozo-badge.stale{background:#fff3d6;color:#8a6d3b}
.zozo-badge.offline{background:#fde8e4;color:#ac493b}
.zozo-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.zozo-actions button,.zozo-btn{border:1px solid #d8e5dc;background:#fff;border-radius:14px;padding:12px 8px;font-weight:800;color:#24523c;font-size:13px;cursor:pointer}
.zozo-btn.primary{background:var(--zozo-brand);color:#fff;border-color:var(--zozo-brand)}
.zozo-btn:disabled{opacity:.5}
.zozo-nav{position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid #e1eae3;display:grid;grid-template-columns:repeat(5,1fr);padding:6px 4px calc(6px + env(safe-area-inset-bottom));z-index:30}
.zozo-nav button{border:0;background:transparent;padding:8px 4px;font-size:11px;color:#688173;font-weight:700}
.zozo-nav button.active{color:var(--zozo-brand)}
.zozo-hidden{display:none!important}
.zozo-search{width:100%;padding:12px;border:1px solid #d6e4d9;border-radius:12px;font-size:16px}
.zozo-filters{display:flex;gap:8px;overflow-x:auto;padding:10px 0;scrollbar-width:none}
.zozo-filter{border:1px solid #d8e5dc;border-radius:24px;padding:8px 12px;background:#fff;white-space:nowrap;font-weight:750}
.zozo-filter.active{background:var(--zozo-brand);color:#fff;border-color:var(--zozo-brand)}
.zozo-food{border:1px solid #e0ebe3;border-radius:16px;padding:12px;margin-bottom:10px;background:#fff}
.zozo-food.active{border-color:#83c4a3;background:#fcfffd}
.zozo-foodhead{display:flex;gap:8px;align-items:center;margin-bottom:8px}
.zozo-emoji{width:40px;height:40px;border-radius:12px;background:#eff7f0;display:grid;place-items:center;font-size:24px}
.zozo-stepper{display:grid;grid-template-columns:44px 1fr 44px;gap:6px;direction:ltr}
.zozo-stepper button{height:44px;border:0;border-radius:10px;background:#e8f4ec;color:var(--zozo-brand);font-size:22px;font-weight:900}
.zozo-stepper button.plus{background:var(--zozo-brand);color:#fff}
.zozo-stepper input{height:44px;text-align:center;font-weight:900;font-size:18px;border:1.5px solid #c9dfd1;border-radius:10px;direction:ltr}
.zozo-totals{background:var(--zozo-soft);border:1px solid #ccead6;border-radius:14px;padding:10px 12px;display:flex;justify-content:space-between;align-items:center;margin:10px 0}
.zozo-totals .big{font-size:28px;font-weight:900;color:var(--zozo-brand-dark)}
.zozo-timeline-item{display:grid;grid-template-columns:64px 1fr;gap:10px;padding:10px 0;border-bottom:1px dashed #e5eee8}
.zozo-timeline-item .time{font-weight:800;color:var(--zozo-brand)}
.zozo-chart{width:100%;height:180px;background:linear-gradient(180deg,#f7fbf8,#eef6f1);border-radius:12px;position:relative;overflow:hidden}
.zozo-chart canvas{width:100%;height:100%;display:block}
.zozo-login{max-width:420px;margin:40px auto;padding:20px}
.zozo-login input{width:100%;margin:8px 0;padding:12px;border:1px solid #d6e4d9;border-radius:10px;font-size:16px}
.zozo-note{font-size:12px;color:var(--zozo-muted);line-height:1.6}
.zozo-note b{color:#ac5c3f}
@media(max-width:360px){.zozo-actions{grid-template-columns:repeat(2,1fr)}.zozo-glucose .value{font-size:34px}}
