/* ==============================
   Kitchen Calm — ADHD Cooking App
   Mobile-first, calming design
   ============================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --bg:            #F6F4F0;
  --surface:       #FFFFFF;
  --surface-2:     #F0EDE8;
  --primary:       #4D8B7A;
  --primary-dark:  #3A6E60;
  --primary-light: #EAF3F1;
  --primary-shadow: rgba(77,139,122,0.28);
  --low:           #7B72AF;
  --low-bg:        #F3F1F9;
  --medium:        #C4943E;
  --medium-bg:     #FDF6E8;
  --high:          #C46050;
  --high-bg:       #FDF0EE;
  --success:       #276A3F;
  --success-bg:    #E8F5EE;
  --text:          #1A1A1A;
  --text-2:        #6B7280;
  --text-3:        #9CA3AF;
  --border:        rgba(0,0,0,0.08);
  --shadow:        0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg:     0 8px 30px rgba(0,0,0,0.14);
  --r:             14px;
  --r-lg:          20px;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  background: var(--bg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

button:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--r);
}

/* ==============================
   APP SHELL
   ============================== */

#app {
  max-width: 480px;
  margin: 0 auto;
  height: 100%;
  height: 100dvh;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

@media (min-width: 520px) {
  #app { box-shadow: 0 0 60px rgba(0,0,0,0.15); }
}

/* ==============================
   SCREENS
   ============================== */

.screen {
  display: none;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.screen.active {
  display: flex;
  animation: fadeUp 0.22s ease forwards;
}

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

.screen-header {
  padding: 10px 16px 6px;
  flex-shrink: 0;
}

.screen-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 16px 48px;
}

/* ==============================
   SECTION LABELS
   ============================== */

.section-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-2);
  margin-bottom: 4px;
}

/* ==============================
   BACK BUTTON
   ============================== */

.back-btn {
  background: var(--surface);
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 40px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

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

.back-btn:active { transform: scale(0.97); }

/* ==============================
   HOME SCREEN
   ============================== */

.home-hero {
  padding: 8px 16px 6px;
  background: linear-gradient(160deg, var(--primary-light) 0%, var(--bg) 100%);
  flex-shrink: 0;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.app-icon-bg {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(145deg, #FEF3E2 0%, #E8F5F0 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(77,139,122,0.14), 0 1px 3px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.9);
}

.app-svg-icon { width: 22px; height: 22px; }

.hero-brand-text { flex: 1; min-width: 0; }

.app-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.app-tagline { font-size: 11px; color: var(--text-3); margin-top: 1px; }

/* Meal type tabs */
.meal-type-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 5px;
  margin-bottom: 6px;
  background: rgba(255,255,255,0.4);
  border-radius: 10px;
  padding: 3px;
  border: 1px solid rgba(77,139,122,0.12);
}

.meal-type-tab {
  background: transparent;
  border: none;
  border-radius: 7px;
  padding: 5px 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  min-height: 30px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.meal-type-tab.active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.meal-type-tab:hover:not(.active) {
  background: rgba(255,255,255,0.6);
  color: var(--text);
}

/* Energy check-in widget */
.energy-widget { margin-bottom: 5px; }

.ew-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-2);
  margin-bottom: 3px;
}

.ew-btns {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 5px;
}

.eq-btn {
  background: rgba(255,255,255,0.55);
  border: 1.5px solid rgba(77,139,122,0.14);
  border-radius: 10px;
  padding: 5px 6px;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.08s;
}

.eq-btn:hover  { background: rgba(255,255,255,0.85); }
.eq-btn:active { transform: scale(0.97); }

.eq-icon  { font-size: 20px; line-height: 1; }
.eq-label { font-size: 11px; font-weight: 600; color: var(--text-2); }

.eq-btn.selected.low {
  background: var(--low-bg);
  border-color: var(--low);
  box-shadow: 0 2px 8px rgba(123,114,175,0.22);
}
.eq-btn.selected.medium {
  background: var(--medium-bg);
  border-color: var(--medium);
  box-shadow: 0 2px 8px rgba(196,148,62,0.22);
}
.eq-btn.selected.high {
  background: var(--high-bg);
  border-color: var(--high);
  box-shadow: 0 2px 8px rgba(196,96,80,0.22);
}
.eq-btn.selected.low    .eq-label { color: var(--low);    }
.eq-btn.selected.medium .eq-label { color: var(--medium); }
.eq-btn.selected.high   .eq-label { color: var(--high);   }

/* Filters */
.filters-row {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.prep-filters-row { margin-bottom: 4px; }

.filter-btn {
  background: rgba(255,255,255,0.55);
  border: 1.5px solid rgba(77,139,122,0.18);
  border-radius: 100px;
  padding: 0 10px;
  height: 28px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.08s;
}

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

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px var(--primary-shadow);
}

.filter-btn:active { transform: scale(0.95); }

/* Portion selector */
.portion-selector {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 5px;
  margin-bottom: 0;
}

.portion-btn {
  background: rgba(255,255,255,0.55);
  border: 1.5px solid rgba(77,139,122,0.18);
  border-radius: 10px;
  padding: 5px 4px;
  min-height: 40px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.08s;
  white-space: nowrap;
  line-height: 1.3;
}

.portion-btn:hover { background: rgba(255,255,255,0.85); border-color: var(--primary); }

.portion-btn.active {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(77,139,122,0.2);
}

.portion-btn:active { transform: scale(0.95); }

/* Home content */
.home-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 16px 8px;
}

