@import"https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,700&display=swap";:root{font-family:DM Sans,system-ui,sans-serif;color:#173f35;background:#efeee9;font-synthesis:none;--ink: #173f35;--orange: #ef7d47;--paper: #f8f7f2;--muted: #697872;--line: #dce0da}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}button,input,select{font:inherit}.app{max-width:560px;margin:auto;min-height:100vh;background:var(--paper);position:relative;padding-bottom:88px;box-shadow:0 0 60px #173f3512}header{height:74px;display:flex;align-items:center;gap:12px;padding:12px 20px;border-bottom:1px solid var(--line);position:sticky;top:0;background:#f8f7f2ee;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);z-index:10}.brandmark{width:39px;height:39px;border-radius:12px;background:var(--ink);color:#fff;display:grid;place-items:center;font:700 14px Fraunces}header div:nth-child(2){display:flex;flex-direction:column}header b{font-family:Fraunces;font-size:18px}header small{color:var(--muted);font-size:12px}header>.icon-button{margin-left:auto}.hero{margin:12px 16px;background:var(--ink);color:#fff;border-radius:26px;padding:17px 20px;background-image:radial-gradient(circle at 90% 10%,#2f6656 0,transparent 35%)}.hero p{margin:0;color:#c9d9d3;font-size:13px}.calories{display:flex;align-items:baseline;gap:8px;margin:6px 0 13px}.calories strong{font:700 40px/1 Fraunces}.calories span{color:#c9d9d3}.macros{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.macro{display:flex;flex-direction:column;border-left:1px solid #ffffff2c;padding-left:14px}.macro:first-child{border:0;padding:0}.macro strong{font-size:16px}.macro span{font-size:11px;color:#c9d9d3}.primary,.secondary,.back{border:0;border-radius:15px;min-height:52px;padding:0 18px;font-weight:700;display:flex;align-items:center;justify-content:center;gap:9px}.primary{background:var(--orange);color:#34180b;box-shadow:0 6px 16px #ef7d4730}.primary:disabled,.secondary:disabled{opacity:.45}.secondary{background:#e5ece8;color:var(--ink);border:1px solid #cad8d2}.back{background:transparent;color:var(--ink)}.scan{margin:0 16px;width:calc(100% - 32px);font-size:16px}.scan svg{width:20px}.section{padding:22px 16px}.section h2{font:700 21px Fraunces;margin:0 0 14px}.section h2 span{font:500 12px DM Sans;color:var(--muted);background:#e8ebe7;border-radius:10px;padding:3px 7px}.empty{text-align:center;border:1px dashed #cdd5d0;border-radius:20px;padding:36px 24px;color:var(--muted)}.empty svg{color:#9aaba4}.empty h3{color:var(--ink);margin:10px 0 5px}.empty p{font-size:14px;margin:0}.list{display:flex;flex-direction:column;gap:9px}.entry{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:11px;background:#fff;border:1px solid var(--line);border-radius:17px;padding:14px}.entry div,.entry>strong{display:flex;flex-direction:column}.entry small{color:var(--muted);font-size:11px;font-weight:500}.manual-entry{width:100%;grid-template-columns:auto 1fr;text-align:left;color:var(--ink);border-style:dashed;cursor:pointer}.manual-plus{width:42px;height:42px;border-radius:13px;background:#fde0d2;color:#a94d24;display:grid;place-items:center;flex:none}.manual-plus svg{width:20px}.icon-button{border:0;background:transparent;color:var(--ink);display:grid;place-items:center;padding:7px}.icon-button svg{width:19px}.danger{color:#aa5140}nav{position:fixed;bottom:0;left:50%;transform:translate(-50%);max-width:560px;width:100%;height:76px;background:#fbfaf6f2;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(3,1fr);z-index:20;padding-bottom:env(safe-area-inset-bottom)}nav button{border:0;background:transparent;color:#7b8984;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:11px}nav button svg{width:21px}nav button.active{color:var(--orange);font-weight:700}.food-page{padding-top:15px}.search{width:100%;height:48px;border:1px solid var(--line);border-radius:15px;padding:0 15px;background:#fff;margin-bottom:14px}.food-card{display:flex;align-items:center;justify-content:space-between;background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px;margin:9px 0}.food-card small{color:var(--muted)}.food-card h3{margin:3px 0;font-family:Fraunces}.food-card p{font-size:12px;margin:0;color:var(--ink)}.food-card p span{color:var(--muted)}.food-card code{display:block;margin-top:5px;color:#72817b;font-size:11px}.manual-food-card{width:100%;text-align:left;justify-content:flex-start;gap:13px;border-style:dashed;cursor:pointer;color:var(--ink)}.manual-food-card>span:last-child{display:block}.manual-food-card h3{margin:2px 0}.round{width:45px;height:45px;border:0;background:var(--orange);border-radius:50%;display:grid;place-items:center;flex:none}.sheet-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#102c2577;z-index:50;display:flex;align-items:flex-end;justify-content:center}.sheet{background:var(--paper);width:min(560px,100%);border-radius:28px 28px 0 0;padding:15px 22px calc(25px + env(safe-area-inset-bottom));position:relative}.manual-sheet{max-height:min(92vh,820px);overflow-y:auto}.manual-sheet>.primary{width:100%;margin-top:12px}.grab{width:42px;height:4px;background:#b9c3bf;border-radius:4px;margin:auto}.sheet .close{position:absolute;right:14px;top:18px}.sheet>small{color:var(--orange);font-weight:700;display:block;margin-top:22px}.sheet h2{font:700 26px Fraunces;margin:5px 0 20px}.sheet .primary{width:100%}.preview{display:flex;justify-content:space-between;background:#e7ece8;border-radius:14px;padding:13px;margin:15px 0}.preview span{font-size:12px;color:var(--muted)}.field{display:block;margin:13px 0}.field>span{font-size:12px;font-weight:700;display:block;margin-bottom:6px}.input-wrap{position:relative}.field input,.field select,.settings-page select{width:100%;height:49px;border:1px solid #cad2cd;border-radius:13px;background:#fff;padding:0 13px;color:var(--ink);outline:none}.field input:focus,.field select:focus{border-color:var(--orange);box-shadow:0 0 0 3px #ef7d4722}.input-wrap input{padding-right:55px}.input-wrap em{position:absolute;right:14px;top:15px;font-style:normal;color:var(--muted);font-size:13px}.notice,.warning,.error{border-radius:15px;padding:14px;font-size:13px}.notice{background:#e4eee9}.notice p{margin:5px 0 0;color:#546760}.settings-page .secondary,.settings-page .primary{width:100%;margin:11px 0}.status{font-size:13px;color:var(--muted)}hr{border:0;border-top:1px solid var(--line);margin:28px 0}.danger-button{border:1px solid #dfb7ad;background:#fff5f2;color:#9d3f2d;border-radius:14px;padding:12px;display:flex;gap:8px}.danger-button svg{width:18px}.scanner{padding:16px;min-height:calc(100vh - 74px)}.progress{display:grid;grid-template-columns:repeat(4,1fr);margin:6px 0 30px}.progress>div{display:flex;flex-direction:column;align-items:center;gap:5px;color:#9aa6a1;font-size:10px;position:relative}.progress>div:before{content:"";position:absolute;top:12px;right:50%;width:100%;height:2px;background:#dce0dd;z-index:0}.progress>div:first-child:before{display:none}.progress i{width:25px;height:25px;border-radius:50%;background:#e0e4e1;display:grid;place-items:center;font-style:normal;position:relative;z-index:1}.progress .done{color:var(--ink);font-weight:700}.progress .done i{background:var(--orange)}.progress .done:before{background:var(--orange)}.capture{text-align:center}.capture>svg{width:34px;height:34px;color:var(--orange)}.capture h1,.review h1{font:700 28px Fraunces;margin:10px 0}.capture>p,.review>p{color:var(--muted);font-size:14px;line-height:1.5;max-width:400px;margin:0 auto 20px}.photo-drop{min-height:205px;border:2px dashed #b7c5bf;border-radius:22px;background:#edf1ee;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;cursor:pointer;margin-bottom:14px;overflow:hidden;position:relative}.photo-drop svg{width:34px}.photo-drop span{font-size:12px;color:var(--muted)}.photo-drop input,.camera-button input{display:none}.photo-field{position:relative}.photo-field.has-image .photo-drop{min-height:250px;border-style:solid;background:#dfe7e3}.photo-preview{display:block;width:100%;height:280px;object-fit:cover}.photo-drop .photo-replace{position:absolute;right:12px;bottom:12px;display:flex;align-items:center;gap:7px;padding:9px 12px;border-radius:999px;background:#173f35e8;color:#fff;font-weight:700;box-shadow:0 5px 16px #102c2555}.photo-drop .photo-replace svg{width:18px;height:18px}.photo-remove{position:absolute;z-index:2;top:12px;right:12px;width:38px;height:38px;display:grid;place-items:center;border:0;border-radius:50%;background:#173f35e8;color:#fff;box-shadow:0 5px 16px #102c2555}.photo-remove svg{width:19px}.capture>.primary{width:100%}.choice-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px}.choice-actions .primary,.choice-actions .secondary{width:100%;min-width:0;padding-inline:12px}.thumbs{display:flex;gap:10px;overflow-x:auto;margin:12px 0 18px}.thumbs div{position:relative;flex:none}.thumbs img{width:82px;height:82px;object-fit:cover;border-radius:12px}.thumbs button{position:absolute;right:-4px;top:-5px;border:0;background:var(--ink);color:#fff;border-radius:50%;width:24px;height:24px;padding:3px}.thumbs svg{width:15px}.capture .field{text-align:left}.prepared-description{margin:18px 0 0}.prepared-description textarea{display:block;width:100%;min-height:112px;resize:vertical;border:1px solid #cad2cd;border-radius:15px;background:#fff;padding:13px 14px;color:var(--ink);outline:none;font:inherit;line-height:1.45}.prepared-description textarea::placeholder{color:#8b9893}.prepared-description textarea:focus{border-color:var(--orange);box-shadow:0 0 0 3px #ef7d4722}.camera-button{margin:15px 0}.actions{display:grid;grid-template-columns:minmax(112px,.75fr) minmax(0,1.4fr);gap:12px;margin-top:18px}.actions .back{background:#edf1ee;border:1px solid #d8e0dc}.cancel{border:0;background:transparent;color:var(--muted);width:100%;padding:20px}.error{background:#fff0ec;color:#9e3c27;margin-top:12px}.warning{background:#fff3d7;color:#765113;margin:12px 0}.review{text-align:left}.nutrient-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 10px}@media(max-width:360px){.nutrient-grid{grid-template-columns:1fr}.hero{margin:10px}.calories strong{font-size:46px}}@media(display-mode:standalone){header{padding-top:calc(12px + env(safe-area-inset-top));height:calc(74px + env(safe-area-inset-top))}}nav{grid-template-columns:repeat(4,1fr)}.day-card{background:#fff;border:1px solid var(--line);border-radius:18px;margin-bottom:10px;overflow:hidden}.day-card summary{list-style:none;display:flex;justify-content:space-between;align-items:center;padding:16px;cursor:pointer}.day-card summary::-webkit-details-marker{display:none}.day-card summary div,.day-card summary strong,.history-entry span{display:flex;flex-direction:column}.day-card small,.history-entry small,.weight-row small{color:var(--muted);font-size:11px}.day-macros{padding:10px 16px;background:#edf1ee;color:var(--muted);font-size:12px}.history-entry{display:flex;justify-content:space-between;padding:11px 16px;border-top:1px solid var(--line);font-size:13px}.history-entry>b{margin-left:auto;align-self:center}.weight-history{align-items:center}.weight-add{background:#fff;border:1px solid var(--line);border-radius:19px;padding:14px;margin-bottom:18px;display:grid;grid-template-columns:1fr 1fr;gap:0 10px}.weight-add .primary{grid-column:1/-1}.compact-weight{grid-template-columns:1fr 1fr auto;align-items:end;gap:10px}.compact-weight .field{margin:0}.compact-weight .primary{grid-column:auto;min-height:49px}.trend-card{background:var(--ink);color:#fff;border-radius:22px;padding:17px;margin-bottom:22px;overflow:hidden}.trend-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.trend-heading small{color:#bcd0c8;font-size:10px;font-weight:700;letter-spacing:.08em}.trend-heading h2{color:#fff;margin:3px 0 0;font-size:20px}.range-filter{display:flex;gap:3px;background:#ffffff14;padding:3px;border-radius:10px}.range-filter button{border:0;border-radius:8px;background:transparent;color:#bcd0c8;padding:6px 8px;font-size:11px}.range-filter button.active{background:#fff;color:var(--ink);font-weight:700}.metric-filter{display:flex;flex-wrap:wrap;gap:7px;margin:15px 0 8px}.metric-filter button{border:1px solid #ffffff20;border-radius:999px;background:#ffffff0b;color:#bcd0c8;padding:7px 9px;display:flex;align-items:center;gap:6px;font-size:11px}.metric-filter button i{width:8px;height:8px;border-radius:50%;background:var(--metric);opacity:.45}.metric-filter button.active{color:#fff;border-color:#ffffff50;background:#ffffff16}.metric-filter button.active i{opacity:1;box-shadow:0 0 0 3px #ffffff18}.multi-chart{width:100%;height:150px;overflow:visible;margin-top:8px}.multi-chart polyline{fill:none;stroke-width:2.5;vector-effect:non-scaling-stroke;stroke-linecap:round;stroke-linejoin:round}.chart-dates{display:flex;justify-content:space-between;color:#9fb6ad;font-size:10px;margin-top:5px}.chart-empty{color:#bcd0c8;text-align:center;padding:38px 10px}.weight-chart{background:var(--ink);color:#fff;border-radius:21px;padding:17px;margin-bottom:22px}.weight-chart>div{display:flex;justify-content:space-between;align-items:center}.weight-chart small{color:#bcd0c8;font-size:10px}.weight-chart b{font:700 22px Fraunces}.weight-chart svg{width:100%;height:125px;overflow:visible;margin-top:8px}.weight-chart polyline{fill:none;stroke:var(--orange);stroke-width:2.5;vector-effect:non-scaling-stroke}.weight-chart circle{fill:#f8f7f2;stroke:var(--orange);stroke-width:1;vector-effect:non-scaling-stroke}.weight-row{display:flex;justify-content:space-between;align-items:center;background:#fff;border:1px solid var(--line);border-radius:15px;padding:13px 10px 13px 15px;margin:8px 0}.weight-row div{display:flex;flex-direction:column}@media(max-width:380px){nav button span{font-size:9px}.weight-add{grid-template-columns:1fr}.compact-weight .primary{grid-column:1/-1}.trend-heading{flex-direction:column}}
