{#each days as day} {@const isSelected = day === selectedDay} {@const isTodayDay = day === today} {@const hasMeal = !!slotMap[day]?.recipe} {@const dateNum = day.slice(-2).replace(/^0/, '')} {@const abbr = formatDayAbbr(day, 'narrow')}
selectDay(day)} class="flex flex-col items-center rounded-[10px] px-1 py-2 transition-colors {isTodayDay ? 'border border-[var(--yellow-light)] bg-[var(--yellow-tint)]' : ''} {isSelected && !isTodayDay ? 'border border-[var(--green-light)] bg-[var(--green-tint)]' : ''} {!isTodayDay && !isSelected ? 'border border-transparent' : ''}" >
{abbr}
{dateNum}
{/each}