/* todo.css — v07zz221 — "Needs attention" inbox, mockup-matched */
/* v07zz225 — the page already sits inside the standard .view-page cream panel
   (same as every other menu). Don't paint a SECOND, differently-shaded solid
   card on top — just lay out the content. Matches Shots/Crew/Media placement. */
.todo-v2 {
  display: flex; flex-direction: column; gap: 18px;
}
.todo-head { display: flex; flex-direction: column; gap: 4px; }
.todo-eyebrow { font-size: var(--fs-11); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-muted); font-weight: var(--fw-bold); }
.todo-title { font-family: var(--font-display); font-size: var(--fs-44); line-height: 0.95; color: var(--ink, var(--ink-umber)); letter-spacing: var(--track-01); }
.todo-subtitle { font-size: var(--fs-13); color: var(--ink-muted); }

/* summary cards */
.todo-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 1100px) { .todo-summary { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .todo-summary { grid-template-columns: 1fr; } }
.todo-stat { display: flex; align-items: center; gap: 13px; background: color-mix(in srgb, var(--mix-light) 42%, transparent); border: 1px solid color-mix(in srgb, var(--card-border) 38%, transparent); border-radius: 13px; padding: 14px 16px; }
.todo-stat-ico { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.todo-stat--note .todo-stat-ico { background: color-mix(in srgb, var(--gold-8) 16%, transparent); color: var(--gold-7); }
.todo-stat--review .todo-stat-ico { background: color-mix(in srgb, var(--blue-15) 16%, transparent); color: var(--ink-blue-14); }
.todo-stat--gen .todo-stat-ico { background: color-mix(in srgb, var(--red-20) 15%, transparent); color: var(--danger-2); }
.todo-stat--ready .todo-stat-ico { background: color-mix(in srgb, var(--olive) 18%, transparent); color: var(--ink-moss); }
/* v07zz224 — clickable "Ready to generate" card reveals its list */
.todo-stat-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.todo-stat--clickable { cursor: pointer; transition: border-color var(--dur-1) ease, background var(--dur-1) ease, box-shadow var(--dur-1) ease; }
.todo-stat--clickable:hover { border-color: color-mix(in srgb, var(--olive) 60%, transparent); background: color-mix(in srgb, var(--mix-light) 60%, transparent); }
.todo-stat--clickable:focus-visible { outline: var(--ring-w) solid color-mix(in srgb, var(--olive) 55%, transparent); outline-offset: var(--ring-offset); }
.todo-stat.is-active { border-color: var(--leaf, var(--moss)); background: color-mix(in srgb, var(--olive) 12%, transparent); box-shadow: inset 0 0 0 var(--hairline-w) color-mix(in srgb, var(--olive) 35%, transparent); }
.todo-stat-chev { margin-left: auto; align-self: center; font-size: var(--fs-11); font-weight: var(--fw-bold); letter-spacing: var(--track-04); text-transform: uppercase; color: var(--ink-moss); background: color-mix(in srgb, var(--olive) 14%, transparent); border-radius: var(--r-7); padding: 4px 9px; white-space: nowrap; }
.todo-stat.is-active .todo-stat-chev { background: var(--leaf, var(--moss)); color: var(--ink-cream); }
.todo-stat-num { font-family: var(--font-display); font-size: var(--fs-32); line-height: 1; color: var(--ink, var(--ink-umber)); }
.todo-stat-label { font-size: var(--fs-10); letter-spacing: var(--track-08); text-transform: uppercase; color: var(--ink-muted); font-weight: var(--fw-bold); margin-top: 2px; }

.todo-empty { font-size: var(--fs-14); color: var(--ink-muted); font-style: italic; padding: 36px 12px; text-align: center; }

/* list rows */
.todo-list { display: flex; flex-direction: column; }
.todo-row {
  display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 16px;
  padding: 16px 4px; border-top: 1px solid color-mix(in srgb, var(--ink-muted) 14%, transparent); cursor: pointer;
  transition: background var(--dur-1) ease;
}
.todo-row:first-child { border-top: 0; }
.todo-row:hover { background: color-mix(in srgb, var(--mix-light) 45%, transparent); }
.todo-row-thumb {
  width: 56px; height: 56px; flex: 0 0 56px; border-radius: 11px; overflow: hidden;
  background-size: cover; background-position: center; background-color: color-mix(in srgb, var(--card-border) 46%, var(--mix-light));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 2px color-mix(in srgb, var(--shadow-ink) 8%, transparent);
}
.todo-row-thumb--note { background: color-mix(in srgb, var(--gold-8) 16%, transparent); color: var(--gold-7); }
.todo-row-thumb--review { background: color-mix(in srgb, var(--blue-15) 16%, transparent); color: var(--ink-blue-14); }
.todo-row-thumb--gen { background: color-mix(in srgb, var(--red-20) 15%, transparent); color: var(--danger-2); }
.todo-row-thumb.has-img { background-color: transparent; }
.todo-row-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.todo-row-type { font-size: var(--fs-10); letter-spacing: var(--track-10); text-transform: uppercase; font-weight: var(--fw-bold); }
.todo-row-type--note { color: var(--gold-7); }
.todo-row-type--review { color: var(--ink-blue-14); }
.todo-row-type--gen { color: var(--danger-2); }
.todo-row-type--ready { color: var(--ink-moss); }
/* v07zz224 — ready-to-generate list (revealed by the card) */
.todo-row-thumb--ready { background: color-mix(in srgb, var(--olive) 18%, transparent); color: var(--ink-moss); }
.todo-ready-head { font-size: var(--fs-13); color: var(--ink-muted); padding: 4px 4px 12px; }
/* v07zz226 — active-filter bar above the focused list */
.todo-filterbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 4px 12px; font-size: var(--fs-13); color: var(--ink-muted); }
.todo-filterbar b { color: var(--ink); font-weight: var(--fw-bold); }
.todo-filter-clear { font: inherit; font-size: var(--fs-12-5); font-weight: var(--fw-semi); color: var(--ink-moss); background: color-mix(in srgb, var(--olive) 12%, transparent); border: 0; border-radius: var(--r-sm); padding: 5px 12px; cursor: pointer; white-space: nowrap; }
.todo-filter-clear:hover { background: color-mix(in srgb, var(--olive) 22%, transparent); }
.todo-row-title { font-size: 14.5px; font-weight: var(--fw-bold); color: var(--ink, var(--ink-umber)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.todo-row-sub { font-size: var(--fs-13); line-height: 1.4; color: var(--ink-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.todo-row-meta { display: flex; align-items: center; gap: 10px; font-size: var(--fs-11); color: var(--ink-soft); margin-top: 1px; }
.todo-link-btn { font: inherit; font-size: var(--fs-11); font-weight: var(--fw-semi); color: var(--ink-soft); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; align-self: flex-start; }
.todo-link-btn:hover { color: var(--ink); }
.todo-error-detail { margin: 6px 0 2px; padding: 9px 11px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--shadow-ink) 6%, transparent); border: 1px solid var(--card-border); font-family: var(--font-mono); font-size: var(--fs-11); line-height: 1.5; color: var(--ink-muted); white-space: pre-wrap; word-break: break-word; max-height: 220px; overflow: auto; cursor: text; }
.todo-row-actions { flex: 0 0 auto; display: flex; gap: 9px; align-items: center; }
.todo-btn { font: inherit; font-size: var(--fs-12-5); font-weight: var(--fw-semi); padding: 8px 16px; border-radius: var(--r-9); border: 1px solid var(--card-border); background: color-mix(in srgb, var(--mix-light) 60%, transparent); color: var(--ink); cursor: pointer; white-space: nowrap; transition: background var(--dur-1) ease, border-color var(--dur-1) ease, filter var(--dur-1) ease; }
.todo-btn:hover { background: var(--mix-light); border-color: color-mix(in srgb, var(--card-border) 80%, transparent); }
.todo-btn--primary { background: var(--leaf, var(--moss)); border-color: var(--leaf, var(--moss)); color: var(--ink-cream); }
.todo-btn--primary:hover { filter: brightness(1.08); background: var(--leaf, var(--moss)); }
/* v07zz224 — subtle "Discard" button for failed generations */
.todo-btn--ghost { background: transparent; border-color: color-mix(in srgb, var(--ink-muted) 32%, transparent); color: var(--ink-muted); }
.todo-btn--ghost:hover { background: color-mix(in srgb, var(--danger-2) 10%, transparent); border-color: color-mix(in srgb, var(--danger-2) 50%, transparent); color: var(--danger-2); }
.todo-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.todo-caughtup { font-size: var(--fs-12-5); color: var(--ink-muted); text-align: center; padding: 18px 0 4px; border-top: 1px solid color-mix(in srgb, var(--ink-muted) 14%, transparent); margin-top: 4px; }

/* ── Global video-review modal (To-Do "Open in review" overlay) ── */
.grm-backdrop { position: fixed; inset: 0; z-index: var(--z-menu-backdrop); background: color-mix(in srgb, var(--shade-39) 55%, transparent); backdrop-filter: blur(var(--blur-scrim-3)); display: flex; align-items: center; justify-content: center; padding: 30px; animation: grmFade var(--dur-2) ease; }
@keyframes grmFade { from { opacity: 0; } to { opacity: 1; } }
.grm-modal { width: 100%; max-width: 880px; max-height: 90vh; overflow-y: auto; background: var(--card-bg-solid, var(--card-bg-light-solid)); border: 1px solid color-mix(in srgb, var(--card-border) 50%, transparent); border-radius: 16px; padding: 22px 24px; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.4); display: flex; flex-direction: column; gap: 14px; }
.grm-close { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--card-border); background: color-mix(in srgb, var(--mix-light) 60%, transparent); color: var(--ink); font-size: var(--fs-18); line-height: 1; cursor: pointer; }
.grm-close:hover { background: var(--mix-light); }
.grm-head { display: flex; flex-direction: column; gap: 2px; padding-right: 36px; }
.grm-eyebrow { font-size: var(--fs-10); letter-spacing: var(--track-18); text-transform: uppercase; color: var(--ink-muted); font-weight: var(--fw-bold); }
.grm-title { font-family: var(--font-display); font-size: var(--fs-26); line-height: 1; color: var(--ink, var(--ink-umber)); }
.grm-video-wrap { width: 100%; aspect-ratio: 16/9; border-radius: var(--r-md); overflow: hidden; background: var(--shade-49); }
.grm-video { width: 100%; height: 100%; object-fit: contain; background: var(--shade-49); display: block; }
.grm-video-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: color-mix(in srgb, var(--ink-cream-7) 60%, transparent); font-size: var(--fs-13); }
.grm-comments { display: flex; flex-direction: column; gap: 8px; max-height: 30vh; overflow-y: auto; }
.grm-empty { font-size: var(--fs-13); color: var(--ink-muted); padding: 8px 2px; }
.grm-comment { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; padding: 9px 11px; border-radius: var(--r-panel); background: color-mix(in srgb, var(--mix-light) 42%, transparent); border: 1px solid color-mix(in srgb, var(--card-border) 32%, transparent); }
.grm-comment.is-resolved { opacity: 0.5; }
.grm-seek { font: inherit; font-family: var(--font-mono); font-size: var(--fs-11); font-weight: var(--fw-bold); color: var(--ink-blue-14); background: color-mix(in srgb, var(--blue-15) 14%, transparent); border: 0; border-radius: var(--r-xs); padding: 4px 8px; cursor: pointer; }
.grm-seek:hover { background: color-mix(in srgb, var(--blue-15) 26%, transparent); }
.grm-comment-body { min-width: 0; }
.grm-comment-text { font-size: var(--fs-13); color: var(--ink); }
.grm-comment-meta { font-size: var(--fs-11); color: var(--ink-soft); }
.grm-resolve { font: inherit; font-size: var(--fs-12); font-weight: var(--fw-semi); padding: 6px 13px; border-radius: var(--r-sm); border: 0; background: var(--leaf, var(--moss)); color: var(--ink-cream); cursor: pointer; }
.grm-resolve:hover { filter: brightness(1.08); }
.grm-resolve:disabled { opacity: 0.5; cursor: not-allowed; }
.grm-foot { display: flex; justify-content: flex-end; border-top: 1px solid color-mix(in srgb, var(--ink-muted) 16%, transparent); padding-top: 12px; }
.grm-openfull { font: inherit; font-size: var(--fs-12); font-weight: var(--fw-semi); color: var(--olive); background: none; border: 0; cursor: pointer; }
.grm-openfull:hover { text-decoration: underline; }

