:root{--bg:#f8f9f4;--panel:#fff;--ink:#263829;--muted:#778078;--line:#e8ebe3;--accent:#416d48;--dark:#23462c;--light:#eaf2e6;--orange:#d58757;--shadow:0 16px 45px rgba(25,43,28,.035)}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-size:14px}button,input,select,textarea{font:inherit}button{cursor:pointer}.app-shell{min-height:100vh;display:flex}.sidebar{width:245px;background:#fff;border-right:1px solid var(--line);padding:29px 19px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column;flex-shrink:0}.brand{display:flex;gap:10px;align-items:center;font-family:Georgia,serif;font-weight:700;font-size:23px;line-height:1}.brand em{font-style:normal;color:#a8b98d}.brand small{display:block;font:700 9px Inter,Arial,sans-serif;letter-spacing:2.6px;margin-top:8px;color:#98a294}.brand-icon{border-radius:14px;background:#e9f0e3;color:#527858;font-family:Arial;font-size:26px;width:41px;height:41px;display:grid;place-items:center}.sidebar-section{font-size:10px;font-weight:750;letter-spacing:1.5px;color:#a5ada1;margin:65px 15px 20px}nav{display:grid;gap:5px}.nav-item{border:0;background:transparent;text-align:left;padding:14px;border-radius:12px;color:#6e7a70;font-weight:600;display:flex;align-items:center;gap:13px;width:100%}.nav-item span{font-size:20px;font-weight:normal;width:23px;text-align:center}.nav-item:hover{background:#f5f7f1}.nav-item.active{background:#eaf1e7;color:#355c3d}.sidebar-bottom{margin-top:auto;color:#9aa49a;font-size:12px;padding:8px 14px}.offline-pill{display:flex;align-items:center;gap:8px;font-weight:750;color:#557b57}.status-dot{background:#6f9e75;width:8px;height:8px;border-radius:50%}.main{width:100%;min-width:0}.topbar{height:83px;display:flex;align-items:center;justify-content:space-between;padding:0 48px;border-bottom:1px solid var(--line);background:rgba(255,255,255,.55)}.breadcrumb{font-size:13px;color:#839082;font-weight:600}.top-actions{display:flex;gap:19px;align-items:center}.micro-pill{font-size:11px;background:#ecf3e7;color:#507650;border-radius:20px;padding:8px 13px;font-weight:700}.avatar{border:0;width:34px;height:34px;border-radius:50%;background:#e8ede3;color:#527356;font-size:11px;font-weight:800}.content{max-width:1250px;padding:43px 48px 75px;margin:auto}.eyebrow{text-transform:uppercase;font-size:10px;letter-spacing:2px;font-weight:800;color:#91a08f}.h1{font-size:37px;line-height:1.15;letter-spacing:-1.3px;font-family:Georgia,serif;margin:10px 0 13px}.subtitle{color:#7d887e;font-size:14px;line-height:1.65;margin:0 0 28px}.hero{min-height:228px;border-radius:21px;padding:33px 37px;position:relative;overflow:hidden;background:linear-gradient(110deg,#e1ecd9 0%,#edf4e7 54%,#f2eacf 100%);margin-bottom:25px}.hero h1{font:normal 36px Georgia,serif;letter-spacing:-.8px;line-height:1.18;margin:12px 0 13px;max-width:570px}.hero p{color:#6b7b67;margin:0 0 23px;max-width:520px;line-height:1.65}.hero-art{position:absolute;right:22px;top:-43px;width:280px;height:280px;display:grid;place-items:center;font-size:158px;transform:rotate(-13deg);opacity:.87;filter:drop-shadow(0 25px 20px #84937c30)}.btn{border:1px solid transparent;padding:11px 19px;border-radius:11px;font-weight:750;background:var(--accent);color:white;display:inline-flex;align-items:center;justify-content:center;gap:9px;transition:background .15s}.btn:hover{background:#32593a}.btn.secondary{background:white;color:#446e4b;border-color:#d9e3d6}.btn.secondary:hover{background:#f2f7f0}.btn.ghost{background:#f1f5ee;color:#436a48}.btn.sm{padding:8px 12px;font-size:12px;border-radius:9px}.btn:disabled{opacity:.4;cursor:not-allowed}.grid-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:27px}.stat,.card{background:var(--panel);border:1px solid var(--line);border-radius:17px;box-shadow:var(--shadow)}.stat{padding:21px 22px}.stat-label{font-size:12px;color:var(--muted);margin-bottom:14px}.stat-value{font-family:Georgia,serif;font-size:28px;letter-spacing:-.8px}.stat-foot{font-size:11px;color:#98a398;margin-top:8px}.section-row{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:27px 0 17px}.section-title{font:normal 23px Georgia,serif;margin:0}.section-action{background:none;border:none;color:var(--accent);font-weight:750}.daystrip{display:grid;grid-template-columns:repeat(7,1fr);gap:9px;margin-bottom:16px}.daytab{border:1px solid #e3e8df;border-radius:13px;background:white;padding:15px 5px;color:#7b887c}.daytab b{display:block;color:#344b38;font-size:13px;margin-top:7px}.daytab.active{background:#426d49;border-color:#426d49;color:#d7e4d5}.daytab.active b{color:white}.meal-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.meal-card{padding:0;overflow:hidden}.food-art{height:150px;display:grid;place-items:center;font-size:66px;background:linear-gradient(145deg,#f1eee3,#ebf3e8)}.food-art.pink{background:linear-gradient(145deg,#f6eddf,#f4ede9)}.food-art.green{background:linear-gradient(145deg,#edf3e3,#e4ece5)}.food-art.yellow{background:linear-gradient(145deg,#f7efdc,#eaf1dc)}.meal-body{padding:19px}.meal-kicker{font-size:10px;color:#849481;font-weight:800;text-transform:uppercase;letter-spacing:1.5px}.meal-title{font-size:15px;line-height:1.45;font-weight:780;margin:9px 0 15px;min-height:42px}.meal-meta{display:flex;justify-content:space-between;color:#7d8b7e;font-size:12px}.meal-actions{display:flex;gap:8px;margin-top:18px}.meal-actions .btn{flex:1}.badge{background:#eaf3e7;color:#4c7b53;border-radius:99px;padding:6px 10px;font-size:11px;font-weight:800}.panel-grid{display:grid;grid-template-columns:1.25fr 1fr;gap:20px}.panel-pad{padding:24px}.info-line{display:flex;justify-content:space-between;align-items:center;padding:14px 0;border-bottom:1px solid var(--line);gap:18px}.info-line:last-child{border-bottom:0}.muted{color:var(--muted)}.tiny{font-size:12px}.notice{border:1px solid #e6e7d4;background:#faf9ed;color:#7c7656;border-radius:13px;padding:14px 17px;font-size:12px;line-height:1.65;margin-top:17px}.notice strong{color:#615a3c}.formgrid{display:grid;grid-template-columns:repeat(2,1fr);gap:19px}.field{display:flex;flex-direction:column;gap:8px}.field.wide{grid-column:1/-1}.field label{font-size:12px;font-weight:800;color:#5b695d}.field input,.field select,.field textarea,.search{border:1px solid #dfe6db;background:#fff;border-radius:10px;padding:12px;color:#243a2a;outline:0;width:100%}.field input:focus,.field select:focus,.search:focus{border-color:#6c966f;box-shadow:0 0 0 3px #e8f1e5}.field textarea{resize:vertical;min-height:73px}.field small{color:#93a093}.checkline{display:flex;flex-wrap:wrap;gap:8px}.checkchip{padding:9px 12px;border:1px solid #dce4d9;border-radius:10px;display:flex;gap:6px;align-items:center;font-size:12px;cursor:pointer}.checkchip:has(input:checked){background:#eaf2e6;border-color:#93b094;color:#335a3b}.checkchip input{width:auto;accent-color:#537c55}.toolbar{display:flex;gap:11px;align-items:center;margin-bottom:20px;flex-wrap:wrap}.toolbar select,.toolbar input{width:auto;min-width:140px}.recipe-list{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.recipe-item{padding:19px;cursor:pointer;transition:transform .15s}.recipe-item:hover{transform:translateY(-2px)}.recipe-item h3{font-size:14px;line-height:1.5;margin:10px 0}.recipe-mini{display:flex;justify-content:space-between;font-size:12px;color:#879388;gap:8px}.groceries-cols{display:grid;grid-template-columns:1.1fr 1fr;gap:20px}.grocery-row{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #eef0eb;padding:13px 0;gap:10px}.grocery-row label{display:flex;align-items:center;gap:10px;cursor:pointer}.grocery-row input{accent-color:#527c58;width:17px;height:17px}.grocery-row.checked .grocery-name{text-decoration:line-through;color:#a6afa7}.grocery-group{margin-bottom:23px}.grocery-group h3{font-size:13px;text-transform:uppercase;letter-spacing:1.5px;color:#6e806d}.empty{text-align:center;padding:45px 15px;color:#89988a}.empty h3{color:#415946}.modal-backdrop{position:fixed;inset:0;background:#14271dbd;display:flex;align-items:center;justify-content:center;z-index:50;padding:20px}.modal-backdrop.hidden,.toast.hidden{display:none}.modal-card{background:#fff;width:min(680px,100%);max-height:88vh;overflow-y:auto;border-radius:23px;padding:31px;position:relative}.modal-close{position:absolute;right:21px;top:14px;border:0;background:none;font-size:28px;color:#728074}.modal-card h2{font:normal 29px Georgia,serif;line-height:1.25;margin:15px 0}.modal-card h3{font-size:14px;margin:25px 0 10px}.modal-card li{margin:10px 0;line-height:1.6}.modal-card .modal-ingredients{columns:2;list-style:none;padding:0}.modal-card .modal-ingredients li{break-inside:avoid;font-size:13px}.toast{position:fixed;bottom:28px;right:25px;background:#2d5635;color:#fff;padding:13px 20px;border-radius:12px;box-shadow:0 10px 30px #0002;z-index:100;max-width:340px}.footnote{color:#9aa69a;font-size:11px;line-height:1.8;margin-top:26px}.chartbar{height:9px;border-radius:9px;background:#edf0e9;overflow:hidden;margin:10px 0}.chartbar>span{display:block;height:100%;background:#79a77c;border-radius:9px;max-width:100%}.nav-mobile{display:none}@media(max-width:1050px){.sidebar{width:210px}.content{padding:32px 25px}.topbar{padding:0 25px}.meal-grid,.recipe-list{grid-template-columns:repeat(2,1fr)}.hero-art{opacity:.22}.grid-stats{grid-template-columns:repeat(2,1fr)}}@media(max-width:730px){.app-shell{display:block}.sidebar{position:fixed;top:auto;bottom:0;width:100%;height:65px;z-index:20;display:block;padding:6px 7px;border-right:0;border-top:1px solid var(--line)}.brand,.sidebar-section,.sidebar-bottom{display:none}nav{display:flex;justify-content:space-around;gap:0}.nav-item{width:20%;padding:6px 0;font-size:9px;display:flex;flex-direction:column;gap:3px;justify-content:center;text-align:center;border-radius:9px}.nav-item span{font-size:19px}.main{padding-bottom:70px}.topbar{height:62px;padding:0 18px}.content{padding:24px 16px 55px}.micro-pill{display:none}.h1{font-size:31px}.hero{padding:27px 23px;min-height:205px}.hero h1{font-size:27px}.hero-art{right:-40px;font-size:130px}.grid-stats{gap:9px}.stat{padding:15px}.stat-value{font-size:24px}.meal-grid,.recipe-list,.panel-grid,.groceries-cols{grid-template-columns:1fr}.daystrip{gap:4px}.daytab{padding:12px 1px;font-size:11px}.daytab b{font-size:11px}.formgrid{gap:13px}.meal-card .food-art{height:120px}.modal-card{padding:22px}.modal-card .modal-ingredients{columns:1}}

/* V3: lightweight recipe illustrations used as small thumbnails only */
.food-art{height:124px;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#f1f3eb}
.food-art img{height:124px;width:124px;object-fit:cover;border-radius:15px}
.recipe-thumb{width:76px;height:76px;border-radius:13px;overflow:hidden;background:#eef1e9;float:left;margin-right:13px;margin-bottom:8px}
.recipe-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.recipe-item{min-height:158px}
@media(max-width:730px){.meal-card .food-art{height:112px}.food-art img{width:112px;height:112px}}

.no-photo{width:100%;height:100%;min-height:68px;background:#f0f2ea;border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#607763;gap:3px}.no-photo span{font-size:25px}.no-photo small{font-size:9px;font-weight:600}.recipe-thumb .no-photo{min-height:72px}.food-art .no-photo{min-height:124px}

/* Version 7 editable offline grocery prices */
.price-edit{display:flex;align-items:center;gap:5px;flex-shrink:0}.price-edit input{border:1px solid #d9e3d6;border-radius:8px;padding:8px 7px;width:92px;text-align:right;font-size:13px;color:#24442d;background:#fff}.price-edit input:focus{outline:2px solid #96b69b}.price-reset{background:#eef4ed;color:#456a4b;border:0;border-radius:8px;padding:7px 10px}.price-reset:disabled{opacity:.28;cursor:default}@media(max-width:520px){.grocery-row{align-items:flex-start}.grocery-row label{flex:1;min-width:0}.price-edit input{width:74px}.grocery-name{line-height:1.6}}

/* V8: dashboard is a brief daily snapshot; seven-day editing stays in the planner. */
.dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr));}
.stat-unit{font:normal 14px Arial,sans-serif;color:#7b8a7a;letter-spacing:0}
.today-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#647866;margin:0 0 14px;font-size:13px}
.today-summary b{color:#2d5635}
.today-meals{display:flex;flex-direction:column;gap:12px}
.today-meal{width:100%;display:flex;align-items:center;gap:16px;padding:12px;text-align:left;cursor:pointer;font-family:inherit;color:inherit}
.today-meal:hover{background:#f9fbf7}
.today-photo{flex:0 0 84px;height:84px;border-radius:12px;overflow:hidden;background:#f0f3eb;display:grid;place-items:center}
.today-photo img{width:100%;height:100%;object-fit:cover}
.today-photo .no-photo{font-size:22px}
.today-photo .no-photo small{display:block;font-size:8px}
.today-detail{flex:1;min-width:0}
.today-title{font-size:15px;font-weight:780;line-height:1.4;margin:5px 0}
.today-meta{font-size:12px;color:#778879}
.today-chevron{font-size:26px;color:#78927b;padding-right:9px}
.dashboard-shortcuts{margin-top:17px;display:flex;flex-wrap:wrap;gap:10px}
.planner-day-overview{display:flex;flex-wrap:wrap;gap:25px;align-items:center;justify-content:space-between;background:#f1f6ed;padding:15px 19px;border:1px solid #dce7d8;border-radius:13px;margin:8px 0 20px}
.planner-day-overview>div{display:flex;flex-direction:column;gap:6px}
.planner-day-overview strong{font-size:19px;color:#345b3e}
@media(max-width:730px){.dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.today-photo{flex-basis:68px;height:68px}.today-meal{gap:10px}.today-title{font-size:13px}.today-meta{font-size:11px}.planner-day-overview strong{font-size:17px}}
