/* Rodada 3.7 (22/11). Duas partes:
   PARTE 1 = o miolo do painel da versão aprovada (commit 35722508a), linha por linha: tipografia, tamanhos, espaços e distribuição
   das telas 1, 2 e 3. Frederico: "eu te dei o exemplo como o espaçamento está correto... a gente só mudou as posições do menu".
   Tiradas desta parte só as regras da trilha no topo (disposição A) e dos botões antigos.
   PARTE 2 = disposição B por cima: topo, menu lateral, faixa da pergunta, botões no molde do Lighthouse. Nenhuma regra da parte 2
   toca dentro de .tela33 (prova: assinatura computada das telas igual à aprovada). */
/* Rodada 3.7: régua de texto Apple (KB da casa §1). Tamanhos de letra da 3.1 ficam; muda entrelinha, tracking, medida e espaço.
   Papéis: corpo 15px lh 1.47 tracking -0,01em · legenda 13px lh 1.43 · título lh 1.1 tracking fechado · número lh 1.05. */
/* letra: a fonte do sistema da Apple (SF Pro no Mac e no iPhone; Segoe UI no Windows), sem afinar a renderização; corpo em 450 e legenda em 500 */
body.r37 { --font-texto: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Inter, Arial, sans-serif; --font-titulo: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Inter, Arial, sans-serif;
  font-family: var(--font-texto); font-weight: 450; line-height: 1.47; letter-spacing: -.01em; text-rendering: optimizeLegibility; }
body.r37 { --tinta-2: rgba(29, 29, 31, .80); } html.escuro body.r37 { --tinta-2: rgba(244, 242, 236, .78); }
body.r37 .etq, body.r37 .n-etq span, body.r37 .a-cab span, body.r37 .a-valor small, body.r37 .legenda-roda, body.r37 .rot, body.r37 .faixa33, body.r37 .compara dt { font-weight: 500; }
body.r37 input, body.r37 button { font-family: var(--font-texto); }
body.r37 .etq, body.r37 .n-etq span, body.r37 .a-cab span, body.r37 .a-valor small, body.r37 .causas31 li, body.r37 .nota,
body.r37 .legenda-roda, body.r37 .confirmar31 li span, body.r37 .faixa33, body.r37 .rot { line-height: 1.43; letter-spacing: -.012em; }
body.r37 h1, body.r37 h2, body.r37 h3, body.r37 .q-titulo, body.r37 .h-lado, body.r37 .n-etq, body.r37 .a-cab b { line-height: 1.1; letter-spacing: -.022em; }
body.r37 h1.numero, body.r37 .colhe-num, body.r37 .gastos .grande, body.r37 .a-valor { line-height: 1.05; letter-spacing: -.03em; }
/* medida de linha: texto corrido não passa de ~68 caracteres */
body.r37 .explica, body.r37 .leitura p, body.r37 .q-ajuda, body.r37 .porque, body.r37 .colhe-dados li { max-width: 68ch; }
/* respiro na escala 4·8·12·17·24·32·48 */
body.r37 .leitura { gap: 12px; } body.r37 .leitura .h-lado { margin-bottom: 4px; }
body.r37 .b1 h1.numero { margin-top: 4px; } body.r37 .b1 .explica { margin-top: 4px; }
body.r37 .colhe-dados { gap: 12px; }
/* tela 3: rótulo em cima, valor embaixo, alinhados à esquerda; as 3 linhas dividem a altura do cartão sem buraco no meio */
.r37 .compara > div { padding: 24px 32px; gap: 17px; }
.r37 .compara h3 { font-size: 1.125rem; }
.r37 .compara dl > div { display: grid; align-content: center; justify-items: start; gap: 4px; padding: 17px 0; }
.r37 .compara dt { font-size: var(--t-etiqueta); line-height: 1.43; letter-spacing: -.012em; }
.r37 .compara dd { font-size: 1.75rem; line-height: 1.14; letter-spacing: -.02em; font-weight: 700; white-space: normal; }
/* o que você colhe: número e texto na mesma linha de base, colunas de leitura */
.r37 .colheita { column-gap: 48px; }
.r37 .colhe-dados li { line-height: 1.47; }
/* 22/11, Frederico: "a letra ficou melhor, porém precisa aumentar um pouco para leitura". Só o texto de ler sobe um degrau
   (corpo 15 → 16, legenda 13 → 14, miúdo 12 → 13); números e títulos ficam como estão. */
