:root{--ink:#4b3429;--muted:#806b5e;--accent:#9c4b2e;--peach:#f9dab7;--pale:#f9ecdf;--paper:#fffaf5;--line:#eddfd3;--camera:#efbd94;--camera-ink:#573824;font:16px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--paper);color-scheme:light}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit;color:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0;background:transparent}button:disabled{opacity:.5;cursor:wait}a{color:var(--accent)}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #9c4b2e;outline-offset:3px}h1,h2,h3,p{margin:0}h1{font-size:2.25rem;line-height:1.12;font-weight:650;letter-spacing:-1.4px}h2{font-size:1.18rem;font-weight:650;letter-spacing:-.3px}h3{font-size:1rem;font-weight:650}p{color:var(--muted)}small,.small{font-size:.78rem;color:var(--muted)}.shell{max-width:760px;min-height:100dvh;margin:auto;padding:0 28px 110px}.top{height:96px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;gap:9px;align-items:center;font-size:1.45rem;font-weight:750;letter-spacing:-1px;padding:0}.brand img{width:35px;height:35px}.icon{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.iconbutton{width:44px;height:44px;display:inline-grid;place-items:center;border:1px solid var(--line);border-radius:50%;background:#fff}.eyebrow{font-size:.73rem;letter-spacing:1.8px;text-transform:uppercase;font-weight:650;color:var(--accent);margin-bottom:13px}.intro{margin:18px 0 26px}.intro p{margin-top:12px}.camera{width:100%;min-height:176px;background:var(--camera);border-radius:28px;display:flex;align-items:center;justify-content:center;gap:20px;text-align:left;padding:30px;box-shadow:0 8px 25px #9c4b2e0a;color:var(--camera-ink)}.camera .icon{width:40px;height:40px}.camera strong{font-size:1.3rem;display:block;font-weight:650;letter-spacing:-.4px}.camera small{color:#694631;display:block;margin-top:5px}.quick{display:flex;justify-content:center;gap:25px;margin:15px 0 32px}.quick button{display:flex;align-items:center;gap:8px;min-height:44px;font-size:.85rem;color:var(--muted)}.section-head{display:flex;justify-content:space-between;align-items:center;margin:28px 0 14px;gap:12px}.section-head a{text-decoration:none;font-size:.84rem}.card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:22px;margin:14px 0}.empty{border:1px dashed #dcc2ad;text-align:center;border-radius:24px;padding:38px 28px;color:var(--muted)}.empty .icon{width:34px;height:34px;margin-bottom:14px}.empty h2{color:var(--ink);margin-bottom:8px}.empty p{font-size:.9rem;max-width:350px;margin:auto}.meal-row{display:flex;align-items:center;gap:16px;width:100%;padding:14px 0;border-bottom:1px solid var(--line);text-align:left}.meal-row:last-child{border:0}.thumb{width:70px;height:70px;border-radius:18px;object-fit:cover;background:var(--pale);display:grid;place-items:center;flex-shrink:0}.meal-copy{flex:1;min-width:0}.meal-copy strong{display:block;font-size:.98rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.meal-copy small{display:block;margin-top:5px}.pill{background:var(--pale);border-radius:40px;padding:5px 10px;font-size:.7rem;white-space:nowrap}.notice{background:var(--pale);padding:12px 16px;border-radius:14px;font-size:.8rem;line-height:1.5;color:#76523f;margin:14px 0}.memory{font-size:.71rem;color:var(--muted);text-align:center;margin-top:32px}.memory a{color:inherit}.bottom{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,760px);display:flex;justify-content:space-evenly;padding:12px 20px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:#fffaf5f5;backdrop-filter:blur(16px);z-index:10}.bottom a{display:flex;align-items:center;justify-content:center;gap:8px;border-radius:20px;text-decoration:none;color:var(--muted);font-size:.85rem;min-height:44px;padding:0 22px}.bottom a.active{background:var(--pale);color:var(--accent);font-weight:650}.primary,.secondary,.danger{border-radius:14px;min-height:48px;padding:12px 20px;font-weight:600}.primary{background:var(--accent);color:white}.secondary{background:var(--pale);color:var(--accent)}.danger{color:#9e3429;background:#fff0eb}.full{width:100%}.actions{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.actions>*{flex:1}.stats{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0}.stat{border:1px solid var(--line);background:white;padding:20px;border-radius:20px}.stat .number{font-size:1.75rem;letter-spacing:-.8px;margin:8px 0 1px}.stat .number span{font-size:.8rem;color:var(--muted);letter-spacing:0}.nutrition{width:100%;border-collapse:collapse;font-size:.86rem}.nutrition td{padding:12px 0;border-bottom:1px solid var(--line)}.nutrition td:last-child{text-align:right}.nutrition tr:last-child td{border:0}.nutrition caption{text-align:left;margin:10px 0;color:var(--muted);font-size:.78rem}.datebar{display:flex;align-items:center;gap:14px;margin:18px 0 24px}.datebar input{max-width:180px;border:1px solid var(--line);background:white;border-radius:12px;padding:9px}.checkrow{display:flex;gap:12px;align-items:center;font-size:.9rem}.checkrow input{width:20px;height:20px;accent-color:var(--accent)}.photos{display:flex;gap:12px;overflow-x:auto;margin:20px 0}.photo{flex:0 0 75%;max-width:330px}.photo img{width:100%;aspect-ratio:1.25;object-fit:cover;border-radius:22px}.photo .small{display:flex;justify-content:space-between;align-items:center}.photo button{font-size:.78rem;color:var(--accent);min-height:36px}.back{display:inline-flex;align-items:center;gap:5px;padding:0;min-height:40px;color:var(--muted);font-size:.88rem}.food{padding:18px 0;border-bottom:1px solid var(--line)}.food:last-child{border:0}.food-head{display:flex;justify-content:space-between;gap:12px}.food label{display:flex;align-items:center;justify-content:space-between;margin-top:12px;font-size:.84rem}.food select{border:1px solid var(--line);border-radius:12px;padding:8px;background:var(--paper)}details{margin-top:14px}summary{cursor:pointer;min-height:40px;align-content:center;font-size:.87rem;color:var(--accent)}.note{padding:12px 0;border-bottom:1px solid var(--line);white-space:pre-wrap;font-size:.88rem}.week-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:8px;margin-top:20px}.week-day{background:var(--pale);border-radius:16px;padding:16px 3px;text-align:center}.week-day.complete{background:var(--peach)}.week-day strong{display:block;margin:9px 0;font-weight:500}.week-day small{font-size:.68rem}.week-day .dot{width:7px;height:7px;border:1px solid #b99278;border-radius:50%;display:block;margin:7px auto 0}.week-day.complete .dot{background:var(--accent);border-color:var(--accent)}.line-row{display:flex;align-items:center;justify-content:space-between;padding:16px 0;border-bottom:1px solid var(--line);gap:12px}.line-row:last-child{border:0}.measurement{font-size:.87rem}.welcome{padding:32px 0 10px}.welcome .mark{width:90px;height:90px;margin-bottom:26px}.welcome h1{font-size:2.8rem;max-width:430px}.welcome .lede{margin:20px 0 28px;max-width:390px}.welcome .primary{margin-top:8px}.welcome .secondary{margin-top:12px}.welcome .steps{display:flex;gap:24px;margin:35px 0;color:var(--muted);font-size:.8rem}.welcome .steps span{display:block;color:var(--accent);font-size:1.05rem;margin-bottom:5px}.boot{padding:22vh 20px;text-align:center}.boot h1{margin:16px 0}.boot p{margin-top:15px}.toast{position:fixed;left:50%;bottom:105px;transform:translateX(-50%);z-index:40;background:var(--ink);color:white;padding:14px 22px;box-shadow:0 8px 35px #4b342930;border-radius:16px;max-width:calc(100% - 32px);width:max-content;font-size:.86rem}.toast[hidden]{display:none}dialog{width:min(520px,calc(100vw - 28px));max-height:calc(100dvh - 40px);border:1px solid var(--line);border-radius:24px;padding:26px;background:var(--paper);color:var(--ink);box-shadow:0 25px 100px #4b342930}dialog::backdrop{background:#4b34294d;backdrop-filter:blur(3px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.field{display:block;font-size:.82rem;color:var(--muted);margin:18px 0}.field input,.field textarea,.field select{display:block;width:100%;padding:12px 14px;background:white;border:1px solid var(--line);border-radius:12px;margin-top:7px;color:var(--ink)}textarea{resize:vertical;min-height:100px}.error{color:#9e3429;font-size:.85rem;margin:14px 0}.muted{color:var(--muted)}.stack>*+*{margin-top:12px}.text-button{color:var(--accent);font-size:.82rem;min-height:40px}.offline{font-size:.76rem;color:var(--accent);background:var(--pale);padding:6px 12px;border-radius:30px}.outbox-item{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 0}.outbox-item p{font-size:.8rem}.target{font-size:.87rem;line-height:1.7}.target strong{color:var(--ink)}
@media(min-width:760px){body{background:#f7eee6}.shell{background:var(--paper);border-inline:1px solid var(--line);padding-inline:50px}.camera{min-height:192px}.top{height:110px}.welcome{padding-top:45px}.welcome .primary,.welcome .secondary{max-width:420px}.intro h1{font-size:2.7rem}.stats{grid-template-columns:repeat(4,1fr)}.stat{padding:18px 15px}.stat .number{font-size:1.6rem}.bottom{border-inline:1px solid var(--line)}}
@media(max-width:380px){.shell{padding-inline:20px}.camera{padding:22px}.bottom a{padding:0 16px}.pill{font-size:.64rem}.week-grid{gap:5px}}
@media(prefers-reduced-motion:no-preference){button{transition:background .15s,transform .15s}.camera:active{transform:scale(.99)}dialog[open]{animation:appear .15s ease-out}@keyframes appear{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}}

.photo-date-row{display:flex;gap:12px;align-items:center;margin:16px 0}.photo-date-row .thumb{width:64px;height:64px;object-fit:cover;flex-shrink:0;border-radius:12px}.photo-date-row .field{min-width:0;flex:1;margin:0;overflow-wrap:anywhere}.photo-date-row input{min-width:0}

.clarification-choices{margin-top:16px}.clarification-choices .secondary{white-space:normal;text-align:left;min-height:48px}

.meal-nutrition{background:var(--pale)}.meal-nutrition .small{margin-top:12px}
