()
| 83 | * the stale counter doesn't persist into the next offline period. |
| 84 | */ |
| 85 | export function clearCheckCount(): void { |
| 86 | const el = document.getElementById("status-check"); |
| 87 | if (el) { |
| 88 | el.textContent = ""; |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | // CSS custom property values by state — mirrors the design tokens in style.css. |
| 93 | // These are set directly on the label element so it transitions with the state. |