:root {
  --ink: #1d2d27;
  --muted: #7d8983;
  --line: #e4e8e1;
  --paper: #f7f8f4;
  --white: #ffffff;
  --mint: #dcefe5;
  --mint-deep: #a8d8c1;
  --coral: #f1795e;
  --apricot: #fff0db;
  --lavender: #ece8f8;
  --sky: #e4f1f4;
  --yellow: #fbf2cd;
  --shadow: 0 18px 44px rgba(41, 62, 53, 0.08);
}

.ingredient-scene {
  overflow: hidden;
}

.ingredient-visual {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 15px;
  justify-items: center;
  width: min(86%, 330px);
  padding: 22px 18px 18px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 28px;
  background: rgba(255, 253, 249, 0.54);
  box-shadow: 0 18px 30px rgba(78, 72, 50, 0.1);
  transform: rotate(-2deg);
}

.ingredient-orbs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 88px;
}

.ingredient-orb {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border: 5px solid rgba(255, 255, 255, 0.76);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(232, 245, 229, 0.85));
  box-shadow: 0 9px 17px rgba(78, 72, 50, 0.13), inset 0 -7px 13px rgba(118, 156, 118, 0.1);
  font-size: 53px;
  line-height: 1;
  filter: saturate(1.08);
}

.ingredient-orb + .ingredient-orb {
  transform: translateY(13px) rotate(7deg);
}

.ingredient-visual-copy {
  display: grid;
  gap: 4px;
  width: 100%;
  text-align: center;
}

.ingredient-visual-copy span {
  color: #739178;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.ingredient-visual-copy strong {
  color: #3e3027;
  font-size: 22px;
  letter-spacing: -0.05em;
}

.ingredient-visual-copy small {
  overflow: hidden;
  color: #88796c;
  font-size: 11px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.install-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 20px;
  background: rgba(255, 253, 249, 0.62);
  box-shadow: 0 12px 24px rgba(78, 72, 50, 0.08);
}

.install-card-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: #3f6446;
  color: #fff;
  font-size: 21px;
  font-weight: 800;
}

.install-card-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.install-card-copy .eyebrow {
  margin: 0;
  color: #789076;
  font-size: 9px;
}

.install-card-copy strong {
  color: #3e3027;
  font-size: 13px;
}

.install-card-copy > span,
.install-help {
  color: #88796c;
  font-size: 10px;
  line-height: 1.45;
}

.install-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.install-button {
  border: 0;
  border-radius: 999px;
  padding: 9px 12px;
  background: #3f6446;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.install-button:hover {
  background: #2f5137;
}

.install-dismiss {
  border: 0;
  padding: 4px;
  background: transparent;
  color: #8d8276;
  font-size: 10px;
  cursor: pointer;
}

@media (max-width: 680px) {
  .ingredient-visual {
    width: min(88%, 300px);
    padding: 18px 13px 15px;
  }

  .ingredient-orb {
    width: 76px;
    height: 76px;
    font-size: 43px;
  }

  .ingredient-visual-copy strong {
    font-size: 19px;
  }

  .install-card {
    grid-template-columns: auto 1fr;
    gap: 10px;
    padding: 12px;
  }

  .install-card-actions {
    grid-column: 2;
    justify-content: flex-start;
  }

  .install-button {
    flex: 1;
  }
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(241, 121, 94, 0.34);
  outline-offset: 3px;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 38px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 248, 244, 0.92);
}

.brand-lockup,
.topbar-actions,
.save-state,
.sidebar-footer,
.hero-actions,
.hero-footnote,
.insight-card,
.section-heading,
.control-bar,
.meal-meta,
.plan-card-topline,
.plan-card-bottom,
.shopping-progress,
.category-heading,
.shopping-item,
.shopping-note,
.input-row,
.suggested-tags {
  display: flex;
  align-items: center;
}

.brand-lockup {
  gap: 11px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 13px 13px 13px 5px;
  color: var(--white);
  background: var(--coral);
  font-size: 25px;
  line-height: 1;
  transform: rotate(-12deg);
}

.brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-subtitle,
.eyebrow,
.plate-label,
.mode-label,
.control-label,
.breakdown-label,
.day-number,
.meal-meta,
.plan-date,
.plan-budget,
.insight-label,
.category-heading > span:last-child,
.inventory-tile-top,
.inventory-tile-bottom,
.shopping-progress span,
.shopping-amount,
.main-footer {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-subtitle {
  margin-top: 2px;
  font-size: 8px;
  letter-spacing: 0.15em;
}

.topbar-actions {
  gap: 19px;
}

.save-state {
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.save-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #58bb87;
  box-shadow: 0 0 0 4px rgba(88, 187, 135, 0.13);
}

.avatar,
.mini-avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #274c3c;
  color: #e5f4ea;
  font-weight: 800;
}

.avatar {
  width: 35px;
  height: 35px;
  font-size: 13px;
}

.app-layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  min-height: calc(100vh - 76px);
}

.sidebar {
  display: flex;
  flex-direction: column;
  padding: 36px 22px 24px;
  border-right: 1px solid var(--line);
  background: #f2f4ef;
}

.sidebar-welcome {
  padding: 0 10px;
}

.eyebrow {
  margin: 0;
  font-size: 9px;
  letter-spacing: 0.19em;
}

.welcome-title {
  margin: 13px 0 6px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.6;
  letter-spacing: -0.05em;
}