/* ── v07zz240 — Milestone readiness panel ("what's left for the next milestone") ── */
.todo-milestone {
  background: color-mix(in srgb, var(--mix-light) 42%, transparent); border: 1px solid color-mix(in srgb, var(--card-border) 38%, transparent); border-radius: 13px;
  padding: 16px 18px; display: flex; flex-direction: column; gap: 14px;
}
.todo-ms-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.todo-ms-headl { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.todo-ms-eyebrow { font-size: var(--fs-10); letter-spacing: var(--track-16); text-transform: uppercase; color: var(--ink-muted); font-weight: var(--fw-bold); }
.todo-ms-title { font-family: var(--font-display); font-size: var(--fs-26); line-height: 1; color: var(--ink, var(--ink-umber)); }
.todo-ms-date { font-size: var(--fs-12-5); color: var(--ink-muted); margin-top: 2px; }
.todo-ms-date.is-urgent .todo-ms-days { color: var(--danger-2); font-weight: var(--fw-bold); }
.todo-ms-headr { text-align: right; flex: 0 0 auto; }
.todo-ms-bignum { font-family: var(--font-display); font-size: var(--fs-34); line-height: 1; color: var(--ink, var(--ink-umber)); }
.todo-ms-bignum span { font-size: var(--fs-20); color: var(--ink-muted); }
.todo-ms-bigcap { font-size: var(--fs-10); letter-spacing: var(--track-06); text-transform: uppercase; color: var(--ink-muted); font-weight: var(--fw-bold); margin-top: 2px; }
.todo-ms-bar { display: flex; height: 12px; border-radius: var(--r-7); overflow: hidden; background: color-mix(in srgb, var(--ink-muted) 14%, transparent); }
.todo-ms-bar-seg { height: 100%; }
.todo-ms-bar-seg + .todo-ms-bar-seg { box-shadow: inset 1px 0 0 rgba(255,255,255,0.4); }
.todo-ms-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.todo-ms-chip { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-12); color: var(--ink-muted); }
.todo-ms-chip b { color: var(--ink, var(--ink-umber)); font-weight: var(--fw-heavy); }
.todo-ms-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.todo-ms-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 760px) { .todo-ms-cats { grid-template-columns: repeat(2, 1fr); } }
.todo-ms-cat { display: flex; flex-direction: column; gap: 5px; }
.todo-ms-cat-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.todo-ms-cat-name { font-size: var(--fs-11); font-weight: var(--fw-bold); letter-spacing: var(--track-04); text-transform: uppercase; color: var(--ink-muted); }
.todo-ms-cat-num { font-size: var(--fs-13); font-weight: var(--fw-heavy); color: var(--ink, var(--ink-umber)); }
.todo-ms-cat-num i { font-style: normal; font-weight: var(--fw-semi); color: var(--ink-muted); }
.todo-ms-cat-bar { height: 6px; border-radius: 4px; overflow: hidden; background: color-mix(in srgb, var(--ink-muted) 16%, transparent); }
.todo-ms-cat-bar > span { display: block; height: 100%; background: color-mix(in srgb, var(--olive-4) 92%, var(--mix-light)); border-radius: 4px; transition: width 200ms ease; }
.todo-ms-left { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid color-mix(in srgb, var(--ink-muted) 14%, transparent); padding-top: 12px; }
.todo-ms-left-cap { font-size: var(--fs-10); letter-spacing: var(--track-08); text-transform: uppercase; color: var(--ink-muted); font-weight: var(--fw-bold); }
.todo-ms-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.todo-ms-leftchip {
  display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: var(--fs-12); font-weight: var(--fw-semi);
  color: var(--ink, var(--ink-umber)); background: color-mix(in srgb, var(--mix-light) 55%, transparent); border: 1px solid color-mix(in srgb, var(--card-border) 45%, transparent);
  border-radius: var(--r-round); padding: 5px 11px 5px 9px; cursor: pointer; transition: border-color var(--dur-1) ease, background var(--dur-1) ease;
}
.todo-ms-leftchip:hover { border-color: color-mix(in srgb, var(--olive) 70%, transparent); background: var(--mix-light); }

