/* Telar · taller — tres paneles espaciosos sobre el papel. */

.taller {
  display: grid;
  grid-template-columns: 250px 1fr 360px;
  gap: 22px;
  padding: 22px 26px;
  height: 100vh;
  min-width: 0;
}
.panel { padding: 18px; overflow-y: auto; min-height: 0; }
.panel h2 {
  font-size: 11.5px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .9px;
  color: var(--mut);
  margin: 0 0 10px;
}

/* ── Telares (lista) ─────────────────────────────── */
#buscador { width: 100%; margin-bottom: 10px; font-size: 13px; padding: 7px 11px; }
.flujo-item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-left: 2px solid transparent;
  color: var(--tinta);
  padding: 8px 10px;
  border-radius: 0 9px 9px 0;
  cursor: pointer;
}
.flujo-item:hover { background: var(--cobre-suave); }
.flujo-item.activo { background: var(--cobre-suave); border-left-color: var(--cobre); }
.flujo-item .fid { color: var(--mut); font-family: var(--mono); font-size: 11px; display: block; margin-top: 1px; }

.creds-global { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--linea); }
.chica { font-size: 12px; }
.cred-alta { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }

/* ── Grafo ───────────────────────────────────────── */
.vacio { display: flex; height: 100%; align-items: center; justify-content: center; color: var(--mut); text-align: center; }
.vacio a { color: var(--cobre); }
.grafo-cab { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.grafo-cab h2 { text-transform: none; letter-spacing: 0; font-size: 19px; color: var(--tinta); margin: 0; }

.permisos { margin: 8px 0 2px; display: flex; flex-wrap: wrap; gap: 6px; }
.permiso {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mut);
  border: 1px dashed var(--linea);
  border-radius: 20px;
  padding: 2px 10px;
}

.telar-chat { max-width: 600px; margin-top: 16px; padding: 14px 0 4px; border-top: 1px dashed var(--linea); }
.telar-chat textarea { width: 100%; margin-bottom: 8px; }
.telar-chat .fila-botones { display: flex; gap: 8px; margin: 0; }
.grafo-cab .link-min { margin-left: auto; }

.version-item {
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--linea-suave);
  padding: 6px 2px;
  font-size: 12px;
}
.version-item .motivo { flex: 1; min-width: 0; color: var(--mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#d-versiones { margin-top: 22px; }

.nodos { display: flex; flex-direction: column; max-width: 600px; margin-top: 20px; }
.hilo {
  width: 2px;
  height: 30px;
  margin-left: 48px;
  background: repeating-linear-gradient(180deg, var(--cobre) 0 6px, transparent 6px 11px);
}
.hilo.cond { opacity: .45; }

.nodo {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--carta);
  border: 1px solid var(--linea);
  border-radius: 14px;
  padding: 13px 16px;
  cursor: pointer;
  text-align: left;
  color: var(--tinta);
  transition: border-color .15s;
}
.nodo:hover { border-color: var(--cobre); }
.nodo.trigger { border-style: dashed; }
.nodo .chip { min-width: 76px; text-align: center; }
.nodo .cuerpo { min-width: 0; }
.nodo .nid { font-weight: 650; }
.nodo .resumen {
  color: var(--mut);
  font-family: var(--mono);
  font-size: 11.5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 360px;
  display: block;
}
.nodo .cond-tag {
  margin-left: auto;
  font-size: 11px;
  color: var(--mut);
  border: 1px dashed var(--linea);
  border-radius: 20px;
  padding: 1px 9px;
  white-space: nowrap;
}

/* ── Detalle ─────────────────────────────────────── */
.detalle textarea { width: 100%; margin-bottom: 8px; }
.fila-botones { margin: 2px 0 16px; }
.nodo-chat { margin-bottom: 16px; padding-top: 12px; border-top: 1px dashed var(--linea); }
#d-probar, #d-nodo, #d-creds-flujo { margin-bottom: 22px; }

.run-item {
  display: block;
  width: 100%;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--linea-suave);
  color: var(--tinta);
  padding: 7px 4px;
  cursor: pointer;
  text-align: left;
  font-family: var(--mono);
  font-size: 12px;
}
.run-item:hover { background: var(--cobre-suave); }
.run-item .ok { color: var(--ok); }
.run-item .otro { color: var(--err); }

.snap { margin-bottom: 10px; }
.snap .snid { font-weight: 650; font-size: 12.5px; margin: 8px 0 2px; }

@media (max-width: 1080px) {
  .taller { grid-template-columns: 1fr; height: auto; }
  .panel { max-height: 70vh; }
}
