@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --primary: #D32F2F;
  --primary-dark: #FF5722;
  --primary-light: #FF9800;
  --primary-muted: #FFC107;
  --bg: #FFF8E1;
  --bg-card: #ffffff;
  --bg-overlay: rgba(158, 87, 87, 0.4);
  --text: #3d2020;
  --text-light: #7a5555;
  --text-muted: #a88080;
  --border: #e8d0d0;
  --border-light: #f0e0e0;
  --shadow-sm: 0 1px 3px rgba(158, 87, 87, 0.08);
  --shadow-md: 0 4px 12px rgba(158, 87, 87, 0.1);
  --shadow-lg: 0 8px 30px rgba(158, 87, 87, 0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

::selection {
  background: var(--primary-light);
  color: var(--text);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

.app-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

/* Header */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 0 1rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1.5rem;
}

.header-left {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.app-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
}

.app-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 300;
}

.btn-add {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.65rem 1.3rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  white-space: nowrap;
}

.btn-add:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-add-icon {
  font-size: 1.1rem;
  font-weight: 600;
}

/* Search */
.search-bar-container {
  margin-bottom: 2rem;
}

.search-bar {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 1rem;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.search-bar:focus-within {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(179, 113, 113, 0.12);
}

.search-icon {
  font-size: 1rem;
  margin-right: 0.6rem;
  opacity: 0.5;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.85rem 0;
  font-size: 0.95rem;
  font-family: inherit;
  background: transparent;
  color: var(--text);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-clear {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0.3rem;
  transition: color 0.2s;
}

.search-clear:hover {
  color: var(--primary-dark);
}

/* Recipe Grid */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Recipe Card */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.recipe-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.25s ease;
  animation: fadeInUp 0.45s ease both;
}

.recipe-card:nth-child(1) { animation-delay: 0s; }
.recipe-card:nth-child(2) { animation-delay: 0.05s; }
.recipe-card:nth-child(3) { animation-delay: 0.1s; }
.recipe-card:nth-child(4) { animation-delay: 0.15s; }
.recipe-card:nth-child(5) { animation-delay: 0.2s; }
.recipe-card:nth-child(6) { animation-delay: 0.25s; }
.recipe-card:nth-child(7) { animation-delay: 0.3s; }
.recipe-card:nth-child(8) { animation-delay: 0.35s; }
.recipe-card:nth-child(9) { animation-delay: 0.4s; }
.recipe-card:nth-child(10) { animation-delay: 0.45s; }
.recipe-card:nth-child(11) { animation-delay: 0.5s; }
.recipe-card:nth-child(12) { animation-delay: 0.55s; }

.recipe-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.card-image-container {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-light), var(--bg));
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.recipe-card:hover .card-image {
  transform: scale(1.05);
}

.card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, var(--bg), var(--primary-light));
}

.card-badge {
  position: absolute;
  bottom: 0.6rem;
  right: 0.6rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.card-body {
  padding: 1rem 1.2rem 1.2rem;
}

.card-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.card-ingredients {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 0.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-card {
  border: none;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-card-edit {
  background: var(--bg);
  color: var(--primary-dark);
  border: 1px solid var(--border);
}

.btn-card-edit:hover {
  background: var(--primary-light);
  color: white;
  border-color: var(--primary-light);
}

.btn-card-delete {
  background: transparent;
  color: var(--text-muted);
}

.btn-card-delete:hover {
  background: #fee2e2;
  color: #dc2626;
}

/* Skeleton */
.skeleton-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

.skeleton-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--border-light), var(--bg));
  animation: pulse 1.5s infinite;
}

.skeleton-text {
  margin: 1rem 1.2rem;
  border-radius: 6px;
  animation: pulse 1.5s infinite;
}

.skeleton-title {
  height: 18px;
  width: 70%;
  background: var(--border-light);
}

.skeleton-sub {
  height: 12px;
  width: 90%;
  background: var(--border-light);
  margin-top: 0.5rem;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.empty-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.empty-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 300;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-detail {
  max-width: 640px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.modal-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--primary-dark);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0.3rem;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
}

.modal-close:hover {
  background: var(--bg);
  color: var(--primary-dark);
}

/* Form */
.recipe-form {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-input,
.form-textarea {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: all 0.2s;
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(179, 113, 113, 0.1);
  background: white;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-input-short {
  max-width: 160px;
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

/* Photo Upload */
.photo-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s;
}

.photo-upload-area:hover {
  border-color: var(--primary-light);
}

.photo-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem;
  cursor: pointer;
}

.photo-upload-icon {
  font-size: 2rem;
}

.photo-upload-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.photo-upload-input {
  display: none;
}

.photo-preview-container {
  position: relative;
}

.photo-preview {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.photo-remove {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.photo-remove:hover {
  background: rgba(220, 38, 38, 0.8);
}

/* Form Actions */
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.8rem;
  padding-top: 0.5rem;
}

.btn-primary,
.btn-secondary,
.btn-danger {
  border: none;
  padding: 0.65rem 1.3rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  background: var(--bg);
  color: var(--text-light);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--border-light);
}

.btn-danger {
  background: #fee2e2;
  color: #dc2626;
}

.btn-danger:hover {
  background: #fecaca;
}

/* Detail View */
.detail-image-container {
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.detail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-body {
  padding: 1.5rem;
}

.detail-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.detail-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--primary-dark);
  flex: 1;
}

.detail-badge {
  background: var(--bg);
  color: var(--primary-dark);
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 500;
  border: 1px solid var(--border);
}

.detail-section {
  margin-bottom: 1.5rem;
}

.detail-section-title {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-muted);
  margin-bottom: 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-light);
}