.welcome-copy {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.side-nav {
  display: grid;
  gap: 4px;
  margin-top: 46px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border-radius: 12px;
  color: #79857e;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
  transition: 160ms ease;
}

.nav-item:hover,
.nav-item.is-active {
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 5px 18px rgba(44, 64, 54, 0.06);
}

.nav-item.is-active {
  color: var(--coral);
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 18px;
  color: currentColor;
  font-size: 16px;
}

.nav-arrow {
  margin-left: auto;
  color: var(--coral);
  font-size: 16px;
}

.nav-count {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-left: auto;
  border-radius: 7px;
  color: #69756e;
  background: #e4e9e3;
  font-size: 10px;
}

.sidebar-divider {
  height: 1px;
  margin: 24px 10px 22px;
  background: var(--line);
}

.today-mode-card {
  padding: 15px 15px 17px;
  border-radius: 16px;
  color: var(--ink);
  background: #fce2d4;
  text-align: left;
  transition: transform 160ms ease;
}

.today-mode-card:hover {
  transform: translateY(-2px);
}

.mode-card-top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.mode-spark {
  color: var(--coral);
  font-size: 14px;
}

.mode-label {
  color: #a6796d;
  font-size: 8px;
}

.today-mode-card strong {
  display: block;
  font-size: 13px;
  letter-spacing: -0.04em;
}

.mode-link {
  display: block;
  margin-top: 9px;
  color: #b47768;
  font-size: 10px;
  font-weight: 800;
}

.sidebar-footer {
  gap: 9px;
  margin-top: auto;
  padding: 19px 8px 0;
  border-top: 1px solid var(--line);
}

.mini-avatar {
  flex: 0 0 auto;
  width: 29px;
  height: 29px;
  font-size: 11px;
}

.footer-name,
.footer-copy {
  margin: 0;
}

.footer-name {
  font-size: 10px;
  font-weight: 800;
}

.footer-copy {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.more-button {
  margin-left: auto;
  padding: 6px 0 6px 8px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  letter-spacing: 0.1em;
}

.main-content {
  min-width: 0;
  padding: 47px clamp(28px, 4.2vw, 72px) 30px;
  overflow: hidden;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(340px, 1.08fr) minmax(350px, 0.92fr);
  gap: clamp(28px, 5vw, 86px);
  max-width: 1220px;
  margin: 0 auto;
}

.hero-copy {
  padding-top: 23px;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--coral);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.kicker-line {
  width: 32px;
  height: 1px;
  background: var(--coral);
}

.hero-copy h1 {
  max-width: 630px;
  margin: 22px 0 18px;
  color: var(--ink);
  font-size: clamp(38px, 4.15vw, 63px);
  font-weight: 800;
  letter-spacing: -0.095em;
  line-height: 1.15;
}

.hero-copy h1 em {
  position: relative;
  color: var(--coral);
  font-style: normal;
}

.hero-copy h1 em::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 1px;
  height: 5px;
  border-radius: 10px;
  background: #f7c9a7;
  content: "";
  transform: rotate(-1deg);
}

.hero-description {
  margin: 0;
  color: #78847d;
  font-size: 13px;
  font-weight: 600;
  line-height: 2;
}

.hero-actions {
  gap: 25px;
  margin-top: 28px;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 19px;
  padding: 14px 17px 14px 20px;
  border-radius: 12px;
  color: var(--white);
  background: var(--ink);
  box-shadow: 0 9px 18px rgba(29, 45, 39, 0.16);
  font-size: 11px;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.primary-button:hover {
  box-shadow: 0 12px 24px rgba(29, 45, 39, 0.2);
  transform: translateY(-2px);
}

.primary-button span:last-child {
  color: #a7d1bc;
  font-size: 17px;
}

.text-button,
.ghost-button,
.back-link {
  color: var(--coral);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
}

.text-button span,
.ghost-button span {
  margin-left: 5px;
  font-size: 15px;
}

.hero-footnote {
  gap: 8px;
  margin-top: 26px;
  color: #9ba69f;
  font-size: 10px;
  font-weight: 700;
}

.footnote-check {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  color: #4ca677;
  background: #d9f0e2;
  font-size: 10px;
}

.plate-card {
  position: relative;
  min-height: 405px;
  padding: 21px 24px 23px;
  border-radius: 26px;
  background: #e0f0e4;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.plate-card::before,
.plate-card::after {
  position: absolute;
  border-radius: 50%;
  content: "";
  opacity: 0.5;
}

.plate-card::before {
  top: -90px;
  right: -65px;
  width: 260px;
  height: 260px;
  background: #bfdcc8;
}

.plate-card::after {
  bottom: -115px;
  left: -85px;
  width: 270px;
  height: 270px;
  background: #eff7e7;
}

.plate-card-header,
.plate-card-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.plate-card-header {
  color: #5a8670;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.17em;
}

.plate-index {
  color: #8aad98;
  font-size: 10px;
}

.plate-scene {
  position: relative;
  display: grid;
  place-items: center;
  height: 275px;
}

.plate-shadow {
  position: absolute;
  bottom: 24px;
  width: 225px;
  height: 30px;
  border-radius: 50%;
  background: rgba(60, 99, 77, 0.18);
  filter: blur(11px);
}

.plate {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 238px;
  height: 185px;
  border-radius: 50%;
  background: #fdfdf9;
  box-shadow: 0 12px 0 rgba(117, 151, 127, 0.28), 0 18px 25px rgba(47, 85, 64, 0.13);
  transform: rotate(-4deg);
}

.dish {
  position: relative;
  width: 176px;
  height: 125px;
  border-radius: 48% 48% 46% 46%;
  background: linear-gradient(145deg, #ecae67, #cc7054 68%, #af5549);
  box-shadow: inset -14px -11px 22px rgba(120, 55, 40, 0.2), inset 11px 8px 15px rgba(255, 246, 190, 0.36);
  transform: rotate(3deg);
}

.dish::after {
  position: absolute;
  right: 21px;
  bottom: 24px;
  width: 24px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 246, 190, 0.62);
  content: "";
  transform: rotate(-22deg);
}

.dish-greens {
  position: absolute;
  top: 10px;
  left: 24px;
  width: 93px;
  height: 32px;
  border-radius: 55% 35% 45% 30%;
  background: #6e9b67;
  box-shadow: 25px 12px 0 #8bad70, 48px 4px 0 #4e885f, 71px 13px 0 #9eb76f;
  transform: rotate(7deg);
}

.dish-main {
  position: absolute;
  top: 42px;
  left: 26px;
  width: 121px;
  height: 61px;
  border-radius: 52% 45% 48% 55%;
  background: #d67f58;
  box-shadow: 20px 4px 0 #c96b51, 43px -7px 0 #e09963;
}

.dish-garnish {
  position: absolute;
  z-index: 2;
  width: 17px;
  height: 7px;
  border-radius: 50%;
  background: #fff2b1;
  transform: rotate(28deg);
}

.garnish-one {
  top: 61px;
  left: 44px;
}

.garnish-two {
  top: 79px;
  right: 40px;
  transform: rotate(-27deg);
}

.scene-note {
  position: absolute;
  z-index: 3;
  padding: 6px 9px;
  border: 1px solid rgba(91, 137, 105, 0.18);
  border-radius: 8px;
  color: #628a72;
  background: rgba(255, 255, 251, 0.72);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.note-left {
  top: 63px;
  left: 11px;
  transform: rotate(-7deg);
}

.note-right {
  top: 118px;
  right: 5px;
  transform: rotate(7deg);
}

.scene-herb {
  position: absolute;
  color: #79a785;
  font-size: 22px;
}

.herb-one {
  top: 41px;
  right: 63px;
  transform: rotate(22deg);
}

.herb-two {
  top: 112px;
  left: 57px;
  font-size: 32px;
}

.herb-three {
  right: 88px;
  bottom: 46px;
  font-size: 12px;
}

.plate-card-footer {
  padding-top: 1px;
}

.plate-label {
  margin: 0 0 5px;
  color: #77a184;
  font-size: 8px;
}

.plate-card-footer h2 {
  max-width: 280px;
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.06em;
}

.plate-cost {
  align-self: flex-end;
  color: #5c8870;
  font-size: 16px;
  font-weight: 900;
}

.insight-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  gap: 13px;
  max-width: 1220px;
  margin: 27px auto 0;
}

.insight-card {
  min-height: 77px;
  gap: 13px;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.insight-icon {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 10px;
  color: #5f9876;
  background: var(--mint);
  font-size: 18px;
}

.insight-icon.coral {
  color: var(--coral);
  background: #fce2d4;
}

.insight-label {
  margin: 0 0 4px;
  font-size: 8px;
  letter-spacing: 0.12em;
}

.insight-card strong {
  font-size: 18px;
  letter-spacing: -0.06em;
}

.insight-trend,
.insight-caption {
  margin-left: auto;
  color: #91a099;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.insight-trend b {
  margin-left: 3px;
  color: #54a378;
}

.insight-note-card {
  position: relative;
  justify-content: center;
  gap: 5px;
  border-color: transparent;
  color: #5e776a;
  background: #edf3e9;
}

.insight-note-card p {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.55;
  letter-spacing: -0.05em;
}

.quote-mark {
  align-self: flex-start;
  color: #a3c3ae;
  font-family: Georgia, serif;
  font-size: 28px;
  line-height: 1;
}

.quote-end {
  align-self: flex-end;
}

.workspace-section {
  max-width: 1220px;
  margin: 57px auto 0;
}

.section-heading {
  justify-content: space-between;
}

.section-heading h2,
.board-heading h2 {
  margin: 8px 0 0;
  font-size: 24px;
  letter-spacing: -0.08em;
}

.ghost-button {
  padding: 10px 0 10px 16px;
}

.control-bar {
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 24px;
  padding: 13px 14px 13px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.control-group,
.mode-select-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mode-select-group {
  margin-left: auto;
}

.segmented-control,
.mode-chips,
.stepper {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 9px;
  background: #f0f3ef;
}

.segmented-control button,
.mode-chips button {
  padding: 7px 11px;
  border-radius: 7px;
  color: #9aa39d;
  background: transparent;
  font-size: 10px;
  font-weight: 800;
}

.segmented-control button.selected,
.mode-chips button.selected {
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 2px 7px rgba(37, 55, 45, 0.07);
}

.stepper {
  gap: 7px;
  padding: 3px 6px;
}

.stepper button {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 6px;
  color: #718078;
  background: transparent;
  font-size: 14px;
}

.stepper button:hover {
  background: var(--white);
}

.stepper strong {
  min-width: 32px;
  color: var(--ink);
  font-size: 10px;
  text-align: center;
}

.day-tabs {
  display: flex;
  gap: 27px;
  margin-top: 25px;
  border-bottom: 1px solid var(--line);
}

.day-tabs button {
  position: relative;
  display: grid;
  gap: 6px;
  min-width: 67px;
  padding: 2px 0 14px;
  color: #a0aaa4;
  background: transparent;
  text-align: left;
}

.day-tabs button span {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.day-tabs button small {
  font-size: 9px;
  font-weight: 700;
}

.day-tabs button.is-active {
  color: var(--coral);
}

.day-tabs button.is-active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--coral);
  content: "";
}

.plan-list {
  display: grid;
  gap: 13px;
  margin-top: 15px;
}

.plan-card {
  padding: 15px 18px 14px;
  border: 1px solid transparent;
  border-radius: 16px;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.plan-card:hover,
.plan-card.is-selected {
  border-color: rgba(49, 79, 63, 0.09);
  box-shadow: 0 10px 24px rgba(50, 73, 61, 0.08);
  transform: translateY(-1px);
}

.tone-mint {
  background: var(--mint);
}

.tone-apricot {
  background: var(--apricot);
}

.tone-lavender {
  background: var(--lavender);
}

.tone-sky {
  background: var(--sky);
}

.tone-yellow {
  background: var(--yellow);
}

.plan-card-topline {
  gap: 10px;
  padding-left: 1px;
}

.day-number {
  color: #6f8d7a;
  font-size: 9px;
}

.plan-date {
  font-size: 9px;
  letter-spacing: 0.03em;
  text-transform: none;
}

.plan-budget {
  margin-left: auto;
  color: #82968a;
  font-size: 8px;
  letter-spacing: 0.08em;
}

.plan-card-main {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 13px 0 15px;
}

.meal-symbol {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.66);
  font-size: 25px;
}

.meal-meta {
  gap: 12px;
  color: #7e9688;
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: none;
}

.meal-time {
  color: #77887e;
  letter-spacing: 0.02em;
}

.meal-copy h3 {
  margin: 5px 0 4px;
  font-size: 18px;
  letter-spacing: -0.08em;
}

.meal-copy p {
  margin: 0;
  color: #7d8e84;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.6;
}

.detail-button {
  align-self: start;
  padding: 7px 1px 7px 10px;
  color: #7e9588;
  background: transparent;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.detail-button span {
  margin-left: 5px;
  color: var(--coral);
  font-size: 14px;
}

.meal-breakdown {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  padding: 12px 0 11px;
  border-top: 1px solid rgba(85, 119, 98, 0.14);
  border-bottom: 1px solid rgba(85, 119, 98, 0.14);
}

.breakdown-label {
  display: block;
  margin-bottom: 6px;
  color: #83a08c;
  font-size: 8px;
  letter-spacing: 0.12em;
}

.meal-breakdown p {
  margin: 0;
  color: #5c7365;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.5;
}

.plan-card-bottom {
  gap: 15px;
  min-height: 24px;
  padding-top: 10px;
}

.use-first {
  color: #70917c;
  font-size: 9px;
  font-weight: 700;
}

.use-first span {
  margin-right: 5px;
  padding: 4px 6px;
  border-radius: 5px;
  color: #5e9271;
  background: rgba(255, 255, 255, 0.58);
  font-size: 8px;
  font-weight: 900;
}

.chef-tip {
  margin-left: auto;
  color: #7b8f83;
  font-size: 9px;
  font-weight: 700;
}

.main-footer {
  display: flex;
  justify-content: space-between;
  max-width: 1220px;
  margin: 55px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.main-footer span:last-child {
  color: #abb4ae;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 22px;
  z-index: 10;
  padding: 12px 16px;
  border-radius: 11px;
  color: var(--white);
  background: var(--ink);
  box-shadow: 0 12px 28px rgba(29, 45, 39, 0.2);
  font-size: 11px;
  font-weight: 800;
}

.toast-with-action {
  display: flex;
  align-items: center;
  gap: 14px;
}

.toast-with-action button {
  padding: 4px 0;
  border: 0;
  color: #ffe3bd;
  background: transparent;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

/* Secondary views */
.subpage {
  max-width: 1220px;
  margin: 0 auto;
  padding-top: 17px;
}

.back-link {
  display: inline-flex;
  padding: 5px 0;
  color: #829289;
  font-size: 10px;
}

.subpage-heading {
  margin-top: 42px;
}

.subpage-heading h1 {
  margin: 11px 0 7px;
  font-size: clamp(36px, 4vw, 55px);
  letter-spacing: -0.1em;
}

.subpage-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.inventory-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
  margin-top: 36px;
}

.inventory-summary > div {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 96px;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--white);
}

.inventory-summary span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.inventory-summary strong {
  font-size: 34px;
  letter-spacing: -0.09em;
}

.inventory-summary small,
.shopping-progress small {
  margin-left: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.subpage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.8fr);
  gap: 15px;
  margin-top: 15px;
}

.inventory-board,
.add-inventory-card,
.shopping-board,
.shopping-progress,
.shopping-note {
  border-radius: 18px;
  background: var(--white);
}

.inventory-board {
  padding: 23px;
}

.board-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.board-heading h2 {
  margin-top: 8px;
}

.board-heading > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.inventory-heading-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.inventory-heading-actions > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.inventory-reset-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 9px;
  border: 1px solid #f0c9bc;
  border-radius: 999px;
  color: #bd6959;
  background: #fff8f3;
  font-size: 9px;
  font-weight: 900;
  white-space: nowrap;
}

.inventory-reset-button span {
  font-size: 14px;
  line-height: 1;
}

.inventory-reset-button:hover {
  border-color: #e9a996;
  background: #fff0e8;
}

.inventory-hint {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 21px;
}

.inventory-tile {
  position: relative;
  min-height: 108px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f8faf6;
}

.inventory-tile.urgency-urgent {
  border-color: #f5d1c4;
  background: #fff7f1;
}

.inventory-tile.urgency-soon {
  border-color: #e8ddb6;
  background: #fffdf2;
}

.inventory-tile-top {
  gap: 6px;
  font-size: 8px;
  letter-spacing: 0.03em;
  text-transform: none;
}

.category-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint-deep);
}

.urgency-urgent .category-dot {
  background: var(--coral);
}

.urgency-soon .category-dot {
  background: #e7bd61;
}

.tile-more {
  margin-left: auto;
  color: #a4aea7;
  letter-spacing: 0.1em;
}

.inventory-remove-button {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  margin: -4px -4px -4px auto;
  border: 1px solid rgba(190, 126, 111, 0.18);
  border-radius: 50%;
  color: #bf7b6b;
  background: rgba(255, 255, 255, 0.62);
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}

.inventory-remove-button:hover,
.inventory-remove-button:focus-visible {
  border-color: #e8aa99;
  color: #a84c3b;
  background: #fff0e8;
}

.inventory-tile strong {
  display: block;
  margin-top: 18px;
  font-size: 16px;
  letter-spacing: -0.08em;
}

.inventory-tile-bottom {
  justify-content: space-between;
  margin-top: 8px;
  font-size: 9px;
  letter-spacing: 0;
  text-transform: none;
}

.inventory-empty-state {
  display: grid;
  place-items: center;
  min-height: 190px;
  padding: 20px;
  border: 1px dashed #d9e2d8;
  border-radius: 13px;
  color: var(--muted);
  text-align: center;
}

.inventory-empty-state > span {
  color: #8db19a;
  font-size: 28px;
}

.inventory-empty-state strong {
  margin-top: 8px;
  color: var(--ink);
  font-size: 15px;
}

.inventory-empty-state p {
  margin: 6px 0 0;
  font-size: 10px;
  font-weight: 600;
}

.add-inventory-card {
  min-height: 100%;
  padding: 23px;
  background: #e0f0e4;
}

.add-card-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  color: #6f9b7f;
  background: rgba(255, 255, 255, 0.6);
  font-size: 22px;
}