/* ── GlobalReviewModal, v1012 ───────────────────────────────────────────────
   The popup now carries the Review page's own transport (the .review-toolbar
   classes are global, so they drop straight in) instead of the browser's native
   controls, which sat on top of the burned-in shot number along the bottom of
   the frame. Notes are threaded, colour-coded by author, and scoped to one shot
   when the popup was opened from that shot's note. */
.grm-modal { max-width: 940px; }
.grm-stage {
  width: 100%;
  border-radius: var(--r-md);
  aspect-ratio: 16 / 9;      /* default until metadata gives the real one */
  max-height: 46vh;          /* leave room for the notes under it */
  margin: 0 auto;
}
.grm-toolbar { margin-top: -2px; }
/* the native-controls wrapper is gone; keep the placeholder looking the same */
.grm-video-ph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: color-mix(in srgb, var(--ink-cream-7) 60%, transparent); font-size: var(--fs-13);
}

/* which notes am I looking at */
.grm-scope { display: flex; align-items: center; gap: 7px; min-height: 30px; }
.grm-scope-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-size: var(--fs-11-5); font-weight: var(--fw-semi);
  color: var(--ink-muted);
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--ink-muted) 28%, transparent);
  border-radius: var(--r-round);
  padding: 4px 12px;
  cursor: pointer;
  transition: color var(--dur-1) ease, border-color var(--dur-1) ease, background var(--dur-1) ease;
}
.grm-scope-btn:hover { color: var(--ink); border-color: var(--ink-muted); }
.grm-scope-btn.is-on {
  color: var(--ink-forest-3);
  border-color: color-mix(in srgb, var(--olive) 55%, transparent);
  background: color-mix(in srgb, var(--olive) 16%, transparent);
}
.grm-scope-n {
  min-width: 2ch; text-align: right;
  font-family: var(--font-mono);
  font-size: var(--fs-10-5); font-variant-numeric: tabular-nums; opacity: 0.75;
}
.grm-scope-note { font-size: var(--fs-11); color: var(--ink-soft); }