body.r37 { --t-corpo: 1rem; --t-etiqueta: .875rem; font-size: 1rem; }
body.r37 .q-ajuda, body.r37 .porque, body.r37 .explica, body.r37 .leitura p, body.r37 .colhe-dados li, body.r37 .caminho, body.r37 .faixa33 { font-size: 1rem; }
body.r37 .etq, body.r37 .n-etq span, body.r37 .a-cab span, body.r37 .a-valor small, body.r37 .causas31 li, body.r37 .legenda-roda,
body.r37 .confirmar31 li span, body.r37 .gastos .nota, body.r37 .compara dt, body.r37 .rot, body.r37 .rot .rv, body.r37 .empresa, body.r37 .lema { font-size: .875rem; }
body.r37 .tag, body.r37 .premissa, body.r37 .rot .rz, body.r37 .chips button small, body.r37 .pilha31 i, body.r37 .centro span, body.r37 .ordem-areas b small, body.r37 .a-cab b small { font-size: .8125rem; }
/* 22/11, Frederico: "pode aumentar mais um pouco, ainda está pequena". Mais um degrau: corpo 17 (o corpo da Apple), legenda 15, miúdo 14. */
body.r37 { --t-corpo: 1.0625rem; --t-etiqueta: .9375rem; font-size: 1.0625rem; }
body.r37 .q-ajuda, body.r37 .porque, body.r37 .explica, body.r37 .leitura p, body.r37 .colhe-dados li, body.r37 .caminho, body.r37 .faixa33, body.r37 .feitas li { font-size: 1.0625rem; }
body.r37 .etq, body.r37 .n-etq span, body.r37 .a-cab span, body.r37 .a-valor small, body.r37 .causas31 li, body.r37 .legenda-roda,
body.r37 .confirmar31 li span, body.r37 .gastos .nota, body.r37 .compara dt, body.r37 .rot, body.r37 .rot .rv, body.r37 .empresa, body.r37 .lema, body.r37 .quem-preenche p, body.r37 .dadas summary { font-size: .9375rem; }
body.r37 .tag, body.r37 .premissa, body.r37 .rot .rz, body.r37 .chips button small, body.r37 .pilha31 i, body.r37 .centro span, body.r37 .ordem-areas b small, body.r37 .a-cab b small { font-size: .875rem; }
/* 22/11, Frederico: "alguns números têm que aumentar também na tela 2 e 3" */
body.r37 .areas31 .a-valor { font-size: 1.5rem; }
body.r37 .causas31 li::after { font-size: 1rem; }
body.r37 .compara dd { font-size: 2rem; }
@media (min-width: 900px) and (orientation: landscape) { html:not(.vista-cliente) body.r37 .colhe-num { font-size: 2.5rem; } }
body.r37 .colhe-mes { font-size: 1.125rem; }
body.r37 .faixa33 strong { font-size: 1.125rem; }
/* coluna da pergunta cabe em janela baixa */
/* tela 1 no mesmo degrau: mapa de gastos e números da roda */
body.r37 .gastos .grande { font-size: 2.25rem; } body.r37 .pilha31 i { font-size: .9375rem; }
body.r37 .rot .rv { font-size: 1rem; } body.r37 .centro strong { font-size: 1.75rem; }
/* tela 1: mapa de gastos em uma coluna (o número maior quebrava "em 5 anos") */
body.r37 .b1 .so-gastos .gastos { grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
body.r37 .b1 .so-gastos .pilha31 { grid-column: 1; grid-row: auto; }
body.r37 .gastos .grande { white-space: nowrap; }
/* 22/11, Frederico: "o círculo interno 3 de 6 áreas perdem verde não tá combinando". Centro da roda neutro: fundo do cartão e linha fina. */
body.r37 .nucleo { fill: var(--cartao); stroke: var(--apagada-borda); stroke-width: 2; }
/* 22/11, Frederico: "o centro não teria que ser algo mais de acordo com o radar". Centro na família da roda: laranja claro, aro laranja fino, número na cor da perda. */
body.r37 .nucleo { fill: #FFFFFF; stroke: var(--neon); stroke-opacity: .55; stroke-width: 3; }
html.escuro body.r37 .nucleo { fill: #1A1310; stroke-opacity: .6; }
body.r37 .centro strong { color: var(--neon-txt); }
/* 22/11: o escuro com fundos neutros foi desfeito a pedido do Frederico ("a versão antes, o laranja estava melhor mesmo não combinando"). */
/* tela 2: mapa de gastos e a confirmar lado a lado */
.r37 .par37 { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.r37 .par37 .gastos { grid-template-columns: minmax(0, 1fr); }
.r37 .par37 .confirmar31 ul { grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (max-width: 760px) { .r37 .par37 { grid-template-columns: minmax(0, 1fr); } }
/* tela 1 com o painel mais estreito: leitura sem o mapa embaixo */
@media (min-width: 900px) and (orientation: landscape) { html:not(.vista-cliente) .r36.r37 .b1.ativa { grid-template-rows: auto auto auto minmax(0, 1fr); } }
@media (min-width: 900px) and (orientation: landscape) and (max-height: 900px) {
  html:not(.vista-cliente) body.r37 .b2 .areas31 > li { padding: 10px 14px; gap: 6px; }
  html:not(.vista-cliente) body.r37 .b2 .causas31 li { padding: 4px 0; }
  html:not(.vista-cliente) body.r37 .par37 .gastos, html:not(.vista-cliente) body.r37 .par37 .confirmar31 { padding: 12px 16px; gap: 6px; }
  html:not(.vista-cliente) body.r37 .par37 .pilha31 { gap: 4px; } html:not(.vista-cliente) body.r37 .par37 .pilha31 i { padding: 5px 8px; }
}
/* com o índice em coluna própria: tela 2 com uma linha larga por área (nome | valor | causas), tela 1 com mês e ano empilhados */
@media (min-width: 1181px) {
  .r37 .areas31 { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .r37 .areas31 > li { grid-template-columns: minmax(200px, .9fr) minmax(150px, .6fr) minmax(0, 2fr); grid-template-rows: auto; align-items: center; column-gap: 24px; }
  .r37 .areas31 > li .a-cab { grid-column: 1; } .r37 .areas31 > li .a-valor { grid-column: 2; }
  .r37 .areas31 > li .causas31 { grid-column: 3; border-top: 0; border-left: 1px solid var(--linha); padding-left: 20px; align-self: stretch; align-content: center; }
  .r37 .areas31 > li .causas31 li:first-child { padding-top: 0; }
  html:not(.vista-cliente) .r36.r37 .b2.ativa { grid-template-rows: auto auto auto auto auto; align-content: start; }
  html:not(.vista-cliente) .r36.r37 .b2 .areas31 > li { grid-template-rows: auto; }
  .r37 .b1 .numero .par { flex-direction: column; align-items: flex-start; gap: 0; } .r37 .b1 .numero .sep { display: none; }
}
@media (min-width: 1181px) {
  html:not(.vista-cliente) body.r37 .b2 .areas31 > li { padding: 12px 20px; gap: 0 24px; }
  html:not(.vista-cliente) body.r37 .b2 .causas31 li { padding: 5px 0; }
  html:not(.vista-cliente) body.r37 .b2 .causas31 li + li { border-top: 1px solid var(--linha); }
  html:not(.vista-cliente) body.r37 .b2.ativa { row-gap: 10px; }
  html:not(.vista-cliente) body.r37 .b2 .caminho { padding: 10px 16px; }
  .r37 .areas31 > li .causas31 li { grid-template-areas: "tag val" "txt val"; align-items: center; }
}
/* tela 2 cabe inteira: sem a faixa repetida (as linhas já mostram os valores), mapa de gastos mais justo */
@media (min-width: 1181px) {
  html:not(.vista-cliente) body.r37 .b2 .faixa33 { display: none; }
  body.r37 .par37 .gastos .nota { display: none; }
  body.r37 .par37 .gastos h3 { margin-bottom: 2px; }
  body.r37 .par37 .gastos .grande::after { content: "  ·  R$ 1.640/mês"; font-size: .9375rem; font-weight: 600; color: var(--tinta-2); letter-spacing: 0; }
  body.r37 .par37 .pilha31 { gap: 5px; } body.r37 .par37 .pilha31 i { padding: 5px 9px; font-size: .875rem; flex-grow: 0; }
  body.r37 .par37 .gastos, body.r37 .par37 .confirmar31 { padding: 14px 18px; gap: 8px; }
}
@media (min-width: 1181px) { body.r37 .par37 .gastos .nota { display: revert; } body.r37 .par37 .gastos > p.nota { display: none; } }

@media (min-width: 1181px) {
  /* painel largo de novo: número em uma linha, tela 2 em linhas largas */
  .r37 .b1 .numero .par { flex-direction: row; align-items: baseline; gap: 0 18px; } .r37 .b1 .numero .sep { display: inline; }
}
/* enquadramento da tela 1: o texto da esquerda centrado na altura, ao lado da roda */
@media (min-width: 900px) and (orientation: landscape) { html:not(.vista-cliente) .r36.r37 .b1.ativa { align-content: center; grid-template-rows: auto auto auto auto; } html:not(.vista-cliente) .r36.r37 .b1 .roda { grid-row: 1 / span 4; } }
/* tela 1: o bloco de texto da esquerda fica junto e centrado na altura; a roda ocupa a altura toda à direita */
@media (min-width: 900px) and (orientation: landscape) {
  html:not(.vista-cliente) .r36.r37 .b1.ativa { grid-template-rows: minmax(0, 1fr) auto auto auto auto minmax(0, 1fr); align-content: stretch; row-gap: 12px; }
  html:not(.vista-cliente) .r36.r37 .b1 .n-etq { grid-row: 2; } html:not(.vista-cliente) .r36.r37 .b1 h1 { grid-row: 3; }
  html:not(.vista-cliente) .r36.r37 .b1 .explica { grid-row: 4; } html:not(.vista-cliente) .r36.r37 .b1 .leitura { grid-row: 5; margin-top: 16px; }
  html:not(.vista-cliente) .r36.r37 .b1 .roda { grid-row: 1 / -1; }
}
/* enquadramento: o palco maior que a janela (antes de diminuir) não pode rolar quando um botão recebe o foco */
@media (min-width: 900px) and (orientation: landscape) { html:not(.vista-cliente) .r37 .moldura { overflow: hidden; } }
/* enquadramento (22/11, causa medida): o palco diminuía a partir do centro mas o encaixe começava no canto; na tela de 1728 ele ficava
   96 px para a direita e cortado. Agora diminui a partir do canto de cima à esquerda e a moldura não rola. */
@media (min-width: 900px) and (orientation: landscape) {
  html:not(.vista-cliente) .r37 .moldura { display: block; overflow: clip; }
  html:not(.vista-cliente) .r37 .palco { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
}

/* ===================== PARTE 2: disposição B (fora do painel) ===================== */
/* tokens novos, com nomes próprios: não mexem nos do painel */
body.r37 { --tx-lead: 28px; --tx-botao: 18px; --tx-corpo: 17px; --tx-legenda: 14px; --tr-corpo: -.374px; --tr-legenda: -.224px;
  --acao-veu: rgba(46, 125, 18, .09); --acao-veu-2: rgba(46, 125, 18, .15); --acao-fio: rgba(46, 125, 18, .30); --fio-2: rgba(29, 29, 31, .16); }
html.escuro body.r37 { --acao-veu: rgba(118, 232, 49, .10); --acao-veu-2: rgba(118, 232, 49, .17); --acao-fio: rgba(118, 232, 49, .34); --fio-2: rgba(244, 242, 236, .18); }
/* logomarca oficial do kit */
.marca-img { display: inline-flex; align-items: center; } .marca-img img { height: 28px; width: auto; display: block; }
.marca-img .escuro { display: none; } html.escuro .marca-img .claro { display: none; } html.escuro .marca-img .escuro { display: block; }
/* chaves do topo e abas: sem preto (só cor; tamanho das abas é o da aprovada) */
body.r37 .seg { background: var(--pag); }
body.r37 .seg button[aria-pressed="true"] { background: var(--cartao); color: var(--tinta); box-shadow: 0 1px 2px rgba(21, 22, 26, .10), 0 4px 12px -6px rgba(21, 22, 26, .22); }
html.escuro body.r37 .seg button[aria-pressed="true"] { background: #2A2C30; }
body.r37 .abas33 button[data-ir][aria-current="true"] { background: var(--escolha); border-color: var(--escolha); color: var(--escolha-tinta); }
body.r37 .abas33 button[data-ir][aria-current="true"] i { background: var(--escolha-tinta); border-color: var(--escolha-tinta); color: var(--escolha); }
/* 22/11, Frederico: "as opções pré-definidas estão meio brutas... parecendo Excel"; "o quadrante inteiro só cinza clarinho não está destacando".
   Opções = cartões com rótulo e unidade num grupo único, com o campo do número dentro do mesmo grupo; "✓ Salvo" discreto.
   Superfície dos 3 blocos no sistema de cartões do site da Xpression (index.html medido: cartão branco sem borda, anel 1 px a 6%,
   sombra longa 0 18px 34px -26px; no escuro, anel interno branco a 8%). */
body.r37 { --escolha: #1D1D1F; --escolha-tinta: #FFFFFF; --grupo: #F2F2F5; --anel: 0 0 0 1px rgba(0, 0, 0, .06); --cartao-sombra: 0 0 0 1px rgba(0, 0, 0, .06), 0 18px 34px -26px rgba(0, 0, 0, .35), 0 2px 6px -4px rgba(0, 0, 0, .08); }
html.escuro body.r37 { --escolha: #F4F2EC; --escolha-tinta: #0A1C06; --grupo: #18191C; --anel: 0 0 0 1px rgba(255, 255, 255, .08) inset; --cartao-sombra: 0 0 0 1px rgba(255, 255, 255, .08) inset, 0 30px 60px -48px rgba(0, 0, 0, .9); }
body.r37 .indice-lado.cartao, body.r37 .perguntas.cartao, body.r37 .painel.cartao { border: 0; border-radius: var(--raio-lg); box-shadow: var(--cartao-sombra); }
/* grupo de resposta: as opções em cima, o número exato embaixo, um fundo só */
body.r37 .perguntas .chips { background: var(--grupo); border-radius: var(--raio-lg) var(--raio-lg) 0 0; padding: 6px 6px 3px; gap: 6px; }
body.r37 .perguntas .campo { background: var(--grupo); border-radius: 0 0 var(--raio-lg) var(--raio-lg); padding: 3px 6px 6px 18px; }
body.r37 .perguntas .chips[hidden] + .campo { border-radius: var(--raio-lg); padding: 6px 6px 6px 18px; }
body.r37 .perguntas .chips button { min-height: 62px; padding: 8px 10px; border: 0; border-radius: var(--raio-md); background: var(--cartao); box-shadow: var(--anel); color: var(--tinta);
  display: grid; align-content: center; justify-items: center; gap: 2px; text-align: center; position: relative;
  transition: box-shadow .25s var(--curva), background-color .25s var(--curva), transform .25s var(--curva); }
body.r37 .perguntas .chips button b { font-size: var(--tx-corpo); font-weight: 600; line-height: 1.2; letter-spacing: -.2px;  text-wrap: balance; }
body.r37 .perguntas .chips button small { display: block; margin: 0; font-size: var(--tx-legenda); font-weight: 400; line-height: 1.2; letter-spacing: var(--tr-legenda); color: var(--tinta-2); }
body.r37 .perguntas .chips button:hover { box-shadow: 0 0 0 1px var(--acao-fio), 0 8px 18px -12px rgba(46, 125, 18, .45); transform: translateY(-1px); }
body.r37 .perguntas .chips button[aria-pressed="true"] { background: var(--escolha); box-shadow: 0 10px 22px -14px rgba(0, 0, 0, .55); color: var(--escolha-tinta); }
body.r37 .perguntas .chips button[aria-pressed="true"] small { color: var(--escolha-tinta); opacity: .72; }
body.r37 .perguntas .chips button[aria-pressed="true"]::after { content: "\2713"; position: absolute; top: 6px; right: 6px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--color-verde-luz); color: var(--color-noite); font-size: 11px; font-weight: 700; animation: check-pop .38s cubic-bezier(.23, 1, .32, 1) both; }
@keyframes check-pop { from { transform: scale(.4); opacity: 0; } }
html.escuro body.r37 .perguntas .chips button { background: #222327; }
/* número exato: rótulo, campo branco e o check, numa linha dentro do grupo */
body.r37 .perguntas .campo { display: flex; align-items: center; gap: 12px; }
body.r37 .perguntas .campo .campo-rot { font-size: var(--tx-legenda); font-weight: 500; letter-spacing: var(--tr-legenda); color: var(--tinta-2); white-space: nowrap; }
body.r37 .perguntas .campo input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 0; border-radius: var(--raio-md); background: var(--cartao); box-shadow: var(--anel); font: 500 var(--tx-corpo) var(--font-texto); letter-spacing: var(--tr-corpo); color: var(--tinta); }
html.escuro body.r37 .perguntas .campo input { background: #222327; }
body.r37 .perguntas .campo input::placeholder { color: var(--tinta-2); opacity: .7; }
body.r37 .perguntas .campo input:focus { outline: 0; box-shadow: 0 0 0 2px var(--acao); }
.salvo { display: inline-flex; align-items: center; gap: 6px; font-size: var(--tx-legenda); font-weight: 500; letter-spacing: var(--tr-legenda); color: var(--verde-txt); min-height: 20px; white-space: nowrap; padding-right: 8px; }
.salvo[hidden] { display: inline-flex; visibility: hidden; } .salvo svg { width: 16px; height: 16px; }

/* menu lateral das 12 perguntas (aprovado na rodada anterior: nome 17/500, resposta 14/400, letra normal) */
.indice-lado { display: flex; flex-direction: column; --ic-aceso: var(--acao); }
html.escuro .indice-lado { --ic-aceso: var(--color-verde-luz); }
.indice-lado .pg { padding: 4px 6px 14px; border-bottom: 1px solid var(--linha); }
/* progresso: 12 segmentos, um por pergunta (Frederico: "ele está na metade, mas não está na metade") */
.indice-lado .pgtrilha { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; height: 6px; background: none; overflow: visible; }
.indice-lado .pgtrilha i { display: block; height: 100%; border-radius: 999px; background: var(--linha); width: auto !important; transition: background-color .45s var(--curva), box-shadow .45s var(--curva); }
.indice-lado .pgtrilha i.ok { background: linear-gradient(90deg, var(--acao), var(--color-verde-luz)); }
.indice-lado .pgtrilha i.agora { background: var(--cartao); box-shadow: inset 0 0 0 1.5px var(--acao), 0 0 8px rgba(118, 232, 49, .55); }
.indice-lado .pgtxt { margin-top: 8px; font-size: var(--tx-corpo); line-height: 1.24; letter-spacing: var(--tr-corpo); color: var(--tinta-2); } .indice-lado .pgtxt b { color: var(--verde-txt); font-weight: 600; }
.indice-lado .lat-rot { margin: 12px 6px 8px; font-size: var(--tx-corpo); font-weight: 600; line-height: 1.24; letter-spacing: var(--tr-corpo); color: var(--tinta-2); }
.indice-rx { list-style: none; margin: 0; padding: 0; position: relative; display: flex; flex-direction: column; gap: 4px; }
.indice-rx > li { position: relative; z-index: 1; display: grid; grid-template-columns: 32px 20px minmax(0, 1fr); align-items: center; gap: 12px; min-height: 52px; padding: 8px 10px; border-radius: var(--raio-md); color: var(--tinta-2); cursor: pointer; transition: background-color .45s var(--curva), box-shadow .45s var(--curva); }
.indice-rx > li::after { content: ""; position: absolute; left: 25px; top: -4px; height: 4px; width: 2px; background: var(--linha); z-index: 0; }
.indice-rx > li:first-child::after { display: none; }
.indice-rx > li.cheia::after, .indice-rx > li.cheia + li::after { background: var(--acao); opacity: .55; }
.indice-rx > li:focus-visible { outline: 2px solid var(--acao); outline-offset: 2px; }
.indice-rx > li.cheia:hover, .indice-rx > li.proxima:hover { background: var(--pag); }
.indice-rx .n { width: 32px; height: 32px; border-radius: var(--raio-sm); display: flex; align-items: center; justify-content: center; position: relative; background: var(--pag); border: 1px solid transparent; color: var(--tinta-2); font-size: var(--tx-legenda); font-weight: 600; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.indice-rx .ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; color: var(--tinta-2); }
.indice-rx .rot-n { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.indice-rx .rot-n b { font-size: var(--tx-corpo); font-weight: 500; line-height: 1.24; letter-spacing: var(--tr-corpo); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.indice-rx .rot-n small { font-size: var(--tx-legenda); font-weight: 400; line-height: 1.43; letter-spacing: var(--tr-legenda); color: var(--tinta-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.indice-rx .rot-n small:empty { display: none; }
.indice-rx li.cheia { color: var(--tinta); }
.indice-rx li.cheia .n { background: linear-gradient(160deg, var(--color-verde-luz), var(--acao)); border-color: transparent; color: #fff; text-indent: -999px; overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 0 0 2px var(--cartao), 0 4px 12px -4px rgba(46, 125, 18, .6); animation: check-pop .45s cubic-bezier(.23, 1, .32, 1) both; }
.indice-rx li.cheia .n::after { content: "\2713"; position: absolute; inset: 0; display: grid; place-items: center; text-indent: 0; font-size: 16px; font-weight: 800; color: #fff; text-shadow: 0 1px 1px rgba(10, 28, 6, .35); }
.indice-rx li.cheia .ic { color: var(--acao); }
.indice-rx li.proxima { --ic-aceso: currentColor; } .indice-rx li.proxima .n { border-color: var(--linha); background: transparent; }
.indice-rx li.atual { background: var(--cartao); color: var(--tinta); box-shadow: 0 10px 26px -14px rgba(46, 125, 18, .45), 0 2px 8px -4px rgba(21, 22, 26, .12); }
.indice-rx li.atual .rot-n b { font-weight: 600; } .indice-rx li.atual .rot-n small { color: var(--verde-txt); font-weight: 600; }
.indice-rx li.atual::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 3px; border-radius: 999px; background: linear-gradient(180deg, var(--color-verde-luz), var(--acao)); animation: cresce-barra .45s var(--curva) both; }
@keyframes cresce-barra { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.indice-rx li.atual .n { background: linear-gradient(160deg, var(--color-verde-luz), var(--acao)); color: #fff; font-weight: 700; animation: farol 2s cubic-bezier(.4, 0, .6, 1) infinite; }
@keyframes farol {
  0%, 100% { box-shadow: 0 0 0 2px var(--cartao), 0 0 0 5px rgba(46, 125, 18, .40), 0 0 16px rgba(46, 125, 18, .55), 0 0 34px rgba(46, 125, 18, .30); }
  50% { box-shadow: 0 0 0 2px var(--cartao), 0 0 0 5px rgba(46, 125, 18, .22), 0 0 10px rgba(46, 125, 18, .30), 0 0 22px rgba(46, 125, 18, .15); } }
.indice-rx li.atual .ic { color: var(--acao); }
html.escuro .indice-rx li.atual { background: #1A1C1F; box-shadow: 0 0 0 1px rgba(118, 232, 49, .22), 0 10px 26px -14px rgba(118, 232, 49, .35); }
@media (prefers-reduced-motion: reduce) { .indice-rx li.atual .n, .indice-rx li.atual::before { animation: none; } }

/* página corrida (celular): só a pergunta e os botões */
@media (max-width: 899px), (orientation: portrait) {
  body.r37 .tela { grid-template-columns: minmax(0, 1fr); }
  body.r37 .indice-lado { position: static; }
  body.r37 .chaves .seg { flex: 1 1 100%; } body.r37 .seg button { white-space: nowrap; min-height: 44px; }
  body.r37 .perguntas { display: grid; gap: 17px; }
  body.r37 .nav-perg { flex-direction: column; align-items: stretch; gap: 8px; }
  body.r37 .perguntas .campo { display: flex; align-items: center; gap: 12px; } body.r37 .perguntas .campo input { flex: 1; min-width: 0; }
}

/* palco 1920 × 1080: menu à esquerda, pergunta em faixa em cima, painel embaixo */
@media (min-width: 900px) and (orientation: landscape) {
  html:not(.vista-cliente) body.r37 .topo { padding: 12px 32px; gap: 17px; }
  html:not(.vista-cliente) body.r37 .tela { max-width: none; height: 100%; min-height: 0; margin: 0; padding: 17px 32px 24px; display: grid;
    grid-template-columns: 344px minmax(0, 1fr); grid-template-rows: var(--faixa-alt, 178px) minmax(0, 1fr); gap: 17px 24px; }
  html:not(.vista-cliente) body.r37 .indice-lado { grid-column: 1; grid-row: 1 / -1; position: static; align-self: stretch; min-height: 0; padding: 12px 16px; overflow: hidden; }
  html:not(.vista-cliente) body.r37 .indice-lado .nav-perg { margin-top: auto; padding: 12px 6px 0; border-top: 1px solid var(--linha); flex-direction: column; align-items: stretch; gap: 8px; }
  /* a faixa da pergunta: texto à esquerda; faixas em pílula e campo com o check à direita */
  html:not(.vista-cliente) body.r37 .perguntas { grid-column: 2; grid-row: 1; position: static; overflow: visible; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 48px; row-gap: 0; align-content: center; align-items: start; min-height: 0; height: 100%; padding: 20px 32px; }
  html:not(.vista-cliente) body.r37 .perguntas > div:first-of-type { grid-column: 1; grid-row: 1 / span 2; align-self: center; }
  html:not(.vista-cliente) body.r37 .perguntas > :not(:first-child) { grid-column: 2; }
  html:not(.vista-cliente) body.r37 .perguntas .etq { font-size: var(--tx-legenda); font-weight: 600; line-height: 1.43; letter-spacing: var(--tr-legenda); }
  html:not(.vista-cliente) body.r37 .perguntas .q-titulo { margin: 12px 0 0; font-size: var(--tx-lead); font-weight: 600; line-height: 1.14; letter-spacing: 0; }
  html:not(.vista-cliente) body.r37 .perguntas .q-ajuda { margin-top: 8px; font-size: var(--tx-corpo); line-height: 1.47; letter-spacing: var(--tr-corpo); color: var(--tinta-2); max-width: 64ch; }
  html:not(.vista-cliente) body.r37 .perguntas .chips { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  html:not(.vista-cliente) body.r37 .perguntas .chips[hidden] { display: none; }
  html:not(.vista-cliente) body.r37 .perguntas .porque { display: none; }
  html:not(.vista-cliente) body.r37 .perguntas .campo input { flex: 1; min-width: 0; }
  html:not(.vista-cliente) body.r37 .perguntas .chips[hidden] + .campo { grid-row: 1 / span 2; align-self: center; }
  /* o painel só muda de lugar: o miolo é o da aprovada */
  html:not(.vista-cliente) body.r37 .painel { grid-column: 2; grid-row: 2; min-height: 0; }
  /* login do cliente: sem a faixa da pergunta e sem botões; o painel desce do topo */
  html.cliente37 body.r37 .tela { grid-template-rows: minmax(0, 1fr); }
  html.cliente37 body.r37 .painel { grid-row: 1 / -1; }
}
html.cliente37 body.r37 .perguntas, html.cliente37 .nav-perg { display: none; }
html.cliente37 .indice-rx > li { cursor: default; } html.cliente37 .indice-rx > li:hover { background: transparent; }
html.cliente37 .indice-rx li.atual { background: transparent; box-shadow: none; } html.cliente37 .indice-rx li.atual::before { display: none; } html.cliente37 .indice-rx li.atual .n { animation: none; }
html.cliente37 .faixa-cliente { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; justify-content: space-between; padding: 12px 18px; border-radius: var(--raio-md); background: var(--pag); }
/* visão do cliente: a faixa "Painel Raio-X da clínica" ganha a própria linha; as abas não esticam na altura */
@media (min-width: 900px) and (orientation: landscape) {
  html.cliente37 .r37 .painel { grid-template-rows: auto auto minmax(0, 1fr); }
  .r37 .abas33 { align-self: start; } .r37 .abas33 button { height: auto; }
}

/* Próxima e Voltar: efeito botao-capsula da casa (fx-botao-capsula.css, cópia da biblioteca), mesma anatomia nos dois:
   cápsula com a seta à esquerda, rótulo logo depois; no passar do mouse a cápsula atravessa. Primário = CTA do site (verde-luz,
   tinta noite, pílula, 600); secundário = contorno discreto. */
.nav-perg .fx-bt { width: 100%; font-size: var(--tx-corpo); font-weight: 600; letter-spacing: -.2px; --fx-bt-alt: 48px; --fx-bt-cap: 36px; --fx-bt-folga: 6px; --fx-bt-pad: 18px; }
.nav-perg .fx-pri { --fx-bt-fundo: var(--color-verde-luz); --fx-bt-tinta: var(--color-noite); --fx-bt-cap-fundo: var(--color-noite); --fx-bt-cap-tinta: var(--color-verde-luz); --fx-bt-veu: #8BF04F; box-shadow: 0 10px 24px -14px rgba(118, 232, 49, .9); }
.nav-perg .fx-sec { --fx-bt-fundo: transparent; --fx-bt-borda: var(--fio-2); --fx-bt-tinta: var(--tinta-2); --fx-bt-tinta-veu: var(--tinta); --fx-bt-cap-fundo: var(--grupo); --fx-bt-cap-tinta: var(--tinta); --fx-bt-veu: var(--grupo); }
.nav-perg .fx-bt:disabled { opacity: .38; cursor: default; pointer-events: none; box-shadow: none; }
.nav-perg .fx-bt-cap svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav-perg .fx-bt:focus-visible { outline: 2px solid var(--acao); outline-offset: 3px; }

/* ===== Tela 1 (liberada pelo Frederico em 22/11: "a roda deveria estar do lado esquerdo e o texto do lado direito";
   "'administrativo sem perda', 'cliente', isso aí poderia estar um pouquinho maior"; "tem que ter coerência").
   Números, textos e cores de perda ficam; muda posição e o tamanho dos rótulos da roda. Telas 2 e 3 seguem a aprovada. ===== */
@media (min-width: 900px) and (orientation: landscape) {
  html:not(.vista-cliente) body.r37 .b1.ativa { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); column-gap: 48px; row-gap: 17px; padding: 24px 40px; }
  html:not(.vista-cliente) body.r37 .b1 .roda { grid-column: 1; grid-row: 1 / -1; align-self: center; justify-self: center; width: min(calc(100% - 96px), 600px); max-width: none; margin: 0; }
  html:not(.vista-cliente) body.r37 .b1 .n-etq, html:not(.vista-cliente) body.r37 .b1 h1, html:not(.vista-cliente) body.r37 .b1 .explica, html:not(.vista-cliente) body.r37 .b1 .leitura { grid-column: 2; }
  html:not(.vista-cliente) body.r37 .b1 .leitura { margin-top: 12px; padding-top: 24px; border-top: 1px solid var(--perda-borda); gap: 12px; }
  /* rótulos da roda: o mesmo cartão para as 6 áreas (nome em cima, valor embaixo), maiores que o corpo */
  html:not(.vista-cliente) body.r37 .b1 .rot { min-width: 148px; padding: 9px 16px; gap: 2px; border-radius: var(--raio-md); border: 1px solid var(--apagada-borda); background: var(--cartao); box-shadow: 0 8px 18px -14px rgba(0, 0, 0, .35); }
  html:not(.vista-cliente) body.r37 .b1 .rot b { font-size: 21px; font-weight: 600; line-height: 1.19; letter-spacing: 0; color: var(--tinta); }
  html:not(.vista-cliente) body.r37 .b1 .rot .rv, html:not(.vista-cliente) body.r37 .b1 .rot .rz { font-size: 17px; font-weight: 600; line-height: 1.24; letter-spacing: -.2px; }
  html:not(.vista-cliente) body.r37 .b1 .rot .rv { color: var(--neon-txt); }
  html:not(.vista-cliente) body.r37 .b1 .rot .rz { color: var(--tinta-2); font-weight: 500; }
  html:not(.vista-cliente) body.r37 .b1 .rot:not(.acesa) b { color: var(--tinta-2); }
  html:not(.vista-cliente) body.r37 .b1 .rot.acesa { border-color: var(--neon); }
  html:not(.vista-cliente) body.r37 .b1 .rot .pr { width: 28px; height: 28px; top: -12px; left: -12px; font-size: 14px; font-weight: 700; }
  html.escuro body.r37 .b1 .rot { background: #17181B; }
}
/* legenda da roda (tela 1): amostra em pílula, raio do kit */
body.r37 .b1 .legenda-roda i { border-radius: var(--raio-pill); }