.add-inventory-card .eyebrow {
  margin-top: 35px;
  color: #79a086;
}

.add-inventory-card h2 {
  margin: 9px 0 12px;
  font-size: 25px;
  letter-spacing: -0.1em;
  line-height: 1.25;
}

.add-inventory-card > p:not(.eyebrow) {
  margin: 0;
  color: #789282;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.8;
}

.add-form {
  margin-top: 27px;
}

.add-form label {
  display: block;
  margin-bottom: 8px;
  color: #6d8d7b;
  font-size: 9px;
  font-weight: 900;
}

.input-row {
  gap: 6px;
}

.input-row input {
  min-width: 0;
  flex: 1;
  padding: 11px 12px;
  border: 1px solid rgba(95, 143, 109, 0.2);
  border-radius: 9px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.67);
  font-size: 11px;
}

.input-row input::placeholder {
  color: #a5b4a9;
}

.input-row button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  color: var(--white);
  background: var(--ink);
  font-size: 18px;
}

.input-row .add-submit {
  width: auto;
  min-width: 56px;
  padding: 0 10px;
  font-size: 10px;
  font-weight: 900;
}

.add-form-hint {
  margin: 8px 0 0;
  color: #87a092;
  font-size: 9px;
  font-weight: 700;
}

.suggested-tags {
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 12px;
}

.suggested-tags span {
  margin-right: 2px;
  color: #7d9787;
  font-size: 9px;
  font-weight: 800;
}

.suggested-tags button {
  padding: 5px 8px;
  border-radius: 6px;
  color: #6e927b;
  background: rgba(255, 255, 255, 0.57);
  font-size: 9px;
  font-weight: 800;
}

.shopping-heading {
  margin-bottom: 34px;
}

.shopping-progress {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr);
  align-items: center;
  gap: 28px;
  padding: 20px 24px;
}

.shopping-progress strong {
  display: block;
  margin-top: 5px;
  font-size: 23px;
  letter-spacing: -0.08em;
}

.progress-track {
  height: 8px;
  border-radius: 10px;
  background: #eef2ed;
  overflow: hidden;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--coral);
  transition: width 180ms ease;
}

.shopping-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 15px;
  padding: 24px;
}

.shopping-category {
  min-width: 0;
}

