/* Componentes reutilizáveis. Nada aqui conhece uma tela específica. */

/* ------------------------------------------------------------------ */
/* Cartão                                                             */
/* ------------------------------------------------------------------ */
.cartao {
  background: var(--superficie);
  border: 1px solid var(--borda);
  border-radius: var(--r-lg);
  padding: var(--e-4);
}

.cartao--vazio {
  padding: var(--e-7) var(--e-4);
  text-align: center;
  color: var(--texto-3);
  border-style: dashed;
}

.cartao--clicavel {
  text-align: left;
  width: 100%;
  transition: border-color var(--rapido), background var(--rapido),
    transform var(--rapido);
}
.cartao--clicavel:hover {
  border-color: var(--borda-forte);
  background: var(--superficie-2);
}
.cartao--clicavel:active {
  transform: scale(0.995);
}

.cartao--destaque {
  border-color: var(--acento-fraco-2);
  background:
    linear-gradient(180deg, var(--acento-fraco), transparent 58%),
    var(--superficie);
}

.cartao-cabeca {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--e-3);
  margin-bottom: var(--e-3);
}

.secao {
  display: flex;
  flex-direction: column;
  gap: var(--e-3);
}
.secao + .secao { margin-top: var(--e-6); }

.secao-titulo {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--e-3);
}

/* ------------------------------------------------------------------ */
/* Botões                                                             */
/* ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--e-2);
  height: 44px;
  padding: 0 var(--e-5);
  border: 1px solid transparent;
  border-radius: var(--r-md);
  background: var(--superficie-2);
  color: var(--texto);
  font-size: var(--t-sm);
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background var(--rapido), border-color var(--rapido),
    transform var(--rapido), opacity var(--rapido);
}
.btn:hover { background: var(--superficie-3); }
.btn:active { transform: scale(0.97); }

.btn svg { width: 18px; height: 18px; stroke-width: 2; }

.btn--principal {
  background: var(--acento);
  color: var(--sobre-acento);
  box-shadow: var(--sombra-acento);
}
.btn--principal:hover { background: var(--acento-claro); }

.btn--contorno {
  background: transparent;
  border-color: var(--borda-forte);
  color: var(--texto);
}
.btn--contorno:hover { background: var(--superficie-2); }

.btn--fantasma {
  background: transparent;
  color: var(--texto-2);
  padding-inline: var(--e-3);
}
.btn--fantasma:hover { background: var(--superficie-2); color: var(--texto); }

.btn--perigo {
  background: var(--alerta-fraco);
  color: var(--alerta);
  border-color: rgba(255, 140, 26, 0.3);
}
.btn--perigo:hover { background: rgba(255, 140, 26, 0.22); }

.btn--largo { width: 100%; }
.btn--grande { height: 54px; font-size: var(--t-md); border-radius: var(--r-lg); }
.btn--pequeno { height: 34px; padding: 0 var(--e-3); font-size: var(--t-xs); }
.btn--icone { width: 40px; padding: 0; }

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.42;
  pointer-events: none;
}

/* Barra fixa de ação: sempre visível no fim de fluxos longos (anamnese, treino). */
.barra-acao {
  position: sticky;
  bottom: 0;
  margin: var(--e-5) calc(var(--e-4) * -1) 0;
  padding: var(--e-3) var(--e-4) calc(var(--e-3) + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, var(--fundo) 34%);
  display: flex;
  gap: var(--e-3);
}
.casca--aluno .barra-acao { bottom: var(--altura-navegacao); }

