/* =============================================================================
   JORNADA PEG — base, casca e componentes j-* do aluno (02 §4.1, §4.3, §4.4;
   Onda 1, 10/10/2026)
   =============================================================================

   Ordem de carga em toda tela do aluno: mindhub/mindhub.css → tokens.css →
   este arquivo → jogo.css. Os componentes mh-* do mindhub.css valem como
   estão (com os tokens da Jornada); os exclusivos da Jornada nascem aqui com
   prefixo j-. Este arquivo tem regra de elemento (body, a, h1): só a casca do
   aluno o carrega, nunca o Portal do Monitor.

   Sem estilo inline em template nenhum: a CSP de /jornada/ não deixa
   (style-src 'self'). Mobile-first: celular até 599 px, tablet de 600 a
   1023 px, PC a partir de 1024 px. Funciona a partir de 320 px sem rolagem
   horizontal (WCAG 1.4.10).
   ============================================================================= */

/* ---- Fontes do próprio domínio (02 §4.1.3), licença OFL ao lado ------------ */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fontes/inter-400.ea5879884a95.ttf") format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fontes/inter-600.465266b2b986.ttf") format('truetype');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fontes/montserrat-800.8aa4bd90ab18.ttf") format('truetype');
}

/* ---- Base ------------------------------------------------------------------ */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-size: var(--mh-t-base);
  overflow-wrap: break-word;
}
h1, h2, h3, h4 { font-weight: 800; }
img, svg { max-width: 100%; }
img { height: auto; }

/* Link em texto: vermelho escuro o bastante para texto pequeno nos dois temas
   (o --mh-marca do mindhub.css no escuro dá 3,59:1) e sublinhado, para não
   depender só da cor. */
a { color: var(--j-marca-texto); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--j-marca-texto); }

/* Alvo de toque mínimo de 44 px e campo em 16 px (02 §4.1.4). */
.mh-btn { min-height: var(--j-toque); font-size: var(--mh-t-sm); text-decoration: none; }
a.mh-btn:hover { text-decoration: none; }
a.mh-btn:not(.mh-btn--principal):hover { color: var(--mh-texto); }
.mh-campo,
.j-principal :is(input[type="text"], input[type="email"], input[type="password"],
  input[type="number"], input[type="date"], input[type="url"], input[type="search"],
  select, textarea) {
  min-height: var(--j-toque);
  font-size: var(--mh-t-base);
  border-color: var(--j-borda-campo);
}

/* Texto só para leitor de tela. */
.j-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Ícones Lucide desenhados pelo {% icone %}: contorno, currentColor. */
.j-icone { width: 20px; height: 20px; flex: 0 0 auto; }
.j-icone--sm { width: 16px; height: 16px; }
.j-icone--lg { width: 24px; height: 24px; }

/* ---- "Pular para o conteúdo": o primeiro elemento focável ------------------ */
.j-pular {
  position: absolute;
  left: var(--mh-e-2);
  top: -200px;
  z-index: 100;
  padding: var(--mh-e-3) var(--mh-e-4);
  background: var(--mh-superficie);
  color: var(--mh-texto);
  border-radius: var(--mh-raio-sm);
  box-shadow: var(--mh-sombra);
}
.j-pular:focus { top: var(--mh-e-2); }

