/* SOGpt canvas — nodes, ports and edges

   This file owns the canvas layer outright. It used to live in styles.css as
   three stacked patch rounds, so .canvas-node, .port and .node-head were each
   defined two or three times and every change had to out-specify the last one.
   The 151 rules were lifted out and merged here, one definition apiece.

   The rule the layer now follows: the canvas draws the work, not the UI.

   - One border colour for all six node types. Which type a node is shows in its
     icon and its port dots, not in the most expensive place on screen.
   - One accent (the SOG teal in --gold) and it means one thing: selection.
     Amber / green / red stay, but only as run status.
   - Glow is feedback, not decoration. Ports are flat until you can connect one.
   - Edges are structure, so they sit back: one thin white hairline, the way
     Figma Weave draws them. Reference edges stay dashed, which is a difference
     in shape rather than another colour.

   Loaded after styles.css. Sizes match app.js: NODE_WIDTH is 340 and portY()
   returns fixed offsets, so widths and the port geometry are not moved here. */

:root {
  --canvas-ground: #121212;
  --canvas-dot: rgba(200,200,200, .12);
  --canvas-card: #1d2021;
  --canvas-line: #383d3e;
  --canvas-line-hover: #5a6263;
  --canvas-inset: #151718;
  --canvas-ink-1: #edf0ef;
  --canvas-ink-2: #c1c7c5;
  --canvas-ink-3: #919998;
  --canvas-image: #aa95ff;
  --canvas-text: #6bc6d4;
  --canvas-mask: #ee8195;
  --canvas-result: #a991ff;
  --canvas-shadow: 0 16px 38px rgba(0, 0, 0, .24);
  --canvas-shadow-hover: 0 18px 42px rgba(0, 0, 0, .32);
}

html[data-theme="light"] {
  --canvas-ground: #eff1ee;
  --canvas-dot: rgba(79, 91, 86, .17);
  --canvas-card: #fff;
  --canvas-line: #cbd2d0;
  --canvas-line-hover: #8fa3a8;
  --canvas-inset: #f3f5f3;
  --canvas-ink-1: #34403c;
  --canvas-ink-2: #565d5a;
  --canvas-ink-3: #626b67;
  --canvas-image: #765ad1;
  --canvas-text: #177d8d;
  --canvas-mask: #bd4567;
  --canvas-result: #765ad1;
  --canvas-shadow: 0 8px 20px rgba(23, 64, 78, .09);
  --canvas-shadow-hover: 0 12px 26px rgba(23, 64, 78, .13);
}

/* -- the ground ------------------------------------------------------------
   Same dot grid as Animation Lab (its styles.css:451), so the two labs read as
   one product. Image Lab's old grid was 1px on 24px and noticeably louder. */

.canvas-stage {
  background-color: var(--canvas-ground);
  background-image: radial-gradient(circle, var(--canvas-dot) .7px, transparent .9px);
  background-size: 28px 28px;
}

/* -- the node --------------------------------------------------------------- */

.canvas-node {
  position: absolute;
  width: 340px;
  min-height: 174px;
  overflow: visible;
  border: 1px solid var(--canvas-line);
  border-radius: 15px;
  background: var(--canvas-card);
  box-shadow: var(--canvas-shadow);
  cursor: grab;
  user-select: none;
}

.canvas-node:hover {
  border-color: var(--canvas-line-hover);
  box-shadow: var(--canvas-shadow-hover);
}

.canvas-node.dragging {
  cursor: grabbing;
}

