.food-experience {
  color-scheme: dark;
  --food-ink: #1d2d23;
  --food-forest: #153426;
  --food-forest-deep: #0e251a;
  --food-cream: #f4efe5;
  --food-paper: #fbf8f1;
  --food-rust: #9b5e46;
  --food-rust-deep: #754231;
  --food-apricot: #dfb58d;
  --food-gold: #c89b56;
  --food-muted: #747c74;
  --food-line: rgba(36, 53, 41, 0.11);
}

/* Product controls first; promotional copy belongs outside the mockup. */
.food-preview :is(.food-main-head, .food-toolbar, .food-guide) { flex: 0 0 auto; }
.food-preview .food-ledger { display: flex; flex-direction: column; flex: 0 1 auto; min-height: 0; }
.food-preview .food-ledger-head { flex: 0 0 auto; }
.food-preview .food-ledger-scroll { min-height: 0; }
.food-preview .food-guide {
  display: grid;
  gap: 9px;
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid rgba(210, 173, 115, .18);
  border-radius: 12px;
  background: linear-gradient(115deg, #263a2e, #162d20);
  color: #f4edde;
}
.food-preview :is(.food-guide, .food-dialog, .food-place-memory, .food-place-people)[hidden],
.food-guide [hidden] { display: none; }
.food-guide-heading { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.food-guide-heading > strong { font: 500 20px/1.15 "Newsreader", serif; }
.food-guide-heading > span { color: #c3cdbf; font: 500 10px/1.4 "DM Sans", sans-serif; white-space: nowrap; }
.food-guide-search { display: flex; gap: 9px; align-items: center; min-height: 36px; padding: 0 10px; border: 1px solid #637260; border-radius: 8px; background: #10271b; }
.food-guide-search:focus-within { border-color: #cc9e6b; box-shadow: inset 0 0 0 1px rgba(204, 158, 107, .3); }
.food-guide-search > svg { flex: 0 0 15px; height: 15px; fill: none; stroke: #c9d0c3; stroke-width: 1.5; }
.food-guide-search > input { min-width: 0; width: 100%; padding: 9px 0; border: 0; border-radius: 0; outline: 0; background: transparent; color: #fff5e6; font: 500 12px/1.4 "DM Sans", sans-serif; }
.food-guide-search > input::placeholder { color: #b5c0b1; opacity: 1; }
.food-guide-search input::-webkit-search-cancel-button { display: none; }
.food-guide-search > button { flex: 0 0 28px; height: 28px; padding: 0; border: 0; border-radius: 6px; color: #f0e1cb; background: transparent; cursor: pointer; font: 500 18px/1 sans-serif; }
.food-guide-footer { display: flex; gap: 10px; align-items: center; min-width: 0; }
.food-guide-cities { display: flex; flex: 1; gap: 6px; min-width: 0; overflow: auto; padding: 2px; scrollbar-width: thin; scrollbar-color: #81775d transparent; }
.food-guide-cities button { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; min-height: 29px; padding: 5px 9px; border: 1px solid #53644f; border-radius: 7px; background: transparent; color: #dce3d7; font: 550 10px/1.2 "DM Sans", sans-serif; cursor: pointer; transition: background 150ms ease, border-color 150ms ease; }
.food-guide-cities button[aria-pressed="true"] { border-color: #a38560; background: #574737; color: #fff0d8; }
.food-guide-cities button:hover { background: #374936; }
.food-guide-cities b { font-weight: 500; opacity: .7; font-variant-numeric: tabular-nums; }
.food-guide [data-food-reset] { flex: 0 0 auto; min-height: 28px; padding: 5px; border: 0; border-radius: 5px; background: transparent; color: #dfbf92; font: 550 10px/1.2 "DM Sans", sans-serif; cursor: pointer; }
.food-preview .food-empty { min-height: 145px; gap: 10px; }
.food-empty button { justify-self: center; min-height: 32px; padding: 7px 12px; border: 1px solid #a18564; border-radius: 7px; color: #f6e6cd; background: #4e4835; font: 550 11px/1.3 "DM Sans", sans-serif; cursor: pointer; }
.food-preview .food-lived-row .food-dish-button { cursor: pointer; }
.food-place-dialog .food-dialog-head strong { font-size: 15px; }
.food-place-dialog .food-dialog-head small { font-size: 8px; }
.food-place-dialog .food-dialog-context strong { font-size: 18px; line-height: 1.2; }
.food-place-dialog .food-dialog-context small { font: 500 12px/1.4 "DM Sans", sans-serif; }
.food-place-dish { display: grid; gap: 5px; padding: 12px; border-radius: 9px; background: #e6dcc9; color: #493426; }
.food-place-dish small { font: 700 9px/1.3 "DM Sans", sans-serif; letter-spacing: 1px; }
.food-place-dish strong { font: 550 15px/1.4 "DM Sans", sans-serif; overflow-wrap: anywhere; }
.food-place-memory { margin: 0; color: #4b5a4d; font: 450 13px/1.5 "DM Sans", sans-serif; white-space: pre-wrap; overflow-wrap: anywhere; }
.food-place-people { margin: 0; color: #795340; font: 550 11px/1.4 "DM Sans", sans-serif; }
.food-place-maps { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.food-place-maps a { display: grid; min-height: 38px; place-items: center; padding: 8px; border: 1px solid #71816d; border-radius: 8px; color: #fff4e3; background: #233d2d; text-decoration: none; font: 550 12px/1.3 "DM Sans", sans-serif; }
.food-place-maps a:hover { background: #35543f; }
.food-place-edit { justify-self: center; min-height: 30px; padding: 6px 10px; border: 0; border-radius: 5px; color: #754e35; background: transparent; font: 550 11px/1.4 "DM Sans", sans-serif; cursor: pointer; }
.food-experience .food-guide button:focus-visible,
.food-experience .food-place-dialog :is(button, a):focus-visible { outline: 2px solid #c39868; outline-offset: -2px; }
@media (prefers-reduced-motion: reduce) {
  .food-guide-cities button { transition: none; }
}

.food-app-main {
  position: relative;
  min-width: 0;
  padding: 22px 25px 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% -8%, rgba(150, 79, 57, 0.105), transparent 34%),
    linear-gradient(180deg, #f1ece3, #ece7dd);
}

.food-app-main::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 2%, rgba(155, 94, 70, 0.58) 48%, rgba(199, 155, 85, 0.3) 78%, transparent);
  content: "";
  opacity: 0.72;
}

.food-main-head {
  position: relative;
  z-index: 20;
  display: flex;
  min-height: 49px;
  padding: 0 0 13px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--food-line);
}

.food-title-lockup {
  display: flex;
  gap: 10px;
  align-items: center;
}

.food-title-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(146, 82, 60, 0.2);
  border-radius: 11px;
  color: var(--food-rust-deep);
  background:
    radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.8), transparent 35%),
    linear-gradient(145deg, rgba(224, 181, 142, 0.72), rgba(184, 118, 83, 0.17));
  box-shadow: 0 7px 17px rgba(92, 47, 34, 0.09);
}

.food-title-mark svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.food-title-copy {
  display: grid;
  gap: 2px;
}

.food-title-copy h1 {
  margin: 0;
  color: var(--food-ink);
  font: 400 34px/0.9 "Newsreader", serif;
  letter-spacing: -1.05px;
}

.food-title-copy h1 em {
  color: #718172;
  font-style: italic;
}

.food-title-copy p {
  margin: 0;
  color: #86624f;
  font: 650 6.3px/1 "Manrope", sans-serif;
  letter-spacing: 0.78px;
  text-transform: uppercase;
}

.food-head-actions {
  position: relative;
  display: flex;
  gap: 7px;
  align-items: center;
}

.food-search-toggle,
.food-create-toggle {
  display: inline-flex;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(35, 59, 43, 0.15);
  color: #f7ead2;
  background: linear-gradient(145deg, #244b35, #173522);
  box-shadow: 0 8px 18px rgba(14, 42, 27, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.food-search-toggle {
  width: 34px;
  padding: 0;
  border-radius: 10px;
}

.food-create-toggle {
  gap: 7px;
  min-width: 103px;
  padding: 0 10px 0 8px;
  border-radius: 10px;
  font: 680 7px/1 "Manrope", sans-serif;
  letter-spacing: 0.65px;
  text-transform: uppercase;
}

.food-search-toggle svg,
.food-create-toggle svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.food-create-toggle > span {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 7px;
  background: linear-gradient(145deg, #aa684f, #7f4434);
  font-size: 12px;
}

.food-search-popover,
.food-create-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 7px);
  right: 0;
  overflow: hidden;
  border: 1px solid rgba(34, 52, 40, 0.15);
  border-radius: 12px;
  background: rgba(249, 246, 238, 0.98);
  box-shadow: 0 18px 42px rgba(12, 31, 20, 0.22);
}

.food-search-popover[hidden],
.food-create-menu[hidden] {
  display: none;
}

.food-search-popover {
  width: 290px;
  padding: 10px;
}

.food-search-popover label {
  display: flex;
  gap: 8px;
  height: 36px;
  padding: 0 10px;
  align-items: center;
  border: 1px solid rgba(42, 61, 47, 0.14);
  border-radius: 9px;
  background: white;
}

.food-search-popover svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #52685a;
  stroke-width: 1.4;
}

.food-search-popover input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #253a2e;
  background: transparent;
  font: 550 10px/1 "DM Sans", sans-serif;
}

.food-search-popover p {
  margin: 7px 3px 1px;
  color: #798078;
  font: 520 7px/1.3 "DM Sans", sans-serif;
}

.food-create-menu {
  display: grid;
  width: 166px;
  padding: 6px;
}

.food-create-menu button {
  display: flex;
  gap: 8px;
  min-height: 36px;
  padding: 0 9px;
  align-items: center;
  border: 0;
  border-radius: 8px;
  color: #283b30;
  background: transparent;
  cursor: pointer;
  font: 610 8px/1 "DM Sans", sans-serif;
  text-align: left;
}

.food-create-menu button:hover {
  background: rgba(38, 72, 51, 0.07);
}

.food-create-menu i {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 7px;
  color: #fff5df;
  background: #9b6048;
  font: normal 700 11px/1 "DM Sans", sans-serif;
}

.food-toolbar {
  display: flex;
  min-height: 34px;
  margin-bottom: 8px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.food-primary-tabs,
.food-filter-tabs {
  display: flex;
  gap: 5px;
  align-items: center;
}

.food-primary-tabs {
  padding: 3px;
  border: 1px solid rgba(38, 58, 44, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.36);
}

.food-primary-tabs button,
.food-filter-tabs button {
  min-height: 26px;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
}

.food-primary-tabs button {
  display: inline-flex;
  gap: 6px;
  padding: 0 9px;
  align-items: center;
  color: #667169;
  background: transparent;
  font: 650 7.2px/1 "DM Sans", sans-serif;
}

.food-primary-tabs button b {
  color: #9a6d55;
  font: 650 6.5px/1 "Manrope", sans-serif;
}

.food-primary-tabs button.active {
  border-color: rgba(125, 75, 55, 0.15);
  color: #633b2e;
  background: rgba(255, 252, 245, 0.94);
  box-shadow: 0 3px 8px rgba(51, 35, 26, 0.07);
}

.food-filter-tabs button {
  padding: 0 8px;
  color: #747c75;
  background: transparent;
  font: 650 6.5px/1 "Manrope", sans-serif;
  letter-spacing: 0.25px;
}

.food-filter-tabs button.active {
  border-color: rgba(148, 86, 61, 0.18);
  color: #7a4938;
  background: rgba(167, 96, 69, 0.08);
}

.food-ledger {
  overflow: hidden;
  border: 1px solid rgba(38, 54, 43, 0.12);
  border-radius: 13px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.3)),
    #f8f3e9;
  box-shadow: 0 17px 38px rgba(22, 39, 28, 0.085);
}

.food-ledger-head,
.food-ledger-row {
  display: grid;
  grid-template-columns: 26px minmax(220px, 1fr) minmax(176px, 0.67fr) 61px 38px;
  gap: 9px;
  align-items: center;
}

.food-ledger-head {
  min-height: 29px;
  padding: 0 9px 0 10px;
  color: #8b8f89;
  background: rgba(30, 56, 39, 0.035);
  font: 710 5.4px/1 "Manrope", sans-serif;
  letter-spacing: 0.65px;
  text-transform: uppercase;
}

.food-ledger-head span:nth-child(3) {
  color: #925c45;
}

.food-ledger-scroll {
  max-height: 480px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(120, 91, 72, 0.23) transparent;
  scrollbar-width: thin;
}

.food-ledger-scroll::-webkit-scrollbar {
  width: 5px;
}

.food-ledger-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(120, 91, 72, 0.23);
}

.food-ledger-row {
  position: relative;
  min-height: 54px;
  padding: 5px 9px 5px 10px;
  border-top: 1px solid rgba(42, 56, 45, 0.085);
  transition: background 150ms ease, opacity 180ms ease, transform 180ms ease;
}

.food-ledger-row:hover {
  background: rgba(255, 255, 255, 0.46);
}

.food-ledger-row.is-new {
  animation: food-row-arrive 700ms cubic-bezier(.2, .78, .22, 1) both;
}

@keyframes food-row-arrive {
  from { opacity: 0; transform: translateY(-5px); background: rgba(192, 141, 80, 0.16); }
  to { opacity: 1; transform: translateY(0); background: transparent; }
}

.food-row-number {
  color: #a17459;
  font: 500 10px/1 "Newsreader", serif;
  text-align: center;
}

.food-item-button {
  display: grid;
  grid-template-columns: 39px minmax(0, 1fr);
  gap: 9px;
  min-width: 0;
  padding: 0;
  align-items: center;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.food-item-button :is(img, .food-item-placeholder) {
  width: 39px;
  height: 39px;
  object-fit: cover;
  border: 1px solid rgba(65, 73, 65, 0.12);
  border-radius: 9px;
  box-shadow: 0 4px 10px rgba(42, 42, 34, 0.08);
}

.food-item-placeholder {
  display: grid;
  place-items: center;
  color: #d2b180;
  background: linear-gradient(145deg, #254437, #172c22);
}

.food-item-placeholder svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.food-item-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.food-item-copy small {
  color: #a16a50;
  font: 720 4.9px/1 "Manrope", sans-serif;
  letter-spacing: 0.58px;
  text-transform: uppercase;
}

.food-item-copy strong {
  overflow: hidden;
  color: #26372c;
  font: 610 9.4px/1.05 "DM Sans", sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.food-item-copy em {
  overflow: hidden;
  color: #626e64;
  font: normal 520 6.5px/1 "DM Sans", sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.food-dish-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 15px;
  gap: 5px;
  min-width: 0;
  min-height: 34px;
  padding: 5px 6px 5px 8px;
  align-items: center;
  border: 1px solid rgba(138, 79, 57, 0.11);
  border-radius: 8px;
  color: #6d4435;
  background: rgba(173, 105, 77, 0.055);
  text-align: left;
  cursor: pointer;
}

.food-dish-button > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.food-dish-button small {
  color: #a47a65;
  font: 700 4.4px/1 "Manrope", sans-serif;
  letter-spacing: 0.48px;
  text-transform: uppercase;
}

.food-dish-button strong {
  overflow: hidden;
  font: 610 7px/1 "DM Sans", sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.food-dish-button.is-empty strong {
  color: #977563;
  font-style: italic;
  font-weight: 520;
}

.food-dish-button svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.62;
}

.food-row-with {
  display: grid;
  gap: 2px;
  justify-items: center;
  color: #788078;
  font: 620 5.8px/1 "DM Sans", sans-serif;
}

.food-row-avatars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.food-row-with i {
  display: grid;
  flex: 0 0 auto;
  width: 20px;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--food-person-color, #456d88);
  font: normal 720 5px/1 "Manrope", sans-serif;
}

/* Same person, same color in every Food direction and in To Try / Lived. */
.food-row-avatars .person-jimmy { --food-person-color: var(--person-jimmy); }
.food-row-avatars .person-lauren { --food-person-color: var(--person-lauren); }
.food-row-avatars .person-bradley { --food-person-color: var(--person-bradley); }
.food-row-avatars .person-zachary { --food-person-color: var(--person-zachary); }
.food-row-avatars .person-allie { --food-person-color: var(--person-allie); }
.food-row-avatars .person-family { --food-person-color: #6f4a34; }

.food-row-avatars .person-family svg {
  display: block;
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.food-row-with.is-solo i {
  color: #6f796f;
  background: rgba(58, 79, 63, 0.08);
}

.food-complete-button {
  display: grid;
  width: 27px;
  height: 27px;
  padding: 0;
  place-items: center;
  justify-self: center;
  border: 1px solid rgba(73, 80, 74, 0.2);
  border-radius: 50%;
  color: rgba(65, 73, 67, 0.45);
  background: rgba(231, 228, 219, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, color 150ms ease;
}

.food-complete-button:hover {
  border-color: rgba(148, 87, 63, 0.42);
  color: #884c38;
  transform: scale(1.06);
}

.food-complete-button svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.food-lived-row .food-dish-button {
  cursor: default;
  border-color: rgba(177, 135, 75, 0.15);
  color: #705237;
  background: linear-gradient(135deg, rgba(199, 155, 85, 0.09), rgba(160, 91, 67, 0.045));
}

.food-lived-seal {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  justify-self: center;
  border: 1px solid rgba(177, 131, 74, 0.35);
  border-radius: 50%;
  color: #f4d8a7;
  background: linear-gradient(145deg, #7f513d, #5d382d);
  box-shadow: 0 4px 10px rgba(66, 38, 28, 0.13);
  font: 700 9px/1 "DM Sans", sans-serif;
}

.food-empty {
  display: grid;
  min-height: 260px;
  padding: 30px;
  place-content: center;
  gap: 5px;
  color: #747c75;
  text-align: center;
}

.food-empty strong {
  color: #304238;
  font: 500 18px/1 "Newsreader", serif;
}

.food-empty span {
  font: 520 9px/1.4 "DM Sans", sans-serif;
}

.food-dialog-scrim {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  padding: 24px;
  overflow: auto;
  overscroll-behavior: contain;
  place-items: center;
  background: rgba(8, 24, 15, 0.6);
  backdrop-filter: blur(2.5px) saturate(0.86);
  -webkit-backdrop-filter: blur(2.5px) saturate(0.86);
}

.food-dialog-scrim[hidden],
.food-dialog[hidden],
.food-dialog [hidden] {
  display: none;
}

.food-dialog {
  width: min(100%, 385px, calc(100vw - 48px));
  max-height: min(590px, calc(100dvh - 48px));
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(188, 137, 75, 0.3);
  border-radius: 18px;
  color: #2b3b31;
  background:
    radial-gradient(circle at 100% 0%, rgba(193, 130, 79, 0.13), transparent 31%),
    linear-gradient(145deg, #fbf8f0, #eee9df);
  box-shadow: 0 28px 70px rgba(2, 15, 8, 0.36);
  animation: food-dialog-in 190ms cubic-bezier(.2, .78, .22, 1) both;
}

@keyframes food-dialog-in {
  from { opacity: 0; transform: translateY(7px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.food-dialog-head {
  display: flex;
  min-height: 47px;
  padding: 10px 12px 9px 15px;
  align-items: center;
  justify-content: space-between;
  color: #fff5e3;
  background:
    radial-gradient(circle at 92% 0%, rgba(205, 157, 85, 0.16), transparent 38%),
    linear-gradient(140deg, #183626, #10281b);
}

.food-dialog-head span {
  display: grid;
  gap: 2px;
}

.food-dialog-head small {
  color: #d7ab6e;
  font: 720 5.2px/1 "Manrope", sans-serif;
  letter-spacing: 0.9px;
}

.food-dialog-head strong {
  font: 500 12px/1 "Newsreader", serif;
}

.food-dialog-close {
  display: grid;
  width: 25px;
  height: 25px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: rgba(255, 245, 226, 0.72);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.food-dialog-body {
  display: grid;
  gap: 11px;
  padding: 15px;
}

.food-dialog-context {
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.food-dialog-context :is(img, .food-item-placeholder) {
  width: 45px;
  height: 45px;
  object-fit: cover;
  border-radius: 11px;
}

.food-dialog-context [hidden] {
  display: none;
}

.food-dialog-context span {
  display: grid;
  gap: 3px;
}

.food-dialog-context strong {
  color: #26392e;
  font: 610 11px/1.05 "DM Sans", sans-serif;
}

.food-dialog-context small {
  color: #7a817b;
  font: 520 7px/1 "DM Sans", sans-serif;
}

.food-dialog-field {
  display: grid;
  gap: 5px;
}

.food-dialog-field > span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  color: #87533e;
  font: 700 6px/1 "Manrope", sans-serif;
  letter-spacing: 0.55px;
  text-transform: uppercase;
}

.food-dialog-field > span small {
  color: #93968f;
  font-size: 5px;
  letter-spacing: 0.35px;
}

.food-dialog-field input,
.food-dialog-field textarea {
  width: 100%;
  border: 1px solid rgba(50, 67, 55, 0.13);
  border-radius: 9px;
  outline: 0;
  color: #273a2e;
  background: #faf6ed;
  background-clip: padding-box;
  box-shadow: inset 0 1px 2px rgba(28, 43, 33, 0.035);
  font: 560 9px/1.3 "DM Sans", sans-serif;
}

.food-dialog-field input {
  height: 36px;
  padding: 0 10px;
}

.food-dialog-field textarea {
  min-height: 58px;
  padding: 9px 10px;
  resize: none;
}

.food-dialog-field input:focus,
.food-dialog-field textarea:focus {
  border-color: rgba(158, 97, 69, 0.42);
  background: #fffaf1;
  box-shadow: 0 0 0 2px rgba(171, 108, 78, 0.11);
}

.food-dialog-note {
  display: flex;
  gap: 7px;
  margin: 0;
  padding: 7px 9px;
  align-items: center;
  border-left: 2px solid rgba(184, 133, 73, 0.52);
  color: #6e776f;
  background: rgba(188, 145, 82, 0.065);
  font: 530 7px/1.35 "DM Sans", sans-serif;
}

.food-dialog-actions {
  display: flex;
  gap: 7px;
  justify-content: flex-end;
}

.food-dialog-actions button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(43, 62, 48, 0.14);
  border-radius: 9px;
  cursor: pointer;
  font: 660 7px/1 "DM Sans", sans-serif;
}

.food-dialog-actions .food-dialog-secondary {
  color: #68736b;
  background: rgba(255, 255, 255, 0.42);
}

.food-dialog-actions .food-dialog-primary {
  border-color: rgba(154, 104, 58, 0.28);
  color: #fff1d2;
  background: linear-gradient(145deg, #9a5c43, #734132);
  box-shadow: 0 7px 16px rgba(92, 53, 38, 0.15);
}

.food-toast {
  position: absolute;
  z-index: 95;
  right: 24px;
  bottom: 20px;
  max-width: 260px;
  overflow-wrap: anywhere;
  padding: 9px 12px;
  border: 1px solid rgba(239, 206, 151, 0.22);
  border-radius: 10px;
  color: #fff2da;
  background: rgba(19, 51, 34, 0.94);
  box-shadow: 0 12px 30px rgba(9, 26, 17, 0.24);
  font: 600 8px/1.3 "DM Sans", sans-serif;
}

.food-toast[hidden] {
  display: none;
}

/* Page 2 — forest-green Food workspace. */
.food-preview.food-direction-2 .app-shell {
  border-color: rgba(206, 177, 129, 0.24);
}

.food-direction-2 .food-app-main {
  background:
    radial-gradient(circle at 88% 0%, rgba(160, 82, 55, 0.18), transparent 36%),
    radial-gradient(circle at 12% 100%, rgba(181, 138, 73, 0.07), transparent 40%),
    linear-gradient(145deg, #173025 0%, #10251b 54%, #0c1e15 100%);
}

.food-direction-2 .food-app-main::before {
  background: linear-gradient(90deg, transparent 2%, rgba(207, 159, 91, 0.2) 22%, rgba(184, 105, 76, 0.72) 65%, transparent);
}

.food-direction-2 .food-main-head {
  border-bottom-color: rgba(241, 218, 181, 0.1);
}

.food-direction-2 .food-title-mark {
  border-color: rgba(236, 197, 142, 0.24);
  color: #f2d49e;
  background:
    radial-gradient(circle at 76% 16%, rgba(255, 222, 169, 0.18), transparent 36%),
    linear-gradient(145deg, #7f4b3a, #4f2c25);
  box-shadow: 0 8px 20px rgba(0, 10, 5, 0.22);
}

.food-direction-2 .food-title-copy h1 {
  color: #fff6e7;
}

.food-direction-2 .food-title-copy h1 em {
  color: #c9d0bd;
}

.food-direction-2 .food-title-copy p {
  color: #c89472;
}

.food-direction-2 .food-search-toggle,
.food-direction-2 .food-create-toggle {
  border-color: rgba(240, 213, 173, 0.18);
  color: #fff1d6;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
  box-shadow: 0 8px 20px rgba(0, 7, 3, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.food-direction-2 .food-create-toggle > span {
  background: linear-gradient(145deg, #ae6b4e, #764131);
}

.food-direction-2 .food-primary-tabs {
  border-color: rgba(241, 217, 179, 0.12);
  background: rgba(255, 255, 255, 0.035);
}

.food-direction-2 .food-primary-tabs button {
  color: rgba(235, 229, 215, 0.56);
}

.food-direction-2 .food-primary-tabs button b {
  color: #c58e6c;
}

.food-direction-2 .food-primary-tabs button.active {
  border-color: rgba(220, 176, 111, 0.21);
  color: #fff3dd;
  background: linear-gradient(145deg, rgba(164, 89, 64, 0.42), rgba(120, 66, 51, 0.22));
  box-shadow: 0 4px 12px rgba(0, 8, 4, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.food-direction-2 .food-filter-tabs button {
  color: rgba(232, 225, 210, 0.54);
}

.food-direction-2 .food-filter-tabs button.active {
  border-color: rgba(217, 174, 112, 0.18);
  color: #edd1a5;
  background: rgba(213, 161, 91, 0.09);
}

.food-direction-2 .food-ledger {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.food-direction-2 .food-ledger-head {
  display: none;
}

.food-direction-2 .food-ledger-scroll {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 414px;
  padding: 1px 4px 5px 1px;
  align-content: start;
}

.food-direction-2 .food-ledger-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 31px;
  grid-template-rows: 57px 32px;
  gap: 6px 7px;
  min-height: 109px;
  padding: 8px;
  overflow: hidden;
  border: 1px solid rgba(237, 212, 176, 0.12);
  border-radius: 12px;
  background:
    radial-gradient(circle at 96% 0%, rgba(194, 139, 80, 0.085), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.062), rgba(255, 255, 255, 0.025));
  box-shadow: 0 10px 22px rgba(0, 7, 3, 0.12);
}

.food-direction-2 .food-ledger-row::before {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 0;
  width: 2px;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(180deg, #b66f50, #d0a064);
  content: "";
  opacity: 0.68;
}

.food-direction-2 .food-ledger-row:hover {
  border-color: rgba(231, 190, 131, 0.2);
  background:
    radial-gradient(circle at 96% 0%, rgba(194, 139, 80, 0.11), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.078), rgba(255, 255, 255, 0.03));
}

.food-direction-2 .food-row-number {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 11px;
  color: rgba(225, 184, 125, 0.56);
  font-size: 8px;
}

.food-direction-2 .food-item-button {
  grid-column: 1 / 3;
  grid-row: 1;
  grid-template-columns: 49px minmax(0, 1fr);
  gap: 9px;
  padding-right: 34px;
}

.food-direction-2 .food-item-button :is(img, .food-item-placeholder) {
  width: 49px;
  height: 49px;
  border-color: rgba(244, 220, 184, 0.16);
  border-radius: 10px;
  box-shadow: 0 6px 14px rgba(0, 7, 3, 0.21);
}

.food-direction-2 .food-item-copy small {
  color: #c98b6a;
}

.food-direction-2 .food-item-copy strong {
  color: #fff7e9;
  font-size: 9.2px;
}

.food-direction-2 .food-item-copy em {
  color: rgba(226, 224, 213, 0.72);
}

.food-direction-2 .food-dish-button {
  grid-column: 1;
  grid-row: 2;
  min-height: 32px;
  border-color: rgba(202, 139, 104, 0.18);
  color: #f2d4b5;
  background: rgba(156, 79, 57, 0.16);
}

.food-direction-2 .food-dish-button small {
  color: #c28769;
}

.food-direction-2 .food-row-with {
  position: absolute;
  z-index: 3;
  top: 32px;
  right: 12px;
}

.food-direction-2 .food-row-with i {
  min-width: 19px;
  height: 19px;
  box-shadow: 0 0 0 2px rgba(12, 31, 21, 0.72);
}

.food-direction-2 .food-row-with > .food-person-names {
  display: none;
}

.food-direction-2 .food-complete-button,
.food-direction-2 .food-lived-seal {
  grid-column: 2;
  grid-row: 2;
  width: 27px;
  height: 27px;
  border-color: rgba(232, 202, 158, 0.22);
  color: rgba(244, 223, 190, 0.62);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.food-direction-2 .food-lived-seal {
  color: #f5d49d;
  background: linear-gradient(145deg, #86503d, #5b342a);
}

.food-direction-2 .food-lived-row .food-dish-button {
  border-color: rgba(218, 173, 105, 0.18);
  color: #f2d4a1;
  background: linear-gradient(135deg, rgba(190, 132, 70, 0.14), rgba(164, 87, 61, 0.1));
}

.food-direction-2 .food-empty {
  grid-column: 1 / -1;
  color: rgba(232, 226, 213, 0.56);
}

.food-direction-2 .food-empty strong {
  color: #f8efdf;
}

/* Compact Food rows — retain the selected palette, lose the tall card stack. */
.food-preview.food-line-items .food-app-main {
  container-type: inline-size;
  container-name: food-rows;
}

.food-preview.food-line-items :is(.food-ledger-head, .food-ledger-row) {
  display: grid;
  grid-template-columns: 22px minmax(0, 1.15fr) minmax(0, 1fr) 48px 36px;
  grid-template-rows: auto;
  column-gap: 10px;
  align-items: center;
  padding-inline: 10px;
}

.food-preview.food-line-items .food-ledger-head {
  min-height: 27px;
  margin-bottom: 2px;
  padding-right: 15px;
  border-bottom: 1px solid rgba(226, 206, 172, 0.12);
  color: #9baca0;
  background: transparent;
  font-size: 7px;
  letter-spacing: 0.8px;
}

.food-preview.food-line-items .food-ledger-head span:nth-child(3) {
  color: #c39a7b;
}

.food-preview.food-line-items .food-ledger-head span:nth-last-child(-n+2) {
  text-align: center;
}

.food-preview.food-line-items .food-ledger-scroll {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 488px;
  padding: 2px 5px 3px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  scrollbar-gutter: stable;
}

.food-preview.food-line-items .food-ledger-row {
  flex: 0 0 auto;
  min-height: 44px;
  padding-block: 3px;
  row-gap: 0;
  overflow: visible;
  border-radius: 8px;
  box-shadow: none;
}

.food-preview.food-line-items .food-ledger-row::before {
  display: none;
}

.food-preview.food-line-items .food-row-number {
  position: static;
  font-size: 9px;
}

.food-preview.food-line-items .food-item-button {
  grid-area: auto;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 9px;
  min-height: 36px;
  padding: 0;
  border-radius: 5px;
}

.food-preview.food-line-items .food-item-button :is(img, .food-item-placeholder) {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  box-shadow: none;
}

.food-preview.food-line-items .food-item-placeholder svg {
  width: 19px;
  height: 19px;
}

.food-preview.food-line-items .food-item-copy {
  gap: 3px;
}

.food-preview.food-line-items :is(.food-item-copy small, .food-dish-button small) {
  display: none;
}

.food-preview.food-line-items .food-item-copy strong {
  font-size: 12px;
  font-weight: 560;
  line-height: 1.2;
}

.food-preview.food-line-items .food-item-copy em {
  font-size: 8.5px;
  line-height: 1.2;
}

.food-preview.food-line-items .food-dish-button {
  grid-area: auto;
  min-height: 32px;
  padding: 6px 8px;
  border-radius: 6px;
}

.food-preview.food-line-items .food-dish-button strong {
  font-size: 10px;
  font-weight: 500;
  line-height: 1.25;
}

.food-preview.food-line-items .food-row-with {
  position: static;
  align-self: center;
}

.food-preview.food-line-items .food-row-with i {
  width: 22px;
  min-width: 22px;
  height: 22px;
  font-size: 7px;
  box-shadow: none;
}

.food-preview.food-line-items .food-row-with.is-solo i {
  display: none;
}

.food-preview.food-line-items .food-row-with.is-solo > span {
  display: block;
  color: #a6b3a7;
  font-size: 8px;
}

.food-preview.food-line-items :is(.food-complete-button, .food-lived-seal) {
  grid-area: auto;
  width: 21px;
  height: 21px;
  align-self: center;
}

/* A pending action is an empty ring with a ghosted hint, not a Lived seal.
   Keep the ring legible; dim only the check so the button never looks disabled. */
.food-preview.food-line-items .food-complete-button {
  position: relative;
  overflow: visible;
  border-color: rgba(172, 190, 177, .4);
  color: #bcc8bf;
  background: transparent;
  box-shadow: none;
  transform: none;
  transition: border-color 160ms ease, background-color 160ms ease;
}

/* Keep the visual compact without making a precise tap necessary. The 44px
   hit area fits the existing row rhythm and stops before the dish control. */
.food-preview.food-line-items .food-complete-button::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%);
}

.food-preview.food-line-items .food-complete-button svg {
  opacity: .18;
  stroke-width: 1.45;
  transform: scale(.92);
  transition: opacity 160ms ease, transform 160ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .food-preview.food-line-items .food-complete-button:hover {
    border-color: rgba(200, 175, 136, .65);
    background: rgba(200, 175, 136, .045);
  }
  .food-preview.food-line-items .food-complete-button:hover svg {
    opacity: .65;
    transform: scale(1);
  }
}

.food-preview.food-line-items .food-complete-button:focus-visible svg {
  opacity: .65;
  transform: scale(1);
}

.food-preview.food-line-items .food-complete-button:active svg {
  opacity: .65;
  transform: scale(.85);
}

@media (prefers-reduced-motion: reduce) {
  .food-preview.food-line-items .food-complete-button,
  .food-preview.food-line-items .food-complete-button svg { transition: none; }
}

.food-preview.food-line-items .food-ledger-row button:focus-visible {
  outline-offset: -2px;
}

@container food-rows (max-width: 610px) {
  .food-preview.food-line-items :is(.food-ledger-head, .food-ledger-row) {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 30px;
    column-gap: 8px;
    padding-inline: 7px;
  }

  .food-preview.food-line-items :is(.food-row-number, .food-row-with),
  .food-preview.food-line-items .food-ledger-head span:first-child,
  .food-preview.food-line-items .food-ledger-head span:nth-child(4) {
    display: none;
  }

  .food-preview.food-line-items .food-dish-button strong {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  .food-dialog,
  .food-ledger-row {
    animation: none;
    transition: none;
  }
}

/* Main-page integration: no sandbox chrome, page-wide styles, or fixed-width canvas. */
.food-page { min-width: 0; height: 100%; }
.food-page .food-app-main { display: flex; flex-direction: column; min-height: 100%; }
.food-experience :is(button, input, textarea) { appearance: none; -webkit-appearance: none; font-family: inherit; }
.food-experience button { -webkit-tap-highlight-color: transparent; }
.food-experience :is(button, input, textarea):focus { outline: none; }
.food-experience :is(button, a):focus-visible { outline: 2px solid #c39868; outline-offset: -2px; }
body.food-modal-open { overflow: hidden; }
.food-dialog-scrim { z-index: 1000; }
.food-dialog-head strong { font-size: 18px; line-height: 1.2; }
.food-dialog-head small { font-size: 9px; line-height: 1.4; }
.food-dialog-context strong { font-size: 14px; line-height: 1.3; }
.food-dialog-context small { font-size: 11px; line-height: 1.35; }
.food-dialog-field > span { font-size: 10px; line-height: 1.3; }
.food-dialog-field > span small { font-size: 9px; }
.food-dialog-field :is(input, textarea) { font-size: 14px; line-height: 1.4; }
.food-dialog-note { font-size: 11px; line-height: 1.5; }
.food-dialog-actions button { font-size: 12px; min-height: 38px; }
.food-page .food-primary-tabs button { font-size: 11px; line-height: 1.25; }
.food-page .food-primary-tabs button b { font-size: 9px; }
.food-page .food-filter-tabs button { font-size: 9px; line-height: 1.25; }
.food-page .food-title-copy p { font-size: 10px; line-height: 1.4; letter-spacing: .15px; text-transform: none; }
.food-page .food-toolbar { flex-wrap: wrap; gap: 10px; }
.food-page .food-toast { position: absolute; bottom: 18px; left: 50%; right: auto; transform: translateX(-50%); width: max-content; max-width: calc(100% - 24px); font-size: 10px; }
.app-preview.has-food-page [data-bucket-section="food"].active::after,
.app-preview.has-food-page [data-bucket-section="food"].active::before { display: none; }
.lived-food-guide-link { display: flex; justify-content: center; padding: 0 12px 12px; }
.lived-food-guide-link[hidden] { display: none; }
.lived-food-guide-link button { border: 1px solid #74654d; border-radius: 9px; padding: 9px 15px; color: #eee1ca; background: #27382b; font: 500 12px/1.3 "DM Sans", sans-serif; cursor: pointer; }
.lived-food-guide-link button:focus-visible { outline: 2px solid #c39868; outline-offset: 2px; }
.lived-food-best-dish { display: none; color: #e3b991; font: 500 11px/1.35 "DM Sans", sans-serif; margin-top: 5px; }
[data-lived-grid][data-filter="food"] .lived-food-best-dish { display: block; }
@media (max-width: 700px) {
  .food-dialog-field :is(input, textarea) { font-size: 16px; }
  .food-page .food-app-main { padding: 14px 10px; }
  .food-page .food-main-head { gap: 8px; }
  .food-page .food-title-copy h1 { font-size: 29px; }
  .food-page .food-title-mark { width: 34px; height: 34px; }
  .food-page .food-title-copy p { font-size: 9px; }
  .food-page .food-guide { padding: 10px; }
  .food-page .food-guide-heading { align-items: start; gap: 6px; flex-wrap: wrap; }
}