/* ---- Topo ------------------------------------------------------------------ */
.j-topo {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: var(--mh-e-2);
  min-height: 57px;
  padding: var(--mh-e-1) var(--mh-e-3);
  padding-top: max(var(--mh-e-1), env(safe-area-inset-top));
  background: var(--mh-superficie);
  border-bottom: 1px solid var(--mh-borda);
}
.j-topo__acoes {
  display: flex;
  align-items: center;
  gap: var(--mh-e-1);
  margin-left: auto;
  flex: 0 0 auto;
}
.j-topo__botao {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: var(--j-toque);
  min-height: var(--j-toque);
  padding: 0 10px;
  border: 0;
  border-radius: var(--mh-raio-cheio);
  background: transparent;
  color: var(--mh-texto);
  font: inherit;
  font-size: var(--mh-t-sm);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.j-topo__botao:hover { background: var(--mh-elevado); color: var(--mh-texto); text-decoration: none; }
/* No celular o topo fica numa linha só: rótulo dos botões só para o leitor
   de tela e o nome do negócio vai para o cabeçalho da Início (02 §4.4). */
.j-topo__rotulo {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.j-topo__negocio { display: none; }
.j-topo form { margin: 0; }

/* Marca: símbolo oficial em PNG + "Jornada PEG" em Montserrat (02 §4.3). */
.j-marca {
  display: inline-flex;
  align-items: center;
  gap: var(--mh-e-2);
  min-width: 0;
  min-height: var(--j-toque);
  color: var(--mh-texto);
  font-family: var(--mh-fonte-titulo);
  font-size: var(--mh-t-base);
  font-weight: 800;
  text-decoration: none;
}
a.j-marca:hover { color: var(--mh-texto); text-decoration: none; }
.j-marca__simbolo { width: 28px; height: 28px; flex: 0 0 auto; }
.j-marca__nome { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* O nome do portal vem da Configuração (Bia, 03/11/2026) e pode ser maior
   que "Jornada PEG": no celular quebra em até duas linhas em vez de cortar. */
@media (max-width: 599px) {
  .j-topo .j-marca__nome {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: normal;
    font-size: 0.9375rem;
    line-height: 1.15;
  }
}

/* Sino: contador renderizado pelo servidor e atualizado pelo jornada.js. */
.j-sino__conta {
  position: absolute;
  top: 3px;
  right: 1px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--mh-raio-cheio);
  background: var(--mh-marca);
  color: var(--mh-marca-contraste);
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
/* O número mudou (o jornada.js põe a classe): um pulo de três quadros. */
.j-sino__conta--pulo { animation: j-sino-pulo 0.3s steps(3, jump-none); }
@keyframes j-sino-pulo { 50% { transform: scale(1.35); } }

@media (min-width: 600px) {
  .j-topo { padding-inline: var(--mh-e-4); }
  .j-marca { font-size: var(--mh-t-md); }
  .j-topo__rotulo { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .j-topo__negocio {
    display: inline-flex;
    align-items: center;
    gap: var(--mh-e-2);
    max-width: 28ch;
    color: var(--mh-texto-suave);
    font-size: var(--mh-t-sm);
  }
  .j-topo__negocio-nome { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ---- Corpo e conteúdo ------------------------------------------------------ */
.j-layout { min-width: 0; }
.j-principal {
  display: block;
  max-width: calc(var(--j-leitura) + 2 * var(--mh-e-4));
  margin: 0 auto;
  padding: var(--mh-e-5) var(--mh-e-4) var(--mh-e-6);
}
.j-principal:focus { outline: none; }
.j-corpo--com-barra { padding-bottom: calc(var(--j-barra-altura) + env(safe-area-inset-bottom)); }

.j-cabecalho { margin-bottom: var(--mh-e-5); }
.j-cabecalho__apoio { margin-top: var(--mh-e-1); color: var(--mh-texto-suave); }
.j-sobretitulo {
  margin-bottom: var(--mh-e-1);
  font-family: var(--mh-fonte-titulo);
  font-size: var(--mh-t-xs);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mh-texto-suave);
}
.j-bloco + .j-bloco { margin-top: var(--mh-e-4); }
.j-bloco__titulo { margin-bottom: var(--mh-e-2); font-size: var(--mh-t-md); }
.j-linha-acoes { display: flex; flex-wrap: wrap; gap: var(--mh-e-2); margin-top: var(--mh-e-3); }
.j-dados { margin: 0; display: grid; gap: var(--mh-e-2); }
.j-dados dt { color: var(--mh-texto-suave); font-size: var(--mh-t-sm); }
/* anywhere, e não o break-word do body (13/10/2026, verificação no navegador
   da Onda 1): no grid, o dd mede pelo min-content, e um e-mail longo sem
   espaço empurrava a Conta para o lado a 390 px. */
.j-dados dd { margin: 0 0 var(--mh-e-2); font-weight: 600; overflow-wrap: anywhere; }

/* Faixa de situação (concluído; 02 T08 em leitura). Texto do servidor. */
.j-situacao {
  display: flex;
  align-items: flex-start;
  gap: var(--mh-e-2);
  margin-bottom: var(--mh-e-4);
  padding: var(--mh-e-3) var(--mh-e-4);
  border-left: 3px solid currentColor;
  border-radius: var(--mh-raio-sm);
  background: var(--mh-info-bg);
  color: var(--mh-info-fg);
}

/* Cartões grandes da Início restrita (T09): Financeiro e Pedir ajuda. */
.j-cartao-grande {
  display: flex;
  align-items: center;
  gap: var(--mh-e-3);
  min-height: 64px;
  font-size: var(--mh-t-md);
  font-weight: 600;
  text-decoration: none;
}

/* ---- Barra inferior (até 1023 px) ------------------------------------------ */
.j-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  background: var(--mh-superficie);
  border-top: 1px solid var(--mh-borda);
  padding-bottom: env(safe-area-inset-bottom);
}
.j-nav__lista { display: flex; margin: 0; padding: 0; list-style: none; }
.j-nav__lista > li { flex: 1 1 0; min-width: 0; }
.j-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: var(--j-barra-altura);
  padding: 4px 2px;
  border-top: 3px solid transparent;
  color: var(--mh-texto-suave);
  font-size: var(--mh-t-xs);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
}
.j-nav__item::-webkit-details-marker { display: none; }
.j-nav__item:hover { color: var(--mh-texto); text-decoration: none; }
/* Item ativo: traço de 3 px e rótulo na cor do texto, não só cor (02 §4.4). */
.j-nav__item[aria-current="page"] { color: var(--mh-texto); border-top-color: var(--mh-marca); }

/* Folha "Mais": <details> nativo; o jornada.js só fecha ao tocar fora ou Esc. */
.j-mais > summary { list-style: none; }
.j-mais[open] > summary { color: var(--mh-texto); border-top-color: var(--mh-borda-forte); }
.j-mais__folha {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(var(--j-barra-altura) + env(safe-area-inset-bottom));
  max-height: min(72vh, 600px);
  overflow-y: auto;
  padding: var(--mh-e-2) var(--mh-e-4) var(--mh-e-4);
  background: var(--mh-superficie);
  border-top: 1px solid var(--mh-borda);
  border-radius: var(--mh-raio-lg) var(--mh-raio-lg) 0 0;
  box-shadow: var(--mh-sombra-lg);
}

/* Grupos do Mais e do menu lateral (mesmos grupos, 02 §4.4). */
.j-grupo { margin: 0; padding: 0; list-style: none; }
.j-grupo__titulo {
  margin: var(--mh-e-4) 0 var(--mh-e-1);
  padding-inline: var(--mh-e-3);
  font-family: var(--mh-fonte-titulo);
  font-size: var(--mh-t-xs);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mh-texto-suave);
}
.j-link-menu {
  display: flex;
  align-items: center;
  gap: var(--mh-e-3);
  width: 100%;
  min-height: var(--j-toque);
  padding: 0 var(--mh-e-3);
  border: 0;
  border-radius: var(--mh-raio);
  background: none;
  color: var(--mh-texto);
  font: inherit;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.j-link-menu:hover { background: var(--mh-elevado); color: var(--mh-texto); text-decoration: none; }
.j-link-menu[aria-current="page"] { background: var(--mh-marca-suave); box-shadow: inset 3px 0 0 var(--mh-marca); }
.j-grupo form { margin: 0; }
/* Ícone maior e alvo mais alto: o menu é de toque (auditoria de UX). */
.j-link-menu { min-height: 48px; }
.j-link-menu .j-icone { width: 24px; height: 24px; }

/* ---- Menu lateral (PC) ----------------------------------------------------- */
.j-lateral { display: none; }

@media (min-width: 1024px) {
  .j-nav { display: none; }
  .j-corpo--com-barra { padding-bottom: 0; }
  .j-layout--com-menu {
    display: grid;
    grid-template-columns: var(--j-lateral) minmax(0, 1fr);
    align-items: start;
  }
  .j-lateral {
    display: block;
    grid-column: 1;
    grid-row: 1;
    position: sticky;
    top: 57px;
    max-height: calc(100vh - 57px);
    overflow-y: auto;
    padding: var(--mh-e-3) var(--mh-e-3) var(--mh-e-5);
    border-right: 1px solid var(--mh-borda);
  }
  .j-layout--com-menu > .j-principal { grid-column: 2; grid-row: 1; width: 100%; }
}

/* ---- Toasts (mensagens do Django) ------------------------------------------ */
.j-toasts {
  position: fixed;
  left: var(--mh-e-4);
  right: var(--mh-e-4);
  bottom: var(--mh-e-4);
  z-index: 40;
  display: grid;
  gap: var(--mh-e-2);
  justify-items: center;
  pointer-events: none;
}
.j-corpo--com-barra .j-toasts {
  bottom: calc(var(--j-barra-altura) + env(safe-area-inset-bottom) + var(--mh-e-3));
}
.j-toast {
  display: flex;
  align-items: center;
  gap: var(--mh-e-2);
  width: 100%;
  max-width: 480px;
  padding: var(--mh-e-1) var(--mh-e-1) var(--mh-e-1) var(--mh-e-4);
  border-radius: var(--mh-raio);
  background: var(--mh-texto);
  color: var(--mh-fundo);
  box-shadow: var(--mh-sombra-lg);
  pointer-events: auto;
}
.j-toast__texto { flex: 1 1 auto; min-width: 0; }
.j-toast__fechar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--j-toque);
  min-height: var(--j-toque);
  border: 0;
  border-radius: var(--mh-raio-sm);
  background: transparent;
  color: inherit;
  cursor: pointer;
}
@media (min-width: 1024px) {
  .j-corpo--com-barra .j-toasts { bottom: var(--mh-e-4); }
}
/* Com um ganho na pilha, ela sobe para logo abaixo do topo: o ganho é o
   que o aluno vê primeiro, e não briga com a caixa da Bia, que fica embaixo. */
.j-corpo .j-toasts:has(.j-toast--ganho) {
  top: calc(57px + var(--mh-e-3) + env(safe-area-inset-top));
  bottom: auto;
}
.j-publica .j-toasts:has(.j-toast--ganho) { top: var(--mh-e-4); }

/* ---- Rodapé (só nas telas sem login: um link, "Termos e privacidade") ------- */
.j-rodape {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--mh-e-2) var(--mh-e-4);
  padding: var(--mh-e-5) var(--mh-e-4);
  color: var(--mh-texto-suave);
  font-size: var(--mh-t-sm);
}
.j-rodape a { color: var(--mh-texto-suave); }

/* ---- Escolha em pílula (tema; rotina, nota e horário nas ondas seguintes) --
   Rádio nativo e visível; o :has() só decora. */
