:root {
  --bg: #f3f5f8;
  --panel: #ffffff;
  --ink: #1c2430;
  --muted: #5b6676;
  --rule: #d5dae1;
  --accent: #2457d6;
  --accent-ink: #ffffff;
  --today: #e8eefc;
  --open: #b45309;
  --danger: #b42318;
  --ok-bg: #e4f4ec;
  --err-bg: #fdeceb;
  --weekend: #f4f5f8;
  --month-a: #e3ecff; --month-b: #e1f3ec;
  --today: #fff3e2; --today-edge: #f2a65a;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14181f; --panel: #1c222c; --ink: #e8ecf2; --muted: #9aa5b5;
    --rule: #323b49; --accent: #6f94f2; --accent-ink: #0d1117; --today: #202c47;
    --open: #f0a24b; --danger: #ff8a80; --ok-bg: #173326; --err-bg: #3a1f1d;
    --weekend: #1a2029; --month-a: #1e2a45; --month-b: #17332b; --today: #33281a; --today-edge: #d98c3a;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
h1 { font-size: 1.35rem; margin: 0; letter-spacing: -0.01em; }
small { display: block; color: var(--muted); font-size: .8rem; font-weight: 400; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .75rem 1.25rem; background: var(--panel); border-bottom: 4px solid transparent; flex-wrap: wrap;
  border-image: linear-gradient(90deg, #2457D6, #0D8263, #B4326E, #C26A12, #7A4FD1, #0891B2) 1; }
.brand { font-weight: 700; color: var(--ink); text-decoration: none; font-size: 1.1rem; }
nav { display: flex; gap: 1.1rem; align-items: center; }
nav a { color: var(--ink); text-decoration: none; }
nav a:hover { text-decoration: underline; }
main { max-width: 1400px; margin: 0 auto; padding: 1.25rem; }

.weekbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  flex-wrap: wrap; margin-bottom: 1rem; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; }

.btn, button.btn { font: inherit; padding: .45rem .9rem; border-radius: 6px; border: 1px solid var(--rule);
  background: var(--panel); color: var(--ink); text-decoration: none; cursor: pointer; display: inline-block; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn.danger { color: var(--danger); border-color: var(--danger); background: transparent; }
button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); cursor: pointer; }
button.link:hover { text-decoration: underline; }
form.inline { display: inline; margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.flash { padding: .6rem .9rem; border-radius: 6px; margin: 0 0 1rem; border: 1px solid var(--rule); }
.flash.ok { background: var(--ok-bg); }
.flash.error { background: var(--err-bg); border-color: var(--danger); }
.empty { padding: 1rem; background: var(--panel); border: 1px dashed var(--rule); border-radius: 6px; }

/* the rota grid */
.scroll { overflow-x: auto; border: 1px solid var(--rule); border-radius: 8px; background: var(--panel); }
table { border-collapse: collapse; width: 100%; }
table.rota { min-width: 920px; table-layout: fixed; }
.rota th, .rota td { border-bottom: 1px solid var(--rule); border-right: 1px solid var(--rule);
  padding: .4rem; vertical-align: top; text-align: left; }
.rota tr > :last-child { border-right: 0; }
.rota tbody tr:last-child > * { border-bottom: 0; }
.rota thead th { font-weight: 600; background: var(--bg); }
.rota thead th span { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }
.rota .who { width: 11rem; font-weight: 600; }
.rota .tot { width: 4.5rem; text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.rota td.today, .rota th.today { background: var(--today); }
.rota .open .who { color: var(--open); }
.swatch { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; margin-right: .5rem; }

.chip { display: block; margin-bottom: .3rem; padding: .25rem .5rem; border-left: 4px solid var(--c);
  background: var(--bg); border-radius: 0 4px 4px 0; color: var(--ink); text-decoration: none; font-size: .9rem; }
a.chip:hover { outline: 1px solid var(--c); }
.chip .time { font-variant-numeric: tabular-nums; font-weight: 600; display: block; }
.chip .note { display: block; color: var(--muted); font-size: .8rem; overflow-wrap: anywhere; }
.open .chip { border-left-style: dashed; }
.add { display: inline-block; color: var(--muted); text-decoration: none; padding: 0 .5rem; border-radius: 4px; border: 1px dashed transparent; }
td:hover .add, .add:focus-visible { border-color: var(--rule); color: var(--accent); }

/* lists and forms */
table.list { background: var(--panel); border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
.list th, .list td { padding: .6rem .8rem; border-bottom: 1px solid var(--rule); text-align: left; }
.list tr:last-child td { border-bottom: 0; }
.list td.right { text-align: right; }
input.copy { width: 100%; min-width: 14rem; font: .8rem ui-monospace, monospace; padding: .3rem; border: 1px solid var(--rule); border-radius: 4px; background: var(--bg); color: var(--ink); }

.card { background: var(--panel); border: 1px solid var(--rule); border-radius: 8px; padding: 1.25rem; }
.form { max-width: 28rem; margin-top: 1rem; display: grid; gap: 1rem; }
.form label { display: grid; gap: .3rem; font-weight: 600; }
.form input, .form select { font: inherit; padding: .5rem; border: 1px solid var(--rule); border-radius: 6px;
  background: var(--bg); color: var(--ink); font-weight: 400; width: 100%; }
.form input[type=color] { width: 4rem; height: 2.4rem; padding: .15rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hint { color: var(--muted); font-size: .85rem; margin: 0; font-weight: 400; }
.danger-zone { margin-top: 1.5rem; }

/* filters and tags */
.filters { display: flex; gap: 1rem; align-items: end; flex-wrap: wrap; margin-bottom: 1rem; }
.filters label { display: grid; gap: .2rem; font-size: .85rem; color: var(--muted); }
.filters select { font: inherit; padding: .4rem .6rem; border: 1px solid var(--rule); border-radius: 6px;
  background: var(--panel); color: var(--ink); }
.nowrap { white-space: nowrap; }
.pill { display: inline-block; margin: 0 .25rem .25rem 0; padding: .05rem .5rem; border-radius: 999px;
  border: 1px solid var(--rule); background: var(--bg); font-size: .8rem; white-space: nowrap; }
.pill.tag { border-style: dashed; }
table.list { min-width: 900px; }
.form { max-width: 34rem; }

/* calendar groups and the member picker */
.rota tr.group th { background: var(--bg); text-align: left; border-right: 0; padding: .5rem .6rem; }
.rota tr.group small { display: inline; margin-left: .6rem; }
.members { border: 1px solid var(--rule); border-radius: 8px; padding: .75rem 1rem; display: grid; gap: .5rem;
  max-height: 22rem; overflow-y: auto; margin: 0; }
.members legend { font-weight: 600; padding: 0 .4rem; }
.form label.check { display: flex; align-items: center; gap: .5rem; font-weight: 400; }
.form label.check input { width: auto; }
.form label.check small { display: block; }

/* shifts: weekly pattern editor, status pills, legend */
h2 { font-size: 1.1rem; margin: 1.75rem 0 .6rem; }
.form.wide { max-width: 46rem; }
.btn.small { padding: .2rem .6rem; font-size: .85rem; }
.week { border: 1px solid var(--rule); border-radius: 8px; padding: .75rem 1rem; display: grid; gap: .25rem; margin: 0; }
.week legend { font-weight: 600; padding: 0 .4rem; }
.week .day { display: grid; grid-template-columns: 7.5rem 1fr; gap: .25rem .75rem; align-items: start;
  padding: .6rem 0; border-top: 1px solid var(--rule); }
.week .day:first-of-type { border-top: 0; }
.week .dayname { font-weight: 600; padding-top: .35rem; }
.week .day .blocks { grid-column: 2; display: grid; gap: .4rem; }
.week .day > .actions { grid-column: 2; }
.block { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.block input[type=time] { width: auto; }
.block select { width: auto; }
.pill.status { border: 0; border-left: 4px solid var(--c); border-radius: 0 4px 4px 0; padding: .15rem .5rem; font-size: .85rem; }
table.weekly th { width: 8rem; text-align: left; }
.legend { list-style: none; display: flex; gap: 1.25rem; flex-wrap: wrap; margin: .75rem 0 0; padding: 0; font-size: .85rem; color: var(--muted); }
.swatch.outline { background: transparent; border: 2px solid var(--muted); }
.form .inline-label, .inline-label { display: inline-flex; gap: .5rem; align-items: center; font-weight: 400; }
td.right form.inline { margin-left: .25rem; }
@media (max-width: 640px) { .week .day { grid-template-columns: 1fr; } .week .day .blocks, .week .day > .actions { grid-column: 1; } }

/* accounts, workspaces and time off */
.who-menu { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.who-menu a { color: var(--ink); text-decoration: none; }
.who-menu a:hover { text-decoration: underline; }
.who-menu select { font: inherit; padding: .25rem .5rem; border: 1px solid var(--rule); border-radius: 6px; background: var(--panel); color: var(--ink); }
.inline-small { display: inline; color: var(--muted); font-size: .8rem; margin-left: .3rem; }
.badge { display: inline-block; min-width: 1.3rem; padding: 0 .4rem; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: .75rem; text-align: center; font-weight: 700; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.state { display: inline-block; padding: .05rem .55rem; border-radius: 999px; font-size: .8rem; font-weight: 600; border: 1px solid var(--rule); }
.state.pending { background: var(--bg); }
.state.approved { background: var(--ok-bg); }
.state.declined { background: var(--err-bg); }
.decline { display: inline-flex; gap: .35rem; margin-left: .35rem; }
.decline input[type=text] { font: inherit; padding: .3rem .5rem; width: 11rem; border: 1px solid var(--rule); border-radius: 6px; background: var(--bg); color: var(--ink); }
.list td small { display: block; }
.scroll .list { border: 0; border-radius: 0; }

/* people details */
dl.details { display: grid; grid-template-columns: 9rem 1fr; gap: .4rem 1rem; background: var(--panel);
  border: 1px solid var(--rule); border-radius: 8px; padding: 1rem 1.25rem; max-width: 40rem; }
dl.details dt { color: var(--muted); }
dl.details dd { margin: 0; }

/* the timeline */
.page-head { margin-bottom: .75rem; }
.page-head h1 { font-size: 1.7rem; }
.page-head .hint { margin: .15rem 0 0; }
.tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin: 0 0 1rem; }
.tabs a { padding: .3rem .8rem; border: 1px solid var(--rule); border-radius: 999px; background: var(--panel);
  color: var(--ink); text-decoration: none; font-size: .9rem; }
.tabs a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--panel); font-weight: 600; }
.tabs a.new { border-style: dashed; color: var(--muted); }
.inline-form { margin: 0; }

.timeline-bar { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin: 0 0 .9rem; }
.timeline-bar .spacer { flex: 1; }
.segmented { display: inline-flex; padding: 3px; border: 1px solid var(--rule); border-radius: 12px; background: var(--panel); }
.segmented a { padding: .45rem .9rem; border-radius: 9px; color: var(--ink); text-decoration: none; font-size: .95rem; }
.segmented a[aria-current="true"], .segmented a[aria-pressed="true"] { background: var(--weekend); font-weight: 600; box-shadow: inset 0 0 0 1px var(--rule); }
.range { display: inline-flex; align-items: center; gap: .4rem; }
.range-pill { display: inline-flex; align-items: center; gap: .5rem; margin: 0; padding: .4rem .8rem; border: 1px solid var(--rule);
  border-radius: 12px; background: var(--panel); font-size: .95rem; }
.range-pill input[type=date] { width: 8.2rem; font: inherit; font-size: .8rem; padding: .15rem .3rem; border: 1px solid var(--rule);
  border-radius: 6px; background: var(--bg); color: var(--ink); }
.range a.step { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border: 1px solid var(--rule);
  border-radius: 50%; background: var(--panel); color: var(--ink); text-decoration: none; font-size: 1.2rem; line-height: 1; }
.btn.dark { background: var(--ink); border-color: var(--ink); color: var(--panel); font-weight: 600; padding: .6rem 1.1rem; border-radius: 12px; }
.btn.icon { display: inline-flex; align-items: center; justify-content: center; padding: .55rem .6rem; border-radius: 12px; list-style: none; cursor: pointer; }
.btn.icon::-webkit-details-marker { display: none; }
details.menu { position: relative; }
.menu-panel { position: absolute; right: 0; top: calc(100% + .4rem); z-index: 20; min-width: 15rem; padding: .9rem;
  border: 1px solid var(--rule); border-radius: 10px; background: var(--panel); box-shadow: 0 8px 24px rgba(0, 0, 0, .12); }
.menu-panel label { display: grid; gap: .3rem; font-size: .85rem; color: var(--muted); }
.menu-panel select { font: inherit; padding: .4rem .5rem; border: 1px solid var(--rule); border-radius: 6px; background: var(--panel); color: var(--ink); }

.timeline { --name-w: 12rem; --hrs-w: 3.1rem; --day-w: clamp(3.3rem, calc((100vw - 18rem) / 21), 6.2rem);
  overflow-x: auto; border: 1px solid var(--rule); border-radius: 10px; background: var(--panel); }
table.weeks { border-collapse: separate; border-spacing: 0; table-layout: fixed;
  width: calc(var(--name-w) + var(--hrs-w) + var(--day-w) * var(--cols)); font-size: .8rem; }
.weeks th, .weeks td { padding: 0; border-bottom: 1px solid var(--rule); border-right: 1px solid var(--rule); vertical-align: top; background: var(--panel); }
.weeks td { position: relative; padding: 0; }
.weeks tbody tr:not(.group) { height: 3.1rem; }
.weeks td.weekend, .weeks th.daycol.weekend { background: var(--weekend); }
.weeks td.today, .weeks th.daycol.today { background: var(--today); }
.weeks td.weekstart, .weeks th.daycol.weekstart { border-left: 1px solid var(--muted); }

.weeks th.who { position: sticky; left: 0; z-index: 4; width: var(--name-w); padding: .55rem .75rem .55rem .5rem; text-align: right;
  font-weight: 600; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.weeks th.who a { color: var(--ink); text-decoration: none; }
.weeks th.who a:hover { text-decoration: underline; }
.weeks th.tot, .weeks td.tot { position: sticky; left: var(--name-w); z-index: 4; width: var(--hrs-w); text-align: right; padding: .55rem .5rem 0 0;
  font-variant-numeric: tabular-nums; color: var(--muted); box-shadow: 1px 0 0 var(--rule); }
.weeks thead th { position: static; }
.weeks thead th.who, .weeks thead th.tot { position: sticky; }
.weeks th.daycol { width: var(--day-w); padding: .3rem 0 .35rem; text-align: center; font-weight: 400; }
.weeks th.daycol span { display: block; line-height: 1.2; }
.weeks th.daycol .mon { font-size: .68rem; color: var(--muted); }
.weeks th.daycol .num { font-size: 1rem; font-weight: 600; }
.weeks th.daycol .dow { font-size: .72rem; color: var(--muted); }
.weeks th.daycol.today { box-shadow: inset 0 3px 0 var(--today-edge); }
.weeks tr.group th { position: sticky; left: 0; z-index: 3; text-align: left; padding: .4rem .75rem; font-weight: 600;
  border-left: 5px solid var(--g); background: var(--bg); background: color-mix(in srgb, var(--g) 12%, var(--panel)); }
.weeks tr.group small { display: inline; margin-left: .6rem; font-weight: 400; color: var(--muted); }
.weeks tbody tr:hover td:not(.tot) { background-image: linear-gradient(rgba(36, 87, 214, .04), rgba(36, 87, 214, .04)); }

/* the bars: soft colour, dark text, a strong colour underneath. The same block on neighbouring days joins into one bar.
   A day with several statuses shows them side by side, in time order. */
.chips { position: absolute; top: 2px; bottom: 2px; left: 0; right: 0; display: flex; align-items: stretch; }
.slot { flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 4px; position: relative;
  margin: 0 2px; padding: 0 4px; background: var(--bg); color: var(--t); text-decoration: none; white-space: nowrap;
  overflow: visible; font-size: .72rem; font-weight: 600; line-height: 1; box-shadow: inset 0 -3px 0 var(--c); border-radius: 7px; }
.slot[data-labeled="1"] { justify-content: flex-start; padding: 0 6px; }
.slot[data-run="start"] { margin-right: -1px; border-radius: 7px 0 0 7px; z-index: 2; }
.slot[data-run="mid"] { margin-left: 0; margin-right: -1px; border-radius: 0; z-index: 1; }
.slot[data-run="end"] { margin-left: 0; border-radius: 0 7px 7px 0; z-index: 1; }
.slot[data-multi] { overflow: hidden; padding: 0; margin: 0 1px; border-radius: 6px; }
.chips[data-count="1"] .slot { margin-left: 3px; margin-right: 3px; }
.chips[data-count="1"] .slot[data-run="start"] { margin-right: -1px; }
.chips[data-count="1"] .slot[data-run="mid"] { margin-left: 0; margin-right: -1px; }
.chips[data-count="1"] .slot[data-run="end"] { margin-left: 0; }
.slot-icon { font-size: .85rem; flex: none; }
.slot-label { flex: none; }
.chips[data-count="3"] .slot-icon, .chips[data-count="4"] .slot-icon, .chips[data-count="5"] .slot-icon { font-size: .72rem; }
a.slot:hover { filter: brightness(.96); box-shadow: inset 0 -3px 0 var(--c), 0 0 0 2px var(--ink); }
a.slot:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; }
table.weeks.clickable .slot { pointer-events: none; }

/* managers and directors: a click anywhere in a day opens "Add status" for that member and day */
.weeks a.cell-add { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 3; border-radius: 3px; }
.weeks a.cell-add:hover { background: rgba(36, 87, 214, .10); box-shadow: inset 0 0 0 2px var(--accent); }
.weeks a.cell-add:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }

.slot-list { list-style: none; padding: 0; display: flex; gap: .5rem; flex-wrap: wrap; }
a.pill.status { color: var(--ink); text-decoration: none; }
a.pill.status:hover { background: var(--panel); }
.day-context h2 { margin-top: 0; }

/* the three views */
.zoom { display: inline-flex; align-items: center; gap: .35rem; }
.zoom a.step, .zoom span.step { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border: 1px solid var(--rule);
  border-radius: 50%; background: var(--panel); color: var(--ink); text-decoration: none; font-size: 1.2rem; line-height: 1; }
.zoom span.step[aria-disabled="true"] { opacity: .35; cursor: not-allowed; }
.timeline[data-zoom="month"] { --day-w: max(2.2rem, calc((100vw - 18rem) / 28)); }
.timeline[data-zoom="week"] { --day-w: max(8rem, calc((100vw - 18rem) / 7)); }
.timeline[data-zoom="day"] { --day-w: max(40rem, calc(100vw - 18rem)); }
.weeks th.daycol a.daylink { display: block; margin: -.3rem 0 -.35rem; padding: .3rem 0 .35rem; color: inherit; text-decoration: none; }
.weeks th.daycol a.daylink:hover { background: rgba(36, 87, 214, .10); }

/* month: narrow columns, so the bars are small and every piece keeps just its icon */
.timeline[data-zoom="month"] .weeks th.daycol .mon { display: none; }
.timeline[data-zoom="month"] .slot { padding: 0; font-size: .66rem; }
.timeline[data-zoom="month"] .slot-icon { font-size: .72rem; }
.timeline[data-zoom="month"] .chips[data-count="3"] .slot-icon, .timeline[data-zoom="month"] .chips[data-count="4"] .slot-icon,
.timeline[data-zoom="month"] .chips[data-count="5"] .slot-icon { display: none; }

/* week: roomy columns */
.timeline[data-zoom="week"] .slot { font-size: .8rem; }
.timeline[data-zoom="week"] .slot-icon { font-size: .95rem; }

/* day: a 24-hour scale with a faint line every hour and a stronger one at 6, 12 and 18 */
.timeline[data-zoom="day"] .weeks td {
  background-image: linear-gradient(to right, rgba(0, 0, 0, .16) 1px, transparent 1px), linear-gradient(to right, rgba(0, 0, 0, .06) 1px, transparent 1px);
  background-size: 25% 100%, calc(100% / 24) 100%; background-repeat: repeat-x; }
.timeline[data-zoom="day"] .weeks tbody tr:hover td:not(.tot) { background-image: linear-gradient(to right, rgba(0, 0, 0, .16) 1px, transparent 1px), linear-gradient(to right, rgba(0, 0, 0, .06) 1px, transparent 1px); }
.weeks th.daycol .ruler { position: relative; display: block; height: .9rem; margin-top: .3rem; }
.weeks th.daycol .ruler i { position: absolute; top: 0; transform: translateX(2px); font-style: normal; font-size: .62rem; color: var(--muted); }
.track { position: absolute; top: 2px; bottom: 2px; left: 0; right: 0; }
.track .slot { position: absolute; top: 0; bottom: 0; height: auto; flex: none; min-width: 3px; margin: 0; padding: 0 5px;
  justify-content: flex-start; overflow: hidden; border-radius: 6px; font-size: .78rem; }
.track .slot-hours { margin-left: auto; font-weight: 400; opacity: .85; }

/* profile pictures: a round photo, or initials on a coloured badge */
.avatar { flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; object-fit: cover;
  background: var(--a, var(--weekend)); color: #fff; font-weight: 700; letter-spacing: .02em; vertical-align: middle; }
.avatar.xs { width: 1.6rem; height: 1.6rem; font-size: .6rem; }
.avatar.sm { width: 1.9rem; height: 1.9rem; font-size: .7rem; }
.avatar.lg { width: 5.5rem; height: 5.5rem; font-size: 1.7rem; }
.weeks .who-line { display: flex; align-items: center; justify-content: flex-end; gap: .55rem; min-width: 0; }
.weeks .who-line a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-link { display: inline-flex; align-items: center; gap: .45rem; }
.person { display: inline-flex; align-items: center; gap: .55rem; }
.profile-head { display: flex; align-items: center; gap: 1rem; }
.profile-head h1, .profile-head p { margin: 0; }
.photo-card { max-width: 32rem; }
.photo-card .profile-head { margin-bottom: .9rem; }
.photo-change { margin: 0 0 1.2rem; }
.photo-change summary { cursor: pointer; color: var(--accent); width: fit-content; }
.photo-change form { margin-top: .6rem; max-width: 32rem; }

/* the 4-week view names its months: a band above the dates, a line where a month starts, and the month on its first day */
.weeks tr.monthrow th.monthcell { text-align: left; padding: .35rem .6rem; font-size: .85rem; font-weight: 700; white-space: nowrap;
  border-left: 1px solid var(--muted); }
.weeks tr.monthrow th.monthcell.m0 { background: var(--month-a); }
.weeks tr.monthrow th.monthcell.m1 { background: var(--month-b); }
.weeks td.monthstart, .weeks th.daycol.monthstart { border-left: 1px solid var(--muted); }
.timeline[data-zoom="month"] .weeks th.daycol.monthstart .mon { display: block; font-weight: 700; color: var(--ink); }

/* sign-up checks, the footer, the legal pages */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
label.check { display: flex; align-items: flex-start; gap: .6rem; font-weight: 400; }
label.check input { margin-top: .25rem; width: auto; }
.site-footer { margin: 3rem auto 2rem; padding: 1rem 1.25rem 0; max-width: 72rem; border-top: 1px solid var(--rule); color: var(--muted);
  display: flex; gap: 1.2rem; flex-wrap: wrap; font-size: .85rem; }
.site-footer a { color: var(--muted); }
.legal { max-width: 46rem; }
.legal h2 { margin-top: 1.6rem; font-size: 1.1rem; }
.legal li { margin: .3rem 0; }

/* the site admin */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .8rem; margin: 1rem 0 1.5rem; }
.stats .card { display: flex; flex-direction: column; gap: .2rem; padding: .9rem 1rem; }
.stats strong { font-size: 1.7rem; }
.stats span { color: var(--muted); font-size: .9rem; }
.inline-small.warn { color: var(--danger); }