/* the threaded note list */
.grm-notes {
  list-style: none; margin: 0; padding: 4px 6px;   /* v1072 — room for the lit note's ring + glow */
  display: flex; flex-direction: column; gap: 8px;
  max-height: 34vh; overflow-y: auto;
}
.grm-empty { font-size: var(--fs-13); color: var(--ink-muted); padding: 8px 2px; }
.grm-note {
  display: grid; grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px; align-items: start;
  padding: 9px 11px;
  border-radius: var(--r-panel);
  background: color-mix(in srgb, var(--mix-light) 42%, transparent);
  border: 1px solid color-mix(in srgb, var(--card-border) 32%, transparent);
}
.grm-note.is-resolved { opacity: 0.55; }
.grm-note.is-focus { border-color: var(--gold-13); box-shadow: 0 0 0 var(--ring-w) color-mix(in srgb, var(--gold-13) 35%, transparent); }
/* v1074 — the note under the playhead (lit until the next note starts), refined after
   Hugo: "still too thick, and the non highlight part of the note is too dark ... the
   highlights doesnt seem to follow any light direction". ONE light, from the top-left:
   - ::before = a 1px gold ring laid exactly over the 1px border: light gold along the top,
     deepening a little towards the bottom (the side that faces away from the light), with
     one small white glint where the light strikes the top edge near the left;
   - ::after  = a light gold wash, brightest at the top, with a fine white bevel line just
     inside the top edge; it sits behind the text (isolation + z-index -1);
   - outside  = a soft warm glow and a faint shadow below.
   Both layers fade (opacity), the border stays 1px, so nothing moves. */