.j-escolha { display: flex; flex-wrap: wrap; gap: var(--mh-e-2); margin: 0; padding: 0; border: 0; min-width: 0; }
.j-escolha legend { margin-bottom: var(--mh-e-2); padding: 0; font-weight: 600; }
.j-escolha__opcao {
  display: inline-flex;
  align-items: center;
  gap: var(--mh-e-2);
  min-height: var(--j-toque);
  padding: 0 var(--mh-e-4) 0 var(--mh-e-3);
  border: 1px solid var(--j-borda-campo);
  border-radius: var(--mh-raio-cheio);
  background: var(--mh-superficie);
  color: var(--mh-texto);
  font-weight: 600;
  cursor: pointer;
}
.j-escolha__opcao input { width: 18px; height: 18px; margin: 0; accent-color: var(--mh-marca); }
.j-escolha__opcao:has(input:checked) { border-color: var(--mh-marca); background: var(--mh-marca-suave); }

/* ---- Pedidos de ajuda (02 T24; Onda 3, 14/10/2026) --------------------------
   "Novo pedido": o <summary> é o botão cheio e o formulário abre embaixo. A
   lista é de cartões tocáveis; a resposta que chegou ganha o traço da marca,
   como o aviso novo. */
.j-novo > summary { list-style: none; width: 100%; justify-content: center; }
.j-novo > summary::-webkit-details-marker { display: none; }
.j-novo__caixa { margin-top: var(--mh-e-3); }
.j-novo__mia { display: none; margin: 0 0 var(--mh-e-3); font-size: var(--mh-t-sm); }
.j-novo:has(input[value="conteudo"]:checked) .j-novo__mia { display: block; }
/* minmax(0, 1fr): a primeira linha do pedido (nowrap) não alarga a coluna
   além da tela a 390 px. */
.j-pedidos { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--mh-e-2); margin: 0; padding: 0; list-style: none; }
.j-pedido {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  padding: var(--mh-e-3) var(--mh-e-4);
  border: 1px solid var(--mh-borda);
  border-radius: var(--mh-raio);
  background: var(--mh-superficie);
  color: var(--mh-texto);
  text-decoration: none;
}
.j-pedido:hover { border-color: var(--j-borda-campo); color: var(--mh-texto); }
.j-pedido--respondido { box-shadow: inset 3px 0 0 var(--mh-marca); }
.j-pedido__assunto { font-size: var(--mh-t-md); font-weight: 600; }
.j-pedido__resumo { overflow: hidden; color: var(--mh-texto-suave); font-size: var(--mh-t-sm); text-overflow: ellipsis; white-space: nowrap; }
.j-pedido__pe { display: flex; flex-wrap: wrap; align-items: center; gap: var(--mh-e-2); color: var(--j-texto-3); font-size: var(--mh-t-xs); font-variant-numeric: tabular-nums; }
.j-pedido-fim { display: grid; gap: var(--mh-e-2); }
.j-pedido-fim p { margin: 0; }
.j-pedido-fim__frase { display: flex; align-items: center; gap: var(--mh-e-2); font-weight: 600; }
.j-resposta { display: grid; gap: var(--mh-e-2); }
.j-resposta form { margin: 0; }

/* ---- Conversa (j-bolha; pedido de ajuda e, na Onda 8, a Mia) ---------------
   Aluno à direita na cor suave da marca, equipe à esquerda no cartão, o
   "liguei" no meio como nota. */
.j-conversa { display: grid; gap: var(--mh-e-3); margin: 0; padding: 0; list-style: none; }
.j-bolha {
  display: grid;
  gap: 2px;
  max-width: min(85%, 52ch);
  padding: var(--mh-e-2) var(--mh-e-3);
  border: 1px solid var(--mh-borda);
  border-radius: var(--mh-raio);
  background: var(--mh-superficie);
}
.j-bolha--aluno { justify-self: end; border-color: transparent; background: var(--mh-marca-suave); }
.j-bolha--equipe { justify-self: start; }
.j-bolha--nota { justify-self: center; max-width: 100%; border-style: dashed; background: transparent; color: var(--mh-texto-suave); font-size: var(--mh-t-sm); }
.j-bolha__quem { font-size: var(--mh-t-sm); font-weight: 600; }
.j-bolha__texto { margin: 0; overflow-wrap: anywhere; }
.j-bolha__anexo { display: inline-flex; align-items: center; gap: 4px; min-height: var(--j-toque); font-size: var(--mh-t-sm); font-weight: 600; }
.j-bolha__quando { color: var(--mh-texto-suave); font-size: var(--mh-t-xs); font-variant-numeric: tabular-nums; }

/* ---- "Pôr no celular" (02 §4.3): o botão é a ação; o × dispensa na Início -- */
.j-instalar { display: grid; gap: var(--mh-e-2); }
.j-instalar__linha { display: flex; align-items: center; gap: var(--mh-e-2); }
.j-instalar--inicio .j-instalar__botao { flex: 1 1 auto; }
.j-instalar__fechar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: var(--j-toque);
  min-height: var(--j-toque);
  border: 0;
  border-radius: var(--mh-raio-sm);
  background: transparent;
  color: var(--mh-texto-suave);
  cursor: pointer;
}
.j-instalar__fechar:hover { color: var(--mh-texto); }
.j-instalar__passo { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; color: var(--mh-texto-suave); }

