Method and assumptions
Run repeating focus and break intervals, switching phase whenever the current period ends. Remaining time is derived from the difference between the device clock and a deadline, rather than from display ticks, so it can correct after background tab activity. Settings and session counts remain on the current page and no activity log is sent to our server.