.grm-note {
  position: relative;
  isolation: isolate;               /* keeps the wash (z-index -1) inside this card */
  transition: background 200ms ease, border-color 200ms ease, box-shadow var(--dur-4) ease;
}
.grm-note::before {
  content: "";
  position: absolute;
  inset: -1px;                      /* exactly over the 1px border */
  border-radius: inherit;
  padding: 1px;                     /* ring width */
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  background:
    radial-gradient(60px 6px at 22% 0, var(--mix-light) 0%, color-mix(in srgb, var(--mix-light) 0%, transparent) 100%),
    linear-gradient(180deg, color-mix(in srgb, var(--gold-10) 71%, var(--mix-light)) 0%, color-mix(in srgb, var(--gold-14) 87%, var(--mix-light)) 55%, color-mix(in srgb, var(--gold) 90%, var(--mix-dark)) 100%);
  opacity: 0;
  transition: opacity var(--dur-5) ease;
  pointer-events: none;
}
.grm-note::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: -1;
  background: linear-gradient(180deg, color-mix(in srgb, color-mix(in srgb, var(--hi-2) 58%, var(--mix-light)) 98%, transparent), color-mix(in srgb, color-mix(in srgb, var(--hi-3) 89%, var(--mix-light)) 96%, transparent));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  opacity: 0;
  transition: opacity var(--dur-5) ease;
  pointer-events: none;
}
.grm-note.is-current {
  border-color: transparent;
  box-shadow: 0 0 8px color-mix(in srgb, color-mix(in srgb, var(--gold-3) 92%, var(--mix-dark)) 16%, transparent), 0 1px 2px color-mix(in srgb, color-mix(in srgb, var(--tan-deep) 87%, var(--mix-dark)) 8%, transparent);
}
.grm-note.is-current::before,
.grm-note.is-current::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .grm-note::before, .grm-note::after { transition: none; }
}
/* author colour: the same hash the Review page uses for its comment avatars */
.grm-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: var(--fs-10); font-weight: var(--fw-bold); letter-spacing: var(--track-04);
  color: var(--ink-cream);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.grm-note-body { min-width: 0; }