/* ---- Avisos (sino; regra da 07 §4.8) -------------------------------------- */
.j-avisos { display: grid; gap: var(--mh-e-2); margin: 0; padding: 0; list-style: none; }
.j-avisos form { margin: 0; }
.j-aviso__botao {
  display: flex;
  align-items: flex-start;
  gap: var(--mh-e-3);
  width: 100%;
  padding: var(--mh-e-3) var(--mh-e-4);
  border: 1px solid var(--mh-borda);
  border-radius: var(--mh-raio);
  background: var(--mh-superficie);
  color: var(--mh-texto);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.j-aviso__botao:hover { border-color: var(--j-borda-campo); }
.j-aviso--novo .j-aviso__botao { box-shadow: inset 3px 0 0 var(--mh-marca); }
.j-aviso__corpo { display: grid; gap: 2px; min-width: 0; }
.j-aviso__titulo { font-size: var(--mh-t-md); font-weight: 400; }
.j-aviso--novo .j-aviso__titulo { font-weight: 600; }
.j-aviso__texto { color: var(--mh-texto-suave); font-size: var(--mh-t-sm); }
/* No celular o texto do aviso fica numa linha: o título é o que conta. */
@media (max-width: 599px) {
  .j-aviso__texto { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; }
}
.j-aviso__quando { color: var(--j-texto-3); font-size: var(--mh-t-xs); font-variant-numeric: tabular-nums; }
.j-paginas { display: flex; justify-content: space-between; gap: var(--mh-e-2); margin-top: var(--mh-e-4); }

/* ---- Páginas avulsas: em breve (T01), recusas (T07, T31) e erros ----------- */
.j-avulsa {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: var(--mh-e-4);
}
.j-avulsa__caixa {
  display: grid;
  justify-items: center;
  gap: var(--mh-e-4);
  width: 100%;
  max-width: 440px;
  padding: var(--mh-e-6) var(--mh-e-5);
  text-align: center;
}
.j-avulsa__caixa > * { max-width: 100%; }
.j-marca--grande { flex-direction: column; gap: var(--mh-e-2); font-size: var(--mh-t-md); }
.j-marca--grande .j-marca__simbolo { width: 56px; height: 56px; }
.j-avulsa__caixa form { margin: 0; }
.j-avulsa__caixa p { margin: 0; }
.j-avulsa__grande { font-size: var(--j-t-xxl); }

/* ---- Texto legal (termos de uso e privacidade) ----------------------------- */
.j-legal { max-width: 68ch; line-height: var(--mh-altura); }
.j-legal :is(h2, h3) { margin: var(--mh-e-5) 0 var(--mh-e-2); }
.j-legal :is(p, ul, ol) { margin: 0 0 var(--mh-e-3); }

.j-legal__versao { color: var(--mh-texto-suave); font-size: var(--mh-t-sm); }
.j-legal__nav { display: flex; justify-content: space-between; gap: var(--mh-e-3); margin-bottom: var(--mh-e-4); font-size: var(--mh-t-sm); }

/* ---- Entrada do aluno (02 T02 a T06): páginas sem o menu ------------------- */
.j-publica { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.j-publica__caixa {
  flex: 1 0 auto;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: var(--mh-e-6) var(--mh-e-4) var(--mh-e-4);
}
.j-publica__caixa--larga { max-width: 760px; }
.j-publica__caixa:focus { outline: none; }
.j-publica__cabecalho { display: grid; justify-items: center; gap: var(--mh-e-2); margin-bottom: var(--mh-e-5); text-align: center; }
.j-publica__cabecalho--esquerda { justify-items: start; text-align: left; }
.j-publica__cabecalho p { margin: 0; color: var(--mh-texto-suave); }
.j-publica__apoio { margin-top: var(--mh-e-4); color: var(--mh-texto-suave); font-size: var(--mh-t-sm); text-align: center; }
/* Entrar: a Bia em pixel ao lado do título (sem fala). */
.j-entrada__titulo { display: flex; align-items: center; justify-content: center; gap: var(--mh-e-3); text-align: left; }
.j-entrada__titulo h1 { margin: 0; font-size: var(--mh-t-xl); line-height: 1.15; }
.j-entrada__bia { flex: 0 0 auto; }
/* A ação principal da tela, em largura total. */
.j-btn--largo { width: 100%; justify-content: center; }
.j-ajuda { margin-top: var(--mh-e-3); color: var(--mh-texto-suave); font-size: var(--mh-t-sm); text-align: center; }
.j-ajuda > summary { display: inline-flex; align-items: center; min-height: var(--j-toque); cursor: pointer; }
.j-ajuda p { margin: 0; }

/* ---- Formulário: rótulo, erro no campo e o "ver a senha" (02 T02, T04) ----- */
.j-rotulo { display: block; margin-bottom: var(--mh-e-1); font-weight: 600; }
.j-erro-campo { margin: var(--mh-e-1) 0 0; color: var(--mh-erro-fg); font-size: var(--mh-t-sm); }
.j-dica { margin: var(--mh-e-1) 0 0; color: var(--mh-texto-suave); font-size: var(--mh-t-sm); }
.j-senha { position: relative; }
.j-senha .mh-campo { padding-right: calc(var(--j-toque) + var(--mh-e-1)); }
.j-senha__ver {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--j-toque);
  height: 100%;
  min-height: var(--j-toque);
  padding: 0;
  border: 0;
  border-radius: var(--mh-raio-sm);
  background: transparent;
  color: var(--mh-texto-suave);
  cursor: pointer;
}
.j-senha__ver:hover { color: var(--mh-texto); }
.j-senha__ver:focus-visible { outline: 2px solid var(--mh-marca); outline-offset: -2px; }
/* Caixa de aceite como linha grande de toque (auditoria de UX). */
.j-aceite {
  display: flex;
  align-items: center;
  gap: var(--mh-e-3);
  min-height: 56px;
  padding: var(--mh-e-2) var(--mh-e-3);
  border: 1px solid var(--j-borda-campo);
  border-radius: var(--mh-raio);
  background: var(--mh-superficie);
  font-weight: 600;
  cursor: pointer;
}
.j-aceite:has(input:checked) { border-color: var(--mh-marca); background: var(--mh-marca-suave); }
.j-aceite input { width: 22px; height: 22px; margin: 0; flex: 0 0 auto; accent-color: var(--mh-marca); }
.j-documento > summary { display: flex; align-items: center; min-height: var(--j-toque); font-weight: 600; cursor: pointer; }
.j-documento[open] > summary { margin-bottom: var(--mh-e-3); }
/* O documento aberto rola por dentro: o botão de aceitar fica perto. */
.j-documento__texto { max-height: 55vh; overflow: auto; overscroll-behavior: contain; }

/* ---- Seletor de negócio (T06) e acessos (T27) ------------------------------ */
.j-negocios, .j-acessos { display: grid; gap: var(--mh-e-3); margin: 0 0 var(--mh-e-4); padding: 0; list-style: none; }
.j-negocios form { margin: 0; }
.j-negocio {
  display: grid;
  justify-items: start;
  gap: var(--mh-e-1);
  width: 100%;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.j-negocio__nome { font-weight: 800; font-size: var(--mh-t-md); }
.j-negocio__meta, .j-acesso__meta { color: var(--mh-texto-suave); font-size: var(--mh-t-sm); }
.j-acesso { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--mh-e-2); padding-bottom: var(--mh-e-3); border-bottom: 1px solid var(--mh-borda); }
.j-acesso:last-child { padding-bottom: 0; border-bottom: 0; }
.j-acesso__dados { display: grid; gap: 2px; min-width: 0; flex: 1 1 12ch; }
.j-acesso__nome { font-size: var(--mh-t-md); overflow-wrap: anywhere; }
.j-acesso__mais > summary { list-style: none; }
.j-acesso__mais > summary::-webkit-details-marker { display: none; }
.j-acesso__mais[open] { flex: 1 0 100%; }
.j-acesso__painel { display: grid; gap: var(--mh-e-2); margin-top: var(--mh-e-2); }
.j-acesso__painel p { margin: 0; overflow-wrap: anywhere; }
.j-heroi .j-acessos { margin: var(--mh-e-2) 0 0; }
/* "+ Convidar alguém": o <summary> é o botão cheio; o formulário abre embaixo. */
.j-convite > summary { list-style: none; width: 100%; justify-content: center; }
.j-convite > summary::-webkit-details-marker { display: none; }
.j-convite__caixa { margin-top: var(--mh-e-3); }
.j-acesso form { margin: 0; }
.j-acesso__papel { display: flex; flex-wrap: wrap; align-items: center; gap: var(--mh-e-2); }
.j-acesso__papel .mh-campo { width: auto; }
.j-confirmar > summary { list-style: none; display: inline-flex; }
.j-confirmar > summary::-webkit-details-marker { display: none; }
.j-confirmar[open] { display: grid; gap: var(--mh-e-2); }
.j-escolha--coluna { flex-direction: column; }
.j-escolha--coluna .j-escolha__opcao { border-radius: var(--mh-raio-sm); padding: var(--mh-e-2) var(--mh-e-3); font-weight: 400; }

/* ---- Guia aberta (02 §4.12.2) -----------------------------------------------
   A caixa da Bia cobre o pé da tela (no celular e no canto do PC): a página
   ganha embaixo a altura dela e do retrato (medida pelo guia.js,
   --j-guia-espaco), para o fim da tela continuar alcançável. A caixa mora no
   jogo.css. */
.j-corpo.tem-guia { padding-bottom: var(--j-guia-espaco, 420px); }

/* ---- Telas enxutas (auditoria de UX, 13/10/2026) -------------------------- */
/* O nome do negócio no cabeçalho da Início só no celular: do tablet em
   diante ele já está no topo. */
@media (min-width: 600px) {
  .j-so-celular { display: none; }
}
/* Título com uma ação pequena ao lado ("Ler todos" dos avisos). */
.j-cabecalho--linha { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--mh-e-2); }
.j-cabecalho--linha form { margin: 0; }
.j-link-acao {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: var(--j-toque);
  padding: 0 var(--mh-e-1);
  border: 0;
  background: transparent;
  color: var(--j-marca-texto);
  font: inherit;
  font-size: var(--mh-t-sm);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.j-heroi__icone { width: 40px; height: 40px; color: var(--mh-texto-suave); }

/* Conta: o perfil no cabeçalho (nome grande, e-mail numa linha cortada). */
.j-perfil__nome { overflow-wrap: anywhere; }
.j-perfil__email {
  margin: var(--mh-e-1) 0 0;
  overflow: hidden;
  color: var(--mh-texto-suave);
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Linha de toque que abre um formulário (<details> nativo). */
.j-toque > summary { list-style: none; }
.j-toque > summary::-webkit-details-marker { display: none; }
.j-toque__titulo {
  display: flex;
  align-items: center;
  gap: var(--mh-e-3);
  min-height: var(--j-toque);
  font-weight: 600;
  cursor: pointer;
}
.j-toque__seta { margin-left: auto; color: var(--mh-texto-suave); }
.j-toque[open] .j-toque__seta { transform: rotate(90deg); }
.j-toque[open] > summary { margin-bottom: var(--mh-e-3); }
/* Tema em três ícones numa linha; o rádio fica só para o teclado e o leitor
   de tela, e o foco aparece no botão inteiro. */
.j-escolha--icones { flex-wrap: nowrap; }
.j-escolha--icones legend { margin-bottom: var(--mh-e-2); }
.j-escolha--icones .j-escolha__opcao { position: relative; flex: 1 1 0; justify-content: center; min-height: 52px; padding: 0; }
.j-escolha--icones .j-escolha__opcao input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.j-escolha--icones .j-escolha__opcao:has(input:focus-visible) { outline: 2px solid var(--mh-marca); outline-offset: 2px; }
/* Lembretes e senha num cartão só, um toque cada (Onda 4, P6, 15/10/2026). */
.j-conta__toques { display: grid; gap: var(--mh-e-3); }
.j-conta__pe { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--mh-e-2); }
.j-conta__pe form { margin: 0; }
.j-conta__legal { color: var(--mh-texto-suave); font-size: var(--mh-t-sm); }

/* ---- Números do mês (02 T15; Onda 2, 14/10/2026) ---------------------------
   Os 4 números em dois por linha, grandes, com o rótulo curto e o selo; as
   rotinas em pílulas; o "Salvar" gruda no pé da tela enquanto o formulário
   rola, acima da barra inferior do celular. */
.j-numeros__grade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--mh-e-2); }
.j-numero { display: grid; align-content: start; gap: var(--mh-e-1); min-width: 0; margin: 0; padding: var(--mh-e-3); }
.j-numero + .j-numero { margin-top: 0; }   /* a grade cuida do espaço (mh-cartao + mh-cartao) */
/* Número sozinho na última linha ocupa a largura toda (09/11/2026: a lucratividade saiu, ficaram 3). */
.j-numero:last-child:nth-child(odd) { grid-column: 1 / -1; }
.j-numero__rotulo { margin: 0; color: var(--mh-texto-suave); font-size: var(--mh-t-sm); font-weight: 600; }
.j-numero__caixa { display: flex; align-items: baseline; gap: 4px; min-width: 0; }
.j-numero__unidade { color: var(--mh-texto-suave); font-weight: 700; }
.j-numero__campo {
  width: 100%;
  min-width: 0;
  min-height: var(--j-toque);
  padding: 0 var(--mh-e-1);
  border: 0;
  border-bottom: 2px solid var(--j-borda-campo);
  background: transparent;
  color: var(--mh-texto);
  font-family: var(--mh-fonte-titulo);
  font-size: var(--mh-t-lg);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.j-numero__campo:focus-visible { outline: none; border-bottom-color: var(--mh-marca); }
.j-numero__campo[aria-invalid="true"] { border-bottom-color: var(--mh-erro-fg); }
.j-numero__valor {
  margin: 0;
  font-family: var(--mh-fonte-titulo);
  font-size: var(--mh-t-lg);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
/* No cartão de 170 px do celular o selo "Conferido com seu monitor" vazava
   da borda (conferido no navegador em 375 px, 14/10/2026): aqui ele quebra. */
.j-numero .mh-selo { justify-self: start; max-width: 100%; white-space: normal; border-radius: var(--mh-raio); }
.j-numero__aviso { margin: 0; color: var(--mh-erro-fg); font-size: var(--mh-t-sm); }
.j-numeros__saltos { margin: var(--mh-e-2) 0 0; padding-left: var(--mh-e-4); }
.j-rotina + .j-rotina { margin-top: var(--mh-e-4); }
.j-rotina legend { display: flex; flex-wrap: wrap; align-items: center; gap: var(--mh-e-2); }
.j-rotina__como { flex: 1 0 100%; color: var(--mh-texto-suave); font-size: var(--mh-t-sm); }
.j-rotina__como > summary { min-height: var(--j-toque); display: flex; align-items: center; cursor: pointer; }
.j-rotina__como p { margin: 0; }
/* O "Salvar" fica preso no pé como uma faixa com o fundo da página: sem o
   fundo, o botão flutuava por cima dos rádios das rotinas e cortava o texto
   deles (verificação no navegador da Onda 2, 14/10/2026). */
.j-numeros__acao {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin-top: var(--mh-e-5);
  padding: var(--mh-e-2) 0 var(--mh-e-3);
  background: var(--mh-fundo);
}
.j-corpo--com-barra .j-numeros__acao { bottom: calc(var(--j-barra-altura) + env(safe-area-inset-bottom)); }
.j-numeros__acao .mh-btn { width: 100%; justify-content: center; }
.j-numeros__destaque { margin: 0 0 var(--mh-e-2); font-weight: 600; }
.j-meses { display: grid; gap: var(--mh-e-3); margin: var(--mh-e-3) 0 0; padding: 0; list-style: none; }
.j-meses__mes { display: flex; flex-wrap: wrap; align-items: center; gap: var(--mh-e-2); margin: 0; font-weight: 700; }
.j-meses__numeros { margin: var(--mh-e-1) 0 0; color: var(--mh-texto-suave); font-size: var(--mh-t-sm); }
@media (min-width: 1024px) {
  .j-corpo--com-barra .j-numeros__acao { bottom: 0; }
  .j-numeros__acao .mh-btn { width: auto; }
}

/* ---- Movimento reduzido: vale para a Jornada inteira (02 §4.1.6) ----------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- Missões (02 T16; Onda 2, 14/10/2026) ----------------------------------
   A lista em grade 2x2 com o estado curto em selo; o card das calculadoras
   numa linha só; na página, o estado grande e o botão de abrir. */
.j-missoes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--mh-e-2); margin: 0; padding: 0; list-style: none; }
.j-missoes > li { display: flex; min-width: 0; }
.j-missao { display: grid; flex: 1; align-content: start; gap: var(--mh-e-2); min-width: 0; margin: 0; padding: var(--mh-e-3); color: var(--mh-texto); text-decoration: none; }
.j-missao + .j-missao { margin-top: 0; }
.j-missao .mh-selo { justify-self: start; max-width: 100%; white-space: normal; border-radius: var(--mh-raio); }
.j-missao__titulo { font-weight: 700; overflow-wrap: anywhere; }
.j-calculadoras { display: flex; align-items: center; gap: var(--mh-e-3); color: var(--mh-texto); text-decoration: none; }
.j-calculadoras__texto { display: grid; gap: 2px; min-width: 0; }
.j-calculadoras__nota, .j-missao-estado__nota { margin: 0; color: var(--mh-texto-suave); font-size: var(--mh-t-sm); }
.j-calculadoras__seta { margin-left: auto; color: var(--mh-texto-suave); }
.j-missao-estado__rotulo { display: flex; align-items: center; gap: var(--mh-e-1); margin: 0; color: var(--mh-texto-suave); font-size: var(--mh-t-sm); font-weight: 600; }
.j-missao-estado__valor { margin: 0; font-family: var(--mh-fonte-titulo); font-size: var(--mh-t-lg); font-weight: 800; font-variant-numeric: tabular-nums; }
.j-missao-estado .j-toque { margin-top: var(--mh-e-3); }
.j-missao__acao { display: grid; gap: var(--mh-e-2); }
@media (min-width: 1024px) { .j-missao__acao { justify-items: start; } }
.j-resultado { margin-bottom: var(--mh-e-4); overflow-x: auto; }
.j-resultado__titulo { margin-top: var(--mh-e-3); }