/* ------------------------------------------------------------------ */
/* Chips e selos                                                      */
/* ------------------------------------------------------------------ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  background: var(--superficie-2);
  border: 1px solid var(--borda);
  color: var(--texto-2);
  font-size: var(--t-xs);
  font-weight: 700;
  white-space: nowrap;
}

.chip--acento { background: var(--acento-fraco); border-color: transparent; color: var(--acento); }
.chip--verde { background: var(--verde-fraco); border-color: transparent; color: var(--verde); }
.chip--ambar { background: var(--ambar-fraco); border-color: transparent; color: var(--ambar); }
.chip--vermelho { background: var(--alerta-fraco); border-color: transparent; color: var(--alerta); }
.chip--azul { background: var(--azul-fraco); border-color: transparent; color: var(--azul); }
.chip--roxo { background: var(--roxo-fraco); border-color: transparent; color: var(--roxo); }

.chip .ponto {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

/* Chip clicável (filtros da biblioteca de exercícios). */
.filtro {
  flex: none;          /* dentro de .filtros ele não pode encolher: ver abaixo */
  white-space: nowrap;
  height: 34px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  background: var(--superficie);
  border: 1px solid var(--borda);
  color: var(--texto-2);
  font-size: var(--t-sm);
  font-weight: 600;
  transition: all var(--rapido);
}
.filtro:hover { border-color: var(--borda-forte); color: var(--texto); }
.filtro.ativo {
  background: var(--acento);
  border-color: var(--acento);
  color: var(--sobre-acento);
  font-weight: 700;
}

/* Faixa que rola de lado. O `flex: none` do filtro é o que faz isto funcionar:
   sem ele o item de flex encolhe, o rótulo quebra em duas linhas e vaza para
   fora da pílula de 34px em vez de a faixa rolar. */
.filtros {
  display: flex;
  gap: var(--e-2);
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.filtros::-webkit-scrollbar { display: none; }

/* ------------------------------------------------------------------ */
/* Avatar                                                             */
/* ------------------------------------------------------------------ */
.avatar {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  background: var(--superficie-3);
  color: var(--texto);
  font-weight: 800;
  font-size: var(--t-sm);
  letter-spacing: -0.02em;
  border: 1px solid var(--borda);
  position: relative;
}
.avatar--g { width: 56px; height: 56px; font-size: var(--t-lg); border-radius: var(--r-lg); }
.avatar--gg { width: 76px; height: 76px; font-size: var(--t-2xl); border-radius: var(--r-xl); }
.avatar--p { width: 30px; height: 30px; font-size: var(--t-xs); border-radius: var(--r-sm); }

/* Ponto de estado no canto do avatar (ativo / em risco / pendente). */
.avatar .estado {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--fundo);
}
.estado--verde { background: var(--verde); }
.estado--ambar { background: var(--ambar); }
.estado--vermelho { background: var(--alerta); }
.estado--cinza { background: var(--texto-3); }

/* ------------------------------------------------------------------ */
/* Campos de formulário                                               */
/* ------------------------------------------------------------------ */
.campo {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.campo > label {
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--texto-2);
}

.campo .ajuda {
  font-size: var(--t-xs);
  color: var(--texto-3);
}

.entrada,
select.entrada,
textarea.entrada {
  width: 100%;
  height: 46px;
  padding: 0 var(--e-4);
  background: var(--superficie);
  border: 1px solid var(--borda);
  border-radius: var(--r-md);
  color: var(--texto);
  font-size: var(--t-md);
  transition: border-color var(--rapido), background var(--rapido);
  appearance: none;
}
.entrada::placeholder { color: var(--texto-3); }
.entrada:hover { border-color: var(--borda-forte); }
.entrada:focus {
  outline: none;
  border-color: var(--acento);
  background: var(--superficie-2);
}

textarea.entrada {
  height: auto;
  min-height: 96px;
  padding: var(--e-3) var(--e-4);
  resize: vertical;
  line-height: 1.55;
}

