/* quizzes.css — las bandejas del Quiz Engine dentro del batch (Generación).
   Mismos tokens que studio.css; las tarjetas de concepto siguen el estilo de
   los buzones de video (borde suave, radio 12). */

.qz-concepto { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; background: var(--panel); }
.qz-concepto.sel { border-color: var(--illufy-dark); box-shadow: inset 3px 0 0 var(--illufy); }
.qz-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.qz-check { width: 15px; height: 15px; accent-color: var(--illufy-dark); align-self: center; cursor: pointer; }
.qz-palabra { font-size: 15px; }
.qz-head .badge { margin-left: 0; }
.qz-def { flex: 1; min-width: 200px; font-size: 12.5px; color: var(--text-2); }

.qz-paso { border-top: 1px solid var(--border); margin-top: 10px; padding-top: 10px; }
.qz-paso-head { display: flex; gap: 8px; align-items: center; font-size: 12.5px; margin-bottom: 6px; }
.qz-paso-head .st { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
.qz-paso-head .st.generado { animation: pulso-st 1.6s ease-in-out infinite; }

.qz-propuesta { font-size: 14px; line-height: 1.45; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; margin-bottom: 6px; white-space: pre-wrap; overflow-wrap: anywhere; }
.qz-hecho { font-size: 12.5px; color: var(--text-2); overflow-wrap: anywhere; }
.qz-nota { font-size: 12px; color: var(--text-2); margin-bottom: 6px; overflow-wrap: anywhere; }
.qz-juez { font-size: 12.5px; border-radius: 7px; padding: 6px 10px; margin-bottom: 6px; overflow-wrap: anywhere; }
.qz-juez.ok { background: var(--green-soft); color: var(--green); }
.qz-juez.mal { background: var(--red-soft); color: var(--red); }
.qz-error { margin: 0; overflow-wrap: anywhere; }
.qz-aviso { margin-bottom: 6px; }

.qz-texto, .qz-input {
  border: 1px solid var(--border); border-radius: 7px; padding: 6px 9px; background: #fff; font-size: 13px;
}
.qz-texto { display: block; width: 100%; resize: vertical; margin-top: 4px; }
.qz-input { flex: 1; min-width: 140px; }
.qz-input.qz-forma { flex: 2; min-width: 110px; }
.qz-input.qz-pos { flex: 1; min-width: 70px; }
.qz-texto:focus, .qz-input:focus { outline: none; border-color: var(--illufy-dark); box-shadow: 0 0 0 3px var(--illufy-soft); }
.qz-label { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: .5px; white-space: nowrap; }

.qz-acciones { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.qz-fila { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 6px; }

/* imágenes: las 2 candidatas lado a lado; la preseleccionada para el lote, con borde */
.qz-cands { display: flex; gap: 14px; flex-wrap: wrap; margin: 6px 0; }
.qz-cand { width: 200px; border: 3px solid transparent; border-radius: 14px; padding: 4px; }
.qz-cand.pre { border-color: var(--illufy-dark); }
.qz-cand img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: block; box-shadow: var(--shadow); cursor: zoom-in; background: var(--gray-soft); }
.qz-cand-pie { display: flex; gap: 6px; align-items: center; justify-content: space-between; font-size: 11.5px; margin-top: 6px; }
.qz-pre { display: flex; gap: 5px; align-items: center; font-size: 11.5px; color: var(--text-2); margin-top: 4px; cursor: pointer; }
.qz-pre input { accent-color: var(--illufy-dark); }

.qz-audio { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.qz-audio audio { height: 34px; max-width: 100%; }
.qz-audio-txt { font-size: 14px; font-weight: 600; }

/* sílabas como fichas: un clic marca la tónica */
.qz-silabas { display: flex; gap: 6px; flex-wrap: wrap; margin: 2px 0 6px; }
.qz-sil { border: 1px solid var(--border); background: var(--panel); color: var(--text); border-radius: 8px; padding: 6px 13px; font-size: 15px; font-weight: 600; }
button.qz-sil:hover { border-color: var(--text-3); }
button.qz-sil:disabled { opacity: .6; cursor: default; }
.qz-sil.tonica { background: var(--illufy); border-color: var(--illufy-dark); }

/* tipo del quinto: una línea por rama de la cascada */
.qz-ramas { display: flex; flex-direction: column; gap: 4px; margin: 4px 0 6px; font-size: 12.5px; }
.qz-rama { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.qz-rama-n { min-width: 120px; color: var(--text-2); }
.qz-rama .tag { margin-left: 0; }

.qz-dock { justify-content: flex-start; }

@media (max-width: 700px) {
  .qz-cand { width: calc(50% - 7px); }
  .qz-def { min-width: 0; flex-basis: 100%; }
  .qz-rama-n { min-width: 0; }
}
