/* Live samenwerken en tijdlijn (M8). Alleen tokens; licht en donker. */
:root { --live-accent: var(--brand); }
[data-theme="dark"] { --live-accent: #8BB1C8; }

/* ---- projectkop ---- */
.live-kop {
  display: inline-flex; align-items: center; gap: 8px;
  flex: 0 0 auto; min-width: 0; margin-left: 12px;
  font-family: var(--f); font-size: 12.5px; color: var(--text-2);
}
.live-kop__wie { display: inline-flex; align-items: center; }
.live-kop__wie .live-av + .live-av { margin-left: -6px; }

.live-av {
  display: inline-grid; place-items: center; flex: 0 0 auto;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--live-accent); color: var(--surface);
  font-size: 10.5px; font-weight: 600; letter-spacing: .02em; line-height: 1;
  box-shadow: 0 0 0 2px var(--surface);
  cursor: default; user-select: none;
}
.live-av.is-bewerkt { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--amber); }
.live-av--rest { background: var(--bg-2); color: var(--text-2); }

.live-label {
  display: inline-flex; align-items: center; gap: 6px;
  max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: 2px 9px; border-radius: 999px;
  background: var(--bg-2); color: var(--text-2);
  font-size: 12px; line-height: 18px;
}
.live-label::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; flex: 0 0 auto;
  background: var(--live-accent);
}
.live-label.is-bewerkt::before { background: var(--amber); }

.live-knop {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 10px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text-2);
  font: inherit; font-size: 12.5px; cursor: pointer;
}
.live-knop:hover { border-color: var(--line-strong); color: var(--text); }
.live-knop:focus-visible { outline: 2px solid var(--live-accent); outline-offset: 2px; }
.live-knop--klein { height: 22px; padding: 0 5px; border-radius: 6px; vertical-align: middle; margin-left: 4px; border-color: transparent; background: transparent; color: var(--text-3); }
.live-knop--klein:hover { border-color: var(--line); background: var(--surface); color: var(--text); }

/* Compacte projectkop: bolletjes, het bewerklabel en het klokje. */
.pjbar--compact .live-kop .live-label { max-width: 170px; }
.pjbar--compact .live-kop .live-knop__tekst { display: none; }
.pjbar--compact .live-kop .live-knop { padding: 0 7px; }

/* ---- bij een document ---- */
.live-bij { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }

/* ---- tijdlijnpaneel (bouwt op het zijpaneel) ---- */
.live-tl__lijf { display: flex; flex-direction: column; gap: 18px; }
.live-tl__dag { display: flex; flex-direction: column; gap: 4px; }
.live-tl__dagkop {
  margin: 0 0 4px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-3);
}
.live-tl__lijst { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.live-tl__regel {
  display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: start;
  padding: 9px 0; border-bottom: 1px solid var(--line);
}
.live-tl__regel:last-child { border-bottom: 0; }
.live-av--tl { width: 28px; height: 28px; font-size: 11px; box-shadow: none; }
.live-av--tl.is-anders { background: var(--bg-2); color: var(--text-2); }
.live-tl__tekst { min-width: 0; }
.live-tl__zin { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--text); overflow-wrap: anywhere; }
.live-tl__aantal { color: var(--text-3); }
.live-tl__toel { margin: 2px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--text-3); }
.live-tl__tijd { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; padding-top: 2px; }
.live-tl__meer { align-self: flex-start; }
