:root{color-scheme:light;--bg:#f5f2e9;--paper:#fffdf7;--ink:#223d30;--muted:#576a60;--line:#deded1;--accent:#22583f;--accent-hi:#dcebbf;--terra:#a04d30;--radius:20px; font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink)}button,input,select{font:inherit}button{cursor:pointer;min-height:43px}button:disabled{opacity:.55;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #3e7350;outline-offset:3px}a{color:var(--accent);text-underline-offset:3px}p{line-height:1.5;margin:0;color:var(--muted)}h1,h2,h3{margin:0;line-height:1.16}h1{font-size:clamp(30px,7vw,49px);font-weight:760;letter-spacing:-.05em}h2{font-size:23px;letter-spacing:-.025em}h3{font-size:17px;line-height:1.35}.shell{max-width:640px;margin:auto;min-height:100dvh;padding:0 20px 112px}.masthead{height:68px;display:flex;align-items:center;gap:10px;font-weight:750;font-size:16px;letter-spacing:-.02em;border-bottom:1px solid var(--line)}.brand-mark{width:34px;height:34px;border-radius:50%;background:var(--accent);display:flex;align-items:center;justify-content:center;gap:2px;transform:rotate(-12deg)}.brand-mark i{display:block;width:3px;border-radius:3px;background:#def0bb;height:10px}.brand-mark i:nth-child(2){height:15px}.brand-mark i:nth-child(3){height:19px}.opening{min-height:54vh;display:flex;flex-direction:column;gap:14px;justify-content:center}.opening p{max-width:310px}.opening a{align-self:flex-start}.heading{margin:25px 0 20px;display:flex;align-items:end;justify-content:space-between;gap:12px}.heading p{margin-top:6px;font-size:14px}.date-switch{display:flex;gap:6px;white-space:nowrap}.icon-button{border:1px solid var(--line);color:var(--ink);background:var(--paper);width:43px;border-radius:13px;font-size:22px}.hero{background:#244c38;color:#faf9eb;border-radius:24px;padding:22px;margin-bottom:14px}.hero p{color:#d8e4cf}.hero-line{display:flex;justify-content:space-between;align-items:end;gap:12px}.hero small{color:#d5e4d4;font-size:13px}.energy{display:flex;align-items:baseline;gap:7px;margin-top:4px}.energy strong{font-size:clamp(38px,11vw,62px);line-height:1.03;letter-spacing:-.06em}.energy span{font-size:15px;color:#e0e9d6}.hero-goal{font-size:13px;text-align:right;max-width:130px}.track{height:6px;margin:14px 0 17px;border-radius:6px;background:#4e705d;overflow:hidden}.track span{display:block;height:100%;background:#dbefaf;border-radius:6px}.macros{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.macro{border-top:1px solid #587364;padding-top:9px;font-size:12px;color:#dce7d7}.macro strong{display:block;font-size:17px;font-weight:700;color:white;margin-top:4px}.main-actions{display:grid;grid-template-columns:1.5fr 1fr;gap:8px;margin:9px 0 23px}.button{border:1px solid transparent;border-radius:13px;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:10px 14px;text-decoration:none;font-weight:700;line-height:1.22}.button.primary{background:#d7e9b7;color:#243c2f}.button.solid{background:var(--accent);color:#fff}.button.secondary{background:var(--paper);color:var(--ink);border-color:var(--line)}.button.danger{background:#f8e5d9;color:#862e20}.button.small{font-size:13px;min-height:36px;padding:8px 11px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:23px 0 10px}.card{padding:16px;border:1px solid var(--line);background:var(--paper);border-radius:var(--radius);margin-bottom:8px}.card p{margin-top:5px;font-size:13px}.card>p:first-child{margin-top:0}.entry{display:flex;align-items:center;justify-content:space-between;gap:10px}.entry h3{overflow-wrap:anywhere}.entry em{font-style:normal;font-size:12px;color:var(--terra)}.card-actions,.row-buttons{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.inline-meta{color:var(--muted);font-size:13px}.quiet{border:0;background:transparent;color:var(--accent);padding:5px 3px;font-weight:680;text-decoration:underline;text-underline-offset:3px}.empty{border:1px dashed #c7ceba;background:#faf7ee;border-radius:var(--radius);padding:18px}.empty p{font-size:14px}.two{display:grid;grid-template-columns:1fr 1fr;gap:8px}.three{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.tile{min-height:81px}.tile strong{font-size:20px;display:block;margin:4px 0 2px}.notice{padding:11px 13px;border-radius:12px;background:#f2e6d9;color:#773b27;margin:10px 0;font-size:14px;line-height:1.5}.small-note{font-size:13px;margin:9px 0 12px}.option .option-macros{margin:10px 0;color:var(--ink);font-size:15px;font-weight:700}.option .card-actions{align-items:center}.option h3{line-height:1.4}.selected-tag{font-size:12px;color:var(--terra);margin:2px 0 6px}.segment{display:flex;gap:6px}.segment button[aria-pressed=true]{background:#dce9c9;border-color:#cedbb8}.chart{width:100%;height:165px;display:block}.chart-title{display:flex;justify-content:space-between;align-items:center;padding-bottom:9px}.chart-title span{color:var(--muted);font-size:12px}.field{display:flex;flex-direction:column;gap:5px;margin:9px 0;font-size:13px;font-weight:650}.field input,.field select{border:1px solid #cfd4c3;background:white;color:#253c2e;min-height:43px;padding:7px 9px;border-radius:9px;width:100%;min-width:0}.inline-check{display:flex;gap:9px;align-items:flex-start;color:var(--muted);font-size:13px;line-height:1.35;margin:10px 0}.inline-check input{flex:none;accent-color:var(--accent);margin-top:2px}details{margin-top:11px}summary{cursor:pointer;color:var(--accent);font-weight:680}.sheet-form h3{margin-top:15px}.meal-item{border:1px solid var(--line);padding:11px;border-radius:13px;margin:9px 0}.sheet-header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:14px}.sheet-header h2{font-size:22px}.sheet-header button{min-height:36px;width:36px}#sheet{border:1px solid #d2d6c9;background:var(--paper);color:var(--ink);border-radius:22px;width:min(calc(100% - 28px),530px);padding:17px;max-height:86dvh;overflow:auto}#sheet::backdrop{background:#14291eb0}#tabs{position:fixed;z-index:4;bottom:0;left:50%;transform:translateX(-50%);width:min(640px,100%);display:grid;grid-template-columns:repeat(4,1fr);padding:7px 12px calc(7px + env(safe-area-inset-bottom));background:#fffcf2fa;border-top:1px solid var(--line)}#tabs[hidden],#toast[hidden]{display:none}#tabs button{border:0;border-radius:12px;background:transparent;color:#566b60;display:flex;align-items:center;flex-direction:column;justify-content:center;gap:2px;font-size:12px;font-weight:660;min-height:51px}#tabs button[aria-current=page]{background:#e3edcf;color:var(--ink)}.nav-icon{font-size:19px;line-height:1.12}#toast{position:fixed;z-index:10;bottom:77px;left:50%;transform:translateX(-50%);width:min(445px,calc(100% - 34px));background:#203b30;color:white;padding:11px 15px;border-radius:12px;font-size:14px;box-shadow:0 3px 18px #12201340}#toast.error{background:#873a26}@media(max-width:370px){.shell{padding-left:13px;padding-right:13px}.hero{padding:17px}.main-actions{grid-template-columns:1fr 1fr}.date-switch{gap:3px}.icon-button{width:39px}}
