/* =====================================================================
   Interactive schematic — mirrors the real n8n canvas layout.
   Pan (drag), zoom (wheel / buttons), each node captioned in plain English.
   ===================================================================== */
.graph-wrap{
  position:relative; height:580px; overflow:hidden;
  border:1px solid var(--line); border-radius:var(--radius);
  background:
    linear-gradient(rgba(15,33,75,.055) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(15,33,75,.055) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--card-2);
  cursor:grab; touch-action:none; -webkit-user-select:none; user-select:none;
}
.panel .graph-wrap{ margin:0; border:0; border-radius:0; box-shadow:none; }
.graph-wrap.dragging{ cursor:grabbing; }

.graph-toolbar{
  position:absolute; top:12px; right:12px; z-index:6;
  display:flex; align-items:center; gap:6px;
}
.graph-btn{
  width:30px; height:30px; display:grid; place-items:center;
  border:1px solid var(--line-2); background:var(--card); color:var(--ink);
  border-radius:8px; font-size:17px; font-weight:700; cursor:pointer;
  box-shadow:var(--shadow-sm); line-height:1; font-family:var(--sans);
}
.graph-btn[data-act="fit"]{ width:auto; padding:0 12px; font-size:11.5px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; }
.graph-btn:hover{ border-color:var(--yellow-d); background:var(--card-2); }
.graph-hint{
  font-size:11px; color:var(--muted); font-weight:600;
  background:color-mix(in srgb, var(--card) 78%, transparent);
  padding:4px 10px; border-radius:999px; border:1px solid var(--line);
}

.graph-stage{ position:absolute; top:0; left:0; transform-origin:0 0; will-change:transform; }
.graph-edges{ position:absolute; top:0; left:0; overflow:visible; pointer-events:none; }
.graph-edges path{ fill:none; stroke:#9fb0c9; stroke-width:1.7; }

.gnode{ position:absolute; width:158px; box-sizing:border-box; text-align:center; }
.gnode .gn-tile{
  width:42px; height:42px; border-radius:12px; margin:0 auto 7px;
  display:grid; place-items:center; background:var(--card);
  border:1px solid var(--line); box-shadow:var(--shadow-sm); color:var(--ink);
}
.gnode .gn-tile svg{ width:22px; height:22px; }
.gn-label{ font-size:12.5px; font-weight:800; color:var(--ink); line-height:1.18; }
.gn-desc{
  font-size:11px; color:var(--ink-2); line-height:1.32; margin-top:4px;
  display:-webkit-box; -webkit-line-clamp:4; -webkit-box-orient:vertical; overflow:hidden;
}
.gnode.disabled{ opacity:.5; }
.gnode.disabled .gn-tile{ border-style:dashed; }

/* role colours (match the static schematic tiles) */
.gn-tile.r-trigger{ background:var(--yellow-sft); border-color:var(--yellow-d); }
.gn-tile.r-crm{ background:#E7ECF6; border-color:#C4D0E8; }
.gn-tile.r-calendar{ background:#E7ECF6; border-color:#C4D0E8; }
.gn-tile.r-voice{ background:#E7EFEA; border-color:#BFD8C9; }
.gn-tile.r-sms{ background:#E7EFEA; border-color:#BFD8C9; }
.gn-tile.r-http{ background:#FBF3E0; border-color:#E9D6A8; }
.gn-tile.r-ai{ background:#F1ECF6; border-color:#D7C9E6; }
.gn-tile.r-logic{ background:#F1ECF6; border-color:#D7C9E6; }
.gn-tile.r-end{ background:var(--grey-sft); border-color:var(--line-2); }

@media (max-width: 860px){ .graph-wrap{ height:440px; } }

/* "Outcome" takeaway line under each scenario — the plain-English so-what + hand-off */
.outcome{
  margin:16px 0 0; font-size:14.5px; color:var(--ink); line-height:1.55;
  background:var(--card-2); border:1px solid var(--line); border-left:3px solid var(--yellow);
  border-radius:9px; padding:12px 16px;
}
.outcome-tag{
  display:inline-block; font-size:10.5px; font-weight:800; letter-spacing:.13em; text-transform:uppercase;
  color:var(--ink); background:var(--yellow-sft); border:1px solid var(--yellow-d);
  border-radius:5px; padding:2px 8px; margin-right:9px; vertical-align:1px;
}
