:root{font-family:Inter,"Segoe UI",system-ui,sans-serif;color:#263c2f;background:#f6f7f1;line-height:1.5;--green:#245b3d;--ink:#263c2f;--muted:#53675a;--line:#dce4d9;--sage:#eaf1e5;--peach:#f9eae0}
*{box-sizing:border-box}body{margin:0}html{scroll-behavior:smooth}button,input,select{font:inherit;color:inherit}button,select{cursor:pointer}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #be664b;outline-offset:2px}button:disabled{opacity:.55;cursor:wait}[hidden]{display:none!important}
.wrap{width:min(1180px,calc(100% - 68px));margin:auto}header{background:#fff;border-bottom:1px solid var(--line)}.top{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;min-height:75px;gap:16px}.brand{justify-self:start;text-decoration:none;display:flex;align-items:center;gap:8px;font:700 34px/1 Georgia,serif;letter-spacing:-.05em}.brand b{display:grid;place-items:center;background:var(--green);color:white;width:38px;height:38px;border-radius:11px;font-size:22px}.brand span{color:#b9573c;margin-left:-8px}.top nav{display:flex;gap:7px}.top nav a{padding:8px 14px;text-decoration:none;border-radius:9px;font-weight:650;font-size:.93rem;white-space:nowrap}.top nav a:hover,.top nav a:first-child{background:var(--sage)}.top button{justify-self:end;white-space:nowrap}
button,.button,.file-button{border:1px solid transparent;border-radius:10px;padding:9px 13px;min-height:42px;font-weight:720;font-size:.91rem;display:inline-flex;align-items:center;justify-content:center;gap:6px;text-decoration:none;background:white}.primary{background:var(--green);color:white}.primary:hover{background:#19482f}.outline{border-color:var(--line)}.soft{background:var(--sage);color:#2b5840}.peach{background:var(--peach);color:#854b36}.outline:hover,.soft:hover,.peach:hover,.file-button:hover{filter:brightness(.95)}
.hero{display:grid;grid-template-columns:49% 51%;overflow:hidden;border-radius:24px;margin-top:30px;background:#e8efdf;min-height:353px}.hero-copy{align-self:center;padding:34px 22px 39px 40px}.hero h1{font:500 clamp(2.7rem,4.8vw,4.15rem)/1.015 Georgia,serif;letter-spacing:-.055em;margin:0 0 16px;color:#223f30}.hero em{color:#476f50}.hero p{margin:0 0 23px;max-width:370px;color:#405a48}.hero img{display:block;width:100%;height:100%;max-height:420px;min-height:353px;object-fit:cover;background:#cedbc8}
.workspace{display:grid;grid-template-columns:minmax(300px,.86fr) minmax(0,1.44fr);gap:29px;margin:33px 0 46px;align-items:start}.workspace section{scroll-margin-top:14px}.section-heading{display:flex;align-items:center;gap:12px;min-height:52px;margin-bottom:14px}.section-icon{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:12px;background:var(--sage);color:var(--green);font-size:1.35rem}.section-icon.peach{background:var(--peach);color:#854b36}h2{font:650 1.82rem/1.09 Georgia,serif;letter-spacing:-.035em;margin:0}.section-heading p{margin:4px 0 0;color:var(--muted);font-size:.88rem}.push{margin-left:auto}.panel{border:1px solid var(--line);border-radius:17px;background:white;padding:15px}.scan-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}.plain{background:none;width:100%;margin:3px 0 7px}.plain:hover{background:#f6f8f3}#demo-note{display:flex;align-items:center;justify-content:space-between;gap:6px;background:#f5f7f2;padding:4px 8px;border-radius:8px;color:var(--muted);font-size:.83rem;margin-bottom:11px}#demo-note button{min-height:34px;border:0;background:none;padding:2px;font:inherit;text-decoration:underline;color:var(--green)}#tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);padding-bottom:8px}#tabs button{font-size:.85rem;min-height:36px;padding:4px 9px}#tabs button[aria-pressed="true"],#tabs button:hover{background:var(--sage);color:var(--green)}#items{padding:0;margin:0;list-style:none}.item{display:flex;align-items:center;gap:8px;min-height:58px;padding:8px 0;border-bottom:1px solid #edf0e9}.item:last-child{border:0;padding-bottom:0}.item-icon{display:grid;place-items:center;background:#f0f4ec;border-radius:8px;width:35px;height:35px;flex:none}.item-info{flex:1;min-width:0;overflow-wrap:anywhere}.item-info strong{display:block;font-size:.92rem}.item-info small{color:var(--muted);font-size:.82rem}.mini{min-height:34px;min-width:34px;padding:3px 7px;flex:none}.mini:hover{background:var(--sage)}
.filters{margin:0 0 10px;display:flex;flex-wrap:wrap;gap:7px}.filters select{max-width:100%;background:white;border:1px solid var(--line);border-radius:9px;padding:6px 8px;font-size:.89rem}.card{display:grid;grid-template-columns:auto 1fr auto;gap:13px;align-items:center;text-align:left;width:100%;background:white;border:1px solid var(--line);border-radius:15px;margin-bottom:10px;padding:12px;min-height:96px}.card:hover{border-color:#87a48d;background:#fbfcf9}.card-icon{display:grid;place-items:center;background:var(--sage);border-radius:12px;width:62px;height:62px;font-size:1.84rem}.card:nth-child(3n+2) .card-icon{background:var(--peach)}.card:nth-child(3n+3) .card-icon{background:#f3efd9}.card strong{display:block;font:700 1.17rem/1.25 Georgia,serif}.meta{display:block;font-size:.83rem;color:var(--muted);font-weight:500;margin-top:5px}.kcal{background:var(--sage);color:var(--green);padding:5px 8px;border-radius:8px;white-space:nowrap;font-size:.82rem}.empty{color:var(--muted);padding:13px 3px;margin:0}.empty button{margin-top:9px}.empty-card{background:white;border:1px solid var(--line);border-radius:15px;padding:15px}footer{border-top:1px solid var(--line);padding:16px 0 28px;display:flex;align-items:center;gap:15px;color:var(--muted);font-size:.86rem}footer p{margin:0}footer strong{font:700 1.4rem Georgia,serif;color:var(--green)}
dialog{width:min(540px,calc(100% - 28px));max-height:calc(100% - 28px);border:1px solid var(--line);border-radius:19px;padding:21px;background:#fff;color:var(--ink);box-shadow:0 12px 65px #18281d40}dialog::backdrop{background:#18281d82}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}.dialog-head button{font-size:1.3rem}form{display:grid;gap:12px}form label{display:grid;gap:4px;font-size:.92rem;font-weight:700}form input:not([type=checkbox]),form select{width:100%;min-height:42px;border:1px solid #c6d4c6;border-radius:8px;background:white;padding:8px;font-size:1rem}.fields{display:grid;grid-template-columns:1fr 1fr;gap:9px}.hint,.status{color:var(--muted);font-size:.9rem;margin:0 0 10px}.status:empty{display:none}.pic,video{width:100%;max-height:235px;object-fit:contain;background:var(--sage);border-radius:10px;margin-bottom:10px}.dialog-actions{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}.file-button{position:relative;cursor:pointer;background:var(--sage);color:var(--green)}.file-button input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.file-button:focus-within{outline:3px solid #be664b}.product{color:var(--ink);background:var(--sage);padding:9px;border-radius:8px;font-size:.93rem;margin:0 0 10px}.choices{display:grid;gap:6px}.choices .pick{display:flex;align-items:center}.detail h3{font-size:1rem;margin:14px 0 4px}.detail ul,.detail ol{margin:0 0 10px;padding-left:21px}.detail li{margin-bottom:4px}#toast{position:fixed;bottom:20px;right:20px;background:#204b34;color:#fff;padding:9px 14px;border-radius:10px;max-width:calc(100% - 40px);z-index:2}#toast button{margin-left:8px;min-height:30px;padding:3px 7px;color:var(--green)}
@media(max-width:900px){.wrap{width:calc(100% - 36px)}.hero-copy{padding-left:26px}.workspace{gap:17px}.card-icon{width:49px;height:50px;font-size:1.5rem}.card{gap:8px}}
@media(max-width:680px){.top{grid-template-columns:1fr auto;gap:5px;padding:10px 0;min-height:auto}.brand{font-size:30px}.brand b{width:33px;height:33px}.top button{grid-column:2;grid-row:1}.top nav{grid-column:1/-1;justify-content:center}.hero{grid-template-columns:1fr;margin-top:16px;min-height:0;border-radius:18px}.hero-copy{padding:22px}.hero h1{font-size:clamp(2.55rem,9vw,3.4rem)}.hero img{height:190px;min-height:0}.workspace{grid-template-columns:1fr;margin-top:25px;gap:22px}.section-heading{margin-bottom:10px}}
@media(max-width:360px){.wrap{width:calc(100% - 20px)}.hero-copy{padding:17px}.section-heading{gap:6px}.card{grid-template-columns:auto 1fr}.kcal{grid-column:2;justify-self:start}.push{padding-inline:7px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

.product-dialog{padding:0;width:min(600px,calc(100% - 26px));background:#f4f7f2}
.product-dialog .dialog-head{position:sticky;top:0;z-index:2;margin:0;background:#245b3d;color:white;padding:13px 18px}
.product-dialog .dialog-head h2{font:750 1.03rem/1.4 system-ui,sans-serif;letter-spacing:0}
.product-dialog .dialog-head button{color:#fff;background:#ffffff24}
.product-dialog #dialog-body{padding:14px}
.scan-sheet{display:grid;gap:10px}
.scan-product,.nutrition-panel,.scan-shops,.comparison{background:#fff;border:1px solid #dce7db;border-radius:15px}
.scan-product{display:flex;gap:15px;padding:14px;align-items:center}
.packshot{position:relative;display:grid;place-items:center;width:104px;height:106px;flex:none;border-radius:11px;background:#f2f5ed;overflow:hidden;color:#486850}
.packshot img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;padding:6px;background:#f9faf7}
.pack-fallback{font-size:1.7rem}
.scan-identity{min-width:0}
.scan-identity h3{margin:0;font:700 clamp(1.15rem,4vw,1.55rem)/1.12 Georgia,serif;overflow-wrap:anywhere}
.scan-identity p{margin:4px 0 0;color:var(--muted);font-size:.88rem}
.scan-rating{display:flex;align-items:center;gap:8px;margin-top:8px;font-size:.91rem;font-weight:700}
.scan-grade{display:inline-grid;place-items:center;width:30px;height:33px;border-radius:8px;background:#eaf2e5;font-size:1rem;font-weight:850;flex:none}
.scan-rating .scan-grade{width:38px;height:40px;font-size:1.3rem}
.scan-grade[data-grade="a"]{background:#236143;color:white}
.scan-grade[data-grade="b"]{background:#a8d16e;color:#263d1d}
.scan-grade[data-grade="c"]{background:#f1d667;color:#493a12}
.scan-grade[data-grade="d"]{background:#f3ae7b;color:#4b2a19}
.scan-grade[data-grade="e"]{background:#aa433b;color:white}
.scan-section-head{display:flex;align-items:baseline;justify-content:space-between;gap:5px 12px;flex-wrap:wrap}
.scan-section-head h3{font-size:1rem;line-height:1.3;margin:0}
.scan-section-head small,.scan-section-head a{font-size:.81rem;color:#4e6556}
.nutrition-panel,.scan-shops,.comparison{padding:10px 12px}
.nutrition-panel dl{margin:6px 0 0;display:grid;grid-template-columns:1fr 1fr;column-gap:14px}
.nutrition-panel dl div{display:flex;justify-content:space-between;align-items:baseline;gap:4px;border-top:1px solid #edf0eb;padding:5px 0;font-size:.86rem}
.nutrition-panel dt span{display:inline-block;margin-right:6px;color:var(--green)}
.nutrition-panel dd{margin:0;font-weight:750;white-space:nowrap}
.store-list{display:flex;flex-wrap:wrap;gap:5px;margin:7px 0 0;padding:0;list-style:none}
.store-list li{background:#eaf2e6;color:#28543a;border-radius:7px;padding:3px 8px;font-size:.82rem;font-weight:700;overflow-wrap:anywhere}
.comparison .status,.store-empty{color:var(--muted);font-size:.84rem;margin:4px 0 0}
.comparison-items{margin:6px 0 0;padding:0;list-style:none}
.alternative-card{padding:5px 0;border-top:1px solid #edf0eb}
.alternative-open{display:grid;width:100%;grid-template-columns:auto minmax(0,1fr) auto;gap:8px;align-items:center;text-align:left;padding:4px;background:#fff}
.alternative-open:hover{background:#eef5eb;border-color:#d4e4d2}
.comparison-items[aria-busy="true"] .alternative-open{cursor:progress}
.scan-back button{min-height:34px;padding:4px 9px}
.alternative-card .packshot{width:47px;height:49px;border-radius:7px}
.alternative-card .packshot img{padding:2px}
.alternative-copy strong{display:block;font-size:.89rem;font-weight:750;line-height:1.25;overflow-wrap:anywhere;}
.alternative-copy small{display:block;color:var(--muted);font-size:.8rem}
.alt-stores{display:block;color:#245b3d;font-weight:700;font-size:.82rem;margin:2px 0 0}
.scan-source{color:var(--muted);font-size:.8rem;margin:0 3px}
.scan-divider{display:flex;flex-wrap:wrap;gap:7px;margin-top:11px}
.scan-divider button:first-child{background:var(--green);color:white;flex:1}
.product-dialog #food-form{margin-top:12px;padding:12px;border:1px solid var(--line);border-radius:12px;background:#fff}
@media(max-width:380px){.product-dialog #dialog-body{padding:9px}.scan-product{gap:9px;padding:9px}.scan-product .packshot{width:78px;height:85px}.nutrition-panel dl{grid-template-columns:1fr}}
.camera-view{position:relative;overflow:hidden;border-radius:12px;margin-bottom:10px}
.camera-view:has(video[hidden]){display:none}
.camera-view video{display:block;margin:0;max-height:310px;background:#263b2e}
.camera-guide{position:absolute;top:25%;right:13%;bottom:25%;left:13%;border:2px solid #f2ffe8;border-radius:12px;box-shadow:0 0 0 120vmax #1324196b;pointer-events:none}
.camera-guide::after{content:"";position:absolute;top:50%;left:5%;right:5%;height:2px;background:#a9df91}
.product-details{border:1px solid #dce7db;border-radius:15px;background:#fff}
.product-details summary{display:flex;justify-content:space-between;gap:8px;align-items:center;min-height:45px;padding:9px 12px;font-weight:750;cursor:pointer;list-style:none}
.product-details summary::-webkit-details-marker{display:none}
.product-details summary::after{content:"";width:8px;height:8px;margin-right:3px;flex:none;border-right:2px solid var(--green);border-bottom:2px solid var(--green);transform:rotate(45deg)}
.product-details[open] summary::after{transform:rotate(225deg)}
.product-details summary:focus-visible{outline:2px solid var(--green);outline-offset:2px;border-radius:12px}
.details-body{border-top:1px solid #edf0eb;padding:10px 12px;font-size:.91rem}
.details-body h4{font-size:.89rem;margin:10px 0 3px}
.details-body h4:first-child{margin-top:0}
.details-note,.ingredient-text{margin:3px 0 7px;overflow-wrap:anywhere}
.details-note{color:var(--muted);font-size:.83rem}
.catalogue-tags{display:flex;flex-wrap:wrap;gap:5px;padding:0;margin:4px 0 8px;list-style:none}
.catalogue-tags li{padding:2px 7px;border-radius:6px;background:#eaf2e5;color:#28543a;font-size:.83rem;font-weight:650}
.allergen-tags li{background:#faede3;color:#77492e}
.score-points ul{padding:0;margin:4px 0 8px;list-style:none}
.score-points li{display:flex;justify-content:space-between;gap:8px;padding:4px 0;border-bottom:1px solid #edf0eb}
.score-points strong{white-space:nowrap}
.points-limit strong{color:#8b4434}
.points-bonus strong{color:#245b3d}
#recipes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
#recipes .empty-card{grid-column:1/-1;padding:15px}
#recipes .empty-card p{margin:0}
.recipe-tile{min-width:0;overflow:hidden;background:#fff;border:1px solid var(--line);border-radius:15px;display:flex;flex-direction:column;box-shadow:0 3px 10px #304c2a07}
.recipe-tile:hover{border-color:#87a48d}
.recipe-open{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:0;width:100%;padding:0;border:0;border-radius:0;text-align:left;background:white;flex:1}
.recipe-open:focus-visible{outline-offset:-3px}
.recipe-visual{display:block;position:relative;background:#e8efe3}
.recipe-photo,.recipe-detail-photo{display:block;width:100%;height:auto;aspect-ratio:680/450;object-fit:cover}
.recipe-time{position:absolute;bottom:8px;right:8px;padding:3px 7px;border-radius:7px;background:white;color:var(--ink);font-size:.81rem;box-shadow:0 1px 6px #0002}
.recipe-copy{display:flex;flex-direction:column;gap:4px;padding:10px 11px 8px}
.recipe-kind{color:#4d6b56;font-size:.81rem;font-weight:700}
.recipe-copy strong{font:700 1.16rem/1.15 Georgia,serif}
.recipe-copy strong::first-letter{text-transform:uppercase}
.recipe-nutrition{display:flex;flex-wrap:wrap;gap:3px 8px;color:var(--muted);font-size:.8rem;margin-top:3px}
.recipe-nutrition span:first-child{font-weight:800;color:var(--green)}
.recipe-actions{display:flex;align-items:center;justify-content:space-between;gap:5px;border-top:1px solid #eef1eb;padding:6px 8px 7px 11px}
.recipe-actions>span{font-size:.78rem;color:var(--muted);font-weight:650}
.recipe-actions button{min-height:34px;padding:4px 7px;font-size:.82rem;white-space:nowrap}
.recipe-detail-photo{max-height:240px;border-radius:11px;background:#e8efe3}
.detail-meta{font-size:.88rem;color:var(--muted);margin:10px 0}
.ingredients-list{list-style:none;padding-left:0!important}
.ingredients-list li{display:flex;justify-content:space-between;gap:8px;border-bottom:1px solid #e8eee5;padding:4px 0}
.ingredients-list strong{white-space:nowrap}
.recipe-shortfall{background:#f8f1e6;border-radius:7px;padding:6px 8px}
.planned-name{margin:0;font-weight:750}
.week-section{margin:0 0 41px;scroll-margin-top:14px}
.week-controls{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin-bottom:12px}
.week-controls strong{padding:0 3px}
.week-controls button{min-height:36px}
.week-controls button:disabled{cursor:default}
.week-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px}
.week-day,.shopping-panel{background:white;border:1px solid var(--line);border-radius:13px}
.week-day{padding:8px;min-width:0}
.week-day.is-today{border-color:#81a589;background:#f7faf4}
.week-day h3{margin:0 0 7px;font-size:.94rem;text-transform:capitalize}
.meal-slot{display:grid;gap:3px;margin:4px 0 7px}
.slot-label{color:var(--muted);font-size:.8rem}
.meal-slot button{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;width:100%;min-height:40px;text-align:left;padding:5px 6px;gap:2px;line-height:1.28;font-size:.83rem}
.meal-empty{border:1px dashed #c9d8cb;color:#375e43}
.meal-empty:hover{background:#edf4e9}
.meal-filled{background:#eaf2e6;color:#255438}
.meal-filled:hover{background:#dcebd6}
.meal-filled small{color:var(--muted);font-size:.78rem}
.shopping-panel{padding:13px 15px;margin-top:14px}
.shopping-panel h3{margin:0;font:700 1.28rem/1.2 Georgia,serif}
.shopping-note{margin:4px 0 8px;font-size:.86rem;color:var(--muted)}
#shopping-list{list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:20px;padding:0;margin:0}
#shopping-list label{display:grid;grid-template-columns:auto 1fr auto;gap:8px;align-items:center;padding:6px 0;border-top:1px solid #ecf0e7;cursor:pointer;font-size:.91rem}
#shopping-list input{width:17px;height:17px;accent-color:var(--green)}
#shopping-list strong{white-space:nowrap}
#shopping-list input:checked + span{text-decoration:line-through;color:var(--muted)}
.shopping-empty{grid-column:1/-1;color:var(--muted);padding:4px 0}
.photo-credits{margin-left:auto;font-size:.81rem}
.photo-credits summary{cursor:pointer}
.photo-credits ul{margin:5px 0;padding-left:18px}
footer{flex-wrap:wrap}
@media(max-width:950px){.week-days{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:550px){.week-days{grid-template-columns:repeat(2,minmax(0,1fr))}#shopping-list{grid-template-columns:1fr}.recipe-copy strong{font-size:1rem}.top nav{gap:2px}.top nav a{padding-inline:10px}}
@media(max-width:385px){.recipe-actions{align-items:flex-start;flex-direction:column}.recipe-actions button{width:100%}}
.recipe-portion-row{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px}
.people-control{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:11px;padding:3px}
.people-control button{min-width:37px;min-height:36px;padding:3px 6px;background:var(--sage);color:var(--green);font-size:1.12rem}
.people-control button:disabled,#prep-carousel button:disabled{cursor:default}
.people-control output{min-width:88px;text-align:center;font-size:.9rem;font-weight:750}
#prep-carousel{margin-top:14px}
#prep-carousel figure{margin:0;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#f5f8f2}
#prep-photo{display:block;width:100%;height:auto;aspect-ratio:680/430;max-height:235px;object-fit:cover;background:#e8efe3;touch-action:pan-y}
#prep-carousel figcaption{padding:9px 11px}
.prep-progress{font-weight:750;font-size:.82rem;color:var(--green)}
#prep-caption{margin:4px 0 0;font-size:.93rem}
.prep-controls{display:flex;justify-content:space-between;gap:8px;margin-top:8px}
.prep-controls button{min-height:38px}
.photo-detail-note{margin-top:7px}

/* App shell and daily nutrition dashboard */
:root{
  color-scheme:dark;
  color:#fff8f4;
  background:#171219;
  --ink:#fff8f4;
  --muted:#c6b6c1;
  --green:#ff7168;
  --line:#493444;
  --sage:#39263a;
  --peach:#4a2b2e;
  --surface:#251b27;
  --raised:#332337;
  --faint:#1b141d;
  --energy:#ffc857;
  --lavender:#b9a7ff;
}
body{background:radial-gradient(ellipse at 76% 0%,#3a2238 0%,#171219 56%) fixed}
.app-header{position:sticky;top:0;z-index:4;background:#182e46;border-bottom:1px solid var(--line);backdrop-filter:blur(12px)}
.app-header .top{display:flex;justify-content:space-between;min-height:70px}
.brand b{color:#2a171d;background:#f6efe3;font:800 1rem/1 Inter,sans-serif}
.brand span{color:#ffc857}
.app-nav{display:flex;align-items:center}
.top .app-nav a{display:flex;align-items:center;gap:8px;color:#cdbec7;background:transparent;padding:9px 13px;font-size:.9rem}
.top .app-nav a span{font-size:1.13rem;line-height:1}
.top .app-nav a:hover,.top .app-nav a[aria-current=page]{background:#3b293d;color:#ffaaa4}
.app-view{padding:32px 0 10px;min-height:calc(100vh - 160px)}
.app-view h1{font:700 clamp(2.1rem,4.8vw,3.6rem)/1.02 Georgia,serif;letter-spacing:-.055em;margin:0}
.page-heading{display:flex;align-items:end;justify-content:space-between;gap:12px 20px;flex-wrap:wrap;margin-bottom:20px}
.view-label{margin:0 0 6px;color:#ff8b83;font-size:.83rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.date-subtitle{margin:7px 0 0;color:var(--muted);font-size:.94rem;text-transform:capitalize}
.date-subtitle:empty{display:none}
.date-toolbar{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.date-toolbar input{background:#281d2a;border:1px solid var(--line);border-radius:9px;min-height:40px;padding:6px 9px;color:var(--ink);font-size:.88rem}
.date-toolbar button{min-height:40px}
.overview-grid,.journal-grid,.progress-grid{display:grid;gap:15px;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr)}
.dashboard-panel,.dashboard-feature{min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:20px;overflow:hidden}
.dashboard-panel{padding:17px}
.card-heading{display:flex;align-items:center;justify-content:space-between;gap:9px;flex-wrap:wrap;margin-bottom:13px}
.card-heading h2,.dashboard-feature h2{font-family:Georgia,serif;font-size:1.55rem}
.card-heading button{min-height:36px;font-size:.84rem}
.energy-panel{background:linear-gradient(135deg,#3b2638,#241b28 72%)}
.energy-layout{display:grid;grid-template-columns:155px minmax(0,1fr);align-items:center;gap:22px}
.energy-meter{display:grid;place-items:center;position:relative;width:150px;aspect-ratio:1;border-radius:50%;background:conic-gradient(var(--energy) var(--progress,0%),#514052 0);isolation:isolate;box-shadow:0 0 34px #ffc85718}
.energy-meter::before{content:"";position:absolute;inset:9px;border-radius:50%;background:#271c29;z-index:-1}
.energy-reading{display:grid;line-height:1.08;text-align:center}
.energy-reading strong{font-size:2.1rem;letter-spacing:-.055em;font-variant-numeric:tabular-nums}
.energy-reading span{font-size:.76rem;color:var(--muted);margin-top:5px}
.energy-note,.partial-note{margin:9px 0 0;color:var(--muted);font-size:.85rem}
.energy-note{color:#ffe0a0}
.macro-meters{display:grid;gap:13px}
.macro-meter>div:first-child{display:flex;justify-content:space-between;gap:5px;margin-bottom:5px;font-size:.88rem}
.macro-meter strong{white-space:nowrap;font-variant-numeric:tabular-nums}
.macro-meter small{font-weight:600;color:var(--muted)}
.meter-track{height:6px;border-radius:7px;background:#514052;overflow:hidden}
.meter-track span{display:block;height:100%;border-radius:7px;background:var(--macro-color,#ff7168)}
.macro-meter[data-macro=pro]{--macro-color:#ff857d}
.macro-meter[data-macro=carbs]{--macro-color:#ffc857}
.macro-meter[data-macro=fat]{--macro-color:#b9a7ff}
.dashboard-feature{display:flex;align-items:flex-end;isolation:isolate;position:relative;min-height:255px}
.dashboard-feature img,.dashboard-feature::after{position:absolute;inset:0;width:100%;height:100%;z-index:-2;object-fit:cover}
.dashboard-feature::after{content:"";background:linear-gradient(180deg,#1f12141a 5%,#1b111be8 96%);z-index:-1}
.feature-content{padding:17px 19px}
.feature-content h2{font-size:2rem}
.feature-content p{color:#f2e5eb;margin:4px 0 12px}
.feature-content a{min-height:36px}
.journal-grid{margin-top:15px}
.journal-panel{padding-bottom:7px}
.journal-meal{border-top:1px solid var(--line);padding:7px 0 9px}
.journal-meal-head,.day-plan-row{display:flex;align-items:center;justify-content:space-between;gap:9px}
.journal-meal-head h3,.quick-panel h3{margin:0;font-size:.95rem}
.journal-add{min-width:30px;min-height:30px;padding:0;background:var(--sage);font-size:1.05rem}
.journal-empty,.section-meta{color:var(--muted);font-size:.84rem}
.journal-empty{margin:4px 0}
.journal-meal ul,.weight-list{padding:0;margin:4px 0 0;list-style:none}
.journal-entry,.weight-entry{width:100%;background:#1d151f;text-align:left;justify-content:space-between;margin:3px 0;padding:7px 8px;min-height:37px}
.journal-entry time,.journal-entry>span{color:var(--muted);font-size:.8rem;white-space:nowrap}
.journal-entry strong{flex:1;overflow-wrap:anywhere}
.day-plan-row{padding:7px 0;border-top:1px solid var(--line)}
.day-plan-row small,.day-plan-row strong{display:block}
.day-plan-row small,.logged-state{color:#e7bec9;font-size:.83rem}
.day-plan-row button{min-height:34px}
.quick-panel{border-top:1px solid var(--line);margin-top:12px;padding-top:12px}
.quick-panel button{margin-top:7px}
.text-link{color:#ffaaa4;font-size:.85rem;text-underline-offset:3px}
.progress-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.progress-stats div{border:1px solid var(--line);border-radius:12px;padding:9px 11px}
.progress-stats span,.progress-stats strong{display:block}
.progress-stats span{font-size:.84rem;color:var(--muted)}
.progress-stats strong{font-size:1.5rem;font-variant-numeric:tabular-nums}
.history-bars{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin-top:15px}
.history-column{display:grid;justify-items:center;min-width:0;gap:5px}
.history-column strong,.history-column small{font-size:.78rem}
.history-column small{color:var(--muted);white-space:nowrap}
.history-track{width:clamp(13px,60%,34px);height:100px;border-radius:7px;background:#49374a;display:flex;align-items:end;overflow:hidden}
.history-track i{width:100%;background:linear-gradient(#ffc857,#ff7168);border-radius:7px}
.app-view>.section-heading{min-height:61px;margin-bottom:18px}
#stock .panel{max-width:760px}
#recettes #recipes{grid-template-columns:repeat(4,minmax(0,1fr))}
#recettes .recipe-copy strong{font-size:1.2rem}
button,.button,.file-button,.panel,.empty-card,.recipe-tile,.recipe-open,.week-day,.shopping-panel,.filters select{background:var(--surface);color:var(--ink)}
button:hover{filter:brightness(1.12)}
.primary,.button.primary{background:#ff7168;color:#29171e}
.primary:hover,.button.primary:hover{background:#ff8c84}
.outline{border-color:var(--line)}
.soft,.file-button{background:var(--sage);color:#f5d8eb}
.peach,.section-icon.peach{background:var(--peach);color:#ffb29e}
.plain{background:transparent}
.plain:hover,.mini:hover{background:var(--sage)}
#demo-note,.item-icon,#tabs button[aria-pressed=true],#tabs button:hover{background:var(--raised);color:#ffe1ef}
#demo-note button{color:#ffe1ef}
.item,.recipe-actions,.ingredients-list li,#shopping-list label{border-color:var(--line)}
.recipe-tile:hover{border-color:#a46a89}
.recipe-visual,.recipe-detail-photo,#prep-photo{background:#38283a}
.recipe-time{background:#1c151d;color:#fff7f3}
.recipe-kind,.recipe-nutrition span:first-child{color:#ffc857}
.meal-empty{border-color:#6c5066;color:#efd4df}
.meal-filled,.meal-empty:hover,.week-day.is-today{background:var(--raised);color:#fff1f5}
.meal-filled:hover{background:#49314a}
dialog,.product-dialog{background:var(--faint);color:var(--ink)}
form input:not([type=checkbox]),form select{background:var(--surface);border-color:var(--line)}
.product-dialog .dialog-head{background:#3a2337;color:#fff5fa}
.product,.scan-product,.nutrition-panel,.scan-shops,.comparison,.product-details,#prep-carousel figure,.product-dialog #food-form,.recipe-shortfall{background:var(--surface);border-color:var(--line)}
.nutrition-panel dl div,.alternative-card,.details-body,.score-points li{border-color:var(--line)}
.alternative-open:hover{background:#3a293c;border-color:var(--line)}
.packshot,.packshot img{background:#e7eee7;color:#43644c}
.store-list li,.catalogue-tags li{background:#44304a;color:#f4dcff}
.allergen-tags li{background:#50302f;color:#ffc2a8}
.points-limit strong{color:#f4b898}
.points-bonus strong,.scan-section-head a,.scan-section-head small,.alt-stores,.prep-progress{color:#ffaaa4}
.scan-divider button:first-child{background:#ff7168;color:#29171e}
.alternative-open,.journal-entry,.weight-entry{background:var(--faint)}
.people-control button{background:var(--sage);color:#ffe6f2}
@media(max-width:950px){#recettes #recipes{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){
  .app-header .top{min-height:56px}
  .app-header .app-nav{position:fixed;left:0;right:0;bottom:0;height:calc(62px + env(safe-area-inset-bottom,0px));padding-bottom:env(safe-area-inset-bottom,0px);background:#211721f2;border-top:1px solid var(--line);justify-content:space-around;gap:0}
  .app-header{position:relative;backdrop-filter:none}
  .top .app-nav a{flex-direction:column;gap:3px;padding:5px 6px;font-size:.75rem;min-width:54px}
  .app-view{padding-top:21px}
  body{padding-bottom:calc(62px + env(safe-area-inset-bottom,0px))}
  #toast{bottom:78px}
  #recettes #recipes{grid-template-columns:repeat(2,minmax(0,1fr))}
  .overview-grid,.journal-grid,.progress-grid{grid-template-columns:1fr}
  .dashboard-feature{min-height:178px}
}
@media(max-width:390px){
  .dashboard-panel{padding:12px}
  .energy-layout{grid-template-columns:100px minmax(0,1fr);gap:10px}
  .energy-meter{width:99px}
  .energy-meter::before{inset:6px}
  .energy-reading strong{font-size:1.5rem}
  .energy-reading span{font-size:.64rem}
  .macro-meter>div:first-child{font-size:.79rem}
  .app-view>.section-heading{flex-wrap:wrap}
  #recettes .recipe-copy strong{font-size:1rem}
}
