/* DEC 114, 13 November 2026. Load immediately after kit.css.
   The token source owns the colours. Every declaration below changes colour only.
   Repoint material ink at the mark itself so the original inherited pen ink remains
   available to dense registers and to drawings outside these five jobs. */

/* Job 3: the impression, including its existing currentColor frames. */
.k-stamp:not(:where(.k-instrument, .k-instrument *, .k-glass, .k-glass *)) {
  --k-mat-stamp-ink: var(--color-accent-2);
  color: var(--k-mat-stamp-ink);
}

/* Job 4: written marks. The trust timeline uses k-tick for motion, not pen. */
.k-tick:not(:where(.t-run, .k-instrument, .k-instrument *, .k-glass, .k-glass *)),
.k-pen:not(:where(.k-instrument, .k-instrument *, .k-glass, .k-glass *)) {
  --k-mat-pen-ink: var(--color-accent-2-text);
  color: var(--k-mat-pen-ink);
}

/* Job 4 exception: keep the original kit ink exactly, including its warm tone.
   k-ink-pen resolves on the unchanged kit root, before the local repoint above. */
.k-register--dense { --k-mat-pen-ink: var(--k-ink-pen); }
.k-register--dense :is(.k-tick, .k-pen) { --k-mat-pen-ink: inherit; }

/* Job 5: keep the kit's existing 1.5 px outline and its offset. */
.k-selected:not(:where(.k-instrument, .k-instrument *, .k-glass, .k-glass *)) {
  outline-color: var(--color-accent-2);
}

/* Job 5 while the same outline is drawn by the existing motion script. */
:is(.k-paper, [data-object-drawing]):has(.k-selected) > .k-m-edge:not(:where(.k-instrument *, .k-glass *)) {
  background-color: var(--color-accent-2);
}