.grm-note-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  min-height: 20px; margin-bottom: 3px;
  font-size: var(--fs-11); color: var(--ink-soft);
}
.grm-note-author { font-weight: var(--fw-bold); color: var(--ink); }
.grm-shot {
  font: inherit;
  font-family: var(--font-mono);
  font-size: var(--fs-10-5); font-weight: var(--fw-bold);
  color: var(--ink-forest-3);
  background: color-mix(in srgb, var(--olive) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--olive) 45%, transparent);
  border-radius: var(--r-round); padding: 1px 8px; cursor: pointer;
}
.grm-shot:hover { background: color-mix(in srgb, var(--olive) 28%, transparent); }
.grm-note-tag {
  font-size: var(--fs-9-5); font-weight: var(--fw-bold); letter-spacing: var(--track-10); text-transform: uppercase;
  color: var(--ink-forest-3); border: 1px solid color-mix(in srgb, var(--olive) 45%, transparent);
  border-radius: var(--r-round); padding: 1px 7px;
}
.grm-note-text { font-size: var(--fs-13); line-height: 1.45; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.grm-note-actions { display: flex; gap: 7px; margin-top: 6px; min-height: 22px; }
.grm-act {
  font: inherit; font-size: var(--fs-11); font-weight: var(--fw-semi);
  color: var(--ink-muted);
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--ink-muted) 28%, transparent);
  border-radius: var(--r-7); padding: 3px 10px; cursor: pointer;
  transition: color var(--dur-1) ease, border-color var(--dur-1) ease, background var(--dur-1) ease;
}
.grm-act:hover:not(:disabled) { color: var(--ink); border-color: var(--ink-muted); }
.grm-act:disabled { opacity: 0.45; cursor: default; }
.grm-act--resolve { color: var(--ink-forest-3); border-color: color-mix(in srgb, var(--olive) 50%, transparent); }
.grm-act--resolve:hover:not(:disabled) { background: color-mix(in srgb, var(--olive) 16%, transparent); color: var(--ink-forest-3); }

/* replies sit indented under their parent, on a rail */
.grm-thread { list-style: none; padding-left: 22px; border-left: 2px solid color-mix(in srgb, var(--ink-muted) 18%, transparent); margin-left: 14px; }
.grm-replies { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.grm-note.is-reply { background: color-mix(in srgb, var(--mix-light) 26%, transparent); padding: 7px 10px; }
.grm-note.is-reply .grm-avatar { width: 24px; height: 24px; font-size: var(--fs-9); }
.grm-note.is-reply { grid-template-columns: 24px minmax(0, 1fr); }

.grm-reply-form { display: flex; flex-direction: column; gap: 7px; padding: 8px 0; }
.grm-reply-input {
  font: inherit; font-size: var(--fs-13);
  color: var(--ink);
  background: color-mix(in srgb, var(--cream-12) 90%, transparent);
  border: 1px solid color-mix(in srgb, var(--card-border) 55%, transparent);
  border-radius: var(--r-9); padding: 8px 10px; resize: vertical;
}
.grm-reply-actions { display: flex; justify-content: flex-end; gap: 7px; }

/* v1024 — follow-the-playhead toggle in the popup's scope row. */
.grm-follow { margin-left: auto; }