select.entrada {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239dabb7' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

/* Campo de código: caixa alta, espaçada, monoespaçada visualmente. */
.entrada--codigo {
  height: 62px;
  text-align: center;
  font-family: var(--fonte-num);
  font-size: var(--t-2xl);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Botão-opção de escolha única (PAR-Q sim/não, objetivo, nível). */
.opcoes {
  display: flex;
  flex-direction: column;
  gap: var(--e-2);
}
.opcoes--linha { flex-direction: row; }
.opcoes--linha .opcao { flex: 1; }

.opcao {
  display: flex;
  align-items: center;
  gap: var(--e-3);
  width: 100%;
  min-height: 52px;
  padding: var(--e-3) var(--e-4);
  text-align: left;
  background: var(--superficie);
  border: 1px solid var(--borda);
  border-radius: var(--r-md);
  color: var(--texto);
  font-size: var(--t-md);
  font-weight: 600;
  transition: all var(--rapido);
}
.opcao:hover { border-color: var(--borda-forte); background: var(--superficie-2); }

.opcao.marcada {
  border-color: var(--acento);
  background: var(--acento-fraco);
}

.opcao .marca {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--borda-forte);
  display: grid;
  place-items: center;
  transition: all var(--rapido);
}
.opcao.marcada .marca {
  border-color: var(--acento);
  background: var(--acento);
  color: var(--sobre-acento);
}
.opcao .marca svg { width: 13px; height: 13px; stroke-width: 3.4; opacity: 0; }
.opcao.marcada .marca svg { opacity: 1; }

.opcao--quadrada .marca { border-radius: 6px; }

.opcao .desc {
  display: block;
  font-size: var(--t-xs);
  font-weight: 500;
  color: var(--texto-3);
  margin-top: 2px;
}

/* Interruptor. */
.interruptor {
  flex: none;
  width: 44px;
  height: 26px;
  padding: 3px;
  border-radius: var(--r-pill);
  background: var(--superficie-3);
  border: 1px solid var(--borda);
  display: flex;
  transition: background var(--rapido);
}
.interruptor::after {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--texto-3);
  transition: transform var(--normal), background var(--rapido);
}
.interruptor.ligado { background: var(--acento); border-color: var(--acento); }
.interruptor.ligado::after { transform: translateX(18px); background: var(--sobre-acento); }

/* ------------------------------------------------------------------ */
/* Abas                                                               */
/* ------------------------------------------------------------------ */
.abas {
  display: flex;
  gap: 2px;
  padding: 3px;
  background: var(--superficie);
  border: 1px solid var(--borda);
  border-radius: var(--r-md);
  overflow-x: auto;
  scrollbar-width: none;
}
.abas::-webkit-scrollbar { display: none; }

.aba {
  flex: 1;
  min-width: max-content;
  height: 36px;
  padding: 0 var(--e-4);
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--texto-2);
  font-size: var(--t-sm);
  font-weight: 600;
  transition: all var(--rapido);
}
.aba:hover { color: var(--texto); }
.aba.ativa {
  background: var(--superficie-3);
  color: var(--texto);
  font-weight: 700;
}

/* ------------------------------------------------------------------ */
/* Barra de progresso e anel                                          */
/* ------------------------------------------------------------------ */
.barra {
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--superficie-3);
  overflow: hidden;
}
.barra > i {
  display: block;
  height: 100%;
  border-radius: var(--r-pill);
  background: var(--acento);
  transition: width var(--lento);
}
.barra--fina { height: 5px; }
.barra--verde > i { background: var(--verde); }
.barra--ambar > i { background: var(--ambar); }
.barra--vermelha > i { background: var(--alerta); }

