Design notesHow to read it
One card in the form. Wherever something is scheduled, the record shows this card: a digest line and one row per facet with a pen. Rows an instance turns off are simply not there.
Each row opens one drawer. Rhythm, Days, Times, Where, How long, Holidays. The drawers are the same in every instance; only which exist changes.
Windows, not “start and end”. A day holds a list of windows — 9–12 and 15–19 are two windows. A medication turns the window into a point (a time, no end). A night turns off times altogether: the window is the whole day and carries only a place.
Same every day / varies by day. The times drawer starts as one list for every chosen day; “Varies by day” gives each day its own list, with “copy to the rest” so the common case stays two taps.
Rhythm is week tabs. Weekly is one week; alternate weeks is two with the second empty or different; a rota is N weeks. Days and times are always edited per week, so the family never sees a “cycle” concept — only Week 1, Week 2.
The value is what the engine reads today — weeks[{days, windows | perDay}], span, cycleStart, places — so clashes, misfits and whereabouts keep working unchanged.
Needed vs optional is set per instance: orange for what the calendar cannot do without (a shift needs days and times; a program needs days and a time), grey Add for the rest.