Meal Planner (Single File + Hash State)

State in URL hash
Copy/paste the URL to move the current app state to another browser.
Hash length:

Actions

Add planned meal

Add on-hand ingredient

Quick rules

Derived

Potential meals (can be made now; favorites first)

Needed ingredients (planned but not on hand)

State

Past meals (max 14)

Planned meals

Favorite meals

On-hand ingredients

Catalog

Constants embedded in this single file.

Meals

Ingredients

Debug

Raw internal state arrays (meal/ingredient indices) in fixed order: past, planned, favorites, onHand.