/* ---- Tarefas e uma tarefa (02 T11 e T12; Onda 2, pacote P9, 14/10/2026) -----
   Abas por link (aria-current), uma linha por tarefa (título, prazo e o
   castelo da tarefa-chave) e, na tarefa, o formulário de entrega com o
   botão largo. Nada de vermelho de alerta no "Em aberto" (Q70). */
.j-abas { display: flex; gap: var(--mh-e-1); margin-bottom: var(--mh-e-3); overflow-x: auto; }
.j-aba {
  display: inline-flex;
  align-items: center;
  min-height: var(--j-toque);
  padding: 0 var(--mh-e-3);
  border: 2px solid var(--mh-borda-forte);
  border-radius: 0;
  color: var(--mh-texto);
  font-size: var(--mh-t-sm);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.j-aba:hover { color: var(--mh-texto); }
.j-aba[aria-current="page"] { border-color: var(--mh-marca); background: var(--mh-marca-suave); }
.j-tarefas { display: grid; gap: var(--mh-e-2); margin: 0; padding: 0; list-style: none; }
.j-tarefa {
  display: flex;
  align-items: center;
  gap: var(--mh-e-3);
  min-height: 64px;
  padding: var(--mh-e-2) var(--mh-e-3);
  border: 1px solid var(--mh-borda);
  border-radius: var(--mh-raio);
  background: var(--mh-superficie);
  color: var(--mh-texto);
  text-decoration: none;
}
.j-tarefa:hover { color: var(--mh-texto); border-color: var(--mh-borda-forte); }
.j-tarefa__corpo { display: grid; flex: 1 1 auto; gap: 2px; min-width: 0; }
.j-tarefa__titulo { font-weight: 600; overflow-wrap: anywhere; }
.j-tarefa__estado { justify-self: start; color: var(--mh-texto-suave); font-size: var(--mh-t-sm); font-weight: 600; }
.j-tarefa__estado--ajuste { color: var(--j-marca-texto); font-weight: 600; }
.j-tarefa__seta { flex: 0 0 auto; color: var(--mh-texto-suave); }
.j-tarefa__castelo { flex: 0 0 auto; }
.j-vazio { margin: 0; color: var(--mh-texto-suave); }
.j-promessas { display: grid; gap: var(--mh-e-2); margin: 0; padding: 0; list-style: none; }
.j-promessa { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--mh-e-2); }
.j-promessa__texto { min-width: 0; overflow-wrap: anywhere; }

