{{-- Drives the follow-up bell: polls what is due, fills the panel, and announces anything newly due as a toast and — with permission — a desktop notification. Included from partials.shell-scripts, which both layouts load after the Bootstrap bundle and after partials.toasts has defined emiToast(). Three rules this file exists to keep: * Announcing is the browser's business. The endpoint only ever reads. `reminder_count` on the task is the record of what was *mailed*, and a toast is not a send — so which task has already been shouted about is remembered here, in localStorage, keyed on the task's id *and* its due time so a snoozed task can announce itself again at its new time. * Never nag on arrival. Work already overdue when the page loads is counted on the bell but not announced: opening a screen is not the moment to be shouted at about a mail from yesterday. Only a task that comes due while the tab is open is announced. * Go quiet rather than hammer. Polling stops while the tab is hidden and after repeated failures, and a signed-out session answers 204, which ends it cleanly. --}}