.prepare-food-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  align-items: stretch;
  gap: 9px;
  margin-top: 13px;
}

.prepare-food-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 80px 28px 20px 22px 58px 56px;
  gap: 0;
  box-sizing: border-box;
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(126, 80, 31, .3);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255, 251, 235, .96), rgba(225, 201, 153, .8));
  box-shadow: 0 4px 10px rgba(71, 43, 17, .12);
}

.prepare-food-art {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 100%;
  height: 80px;
  padding: 9px;
  overflow: hidden;
  border: 1px solid rgba(126, 80, 31, .2);
  border-radius: 9px;
  background: radial-gradient(circle, rgba(255, 252, 235, .95), rgba(176, 135, 77, .16));
}

.prepare-food-art img {
  display: block;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 4px 3px rgba(63, 38, 14, .17));
}

.prepare-food-name {
  align-self: end;
  height: 19px;
  margin: 0;
  padding: 0 2px;
  overflow: hidden;
  font-size: 15px;
  line-height: 19px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prepare-food-storage {
  height: 16px;
  margin: 0;
  padding: 0 2px;
  font-size: 12px;
  line-height: 16px;
  white-space: nowrap;
}

.prepare-food-value {
  height: 16px;
  margin: 0;
  padding: 0 2px;
  color: #8b6031;
  font: 9px/16px monospace;
  white-space: nowrap;
}

.prepare-food-conversion {
  display: grid;
  grid-template-columns: 26px 58px minmax(0, 1fr);
  grid-template-rows: 32px 22px;
  align-items: center;
  gap: 4px 6px;
  min-width: 0;
}

.prepare-food-quantity {
  display: block;
  margin: 0;
  color: #8b6031;
  font: 9px/16px monospace;
}

.prepare-food-quantity-input {
  box-sizing: border-box;
  width: 58px;
  height: 32px;
  min-width: 58px;
  max-width: 58px;
  margin: 0;
  padding: 5px 6px;
  border: 1px solid rgba(123, 78, 31, .35);
  border-radius: 7px;
  background: #fffaf0;
  color: var(--ink);
  font: 13px/20px Georgia;
}

.prepare-food-preview {
  display: block;
  grid-column: 1 / -1;
  align-self: center;
  width: 100%;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #557046;
  font: 9px/18px monospace;
  letter-spacing: .02em;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prepare-food-action {
  display: grid;
  grid-template-rows: 36px 12px;
  align-content: end;
  row-gap: 5px;
  min-width: 0;
}

.prepare-food-button {
  box-sizing: border-box;
  width: 100%;
  height: 36px;
  margin: 0;
  padding: 0 8px;
  overflow: hidden;
  border-radius: 7px;
  font-size: 9px;
  line-height: 34px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prepare-food-feedback {
  height: 12px;
  min-height: 12px;
  margin: 0;
  overflow: hidden;
  color: #58714d;
  font: 7px/12px monospace;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prepare-food-card.prepared {
  border-color: #718d5d;
  box-shadow: 0 0 0 2px rgba(102, 128, 91, .15);
}

.prepare-food-card.failed {
  border-color: #9b5143;
}

.prepare-food-card button:disabled {
  cursor: not-allowed;
  filter: grayscale(.65);
  opacity: .55;
  transform: none;
  box-shadow: none;
}

@media (max-width: 1180px) {
  .prepare-food-grid { grid-template-columns: repeat(3, minmax(180px, 1fr)); }
}

@media (max-width: 850px) {
  .prepare-food-grid { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
}

@media (max-width: 560px) {
  .prepare-food-grid { grid-template-columns: minmax(180px, 1fr); }
}