.anel { position: relative; display: grid; place-items: center; }
.anel svg { transform: rotate(-90deg); }
.anel circle { fill: none; stroke-linecap: round; }
.anel .trilho { stroke: var(--superficie-3); }
.anel .valor { stroke: var(--acento); transition: stroke-dashoffset var(--lento); }
.anel .centro {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

/* ------------------------------------------------------------------ */
/* Métricas                                                           */
/* ------------------------------------------------------------------ */
.metrica {
  background: var(--superficie);
  border: 1px solid var(--borda);
  border-radius: var(--r-md);
  padding: var(--e-3);
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.metrica .valor {
  font-family: var(--fonte-num);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: var(--t-xl);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.metrica .valor .un {
  font-size: var(--t-sm);
  font-weight: 700;
  color: var(--texto-3);
  margin-left: 2px;
}
.metrica .rot {
  font-size: var(--t-xs);
  color: var(--texto-3);
  font-weight: 600;
}
.metrica .var {
  font-size: var(--t-xs);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.var--sobe { color: var(--verde); }
.var--desce { color: var(--alerta); }
.var--igual { color: var(--texto-3); }

/* ------------------------------------------------------------------ */
/* Lista de itens (alunos, exercícios, sessões)                       */
/* ------------------------------------------------------------------ */
.lista {
  display: flex;
  flex-direction: column;
  gap: var(--e-2);
}

.item {
  display: flex;
  align-items: center;
  gap: var(--e-3);
  width: 100%;
  padding: var(--e-3);
  text-align: left;
  background: var(--superficie);
  border: 1px solid var(--borda);
  border-radius: var(--r-md);
  color: var(--texto);
  transition: all var(--rapido);
}
.item:hover { border-color: var(--borda-forte); background: var(--superficie-2); }
.item:active { transform: scale(0.995); }

/* Título e subtítulo são `span` no HTML das telas: sem `display: block` eles
   correm na mesma linha e o nome do aluno cola no objetivo. */
.item .titulo {
  display: block;
  font-size: var(--t-md);
  font-weight: 650;
  letter-spacing: -0.01em;
}
.item .sub {
  display: block;
  font-size: var(--t-xs);
  color: var(--texto-3);
  margin-top: 1px;
}
.item .seta { color: var(--texto-3); flex: none; }
.item .seta svg { width: 18px; height: 18px; }

/* Faixa colorida à esquerda para estado (usada na lista de alunos). */
.item--faixa { position: relative; overflow: hidden; }
.item--faixa::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--cor-faixa, transparent);
}

/* ------------------------------------------------------------------ */
/* Aviso (semáforo, alerta, dica)                                     */
/* ------------------------------------------------------------------ */
.aviso {
  display: flex;
  gap: var(--e-3);
  padding: var(--e-3) var(--e-4);
  border-radius: var(--r-md);
  border: 1px solid var(--borda);
  background: var(--superficie);
  font-size: var(--t-sm);
  line-height: 1.5;
}
.aviso .icone { flex: none; margin-top: 1px; }
.aviso .icone svg { width: 18px; height: 18px; }
.aviso strong { display: block; margin-bottom: 2px; font-weight: 700; }

.aviso--verde { background: var(--verde-fraco); border-color: rgba(61,220,132,.28); }
.aviso--verde .icone { color: var(--verde); }
.aviso--ambar { background: var(--ambar-fraco); border-color: rgba(255, 197, 61,.28); }
.aviso--ambar .icone { color: var(--ambar); }
/* O nível mais grave perdeu o vermelho para a marca e ganhou peso em troca: a
   barra da esquerda separa ele do âmbar sem depender só do matiz — os dois
   aparecem um embaixo do outro na tela Hoje, e ali a diferença tem de ser
   visível de relance. */
.aviso--vermelho {
  background: var(--alerta-fraco);
  border-color: rgba(255,140,26,.34);
  border-left: 4px solid var(--alerta);
  padding-left: calc(var(--e-4) - 3px);
}
.aviso--vermelho .icone { color: var(--alerta); }
.aviso--vermelho strong { color: var(--alerta); }
.aviso--acento { background: var(--acento-fraco); border-color: var(--acento-fraco-2); }
.aviso--acento .icone { color: var(--acento); }
.aviso--azul { background: var(--azul-fraco); border-color: rgba(88,166,255,.28); }
.aviso--azul .icone { color: var(--azul); }

/* ------------------------------------------------------------------ */
/* Folha inferior (detalhe de exercício, escolhas)                    */
/* ------------------------------------------------------------------ */
.veu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(4, 6, 8, 0.66);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: aparecer var(--normal) both;
}
@keyframes aparecer { from { opacity: 0 } to { opacity: 1 } }

.folha {
  width: 100%;
  max-width: 520px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: var(--superficie);
  border: 1px solid var(--borda);
  border-bottom: 0;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  box-shadow: var(--sombra-3);
  animation: subir var(--lento) both;
}
@keyframes subir { from { transform: translateY(30px) } to { transform: none } }

.folha-alca {
  width: 38px;
  height: 4px;
  border-radius: var(--r-pill);
  background: var(--borda-forte);
  margin: 10px auto 2px;
  flex: none;
}

.folha-cabeca {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--e-3);
  padding: var(--e-3) var(--e-4) var(--e-3);
  flex: none;
}

