Skip to content

One live console to monitor Claude Code and Codex agents across machines, track context and spend, and unblock sessions that need you.

3.2 KB
Raw Blame
/* The Graph layout. model.ts sizes labels at the type set here: names --t-sm 600 on 20 px lines, second lines
   --t-xs on 18 px. The drawing fills its container (at least 520 px); the zoom controls sit in its top right corner. Lines keep
   their width at every zoom. */
.graph {
  --station-fill: var(--sheet);
  position: relative;
  height: 100%;
  min-height: 520px;
}
.graph-svg {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  font-family: var(--font-ui);
  background: var(--sheet);
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.graph-svg:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: -2px;
}
.graph-zoom {
  position: absolute;
  top: var(--s2);
  right: var(--s2);
  display: flex;
  align-items: center;
  gap: var(--s1);
  background: var(--sheet);
}
.graph-zoom .ui-button {
  min-width: 32px;
  padding: 0 var(--s2);
}
.graph-pct {
  min-width: 4ch;
  font: var(--t-xs) / var(--lh-xs) var(--font-mono);
  text-align: center;
  color: var(--muted);
}

/* Lines neutral (state is on the nodes), a working child's darker; messages its faint dots. */
.ge,
.gm {
  fill: none;
  vector-effect: non-scaling-stroke;
  stroke: var(--control);
  stroke-width: 1.5;
}
.ge.is-on {
  stroke: var(--ink-2);
}
.gm {
  stroke: var(--muted);
  stroke-width: 1;
  stroke-dasharray: 2 5;
  opacity: 0.55;
}

/* A loop's disc is filled by its state (stationColor) with its glyph cut in the ground; the amber disc and its bars take
   --on-held's ink, as the needs-you mark does. The centre, hubs and folds are rings of the ground. */
.gn {
  cursor: pointer;
  outline: none;
}
.gn-centre,
.gn-quiet {
  cursor: inherit;
}
.gn-centre circle,
.gn-hub,
.gn-fold {
  fill: var(--sheet);
  stroke: var(--ink-2);
  stroke-width: 1.5;
}
.gn-centre circle {
  stroke-width: 2;
}
.gn-fold {
  stroke: var(--done);
}
.gn-disc.is-held,
.gn-glyph .is-held {
  stroke: var(--on-held);
  stroke-width: 1.5;
}
.gn-glyph,
.gn-fold-sign {
  fill: none;
  stroke: var(--station-fill);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.gn-glyph .is-hole {
  fill: var(--station-fill);
  stroke: none;
}
.gn-fold-sign {
  stroke: var(--ink-2);
}
.gn-clash {
  fill: var(--ink);
  stroke: var(--sheet);
  stroke-width: 1.5;
}
.gn-ring {
  fill: none;
}
.gn:hover .gn-ring {
  stroke: var(--control);
  stroke-width: 1.5;
}
.gn.is-picked .gn-ring,
.gn:focus-visible .gn-ring {
  stroke: var(--ink);
  stroke-width: 2;
}
.gn:focus-visible .gn-ring {
  stroke-dasharray: 3 2;
}

/* A label's knockout: .gn-knock lays the ground behind each line as wide as the layout's estimate of it (GraphLayout Label),
   and a halo of the ground 3 px round each letter on top covers what a font draws past the estimate; a line shows up to
   them. Logos in one ink. */
.gn-knock {
  fill: var(--sheet);
}
.gn-name,
.gn-sub {
  paint-order: stroke;
  stroke: var(--sheet);
  stroke-width: 6px;
  stroke-linejoin: round;
  font-size: var(--t-xs);
  fill: var(--muted);
}
.gn-name {
  font-size: var(--t-sm);
  font-weight: 600;
  fill: var(--ink);
}
.gn-logo {
  color: var(--muted);
}
.gn-hub + .gn-logo {
  color: var(--ink-2);
}
.gn-logo > svg.i {
  width: 100%;
  height: 100%;
}