﻿:root {
  --bg: #e7f4d7;
  --surface: #fff;
  --soft: #f0f7f2;
  --ink: #18211d;
  --muted: #64706a;
  --muted-strong: #53635a;
  --line: #d9e2dc;
  --green: #2f8f4e;
  --green-dark: #1f6f3b;
  --tomato: #d94f3d;
  --yellow: #f4c542;
  --aqua: #1c8f8a;
  --shadow: 0 14px 42px rgba(24, 33, 29, 0.1);
  --control-height: 64px;
  --food-doodle-pattern: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22960%22%20height%3D%22960%22%20viewBox%3D%220%200%20960%20960%22%20fill%3D%22none%22%3E%0A%20%20%3Ctitle%3ESoft%20food%20doodles%20pattern%20for%20Grocery%20Flow%20OS%3C%2Ftitle%3E%0A%20%20%3Cdesc%3ETransparent%20SVG%20tile%20with%20muted%20grocery%20and%20meal%20doodles%20for%20light%20green%20backgrounds.%3C%2Fdesc%3E%0A%20%20%3Cstyle%3E%0A%20%20%20%20.line%20%7B%0A%20%20%20%20%20%20stroke%3A%20%233f7c66%3B%0A%20%20%20%20%20%20stroke-width%3A%203.2%3B%0A%20%20%20%20%20%20stroke-linecap%3A%20round%3B%0A%20%20%20%20%20%20stroke-linejoin%3A%20round%3B%0A%20%20%20%20%20%20stroke-opacity%3A%200.34%3B%0A%20%20%20%20%7D%0A%0A%20%20%20%20.soft%20%7B%0A%20%20%20%20%20%20stroke-opacity%3A%200.22%3B%0A%20%20%20%20%7D%0A%0A%20%20%20%20.dot%20%7B%0A%20%20%20%20%20%20fill%3A%20%233f7c66%3B%0A%20%20%20%20%20%20fill-opacity%3A%200.2%3B%0A%20%20%20%20%7D%0A%0A%20%20%20%20.wash%20%7B%0A%20%20%20%20%20%20fill%3A%20%237ead90%3B%0A%20%20%20%20%20%20fill-opacity%3A%200.11%3B%0A%20%20%20%20%20%20stroke%3A%20%233f7c66%3B%0A%20%20%20%20%20%20stroke-opacity%3A%200.24%3B%0A%20%20%20%20%20%20stroke-width%3A%202.6%3B%0A%20%20%20%20%20%20stroke-linecap%3A%20round%3B%0A%20%20%20%20%20%20stroke-linejoin%3A%20round%3B%0A%20%20%20%20%7D%0A%20%20%3C%2Fstyle%3E%0A%0A%20%20%3Cdefs%3E%0A%20%20%20%20%3Csymbol%20id%3D%22carrot%22%20viewBox%3D%220%200%2096%2096%22%3E%0A%20%20%20%20%20%20%3Cpath%20class%3D%22wash%22%20d%3D%22M30%2030c17%206%2029%2019%2038%2037-18-6-32-18-42-37%201-2%202-2%204%200Z%22%20%2F%3E%0A%20%20%20%20%20%20%3Cpath%20class%3D%22line%22%20d%3D%22M28%2028c13%206%2028%2019%2041%2041%22%20%2F%3E%0A%20%20%20%20%20%20%3Cpath%20class%3D%22line%20soft%22%20d%3D%22M38%2039l-5%205M50%2050l-6%206M59%2062l-5%205%22%20%2F%3E%0A%20%20%20%20%20%20%3Cpath%20class%3D%22line%22%20d%3D%22M27%2027c-6-8-6-15%200-22M30%2028c2-11%208-17%2017-19M26%2029c-10-4-16-10-17-19%22%20%2F%3E%0A%20%20%20%20%3C%2Fsymbol%3E%0A%0A%20%20%20%20%3Csymbol%20id%3D%22apple%22%20viewBox%3D%220%200%2096%2096%22%3E%0A%20%20%20%20%20%20%3Cpath%20class%3D%22wash%22%20d%3D%22M46%2031c-11-7-29-1-31%2019-3%2023%2012%2037%2025%2031%204-2%208-2%2013%200%2013%206%2027-9%2025-31-2-18-18-27-32-19Z%22%20%2F%3E%0A%20%20%20%20%20%20%3Cpath%20class%3D%22line%22%20d%3D%22M47%2031c0-11%205-18%2014-22%22%20%2F%3E%0A%20%20%20%20%20%20%3Cpath%20class%3D%22line%22%20d%3D%22M56%2016c10-2%2017%201%2022%209-10%204-18%202-22-9Z%22%20%2F%3E%0A%20%20%20%20%20%20%3Cpath%20class%3D%22line%20soft%22%20d%3D%22M25%2054c0%2011%205%2019%2014%2024%22%20%2F%3E%0A%20%20%20%20%3C%2Fsymbol%3E%0A%0A%20%20%20%20%3Csymbol%20id%3D%22avocado%22%20viewBox%3D%220%200%2096%2096%22%3E%0A%20%20%20%20%20%20%3Cpath%20class%3D%22wash%22%20d%3D%22M47%2011c20%2018%2030%2039%2026%2056-4%2015-16%2024-31%2020-15-3-24-15-22-31%202-17%2013-33%2027-45Z%22%20%2F%3E%0A%20%20%20%20%20%20%3Cpath%20class%3D%22line%22%20d%3D%22M47%2011c20%2018%2030%2039%2026%2056-4%2015-16%2024-31%2020-15-3-24-15-22-31%202-17%2013-33%2027-45Z%22%20%2F%3E%0A%20%20%20%20%20%20%3Ccircle%20class%3D%22wash%22%20cx%3D%2248%22%20cy%3D%2261%22%20r%3D%2213%22%20%2F%3E%0A%20%20%20%20%20%20%3Cpath%20class%3D%22line%20soft%22%20d%3D%22M36%2031c-8%2011-11%2023-9%2034%22%20%2F%3E%0A%20%20%20%20%3C%2Fsymbol%3E%0A%0A%20%20%20%20%3Csymbol%20id%3D%22banana%22%20viewBox%3D%220%200%2096%2096%22%3E%0A%20%20%20%20%20%20%3Cpath%20class%3D%22line%22%20d%3D%22M16%2056c28%2021%2057%2014%2069-18-10%2045-46%2054-75%2029%205-2%207-5%206-11Z%22%20%2F%3E%0A%20%20%20%20%20%20%3Cpath%20class%3D%22line%20soft%22%20d%3D%22M22%2058c23%2014%2045%209%2059-14%22%20%2F%3E%0A%20%20%20%20%20%20%3Cpath%20class%3D%22line%22%20d%3D%22M13%2067l-6%207M84%2038l6-7%22%20%2F%3E%0A%20%20%20%20%3C%2Fsymbol%3E%0A%0A%20%20%20%20%3Csymbol%20id%3D%22bread%22%20viewBox%3D%220%200%2096%2096%22%3E%0A%20%20%20%20%20%20%3Cpath%20class%3D%22wash%22%20d%3D%22M19%2042c0-16%2014-27%2031-27%2016%200%2029%2010%2029%2026v30c0%206-4%2010-10%2010H29c-6%200-10-4-10-10V42Z%22%20%2F%3E%0A%20%20%20%20%20%20%3Cpath%20class%3D%22line%22%20d%3D%22M31%2045c4-4%209-4%2013%200M52%2045c4-4%209-4%2013%200%22%20%2F%3E%0A%20%20%20%20%20%20%3Cpath%20class%3D%22line%20soft%22%20d%3D%22M29%2063h39%22%20%2F%3E%0A%20%20%20%20%3C%2Fsymbol%3E%0A%0A%20%20%20%20%3Csymbol%20id%3D%22egg%22%20viewBox%3D%220%200%2096%2096%22%3E%0A%20%20%20%20%20%20%3Cpath%20class%3D%22wash%22%20d%3D%22M48%2011c18%2018%2026%2035%2025%2050-1%2016-11%2026-25%2026S24%2077%2023%2061c-1-15%207-32%2025-50Z%22%20%2F%3E%0A%20%20%20%20%20%20%3Cpath%20class%3D%22line%22%20d%3D%22M39%2058c4%206%2013%207%2019%201%22%20%2F%3E%0A%20%20%20%20%3C%2Fsymbol%3E%0A%0A%20%20%20%20%3Csymbol%20id%3D%22fish%22%20viewBox%3D%220%200%2096%2096%22%3E%0A%20%20%20%20%20%20%3Cpath%20class%3D%22wash%22%20d%3D%22M13%2049c18-19%2042-20%2061%200-19%2020-43%2020-61%200Z%22%20%2F%3E%0A%20%20%20%20%20%20%3Cpath%20class%3D%22line%22%20d%3D%22M74%2049l13-13v26L74%2049Z%22%20%2F%3E%0A%20%20%20%20%20%20%3Ccircle%20class%3D%22dot%22%20cx%3D%2229%22%20cy%3D%2246%22%20r%3D%224%22%20%2F%3E%0A%20%20%20%20%20%20%3Cpath%20class%3D%22line%20soft%22%20d%3D%22M44%2038c6%207%206%2015%200%2023%22%20%2F%3E%0A%20%20%20%20%3C%2Fsymbol%3E%0A%0A%20%20%20%20%3Csymbol%20id%3D%22milk%22%20viewBox%3D%220%200%2096%2096%22%3E%0A%20%20%20%20%20%20%3Cpath%20class%3D%22wash%22%20d%3D%22M31%2020h31l7%2015v47H24V35l7-15Z%22%20%2F%3E%0A%20%20%20%20%20%20%3Cpath%20class%3D%22line%22%20d%3D%22M32%2020v-8h28v8M24%2035h45M35%2051h23M35%2062h18%22%20%2F%3E%0A%20%20%20%20%3C%2Fsymbol%3E%0A%0A%20%20%20%20%3Csymbol%20id%3D%22bowl%22%20viewBox%3D%220%200%2096%2096%22%3E%0A%20%20%20%20%20%20%3Cpath%20class%3D%22wash%22%20d%3D%22M15%2043h66c-2%2024-16%2038-33%2038S17%2067%2015%2043Z%22%20%2F%3E%0A%20%20%20%20%20%20%3Cpath%20class%3D%22line%22%20d%3D%22M22%2043c4-15%2016-23%2027-20%2011%203%2018%201%2025-7M32%2054h33%22%20%2F%3E%0A%20%20%20%20%20%20%3Ccircle%20class%3D%22dot%22%20cx%3D%2236%22%20cy%3D%2231%22%20r%3D%223%22%20%2F%3E%0A%20%20%20%20%20%20%3Ccircle%20class%3D%22dot%22%20cx%3D%2254%22%20cy%3D%2229%22%20r%3D%223%22%20%2F%3E%0A%20%20%20%20%20%20%3Ccircle%20class%3D%22dot%22%20cx%3D%2266%22%20cy%3D%2235%22%20r%3D%223%22%20%2F%3E%0A%20%20%20%20%3C%2Fsymbol%3E%0A%0A%20%20%20%20%3Csymbol%20id%3D%22tomato%22%20viewBox%3D%220%200%2096%2096%22%3E%0A%20%20%20%20%20%20%3Cpath%20class%3D%22wash%22%20d%3D%22M48%2028c21%200%2033%2013%2033%2029S66%2084%2048%2084%2015%2073%2015%2057s12-29%2033-29Z%22%20%2F%3E%0A%20%20%20%20%20%20%3Cpath%20class%3D%22line%22%20d%3D%22M48%2029c-5-6-5-13%200-20M48%2029l-13-8M48%2029l14-9M48%2029l-2-15%22%20%2F%3E%0A%20%20%20%20%20%20%3Cpath%20class%3D%22line%20soft%22%20d%3D%22M30%2058c0%209%207%2015%2017%2017%22%20%2F%3E%0A%20%20%20%20%3C%2Fsymbol%3E%0A%0A%20%20%20%20%3Csymbol%20id%3D%22mushroom%22%20viewBox%3D%220%200%2096%2096%22%3E%0A%20%20%20%20%20%20%3Cpath%20class%3D%22wash%22%20d%3D%22M16%2044c5-19%2020-31%2039-28%2017%203%2027%2015%2028%2031-20%205-45%204-67-3Z%22%20%2F%3E%0A%20%20%20%20%20%20%3Cpath%20class%3D%22wash%22%20d%3D%22M38%2046h24l5%2034H33l5-34Z%22%20%2F%3E%0A%20%20%20%20%20%20%3Cpath%20class%3D%22line%22%20d%3D%22M22%2043c16%206%2039%208%2058%203M42%2063h17%22%20%2F%3E%0A%20%20%20%20%3C%2Fsymbol%3E%0A%0A%20%20%20%20%3Csymbol%20id%3D%22grocery-bag%22%20viewBox%3D%220%200%2096%2096%22%3E%0A%20%20%20%20%20%20%3Cpath%20class%3D%22wash%22%20d%3D%22M23%2031h50l-4%2053H27L23%2031Z%22%20%2F%3E%0A%20%20%20%20%20%20%3Cpath%20class%3D%22line%22%20d%3D%22M36%2031c0-12%206-20%2014-20s14%208%2014%2020M34%2050h28M34%2062h18%22%20%2F%3E%0A%20%20%20%20%3C%2Fsymbol%3E%0A%0A%20%20%20%20%3Csymbol%20id%3D%22pot%22%20viewBox%3D%220%200%2096%2096%22%3E%0A%20%20%20%20%20%20%3Cpath%20class%3D%22wash%22%20d%3D%22M22%2039h52v34c0%207-5%2012-12%2012H34c-7%200-12-5-12-12V39Z%22%20%2F%3E%0A%20%20%20%20%20%20%3Cpath%20class%3D%22line%22%20d%3D%22M18%2039h60M36%2030h24M40%2030c0-5%203-8%208-8s8%203%208%208M22%2051h-9M74%2051h9%22%20%2F%3E%0A%20%20%20%20%20%20%3Cpath%20class%3D%22line%20soft%22%20d%3D%22M38%2056h20%22%20%2F%3E%0A%20%20%20%20%3C%2Fsymbol%3E%0A%0A%20%20%20%20%3Csymbol%20id%3D%22leaf%22%20viewBox%3D%220%200%2096%2096%22%3E%0A%20%20%20%20%20%20%3Cpath%20class%3D%22wash%22%20d%3D%22M17%2074c6-31%2027-50%2062-57-2%2038-25%2061-62%2057Z%22%20%2F%3E%0A%20%20%20%20%20%20%3Cpath%20class%3D%22line%22%20d%3D%22M20%2072c20-21%2039-36%2057-54M40%2052l-20-3M53%2039l-2-18M31%2062l-15-1%22%20%2F%3E%0A%20%20%20%20%3C%2Fsymbol%3E%0A%0A%20%20%20%20%3Csymbol%20id%3D%22utensils%22%20viewBox%3D%220%200%2096%2096%22%3E%0A%20%20%20%20%20%20%3Cpath%20class%3D%22line%22%20d%3D%22M29%2012v72M19%2012v23c0%206%204%2010%2010%2010s10-4%2010-10V12M62%2012c10%209%2014%2022%209%2036-2%206-6%2010-12%2012v24%22%20%2F%3E%0A%20%20%20%20%20%20%3Cpath%20class%3D%22line%20soft%22%20d%3D%22M62%2012v35%22%20%2F%3E%0A%20%20%20%20%3C%2Fsymbol%3E%0A%20%20%3C%2Fdefs%3E%0A%0A%20%20%3Crect%20width%3D%22960%22%20height%3D%22960%22%20fill%3D%22transparent%22%20%2F%3E%0A%0A%20%20%3Cg%20opacity%3D%221%22%3E%0A%20%20%20%20%3Cuse%20href%3D%22%23carrot%22%20x%3D%2242%22%20y%3D%2250%22%20width%3D%2288%22%20height%3D%2288%22%20transform%3D%22rotate(-13%2086%2094)%22%20%2F%3E%0A%20%20%20%20%3Cuse%20href%3D%22%23bowl%22%20x%3D%22230%22%20y%3D%2230%22%20width%3D%2296%22%20height%3D%2296%22%20transform%3D%22rotate(8%20278%2078)%22%20%2F%3E%0A%20%20%20%20%3Cuse%20href%3D%22%23banana%22%20x%3D%22426%22%20y%3D%2256%22%20width%3D%2292%22%20height%3D%2292%22%20transform%3D%22rotate(13%20472%20102)%22%20%2F%3E%0A%20%20%20%20%3Cuse%20href%3D%22%23milk%22%20x%3D%22678%22%20y%3D%2236%22%20width%3D%2288%22%20height%3D%2288%22%20transform%3D%22rotate(-7%20722%2080)%22%20%2F%3E%0A%20%20%20%20%3Cuse%20href%3D%22%23tomato%22%20x%3D%22845%22%20y%3D%2272%22%20width%3D%2278%22%20height%3D%2278%22%20transform%3D%22rotate(10%20884%20111)%22%20%2F%3E%0A%0A%20%20%20%20%3Cuse%20href%3D%22%23bread%22%20x%3D%2292%22%20y%3D%22204%22%20width%3D%2288%22%20height%3D%2288%22%20transform%3D%22rotate(7%20136%20248)%22%20%2F%3E%0A%20%20%20%20%3Cuse%20href%3D%22%23fish%22%20x%3D%22326%22%20y%3D%22202%22%20width%3D%2296%22%20height%3D%2296%22%20transform%3D%22rotate(-10%20374%20250)%22%20%2F%3E%0A%20%20%20%20%3Cuse%20href%3D%22%23leaf%22%20x%3D%22563%22%20y%3D%22186%22%20width%3D%2282%22%20height%3D%2282%22%20transform%3D%22rotate(17%20604%20227)%22%20%2F%3E%0A%20%20%20%20%3Cuse%20href%3D%22%23egg%22%20x%3D%22776%22%20y%3D%22213%22%20width%3D%2278%22%20height%3D%2278%22%20transform%3D%22rotate(-12%20815%20252)%22%20%2F%3E%0A%0A%20%20%20%20%3Cuse%20href%3D%22%23grocery-bag%22%20x%3D%2218%22%20y%3D%22390%22%20width%3D%2296%22%20height%3D%2296%22%20transform%3D%22rotate(6%2066%20438)%22%20%2F%3E%0A%20%20%20%20%3Cuse%20href%3D%22%23avocado%22%20x%3D%22220%22%20y%3D%22384%22%20width%3D%2288%22%20height%3D%2288%22%20transform%3D%22rotate(-9%20264%20428)%22%20%2F%3E%0A%20%20%20%20%3Cuse%20href%3D%22%23mushroom%22%20x%3D%22453%22%20y%3D%22370%22%20width%3D%2292%22%20height%3D%2292%22%20transform%3D%22rotate(12%20499%20416)%22%20%2F%3E%0A%20%20%20%20%3Cuse%20href%3D%22%23utensils%22%20x%3D%22690%22%20y%3D%22370%22%20width%3D%2278%22%20height%3D%2278%22%20transform%3D%22rotate(-5%20729%20409)%22%20%2F%3E%0A%20%20%20%20%3Cuse%20href%3D%22%23pot%22%20x%3D%22826%22%20y%3D%22406%22%20width%3D%2296%22%20height%3D%2296%22%20transform%3D%22rotate(8%20874%20454)%22%20%2F%3E%0A%0A%20%20%20%20%3Cuse%20href%3D%22%23apple%22%20x%3D%2274%22%20y%3D%22600%22%20width%3D%2282%22%20height%3D%2282%22%20transform%3D%22rotate(-8%20115%20641)%22%20%2F%3E%0A%20%20%20%20%3Cuse%20href%3D%22%23tomato%22%20x%3D%22288%22%20y%3D%22574%22%20width%3D%2282%22%20height%3D%2282%22%20transform%3D%22rotate(11%20329%20615)%22%20%2F%3E%0A%20%20%20%20%3Cuse%20href%3D%22%23carrot%22%20x%3D%22497%22%20y%3D%22598%22%20width%3D%2286%22%20height%3D%2286%22%20transform%3D%22rotate(18%20540%20641)%22%20%2F%3E%0A%20%20%20%20%3Cuse%20href%3D%22%23bowl%22%20x%3D%22704%22%20y%3D%22574%22%20width%3D%2294%22%20height%3D%2294%22%20transform%3D%22rotate(-11%20751%20621)%22%20%2F%3E%0A%20%20%20%20%3Cuse%20href%3D%22%23leaf%22%20x%3D%22848%22%20y%3D%22630%22%20width%3D%2272%22%20height%3D%2272%22%20transform%3D%22rotate(12%20884%20666)%22%20%2F%3E%0A%0A%20%20%20%20%3Cuse%20href%3D%22%23milk%22%20x%3D%22137%22%20y%3D%22783%22%20width%3D%2282%22%20height%3D%2282%22%20transform%3D%22rotate(12%20178%20824)%22%20%2F%3E%0A%20%20%20%20%3Cuse%20href%3D%22%23egg%22%20x%3D%22360%22%20y%3D%22790%22%20width%3D%2276%22%20height%3D%2276%22%20transform%3D%22rotate(-10%20398%20828)%22%20%2F%3E%0A%20%20%20%20%3Cuse%20href%3D%22%23bread%22%20x%3D%22572%22%20y%3D%22777%22%20width%3D%2288%22%20height%3D%2288%22%20transform%3D%22rotate(7%20616%20821)%22%20%2F%3E%0A%20%20%20%20%3Cuse%20href%3D%22%23fish%22%20x%3D%22770%22%20y%3D%22775%22%20width%3D%2294%22%20height%3D%2294%22%20transform%3D%22rotate(-13%20817%20822)%22%20%2F%3E%0A%20%20%3C%2Fg%3E%0A%0A%20%20%3Cg%20class%3D%22line%20soft%22%3E%0A%20%20%20%20%3Cpath%20d%3D%22M174%20118c12-7%2023-7%2035%200%22%20%2F%3E%0A%20%20%20%20%3Cpath%20d%3D%22M588%2089c11%207%2022%207%2033%200%22%20%2F%3E%0A%20%20%20%20%3Cpath%20d%3D%22M824%20172c11-8%2022-8%2033%200%22%20%2F%3E%0A%20%20%20%20%3Cpath%20d%3D%22M214%20318c9%208%2019%208%2029%200%22%20%2F%3E%0A%20%20%20%20%3Cpath%20d%3D%22M659%20292c12-7%2024-7%2036%200%22%20%2F%3E%0A%20%20%20%20%3Cpath%20d%3D%22M142%20524c13%208%2025%208%2038%200%22%20%2F%3E%0A%20%20%20%20%3Cpath%20d%3D%22M622%20520c10-8%2020-8%2030%200%22%20%2F%3E%0A%20%20%20%20%3Cpath%20d%3D%22M226%20724c11%207%2023%207%2035%200%22%20%2F%3E%0A%20%20%20%20%3Cpath%20d%3D%22M675%20712c12-8%2025-8%2038%200%22%20%2F%3E%0A%20%20%20%20%3Cpath%20d%3D%22M899%20884c9%207%2019%207%2028%200%22%20%2F%3E%0A%20%20%3C%2Fg%3E%0A%0A%20%20%3Cg%3E%0A%20%20%20%20%3Ccircle%20class%3D%22dot%22%20cx%3D%22180%22%20cy%3D%2270%22%20r%3D%225%22%20%2F%3E%0A%20%20%20%20%3Ccircle%20class%3D%22dot%22%20cx%3D%22382%22%20cy%3D%22114%22%20r%3D%224%22%20%2F%3E%0A%20%20%20%20%3Ccircle%20class%3D%22dot%22%20cx%3D%22616%22%20cy%3D%22152%22%20r%3D%225%22%20%2F%3E%0A%20%20%20%20%3Ccircle%20class%3D%22dot%22%20cx%3D%22906%22%20cy%3D%2244%22%20r%3D%224%22%20%2F%3E%0A%20%20%20%20%3Ccircle%20class%3D%22dot%22%20cx%3D%2265%22%20cy%3D%22319%22%20r%3D%224%22%20%2F%3E%0A%20%20%20%20%3Ccircle%20class%3D%22dot%22%20cx%3D%22512%22%20cy%3D%22254%22%20r%3D%225%22%20%2F%3E%0A%20%20%20%20%3Ccircle%20class%3D%22dot%22%20cx%3D%22812%22%20cy%3D%22342%22%20r%3D%224%22%20%2F%3E%0A%20%20%20%20%3Ccircle%20class%3D%22dot%22%20cx%3D%22174%22%20cy%3D%22501%22%20r%3D%225%22%20%2F%3E%0A%20%20%20%20%3Ccircle%20class%3D%22dot%22%20cx%3D%22375%22%20cy%3D%22515%22%20r%3D%224%22%20%2F%3E%0A%20%20%20%20%3Ccircle%20class%3D%22dot%22%20cx%3D%22910%22%20cy%3D%22562%22%20r%3D%225%22%20%2F%3E%0A%20%20%20%20%3Ccircle%20class%3D%22dot%22%20cx%3D%2258%22%20cy%3D%22757%22%20r%3D%224%22%20%2F%3E%0A%20%20%20%20%3Ccircle%20class%3D%22dot%22%20cx%3D%22472%22%20cy%3D%22742%22%20r%3D%225%22%20%2F%3E%0A%20%20%20%20%3Ccircle%20class%3D%22dot%22%20cx%3D%22735%22%20cy%3D%22868%22%20r%3D%224%22%20%2F%3E%0A%20%20%3C%2Fg%3E%0A%3C%2Fsvg%3E%0A");
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background-color: var(--bg);
  background-image:
    var(--food-doodle-pattern),
    linear-gradient(180deg, rgba(238, 248, 224, 0.78), rgba(215, 235, 190, 0.68));
  background-size: 480px 480px, auto;
  background-position: center top, center top;
  background-attachment: fixed, fixed;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

button, input, select, textarea { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }

button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 3px solid rgba(47, 143, 78, 0.35);
  outline-offset: 2px;
}

