/* ==========================================================================
   App do aluno (PWA em /app): celular primeiro.
   Softsul Software & Network

   Escuro nas cores da Venatio (azul petróleo #182633, cinza azulado #627180,
   destaque #C1D1DC), com o que os apps de hoje usam: vidro fosco no topo e
   no menu, cartões grandes com profundidade suave, gradientes nos
   destaques, anéis de progresso, faixa de dias que desliza, toque com
   resposta e respeito ao entalhe e à barra do iPhone (safe-area).
   Larguras e anéis vêm do app-aluno.js (a CSP não aceita estilo na página).

   Tema: o aluno escolhe no Perfil entre o do aparelho, o claro e o escuro.
   A escolha vai no data-tema do <html> (claro ou escuro; sem ele, segue o
   aparelho). As cores são todas variáveis: o claro só troca os valores.
   ========================================================================== */

@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url(fontes/open-sans-latin-wght-normal.woff2) format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url(fontes/open-sans-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+2113, U+A720-A7FF; }

:root{
  --fundo: #0E1922;
  --fundo-2: #132330;
  --cartao: rgba(255,255,255,.055);
  --cartao-forte: rgba(255,255,255,.09);
  --borda: rgba(255,255,255,.08);
  --texto: #F3F6F8;
  --suave: #93A4B2;
  --destaque: #C1D1DC;
  --azul: #5AA9E6;
  --verde: #34D399;
  --ambar: #FBBF24;
  --vermelho: #F87171;
  --raio: 22px;
  --sombra: 0 10px 30px rgba(0,0,0,.35);
  --grad: linear-gradient(135deg, #2B5C80 0%, #1B3A52 55%, #182633 100%);
  --grad-botao: linear-gradient(135deg, #E9F1F6 0%, #C1D1DC 100%);
  --botao-texto: #0E1922;
  --botao-sub: #304657;
  --vidro: rgba(14,25,34,.62);
  --vidro-forte: rgba(14,25,34,.72);
  --vidro-menu: rgba(19,35,48,.72);
  --trilho: rgba(255,255,255,.12);
  --brilho-1: rgba(90,169,230,.18);
  --brilho-2: rgba(193,209,220,.10);
  --anel-foto: rgba(193,209,220,.5);
  --ok-fundo: rgba(52,211,153,.12);  --ok-texto: #A7F3D0;  --ok-borda: rgba(52,211,153,.25);
  --ruim-fundo: rgba(248,113,113,.12); --ruim-texto: #FECACA; --ruim-borda: rgba(248,113,113,.28);
  --at-fundo: rgba(251,191,36,.12);  --at-texto: #FDE68A;  --at-borda: rgba(251,191,36,.28);
  --wod-texto: #FFD7C2; --warmup-texto: #BFE1FB; --skill-texto: #A7F3D0;
  --topo: env(safe-area-inset-top, 0px);
  --base: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
/* Tema claro: escolhido no Perfil, ou o do aparelho quando não há escolha. */
@media (prefers-color-scheme: light){
  :root:not([data-tema="escuro"]){
    --fundo: #EEF2F5; --fundo-2: #FFFFFF; --cartao: #FFFFFF; --cartao-forte: #E6ECF1; --borda: rgba(20,40,60,.10);
    --texto: #13212C; --suave: #5E6F7E; --destaque: #2B5C80;
    --azul: #2563EB; --verde: #059669; --ambar: #B45309; --vermelho: #DC2626;
    --sombra: 0 8px 24px rgba(20,40,60,.08);
    --grad-botao: linear-gradient(135deg, #2B5C80 0%, #1B3A52 100%); --botao-texto: #FFFFFF; --botao-sub: #C1D1DC;
    --vidro: rgba(255,255,255,.72); --vidro-forte: rgba(238,242,245,.82); --vidro-menu: rgba(255,255,255,.82);
    --trilho: rgba(20,40,60,.10); --brilho-1: rgba(90,169,230,.16); --brilho-2: rgba(43,92,128,.06); --anel-foto: rgba(43,92,128,.35);
    --ok-fundo: #DCFCE7; --ok-texto: #166534; --ok-borda: #BBF7D0;
    --ruim-fundo: #FEE2E2; --ruim-texto: #991B1B; --ruim-borda: #FECACA;
    --at-fundo: #FEF3C7; --at-texto: #92400E; --at-borda: #FDE68A;
    --wod-texto: #9A3412; --warmup-texto: #1E40AF; --skill-texto: #166534;
    color-scheme: light;
  }
}
:root[data-tema="claro"]{
  --fundo: #EEF2F5; --fundo-2: #FFFFFF; --cartao: #FFFFFF; --cartao-forte: #E6ECF1; --borda: rgba(20,40,60,.10);
  --texto: #13212C; --suave: #5E6F7E; --destaque: #2B5C80;
  --azul: #2563EB; --verde: #059669; --ambar: #B45309; --vermelho: #DC2626;
  --sombra: 0 8px 24px rgba(20,40,60,.08);
  --grad-botao: linear-gradient(135deg, #2B5C80 0%, #1B3A52 100%); --botao-texto: #FFFFFF; --botao-sub: #C1D1DC;
  --vidro: rgba(255,255,255,.72); --vidro-forte: rgba(238,242,245,.82); --vidro-menu: rgba(255,255,255,.82);
  --trilho: rgba(20,40,60,.10); --brilho-1: rgba(90,169,230,.16); --brilho-2: rgba(43,92,128,.06); --anel-foto: rgba(43,92,128,.35);
  --ok-fundo: #DCFCE7; --ok-texto: #166534; --ok-borda: #BBF7D0;
  --ruim-fundo: #FEE2E2; --ruim-texto: #991B1B; --ruim-borda: #FECACA;
  --at-fundo: #FEF3C7; --at-texto: #92400E; --at-borda: #FDE68A;
  --wod-texto: #9A3412; --warmup-texto: #1E40AF; --skill-texto: #166534;
  color-scheme: light;
}
/* Os destaques em gradiente azul são escuros nos dois temas: dentro deles, as cores do escuro. */
.app-cartao.destaque, .app-hero{
  --texto: #F3F6F8; --suave: #A9B8C4; --destaque: #C1D1DC; --borda: rgba(255,255,255,.1); --fundo-2: #132330;
  --cartao-forte: rgba(255,255,255,.09); --trilho: rgba(255,255,255,.12); --verde: #34D399; --ambar: #FBBF24;
  --grad-botao: linear-gradient(135deg, #E9F1F6 0%, #C1D1DC 100%); --botao-texto: #0E1922;
  color: var(--texto);
}
*{ box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden]{ display: none !important; }
html{ background: var(--fundo); }
body.app{
  margin: 0; min-height: 100vh; color: var(--texto);
  font-family: "Open Sans", system-ui, -apple-system, sans-serif; font-size: 15px; line-height: 1.45;
  padding-top: calc(56px + var(--topo));   /* o fundo vem do html; o body fica transparente para a camada do brilho aparecer */
}
/* O brilho do fundo numa camada fixa própria: rolar não repinta a tela inteira
   (background-attachment: fixed deixava a rolagem pesada no Android). */
body.app::before{ content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; transform: translateZ(0);
  background: radial-gradient(1200px 500px at 110% -10%, var(--brilho-1), transparent 60%),
              radial-gradient(900px 400px at -20% 0%, var(--brilho-2), transparent 55%); }
body.app.com-menu{ padding-bottom: calc(86px + var(--base)); }
a{ color: var(--destaque); text-decoration: none; }
svg{ width: 20px; height: 20px; }

/* Topo em vidro fosco */
.app-topo{
  position: fixed; inset: 0 0 auto 0; z-index: 20; height: calc(56px + var(--topo)); padding: var(--topo) 18px 0;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--vidro); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--borda);
}
.app-logo{ height: 22px; width: auto; color: var(--texto); }
.app-troca-box{ display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--texto);
  background: var(--cartao); border: 1px solid var(--borda); padding: 7px 12px; border-radius: 999px; }
.app-troca-box svg{ width: 14px; height: 14px; }

.app-conteudo{ max-width: 560px; margin: 0 auto; padding: 8px 16px 24px; animation: surgir .16s ease-out both; }
@keyframes surgir{ from{ opacity: .55; transform: translateY(4px); } to{ opacity: 1; transform: none; } }

h1, h2, h3{ margin: 0; letter-spacing: -.01em; }
.app-titulo{ font-size: 28px; font-weight: 800; margin: 6px 2px 14px; }
.app-sub{ color: var(--suave); margin: 0; font-size: 14px; }
.app-dica{ color: var(--suave); font-size: 12.5px; margin: 10px 0 0; }
.app-vazio{ color: var(--suave); margin: 4px 0; }
.app-vazio.grande{ text-align: center; padding: 40px 10px; font-size: 15px; }

/* Avisos */
.aviso{ margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; font-size: 14px; font-weight: 600;
  background: var(--ok-fundo); color: var(--ok-texto); border: 1px solid var(--ok-borda); display: flex; gap: 8px; align-items: center; }
.aviso svg{ flex: none; width: 18px; height: 18px; }
.aviso.ruim{ background: var(--ruim-fundo); color: var(--ruim-texto); border-color: var(--ruim-borda); }
.aviso.atencao, .aviso.info{ background: var(--at-fundo); color: var(--at-texto); border-color: var(--at-borda); }

/* Cartões */
.app-cartao{ background: var(--cartao); border: 1px solid var(--borda); border-radius: var(--raio); padding: 16px 16px 14px;
  margin-bottom: 14px; box-shadow: var(--sombra); }
.app-cartao.destaque{ background: var(--grad); border-color: rgba(255,255,255,.12); }
.app-cab{ display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.app-cab h2{ font-size: 16px; font-weight: 700; }
.app-cab a{ font-size: 13px; font-weight: 600; }

/* Saudação */
.app-ola{ display: flex; align-items: center; justify-content: space-between; margin: 8px 2px 18px; }
.app-ola h1{ font-size: 30px; font-weight: 800; }
.app-foto{ width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--anel-foto);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; background: var(--fundo-2); color: var(--destaque); }
.app-alerta{ display: flex; gap: 10px; align-items: center; padding: 12px 14px; margin-bottom: 14px; border-radius: 16px;
  background: var(--ruim-fundo); color: var(--ruim-texto); border: 1px solid var(--ruim-borda); font-weight: 600; font-size: 14px; }

/* Aulas resumidas */
.app-aula-mini{ display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--borda); }
.app-aula-mini:first-of-type{ border-top: 0; }
.app-hora{ font-weight: 800; font-size: 18px; min-width: 56px; font-variant-numeric: tabular-nums; }
.app-aula-txt{ flex: 1; display: flex; flex-direction: column; min-width: 0; }
.app-aula-txt small{ color: var(--suave); font-size: 12.5px; }
.app-treino-mini, .app-plano-mini{ margin: 0; display: flex; flex-direction: column; }
.app-plano-mini small{ color: var(--suave); }

/* Selos */
.app-selo{ font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; letter-spacing: .02em; }
.app-selo.ok{ background: rgba(52,211,153,.16); color: var(--verde); }
.app-selo.fila{ background: rgba(251,191,36,.16); color: var(--ambar); }
.app-selo.ruim{ background: rgba(248,113,113,.16); color: var(--vermelho); }
.app-selo.neutro{ background: var(--cartao-forte); color: var(--destaque); }

/* Botões com resposta ao toque */
.app-botao{ appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  padding: 14px 18px; border-radius: 16px; color: var(--botao-texto); background: var(--grad-botao);
  box-shadow: 0 8px 22px rgba(193,209,220,.18); transition: transform .12s ease, filter .2s ease; }
.app-botao:active{ transform: scale(.97); filter: brightness(.95); }
.app-botao.mini{ width: auto; padding: 9px 14px; font-size: 13px; border-radius: 12px; box-shadow: none; }
.app-botao.fantasma{ background: var(--cartao-forte); color: var(--texto); box-shadow: none; border: 1px solid var(--borda); }
/* Azul do app (o dos botões do tema claro e do menu): renovar ou contratar plano (pedido do Luiz, 19/11/2026), nos dois temas. */
.app-botao.azul{ background: linear-gradient(135deg, #2B5C80 0%, #1B3A52 100%); color: #FFFFFF; border: 0; box-shadow: 0 6px 18px rgba(27,58,82,.3); }
.app-botao.azul svg{ color: #FFFFFF; }
.app-botao.perigo{ background: rgba(248,113,113,.15); color: var(--vermelho); box-shadow: none; border: 1px solid rgba(248,113,113,.3); }
.app-botao[disabled]{ opacity: .6; }
.app-link{ display: block; text-align: center; margin: 16px 0 0; font-weight: 600; font-size: 14px; background: none; border: 0; color: var(--destaque); font-family: inherit; width: 100%; cursor: pointer; }

/* Entrada */
.app-entrada{ padding-top: 6vh; }
.app-entrada h1{ font-size: 32px; font-weight: 800; margin-bottom: 6px; }
.app-entrada .app-sub{ margin-bottom: 22px; }
.app-form{ display: flex; flex-direction: column; gap: 14px; }
.app-form label{ display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--suave); }
.app-form input{ font: inherit; font-size: 17px; color: var(--texto); background: var(--cartao); border: 1px solid var(--borda);
  border-radius: 14px; padding: 14px 16px; outline: none; transition: border-color .2s, background .2s; }
.app-form input:focus{ border-color: rgba(193,209,220,.6); background: var(--cartao-forte); }
.app-form textarea{ font: inherit; font-size: 16px; font-weight: 400; line-height: 1.45; color: var(--texto); background: var(--cartao); border: 1px solid var(--borda);
  border-radius: 14px; padding: 12px 16px; min-height: 76px; resize: none; outline: none; transition: border-color .2s, background .2s; }
.app-form textarea::placeholder{ color: var(--suave); opacity: .8; }
.app-form textarea:focus{ border-color: rgba(193,209,220,.6); background: var(--cartao-forte); }

/* Escolher o box */
.app-box{ width: 100%; display: flex; align-items: center; gap: 14px; padding: 16px; margin-bottom: 12px; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 16px; color: var(--texto); background: var(--cartao); border: 1px solid var(--borda);
  border-radius: var(--raio); text-align: left; transition: transform .12s; }
.app-box:active{ transform: scale(.98); }
.app-box.atual{ border-color: rgba(193,209,220,.5); }
.app-box span{ flex: 1; }
.app-box-marca{ width: 34px; height: 34px; color: var(--destaque); }

/* Faixa de dias que desliza */
.app-dias{ display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 12px; margin: 0 -16px 6px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.app-dias::-webkit-scrollbar{ display: none; }
.app-dias a{ scroll-snap-align: start; flex: none; width: 58px; padding: 10px 0; border-radius: 18px; text-align: center;
  background: var(--cartao); border: 1px solid var(--borda); color: var(--texto); display: flex; flex-direction: column; transition: transform .12s; }
.app-dias a:active{ transform: scale(.95); }
.app-dias small{ font-size: 11.5px; color: var(--suave); font-weight: 600; }
.app-dias b{ font-size: 20px; font-weight: 800; }
.app-dias a.ativo{ background: var(--grad-botao); color: var(--botao-texto); border-color: transparent; box-shadow: 0 8px 20px rgba(193,209,220,.2); }
.app-dias a.ativo small{ color: var(--botao-sub); }

/* Aula completa */
.app-aula{ display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 14px; margin-bottom: 12px;
  background: var(--cartao); border: 1px solid var(--borda); border-radius: var(--raio); scroll-margin-top: 90px; }
.app-aula.minha{ background: linear-gradient(135deg, rgba(52,211,153,.14), rgba(255,255,255,.05)); border-color: rgba(52,211,153,.3); }
.app-aula.passou{ opacity: .5; }
/* A aula que está acontecendo: não esmaece e ganha a pílula Em andamento, com o ponto pulsando. */
.app-aula.andamento{ border-color: rgba(90,169,230,.45); box-shadow: 0 0 0 1px rgba(90,169,230,.25); }
.app-selo.andamento{ display: inline-flex; align-items: center; gap: 6px; background: rgba(90,169,230,.16); color: var(--azul); }
.app-selo.andamento i{ width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: andamento 1.4s ease-in-out infinite; }
.app-hero .app-selo.andamento{ background: rgba(255,255,255,.16); color: #FFFFFF; margin: 2px 0 6px; }
@keyframes andamento{ 50%{ opacity: .25; transform: scale(.7); } }
@media (prefers-reduced-motion: reduce){ .app-selo.andamento i{ animation: none; } }
.app-aula-hora{ display: flex; flex-direction: column; align-items: center; padding: 8px 0; border-radius: 16px; background: var(--cartao-forte); }
.app-aula-hora b{ font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.app-aula-hora small{ font-size: 11.5px; color: var(--suave); }
.app-aula-corpo h3{ font-size: 16px; font-weight: 700; }
.app-aula-corpo p{ margin: 2px 0 0; color: var(--suave); font-size: 13px; }
.app-aula-corpo .app-motivo{ color: var(--ambar); font-size: 12.5px; }
.app-aula-acao{ display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.app-vagas{ display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.app-vagas small{ color: var(--suave); font-size: 12px; white-space: nowrap; }
.app-barra{ flex: 1; height: 6px; border-radius: 6px; background: var(--trilho); overflow: hidden; }
.app-barra span{ display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--azul), var(--destaque)); transition: width .6s ease; }

/* Treino */
.app-cartao.treino .app-cab h2{ font-size: 18px; }
.app-bloco{ padding: 12px 0; border-top: 1px solid var(--borda); }
.app-bloco:first-of-type{ border-top: 0; padding-top: 2px; }
.app-bloco h3{ font-size: 15px; margin: 6px 0 4px; }
.app-bloco h3 small{ color: var(--suave); font-weight: 600; font-size: 12px; margin-left: 4px; }
.app-bloco-texto{ white-space: normal; font-size: 14.5px; line-height: 1.55; }
.app-bloco-tipo{ display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: var(--cartao-forte); color: var(--destaque); }
.app-bloco-tipo.tipo-wod{ background: linear-gradient(135deg, rgba(248,113,113,.25), rgba(251,191,36,.2)); color: var(--wod-texto); }
.app-bloco-tipo.tipo-warmup{ background: rgba(90,169,230,.2); color: var(--warmup-texto); }
.app-bloco-tipo.tipo-skill{ background: rgba(52,211,153,.18); color: var(--skill-texto); }

/* Plano: destaque e anéis de progresso */
.app-hero{ position: relative; padding: 20px 18px; margin-bottom: 14px; border-radius: 26px; background: var(--grad);
  border: 1px solid rgba(255,255,255,.12); box-shadow: var(--sombra); overflow: hidden; }
.app-hero h2{ font-size: 22px; font-weight: 800; max-width: 62%; margin: 2px 0 6px; }
.app-hero p{ margin: 0; color: var(--destaque); font-size: 13.5px; }
.app-hero .app-anel{ position: absolute; right: 18px; top: 50%; transform: translateY(-50%); }
.app-anel{ position: relative; width: 88px; height: 88px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.app-anel svg{ position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.app-anel circle{ fill: none; stroke-width: 2.2; }
.app-anel .trilho{ stroke: var(--trilho); }
.app-anel .valor{ stroke: var(--destaque); stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray .9s ease-out; }
.app-anel b{ position: relative; font-size: 22px; font-weight: 600; line-height: 1; letter-spacing: -.02em; }
.app-anel small{ position: relative; font-size: 10.5px; color: var(--suave); margin-top: 2px; }
.app-anel.mini{ width: 66px; height: 66px; }
.app-anel.mini circle{ stroke-width: 2; }
.app-anel.mini b{ font-size: 17px; }
.app-limites{ display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 12px; }
.app-limite{ display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12.5px; color: var(--suave); font-weight: 600; }
.app-parcela{ display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--borda); flex-wrap: wrap; }
.app-parcela:first-of-type{ border-top: 0; }
.app-parcela > span:first-child{ flex: 1; display: flex; flex-direction: column; min-width: 0; }
.app-parcela small{ color: var(--suave); font-size: 12px; }

/* Perfil */
.app-perfil{ text-align: center; margin: 10px 0 18px; }
.app-perfil h1{ font-size: 22px; font-weight: 800; margin-top: 12px; }
.app-foto-grande{ position: relative; display: inline-block; cursor: pointer; }
.app-foto-grande .app-foto{ width: 112px; height: 112px; font-size: 34px; border-width: 3px; box-shadow: 0 12px 30px rgba(0,0,0,.4); }
.app-camera{ position: absolute; right: 2px; bottom: 2px; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--grad-botao); color: var(--botao-texto); border: 3px solid var(--fundo); }
.app-camera svg{ width: 16px; height: 16px; }
.app-dados{ display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0; font-size: 14px; }
.app-dados dt{ color: var(--suave); }
.app-dados dd{ margin: 0; text-align: right; font-weight: 600; word-break: break-word; }
.app-acoes-perfil{ display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.app-acoes-perfil form{ margin: 0; }

/* Menu inferior em vidro fosco */
.app-menu{ position: fixed; z-index: 20; left: 12px; right: 12px; bottom: calc(10px + var(--base)); max-width: 536px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px; border-radius: 24px;
  background: var(--vidro-menu); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--borda); box-shadow: var(--sombra); }
.app-menu a{ display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 0; border-radius: 18px;
  color: var(--suave); font-size: 11px; font-weight: 600; transition: background .2s, color .2s, transform .12s; }
.app-menu a:active{ transform: scale(.94); }
.app-menu a.ativo{ color: var(--botao-texto); background: var(--grad-botao); }
.app-menu svg{ width: 21px; height: 21px; }

/* Confirmação (folha que sobe de baixo) */
.app-folha{ position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; background: rgba(0,0,0,.45);
  animation: aparece .2s ease both; }
.app-folha > div{ width: 100%; max-width: 560px; padding: 22px 18px calc(18px + var(--base)); border-radius: 26px 26px 0 0;
  background: var(--fundo-2); border: 1px solid var(--borda); animation: sobe .25s ease both; }
.app-folha p{ margin: 0 0 16px; font-size: 16px; font-weight: 700; text-align: center; }
.app-folha .botoes{ display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@keyframes aparece{ from{ opacity: 0; } }
@keyframes sobe{ from{ transform: translateY(40px); opacity: 0; } }

/* Convite para instalar */
.app-instalar{ display: flex; gap: 12px; align-items: center; padding: 12px 14px; margin-bottom: 14px; border-radius: 18px;
  background: var(--cartao-forte); border: 1px dashed rgba(193,209,220,.35); font-size: 13.5px; }
.app-instalar b{ display: block; }

@media (prefers-reduced-motion: reduce){ *{ animation: none !important; transition: none !important; } }

/* Entrada: capacete com brilho e formulário em vidro */
.app-entrada{ padding-top: 2vh; }
.app-boas-vindas{ text-align: center; margin-bottom: 22px; }
.app-boas-vindas h1{ margin-top: 12px; font-size: 34px; }
.app-boas-vindas .app-sub{ margin-bottom: 0; }
.app-capacete{ width: 92px; height: 92px; color: var(--destaque); filter: drop-shadow(0 0 28px rgba(90,169,230,.55)); animation: respira 4s ease-in-out infinite; }
@keyframes respira{ 50%{ filter: drop-shadow(0 0 40px rgba(90,169,230,.8)); transform: translateY(-3px); } }
.app-vidro{ padding: 20px 18px; border-radius: 26px; background: var(--cartao); border: 1px solid var(--borda);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--sombra); }
.app-vidro .app-sub{ margin-bottom: 16px; }

/* Semana com setas (aulas e treino) */
.app-semana{ margin-bottom: 10px; }
.app-semana-cab{ display: flex; align-items: center; justify-content: space-between; margin: 0 2px 10px; font-weight: 700; font-size: 15px; }
.app-seta{ width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--cartao); border: 1px solid var(--borda); color: var(--texto); transform: rotate(180deg); transition: transform .12s; }
.app-seta.prox{ transform: none; }
.app-seta:active{ transform: rotate(180deg) scale(.92); }
.app-seta.prox:active{ transform: scale(.92); }
.app-seta.apagada{ visibility: hidden; }
.app-seta svg{ width: 16px; height: 16px; }
.app-dias.semana{ overflow: visible; margin: 0; padding: 0 0 6px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.app-dias.semana a, .app-dias.semana span.fora{ width: auto; }
.app-dias.semana a.passado:not(.ativo){ opacity: .7; }
.app-dias span.fora{ padding: 10px 0; border-radius: 18px; text-align: center; display: flex; flex-direction: column; opacity: .3; border: 1px dashed var(--borda); }
.app-dias span.fora small{ font-size: 11.5px; color: var(--suave); font-weight: 600; }
.app-dias span.fora b{ font-size: 20px; font-weight: 800; }
.app-hoje{ display: inline-block; margin: 4px 2px 0; font-size: 13px; font-weight: 700; }
.app-consulta{ margin: 0 2px 12px; color: var(--suave); font-size: 13px; }

/* Semana fixa no alto ao rolar (pedido do Luiz), sob o topo, em vidro fosco */
.app-semana{ position: sticky; top: calc(56px + var(--topo)); z-index: 10; margin: 0 -16px 12px; padding: 10px 16px 8px;
  background: var(--vidro-forte); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--borda); }
.app-aula{ scroll-margin-top: 230px; }

/* Lista de aulas: cada turma abre a sua tela */
a.app-aula{ color: var(--texto); transition: transform .12s ease, background .2s; }
a.app-aula:active{ transform: scale(.985); }
.app-chevron{ color: var(--suave); }
.app-chevron svg{ width: 16px; height: 16px; }

/* Check-in direto pela lista (sem nenhum check-in no dia): o botão fica fora do
   link da turma, por cima do lugar reservado na coluna da direita. */
.app-aula-caixa{ position: relative; margin-bottom: 12px; }
.app-aula-caixa > .app-aula{ margin-bottom: 0; }
.app-check-lugar{ display: block; width: 46px; height: 46px; }
.app-check-rapido{ position: absolute; right: 14px; top: 50%; transform: translateY(-50%); margin: 0; }
.app-check-rapido.com-selo{ transform: translateY(calc(-50% + 15px)); }
.app-check-rapido button{ appearance: none; border: 0; cursor: pointer; display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: 50%; background: var(--grad-botao); color: var(--botao-texto); box-shadow: 0 6px 16px rgba(0,0,0,.25); transition: transform .12s ease; }
.app-check-rapido button:active{ transform: scale(.92); }
.app-check-rapido button:disabled{ opacity: .6; }
.app-check-rapido svg{ width: 22px; height: 22px; }

/* Tela da turma */
.app-voltar{ display: inline-flex; align-items: center; gap: 6px; margin: 2px 0 12px; font-weight: 700; font-size: 14px; }
.app-voltar svg{ width: 15px; height: 15px; transform: rotate(180deg); }
.app-hero .app-vagas{ margin-top: 12px; max-width: 70%; }
.app-hero .app-vagas small{ color: var(--destaque); }
.app-acao-aula p{ margin: 0 0 10px; }
.app-acao-aula form{ margin: 0; }
.app-conta{ white-space: nowrap; flex: none; font-size: 13px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--cartao-forte); color: var(--destaque); }
.app-pessoas{ display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 14px 8px; }
.app-pessoa{ display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 12px; font-weight: 600; color: var(--destaque); }
.app-pessoa .app-foto{ width: 58px; height: 58px; font-size: 18px; }
.app-pessoa.eu .app-foto{ border-color: var(--verde); box-shadow: 0 0 0 3px rgba(52,211,153,.25); }
.app-pessoa span{ line-height: 1.2; word-break: break-word; }

/* Sem títulos nas páginas: a semana encosta no topo e fica presa nele */
.app-semana{ margin-top: -8px; }

/* Plano: semana, mês, contrato e total em duas colunas; sem limite, o anel fica só no trilho */
.app-limites.quatro{ grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (max-width: 380px){ .app-limites.quatro{ grid-template-columns: repeat(2, 1fr); gap: 14px; } }

/* Tema no Perfil: três opções lado a lado */
.app-temas{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 4px; border-radius: 16px; background: var(--cartao-forte); }
.app-temas button{ appearance: none; border: 0; font: inherit; font-size: 13px; font-weight: 700; color: var(--suave); background: none;
  padding: 10px 4px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; }
.app-temas button.ativo{ background: var(--fundo-2); color: var(--texto); box-shadow: var(--sombra); }
.app-temas svg{ width: 18px; height: 18px; }

/* Mural em feed: cada post com quem publicou, o texto inteiro, a mídia na largura toda e o like embaixo */
.app-feed{ margin-bottom: 18px; }
.app-cab.feed{ margin: 4px 2px 10px; }
.app-cab.feed h2{ font-size: 18px; font-weight: 800; }
.app-post{ background: var(--cartao); border: 1px solid var(--borda); border-radius: var(--raio); margin-bottom: 14px;
  box-shadow: var(--sombra); overflow: hidden; scroll-margin-top: 80px; }
.app-post-cab{ display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px; }
.app-post-avatar{ width: 40px; height: 40px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--grad); border: 1px solid var(--borda); }
.app-post-marca{ width: 22px; height: 22px; color: #F3F6F8; }
.app-post-quem{ flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.app-post-quem b{ font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-post-quem small{ color: var(--suave); font-size: 12px; }
.app-post-corpo{ padding: 0 16px 4px; position: relative; }
.app-post-corpo.cortado{ max-height: 340px; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.app-post-titulo{ font-size: 16.5px; font-weight: 800; line-height: 1.3; margin: 0 0 6px; }
.app-ver-mais{ appearance: none; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--azul);
  padding: 0 16px 6px; cursor: pointer; }
/* Mídia de ponta a ponta no post, como nas redes sociais */
.app-post .texto-mural img.img-grande, .app-post .texto-mural p > img:only-child:not(.img-pequena):not(.img-media){ width: calc(100% + 32px); max-width: none; margin: 4px -16px; border-radius: 0; }
.app-post .mural-video{ margin: 8px -16px; border-radius: 0; }
.app-post-acoes{ display: flex; align-items: center; gap: 16px; padding: 10px 16px 14px; border-top: 1px solid var(--borda); margin-top: 8px; }
.app-post-acoes form{ margin: 0; }
.app-selo.nova{ background: var(--azul); color: #FFFFFF; font-size: 10.5px; padding: 3px 9px; }
/* Post novo em destaque: borda iluminada em gradiente e brilho suave */
.app-post.nova{ border: 2px solid transparent;
  background: linear-gradient(var(--fundo-2), var(--fundo-2)) padding-box, linear-gradient(135deg, #5AA9E6, #34D399 50%, #FBBF24) border-box;
  box-shadow: 0 0 0 4px rgba(90,169,230,.12), 0 14px 34px rgba(90,169,230,.22); }
.app-post.nova .app-selo.nova{ animation: brilha 2.4s ease-in-out infinite; }
@keyframes brilha{ 50%{ box-shadow: 0 0 0 5px rgba(90,169,230,.25); } }
.app-conta-mural{ font-size: 11.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--azul); color: #FFFFFF; margin-left: 8px; }

/* Mural: a mensagem (texto com imagem e vídeo) */
.app-mensagem h1{ font-size: 20px; font-weight: 800; line-height: 1.25; margin-bottom: 8px; }
.texto-mural{ font-size: 15px; line-height: 1.6; word-wrap: break-word; }
.texto-mural p{ margin: 0 0 10px; }
.texto-mural h2{ font-size: 19px; margin: 14px 0 8px; } .texto-mural h3{ font-size: 16.5px; margin: 12px 0 6px; }
.texto-mural ul, .texto-mural ol{ margin: 0 0 10px; padding-left: 22px; }
.texto-mural blockquote{ margin: 10px 0; padding: 10px 14px; border-left: 3px solid var(--azul); background: var(--cartao-forte); border-radius: 10px; }
.texto-mural a{ text-decoration: underline; }
.texto-mural hr{ border: 0; border-top: 1px solid var(--borda); margin: 14px 0; }
.texto-mural .alinhar-centro{ text-align: center; } .texto-mural .alinhar-direita{ text-align: right; } .texto-mural .justificar{ text-align: justify; }
.texto-mural .tam-pequeno{ font-size: .85em; } .texto-mural .tam-grande{ font-size: 1.2em; } .texto-mural .tam-titulo{ font-size: 1.5em; line-height: 1.3; }
.texto-mural img{ max-width: 100%; height: auto; border-radius: 14px; vertical-align: middle; }
.texto-mural img.img-pequena{ width: 40%; } .texto-mural img.img-media{ width: 70%; } .texto-mural img.img-grande{ width: 100%; }
.mural-video{ position: relative; margin: 10px 0; border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.mural-video iframe, .mural-video video{ position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mural-video.arquivo{ aspect-ratio: auto; }
.mural-video.arquivo video{ position: static; display: block; height: auto; max-height: 70vh; }
.app-like{ appearance: none; font: inherit; font-weight: 800; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--borda); background: var(--cartao-forte); color: var(--texto); transition: transform .12s; }
.app-like:active{ transform: scale(.92); }
.app-like.curtido{ color: #FFFFFF; background: linear-gradient(135deg, #F43F5E, #E11D48); border-color: transparent; }
.app-like.curtido svg{ fill: currentColor; animation: pulsar .35s ease; }
@keyframes pulsar{ 50%{ transform: scale(1.3); } }
.app-conta-coment{ display: inline-flex; align-items: center; gap: 6px; color: var(--suave); font-size: 13.5px; font-weight: 600; }
.app-conta-coment svg{ width: 18px; height: 18px; }
.app-comentario{ display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.app-foto.mini{ width: 36px; height: 36px; flex: none; font-size: 13px; border-width: 1px; }
.app-balao{ flex: 1; min-width: 0; padding: 9px 12px; border-radius: 4px 16px 16px 16px; background: var(--cartao-forte); font-size: 14px; }
.app-comentario.equipe .app-balao{ background: linear-gradient(135deg, rgba(90,169,230,.18), var(--cartao-forte)); }
.app-balao b{ font-size: 13px; }
.app-balao p{ margin: 2px 0 4px; word-wrap: break-word; }
.app-balao small{ color: var(--suave); font-size: 11.5px; }
.app-balao .app-selo{ font-size: 10px; padding: 2px 7px; margin-left: 4px; }
.app-apagar{ display: inline; margin: 0 0 0 10px; }
.app-apagar button{ appearance: none; border: 0; background: none; color: var(--vermelho); font: inherit; font-size: 11.5px; font-weight: 700; padding: 0; cursor: pointer; }
.app-comentar{ display: flex; gap: 8px; align-items: flex-end; margin-top: 6px; }
.app-comentar textarea{ flex: 1; font: inherit; font-size: 15px; color: var(--texto); background: var(--cartao-forte); border: 1px solid var(--borda);
  border-radius: 18px; padding: 10px 14px; resize: none; outline: none; max-height: 140px; }
.app-comentar textarea:focus{ border-color: var(--azul); }
.app-comentar .app-botao.mini{ padding: 11px; border-radius: 50%; }

/* Aviso na entrada: segura o app até o "Li e estou ciente" */
.app-aviso-mural{ padding-bottom: 96px; }
.app-aviso-passo{ display: inline-flex; align-items: center; gap: 6px; margin: 4px 2px 12px; font-size: 12.5px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em; color: var(--ambar); }
.app-aviso-passo svg{ width: 16px; height: 16px; }
.app-fixo-baixo{ position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(14px + var(--base));
  background: var(--vidro-forte); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid var(--borda); }
.app-fixo-baixo .app-botao{ max-width: 528px; margin: 0 auto; display: flex; }
.app-paginas{ display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--suave); font-size: 13px; font-weight: 700; }
.app-cab h2{ display: inline-flex; align-items: center; }
/* Experimental na turma */
.app-selo.exp{ background: rgba(90,169,230,.18); color: var(--azul); font-size: 10px; padding: 2px 8px; }
.app-pessoa.exp .app-foto{ border-color: var(--azul); border-style: dashed; }

/* Sem contrato ativo: aulas e treino travados (o resto do app segue aberto) */
.app-travado{ text-align: center; padding: 28px 18px; }
.app-travado > svg{ width: 40px; height: 40px; color: var(--ambar); margin-bottom: 8px; }
.app-travado h2{ font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.app-travado .app-sub{ margin-bottom: 18px; }
.app-menu a.travada{ opacity: .55; }
.app-box-sem{ display: block; font-size: 12px; font-weight: 600; color: var(--ambar); }

/* Contratar plano pelo app */
.app-alerta.pagar{ background: var(--at-fundo); color: var(--at-texto); border-color: var(--at-borda); }
.app-plano-venda h2{ font-size: 17px; }
.app-preco{ margin: 0 0 8px; display: flex; flex-direction: column; }
.app-preco b{ font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.app-preco small{ color: var(--suave); font-size: 13px; }
.app-plano-itens{ margin: 0 0 14px; padding-left: 18px; color: var(--suave); font-size: 14px; }
.app-plano-itens li{ margin: 2px 0; }
.app-renovar{ margin-bottom: 14px; }
.app-select{ font: inherit; font-size: 16px; color: var(--texto); background: var(--cartao-forte); border: 1px solid var(--borda); border-radius: 14px; padding: 12px 14px; }
.app-qr{ display: flex; justify-content: center; margin: 12px 0 14px; }
.app-qr svg{ width: min(240px, 70vw); height: auto; background: #FFFFFF; padding: 10px; border-radius: 16px; }
.app-pix .app-botao{ margin-bottom: 10px; }
.app-compra-cancelar{ margin-top: 6px; }
.app-compra-cancelar .app-botao{ width: 100%; margin: 0; }
.app-espera{ display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 4px 0 14px; text-align: center; }
.app-espera small{ color: var(--suave); font-size: 12.5px; }
.app-travado.ok > svg{ color: var(--verde); }
.texto-contrato-app{ max-height: 46vh; overflow-y: auto; padding: 12px 14px; border-radius: 14px; background: #FFFFFF; color: #151D33; font-size: 13.5px; line-height: 1.5; margin-bottom: 12px; }
.texto-contrato-app img{ max-width: 100%; height: auto; }
.app-check{ display: flex; gap: 10px; align-items: center; font-weight: 600; margin: 4px 0 14px; }
.app-check input{ width: 20px; height: 20px; }
/* Selos dos apps de benefício na turma (cores das marcas) */
.app-pessoa .app-selo{ font-size: 10px; padding: 2px 8px; margin-top: -2px; }
.app-selo.wellhub{ background: #D8125B; color: #FFFFFF; }
.app-selo.totalpass{ background: #00C26E; color: #FFFFFF; }
.app-selo.exp{ background: var(--azul); color: #FFFFFF; }
.app-selo.reservado{ background: #3b82f6; color: #FFFFFF; }
.app-selo.avulsa{ background: #8b5cf6; color: #FFFFFF; }

/* Link de acesso (/app/l/...): baixar o app e os passos. */
.app-baixar{display:flex; flex-direction:column; gap:14px}
.app-passos{margin:0; padding-left:20px; display:flex; flex-direction:column; gap:8px; line-height:1.45}
.app-aviso-link{margin:0; font-size:12.5px; opacity:.7; text-align:center}

/* Troca de aba pelo gesto de deslizar: a tela escorrega um pouco para o lado. */
/* Toque num link: a resposta é na hora (barra correndo no topo e a aba já marcada) enquanto a tela nova carrega. */
.app-carregando{ position: fixed; z-index: 60; top: calc(56px + var(--topo)); left: 0; height: 3px; width: 100%; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--azul), transparent); transform-origin: left; animation: carregando .9s ease-in-out infinite; }
@keyframes carregando{ from{ transform: translateX(-100%); } to{ transform: translateX(100%); } }
body.navegando main{ opacity: .6; transition: opacity .12s; }
/* Listas longas (recordes): o que está fora da tela não é desenhado até chegar perto. */
.app-cartao[data-categoria]{ content-visibility: auto; contain-intrinsic-size: auto 600px; }
/* Virar a aba como página de livro (ver app-aluno.js): perspectiva no body,
   a sombra cresce conforme a página sobe. */
body.virando{ perspective: 1400px; overflow-x: hidden; }
body.virando main.app-conteudo{ position: relative; z-index: 2; backface-visibility: hidden; will-change: transform; animation: none;
  background: var(--fundo); min-height: calc(100vh - 56px - var(--topo)); }
/* A aba vizinha por baixo: parada no topo, saindo da sombra conforme a página sobe. */
.app-previa{ position: fixed; z-index: 1; left: 0; right: 0; top: calc(56px + var(--topo)); bottom: 0; overflow: hidden; pointer-events: none; }
.app-previa main.app-conteudo{ animation: none; }
.app-previa::after{ content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.6); opacity: calc(.75 - var(--virada, 0) * .75); }
main.app-conteudo::after{ content: ""; display: none; position: absolute; inset: 0; pointer-events: none; opacity: 0; border-radius: 18px;
  background: linear-gradient(to left, rgba(0,0,0,.55), rgba(0,0,0,.05) 70%); }
main.app-conteudo.pela-esq::after{ background: linear-gradient(to right, rgba(0,0,0,.55), rgba(0,0,0,.05) 70%); }
body.virando main.app-conteudo::after{ display: block; opacity: calc(var(--virada, 0) * .9); }
main.app-conteudo.chegou-virada{ position: relative; animation: chega-virada .32s ease-out both; }
main.app-conteudo.chegou-virada::after{ display: block; animation: sombra-sai .38s ease-out both; }
@keyframes chega-virada{ from{ transform: scale(.985); } to{ transform: none; } }
@keyframes sombra-sai{ from{ opacity: .6; background: rgba(0,0,0,.45); } to{ opacity: 0; } }

/* ------------------------------------------------ Perfil em menu (17/10/2026) */
.app-perfil.compacto{ display: flex; align-items: center; gap: 14px; text-align: left; margin: 4px 0 16px; }
.app-perfil.compacto .app-foto{ width: 58px; height: 58px; }
.app-perfil.compacto h1{ font-size: 18px; margin: 0; }
.app-lista-menu{ display: flex; flex-direction: column; background: var(--cartao); border: 1px solid var(--borda); border-radius: var(--raio); overflow: hidden; }
.app-lista-menu form{ margin: 0; }
.app-lista-menu > a, .app-lista-menu button{ display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; text-decoration: none; color: var(--texto);
  background: none; border: 0; border-top: 1px solid var(--borda); font: inherit; text-align: left; cursor: pointer; }
.app-lista-menu > a:first-child{ border-top: 0; }
.app-lista-menu > a:active, .app-lista-menu button:active{ background: var(--cartao-forte); }
.app-lista-menu .ico{ flex: none; width: 36px; height: 36px; border-radius: 11px; background: var(--cartao-forte); display: flex; align-items: center; justify-content: center; color: var(--destaque); }
.app-lista-menu .ico svg{ width: 18px; height: 18px; }
.app-lista-menu .txt{ flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.app-lista-menu .txt b{ font-size: 15px; font-weight: 700; }
.app-lista-menu .txt small{ font-size: 12.5px; color: var(--suave); }
.app-lista-menu .seta{ flex: none; width: 14px; height: 14px; color: var(--suave); opacity: .7; }
.app-lista-menu .sair .ico{ color: var(--vermelho); }
.app-lista-menu .sair b{ color: var(--vermelho); }
.app-lista-menu .excluir-conta .ico, .app-lista-menu .excluir-conta b{ color: var(--vermelho); }
.app-excluir-conta .app-relogio-itens{ margin: 10px 0 14px; }
/* Tema escuro: a chave, como no menu do Centurion */
.app-chave-tema .chave{ flex: none; position: relative; width: 44px; height: 26px; border-radius: 999px; background: var(--trilho); transition: background .2s; }
.app-chave-tema .chave::after{ content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--texto); transition: transform .2s; }
.app-chave-tema[aria-checked="true"] .chave{ background: var(--azul); }
.app-chave-tema[aria-checked="true"] .chave::after{ transform: translateX(18px); background: #fff; }

/* Produtos e serviços */
.app-produtos{ display: flex; flex-direction: column; gap: 12px; }
.app-produto{ display: flex; gap: 12px; align-items: center; }
.app-produto img, .app-produto .sem-foto{ flex: none; width: 64px; height: 64px; border-radius: 14px; object-fit: cover; background: var(--cartao-forte); display: flex; align-items: center; justify-content: center; color: var(--suave); }
.app-produto > div{ display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.app-produto small{ color: var(--suave); font-size: 12.5px; }
.app-produto .preco{ font-weight: 700; color: var(--destaque); font-size: 14px; }

/* Lançar (recordes, WODs): um cartão que abre */
.app-lancar summary{ list-style: none; cursor: pointer; font-weight: 700; }
.app-lancar summary::-webkit-details-marker{ display: none; }
.app-lancar summary span{ display: inline-flex; align-items: center; gap: 8px; }
.app-lancar summary svg{ width: 16px; height: 16px; }
.app-lancar[open] summary{ margin-bottom: 12px; }
.app-mini-apagar{ appearance: none; border: 0; background: none; color: var(--suave); padding: 6px; cursor: pointer; }
.app-mini-apagar svg{ width: 16px; height: 16px; }

/* Recordes */
.app-recorde{ border-top: 1px solid var(--borda); }
.app-recorde:first-of-type{ border-top: 0; }
.app-recorde summary{ list-style: none; display: flex; align-items: center; gap: 10px; padding: 11px 0; cursor: pointer; }
.app-recorde summary::-webkit-details-marker{ display: none; }
.app-recorde summary > span:first-child{ flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.app-recorde summary small{ color: var(--suave); font-size: 12px; }
.app-recorde .melhor{ font-weight: 700; font-size: 16px; color: var(--destaque); }
.app-recorde ul{ list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.app-recorde li{ display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--suave); }
.app-recorde li span{ flex: 1; }
.app-recorde li b{ color: var(--texto); font-weight: 600; }
.app-recorde li form{ margin: 0; }

/* Meus WODs */
.app-escalas{ display: flex; gap: 8px; }
.app-escalas label{ flex: 1; }
.app-escalas input{ position: absolute; opacity: 0; pointer-events: none; }
.app-escalas span{ display: block; text-align: center; padding: 9px 4px; border-radius: 12px; background: var(--cartao-forte); font-weight: 700; font-size: 13.5px; color: var(--suave); }
.app-escalas input:checked + span{ background: var(--grad-botao); color: var(--botao-texto); }
.app-opcoes{ flex-direction: column; }
.app-opcoes span{ text-align: left; padding: 12px 14px; font-size: 15px; color: var(--texto); }
.app-opcoes small{ display: block; margin-top: 3px; font-size: 12.5px; font-weight: 500; color: var(--suave); }
.app-opcoes input:checked + span small{ color: inherit; opacity: .85; }
.app-wods{ display: flex; flex-direction: column; padding-top: 6px; padding-bottom: 6px; }
.app-wod{ display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--borda); }
.app-wod:first-child{ border-top: 0; }
.app-wod .quando{ flex: none; width: 42px; display: flex; flex-direction: column; align-items: center; background: var(--cartao-forte); border-radius: 12px; padding: 6px 0; }
.app-wod .quando b{ font-size: 17px; line-height: 1; }
.app-wod .quando small{ font-size: 11px; color: var(--suave); }
.app-wod .txt{ flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.app-wod .resultado{ font-weight: 700; color: var(--destaque); }
.app-wod .resultado em{ font-style: normal; font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--cartao-forte); color: var(--suave); margin-left: 4px; }
.app-wod small{ color: var(--suave); font-size: 12.5px; }
.app-paginas{ display: flex; justify-content: space-between; margin: 4px 2px 12px; font-weight: 700; font-size: 14px; }

/* Contador */
.app-contador{ display: flex; flex-direction: column; gap: 14px; }
.cont-relogio{ display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--cartao); border: 1px solid var(--borda); border-radius: var(--raio); padding: 12px 16px; }
.cont-relogio .tempo{ font-size: 34px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.cont-botoes{ display: flex; gap: 8px; }
.cont-reps{ border-radius: var(--raio); background: var(--cartao); border: 1px solid var(--borda); padding: 18px 14px 14px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.cont-reps > b{ font-size: 88px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.cont-reps > small{ color: var(--suave); font-size: 14px; margin-bottom: 14px; }
.cont-reps-botoes{ display: grid; grid-template-columns: 1fr 2fr; gap: 12px; width: 100%; }
.cont-reps-botoes button{ height: 34vh; min-height: 170px; max-height: 300px; border: 0; border-radius: 22px; font-size: 72px; font-weight: 600; line-height: 1;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; cursor: pointer; }
.cont-reps-botoes .menos{ background: var(--cartao-forte); color: var(--texto); }
.cont-reps-botoes .mais{ background: var(--grad-botao); color: var(--botao-texto); }
.cont-reps-botoes button:active{ transform: scale(.97); }
.cont-quadro{ display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.cont-num{ background: var(--cartao); border: 1px solid var(--borda); border-radius: var(--raio); padding: 14px 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cont-num small{ color: var(--suave); font-size: 13px; font-weight: 600; }
.cont-num b{ font-size: 54px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.cont-num div{ display: flex; gap: 10px; }
.cont-num button{ width: 52px; height: 44px; border-radius: 14px; border: 0; background: var(--cartao-forte); color: var(--texto); font-size: 24px; font-weight: 700; touch-action: manipulation; }
.cont-parciais{ margin: 12px 0 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; color: var(--suave); font-variant-numeric: tabular-nums; }
.cont-config{ display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.cont-campo{ display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--suave); min-width: 0; }
.cont-tempo-campo, .cont-passo{ display: flex; align-items: center; gap: 6px; }
.cont-tempo-campo em{ font-style: normal; font-size: 13px; color: var(--suave); }
.cont-config input{ width: 100%; min-width: 0; font: inherit; font-size: 18px; font-weight: 700; text-align: center; padding: 10px 6px; border-radius: 12px;
  border: 1px solid var(--borda); background: var(--cartao-forte); color: var(--texto); -moz-appearance: textfield; }
.cont-config input::-webkit-outer-spin-button, .cont-config input::-webkit-inner-spin-button{ -webkit-appearance: none; margin: 0; }
.cont-passo button{ flex: none; width: 40px; height: 44px; border: 0; border-radius: 12px; background: var(--cartao-forte); color: var(--texto); font-size: 22px; font-weight: 700; touch-action: manipulation; }
.cont-auto{ border-radius: var(--raio); background: var(--cartao); border: 1px solid var(--borda); padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cont-auto small{ color: var(--suave); font-size: 13px; font-weight: 600; }
.cont-auto b{ font-size: 56px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.cont-auto b em{ font-style: normal; font-size: 18px; color: var(--suave); font-weight: 600; }
.cont-auto .falta{ font-size: 40px; font-weight: 600; color: var(--destaque); font-variant-numeric: tabular-nums; margin-top: 8px; }

/* ----------------------------------- Recordes: pílulas, botão +, modal (17/10/2026) */
.app-pilulas{ display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 14px; padding: 2px 16px 4px; scrollbar-width: none; }
.app-pilulas::-webkit-scrollbar{ display: none; }
.app-pilulas button{ flex: none; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--borda); background: var(--cartao); color: var(--suave);
  font: inherit; font-size: 13.5px; font-weight: 700; padding: 8px 14px; border-radius: 999px; cursor: pointer; }
.app-pilulas button span{ font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--cartao-forte); }
.app-pilulas button.ativa{ background: var(--grad-botao); color: var(--botao-texto); border-color: transparent; }
.app-pilulas button.ativa span{ background: rgba(14,25,34,.12); }
.app-fab{ position: fixed; right: max(18px, calc(50% - 262px)); bottom: calc(96px + var(--base)); z-index: 30; width: 58px; height: 58px; border-radius: 20px; border: 0;
  background: var(--grad-botao); color: var(--botao-texto); box-shadow: var(--sombra); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.app-fab svg{ width: 26px; height: 26px; }
.app-fab:active{ transform: scale(.95); }
dialog.app-modal{ width: min(560px, 100vw); max-width: 100vw; max-height: 88vh; margin: auto auto 0; padding: 0; border: 0; border-radius: 26px 26px 0 0;
  background: var(--fundo-2); color: var(--texto); box-shadow: var(--sombra); overflow: hidden; }
dialog.app-modal[open]{ display: flex; flex-direction: column; animation: subir .22s ease-out; }
dialog.app-modal::backdrop{ background: rgba(5,10,15,.55); }
@keyframes subir{ from{ transform: translateY(40px); opacity: .4; } to{ transform: none; opacity: 1; } }
dialog.app-modal > form, dialog.app-modal > div{ padding: 16px 16px calc(18px + var(--base)); overflow-y: auto; }
.app-modal-cab{ display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.app-modal-cab h2{ font-size: 18px; margin: 0; }
.app-modal-fechar{ border: 0; background: var(--cartao-forte); color: var(--texto); width: 36px; height: 36px; border-radius: 12px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.app-modal-fechar svg{ width: 16px; height: 16px; }
.app-campo{ display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--suave); }
.app-escolher{ display: flex; align-items: center; gap: 10px; width: 100%; padding: 14px; border-radius: 14px; border: 1px solid var(--borda); background: var(--cartao-forte);
  color: var(--texto); font: inherit; font-size: 16px; font-weight: 700; text-align: left; cursor: pointer; }
.app-escolher span{ flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-escolher small{ font-size: 12px; font-weight: 600; color: var(--suave); }
.app-escolher svg{ width: 14px; height: 14px; color: var(--suave); }
.app-marca{ display: flex; align-items: center; gap: 8px; }
.app-marca input{ flex: 1; min-width: 0; font: inherit; font-size: 26px; font-weight: 700; text-align: center; padding: 10px 8px; border-radius: 14px;
  border: 1px solid var(--borda); background: var(--cartao-forte); color: var(--texto); font-variant-numeric: tabular-nums; }
.app-marca em{ font-style: normal; font-size: 18px; font-weight: 700; color: var(--suave); }
.app-marca.simples input{ flex: 0 1 60%; }
.app-busca{ display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px; background: var(--cartao-forte); margin-bottom: 10px; }
.app-busca svg{ width: 16px; height: 16px; color: var(--suave); flex: none; }
.app-busca input{ flex: 1; min-width: 0; border: 0; background: none; color: var(--texto); font: inherit; font-size: 16px; outline: none; }
.app-lista-mov{ display: flex; flex-direction: column; max-height: 58vh; overflow-y: auto; }
.app-lista-mov h3{ font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--suave); margin: 12px 4px 4px; }
.app-item-mov{ display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 6px; border: 0; border-bottom: 1px solid var(--borda);
  background: none; color: var(--texto); font: inherit; text-align: left; cursor: pointer; }
.app-item-mov b{ font-size: 15px; font-weight: 600; }
.app-item-mov small{ font-size: 12px; color: var(--suave); flex: none; }
.app-item-mov.ativo b{ color: var(--azul); }
/* Contador correndo: a configuração aparece travada. */
.app-contador.correndo .cont-config, .app-contador.correndo .cont-modos{ opacity: .5; }
/* Lista de escolha do app (no lugar do select do aparelho) */
.app-select-escondido{ position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; overflow: hidden; }
.app-escolher .app-seta-baixo{ flex: none; width: 8px; height: 8px; border-right: 2px solid var(--suave); border-bottom: 2px solid var(--suave); transform: rotate(45deg) translateY(-2px); margin-right: 4px; }
.app-modal-opcoes .app-modal-fechar{ font-size: 22px; line-height: 1; }
.app-modal-opcoes .app-item-mov{ padding: 14px 6px; }

/* Início só com o mural (17/10/2026): a saudação encosta no topo, sem vão,
   e a foto grande ao lado; o mural vem logo abaixo. */
.app-conteudo:has(> .app-ola){ padding-top: 6px; }
.app-ola{ margin: 0 0 6px; gap: 14px; align-items: center; }
.app-ola .app-sub{ margin: 0; font-size: 15px; }
.app-ola h1{ font-size: 34px; line-height: 1.05; margin-top: 2px; }
.app-ola .app-avatar{ flex: none; line-height: 0; }
.app-ola .app-foto{ width: 108px; height: 108px; border-width: 3px; }
.app-feed > .app-cab.feed{ margin: 0 2px 8px; }
.app-item-mov.desativado{ opacity: .4; }

/* Compra pelo app */
.app-produto > div{ flex: 1; }
.app-produto .app-botao.mini, .app-produto .app-selo{ flex: none; align-self: center; }
.app-compra h1{ font-size: 22px; margin: 4px 0 6px; }
.app-compra-fotos{ display: flex; gap: 10px; overflow-x: auto; margin: -4px -4px 12px; padding: 4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.app-compra-fotos img{ flex: none; width: 78%; max-width: 360px; aspect-ratio: 1; object-fit: cover; border-radius: 18px; scroll-snap-align: start; background: var(--cartao-forte); }
.app-compra-preco{ font-size: 24px; font-weight: 800; color: var(--destaque); margin: 6px 0 0; }
.app-compra-preco small{ font-size: 14px; font-weight: 600; color: var(--suave); }
.app-qtd{ max-width: 200px; }
.app-qtd input{ flex: 1; min-width: 0; text-align: center; font: inherit; font-size: 20px; font-weight: 700; padding: 8px 4px; border-radius: 12px; border: 1px solid var(--borda); background: var(--cartao-forte); color: var(--texto); }
.app-compra-total{ display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; color: var(--suave); margin: 4px 0; }
.app-compra-total b{ font-size: 24px; color: var(--texto); }
.app-compra-linha{ display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--borda); margin: 0; }
.app-compra-linha:first-of-type{ border-top: 0; }
.app-compra-linha span:first-child{ display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.app-compra-linha small{ font-size: 12px; color: var(--suave); }
a.app-compra-linha.link{ color: inherit; text-decoration: none; }
.app-mov-desc{ margin: 4px 0 8px; font-size: 13px; line-height: 1.45; color: var(--suave); white-space: pre-line; }
.app-campo .app-mov-desc{ margin: 6px 2px 0; padding: 10px 12px; border-radius: 12px; background: var(--cartao-forte); color: var(--texto); }

/* ----------------------------------- Um recorde aberto (17/10/2026) */
a.app-recorde{ display: flex; align-items: center; gap: 10px; padding: 11px 0; color: inherit; text-decoration: none; border-top: 1px solid var(--borda); }
a.app-recorde:first-of-type{ border-top: 0; }
a.app-recorde > span:first-child{ flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
a.app-recorde small{ color: var(--suave); font-size: 12px; }
a.app-recorde .seta{ width: 13px; height: 13px; color: var(--suave); flex: none; }
.app-pr-topo{ text-align: center; padding: 18px 16px 20px; margin: 0 0 12px; border-radius: var(--raio); background: var(--grad); color: #fff; }
.app-pr-topo .app-sub{ color: rgba(255,255,255,.7); margin: 0; }
.app-pr-topo h1{ font-size: 22px; margin: 2px 0 8px; }
.app-pr-melhor{ display: inline-flex; align-items: center; gap: 10px; font-size: 40px; font-weight: 700; margin: 0; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.app-pr-melhor .trofeu{ width: 30px; height: 30px; color: var(--ambar); }
.app-pr-topo small{ display: block; color: rgba(255,255,255,.7); font-size: 12.5px; margin-top: 2px; }
.app-pr-pos{ display: inline-block; margin-top: 10px; padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.12); font-size: 13px; color: rgba(255,255,255,.85); }
.app-pr-pos b{ color: #fff; font-variant-numeric: tabular-nums; margin-left: 4px; }
.app-pr-desc{ margin: 0 2px 12px; }
.app-calc summary{ list-style: none; cursor: pointer; font-weight: 700; text-align: center; }
.app-calc summary::-webkit-details-marker{ display: none; }
.app-calc summary span{ display: inline-flex; align-items: center; gap: 8px; }
.app-calc summary span::after{ content: ""; width: 7px; height: 7px; border-right: 2px solid var(--suave); border-bottom: 2px solid var(--suave); transform: rotate(45deg) translateY(-3px); margin-left: 4px; }
.app-calc[open] summary span::after{ transform: rotate(-135deg); }
.app-calc summary svg{ width: 17px; height: 17px; }
.app-calc-grade{ display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin: 14px 0 10px; }
.app-calc-grade div{ background: var(--cartao-forte); border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; }
.app-calc-grade small{ font-size: 12px; color: var(--suave); font-weight: 700; }
.app-calc-grade b{ font-size: 18px; font-variant-numeric: tabular-nums; }
.app-calc-outro{ display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--suave); }
.app-calc-outro input{ width: 70px; text-align: center; font: inherit; font-size: 18px; font-weight: 700; padding: 8px; border-radius: 12px; border: 1px solid var(--borda); background: var(--cartao-forte); color: var(--texto); }
.app-calc-outro em{ font-style: normal; }
.app-calc-outro b{ margin-left: auto; font-size: 20px; color: var(--texto); font-variant-numeric: tabular-nums; }
.app-grafico{ display: block; width: 100%; height: auto; overflow: visible; }
.app-pr-box .app-dica{ margin: 0 0 6px; }
.app-box-regua{ position: relative; height: 210px; margin: 4px -4px 0; }
.app-box-linha{ position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.app-box-linha path{ fill: none; stroke: var(--azul); stroke-width: 2.5; stroke-linecap: round; opacity: .85; }
.app-box-linha path.salto{ stroke-dasharray: 4 6; opacity: .6; }
.app-box-foto{ position: absolute; width: 28px; height: 28px; padding: 0; border: 2px solid var(--cartao); border-radius: 50%; background: none;
  transform: translate(-50%, -50%); cursor: pointer; z-index: 1; box-shadow: 0 1px 3px rgba(0,0,0,.18); transition: transform .15s; }
.app-box-foto .avatar, .app-box-foto img{ width: 100%; height: 100%; border-radius: 50%; display: block; object-fit: cover; font-size: 11px; }
.app-box-foto.eu{ width: 44px; height: 44px; z-index: 3; border: 3px solid var(--ambar); box-shadow: 0 0 0 2px var(--azul), 0 2px 8px rgba(0,0,0,.25); }
.app-box-foto.ativa{ z-index: 4; transform: translate(-50%, -50%) scale(1.25); }
.app-box-foto .rot{ position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); margin-bottom: 3px; font-size: 11px; font-weight: 600; color: var(--azul); white-space: nowrap; font-variant-numeric: tabular-nums; }
.app-box-foto.eu .rot{ color: var(--texto); font-weight: 700; }
.app-box-foto .iniciais, .app-wod-ranking .iniciais{ display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; font-size: 10.5px; }
.app-box-foto .iniciais.matiz-0, .app-wod-ranking .iniciais.matiz-0{ background: hsl(0 45% 40%); }
.app-box-foto .iniciais.matiz-1, .app-wod-ranking .iniciais.matiz-1{ background: hsl(30 45% 40%); }
.app-box-foto .iniciais.matiz-2, .app-wod-ranking .iniciais.matiz-2{ background: hsl(60 45% 40%); }
.app-box-foto .iniciais.matiz-3, .app-wod-ranking .iniciais.matiz-3{ background: hsl(90 45% 40%); }
.app-box-foto .iniciais.matiz-4, .app-wod-ranking .iniciais.matiz-4{ background: hsl(120 45% 40%); }
.app-box-foto .iniciais.matiz-5, .app-wod-ranking .iniciais.matiz-5{ background: hsl(150 45% 40%); }
.app-box-foto .iniciais.matiz-6, .app-wod-ranking .iniciais.matiz-6{ background: hsl(180 45% 40%); }
.app-box-foto .iniciais.matiz-7, .app-wod-ranking .iniciais.matiz-7{ background: hsl(210 45% 40%); }
.app-box-foto .iniciais.matiz-8, .app-wod-ranking .iniciais.matiz-8{ background: hsl(240 45% 40%); }
.app-box-foto .iniciais.matiz-9, .app-wod-ranking .iniciais.matiz-9{ background: hsl(270 45% 40%); }
.app-box-foto .iniciais.matiz-10, .app-wod-ranking .iniciais.matiz-10{ background: hsl(300 45% 40%); }
.app-box-foto .iniciais.matiz-11, .app-wod-ranking .iniciais.matiz-11{ background: hsl(330 45% 40%); }
.app-box-balao{ position: absolute; z-index: 5; min-width: 120px; max-width: 220px; padding: 8px 12px; border-radius: 10px; background: #1d2b38; color: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.3); pointer-events: none; text-align: center; line-height: 1.3; }
.app-box-balao strong{ display: block; font-size: 14px; }
.app-box-balao .marca{ display: block; font-size: 18px; font-weight: 700; color: var(--ambar); font-variant-numeric: tabular-nums; }
.app-box-balao small{ display: block; font-size: 12px; color: rgba(255,255,255,.7); }
.app-grafico .g1{ stop-color: var(--azul); stop-opacity: .38; }
.app-grafico .g2{ stop-color: var(--azul); stop-opacity: 0; }
.app-grafico .area{ fill: url(#grad-pr); }
.app-grafico .linha{ fill: none; stroke: var(--azul); stroke-width: 2.5; stroke-linecap: round; }
.app-grafico .ponto{ fill: var(--azul); stroke: var(--fundo-2); stroke-width: 2; }
.app-grafico .ponto.melhor{ fill: var(--ambar); }
.app-grafico text{ font-size: 11px; fill: var(--suave); text-anchor: middle; font-variant-numeric: tabular-nums; }
.app-grafico text.valor{ fill: var(--azul); font-weight: 600; }
.app-grafico text.valor.melhor{ fill: var(--texto); font-weight: 800; font-size: 12.5px; }
.app-pr-marca summary{ list-style: none; display: grid; grid-template-columns: 1fr 28px auto; align-items: center; gap: 8px; padding: 12px 0; border-top: 1px solid var(--borda); cursor: pointer; }
.app-pr-marca:first-of-type summary{ border-top: 0; }
.app-pr-marca summary::-webkit-details-marker{ display: none; }
.app-pr-marca summary b{ font-size: 16px; font-variant-numeric: tabular-nums; }
.app-pr-marca .trofeu{ width: 20px; height: 20px; color: var(--ambar); }
.app-pr-marca .data{ color: var(--suave); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.app-pr-marca .mais{ display: flex; align-items: center; gap: 10px; padding: 0 0 12px; font-size: 13.5px; }
.app-pr-marca .mais > span{ flex: 1; display: flex; flex-direction: column; gap: 2px; }
.app-pr-marca .mais small{ color: var(--suave); font-size: 12px; }
.app-pr-novo{ margin: 4px 0 12px; }

/* Treino com percentual: a carga do aluno ao lado de cada % */
.app-pct{ font-weight: 700; }
.app-pct-carga{ display: inline-block; font-style: normal; font-weight: 700; font-size: 12.5px; margin-left: 6px; padding: 1px 8px; border-radius: 999px;
  background: var(--ok-fundo); color: var(--ok-texto); border: 1px solid var(--ok-borda); font-variant-numeric: tabular-nums; }
.app-pct-rp{ display: flex; flex-direction: column; gap: 6px; margin-top: 10px; padding: 10px 12px; border-radius: 14px; background: var(--cartao-forte); }
.app-pct-rp .rot{ font-size: 12px; font-weight: 700; color: var(--suave); text-transform: uppercase; letter-spacing: .05em; }
.app-pct-rp .app-escolher{ padding: 10px 12px; font-size: 14.5px; background: var(--cartao); }
.app-pct-sem{ font-size: 13px; font-weight: 700; }

/* Recordes: todos os movimentos, busca e a chave "Só os meus recordes" */
.app-recordes-topo{ display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.app-recordes-topo .app-busca{ margin: 0; background: var(--cartao); border: 1px solid var(--borda); }
.app-so-meus{ display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--borda);
  background: var(--cartao); color: var(--texto); font: inherit; text-align: left; cursor: pointer; }
.app-so-meus .txt{ flex: 1; display: flex; flex-direction: column; gap: 1px; }
.app-so-meus .txt b{ font-size: 14.5px; }
.app-so-meus .txt small{ font-size: 12px; color: var(--suave); }
a.app-recorde .sem{ font-style: normal; color: var(--suave); font-weight: 400; }
a.app-recorde:not(.meu) b{ font-weight: 600; }

/* Sem permissão de notificação, o app fica coberto por esta tela. */
.app-sem-push{ position: fixed; inset: 0; z-index: 100; background: var(--fundo); display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; }
.app-sem-push > div{ max-width: 380px; display: flex; flex-direction: column; gap: 14px; }
.app-sem-push h2{ font-size: 22px; }
.app-sem-push p{ margin: 0; color: var(--suave); line-height: 1.5; }

/* Contador: repetições com rounds em cima, e o quadro (lousa) */
.cont-rounds{ display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 8px; font-weight: 700; color: var(--suave); }
.cont-rounds b{ font-size: 28px; color: var(--texto); min-width: 40px; text-align: center; font-variant-numeric: tabular-nums; }
.cont-rounds button{ width: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--cartao-forte); color: var(--texto); font-size: 22px; font-weight: 700; touch-action: manipulation; }
.cont-reps > b[data-reps]{ font-size: 88px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.app-contador [data-fechar-round]{ margin-top: 12px; }
.cont-ferramentas{ display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; }
.cont-ferramentas .cores{ display: flex; gap: 6px; margin-right: auto; }
.cont-ferramentas button{ height: 38px; min-width: 38px; padding: 0 10px; border: 1px solid var(--borda); border-radius: 12px; background: var(--cartao); color: var(--texto);
  font: inherit; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; touch-action: manipulation; }
.cont-ferramentas button.ativo{ border-color: var(--azul); box-shadow: 0 0 0 2px var(--azul) inset; }
.cont-ferramentas .cor{ padding: 0; width: 38px; }
.cont-ferramentas .cor i{ width: 20px; height: 20px; border-radius: 50%; display: block; }
.cor-preto{ background: #111827; } .cor-azul{ background: #1D4ED8; } .cor-vermelho{ background: #DC2626; } .cor-verde{ background: #15803D; }
.cont-ferramentas .esp{ width: 18px; height: 3px; border-radius: 2px; background: var(--texto); display: block; }
.cont-ferramentas [data-espessura].grosso .esp{ height: 8px; border-radius: 4px; }
.cont-lousa{ height: calc(100dvh - 300px); min-height: 320px; border-radius: 18px; overflow: hidden; background: #FFFFFF; border: 1px solid var(--borda); }
.cont-lousa{ position: relative; }
.cont-lousa canvas{ position: relative; display: block; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.cont-lousa canvas.guias{ position: absolute; inset: 0; pointer-events: none; }
.cont-ferramentas [data-salvar-quadro]{ height: 38px; padding: 0 14px; margin-left: auto; }

/* Menu (aba Perfil): sem vão no topo e a foto maior. */
.app-conteudo:has(> .app-perfil.compacto){ padding-top: 6px; }
.app-perfil.compacto{ margin: 0 0 12px; gap: 16px; }
.app-perfil.compacto .app-foto{ width: 96px; height: 96px; border-width: 3px; flex: none; }
.app-perfil.compacto h1{ font-size: 22px; line-height: 1.15; }

/* Quadro: a tela não rola, o cronômetro fica compacto e a lousa ocupa o resto. */
html.sem-rolar, html.sem-rolar body{ overflow: hidden; overscroll-behavior: none; }
.app-contador.no-quadro{ gap: 8px; }
.app-contador.no-quadro .cont-relogio{ padding: 6px 12px; }
.app-contador.no-quadro .cont-relogio .tempo{ font-size: 24px; }
.app-contador.no-quadro .cont-ferramentas{ margin-bottom: 0; }
.app-contador.no-quadro .cont-lousa{ height: auto; min-height: 0; }

/* Contador cheio (Repetições e Quadro): ocupa a tela até o menu, sem rolar;
   os botões de + e − e a lousa crescem para caber. */
.app-contador.cheia{ gap: 8px; }
.app-contador.cheia .cont-relogio{ padding: 6px 12px; }
.app-contador.cheia .cont-relogio .tempo{ font-size: 26px; }
.app-contador.cheia > .cont-painel:not([hidden]){ flex: 1; min-height: 0; display: flex; flex-direction: column; }
.app-contador.cheia .cont-reps{ flex: 1; min-height: 0; padding: 10px 12px 12px; }
.app-contador.cheia .cont-reps > b[data-reps]{ font-size: 64px; }
.app-contador.cheia .cont-reps > small{ margin-bottom: 8px; }
.app-contador.cheia .cont-reps-botoes{ flex: 1; min-height: 0; }
.app-contador.cheia .cont-reps-botoes button{ height: 100%; min-height: 90px; max-height: none; }
.app-contador.cheia [data-fechar-round]{ margin-top: 8px; flex: none; }
.app-contador.cheia .cont-parciais{ flex: none; max-height: 58px; overflow-y: auto; margin-top: 6px; }
.app-contador.cheia .cont-parciais:empty{ display: none; }
.app-contador.cheia .cont-lousa{ flex: 1; min-height: 0; height: auto; }
.app-contador.cheia > [data-salvar]{ flex: none; }

/* Disco de atualização no cabeçalho (Aulas e turma): segundos até a próxima olhada. */
.app-topo .app-marca{ margin-right: auto; }
.app-topo .app-pulso{ position: relative; width: 34px; height: 34px; padding: 0; border: 0; background: none; color: var(--texto); cursor: pointer; flex: none; margin-left: 10px;
  display: flex; align-items: center; justify-content: center; }
.app-pulso svg{ position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.app-pulso circle{ fill: none; stroke-width: 3; }
.app-pulso .trilho{ stroke: var(--trilho); }
.app-pulso .arco{ stroke: var(--azul); stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray .9s linear; }
.app-pulso span{ position: relative; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.app-pulso.pausado .arco{ stroke: var(--suave); }
.app-pulso.pausado span{ font-size: 10px; color: var(--suave); }
.app-pulso.chegou{ animation: pulso-chegou .9s ease-out; }
@keyframes pulso-chegou{ 0%{ transform: scale(1); } 30%{ transform: scale(1.18); } 100%{ transform: scale(1); } }

/* Abertura do app: o capacete (como no splash do Android) sobe, o nome aparece
   e "um produto Softsul" logo abaixo; some sozinha em pouco mais de 2 segundos. */
.app-splash{ position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; background: #0E1922; color: #fff;
  animation: splash-sai .4s ease-in 2s forwards; }
.app-splash-marca{ display: flex; flex-direction: column; align-items: center; gap: 18px; }
.app-splash-icone{ width: 100px; height: 100px; border-radius: 26px; background: #1A2734; display: flex; align-items: center; justify-content: center;
  transform: translateY(46px); animation: splash-icone .55s cubic-bezier(.2,.8,.2,1) .3s forwards; }
.app-splash-icone svg{ width: 36px; height: auto; animation: splash-brilho 1.1s ease-in-out .15s; }
.app-splash-palavra{ display: block; width: 210px; clip-path: inset(0 100% 0 0); opacity: 0; animation: splash-palavra .6s cubic-bezier(.3,.7,.2,1) .65s forwards; }
.app-splash-palavra svg{ display: block; width: 100%; height: auto; }
.app-splash-sub{ font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); opacity: 0; transform: translateY(6px);
  animation: splash-sub .45s ease-out 1.15s forwards; }
.app-splash-sub b{ color: #fff; font-weight: 700; }
@keyframes splash-icone{ to{ transform: none; } }
@keyframes splash-brilho{ 50%{ filter: drop-shadow(0 0 14px rgba(90,169,230,.9)); transform: scale(1.08); } }
@keyframes splash-palavra{ to{ clip-path: inset(0 0 0 0); opacity: 1; } }
@keyframes splash-sub{ to{ opacity: 1; transform: none; } }
@keyframes splash-sai{ to{ opacity: 0; visibility: hidden; transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce){ .app-splash{ animation-delay: 1.2s; } .app-splash *{ animation-duration: .01s !important; animation-delay: 0s !important; } }

/* Treino: o resultado do WOD e o ranking do box */
.app-wod-res{ margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--borda); display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 80px; }
.app-wod-meu{ display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.app-wod-meu .rot{ width: 100%; font-size: 12px; color: var(--suave); font-weight: 600; }
.app-wod-meu b{ font-size: 22px; font-variant-numeric: tabular-nums; }
.app-wod-meu em{ font-style: normal; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--cartao-forte); }
.app-wod-meu .pos{ font-size: 13px; color: var(--ambar); font-weight: 700; }
.app-wod-meu .app-botao{ margin-left: auto; }
.app-wod-bloqueio{ display: flex; align-items: center; gap: 8px; margin: 0; }
.app-wod-bloqueio svg{ width: 15px; height: 15px; flex: none; }
.app-wod-ranking summary{ list-style: none; display: flex; align-items: center; gap: 8px; font-weight: 700; cursor: pointer; padding: 4px 0; }
.app-wod-ranking summary::-webkit-details-marker{ display: none; }
.app-wod-ranking summary svg{ width: 17px; height: 17px; color: var(--ambar); }
.app-wod-ranking summary small{ margin-left: auto; color: var(--suave); font-weight: 600; }
.app-wod-ranking ol{ list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; }
.app-wod-ranking li{ display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-top: 1px solid var(--borda); }
.app-wod-ranking li:first-child{ border-top: 0; }
.app-wod-ranking li.eu{ background: var(--cartao-forte); border-radius: 12px; }
.app-wod-ranking .pos{ width: 30px; flex: none; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--suave); }
.app-wod-ranking li:nth-child(-n+3) .pos{ color: var(--ambar); }
.app-wod-ranking .avatar{ width: 34px; height: 34px; border-radius: 50%; flex: none; object-fit: cover; font-size: 12px; }
.app-wod-ranking .nome{ flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.app-wod-ranking .res{ font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.app-wod-ranking em{ font-style: normal; font-size: 10.5px; font-weight: 700; padding: 2px 6px; border-radius: 999px; background: var(--cartao-forte); color: var(--suave); }
.app-wod-ranking em.esc-rx{ color: var(--azul); }
.app-wod-campos{ display: flex; align-items: flex-end; gap: 10px; }
.app-wod-campos label{ flex: 1; min-width: 0; }
.app-wod-campos input{ width: 100%; min-width: 0; }
.app-wod-campos input{ font-size: 24px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.app-wod-campos .sep{ font-size: 26px; font-weight: 800; padding-bottom: 10px; color: var(--suave); }
.app-wod-modo{ display: flex; gap: 8px; }
.app-wod-modo label{ flex: 1; }
.app-wod-modo input{ position: absolute; opacity: 0; pointer-events: none; }
.app-wod-modo span{ display: block; text-align: center; padding: 9px 6px; border-radius: 12px; border: 1px solid var(--borda); background: var(--cartao-forte); font-weight: 700; font-size: 13.5px; }
.app-wod-modo input:checked + span{ background: var(--grad-botao); color: var(--botao-texto); border-color: transparent; }
.app-wod-regressivo .app-dica{ margin: 0 0 6px; }
.app-wod-rotulo{ margin: 4px 0 -4px; font-weight: 700; font-size: 13px; color: var(--suave); }
.app-wod-real{ margin: 0; font-weight: 800; font-size: 15px; color: var(--destaque); }
.app-wod-cap{ display: flex !important; flex-direction: row !important; align-items: center; gap: 10px; font-weight: 600; }
.app-wod-cap input{ width: 20px; height: 20px; accent-color: var(--azul); }
.app-wod-formato{ margin-top: 0; }
.app-wod-apagar{ padding: 0 20px 18px; text-align: center; }
.app-link-perigo{ background: none; border: 0; color: var(--vermelho); font-weight: 700; font-size: 14px; padding: 8px; cursor: pointer; }
a.app-wod{ color: inherit; align-items: center; }
a.app-wod:active{ background: var(--cartao-forte); }
.app-wod .seta{ width: 16px; height: 16px; color: var(--suave); flex: none; }
.app-wod .pos{ display: flex; align-items: center; gap: 4px; color: var(--ambar); font-weight: 700; }
.app-wod .pos svg{ width: 13px; height: 13px; }
.app-wods-dica{ display: flex; align-items: flex-start; gap: 8px; margin: 0 2px 12px; }
.app-wods-dica svg{ width: 16px; height: 16px; flex: none; }
.app-wod-cat{ display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--suave); }
.app-wod-cat.esc-rx{ color: var(--azul); }
.app-wod-cat small{ font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--cartao-forte); color: var(--suave); letter-spacing: 0; }
.app-wod-cat + ol{ margin-top: 4px; }

/* Calendário de treino */
.app-cal-resumo{ display: flex; gap: 10px; margin: 4px 0 14px; }
.app-cal-resumo div{ flex: 1; padding: 12px; border-radius: var(--raio); background: var(--cartao); border: 1px solid var(--borda); text-align: center; }
.app-cal-resumo b{ display: block; font-size: 26px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.app-cal-resumo small{ color: var(--suave); font-size: 12px; }
.app-cal-resumo .falta b{ color: var(--vermelho); }
.app-cal-grade{ display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; padding: 12px; border-radius: var(--raio); background: var(--cartao); border: 1px solid var(--borda); }
.app-cal-grade .sem{ text-align: center; font-size: 11px; font-weight: 700; color: var(--suave); padding-bottom: 4px; }
.app-cal-grade a, .app-cal-grade span:not(.sem):not(.vazio){ position: relative; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 50%;
  font-weight: 700; font-size: 14px; color: var(--texto); font-variant-numeric: tabular-nums; }
.app-cal-grade a:active{ transform: scale(.92); }
.app-cal-grade .futuro{ opacity: .35; }
.app-cal-grade .treinou{ background: var(--grad-botao); color: var(--botao-texto); box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.app-cal-grade .faltou{ box-shadow: inset 0 0 0 2px var(--vermelho); color: var(--vermelho); }
.app-cal-grade .hoje:not(.treinou){ box-shadow: inset 0 0 0 2px var(--destaque); }
.app-cal-grade i{ position: absolute; top: -3px; right: -3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--ambar); color: #1d1d1d;
  font-size: 10px; font-style: normal; display: flex; align-items: center; justify-content: center; }
.app-cal-legenda{ display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 10px 2px 0; font-size: 12px; color: var(--suave); }
.app-cal-legenda .ponto{ width: 12px; height: 12px; border-radius: 50%; margin-left: 6px; }
.app-cal-legenda .ponto:first-child{ margin-left: 0; }
.app-cal-legenda .ponto.treinou{ background: var(--grad-botao); }
.app-cal-legenda .ponto.faltou{ box-shadow: inset 0 0 0 2px var(--vermelho); }
.app-cal-legenda .dica{ margin-left: auto; }

/* Plano: contratos anteriores (caixa e modal) */
.app-outros-contratos{ width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; font: inherit; color: var(--texto); cursor: pointer; }
.app-outros-contratos:active{ transform: scale(.985); }
.app-outros-contratos .ico{ width: 40px; height: 40px; border-radius: 12px; background: var(--cartao-forte); display: flex; align-items: center; justify-content: center; flex: none; }
.app-outros-contratos .txt{ flex: 1; display: flex; flex-direction: column; }
.app-outros-contratos small{ color: var(--suave); font-size: 12.5px; }
.app-outros-contratos .seta{ width: 16px; height: 16px; color: var(--suave); }
.app-contratos-lista{ overflow-y: auto; padding: 0 20px 20px; }
.app-contrato-ant{ border-top: 1px solid var(--borda); }
.app-contrato-ant:first-child{ border-top: 0; }
.app-contrato-ant summary{ list-style: none; display: flex; align-items: center; gap: 10px; padding: 12px 0; cursor: pointer; }
.app-contrato-ant summary::-webkit-details-marker{ display: none; }
.app-contrato-ant summary .txt{ flex: 1; display: flex; flex-direction: column; }
.app-contrato-ant summary small{ color: var(--suave); font-size: 12.5px; }
.app-contrato-ant[open] summary b{ color: var(--destaque); }
.app-contrato-ant dl{ display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; background: var(--cartao-forte); font-size: 13.5px; }
.app-contrato-ant dt{ color: var(--suave); font-weight: 600; }
.app-contrato-ant dd{ margin: 0; font-weight: 600; }

/* Menu: a foto e o nome ficam parados no topo; só a lista rola. */
html:has(main > .app-perfil.compacto), html:has(main > .app-perfil.compacto) body{ overflow: hidden; overscroll-behavior: none; }
main.app-conteudo:has(> .app-perfil.compacto){ display: flex; flex-direction: column; padding-bottom: 12px;
  height: calc(100vh - 56px - var(--topo) - 86px - var(--base)); height: calc(100dvh - 56px - var(--topo) - 86px - var(--base)); }
main.app-conteudo:has(> .app-perfil.compacto) > .app-perfil{ flex: none; }
main.app-conteudo:has(> .app-perfil.compacto) > .app-lista-menu{ flex: 1 1 auto; min-height: 0; max-height: max-content; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
main.app-conteudo:has(> .app-perfil.compacto) > .app-lista-menu::-webkit-scrollbar{ display: none; }

/* Mural (a primeira aba): a saudação com a foto e o título do mural ficam parados; só os posts rolam. */
html:has(main > .app-ola), html:has(main > .app-ola) body{ overflow: hidden; overscroll-behavior: none; }
main.app-conteudo:has(> .app-ola){ display: flex; flex-direction: column; padding-bottom: 0;
  height: calc(100vh - 56px - var(--topo) - 86px - var(--base)); height: calc(100dvh - 56px - var(--topo) - 86px - var(--base)); }
main.app-conteudo:has(> .app-ola) > *{ flex: none; }
main.app-conteudo:has(> .app-ola) > .app-feed{ flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; margin-bottom: 0; }
.app-feed > .app-cab.feed{ flex: none; }
.app-feed-rola{ flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 16px; }
.app-feed-rola::-webkit-scrollbar{ display: none; }
.app-troca-box{ max-width: 58vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-troca-box svg{ flex: none; }

/* Plano: licença */
.app-licenca .app-cab h2{ display: flex; align-items: center; gap: 8px; }
.app-licenca .app-cab h2 svg{ width: 18px; height: 18px; color: var(--ambar); }
.app-licenca.em-curso{ border-color: rgba(251,191,36,.45); }
.app-licenca form{ margin-top: 12px; }
.app-licenca-sem{ opacity: .75; }
.app-wod-campos input[type=date]{ font-size: 16px; font-weight: 600; }

/* Cadastro obrigatório: saúde, termo e contrato com a lousa de assinatura */
.app-cadastro .app-aviso-passo{ margin-bottom: 12px; }
.app-parq{ padding: 10px 0; border-top: 1px solid var(--borda); }
.app-parq:first-of-type{ border-top: 0; }
.app-parq p{ margin: 0 0 8px; font-size: 14px; line-height: 1.4; }
.app-documento{ max-height: 46vh; overflow-y: auto; padding: 14px; border-radius: 14px; background: var(--cartao-forte); font-size: 13.5px; line-height: 1.55; }
.app-documento.contrato img{ max-width: 100%; height: auto; }
.app-lousa-assinatura{ display: flex; flex-direction: column; gap: 6px; }
.app-lousa-assinatura .cab{ display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--suave); }
.app-lousa-assinatura canvas{ width: 100%; height: 180px; border-radius: 14px; background: #fff; touch-action: none; border: 2px dashed var(--borda); }
.app-lousa-assinatura small{ text-align: center; color: var(--suave); border-top: 1px solid var(--borda); padding-top: 4px; }
.app-cadastro-sair{ text-align: center; margin: 4px 0 24px; }

/* Contrato assinado (Menu, Contratos assinados) */
.app-contrato-assinado .app-documento{ max-height: none; overflow: visible; }   /* o texto inteiro, rolando com a página */
.app-assinatura-vista{ margin: 14px 0 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.app-assinatura-vista img{ width: 100%; max-width: 420px; height: auto; border-radius: 14px; background: #fff; border: 1px solid var(--borda); }
.app-assinatura-vista figcaption{ display: flex; flex-direction: column; align-items: center; font-size: 12.5px; color: var(--suave); text-align: center; }
.app-assinatura-vista figcaption b{ color: var(--texto); font-size: 14px; }

/* Perfil: trocar a senha em modal */
.app-trocar-senha{ margin-top: 2px; }
.app-senha-aparelhos{ text-align: center; margin: 8px 2px 18px; }

/* Perfil: os aceites feitos (saúde, termo, contratos) */
.app-meus-aceites{ margin-bottom: 14px; }
.app-meus-aceites button{ width: 100%; font: inherit; color: inherit; background: none; border: 0; text-align: left; cursor: pointer; }
.app-aceite-vista{ overflow-y: auto; padding: 0 20px 20px; }
.app-aceite-vista .app-documento{ max-height: none; overflow: visible; }
.app-parq-vista{ margin: 8px 0 12px; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.app-parq-vista li span{ display: block; }
.app-parq-vista li b{ display: inline-block; margin-top: 2px; font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--cartao-forte); }
.app-parq-vista li b.sim{ color: var(--vermelho); }

/* Minha saúde: alterações */
.app-saude-hist-tit{ margin: 18px 0 6px; font-size: 14px; }
.app-saude-hist{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.app-saude-hist li{ padding: 8px 0; border-top: 1px solid var(--borda); display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.app-saude-hist .quando{ color: var(--suave); font-size: 12px; }

/* Alerta de saúde (só no próprio aluno, na turma): o texto aparece ao tocar. */
.alerta-saude{ position: relative; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-left: 4px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(224,164,58,.18); color: #e0a43a; vertical-align: middle; cursor: pointer; }
.alerta-saude svg{ width: 12px; height: 12px; }
.alerta-saude::after{ content: attr(data-dica); position: absolute; z-index: 40; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%);
  width: max-content; max-width: 220px; padding: 8px 10px; border-radius: 10px; background: #1d2733; color: #fff; font-size: 12px; font-weight: 600;
  line-height: 1.4; text-align: left; white-space: pre-line; box-shadow: 0 6px 18px rgba(0,0,0,.3); opacity: 0; pointer-events: none; transition: opacity .12s; }
.alerta-saude:focus::after, .alerta-saude:hover::after{ opacity: 1; }

/* Meu relógio */
.app-relogio-convite{ text-align: center; }
.app-relogio-ico{ width: 56px; height: 56px; margin: 4px auto 10px; border-radius: 18px; background: var(--cartao-forte); display: flex; align-items: center; justify-content: center; }
.app-relogio-ico svg{ width: 28px; height: 28px; }
.app-relogio-itens{ text-align: left; margin: 12px 0 16px; padding-left: 20px; color: var(--suave); font-size: 13.5px; display: flex; flex-direction: column; gap: 4px; }
.app-relogio-numeros{ display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: 12.5px; color: var(--suave); }
.app-relogio-numeros b{ color: var(--texto); font-size: 14px; }
.app-relogio-numeros.grande{ gap: 6px 18px; font-size: 13px; }
.app-relogio-numeros.grande b{ font-size: 22px; font-weight: 800; }
a.app-relogio-aula{ display: block; color: inherit; text-decoration: none; }
.app-cal-grade .rel{ position: absolute; bottom: 3px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--verde, #2f9e66); }
.app-cal-grade .treinou .rel{ background: #fff; }
.app-cal-legenda .ponto.rel{ width: 7px; height: 7px; background: var(--verde, #2f9e66); }
.app-cal-relogio{ margin-top: 14px; }
.app-cal-relogio .dia{ width: 38px; height: 38px; flex: none; border-radius: 10px; background: var(--cartao-forte); color: inherit; text-decoration: none; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.app-cal-relogio .dia b{ font-size: 15px; }
.app-cal-relogio .dia small{ font-size: 10px; color: var(--suave); margin-top: 2px; }
.app-cal-relogio .nome small{ display: block; font-size: 11.5px; font-weight: 500; color: var(--suave); overflow: hidden; text-overflow: ellipsis; }
.app-relogio-ranking{ display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--borda); font-size: 13.5px; color: var(--suave); }
.app-relogio-ranking span{ display: inline-flex; align-items: center; gap: 6px; }
.app-relogio-ranking svg{ width: 16px; height: 16px; color: var(--ambar); }
.app-relogio-aula .app-wod-ranking{ margin-top: 12px; }
.app-relogio-ranking .app-link{ width: auto; margin: 0; }

/* Cartão do relógio (Treino e aula): números em destaque, gráfico da frequência com as zonas e o tempo em cada zona. */
.app-relogio-card{ padding: 16px; }
.rc-cab{ display: flex; align-items: center; gap: 12px; }
.rc-cab > div{ flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rc-cab > div small{ font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--suave); }
.rc-cab > div b{ font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-ico{ width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--grad-botao); display: flex; align-items: center; justify-content: center; }
.rc-ico svg{ width: 22px; height: 22px; fill: none; stroke: var(--botao-texto); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rc-dur{ display: flex; flex-direction: column; align-items: flex-end; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.rc-dur small{ font-size: 11px; font-weight: 600; color: var(--suave); }
.rc-numeros{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.rc-n{ display: flex; flex-direction: column; align-items: flex-start; padding: 10px 12px; border-radius: 14px; background: var(--cartao-forte); }
.rc-n svg{ width: 18px; height: 18px; margin-bottom: 4px; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rc-n b{ font-size: 26px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.rc-n small{ font-size: 11.5px; color: var(--suave); font-weight: 600; margin-top: 3px; }
.rc-n.kcal svg{ stroke: var(--ambar); fill: color-mix(in srgb, var(--ambar) 25%, transparent); }
.rc-n.media svg{ stroke: var(--vermelho); fill: color-mix(in srgb, var(--vermelho) 22%, transparent); }
.rc-n.max svg{ stroke: var(--vermelho); }
.rc-graf{ margin-top: 14px; }
.rc-grafico{ display: block; width: 100%; height: 110px; border-radius: 12px; overflow: hidden; background: var(--cartao-forte); }
.rc-grafico .faixa{ opacity: .14; }
.rc-grafico .area{ fill: var(--vermelho); opacity: .07; }
.rc-grafico .linha{ fill: none; stroke: var(--vermelho); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.rc-grafico .pico{ fill: var(--cartao); stroke: var(--vermelho); stroke-width: 2.5; }
.rc-eixo{ display: flex; justify-content: space-between; font-size: 11px; color: var(--suave); margin-top: 4px; font-variant-numeric: tabular-nums; }
.rc-zonas{ margin-top: 14px; }
.rc-zonas-cab{ display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.rc-zonas-cab b{ font-size: 14px; }
.rc-zonas-cab small{ font-size: 11.5px; color: var(--suave); }
.rc-barra{ display: block; width: 100%; height: 10px; border-radius: 999px; overflow: hidden; background: var(--cartao-forte); }
.rc-legenda{ display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 8px; }
.rc-legenda span{ display: flex; flex-direction: column; align-items: center; text-align: center; }
.rc-legenda i{ width: 8px; height: 8px; border-radius: 50%; margin-bottom: 3px; }
.rc-legenda b{ font-size: 13px; font-variant-numeric: tabular-nums; }
.rc-legenda small{ font-size: 10px; color: var(--suave); line-height: 1.2; }
.app-relogio-card .z1, .rc-legenda .z1 i{ fill: #94a3b8; background: #94a3b8; }
.app-relogio-card .z2, .rc-legenda .z2 i{ fill: #3b82f6; background: #3b82f6; }
.app-relogio-card .z3, .rc-legenda .z3 i{ fill: #22c55e; background: #22c55e; }
.app-relogio-card .z4, .rc-legenda .z4 i{ fill: #f59e0b; background: #f59e0b; }
.app-relogio-card .z5, .rc-legenda .z5 i{ fill: #ef4444; background: #ef4444; }
.rc-legenda span.z1, .rc-legenda span.z2, .rc-legenda span.z3, .rc-legenda span.z4, .rc-legenda span.z5{ background: none; }
.rc-mais{ display: block; margin-top: 12px; text-align: center; font-size: 13px; font-weight: 700; color: var(--destaque); text-decoration: none; }
.app-relogio-card .app-wod-ranking{ margin-top: 12px; }
.rc-legenda span.zero{ opacity: .4; }
.app-relogio-fundo{ display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--borda); font-size: 13.5px; color: var(--suave); }
.app-relogio-fundo > span{ display: inline-flex; align-items: center; gap: 6px; }
.app-relogio-fundo svg{ width: 16px; height: 16px; color: var(--verde); }
.app-relogio-fundo .app-link{ width: auto; margin: 0; }
.app-relogio-servicos{ margin-top: 14px; }
.app-relogio-servico{ display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--borda); }
.app-relogio-servico:first-of-type{ border-top: 0; }
.app-relogio-servico .marca{ width: 38px; height: 38px; flex: none; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; font-size: 17px; }
.app-relogio-servico .m-strava{ background: #fc4c02; }
.app-relogio-servico .m-polar{ background: #d50032; }
.app-relogio-servico .m-garmin{ background: #007cc3; }
.app-relogio-servico .m-whoop{ background: #111; }
.app-relogio-servico .m-huawei{ background: #c7000b; }
.app-relogio-servico .txt{ flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-relogio-servico .txt small{ font-size: 12px; color: var(--suave); overflow: hidden; text-overflow: ellipsis; }
.app-relogio-servico .app-botao.mini{ width: auto; padding: 8px 14px; }

/* Calendário de treino: o quadro do relógio no mês e o gráfico por dia. */
.app-cal-quadro{ margin-top: 14px; }
.rc-numeros.quatro{ grid-template-columns: repeat(2, 1fr); margin-top: 6px; }
.rc-n.horas svg{ stroke: var(--azul); }
.app-cal-grafico{ margin-top: 16px; }
.app-cal-grafico .tit{ display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 13px; font-weight: 700; }
.app-cal-grafico .leg{ margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--suave); }
.app-cal-grafico .leg i{ width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-left: 6px; }
.app-cal-grafico .leg i.media{ background: var(--vermelho); }
.app-cal-grafico .leg i.max{ border: 2px solid var(--vermelho); width: 7px; height: 7px; }
.app-cal-grafico svg{ display: block; width: 100%; height: auto; overflow: visible; }
.app-cal-grafico .guia{ stroke: var(--borda); stroke-width: 1; stroke-dasharray: 2 4; }
.app-cal-grafico text{ font-family: inherit; fill: var(--suave); font-size: 9px; }
.app-cal-grafico .esc{ text-anchor: end; }
.app-cal-grafico .dia, .app-cal-grafico .val{ text-anchor: middle; }
.app-cal-grafico .val{ fill: var(--texto); font-weight: 700; font-size: 8.5px; }
.app-cal-grafico .gk1{ stop-color: #f59e0b; }
.app-cal-grafico .gk2{ stop-color: #f97316; stop-opacity: .55; }
.app-cal-grafico .barra{ fill: url(#gk); }
.app-cal-grafico .tend{ fill: none; stroke: var(--vermelho); stroke-width: 1.5; stroke-opacity: .35; stroke-linejoin: round; }
.app-cal-grafico .haste{ stroke: var(--vermelho); stroke-width: 2; stroke-opacity: .45; stroke-linecap: round; }
.app-cal-grafico .media{ fill: var(--vermelho); stroke: var(--cartao); stroke-width: 1.5; }
.app-cal-grafico .max{ fill: var(--cartao); stroke: var(--vermelho); stroke-width: 1.8; }
/* Calendário de treino: a grade do mês é grande demais para ficar presa no topo (escondia o quadro do relógio). */
.app-semana.app-cal{ position: static; margin: 0 0 12px; padding: 0; background: none; border: 0; box-shadow: none; backdrop-filter: none; }
/* Treino: os dias com check-in em destaque (verde, com o ponto); sem check-in, apagados. */
.app-dias.semana a.checkin:not(.ativo){ opacity: 1; background: color-mix(in srgb, var(--verde) 14%, var(--cartao)); border-color: color-mix(in srgb, var(--verde) 55%, transparent); }
.app-dias.semana a.checkin:not(.ativo) b{ color: var(--verde); }
.app-dias.semana a.checkin{ position: relative; }
.app-dias.semana a.checkin::after{ content: ""; position: absolute; left: 50%; bottom: 5px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--verde); }
/* Com treino e sem check-in: cinza; sem treino: cinza claro. */
.app-dias.semana a.sem-checkin:not(.ativo){ opacity: 1; background: color-mix(in srgb, var(--suave) 22%, var(--cartao)); border-color: color-mix(in srgb, var(--suave) 40%, transparent); }
.app-dias.semana a.sem-checkin:not(.ativo) b{ color: color-mix(in srgb, var(--texto) 75%, var(--suave)); }
.app-dias.semana a.sem-treino:not(.ativo){ opacity: .4; }

/* Trocar a data ou a página na mesma tela (Aulas, Treino, Meus WODs, Meu relógio...): sem a tela
   piscar. O cabeçalho, o menu e a barra da semana ficam parados; só o conteúdo esmaece e volta.
   Entre telas diferentes a transição é pulada (pageswap, em app-aluno.js). */
@view-transition { navigation: auto; }
.app-topo{ view-transition-name: topo; }
.app-menu{ view-transition-name: menu; }
.app-semana:not(.app-cal){ view-transition-name: semana; }
::view-transition-old(root), ::view-transition-new(root){ animation-duration: .16s; }
.app-relogio-ultimos{ margin-top: 14px; }
/* Voltar de uma turma (#aula-N): sem o contorno de foco do Android; a turma dá um brilho rápido. */
.app-aula:focus{ outline: none; }
.app-aula:target, .app-aula.volta{ animation: aula-volta 1.4s ease-out; }
@keyframes aula-volta{ 0%{ box-shadow: 0 0 0 3px color-mix(in srgb, var(--destaque) 70%, transparent); } 100%{ box-shadow: 0 0 0 3px transparent; } }
.app-relogio-servico-acoes{ display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.app-relogio-servico-acoes .app-link-perigo{ padding: 4px 8px; font-size: 13px; }
.app-relogio-ranking .botoes{ display: flex; align-items: center; gap: 8px; flex: none; }
.app-relogio-ranking .botoes .app-botao.mini{ width: auto; }
.app-relogio-estado .app-cab{ flex-wrap: wrap; gap: 6px; }
.app-relogio-estado .app-cab h2{ margin-right: auto; }
/* Compartilhar o treino (estilo Strava). */
.rc-compartilhar{ flex: none; width: 36px; height: 36px; margin-left: 4px; border-radius: 50%; border: 1px solid var(--borda); background: var(--cartao-forte); color: var(--texto); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.rc-compartilhar:active{ transform: scale(.92); }
.rc-compartilhar svg{ width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.app-folha .botoes.coluna{ grid-template-columns: 1fr; }
.app-compartilhar-previa > div{ max-height: 92vh; overflow: auto; text-align: center; }
.app-compartilhar-previa img{ display: block; width: auto; max-width: 100%; max-height: 62vh; margin: 0 auto 14px; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.app-compartilhar-previa .app-link{ display: block; margin-top: 10px; }
.app-bloco{ position: relative; }
.app-bloco-compartilhar{ position: absolute; top: 12px; right: 0; }
.app-compartilhar-treino{ display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 14px; }
.app-compartilhar-treino svg{ width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.app-compartilhar-previa.sticker img{ background: repeating-conic-gradient(#d4dbe1 0% 25%, #f4f6f8 0% 50%) 50% / 24px 24px; }
.app-cor-amostra{ display: inline-block; width: 18px; height: 18px; border-radius: 50%; margin-right: 10px; vertical-align: -3px; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.app-cor-previa{ height: 54px; border-radius: 16px; margin: 0 0 14px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.app-cor-faixa{ -webkit-appearance: none; appearance: none; width: 100%; height: 22px; border-radius: 999px; margin: 0 0 18px; outline: none;
  background: linear-gradient(90deg, hsl(0,95%,55%), hsl(60,95%,55%), hsl(120,95%,45%), hsl(180,95%,45%), hsl(240,95%,60%), hsl(300,95%,55%), hsl(359,95%,55%)); }
.app-cor-faixa::-webkit-slider-thumb{ -webkit-appearance: none; width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 3px solid rgba(0,0,0,.25); box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.app-cor-faixa::-moz-range-thumb{ width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 3px solid rgba(0,0,0,.25); }
.app-relogio-ajuda-botao{ display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 14px; width: 100%; }
.app-relogio-ajuda-botao svg{ width: 17px; height: 17px; }
.app-relogio-ajuda-pag details{ border-top: 1px solid var(--borda); padding: 12px 0; }
.app-relogio-ajuda-pag summary{ list-style: none; cursor: pointer; font-weight: 800; font-size: 15px; display: flex; justify-content: space-between; align-items: center; }
.app-relogio-ajuda-pag summary::-webkit-details-marker{ display: none; }
.app-relogio-ajuda-pag summary::after{ content: '+'; font-size: 20px; color: var(--suave); }
.app-relogio-ajuda-pag details[open] summary::after{ content: '\2212'; }
.app-relogio-ajuda-pag p, .app-relogio-ajuda-pag li{ color: var(--suave); font-size: 14px; line-height: 1.5; }
.app-relogio-ajuda-pag ul, .app-relogio-ajuda-pag ol{ padding-left: 20px; margin: 8px 0; display: flex; flex-direction: column; gap: 6px; }
.app-relogio-ajuda-pag b{ color: var(--texto); }
.app-relogio-ajuda-acoes{ display: flex; flex-direction: column; gap: 10px; }
.app-relogio-ajuda{ margin-top: 14px; } .app-relogio-ajuda ol{ padding-left: 20px; }

/* Cartão de crédito (Meus cartões e Pagar no cartão). */
.app-cartao-novo{ display: flex; flex-direction: column; gap: 12px; }
.app-cartao-linha{ display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.app-cartao-novo label{ min-width: 0; }
.app-cartao-novo input{ width: 100%; min-width: 0; box-sizing: border-box; }
.app-cartao-novo .app-dica{ display: flex; gap: 6px; align-items: flex-start; }
.app-cartao-novo .app-dica svg{ flex: none; margin-top: 2px; }
.app-cartao-salvo{ display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px 0; border-top: 1px solid var(--borda); }
.app-cartao-salvo:first-of-type{ border-top: 0; }
.app-cartao-salvo > span:first-child{ flex: 1 1 160px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.app-cartao-salvo small{ color: var(--suave); font-size: 12.5px; }
.app-cartao-acoes{ display: flex; gap: 8px; width: 100%; justify-content: flex-end; }
.app-cartao-acoes form{ margin: 0; }
.app-escolha-cartao{ display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.app-cartao-opcao{ display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--borda); border-radius: 12px; background: var(--cartao-forte); cursor: pointer; }
.app-cartao-opcao input{ accent-color: var(--destaque); width: 18px; height: 18px; }
.app-cartao-opcao span{ display: flex; flex-direction: column; color: var(--texto); font-size: 15px; }
.app-cartao-opcao small{ color: var(--vermelho, #f87171); font-size: 12px; }
.app-cartao-opcao.vencido{ opacity: .55; cursor: not-allowed; }

/* O grupo do box no topo: o balão de conversa com as não lidas. */
.app-grupo{ position: relative; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; color: var(--texto); margin-left: 8px; flex: none; }
.app-grupo svg{ width: 24px; height: 24px; }
.app-grupo b{ position: absolute; top: 0; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: #E5484D; color: #fff;
  font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; }

/* Atualização obrigatória pela loja: cobre o app inteiro, sem fechar. */
.app-atualizar-loja{ position: fixed; inset: 0; z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: calc(24px + env(safe-area-inset-top)) 28px calc(24px + env(safe-area-inset-bottom)); background: var(--fundo, #0E1922); color: var(--texto); text-align: center; }
.app-atualizar-loja h1{ margin: 0; font-size: 24px; }
.app-atualizar-loja p{ margin: 0 0 8px; color: var(--suave); max-width: 340px; line-height: 1.45; }
.app-atualizar-loja .app-botao{ min-width: 220px; }

/* Sobre o Centurion (Menu): a versão do app instalado. */
.app-sobre-marca{ display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.app-sobre-marca .app-capacete{ width: 56px; height: 56px; animation: none; filter: none; }
.app-sobre-marca h2{ font-size: 20px; font-weight: 800; margin: 0; }
.app-sobre-dados{ margin: 0 0 14px; border-top: 1px solid var(--borda); }
.app-sobre-dados div{ display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--borda); }
.app-sobre-dados dt{ color: var(--suave); font-size: 14px; }
.app-sobre-dados dd{ margin: 0; font-weight: 700; font-size: 14px; text-align: right; }
.app-sobre-dados dd small{ color: var(--suave); font-weight: 500; }
.app-sobre-aviso, .app-sobre-ok{ display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 0 0 12px; }
.app-sobre-aviso svg, .app-sobre-ok svg{ width: 18px; height: 18px; flex: none; }
.app-sobre-aviso svg{ color: #E5A50A; }
.app-sobre-ok svg{ color: #2EA66B; }

/* Marca do Strava (regras da API, developers.strava.com/guidelines): o botão
   oficial "Connect with Strava" (48 px de altura), o "Powered by Strava" onde
   aparecem dados de lá e o "Ver no Strava" em laranja #FC5200. */
.app-relogio-servico{ flex-wrap: wrap; }
.app-strava-conectar{ display: block; flex-basis: 100%; padding-left: 50px; line-height: 0; }
.app-strava-conectar img{ display: block; height: 48px; width: auto; max-width: 100%; }
.app-selo-strava{ margin: 2px 0 6px; line-height: 0; }
.selo-strava-linha{ display: block; line-height: 0; margin-top: 3px; }
.selo-strava-linha img{ height: 10px; width: auto; }
.app-selo-strava img, .rc-strava img{ height: 15px; width: auto; }
.rc-strava{ display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.ps-claro{ display: none; }
@media (prefers-color-scheme: light){ :root:not([data-tema="escuro"]) .ps-claro{ display: inline; } :root:not([data-tema="escuro"]) .ps-escuro{ display: none; } }
:root[data-tema="claro"] .ps-claro{ display: inline; }
:root[data-tema="claro"] .ps-escuro{ display: none; }
.ver-strava{ color: #FC5200; font-weight: 700; font-size: 13px; text-decoration: none; }
.app-relogio-treino .ver-strava{ display: inline-block; margin-top: 4px; }

/* Selos das lojas na entrada do app (só no navegador). */
.app-entrada .selos-lojas{margin-top:18px; text-align:center}
.app-entrada .selos-lojas p{margin:0 0 6px; font-size:13px; opacity:.75}
.app-entrada .selos-lojas div{display:flex; justify-content:center; align-items:center; gap:4px; flex-wrap:wrap}
.app-entrada .selos-lojas a{line-height:0}
.app-entrada .selos-lojas .selo-google{height:52px; width:auto}
.app-entrada .selos-lojas .selo-apple{height:40px; width:auto}

/* Dica do mural: convite em destaque para o que depende de o aluno aceitar
   (relógio, ranking). Sim leva à tela; Agora não esconde para sempre. */
/* Em vermelho suave, como alerta, e não na cor do app (pedido do Luiz, 16/11/2026). */
.app-dica-mural{ text-align: center; padding: 20px 18px 18px;
  background: rgba(248,113,113,.10); border: 1px solid rgba(248,113,113,.38); }
.app-dica-ico{ width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 18px; background: rgba(248,113,113,.18); color: var(--vermelho); display: flex; align-items: center; justify-content: center; }
.app-dica-ico svg{ width: 28px; height: 28px; }
.app-dica-mural h2{ font-size: 18px; font-weight: 800; margin: 0 0 8px; }
.app-dica-mural p{ color: var(--suave); font-size: 14px; margin: 0 0 16px; }
.app-dica-botoes{ display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.app-dica-botoes .app-botao{ width: 100%; }
.app-dica-botoes .app-botao:not(.fantasma){ background: #E5534B; color: #fff; box-shadow: 0 6px 16px -8px rgba(229,83,75,.7); }
.app-dica-botoes .app-botao.fantasma{ background: transparent; border-color: rgba(248,113,113,.38); }
#ranking{ scroll-margin-top: 90px; }

/* Central de saúde (Fase 1, 17/11/2026). Verde para o que é movimento; a meta em tracejado. */
.app-saude-cab{ margin: 8px 2px 14px; }
.app-saude-cab h1{ font-size: 30px; font-weight: 800; line-height: 1.05; margin-top: 2px; }
.app-saude-convite{ text-align: left; }
.app-saude-convite h2{ font-size: 19px; margin: 12px 0 6px; }
.app-saude-convite p{ margin: 0 0 10px; line-height: 1.45; }
.app-saude-ico{ width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: rgba(52,211,153,.14); color: var(--verde); }
.app-saude-ico svg{ width: 24px; height: 24px; }
.app-saude-lista{ list-style: none; margin: 4px 0 14px; padding: 0; display: grid; gap: 9px; }
.app-saude-lista li{ display: flex; gap: 9px; align-items: flex-start; font-size: 14px; line-height: 1.4; }
.app-saude-lista svg{ width: 17px; height: 17px; flex: none; color: var(--verde); margin-top: 1px; }
.app-saude-convite .app-botao{ width: 100%; }
.app-saude-atualizar{ background: var(--cartao-forte); border: 0; color: var(--texto); width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer; }
.app-saude-atualizar svg{ width: 17px; height: 17px; }
.app-saude-atualizar.girando svg{ animation: saude-gira 1s linear infinite; }
@keyframes saude-gira{ to{ transform: rotate(360deg); } }
.app-saude-hoje .app-cab{ align-items: center; }
.app-saude-topo{ display: flex; align-items: center; gap: 18px; }
.app-saude-anel{ width: 132px; height: 132px; flex: none; }
.app-saude-anel .trilho{ stroke: var(--cartao-forte); }
.app-saude-anel .progresso{ stroke: var(--verde); transition: stroke-dasharray .6s ease; }
.app-saude-anel .num{ fill: var(--texto); font-size: 22px; font-weight: 800; }
.app-saude-anel .rot{ fill: var(--suave); font-size: 11px; font-weight: 600; }
.app-saude-numeros{ flex: 1; display: grid; gap: 10px; }
.app-saude-numeros div{ display: flex; flex-direction: column; }
.app-saude-numeros b{ font-size: 21px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.app-saude-numeros span{ font-size: 12px; color: var(--suave); font-weight: 600; }
.app-saude-frase{ margin: 14px 0 4px; font-size: 14px; line-height: 1.4; }
.app-saude-frase svg{ width: 17px; height: 17px; color: var(--verde); vertical-align: -3px; margin-right: 4px; }
.app-saude-rot{ margin: 12px 0 4px; font-size: 12px; font-weight: 700; color: var(--suave); text-transform: uppercase; letter-spacing: .06em; }
.app-saude-horas{ width: 100%; height: 56px; display: block; }
.app-saude-horas rect{ fill: var(--verde); opacity: .85; }
.app-saude-horas .base, .app-saude-barras .base{ stroke: var(--borda); stroke-width: 1; }
.app-saude-eixo{ display: flex; justify-content: space-between; font-size: 11px; color: var(--suave); margin-top: 2px; }
.app-saude-atualizado{ margin: 10px 0 0; font-size: 12px; color: var(--suave); }
.app-saude-atualizado:empty{ display: none; }
.app-saude-barras{ width: 100%; height: 120px; display: block; }
.app-saude-barras rect{ fill: var(--azul); opacity: .55; }
.app-saude-barras rect.na-meta{ fill: var(--verde); opacity: .9; }
.app-saude-barras rect.hoje{ opacity: 1; }
.app-saude-barras .meta{ stroke: var(--ambar); stroke-width: 1.5; }
.app-saude-dias{ display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 11px; color: var(--suave); margin-top: 4px; }
.app-saude-dias a{ color: var(--suave); padding: 2px 0; border-radius: 8px; }
.app-saude-dias b{ display: block; font-size: 12.5px; color: var(--texto); font-variant-numeric: tabular-nums; }
.app-saude-dias .hoje{ color: var(--verde); font-weight: 700; background: var(--cartao-forte); }
.app-saude-cab + .app-semana{ margin-bottom: 14px; }
.app-saude-legenda{ margin: 10px 0 0; font-size: 12px; color: var(--suave); display: flex; align-items: center; gap: 6px; }
.app-saude-legenda .tracejado{ width: 18px; border-top: 2px dashed var(--ambar); }
.app-saude-grade{ display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.app-saude-grade .app-cartao{ margin: 0; }
.app-saude-mini{ display: flex; flex-direction: column; gap: 2px; }
.app-saude-mini .ico{ width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: rgba(251,191,36,.14); color: var(--ambar); margin-bottom: 6px; }
.app-saude-mini .ico svg{ width: 17px; height: 17px; }
.app-saude-mini b{ font-size: 26px; font-weight: 800; line-height: 1.05; }
.app-saude-mini span{ font-size: 12.5px; color: var(--suave); line-height: 1.3; }
.app-saude-treinos{ margin-bottom: 14px; }
.app-saude-treinos > .app-cab{ padding: 0 2px; }
.app-saude-box-grade{ display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.app-saude-box-grade a{ display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 14px; background: var(--cartao-forte); color: var(--texto); min-width: 0; }
.app-saude-box-grade b{ font-size: 18px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-saude-box-grade span{ font-size: 12px; color: var(--suave); }
.app-saude-chips{ display: flex; flex-wrap: wrap; gap: 8px; }
.app-saude-chips button{ border: 1px solid var(--borda); background: var(--cartao-forte); color: var(--texto); border-radius: 999px;
  padding: 8px 14px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; font-variant-numeric: tabular-nums; }
.app-saude-chips button.ativo{ background: var(--grad-botao); color: var(--botao-texto); border-color: transparent; }
.app-saude-nota{ margin: 12px 0 4px; font-size: 12.5px; color: var(--suave); line-height: 1.45; }
.app-saude-meta .app-link-perigo{ padding-left: 0; font: inherit; font-size: 14px; font-weight: 700; }
/* Tela Plano com dois contratos vigentes: um botão para cada */
.app-plano-escolha{ margin: 0 0 12px; }
.app-saude-chips a{ border: 1px solid var(--borda); background: var(--cartao-forte); color: var(--texto); border-radius: 999px;
  padding: 8px 14px; font-size: 14px; font-weight: 700; text-decoration: none; }
.app-saude-chips a.ativo{ background: var(--grad-botao); color: var(--botao-texto); border-color: transparent; }

/* Conversor de peso: a barra montada. Quilos e libras lado a lado, a barra
   desenhada (SVG que encolhe com a tela) e as anilhas para tocar. Nada passa
   da largura: sem rolar de lado. */
.app-conversor{ display: flex; flex-direction: column; gap: 10px; min-width: 0; overflow-x: hidden; }
.conv-leitura{ display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 6px; }
.conv-num{ min-width: 0; display: flex; flex-direction: column; gap: 2px; background: var(--cartao); border: 1px solid var(--borda); border-radius: var(--raio); padding: 10px 12px 8px; cursor: text; }
.conv-num > span:first-child{ font-size: 12px; font-weight: 700; color: var(--suave); }
.conv-num:focus-within{ border-color: var(--azul); box-shadow: 0 0 0 2px var(--azul) inset; }
.conv-num .v{ display: flex; align-items: baseline; gap: 4px; min-width: 0; }
.conv-num input{ flex: 1; min-width: 0; width: 100%; border: 0; background: transparent; color: var(--texto); font: inherit; font-size: 32px; font-weight: 700; line-height: 1.1; padding: 0; outline: none; font-variant-numeric: tabular-nums; }
.conv-num input::placeholder{ color: var(--borda); }
.conv-num em{ font-style: normal; font-size: 16px; font-weight: 700; color: var(--suave); }
.conv-igual{ width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-botao); color: var(--botao-texto); font-size: 18px; font-weight: 700; }
.conv-barra{ background: var(--cartao); border: 1px solid var(--borda); border-radius: var(--raio); padding: 8px 6px 10px; min-width: 0; }
.conv-barra svg{ display: block; width: 100%; height: auto; max-height: 34vh; }
.conv-lado{ margin: 6px 4px 0; text-align: center; font-size: 13.5px; font-weight: 700; color: var(--texto); min-height: 19px; overflow-wrap: anywhere; }
.conv-unidade{ grid-template-columns: 1fr 1fr; }
.conv-barras{ display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.conv-barras button, .conv-acoes button{ min-width: 0; height: 36px; padding: 0 4px; border: 1px solid var(--borda); border-radius: 12px; background: var(--cartao); color: var(--texto); font: inherit; font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; touch-action: manipulation; }
.conv-barras button.ativo{ border-color: var(--azul); box-shadow: 0 0 0 2px var(--azul) inset; }
.conv-anilhas{ display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; }
.conv-anilhas .anilha{ min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0 6px; border: 0; border-radius: 12px; background: none; color: var(--texto); font: inherit; touch-action: manipulation; cursor: pointer; }
.conv-anilhas .anilha svg{ width: 100%; max-width: 46px; height: auto; transition: transform .12s ease; }
.conv-anilhas .anilha:active svg{ transform: scale(.88); }
.conv-anilhas .anilha b{ font-size: 13px; font-variant-numeric: tabular-nums; }
.conv-acoes{ display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
@media (max-width: 360px){ .conv-barras button{ font-size: 11.5px; padding: 0 2px; } .conv-num input{ font-size: 28px; } .conv-anilhas .anilha b{ font-size: 12px; } }

/* Menu: o botão embaixo da chave de Notificações quando o celular bloqueia. */
.app-lista-menu button.app-avisos-resolver{ width: calc(100% - 32px); margin: 0 16px 14px; padding: 11px 14px; justify-content: center; border: 0; border-radius: 12px;
  background: var(--grad-botao); color: var(--botao-texto); font-weight: 700; font-size: 14px; }
.app-lista-menu button.app-avisos-resolver:active{ background: var(--grad-botao); filter: brightness(.95); }

/* As caixas de marcar do app viram chave liga/desliga, como a do tema escuro no Menu (pedido do Luiz, 25/11/2026). */
.app-check input, .app-wod-cap input{ -webkit-appearance: none; appearance: none; flex: none; position: relative; width: 44px; height: 26px; margin: 0;
  border-radius: 999px; background: var(--trilho); cursor: pointer; transition: background .2s; }
.app-check input::before, .app-wod-cap input::before{ content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--texto); transition: transform .2s; }
.app-check input:checked, .app-wod-cap input:checked{ background: var(--azul); }
.app-check input:checked::before, .app-wod-cap input:checked::before{ transform: translateX(18px); background: #fff; }
.app-check input:focus-visible, .app-wod-cap input:focus-visible{ outline: 2px solid var(--azul); outline-offset: 2px; }
