/* SENDA Fight Performance — branco de base, preto no texto, amarelo como a faixa. */
:root {
  --preto: #000;
  --texto: #000;
  --texto-2: #4b5157;
  --linha: #d6d9dc;
  --lona: #f2f3f4;
  --branco: #fff;
  --faixa: #f3c63f;
  --faixa-escura: #d9a90f;
  --alerta: #a3261b;
  --alerta-fundo: #fbeceb;
  --ok: #17603a;
  --raio: 4px;
  --largura: 1120px;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --corpo: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--branco); color: var(--texto);
  font-family: var(--corpo); font-size: 17px; line-height: 1.55;
  font-variant-numeric: tabular-nums;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-stretch: 125%; line-height: 1.08; margin: 0; text-wrap: balance; }
h1 { font-weight: 800; text-transform: uppercase; letter-spacing: 0.01em; font-size: clamp(2.1rem, 6.2vw, 4.4rem); }
h2 { font-weight: 750; font-size: clamp(1.55rem, 3.6vw, 2.5rem); }
h3 { font-weight: 700; font-size: 1.15rem; font-stretch: 112%; line-height: 1.25; }
p { margin: 0; max-width: 62ch; }
:focus-visible { outline: 3px solid var(--preto); outline-offset: 3px; box-shadow: 0 0 0 6px var(--faixa); }

.envolve { width: min(100% - 2.5rem, var(--largura)); margin-inline: auto; }
.pula { position: absolute; left: -999px; }
.pula:focus { left: 1rem; top: 1rem; background: var(--branco); padding: .75rem 1rem; z-index: 10; }
.secundario { color: var(--texto-2); }
.pequeno { font-size: .9rem; }

