:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --paper: #f3f3f3;
  --surface: #fff;
  --ink: #272D2F;
  --muted: #59616b;
  --line: #D7D7D7;
  --accent: #FE724C;
  --primary: #FFC529;
  --selection: #fff1cb;
  --gradient: linear-gradient(125deg,var(--primary),var(--accent));
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 17px; line-height: 1.42; }
[hidden] { display: none !important; }
h1,h2,h3,p { margin: 0; }
h1 { font-size: 34px; font-weight: 670; line-height: 1.1; letter-spacing: -.032em; overflow-wrap: anywhere; }
h2 { font-size: 20px; line-height: 1.14; font-weight: 650; letter-spacing: -.018em; }
small,.muted,.lead { color: var(--muted); }
small { font-size: 14px; }
button,input,select,textarea { font: inherit; color: inherit; border: 0; }
button {  padding: 0; background: transparent; cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: default; opacity: .45; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
svg { width: 19px; height: 19px; flex: none; }
.shell {
  --page-gutter: 16px;
  --section-gap: 16px;
  --card-padding: 16px;
  width: min(100%, 600px);
  margin: auto;
  padding: 0 var(--page-gutter) calc(24px + env(safe-area-inset-bottom));
}
main { display: grid; gap: var(--section-gap); padding-top: 8px; }
main > * { min-width: 0; }
.stack,form { display: grid; gap: 12px; }
.card,.grouped-list,.luma-note { background: var(--surface); border-radius: 18px; }
.card,.luma-note { padding: var(--card-padding); }
.card:not(.stack):not(.purchase-section) h2+* { margin-top: 8px; }
.luma-note { display: grid; gap: 8px; }
.luma-note > .pill { margin-top: 8px; }
.intro,.section-hero { display: grid; gap: 7px; padding: 0; }
.lead { font-size: 15px; }
.step-count { font-size: 14px; color: var(--ink); }
.step-track { display:grid; grid-template-columns: repeat(4,1fr); gap: 5px; width: 100%; margin-bottom: 3px; }
.step-track i { height: 3px; border-radius: 4px; background: #d7d7d7; }
.step-track .complete { background: var(--accent); }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px; padding: 9px 15px; border-radius: 13px; color: var(--ink); background: var(--primary); font-size: 16px; font-weight: 400; text-decoration: none; text-align: center; }
.pill.secondary,.pill.outline { color: var(--ink); background: var(--selection); }
.detail-action,.plan-primary { width: 100%; }
main > .pill { width: 100%; }
.dinner-hero { display: grid; gap: 16px; padding: var(--card-padding); border-radius: 22px; background: var(--surface); }
.dinner-hero .eyebrow { font-size: 14px; }
.dinner-hero .pill { margin-top: 4px; background: #fff; color: var(--ink); }
.dinner-hero small { color: white; }
.dinner-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
.dinner-metrics span { display: grid; padding: 8px; border-radius: 12px; background: #ffffff21; }
.dinner-metrics b { font-size: 22px; font-variant-numeric: tabular-nums; }
.list-section { display: grid; gap: 7px; }
.list-section > h2 { margin-left: 0; }
.grouped-list { overflow: hidden; }
.action-row { display: grid; grid-template-columns: 24px minmax(0,1fr) 18px; align-items: center; gap: 10px; min-height: 52px; width: 100%; padding: 10px 14px; text-align: left; }
.action-row > svg { color: var(--ink); }
.action-row span { overflow-wrap: anywhere; }
.action-row strong { font-size: 14px; font-weight: 400; }
.action-row small { display: block; font-size: 12px; }
.recommendation { min-height: 72px; }
fieldset { min-width: 0; margin: 0; border: 0; padding: 0; }
legend { padding: 0; }
label { display: grid; gap: 5px; font-size: 13px; font-weight: 400; color: var(--muted); }
label input,label select,label textarea,.stock-row input,.stock-row select { width: 100%; min-height: 44px;  border-radius: 10px; background: #f7f7f7; padding: 7px 10px; color: var(--ink); font-size: 16px; }
label.consent { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); font-size: 16px; }
summary { display: list-item; align-content: center; min-height: 44px; cursor: pointer; color: var(--ink); }
details label { margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button,.remove { min-height: 44px; min-width: 44px; padding: 6px 11px; border-radius: 12px; background: #ededed; color: var(--ink); font-size: 15px; }
.chips button[aria-pressed=true] { background: var(--selection); color: var(--ink); }
.stock-row { display: grid; grid-template-columns: minmax(0,1fr) 66px 58px 44px; align-items: center; gap: 5px; padding: 7px 0;  }
.stock-row span { overflow-wrap: anywhere; }
.stock-row input,.stock-row select { padding: 5px; }
.quick-control { display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: #f3f3f3; }
.control-label { font-size: 14px; color: var(--muted); }
.stepper { display: grid; grid-template-columns: 52px minmax(0,1fr) 52px; align-items: center; text-align: center; }
.stepper button { height: 52px; border-radius: 12px; background: white; color: var(--ink); font-size: 29px; }
.stepper output { font-size: 29px; font-weight: 650; font-variant-numeric: tabular-nums; }
.quick-presets { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
.quick-presets button { min-width: 0; overflow-wrap: anywhere; }
.quick-presets button { padding: 5px 2px; font-size: 13px; }
.manual-row,.offer-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0;  }
.offer-list { list-style: none; margin: 0; padding: 0; }
.offer-row small { display: block; }
.offer-row > span:last-child { flex: none; font-variant-numeric: tabular-nums; }
.merchant-name,.section-stat { color: var(--ink); font-size: 15px; }
ol,ul { margin-block: 8px; padding-inline-start: 23px; }
li+li { margin-top: 6px; }
output:empty { display: none; }
.loading { display: grid; place-items: center; gap: 16px; text-align: center; padding: 38px 14px; }
.loading h1 { font-size: 24px; }
.sphere { width: 116px; height: 116px; border-radius: 50%; background: radial-gradient(circle at 30% 23%,#fff7df,var(--primary) 32%,var(--accent) 76%); box-shadow: 0 12px 38px #fe724c40; }
.loading .sphere { animation: breathe 1.8s ease-in-out infinite alternate; }
@keyframes breathe { to { transform: scale(1.07); } }
@media (prefers-reduced-motion:reduce) { .loading .sphere { animation: none; } }
.practice-time { font-size: clamp(34px,12vw,61px); font-weight: 650; font-variant-numeric: tabular-nums; }
.error { color: #a12b40; }

.dinner-hero .eyebrow,.dinner-hero small{color:var(--muted)}
.dinner-hero .pill{color:var(--ink);background:var(--primary)}
.dinner-metrics span{background:#f2f2f2}
.food-photo{width:100%;aspect-ratio:1;border-radius:18px;background:#eaeaea url('/food-v2.jpg') no-repeat;background-size:300% 200%}
.food-photo-0{background-position:0 0}
.food-photo-1{background-position:50% 0}
.food-photo-2{background-position:100% 0}
.food-photo-3{background-position:0 100%}
.food-photo-4{background-position:50% 100%}
.food-photo-5{background-position:100% 100%}
.dinner-hero .food-photo{border-radius:0}
.recipe-section .grouped-list{display:grid;gap:10px;background:none}
.recipe-choice{display:grid;width:100%;text-align:left;background:#fff;border-radius:18px;overflow:hidden}
.recipe-choice .food-photo{border-radius:0}
.recipe-copy{display:grid;gap:4px}
.recipe-copy strong{font-size:15px;font-weight:400}
.store-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:4px 0}
.store-choice{display:flex;align-items:center;justify-content:center;gap:7px;min-height:56px;padding:6px;border-radius:12px;background:#f7f7f7;font-size:15px;font-weight:400}
.store-choice[aria-pressed=true]{background:var(--selection);color:var(--ink)}
.store-choice img{width:24px;height:24px;object-fit:contain;flex:none}
.store-mark{position:relative;display:block;width:24px;height:24px;flex:none;overflow:hidden}
.store-mark.five-mark img{position:absolute;width:149.33px;height:53.33px;max-width:none;left:-15px;top:-15px}
.catalog-result{display:block;color:var(--muted);font-size:14px;margin:5px 0}
.catalog-offer{display:flex;align-items:center;gap:12px;padding:12px;background:#f3f3f3;border-radius:12px;color:var(--ink);text-decoration:none}
.catalog-offer img{width:56px;height:56px;object-fit:contain;background:white;border-radius:8px}
.catalog-offer small{display:block}
:root{--muted:#64676b}
.purchase-section{display:grid;gap:8px}
.purchase-section .merchant-name,.purchase-section .offer-list{margin:0}
.offer-list{display:grid;gap:10px}
.offer-list .purchase-item{list-style:none;margin:0;padding:12px;border-radius:14px}
.purchase-item > strong{display:block;font-size:16px;font-weight:400}
.purchase-item > small,.catalog-offer small,.purchase-section .muted{color:var(--muted)}
.catalog-offer{align-items:flex-start;min-width:0}
.catalog-offer>span{min-width:0;overflow-wrap:anywhere}
.catalog-offer img{flex:none}
.catalog-offer .line-total{display:block;margin-top:5px;color:var(--ink);font-variant-numeric:tabular-nums}
.basket-total{padding:12px;border-radius:12px;background:var(--selection);color:var(--ink)}

/* Typography roles shared with Luma. */
.domain-title{font-size:32px;font-weight:700}
.day-status h1{font-size:clamp(37px,12vw,55px);font-weight:700}
.primary-action,.pill.secondary.detail-action{font-size:15px}
.settings-detail h1{font-size:23px}
.recipe-copy small{font-size:12px}
.catalog-offer strong{font-size:15px;font-weight:400}
.catalog-offer small,.purchase-item>small{font-size:13px}
.cooking-step h1,.loading h1{font-size:20px;font-weight:650;letter-spacing:-.025em}
.practice-time{font-size:clamp(53px,16vw,78px);line-height:1;letter-spacing:-.045em;font-weight:700}

/* Fast selection and persistent actions in the dinner flow. */
.quick-search { display:flex;align-items:center;gap:8px;padding:0 12px;background:#f1f1f1;border-radius:15px;color:var(--ink); }
.quick-search>svg { width:20px;height:20px;color:var(--muted); }
.quick-search input { background:transparent;padding-inline:0;min-height:50px; }
.category-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px; }
.food-category { position:relative;display:grid;align-content:space-between;justify-items:start;gap:5px;min-height:103px;padding:11px;border-radius:15px;overflow:hidden;text-align:left;font-size:15px;line-height:1.15;color:var(--ink); }
.food-category .category-art { justify-self:end;font-size:40px;line-height:1; }
.food-category.peach { background:#fbe1d7; }
.food-category.sand { background:#f4e9e2; }
.food-category.lilac { background:#eae6f1; }
.food-category.gold { background:#fff0c0; }
.category-context:empty,.product-picker:empty { display:none; }
.category-back { color:var(--ink);min-height:44px;text-align:left; }
.product-picker button { text-transform:capitalize; }
.selected-shelf { padding:0 10px;background:#f6f6f6;border-radius:13px; }
.exclusion-grid { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px; }
.exclusion-grid button { display:grid;place-items:center;align-content:center;gap:6px;min-height:76px;padding:5px 2px;border-radius:13px;font-size:12px;line-height:1.1;overflow-wrap:anywhere; }
.exclusion-grid button>span:first-child { font-size:27px; }
.exclusion-grid button[aria-pressed=true] { background:var(--selection); }
.flow-form { gap: var(--section-gap); }
.flow-actions,.cooking-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: grid;
  gap: 8px;
  padding: 10px 0 calc(8px + env(safe-area-inset-bottom));
  background: var(--paper);
}
.flow-actions .pill,.cooking-actions .pill { width: 100%; min-height: 52px; }
.flow-form.card .flow-actions {
  margin-inline: calc(-1 * var(--card-padding));
  padding-inline: var(--card-padding);
  background: var(--surface);
}
.recipe-copy strong { font-size:17px; }
.purchase-section { gap:12px; }
.purchase-item { background:#fcfcfc; }
@media(max-width:350px){.exclusion-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.hero-overview { display:grid;grid-template-columns:minmax(0,1fr) 88px;align-items:center;gap:8px 12px; }
.hero-copy { display:contents; }
.hero-copy :is(.eyebrow,h1) { grid-column:1 / -1; }
.hero-copy h1 { font-size:clamp(30px,8vw,39px); }
.hero-copy>p:last-child { color:var(--muted);font-size:15px;max-width:31ch; }
.hero-overview .food-photo { border-radius:14px; }

.recipe-tile{min-width:0}
.recipe-choice {
  --thumbnail: clamp(68px, 21vw, 88px);
  grid-template-columns: var(--thumbnail) minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 12px;
}
.recipe-choice .food-photo { border-radius: 12px; width: var(--thumbnail); height: var(--thumbnail); }
.recipe-copy{padding:0;min-width:0;overflow-wrap:anywhere}
.recommended-choice { display: grid; gap: 8px; }
.recommended-choice > .recipe-tile { margin-top: 8px; }
.recommended-choice .recipe-choice { --thumbnail: clamp(88px, 26vw, 118px); align-items: center; padding: 16px; }
.recommended-choice .recipe-copy { align-content: center; }
.plan-actions { gap: 12px; }
.plan-actions .lead { padding-inline: 2px; }
.cooking-step { gap: 14px; }
.cooking-step .practice-time { min-height: 1em; }
.external-food-photo{display:block;object-fit:cover}
.photo-placeholder{display:grid;place-items:center;background:#ededed;color:var(--muted)}
#view>.photo-placeholder{display:none}
.photo-attribution{display:block;font-size:11px;color:var(--muted);padding:4px 9px;overflow-wrap:anywhere}
.photo-attribution a{color:inherit}

@font-face{font-family:Roboto;src:url('/roboto.ttf') format('truetype');font-weight:100 900;font-style:normal;font-display:swap}
:root{font-family:Roboto,system-ui,sans-serif}
.app-header {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: calc(56px + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  background: var(--paper);
}
.top-home {
  display: flex;
  align-items: center;
  min-height: 44px;
}
.app-header .app-name {
  font-size: 20px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -.025em;
}
.app-header .top-back {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  box-shadow: none;
}
.top-back svg {
  display: block;
  width: 22px;
  height: 22px;
}
.top-context {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
}

@media (min-width: 500px) {
  .category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .recipe-section .grouped-list { gap: 12px; }
}

@media (max-width: 369px) {
  .domain-title { font-size: 28px; }
  .hero-overview { gap: 9px; }
  .dinner-metrics span { padding: 7px; }
  .stock-row { grid-template-columns: minmax(0, 1fr) 58px 47px 44px; gap: 4px; }
  .exclusion-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .store-picker { gap: 6px; }
  .store-choice { gap: 5px; padding-inline: 4px; font-size: 14px; }
}

.recipe-meta,.recipe-price{font-size:14px}
.recipe-meta{color:var(--muted)}
.recipe-price{font-weight:500}

.more-recipes[open] > .stack { margin-top: 12px; }
#copy-status:empty { display: none; }
.meal-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:4px;background:var(--quiet-fill,#f2f2f2);border-radius:14px}
.meal-picker button{min-height:44px;padding:4px;border-radius:11px;font-size:15px;font-weight:400}
.meal-picker button[aria-pressed=true]{background:var(--selection);color:var(--ink)}

.home-progress { display:grid;gap:12px; }
.home-progress .lead { margin:0; }
.home-progress .action-row { padding:10px 0; }
.home-progress .grouped-list { background:transparent; }
.starter-preview { display:grid;grid-template-columns:56px minmax(0,1fr);align-items:center;gap:12px; }
.starter-preview .food-photo { width:56px;height:56px;border-radius:12px; }
.starter-preview strong { font-size:16px;font-weight:500;overflow-wrap:anywhere; }
.example-card > .pill { min-height:48px; }

.top-home { gap:10px; }
.brand-symbol { display:block;flex:none; }

.starter-choice { text-align:left;padding:10px;border-radius:12px;background:var(--quiet-fill,#f2f2f2); }
.starter-choice > span:last-child { display:grid;gap:3px;min-width:0; }
.starter-choice .photo-placeholder { display:grid; }
.macro-line { display:block;line-height:1.35;font-size:12px;color:var(--muted); }
.nutrition-card { gap:8px; }
.nutrition-card > p { font-variant-numeric:tabular-nums; }

.brand-lockup { display:block;width:154px;height:auto;margin-left:-12px; }

.selected-shelf { padding:0; background:none; }
.selected-shelf > summary { display:grid;grid-template-columns:40px minmax(0,1fr) auto 18px;align-items:center;gap:10px;padding:8px 10px;min-height:58px;border-radius:14px;background:var(--quiet-fill,#f2f2f2); }
.selected-shelf > summary::-webkit-details-marker { display:none; }
.selected-shelf[open] > summary { background:var(--selection); }
.selected-shelf > .stack { margin-top:8px; }
.shelf-icon { display:grid;place-items:center;width:40px;height:40px;border-radius:11px;background:var(--surface); }
.shelf-copy { display:grid;gap:1px;min-width:0; }
.shelf-copy strong { font-size:15px;font-weight:500; }
.shelf-copy small { font-size:12px; }
.shelf-count { min-width:26px;padding:2px 6px;text-align:center;background:var(--surface);border-radius:14px;font-size:13px;font-variant-numeric:tabular-nums; }
.shelf-chevron { display:grid;place-items:center; }
.selected-shelf[open] .shelf-chevron { transform:rotate(90deg); }
.food-category .category-count { position:absolute;right:8px;top:8px;min-width:22px;padding:3px;background:var(--surface);border-radius:12px;font-size:12px;text-align:center; }
.food-category:has(.category-count:not([hidden])) > span:first-child { padding-right:24px; }
.category-mode.card { padding:0;background:none;box-shadow:none; }
.category-mode .pantry-picker { overflow:clip; }
.category-panel { display:grid;gap:16px;animation:category-in 200ms ease-out both; }
.category-heading { display:grid;gap:6px; }
.category-heading h1 { font-size:30px; }
.category-items { display:grid;gap:4px;padding:8px;border-radius:18px;background:var(--surface); }
.category-product { display:flex;justify-content:space-between;align-items:center;gap:12px;padding:8px 10px;min-height:54px;border-radius:12px;text-align:left;font-size:16px;text-transform:capitalize; }
.category-product[aria-pressed=true] { background:var(--selection); }
.category-actions { padding-bottom:env(safe-area-inset-bottom); }
.category-actions .pill { width:100%; }
@keyframes category-in { from { transform:translateX(100%);opacity:.7; } to { transform:translateX(0);opacity:1; } }
@media(prefers-reduced-motion:reduce) { .category-panel { animation:none; } }


.switch-row { position:relative;justify-content:space-between;gap:12px;cursor:pointer; }
.switch-row > span:first-child { min-width:0;overflow-wrap:anywhere; }
.switch-row > input { position:absolute;width:1px;height:1px;min-height:0;padding:0;margin:0;opacity:0; }
.switch-track { position:relative;display:block;flex:0 0 48px;width:48px;height:28px;border-radius:16px;background:#d7d7d7; }
.switch-track::after { content:"";position:absolute;left:3px;top:3px;width:22px;height:22px;border-radius:50%;background:var(--surface); }
.switch-row input:checked + .switch-track,.category-product[aria-pressed=true] .switch-track { background:var(--primary); }
.switch-row input:checked + .switch-track::after,.category-product[aria-pressed=true] .switch-track::after { transform:translateX(20px); }
.switch-row input:focus-visible + .switch-track { outline:2px solid var(--ink);outline-offset:3px; }
@media(prefers-reduced-motion:no-preference) {
  .switch-track { transition:background-color 150ms ease; }
  .switch-track::after { transition:transform 150ms ease; }
}

.nutrition-choices { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px; }
.nutrition-choices button { min-width:0;min-height:52px;padding:6px;font-size:13px;line-height:1.25; }
.custom-exclusions { display:grid;gap:8px; }
.custom-exclusion-entry { display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:8px; }
.custom-exclusion-entry input { min-width:0;min-height:44px;padding:8px 12px;border-radius:12px;background:var(--quiet-fill,#f2f2f2);font-size:16px; }
.add-exclusion { display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:var(--primary); }
.add-exclusion:disabled { opacity:1;background:var(--quiet-fill,#f2f2f2);color:var(--muted); }
.custom-exclusion-list:empty { display:none; }
.custom-exclusion-list button { display:inline-flex;align-items:center;gap:6px;background:var(--selection);overflow-wrap:anywhere; }
.custom-exclusion-list button svg { width:15px;height:15px; }

.reverse-ingredient { display:grid;gap:6px;padding:8px 10px;border-radius:12px;background:var(--quiet-fill,#f2f2f2); }
.reverse-ingredient strong { display:block;text-transform:capitalize;font-weight:400; }
.reverse-ingredient small { display:block;margin-top:2px; }
.reverse-amount { display:grid;grid-template-columns:minmax(0,1fr) 96px;align-items:center;gap:8px; }
.reverse-amount input { background:var(--surface); }
.home-entry-actions { display:grid;gap:8px; }
.dinner-hero .home-entry-actions .pill { margin:0; }
.dinner-hero .home-entry-actions .choose-recipe-entry { background:var(--quiet-fill,#f2f2f2);color:var(--ink); }