.screen { min-height: 100vh; }

.topbar, .app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 28px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.app-header {
  z-index: 30;
  min-height: 76px;
  background: rgba(247, 248, 246, 0.92);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.logo-brand {
  flex: 0 0 auto;
  line-height: 0;
}

.brand-logo {
  display: block;
  width: clamp(172px, 13vw, 230px);
  max-width: 100%;
  max-height: 52px;
  object-fit: contain;
}

.topbar .brand-logo,
.sticky-main-nav .brand-logo {
  width: clamp(168px, 12vw, 220px);
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  flex: 0 0 34px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
}

.topbar-actions, .nav-links, .cta-row, .button-row, .chip-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-links a, .nav-links button {
  border: 0;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  font-weight: 800;
}

.nav-links a:hover, .nav-links button:hover { color: var(--ink); }

.btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--green); }
.btn.primary:hover { background: var(--green-dark); }
.btn.secondary { background: #fff; border-color: var(--line); color: var(--ink); }
.btn.secondary.danger { border-color: rgba(215, 69, 54, 0.32); color: #a4382e; }
.btn.secondary.danger:hover { background: #fff5f3; border-color: rgba(215, 69, 54, 0.55); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.warning { background: var(--tomato); }
.btn.small { min-height: 34px; padding: 7px 10px; font-size: 0.9rem; }

.landing-hero {
  min-height: calc(100vh - 68px);
  display: grid;
  align-items: end;
  padding: 84px 28px 48px;
  background:
    linear-gradient(90deg, rgba(12, 18, 15, 0.82), rgba(12, 18, 15, 0.38)),
    url("https://images.unsplash.com/photo-1498837167922-ddd27525d352?auto=format&fit=crop&w=1800&q=80") center/cover;
  color: #fff;
}

.landing-hero-inner { width: min(1120px, 100%); margin: 0 auto; }
.eyebrow { margin: 0 0 12px; color: var(--green-dark); font-weight: 900; text-transform: uppercase; font-size: 0.78rem; }
.landing-hero .eyebrow, .onboarding-visual .eyebrow { color: #b8f0c9; }
.hero-title { max-width: 780px; margin: 0; font-size: 3.4rem; line-height: 1.02; }
.hero-copy { max-width: 680px; margin: 18px 0 28px; color: rgba(255, 255, 255, 0.88); font-size: 1.18rem; line-height: 1.55; }

.landing-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.landing-step { min-height: 170px; padding: 28px; background: #fff; }
.landing-step strong { display: block; margin-bottom: 10px; font-size: 1.05rem; }
.landing-step p, .section-copy { margin: 0; color: var(--muted); line-height: 1.5; }

.pricing-band, .retailer-band { width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 54px 0; }
.section-title { margin: 0 0 12px; font-size: 2rem; line-height: 1.1; }
.section-copy { max-width: 680px; margin-bottom: 24px; }
.retailer-list, .pricing-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.retailer-card, .price-card, .metric-card, .meal-card, .day-card, .panel, .history-card, .retailer-option, .cart-row, .cart-products-card, .profile-section, .onboarding-panel, .drawer-card, .today-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(24, 33, 29, 0.03);
}

.retailer-card, .price-card { padding: 20px; }
.price-card.featured { border-color: rgba(47, 143, 78, 0.45); background: var(--soft); }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 230px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 26px; padding: 22px 16px; background: #fff; border-right: 1px solid var(--line); }
.side-nav { display: grid; gap: 8px; }
.side-nav button, .bottom-nav button { border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-weight: 900; text-align: left; }
.side-nav button { min-height: 44px; padding: 10px 12px; }
.side-nav button.active, .bottom-nav button.active { background: var(--soft); color: var(--green-dark); }
.side-footer { margin-top: auto; padding: 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 0.9rem; line-height: 1.4; }
.workspace { min-width: 0; padding-bottom: 48px; }
.header-title { min-width: 0; }
.header-title h1 { margin: 0; font-size: 1.55rem; line-height: 1.1; }
.header-title p { margin: 5px 0 0; color: var(--muted); }
.section-header .header-title p {
  color: var(--muted-strong);
  font-weight: 650;
}
.section-title-numbered {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-number-badge {
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 1px solid rgba(35, 109, 59, 0.24);
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(96, 163, 99, 0.96), rgba(58, 133, 70, 0.98));
  box-shadow:
    0 5px 14px rgba(47, 143, 78, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 950;
  line-height: 1;
}
.content { width: min(1600px, calc(100% - 28px)); margin: 0 auto; padding-top: 28px; }

.one-page-app {
  min-height: 100vh;
  background: transparent;
}

.sticky-main-nav {
  position: sticky;
  top: 0;
  z-index: 70;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 72px;
  padding: 12px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.horizontal-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
}

.horizontal-nav button {
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
  white-space: nowrap;
}

.horizontal-nav button.active,
.horizontal-nav button:hover {
  background: var(--soft);
  color: var(--ink);
}

.nav-status {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
}

.nav-account {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.account-pill {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 820;
}

.account-pill i {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: var(--soft);
  color: #111111;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 900;
}

.account-pill.signed {
  border-color: rgba(47, 143, 78, 0.32);
  background: var(--soft);
}

.account-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 120;
  width: min(720px, calc(100vw - 36px));
  padding: 16px;
  border: 1px solid rgba(91, 125, 82, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(246, 251, 245, 0.78)),
    var(--food-doodle-pattern);
  background-size: auto, 360px 360px;
  box-shadow:
    0 18px 48px rgba(24, 33, 29, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  white-space: normal;
}

.auth-popover h3 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 1.18rem;
  line-height: 1.1;
}

.auth-popover-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.auth-popover .field {
  gap: 6px;
}

.auth-popover .field input {
  min-height: 46px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.9);
}

.auth-popover-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.auth-popover-actions .btn {
  flex: 1;
  justify-content: center;
  min-height: 42px;
}

.account-menu-popover {
  display: grid;
  width: 260px;
  gap: 8px;
  padding: 10px;
}

.account-menu-item {
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(203, 216, 207, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  font-weight: 900;
  text-align: left;
}

.account-menu-item:hover {
  border-color: rgba(47, 143, 78, 0.42);
  background: rgba(238, 248, 240, 0.92);
}

.account-menu-item.danger {
  color: #8b3a2f;
}

.one-page-content {
  width: min(1600px, calc(100% - 56px));
  margin: 0 auto;
}

.profile-page-content {
  padding-top: 18px;
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 14px;
  align-items: stretch;
  margin: 18px 0 8px;
}

.product-hero-copy,
.outcome-preview {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(91, 125, 82, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 18px 46px rgba(24, 33, 29, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.product-hero-copy {
  display: flex;
  min-height: 238px;
  flex-direction: column;
  justify-content: center;
  padding: 28px 34px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(242, 249, 239, 0.92)),
    var(--food-doodle-pattern);
  background-size: auto, 420px 420px;
  background-position: center, center;
}

.product-hero-copy .eyebrow {
  margin-bottom: 10px;
  color: var(--green-dark);
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.product-hero h1 {
  max-width: 720px;
  margin: 0;
  color: var(--ink);
  font-size: 2.85rem;
  line-height: 1.04;
  letter-spacing: 0;
  text-wrap: balance;
}

.product-hero-copy p:not(.eyebrow) {
  max-width: 650px;
  margin: 12px 0 14px;
  color: var(--muted-strong);
  font-size: 0.98rem;
  font-weight: 780;
  line-height: 1.4;
}

.hero-route {
  position: relative;
  max-width: 720px;
  margin: 24px 0 22px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(78, 133, 84, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 8%, rgba(97, 162, 100, 0.16), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(242, 250, 239, 0.78));
  box-shadow:
    0 14px 34px rgba(24, 33, 29, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.hero-route::after {
  content: "";
  position: absolute;
  top: -34px;
  right: -54px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(47, 143, 78, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.32);
  pointer-events: none;
}

.hero-route-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(164, 184, 171, 0.34);
}

.hero-route-head span {
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 950;
  line-height: 1.1;
  text-transform: uppercase;
}

.hero-route-head strong {
  color: var(--muted-strong);
  font-size: 0.85rem;
  font-weight: 900;
  line-height: 1.2;
}

.hero-route-track {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hero-route-track::before {
  content: "";
  position: absolute;
  top: 27px;
  right: 38px;
  left: 38px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(47, 143, 78, 0.24), rgba(234, 199, 76, 0.72), rgba(47, 143, 78, 0.36));
  box-shadow: 0 5px 14px rgba(47, 143, 78, 0.12);
}

.hero-route-track::after {
  content: "";
  position: absolute;
  top: 22px;
  right: 34px;
  width: 12px;
  height: 12px;
  border-top: 4px solid rgba(47, 143, 78, 0.42);
  border-right: 4px solid rgba(47, 143, 78, 0.42);
  border-radius: 2px;
  transform: rotate(45deg);
}

.hero-route-subtitle {
  position: relative;
  z-index: 1;
  max-width: none;
  margin: 10px 0 0;
  padding: 9px 10px;
  border: 1px solid rgba(47, 143, 78, 0.16);
  border-radius: 8px;
  background: rgba(238, 248, 240, 0.72);
  color: var(--green-dark);
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.25;
}

.hero-route-step {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 74px;
  padding: 10px 11px;
  border: 1px solid rgba(138, 169, 145, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(249, 253, 247, 0.9));
  box-shadow:
    0 10px 22px rgba(24, 33, 29, 0.065),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.hero-route-step:nth-child(2) {
  background:
    linear-gradient(145deg, rgba(255, 253, 241, 0.98), rgba(255, 249, 225, 0.88));
}

.hero-route-step:nth-child(3) {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(239, 249, 241, 0.9));
}

.hero-route-step strong {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 950;
  line-height: 1.15;
}

.hero-route-number {
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.74);
  border-radius: 50%;
  background:
    linear-gradient(180deg, #68ad6c 0%, #3f884b 100%);
  box-shadow:
    0 8px 16px rgba(47, 143, 78, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 950;
}

.hero-route-step:nth-child(2) .hero-route-number {
  background:
    linear-gradient(180deg, #f0d46b 0%, #d7ac3e 100%);
  color: #17221b;
  box-shadow:
    0 8px 16px rgba(190, 151, 48, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.hero-route-step:nth-child(3) .hero-route-number {
  background:
    linear-gradient(180deg, #2f7741 0%, #17281d 100%);
}

.product-hero-cta {
  width: fit-content;
  min-width: 196px;
  min-height: 48px;
  padding: 10px 22px 11px;
  border-color: rgba(30, 105, 55, 0.38);
  background: linear-gradient(180deg, #5b995c 0%, #41864a 55%, #2f7741 100%);
  box-shadow:
    0 7px 0 #276338,
    0 18px 28px rgba(38, 99, 56, 0.23),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  font-size: 1.02rem;
  text-shadow: 0 1px 0 rgba(24, 33, 29, 0.16);
}

.product-hero-cta:hover {
  background: linear-gradient(180deg, #62a766 0%, #448c4e 58%, #327a43 100%);
  box-shadow:
    0 8px 0 #276338,
    0 20px 30px rgba(38, 99, 56, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.product-hero-cta:active {
  transform: translateY(4px);
  box-shadow:
    0 3px 0 #276338,
    0 10px 18px rgba(38, 99, 56, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.outcome-preview {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 248, 0.9)),
    var(--food-doodle-pattern);
  background-size: auto, 360px 360px;
  background-position: center, center;
}

.outcome-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(164, 184, 171, 0.38);
}

.outcome-preview-head span,
.outcome-preview-grid span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 880;
  line-height: 1.2;
}

.outcome-preview-head strong {
  max-width: 230px;
  overflow: hidden;
  color: var(--green-dark);
  font-size: 0.95rem;
  font-weight: 950;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.outcome-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.outcome-preview-grid div {
  display: grid;
  gap: 5px;
  min-height: 58px;
  padding: 9px 11px;
  border: 1px solid rgba(164, 184, 171, 0.32);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    0 7px 18px rgba(24, 33, 29, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.outcome-preview-grid strong {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 950;
  line-height: 1.15;
}

.bottom-outcome-section {
  margin: 8px 0 28px;
}

.bottom-outcome-preview {
  width: 100%;
}

.app-footer {
  padding: 10px 0 46px;
}

.app-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 18px 20px;
  border: 1px solid rgba(91, 125, 82, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 1px 0 rgba(24, 33, 29, 0.03);
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted-strong);
  font-size: 0.92rem;
  font-weight: 850;
  line-height: 1.25;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-logo .brand-logo {
  width: min(115px, 33vw);
  max-height: 29px;
}

.cookie-policy-page {
  padding-top: 26px;
}

.policy-card {
  width: min(920px, 100%);
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid rgba(91, 125, 82, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(246, 251, 245, 0.93)),
    var(--food-doodle-pattern);
  background-position: center, center;
  background-size: auto, 430px 430px;
  box-shadow:
    0 18px 46px rgba(24, 33, 29, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.policy-card h1 {
  max-width: 760px;
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.04;
}

.policy-placeholder {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid rgba(164, 184, 171, 0.36);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.policy-placeholder h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.policy-placeholder ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted-strong);
  font-weight: 650;
  line-height: 1.55;
}

.legal-page {
  padding-top: 26px;
}

.legal-topbar {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.legal-topbar .footer-links {
  justify-content: center;
}

.legal-card {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid rgba(91, 125, 82, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 251, 245, 0.94)),
    var(--food-doodle-pattern);
  background-position: center, center;
  background-size: auto, 430px 430px;
  box-shadow:
    0 18px 46px rgba(24, 33, 29, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.legal-card h1 {
  max-width: 820px;
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.04;
  text-wrap: balance;
}

.legal-document {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  color: var(--muted-strong);
  font-weight: 650;
  line-height: 1.58;
}

.legal-document p {
  margin: 0;
}

.legal-document h2 {
  margin: 20px 0 2px;
  color: var(--ink);
  font-size: 1.36rem;
  line-height: 1.18;
}

.legal-note {
  padding: 12px 14px;
  border: 1px solid rgba(47, 143, 78, 0.22);
  border-radius: 8px;
  background: rgba(240, 247, 242, 0.9);
  color: var(--ink);
}

.legal-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(164, 184, 171, 0.34);
  border-radius: 8px;
  background: rgba(164, 184, 171, 0.2);
}

.legal-row-wide {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.legal-row span {
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.86);
}

.legal-row span:first-child {
  color: var(--ink);
  font-weight: 900;
}

.legal-bullet {
  position: relative;
  padding-left: 18px;
}

.legal-bullet::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 2px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--green);
}

.page-section {
  scroll-margin-top: 88px;
  padding: 28px 0 42px;
  border-bottom: 2px solid rgba(91, 125, 82, 0.32);
}

.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-content {
  display: grid;
  gap: 18px;
}

.base-form-panel {
  padding: 18px;
}

.base-rules-panel,
.nutrition-panel {
  border: 1px solid rgba(91, 125, 82, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
}

.base-rules-panel {
  position: relative;
  display: grid;
  overflow: hidden;
  gap: 12px 16px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(246, 251, 245, 0.92)),
    var(--food-doodle-pattern);
  background-position: center, center;
  background-size: auto, 430px 430px;
  box-shadow:
    0 18px 46px rgba(24, 33, 29, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.nutrition-panel {
  padding: 28px;
}

.base-panel-tools,
.advanced-save-row {
  display: flex;
  justify-content: flex-end;
}

.base-panel-tools {
  margin-bottom: 0;
}

.advanced-save-row {
  margin-top: 12px;
}

.base-rules-panel h2,
.nutrition-panel h2 {
  margin: 0 0 28px;
  font-size: 1.9rem;
  line-height: 1.1;
}

.base-grid,
.nutrition-grid {
  display: grid;
  gap: 10px 12px;
}

.base-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.base-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.base-grid.two,
.nutrition-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.base-grid.compact {
  width: min(440px, 100%);
  margin-top: 24px;
}

.base-grid.main-rules-row {
  margin-top: 0;
}

.base-field {
  position: relative;
  display: grid;
  gap: 5px;
}

.base-field.full {
  width: min(560px, 100%);
  margin-bottom: 0;
}

.base-field label {
  color: var(--muted-strong);
  font-size: 0.82rem;
  font-weight: 880;
  line-height: 1.1;
}

.base-field input,
.base-field select {
  width: 100%;
  height: 48px;
  padding: 9px 14px;
  border: 1px solid rgba(176, 194, 183, 0.74);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  box-shadow:
    0 5px 14px rgba(24, 33, 29, 0.035),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  font-size: 0.98rem;
  font-weight: 760;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.base-field input:hover,
.base-field select:hover,
.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: rgba(95, 145, 104, 0.42);
}

.base-field input:focus,
.base-field select:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(47, 143, 78, 0.62);
  background: #fff;
  box-shadow:
    0 0 0 3px rgba(47, 143, 78, 0.1),
    0 8px 22px rgba(47, 143, 78, 0.08);
  outline: 0;
}

.base-field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 27px) center,
    calc(100% - 17px) center;
  background-size: 10px 10px, 10px 10px;
  background-repeat: no-repeat;
}

.base-field.with-unit input {
  padding-right: 82px;
}

.base-field.with-unit span {
  position: absolute;
  right: 16px;
  bottom: 12px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 880;
}

.pill-toggle {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 2px;
  padding: 10px 20px;
  border: 1px solid rgba(31, 99, 61, 0.42);
  border-radius: 8px;
  background: linear-gradient(180deg, #4f8f5a 0%, #397b49 58%, #2f6e40 100%);
  color: #fff;
  box-shadow:
    0 5px 0 #285f3a,
    0 15px 28px rgba(38, 99, 56, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  font-size: 0.96rem;
  font-weight: 900;
}

.pill-toggle .chevron {
  width: 13px;
  height: 13px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 180ms ease;
}

.pill-toggle[aria-expanded="true"] .chevron {
  transform: rotate(225deg) translate(-2px, -2px);
}

.advanced-slide {
  max-height: 0;
  overflow: hidden;
  transition: max-height 220ms ease;
}

.advanced-slide.open {
  max-height: 2200px;
}

.advanced-inner {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(164, 184, 171, 0.38);
}

.advanced-inner .nutrition-grid {
  gap: 14px 18px;
}

.panel-kicker {
  margin: 0 0 18px;
  color: #477d68;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.nutrition-card,
.nutrition-check {
  padding: 12px 14px;
  border: 1px solid rgba(176, 194, 183, 0.64);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    0 7px 18px rgba(24, 33, 29, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.nutrition-card h3,
.nutrition-check strong {
  display: block;
  margin: 0 0 5px;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.15;
}

.nutrition-card p:not(.panel-kicker),
.nutrition-check span {
  display: block;
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.32;
}

.nutrition-card .panel-kicker {
  margin-bottom: 10px;
  font-size: 0.82rem;
}

.nutrition-card .base-field {
  gap: 6px;
}

.nutrition-card .base-field input,
.nutrition-card .base-field select {
  height: 44px;
  min-height: 44px;
  padding: 8px 12px;
  font-size: 0.94rem;
}

.nutrition-card .base-field.with-unit input {
  padding-right: 72px;
}

.nutrition-card .base-field.with-unit span {
  right: 16px;
  bottom: 12px;
  font-size: 0.9rem;
}

.meal-type-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 10px 0 8px;
}

.meal-type-tile {
  min-height: 32px;
  padding: 7px 11px;
  border: 1px solid rgba(91, 125, 82, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 245, 0.9));
  color: var(--green-dark);
  box-shadow:
    0 8px 16px rgba(24, 33, 29, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.meal-type-tile.active {
  border-color: rgba(47, 143, 78, 0.72);
  background:
    linear-gradient(180deg, rgba(89, 147, 86, 0.98), rgba(68, 126, 75, 0.98));
  color: #fff;
  box-shadow:
    0 10px 18px rgba(47, 143, 78, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.meal-type-hint {
  margin: 0 0 8px;
  color: var(--muted-strong);
  font-size: 0.76rem;
  font-weight: 760;
  line-height: 1.28;
}

.nutrition-check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nutrition-check input {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  accent-color: var(--green);
}

.profile-defaults-toggle {
  display: inline-flex;
  max-width: 100%;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border: 1px solid rgba(47, 143, 78, 0.28);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(241, 249, 243, 0.9));
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(24, 33, 29, 0.06);
  cursor: pointer;
  user-select: none;
}

.profile-defaults-toggle.active {
  border-color: rgba(47, 143, 78, 0.45);
  background: #eef8f0;
}

.profile-defaults-toggle.locked {
  color: var(--muted);
}

.profile-defaults-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.profile-defaults-switch {
  position: relative;
  width: 42px;
  height: 24px;
  flex: 0 0 42px;
  border-radius: 999px;
  background: #d7e1da;
  transition: background 160ms ease;
}

.profile-defaults-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(24, 33, 29, 0.18);
  transition: transform 160ms ease;
}

.profile-defaults-toggle input:checked + .profile-defaults-switch {
  background: var(--green);
}

.profile-defaults-toggle input:checked + .profile-defaults-switch::after {
  transform: translateX(18px);
}

.profile-defaults-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.profile-defaults-copy strong {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.1;
}

.profile-defaults-copy em {
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 760;
  line-height: 1.15;
}

.profile-params-tools {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  max-width: 100%;
}

.profile-save-params-btn {
  min-height: 40px;
  padding: 9px 14px;
  border-color: rgba(47, 143, 78, 0.42);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 249, 243, 0.9));
  color: var(--green-dark);
  box-shadow: 0 10px 24px rgba(24, 33, 29, 0.08);
  white-space: nowrap;
}

.plan-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 100%;
}

.plan-command-actions-wrap {
  flex: 1 1 100%;
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

.plan-header-toggle {
  min-height: 40px;
  margin-top: 0;
  padding: 9px 14px;
  font-size: 0.88rem;
  box-shadow:
    0 4px 0 #285f3a,
    0 12px 24px rgba(38, 99, 56, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.plan-advanced-panel {
  display: grid;
  gap: 12px;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid rgba(91, 125, 82, 0.2);
}

.plan-advanced-fields {
  display: grid;
  gap: 12px 16px;
}

.profile-template-picker {
  position: relative;
  min-width: 0;
}

.profile-template-chip {
  position: relative;
  display: grid;
  gap: 1px;
  min-height: 40px;
  max-width: 220px;
  padding: 7px 34px 7px 12px;
  border: 1px solid rgba(47, 143, 78, 0.42);
  border-radius: 8px;
  background: rgba(238, 248, 240, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 10px 24px rgba(24, 33, 29, 0.08);
  color: var(--green-dark);
  cursor: pointer;
  text-align: left;
}

.profile-template-chip::after {
  content: "";
  position: absolute;
  right: 13px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--green-dark);
  border-bottom: 2px solid var(--green-dark);
  opacity: 0.82;
  transform: translateY(-62%) rotate(45deg);
  transition: transform 160ms ease, opacity 160ms ease;
}

.profile-template-chip[aria-expanded="true"]::after {
  transform: translateY(-35%) rotate(225deg);
}

.profile-template-chip:hover::after {
  opacity: 1;
}

.profile-template-chip span {
  color: var(--muted-strong);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0;
}

.profile-template-chip strong {
  overflow: hidden;
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 950;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-template-menu,
.profile-save-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  width: min(360px, calc(100vw - 32px));
  padding: 10px;
  border: 1px solid rgba(176, 194, 183, 0.76);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 44px rgba(24, 33, 29, 0.15);
  backdrop-filter: blur(14px);
}

.profile-template-menu {
  display: grid;
  gap: 6px;
}

.profile-template-menu button {
  display: grid;
  gap: 2px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid rgba(176, 194, 183, 0.62);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.profile-template-menu button.active {
  border-color: rgba(47, 143, 78, 0.55);
  background: rgba(238, 248, 240, 0.92);
}

.profile-template-menu strong {
  font-size: 0.84rem;
  font-weight: 950;
}

.profile-template-menu span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 760;
}

.profile-save-popover {
  display: grid;
  gap: 9px;
}

.profile-save-popover label {
  display: grid;
  gap: 5px;
}

.profile-save-popover label span {
  color: var(--muted-strong);
  font-size: 0.72rem;
  font-weight: 900;
}

.profile-save-popover input {
  width: 100%;
  height: 42px;
  padding: 8px 10px;
  border: 1px solid rgba(176, 194, 183, 0.76);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font: inherit;
  font-weight: 850;
}

.profile-save-actions {
  display: flex;
  gap: 8px;
}

.profile-save-actions .btn {
  min-height: 38px;
  flex: 1;
  padding: 8px 12px;
}

.profile-save-popover p {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 760;
}

@media (min-width: 920px) {
  .base-rules-panel {
    grid-template-columns: minmax(300px, 560px) minmax(260px, 1fr);
  }

  .base-field.full {
    grid-column: 1;
    grid-row: 1;
  }

  .base-panel-tools {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
  }

  .base-grid.three,
  .base-grid.four,
  .base-grid.main-rules-row,
  .ingredient-tag-field.base-tag-field,
  .pill-toggle,
  .advanced-slide {
    grid-column: 1 / -1;
  }

  .pill-toggle {
    justify-self: start;
  }
}

.chip {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  white-space: nowrap;
}

.chip.soft { background: var(--soft); border-color: transparent; color: var(--green-dark); }

.ingredient-tag-field {
  gap: 8px;
}

.ingredient-tag-field.base-tag-field {
  margin-top: 0;
}

.tag-input-shell {
  display: grid;
  gap: 6px;
  min-height: 48px;
  padding: 7px;
  border: 1px solid rgba(176, 194, 183, 0.74);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow:
    0 5px 14px rgba(24, 33, 29, 0.035),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.ingredient-tag-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 24px;
}

.ingredient-tag-list em {
  color: var(--muted);
  font-size: 0.88rem;
  font-style: normal;
  font-weight: 800;
}

.ingredient-tag {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid rgba(47, 143, 78, 0.28);
  border-radius: 8px;
  background: var(--soft);
  color: var(--green-dark);
  font-weight: 900;
}

.ingredient-tag i {
  font-style: normal;
  font-weight: 900;
}

.field .tag-input-shell input {
  width: 100%;
  min-height: 36px;
  border: 0;
  outline: 0;
  border-radius: 8px;
  background: #f7faf8;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  padding: 0 10px;
}

.field .tag-input-shell input:focus,
.field .tag-input-shell input:focus-visible {
  border: 0;
  background: #f7faf8;
  box-shadow: 0 0 0 3px rgba(47, 143, 78, 0.16);
}

.ingredient-tag-field small {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.grid-two { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.8fr); gap: 18px; align-items: start; }
.grid-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

.hero-dashboard { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr); gap: 18px; align-items: stretch; }
.week-focus {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(24, 33, 29, 0.18), rgba(24, 33, 29, 0.78)),
    url("https://images.unsplash.com/photo-1512621776951-a57141f2eefd?auto=format&fit=crop&w=1400&q=80") center/cover;
  color: #fff;
}

.week-focus h2 { max-width: 640px; margin: 0 0 12px; font-size: 2.45rem; line-height: 1.05; }
.week-focus p { max-width: 640px; margin: 0 0 20px; color: rgba(255, 255, 255, 0.86); line-height: 1.5; }
.sync-panel, .panel { padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.sync-panel h3, .panel h3, .profile-section h3, .history-card h3, .retailer-option h3, .day-card h3 { margin: 0 0 12px; }
.sync-list, .panel-list, .cart-lines { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.sync-list li, .panel-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); }
.sync-list strong, .panel-list strong { color: var(--ink); }
.filter-panel {
  background: linear-gradient(180deg, #fff, #f6fbf8);
  border-color: rgba(47, 143, 78, 0.2);
}
.filter-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.filter-fields .field {
  min-height: 72px;
  margin: 0;
}
.filter-fields .field.full {
  grid-column: 1 / -1;
}
.filter-fields .field textarea {
  min-height: 64px;
  resize: vertical;
}
.match-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.match-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 56px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
}
.match-row span,
.match-row strong {
  display: block;
}
.match-row span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
}
.match-row strong {
  margin-top: 4px;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.2;
}
.match-row em {
  display: inline-flex;
  min-width: 50px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #edf5ef;
  color: var(--green-dark);
  font-style: normal;
  font-weight: 900;
}
.match-row.warn em { background: #fff4cf; color: #775700; }
.match-row.bad em { background: #ffe5df; color: #9b2d1d; }

.metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.metric-card { min-height: 116px; padding: 16px; }
.metric-card span { color: var(--muted); font-size: 0.92rem; }
.metric-card strong { display: block; margin-top: 10px; font-size: 1.55rem; line-height: 1.1; }
.today-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.today-card { overflow: hidden; }
.today-card img { width: 100%; height: 120px; display: block; object-fit: cover; }
.today-card div { padding: 14px; }
.today-card p { margin: 5px 0 0; color: var(--muted); }
.quick-actions { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.quick-actions button { min-height: 58px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font-weight: 900; text-align: left; }

.command-bar {
  position: static;
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
  padding: 11px 12px;
  border: 1px solid rgba(91, 125, 82, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 244, 0.9)),
    var(--food-doodle-pattern);
  background-position: center, center;
  background-size: auto, 360px 360px;
  box-shadow:
    0 18px 42px rgba(24, 33, 29, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
}

.command-bar .chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: stretch;
}

.command-bar .chip-row > * {
  flex: 1 1 210px;
  min-width: min(100%, 190px);
}

.command-bar .cta-row {
  justify-content: flex-end;
}

.segmented {
  display: inline-flex;
  height: 48px;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(91, 125, 82, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 8px 18px rgba(24, 33, 29, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.segmented button {
  min-height: 38px;
  flex: 1;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted-strong);
  font-size: 0.9rem;
  font-weight: 820;
  line-height: 1;
  white-space: nowrap;
  transition: background 140ms ease, color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.segmented button:hover {
  background: rgba(238, 246, 240, 0.92);
  color: var(--ink);
}

.segmented button.active {
  background: var(--ink);
  color: #fff;
  box-shadow:
    0 3px 0 rgba(9, 18, 13, 0.78),
    0 10px 18px rgba(24, 33, 29, 0.13);
}

.mode-switch {
  flex-basis: 210px;
  border-color: rgba(47, 143, 78, 0.34);
  background:
    linear-gradient(180deg, rgba(239, 249, 241, 0.94), rgba(225, 240, 229, 0.9));
  box-shadow:
    0 10px 22px rgba(47, 143, 78, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.command-bar .chip-row > .segmented:not(.mode-switch) {
  flex-basis: 290px;
}

.mode-switch button {
  color: #415e51;
}

.mode-switch button.active {
  background: linear-gradient(180deg, #5f9d60 0%, #43894c 58%, #2f7741 100%);
  color: #fff;
  box-shadow:
    0 3px 0 #276338,
    0 10px 18px rgba(47, 143, 78, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.inline-control {
  display: flex;
  height: 48px;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 7px 12px;
  border: 1px solid rgba(91, 125, 82, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    0 8px 18px rgba(24, 33, 29, 0.035),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.inline-control:hover {
  border-color: rgba(91, 125, 82, 0.34);
  background: rgba(255, 255, 255, 0.92);
}

.inline-control:focus-within {
  border-color: rgba(47, 143, 78, 0.62);
  box-shadow: 0 0 0 4px rgba(47, 143, 78, 0.1);
}

.inline-control > span {
  color: var(--muted-strong);
  font-size: 0.68rem;
  font-weight: 820;
  line-height: 1;
  white-space: nowrap;
}

.inline-control input,
.inline-control select {
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 850;
  line-height: 1.1;
  outline: 0;
}

.inline-control input {
  width: 46px;
  padding: 0;
  text-align: center;
}

.inline-control select {
  width: 100%;
  min-width: 170px;
  height: 22px;
  padding: 0 26px 0 0;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 14px) 9px,
    calc(100% - 6px) 9px;
  background-size: 8px 8px, 8px 8px;
  background-repeat: no-repeat;
}

.inline-family-inputs,
.inline-unit-input {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
}

.inline-unit-input input {
  width: auto;
  min-width: 5ch;
  max-width: 9ch;
  flex: 0 0 auto;
  text-align: left;
}

.inline-control em {
  color: var(--muted-strong);
  font-style: normal;
  font-size: 0.9rem;
  font-weight: 820;
  white-space: nowrap;
}

.family-inline-control {
  flex-basis: 235px;
  min-width: min(100%, 220px);
}

.plan-name-inline-control {
  flex: 0 1 240px;
  min-width: min(100%, 220px);
}

.plan-name-inline-control input {
  width: 100%;
  min-width: 0;
  text-align: left;
}

.diet-inline-control {
  flex-basis: 285px;
  min-width: min(100%, 250px);
}

.money-inline-control {
  flex-basis: 245px;
  min-width: min(100%, 220px);
}

.plan-layout, .cart-layout, .profile-layout, .history-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}

.history-layout.orders-only {
  grid-template-columns: minmax(0, 1fr);
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(var(--calendar-columns, 7), minmax(0, 1fr));
  gap: 10px;
  overflow: visible;
  padding: 12px;
  border: 1px solid rgba(203, 216, 207, 0.95);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 34px rgba(24, 33, 29, 0.06);
}

.week-grid::-webkit-scrollbar {
  height: 10px;
}

.week-grid::-webkit-scrollbar-thumb {
  border: 3px solid #fff;
  border-radius: 999px;
  background: #c7d5cc;
}

.recipe-pdf-row {
  display: flex;
  grid-column: 1 / -1;
  justify-content: flex-start;
  margin-top: 12px;
}

.btn.secondary.recipe-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 2px solid rgba(47, 143, 78, 0.82);
  color: #111111;
  background: linear-gradient(180deg, rgba(240, 248, 242, 0.98), rgba(222, 239, 226, 0.94));
  box-shadow: 0 10px 24px rgba(47, 143, 78, 0.14);
}

.btn.secondary.recipe-pdf-btn:hover {
  border-color: var(--green);
  background: linear-gradient(180deg, #eef9f0, #d8ecd9);
  transform: translateY(-1px);
}

.recipe-pdf-btn .download-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.plan-below-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}

.plan-summary-panel,
.plan-actions-panel {
  grid-column: 1 / -1;
}

.plan-summary-panel .panel-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.plan-summary-panel .panel-list li {
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid rgba(164, 184, 171, 0.42);
  border-radius: 8px;
  background: rgba(248, 252, 248, 0.78);
}

.plan-summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(164, 184, 171, 0.34);
}

.plan-summary-actions button {
  width: auto;
  flex: 0 1 auto;
  min-width: 0;
  min-height: 46px;
  padding: 10px 14px;
  line-height: 1.16;
  white-space: normal;
  overflow-wrap: anywhere;
}

.plan-summary-actions .plan-rebuild-btn {
  border-color: rgba(47, 143, 78, 0.62);
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.92);
}

.day-card {
  min-width: 0;
  padding: 10px;
  background: #fbfdfc;
}

.day-card.today {
  border-color: rgba(47, 143, 78, 0.48);
  background: linear-gradient(180deg, #f6fbf7, #fff);
  box-shadow: 0 0 0 3px rgba(47, 143, 78, 0.08);
}

.day-card-head {
  display: grid;
  gap: 7px;
  margin-bottom: 10px;
}

.day-card h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 0;
  margin: 0;
  font-size: 1rem;
  line-height: 1;
}

.day-card h3 .day-week { color: var(--ink); font-size: 1.05rem; font-weight: 900; }
.day-card h3 .day-date { color: var(--muted); font-size: 0.78rem; font-weight: 800; }
.day-total {
  margin: 0;
  padding: 6px 7px;
  border-radius: 8px;
  background: rgba(240, 247, 242, 0.82);
  color: var(--muted-strong);
  font-size: 0.72rem;
  font-weight: 820;
  line-height: 1.25;
}
.meal-stack { display: grid; gap: 8px; }
.meal-card {
  min-width: 0;
  overflow: hidden;
  border-color: #d5e0d9;
  background: #fff;
  box-shadow: 0 5px 14px rgba(24, 33, 29, 0.04);
}
.compact-meal-card {
  border-left: 4px solid rgba(164, 184, 171, 0.5);
}
.compact-meal-card.meal-tone-breakfast { border-left-color: #e6c762; background: linear-gradient(90deg, rgba(255, 248, 218, 0.72), #fff 52%); }
.compact-meal-card.meal-tone-lunch { border-left-color: #8bbf87; background: linear-gradient(90deg, rgba(232, 246, 232, 0.78), #fff 52%); }
.compact-meal-card.meal-tone-dinner { border-left-color: #8fa9c7; background: linear-gradient(90deg, rgba(233, 241, 249, 0.82), #fff 52%); }
.meal-summary {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 28px;
  gap: 5px 8px;
  align-items: start;
  padding: 9px 9px 8px;
  cursor: pointer;
  list-style: none;
}
.meal-summary::-webkit-details-marker { display: none; }
.meal-thumb {
  grid-column: 1;
  grid-row: 3 / span 2;
  width: 40px;
  height: 36px;
  margin-top: 1px;
  border-radius: 8px;
  background: var(--soft) center/cover;
  box-shadow: inset 0 0 0 1px rgba(217, 226, 220, 0.78);
}
.meal-copy {
  display: contents;
}
.meal-type {
  grid-column: 1 / 3;
  margin: 0;
  color: var(--aqua);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}
.meal-title {
  grid-column: 1 / 3;
  display: -webkit-box;
  min-height: 0;
  margin: 0;
  overflow-wrap: anywhere;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.91rem;
  font-weight: 850;
  line-height: 1.12;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.meal-meta-line {
  grid-column: 2 / 3;
  min-width: 0;
  overflow: visible;
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 740;
  line-height: 1.2;
  white-space: normal;
}
.meal-price-chip {
  grid-column: 2 / 3;
  justify-self: start;
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(241, 246, 243, 0.96);
  color: var(--muted-strong);
  font-size: 0.65rem;
  font-weight: 880;
  white-space: nowrap;
}
.meal-dots {
  display: grid;
  grid-column: 3;
  grid-row: 2 / span 2;
  align-self: center;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(203, 216, 207, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
}

.compact-meal-card[open] .meal-dots {
  border-color: rgba(47, 143, 78, 0.44);
  color: var(--green-dark);
  background: rgba(238, 248, 240, 0.94);
}
.meal-detail-panel {
  display: grid;
  gap: 8px;
  padding: 0 8px 8px;
}
.meal-detail-copy {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 760;
}
.availability { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 7px; border-radius: 6px; background: var(--soft); color: var(--green-dark); font-size: 0.78rem; font-weight: 900; }
.availability.warn { background: #fff4cf; color: #775700; }
.meal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.meal-actions button {
  flex: 1 1 92px;
  min-width: max-content;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}
.meal-actions button:hover {
  border-color: rgba(47, 143, 78, 0.45);
  background: #f2f8f4;
  color: var(--green-dark);
}
.meal-actions .danger-action {
  border-color: rgba(184, 87, 87, 0.24);
  color: #8f3535;
}
.meal-actions .danger-action:hover {
  border-color: rgba(184, 87, 87, 0.42);
  background: #fff3f1;
  color: #7b2020;
}
.mobile-day-strip { display: none; }
.side-panels { display: grid; gap: 12px; }
.cart-layout .side-panels {
  gap: 10px;
}
.cart-layout .side-panels .panel {
  padding: 14px;
  border-color: rgba(91, 125, 82, 0.24);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(247, 251, 247, 0.9)),
    var(--food-doodle-pattern);
  background-size: auto, 340px 340px;
  box-shadow:
    0 14px 34px rgba(24, 33, 29, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}
.cart-layout .side-panels .panel h3 {
  margin-bottom: 10px;
  font-size: 1.06rem;
}
.cart-layout .side-panels .panel-list {
  gap: 6px;
}
.cart-layout .side-panels .panel-list li {
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid rgba(164, 184, 171, 0.32);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
}
.cart-layout .side-panels .section-copy {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.88rem;
  font-weight: 720;
  line-height: 1.42;
}
.cart-layout .side-panels .panel-actions {
  gap: 7px;
}
.cart-layout .side-panels .panel-actions .btn {
  min-height: 42px;
  padding: 9px 12px;
  white-space: normal;
}
.cart-layout .side-panels .panel-actions .btn.primary {
  border-color: rgba(31, 99, 61, 0.42);
  background: linear-gradient(180deg, #5b995c 0%, #41864a 55%, #2f7741 100%);
  box-shadow:
    0 5px 0 #276338,
    0 15px 26px rgba(38, 99, 56, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.cart-layout .side-panels .panel-actions .btn.primary:active {
  transform: translateY(3px);
  box-shadow:
    0 2px 0 #276338,
    0 8px 16px rgba(38, 99, 56, 0.18);
}
.warning-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.warning-list li { padding: 10px; border-radius: 8px; background: #fff4cf; color: #5f4700; font-weight: 800; line-height: 1.35; }
.panel-actions { display: grid; gap: 8px; }
.panel-actions button {
  width: 100%;
  justify-content: center;
  text-align: center;
}
.plan-actions-panel {
  margin: 0;
}
.plan-actions-panel .panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.plan-actions-panel .panel-actions button {
  width: auto;
  flex: 0 1 auto;
  min-width: 0;
  min-height: 48px;
  padding: 10px 12px;
  justify-content: center;
  line-height: 1.16;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.plan-summary-panel .plan-summary-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.plan-summary-panel .plan-summary-actions .btn {
  width: auto;
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 10px;
  max-width: 100%;
  white-space: nowrap;
}

.plan-summary-panel .plan-summary-actions .btn.primary {
  padding-right: 14px;
  padding-left: 14px;
}

.plan-summary-panel .plan-summary-actions .plan-rebuild-btn {
  border-color: rgba(47, 143, 78, 0.62);
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.92);
}

.plan-summary-panel {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border-color: rgba(91, 125, 82, 0.24);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 251, 246, 0.91)),
    var(--food-doodle-pattern);
  background-position: center, center;
  background-size: auto, 360px 360px;
  box-shadow:
    0 18px 42px rgba(24, 33, 29, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.plan-summary-panel h3 {
  margin-bottom: 12px;
  color: var(--green-dark);
  font-size: 1.18rem;
  line-height: 1.1;
}

.plan-summary-panel .panel-list {
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 8px;
}

.plan-summary-panel .panel-list li {
  position: relative;
  min-height: 48px;
  padding: 10px 12px 10px 14px;
  border: 1px solid rgba(91, 125, 82, 0.18);
  border-left-width: 4px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow:
    0 8px 18px rgba(24, 33, 29, 0.035),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.plan-summary-panel .panel-list li:nth-child(1) { border-left-color: #e1c45f; }
.plan-summary-panel .panel-list li:nth-child(2) { border-left-color: #7fb985; }
.plan-summary-panel .panel-list li:nth-child(3) { border-left-color: #5d9460; }
.plan-summary-panel .panel-list li:nth-child(4) { border-left-color: #89a8c7; }

.plan-summary-panel .panel-list span {
  color: var(--muted-strong);
  font-size: 0.86rem;
  font-weight: 760;
}

.plan-summary-panel .panel-list strong {
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 900;
  white-space: nowrap;
}

.plan-summary-panel .plan-summary-actions {
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(91, 125, 82, 0.16);
}

.plan-summary-panel .plan-summary-actions .btn {
  min-height: 38px;
  padding: 8px 12px;
  border-color: rgba(91, 125, 82, 0.24);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 7px 16px rgba(24, 33, 29, 0.04);
}

.plan-summary-panel .plan-summary-actions .btn.primary {
  border-color: rgba(31, 99, 61, 0.42);
  background: linear-gradient(180deg, #5b995c 0%, #41864a 55%, #2f7741 100%);
  color: #fff;
  box-shadow:
    0 4px 0 #276338,
    0 13px 24px rgba(38, 99, 56, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.plan-summary-panel .plan-summary-actions .plan-rebuild-btn {
  border-color: rgba(47, 143, 78, 0.62);
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.86);
  box-shadow:
    0 7px 16px rgba(47, 143, 78, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.retailer-picker {
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid rgba(91, 125, 82, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(246, 251, 245, 0.92)),
    var(--food-doodle-pattern);
  background-position: center, center;
  background-size: auto, 390px 390px;
  box-shadow:
    0 18px 42px rgba(24, 33, 29, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}
.retailer-picker-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.retailer-picker-head h3 {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 1.12rem;
  line-height: 1.1;
}
.retailer-picker-head span {
  max-width: 420px;
  color: var(--muted-strong);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: right;
}
.retailer-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.retailer-option {
  display: grid;
  gap: 10px;
  min-height: 122px;
  padding: 12px;
  text-align: left;
  border-color: rgba(164, 184, 171, 0.68);
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    0 7px 18px rgba(24, 33, 29, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}
.retailer-option.active {
  border-color: rgba(47, 143, 78, 0.72);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(238, 248, 240, 0.92));
  box-shadow:
    0 0 0 3px rgba(47, 143, 78, 0.12),
    0 14px 28px rgba(47, 143, 78, 0.13);
}
.retailer-option:hover { transform: translateY(-1px); }
.retailer-option h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.1;
}
.retailer-option .sync-list {
  gap: 6px;
}
.retailer-option .sync-list li {
  min-height: 26px;
  padding: 4px 0;
  border-top: 1px solid rgba(164, 184, 171, 0.22);
  font-size: 0.84rem;
}
.retailer-option .sync-list li:first-child {
  border-top: 0;
}
.retailer-status { display: inline-flex; width: fit-content; padding: 4px 8px; border-radius: 6px; background: var(--soft); color: var(--green-dark); font-size: 0.72rem; font-weight: 900; line-height: 1; }
.cart-groups { display: grid; gap: 12px; }
.cart-row { padding: 14px; }
.cart-row h3 { margin: 0 0 12px; }
.cart-line { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; min-height: 38px; border-top: 1px solid var(--line); color: var(--muted); }
.cart-line:first-child { border-top: 0; }
.cart-line strong { color: var(--ink); }
.cart-products-card {
  overflow: hidden;
  border-color: rgba(91, 125, 82, 0.24);
  background: rgba(255, 255, 255, 0.95);
  box-shadow:
    0 18px 42px rgba(24, 33, 29, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}
.cart-products-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(164, 184, 171, 0.36);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 247, 0.92)),
    var(--food-doodle-pattern);
  background-size: auto, 360px 360px;
}
.cart-products-title h3 { margin: 0 0 6px; font-size: 1.16rem; line-height: 1.15; }
.cart-products-title p:not(.eyebrow) { max-width: 680px; margin: 0; color: var(--muted-strong); font-size: 0.88rem; font-weight: 720; line-height: 1.42; }
.cart-products-total {
  display: grid;
  min-width: 176px;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid rgba(47, 143, 78, 0.28);
  border-radius: 8px;
  background: rgba(238, 248, 240, 0.84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  text-align: right;
}
.cart-products-total span, .cart-products-total small { color: var(--muted); font-size: 0.78rem; font-weight: 800; }
.cart-products-total strong { font-size: 1.18rem; line-height: 1.1; }
.cart-products-table { width: 100%; }
.cart-products-header, .cart-product-row {
  display: grid;
  grid-template-columns: minmax(250px, 1.2fr) minmax(170px, 0.68fr) minmax(200px, 0.82fr) minmax(120px, 0.38fr);
  gap: 14px;
}
.cart-products-header {
  padding: 11px 18px;
  border-bottom: 1px solid rgba(164, 184, 171, 0.36);
  background: rgba(248, 252, 248, 0.92);
  color: var(--muted-strong);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
.cart-products-body {
  max-height: 560px;
  overflow: auto;
  scrollbar-color: rgba(24, 33, 29, 0.46) transparent;
}
.cart-product-row {
  align-items: flex-start;
  min-height: 100px;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(164, 184, 171, 0.32);
  background: rgba(255, 255, 255, 0.96);
}
.cart-product-row:last-child { border-bottom: 0; }
.cart-product-row:hover { background: rgba(248, 252, 248, 0.86); }
.cart-product-row.unavailable { background: rgba(255, 252, 238, 0.94); }
.cart-product-row.missing { background: rgba(255, 246, 243, 0.94); }
.cart-product-main, .cart-product-qty, .cart-product-source, .cart-product-sum {
  display: grid;
  min-width: 0;
  gap: 4px;
  color: var(--muted);
  font-size: 0.86rem;
}
.cart-product-link {
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 900;
  line-height: 1.25;
  text-decoration: underline;
  text-decoration-color: rgba(47, 143, 78, 0.32);
  text-underline-offset: 4px;
}
.cart-product-link:hover { color: var(--green-dark); }
.cart-product-link.missing { text-decoration: none; }
.cart-product-main span, .cart-product-qty span, .cart-product-source span { line-height: 1.3; }
.cart-product-qty strong, .cart-product-source strong, .cart-product-sum strong { color: var(--ink); font-size: 0.98rem; }
.cart-product-badge {
  width: max-content;
  margin-top: 2px;
  background: rgba(238, 248, 240, 0.96);
  color: var(--green-dark);
}
.cart-product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.cart-product-actions .btn {
  width: auto;
  min-height: 34px;
  padding: 7px 10px;
  font-size: 0.8rem;
  line-height: 1.1;
}
.cart-product-sum { justify-items: end; text-align: right; }
.tag { display: inline-flex; min-height: 24px; align-items: center; padding: 3px 7px; border-radius: 6px; background: #eef4f2; color: var(--muted); font-size: 0.78rem; font-weight: 900; }
.tag.warn { background: #fff4cf; color: #775700; }
.tag.bad { background: #ffe5df; color: #a13122; }
.shared-cart-screen .sticky-main-nav { grid-template-columns: auto minmax(0, 1fr); }
.shared-cart-content { padding-top: 24px; }
.shared-cart-state { padding: 28px; }
.shared-cart-state h2 { margin: 0 0 10px; font-size: 2rem; line-height: 1.1; }
.shared-cart-state p:not(.eyebrow) { max-width: 680px; margin: 0; color: var(--muted); line-height: 1.5; }
.shared-cart-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}
.shared-cart-meta.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.shared-cart-meta span {
  min-height: 56px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-weight: 800;
}
.shared-cart-meta strong { display: block; color: var(--ink); overflow-wrap: anywhere; }

.history-list, .profile-list { display: grid; gap: 12px; }
.history-block-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 2px 2px;
}
.history-block-head h3 {
  margin: 2px 0 0;
  color: var(--green-dark);
  font-size: 1.16rem;
  line-height: 1.1;
}
.history-block-head > span {
  color: var(--muted-strong);
  font-size: 0.82rem;
  font-weight: 800;
}
.history-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-color: rgba(91, 125, 82, 0.24);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 251, 246, 0.9)),
    var(--food-doodle-pattern);
  background-size: auto, 360px 360px;
  box-shadow:
    0 16px 38px rgba(24, 33, 29, 0.075),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}
.history-card h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}
.history-card p { margin: 0 0 10px; color: var(--muted-strong); font-size: 0.9rem; font-weight: 720; line-height: 1.42; }
.template-card {
  border-color: rgba(47, 143, 78, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 249, 242, 0.92)),
    var(--food-doodle-pattern);
  background-size: auto, 360px 360px;
}
.template-card.active {
  border-color: rgba(47, 143, 78, 0.48);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(234, 247, 237, 0.96)),
    var(--food-doodle-pattern);
  box-shadow:
    0 0 0 3px rgba(47, 143, 78, 0.08),
    0 16px 38px rgba(24, 33, 29, 0.075),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}
.template-card .panel-actions {
  min-width: 220px;
  gap: 8px;
}
.order-card-actions {
  grid-template-columns: repeat(3, minmax(142px, auto));
  align-content: center;
  align-items: center;
  justify-content: end;
  min-width: min(100%, 590px);
  gap: 8px;
}
.order-card-actions .btn {
  width: auto;
  min-height: 38px;
  padding: 8px 11px;
  font-size: 0.86rem;
  white-space: nowrap;
}
.download-btn {
  gap: 7px;
}
.download-icon {
  width: 15px;
  height: 15px;
  flex: none;
  fill: currentColor;
}
.template-empty {
  border-style: dashed;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(250, 253, 250, 0.84)),
    var(--food-doodle-pattern);
}
.history-card .chip-row {
  gap: 7px;
}
.history-card .chip {
  min-height: 28px;
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.76);
  font-size: 0.82rem;
}
.history-card .panel-actions .btn {
  justify-content: center;
  min-height: 38px;
  padding-right: 12px;
  padding-left: 12px;
  text-align: center;
}
.template-card .panel-actions .btn.primary,
.order-card-actions .btn.primary {
  border-color: rgba(31, 99, 61, 0.42);
  background: linear-gradient(180deg, #5b995c 0%, #41864a 55%, #2f7741 100%);
  box-shadow:
    0 4px 0 #276338,
    0 13px 24px rgba(38, 99, 56, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.template-card .panel-actions .btn.primary:active,
.order-card-actions .btn.primary:active {
  transform: translateY(3px);
  box-shadow:
    0 1px 0 #276338,
    0 8px 16px rgba(38, 99, 56, 0.16);
}
.profile-section {
  padding: 15px;
  border-color: rgba(91, 125, 82, 0.24);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(247, 251, 247, 0.91)),
    var(--food-doodle-pattern);
  background-size: auto, 360px 360px;
  box-shadow:
    0 14px 34px rgba(24, 33, 29, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}
.profile-section h3 {
  margin-bottom: 12px;
  font-size: 1.08rem;
}

.profile-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.profile-section-head h3 {
  margin: 0;
}

.profile-section-head span {
  color: var(--muted-strong);
  font-size: 0.82rem;
  font-weight: 850;
}

.profile-basic-template-list {
  display: grid;
  gap: 8px;
}

.profile-basic-template {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 66px;
  padding: 10px;
  border: 1px solid rgba(91, 125, 82, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.profile-basic-template.active {
  border-color: rgba(47, 143, 78, 0.48);
  background: rgba(238, 248, 240, 0.84);
  box-shadow: 0 0 0 3px rgba(47, 143, 78, 0.07);
}

.profile-basic-template strong,
.profile-basic-template span {
  display: block;
  min-width: 0;
}

.profile-basic-template strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 950;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-basic-template span {
  margin-top: 4px;
  color: var(--muted-strong);
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1.3;
}

.profile-basic-template-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.profile-basic-template-actions .btn {
  min-height: 34px;
  padding-inline: 10px;
}

.account-layout {
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 14px;
}
.account-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 15px;
  border: 1px solid rgba(47, 143, 78, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(238, 248, 240, 0.96), rgba(255, 255, 255, 0.9)),
    var(--food-doodle-pattern);
  background-size: auto, 360px 360px;
  box-shadow:
    0 16px 38px rgba(24, 33, 29, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
}
.account-hero.auth {
  border-color: rgba(91, 125, 82, 0.24);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 247, 0.9)),
    var(--food-doodle-pattern);
}
.account-avatar {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(180deg, #5b995c 0%, #377b46 100%);
  color: #fff;
  box-shadow:
    0 5px 0 #276338,
    0 12px 22px rgba(38, 99, 56, 0.18);
  font-size: 1.1rem;
  font-weight: 900;
}
.account-main {
  min-width: 0;
}
.account-main h3 {
  margin: 0 0 4px;
  overflow-wrap: anywhere;
  font-size: 1.28rem;
  line-height: 1.1;
}
.account-main p:not(.eyebrow) {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.88rem;
  font-weight: 720;
}
.account-actions {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}
.account-actions .btn {
  flex: 1;
  justify-content: center;
  min-height: 42px;
}
.favorite-list,
.activity-list {
  display: grid;
  gap: 9px;
}
.favorite-list article {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(91, 125, 82, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}
.favorite-list img {
  width: 50px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}
.favorite-list strong,
.favorite-list span,
.activity-list strong,
.activity-list span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.favorite-list span,
.activity-list span {
  color: var(--muted);
  font-size: 0.86rem;
}
.activity-list article {
  padding: 9px 10px;
  border: 1px solid rgba(91, 125, 82, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}
.profile-layout .side-panels {
  gap: 12px;
}
.profile-layout .side-panels .panel {
  padding: 15px;
  border-color: rgba(91, 125, 82, 0.24);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 247, 0.9)),
    var(--food-doodle-pattern);
  background-size: auto, 360px 360px;
  box-shadow:
    0 14px 34px rgba(24, 33, 29, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}
.profile-layout .side-panels .panel h3 {
  margin-bottom: 12px;
  color: var(--green-dark);
  font-size: 1.08rem;
}
.profile-layout .side-panels .section-copy {
  color: var(--muted-strong);
  font-weight: 720;
}
.profile-section .form-grid {
  gap: 10px;
}
.profile-section .field {
  gap: 5px;
}
.profile-section .field input,
.profile-section .field select,
.profile-section .field textarea {
  min-height: 46px;
  padding: 9px 12px;
  background-color: rgba(255, 255, 255, 0.86);
}
.profile-section .field textarea {
  min-height: 82px;
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field { display: grid; gap: 6px; }
.field label, .field span { color: var(--muted); font-size: 0.86rem; font-weight: 760; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 11px 13px;
  font-weight: 620;
  box-shadow: 0 1px 0 rgba(24, 33, 29, 0.03);
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}
.field select {
  appearance: none;
  padding-right: 36px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 21px) 21px,
    calc(100% - 13px) 21px;
  background-size: 8px 8px, 8px 8px;
  background-repeat: no-repeat;
}
.field textarea { min-height: 96px; resize: vertical; }

.onboarding-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr); background: #fff; }
.onboarding-visual {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding: 34px;
  background:
    linear-gradient(180deg, rgba(24, 33, 29, 0.08), rgba(24, 33, 29, 0.78)),
    url("https://images.unsplash.com/photo-1547592180-85f173990554?auto=format&fit=crop&w=1400&q=80") center/cover;
  color: #fff;
}
.onboarding-visual h1 { max-width: 620px; margin: 0 0 12px; font-size: 2.8rem; line-height: 1.06; }
.onboarding-visual p { max-width: 560px; color: rgba(255, 255, 255, 0.86); line-height: 1.55; }
.onboarding-flow { display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: 34px; background: var(--bg); }
.onboarding-panel { padding: 26px; }
.progress { height: 8px; overflow: hidden; border-radius: 8px; background: #e8eee9; }
.progress span { display: block; height: 100%; border-radius: 8px; background: var(--green); transition: width 180ms ease; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice { min-height: 54px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font-weight: 900; text-align: left; }
.choice.active { border-color: var(--green); background: var(--soft); color: var(--green-dark); }

.drawer-backdrop { position: fixed; inset: 0; z-index: 80; display: none; background: rgba(24, 33, 29, 0.38); }
.drawer-backdrop.open { display: block; }
.drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 90;
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  background: #fff;
  border-right: 1px solid var(--line);
  transform: translateX(-102%);
  transition: transform 180ms ease;
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.drawer-head h2 { margin: 0; }
.drawer-list { display: grid; gap: 10px; overflow: auto; padding-right: 4px; }
.drawer-card { overflow: hidden; }
.drawer-card img { width: 100%; height: 132px; display: block; object-fit: cover; }
.drawer-card-body { padding: 12px; }
.drawer-card-body p { margin: 6px 0 12px; color: var(--muted); }

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 110;
  max-width: min(380px, calc(100% - 44px));
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
  font-weight: 900;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}
.toast.show { opacity: 1; transform: translateY(0); }

.modal-toast {
  position: absolute;
  left: 18px;
  right: auto;
  bottom: 18px;
  z-index: 16;
  max-width: min(360px, calc(100% - 36px));
  padding: 13px 15px;
  border: 1px solid rgba(47, 143, 78, 0.28);
  border-radius: 8px;
  border-color: rgba(47, 143, 78, 0.28);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow:
    0 18px 34px rgba(24, 33, 29, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.28) inset;
  backdrop-filter: blur(10px);
  font-weight: 900;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.modal-toast.show { opacity: 1; transform: translateY(0); }

.today-recipes-banner {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 104;
  width: min(560px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(47, 143, 78, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  box-shadow: 0 18px 52px rgba(24, 33, 29, 0.16);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.today-recipes-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(47, 143, 78, 0.18);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(248, 255, 248, 0.98), rgba(236, 248, 238, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 12px 24px rgba(47, 143, 78, 0.12);
}

.today-recipes-icon img {
  width: 30px;
  height: 30px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(47, 143, 78, 0.12));
}

.today-recipes-banner-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.today-recipes-banner strong {
  font-size: 1rem;
  line-height: 1.18;
  font-weight: 950;
}

.today-recipes-banner span {
  overflow: hidden;
  color: var(--muted-strong);
  font-size: 0.84rem;
  line-height: 1.28;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.today-recipes-collapse {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(47, 143, 78, 0.28);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 245, 0.94));
  color: var(--green-dark);
  box-shadow: 0 8px 20px rgba(24, 33, 29, 0.12);
  padding: 0;
}

.today-recipes-collapse .collapse-icon {
  width: 15px;
  height: 15px;
  display: block;
}

.today-recipes-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(24, 33, 29, 0.34);
  backdrop-filter: blur(4px);
}

.dish-recipe-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(24, 33, 29, 0.34);
  backdrop-filter: blur(4px);
}

.dish-recipe-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 121;
  width: min(820px, calc(100% - 32px));
  max-height: min(760px, calc(100vh - 44px));
  overflow: auto;
  padding: 22px;
  border: 1px solid rgba(47, 143, 78, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(249, 253, 247, 0.9)),
    var(--food-doodle-pattern);
  background-size: auto, 360px 360px;
  box-shadow: 0 30px 90px rgba(24, 33, 29, 0.28);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(20px);
}

.dish-recipe-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(47, 143, 78, 0.12);
}

.dish-recipe-modal-head span {
  color: var(--green-dark);
  font-size: 0.84rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dish-recipe-modal-head h3 {
  margin: 4px 0 4px;
  color: var(--ink);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  line-height: 1.05;
}

.dish-recipe-modal-head p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.96rem;
}

.dish-recipe-card {
  display: grid;
  gap: 16px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(47, 143, 78, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px rgba(24, 33, 29, 0.06);
}

.dish-recipe-summary {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.dish-recipe-thumb {
  width: 96px;
  height: 80px;
  border-radius: 14px;
  background: var(--soft) center/cover;
  box-shadow:
    inset 0 0 0 1px rgba(217, 226, 220, 0.78),
    0 10px 22px rgba(24, 33, 29, 0.08);
}

.dish-recipe-summary p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.95rem;
  font-weight: 760;
  line-height: 1.5;
}

.dish-recipe-columns {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
}

.dish-recipe-columns b {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 950;
}

.dish-recipe-columns ul,
.dish-recipe-columns ol {
  margin: 0;
  padding-left: 18px;
  color: var(--muted-strong);
  line-height: 1.52;
}

.dish-recipe-columns li + li {
  margin-top: 4px;
}

.today-recipes-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 121;
  width: min(880px, calc(100% - 32px));
  max-height: min(820px, calc(100vh - 44px));
  overflow: auto;
  padding: 22px;
  border: 1px solid rgba(47, 143, 78, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(249, 253, 247, 0.9)),
    var(--food-doodle-pattern);
  background-size: auto, 360px 360px;
  box-shadow: 0 30px 90px rgba(24, 33, 29, 0.28);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(20px);
}

.today-recipes-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(47, 143, 78, 0.12);
}

.today-recipes-modal-head span {
  color: var(--green-dark);
  font-size: 0.84rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.today-recipes-modal-head h3 {
  margin: 4px 0 4px;
  color: var(--ink);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.05;
}

.today-recipes-modal-head p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.98rem;
}

.today-recipes-modal-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(47, 143, 78, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--green-dark);
  box-shadow: 0 10px 22px rgba(24, 33, 29, 0.08);
  font-size: 1.35rem;
  font-weight: 950;
}

.icon-btn:hover {
  border-color: rgba(47, 143, 78, 0.46);
  background: #fff;
}

.copy-icon {
  width: 22px;
  height: 22px;
}

.copy-recipe-image-btn {
  width: 40px;
  height: 40px;
  padding: 0;
}

.today-recipes-list {
  display: grid;
  gap: 12px;
  padding-top: 16px;
}

.today-recipe-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(47, 143, 78, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px rgba(24, 33, 29, 0.06);
}

.today-recipe-card-head {
  display: grid;
  gap: 4px;
}

.today-recipe-card-head span {
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.today-recipe-card-head strong {
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1.16;
  font-weight: 950;
}

.today-recipe-card-head p {
  margin: 0;
  color: var(--muted-strong);
  font-weight: 800;
}

.today-recipe-columns {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
}

.today-recipe-columns b {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 950;
}

.today-recipe-columns ul,
.today-recipe-columns ol {
  margin: 0;
  padding-left: 18px;
  color: var(--muted-strong);
  line-height: 1.48;
}

.today-recipe-columns li + li {
  margin-top: 4px;
}

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 105;
  width: min(760px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px 12px 16px;
  border: 1px solid rgba(47, 143, 78, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  box-shadow: 0 16px 46px rgba(24, 33, 29, 0.14);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.cookie-banner-copy {
  min-width: 0;
}

.cookie-banner-copy strong {
  display: block;
  margin-bottom: 2px;
  color: var(--green-dark);
  font-size: 0.86rem;
  font-weight: 950;
}

.cookie-banner-copy p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.86rem;
  line-height: 1.38;
}

.cookie-banner-copy a {
  color: var(--green-dark);
  font-weight: 900;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.cookie-banner-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.cookie-banner .btn.small {
  min-height: 34px;
  padding: 7px 12px;
  font-size: 0.84rem;
}

.bottom-nav { display: none; }
.empty-slot { display: grid; min-height: 120px; place-items: center; border: 1px dashed var(--line); border-radius: 8px; background: #fff; color: var(--muted); font-weight: 900; }

@media (max-width: 1180px) {
  .product-hero {
    grid-template-columns: 1fr;
  }

  .product-hero-copy {
    min-height: 224px;
    padding: 26px 30px;
  }

  .product-hero h1 {
    font-size: 2.5rem;
  }

  .outcome-preview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .today-grid, .quick-actions, .retailer-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-layout, .cart-layout, .profile-layout, .history-layout, .grid-two { grid-template-columns: 1fr; }
  .plan-below-panels { grid-template-columns: 1fr; }
  .plan-summary-panel .panel-list { grid-template-columns: 1fr; }
  .command-bar { position: static; top: auto; }
  .command-bar .chip-row > * { flex-basis: calc(50% - 6px); }
  .command-bar .cta-row { justify-content: flex-start; }
  .plan-actions-panel .panel-actions { display: flex; }
}

@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .workspace { padding-bottom: 90px; }
  .bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    padding: 8px;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
  }
  .bottom-nav button { min-height: 46px; padding: 6px; text-align: center; font-size: 0.82rem; }
  .hero-dashboard, .onboarding-screen { grid-template-columns: 1fr; }
  .onboarding-visual { min-height: 360px; }
  .landing-strip, .retailer-list, .pricing-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sticky-main-nav { grid-template-columns: 1fr; align-items: flex-start; gap: 10px; }
  .horizontal-nav { justify-content: flex-start; width: 100%; }
  .nav-status:not(.nav-account) { display: none; }
  .nav-account {
    width: 100%;
    justify-content: flex-start;
  }
  .account-popover {
    right: auto;
    left: 0;
    width: min(100%, calc(100vw - 28px));
  }
  .auth-popover-grid {
    grid-template-columns: 1fr;
  }
  .mobile-day-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin: 0 0 10px;
    padding: 4px 2px 8px;
    scroll-snap-type: x mandatory;
  }
  .mobile-day-strip button {
    display: grid;
    min-width: 92px;
    gap: 2px;
    padding: 9px 10px;
    border: 1px solid rgba(203, 216, 207, 0.95);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    color: var(--ink);
    text-align: left;
    scroll-snap-align: start;
  }
  .mobile-day-strip button.active {
    border-color: rgba(47, 143, 78, 0.68);
    background: #eef8f0;
    box-shadow: 0 0 0 3px rgba(47, 143, 78, 0.08);
  }
  .mobile-day-strip strong { font-size: 0.92rem; line-height: 1; }
  .mobile-day-strip span,
  .mobile-day-strip small { color: var(--muted); font-size: 0.72rem; font-weight: 760; line-height: 1.15; }
  .week-grid {
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .day-card {
    display: none;
  }
  .day-card.mobile-selected {
    display: block;
  }
  .compact-day-card {
    padding: 12px;
  }
  .day-card-head {
    gap: 9px;
    margin-bottom: 12px;
  }
  .day-card h3 .day-week { font-size: 1.18rem; }
  .day-card h3 .day-date { font-size: 0.92rem; }
  .day-total { font-size: 0.84rem; }
  .meal-stack { gap: 10px; }
  .meal-summary {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    padding: 10px;
  }
  .meal-thumb {
    width: 44px;
    height: 44px;
  }
  .meal-price-chip { display: none; }
  .meal-dots { width: 30px; height: 30px; }
  .meal-type { font-size: 0.7rem; }
  .meal-title { font-size: 0.98rem; }
  .meal-meta-line { font-size: 0.78rem; }
  .meal-detail-panel {
    padding: 0 10px 10px 62px;
  }
  .base-grid.three,
  .base-grid.four,
  .base-grid.two,
  .nutrition-grid.two { grid-template-columns: 1fr; }
  .cart-products-title { flex-direction: column; }
  .cart-products-total { width: 100%; text-align: left; }
  .shared-cart-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cart-products-header { display: none; }
  .cart-product-row { grid-template-columns: 1fr; gap: 10px; min-height: auto; padding: 12px 14px; }
  .cart-product-actions .btn { flex: 1 1 140px; justify-content: center; }
  .cart-product-sum { justify-items: start; text-align: left; }
}

@media (max-width: 760px) {
  .topbar, .app-header { align-items: flex-start; flex-direction: column; padding: 12px 16px; }
  .topbar-actions, .nav-links { width: 100%; }
  .content { width: min(100% - 28px, 1320px); padding-top: 18px; }
  .one-page-content { width: min(100% - 28px, 1320px); }
  .product-hero {
    margin-top: 12px;
    gap: 10px;
  }
  .product-hero-copy {
    min-height: auto;
    padding: 20px;
  }
  .product-hero h1 {
    font-size: 2rem;
    line-height: 1.08;
  }
  .product-hero-copy p:not(.eyebrow) {
    margin: 10px 0 16px;
    font-size: 0.95rem;
  }
  .hero-route {
    margin: 18px 0 18px;
    padding: 10px;
  }
  .hero-route-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
  .hero-route-track {
    grid-template-columns: 1fr;
  }
  .hero-route-track::before {
    top: 18px;
    bottom: 18px;
    left: 31px;
    width: 4px;
    height: auto;
    background: linear-gradient(180deg, rgba(47, 143, 78, 0.24), rgba(234, 199, 76, 0.72), rgba(47, 143, 78, 0.36));
  }
  .hero-route-track::after {
    top: auto;
    right: auto;
    bottom: 14px;
    left: 26px;
    transform: rotate(135deg);
  }
  .hero-route-subtitle {
    margin-top: 9px;
    font-size: 0.86rem;
  }
  .hero-route-step {
    min-height: 62px;
    padding: 9px 10px;
  }
  .hero-route-number {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }
  .product-hero-cta {
    width: 100%;
  }
  .outcome-preview {
    padding: 14px;
  }
  .outcome-preview-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .outcome-preview-head strong {
    max-width: none;
    text-align: left;
  }
  .outcome-preview-grid {
    grid-template-columns: 1fr;
  }
  .outcome-preview-grid div {
    min-height: 52px;
    padding: 8px 10px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
  .sticky-main-nav { padding: 12px 14px; }
  .topbar .brand-logo,
  .sticky-main-nav .brand-logo {
    width: min(176px, 58vw);
    max-height: 44px;
  }
  .app-footer { padding-bottom: 32px; }
  .app-footer-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px;
  }
  .footer-links {
    justify-content: flex-start;
  }
  .legal-topbar {
    grid-template-columns: 1fr;
  }
  .legal-card {
    padding: 16px;
  }
  .legal-document h2 {
    font-size: 1.15rem;
  }
  .legal-row {
    grid-template-columns: 1fr;
  }
  .section-header { flex-direction: column; }
  .page-section { scroll-margin-top: 134px; padding: 20px 0 34px; }
  .base-rules-panel,
  .nutrition-panel { padding: 14px; }
  .base-rules-panel h2,
  .nutrition-panel h2 { font-size: 1.55rem; }
  .base-field input,
  .base-field select { min-height: 48px; height: 48px; padding: 9px 12px; font-size: 0.96rem; }
  .base-field.with-unit input { padding-right: 76px; }
  .pill-toggle { width: 100%; min-height: 48px; padding: 10px 14px; font-size: 0.94rem; }
  .nutrition-card,
  .nutrition-check { padding: 12px; }
  .landing-hero { min-height: 78vh; padding: 52px 16px 36px; }
  .hero-title, .week-focus h2, .onboarding-visual h1 { font-size: 2.1rem; }
  .landing-strip, .retailer-list, .pricing-list, .metrics, .today-grid, .quick-actions, .retailer-options, .grid-three, .form-grid, .choice-grid { grid-template-columns: 1fr; }
  .retailer-picker { padding: 12px; }
  .retailer-picker-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .retailer-picker-head span { max-width: none; text-align: left; }
  .retailer-option { min-height: auto; padding: 11px; }
  .cart-products-title { padding: 14px; }
  .cart-products-body { max-height: none; }
  .cart-layout .side-panels .panel { padding: 12px; }
  .pricing-band, .retailer-band { width: min(100% - 28px, 1120px); padding: 36px 0; }
  .command-bar { position: static; top: auto; margin: 0 0 16px; padding: 10px 14px; }
  .command-bar,
  .command-bar .chip-row,
  .command-bar .chip-row > * { min-width: 0; }
  .command-bar .chip-row > * { flex-basis: 100%; }
  .segmented, .cta-row, .chip-row { width: 100%; }
  .segmented {
    min-width: 0;
    gap: 3px;
    padding: 4px;
  }
  .segmented button,
  .cta-row .btn {
    min-width: 0;
    flex: 1;
  }
  .segmented button {
    padding-right: 3px;
    padding-left: 3px;
    font-size: 0.78rem;
  }
  .command-bar .segmented {
    display: grid;
    height: auto;
  }
  .command-bar .mode-switch {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .command-bar .segmented:not(.mode-switch) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .command-bar .segmented button {
    min-height: 46px;
  }
  .inline-control { width: 100%; }
  .inline-control select { min-width: 0; }
  .profile-defaults-toggle { width: 100%; min-width: 0; }
  .profile-defaults-copy { min-width: 0; }
  .profile-defaults-copy strong,
  .profile-defaults-copy em {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .plan-header-actions {
    justify-content: flex-start;
  }
  .plan-command-actions-wrap {
    justify-content: flex-start;
  }
  .plan-header-toggle {
    width: 100%;
  }
  .profile-params-tools {
    width: 100%;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .profile-template-picker,
  .profile-save-params-btn {
    width: 100%;
  }
  .profile-template-chip {
    width: 100%;
    max-width: none;
  }
  .profile-template-menu,
  .profile-save-popover {
    right: auto;
    left: 0;
    width: min(100%, calc(100vw - 32px));
  }
  .family-inline-control,
  .diet-inline-control,
  .money-inline-control { min-width: 100%; }
  .plan-summary-panel .plan-summary-actions { display: flex; gap: 8px; }
  .plan-summary-panel {
    padding: 12px;
  }
  .plan-summary-panel .panel-list li {
    min-height: 44px;
    padding: 9px 10px 9px 12px;
  }
  .plan-summary-panel .panel-list span {
    font-size: 0.82rem;
  }
  .plan-summary-panel .panel-list strong {
    font-size: 0.9rem;
  }
  .plan-summary-panel .plan-summary-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .plan-summary-panel .plan-summary-actions .btn { width: 100%; flex: none; padding-right: 10px; padding-left: 10px; }
  .plan-actions-panel .panel-actions { display: grid; grid-template-columns: 1fr; }
  .plan-actions-panel .panel-actions button { width: 100%; }
  .filter-fields { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 1fr; gap: 4px; padding: 9px 0; }
  .shared-cart-meta { grid-template-columns: 1fr; }
  .history-block-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .history-card {
    grid-template-columns: 1fr;
    padding: 12px;
  }
  .template-card .panel-actions,
  .order-card-actions {
    width: 100%;
    min-width: 0;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }
  .order-card-actions .btn,
  .history-card .panel-actions .btn {
    width: 100%;
    white-space: normal;
  }
  .account-layout { grid-template-columns: 1fr; }
  .account-hero {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 12px;
  }
  .account-actions { align-items: stretch; flex-direction: column; }
  .profile-section,
  .profile-layout .side-panels .panel {
    padding: 12px;
  }
  .profile-basic-template {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .profile-basic-template-actions {
    justify-content: stretch;
  }
  .profile-basic-template-actions .btn {
    flex: 1;
    justify-content: center;
  }
  .onboarding-flow, .onboarding-visual { padding: 20px; }
  .today-recipes-banner {
    bottom: 12px;
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    padding: 13px;
  }
  .today-recipes-banner span {
    white-space: normal;
  }
  .today-recipes-banner .btn {
    width: 100%;
  }
  .today-recipes-modal {
    width: calc(100% - 24px);
    max-height: calc(100vh - 24px);
    padding: 14px;
  }
  .dish-recipe-modal {
    width: calc(100% - 24px);
    max-height: calc(100vh - 24px);
    padding: 14px;
  }
  .today-recipes-modal-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .dish-recipe-modal-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .today-recipes-modal-actions {
    position: absolute;
    top: 12px;
    right: 12px;
  }
  .today-recipes-modal-head h3 {
    padding-right: 92px;
  }
  .dish-recipe-modal-head h3 {
    padding-right: 50px;
  }
  .today-recipe-card {
    padding: 12px;
  }
  .dish-recipe-summary,
  .dish-recipe-columns,
  .today-recipe-columns {
    grid-template-columns: 1fr;
  }
  .cookie-banner {
    bottom: 12px;
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
  }
  .cookie-banner-copy p {
    font-size: 0.82rem;
  }
  .cookie-banner-actions {
    width: 100%;
  }
  .cookie-banner-actions .btn {
    flex: 1;
  }
}

