/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

button, [type="button"], [type="submit"], [role="button"], a[href], select, summary, label[for], label:has(input[type="file"]) {
  cursor: pointer;
}

@keyframes slide-in-right {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.animate-slide-in {
  animation: slide-in-right 0.25s ease-out;
}

/* Meal plan drag — backlog drop zone placeholder */
[data-backlog-drop-zone] {
  min-height: 3rem;
  border: 1px dashed #d6d3d1; /* stone-300 */
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dark [data-backlog-drop-zone] {
  border-color: #57534e;
}
[data-backlog-drop-text] {
  font-size: 0.75rem;
  color: #a8a29e; /* stone-400 */
  padding: 0.75rem 0;
  text-align: center;
  width: 100%;
}
/* Meal plan drag — fallback card */
[data-drag-fallback] {
  background-color: #ffffff;
  border: 1px solid #bef264; /* lime-300 */
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  width: 20rem;
  max-width: 80vw;
}
.dark [data-drag-fallback] {
  background-color: #292524;
  border-color: #65a30d;
}
[data-drag-fallback-thumb] {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.25rem;
  background-color: #f5f5f4; /* stone-100 */
  flex-shrink: 0;
  overflow: hidden;
  object-fit: cover;
}
.dark [data-drag-fallback-thumb] {
  background-color: #44403c;
}
[data-drag-fallback-thumb] img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.25rem;
}
[data-drag-fallback-title] {
  font-size: 0.875rem;
  font-weight: 500;
  color: #1c1917; /* stone-900 */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dark [data-drag-fallback-title] {
  color: #f5f5f4;
}

/* Turbo progress bar — slim lime bar at top */
.turbo-progress-bar {
  height: 3px;
  background-color: #65a30d; /* lime-600 */
  box-shadow: 0 0 8px rgba(101, 163, 13, 0.4);
}

/* Body overlay open — prevent background scroll */
body[data-overlay-open] {
  overflow: hidden;
}

/* Dismissable — slide-out animation */
[data-dismissing] {
  transition: opacity 0.2s, transform 0.2s;
  opacity: 0;
  transform: translateX(100%);
}

/* Form submit loading state */
[data-submitting] {
  opacity: 0.7;
  pointer-events: none;
}

/* Connected button group — first child rounded-left, last child rounded-right */
.btn-group > :first-child button,
.btn-group > :first-child > button,
.btn-group > :first-child > form > button,
.btn-group > :first-child > div > button {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.btn-group > :last-child button,
.btn-group > :last-child > button,
.btn-group > :last-child > form > button,
.btn-group > :last-child > div > button {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  margin-left: -1px;
}

/* Tabs — state-driven styling via data-active attribute */
[data-tabs-target="tab"][data-active="true"],
[data-dual-editor-target][data-active="true"] {
  background-color: #ffffff;
  color: #44403c;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
[data-tabs-target="tab"][data-active="false"],
[data-dual-editor-target][data-active="false"] {
  color: #78716c;
}
.dark [data-tabs-target="tab"][data-active="true"],
.dark [data-dual-editor-target][data-active="true"] {
  background-color: #57534e;
  color: #f5f5f4;
}
.dark [data-tabs-target="tab"][data-active="false"],
.dark [data-dual-editor-target][data-active="false"] {
  color: #78716c;
}

/* Theme selector — active button */
[data-theme-target][data-active="true"] {
  background-color: #ecfccb; /* lime-100 */
  color: #4d7c0f; /* lime-700 */
  border-radius: 0.25rem;
}
[data-theme-target][data-active="false"] {
  color: #a8a29e; /* stone-400 */
}
.dark [data-theme-target][data-active="true"] {
  background-color: #1a2e05; /* lime-900 */
  color: #bef264; /* lime-300 */
}
.dark [data-theme-target][data-active="false"] {
  color: #78716c;
}

/* Autocomplete — keyboard highlighted item */
[data-highlighted="true"] {
  background-color: #f7fee7; /* lime-50 */
}
.dark [data-highlighted="true"] {
  background-color: #44403c; /* stone-700 */
}

/* Autocomplete dropdown */
[data-autocomplete-dropdown] {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 50;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  margin-top: 0.25rem;
  max-height: 12rem;
  overflow-y: auto;
  background-color: #ffffff;
  border: 1px solid #d6d3d1;
}
.dark [data-autocomplete-dropdown] {
  background-color: #1c1917; /* stone-900 — darker than card bg to stand out */
  border-color: #78716c; /* stone-500 — stronger border for visibility */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}
[data-autocomplete-dropdown] [data-autocomplete-item] {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  cursor: pointer;
}
[data-autocomplete-dropdown] [data-autocomplete-item]:hover,
[data-autocomplete-dropdown] [data-autocomplete-item][data-highlighted="true"] {
  background-color: #f7fee7;
}
.dark [data-autocomplete-dropdown] [data-autocomplete-item]:hover,
.dark [data-autocomplete-dropdown] [data-autocomplete-item][data-highlighted="true"] {
  background-color: #44403c;
}
[data-autocomplete-dropdown] [data-autocomplete-empty] {
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  color: #a8a29e;
}
/* Source picker — "Create new" option in dropdown */
[data-autocomplete-dropdown] [data-source-picker-create] {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  color: #65a30d;
  border-top: 1px solid #f5f5f4;
  cursor: pointer;
}
[data-autocomplete-dropdown] [data-source-picker-create]:hover {
  background-color: #f7fee7;
}
.dark [data-autocomplete-dropdown] [data-source-picker-create] {
  border-top-color: #44403c;
  color: #a3e635;
}
.dark [data-autocomplete-dropdown] [data-source-picker-create]:hover {
  background-color: rgba(101, 163, 13, 0.1);
}
/* Autocomplete — label and search thumbnail */
[data-autocomplete-dropdown] [data-autocomplete-label] {
  font-weight: 500;
}
[data-search-thumb] {
  width: 2rem;
  height: 2rem;
  border-radius: 0.25rem;
  object-fit: cover;
}
[data-autocomplete-dropdown] [data-role="category"] {
  font-size: 0.75rem;
  color: #a8a29e;
}
[data-autocomplete-dropdown] [data-role="alias"] {
  font-size: 0.75rem;
  font-style: italic;
  color: #65a30d;
}
.dark [data-autocomplete-dropdown] [data-role="alias"] {
  color: #a3e635;
}

/* Resolve dropdown — confidence & status badges */
[data-resolve-confidence] {
  font-size: 0.75rem;
  color: #f59e0b; /* amber-500 */
}
[data-resolve-status] {
  font-size: 0.625rem; /* 10px */
  color: #3b82f6; /* blue-500 */
  background-color: #eff6ff; /* blue-50 */
  border: 1px solid #bfdbfe; /* blue-200 */
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
}
.dark [data-resolve-status] {
  background-color: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
}
/* Resolve dropdown — suggest divider & button */
[data-resolve-divider] {
  border-top: 1px solid #e7e5e4; /* stone-200 */
}
.dark [data-resolve-divider] {
  border-top-color: #44403c;
}
[data-resolve-suggest-btn] {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  color: #65a30d; /* lime-600 */
  cursor: pointer;
}
[data-resolve-suggest-btn]:hover {
  background-color: #f7fee7; /* lime-50 */
}
.dark [data-resolve-suggest-btn]:hover {
  background-color: #44403c;
}
/* Resolve — group header inserted by JS */
[data-resolve-group-header] {
  font-weight: 500;
  color: #292524; /* stone-800 */
  font-size: 0.875rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f5f5f4; /* stone-100 */
}
.dark [data-resolve-group-header] {
  color: #e7e5e4;
  border-top-color: #44403c;
}
/* Resolve — note item inserted by JS */
[data-resolve-note-item] {
  color: #a8a29e; /* stone-400 */
  font-style: italic;
  padding-left: 0.75rem;
}
/* Resolve — alias highlight */
[data-resolve-alias-match] {
  font-size: 0.75rem;
  font-style: italic;
}
[data-resolve-alias-match] [data-alias-context] {
  color: #a3e635; /* lime-400 */
}
[data-resolve-alias-match] [data-alias-highlight] {
  color: #65a30d; /* lime-600 */
  font-weight: 500;
}
.dark [data-resolve-alias-match] [data-alias-highlight] {
  color: #a3e635;
}
/* Resolve — ingredient display after confirm */
[data-resolve-qty] {
  font-weight: 600;
  color: #1c1917; /* stone-900 */
}
.dark [data-resolve-qty] {
  color: #f5f5f4;
}
[data-resolve-prep] {
  color: #a8a29e; /* stone-400 */
}

/* Toggle item — label checked/unchecked state (optimistic UI) */
[data-toggle-item-target="label"][data-checked="true"] {
  text-decoration: line-through;
  color: #a8a29e; /* stone-400 */
}
[data-toggle-item-target="label"][data-checked="false"] {
  text-decoration: none;
  color: #44403c; /* stone-700 */
}
.dark [data-toggle-item-target="label"][data-checked="false"] {
  color: #d6d3d1;
}
/* Chat — optimistic user bubble */
[data-chat-user-bubble] {
  display: flex;
  justify-content: flex-end;
}
[data-chat-user-message] {
  background-color: #65a30d; /* lime-600 */
  color: #ffffff;
  border-radius: 1rem;
  border-bottom-right-radius: 0.125rem;
  padding: 0.5rem 0.875rem;
  max-width: 80%;
  font-size: 0.875rem;
}
.dark [data-chat-user-message] {
  background-color: #4d7c0f;
}
/* Chat — typing indicator */
[data-chat-typing] {
  display: flex;
  justify-content: flex-start;
}
[data-chat-typing-inner] {
  background-color: #f5f5f4; /* stone-100 */
  color: #a8a29e; /* stone-400 */
  border-radius: 1rem;
  border-bottom-left-radius: 0.125rem;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.dark [data-chat-typing-inner] {
  background-color: #44403c;
  color: #78716c;
}
[data-chat-typing-dot] {
  display: inline-block;
  width: 0.375rem;
  height: 0.375rem;
  background-color: #a8a29e;
  border-radius: 9999px;
  animation: bounce 1s infinite;
}
.dark [data-chat-typing-dot] {
  background-color: #78716c;
}

/* Date toggle — picker visibility hack for showPicker */
[data-date-toggle-target="picker"] {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
}
[data-date-toggle-target="picker"][data-picker-visible] {
  visibility: visible;
  opacity: 0.01;
}
/* Date toggle — button selected state */
[data-date-selected] {
  color: #15803d !important; /* green-700 */
}
.dark [data-date-selected] {
  color: #86efac !important; /* green-300 */
}

/* Photo reorder — dragging state */
[data-dragging] {
  opacity: 0.5;
}

/* Scale controller — scaled measure display */
[data-scaled-measure] {
  font-weight: 600;
  color: #1c1917; /* stone-900 */
}
.dark [data-scaled-measure] {
  color: #f5f5f4;
}

/* Tag input — pills */
[data-tag-pill] {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background-color: #dcfce7; /* green-100 */
  color: #15803d; /* green-700 */
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
}
.dark [data-tag-pill] {
  background-color: rgba(34, 197, 94, 0.15);
  color: #86efac; /* green-300 */
}
[data-tag-remove] {
  color: #86efac; /* green-400 */
  margin-left: 0.125rem;
  cursor: pointer;
}
[data-tag-remove]:hover {
  color: #15803d; /* green-700 */
}
.dark [data-tag-remove]:hover {
  color: #dcfce7;
}
/* Tag input — suggestions dropdown */
[data-tag-suggestion] {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  color: #44403c; /* stone-700 */
  cursor: pointer;
}
[data-tag-suggestion]:hover {
  background-color: #f0fdf4; /* green-50 */
  color: #15803d; /* green-700 */
}
.dark [data-tag-suggestion] {
  color: #d6d3d1;
}
.dark [data-tag-suggestion]:hover {
  background-color: rgba(34, 197, 94, 0.1);
  color: #86efac;
}

/* Ingredient checked state */
[data-checked="true"] {
  text-decoration: line-through;
  color: #a8a29e; /* stone-400 */
}

/* Step active/highlighted state */
[data-active-step="true"] {
  background-color: #f7fee7; /* lime-50 */
  border: 1px solid #d9f99d; /* lime-200 */
}
.dark [data-active-step="true"] {
  background-color: rgba(101, 163, 13, 0.1);
  border-color: rgba(101, 163, 13, 0.3);
}

/* Step timer widget */
[data-step-timer] {
  background-color: #ffffff;
  border: 1px solid #e7e5e4; /* stone-200 */
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  padding: 0.75rem;
  min-width: 200px;
  animation: slide-in-right 0.25s ease-out;
}
.dark [data-step-timer] {
  background-color: #292524;
  border-color: #44403c;
}
[data-step-timer][data-timer-state="done"] {
  border-color: #86efac; /* green-300 */
}
[data-step-timer-header] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.375rem;
}
[data-step-timer-label] {
  font-size: 0.75rem;
  font-weight: 500;
  color: #57534e; /* stone-600 */
}
.dark [data-step-timer-label] {
  color: #d6d3d1;
}
[data-step-timer-close-btn] {
  color: #d6d3d1; /* stone-300 */
  margin-right: -0.25rem;
}
[data-step-timer-close-btn]:hover {
  color: #78716c; /* stone-500 */
}
[data-step-timer-display] {
  font-size: 1.25rem;
  font-weight: 700;
  color: #292524; /* stone-800 */
  font-variant-numeric: tabular-nums;
}
.dark [data-step-timer-display] {
  color: #f5f5f4;
}
[data-step-timer][data-timer-state="warning"] [data-step-timer-display] {
  color: #ef4444; /* red-500 */
}
[data-step-timer][data-timer-state="done"] [data-step-timer-display] {
  color: #16a34a; /* green-600 */
}
[data-step-timer-track] {
  margin-top: 0.375rem;
  height: 0.25rem;
  background-color: #f5f5f4; /* stone-100 */
  border-radius: 9999px;
  overflow: hidden;
}
.dark [data-step-timer-track] {
  background-color: #44403c;
}
[data-step-timer-bar] {
  height: 100%;
  background-color: #22c55e; /* green-500 */
  border-radius: 9999px;
  transition: width 0.3s;
}
[data-step-timer][data-timer-state="done"] [data-step-timer-bar] {
  background-color: #4ade80; /* green-400 */
}

/* Hero carousel */
.hero-stage {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-panel-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.hero-word {
  transition: color 0.3s ease;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background-color: #d6d3d1; /* stone-300 */
  transition: all 0.3s ease;
}
.dark .hero-dot {
  background-color: #57534e; /* stone-600 */
}
.hero-dot-active {
  background-color: #65a30d; /* lime-600 */
  width: 24px;
}
.dark .hero-dot-active {
  background-color: #a3e635; /* lime-400 */
}
/* Save panel — sparkle pulse */
.hero-scan-sparkle {
  animation: hero-sparkle-pulse 2s ease-in-out infinite;
}
@keyframes hero-sparkle-pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}
/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-panel, .hero-panel-active {
    transition: none;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .hero-scan-sparkle {
    animation: none;
    opacity: 0.7;
  }
}

/* Cook mode — inline timer links in step text */
.cook-inline-timer {
  text-decoration: underline;
  text-decoration-color: #a3e635; /* lime-400 */
  text-underline-offset: 2px;
  text-decoration-thickness: 2px;
  cursor: pointer;
  transition: background-color 0.15s ease;
  border-radius: 0.125rem;
}
.cook-inline-timer:hover {
  background-color: rgba(163, 230, 53, 0.15); /* lime-400/15% */
}
.cook-inline-timer-active {
  text-decoration-color: #22c55e; /* green-500 */
  background-color: rgba(34, 197, 94, 0.1);
  cursor: default;
}

/* Cook mode — ingredient pill */
[data-cook-ingredient-pill] {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  background-color: #dcfce7; /* green-100 */
  color: #15803d; /* green-700 */
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
}
.dark [data-cook-ingredient-pill] {
  background-color: rgba(34, 197, 94, 0.15);
  color: #86efac;
}
/* Cook mode — ingredient list item (sidebar) */
[data-cook-ingredient-list-item] {
  font-size: 0.875rem;
  color: #44403c; /* stone-700 */
  padding: 0.125rem 0;
}
.dark [data-cook-ingredient-list-item] {
  color: #d6d3d1;
}
/* Cook mode — empty ingredients notice */
[data-cook-empty-ingredients] {
  font-size: 0.75rem;
  color: #a8a29e; /* stone-400 */
  font-style: italic;
}
/* Cook mode — timer button */
[data-cook-timer-btn] {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  background-color: #ffffff;
  border: 1px solid #d6d3d1; /* stone-300 */
  color: #57534e; /* stone-600 */
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
}
[data-cook-timer-btn]:hover {
  background-color: #f0fdf4; /* green-50 */
  border-color: #86efac; /* green-300 */
  color: #15803d; /* green-700 */
}
.dark [data-cook-timer-btn] {
  background-color: #292524;
  border-color: #57534e;
  color: #d6d3d1;
}
.dark [data-cook-timer-btn]:hover {
  background-color: rgba(34, 197, 94, 0.1);
  border-color: #65a30d;
  color: #a3e635;
}
/* Cook mode — live timer display */
[data-cook-timer-live] {
  background-color: #ffffff;
  border: 1px solid #e7e5e4;
  border-radius: 0.5rem;
  padding: 0.75rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.dark [data-cook-timer-live] {
  background-color: #292524;
  border-color: #44403c;
}
[data-cook-timer-live][data-timer-state="done"] {
  border-color: #22c55e;
}
[data-cook-timer-display] {
  font-size: 1.875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #292524; /* stone-800 */
}
.dark [data-cook-timer-display] {
  color: #f5f5f4;
}
[data-cook-timer-live][data-timer-state="warning"] [data-cook-timer-display] {
  color: #ef4444; /* red-500 */
}
[data-cook-timer-live][data-timer-state="done"] [data-cook-timer-display] {
  color: #16a34a; /* green-600 */
}
[data-cook-timer-track] {
  margin-top: 0.5rem;
  height: 0.25rem;
  width: 100%;
  background-color: #e7e5e4;
  border-radius: 9999px;
  overflow: hidden;
}
.dark [data-cook-timer-track] {
  background-color: #44403c;
}
[data-cook-timer-bar] {
  height: 100%;
  background-color: #22c55e; /* green-500 */
  border-radius: 9999px;
  transition: width 0.3s;
}
[data-cook-timer-live][data-timer-state="done"] [data-cook-timer-bar] {
  background-color: #4ade80;
}
[data-cook-timer-step-label] {
  font-size: 0.75rem;
  color: #a8a29e; /* stone-400 */
  margin-top: 0.375rem;
}
/* Cook mode — compact timers on mobile */
@media (max-width: 1023px) {
  [data-cook-timer-live] {
    padding: 0.375rem 0.5rem;
  }
  [data-cook-timer-display] {
    font-size: 1.125rem;
  }
  [data-cook-timer-track] {
    margin-top: 0.25rem;
  }
  [data-cook-timer-step-label] {
    font-size: 0.625rem;
    margin-top: 0.125rem;
  }
  .cook-timer-pause-btn,
  .cook-timer-remove-btn {
    width: 1.5rem;
    height: 1.5rem;
  }
  .cook-timer-pause-btn svg,
  .cook-timer-remove-btn svg {
    width: 0.75rem;
    height: 0.75rem;
  }
}
/* Cook mode — paused timer */
[data-cook-timer-live][data-timer-state="paused"] [data-cook-timer-display] {
  opacity: 0.5;
}
[data-cook-timer-live][data-timer-state="paused"] [data-cook-timer-bar] {
  opacity: 0.4;
}
/* Cook mode — inline timer (compact bar under step) */
.cook-timer-inline {
  background-color: #fafaf9; /* stone-50 */
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
}
.dark .cook-timer-inline {
  background-color: #44403c; /* stone-700 */
}
.cook-timer-inline[data-timer-state="done"] {
  background-color: #f0fdf4; /* green-50 */
}
.dark .cook-timer-inline[data-timer-state="done"] {
  background-color: rgba(34, 197, 94, 0.1);
}
.cook-timer-inline .cook-timer-pause-btn,
.cook-timer-inline .cook-timer-remove-btn {
  width: 1.5rem;
  height: 1.5rem;
}
/* Cook mode — timer control buttons */
.cook-timer-pause-btn,
.cook-timer-remove-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  color: #a8a29e; /* stone-400 */
  transition: all 0.15s ease;
}
.cook-timer-pause-btn:hover {
  background-color: #f5f5f4; /* stone-100 */
  color: #57534e; /* stone-600 */
}
.cook-timer-remove-btn:hover {
  background-color: #fef2f2; /* red-50 */
  color: #ef4444; /* red-500 */
}
.dark .cook-timer-pause-btn:hover {
  background-color: #44403c;
  color: #d6d3d1;
}
.dark .cook-timer-remove-btn:hover {
  background-color: rgba(239, 68, 68, 0.1);
  color: #f87171;
}
/* Cook mode — inline timer in step (margin between stacked timers) */
[data-cook-timer-live] + [data-cook-timer-live] {
  margin-top: 0.5rem;
}
/* Cook mode — mobile bottom sheet slide-up */
.cook-mode-sheet {
  transform: translateY(0);
  animation: sheet-slide-up 0.2s ease-out;
}
@keyframes sheet-slide-up {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

/* Photo overlay (lightbox) */
[data-photo-overlay] {
  position: fixed;
  inset: 0;
  z-index: 60;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
[data-photo-overlay-content] {
  position: relative;
  max-width: 56rem;
  max-height: 90vh;
}
[data-photo-overlay-img] {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 0.5rem;
}
[data-photo-overlay-close] {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 9999px;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
[data-photo-overlay-close]:hover {
  color: #ffffff;
}
[data-photo-overlay-nav] {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.8);
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 9999px;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
[data-photo-overlay-nav]:hover {
  color: #ffffff;
}
[data-photo-overlay-nav="prev"] {
  left: 0.5rem;
}
[data-photo-overlay-nav="next"] {
  right: 0.5rem;
}
[data-photo-overlay-counter] {
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
}

/* Dark mode — surface overrides for bg-white cards, borders, and inputs */
.dark .bg-white { background-color: #292524; } /* stone-800 */
.dark .border-stone-200 { border-color: #44403c; } /* stone-700 */
.dark .border-stone-100 { border-color: #37322f; } /* between stone-800 and stone-700 */
.dark .divide-stone-100 > * { border-color: #37322f; }
.dark .text-stone-900 { color: #f5f5f4; } /* stone-100 */
.dark .text-stone-700 { color: #d6d3d1; } /* stone-300 */
.dark .text-stone-600 { color: #d6d3d1; }
.dark .text-stone-500 { color: #a8a29e; } /* stone-400 */
.dark .bg-stone-50 { background-color: #1c1917; } /* stone-900 */
.dark .bg-stone-100 { background-color: #292524; } /* stone-800 */
/* Dark mode — hover states */
.dark .hover\:bg-stone-50:hover { background-color: #37322f; }
.dark .hover\:bg-stone-100:hover { background-color: #37322f; }
.dark .hover\:border-stone-300:hover { border-color: #57534e; }
.dark .hover\:border-lime-300:hover { border-color: #65a30d; }
.dark .hover\:text-stone-600:hover { color: #e7e5e4; }
.dark .hover\:text-stone-700:hover { color: #f5f5f4; }
.dark .hover\:text-stone-900:hover { color: #f5f5f4; }
.dark .hover\:text-lime-700:hover { color: #a3e635; }
.dark .hover\:bg-lime-50:hover { background-color: rgba(101, 163, 13, 0.15); }
.dark .hover\:bg-lime-100:hover { background-color: rgba(101, 163, 13, 0.2); }
.dark input, .dark textarea, .dark select {
  background-color: transparent;
  border-color: #44403c;
  color: #f5f5f4;
}
.dark input::placeholder, .dark textarea::placeholder {
  color: #78716c;
}
.dark .border-dashed { border-color: #57534e; }

/* Dark mode scrollbar */
.dark { color-scheme: dark; }

/* Dark mode — difficulty pills */
.dark .bg-lime-50 { background-color: rgba(101, 163, 13, 0.15); }
.dark .text-lime-600 { color: #a3e635; } /* lime-400 */
.dark .border-lime-100 { border-color: rgba(101, 163, 13, 0.3); }
.dark .bg-amber-50 { background-color: rgba(217, 119, 6, 0.1); }
.dark .text-amber-600 { color: #fbbf24; } /* amber-400 */
.dark .text-amber-700 { color: #fbbf24; }
.dark .border-amber-100 { border-color: rgba(217, 119, 6, 0.2); }
.dark .border-amber-200 { border-color: rgba(217, 119, 6, 0.25); }
.dark .bg-red-50 { background-color: rgba(220, 38, 38, 0.15); }
.dark .text-red-600 { color: #f87171; } /* red-400 */
.dark .border-red-100 { border-color: rgba(220, 38, 38, 0.3); }

/* Dark mode — purple meal type pills */
.dark .bg-purple-50 { background-color: rgba(147, 51, 234, 0.15); }
.dark .text-purple-700 { color: #c084fc; } /* purple-400 */
.dark .border-purple-200 { border-color: rgba(147, 51, 234, 0.3); }

/* Dark mode — blue pills (pending) */
.dark .bg-blue-50 { background-color: rgba(59, 130, 246, 0.15); }
.dark .text-blue-600 { color: #60a5fa; } /* blue-400 */
.dark .border-blue-200 { border-color: rgba(59, 130, 246, 0.3); }

/* Dark mode — favorite button */
.dark .bg-red-50 { background-color: rgba(220, 38, 38, 0.15); }
.dark .border-red-200 { border-color: rgba(220, 38, 38, 0.3); }
.dark .hover\:bg-red-50:hover { background-color: rgba(220, 38, 38, 0.15); }

/* Dark mode — lime/green badges and buttons */
.dark .bg-lime-600 { background-color: #4d7c0f; } /* lime-700 — toned down for dark */
.dark .hover\:bg-lime-700:hover { background-color: #3f6212; } /* lime-800 */
.dark .text-lime-700 { color: #a3e635; } /* lime-400 */
.dark .border-lime-700 { border-color: #65a30d; }
.dark .border-lime-300 { border-color: #65a30d; }
.dark .hover\:bg-lime-50:hover { background-color: rgba(101, 163, 13, 0.15); }

/* Dark mode — secondary buttons (white bg with lime border) */
.dark .border-lime-700.bg-white { background-color: #292524; }

/* Dark mode — stone border buttons (favorite/save unfavorited) */
.dark .border-stone-300 { border-color: #57534e; }
