.recipe-cover { aspect-ratio: 8 / 5; max-height: none; }
.recipe-cover img { object-position: center top; }
.recipe-card-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 14px 18px 18px; }
.recipe-card-actions button { min-height: 44px; padding: 8px 10px; }
.recipe-card-actions .danger-action { border: 1px solid #e9b8b1; border-radius: 8px; background: #fff; }
.recipe-card-actions .recipe-retry-button { grid-column: 1 / -1; }
.recipe-generation-message { margin-top: 10px !important; padding: 9px 11px; border-radius: 8px; background: #f3f7fa; color: #536373 !important; line-height: 1.45; }
.recipe-generation-message.is-error { background: #fff4f2; color: #9b3c31 !important; border: 1px solid #f1d0ca; }
.recipe-generation-message.is-busy { background: #eff8ff; color: #075ea8 !important; }
.recipe-card-actions button:disabled { opacity: .62; cursor: wait; }
.recipe-media-dialog { width: min(540px, calc(100% - 24px)); padding: 20px; }
.recipe-media-dialog img { display: block; width: 100%; max-height: calc(100vh - 130px); object-fit: contain; border-radius: 12px; background: #eff8ff; }
.recipe-media-dialog .empty { padding: 48px 12px; }
.shopping-helper { margin: 14px 0 8px; color: #657384; font-size: 13px; }
.shopping-recipe-choices, .shopping-list { display: grid; gap: 8px; }
.shopping-recipe-choices { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 18px; }
.shopping-choice, .shopping-item { min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #e5ebf1; border-radius: 10px; background: #fff; color: #37495a; cursor: pointer; }
.shopping-choice input, .shopping-item input { width: 22px; height: 22px; flex: 0 0 22px; margin: 0; accent-color: #0878d1; }
.shopping-choice strong, .shopping-item strong { display: block; color: #182433; font-size: 14px; }
.shopping-item small { display: block; color: #7b8b98; font-size: 12px; }
.shopping-item.is-purchased { background: #f4f8fa; }
.shopping-item.is-purchased strong { color: #7b8b98; text-decoration: line-through; }
.shopping-list .empty { padding: 18px 4px; text-align: left; }
@media (max-width: 380px) { .recipe-card-actions { grid-template-columns: 1fr 1fr; padding-inline: 14px; } }

.recipe-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.recipe-title-row h3 { flex: 1; min-width: 0; }
.recipe-serving-chip { flex: 0 0 auto; margin-top: 10px; padding: 4px 9px; border: 1px solid #d6e6f2; border-radius: 999px; background: #f3f7fa; color: #536373; font-size: 12px; line-height: 1.4; }
.recipe-serving-chip.is-confirmed { border-color: #bfddf6; background: #eff8ff; color: #075ea8; font-weight: 600; }
.recipe-serving-chip.is-estimated { border-color: #efd0aa; background: #fff8ed; color: #8a5707; font-weight: 600; }
.recipe-serving-note { display: -webkit-box; margin: 2px 0 8px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: #7a5a2c; font-size: 12px; line-height: 1.55; }
.recipe-ingredients-summary { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 4; white-space: pre-line; }
.recipe-content-note { display: block; margin: 5px 0 9px; color: #7b8b98; font-size: 12px; }
.recipe-unified-form { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; min-width: 0; }
.recipe-unified-form > *, .recipe-unified-form label { min-width: 0; max-width: 100%; }
.recipe-unified-form input, .recipe-unified-form select, .recipe-unified-form textarea { width: 100%; min-width: 0; max-width: 100%; }
.recipe-source-field textarea { min-height: 190px; line-height: 1.7; white-space: pre-wrap; }
.recipe-source-meta { display: flex; justify-content: space-between; gap: 12px; width: 100%; min-width: 0; max-width: 100%; color: #7b8b98; font-size: 12px; }
.recipe-source-meta > :first-child { flex: 1 1 auto; min-width: 0; }
#recipeRawCount { flex: 0 0 auto; font-variant-numeric: tabular-nums; }
#recipeRawCount.is-over { color: #b94737; font-weight: 600; }
.recipe-review-field textarea { min-height: 130px; line-height: 1.7; white-space: pre-wrap; }
#cookReviewCount.is-over { color: #b94737; font-weight: 600; }
.recipe-parse-status { display: grid; gap: 3px; padding: 11px 13px; border: 1px solid #dce6ee; border-radius: 10px; background: #f8fbfd; }
.recipe-parse-status strong { color: #37495a; font-size: 13px; }
.recipe-parse-status p { margin: 0; color: #657384; font-size: 12px; }
.recipe-parse-status.is-busy { border-color: #bfddf6; background: #eff8ff; }
.recipe-parse-status.is-busy strong, .recipe-parse-status.is-ready strong { color: #075ea8; }
.recipe-parse-status.is-ready { border-color: #b9dccb; background: #f2fbf6; }
.recipe-parse-status.is-warning, .recipe-parse-status.is-error { border-color: #efd0aa; background: #fff8ed; }
.recipe-parse-status.is-warning strong, .recipe-parse-status.is-error strong { color: #9a5a00; }
.recipe-full-text { margin-top: 16px; border: 1px solid #dce6ee; border-radius: 12px; background: #f8fbfd; overflow: hidden; }
.recipe-full-text > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 13px; border-bottom: 1px solid #dce6ee; color: #657384; font-size: 12px; }
.recipe-full-text strong { color: #075ea8; }
.recipe-full-text pre { max-height: 280px; margin: 0; padding: 14px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font: 14px/1.7 "Microsoft YaHei","PingFang SC",sans-serif; color: #263746; }
.recipe-review-text { border-color: #efd0aa; background: #fffaf2; }
.recipe-review-text > div { border-color: #efd0aa; }
.recipe-review-text strong { color: #8a5707; }
.recipe-attachment-evidence { display: grid; gap: 5px; padding: 12px 14px; border: 1px solid #efd0aa; border-radius: 10px; background: #fffaf2; }
.recipe-attachment-evidence strong { color: #8a5707; font-size: 13px; }
.recipe-attachment-evidence > span { color: #7b6b5e; font-size: 12px; }
.recipe-attachment-evidence pre { max-height: 220px; margin: 2px 0 0; padding: 10px 12px; overflow: auto; border-radius: 8px; background: #fff; color: #3d322a; font: 14px/1.65 "Microsoft YaHei","PingFang SC",sans-serif; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .recipe-unified-form { grid-template-columns: minmax(0, 1fr); }
  .recipe-source-field textarea { min-height: 230px; }
  .recipe-source-meta { align-items: flex-start; }
  .recipe-title-row { align-items: center; }
  .recipe-serving-chip { margin-top: 0; }
}
