/* Read-only food feedback skin. The host supplies canonical presentation text,
   effect tone, icon, target, lifetime and interaction behavior. */
body .zf-food-tooltip {
  --ff-ink: var(--zf-text-on-paper, #153d39);
  --ff-muted: var(--zf-text-secondary, #526753);
  --ff-good: var(--zf-benefit, #285c2b);
  --ff-bad: var(--zf-penalty, #96382d);
  box-sizing: border-box;
  max-width: var(--zf-tooltip-width, 336px);
  padding: 12px;
  border: 3px solid var(--zf-ink, #0b3035);
  border-top: 5px solid var(--zf-orange, #ffaf31);
  border-radius: var(--zf-surface-radius, 16px 12px 16px 12px);
  background: var(--zf-surface-paper, #fff4d5);
  color: var(--ff-ink);
  box-shadow: inset 0 2px 0 #fff, 0 4px 0 var(--zf-ink, #0b3035), 0 10px 22px #001c2640;
  font: 700 13px/1.4 var(--zf-font-body, system-ui, sans-serif);
  text-align: left;
  overflow-wrap: anywhere;
}
body .zf-food-tooltip[hidden] { display: none !important; }
body .zf-food-tooltip * { box-sizing: border-box; }
body .zf-food-tooltip .zf-food-tooltip__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
body .zf-food-tooltip .zf-food-tooltip__icon {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 2px 1px #24483135);
}
body .zf-food-tooltip .zf-food-tooltip__header > span { min-width: 0; flex: 1; }
body .zf-food-tooltip .zf-food-tooltip__title {
  display: block;
  margin: 0;
  color: var(--ff-ink);
  font: 900 18px/1.2 var(--zf-font-body, system-ui, sans-serif);
}
body .zf-food-tooltip .zf-food-tooltip__state {
  display: block;
  margin-top: 4px;
  color: var(--ff-muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}
body .zf-food-tooltip .zf-food-tooltip__quality {
  display: inline-block;
  max-width: 100%;
  margin-top: 5px;
  padding: 3px 7px;
  border: 1px solid #a0ae88;
  border-radius: 6px;
  background: #e9ebc9;
  color: #4c6545;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.3;
}
body .zf-food-tooltip .zf-food-tooltip__stats {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  margin: 0;
  padding: 0;
}
body .zf-food-tooltip .zf-food-stat {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 3px 10px;
  min-width: 0;
  min-height: 44px;
  padding: 7px 9px;
  border: 1px solid #b5be91;
  border-left: 4px solid #80906a;
  border-radius: 9px;
  background: #eeedcf;
  color: #53614b;
  font-size: 14px;
  line-height: 1.3;
}
body .zf-food-tooltip .zf-food-stat__label { min-width: 0; align-self: center; font-weight: 900; }
body .zf-food-tooltip .zf-food-stat__lifetime {
  display: block;
  margin-top: 3px;
  color: var(--ff-muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}
body .zf-food-tooltip .zf-food-stat__value {
  color: inherit;
  max-width: 150px;
  margin-left: auto;
  font-weight: 900;
  font-size: var(--zf-effect-size, 22px);
  line-height: 1.15;
  align-self: center;
  font-variant-numeric: tabular-nums;
  white-space: normal;
  text-align: right;
}
body .zf-food-tooltip .zf-food-stat[data-tone="positive"] { color: var(--ff-good); background: #e3edbe; border-color: #adbd86; border-left-color: #578735; }
body .zf-food-tooltip .zf-food-stat[data-tone="negative"] { color: var(--ff-bad); background: #ffe5ce; border-color: #d7a68b; border-left-color: #c55e44; }
/* Optional canonical comparison supplied by the presenter. Never infer numbers
   or color this neutral current-to-result context as an additional benefit. */
body .zf-food-tooltip .zf-food-stat__comparison {
  grid-column: 1 / -1;
  color: var(--ff-ink);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
body .zf-food-tooltip .zf-food-lifetime {
  display: block;
  margin-top: 10px;
  padding: 8px 9px;
  border: 1px solid #c5ad72;
  border-radius: 7px;
  background: #ffe4a6;
  color: #695129;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}
body .zf-food-tooltip .zf-food-tooltip__storage {
  display: block;
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px dashed #b5be91;
  color: #526b61;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}
body .zf-food-tooltip .zf-food-tooltip__stats:empty,
body .zf-food-tooltip :is(.zf-food-tooltip__state, .zf-food-tooltip__quality, .zf-food-lifetime, .zf-food-tooltip__storage):empty { display: none; }

/* Actual E-owner world marker. Its controller retains projection, placement and
   pointer-events:none. Anonymous legacy effect lines remain neutral until the
   canonical presenter supplies structured rows; a sign is not a benefit rule. */
body .kitchen-interaction-marker .kitchen-interaction-marker__meal {
  color: #355742;
  border-bottom-color: #bec497;
  font-family: var(--zf-font-body, system-ui, sans-serif);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}
body .kitchen-interaction-marker .kitchen-interaction-marker__meal > b { color: #234d37; font-size: 14px; font-weight: 900; line-height: 1.25; }
body .kitchen-interaction-marker .kitchen-interaction-marker__quality { color: #5c6848; font-size: 11px; font-weight: 900; }
body .kitchen-interaction-marker .kitchen-interaction-marker__duration {
  color: #695129;
  background: #ffe4a6;
  padding: 5px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.35;
}
body .kitchen-interaction-marker .kitchen-interaction-marker__meal.zf-food-tooltip,
body .kitchen-interaction-marker .kitchen-interaction-marker__meal .zf-food-tooltip {
  max-width: none;
  margin: 0 0 5px;
  padding: 7px;
  border: 0;
  border-bottom: 1px solid #bec497;
  border-radius: 7px;
  background: #fff4d5;
  box-shadow: none;
}
body .kitchen-interaction-marker .zf-food-tooltip .zf-food-tooltip__title { font-size: 17px; }
body .kitchen-interaction-marker .zf-food-tooltip .zf-food-tooltip__icon { flex-basis: 44px; width: 44px; height: 44px; }
body .kitchen-storage .ks-detail.zf-food-tooltip,
body .kitchen-storage .ks-detail .zf-food-tooltip { max-width: none; min-height: 0; }

/* Actual item-action controls supplied by the storage/E owners. These controls
   never change which item is selected, its footprint, or the discard receipt. */
body .kitchen-storage .ks-actions { min-width: 0; }
body .kitchen-storage :is(.ks-actions-toggle, .ks-discard) {
  min-width: 0;
  min-height: 44px;
  max-width: 100%;
  color: #315138;
  background: #fff2cd;
  border: 2px solid var(--zf-ink, #0b3035);
  border-radius: 10px;
  box-shadow: inset 0 2px 0 #fff, 0 2px 0 #0b30354d;
  font: 900 12px/1.35 var(--zf-font-body, system-ui, sans-serif);
  white-space: normal;
  overflow-wrap: anywhere;
}
body .kitchen-storage .ks-actions-toggle[aria-pressed="true"] { color: #305329; background: #d9e7a5; }
body .kitchen-storage .ks-selection { color: #35563c; background: #fff2cf; border-color: #a2ad7b; border-radius: 9px; }
body .kitchen-storage .ks-selection p { font-family: var(--zf-font-body, system-ui, sans-serif); font-weight: 800; overflow-wrap: anywhere; }
body .kitchen-storage .ks-discard { color: #923d30; background: #ffe0bd; border-color: #81503b; }
body .kitchen-storage .ks-actions button:is(:hover, .zf-game-hover):not(:disabled) { box-shadow: inset 0 0 0 2px #0b303538, 0 2px 0 #0b30354d; }
body .kitchen-storage .ks-actions button:disabled { color: #6a775e; background: #dddcbc; border-color: #8a9c7f; box-shadow: none; opacity: 1; }
body .kitchen-storage .ks-actions button:focus-visible { outline: 3px solid #2a6260; outline-offset: 2px; }
body .kitchen-storage .ks-feedback { color: #345e2d; font: 800 12px/1.4 var(--zf-font-body, system-ui, sans-serif); overflow-wrap: anywhere; }

/* Actual context menu and touch E button from the interaction owner. Styles
   have enough specificity to survive their dynamically appended stylesheets. */
body .kitchen-action-menu {
  color: #234c38;
  background: #0b3035b8;
  font-family: var(--zf-font-body, system-ui, sans-serif);
}
body .kitchen-action-menu .kam-window {
  color: #234c38;
  background: #fff0cb;
  border-color: var(--zf-ink, #0b3035);
  border-radius: 18px;
  box-shadow: 0 0 0 1px var(--zf-ink, #0b3035), inset 0 3px 0 #fff8, 0 6px 0 #0b303566, 0 20px 45px #0006;
}
body .kitchen-action-menu .kam-window h2 { font: 400 24px/1.2 var(--zf-font-display, var(--zf-font-body, system-ui, sans-serif)); color: #345c35; }
body .kitchen-action-menu .kam-window > .zf-food-tooltip { max-width: none; margin-bottom: 12px; }
body .kitchen-action-menu .kam-actions { min-width: 0; }
body .kitchen-action-menu .kam-window button {
  min-width: 0;
  max-width: 100%;
  color: #244e35;
  background: linear-gradient(#e3efa3, #c5df6d);
  border: 2px solid var(--zf-ink, #0b3035);
  border-radius: 10px;
  box-shadow: inset 0 2px 0 #ffffcf, 0 3px 0 #0b30354d;
  font: 900 13px/1.35 var(--zf-font-body, system-ui, sans-serif);
  white-space: normal;
  overflow-wrap: anywhere;
}
body .kitchen-action-menu .kam-window button:is(:hover, .zf-game-hover):not(:disabled) { background: #d5e887; }
body .kitchen-action-menu .kam-window button:disabled { color: #6f785d; background: #e0dfbb; border-color: #91a283; box-shadow: none; opacity: 1; }
body .kitchen-action-menu .kam-window button small { color: #7f4938; font-weight: 800; }
body .kitchen-action-menu .kam-window > small { color: #5d7050; font-weight: 800; font-size: 11px; }
body .kitchen-action-menu .kam-status { color: #984832; font: 800 12px/1.4 var(--zf-font-body, system-ui, sans-serif); }
body .kitchen-action-menu .kam-window .kam-cancel { background: #ffdfa0; }
body .kitchen-action-menu .kam-window button:focus-visible { outline: 3px solid #2a6260; outline-offset: 3px; }
body .kitchen-touch-action .kitchen-touch-action__button {
  max-width: min(300px, calc(100vw - 32px));
  color: #214b32;
  background: linear-gradient(#e4f39e, #b9d85f);
  border: 3px solid var(--zf-ink, #0b3035);
  border-radius: 13px;
  box-shadow: inset 0 2px 0 #faffcf, 0 4px 0 var(--zf-ink, #0b3035);
  font: 900 13px/1.25 var(--zf-font-body, system-ui, sans-serif);
  white-space: normal;
  text-overflow: clip;
  overflow: visible;
  overflow-wrap: anywhere;
}
body .kitchen-touch-action .kitchen-touch-action__button:is(:hover, .zf-game-hover):not(:disabled) { background: #d6e98a; }
body .kitchen-touch-action .kitchen-touch-action__button:disabled { background: #d7d9ba; border-color: #708975; color: #5c715d; opacity: .85; box-shadow: none; }
body .kitchen-touch-action .kitchen-touch-action__button:focus-visible { outline: 3px solid #ffda80; outline-offset: 3px; }

/* This hook annotates an existing canonical recipe-discovered notification.
   It never creates a toast, recipe, event, timer or discovery transaction. */
body .toast[data-toast-kind="recipe-discovered"] {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  color: #32522f;
  background: #fff0c2;
  border-color: var(--zf-ink, #0b3035);
  border-radius: 14px;
  box-shadow: inset 0 3px 0 #fff9, 0 4px 0 var(--zf-ink, #0b3035);
  font-family: var(--zf-font-body, system-ui, sans-serif);
  line-height: 1.4;
  text-align: left;
}
body .toast[data-toast-kind="recipe-discovered"] .zf-food-discovery-icon { flex: 0 0 48px; width: 48px; height: 48px; object-fit: contain; filter: drop-shadow(0 2px 1px #3453303b); }
body .toast[data-toast-kind="recipe-discovered"] .zf-food-discovery-title { display: block; font-weight: 900; color: #3f692c; }
body .toast[data-toast-kind="recipe-discovered"] .zf-food-discovery-detail { display: block; color: #6c6544; font-size: 11px; font-weight: 800; }

@media (max-width: 440px) {
  body .zf-food-tooltip { padding: 10px; font-size: 12px; --zf-effect-size: 21px; }
  body .zf-food-tooltip .zf-food-tooltip__icon { flex-basis: 44px; width: 44px; height: 44px; }
  body .zf-food-tooltip .zf-food-tooltip__title { font-size: 17px; }
  body .zf-food-tooltip .zf-food-stat { font-size: 13px; padding: 6px 8px; }
  body .kitchen-action-menu .kam-window { border-radius: 15px; }
  body .toast[data-toast-kind="recipe-discovered"] { gap: 8px; }
  body .toast[data-toast-kind="recipe-discovered"] .zf-food-discovery-icon { flex-basis: 40px; width: 40px; height: 40px; }
}
@media (max-height: 450px) and (min-width: 441px) {
  body .zf-food-tooltip .zf-food-stat { min-height: 40px; padding: 5px 8px; }
  body .zf-food-tooltip .zf-food-tooltip__icon { flex-basis: 40px; width: 40px; height: 40px; }
  body .zf-food-tooltip .zf-food-tooltip__header { margin-bottom: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  body .toast[data-toast-kind="recipe-discovered"] { animation: none; }
}
@media (forced-colors: active) {
  body .zf-food-tooltip,
  body .zf-food-tooltip :is(.zf-food-stat, .zf-food-tooltip__quality, .zf-food-lifetime) { border-color: CanvasText; }
  body .kitchen-action-menu .kam-window button { border-color: ButtonText; }
}
body .zf-food-tooltip .zf-food-tooltip__sides{display:block;margin:0 0 7px;color:#5b6e50;font-size:10px;font-weight:800;line-height:1.4}
body .zf-food-tooltip .zf-food-tooltip__sides:empty{display:none}