/* Botões: o amarelo é a ação principal da tela, sempre com texto preto. */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 52px; padding: .8rem 1.5rem; border: 2px solid var(--preto); border-radius: var(--raio);
  background: var(--faixa); color: var(--preto); font: inherit; font-weight: 700; font-stretch: 112%;
  text-decoration: none; cursor: pointer; transition: background .15s, transform .1s;
}
.botao:hover { background: var(--faixa-escura); }
.botao:active { transform: translateY(1px); }
.botao.contorno { background: var(--branco); }
.botao.contorno:hover { background: var(--lona); }
.botao.escuro { background: var(--preto); color: var(--branco); }
.botao.escuro:hover { background: #2a2a2a; }
.botao.largo { width: 100%; }
.botao[disabled] { opacity: .45; cursor: not-allowed; }
.link-botao { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; color: inherit; min-height: 44px; }

/* Topo */
.topo { border-bottom: 1px solid var(--linha); background: var(--branco); position: sticky; top: 0; z-index: 5; }
.topo .envolve { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.marca { display: flex; align-items: center; gap: .65rem; text-decoration: none; font-family: var(--display); font-stretch: 125%; font-weight: 800; letter-spacing: .22em; font-size: 1.05rem; }
.marca .simbolo { width: 46px; height: 46px; flex: none; background: url(/img/senda-logo.png) 50% 51% / 210% no-repeat; }
.marca small { display: block; font-weight: 500; letter-spacing: .2em; font-size: .56rem; color: var(--texto-2); }
.topo nav { display: flex; align-items: center; gap: 1.25rem; }
.topo nav a { text-decoration: none; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.topo nav a:hover { text-decoration: underline; }
.topo nav .botao { min-height: 44px; padding: .5rem 1rem; }
.topo nav .some-celular { display: none; }
.topo nav form { display: contents; }
@media (max-width: 520px) {
  .topo .envolve { width: calc(100% - 1.5rem); gap: .5rem; }
  .marca { font-size: .92rem; letter-spacing: .14em; gap: .45rem; }
  .marca small { display: none; }
  .marca .simbolo { width: 40px; height: 40px; }
  .topo nav { gap: .8rem; }
  .topo nav .botao { padding: .45rem .8rem; }
}
@media (min-width: 760px) { .topo nav .some-celular { display: inline-flex; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(3rem, 7vw, 5rem); }
.hero .envolve { position: relative; display: grid; gap: 2.5rem; }
.hero h1 { max-width: 13ch; }
.hero .sub { font-size: 1.2rem; margin-top: 1.4rem; max-width: 46ch; }
.hero .acoes { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; align-items: center; }
.hero .faixa-fundo { position: absolute; inset: auto -10% -8% -10%; width: 120%; height: auto; pointer-events: none; }
@media (min-width: 900px) { .hero .envolve { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 3.5rem; } }

/* Calculadora do hero */
.conta { position: relative; background: var(--branco); border: 2px solid var(--preto); border-radius: var(--raio); padding: 1.4rem; box-shadow: 8px 8px 0 var(--preto); }
.conta h2 { font-size: 1.15rem; font-stretch: 112%; margin-bottom: 1rem; }
.conta .par { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.conta ol { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: 0; }
.conta li { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: baseline; padding: .8rem 0; border-top: 1px solid var(--linha); }
.conta li b { font-family: var(--display); font-stretch: 125%; font-size: 1.5rem; font-weight: 800; white-space: nowrap; }
.conta li.final { border-top: 2px solid var(--preto); }
.conta li.final span { font-weight: 700; }
.conta .selo { display: inline-block; background: var(--faixa); padding: .15rem .55rem; font-weight: 700; font-size: .95rem; border-radius: 2px; }
.conta .nota { margin-top: .9rem; font-size: .88rem; color: var(--texto-2); }

/* Seções */
.secao { padding: clamp(3rem, 8vw, 6rem) 0; }
.secao.lona { background: var(--lona); }
.secao.noite { background: var(--preto); color: var(--branco); }
.secao.noite .secundario { color: #c7cbcf; }
.secao > .envolve > h2 { max-width: 20ch; }
.secao .abre { margin-top: 1rem; font-size: 1.12rem; max-width: 58ch; }

/* Passos: a senda. É uma sequência de verdade, por isso numerada. */
.passos { list-style: none; counter-reset: passo; margin: 2.8rem 0 0; padding: 0; display: grid; gap: 0; position: relative; }
.passos li { counter-increment: passo; position: relative; padding: 0 0 2.2rem 4.2rem; }
.passos li::before {
  content: counter(passo); position: absolute; left: 0; top: -.1rem; width: 2.8rem; height: 2.8rem;
  display: grid; place-items: center; background: var(--preto); color: var(--branco); border-radius: 50%;
  font-family: var(--display); font-stretch: 125%; font-weight: 800; z-index: 1;
}
.passos li::after { content: ""; position: absolute; left: calc(1.4rem - 3px); top: 2.6rem; bottom: -.1rem; width: 6px; background: var(--faixa); }
.passos li:last-child { padding-bottom: 0; }
.passos li:last-child::after { display: none; }
.passos li:last-child::before { background: var(--faixa); color: var(--preto); border: 2px solid var(--preto); }
.passos p { margin-top: .45rem; color: var(--texto-2); }
@media (min-width: 900px) {
  .passos { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
  .passos li { padding: 4rem 0 0; }
  .passos li::after { left: 2.8rem; right: -2.5rem; top: calc(1.3rem - 3px); bottom: auto; width: auto; height: 6px; }
}

/* Duas colunas: consultoria × assessoria */
.contraste { display: grid; gap: 0; margin-top: 2.5rem; border: 1px solid #3a3a3a; }
.contraste > div { padding: 1.6rem; }
.contraste > div + div { border-top: 1px solid #3a3a3a; }
.contraste .sim { background: var(--faixa); color: var(--preto); }
.contraste h3 { margin-bottom: .8rem; }
.contraste ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .45rem; }
@media (min-width: 760px) { .contraste { grid-template-columns: 1fr 1.25fr; } .contraste > div + div { border-top: 0; border-left: 1px solid #3a3a3a; } }

/* Grade simples */
.grade { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
@media (min-width: 760px) { .grade.c2 { grid-template-columns: repeat(2, 1fr); } .grade.c3 { grid-template-columns: repeat(3, 1fr); } }
.item { border-top: 3px solid var(--preto); padding-top: 1rem; }
.item p { margin-top: .5rem; color: var(--texto-2); }

/* Ciclo de 8 semanas */
.ciclo { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(9, 1fr); border: 2px solid var(--preto); border-radius: var(--raio); overflow: hidden; background: var(--branco); }
.ciclo div { padding: .7rem .2rem; text-align: center; font-weight: 700; border-left: 1px solid var(--linha); font-size: .9rem; }
.ciclo div:first-child { border-left: 0; }
.ciclo .marco { background: var(--faixa); }
.ciclo-legenda { display: grid; gap: .6rem; margin-top: 1.2rem; padding: 0; list-style: none; }
.ciclo-legenda b { display: inline-block; min-width: 6.5rem; }

/* Planos */
.planos { display: grid; gap: 1.5rem; margin-top: 2.5rem; align-items: stretch; }
@media (min-width: 900px) { .planos { grid-template-columns: repeat(3, 1fr); } }
.plano { border: 1px solid var(--linha); border-radius: var(--raio); padding: 1.6rem; background: var(--branco); display: flex; flex-direction: column; gap: 1rem; }
.plano.destaque { border: 2px solid var(--preto); box-shadow: 8px 8px 0 var(--faixa); }
.plano .preco { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 2.1rem; line-height: 1; }
.plano .preco small { font-size: .95rem; font-weight: 500; font-stretch: 100%; color: var(--texto-2); }
.plano ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .45rem; flex: 1; }
.plano .selo { align-self: flex-start; background: var(--faixa); padding: .15rem .6rem; font-weight: 700; font-size: .85rem; border-radius: 2px; }

/* Dúvidas */
.duvidas { margin-top: 2rem; border-top: 1px solid var(--linha); }
.duvidas details { border-bottom: 1px solid var(--linha); }
.duvidas summary { cursor: pointer; padding: 1.1rem 2rem 1.1rem 0; font-weight: 700; list-style: none; position: relative; min-height: 52px; }
.duvidas summary::-webkit-details-marker { display: none; }
.duvidas summary::after { content: "+"; position: absolute; right: .2rem; top: .8rem; font-size: 1.5rem; font-weight: 400; }
.duvidas details[open] summary::after { content: "–"; }
.duvidas details p { padding-bottom: 1.2rem; color: var(--texto-2); }

.rodape { border-top: 1px solid var(--linha); padding: 2rem 0 3rem; font-size: .9rem; color: var(--texto-2); }
.rodape .envolve { display: grid; gap: .6rem; }

/* Formulários */
.pagina { padding: 2rem 0 4rem; }
.estreito { width: min(100% - 2.5rem, 560px); margin-inline: auto; }
.medio { width: min(100% - 2.5rem, 760px); margin-inline: auto; }
.pagina h1 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); text-transform: none; letter-spacing: 0; }
.pagina .abre { margin-top: .7rem; color: var(--texto-2); }
form.pilha, .pilha { display: grid; gap: 1.15rem; margin-top: 1.6rem; }
.campo { display: grid; gap: .35rem; }
.campo label, fieldset legend { font-weight: 700; }
.campo .dica { font-size: .88rem; color: var(--texto-2); }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], input[inputmode], select, textarea {
  width: 100%; min-height: 52px; padding: .7rem .9rem; border: 2px solid var(--preto); border-radius: var(--raio);
  background: var(--branco); color: var(--texto); font: inherit;
}
textarea { min-height: 96px; resize: vertical; }
.com-unidade { position: relative; }
.com-unidade input { padding-right: 3.2rem; }
.com-unidade span { position: absolute; right: .9rem; top: 50%; transform: translateY(-50%); color: var(--texto-2); font-weight: 600; pointer-events: none; }
.par { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: .6rem; min-width: 0; }
.opcao { display: flex; gap: .8rem; align-items: flex-start; border: 2px solid var(--linha); border-radius: var(--raio); padding: .85rem 1rem; cursor: pointer; min-height: 52px; }
.opcao:has(input:checked) { border-color: var(--preto); background: var(--lona); }
.opcao input { width: 22px; height: 22px; margin: .15rem 0 0; accent-color: #000; flex: none; }
.opcao small { display: block; color: var(--texto-2); }
.simnao { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid var(--linha); }
.simnao .escolha { display: flex; gap: .4rem; }
.simnao .escolha label { border: 2px solid var(--linha); border-radius: var(--raio); min-width: 62px; min-height: 48px; display: grid; place-items: center; cursor: pointer; font-weight: 700; }
.simnao .escolha input { position: absolute; opacity: 0; }
.simnao .escolha label:has(input:checked) { border-color: var(--preto); background: var(--preto); color: var(--branco); }
.simnao .escolha label:has(input:focus-visible) { outline: 3px solid var(--preto); outline-offset: 3px; }
.erro { background: var(--alerta-fundo); border-left: 5px solid var(--alerta); padding: .9rem 1rem; margin-top: 1.2rem; }
.erro ul { margin: .3rem 0 0; padding-left: 1.1rem; }
.aviso { background: var(--lona); border-left: 5px solid var(--preto); padding: .9rem 1rem; }
.aviso.faixa { border-left-color: var(--faixa-escura); background: #fdf6dc; }
.sucesso { background: #e9f4ed; border-left: 5px solid var(--ok); padding: .9rem 1rem; margin-top: 1.2rem; }

/* Progresso do cadastro */
.etapas { display: flex; gap: 6px; margin: 0 0 1.2rem; padding: 0; list-style: none; }
.etapas li { flex: 1; height: 8px; background: var(--linha); border-radius: 2px; }
.etapas li.feita { background: var(--preto); }
.etapas li.atual { background: var(--faixa); outline: 2px solid var(--preto); }
.etapa-rotulo { font-weight: 700; font-size: .9rem; margin-bottom: .4rem; }

/* Área logada */
.cartao { border: 1px solid var(--linha); border-radius: var(--raio); padding: 1.3rem; background: var(--branco); }
.cartao.forte { border: 2px solid var(--preto); }
.cartao h2 { font-size: 1.25rem; font-stretch: 112%; }
.cartao + .cartao, .cartao + .aviso, .aviso + .cartao { margin-top: 1.2rem; }
.linha-tempo { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: 0; }
.linha-tempo li { position: relative; padding: 0 0 1.3rem 2.4rem; }
.linha-tempo li::before { content: ""; position: absolute; left: 0; top: .2rem; width: 1.3rem; height: 1.3rem; border-radius: 50%; border: 2px solid var(--preto); background: var(--branco); }
.linha-tempo li::after { content: ""; position: absolute; left: calc(.65rem - 1px); top: 1.5rem; bottom: -.2rem; width: 2px; background: var(--linha); }
.linha-tempo li:last-child::after { display: none; }
.linha-tempo li.feito::before { background: var(--preto); }
.linha-tempo li.agora::before { background: var(--faixa); }
.linha-tempo li.agora { font-weight: 700; }
.linha-tempo small { display: block; font-weight: 400; color: var(--texto-2); }

.numeros { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--linha); border: 1px solid var(--linha); margin-top: 1rem; }
@media (min-width: 760px) { .numeros.c4 { grid-template-columns: repeat(4, 1fr); } }
.numeros > div { background: var(--branco); padding: .9rem 1rem; }
.numeros dt { font-size: .85rem; color: var(--texto-2); }
.numeros dd { margin: .15rem 0 0; font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 1.45rem; line-height: 1.15; }
.numeros dd small { font-size: .8rem; font-weight: 500; font-stretch: 100%; color: var(--texto-2); }
.numeros dd.nota, .numeros .pendente dd.nota { font-family: var(--corpo); font-stretch: 100%; font-weight: 400; font-size: .88rem; color: var(--texto-2); line-height: 1.4; margin-top: .3rem; }
.numeros .pendente dd { font-size: 1rem; font-weight: 600; font-stretch: 100%; color: var(--texto-2); }

.tarefas { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .6rem; }
.tarefas a { display: flex; justify-content: space-between; gap: 1rem; align-items: center; border: 2px solid var(--linha); border-radius: var(--raio); padding: .9rem 1rem; text-decoration: none; min-height: 56px; }
.tarefas a:hover { border-color: var(--preto); }
.tarefas .estado { font-size: .85rem; font-weight: 700; white-space: nowrap; }
.tarefas .estado.ok::before { content: "✓ "; }

.treino-dia { display: grid; gap: .9rem; margin-top: 1rem; }
.exercicio { border: 1px solid var(--linha); border-radius: var(--raio); padding: 1rem; }
.exercicio h3 { font-size: 1.05rem; }
.exercicio .receita { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 1.25rem; margin-top: .3rem; }
.exercicio .receita .sem-carga { display: block; font-family: var(--corpo); font-size: .95rem; font-weight: 600; font-stretch: 100%; margin-top: .15rem; }
.series { display: grid; gap: .5rem; margin-top: .8rem; }
.serie { display: grid; grid-template-columns: 2.2rem 1fr 1fr; gap: .5rem; align-items: center; }
.serie b { font-size: .9rem; color: var(--texto-2); }
.serie input { min-height: 48px; padding: .5rem .6rem; text-align: center; }
.pse { display: grid; grid-template-columns: repeat(6, 1fr); gap: .35rem; }
@media (min-width: 560px) { .pse { grid-template-columns: repeat(11, 1fr); } }
.pse label { border: 2px solid var(--linha); border-radius: var(--raio); min-height: 48px; display: grid; place-items: center; font-weight: 700; cursor: pointer; }
.pse input { position: absolute; opacity: 0; }
.pse label:has(input:checked) { background: var(--preto); color: var(--branco); border-color: var(--preto); }
.liberado-por { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--linha); font-size: .9rem; color: var(--texto-2); }

/* Professor */
.largo-total { width: min(100% - 2.5rem, 1320px); margin-inline: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .7rem .6rem; border-bottom: 1px solid var(--linha); vertical-align: top; }
th { font-size: .85rem; color: var(--texto-2); font-weight: 600; }
.rolagem { overflow-x: auto; }
.etiqueta { display: inline-block; padding: .1rem .55rem; border-radius: 2px; font-size: .82rem; font-weight: 700; border: 1.5px solid var(--preto); white-space: nowrap; }
.etiqueta.cheia { background: var(--preto); color: var(--branco); }
.etiqueta.faixa { background: var(--faixa); }
.etiqueta.alerta { border-color: var(--alerta); color: var(--alerta); background: var(--alerta-fundo); }
.revisao { display: grid; gap: 1.2rem; margin-top: 1.5rem; align-items: start; }
@media (min-width: 1100px) { .revisao { grid-template-columns: 300px 1fr; } }
.revisao .cartao + .cartao { margin-top: 1rem; }
.lista-def { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; margin: .8rem 0 0; font-size: .95rem; }
.lista-def dt { color: var(--texto-2); }
.lista-def dd { margin: 0; font-weight: 600; }
.tabela-treino input { min-height: 44px; padding: .4rem .5rem; width: 5.2rem; }
.tabela-treino select { min-height: 44px; padding: .4rem .5rem; min-width: 13rem; }
.tabela-treino .calc { color: var(--texto-2); white-space: nowrap; }
.acoes-finais { display: grid; gap: 1.2rem; margin-top: 1.5rem; }
@media (min-width: 900px) { .acoes-finais { grid-template-columns: 1fr 1fr; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .botao { transition: none; } }

/* Ajustes após teste no navegador */
.revisao > div { min-width: 0; }
.acoes-finais { align-items: start; }
.pilha { align-content: start; }
.cartao.pilha > h2 { margin: 0; }

/* ---------- Área do aluno: abas, calendário, evolução ---------- */
.abas { border-bottom: 1px solid var(--linha); background: var(--branco); position: sticky; top: 68px; z-index: 4; }
.abas .medio { display: flex; gap: 0; }
.abas a { flex: 1; text-align: center; text-decoration: none; font-weight: 700; padding: .95rem .4rem .8rem; min-height: 48px; border-bottom: 4px solid transparent; color: var(--texto-2); }
.abas a:hover { color: var(--texto); }
.abas a[aria-current="page"] { color: var(--texto); border-bottom-color: var(--faixa); }
@media (max-width: 520px) { .abas { top: 60px; } .abas a { font-size: .95rem; } }

.acoes-linha { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1rem; }
.semana-progresso { display: flex; gap: 6px; margin: .9rem 0 .7rem; }
.semana-progresso span { flex: 1; height: 14px; border: 2px solid var(--preto); border-radius: 2px; background: var(--branco); }
.semana-progresso span.feito { background: var(--faixa); }

.lista-sessoes { display: grid; gap: .8rem; margin-top: 1rem; }
details.sessao { border: 1px solid var(--linha); border-radius: var(--raio); padding: 0 1.1rem 1.1rem; background: var(--branco); }
details.sessao[open] { border: 2px solid var(--preto); }
details.sessao > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0; min-height: 60px; margin-bottom: -1.1rem; }
details.sessao[open] > summary { margin-bottom: 0; border-bottom: 1px solid var(--linha); }
details.sessao > summary::-webkit-details-marker { display: none; }
details.sessao > summary small { display: block; color: var(--texto-2); font-weight: 400; }
details.sessao > summary strong { font-family: var(--display); font-stretch: 112%; }

.calendario { margin-top: 1.5rem; }
.calendario-topo { display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; gap: .5rem; margin-bottom: .8rem; }
.calendario-topo h2 { font-size: 1.2rem; font-stretch: 112%; text-align: center; }
.calendario-topo h2::first-letter { text-transform: uppercase; }
.calendario-topo .botao { padding: 0; min-height: 48px; }
.calendario table { table-layout: fixed; border-collapse: separate; border-spacing: 3px; }
.calendario th { text-align: center; padding: .3rem 0; border: 0; font-size: .8rem; }
.calendario td { padding: 0; border: 0; height: 62px; vertical-align: top; }
.calendario td a, .calendario td .dia-fora { display: flex; flex-direction: column; align-items: center; gap: 3px; height: 100%; padding: 5px 2px; border: 1px solid var(--linha); border-radius: var(--raio); text-decoration: none; }
.calendario td a:hover { border-color: var(--preto); }
.calendario td .dia-fora { color: #9aa0a6; border-color: transparent; background: var(--lona); }
.calendario td.hoje a { border: 2px solid var(--preto); }
.calendario td.escolhido a { background: var(--faixa); border: 2px solid var(--preto); }
.calendario .num { font-weight: 700; font-size: .95rem; line-height: 1.1; }
.calendario .marcas { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; }
.marca-treino { position: relative; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-size: .68rem; font-weight: 800; line-height: 1; color: #fff; }
.marca-treino .pula { position: absolute; left: -9999px; }
.marca-treino.forca { background: #2a78d6; }
.marca-treino.aerobico { background: #d9a90f; color: #000; }
.marca-treino.jiu { background: #6250d6; }
.marca-treino.faltou { background: var(--branco); color: var(--texto-2); border: 1.5px dashed var(--texto-2); text-decoration: line-through; }
.legenda { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; padding: 0; margin: .9rem 0 .4rem; font-size: .88rem; }
.legenda li { display: inline-flex; align-items: center; gap: .4rem; }
.legenda .amostra { width: 12px; height: 12px; border-radius: 2px; }

.registros { list-style: none; padding: 0; margin: .8rem 0 0; }
.registros li { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; padding: .8rem 0; border-top: 1px solid var(--linha); }
.registros li div { display: grid; gap: .15rem; }
.exercicio-registro { padding: 1rem; margin-top: .8rem; display: grid; gap: .8rem; }
.exercicio-registro h3 { font-size: 1.02rem; }
.rotulo { font-weight: 700; }
.reps-series { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: .5rem; }
.reps-series input { text-align: center; padding: .5rem .3rem; }

.grafico { width: 100%; height: auto; margin-top: .6rem; overflow: visible; }
.g-grade { stroke: #e3e5e8; stroke-width: 1; }
.g-base { stroke: #c9cdd1; stroke-width: 1; }
.g-meta { stroke: var(--texto-2); stroke-width: 1.5; stroke-dasharray: 5 4; }
.g-eixo { font-size: 11px; fill: var(--texto-2); font-family: var(--corpo); }
.g-valor { font-size: 12px; font-weight: 700; fill: var(--texto); font-family: var(--corpo); }
.g-linha { fill: none; stroke: var(--preto); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.g-ponto { fill: var(--preto); stroke: var(--branco); stroke-width: 2; }
.multiplos { display: grid; gap: 1.2rem; margin-top: 1rem; }
@media (min-width: 620px) { .multiplos { grid-template-columns: repeat(2, 1fr); } }
figure { margin: 1rem 0 0; }
figcaption { font-weight: 700; }
section.cartao { margin-top: 1.2rem; }
.numeros + section.cartao { margin-top: 1.5rem; }

.grafico.barras { max-width: 520px; }
.valor-unico { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 1.6rem; margin-top: .4rem; }
.valor-unico small { font-family: var(--corpo); font-stretch: 100%; font-weight: 400; font-size: .9rem; color: var(--texto-2); }
.cartao table th[scope="row"] { font-size: .95rem; color: var(--texto); }
.legenda .amostra.tracejada { width: 20px; height: 0; border-top: 2px dashed var(--texto-2); border-radius: 0; }

/* ---------- Detalhe do treino e comentários ---------- */
.registro-item { padding: 1.1rem 0; border-top: 1px solid var(--linha); display: grid; gap: .7rem; scroll-margin-top: 140px; }
.registro-item:first-of-type { margin-top: .8rem; }
.registro-item:target { box-shadow: -6px 0 0 var(--faixa); padding-left: .9rem; margin-left: -.9rem; }
.registro-topo { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.registro-item h3 { font-size: 1.08rem; }
.registro-item h4 { margin: .3rem 0 0; font-size: .95rem; }
.tabela-registro th, .tabela-registro td { padding: .5rem .5rem; font-size: .93rem; }
.comentarios { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.comentarios li { background: #fdf6dc; border-left: 5px solid var(--faixa-escura); padding: .7rem .9rem; }
.comentarios p { margin-top: .25rem; max-width: none; white-space: pre-line; }
.novos-comentarios { border-color: var(--preto); box-shadow: 6px 6px 0 var(--faixa); }
.calendario td a, .calendario td .dia-fora { position: relative; }
.tem-comentario { position: absolute; top: 3px; right: 3px; width: 9px; height: 9px; background: var(--preto); border-radius: 50%; border: 1.5px solid var(--branco); }
.tem-comentario.na-legenda { position: static; display: inline-block; }
section#dia { scroll-margin-top: 130px; }

/* ---------- Conta e textos legais ---------- */
.texto-longo h2 { font-size: 1.2rem; font-stretch: 112%; margin-top: 2rem; }
.texto-longo p, .texto-longo ul { margin-top: .7rem; max-width: 70ch; }
.texto-longo ul { padding-left: 1.2rem; display: grid; gap: .4rem; }
.texto-longo table { margin-top: .8rem; min-width: 600px; }
@media (max-width: 520px) { .topo nav { gap: .65rem; font-size: .95rem; } }
