:root{--cream:#faf5ec;--paper:#fffdf8;--ink:#231b15;--muted:#7a6e63;--line:#e9dfcf;--tomato:#d8452b;--tomato-d:#b3341e;--olive:#55662b;--saffron:#e9a21c;--plum:#5a2a3c;--serif:"Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;--sans:system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;--r:18px}*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{background:var(--cream);color:var(--ink);font:16px/1.45 var(--sans);background-image:radial-gradient(circle at 100% 0,#f6e6cf 0,#0000 38%);margin:0}main{max-width:560px;padding:18px 16px calc(96px + env(safe-area-inset-bottom));margin:0 auto}main.bare{padding-bottom:32px}h1,h2,h3{font-family:var(--serif);letter-spacing:-.01em;margin:0;font-weight:600}h1{font-size:2rem;line-height:1.05}h2{margin:26px 0 10px;font-size:1.25rem}a{color:var(--tomato-d)}.eyebrow{text-transform:uppercase;letter-spacing:.14em;color:var(--muted);font-size:.72rem;font-weight:600}.muted{color:var(--muted)}.small{font-size:.85rem}.num{font-family:var(--serif);font-variant-numeric:lining-nums tabular-nums}.tabs{padding:8px 10px calc(8px + env(safe-area-inset-bottom));backdrop-filter:blur(10px);border-top:1px solid var(--line);z-index:10;background:#fffdf8f0;justify-content:center;gap:2px;display:flex;position:fixed;inset:auto 0 0}.tabs a{max-width:100px;color:var(--muted);border-radius:12px;flex-direction:column;flex:1;align-items:center;gap:2px;padding:6px 0;font-size:.7rem;font-weight:600;text-decoration:none;display:flex}.tabs svg{fill:none;stroke:currentColor;stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round;width:22px;height:22px}.tabs a.on{color:var(--tomato-d);background:#fbe9e1}.head{justify-content:space-between;align-items:flex-end;gap:12px;margin-bottom:14px;display:flex}.head .nav{gap:6px;display:flex}.chip,.btn{border:1px solid var(--line);background:var(--paper);color:var(--ink);font:600 .88rem var(--sans);cursor:pointer;border-radius:999px;justify-content:center;align-items:center;gap:6px;min-height:40px;padding:8px 14px;text-decoration:none;display:inline-flex}.btn.primary{background:var(--tomato);border-color:var(--tomato);color:#fff}.btn.primary:active{background:var(--tomato-d)}.btn.olive{background:var(--olive);border-color:var(--olive);color:#fff}.btn.ghost{background:0 0}.btn.on{background:var(--olive);border-color:var(--olive);color:#fff}.chip{min-height:0;color:var(--muted);padding:4px 10px;font-size:.75rem;font-weight:600}.hero{background:var(--ink);color:var(--cream);border-radius:24px;padding:18px 18px 16px;position:relative;overflow:hidden}.hero:after{content:"";background:var(--tomato);opacity:.9;border-radius:50%;width:140px;height:140px;position:absolute;top:-40px;right:-40px}.hero .eyebrow{color:#cdbfae;z-index:1;position:relative}.hero .big{font-family:var(--serif);z-index:1;margin:6px 0 2px;font-size:3.2rem;line-height:1;position:relative}.hero .big small{color:#cdbfae;font-size:1rem;font-family:var(--sans);margin-left:4px}.macros{z-index:1;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:14px;display:grid;position:relative}.macro .lab{letter-spacing:.1em;text-transform:uppercase;color:#cdbfae;font-size:.7rem}.macro .val{font-family:var(--serif);font-size:1.3rem}.macro .val small{color:#cdbfae;font-size:.75rem;font-family:var(--sans)}.bar{background:#4b4036;border-radius:3px;height:5px;margin-top:4px;overflow:hidden}.bar i{background:var(--saffron);border-radius:3px;height:100%;display:block}.card{background:var(--paper);border:1px solid var(--line);border-radius:var(--r);margin-top:12px;padding:14px}.meal{border-left:5px solid var(--hue,var(--tomato));padding:0;overflow:hidden}.meal-top{grid-template-columns:1fr auto;gap:2px 10px;padding:14px 14px 10px;display:grid}.meal .time{text-transform:uppercase;letter-spacing:.12em;color:var(--muted);font-size:.72rem;font-weight:700}.meal h3{grid-column:1/-1;margin-top:2px;font-size:1.22rem;line-height:1.15}.meal .stamp{letter-spacing:.1em;text-transform:uppercase;color:var(--hue);border:1.5px solid var(--hue);border-radius:6px;grid-area:1/2;align-self:start;padding:2px 7px;font-size:.66rem;font-weight:700;transform:rotate(2deg)}.dayrow .dot{border-radius:50%;width:8px;height:8px;margin-right:8px;display:inline-block}.meta{color:var(--muted);flex-wrap:wrap;grid-column:1/-1;gap:6px 12px;margin-top:6px;font-size:.85rem;display:flex}.meta b{color:var(--ink);font-weight:700}.blurb{color:#4d4036;grid-column:1/-1;margin:6px 0 0;font-size:.9rem}details>summary{cursor:pointer;list-style:none}details>summary::-webkit-details-marker{display:none}.more{border-top:1px dashed var(--line)}.more>summary{color:var(--tomato-d);justify-content:space-between;padding:11px 14px;font-size:.88rem;font-weight:600;display:flex}.more>summary:after{content:"+";font-size:1.2rem;line-height:1}.more[open]>summary:after{content:"−"}.more .inner{padding:0 14px 14px}ul.ing{columns:1;margin:0 0 10px;padding:0;list-style:none}ul.ing li{border-bottom:1px dotted var(--line);justify-content:space-between;gap:10px;padding:5px 0;font-size:.92rem;display:flex}ul.ing li span:last-child{color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}ol.steps{margin:0;padding-left:1.2em}ol.steps li{margin:5px 0}.logrow{flex-wrap:wrap;align-items:center;gap:8px;padding:0 14px 14px;display:flex}.logrow form{display:contents}.status{color:var(--olive);background:#eef0e0;border-radius:999px;padding:3px 10px;font-size:.8rem;font-weight:700}.status.swapped{color:#8a5d00;background:#fdf0d2}.status.off-plan{color:var(--tomato-d);background:#fbe1da}.inline-kcal{flex-wrap:wrap;align-items:center;gap:8px;padding:4px 0 2px;display:flex}input[type=text],input[type=number],input[type=password],input[type=date],input[type=time],select{font:1rem var(--sans);color:var(--ink);background:#fff;border:1px solid #d8cbb6;border-radius:12px;width:100%;min-height:44px;padding:10px 12px}input:focus,select:focus,button:focus-visible,a:focus-visible{outline-offset:1px;outline:3px solid #f2b8a8}label{color:var(--muted);margin:10px 0 4px;font-size:.8rem;font-weight:600;display:block}.row2{grid-template-columns:1fr 1fr;gap:10px;display:grid}.inline-kcal input{width:110px}.weigh{grid-template-columns:1fr auto;align-items:end;gap:8px;display:grid}.dayrow{color:inherit;text-decoration:none;display:block}.dayrow .card{margin-top:10px}.dayrow.today .card{border-color:var(--tomato);box-shadow:0 0 0 2px #f6c9bd}.dayrow h3{justify-content:space-between;align-items:baseline;font-size:1.05rem;display:flex}.dayrow ul{margin:8px 0 0;padding:0;list-style:none}.dayrow li{gap:8px;padding:3px 0;font-size:.92rem;display:flex}.dayrow li .t{width:3.1em;color:var(--muted);flex:none;padding-top:2px;font-size:.8rem}.dayrow li .k{color:var(--muted);white-space:nowrap;margin-left:auto;font-size:.82rem}.aisle{margin-top:18px}.aisle h3{font-size:.78rem;font-family:var(--sans);text-transform:uppercase;letter-spacing:.14em;color:var(--muted);border-bottom:2px solid var(--ink);padding-bottom:6px}.item{border-bottom:1px solid var(--line);align-items:flex-start;gap:12px;padding:11px 0;display:flex}.item input{appearance:none;cursor:pointer;background:#fff;border:2px solid #c9b99f;border-radius:8px;flex:none;width:26px;height:26px;min-height:0;margin:1px 0 0}.item input:checked{background:var(--olive);border-color:var(--olive);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E");background-position:50%;background-repeat:no-repeat;background-size:18px}.item .nm{font-weight:600}.item .am{color:var(--muted);font-size:.84rem}.item.done .nm,.item.done .am{opacity:.5;text-decoration:line-through}.item label{cursor:pointer;color:inherit;flex:1;margin:0;font-size:1rem;font-weight:400}.pill{color:var(--tomato-d);vertical-align:1px;background:#fbe9e1;border-radius:999px;margin-left:6px;padding:2px 8px;font-size:.7rem;font-weight:700}.pill.netto{color:var(--olive);background:#e6edd2}.tabsw{flex-wrap:wrap;gap:8px;margin:4px 0 6px;display:flex}.progressbar{background:var(--line);border-radius:3px;height:6px;margin:8px 0 0;overflow:hidden}.progressbar i{background:var(--olive);height:100%;transition:width .2s;display:block}.stats{grid-template-columns:repeat(2,1fr);gap:10px;margin-top:12px;display:grid}.stat{background:var(--paper);border:1px solid var(--line);border-radius:var(--r);padding:12px 14px}.stat .v{font-family:var(--serif);font-size:1.7rem;line-height:1.1}.stat .v small{color:var(--muted);font-size:.8rem;font-family:var(--sans)}.chart{width:100%;height:auto;display:block}.chart .grid{stroke:#ece2d2;stroke-width:1px}.chart .ax{fill:#8a7d70;font:10.5px var(--sans)}.chart .dot{fill:#b7a994;stroke:var(--paper);stroke-width:1.5px}.chart .trend{fill:none;stroke:var(--tomato);stroke-width:2.5px;stroke-linejoin:round;stroke-linecap:round}.chart .trend-end{fill:var(--tomato);stroke:var(--paper);stroke-width:2px}.chart .trend-l{fill:var(--ink);font:700 12px var(--sans)}.chart .goal{stroke:var(--olive);stroke-width:1.5px;stroke-dasharray:5 4}.chart .goal-l{fill:var(--olive);font:600 10.5px var(--sans)}table{border-collapse:collapse;width:100%;font-size:.9rem}th,td{text-align:left;border-bottom:1px solid var(--line);font-variant-numeric:tabular-nums;padding:7px 4px}th{text-transform:uppercase;letter-spacing:.1em;color:var(--muted);font-size:.72rem}td.r,th.r{text-align:right}.legend{color:var(--muted);gap:14px;margin-top:6px;font-size:.78rem;display:flex}.legend i{vertical-align:middle;margin-right:5px;display:inline-block}.legend .d{background:#b7a994;border-radius:50%;width:9px;height:9px}.legend .l{background:var(--tomato);border-radius:2px;width:16px;height:3px}.notice{background:#fdf0d2;border:1px solid #f0d58f;border-radius:14px;margin-top:12px;padding:10px 14px;font-size:.9rem}.flash{color:#3d4a1d;background:#e6edd2;border-radius:14px;margin-bottom:12px;padding:10px 14px;font-size:.9rem;font-weight:600}.gate{place-items:center;min-height:100dvh;padding:20px;display:grid}.gate-card{background:var(--paper);border:1px solid var(--line);text-align:center;border-radius:26px;width:100%;max-width:360px;padding:30px 24px 24px}.gate-card .logo{border-radius:14px}.gate-card h1{margin:6px 0 4px}.gate-card input{text-align:center;margin:18px 0 12px}.err{color:var(--tomato-d);margin:4px 0 8px;font-weight:600}@media (width>=700px){body{font-size:17px}}
