:root { --bg: #fbfaf7; --ink: #222; --muted: #777; --line: #e5e1d8; --members: #2f6fb0; --team: #8a5a00; --announcements: #7a2e8a; }
* { box-sizing: border-box; }
body { margin: 0; font: 14px/1.45 -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; color: var(--ink); background: var(--bg); }
header { position: sticky; top: 0; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; padding: 10px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
h1 { margin: 0; font-size: 18px; }
.controls { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
button, input { font: inherit; }
.lane { margin-left: 8px; }
/* What people did. A row of its own under the controls, so all seven fit on one line at any width the column takes. */
.actions { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: center; font-size: 12px; color: var(--muted); }
.action { white-space: nowrap; }
.action input { margin-right: 2px; vertical-align: -1px; }
main { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; }
nav#calendar { position: sticky; top: 56px; max-height: calc(100vh - 56px); overflow-y: auto; padding: 8px 12px; border-right: 1px solid var(--line); }
.month h3 { margin: 10px 0 4px; font-size: 12px; color: var(--muted); }
.days { display: flex; flex-wrap: wrap; gap: 3px; }
.day { width: 26px; height: 22px; padding: 0; font-size: 11px; cursor: pointer; border: 1px solid var(--line); border-radius: 3px; background: rgba(47, 111, 176, calc(0.08 + var(--heat, 0) * 0.6)); }
.day.selected { outline: 2px solid var(--ink); }
section#day { max-width: 900px; padding: 12px 20px 40px; }
h2 { margin: 4px 0 12px; font-size: 16px; }
.item { display: grid; grid-template-columns: 84px 1fr; gap: 10px; padding: 8px 0 8px 8px; border-bottom: 1px solid var(--line); border-left: 3px solid transparent; }
.item.lane-members { border-left-color: var(--members); }
.item.lane-team { border-left-color: var(--team); }
.item.lane-announcements { border-left-color: var(--announcements); }
time { color: var(--muted); font-variant-numeric: tabular-nums; }
.title { font-weight: 600; }
.note { font-size: 12px; color: var(--muted); }
pre { max-height: 360px; overflow: auto; padding: 8px; font: inherit; white-space: pre-wrap; background: #fff; border: 1px solid var(--line); }
.empty { color: var(--muted); }
@media (max-width: 700px) {
  main { grid-template-columns: 1fr; }
  nav#calendar { position: static; max-height: 220px; border-right: 0; border-bottom: 1px solid var(--line); }
}
a { color: inherit; text-decoration: none; border-bottom: 1px dotted var(--muted); }
a:hover { color: var(--members); border-bottom-color: currentColor; }
.line .type { color: var(--muted); }
/* A member, the way the site's own friends box shows one: their picture, then their first name. */
.who { white-space: nowrap; }
.avatar { width: 20px; height: 20px; margin-right: 3px; vertical-align: -6px; object-fit: cover; border-radius: 2px; background: var(--line); }
.about { font-size: 12px; color: var(--muted); }
#search { min-width: 12em; }
#filterbar { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
#filterbar[hidden] { display: none; }
.filter-about { font-size: 12px; color: var(--muted); }
.filter-open { font-size: 12px; }
.title .open-page { margin-left: 2px; font-size: 12px; font-weight: normal; color: var(--muted); white-space: nowrap; }
.chip { display: inline-flex; gap: 6px; align-items: center; padding: 2px 4px 2px 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.chip .clear { border: 0; background: none; cursor: pointer; font-size: 13px; }
.feed-day { margin: 18px 0 4px; font-size: 13px; scroll-margin-top: 96px; }
.more { margin: 16px 0; }
button:disabled { opacity: 0.4; }
/* Embedded as the live shell's feed column (index.html?embed=1): the shell's clock replaces the day controls and the
   calendar, and the ticker fills the column. */
#rate { display: none; }
.embed header { padding: 6px 10px; gap: 6px 10px; }
.embed h1, .embed #prev, .embed #play, .embed #next, .embed #date, .embed nav#calendar { display: none; }
.embed .controls { flex: 1 1 auto; }
.embed #search { flex: 1 1 8em; min-width: 0; }
.embed .lane { margin-left: 4px; font-size: 12px; }
.embed main { display: block; }
.embed section#day { max-width: none; padding: 8px 10px 40px; }
/* How often the next activity arrives. Personal, so it sits with the column it paces, not with the shared clock. */
.embed #rate { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.embed #rate select { font-size: 12px; }
.embed .rate-label { white-space: nowrap; }
/* The ticker's time column carries the date too: consecutive reveals can be months apart. */
.embed .item { grid-template-columns: 72px 1fr auto; gap: 6px; }
.embed time { display: flex; flex-direction: column; line-height: 1.25; }
.embed time .on { font-size: 11px; }
.embed time .at { font-variant-numeric: tabular-nums; }
.embed .open { align-self: start; padding: 0 5px; font-size: 13px; line-height: 20px; cursor: pointer; background: #fff; border: 1px solid var(--line); border-radius: 3px; }
.embed .open:hover { color: var(--members); border-color: var(--members); }