/* Type is carried by the icon and the ports. The card stays neutral. */
.canvas-node[data-node-type="input"] { --node-type: var(--canvas-image); }
.canvas-node[data-node-type="prompt"] { --node-type: var(--canvas-text); }
.canvas-node[data-node-type="reference"] { --node-type: var(--canvas-image); }
.canvas-node[data-node-type="annotation"] { --node-type: #ff7182; }
.canvas-node[data-node-type="model"] { --node-type: #a991ff; }
.canvas-node[data-node-type="outcome"] { --node-type: var(--canvas-result); }

/* Run status, not decoration. Stated before selection so that clicking a node
   that happens to be running still shows you what you have selected. */
.canvas-node.running { border-color: var(--warn); }
.canvas-node.completed { border-color: var(--ok); }
.canvas-node.blocked { border-color: var(--danger); }

/* The one accent, meaning the one thing. */
.canvas-node.selected {
  border-color: var(--gold);
  background: color-mix(in srgb, var(--gold) 6%, var(--canvas-card));
  box-shadow: 0 0 0 2px var(--gold-soft), var(--canvas-shadow-hover);
}

.canvas-node.keyboard-focus {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* While a connection is being dragged. */
.canvas-node.compatible-target { opacity: 1; }
.canvas-node.incompatible-target { opacity: .34; filter: saturate(.35); }

/* -- head ------------------------------------------------------------------
   The head floats just above the card. app.js's portY() measures from the card
   top, so this stays where it is until the LOD work moves both together. */

.node-head {
  position: absolute;
  left: 9px;
  bottom: calc(100% + 9px);
  z-index: 2;
  width: calc(100% - 18px);
  height: 27px;
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: grab;
}

.node-head:active { cursor: grabbing; }

.node-icon {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--node-type, #8a8a8a) 42%, var(--canvas-line));
  border-radius: 6px;
  background: color-mix(in srgb, var(--node-type, #8a8a8a) 18%, var(--canvas-card));
  color: var(--node-type, var(--canvas-ink-2));
  font-size: 9px;
}

/* The node type icon is drawn on the same 24 grid as everything else, but it
   renders at 12px instead of 17, so the stroke is scaled up to keep the same
   optical weight: 1.6 x (17/12). */
.node-icon svg {
  width: 12px;
  height: 12px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.12;
  stroke-linecap: butt;
  stroke-linejoin: miter;
}

.node-title { min-width: 0; }

/* A reference card is titled by its number and nothing else, so the number gets
   the size the long name used to waste. */
.canvas-node[data-node-type="reference"] .node-title strong {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.node-title strong {
  display: block;
  overflow: hidden;
  color: var(--canvas-ink-1);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.node-title small { display: none; }

.node-status {
  border: 1px solid var(--canvas-line);
  border-radius: 999px;
  background: var(--canvas-inset);
  color: var(--canvas-ink-3);
  padding: 3px 7px;
  font-size: 8px;
}

.canvas-node:not(.running):not(.completed):not(.blocked):not(.failed) .node-status {
  display: none;
}

/* -- body ------------------------------------------------------------------
   The top inset clears the first in-port label, which app.js draws inside the
   card at y = 72. Do not trim it without moving portY() too. */

.node-body {
  min-height: 174px;
  padding: 14px 18px 18px;
}

.canvas-node[data-node-type="prompt"] .node-body {
  display: flex;
  flex: 1;
  min-height: 190px;
  overflow: hidden;
  padding-top: 14px;
}

/* The four in-port labels are outside the card now, so the left inset that used
   to clear them is gone. The height still clears the lowest port at y = 192. */
.canvas-node[data-node-type="model"] .node-body {
  min-height: 218px;
  padding: 16px 18px 18px;
}

.canvas-node[data-node-type="outcome"] .node-body {
  min-height: 250px;
}

/* Image cards run their picture edge to edge on three sides. Nothing is drawn
   over the card any more, so the top inset is the same 7px as the others. */
.canvas-node[data-node-type="input"] .node-body,
.canvas-node[data-node-type="reference"] .node-body,
.canvas-node[data-node-type="annotation"] .node-body,
.canvas-node[data-node-type="outcome"] .node-body {
  padding: 7px 7px 9px;
}

/* The filename sat flush against the bottom of the picture. Give it its own line. */
.node-image + .node-note {
  margin-top: 10px;
  padding: 0 3px;
}

.node-copy {
  margin: 0;
  min-height: 96px;
  max-height: 116px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--canvas-inset);
  color: var(--canvas-ink-2);
  padding: 14px;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.node-image {
  width: 100%;
  height: auto;
  max-height: none;
  display: block;
  border-radius: 11px;
  background: var(--canvas-inset);
  object-fit: contain;
}

.canvas-node[data-node-type="outcome"] .node-image { cursor: zoom-in; }

.node-drop {
  height: 118px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--canvas-line-hover);
  border-radius: 10px;
  background: var(--canvas-inset);
  color: var(--canvas-ink-3);
  cursor: pointer;
  font-size: 11px;
  text-align: center;
}

.node-drop:hover {
  border-color: var(--gold);
  background: color-mix(in srgb, var(--gold) 5%, var(--canvas-inset));
}

.node-drop b {
  display: block;
  margin-bottom: 5px;
  color: var(--canvas-ink-1);
  font-size: 12px;
}

/* -- the prompt card scrolls its own recipe -------------------------------- */

.canvas-node[data-node-type="prompt"] {
  display: flex;
  flex-direction: column;
  height: 190px;
  min-height: 190px;
  max-height: 720px;
}

.canvas-node[data-node-type="prompt"] .node-copy {
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  overflow: auto;
  overscroll-behavior: contain;
  padding-right: 18px;
  cursor: text;
  scrollbar-width: thin;
  scrollbar-color: #5f5f5f transparent;
  user-select: text;
}

.canvas-node[data-node-type="prompt"] .node-copy:focus-visible {
  outline: 1px solid var(--gold-ring) !important;
  outline-offset: -1px;
}

.canvas-node.resizing,
.canvas-node.resizing * { cursor: ns-resize !important; }

/* -- the model card's own furniture ---------------------------------------- */

.node-model {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.provider-brand {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.provider-brand strong {
  color: var(--canvas-ink-1);
  font-size: 13px;
  line-height: 1.25;
}

.provider-brand span {
  border: 1px solid var(--canvas-line);
  border-radius: 5px;
  background: var(--canvas-inset);
  color: var(--canvas-ink-2);
  padding: 3px 5px;
  font-size: 9px;
}

.provider-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 8px;
}

.provider-meta span {
  border: 1px solid var(--canvas-line);
  border-radius: 8px;
  background: var(--canvas-inset);
  color: var(--canvas-ink-3);
  padding: 7px 8px;
  font-size: 9px;
}

.provider-meta b {
  display: block;
  margin-bottom: 1px;
  color: var(--canvas-ink-2);
  font-size: 8px;
}

/* The run button is the card's one primary action, so it carries the accent.
   It had been left on the old violet-era blue when the palette moved to teal. */
.node-action {
  width: 100%;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: var(--gold);
  color: var(--on-gold);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.node-action:hover { background: color-mix(in srgb, var(--gold) 88%, #fff); }

.node-action:disabled {
  background: var(--surface-4);
  color: var(--text-4);
  cursor: not-allowed;
}

.node-action.secondary-action {
  margin-top: 8px;
  border: 1px solid var(--canvas-line-hover);
  background: transparent;
  color: var(--canvas-ink-2);
}

.node-action.secondary-action:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--canvas-ink-1);
}

.node-action.chain-action {
  margin-top: 7px;
  background: color-mix(in srgb, var(--gold) 78%, var(--canvas-card));
}

.node-action.chain-action:hover { background: var(--gold); }

.node-note {
  margin: 0;
  color: var(--canvas-ink-3);
  font-size: 9px;
  line-height: 1.35;
}

.node-model > .node-note {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.node-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--canvas-ink-3);
  font-size: 9px;
}

.node-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #707070;
}

.node-badge.ready i { background: var(--ok); }
.node-badge.blocked i { background: var(--danger); }

/* -- ports -----------------------------------------------------------------
   A port is a compact, semantic interface rather than a permanent coloured dot.
   It sits just outside its card and appears when the card is being read, chosen
   or connected. The centre stays on --port-y, so app.js's edge endpoints are
   unchanged while the visual surface grows around that anchor. */

.port {
  position: absolute;
  top: calc(var(--port-y, 62px) - 11px);
  z-index: 3;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--canvas-line-hover) 86%, var(--canvas-ink-3));
  border-radius: 7px;
  background: color-mix(in srgb, var(--canvas-card) 92%, #000);
  color: var(--canvas-ink-1);
  box-shadow: 0 0 0 3px var(--canvas-ground), inset 0 1px 0 rgba(255,255,255,.06);
  cursor: crosshair;
  opacity: 0;
  pointer-events: none;
  transform: scale(.82);
  transition: opacity .14s ease, transform .16s var(--ease), border-color .14s ease, box-shadow .14s ease;
}

.port.in { left: -11px; }
.port.out { right: -11px; }

.port-icon { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }

.port:hover,
.connect-source .port.out {
  border-color: rgba(238,242,241,.82);
  box-shadow: 0 0 0 3px var(--canvas-ground), 0 0 0 5px rgba(238,242,241,.12), inset 0 1px 0 rgba(255,255,255,.12);
}

.canvas-node:hover .port,
.canvas-node:focus-within .port,
.canvas-node.selected .port,
.canvas-node.connect-source .port,
.canvas-node.compatible-target .port,
.port.is-compatible {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

/* Dim every input that cannot take the edge being dragged, light the one that can. */
.canvas-node.compatible-target .port.in {
  opacity: .3;
  color: var(--canvas-ink-3);
  background: var(--canvas-inset);
  box-shadow: none;
}

.canvas-node.target-image .port.in.image,
.canvas-node.target-prompt .port.in.prompt,
.canvas-node.target-reference .port.in.reference,
.canvas-node.target-annotation .port.in.annotation,
.canvas-node.target-result .port.in.result {
  opacity: 1;
  color: var(--canvas-ink-1);
  border-color: rgba(238,242,241,.82);
  box-shadow: 0 0 0 3px var(--canvas-ground), 0 0 0 5px rgba(238,242,241,.14), inset 0 1px 0 rgba(255,255,255,.12);
}

.port.drag-over {
  transform: scale(1.12);
  color: #fff;
  border-color: #fff;
  background: var(--canvas-card) !important;
  box-shadow: 0 0 0 3px var(--canvas-ground), 0 0 0 6px rgba(238,242,241,.18), inset 0 1px 0 rgba(255,255,255,.14) !important;
}

/* The pictogram carries the type. The label carries the fan-out count and only
   surfaces in the same moments as the port itself. */
.port-label {
  position: absolute;
  top: calc(var(--port-y, 62px) - 7px);
  height: 15px;
  opacity: 0;
  color: var(--canvas-ink-3);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: .04em;
  line-height: 15px;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity var(--motion-fast) var(--ease);
}

.canvas-node:hover .port-label,
.canvas-node.connect-source .port-label,
.canvas-node.compatible-target .port-label,
.port-label.is-compatible {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .port-label { transition: none; }
}

/* Outside the card, beside their port. This is the default in ELK's
   portLabels.placement, and it is what this canvas did before the labels were
   moved inside -- which is the only reason the card carried a 62px band of dead
   space across its top. With them out, the picture starts at the card edge. */
.port-label.in { right: calc(100% + 11px); left: auto; text-align: right; }
.port-label.out { left: calc(100% + 11px); right: auto; text-align: left; }

/* -- edges -----------------------------------------------------------------
   One solid white hairline for every kind. The type is stated by the semantic
   icon at each endpoint, so the connection itself stays in the background.

   non-scaling-stroke keeps the line a hairline at every zoom level, so a canvas
   zoomed out to 30% shows structure instead of a mat of thick strokes. The light
   theme uses the same line at the same weight, inverted so it stays visible. */

.edge {
  fill: none;
  stroke: rgba(238, 242, 241, .64);
  stroke-width: 1.1;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  opacity: .82;
}

.edge.image,
.edge.prompt,
.edge.reference,
.edge.annotation,
.edge.result { stroke-dasharray: none; }

/* A second, blurred copy of every edge. Under hairlines it is only smudge. */
.edge.edge-shadow { display: none; }

.edge.preview {
  stroke: rgba(238, 242, 241, .76);
  stroke-width: 1.1;
  stroke-dasharray: 7 6;
  opacity: 1;
}

/* Prompt cards keep the actual model input readable on the canvas. Recipe
   controls remain in the Inspector; the Partner is an intentional handoff to
   the existing guarded reference-and-apply flow, never an automatic render. */
.prompt-node-summary {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  gap: 10px;
}

.prompt-partner-card {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border: 1px solid rgba(107, 198, 212, .34);
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(61, 119, 124, .28), rgba(35, 51, 55, .7));
}

.prompt-partner-mark {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(137, 220, 225, .42);
  border-radius: 8px;
  background: rgba(137, 220, 225, .12);
  color: #b9eced;
  font-size: 14px;
}

.prompt-partner-card small,
.prompt-partner-card strong {
  display: block;
}

.prompt-partner-card small {
  color: #9ed6db;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
}

.prompt-partner-card strong {
  overflow: hidden;
  margin-top: 2px;
  color: var(--canvas-ink-1);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.32;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prompt-partner-card button {
  border: 1px solid rgba(152, 223, 222, .54);
  border-radius: 8px;
  background: rgba(21, 42, 45, .82);
  color: #d9f5f3;
  padding: 6px 8px;
  cursor: pointer;
  font: 700 9px/1 var(--font-ui, system-ui, sans-serif);
}

.prompt-partner-card button:hover {
  border-color: #a9eeea;
  background: rgba(49, 104, 109, .88);
}

.prompt-full-text {
  flex: 1;
  min-height: 116px;
  overflow: auto;
  border: 1px solid var(--canvas-line);
  border-radius: 11px;
  background: #141617;
  color: #d9dfdd;
  padding: 12px;
  font: 11px/1.58 var(--font-mono, ui-monospace, monospace);
  scrollbar-color: #59605f transparent;
  user-select: text;
  white-space: pre-wrap;
}

.prompt-node-summary > header,
.prompt-node-summary > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--canvas-ink-3);
  font-size: 8px;
}

.prompt-node-summary > header span,
.prompt-node-summary > footer span:first-child {
  color: #9dcfd0;
  font-weight: 750;
  letter-spacing: .06em;
}

.prompt-node-summary > header b {
  max-width: 52%;
  overflow: hidden;
  color: var(--canvas-ink-3);
  font-size: 8px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prompt-node-summary > footer span:last-child {
  text-align: right;
}

/* -- light theme -----------------------------------------------------------
   Everything above reads from the tokens at the top of this file, so only the
   few places that need a different relationship are restated here. */

html[data-theme="light"] .node-title strong {
  text-shadow: 0 1px 0 rgba(255, 255, 255, .9);
}

html[data-theme="light"] .node-copy {
  scrollbar-color: #aeb8b5 transparent;
}

html[data-theme="light"] .canvas-node[data-node-type="prompt"] .node-copy {
  scrollbar-color: #aeb8b5 transparent;
}

html[data-theme="light"] .node-icon {
  background: color-mix(in srgb, var(--node-type, #17404e) 12%, #fff);
}

html[data-theme="light"] .node-action:hover {
  background: #20586a;
}

html[data-theme="light"] .node-action.secondary-action {
  background: #fff;
}

/* The one setting that belongs on the render card itself. Segmented rather than
   a select: two options, always both visible, one tap to change. */
.render-res {
  display: flex;
  gap: 4px;
  margin-top: 10px;
}

.render-res button {
  flex: 1;
  min-height: 30px;
  border: 1px solid var(--canvas-line);
  border-radius: 8px;
  background: var(--canvas-inset);
  color: var(--canvas-ink-3);
  cursor: pointer;
  font: 600 11px/1 var(--font-ui, system-ui, sans-serif);
  letter-spacing: .04em;
  transition: border-color var(--motion-fast) var(--ease),
              background var(--motion-fast) var(--ease),
              color var(--motion-fast) var(--ease);
}

.render-res button:hover:not(.active) {
  border-color: var(--canvas-line-hover);
  color: var(--canvas-ink-1);
}

.render-res button.active {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--gold);
}

.render-res button:focus-visible {
  outline: 2px solid var(--gold-ring);
  outline-offset: 1px;
}

/* Output size on a model card. Two supported sizes make a segmented control;
   one makes a statement, because a single-option toggle reads as broken. */
.node-resolution {
  display: flex;
  gap: 2px;
  margin: 6px 0 0;
  padding: 2px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-1);
  background: var(--surface-2);
}

.node-resolution button {
  flex: 1;
  padding: 4px 0;
  border: 0;
  border-radius: calc(var(--r-1) - 2px);
  background: transparent;
  color: var(--text-3);
  font: inherit;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
  cursor: pointer;
  transition: background var(--motion-fast) var(--ease),
              color var(--motion-fast) var(--ease);
}

.node-resolution button:hover:not(:disabled):not(.is-active) { color: var(--text-1); }

.node-resolution button.is-active {
  background: var(--surface-4, var(--surface-1));
  color: var(--text-1);
}

.node-resolution button:disabled { cursor: not-allowed; opacity: .5; }

.node-resolution button:focus-visible {
  outline: 2px solid var(--gold-ring);
  outline-offset: -2px;
}

.node-resolution.single {
  display: block;
  margin: 6px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-3);
  font-size: 10px;
  letter-spacing: .06em;
}

.node-resolution.single b { color: var(--text-2); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .node-resolution button { transition: none; }
}

/* Pointer modes: selection never advertises panning. */
.canvas-stage:not(.hand-mode):not(.panning),.canvas-stage:not(.hand-mode) .canvas-node,.canvas-stage:not(.hand-mode) .node-head{cursor:default}
.canvas-stage.hand-mode,.canvas-stage.hand-mode .canvas-node,.canvas-stage.hand-mode .node-head{cursor:grab}
.canvas-stage.panning,.canvas-stage.panning .canvas-node,.canvas-stage.panning .node-head{cursor:grabbing}
.canvas-stage.connect-mode,.canvas-stage.connect-mode .canvas-node,.canvas-stage.connect-mode .node-head{cursor:crosshair}

#image-canvas-guide{width:min(620px,90vw);max-height:80vh;overflow:auto;padding:24px}#image-canvas-guide p{line-height:1.6;margin:14px 0}
