/* Temas: acierto de la cohorte por tema + confirmación del repaso. */

.pc-temas .painel {
  left: 0;
  top: 0;
  width: 392px;
  height: 256px;
  padding: 20px;
}

.pc-temas .cab {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 20px;
  color: var(--tinta-2);
}

.pc-temas .cab b {
  font-size: 13px;
  font-weight: 600;
  color: var(--texto);
}

.pc-temas .cab .t-mini {
  margin-left: auto;
}

.pc-temas .linhas {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 16px -8px 0;
}

.pc-temas .linha {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 12px;
  height: 42px;
  padding: 0 8px;
  border-radius: 10px;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.4s var(--saida),
    transform 0.6s var(--saida),
    background-color 0.4s,
    box-shadow 0.4s;
}

.pc-temas .linha.on {
  opacity: 1;
  transform: none;
}

.pc-temas .linha.marca {
  background: var(--fundo);
  box-shadow: 0 0 0 1px var(--linha) inset;
}

.pc-temas .mini {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--fundo);
  box-shadow: 0 0 0 1px var(--linha) inset;
  overflow: hidden;
}

.pc-temas .linha.marca .mini {
  background: var(--papel);
}

.pc-temas .mini svg {
  display: block;
  width: 40px;
  height: 40px;
}

.pc-temas .meio {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.pc-temas .nome {
  font-size: 13px;
  line-height: 16px;
  font-weight: 500;
  color: var(--texto);
  white-space: nowrap;
}

.pc-temas .trilho {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: var(--neblina);
  overflow: hidden;
}

.pc-temas .trilho i {
  display: block;
  width: calc(var(--v) * 1%);
  height: 100%;
  border-radius: 3px;
  background: var(--tinta-2);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition:
    transform 0.9s var(--saida) 0.08s,
    background-color 0.5s;
}

.pc-temas .linha.on .trilho i {
  transform: none;
}

/* o tema mais baixo fica em tinta; os outros recuam */
.pc-temas .linhas:has(.marca) .linha:not(.fraco) .trilho i {
  background: #a9bac8;
}

.pc-temas .linha.marca .trilho i {
  background: var(--tinta);
}

.pc-temas .pct {
  font-size: 13px;
  text-align: right;
  color: var(--texto-2);
  white-space: nowrap;
  transition:
    opacity 0.2s,
    color 0.3s;
}

.pc-temas .pct b {
  font-weight: 600;
  color: var(--texto);
  transition: color 0.3s;
}

.pc-temas .linha.marca .pct,
.pc-temas .linha.marca .pct b {
  color: var(--ouro-texto);
}

.pc-temas .linha.hover .pct {
  opacity: 0;
}

.pc-temas .asignar {
  position: absolute;
  right: 8px;
  top: 6px;
  opacity: 0;
  transform: translateX(6px);
  transition:
    opacity 0.25s,
    transform 0.4s var(--saida),
    background-color 0.3s,
    color 0.3s;
}

.pc-temas .asignar .a,
.pc-temas .asignar .b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pc-temas .asignar .b,
.pc-temas .asignar.feito .a {
  display: none;
}

.pc-temas .asignar.feito .b {
  display: inline-flex;
}

.pc-temas .linha.hover .asignar {
  opacity: 1;
  transform: none;
}

.pc-temas .asignar.feito {
  background: var(--certo-claro);
  color: var(--certo);
  box-shadow: none;
}

/* ---------- confirmación ---------- */

.pc-temas .aviso {
  left: 100px;
  top: 236px;
  width: 320px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 2px 6px rgba(10, 30, 46, 0.1),
    0 18px 40px -14px rgba(10, 30, 46, 0.5),
    0 40px 80px -36px rgba(0, 0, 0, 0.6);
}

.pc-temas .aviso b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
}

.pc-temas .selo {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--certo-claro);
  color: var(--certo);
}
