/* Отрисовка схемы в SVG (views/index.js). Базовые стили; полное оформление видов — этап «Виды». */

.stage__view .node__shape {
  fill: var(--surface-2);
  stroke: var(--text);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.stage__view .node__text {
  fill: var(--text);
  font-family: var(--font-ui);
  font-size: var(--diagram-text-min);
  font-weight: 500;
  text-anchor: middle;
  dominant-baseline: central;
}

.stage__view .edge {
  fill: none;
  stroke: var(--text-muted);
  stroke-width: 2;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

/* Информационный поток — пунктир, вытягивание — длинный штрих (ТЗ 8.6) */
.stage__view .edge--info {
  stroke-dasharray: 8 6;
}

.stage__view .edge--pull {
  stroke-dasharray: 14 6;
}

.stage__view .edge--electronic {
  stroke: var(--ink-blue);
}

/* Подпись связи: фон темы обводкой под буквами, чтобы линия не мешала читать */
.stage__view .edge__label {
  fill: var(--text);
  font-family: var(--font-ui);
  font-size: var(--diagram-text-min);
  font-weight: 500;
  text-anchor: middle;
  dominant-baseline: central;
  paint-order: stroke;
  stroke: var(--bg);
  stroke-width: 4px;
  stroke-linejoin: round;
}

.stage__view .edge__arrow {
  fill: var(--text-muted);
}

/* Статус элемента (contract 2.4) */
.stage__view [data-status="ok"] .node__shape,
.stage__view .edge[data-status="ok"] { stroke: var(--status-ok); }
.stage__view [data-status="warning"] .node__shape,
.stage__view .edge[data-status="warning"] { stroke: var(--status-warning); }
.stage__view [data-status="problem"] .node__shape,
.stage__view .edge[data-status="problem"] { stroke: var(--status-problem); }
.stage__view [data-status="idea"] .node__shape,
.stage__view .edge[data-status="idea"] { stroke: var(--status-idea); }
