:root {
  --ink: #163228;
  --muted: #69766f;
  --cream: #f6f4ed;
  --paper: #fff;
  --green: #18392b;
  --lime: #d9ef73;
  --orange: #f39a5a;
  --line: #dfe5df;
  --shadow: 0 16px 45px rgba(21, 49, 39, 0.1);
}
.portion-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 20px 0;
  padding: 14px 16px;
  background: #f2f5ef;
  border: 1px solid var(--line);
  border-radius: 15px;
}
.portion-control > span {
  font-weight: 750;
}
.portion-control > div {
  display: flex;
  align-items: center;
  gap: 14px;
}
.portion-control button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
  color: var(--ink);
  font-size: 22px;
  cursor: pointer;
}
.portion-control button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.portion-control strong {
  min-width: 24px;
  text-align: center;
  font-size: 18px;
}
* {
  box-sizing: border-box;
}
[hidden] { display: none !important; }
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
.topbar {
  height: 72px;
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(246, 244, 237, 0.92);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(22, 50, 40, 0.08);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  font-size: 20px;
  text-decoration: none;
}
.brand-copy { display: grid; gap: 1px; }
.brand-copy strong { font: inherit; }
.brand-copy small { color: #678171; font-size: 11px; font-weight: 650; line-height: 1.2; }
.brandmark {
  width: 38px;
  height: 38px;
  display: block;
  flex: 0 0 38px;
}
.brandmark img {
  display: block;
  width: 100%;
  height: 100%;
}
.avatar {
  border: 0;
  background: #e3e9e2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-weight: 750;
  color: var(--ink);
}
.account-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  background: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
}
@media (max-width: 700px) {
  .account-link { padding: 0 10px; font-size: 13px; }
  .brand-copy small { display: none; }
}
main {
  max-width: 1180px;
  margin: auto;
  padding: 44px 24px 120px;
}
.cook-undo:not([hidden]) {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 18px;
  margin-bottom: 22px;
  border: 1px solid #c9daa2;
  border-radius: 14px;
  background: #f4f8e9;
  color: var(--green);
  font-size: 15px;
}
.cook-undo p { margin: 9px 0 0; }
.cook-undo ul { margin: 5px 0 0; padding-left: 22px; line-height: 1.55; }
.cook-undo button {
  padding: 9px 14px;
  border: 1px solid var(--green);
  border-radius: 10px;
  background: white;
  color: var(--green);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
.cook-undo button:focus-visible { outline: 3px solid #a8cb42; outline-offset: 2px; }
.beta-notice {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 16px;
  margin: 24px 0;
  padding: 18px 20px;
  border: 1px solid #cbdc98;
  border-radius: 18px;
  background: linear-gradient(135deg, #f2f8dc, #fffdf3);
  box-shadow: 0 10px 28px rgba(44, 73, 35, 0.07);
}
.beta-notice-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
}
.beta-notice strong { display: block; margin: 1px 0 6px; font-size: 17px; }
.beta-notice p { margin: 0; color: #52645a; line-height: 1.55; }
@media (max-width: 600px) {
  .beta-notice { grid-template-columns: 1fr; gap: 10px; padding: 16px; }
  .beta-notice-badge { width: fit-content; }
}
.view {
  display: none;
}
.view.active {
  display: block;
  animation: fade 0.24s ease;
}
@keyframes fade {
  from {
    opacity: 0.25;
    transform: translateY(5px);
  }
}
h1,
h2,
p {
  margin-top: 0;
}
h1 {
  font-family: Georgia, serif;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 14px;
}
h2 {
  font-family: Georgia, serif;
  font-size: 30px;
  letter-spacing: -0.025em;
  margin-bottom: 0;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
  font-size: 12px;
  color: #66806f;
  margin-bottom: 10px;
}
.welcome {
  display: grid;
  gap: 22px;
}
.welcome > div:first-child > p:last-child {
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 0;
}
.waste-card {
  background: var(--green);
  color: white;
  padding: 24px 28px;
  border-radius: 22px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(0, 2.4fr);
  align-items: center;
  gap: 28px;
  box-shadow: var(--shadow);
}
.home-cooking { display: flex; flex-direction: column; align-items: flex-start; }
.home-cooking span,
.home-cooking small {
  color: #cbd9d1;
  line-height: 1.4;
}
.home-cooking strong {
  font: 700 34px Georgia;
  margin: 5px 0;
}
.home-budget {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 18px;
  border-left: 1px solid rgba(255,255,255,.25);
  padding-left: 28px;
}
.home-budget > div { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.home-budget span { color: #cbd9d1; font-size: 12px; line-height: 1.35; }
.home-budget b { color: white; font-size: clamp(17px, 1.6vw, 22px); font-variant-numeric: tabular-nums; white-space: nowrap; }
.home-budget small { grid-column: 1 / -1; color: #cbd9d1; font-size: 12px; line-height: 1.4; }
.demo-notice {
  margin: 0 0 18px;
  padding: 11px 15px;
  border: 1px solid #c9daa2;
  border-radius: 12px;
  background: #f4f8e9;
  color: var(--green);
  font-size: 14px;
  line-height: 1.45;
}
.demo-notice[hidden] { display: none; }
.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 34px 0 48px;
}
.quick {
  border: 1px solid var(--line);
  background: white;
  border-radius: 22px;
  padding: 22px;
  text-align: left;
  color: var(--ink);
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 2px 14px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(21, 49, 39, 0.04);
}
.quick:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.quick .icon {
  grid-row: 1/3;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: #eef3ed;
  display: grid;
  place-items: center;
  font-size: 24px;
}
.quick strong {
  font-size: 17px;
}
.quick small {
  color: var(--muted);
}
.quick.primary {
  background: var(--lime);
  border-color: transparent;
}
.quick.primary .icon {
  background: rgba(255, 255, 255, 0.55);
}
button {
  font: inherit;
}
.section-head,
.page-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin: 34px 0 20px;
}
.section-head button {
  background: none;
  border: 0;
  color: #476755;
  font-weight: 700;
  cursor: pointer;
}
.expiry-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.expiry-empty {
  color: var(--muted);
  margin: 0;
  padding: 12px 0;
}
.expiry {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  gap: 14px;
  align-items: center;
}
.food-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #f4eadb;
  display: grid;
  place-items: center;
  font-size: 24px;
}
.expiry strong {
  display: block;
}
.expiry small {
  color: #bb5b35;
}
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.recipe-card {
  background: white;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 7px 20px rgba(21, 49, 39, 0.05);
  cursor: pointer;
}
.recipe-art {
  height: 135px;
  background: linear-gradient(135deg, #bfd08e, #f3c88c);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  font-size: 48px;
  position: relative;
}
.card-favorite,
.detail-favorite {
  border: 1px solid rgba(24, 57, 43, 0.18);
  background: rgba(255, 255, 255, 0.92);
  color: var(--green);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 23px;
  cursor: pointer;
}
.card-favorite { position: absolute; top: 14px; right: 14px; }
.card-favorite.selected,
.detail-favorite.selected { color: #b84643; background: #fff4f2; }
.card-rating { color: #d98d22; letter-spacing: 2px; margin-top: 10px; font-size: 16px; }
.recipe-body {
  padding: 18px;
}
.recipe-body h3 {
  margin: 0 0 10px;
  font: 700 21px Georgia;
}
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}
.recipe-cost {
  display: block;
  margin-top: 7px;
  color: var(--green);
  font-size: 13px;
  line-height: 1.35;
}
.recipe-cost-note { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.match {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 9px;
  border-radius: 9px;
  background: #edf4de;
  color: #456226;
  font-weight: 750;
  font-size: 12px;
}
.allergen-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.allergen-tags span,
.allergen-notice span {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff0dc;
  color: #8a4b1f;
  font-size: 12px;
  font-weight: 750;
}
.allergen-notice {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid #efd6b5;
  border-radius: 12px;
  background: #fffaf3;
}
.allergen-notice .no-allergens { background: #f2f6ee; color: var(--green); }
.allergen-notice small { flex-basis: 100%; color: #745437; line-height: 1.4; }
.recipe-title-wrap { flex: 1; }
.recipe-hero { display: flex; align-items: flex-start; gap: 14px; }
.recipe-feedback {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.recipe-feedback h3 { margin: 0 0 10px; }
.star-rating { display: flex; gap: 3px; margin-bottom: 16px; }
.star-rating button {
  border: 0;
  background: transparent;
  color: #c8c8bd;
  font-size: 30px;
  padding: 2px;
  cursor: pointer;
}
.star-rating button.selected { color: #d98d22; }
.star-rating button:hover,
.star-rating button:focus-visible { color: #b77414; transform: scale(1.08); }
.feedback-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.feedback-buttons button {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--ink);
  padding: 11px 14px;
  font-weight: 750;
  cursor: pointer;
}
.feedback-buttons .feedback-good.selected { background: #edf4de; border-color: #bdd489; color: #456226; }
.report-recipe-name { font-weight: 800; padding: 10px 12px; background: #f4f6f1; border-radius: 10px; }
#reportForm textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px;
  background: white;
  font: inherit;
  resize: vertical;
}
.page-title {
  margin-top: 8px;
}
.page-title h1 {
  margin: 0;
}
.solid {
  border: 0;
  border-radius: 13px;
  background: var(--green);
  color: white;
  padding: 13px 18px;
  font-weight: 750;
  cursor: pointer;
}
.score {
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--lime);
  font-weight: 800;
}
.search {
  height: 52px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
}
.search input {
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  width: 100%;
}
.filters {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding: 16px 0 20px;
}
.filters button {
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  padding: 9px 14px;
  color: var(--ink);
}
.filters button.selected {
  background: var(--green);
  color: white;
}
.pantry-list,
.shopping-list {
  background: white;
  border-radius: 20px;
  border: 1px solid var(--line);
  overflow: hidden;
}
.pantry-item,
.shop-item {
  display: grid;
  grid-template-columns: 48px 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.pantry-item:last-child,
.shop-item:last-child {
  border-bottom: 0;
}
.pantry-item strong,
.shop-item strong {
  display: block;
}
.pantry-item small,
.shop-item small {
  color: var(--muted);
}
.days {
  font-size: 13px;
  color: #ba5a35;
  background: #fff0e8;
  padding: 6px 9px;
  border-radius: 8px;
}
.remove {
  border: 0;
  background: none;
  font-size: 20px;
  color: #829087;
  cursor: pointer;
}
.pantry-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.edit-item {
  border: 0;
  background: #edf3ec;
  color: var(--green);
  width: 34px;
  height: 34px;
  border-radius: 9px;
  cursor: pointer;
}
.recipe-grid.large {
  grid-template-columns: repeat(3, 1fr);
}
.plan-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--green);
  color: white;
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 22px;
}
.plan-summary > div {
  padding: 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
}
.plan-summary > div:last-child {
  border: 0;
}
.plan-summary span,
.plan-summary small {
  opacity: 0.7;
}
.plan-summary strong {
  font: 700 27px Georgia;
  margin: 6px 0;
}
.week {
  display: grid;
  gap: 10px;
}
.day {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 16px;
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  padding: 17px 20px;
  border-radius: 16px;
}
.day-name {
  font-weight: 800;
}
.day-meal {
  border: 0 !important;
  background: transparent !important;
  padding: 8px 0 !important;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  font-style: normal;
  text-align: left;
  text-decoration: none;
  transform: none !important;
  rotate: none;
  writing-mode: horizontal-tb;
  cursor: pointer;
}
.day-meal:hover,
.day-meal:focus-visible {
  color: var(--green);
  text-decoration: none;
  outline: 2px solid var(--lime);
  outline-offset: 4px;
  border-radius: 4px;
}
.day small {
  color: var(--muted);
}
.day button {
  border: 0;
  background: #edf3ec;
  padding: 8px 11px;
  border-radius: 10px;
}
.budget {
  background: var(--green);
  color: white;
  border-radius: 20px;
  padding: 22px;
  margin-bottom: 18px;
}
.budget > div:first-child {
  display: flex;
  justify-content: space-between;
}
.budget .bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 9px;
  margin: 15px 0 9px;
  overflow: hidden;
}
.budget .bar i {
  display: block;
  width: 83%;
  height: 100%;
  background: var(--lime);
  border-radius: 9px;
}
.budget small {
  display: block;
  opacity: 0.85;
  margin-top: 5px;
  line-height: 1.45;
}
.budget #startNewBudgetWeek { margin-top: 14px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.5); border-radius: 8px; background: transparent; color: white; font: inherit; cursor: pointer; }
.purchase-expenses { margin: 0 0 20px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.purchase-expense-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.purchase-expense-row:first-of-type { margin-top: 10px; }
.purchase-expense-row > span:last-child { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.purchase-expense-row input { width: 100px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
@media (max-width: 520px) { .purchase-expense-row, .purchase-expense-row > span:last-child { align-items: flex-start; flex-direction: column; } }
.shop-item {
  grid-template-columns: 28px 1fr auto auto;
}
.shop-item input {
  width: 20px;
  height: 20px;
  accent-color: var(--green);
}
.shop-buy { display: inline-block; margin-top: 5px; padding: 0; border: 0; background: none; color: var(--green); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; text-align: left; text-decoration: underline; text-underline-offset: 2px; }
.shop-buy:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 2px; }
.shop-item.done {
  text-decoration: line-through;
  opacity: 0.45;
}
.custom-shopping-form {
  display: grid;
  grid-template-columns: 1fr 180px auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
  padding: 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.custom-shopping-form label { margin: 0; }
.custom-shopping-form button { min-height: 47px; }
.meal-swap-dialog {
  width: min(720px, calc(100% - 24px));
}
.meal-swap-panel {
  padding: 24px;
}
.meal-swap-options {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  max-height: min(55vh, 520px);
  overflow-y: auto;
  padding-right: 4px;
}
.meal-swap-search { margin-top: 14px; }
.meal-swap-count { color: var(--muted); font-size: 13px; font-weight: 700; margin: 10px 0 0; }
.meal-swap-option {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  padding: 12px 14px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.meal-swap-option:hover,
.meal-swap-option:focus-visible {
  border-color: var(--green);
  background: #f7faf3;
}
.meal-swap-option .meal-icon { font-size: 28px; }
.meal-swap-option strong { display: block; }
.meal-swap-option small { color: var(--muted); }
.recipe-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.recipe-actions button { border: 1px solid var(--green); border-radius: 12px; padding: 13px 16px; background: white; color: var(--green); font-weight: 800; cursor: pointer; }
.recipe-actions .solid { background: var(--green); color: white; }
.recipe-ingredient-list { padding-left: 20px; }
.recipe-ingredient-list li { padding: 7px 0; }
.recipe-ingredient-list li::marker { color: var(--green); }
.recipe-ingredient-list li > span { margin-right: 12px; }
.recipe-ingredient-list button, .substitute-panel button, .review-actions button { border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--green); padding: 7px 10px; cursor: pointer; font: inherit; }
.recipe-ingredient-list button { font-size: 13px; }
.substitute-panel, .use-review { margin-top: 16px; padding: 16px; border: 1px solid #c9daa2; border-radius: 14px; background: #f4f8e9; }
.substitute-panel h3, .use-review h3 { margin: 0 0 10px; }
.substitute-panel button { margin: 4px 6px 4px 0; }
.substitution-impact { margin: 14px 0; padding: 15px 17px; border: 1px solid #c9daa2; border-radius: 12px; background: #f4f8e9; color: var(--green); font-size: 14px; line-height: 1.5; }
.substitution-impact ul { padding-left: 20px; margin: 8px 0; }
.substitution-impact li { margin: 5px 0; }
.substitution-impact p { margin: 8px 0 0; }
.use-review p { font-size: 14px; line-height: 1.5; }
.use-review label { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin: 10px 0; font-size: 14px; }
.use-review label span { flex-shrink: 0; }
.use-review input { width: 86px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.review-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.review-actions .solid { background: var(--green); color: white; }
@media (max-width: 520px) { .use-review label { align-items: flex-start; flex-direction: column; } }
.purchase-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.purchase-actions #removePurchase { color: #a33232; margin-right: auto; }
.purchase-actions button { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: white; color: var(--ink); font-weight: 800; cursor: pointer; }
.purchase-actions .solid { background: var(--green); color: white; border-color: var(--green); }
.bottom-nav {
  position: fixed;
  z-index: 20;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  border-radius: 20px;
  padding: 8px;
  display: flex;
  gap: 4px;
  box-shadow: 0 12px 40px rgba(10, 30, 20, 0.28);
}
.bottom-nav button {
  border: 0;
  background: transparent;
  color: #b8c5bc;
  border-radius: 13px;
  padding: 8px 16px;
  display: flex;
  gap: 6px;
  align-items: center;
  cursor: pointer;
  font-size: 13px;
}
.bottom-nav button span {
  font-size: 18px;
}
.bottom-nav button.active {
  background: white;
  color: var(--ink);
}
dialog {
  border: 0;
  border-radius: 24px;
  padding: 0;
  width: min(520px, calc(100vw - 28px));
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
}
dialog::backdrop {
  background: rgba(12, 27, 20, 0.55);
  backdrop-filter: blur(3px);
}
dialog form {
  padding: 26px;
}
.market-fields { margin-top: 14px; }
.secondary { border: 1px solid var(--border); background: #fff; color: var(--green); border-radius: 14px; padding: 12px 16px; font-weight: 800; cursor: pointer; }
.price-dialog { width: min(720px, calc(100vw - 28px)); }
.price-dialog form { max-height: min(88vh, 900px); overflow: auto; }
.price-market-summary { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.price-market-summary span { background: #eef4ef; color: var(--green); border-radius: 999px; padding: 7px 10px; font-size: 13px; font-weight: 800; }
.price-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 14px 0 18px; }
.price-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px; align-items: center; gap: 12px; border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px; background: #fff; }
.price-row label { font-weight: 750; min-width: 0; }
.price-row label small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; margin-top: 2px; }
.price-input-wrap { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px; }
.price-input-wrap input { min-width: 0; width: 100%; }
.price-input-wrap span { color: var(--muted); font-size: 13px; white-space: nowrap; }
.price-actions { display: flex; justify-content: space-between; gap: 12px; position: sticky; bottom: -20px; background: #fff; padding: 14px 0 4px; }
.shop-item > b small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; font-weight: 700; text-align: right; }
@media (max-width: 620px) { .price-list { grid-template-columns: 1fr; } .price-row { grid-template-columns: minmax(0, 1fr) 118px; } .price-actions { flex-direction: column-reverse; } }
.dialog-head {
  display: flex;
  justify-content: space-between;
}
.close {
  border: 0;
  background: #edf1ec;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 24px;
}
.dialog-head h2 {
  margin-bottom: 22px;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 750;
  margin-bottom: 16px;
}
label input,
label select {
  display: block;
  width: 100%;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px;
  background: white;
  font: inherit;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.wide {
  width: 100%;
}
.toast {
  position: fixed;
  right: 24px;
  bottom: 110px;
  background: var(--ink);
  color: white;
  padding: 13px 18px;
  border-radius: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: 0.2s;
}
.toast.show {
  opacity: 1;
  transform: none;
}
.admin-shortcut {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  border-radius: 12px;
  padding: 9px 12px;
  font-weight: 750;
  cursor: pointer;
}
.admin-stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin: 20px 0 30px;
}
.admin-stats > div {
  background: var(--green);
  color: white;
  padding: 20px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.admin-stats strong { font: 700 32px Georgia; }
.admin-stats span { opacity: 0.75; }
.admin-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}
.admin-section-head h2 { margin: 0 0 5px; font: 700 28px Georgia; }
.admin-section-head p { margin: 0; color: var(--muted); }
.admin-toggle { display: flex; align-items: center; gap: 8px; margin: 0; white-space: nowrap; }
.admin-toggle input { width: 18px; height: 18px; margin: 0; accent-color: var(--green); }
.admin-reports { display: grid; gap: 12px; }
.admin-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.admin-filters label { margin: 0; }
.admin-report {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}
.admin-report.resolved { opacity: 0.65; }
.admin-report h3 { margin: 8px 0 6px; }
.admin-report p { margin: 0 0 8px; }
.report-recipe-score { display: flex; gap: 8px; margin-bottom: 10px; }
.report-recipe-score span { background: #f1f4ec; border-radius: 8px; padding: 5px 8px; color: var(--green); font-size: 12px; font-weight: 800; }
.admin-report small { color: var(--muted); }
.report-type, .resolved-badge { display: inline-block; border-radius: 999px; padding: 5px 9px; background: #fff0dc; color: #8a4b1f; font-size: 12px; font-weight: 800; margin-right: 7px; }
.resolved-badge { background: #edf4de; color: #456226; }
.recipe-status { display: inline-block; border-radius: 999px; padding: 5px 9px; background: #eef1ed; color: #536158; font-size: 12px; font-weight: 800; margin-right: 7px; }
.recipe-status.status-tested { background: #e8f1ff; color: #315e94; }
.recipe-status.status-needs_fix { background: #fff0dc; color: #8a4b1f; }
.recipe-status.status-verified { background: #edf4de; color: #456226; }
.admin-report-actions { display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.admin-report-actions button { border: 1px solid var(--line); border-radius: 10px; background: white; padding: 9px 12px; font-weight: 750; cursor: pointer; }
.admin-empty { padding: 34px; text-align: center; background: white; border: 1px solid var(--line); border-radius: 16px; color: var(--muted); }
.beta-progress { background: white; border: 1px solid var(--line); border-radius: 20px; padding: 22px; margin-bottom: 30px; }
.beta-progress-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.beta-progress-head h2 { margin: 0 0 5px; font: 700 25px Georgia; }
.beta-progress-head p { margin: 0; color: var(--muted); }
.beta-progress-head > strong { font: 700 30px Georgia; color: var(--green); }
.beta-progress-bar { height: 9px; background: #e7ece5; border-radius: 99px; margin: 18px 0; overflow: hidden; }
.beta-progress-bar i { display: block; height: 100%; background: var(--lime); border-radius: inherit; transition: width .25s; }
.beta-progress-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.beta-progress-grid > div { background: #f4f6f1; border-radius: 12px; padding: 13px; display: flex; flex-direction: column; gap: 3px; }
.beta-progress-grid strong { font-size: 21px; }
.beta-progress-grid span { color: var(--muted); font-size: 13px; }
.language-issues { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 16px; }
.language-issues h3 { margin: 0 0 12px; }
.language-issue-row { display: grid; grid-template-columns: 130px 1fr 30px; align-items: center; gap: 10px; margin: 8px 0; font-size: 13px; }
.language-issue-row > div { height: 7px; border-radius: 99px; background: #edf0eb; overflow: hidden; }
.language-issue-row i { display: block; height: 100%; background: #d98d55; border-radius: inherit; }
.language-issue-row strong { text-align: right; }
.recipe-editor-dialog { width: min(820px, calc(100vw - 28px)); }
.editor-selects { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
#recipeEditorForm textarea { display: block; width: 100%; margin-top: 7px; border: 1px solid var(--line); border-radius: 12px; padding: 13px; background: white; font: inherit; resize: vertical; }
.editor-allergens { border: 1px solid var(--line); border-radius: 14px; padding: 13px; margin: 0 0 16px; }
.editor-allergens legend { font-weight: 800; padding: 0 6px; }
.editor-allergens label { display: inline-flex; align-items: center; gap: 6px; margin: 6px 14px 6px 0; }
.editor-allergens input { width: 18px; height: 18px; margin: 0; accent-color: var(--green); }
.onboarding-dialog { width: min(570px, calc(100vw - 28px)); }
.onboarding-panel { padding: 30px; text-align: center; }
.onboarding-progress { height: 6px; background: #e5e9e2; border-radius: 999px; overflow: hidden; margin-bottom: 28px; }
.onboarding-progress i { display: block; height: 100%; background: var(--lime); transition: width 0.25s ease; }
.onboarding-icon { width: 76px; height: 76px; margin: 15px auto; border-radius: 22px; display: grid; place-items: center; background: #edf4de; color: var(--green); font-size: 38px; font-weight: 800; }
.onboarding-panel h2 { margin: 12px 0; font: 700 30px Georgia; }
.onboarding-panel > p:not(.eyebrow):not(.onboarding-count) { color: var(--muted); font-size: 16px; line-height: 1.55; }
.onboarding-count { font-weight: 800; color: var(--green); }
.onboarding-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.onboarding-actions > button:first-child { border: 0; background: transparent; color: var(--muted); padding: 12px; font-weight: 750; cursor: pointer; }
.site-footer {
  max-width: 1180px;
  margin: -70px auto 95px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
}
.site-footer button {
  border: 0;
  background: transparent;
  color: var(--green);
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.legal-dialog { width: min(880px, calc(100vw - 28px)); max-height: min(88vh, 920px); }
.legal-panel { padding: 28px; }
.legal-head { position: sticky; top: -28px; z-index: 2; margin: -28px -28px 22px; padding: 24px 28px 18px; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.price-card { border: 1px solid var(--line); border-radius: 18px; padding: 20px; background: #f7f8f4; }
.price-card.featured { color: white; background: var(--green); border-color: var(--green); }
.price-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price-card .recommended { display: inline-block !important; padding: 5px 9px; border-radius: 99px; background: rgba(255,255,255,.16); color: white; font-size: 12px; }
.price-card span { display: block; font-weight: 800; }
.price-card strong { display: block; margin: 8px 0 3px; font: 700 32px Georgia, serif; }
.price-card small { color: inherit; opacity: .78; }
.price-save { display: inline-block !important; margin-top: 12px; padding: 5px 9px; border-radius: 99px; background: var(--lime); color: var(--green); font-size: 12px; }
.pricing-note { margin: 15px 0 26px; color: var(--muted); line-height: 1.5; }
.legal-updated { padding-bottom: 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.legal-content h3 { margin: 25px 0 8px; font: 700 21px Georgia, serif; }
.legal-content p { margin: 0; color: #42534b; line-height: 1.65; }
.legal-content a { color: var(--green); font-weight: 750; }
@media (max-width: 760px) {
  main {
    padding: 28px 16px 110px;
  }
  .welcome {
    gap: 18px;
  }
  .waste-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 22px;
  }
  .home-budget { border-left: 0; border-top: 1px solid rgba(255,255,255,.25); padding: 16px 0 0; }
  .home-budget b { font-size: 18px; }
  .quick-grid,
  .recipe-grid,
  .recipe-grid.large,
  .expiry-row,
  .plan-summary,
  .admin-stats {
    grid-template-columns: 1fr;
  }
  .admin-shortcut span { display: none; }
  .admin-section-head { align-items: flex-start; flex-direction: column; }
  .admin-report { grid-template-columns: 1fr; }
  .admin-report-actions { flex-direction: row; justify-content: flex-start; flex-wrap: wrap; }
  .editor-selects { grid-template-columns: 1fr; }
  .admin-filters { grid-template-columns: 1fr; }
  .beta-progress-grid { grid-template-columns: 1fr 1fr; }
  .plan-summary > div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }
  .expiry-row {
    display: flex;
    overflow: auto;
  }
  .expiry {
    min-width: 240px;
  }
  .page-title {
    align-items: center;
  }
  .page-title h1 {
    font-size: 35px;
  }
  .page-title .solid {
    font-size: 13px;
  }
  .day {
    grid-template-columns: minmax(104px, 0.8fr) minmax(0, 1.4fr) auto;
    gap: 10px;
    padding: 14px;
  }
  .day > div { min-width: 0; }
  .day-name { display: block; overflow-wrap: normal; word-break: normal; line-height: 1.2; }
  .day-meal {
    display: block;
    width: 100%;
    min-width: 0;
    line-height: 1.25;
    overflow-wrap: anywhere;
    font-style: normal;
    text-decoration: none;
    transform: none !important;
    rotate: none;
  }
  .bottom-nav {
    bottom: 8px;
    width: calc(100% - 16px);
    justify-content: space-around;
  }
  .bottom-nav button {
    padding: 8px;
    flex-direction: column;
    font-size: 10px;
    gap: 1px;
  }
  .pantry-item {
    grid-template-columns: 42px minmax(0, 1fr) auto;
  }
  .pantry-item .days {
    display: none;
  }
  .recipe-art {
    height: 115px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .custom-shopping-form { grid-template-columns: 1fr; }
  .recipe-actions { grid-template-columns: 1fr; }
  .purchase-actions { flex-direction: column-reverse; }
  .site-footer { margin-top: -75px; padding: 0 16px; align-items: flex-start; flex-direction: column; gap: 8px; }
  .legal-panel { padding: 20px; }
  .legal-head { top: -20px; margin: -20px -20px 18px; padding: 20px 20px 14px; }
  .legal-head h2 { font-size: 25px; }
  .pricing-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .home-budget { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-budget > div:nth-child(3) { grid-column: 1 / -1; }
}
.allergen-options {
  margin: 4px 0 18px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.allergen-options legend {
  padding: 0 6px;
  font-size: 13px;
  font-weight: 750;
}
.allergen-options label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 8px 18px 2px 0;
  cursor: pointer;
}
.allergen-options input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--green);
}
html.auth-checking body { visibility: hidden; }
.avatar[hidden] { display: none; }

.guest-gate-dialog {
  width: min(92vw, 560px);
  padding: 0;
  border: 0;
  border-radius: 24px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 30px 90px rgba(12, 42, 30, .3);
}
.guest-gate-dialog::backdrop { background: rgba(13, 38, 29, .58); backdrop-filter: blur(3px); }
.guest-gate-panel { position: relative; padding: 38px; }
.guest-gate-panel .close { position: absolute; top: 16px; right: 16px; }
.guest-gate-badge { display: inline-flex; margin-bottom: 18px; padding: 7px 11px; border-radius: 999px; background: var(--green); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.guest-gate-panel h2 { margin: 0 0 14px; font: 700 clamp(1.8rem, 5vw, 2.5rem)/1.08 Georgia, serif; letter-spacing: -.025em; }
.guest-gate-panel p { margin: 0 0 14px; color: #53675e; font-size: 16px; line-height: 1.55; }
.guest-gate-panel .guest-gate-price { padding: 14px 16px; border: 1px solid #d8e5b1; border-radius: 14px; background: #f5f9e8; color: #355141; }
.guest-gate-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.guest-gate-actions .solid { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; text-align: center; text-decoration: none; }
.guest-gate-actions button { min-height: 50px; padding: 0 16px; border: 1px solid var(--line); border-radius: 13px; background: #fff; color: var(--ink); font-weight: 750; cursor: pointer; }
@media (max-width: 560px) {
  .guest-gate-panel { padding: 34px 22px 24px; }
  .guest-gate-actions { grid-template-columns: 1fr; }
}

.analytics-consent {
  position: fixed;
  z-index: 120;
  right: 22px;
  bottom: 96px;
  width: min(560px, calc(100vw - 32px));
  padding: 20px;
  border: 1px solid rgba(24, 57, 43, .2);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(20, 45, 34, .2);
  color: var(--green);
}
.analytics-consent[hidden] { display: none; }
.analytics-consent-copy strong { display: block; font-size: 18px; line-height: 1.3; }
.analytics-consent-copy p { margin: 7px 0 0; color: #526159; line-height: 1.5; }
.analytics-consent-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.analytics-consent-actions button { min-height: 44px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 12px; background: #f4f6f3; color: var(--green); font-weight: 750; cursor: pointer; }
.analytics-consent-actions .solid { border-color: var(--green); background: var(--green); color: #fff; }

@media (max-width: 560px) {
  .analytics-consent { right: 16px; bottom: 84px; padding: 17px; border-radius: 16px; }
  .analytics-consent-actions { align-items: stretch; flex-direction: column-reverse; }
  .analytics-consent-actions button { width: 100%; }
}

.home-benefit{color:var(--muted);font-size:18px;line-height:1.5;max-width:640px;margin:18px 0}
@media(max-width:700px){html[lang="pt-BR"] .brand-copy small{display:block;max-width:130px;font-size:10px;white-space:normal}}

.recipe-family-note, .recipe-family-caption { color: var(--muted); font-size: 14px; line-height: 1.5; }
.recipe-family-caption { margin: 6px 0 10px; }
.recipe-family-options { margin: 18px 0; padding: 16px; border-radius: 14px; background: #edf4ef; }
.recipe-family-options label { display: block; font-weight: 700; margin-bottom: 8px; }
.recipe-family-options select { width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--ink); padding: 10px; font: inherit; }

/* Keep recipe categories visible when the row grows. */
#recipeFilters { flex-wrap: wrap; overflow: visible; }

.household-bar { display:flex; align-items:center; justify-content:space-between; gap:20px; background:#edf3e9; border:1px solid #d4dfce; border-radius:18px; padding:16px 20px; margin:0 0 24px; }
.household-copy { min-width:0; }
.household-bar label { display:block; font-weight:750; color:var(--ink); font-size:17px; }
.household-bar p { margin:5px 0 0; color:#53675a; font-size:14px; line-height:1.45; }
.household-bar select { flex-shrink:0; max-width:100%; width:auto; min-width:155px; min-height:46px; border:1px solid #92a888; border-radius:12px; background:white; color:var(--ink); font-family:inherit; font-size:16px; font-weight:600; line-height:1.3; padding:10px 34px 10px 14px; }
.household-bar select:focus-visible { outline:2px solid #315d41; outline-offset:3px; }
@media(max-width:600px) { .household-bar { align-items:stretch; flex-direction:column; gap:12px; padding:15px; margin-bottom:20px; } .household-bar select { width:100%; } }
