/* Shared semantic colors. Only saved Hour completions consume them here. */
:root{--state-completed-surface:#edf5ef;--state-completed-text:#2d5e40;--state-completed-edge:#94b59d;--state-current-surface:#e9eff8;--state-current-text:#244675;--state-current-edge:#91a7c6;--state-expanded-surface:#f0f2f6;--state-expanded-text:#35465d;--state-expanded-edge:#a4afbf;--state-disabled-surface:#f2f3f5;--state-disabled-text:#586574;--state-disabled-edge:#bac1ca;--state-error-surface:#fff0ed;--state-error-text:#92392c;--state-error-edge:#d89a8b}
.dark{--state-completed-surface:#182b23;--state-completed-text:#dcebe0;--state-completed-edge:#4f8061;--state-current-surface:#1c2c46;--state-current-text:#e0e9f7;--state-current-edge:#627fa8;--state-expanded-surface:#202b3c;--state-expanded-text:#dae4f3;--state-expanded-edge:#6b7c94;--state-disabled-surface:#1b2431;--state-disabled-text:#a8b2bf;--state-disabled-edge:#647181;--state-error-surface:#362321;--state-error-text:#f3c6bc;--state-error-edge:#9b625a}

/* Follow existing saved state; no state storage or record/undo hooks. */
.day-overview .hours-list{--state-row-inset:20px}
.day-overview .today-hour-row:has(>.today-hour-actions>.today-record-control.is-recorded){--state-surface:var(--state-completed-surface);--state-text:var(--state-completed-text);--state-edge:var(--state-completed-edge);position:relative;isolation:isolate;background:transparent;color:var(--state-text);--blue:var(--state-text);--ink:var(--state-text);--muted:var(--state-text);border-bottom-color:var(--state-edge)}
.day-overview .today-hour-row:has(>.today-hour-actions>.today-record-control.is-recorded)::before{content:'';position:absolute;inset:0 calc(-1 * var(--state-row-inset));z-index:-1;background:var(--state-surface);box-shadow:inset 0 -1px var(--state-edge);pointer-events:none}
.day-overview .today-hour-row:has(>.today-hour-actions>.today-record-control.is-recorded):first-child::before{border-start-start-radius:3px;border-start-end-radius:3px}
.day-overview .today-hour-row:has(>.today-hour-actions>.today-record-control.is-recorded):last-child::before{border-end-start-radius:3px;border-end-end-radius:3px;box-shadow:none}
.day-overview .today-hour-row:has(>.today-hour-actions>.today-record-control.is-recorded) .today-record-control,.day-overview .today-hour-row:has(>.today-hour-actions>.today-record-control.is-recorded) .today-hour-open{background:transparent;color:var(--state-text)}
.day-overview .today-hour-row:has(>.today-hour-actions>.today-record-control.is-recorded) .today-record-control:hover,.day-overview .today-hour-row:has(>.today-hour-actions>.today-record-control.is-recorded) .today-hour-open:hover{background:color-mix(in srgb,var(--state-text) 7%,transparent)}
@container home-window (max-width:60rem){.day-overview .hours-list{--state-row-inset:18px}}