.category-heading {
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.category-mark {
  color: var(--coral);
  font-size: 17px;
}

.category-heading h2 {
  margin: 0;
  font-size: 14px;
  letter-spacing: -0.07em;
}

.category-heading > span:last-child {
  margin-left: auto;
  font-size: 8px;
  letter-spacing: 0;
  text-transform: none;
}

.shopping-items {
  display: grid;
}

.shopping-item {
  gap: 10px;
  width: 100%;
  padding: 13px 0;
  border-bottom: 1px solid #f0f2ee;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.check-box {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  border: 1px solid #c8d4cc;
  border-radius: 6px;
  color: var(--white);
  background: transparent;
  font-size: 12px;
  font-weight: 900;
}

.shopping-item.is-checked .check-box {
  border-color: var(--coral);
  background: var(--coral);
}

.shopping-name {
  display: grid;
  gap: 3px;
}

.shopping-name strong {
  font-size: 11px;
  letter-spacing: -0.04em;
}

.shopping-name small {
  color: var(--muted);
  font-size: 9px;
}

.shopping-item.is-checked .shopping-name strong {
  color: #9eaaa3;
  text-decoration: line-through;
}

.shopping-amount {
  margin-left: auto;
  color: #71857a;
  font-size: 9px;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.shopping-note {
  gap: 10px;
  margin-top: 15px;
  padding: 16px 19px;
  color: #7d9384;
  background: #edf3e9;
}

.shopping-note > span {
  color: #83aa8e;
  font-size: 18px;
}

.shopping-note p {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
}

.shopping-note button {
  margin-left: auto;
  color: #629276;
  background: transparent;
  font-size: 10px;
  font-weight: 900;
}

@media (max-width: 1120px) {
  .hero-section {
    grid-template-columns: 1fr 0.84fr;
    gap: 28px;
  }

  .hero-copy h1 {
    font-size: clamp(37px, 4.6vw, 54px);
  }

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

  .insight-note-card {
    display: none;
  }

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

@media (max-width: 850px) {
  .topbar {
    height: 66px;
    padding: 0 20px;
  }

  .app-layout {
    display: block;
  }

  .sidebar {
    display: block;
    padding: 13px 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sidebar-welcome,
  .sidebar-divider,
  .today-mode-card,
  .sidebar-footer {
    display: none;
  }

  .side-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin: 0;
  }

  .nav-item {
    justify-content: center;
    gap: 6px;
    min-height: 45px;
    padding: 0 7px;
    font-size: 10px;
  }

  .nav-icon {
    width: auto;
    font-size: 14px;
  }

  .nav-arrow {
    display: none;
  }

  .nav-count {
    min-width: 17px;
    height: 17px;
    margin-left: 0;
    font-size: 8px;
  }

  .main-content {
    padding: 31px 20px 26px;
  }

  .hero-section {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-top: 0;
  }

  .plate-card {
    min-height: 365px;
  }

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

  .insight-main {
    grid-column: span 2;
  }

  .mode-select-group {
    margin-left: 0;
  }

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

  .add-inventory-card {
    min-height: auto;
  }
}

@media (max-width: 600px) {
  .save-state {
    display: none;
  }

  .main-content {
    padding-top: 27px;
  }

  .hero-copy h1 {
    font-size: 39px;
  }

  .hero-description {
    font-size: 12px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
    margin-top: 22px;
  }

  .hero-footnote {
    align-items: flex-start;
    line-height: 1.5;
  }

  .plate-card {
    min-height: 345px;
    padding: 19px;
  }

  .plate-scene {
    height: 240px;
  }

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

  .insight-main {
    grid-column: auto;
  }

  .insight-card {
    min-height: 69px;
  }

  .workspace-section {
    margin-top: 43px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .section-heading h2 {
    font-size: 22px;
  }

  .control-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .mode-select-group {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .day-tabs {
    gap: 20px;
    overflow-x: auto;
  }

  .day-tabs button {
    min-width: 59px;
  }

  .plan-card {
    padding: 13px 14px;
  }

  .plan-card-main {
    grid-template-columns: 41px 1fr;
    gap: 10px;
  }

  .meal-symbol {
    width: 41px;
    height: 41px;
    border-radius: 12px;
    font-size: 20px;
  }

  .meal-copy h3 {
    font-size: 15px;
  }

  .meal-copy p {
    font-size: 9px;
  }

  .detail-button {
    display: none;
  }

  .meal-breakdown {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .meal-breakdown > div {
    display: grid;
    grid-template-columns: 43px 1fr;
    align-items: baseline;
    gap: 6px;
  }

  .breakdown-label {
    margin: 0;
  }

  .chef-tip {
    display: none;
  }

  .plan-card-bottom {
    overflow: hidden;
  }

  .use-first {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .main-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .subpage-heading {
    margin-top: 32px;
  }

  .subpage-heading h1 {
    font-size: 39px;
  }

  .inventory-summary {
    gap: 7px;
  }

  .inventory-summary > div {
    min-height: 74px;
    padding: 12px;
  }

  .inventory-summary span {
    max-width: 40px;
    font-size: 9px;
    line-height: 1.4;
  }

  .inventory-summary strong {
    font-size: 25px;
  }

  .inventory-board {
    padding: 16px;
  }

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

  .inventory-tile {
    min-height: 101px;
    padding: 11px;
  }

  .inventory-tile strong {
    margin-top: 14px;
    font-size: 14px;
  }

  .inventory-heading-actions {
    align-items: flex-end;
    flex-direction: column;
    gap: 6px;
  }

  .inventory-heading-actions > span {
    font-size: 8px;
  }

  .inventory-reset-button {
    padding: 7px 8px;
    font-size: 8px;
  }

  .inventory-hint {
    display: none;
  }

  .inventory-remove-button {
    width: 29px;
    height: 29px;
  }

  .shopping-progress {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 17px;
  }

  .shopping-board {
    grid-template-columns: 1fr;
    padding: 17px;
  }

  .shopping-note {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .shopping-note button {
    width: 100%;
    margin: 5px 0 0 28px;
    text-align: left;
  }
}

/* Planning flow, calendar, cooking log, and how-to views */
.heading-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.nav-quiet {
  margin-left: auto;
  color: #a4aea7;
  font-size: 16px;
}

.cook-button {
  margin-left: auto;
  padding: 7px 10px;
  border: 1px solid rgba(79, 126, 94, 0.22);
  border-radius: 8px;
  color: #5d8e6c;
  background: rgba(255, 255, 255, 0.62);
  font-size: 9px;
  font-weight: 900;
  white-space: nowrap;
  transition: 150ms ease;
}

.cook-button:hover,
.cook-button.is-done {
  border-color: #67a27a;
  color: var(--white);
  background: #67a27a;
}

.recipe-details {
  margin-top: 3px;
  border-top: 1px solid rgba(85, 119, 98, 0.14);
}

.recipe-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0 4px;
  color: #668574;
  font-size: 10px;
  font-weight: 900;
  list-style: none;
  cursor: pointer;
}

.recipe-details summary::-webkit-details-marker {
  display: none;
}

.recipe-details[open] .recipe-summary-arrow {
  transform: rotate(45deg);
}

.recipe-summary-arrow {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 6px;
  color: #729480;
  background: rgba(255, 255, 255, 0.58);
  font-size: 14px;
  font-weight: 500;
  transition: transform 150ms ease;
}

.recipe-steps {
  display: grid;
  gap: 7px;
  margin: 7px 0 0;
  padding: 0 0 2px 22px;
  color: #5c7365;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.6;
}

.recipe-steps li::marker {
  color: #80a78b;
  font-size: 10px;
  font-weight: 900;
}

.recipe-tip {
  margin: 10px 0 6px;
  padding: 9px 11px;
  border-radius: 8px;
  color: #6d8375;
  background: rgba(255, 255, 255, 0.5);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.6;
}

.recipe-tip b {
  margin-right: 6px;
  color: #668d72;
  font-size: 8px;
  letter-spacing: 0.1em;
}

.calendar-toolbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--white);
}

.calendar-today-button {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #6e8578;
  background: #f7f9f5;
  font-size: 10px;
  font-weight: 900;
}

.calendar-month-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.calendar-month-control h2 {
  min-width: 125px;
  margin: 0;
  font-size: 19px;
  letter-spacing: -0.08em;
  text-align: center;
}

.calendar-month-control button {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 8px;
  color: #749080;
  background: #f1f5ef;
  font-size: 20px;
  line-height: 1;
}

.calendar-legend {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #87968c;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d4ded6;
}

.legend-dot.today {
  background: var(--coral);
}

.legend-dot.plan {
  background: #a8d8c1;
}

.legend-dot.cooked {
  background: #6ba579;
}

.calendar-board {
  margin-top: 15px;
  padding: 20px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(41, 62, 53, 0.04);
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.calendar-weekdays span {
  color: #9aa7a0;
  font-size: 9px;
  font-weight: 900;
  text-align: center;
}

.calendar-weekdays span:first-child {
  color: #e0836f;
}

.calendar-weekdays span:last-child {
  color: #7895a0;
}

.calendar-cell {
  position: relative;
  min-height: 104px;
  padding: 10px 8px;
  border-right: 1px solid #f0f2ee;
  border-bottom: 1px solid #f0f2ee;
  background: #fff;
}

.calendar-cell:nth-child(7n) {
  border-right: 0;
}

.calendar-cell.is-empty {
  background: #fbfcfa;
}

.calendar-cell.is-today {
  background: #fff8f3;
}

.calendar-cell.has-plan {
  cursor: pointer;
}

.calendar-cell.has-plan:hover {
  background: #f3f9f4;
}

.calendar-date {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 8px;
  color: #77877e;
  font-size: 10px;
  font-weight: 900;
}

.calendar-cell.is-today .calendar-date {
  color: var(--white);
  background: var(--coral);
}

.calendar-plan-chip {
  display: block;
  margin-top: 10px;
  padding: 7px 7px 6px;
  border-radius: 8px;
  color: #5e8870;
  background: #e0f0e4;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.4;
}

.calendar-cell.is-cooked .calendar-plan-chip {
  color: #fff;
  background: #6ba579;
}

.calendar-plan-time {
  display: block;
  margin: 5px 3px 0;
  color: #9aa89f;
  font-size: 8px;
  font-weight: 800;
}

.calendar-history-note {
  display: block;
  margin: 4px 3px 0;
  color: #b18a78;
  font-size: 8px;
  font-weight: 800;
  line-height: 1.35;
}

.calendar-upcoming {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  margin-top: 15px;
  padding: 22px;
  border-radius: 18px;
  background: #edf3e9;
}

.calendar-upcoming h2 {
  margin: 8px 0 0;
  font-size: 21px;
  letter-spacing: -0.09em;
}

.upcoming-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.upcoming-list button {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid rgba(97, 139, 108, 0.12);
  border-radius: 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
  text-align: left;
}

.upcoming-list button:hover {
  background: var(--white);
}

.upcoming-list span,
.upcoming-list small {
  color: #84a08d;
  font-size: 8px;
  font-weight: 900;
}

.upcoming-list strong {
  overflow: hidden;
  font-size: 11px;
  letter-spacing: -0.05em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-stats {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1.6fr;
  gap: 13px;
  margin-top: 36px;
}

.history-stats > div {
  display: flex;
  min-height: 96px;
  flex-direction: column;
  justify-content: space-between;
  padding: 17px 20px;
  border-radius: 16px;
  background: var(--white);
}

.history-stats span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.history-stats strong {
  overflow: hidden;
  font-size: 27px;
  letter-spacing: -0.09em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-stats small {
  margin-left: 3px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0;
}

.history-favorite {
  font-size: 16px !important;
}

.history-list {
  display: grid;
  gap: 11px;
  margin-top: 15px;
}

.history-card {
  display: flex;
  gap: 15px;
  padding: 17px 19px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--white);
}

.history-open-button {
  display: flex;
  min-width: 0;
  flex: 1;
  gap: 15px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.history-open-button:hover h2 {
  color: #5f9271;
}

.history-delete-button {
  display: grid;
  place-items: center;
  align-self: flex-start;
  width: 30px;
  height: 30px;
  border: 1px solid #efd3c9;
  border-radius: 50%;
  color: #bd7b6d;
  background: #fff8f3;
  font-size: 18px;
  line-height: 1;
}

.history-delete-button:hover,
.history-delete-button:focus-visible {
  border-color: #e4a495;
  color: #a84c3b;
  background: #fff0e8;
}

.history-card-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 12px;
  color: #fff;
  background: #6ba579;
  font-size: 17px;
  font-weight: 900;
}

.history-card-body {
  min-width: 0;
  flex: 1;
}

.history-card-meta,
.history-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.history-card-meta {
  color: #91a097;
  font-size: 9px;
  font-weight: 800;
}

.history-card h2 {
  margin: 8px 0 10px;
  font-size: 18px;
  letter-spacing: -0.08em;
}

.history-card-footer {
  color: #7a8f82;
  font-size: 9px;
  font-weight: 800;
}

.history-badge {
  padding: 4px 7px;
  border-radius: 5px;
  color: #5f9271;
  background: #e4f1e6;
  font-size: 8px;
}

.history-empty {
  display: grid;
  justify-items: center;
  margin-top: 15px;
  padding: 56px 24px;
  border-radius: 18px;
  background: var(--white);
  text-align: center;
}

.history-empty-icon {
  display: grid;
  place-items: center;
  width: 55px;
  height: 55px;
  margin-bottom: 22px;
  border-radius: 18px;
  color: #7da28a;
  background: #e2f0e4;
  font-size: 27px;
}

.history-empty h2 {
  margin: 9px 0 9px;
  font-size: 24px;
  letter-spacing: -0.09em;
}

.history-empty > p:not(.eyebrow) {
  max-width: 380px;
  margin: 0 0 23px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.8;
}

.history-empty .primary-button {
  margin: 0;
}

.history-insight {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
  padding: 15px 18px;
  border-radius: 13px;
  color: #789281;
  background: #edf3e9;
}

.history-insight > span {
  color: #7eaa8c;
  font-size: 18px;
}

.history-insight p {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
}

.recipe-page .subpage-heading {
  margin-bottom: 0;
}

.recipe-view-card {
  margin-top: 15px;
  padding: 22px;
  border-radius: 18px;
  background: var(--white);
}

.recipe-view-card .recipe-details {
  margin-top: 0;
  border-top: 0;
}

.recipe-view-card .recipe-details summary {
  display: none;
}

.recipe-view-card .recipe-panel {
  padding-top: 0;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(255px, 0.75fr);
  gap: 15px;
  margin-top: 36px;
}

.guide-step-board,
.guide-principles,
.improvement-board {
  border-radius: 18px;
  background: var(--white);
}

.guide-step-board {
  padding: 24px;
}

.guide-step-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.guide-step {
  min-height: 165px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f9fbf8;
}

.guide-step:nth-child(2) {
  background: #fff8ee;
}

.guide-step:nth-child(3) {
  background: #f7f3ff;
}

.guide-step:nth-child(4) {
  background: #eef8fa;
}

.guide-step-number {
  color: var(--coral);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.guide-step h3 {
  margin: 17px 0 7px;
  font-size: 16px;
  letter-spacing: -0.07em;
}

.guide-step p {
  margin: 0;
  color: #84928a;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.75;
}

.guide-principles {
  padding: 24px;
  background: #e0f0e4;
}

.guide-principles > .eyebrow {
  color: #7da189;
}

.guide-principles h2 {
  margin: 9px 0 25px;
  font-size: 25px;
  letter-spacing: -0.1em;
  line-height: 1.28;
}

.principle-item {
  display: grid;
  grid-template-columns: 27px 1fr;
  gap: 9px;
  padding: 14px 0;
  border-top: 1px solid rgba(89, 135, 103, 0.15);
}

.principle-item > span {
  color: #8caf95;
  font-size: 9px;
  font-weight: 900;
}

.principle-item strong {
  font-size: 12px;
  letter-spacing: -0.05em;
}

.principle-item p {
  margin: 4px 0 0;
  color: #7a9382;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.5;
}

.improvement-board {
  margin-top: 15px;
  padding: 24px;
}

.improvement-board h2 {
  margin: 8px 0 0;
  font-size: 21px;
  letter-spacing: -0.08em;
}

.improvement-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.improvement-card {
  min-height: 145px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfa;
}

.improvement-card strong {
  display: block;
  margin-top: 15px;
  font-size: 13px;
  letter-spacing: -0.06em;
}

.improvement-card p {
  margin: 7px 0 0;
  color: #86938b;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.7;
}

.status-pill {
  display: inline-block;
  padding: 4px 6px;
  border-radius: 5px;
  font-size: 8px;
  font-weight: 900;
}

.status-pill.done {
  color: #5b936d;
  background: #dcefe1;
}

.status-pill.next {
  color: #b27a4f;
  background: #fff0d9;
}

.status-pill.idea {
  color: #7968a0;
  background: #eee9fb;
}

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

  .calendar-cell {
    min-height: 90px;
  }
}

@media (max-width: 850px) {
  .guide-layout {
    grid-template-columns: 1fr;
  }

  .calendar-toolbar {
    grid-template-columns: auto 1fr;
  }

  .calendar-legend {
    grid-column: span 2;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .heading-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .recipe-steps {
    font-size: 9px;
  }

  .calendar-toolbar {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .calendar-legend {
    grid-column: auto;
    flex-wrap: wrap;
  }

  .calendar-board {
    padding: 9px;
  }

  .calendar-cell {
    min-height: 76px;
    padding: 7px 4px;
  }

  .calendar-plan-chip {
    margin-top: 6px;
    padding: 5px 4px;
    font-size: 8px;
    line-height: 1.25;
  }

  .calendar-plan-time {
    display: none;
  }

  .calendar-upcoming {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 17px;
  }

  .upcoming-list {
    grid-template-columns: 1fr;
  }

  .history-stats {
    grid-template-columns: 1fr 1fr;
  }

  .history-stats > div:last-child {
    grid-column: span 2;
  }

  .history-card-meta,
  .history-card-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .history-empty h2 {
    font-size: 20px;
  }

  .guide-step-board,
  .guide-principles,
  .improvement-board {
    padding: 17px;
  }

  .guide-step-grid,
  .improvement-grid {
    grid-template-columns: 1fr;
  }

  .guide-step {
    min-height: auto;
  }
}

/* Clarity and small-screen touch improvements */
.section-lede {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.6;
}

.flow-hint {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
  color: #7b9183;
  font-size: 9px;
  font-weight: 800;
}

.flow-hint span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 31px;
  padding: 5px 9px;
  border: 1px solid rgba(100, 143, 112, 0.16);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.74);
}

.flow-hint b {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  color: var(--white);
  background: #78a588;
  font-size: 8px;
}

.flow-hint i {
  color: var(--coral);
  font-size: 13px;
  font-style: normal;
}

.flavor-chip {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 3px 6px;
  border-radius: 6px;
  color: #648271;
  background: rgba(255, 255, 255, 0.56);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.recipe-panel {
  padding: 7px 0 3px;
}

.recipe-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.recipe-meta-grid > div {
  display: grid;
  gap: 5px;
  padding: 9px 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.46);
}

.recipe-meta-grid span,
.recipe-ingredients h4,
.recipe-process-title {
  color: #7a9684;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.recipe-meta-grid strong {
  color: #5c7365;
  font-size: 10px;
  line-height: 1.45;
}

.recipe-ingredients {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.recipe-ingredients h4,
.recipe-process-title {
  margin: 0 0 7px;
}

.recipe-ingredients ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.recipe-ingredients li {
  position: relative;
  padding-left: 12px;
  color: #5c7365;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
}

.recipe-ingredients li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8db99a;
  content: "";
}

.recipe-prep {
  margin: 14px 0 0;
  padding: 10px 11px;
  border-radius: 9px;
  color: #637a6c;
  background: rgba(255, 255, 255, 0.48);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.65;
}

.recipe-prep b {
  display: block;
  margin-bottom: 3px;
  color: #5b8a6c;
  font-size: 8px;
  letter-spacing: 0.1em;
}

.recipe-process-title {
  margin-top: 16px;
  margin-bottom: 8px;
}

.recipe-steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.recipe-steps li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  margin: 0;
  padding: 0;
}

.recipe-step-number {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 8px;
  color: #619073;
  background: rgba(255, 255, 255, 0.68);
  font-size: 9px;
  font-weight: 900;
}

.recipe-steps li strong {
  display: block;
  margin-top: 1px;
  color: #4f6d5d;
  font-size: 10px;
  font-weight: 900;
}

.recipe-steps li p {
  margin: 3px 0 0;
  color: #637a6c;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.65;
}

.recipe-tip {
  margin-top: 13px;
  font-size: 10px;
  line-height: 1.65;
}

.recipe-tip b {
  display: block;
  margin: 0 0 3px;
  font-size: 8px;
  letter-spacing: 0.08em;
}

.recipe-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.recipe-links a,
.search-guide-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid rgba(83, 132, 96, 0.18);
  border-radius: 8px;
  color: #5e8b6b;
  background: rgba(255, 255, 255, 0.6);
  font-size: 9px;
  font-weight: 900;
  text-decoration: none;
}

.recipe-links a:hover,
.search-guide-link:hover {
  background: var(--white);
}

.recipe-search-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  margin-top: 15px;
  padding: 22px 24px;
  border-radius: 18px;
  background: #edf3e9;
}

.recipe-search-board h2 {
  margin: 8px 0 8px;
  font-size: 21px;
  letter-spacing: -0.08em;
  line-height: 1.35;
}

.recipe-search-board p:not(.eyebrow) {
  max-width: 620px;
  margin: 0;
  color: #789281;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.7;
}

.search-guide-link {
  min-width: 205px;
  color: var(--white);
  background: #5f916e;
}

.search-guide-link:hover {
  color: var(--white);
  background: #4e7c5c;
}

.recipe-details summary,
.cook-button,
.day-tabs button,
.nav-item,
.shopping-item,
.back-link,
.ghost-button,
.text-button {
  min-height: 44px;
}

@media (max-width: 850px) {
  .topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(12px);
  }

  .sidebar {
    position: sticky;
    top: 66px;
    z-index: 15;
    overflow: hidden;
  }

  .side-nav {
    display: flex;
    gap: 6px;
    margin: 0 -20px;
    padding: 0 20px 9px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .side-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-item {
    flex: 0 0 auto;
    min-width: 94px;
    min-height: 46px;
    justify-content: center;
  }

  .recipe-search-board {
    grid-template-columns: 1fr;
  }

  .search-guide-link {
    justify-self: start;
  }
}

@media (max-width: 600px) {
  .topbar {
    height: 62px;
    padding: 0 16px;
  }

  .brand-mark {
    width: 31px;
    height: 31px;
  }

  .sidebar {
    top: 62px;
    padding: 8px 12px 0;
  }

  .side-nav {
    margin: 0 -12px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .nav-item {
    min-width: 88px;
    padding: 0 10px;
    font-size: 10px;
  }

  .main-content {
    padding: 24px 14px calc(34px + env(safe-area-inset-bottom));
  }

  .hero-copy h1 {
    font-size: clamp(34px, 10vw, 39px);
    line-height: 1.2;
  }

  .hero-description {
    line-height: 1.8;
  }

  .flow-hint {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 4px;
    width: 100%;
  }

  .flow-hint span {
    justify-content: center;
    min-width: 0;
    padding: 7px 4px;
    text-align: center;
  }

  .flow-hint i {
    align-self: center;
  }

  .section-lede {
    font-size: 11px;
  }

  .control-bar {
    padding: 14px;
  }

  .control-group,
  .mode-select-group {
    width: 100%;
    justify-content: space-between;
  }

  .segmented-control,
  .stepper {
    min-height: 44px;
  }

  .segmented-control button,
  .mode-chips button,
  .stepper button {
    min-height: 38px;
  }

  .mode-chips {
    max-width: calc(100vw - 70px);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .mode-chips::-webkit-scrollbar {
    display: none;
  }

  .mode-chips button {
    flex: 0 0 auto;
  }

  .day-tabs {
    gap: 13px;
    margin-right: -14px;
    margin-left: -14px;
    padding-right: 14px;
    padding-left: 14px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .day-tabs::-webkit-scrollbar {
    display: none;
  }

  .day-tabs button {
    min-width: 64px;
  }

  .plan-card-topline {
    flex-wrap: wrap;
  }

  .plan-budget {
    width: 100%;
    margin-left: 0;
    padding-top: 2px;
  }

  .meal-meta {
    flex-wrap: wrap;
    gap: 5px 7px;
  }

  .meal-copy p {
    font-size: 10px;
    line-height: 1.7;
  }

  .plan-card-bottom {
    align-items: stretch;
    flex-wrap: wrap;
    gap: 8px;
  }

  .use-first {
    flex: 1 1 100%;
    white-space: normal;
  }

  .cook-button {
    width: 100%;
    margin-left: 0;
    min-height: 44px;
  }

  .recipe-meta-grid {
    grid-template-columns: 1fr 1fr;
  }

  .recipe-meta-grid > div:last-child {
    grid-column: span 2;
  }

  .recipe-ingredients {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .recipe-steps li p,
  .recipe-ingredients li,
  .recipe-prep,
  .recipe-tip {
    font-size: 10px;
  }

  .recipe-links {
    display: grid;
  }

  .recipe-links a,
  .search-guide-link {
    width: 100%;
  }

  .recipe-search-board {
    padding: 17px;
  }

  .recipe-search-board h2 {
    font-size: 19px;
  }

  .shopping-item {
    min-height: 54px;
  }
}

@media (max-width: 390px) {
  .inventory-grid {
    grid-template-columns: 1fr;
  }

  .flow-hint {
    font-size: 8px;
  }

  .flow-hint span {
    padding-right: 3px;
    padding-left: 3px;
  }

  .flow-hint b {
    width: 15px;
    height: 15px;
  }
}

.plan-card-tags {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  align-items: center;
}

.buy-first {
  color: #a06f61;
  font-size: 9px;
  font-weight: 800;
}

.buy-first span {
  margin-right: 5px;
  padding: 4px 6px;
  border-radius: 5px;
  color: #a76b5a;
  background: rgba(255, 255, 255, 0.68);
  font-size: 8px;
  font-weight: 900;
}

@media (max-width: 600px) {
  .plan-card-tags {
    flex: 1 1 100%;
    align-items: flex-start;
  }

  .buy-first,
  .use-first {
    white-space: normal;
  }
}

/* Warm food-first visual refresh */
:root {
  --ink: #30251f;
  --muted: #8d8178;
  --line: #ebdfd3;
  --paper: #fcf8f2;
  --white: #fffdf9;
  --mint: #e4f0e5;
  --mint-deep: #afd1b5;
  --coral: #e66e4f;
  --apricot: #fff0d8;
  --lavender: #eee9f7;
  --sky: #e5f2f1;
  --yellow: #fff3cb;
  --shadow: 0 20px 50px rgba(93, 61, 39, 0.1);
}

html,
body {
  background: var(--paper);
}

body {
  background:
    radial-gradient(circle at 92% 3%, rgba(235, 177, 128, 0.16), transparent 25rem),
    radial-gradient(circle at 5% 45%, rgba(164, 205, 171, 0.13), transparent 24rem),
    var(--paper);
}

h1,
h2,
h3,
.brand-name,
.plate-card-footer h2,
.subpage-heading h1 {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 72px;
  border-bottom: 1px solid rgba(235, 223, 211, 0.8);
  background: rgba(252, 248, 242, 0.86);
  box-shadow: 0 5px 20px rgba(95, 61, 40, 0.04);
  backdrop-filter: blur(16px);
}

.brand-lockup {
  gap: 13px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 15px 15px 15px 6px;
  background: linear-gradient(145deg, #ed8862, #d75c47);
  box-shadow: 0 7px 13px rgba(211, 93, 70, 0.24);
  font-size: 28px;
}

.brand-name {
  color: #3a2b23;
  font-size: 20px;
  letter-spacing: -0.08em;
}

.brand-subtitle {
  color: #a18f84;
}

.save-state {
  color: #9c8d83;
}

.sidebar {
  background: rgba(255, 253, 249, 0.62);
  border-right-color: rgba(235, 223, 211, 0.9);
  backdrop-filter: blur(10px);
}

.sidebar-welcome {
  padding: 14px 12px 0;
}

.welcome-title {
  color: #3a2b23;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif;
  font-size: 21px;
  line-height: 1.45;
}

.welcome-copy {
  color: #98897f;
}

.side-nav {
  margin-top: 38px;
}

.nav-item {
  border: 1px solid transparent;
  color: #8e8178;
}

.nav-item:hover,
.nav-item.is-active {
  border-color: rgba(230, 110, 79, 0.1);
  color: #3a2b23;
  background: rgba(255, 253, 249, 0.94);
  box-shadow: 0 8px 22px rgba(104, 73, 52, 0.08);
}

.nav-item.is-active {
  color: var(--coral);
}

.today-mode-card {
  border: 1px solid rgba(220, 126, 91, 0.12);
  background: linear-gradient(145deg, #fff0d8, #fbe0d1);
  box-shadow: 0 12px 25px rgba(204, 123, 79, 0.08);
}

.sidebar-footer {
  border-top-color: rgba(235, 223, 211, 0.95);
}

.mini-avatar {
  color: #fff9ef;
  background: linear-gradient(145deg, #4e7f62, #315d49);
}

.main-content {
  background: transparent;
}

.hero-section {
  align-items: stretch;
  gap: 22px;
  max-width: 1260px;
}

.hero-copy {
  position: relative;
  min-height: 405px;
  padding: 36px 40px 30px;
  border: 1px solid rgba(235, 223, 211, 0.9);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 253, 249, 0.96), rgba(255, 247, 236, 0.84));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-copy::before {
  position: absolute;
  right: -75px;
  bottom: -112px;
  width: 260px;
  height: 260px;
  border: 25px solid rgba(230, 110, 79, 0.08);
  border-radius: 50%;
  content: "";
}

.hero-copy > * {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  color: var(--coral);
}

.hero-copy h1 {
  margin-top: 27px;
  color: #382920;
  font-size: clamp(39px, 4.2vw, 62px);
  line-height: 1.12;
}

.hero-copy h1 em {
  color: var(--coral);
}

.hero-copy h1 em::after {
  bottom: -4px;
  background: #f3c79e;
}

.hero-description {
  color: #81736a;
  line-height: 1.9;
}

.primary-button {
  border-radius: 15px;
  background: linear-gradient(135deg, #332920, #514035);
  box-shadow: 0 12px 22px rgba(66, 47, 35, 0.2);
}

.primary-button:hover {
  box-shadow: 0 15px 28px rgba(66, 47, 35, 0.25);
}

.text-button,
.ghost-button,
.back-link {
  color: var(--coral);
}

.hero-footnote {
  color: #a08e83;
}

.flow-hint span {
  border-color: rgba(230, 110, 79, 0.13);
  background: rgba(255, 253, 249, 0.84);
}

.flow-hint b {
  background: #78a276;
}

.plate-card {
  min-height: 405px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow);
}

.plate-card.tone-mint {
  background: linear-gradient(145deg, #e7f3e7, #cfe5d2);
}

.plate-card.tone-apricot {
  background: linear-gradient(145deg, #fff0d9, #f9d4b6);
}

.plate-card.tone-lavender {
  background: linear-gradient(145deg, #f0ecfa, #ded7f0);
}

.plate-card.tone-sky {
  background: linear-gradient(145deg, #e8f5f3, #cfe8e5);
}

.plate-card.tone-yellow {
  background: linear-gradient(145deg, #fff5d1, #f7df9f);
}

.plate-card.tone-coral {
  background: linear-gradient(145deg, #ffe3d6, #f2b69e);
}

.plate-card::before {
  background: rgba(255, 255, 255, 0.42);
}

.plate-card::after {
  background: rgba(255, 253, 249, 0.74);
}

.plate-card-header {
  color: #6f8f73;
}

.plate-scene {
  height: 270px;
}

.plate {
  width: 245px;
  height: 190px;
  box-shadow: 0 13px 0 rgba(110, 140, 118, 0.24), 0 20px 30px rgba(78, 72, 50, 0.16);
}

.dish {
  background: radial-gradient(circle at 35% 22%, #f4c27a, #d77755 62%, #a94b43);
  box-shadow: inset -14px -11px 22px rgba(120, 55, 40, 0.17), inset 11px 8px 15px rgba(255, 246, 190, 0.34), 0 6px 12px rgba(95, 49, 33, 0.16);
}

.dish-emoji {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 62px;
  filter: drop-shadow(0 4px 3px rgba(92, 48, 31, 0.22));
  transform: rotate(-5deg);
}

.scene-note {
  border-color: rgba(105, 143, 111, 0.17);
  border-radius: 10px;
  color: #63836b;
  background: rgba(255, 253, 249, 0.8);
  box-shadow: 0 7px 13px rgba(80, 92, 65, 0.06);
}

.plate-card-footer h2 {
  color: #3d3028;
  font-size: 20px;
  line-height: 1.35;
}

.plate-cost {
  color: #62876d;
}

.insight-row {
  gap: 15px;
  max-width: 1260px;
  margin-top: 22px;
}

.insight-card {
  border-color: rgba(235, 223, 211, 0.92);
  border-radius: 18px;
  background: rgba(255, 253, 249, 0.86);
  box-shadow: 0 10px 25px rgba(103, 75, 54, 0.05);
}

.insight-icon {
  color: #5d9169;
  background: #e3f0e3;
}

.insight-icon.coral {
  color: var(--coral);
  background: #ffe6da;
}

.insight-note-card {
  color: #617662;
  background: #edf3e9;
}

.workspace-section {
  max-width: 1260px;
  margin-top: 48px;
}

.section-heading h2,
.board-heading h2 {
  color: #3b2d25;
  font-size: 28px;
}

.section-lede {
  color: #96877d;
}

.heading-actions {
  display: flex;
  gap: 8px;
}

.ghost-button {
  padding: 11px 14px;
  border: 1px solid rgba(230, 110, 79, 0.15);
  border-radius: 12px;
  background: rgba(255, 253, 249, 0.72);
}

.control-bar {
  gap: 18px;
  margin-top: 22px;
  padding: 15px 16px;
  border-color: rgba(235, 223, 211, 0.9);
  border-radius: 20px;
  background: rgba(255, 253, 249, 0.9);
  box-shadow: 0 9px 22px rgba(103, 75, 54, 0.05);
}

.segmented-control,
.mode-chips,
.stepper {
  background: #f4eee7;
}

.segmented-control button.selected,
.mode-chips button.selected {
  color: #3c2d24;
  background: #fffdf9;
  box-shadow: 0 4px 10px rgba(104, 75, 52, 0.09);
}

.day-tabs {
  gap: 8px;
  margin-top: 22px;
  padding: 5px;
  border: 0;
  border-radius: 17px;
  background: rgba(244, 237, 229, 0.72);
}

.day-tabs button {
  min-width: 75px;
  padding: 9px 12px 10px;
  border-radius: 12px;
  text-align: center;
}

.day-tabs button.is-active {
  color: #3d2e25;
  background: #fffdf9;
  box-shadow: 0 5px 13px rgba(104, 75, 52, 0.08);
}

.day-tabs button.is-active::after {
  display: none;
}

.plan-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.plan-card {
  padding: 18px 19px 16px;
  border: 1px solid rgba(113, 95, 78, 0.08);
  border-radius: 22px;
  box-shadow: 0 8px 19px rgba(103, 75, 54, 0.035);
}

.plan-card:hover,
.plan-card.is-selected {
  border-color: rgba(230, 110, 79, 0.26);
  box-shadow: 0 16px 28px rgba(103, 75, 54, 0.1);
  transform: translateY(-2px);
}

.plan-card.tone-mint {
  background: linear-gradient(145deg, #e7f2e7, #dcebdc);
}

.plan-card.tone-apricot {
  background: linear-gradient(145deg, #fff1dc, #ffe8cf);
}

.plan-card.tone-lavender {
  background: linear-gradient(145deg, #f0ecf8, #e7e0f2);
}

.plan-card.tone-sky {
  background: linear-gradient(145deg, #e8f4f2, #dceded);
}

.plan-card.tone-yellow {
  background: linear-gradient(145deg, #fff5d4, #ffedbb);
}

.plan-card.tone-coral {
  background: linear-gradient(145deg, #ffe6da, #fbd3c0);
}

.meal-symbol {
  width: 57px;
  height: 57px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  background: rgba(255, 253, 249, 0.7);
  box-shadow: 0 7px 12px rgba(104, 75, 52, 0.06);
  font-size: 29px;
}

.meal-copy h3 {
  color: #3b2d25;
  font-size: 19px;
  line-height: 1.3;
}

.meal-copy p {
  color: #8d7e74;
}

.flavor-chip {
  border: 1px solid rgba(108, 143, 113, 0.12);
  border-radius: 999px;
  color: #66816b;
  background: rgba(255, 253, 249, 0.7);
}

.flavor-chip.season-chip {
  border-color: rgba(220, 151, 72, 0.24);
  color: #a66a35;
  background: rgba(255, 239, 206, 0.76);
}

.meal-breakdown {
  gap: 12px;
  border-color: rgba(120, 113, 92, 0.13);
}

.meal-breakdown p {
  color: #665c52;
}

.breakdown-label {
  color: #8d9d87;
}

.use-first span,
.buy-first span {
  border-radius: 999px;
}

.recipe-details {
  border-color: rgba(120, 113, 92, 0.13);
}

.recipe-details summary {
  color: #6d866f;
}

.recipe-summary-arrow {
  border-radius: 50%;
  background: rgba(255, 253, 249, 0.72);
}

.main-footer {
  border-top-color: rgba(235, 223, 211, 0.95);
}

@media (max-width: 1100px) {
  .plan-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 850px) {
  .topbar {
    height: 66px;
  }

  .hero-copy {
    min-height: auto;
    padding: 30px 28px 26px;
  }

  .plate-card {
    min-height: 370px;
  }

  .heading-actions {
    width: 100%;
  }

  .heading-actions .ghost-button {
    flex: 1;
    padding-right: 8px;
    padding-left: 8px;
  }
}

@media (max-width: 600px) {
  .topbar {
    height: 62px;
  }

  .brand-name {
    font-size: 18px;
  }

  .hero-copy {
    padding: 25px 20px 22px;
    border-radius: 23px;
  }

  .hero-copy h1 {
    margin-top: 21px;
    font-size: clamp(34px, 10vw, 41px);
  }

  .hero-description {
    font-size: 11px;
  }

  .plate-card {
    min-height: 350px;
    border-radius: 23px;
  }

  .plate-scene {
    height: 228px;
  }

  .plate {
    width: 215px;
    height: 166px;
  }

  .dish-emoji {
    font-size: 54px;
  }

  .plate-card-footer h2 {
    max-width: 220px;
    font-size: 18px;
  }

  .workspace-section {
    margin-top: 38px;
  }

  .section-heading h2 {
    font-size: 25px;
  }

  .control-bar {
    border-radius: 18px;
  }

  .day-tabs {
    border-radius: 15px;
  }

  .plan-card {
    padding: 16px 15px 14px;
    border-radius: 20px;
  }

  .meal-symbol {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    font-size: 23px;
  }

  .meal-copy h3 {
    font-size: 16px;
  }

  .meal-copy p {
    font-size: 10px;
  }
}

/* Taste and cuisine preferences */
.preference-controls {
  flex: 1 1 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px 20px;
  width: 100%;
  margin-top: 2px;
  padding-top: 15px;
  border-top: 1px solid rgba(120, 113, 92, 0.12);
}

.preference-control {
  min-width: 0;
}

.preference-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.preference-current {
  color: #a08c80;
  font-size: 9px;
  font-weight: 800;
}

.preference-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.preference-chips button {
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid rgba(112, 128, 106, 0.16);
  border-radius: 999px;
  color: #7a8e7b;
  background: rgba(244, 238, 231, 0.78);
  font-size: 10px;
  font-weight: 900;
  transition: 160ms ease;
}

.preference-chips button:hover,
.preference-chips button.selected {
  border-color: rgba(230, 110, 79, 0.24);
  color: #3e3027;
  background: #fffdf9;
  box-shadow: 0 4px 10px rgba(104, 75, 52, 0.08);
}

.preference-chips button.selected {
  color: var(--coral);
}

.preference-note {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: -1px 0 0;
  color: #9c8b80;
  font-size: 9px;
  font-weight: 700;
}

.preference-note span {
  color: var(--coral);
}

.cuisine-chip {
  border-color: rgba(107, 139, 148, 0.18);
  color: #68858b;
  background: rgba(230, 242, 241, 0.78);
}

.variant-chip {
  border-color: rgba(205, 135, 76, 0.22);
  color: #a46d3b;
  background: rgba(255, 239, 211, 0.8);
}

.variant-plan-note {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #9d7658;
  font-size: 9px;
  font-weight: 800;
}

.variant-plan-note > span {
  padding: 4px 7px;
  border-radius: 999px;
  color: #a46d3b;
  background: rgba(255, 239, 211, 0.82);
  font-size: 8px;
  font-weight: 900;
}

.seasoning-variant-panel {
  margin: 14px 0 16px;
  padding: 13px 14px;
  border: 1px solid rgba(205, 135, 76, 0.18);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(255, 244, 225, 0.82), rgba(255, 253, 249, 0.65));
}

.seasoning-variant-heading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.seasoning-variant-heading > div {
  display: grid;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.seasoning-variant-heading strong {
  color: #795941;
  font-size: 10px;
  font-weight: 900;
}

.seasoning-variant-heading div span {
  overflow: hidden;
  color: #a1846d;
  font-size: 9px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seasoning-variant-heading b {
  flex: 0 0 auto;
  color: #b47746;
  font-size: 9px;
}

.variant-panel-icon {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 9px;
  color: #b47746;
  background: rgba(255, 255, 255, 0.74);
  font-size: 16px;
  font-weight: 900;
}

.seasoning-variant-panel > p {
  margin: 9px 0 10px 35px;
  color: #9c816d;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.65;
}

.seasoning-variant-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: 35px;
}

.seasoning-variant-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border: 1px solid rgba(205, 135, 76, 0.16);
  border-radius: 999px;
  color: #9b7657;
  background: rgba(255, 253, 249, 0.72);
  font-size: 8px;
  font-weight: 900;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.3;
  transition: 160ms ease;
}

.seasoning-variant-chip small {
  color: inherit;
  font-size: 8px;
  font-weight: 800;
  opacity: .78;
}

.seasoning-variant-chip:hover,
.seasoning-variant-chip:focus-visible {
  border-color: rgba(205, 135, 76, 0.42);
  background: rgba(255, 247, 235, 0.95);
  outline: none;
}

.seasoning-variant-chip.is-current {
  color: #fffdf9;
  background: #bd8351;
}

@media (max-width: 850px) {
  .preference-controls {
    grid-template-columns: 1fr;
  }

  .preference-note {
    grid-column: auto;
  }
}

@media (max-width: 600px) {
  .preference-controls {
    gap: 13px;
    padding-top: 13px;
  }

  .preference-chips {
    flex-wrap: nowrap;
    max-width: calc(100vw - 60px);
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .preference-chips::-webkit-scrollbar {
    display: none;
  }

  .preference-chips button {
    flex: 0 0 auto;
  }

  .seasoning-variant-heading b {
    display: none;
  }

  .seasoning-variant-panel > p,
  .seasoning-variant-list {
    margin-left: 0;
  }
}

/* Inline recipes for side dishes and soups */
.meal-breakdown-item {
  min-width: 0;
}

.breakdown-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-height: 17px;
}

.meal-breakdown .breakdown-heading .breakdown-label {
  margin-bottom: 0;
}

.breakdown-recipe-status {
  flex: 0 0 auto;
  color: #b27b63;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.meal-recipe-details {
  margin-top: 8px;
  border-top-style: dashed;
}

.meal-recipe-details summary {
  min-height: 37px;
  padding: 8px 0 3px;
  color: #a66f5b;
  font-size: 9px;
}

.meal-recipe-details .recipe-summary-arrow {
  width: 20px;
  height: 20px;
  color: #b57862;
  background: rgba(255, 253, 249, 0.76);
}

.meal-recipe-details .recipe-panel {
  padding: 5px 0 8px;
}

.meal-recipe-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.meal-recipe-title-row strong {
  color: #5d7365;
  font-size: 11px;
  line-height: 1.45;
}

.meal-recipe-title-row span {
  flex: 0 0 auto;
  color: #91a296;
  font-size: 8px;
  font-weight: 800;
}

.meal-recipe-details .recipe-meta-grid {
  grid-template-columns: 1fr 1fr;
}

.meal-recipe-details .recipe-meta-grid > div {
  padding: 8px 9px;
}

.meal-recipe-details .recipe-ingredients {
  gap: 10px;
  margin-top: 11px;
}

.meal-recipe-details .recipe-ingredients li,
.meal-recipe-details .recipe-steps li p,
.meal-recipe-details .recipe-prep,
.meal-recipe-details .recipe-tip {
  font-size: 9px;
}

.meal-recipe-details .recipe-process-title {
  margin-top: 13px;
}

.meal-recipe-details .recipe-steps {
  gap: 7px;
}

.meal-recipe-details .recipe-links {
  margin-top: 10px;
}

.meal-recipe-details .recipe-links a {
  min-height: 42px;
  padding: 7px 9px;
  font-size: 8px;
}

.meal-recipe-note {
  display: block;
  margin-top: 8px;
  color: #9c8a7e;
  font-size: 8px;
  font-weight: 800;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .meal-breakdown {
    grid-template-columns: 1fr;
  }

  .meal-breakdown .meal-breakdown-item,
  .meal-breakdown .meal-breakdown-item:first-child {
    display: block;
    grid-column: auto;
  }

  .meal-recipe-details .recipe-meta-grid > div:last-child {
    grid-column: auto;
  }

  .meal-recipe-details .recipe-ingredients {
    grid-template-columns: 1fr 1fr;
  }
}

/* Selected-day overview at the top of the menu page */
.plan-overview {
  max-width: 1260px;
  margin: 0 auto 36px;
  padding: 20px 22px;
  border: 1px solid rgba(235, 223, 211, 0.95);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 253, 249, 0.96), rgba(245, 239, 230, 0.78));
  box-shadow: 0 12px 28px rgba(103, 75, 54, 0.06);
}

.plan-overview-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 15px;
}

.plan-overview-heading h2 {
  margin: 6px 0 0;
  color: #3b2d25;
  font-size: 23px;
  letter-spacing: -0.08em;
}

.plan-overview-heading p:not(.eyebrow) {
  margin: 6px 0 0;
  color: #96877d;
  font-size: 10px;
  font-weight: 700;
}

.plan-overview-count {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 10px;
  color: #9b6657;
  background: #fff0e7;
  font-size: 10px;
  font-weight: 900;
}

.plan-overview-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
  gap: 9px;
}

.plan-overview-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 10px 10px 10px 12px;
  border: 1px solid rgba(113, 95, 78, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.64);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.plan-overview-item.is-selected {
  border-color: rgba(230, 110, 79, 0.34);
  background: #fffdf9;
  box-shadow: 0 7px 15px rgba(103, 75, 54, 0.08);
  transform: translateY(-1px);
}

.plan-overview-select {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-width: 0;
  min-height: 46px;
  padding: 0;
  color: #4d3a30;
  background: transparent;
  text-align: left;
}

.plan-overview-select:hover,
.plan-overview-select:focus-visible {
  outline: none;
}

.plan-overview-number {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  color: #a36f60;
  background: #ffe9df;
  font-size: 9px;
  font-weight: 900;
}

.plan-overview-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.plan-overview-copy small {
  overflow: hidden;
  color: #aa9488;
  font-size: 8px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plan-overview-copy strong {
  overflow: hidden;
  color: #4a352b;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plan-overview-copy em {
  overflow: hidden;
  color: #8c7b71;
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plan-overview-change {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 36px;
  padding: 0 8px;
  border: 1px solid rgba(230, 110, 79, 0.18);
  border-radius: 10px;
  color: #a36f60;
  background: rgba(255, 253, 249, 0.78);
  font-size: 8px;
  font-weight: 900;
  white-space: nowrap;
}

.plan-overview-change b {
  color: var(--coral);
  font-size: 14px;
  line-height: 1;
}

.plan-overview-change:hover,
.plan-overview-change:focus-visible {
  border-color: rgba(230, 110, 79, 0.4);
  background: #fffdf9;
  outline: none;
}

@media (max-width: 850px) {
  .plan-overview {
    margin: 0 auto 14px;
    padding: 14px;
    border-radius: 18px;
  }

  .plan-overview-heading {
    align-items: flex-start;
    margin-bottom: 10px;
  }

  .plan-overview-heading h2 {
    font-size: 19px;
  }

  .plan-overview-heading p:not(.eyebrow) {
    margin-top: 4px;
    font-size: 9px;
  }

  .plan-overview-list {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .plan-overview-item {
    padding: 8px 8px 8px 10px;
    border-radius: 13px;
  }

  .plan-overview-select {
    min-height: 43px;
  }

  .plan-overview-copy strong {
    font-size: 12px;
  }

  .plan-overview-change {
    min-height: 39px;
    padding: 0 9px;
    font-size: 9px;
  }
}

/* Mobile-first navigation and shorter path to recipes */
.mobile-home-summary,
.mobile-bottom-nav,
.mobile-filter-toggle,
.mobile-recipe-jump,
.topbar-shortcut {
  display: none;
}

@media (max-width: 850px) {
  body {
    padding-bottom: env(safe-area-inset-bottom);
  }

  .topbar {
    height: 58px;
    padding: 0 16px;
  }

  .topbar-shortcut {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 0 11px;
    border: 1px solid rgba(230, 110, 79, 0.14);
    border-radius: 12px;
    color: #7e7067;
    background: rgba(255, 253, 249, 0.86);
    font-size: 10px;
    font-weight: 900;
  }

  .topbar-shortcut span {
    display: grid;
    place-items: center;
    min-width: 19px;
    height: 19px;
    border-radius: 7px;
    color: #fff;
    background: var(--coral);
    font-size: 9px;
  }

  .save-state,
  .sidebar {
    display: none !important;
  }

  .app-layout {
    display: block;
    min-height: calc(100vh - 58px);
  }

  .main-content {
    padding: 18px 16px calc(102px + env(safe-area-inset-bottom));
    overflow: visible;
  }

  .hero-section,
  .insight-row,
  .main-footer {
    display: none;
  }

  .mobile-home-summary {
    display: grid;
    gap: 12px;
    max-width: 760px;
    margin: 0 auto;
  }

  .mobile-summary-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding: 0 2px;
  }

  .mobile-summary-heading p,
  .mobile-summary-heading h1 {
    margin: 0;
  }

  .mobile-summary-heading p {
    color: #a18f84;
    font-size: 9px;
    font-weight: 800;
  }

  .mobile-summary-heading h1 {
    margin-top: 3px;
    color: #382920;
    font-size: 25px;
    letter-spacing: -0.08em;
  }

  .mobile-summary-heading > span {
    padding-bottom: 3px;
    color: #92857b;
    font-size: 10px;
    font-weight: 800;
  }

  .mobile-active-meal {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(113, 95, 78, 0.08);
    border-radius: 20px;
    box-shadow: 0 9px 22px rgba(103, 75, 54, 0.07);
  }

  .mobile-meal-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(255, 253, 249, 0.72);
    font-size: 24px;
  }

  .mobile-active-meal > div {
    display: grid;
    gap: 3px;
    min-width: 0;
  }

  .mobile-active-meal small {
    color: #7f937f;
    font-size: 8px;
    font-weight: 900;
  }

  .mobile-active-meal strong {
    overflow: hidden;
    color: #3b2d25;
    font-size: 15px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-active-meal p {
    overflow: hidden;
    margin: 0;
    color: #897b72;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-active-meal > button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 12px;
    color: #fff;
    background: #3d3129;
    font-size: 10px;
    font-weight: 900;
    white-space: nowrap;
  }

  .mobile-active-meal > button span {
    color: #b9d9bd;
    font-size: 14px;
  }

  .mobile-quick-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .mobile-quick-actions button {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1px 7px;
    align-items: center;
    min-height: 54px;
    padding: 9px 10px;
    border: 1px solid rgba(235, 223, 211, 0.92);
    border-radius: 15px;
    color: #6f6259;
    background: rgba(255, 253, 249, 0.84);
    text-align: left;
  }

  .mobile-quick-actions button > span {
    grid-row: span 2;
    color: var(--coral);
    font-size: 18px;
  }

  .mobile-quick-actions b {
    font-size: 10px;
  }

  .mobile-quick-actions small {
    color: #a09186;
    font-size: 8px;
  }

  .workspace-section {
    display: flex;
    flex-direction: column;
    max-width: 760px;
    margin: 13px auto 0;
  }

  .workspace-section .section-heading {
    display: none;
  }

  .mobile-filter-toggle {
    order: 3;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 10px;
    align-items: center;
    width: 100%;
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(235, 223, 211, 0.92);
    border-radius: 15px;
    color: #6e6259;
    background: rgba(255, 253, 249, 0.84);
    text-align: left;
  }

  .mobile-filter-toggle span {
    font-size: 10px;
    font-weight: 900;
  }

  .mobile-filter-toggle small {
    overflow: hidden;
    max-width: 70vw;
    color: #a09186;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-filter-toggle b {
    grid-column: 2;
    grid-row: 1 / span 2;
    color: var(--coral);
    font-size: 18px;
  }

  .workspace-section > .control-bar {
    order: 4;
    display: none;
    margin-top: 8px;
  }

  .workspace-section > .control-bar.is-mobile-open {
    display: flex;
  }

  .workspace-section > .day-tabs {
    position: sticky;
    top: 58px;
    z-index: 12;
    order: 1;
    gap: 7px;
    margin: 0 -16px;
    padding: 8px 16px;
    border: 0;
    border-radius: 0;
    background: rgba(252, 248, 242, 0.94);
    box-shadow: 0 7px 15px rgba(103, 75, 54, 0.05);
    backdrop-filter: blur(14px);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .workspace-section > .day-tabs::-webkit-scrollbar {
    display: none;
  }

  .day-tabs button {
    flex: 0 0 auto;
    min-width: 68px;
    min-height: 42px;
    padding: 7px 10px 8px;
  }

  .workspace-section > .plan-list {
    order: 2;
    margin-top: 10px;
  }

  .mobile-recipe-jump {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 44px;
    margin: 0 0 11px;
    padding: 0 13px;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(135deg, #3b3028, #554339);
    font-size: 11px;
    font-weight: 900;
    box-shadow: 0 8px 16px rgba(66, 47, 35, 0.15);
  }

  .mobile-recipe-jump b {
    color: #b8d8bd;
    font-size: 16px;
  }

  .recipe-details {
    scroll-margin-top: 116px;
  }

  .subpage-heading {
    margin-bottom: 18px;
  }

  .subpage-heading .back-link {
    display: none;
  }

  .subpage-heading h1 {
    margin-top: 8px;
    font-size: clamp(25px, 7vw, 32px);
  }

  .subpage-heading > p:last-child {
    font-size: 10px;
    line-height: 1.65;
  }

  .mobile-bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: calc(67px + env(safe-area-inset-bottom));
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(220, 207, 196, 0.9);
    background: rgba(255, 253, 249, 0.96);
    box-shadow: 0 -10px 28px rgba(83, 59, 43, 0.11);
    backdrop-filter: blur(18px);
  }

  .mobile-nav-item {
    position: relative;
    display: grid;
    gap: 2px;
    place-items: center;
    min-width: 0;
    min-height: 52px;
    border-radius: 14px;
    color: #9a8c81;
    background: transparent;
  }

  .mobile-nav-item.is-active {
    color: var(--coral);
    background: #fff1e8;
  }

  .mobile-nav-icon {
    position: relative;
    font-size: 18px;
    line-height: 1;
  }

  .mobile-nav-icon small {
    position: absolute;
    top: -7px;
    left: 11px;
    display: grid;
    place-items: center;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border: 2px solid #fffdf9;
    border-radius: 999px;
    color: #fff;
    background: #d95f49;
    font-size: 7px;
    font-weight: 900;
  }

  .mobile-nav-item b {
    font-size: 8px;
    font-weight: 900;
  }

  .toast {
    right: 12px;
    bottom: calc(82px + env(safe-area-inset-bottom));
    left: 12px;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .topbar {
    height: 54px;
    padding: 0 12px;
  }

  .brand-lockup {
    gap: 9px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 12px 12px 12px 5px;
    font-size: 21px;
  }

  .brand-name {
    font-size: 17px;
  }

  .brand-subtitle {
    display: none;
  }

  .main-content {
    padding: 12px 12px calc(98px + env(safe-area-inset-bottom));
  }

  .mobile-home-summary {
    gap: 10px;
  }

  .mobile-summary-heading h1 {
    font-size: 23px;
  }

  .mobile-active-meal {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
    border-radius: 18px;
  }

  .mobile-active-meal > button {
    grid-column: 1 / -1;
    justify-content: center;
    width: 100%;
  }

  .mobile-quick-actions button {
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: 58px;
    padding: 7px 4px;
    text-align: center;
  }

  .mobile-quick-actions button > span {
    grid-row: auto;
    font-size: 16px;
  }

  .mobile-quick-actions small {
    display: none;
  }

  .workspace-section {
    margin-top: 10px;
  }

  .workspace-section > .day-tabs {
    top: 54px;
    margin-right: -12px;
    margin-left: -12px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .plan-list .plan-card:not(.is-selected) {
    display: none;
  }

  .plan-card {
    padding: 13px;
    border-radius: 18px;
  }

  .plan-card-main {
    gap: 10px;
    padding: 10px 0 11px;
  }

  .meal-copy h3 {
    margin-top: 4px;
    font-size: 17px;
  }

  .meal-copy > p {
    display: none;
  }

  .meal-breakdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 10px 0;
  }

  .meal-breakdown > div:first-child {
    grid-column: span 2;
  }

  .plan-card-bottom {
    padding-top: 8px;
  }

  .workspace-section > .control-bar.is-mobile-open {
    gap: 13px;
    padding: 13px;
  }

  .preference-controls {
    margin-top: 0;
  }

  .subpage-heading {
    padding: 2px 1px 0;
  }

  .mobile-bottom-nav {
    min-height: calc(64px + env(safe-area-inset-bottom));
    padding-right: 5px;
    padding-left: 5px;
  }

  .mobile-nav-item {
    min-height: 49px;
    border-radius: 12px;
  }
}

@media (max-width: 600px) {
  .meal-breakdown {
    grid-template-columns: 1fr;
  }

  .meal-breakdown .meal-breakdown-item,
  .meal-breakdown .meal-breakdown-item:first-child {
    display: block;
    grid-column: auto;
  }

  .meal-recipe-details .recipe-meta-grid > div:last-child {
    grid-column: auto;
  }

  .meal-recipe-details .recipe-ingredients {
    grid-template-columns: 1fr 1fr;
  }
}

/* Per-day menu replacement */
.plan-card-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
}

.change-day-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid rgba(230, 110, 79, 0.14);
  border-radius: 10px;
  color: #a36f60;
  background: rgba(255, 253, 249, 0.62);
  font-size: 9px;
  font-weight: 900;
  white-space: nowrap;
}

.change-day-button b {
  color: var(--coral);
  font-size: 14px;
  line-height: 1;
}

.change-day-button:hover,
.change-day-button:focus-visible {
  border-color: rgba(230, 110, 79, 0.35);
  background: #fffdf9;
  outline: none;
}

@media (max-width: 600px) {
  .plan-card-actions {
    width: 100%;
    margin-left: 0;
  }

  .plan-card-actions .change-day-button,
  .plan-card-actions .cook-button {
    flex: 1;
    width: auto;
    margin-left: 0;
  }

  .plan-card-actions .change-day-button {
    justify-content: center;
  }
}

/* Keyword search for the full menu catalog */
.menu-search {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: 1260px;
  margin: 0 auto 18px;
  padding: 16px 20px;
  border: 1px solid rgba(235, 223, 211, 0.95);
  border-radius: 18px;
  background: rgba(255, 253, 249, 0.88);
  box-shadow: 0 8px 20px rgba(103, 75, 54, 0.045);
}

.menu-search-copy {
  display: grid;
  gap: 4px;
}

.menu-search-copy strong {
  color: #4a352b;
  font-size: 15px;
  letter-spacing: -0.04em;
}

.menu-search-copy > span {
  color: #9a8a80;
  font-size: 10px;
  font-weight: 700;
}

.menu-search-form {
  display: grid;
  gap: 5px;
  min-width: min(430px, 42%);
}

.menu-search-form label {
  color: #8e7c70;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.menu-search-input-row {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 4px 5px 4px 12px;
  border: 1px solid rgba(230, 110, 79, 0.22);
  border-radius: 12px;
  background: #fffdf9;
  box-shadow: inset 0 1px 2px rgba(103, 75, 54, 0.035);
}

.menu-search-input-row > span {
  flex: 0 0 auto;
  margin-right: 7px;
  color: var(--coral);
  font-size: 20px;
  line-height: 1;
}

.menu-search-input-row input {
  min-width: 0;
  flex: 1;
  padding: 7px 4px;
  border: 0;
  outline: 0;
  color: #4a352b;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.menu-search-input-row input::placeholder {
  color: #b4a69d;
}

.menu-search-input-row button {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 9px;
  color: #fffdf9;
  background: #e66e4f;
  font-size: 10px;
  font-weight: 900;
}

.menu-search-input-row button:hover,
.menu-search-input-row button:focus-visible {
  background: #d95e40;
  outline: none;
}

.menu-search-input-row .menu-search-clear {
  min-width: 28px;
  margin-left: 3px;
  padding: 0;
  color: #a88d80;
  background: transparent;
  font-size: 20px;
  font-weight: 500;
}

.menu-search-input-row .menu-search-clear:hover,
.menu-search-input-row .menu-search-clear:focus-visible {
  color: #71564b;
  background: #f5eee7;
}

.menu-search-results,
.menu-search-empty {
  max-width: 1260px;
  margin: 0 auto 28px;
  padding: 20px;
  border: 1px solid rgba(235, 223, 211, 0.95);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 253, 249, 0.96), rgba(245, 239, 230, 0.76));
  box-shadow: 0 12px 26px rgba(103, 75, 54, 0.055);
}

.menu-search-results-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 15px;
}

.menu-search-results-heading h3 {
  margin: 6px 0 0;
  color: #3b2d25;
  font-size: 22px;
  letter-spacing: -0.07em;
}

.menu-search-results-heading p:not(.eyebrow) {
  margin: 6px 0 0;
  color: #96877d;
  font-size: 10px;
  font-weight: 700;
}

.menu-search-results-heading > strong {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 10px;
  color: #9b6657;
  background: #fff0e7;
  font-size: 16px;
}

.menu-search-results-heading > strong small {
  margin-left: 3px;
  font-size: 9px;
}

.menu-search-result-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.menu-search-result {
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(113, 95, 78, 0.1);
  border-radius: 18px;
  box-shadow: 0 7px 16px rgba(103, 75, 54, 0.04);
}

.menu-search-result.tone-mint { background: linear-gradient(145deg, #e7f2e7, #dcebdc); }
.menu-search-result.tone-apricot { background: linear-gradient(145deg, #fff1dc, #ffe8cf); }
.menu-search-result.tone-lavender { background: linear-gradient(145deg, #f0ecf8, #e7e0f2); }
.menu-search-result.tone-sky { background: linear-gradient(145deg, #e8f4f2, #dceded); }
.menu-search-result.tone-yellow { background: linear-gradient(145deg, #fff5d4, #ffedbb); }
.menu-search-result.tone-coral { background: linear-gradient(145deg, #ffe6da, #fbd3c0); }

.menu-search-result-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.menu-search-result .meal-symbol {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  font-size: 24px;
}

.menu-search-result-copy {
  min-width: 0;
}

.menu-search-result-copy .meal-meta {
  gap: 5px;
}

.menu-search-result-copy h3 {
  margin: 5px 0 0;
  color: #3b2d25;
  font-size: 16px;
  line-height: 1.35;
}

.menu-search-result-copy p {
  margin: 5px 0 0;
  color: #806e63;
  font-size: 10px;
  line-height: 1.6;
}

.menu-search-match-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  margin: 12px 0 10px;
}

.menu-search-match-list > span:not(.menu-search-match-label) {
  padding: 4px 7px;
  border-radius: 999px;
  color: #966556;
  background: rgba(255, 253, 249, 0.72);
  font-size: 8px;
  font-weight: 900;
}

.menu-search-match-label {
  color: #a1887b;
  font-size: 8px;
  font-weight: 900;
}

.menu-search-meals {
  display: grid;
  gap: 7px;
  padding: 10px 0;
  border-top: 1px solid rgba(133, 105, 86, 0.12);
  border-bottom: 1px solid rgba(133, 105, 86, 0.12);
}

.menu-search-meal {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.menu-search-meal > span {
  padding-top: 2px;
  color: #9b6657;
  font-size: 9px;
  font-weight: 900;
}

.menu-search-meal > strong {
  color: #59453a;
  font-size: 10px;
  line-height: 1.5;
}

.menu-search-meal > .meal-recipe-note,
.menu-search-meal > .meal-recipe-details {
  grid-column: 2;
}

.menu-search-result-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 11px;
  color: #8d796d;
  font-size: 9px;
  font-weight: 800;
}

.search-recipe-button {
  min-height: 31px;
  padding: 0 10px;
  border: 1px solid rgba(230, 110, 79, 0.2);
  border-radius: 9px;
  color: #a05e4d;
  background: rgba(255, 253, 249, 0.76);
  font-size: 9px;
  font-weight: 900;
}

.search-recipe-button:hover,
.search-recipe-button:focus-visible {
  border-color: rgba(230, 110, 79, 0.42);
  background: #fffdf9;
  outline: none;
}

.menu-search-result > .recipe-details {
  margin-top: 10px;
}

.menu-search-empty {
  display: grid;
  justify-items: center;
  gap: 7px;
  text-align: center;
}

.menu-search-empty-icon {
  color: var(--coral);
  font-size: 30px;
}

.menu-search-empty strong {
  color: #4a352b;
  font-size: 14px;
}

.menu-search-empty p {
  margin: 0 0 5px;
  color: #96877d;
  font-size: 10px;
  font-weight: 700;
}

@media (max-width: 850px) {
  .menu-search {
    display: grid;
    gap: 12px;
    margin: 0 0 12px;
    padding: 14px;
    border-radius: 16px;
  }

  .menu-search-form {
    min-width: 0;
  }

  .menu-search-results,
  .menu-search-empty {
    margin: 0 0 18px;
    padding: 14px;
    border-radius: 17px;
  }

  .menu-search-result-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .menu-search-results-heading {
    align-items: flex-start;
    margin-bottom: 12px;
  }

  .menu-search-results-heading h3 {
    font-size: 18px;
  }

  .menu-search-results-heading p:not(.eyebrow) {
    font-size: 9px;
  }
}

@media (max-width: 480px) {
  .menu-search-result {
    padding: 13px;
    border-radius: 16px;
  }

  .menu-search-result-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .search-recipe-button {
    width: 100%;
  }
}
