/* Treinamento obrigatório (19/10/2026). Cores só por token: o tema do
   cliente (cliente/temas/<id>.css) troca tudo sem mexer aqui. */

.tr-tela { min-height: 100vh; background: var(--bg); color: var(--text); }
.tr-topo {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 20px; border-bottom: 1px solid var(--border); background: var(--surface);
  position: sticky; top: 0; z-index: 5;
}
.tr-marca img { max-height: 34px; width: auto; margin: 0; }
.tr-topo-dir { display: flex; align-items: center; gap: 12px; }
.tr-corpo { max-width: 720px; margin: 0 auto; padding: 24px 16px 96px; }
.tr-carregando { padding: 48px 0; text-align: center; color: var(--text-muted); }

.tr-cartao {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 22px 22px; margin-bottom: 14px;
}
.tr-cartao h1 { font-size: 26px; line-height: 1.2; margin: 6px 0 10px; }
.tr-cartao h2 { font-size: 21px; line-height: 1.25; margin: 6px 0 10px; }
.tr-cartao p { margin: 0 0 10px; line-height: 1.55; }
.tr-selo {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--brand-texto); background: var(--brand-soft);
  padding: 4px 10px; border-radius: 999px;
}
.tr-aviso { color: var(--brand-texto); font-weight: 600; }

.tr-progresso { display: flex; align-items: center; gap: 12px; margin: 6px 0 14px; font-size: 13px; color: var(--text-muted); }
.tr-barra { flex: 1; height: 8px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.tr-barra i { display: block; height: 100%; background: var(--brand); border-radius: 999px; transition: width .3s; }

.tr-lista { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.tr-lista button {
  width: 100%; display: flex; align-items: center; gap: 14px; text-align: left;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px; cursor: pointer; color: var(--text); font: inherit;
}
.tr-lista button:hover { border-color: var(--brand); }
.tr-lista li.feita button { background: var(--surface-2); }
.tr-num {
  flex: none; width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center;
  background: var(--surface-3); font-weight: 700; font-size: 14px; margin-right: 10px;
}
.tr-lista .tr-num { margin-right: 0; }
.tr-lista li.feita .tr-num { background: var(--green-bg); color: var(--green); }
.tr-tit { display: flex; flex-direction: column; font-weight: 600; }
.tr-tit small { font-weight: 400; color: var(--text-muted); font-size: 13px; margin-top: 2px; }

.tr-onde { color: var(--text-muted); }
.tr-passos { margin: 6px 0 16px; padding-left: 22px; display: grid; gap: 10px; line-height: 1.55; font-size: 16px; }
.tr-regra {
  border-left: 4px solid var(--brand); background: var(--brand-soft); border-radius: 8px;
  padding: 12px 14px; line-height: 1.5;
}
.tr-regra b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--brand-texto); margin-bottom: 4px; }

.tr-acoes { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.tr-acoes .primary { min-height: 44px; padding: 0 20px; }
.tr-acoes .muted { margin-right: auto; }

.tr-q { border: 1px solid var(--border); }
.tr-q legend { font-weight: 600; font-size: 16px; line-height: 1.45; padding: 0; margin-bottom: 12px; display: flex; align-items: flex-start; float: left; width: 100%; }
.tr-q legend + * { clear: both; }
.tr-op {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; margin-top: 8px;
  border: 1px solid var(--border); border-radius: 10px; cursor: pointer; line-height: 1.45;
}
.tr-op:hover { border-color: var(--brand); }
.tr-op input { margin-top: 3px; accent-color: var(--brand); }
.tr-op:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }

.tr-fim.ok .tr-selo { color: var(--green); background: var(--green-bg); }
.tr-rever { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }
.tr-rever button {
  background: none; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px;
  width: 100%; text-align: left; cursor: pointer; color: var(--text); font: inherit; font-weight: 600;
}
.tr-meu { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

@media (max-width: 560px) {
  .tr-topo { padding: 10px 16px; }
  .tr-topo-dir .muted { display: none; }
  .tr-cartao { padding: 18px 16px; }
  .tr-cartao h1 { font-size: 22px; }
  .tr-acoes { justify-content: stretch; }
  .tr-acoes .primary, .tr-acoes .btn-sec { flex: 1; }
  .tr-acoes .muted { flex-basis: 100%; }
}