/* Hero button */
.btn-hero {
  background: linear-gradient(170deg, #5EA38F 0%, #4D8B7A 50%, #3D7262 100%);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 12px 20px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.2px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  min-height: 48px;
  border: 1px solid rgba(0,0,0,0.08);
  border-top-color: rgba(255,255,255,0.15);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 5px 0 #2B5847, 0 8px 20px rgba(43,88,71,0.40);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.btn-hero-label { display: flex; align-items: center; gap: 8px; }
.btn-hero-arrow { font-size: 18px; opacity: 0.75; transition: transform 0.15s ease; }

.btn-hero:hover .btn-hero-arrow { transform: translateX(3px); }

.btn-hero:hover {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 6px 0 #2B5847, 0 10px 24px rgba(43,88,71,0.46);
}

.btn-hero:active {
  transform: translateY(4px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 2px 0 #2B5847, 0 3px 8px rgba(43,88,71,0.28);
}

/* Last Cooked */
.last-cooked-section { margin-bottom: 12px; }

.last-cooked-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.last-cooked-item {
  background: var(--surface);
  border-radius: var(--r);
  padding: 10px 12px;
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s, background 0.15s, transform 0.08s;
}

.last-cooked-item:hover {
  box-shadow: 0 4px 16px rgba(77,139,122,0.18);
  background: var(--primary-light);
}

.last-cooked-item:active { transform: scale(0.98); }

.lc-emoji { font-size: 22px; line-height: 1; flex-shrink: 0; }

.lc-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.lc-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lc-meta { font-size: 11px; color: var(--text-3); display: flex; align-items: center; gap: 6px; }
.lc-stars { color: #E8A94D; font-size: 11px; }

.lc-arrow {
  font-size: 14px;
  color: var(--text-3);
  flex-shrink: 0;
  transition: transform 0.15s ease, color 0.15s;
}

.last-cooked-item:hover .lc-arrow { transform: translateX(3px); color: var(--primary); }

/* Home actions */
.home-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.btn-secondary-action {
  background: var(--surface);
  border-radius: var(--r);
  padding: 8px 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s, background 0.15s, color 0.15s, transform 0.08s;
}

.btn-secondary-action:hover {
  background: var(--primary-light);
  color: var(--primary);
  box-shadow: 0 4px 16px rgba(77,139,122,0.18);
}

.btn-secondary-action:active { transform: scale(0.97); }

/* Rescue home button */
.btn-rescue-home {
  width: 100%;
  background: var(--surface-2);
  border-radius: var(--r);
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 2px;
  transition: background 0.15s, color 0.15s, transform 0.08s;
}

.btn-rescue-home:hover { background: #FDF0EE; color: var(--high); }
.btn-rescue-home:active { transform: scale(0.98); }

.btn-feedback-home {
  display: block;
  width: 100%;
  height: 38px;
  background: #fff;
  border: 2px solid #4D8B7A;
  border-radius: 12px;
  color: #4D8B7A;
  font-size: 13px;
  font-weight: 500;
  margin: 4px 0;
  cursor: pointer;
  transition: background 0.12s, transform 0.08s;
}

.btn-feedback-home:hover  { background: var(--primary-light); }
.btn-feedback-home:active { transform: scale(0.98); }

/* ==============================
   ENERGY SCREEN
   ============================== */

.screen-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
}

.screen-sub {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 24px;
}

.energy-stack { display: flex; flex-direction: column; gap: 12px; }

.energy-btn {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  width: 100%;
  min-height: 80px;
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.18s, background 0.18s, transform 0.08s;
}

.energy-btn:active { transform: scale(0.985); }

.energy-btn.low:hover,    .energy-btn.low:focus-visible    { background: var(--low-bg);    box-shadow: 0 4px 16px rgba(123,114,175,0.2); }
.energy-btn.medium:hover, .energy-btn.medium:focus-visible { background: var(--medium-bg); box-shadow: 0 4px 16px rgba(196,148,62,0.2);  }
.energy-btn.high:hover,   .energy-btn.high:focus-visible   { background: var(--high-bg);   box-shadow: 0 4px 16px rgba(196,96,80,0.2);   }

.energy-icon { font-size: 34px; line-height: 1; flex-shrink: 0; }
.energy-text { flex: 1; }

.energy-label { font-size: 17px; font-weight: 700; margin-bottom: 3px; }

.energy-btn.low    .energy-label { color: var(--low);    }
.energy-btn.medium .energy-label { color: var(--medium); }
.energy-btn.high   .energy-label { color: var(--high);   }

.energy-desc { font-size: 13px; color: var(--text-2); line-height: 1.4; }

/* ==============================
   MEALS SCREEN
   ============================== */

.meals-intro { margin-bottom: 12px; }

.energy-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 8px;
}

.energy-chip.low    { background: var(--low-bg);    color: var(--low);    }
.energy-chip.medium { background: var(--medium-bg); color: var(--medium); }
.energy-chip.high   { background: var(--high-bg);   color: var(--high);   }

/* Category row */
.category-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin-bottom: 4px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.category-row::-webkit-scrollbar { display: none; }

.category-pill {
  background: var(--surface);
  border-radius: 100px;
  padding: 0 10px;
  height: 28px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: var(--shadow);
  transition: background 0.15s, color 0.15s, box-shadow 0.15s, transform 0.08s;
}

.category-pill:hover { background: var(--primary-light); color: var(--primary); }

.category-pill.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px var(--primary-shadow);
}

.category-pill:active { transform: scale(0.95); }

/* Meal cards */
.meals-stack { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }

.meal-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 16px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.18s, transform 0.1s;
}

.meal-card.is-selecting {
  transform: scale(1.018);
  box-shadow: 0 8px 28px rgba(77,139,122,0.22);
}

.meal-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.meal-emoji { font-size: 32px; line-height: 1; flex-shrink: 0; }
.meal-details { flex: 1; min-width: 0; }

.meal-name { font-size: 17px; font-weight: 700; line-height: 1.25; margin-bottom: 6px; }

.meal-chips { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }

.chip-prep {
  font-size: 11px; font-weight: 600; color: #5B6E8A;
  background: #EEF1F8; padding: 3px 8px; border-radius: 100px;
}

.chip-cook {
  font-size: 11px; font-weight: 600; color: var(--primary);
  background: var(--primary-light); padding: 3px 8px; border-radius: 100px;
}

.chip-serves {
  font-size: 11px; font-weight: 600; color: #6B7280;
  background: #F3F4F6; padding: 3px 8px; border-radius: 100px;
}

.chip-time {
  font-size: 11px; font-weight: 600; color: var(--primary);
  background: var(--primary-light); padding: 3px 8px; border-radius: 100px;
}

.chip-diet { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 100px; }
.chip-halal { background: #E8F5EE; color: #276A3F; }
.chip-veg   { background: #F1F8E9; color: #4A7C20; }
.chip-vegan { background: #E8F5E9; color: #2E7060; }

.meal-desc { font-size: 13px; color: var(--text-2); line-height: 1.45; margin-bottom: 12px; }

.meal-card-rating { font-size: 12px; color: #E8A94D; margin-bottom: 8px; }

.btn-cook {
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  padding: 13px 18px;
  font-size: 15px;
  font-weight: 600;
  min-height: 52px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 2px 8px var(--primary-shadow);
  transition: background 0.1s, transform 0.08s, box-shadow 0.08s;
}

.btn-cook:hover  { background: var(--primary-dark); }
.btn-cook:active { transform: scale(0.97); box-shadow: 0 1px 4px var(--primary-shadow); }

.btn-shuffle {
  border-radius: var(--r);
  padding: 13px 18px;
  font-size: 14px;
  font-weight: 500;
  min-height: 48px;
  color: var(--text-2);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow);
  background: var(--surface);
  transition: background 0.12s, color 0.12s, transform 0.08s;
}

.btn-shuffle:hover  { background: var(--primary-light); color: var(--primary); }
.btn-shuffle:active { transform: scale(0.98); }

/* ==============================
   RECIPE SCREEN
   ============================== */

.recipe-hero {
  text-align: center;
  padding: 16px 0 20px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  margin-bottom: 20px;
}

.recipe-emoji { font-size: 52px; display: block; margin-bottom: 10px; }

.recipe-name { font-size: 22px; font-weight: 700; line-height: 1.2; margin-bottom: 10px; }

.recipe-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.recipe-time-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 100px;
}

.recipe-prep-badge  { background: #EEF1F8; color: #5B6E8A; }
.recipe-cook-badge  { background: var(--primary-light); color: var(--primary); }
.recipe-serves-badge { background: #F3F4F6; color: #6B7280; }

/* Start Cooking Button */
.btn-start-cook {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border-radius: 14px;
  padding: 16px 24px;
  font-size: 17px;
  font-weight: 700;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  box-shadow: 0 3px 12px var(--primary-shadow);
  transition: background 0.1s, transform 0.08s, box-shadow 0.08s;
}

.btn-start-cook:hover  { background: var(--primary-dark); }
.btn-start-cook:active { transform: scale(0.97); box-shadow: 0 1px 6px var(--primary-shadow); }

/* Rescue Mode button (on recipe screen) */
.btn-rescue-recipe {
  width: 100%;
  background: var(--surface-2);
  border-radius: var(--r);
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  min-height: 48px;
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
  transition: background 0.15s, color 0.15s, transform 0.08s;
}

.btn-rescue-recipe:hover { background: #FDF0EE; color: var(--high); }
.btn-rescue-recipe:active { transform: scale(0.98); }

.recipe-portion-note {
  background: #FFF9EC;
  border-radius: var(--r);
  padding: 10px 14px;
  font-size: 13px;
  color: #7A5C10;
  margin-bottom: 14px;
  line-height: 1.4;
}

.recipe-section { margin-bottom: 24px; }

.recipe-section-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-2);
  margin-bottom: 12px;
}

.ingredient-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ingredient-list li {
  font-size: 15px;
  color: var(--text);
  padding: 10px 14px;
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

.ingredient-list li::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
}

.steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  counter-reset: steps;
}

.steps-list li {
  font-size: 15px;
  color: var(--text);
  padding: 13px 16px 13px 50px;
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  position: relative;
  line-height: 1.5;
  counter-increment: steps;
  min-height: 48px;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.2s, background 0.15s;
}

.steps-list li:active { transform: scale(0.99); }

.steps-list li::before {
  content: counter(steps);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
}

.step-text { display: block; }

.steps-list li.step-current {
  background: var(--primary-light);
  font-weight: 600;
}

.steps-list li.step-current::before {
  box-shadow: 0 0 0 3px rgba(77,139,122,0.18);
}

.steps-list li.step-done {
  opacity: 0.42;
  background: var(--bg);
}

.steps-list li.step-done::before {
  content: '✓';
  background: var(--success);
  font-size: 11px;
}

.step-amount { font-weight: 700; color: var(--primary-dark); }

/* ==============================
   COOK MODE SCREEN
   ============================== */

#screen-cook {
  background: var(--bg);
}

.cook-progress-bar {
  height: 4px;
  background: rgba(0,0,0,0.08);
  flex-shrink: 0;
}

.cook-progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 0 2px 2px 0;
  transition: width 0.4s ease;
  width: 0%;
}

.cook-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 8px;
  flex-shrink: 0;
}