.j-tarefa-estado { display: flex; align-items: center; gap: var(--mh-e-2); margin: var(--mh-e-2) 0 0; font-weight: 600; }
.j-ajuste__rotulo { margin: 0 0 var(--mh-e-1); font-weight: 600; }
.j-tarefa__descricao { margin: 0; }
.j-entrega { display: grid; gap: var(--mh-e-2); }
.j-entrega .j-rotulo { display: flex; align-items: center; gap: var(--mh-e-1); margin: var(--mh-e-2) 0 0; }
.j-entrega .j-dica { margin: 0; }
.j-entrega__link > summary { list-style: none; }
.j-entrega__link > summary::-webkit-details-marker { display: none; }
/* O campo de arquivo nativo (acessível e com a câmera no celular), com o
   botão do navegador no jeito dos nossos. */
.j-upload { max-width: 100%; font-size: var(--mh-t-sm); }
.j-upload::file-selector-button {
  min-height: var(--j-toque);
  margin-right: var(--mh-e-2);
  padding: 0 var(--mh-e-3);
  border: 2px dashed var(--mh-borda-forte);
  border-radius: var(--mh-raio);
  background: var(--mh-superficie);
  color: var(--mh-texto);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.j-entrega .mh-btn--principal { margin-top: var(--mh-e-2); }
.j-linha-tempo { display: grid; gap: var(--mh-e-3); margin: 0; padding: 0 0 0 var(--mh-e-3); border-left: 2px solid var(--mh-borda-forte); list-style: none; }
.j-linha-tempo__quando { margin: 0; font-weight: 600; }
.j-prova__texto { margin: var(--mh-e-1) 0 0; overflow-wrap: anywhere; }
.j-prova__foto { display: inline-block; margin-top: var(--mh-e-1); }
.j-prova__foto img { width: 120px; height: 120px; object-fit: cover; border-radius: var(--mh-raio-sm); }

/* ---- Início ativa (02 T08; Onda 2, pacote P10, 14/10/2026) ------------------
   Regra de UX do Júlio: 3 blocos sem rolar a 390 px. O objetivo é UMA linha
   (o texto corta com reticências) e as metas abrem no toque "Ver metas"; a
   próxima fase é o único botão principal, largo, com o prazo embaixo do
   título; o mapa vem depois (jogo.css). */
.j-objetivo__toque > summary { list-style: none; }
.j-objetivo__toque > summary::-webkit-details-marker { display: none; }
.j-objetivo__linha {
  display: flex;
  align-items: center;
  gap: var(--mh-e-2);
  min-height: var(--j-toque);
  cursor: pointer;
}
.j-objetivo__icone { color: var(--j-marca-texto); }
.j-objetivo__texto {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.j-objetivo__linha .j-link-acao { flex: 0 0 auto; }
.j-objetivo__inteiro { margin: var(--mh-e-2) 0 0; }
.j-objetivo__vazio { margin: var(--mh-e-2) 0 0; color: var(--mh-texto-suave); }
.j-metas { display: grid; gap: var(--mh-e-3); margin: var(--mh-e-3) 0 0; padding: 0; list-style: none; }
.j-meta { display: grid; gap: 4px; }
.j-meta__nome { font-weight: 600; }
.j-meta__de,
.j-meta__atual,
.j-meta__estado { display: inline-flex; align-items: center; gap: 4px; color: var(--mh-texto-suave); font-size: var(--mh-t-sm); }
.j-meta__barra { width: 100%; height: 12px; accent-color: var(--mh-marca); }
.j-meta.is-conquistada .j-meta__estado { color: var(--j-marca-texto); font-weight: 600; }
.j-proximo__botao {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: var(--mh-e-2);
  width: 100%;
  min-height: 64px;
  padding: var(--mh-e-3) var(--mh-e-4);
  font-size: var(--mh-t-md);
  text-align: left;
  white-space: normal;
}
.j-proximo__titulo { grid-column: 1; overflow-wrap: anywhere; }
.j-proximo__prazo { grid-column: 1; font-size: var(--mh-t-sm); font-weight: 600; opacity: 0.9; }
.j-proximo__seta { grid-column: 2; grid-row: 1 / span 2; }
.j-proximo__feito { display: flex; align-items: center; gap: var(--mh-e-2); margin: 0; font-weight: 600; }
.j-proximo__quando { margin: var(--mh-e-1) 0 0; color: var(--mh-texto-suave); }
.j-proximo__tambem { margin-top: var(--mh-e-1); }
/* "Pôr no celular" some no computador (pendência de UX da Onda 1). */
@media (min-width: 1024px) {
  .j-instalar--inicio { display: none; }
}

/* ---- Financeiro (02 T25; regra: 07 §4.2; Onda 7, pacote P2, 15/10/2026) -----
   Três blocos: o próximo item em aberto (valor grande e a ação principal),
   "Seu plano" e a lista inteira atrás de um toque. Sem selo, cor de alerta
   ou contador (Q13): o item em aberto tem o mesmo peso visual dos outros.
   Este arquivo chega a toda tela: nome de classe e comentário seguem o
   vocabulário de fora da aba (tests_design_vazamento). */
.j-fin-erro { margin: var(--mh-e-3) 0 0; }
.j-fin-proxima p { margin: 0; }
.j-fin-proxima__nome { color: var(--mh-texto-suave); font-size: var(--mh-t-sm); font-weight: 600; }
.j-fin-proxima__valor { overflow-wrap: anywhere; }
.j-fin-proxima__rotulo { font-size: var(--mh-t-md); font-weight: 600; }
.j-fin-botoes { display: grid; gap: var(--mh-e-2); margin-top: var(--mh-e-2); }
.j-fin-botoes form { margin: 0; }
/* Lado a lado quando cabem; o segundo desce inteiro quando não cabe (o "R$"
   nunca fica sozinho numa linha a 390 px). */
.j-fin-plano__numeros { display: flex; flex-wrap: wrap; gap: var(--mh-e-2) var(--mh-e-5); margin: 0; }
.j-fin-plano__numeros dt { color: var(--mh-texto-suave); font-size: var(--mh-t-sm); font-weight: 600; }
.j-fin-plano__numeros dd {
  margin: 0;
  font-family: var(--mh-fonte-titulo);
  font-size: var(--mh-t-lg);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.j-fin-mais { margin-top: var(--mh-e-3); }
.j-fin-nota { margin: var(--mh-e-2) 0 0; color: var(--mh-texto-suave); font-size: var(--mh-t-sm); }
.j-fin-contratos { display: grid; gap: var(--mh-e-2); margin: var(--mh-e-3) 0; padding: 0; list-style: none; }
.j-fin-contratos li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--mh-e-2); }
.j-fin-lista { display: grid; gap: var(--mh-e-3); margin: 0; padding: 0; list-style: none; }
.j-fin-item { padding-bottom: var(--mh-e-3); border-bottom: 1px solid var(--mh-borda); }
.j-fin-item:last-child { padding-bottom: 0; border-bottom: 0; }
.j-fin-item p { margin: 0; }
.j-fin-item__topo { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--mh-e-2); font-weight: 600; }
.j-fin-item__valor { font-variant-numeric: tabular-nums; }
.j-fin-item__rotulo { color: var(--mh-texto-suave); font-size: var(--mh-t-sm); }
.j-fin-item__abrir { margin-top: var(--mh-e-1); }
.j-fin-todas .j-fin-lista { margin-top: var(--mh-e-2); }
.j-fin-troca { display: grid; gap: var(--mh-e-3); }
.j-fin-troca p, .j-fin-troca form { margin: 0; }
@media (min-width: 1024px) {
  .j-fin-botoes { grid-template-columns: repeat(2, minmax(0, max-content)); }
}