.detail-ingredients {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.detail-ingredient-item {
  padding: 0.45rem 0.7rem;
  background: var(--bg);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  border-left: 3px solid var(--primary-light);
}

.detail-instructions {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.detail-step {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 0.1rem;
}

.step-text {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text);
}

.detail-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-light);
}

/* Responsive */
@media (max-width: 640px) {
  .app-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .btn-add {
    width: 100%;
    justify-content: center;
  }

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

  .modal-content {
    max-height: 95vh;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    align-self: flex-end;
  }

  .detail-image-container {
    height: 200px;
  }

  .app-title {
    font-size: 1.5rem;
  }

  .detail-title {
    font-size: 1.3rem;
  }
}

@media (max-width: 400px) {
  .app-container {
    padding: 0 1rem 2rem;
  }
}


<!-- WALKTHROUGH_SCRIPT:
[
  {"step": 1, "narration": "Welcome to your personal recipe manager! This is where all your saved recipes will appear in a beautiful card grid.", "view": "user", "highlight_selector": ".recipe-grid, .empty-state", "wait_for": "tap_to_continue"},
  {"step": 2, "narration": "Let's add your first recipe. Click the Add Recipe button to get started.", "view": "user", "highlight_selector": ".btn-add", "wait_for": "user_interaction"},
  {"step": 3, "narration": "Fill in your recipe details — name, ingredients (one per line), instructions, and prep time. You can also upload a photo of the dish.", "view": "user", "highlight_selector": ".recipe-form", "wait_for": "tap_to_continue"},
  {"step": 4, "narration": "Upload a photo by clicking the camera area. This will appear on your recipe card.", "view": "user", "highlight_selector": ".photo-upload-area", "wait_for": "tap_to_continue"},
  {"step": 5, "narration": "Once saved, your recipe appears as a card with its photo, name, and prep time. Click any card to see the full recipe.", "view": "user", "highlight_selector": ".recipe-card", "wait_for": "user_interaction"},
  {"step": 6, "narration": "In the detail view you can see all ingredients and step-by-step instructions. You can also edit or delete the recipe from here.", "view": "user", "highlight_selector": ".detail-body", "wait_for": "tap_to_continue"},
  {"step": 7, "narration": "Use the search bar to quickly find recipes by name or any ingredient. Your collection syncs across all your devices!", "view": "user", "highlight_selector": ".search-bar", "wait_for": "tap_to_continue"}
]
-->

.meal-planner-section {
  margin-bottom: 2rem;
}

.planner-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.planner-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--primary-dark);
}

.planner-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.planner-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.75rem;
}

.planner-day-slot {
  min-height: 150px;
  padding: 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all 0.2s ease;
}

.planner-day-slot-active {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(179, 113, 113, 0.12);
}

.planner-day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.planner-day-name {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary-dark);
}

.planner-clear-btn {
  background: transparent;
  border: none;
  font-size: 0.78rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
}

.planner-clear-btn:hover {
  color: var(--primary-dark);
}

.planner-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  min-height: 90px;
}

.planner-recipe-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.planner-recipe-card:hover {
  transform: translateY(-1px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
}

.planner-recipe-name {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.planner-recipe-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.skeleton-planner-slot {
  min-height: 150px;
}

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

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

.shopping-list-section {
  margin-bottom: 2rem;
  padding: 1rem 0 0;
}

.shopping-list-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.shopping-list-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--primary-dark);
}

.shopping-list-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.shopping-list-count {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  color: var(--text-light);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.shopping-list-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}

.shopping-list-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  box-shadow: var(--shadow-sm);
}

.shopping-list-item-name {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.shopping-list-item-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.shopping-list-uses {
  margin-left: 0.25rem;
}

.shopping-list-empty {
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .shopping-list-header {
    flex-direction: column;
    align-items: flex-start;
  }

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

.detail-actions {
  flex-wrap: wrap;
}

.btn-secondary:has(+ .btn-secondary) {
  /* no-op for browsers that support :has; keeps layout stable if used */
}

.suggestions-section {
  margin-bottom: 2rem;
  padding: 1rem 0 0;
}

.suggestions-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.suggestions-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--primary-dark);
}

.suggestions-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.suggestions-input-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.suggestions-input-panel,
.suggestions-chip-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 1rem;
}

.suggestions-textarea {
  min-height: 120px;
}

.suggestions-help {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.ingredient-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ingredient-chip {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-light);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.ingredient-chip:hover,
.ingredient-chip-active {
  background: var(--primary-light);
  color: white;
  border-color: var(--primary-light);
}

.suggestions-error {
  color: #b91c1c;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.suggestions-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.suggestion-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1rem;
}

.suggestion-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.suggestion-name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.suggestion-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.suggestion-description {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0.9rem;
}

.suggestion-section {
  margin-bottom: 0.9rem;
}

.suggestion-section-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-muted);
  margin-bottom: 0.5rem;
}

.suggestion-inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.suggestion-pill {
  background: var(--bg);
  color: var(--text-light);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.28rem 0.6rem;
  font-size: 0.78rem;
}

.suggestion-steps {
  margin-left: 1.1rem;
  color: var(--text);
  font-size: 0.88rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

@media (max-width: 860px) {
  .suggestions-input-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .suggestions-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .suggestions-results {
    grid-template-columns: 1fr;
  }
}

.meal-plan-export-section {
  margin-bottom: 2rem;
  padding: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.meal-plan-export-help {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pdf-export-report{
  position: absolute;
  inset: 0;
  
  pointer-events: none;
  z-index: -1;
  width: 210mm;
  min-height: 297mm;
  overflow: hidden; position: fixed; left: -9999px; top: 0;}
