:root {
  color-scheme: light;
  --ink: #22313f;
  --muted: #657482;
  --soft: #8795a1;
  --line: #d9e3e8;
  --cream: #fbf7f0;
  --panel: rgba(255, 253, 248, 0.96);
  --field: #f8fbfb;
  --page: #e9f2f3;
  --forest: #0f4c5c;
  --forest-2: #1b8a8f;
  --sage: #d8efe7;
  --clay: #e36b5d;
  --tomato: #d14f64;
  --berry: #4c5aa8;
  --gold: #f2b84b;
  --blue: #2f6fbb;
  --shadow: 0 22px 55px rgba(32, 67, 78, 0.18);
  --soft-shadow: 0 12px 28px rgba(32, 67, 78, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(247, 251, 251, 0.9), rgba(233, 242, 243, 0.94)),
    url("../../assets/food-menu-background.jpg") center top / min(1800px, 180vw) auto no-repeat fixed,
    linear-gradient(135deg, rgba(27, 138, 143, 0.08) 25%, transparent 25%) 0 0 / 28px 28px,
    linear-gradient(225deg, rgba(227, 107, 93, 0.07) 25%, transparent 25%) 0 0 / 28px 28px,
    linear-gradient(180deg, #f7fbfb 0%, var(--page) 420px, #f7efe7 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, #21a3a8, var(--forest-2));
  box-shadow: 0 12px 22px rgba(27, 138, 143, 0.22);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  padding: 0 18px;
  transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

button:hover {
  box-shadow: 0 16px 28px rgba(27, 138, 143, 0.28);
  filter: saturate(1.06);
  transform: translateY(-1px);
}

.secondary-button {
  background: linear-gradient(180deg, #6472d8, var(--berry));
  box-shadow: 0 12px 22px rgba(76, 90, 168, 0.22);
}

.cook-mode-button {
  background: linear-gradient(180deg, #ffce63, #d7812d);
  box-shadow: 0 12px 22px rgba(215, 129, 45, 0.24);
  color: #332114;
}

.cook-mode-button.active {
  background: linear-gradient(180deg, #62d6a0, #20805a);
  box-shadow: 0 0 0 3px rgba(98, 214, 160, 0.28), 0 16px 28px rgba(32, 128, 90, 0.24);
  color: #fff;
}

.app-header {
  align-items: center;
  background:
    linear-gradient(105deg, rgba(15, 76, 92, 0.96) 0%, rgba(15, 76, 92, 0.86) 42%, rgba(15, 76, 92, 0.22) 74%),
    linear-gradient(180deg, rgba(15, 76, 92, 0.1), rgba(227, 107, 93, 0.08)),
    url("../../assets/food-menu-background.jpg") 72% 24% / cover no-repeat,
    linear-gradient(90deg, var(--forest), var(--clay));
  color: #fbf7f0;
  display: flex;
  justify-content: space-between;
  min-height: 245px;
  overflow: hidden;
  padding: 38px clamp(18px, 5vw, 64px) 58px;
  position: relative;
}

.app-header::before {
  background:
    linear-gradient(90deg, rgba(251, 247, 240, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(251, 247, 240, 0.08) 1px, transparent 1px);
  background-size: 36px 36px;
  content: "";
  inset: 0;
  opacity: 0.46;
  position: absolute;
}

.app-header::after {
  background:
    linear-gradient(180deg, rgba(15, 76, 92, 0.04), rgba(15, 76, 92, 0.1)),
    url("../../assets/food-menu-background.jpg") 100% 72% / 760px auto no-repeat;
  border: 8px solid rgba(251, 247, 240, 0.24);
  border-radius: 8px;
  box-shadow: 0 22px 48px rgba(7, 35, 42, 0.28);
  content: "";
  height: 178px;
  opacity: 0.94;
  position: absolute;
  right: clamp(18px, 4vw, 54px);
  top: 38px;
  transform: rotate(2deg);
  width: min(36vw, 430px);
}

.header-copy,
.header-actions {
  position: relative;
  z-index: 1;
}

.app-header h1 {
  text-shadow: 0 4px 28px rgba(7, 35, 42, 0.46);
  font-size: clamp(2.55rem, 5vw, 5.2rem);
  line-height: 0.94;
  margin: 0;
  max-width: 780px;
  text-wrap: balance;
}

.header-subtitle {
  color: #d6f1ee;
  font-size: 1.08rem;
  font-weight: 650;
  line-height: 1.45;
  margin: 16px 0 0;
  max-width: 610px;
  text-shadow: 0 2px 18px rgba(7, 35, 42, 0.36);
}

.section-title h2 {
  font-size: clamp(1.28rem, 2vw, 1.8rem);
  line-height: 1.1;
  margin: 0;
}

.eyebrow {
  color: var(--gold);
  font-size: 0.73rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.panel .eyebrow {
  color: var(--tomato);
}

.header-actions,
.control-panel,
.recipe-toolbar,
.add-item-row {
  display: flex;
  gap: 12px;
}

.app-shell {
  margin-top: -54px;
  padding: 0 clamp(16px, 4vw, 48px) 52px;
  position: relative;
  z-index: 2;
}

.dashboard-cards {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

.summary-card {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(235, 248, 247, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  min-height: 116px;
  overflow: hidden;
  padding: 16px;
  position: relative;
}

.summary-card::after {
  background: linear-gradient(180deg, var(--forest-2), var(--clay));
  content: "";
  inset: 0 auto 0 0;
  position: absolute;
  width: 6px;
}

.summary-card span {
  color: #39737a;
  display: block;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.summary-card strong {
  display: block;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.05;
}

.summary-card small {
  margin-top: 8px;
}

.balanced-plate-panel {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.98), rgba(235, 248, 247, 0.96)),
    linear-gradient(90deg, rgba(216, 239, 231, 0.4), rgba(242, 184, 75, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(220px, 1fr) auto minmax(250px, 1.05fr);
  margin-bottom: 18px;
  overflow: hidden;
  padding: 18px;
}

.balanced-plate-copy h2 {
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.05;
  margin: 0;
}

.balanced-plate-copy p {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
  margin: 10px 0 0;
  max-width: 48ch;
}

.balanced-plate-visual {
  justify-self: center;
}

.plate-graphic {
  background: #fffdf8;
  border: 9px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  box-shadow: 0 18px 36px rgba(32, 67, 78, 0.16);
  display: grid;
  gap: 3px;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  height: 198px;
  overflow: hidden;
  width: 198px;
}

.plate-section {
  align-items: center;
  color: #17343b;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 12px;
  text-align: center;
}

.plate-section span {
  font-size: 1.3rem;
  font-weight: 950;
  line-height: 1;
}

.plate-section strong {
  font-size: 0.76rem;
  line-height: 1.1;
  margin-top: 5px;
  text-transform: uppercase;
}

.plate-veggies {
  background: linear-gradient(145deg, #b9e8b5, #e4f7d5);
  grid-row: 1 / 3;
}

.plate-protein {
  background: linear-gradient(145deg, #ffd08a, #fff0c9);
}

.plate-carbs {
  background: linear-gradient(145deg, #c9defa, #eef5ff);
}

.balanced-plate-rules {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.balanced-plate-rules li {
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(217, 227, 232, 0.8);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.34;
  padding: 11px 12px;
}

.balanced-plate-rules strong {
  color: var(--forest);
}

.carb-timing-panel {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.carb-timing-panel article {
  background: rgba(255, 253, 248, 0.96);
  border: 1px solid rgba(217, 227, 232, 0.78);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  padding: 14px;
}

.carb-timing-panel span {
  color: var(--tomato);
  display: block;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.carb-timing-panel strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.15;
}

.carb-timing-panel p {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.36;
  margin: 7px 0 0;
}

.control-panel {
  align-items: end;
  background: rgba(255, 253, 248, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  box-shadow: var(--shadow);
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding: 16px;
}

.store-finder-band {
  background: rgba(255, 253, 248, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  margin-bottom: 22px;
  padding: 18px;
}

.store-finder-controls {
  align-items: end;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.store-finder-controls h2 {
  margin: 0;
}

.zip-search-form {
  align-items: end;
  display: flex;
  gap: 10px;
}

.zip-search-form label {
  min-width: 150px;
}

.store-finder-results {
  margin-top: 16px;
}

.store-finder-empty,
.store-finder-error,
.store-result-empty {
  color: var(--muted);
  margin: 0;
}

.store-finder-error {
  color: #a53f4d;
  font-weight: 800;
}

.store-results-heading {
  align-items: start;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding-top: 14px;
}

.store-results-heading strong,
.store-results-heading span {
  display: block;
}

.store-results-heading span,
.store-results-heading small {
  color: var(--muted);
  margin-top: 4px;
}

.store-results-heading small {
  max-width: 390px;
  text-align: right;
}

.store-results-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.store-result-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.store-result-group h3 {
  background: #eef8f6;
  color: var(--forest);
  font-size: 0.82rem;
  margin: 0;
  padding: 10px 12px;
  text-transform: uppercase;
}

.store-result-empty {
  padding: 12px;
}

.located-store {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--ink);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 11px 12px;
  text-decoration: none;
}

.located-store:first-of-type {
  border-top: 0;
}

.located-store:hover {
  background: #f7fbfb;
}

.located-store span,
.located-store small {
  display: block;
}

.located-store small {
  color: var(--muted);
  margin-top: 3px;
}

.located-store b {
  color: var(--forest-2);
  flex: 0 0 auto;
}

label {
  color: #607785;
  display: grid;
  flex: 1;
  font-size: 0.78rem;
  font-weight: 900;
  gap: 7px;
  min-width: 170px;
  text-transform: uppercase;
}

input,
select,
textarea {
  background: var(--field);
  border: 1px solid #cddce2;
  border-radius: 8px;
  color: var(--ink);
  min-height: 42px;
  outline: none;
  padding: 10px 11px;
  text-transform: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
  width: 100%;
}

input:focus,
select:focus,
textarea:focus {
  background: #fffdf8;
  border-color: rgba(27, 138, 143, 0.62);
  box-shadow: 0 0 0 3px rgba(27, 138, 143, 0.14);
}

.layout-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1.18fr) minmax(380px, 0.82fr);
}

.lower-grid {
  margin-top: 22px;
}

.panel {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  overflow: hidden;
  padding: 22px;
}

.menu-panel {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(240, 249, 249, 0.97));
}

.editor-panel {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(239, 245, 255, 0.96));
}

.section-title {
  align-items: start;
  border-bottom: 1px solid #d9e3e8;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin: -2px -2px 18px;
  padding: 0 0 16px;
}

.status-pill {
  background: linear-gradient(180deg, #e3f7f4, #d6f0ec);
  border: 1px solid rgba(27, 138, 143, 0.18);
  border-radius: 8px;
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 950;
  padding: 9px 12px;
  white-space: nowrap;
}

.menu-grid {
  display: grid;
  gap: 13px;
}

.day-row {
  background: #fffdf8;
  border: 1px solid #d9e3e8;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(32, 67, 78, 0.05);
  display: grid;
  gap: 12px;
  grid-template-columns: 104px 1fr;
  padding: 12px;
}

.activity-day-row {
  border-color: rgba(32, 128, 90, 0.28);
  box-shadow: 0 14px 28px rgba(32, 128, 90, 0.1);
}

.day-heading {
  align-content: start;
  display: grid;
  gap: 9px;
}

.day-row h3 {
  align-items: center;
  background:
    linear-gradient(180deg, rgba(229, 246, 244, 0.98), rgba(205, 234, 237, 0.94));
  border: 1px solid #b8d9df;
  border-radius: 8px;
  color: #235c65;
  display: flex;
  font-size: 0.94rem;
  justify-content: center;
  margin: 0;
  min-height: 86px;
  padding: 10px;
  text-align: center;
}

.day-heading p {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 760;
  line-height: 1.34;
  margin: 0;
}

.daily-macros {
  background: #f4fbfb;
  border: 1px solid #cfe2e6;
  border-radius: 8px;
  color: #34565d;
  display: grid;
  gap: 4px;
  padding: 9px;
}

.daily-macros strong {
  color: var(--forest);
  font-size: 0.98rem;
  line-height: 1.1;
}

.daily-macros span {
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.1;
}

.activity-toggle {
  background: linear-gradient(180deg, #f5c560, #d7812d);
  box-shadow: 0 10px 18px rgba(215, 129, 45, 0.18);
  color: #3a2815;
  font-size: 0.7rem;
  min-height: 38px;
  padding: 0 10px;
}

.activity-toggle.active {
  background: linear-gradient(180deg, #5fd79f, #20805a);
  color: #fff;
}

.meal-stack {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.meal-button,
.empty-meal {
  align-content: start;
  border: 1px solid #d4e1e7;
  border-radius: 8px;
  box-shadow: 0 9px 18px rgba(32, 67, 78, 0.08);
  color: var(--ink);
  display: grid;
  font-size: 0.9rem;
  font-weight: 850;
  gap: 8px;
  min-height: 106px;
  overflow: hidden;
  padding: 12px;
  position: relative;
  text-align: left;
}

.meal-button::before {
  content: "";
  inset: 0 0 auto 0;
  height: 5px;
  position: absolute;
}

.meal-button:hover {
  color: var(--ink);
}

.meal-button strong {
  line-height: 1.22;
  position: relative;
  z-index: 1;
}

.meal-button small {
  color: rgba(31, 36, 31, 0.66);
  font-weight: 800;
  margin: 0;
  position: relative;
  z-index: 1;
}

.meal-macros {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(217, 227, 232, 0.72);
  border-radius: 8px;
  color: #244f58;
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1.2;
  padding: 7px 8px;
  position: relative;
  z-index: 1;
}

.meal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  position: relative;
  z-index: 1;
}

.meal-badges b {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(217, 227, 232, 0.76);
  border-radius: 999px;
  color: #34565d;
  font-size: 0.62rem;
  font-weight: 950;
  line-height: 1;
  padding: 5px 7px;
}

.breakfast-meal {
  background: linear-gradient(145deg, #fff1d6, #fffdf8);
}

.lunch-meal {
  background: linear-gradient(145deg, #e2f6f4, #fffdf8);
}

.dinner-meal {
  background: linear-gradient(145deg, #f0f1ff, #fff7f4);
}

.snack1-meal,
.snack2-meal {
  background: linear-gradient(145deg, #ecf8df, #fffdf8);
}

.drink-meal {
  background: linear-gradient(145deg, #e7f4ff, #fffdf8);
}

.chicken-protein::before {
  background: #f2b84b;
}

.beef-protein::before {
  background: #d14f64;
}

.fish-protein::before {
  background: #2f6fbb;
}

.pork-protein::before {
  background: #c86fa3;
}

.turkey-protein::before {
  background: #8f7a3d;
}

.vegetarian-protein::before {
  background: #2ca66f;
}

.hydration-protein::before {
  background: #2087c7;
}

.dairy-protein::before {
  background: #6b83d8;
}

.meal-slot {
  align-self: start;
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-size: 0.66rem;
  font-weight: 950;
  justify-self: start;
  padding: 6px 8px;
  text-transform: uppercase;
}

.breakfast-meal .meal-slot {
  background: #e2982f;
}

.lunch-meal .meal-slot {
  background: var(--forest-2);
}

.dinner-meal .meal-slot {
  background: var(--berry);
}

.snack1-meal .meal-slot,
.snack2-meal .meal-slot {
  background: #5b8f2f;
}

.drink-meal .meal-slot {
  background: #247da5;
}

.empty-meal {
  align-items: center;
  background:
    repeating-linear-gradient(135deg, #eef6f7, #eef6f7 8px, #fbf7f0 8px, #fbf7f0 16px);
  color: #8d98a2;
  font-size: 0.78rem;
  font-weight: 950;
  justify-content: center;
  text-align: center;
  text-transform: uppercase;
}

.selected-meal {
  border-color: var(--forest-2);
  box-shadow: 0 0 0 3px rgba(27, 138, 143, 0.16), 0 16px 28px rgba(27, 138, 143, 0.13);
}

.recipe-editor {
  display: grid;
  gap: 16px;
}

.plate-fit {
  background:
    linear-gradient(135deg, rgba(216, 239, 231, 0.96), rgba(255, 253, 248, 0.98)),
    linear-gradient(90deg, rgba(44, 166, 111, 0.12), rgba(47, 111, 187, 0.1));
  border: 1px solid rgba(44, 166, 111, 0.24);
  border-left: 6px solid #2ca66f;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(32, 67, 78, 0.08);
  display: grid;
  gap: 8px;
  padding: 13px 14px;
}

.plate-fit span {
  color: #27725a;
  display: block;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.plate-fit strong {
  display: block;
  font-size: clamp(1rem, 1.6vw, 1.24rem);
  line-height: 1.16;
}

.plate-fit p {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 760;
  line-height: 1.4;
  margin: 0;
}

.cook-details {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cook-details div {
  background: linear-gradient(180deg, #fff0c9, #fffaf0);
  border: 1px solid rgba(226, 152, 47, 0.28);
  border-radius: 8px;
  padding: 12px;
}

.cook-details span {
  color: #886016;
  display: block;
  font-size: 0.68rem;
  font-weight: 950;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.cook-details strong {
  display: block;
  line-height: 1.3;
}

.recipe-toolbar {
  background: #f4fbfb;
  border: 1px solid #d4e1e7;
  border-radius: 8px;
  flex-wrap: wrap;
  padding: 12px;
}

.recipe-toolbar button {
  align-self: end;
}

.recipe-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.recipe-actions button {
  flex: 1 1 148px;
}

.recipe-actions button.active {
  background: linear-gradient(180deg, #5fd79f, #20805a);
  box-shadow: 0 0 0 3px rgba(95, 215, 159, 0.2), 0 14px 24px rgba(32, 128, 90, 0.2);
}

.recipe-actions button[data-action="toggle-dislike"].active {
  background: linear-gradient(180deg, #8b98a7, #55616d);
}

.ingredient-table {
  background: #f7fbfb;
  border: 1px solid #d4e1e7;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(150px, 1.4fr) 72px 72px 72px 72px 72px 72px;
  overflow-x: auto;
  padding: 12px;
}

.ingredient-header {
  color: #39737a;
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.prep-guide,
.low-carb-options {
  background: #fffdf8;
  border: 1px solid #d9e3e8;
  border-radius: 8px;
  padding: 12px 14px;
}

.low-carb-options {
  background: #f3fbf7;
  border-color: #cde8dc;
}

.prep-guide h3,
.low-carb-options h3 {
  color: var(--forest);
  font-size: 0.9rem;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.low-carb-options h3 {
  color: #217350;
}

.prep-guide ul,
.low-carb-options ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
}

.prep-guide li,
.low-carb-options li {
  color: #435d65;
  line-height: 1.45;
}

.low-carb-options li strong {
  color: #245b45;
}

.notes-field {
  min-width: 100%;
}

.steps {
  background: linear-gradient(180deg, rgba(224, 245, 242, 0.85), rgba(247, 252, 252, 0.74));
  border: 1px solid rgba(27, 138, 143, 0.14);
  border-radius: 8px;
  color: #435d65;
  line-height: 1.55;
  margin: 0;
  padding: 15px 18px 15px 34px;
}

.steps li {
  margin: 0 0 8px;
}

.add-item-row {
  align-items: center;
  background: #fff7f4;
  border: 1px solid #ead7d4;
  border-radius: 8px;
  margin-bottom: 16px;
  padding: 12px;
}

.add-item-row input:first-child {
  flex: 1;
}

.add-item-row input,
.add-item-row select {
  width: auto;
}

.shopping-list,
.price-comparison {
  display: grid;
  gap: 12px;
}

.shopping-run {
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(244, 251, 251, 0.9));
  border: 1px solid #cfe0e5;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(32, 67, 78, 0.05);
  display: grid;
  gap: 10px;
  overflow: hidden;
  padding: 10px;
}

.shopping-run-header {
  align-items: center;
  background: linear-gradient(90deg, #fff0c9, #e3f7f4);
  border: 1px solid rgba(27, 138, 143, 0.12);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 11px 12px;
}

.shopping-run-header span {
  color: var(--forest);
  font-weight: 950;
  text-transform: uppercase;
}

.shopping-run-header small {
  margin: 0;
  text-align: right;
}

.empty-shopping-run {
  color: var(--muted);
  font-weight: 800;
  margin: 0;
  padding: 12px;
}

.shopping-section {
  background: #fffdf8;
  border: 1px solid #d9e3e8;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(32, 67, 78, 0.05);
  overflow: hidden;
}

.shopping-section h3 {
  background: linear-gradient(90deg, var(--forest), var(--forest-2));
  color: #fbf7f0;
  font-size: 0.95rem;
  margin: 0;
  padding: 12px 14px;
}

.shopping-item,
.price-row {
  align-items: center;
  border-top: 1px solid #dfe9ed;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 104px 132px;
  padding: 12px 14px;
}

.shopping-item:nth-child(odd) {
  background: #f4fbfb;
}

.quantity-badge,
.aisle-badge {
  border-radius: 8px;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 950;
  justify-content: center;
  padding: 7px 9px;
}

.quantity-badge {
  background: #fff0c9;
  color: #886016;
}

.aisle-badge {
  background: #e4eeff;
  color: var(--blue);
}

.price-row {
  background: #fffdf8;
  border: 1px solid #d9e3e8;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(32, 67, 78, 0.05);
  grid-template-columns: 1fr 100px;
}

.price-row > span:last-child {
  color: var(--forest-2);
  font-size: 1.08rem;
  font-weight: 950;
  text-align: right;
}

small {
  color: var(--muted);
  display: block;
  font-size: 0.76rem;
  line-height: 1.35;
  margin-top: 4px;
}

.fine-print {
  background: rgba(224, 245, 242, 0.68);
  border: 1px solid rgba(27, 138, 143, 0.14);
  border-radius: 8px;
  color: #516973;
  font-size: 0.82rem;
  line-height: 1.45;
  padding: 12px;
}

.toast {
  background: var(--ink);
  border-radius: 8px;
  bottom: 22px;
  box-shadow: var(--shadow);
  color: #fff;
  font-weight: 950;
  left: 50%;
  padding: 12px 18px;
  position: fixed;
  transform: translateX(-50%);
  z-index: 10;
}

@media (max-width: 1120px) {
  .dashboard-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .balanced-plate-panel {
    grid-template-columns: 1fr;
  }

  .carb-timing-panel {
    grid-template-columns: 1fr;
  }

  .balanced-plate-visual {
    justify-self: start;
  }

  .layout-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .store-finder-controls,
  .store-results-heading,
  .zip-search-form {
    align-items: stretch;
    flex-direction: column;
  }

  .store-results-heading small {
    max-width: none;
    text-align: left;
  }

  .store-results-grid {
    grid-template-columns: 1fr;
  }

  .app-header {
    align-items: start;
    display: grid;
    gap: 18px;
    min-height: 236px;
    padding-bottom: 44px;
  }

  .app-header::after {
    background-position: 92% 70%;
    background-size: 560px auto;
    height: 118px;
    opacity: 0.82;
    right: -26px;
    top: 34px;
    width: 170px;
  }

  .header-actions,
  .add-item-row {
    flex-wrap: wrap;
  }

  .header-actions button {
    flex: 1 1 148px;
  }

  .app-shell {
    margin-top: -34px;
  }

  .dashboard-cards {
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-card {
    min-height: 96px;
    padding: 13px 13px 13px 15px;
  }

  .summary-card strong {
    font-size: 1.16rem;
  }

  .summary-card small {
    font-size: 0.72rem;
  }

  .balanced-plate-panel {
    gap: 14px;
    padding: 14px;
  }

  .plate-graphic {
    height: 172px;
    width: 172px;
  }

  .balanced-plate-rules li {
    font-size: 0.82rem;
  }

  .day-row {
    grid-template-columns: 1fr;
  }

  .day-row h3 {
    min-height: 46px;
  }

  .meal-stack {
    grid-template-columns: 1fr;
  }

  .meal-button,
  .empty-meal {
    min-height: 88px;
  }

  .section-title {
    display: grid;
  }

  .cook-details {
    grid-template-columns: 1fr;
  }

  .shopping-item {
    grid-template-columns: 1fr;
  }

  .ingredient-table {
    grid-template-columns: minmax(145px, 1.2fr) 70px 70px 64px 72px 64px 64px;
    overflow-x: auto;
  }
}

@media (max-width: 430px) {
  .dashboard-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 940px) and (orientation: landscape) {
  .app-header {
    align-items: center;
    min-height: 176px;
    padding: 20px clamp(14px, 3vw, 34px) 34px;
  }

  .app-header::after {
    height: 116px;
    opacity: 0.7;
    right: 18px;
    top: 18px;
    width: 220px;
  }

  .app-header h1 {
    font-size: clamp(2rem, 5vw, 3.6rem);
    max-width: 520px;
  }

  .header-subtitle {
    font-size: 0.92rem;
    margin-top: 10px;
    max-width: 520px;
  }

  .header-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(112px, 1fr));
    max-width: 470px;
  }

  .app-shell {
    margin-top: -28px;
    padding-inline: 14px;
  }

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

  .summary-card {
    min-height: 82px;
    padding: 11px 11px 11px 14px;
  }

  .summary-card strong {
    font-size: 1.05rem;
  }

  .layout-grid {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
  }

  .day-row {
    grid-template-columns: 82px 1fr;
    padding: 9px;
  }

  .day-row h3 {
    min-height: 70px;
  }

  .meal-stack {
    grid-template-columns: repeat(3, minmax(118px, 1fr));
  }

  .meal-button,
  .empty-meal {
    min-height: 82px;
    padding: 9px;
  }
}

@media print {
  body {
    background: #fff;
  }

  .app-header,
  .dashboard-cards,
  .control-panel,
  .menu-panel,
  .editor-panel,
  .price-comparison,
  .fine-print,
  .add-item-row {
    display: none !important;
  }

  .app-shell,
  .panel {
    margin: 0;
    padding: 0;
  }

  .layout-grid,
  .lower-grid {
    display: block;
    margin: 0;
  }

  .panel {
    border: 0;
    box-shadow: none;
  }

  .shopping-section {
    break-inside: avoid;
    margin-bottom: 12px;
  }

  .shopping-run {
    border: 1px solid #ccc;
    box-shadow: none;
    break-inside: avoid;
    margin-bottom: 14px;
  }

  .shopping-run-header {
    background: #f7f7f7;
    color: #111;
  }

  .shopping-section h3 {
    background: #f1f1f1;
    color: #111;
  }

  .shopping-item {
    grid-template-columns: 1fr 90px 130px;
    min-height: 34px;
    padding: 7px 10px;
  }
}