/* ---- Relatórios (02 T26; regra: 07 §4.7; Onda 7, pacote P6, 16/10/2026) ----
   O mais recente no herói, com a ação principal; o DRE e os meses anteriores
   em listas curtas (nome à esquerda, botão à direita). No relatório, os
   números usam a grade de Números do mês e o texto lê confortável. */
.j-rel-apoio { margin: 0; color: var(--mh-texto-suave); font-size: var(--mh-t-sm); }
.j-rel-lista { display: grid; gap: var(--mh-e-2); margin: var(--mh-e-2) 0 0; padding: 0; list-style: none; }
.j-rel-lista li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--mh-e-2); }
.j-rel-texto { line-height: 1.6; overflow-wrap: anywhere; }
.j-rel-texto .j-toque + .j-toque { margin-top: var(--mh-e-2); }
.j-rel-texto p { margin: var(--mh-e-2) 0 0; }
/* QA no navegador da Onda 7 (18/10/2026): a 390 px o cartão do número tem
   ~150 px, e "R$ 118.000,00" a 24 px quebrava com o "R$" sozinho na linha (a
   mesma regra do "Seu plano" acima). O valor longo encolhe pela largura do
   próprio cartão; no computador fica no tamanho cheio.
   ponytail: faixa por número de caracteres (o template conta); valor com mais
   de 16 caracteres volta a quebrar, e aí vale medir o texto. */
.j-rel-numeros .j-numero { container-type: inline-size; }
.j-rel-numeros .j-numero__valor--longo { font-size: min(var(--mh-t-lg), 11.5cqi); }
.j-rel-numeros .j-numero__valor--muito-longo { font-size: min(var(--mh-t-lg), 9.5cqi); }

/* ---- Porta do jogo (09 §6.4; Onda Arte-2, P6, 19/10/2026) ------------------
   Na Início e no topo da T11, no lugar do mapa compacto: o resumo e o botão
   "Abrir o jogo" numa faixa escura de borda pixelada, a mesma cara do jogo
   (sempre escura, data-theme="dark" no próprio <section>). Texto #F4F4F5
   sobre #16171B (15,9:1). No celular o botão desce para a linha de baixo. */