.folha-corpo {
  padding: 0 var(--e-4) calc(var(--e-5) + env(safe-area-inset-bottom));
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--e-4);
}

.fechar {
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--superficie-2);
  color: var(--texto-2);
}
.fechar:hover { background: var(--superficie-3); color: var(--texto); }

@media (min-width: 640px) {
  .veu { align-items: center; }
  .folha {
    border-radius: var(--r-xl);
    border-bottom: 1px solid var(--borda);
    max-height: 84vh;
  }
}

/* ------------------------------------------------------------------ */
/* Aviso passageiro                                                   */
/* ------------------------------------------------------------------ */
#avisos {
  position: fixed;
  left: 50%;
  bottom: calc(var(--altura-navegacao) + 16px);
  transform: translateX(-50%);
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: var(--e-2);
  width: max-content;
  max-width: calc(100vw - 32px);
  pointer-events: none;
}

.torrada {
  display: flex;
  align-items: center;
  gap: var(--e-3);
  padding: 12px var(--e-4);
  border-radius: var(--r-md);
  background: var(--superficie-3);
  border: 1px solid var(--borda-forte);
  box-shadow: var(--sombra-2);
  font-size: var(--t-sm);
  font-weight: 600;
  animation: torrada-entra var(--normal) both;
}
.torrada svg { width: 17px; height: 17px; flex: none; }
.torrada--ok svg { color: var(--acento); }
.torrada--erro svg { color: var(--alerta); }
.torrada.saindo { animation: torrada-sai var(--normal) both; }

@keyframes torrada-entra { from { opacity: 0; transform: translateY(12px) } to { opacity: 1; transform: none } }
@keyframes torrada-sai { to { opacity: 0; transform: translateY(8px) } }

