/*
 * npcFlow.css — peta alur NPC Editor (N1). Token tema saja. Awalan: ne-flow.
 */

/* ── Peta alur ────────────────────────────────────────────────────────── */

.ne-flow__scroller {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 28px; /* ruang garis mundur di bawah kartu */
  -webkit-overflow-scrolling: touch;
}

.ne-flow__board {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 48px;
  width: max-content;
  min-width: 100%;
}

.ne-flow__lines {
  position: absolute;
  inset: 0;
  overflow: visible;
  pointer-events: none;
}

.ne-flow__line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  opacity: 0.7;
}

.ne-flow__line--back {
  stroke: var(--text-muted);
  stroke-dasharray: 5 4;
  opacity: 0.6;
}

/* "Lain kali buka" (N5): titik-titik, warna info. */
.ne-flow__line--next {
  stroke: var(--status-info);
  stroke-dasharray: 2 4;
  stroke-linecap: round;
  opacity: 0.8;
}

.ne-flow__col {
  position: relative;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 12px;
  width: 200px;
}

.ne-flow__col-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.ne-flow__node {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  width: 100%;
  padding: 10px 12px;
  text-align: left;
  font: inherit;
  color: var(--text-primary);
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.ne-flow__node:hover {
  border-color: var(--accent);
}

.ne-flow__node--active {
  border-color: var(--accent);
  background: rgb(var(--accent-rgb) / 0.12);
}

.ne-flow__node--orphan {
  opacity: 0.7;
  border-style: dashed;
}

.ne-flow__name {
  font-weight: 600;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ne-flow__info {
  font-size: 11px;
  color: var(--text-muted);
}

.ne-flow__info--warn {
  color: var(--accent-warning);
}

.ne-flow__links {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ne-flow__link {
  font-size: 12px;
  color: var(--text-secondary, var(--text-muted));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ne-flow__link--next {
  color: var(--status-info);
}

.ne-flow__link--broken {
  color: var(--accent-danger);
}

@media (max-width: 680px) {
  .ne-flow__col {
    width: 168px;
  }

  .ne-flow__board {
    gap: 32px;
  }
}