.j-porta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--mh-e-2) var(--mh-e-3);
  padding: var(--mh-e-3);
  border: 3px solid #1A1A1A;
  border-radius: 0;
  background: #16171B;
  box-shadow: 4px 4px 0 var(--mh-borda-forte);
  color: #F4F4F5;
}
.j-porta__icone { flex: 0 0 auto; width: 28px; height: 28px; color: #FC8F8D; }
.j-porta__resumo { flex: 1 1 12rem; margin: 0; font-weight: 700; }
.j-porta__resumo .j-selo-novo { margin-left: 4px; vertical-align: 2px; }
.j-porta__botao { flex: 1 1 100%; }
@media (min-width: 600px) {
  .j-porta__botao { flex: 0 0 auto; }
}
/* O extrato da lojinha mora no fim do bloco do saldo (Onda Arte-2, P6): uma
   linha separa o toque "Ver extrato" das moedas. */
.j-loja__extrato { padding-top: var(--mh-e-2); border-top: 1px solid var(--mh-borda); }

/* ---- Meu restaurante (Mentoria; Eduardo, 26/10/2026) ------------------------
   O Estoque da loja em cartões. Celular: uma coluna, o cartão inteiro é o
   link; 600 px: duas colunas; 1024 px: três. Nada passa da largura da tela
   (texto quebra, selo quebra linha), então não há rolagem lateral. */
.j-rest-heroi { justify-items: start; }
.j-rest-heroi__nome { overflow-wrap: anywhere; font-size: var(--mh-t-lg); font-weight: 800; }
.j-rest-cartoes { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--mh-e-3); margin: 0; padding: 0; list-style: none; }
.j-rest-cartoes > li { display: flex; min-width: 0; }
.j-rest-cartao { display: grid; flex: 1; align-content: start; gap: var(--mh-e-2); min-width: 0; margin: 0; padding: var(--mh-e-3) var(--mh-e-4); color: var(--mh-texto); text-decoration: none; }
.j-rest-cartao + .j-rest-cartao { margin-top: 0; }
.j-rest-cartao__topo { display: flex; align-items: center; gap: var(--mh-e-2); min-width: 0; }
.j-rest-cartao__icone { flex: 0 0 auto; color: var(--j-marca-texto); }
.j-rest-cartao__texto { color: var(--mh-texto-suave); font-size: var(--mh-t-sm); overflow-wrap: anywhere; }
.j-rest-cartao__numero { display: inline-flex; align-items: center; gap: 4px; justify-self: start; max-width: 100%; white-space: normal; border-radius: var(--mh-raio); }
.j-rest-cartao__numero .j-icone { width: 14px; height: 14px; flex: 0 0 auto; }
.j-rest-cartao__acao { display: inline-flex; align-items: center; gap: 2px; justify-self: end; color: var(--j-marca-texto); font-size: var(--mh-t-sm); font-weight: 700; }
.j-rest-cartao__acao .j-icone { width: 16px; height: 16px; }
.j-rest-nota { margin-bottom: 0; color: var(--mh-texto-suave); font-size: var(--mh-t-sm); }
.j-rest-vazio { display: grid; justify-items: center; gap: var(--mh-e-2); text-align: center; }
.j-rest-vazio p { margin: 0; }
@media (min-width: 600px) {
  .j-rest-cartoes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .j-rest-heroi .j-btn--largo { width: auto; }
}
@media (min-width: 1024px) {
  .j-rest-cartoes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Tarefa que se cumpre pelo Estoque (Mentoria, 27/10/2026). */
.j-tarefa-estoque { display: grid; gap: var(--mh-e-2); }
.j-tarefa-estoque p { margin: 0; }
.j-tarefa-estoque__frase { display: flex; align-items: center; gap: var(--mh-e-2); font-weight: 700; }
.j-tarefa-estoque__frase .j-icone { color: var(--j-marca-texto); flex: 0 0 auto; }
/* Teto de compras do mês (Bia, 27/10/2026): a barra no cartão da Entrada de
   mercadoria. Verde até 79%, amarela a partir de 80%, vermelha acima de 100% (cores do mindhub.css);
   o texto embaixo diz o valor, não só a cor. */
.j-rest-teto { display: grid; gap: 4px; }
.j-rest-teto__barra { width: 100%; height: 10px; border: 0; border-radius: 999px; background: var(--mh-borda); overflow: hidden; -webkit-appearance: none; appearance: none; color: var(--j-teto-cor, var(--mh-ok-fg)); }
.j-rest-teto__barra::-webkit-progress-bar { background: var(--mh-borda); border-radius: 999px; }
.j-rest-teto__barra::-webkit-progress-value { background: var(--j-teto-cor, var(--mh-ok-fg)); border-radius: 999px; }
.j-rest-teto__barra::-moz-progress-bar { background: var(--j-teto-cor, var(--mh-ok-fg)); border-radius: 999px; }
.j-rest-teto--perto { --j-teto-cor: var(--mh-aviso-fg); }
.j-rest-teto--passou { --j-teto-cor: var(--mh-erro-fg); }
.j-rest-teto__texto { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 var(--mh-e-2); }
.j-rest-teto__texto > * { white-space: nowrap; }
.j-rest-teto__texto { color: var(--mh-texto-suave); font-size: var(--mh-t-sm); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

/* Meu restaurante · Seus números (ponto de equilíbrio, giro, margem antes ×
   depois; 28/10/2026). Celular: um embaixo do outro; 1024 px: três lado a lado. */
.j-rest-numeros { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--mh-e-3); margin: 0; padding: 0; list-style: none; }
.j-rest-numeros > li { display: flex; min-width: 0; }
.j-rest-numero { display: grid; flex: 1; align-content: start; gap: var(--mh-e-1); min-width: 0; margin: 0; padding: var(--mh-e-3) var(--mh-e-4); color: var(--mh-texto); text-decoration: none; border-left: 4px solid var(--mh-borda); }
.j-rest-numero + .j-rest-numero { margin-top: 0; }
.j-rest-numero--ok { border-left-color: var(--mh-ok-fg); }
.j-rest-numero--atencao { border-left-color: var(--mh-aviso-fg); }
.j-rest-numero__titulo { display: flex; align-items: center; gap: var(--mh-e-2); color: var(--mh-texto-suave); font-size: var(--mh-t-sm); font-weight: 700; }
.j-rest-numero__valor { font-family: var(--mh-fonte-titulo); font-size: var(--mh-t-lg); font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.j-rest-numero__detalhe { color: var(--mh-texto-suave); font-size: var(--mh-t-sm); overflow-wrap: anywhere; }
.j-rest-numero .j-rest-cartao__acao { margin-top: var(--mh-e-1); }
@media (min-width: 1024px) {
  .j-rest-numeros { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Indicar um restaurante (Bia, 29/10/2026): as indicações já feitas. */
.j-indicacoes { display: grid; gap: var(--mh-e-1); margin: 0; padding: 0; list-style: none; }
.j-indicacoes li {
  display: flex; justify-content: space-between; align-items: center; gap: var(--mh-e-2);
  padding: var(--mh-e-2); border: 2px solid var(--mh-borda-forte); background: var(--mh-superficie);
  overflow-wrap: anywhere;
}

/* Selos para baixar (Bia, 29/10/2026): grade de prévias quadradas. */
.j-selos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--mh-e-3); margin: 0; padding: 0; list-style: none; }
.j-selos__item { display: grid; gap: var(--mh-e-2); }
.j-selos__item img { width: 100%; height: auto; border: 2px solid var(--mh-borda-forte); }
.j-selos__nome { margin: 0; font-weight: 700; overflow-wrap: anywhere; }

/* Calls extras da esteira (Bia, 06/11/2026): os cartões das 2 calls, o
   liberado e o feito em destaque, a lista "o que vale ponto" no toque. */
.j-esteira__regras .j-indicacoes { margin-top: var(--mh-e-2); }
.j-esteira__regras .j-chip { flex: 0 0 auto; white-space: nowrap; }
.j-esteira__call--liberada { border-color: var(--mh-marca); }
.j-esteira__call--feita { border-left: 4px solid var(--mh-ok-fg); }
.j-esteira__call--pedida, .j-esteira__call--fila { border-left: 4px solid var(--mh-aviso-fg); }

/* ---- Primeiros passos antes do 1º acesso (entrar e criar a senha) --------
   Rodrigo, 25/11/2026: o vídeo que ensina o 1º acesso aparece antes do login. */
.j-primeiros { margin-top: var(--mh-e-3); }
.j-primeiros__titulo { display: flex; align-items: center; gap: var(--mh-e-1); margin: 0 0 var(--mh-e-2); font-size: var(--mh-t-sm); }
.j-primeiros .j-video + .j-primeiros__titulo { margin-top: var(--mh-e-3); }