.cook-back-btn {
  background: var(--surface);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  min-height: 40px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: background 0.15s, color 0.15s, transform 0.08s;
}

.cook-back-btn:hover  { background: var(--primary-light); color: var(--primary); }
.cook-back-btn:active { transform: scale(0.97); }

.cook-step-counter {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-2);
}

/* Timer pills (minimized) */
.cook-timer-pills {
  display: flex;
  gap: 8px;
  padding: 0 16px 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.timer-mini-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: var(--primary);
  color: #fff;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.08s;
  border: none;
}

.timer-mini-pill:hover  { background: var(--primary-dark); }
.timer-mini-pill:active { transform: scale(0.95); }

.timer-mini-pill.done {
  background: var(--success);
  animation: timerFlash 0.4s ease;
}

@keyframes timerFlash {
  0%   { background: #4ADE80; transform: scale(1.1); }
  100% { background: var(--success); transform: scale(1); }
}

/* Cook body */
.cook-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Previous step (ghost) */
.cook-prev-step {
  opacity: 0.38;
  background: var(--surface);
  border-radius: var(--r);
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.5;
  pointer-events: none;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

/* Current step */
.cook-current-step {
  background: var(--primary-light);
  border-radius: var(--r);
  padding: 20px 18px;
  animation: slideInStep 0.25s ease forwards;
}

@keyframes slideInStep {
  from { opacity: 0; transform: translateX(18px); }
  to   { opacity: 1; transform: translateX(0); }
}

.cook-step-number {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 10px;
  display: block;
}

.cook-step-text {
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.7;
  max-width: 320px;
}

/* Timer pill inside step text */
.timer-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  background: #E8A94D;
  color: #fff;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  margin-left: 6px;
  vertical-align: middle;
  border: none;
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(232,169,77,0.45);
  animation: timerPillPulse 2.2s ease-in-out infinite;
  min-height: 32px;
  transition: background 0.12s, transform 0.08s;
}

.timer-pill:hover  { background: #D4943A; animation-play-state: paused; }
.timer-pill:active { transform: scale(0.95); }

/* Suggested timer (vague phrases like "until golden") */
.timer-pill-suggested {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: rgba(196,148,62,0.12);
  color: #C4943E;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  margin-left: 6px;
  vertical-align: middle;
  border: 1.5px dashed #C4943E;
  font-family: inherit;
  min-height: 30px;
  transition: background 0.12s, transform 0.08s;
}

.timer-pill-suggested:hover  { background: rgba(196,148,62,0.22); }
.timer-pill-suggested:active { transform: scale(0.95); }

@keyframes timerPillPulse {
  0%, 100% { box-shadow: 0 2px 8px rgba(232,169,77,0.45); }
  50%       { box-shadow: 0 2px 8px rgba(232,169,77,0.45), 0 0 0 5px rgba(232,169,77,0.18); }
}

/* Screen flash overlay for timer completion */
.timer-complete-flash {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: rgba(77,139,122,0.35);
  z-index: 600;
  animation: screenFlashGreen 1.2s ease forwards;
}

@keyframes screenFlashGreen {
  0%   { opacity: 1; }
  100% { opacity: 0; }
}

/* Cook footer */
.cook-footer {
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  flex-shrink: 0;
  background: var(--bg);
}

.btn-next-step {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border-radius: 14px;
  padding: 0 24px;
  font-size: 18px;
  font-weight: 700;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 3px 12px var(--primary-shadow);
  transition: background 0.1s, transform 0.08s, box-shadow 0.08s;
}

.btn-next-step:hover  { background: var(--primary-dark); }
.btn-next-step:active { transform: scale(0.97); box-shadow: 0 1px 6px var(--primary-shadow); }

/* Cook mode completion */
.cook-completion {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 16px 0;
  gap: 12px;
  flex: 1;
  justify-content: center;
}

.cook-complete-emoji {
  font-size: 64px;
  line-height: 1;
  animation: bounceIn 0.5s ease;
}

@keyframes bounceIn {
  0%   { transform: scale(0.5); opacity: 0; }
  60%  { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

.cook-complete-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.cook-complete-sub {
  font-size: 16px;
  color: var(--text-2);
}

/* Meal rating stars */
.cook-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.cook-rating-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cook-rating-stars { display: flex; gap: 4px; }

.cook-star-btn {
  font-size: 36px;
  color: rgba(0,0,0,0.15);
  transition: color 0.1s, transform 0.08s;
  padding: 4px;
  min-height: 52px;
  display: flex;
  align-items: center;
}

.cook-star-btn.lit { color: #E8A94D; }
.cook-star-btn:active { transform: scale(0.9); }

.cook-complete-actions {
  display: flex;
  gap: 10px;
  width: 100%;
  padding: 0 16px;
}

.btn-cook-again {
  flex: 1;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 12px;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.12s, transform 0.08s;
}

.btn-cook-again:hover  { background: #D4ECE8; }
.btn-cook-again:active { transform: scale(0.97); }

.btn-cook-home {
  flex: 1;
  background: var(--surface);
  border-radius: 12px;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-2);
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: var(--shadow);
  transition: background 0.12s, transform 0.08s;
}

.btn-cook-home:hover  { background: var(--surface-2); }
.btn-cook-home:active { transform: scale(0.97); }

/* ==============================
   TIMER BOTTOM SHEET
   ============================== */

.timer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.timer-overlay[hidden] { display: none; }

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

.timer-sheet {
  background: var(--surface);
  border-radius: 24px 24px 0 0;
  padding: 24px 24px calc(24px + env(safe-area-inset-bottom, 0px));
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: slideUp 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.timer-sheet-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.timer-display {
  font-size: 56px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -2px;
}

.timer-sheet-btns { display: flex; gap: 12px; width: 100%; }

.btn-timer-pause {
  flex: 1;
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px var(--primary-shadow);
  transition: background 0.1s, transform 0.08s;
}

.btn-timer-pause:hover  { background: var(--primary-dark); }
.btn-timer-pause:active { transform: scale(0.97); }

.btn-timer-cancel {
  flex: 1;
  background: var(--surface-2);
  color: var(--text-2);
  border-radius: 12px;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.1s, color 0.1s, transform 0.08s;
}

.btn-timer-cancel:hover  { background: #FDF0EE; color: var(--high); }
.btn-timer-cancel:active { transform: scale(0.97); }

/* ==============================
   RESCUE MODE SCREEN
   ============================== */

.rescue-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px calc(32px + env(safe-area-inset-bottom, 0px));
  background: var(--bg);
  text-align: center;
  gap: 8px;
  overflow-y: auto;
}

.rescue-calm-msg {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.rescue-step-count {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 16px;
}

.rescue-step-text {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 8px;
  max-width: 300px;
  animation: rescueFadeIn 0.3s ease;
}

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

.rescue-encouragement {
  font-size: 15px;
  color: var(--text-2);
  margin-bottom: 32px;
  line-height: 1.5;
}

.btn-rescue-next {
  width: 100%;
  max-width: 320px;
  background: var(--primary);
  color: #fff;
  border-radius: 14px;
  padding: 18px 24px;
  font-size: 18px;
  font-weight: 700;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 3px 12px var(--primary-shadow);
  margin-bottom: 20px;
  transition: background 0.1s, transform 0.08s;
}

.btn-rescue-next:hover  { background: var(--primary-dark); }
.btn-rescue-next:active { transform: scale(0.97); }

.btn-rescue-exit {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  padding: 8px 16px;
  border-radius: 100px;
  transition: color 0.12s;
}

.btn-rescue-exit:hover { color: var(--text-2); }

/* ==============================
   PAYWALL SHEET
   ============================== */

.paywall-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 400;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.paywall-overlay[hidden] { display: none; }

.paywall-sheet {
  background: var(--surface);
  border-radius: 24px 24px 0 0;
  padding: 32px 24px calc(24px + env(safe-area-inset-bottom, 0px));
  width: 100%;
  max-width: 480px;
  text-align: center;
  animation: slideUp 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.paywall-emoji { font-size: 48px; margin-bottom: 12px; display: block; }

.paywall-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

.paywall-desc {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.5;
  margin-bottom: 24px;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

.btn-paywall-pro {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border-radius: 14px;
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 12px var(--primary-shadow);
  margin-bottom: 10px;
  transition: background 0.1s, transform 0.08s;
}

.btn-paywall-pro:hover  { background: var(--primary-dark); }
.btn-paywall-pro:active { transform: scale(0.97); }

.btn-paywall-free {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2);
  border-radius: 12px;
  transition: color 0.12s, background 0.12s;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-paywall-free:hover { background: var(--surface-2); }

/* ==============================
   COMING SOON SCREEN
   ============================== */

.soon-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 28px;
  gap: 14px;
}

.soon-icon  { font-size: 60px; display: block; }
.soon-title { font-size: 22px; font-weight: 700; line-height: 1.3; }
.soon-desc  { font-size: 15px; color: var(--text-2); max-width: 260px; line-height: 1.5; }

.btn-home {
  background: var(--primary);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  margin-top: 6px;
  min-height: 48px;
  box-shadow: 0 4px 16px var(--primary-shadow);
  transition: background 0.12s, transform 0.08s;
}

.btn-home:hover  { background: var(--primary-dark); }
.btn-home:active { transform: scale(0.97); }

/* ==============================
   TOAST
   ============================== */

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(90px);
  background: #1F2937;
  color: #fff;
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  z-index: 200;
  max-width: calc(100% - 40px);
  text-align: center;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.toast.visible { transform: translateX(-50%) translateY(0); }

/* ==============================
   MEAL READINESS BADGES
   ============================== */

.meal-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
}

.badge-ready { background: var(--success-bg); color: var(--success); }
.badge-close { background: var(--medium-bg); color: var(--medium); }

/* ==============================
   RECIPE — ADD TO SHOPPING
   ============================== */

.btn-add-shopping {
  width: 100%;
  background: var(--surface);
  border-radius: var(--r);
  padding: 13px 18px;
  font-size: 14px;
  font-weight: 600;
  min-height: 48px;
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  transition: background 0.15s, color 0.15s, transform 0.08s;
}

.btn-add-shopping:hover { background: var(--primary-light); color: var(--primary); }
.btn-add-shopping:active { transform: scale(0.98); }

/* ==============================
   PANTRY SCREEN
   ============================== */

.pantry-section { margin-bottom: 24px; }

.pantry-section-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-2);
  margin-bottom: 10px;
}

.pantry-items-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.pantry-item {
  background: var(--surface);
  border-radius: var(--r);
  padding: 10px 12px;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  box-shadow: var(--shadow);
  transition: background 0.15s, color 0.12s, transform 0.08s;
}

.pantry-item:active { transform: scale(0.96); }

.pantry-item.owned { background: var(--success-bg); color: var(--success); }

.pi-check {
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(0,0,0,0.15);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  transition: background 0.12s, border-color 0.12s;
}

.pantry-item.owned .pi-check {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

.pi-name { flex: 1; min-width: 0; }

/* ==============================
   SHOPPING LIST SCREEN
   ============================== */

.shopping-header { display: flex; align-items: center; justify-content: space-between; }
.shopping-count { font-size: 12px; font-weight: 600; color: var(--text-3); padding-right: 4px; }

.shopping-empty {
  text-align: center;
  color: var(--text-3);
  font-size: 14px;
  line-height: 1.6;
  padding: 40px 20px;
}

.shop-section { margin-bottom: 20px; }

.shop-section-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-2);
  margin-bottom: 8px;
}

.shop-item {
  background: var(--surface);
  border-radius: var(--r);
  padding: 12px 14px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow);
  transition: opacity 0.2s;
  min-height: 48px;
}

.shop-item.checked { opacity: 0.5; }

.shop-item.checked .shop-name { text-decoration: line-through; color: var(--text-3); }

.shop-check {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(0,0,0,0.15);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--success);
  flex-shrink: 0;
  transition: background 0.12s, border-color 0.12s;
}

.shop-item.checked .shop-check { background: var(--success-bg); border-color: #B2DECA; }

.shop-name { flex: 1; font-size: 14px; font-weight: 500; color: var(--text); }

.shop-remove {
  font-size: 13px;
  color: var(--text-3);
  padding: 4px 6px;
  border-radius: 6px;
  min-height: 32px;
  min-width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.12s, background 0.12s;
}

.shop-remove:hover { color: var(--high); background: var(--high-bg); }

.btn-done-shopping {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 700;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  box-shadow: 0 4px 16px var(--primary-shadow);
  transition: background 0.12s, transform 0.08s;
}

.btn-done-shopping:hover  { background: var(--primary-dark); }
.btn-done-shopping:active { transform: scale(0.98); }

/* ==============================
   CLEANUP SCORE CHIPS
   ============================== */

.chip-cleanup { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 100px; }
.chip-cleanup-green  { background: #E8F5EE; color: #276A3F; }
.chip-cleanup-yellow { background: #FDF6E8; color: #8A6520; }
.chip-cleanup-red    { background: #FDF0EE; color: #8A3520; }

/* Sweetener chips */
.chip-sugar        { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 100px; background: #FDF6E8; color: #8A6520; }
.chip-natural-sweet { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 100px; background: #FFF9EC; color: #7A5C10; }

/* Filter chips on cards */
.chip-filter { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 100px; background: var(--primary-light); color: var(--primary-dark); }

/* ==============================
   RESUME COOKING CARD
   ============================== */

#resume-section { margin-bottom: 12px; }

.resume-card-btn {
  width: 100%;
  background: linear-gradient(135deg, #FEF3E2 0%, #E8F5F0 100%);
  border: 1.5px solid var(--primary);
  border-radius: var(--r);
  padding: 12px 14px;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  box-shadow: 0 2px 8px rgba(77,139,122,0.14);
  transition: background 0.15s, transform 0.08s;
}

.resume-card-btn:hover  { background: var(--primary-light); }
.resume-card-btn:active { transform: scale(0.98); }

.resume-emoji { font-size: 24px; line-height: 1; flex-shrink: 0; }

.resume-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }

.resume-label { font-size: 11px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.5px; }

.resume-name { font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.resume-clear {
  font-size: 14px;
  color: var(--text-3);
  padding: 4px 6px;
  border-radius: 6px;
  flex-shrink: 0;
  min-width: 28px;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.12s, background 0.12s;
}

.resume-clear:hover { color: var(--high); background: var(--high-bg); }

/* ==============================
   RECIPE — CLEANUP SECTION
   ============================== */

.recipe-cleanup {
  background: var(--bg);
  border-radius: var(--r);
  padding: 14px 16px;
  margin-bottom: 20px;
}

.recipe-cleanup-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-2);
  margin-bottom: 8px;
}

.recipe-cleanup-item { font-size: 14px; color: var(--text-2); line-height: 1.5; padding: 4px 0; }

.recipe-cleanup-item + .recipe-cleanup-item { border-top: 1px solid rgba(0,0,0,0.06); margin-top: 4px; padding-top: 8px; }

/* ==============================
   RECIPE — SWEETENER BANNERS
   ============================== */

.recipe-sugar-warning {
  background: #FDF6E8;
  border-radius: var(--r);
  padding: 12px 14px;
  font-size: 13px;
  color: #8A6520;
  margin-bottom: 16px;
  line-height: 1.4;
}

.recipe-natural-sweet {
  background: #FFF9EC;
  border-radius: var(--r);
  padding: 12px 14px;
  font-size: 13px;
  color: #7A5C10;
  margin-bottom: 16px;
  line-height: 1.4;
}

/* ==============================
   RECIPE — INTERRUPT BUTTON
   ============================== */

.btn-interrupt {
  width: 100%;
  background: var(--surface);
  border-radius: var(--r);
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  min-height: 48px;
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  transition: background 0.15s, color 0.15s, transform 0.08s;
}

.btn-interrupt:hover { background: var(--medium-bg); color: var(--medium); }
.btn-interrupt:active { transform: scale(0.98); }

/* ==============================
   FEEDBACK SCREEN
   ============================== */

.feedback-section { margin-bottom: 22px; }

.feedback-label { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 10px; }

.star-row { display: flex; gap: 8px; }

.star-btn {
  font-size: 32px;
  color: rgba(0,0,0,0.15);
  transition: color 0.1s, transform 0.08s;
  line-height: 1;
  padding: 4px;
  min-height: 48px;
  display: flex;
  align-items: center;
}

.star-btn.selected { color: #E8A94D; }
.star-btn:active   { transform: scale(0.9); }

.feedback-textarea,
.feedback-input {
  width: 100%;
  background: var(--surface);
  border: 1.5px solid rgba(0,0,0,0.12);
  border-radius: var(--r);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
  resize: vertical;
  transition: border-color 0.15s;
}

.feedback-textarea:focus,
.feedback-input:focus { outline: none; border-color: var(--primary); }

.feedback-input { resize: none; }

.btn-submit-feedback {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 17px 24px;
  font-size: 16px;
  font-weight: 700;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  box-shadow: 0 4px 16px var(--primary-shadow);
  transition: background 0.12s, transform 0.08s;
}

.btn-submit-feedback:hover  { background: var(--primary-dark); }
.btn-submit-feedback:active { transform: scale(0.98); }

/* ==============================
   WAKELOCK INDICATOR
   ============================== */

.screen-awake-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  border-radius: 100px;
  padding: 4px 10px;
  white-space: nowrap;
}

/* ==============================
   INGREDIENT CHECKLIST
   ============================== */

.ingredient-list .ing-item::before { display: none; }

.ingredient-list .ing-item {
  cursor: pointer;
  user-select: none;
  transition: opacity 0.2s, background 0.15s;
}

.ingredient-list .ing-item:active { transform: scale(0.98); }

.ing-check-icon {
  width: 20px;
  height: 20px;
  border: 1.5px solid rgba(0,0,0,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  color: transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.ing-text { flex: 1; transition: color 0.2s; }

.ing-item.ing-checked { opacity: 0.48; background: var(--bg); }

.ing-item.ing-checked .ing-check-icon { background: var(--primary); border-color: var(--primary); color: #fff; }
.ing-item.ing-checked .ing-text { text-decoration: line-through; color: var(--text-3); }

.recipe-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.recipe-section-header .recipe-section-title { margin-bottom: 0; }

.btn-reset-ingredients {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--surface);
  min-height: 28px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: color 0.12s, background 0.12s;
}

.btn-reset-ingredients:hover { color: var(--primary); background: var(--primary-light); }

/* ==============================
   STEP PROGRESS COUNTER
   ============================== */

.step-counter-label { font-size: 12px; font-weight: 700; color: var(--text-3); white-space: nowrap; }

.step-progress-bar {
  height: 4px;
  background: rgba(0,0,0,0.08);
  border-radius: 2px;
  margin-bottom: 12px;
  overflow: hidden;
}

.step-progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* ==============================
   EMPTY FILTER STATE
   ============================== */

.meals-empty-state {
  text-align: center;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.meals-empty-icon { font-size: 48px; line-height: 1; }

.meals-empty-sub { font-size: 14px; color: var(--text-2); line-height: 1.5; max-width: 220px; }

.btn-clear-filters {
  background: var(--primary);
  color: #fff;
  border-radius: var(--r);
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  box-shadow: 0 4px 16px var(--primary-shadow);
  transition: background 0.12s, transform 0.08s;
}

.btn-clear-filters:hover  { background: var(--primary-dark); }

.app-footer {
  text-align: center;
  font-size: 11px;
  color: var(--text-3);
  padding: 6px 0;
}

.feedback-privacy {
  display: block;
  font-size: 10px;
  color: #9CA3AF;
  margin-top: 4px;
}

.feedback-destination {
  display: block;
  font-size: 11px;
  color: #9CA3AF;
  text-align: center;
  margin-bottom: 8px;
}
.btn-clear-filters:active { transform: scale(0.97); }