/* ------------------------------------------------------------------ */
/* Gráficos                                                           */
/* ------------------------------------------------------------------ */
.gr {
  width: 100%;
  overflow: visible;
}
.gr .eixo { stroke: var(--borda); stroke-width: 1; }
.gr .grade { stroke: var(--borda); stroke-width: 1; stroke-dasharray: 3 5; opacity: .55; }
.gr .rot { fill: var(--texto-3); font-size: 10px; font-weight: 600; }
.gr .linha-dado { fill: none; stroke: var(--acento); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.gr .area-dado { fill: url(#degrade-acento); }
.gr .ponto { fill: var(--acento); stroke: var(--fundo); stroke-width: 2.5; }
.gr .col { fill: var(--superficie-3); rx: 3; transition: fill var(--rapido); }
.gr .col.forte { fill: var(--acento); }
.gr .col.media { fill: var(--acento-escuro); }
.gr .col.fraca { fill: var(--superficie-3); }

/* Grade de constância (últimas semanas). */
.constancia {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.constancia i {
  aspect-ratio: 1;
  border-radius: 4px;
  background: var(--superficie-2);
  border: 1px solid var(--borda);
}
.constancia i.n1 { background: rgba(255, 46, 46, 0.22); border-color: transparent; }
.constancia i.n2 { background: rgba(255, 46, 46, 0.5); border-color: transparent; }
.constancia i.n3 { background: var(--acento); border-color: transparent; }
.constancia i.falta { background: var(--alerta-fraco); border-color: rgba(255,140,26,.25); }

/* ------------------------------------------------------------------ */
/* Mapa muscular                                                      */
/* ------------------------------------------------------------------ */
.corpo-svg { width: 100%; height: auto; }
.corpo-svg .silhueta {
  fill: var(--superficie-2);
  stroke: var(--borda-forte);
  stroke-width: 1.1;
  stroke-linejoin: round;
}
.corpo-svg .musculo {
  fill: var(--superficie-3);
  stroke: rgba(10, 12, 14, 0.55);
  stroke-width: 0.8;
  transition: fill var(--normal);
}
.corpo-svg .musculo.primario { fill: var(--acento); }
.corpo-svg .musculo.secundario { fill: var(--acento-escuro); opacity: .85; }
.corpo-svg .contorno {
  fill: none;
  stroke: var(--borda-forte);
  stroke-width: 1.1;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.corpo-svg .rotulo-corpo {
  fill: var(--texto-3);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.corpo-svg .musculo.clicavel { cursor: pointer; }
.corpo-svg .musculo.clicavel:hover { fill: var(--borda-forte); }

.corpos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--e-3);
  align-items: end;
}

/* Legenda do mapa de calor. */
.escala {
  display: flex;
  align-items: center;
  gap: var(--e-2);
  font-size: var(--t-xs);
  color: var(--texto-3);
  font-weight: 600;
}
.escala .faixa {
  flex: 1;
  height: 7px;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--superficie-3), var(--acento-escuro), var(--acento));
}

/* ------------------------------------------------------------------ */
/* Tabela (painel do personal no computador)                          */
/* ------------------------------------------------------------------ */
.rolagem-x {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table.tab {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-sm);
}
table.tab th {
  text-align: left;
  padding: var(--e-2) var(--e-3);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--texto-3);
  border-bottom: 1px solid var(--borda);
  white-space: nowrap;
}
table.tab td {
  padding: var(--e-3);
  border-bottom: 1px solid var(--borda);
  vertical-align: middle;
}
table.tab tr:last-child td { border-bottom: 0; }
table.tab tbody tr { transition: background var(--rapido); }
table.tab tbody tr:hover { background: var(--superficie-2); }

/* ------------------------------------------------------------------ */
/* Marca                                                              */
/* ------------------------------------------------------------------ */
.marca {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.marca-sinal {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 8px;
  background: var(--acento);
  color: var(--sobre-acento);
  display: grid;
  place-items: center;
}
.marca-sinal svg { width: 16px; height: 16px; stroke-width: 2.6; }

/* ------------------------------------------------------------------ */
/* Fotos comparativas da avaliação                                    */
/* ------------------------------------------------------------------ */
/* Proporção fixa de retrato nos três lugares: a comparação "antes e depois" só
   vale se as duas imagens ocuparem exatamente o mesmo espaço — uma foto mais
   alta que a outra já parece um corpo diferente antes de qualquer medida. */
.fotos-grade {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--e-3);
}
.foto-caixa {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.foto-alvo {
  aspect-ratio: 3 / 4;
  border-radius: var(--r-md);
  border: 1px solid var(--borda);
  background: var(--superficie-2);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.foto-alvo img { width: 100%; height: 100%; object-fit: cover; }

/* A comparação é o centro da aba: duas colunas iguais, grandes o bastante para
   se ver diferença. O teto existe porque num monitor largo o cartão inteiro
   viraria duas fotos de meio metro. */
.fotos-par {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--e-3);
  margin-top: 6px;
  max-width: 420px;
}

/* A tira é MINIATURA: colunas de largura fixa, para duas fotos não esticarem
   até virar a comparação de novo — a tira responde "o que foi registrado
   nesta data", e a comparação responde "o que mudou". */
.fotos-tira {
  display: grid;
  grid-template-columns: repeat(auto-fill, 104px);
  gap: var(--e-3);
}
.fotos-par figure,
.fotos-tira figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fotos-par img,
.fotos-tira img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--r-md);
  border: 1px solid var(--borda);
  background: var(--superficie-2);
}
.fotos-par figcaption,
.fotos-tira figcaption {
  font-size: var(--t-xs);
  color: var(--texto-3);
  text-align: center;
}
