/*
 * npcScenes.css — kartu Scene & peta alur NPC Editor (N1).
 * Token tema saja (tanpa hex). Awalan: ne-scenes, ne-flow.
 */

/* ── Chip scene ───────────────────────────────────────────────────────── */

.ne-scenes__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.ne-scenes__tablist,
.ne-scenes__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ne-scenes__chip {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-height: 34px;
}

.ne-scenes__chip--active {
  background: rgb(var(--accent-rgb) / 0.16);
  border-color: var(--accent);
  color: var(--text-primary);
  font-weight: 600;
}

.ne-scenes__add {
  min-height: 34px;
  border-style: dashed;
}

/* ── Pengaturan scene aktif ───────────────────────────────────────────── */

.ne-scenes__panel {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 14px;
}

.ne-scenes__field {
  flex: 1 1 200px;
  min-width: 0;
}

.ne-scenes__tag {
  flex-shrink: 0;
  align-self: center;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 4px 8px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ne-scenes__tools {
  display: flex;
  flex-shrink: 0;
  gap: 8px;
}

.ne-scenes__tool {
  min-height: 34px;
}

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

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

/* ── Kolom "Buka scene" di baris aksi ─────────────────────────────────── */

.ne-action__goto {
  max-width: 360px;
}

@media (max-width: 680px) {
  .ne-scenes__panel {
    flex-direction: column;
    align-items: stretch;
  }

  /* Tersusun vertikal: flex-basis 200px akan menjadi TINGGI kolom. */
  .ne-scenes__field {
    flex: 0 0 auto;
  }

  .ne-scenes__tag {
    align-self: flex-start;
  }

  .ne-scenes__tools > .ne-chip {
    flex: 1 1 0;
  }

  .ne-action__goto {
    max-width: none;
  }
}
