/* ==========================================================================
   VOX EDU — Portal do Aluno
   Mesma identidade da suíte, mas com peso de APLICATIVO: uma coluna, alvos
   grandes, cartões cheios. O aluno usa no celular, em pé, na porta da sala.
   ========================================================================== */

body.portal { background: var(--canvas); }

.pt-wrap { max-width: 560px; margin: 0 auto; padding: 0 16px 40px; }

/* faixa do topo, com a marca e o nome do aluno */
.pt-topo {
  background: var(--tb-bg); color: var(--tb-ink);
  padding: calc(14px + env(safe-area-inset-top)) 16px 44px;
  border-radius: 0 0 22px 22px; position: relative; overflow: hidden;
}
.pt-topo::after {   /* assinatura de onda sonora da marca */
  content: ""; position: absolute; inset: auto 0 -10px 0; height: 90px; opacity: .13;
  background: repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 13px);
  -webkit-mask-image: radial-gradient(120% 100% at 50% 130%, #000 25%, transparent 70%);
  mask-image: radial-gradient(120% 100% at 50% 130%, #000 25%, transparent 70%);
  pointer-events: none;
}
.pt-topo .linha { display: flex; align-items: center; gap: 11px;
                  max-width: 560px; margin: 0 auto; position: relative; z-index: 1; }
.pt-topo .marca { font-size: 1.02rem; color: #fff; }
.pt-topo .marca .edu { color: var(--brand-soft); }
.pt-topo .unidade { font-size: .67rem; color: var(--tb-ink-2); margin-top: 1px; }
.pt-topo .sair { margin-left: auto; background: rgba(255,255,255,.1); border: none;
                 color: var(--tb-ink); border-radius: 10px; padding: 9px; line-height: 0;
                 cursor: pointer; }
.pt-topo .sair svg.ic { width: 18px; height: 18px; }
.pt-ola { max-width: 560px; margin: 16px auto 0; position: relative; z-index: 1; }
.pt-ola h1 { margin: 0; font-size: 1.42rem; font-weight: 700; letter-spacing: -0.03em; color: #fff; }
.pt-ola p { margin: 3px 0 0; font-size: .82rem; color: var(--tb-ink-2); }

/* o cartão de check-in sobe por cima da faixa */
.pt-checkin { margin-top: -30px; position: relative; z-index: 2; }
.pt-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--sh-2); padding: 18px; margin-bottom: 14px;
}
.pt-card > h2 { margin: 0 0 3px; font-size: .96rem; font-weight: 700; letter-spacing: -0.015em; }
/* aviso de boas-vindas de quem acabou de virar aluno */
.pt-card.destaque { border-color: var(--brand-soft); background: var(--brand-wash); }
.pt-card.destaque > h3 { margin: 0 0 4px; font-size: .95rem; font-weight: 700; }
.pt-card > .sub { font-size: .76rem; color: var(--ink-3); margin-bottom: 12px; }

.btn-checkin {
  width: 100%; border: none; border-radius: var(--r-lg); padding: 20px 16px;
  font-family: inherit; font-size: 1.06rem; font-weight: 700; cursor: pointer;
  background: var(--brand); color: #fff; display: flex; align-items: center;
  justify-content: center; gap: 10px; min-height: 64px;
  box-shadow: 0 8px 20px -10px rgba(15,169,160,.9);
  transition: transform .12s, background .14s;
}
.btn-checkin svg.ic { width: 22px; height: 22px; }
.btn-checkin:active { transform: scale(.985); }
.btn-checkin:disabled { background: var(--surface-3); color: var(--ink-3);
                        box-shadow: none; cursor: not-allowed; }
.btn-checkin.feito { background: var(--ok-wash); color: var(--ok); box-shadow: none; }

/* números grandes do painel do aluno */
.pt-numeros { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.pt-num { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
          padding: 14px; box-shadow: var(--sh-1); }
.pt-num .k { font-size: .71rem; color: var(--ink-3); font-weight: 600; line-height: 1.3; }
.pt-num .v { font-size: 1.85rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1.1;
             margin-top: 4px; }
.pt-num .v.ok { color: var(--ok); } .pt-num .v.warn { color: var(--warn); }
.pt-num .v.bad { color: var(--bad); }
.pt-num .extra { font-size: .71rem; color: var(--ink-3); margin-top: 3px; }

.pt-linha { display: flex; align-items: center; gap: 11px; padding: 11px 0;
            border-bottom: 1px solid var(--line); }
.pt-linha:last-child { border-bottom: none; }
.pt-linha .t { font-size: .87rem; font-weight: 600; }
.pt-linha .m { font-size: .74rem; color: var(--ink-3); margin-top: 1px; }
.pt-linha .dir { margin-left: auto; text-align: right; flex: 0 0 auto; }
.pt-opcoes { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 8px; }

.pt-sala { display: flex; align-items: center; gap: 14px; }
.pt-sala .caixa {
  flex: 0 0 auto; width: 76px; height: 76px; border-radius: var(--r-lg);
  background: var(--brand-wash); color: var(--brand-hover);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.pt-sala .caixa .rot { font-size: .58rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.pt-sala .caixa .val { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
:root[data-theme="dark"] .pt-sala .caixa { color: var(--brand-soft); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pt-sala .caixa { color: var(--brand-soft); }
}

.pt-progresso { margin-top: 10px; }
.pt-progresso .rot { display: flex; justify-content: space-between; font-size: .74rem;
                     color: var(--ink-3); margin-bottom: 5px; }

.pt-breve { background: var(--surface-2); border: 1px dashed var(--line-2);
            border-radius: var(--r-lg); padding: 16px; text-align: center; margin-bottom: 14px; }
.pt-breve .selo { display: inline-block; font-size: .58rem; text-transform: uppercase;
                  letter-spacing: .1em; font-weight: 700; color: var(--ink-3);
                  background: var(--surface-3); border-radius: 999px; padding: 3px 9px;
                  margin-bottom: 8px; }
.pt-breve h3 { margin: 0 0 4px; font-size: .92rem; }
.pt-breve p { margin: 0; font-size: .78rem; color: var(--ink-3); line-height: 1.55; }

.pt-pe { text-align: center; font-size: .71rem; color: var(--ink-3); padding: 18px 0 6px; }

/* login e troca de senha do aluno */
.pt-login { min-height: 100vh; display: flex; align-items: center; justify-content: center;
            padding: 20px; background:
            radial-gradient(900px 460px at 20% -10%, rgba(15,169,160,.45) 0%, transparent 62%),
            var(--brand-deep2); position: relative; overflow: hidden; }
.pt-login::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 200px; opacity: .15;
  background: repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 14px);
  -webkit-mask-image: radial-gradient(120% 100% at 50% 120%, #000 30%, transparent 72%);
  mask-image: radial-gradient(120% 100% at 50% 120%, #000 30%, transparent 72%);
}
.pt-login .caixa { width: 100%; max-width: 380px; background: var(--surface); position: relative;
                   border-radius: var(--r-xl); box-shadow: var(--sh-3); padding: 26px; }
.pt-login .marca-topo { text-align: center; margin-bottom: 20px; }
.pt-login .marca-topo .logo-mark { width: 52px; height: 52px; border-radius: 15px;
                                   font-size: 1.25rem; margin: 0 auto 12px; }
.pt-login h1 { font-size: 1.5rem; margin: 0; }
.pt-login .marca-topo p { font-size: .78rem; color: var(--ink-3); margin: 5px 0 0; }

/* ==========================================================================
   IDENTIDADE VOX APLICADA — Portal do Aluno
   Mesma regra do resto da suíte: assinatura oficial em SVG, azul para o que
   é rotina, amarelo para conquista e progresso.
   ========================================================================== */

.pt-login .marca-topo .sig-grande { width: 100px; height: auto; margin: 0 auto 12px; display: block; }
.pt-login .marca-topo h1 {
  font-family: var(--font-tt); font-size: 1.08rem; font-weight: 700;
  letter-spacing: -.03em; margin: 0; color: var(--ink);
}
.pt-login .marca-topo h1 em { font-style: normal; color: var(--brand-txt); }

/* faixa do topo com o grafismo oficial do balão de fala */
.pt-topo::before {
  content: ""; position: absolute; inset: 0; opacity: .08; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='128' height='128' viewBox='0 0 128 128'>\
<g fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round'>\
<path d='M26 16a19 19 0 1 1 0 38v9c-11-4-20-14-20-28A19 19 0 0 1 26 16Z'/>\
<path d='M92 70a19 19 0 1 1 0 38v9c-11-4-20-14-20-28A19 19 0 0 1 92 70Z'/>\
</g></svg>");
  background-size: 128px 128px;
}
.pt-topo .marca { font-size: 1.12rem; }
.pt-topo .marca .sig { filter: brightness(0) invert(1); }
.pt-topo .marca .edu { color: var(--am); font-size: .44em; }
.pt-ola h1 { font-family: var(--font-tt); letter-spacing: -.04em; }

/* frase do vocabulário oficial, logo abaixo da saudação */
.pt-frase {
  display: inline-flex; align-items: center; gap: .45rem; margin-top: 11px;
  padding: .3rem .72rem; border-radius: 999px; background: rgba(255,255,255,.11);
  border: 1px solid rgba(255,255,255,.16); font-size: .73rem; color: rgba(255,255,255,.9);
}
.pt-frase svg.ic { width: 13px; height: 13px; color: var(--am); flex: none; }

.pt-pe .marca .sig { height: .95em; opacity: .7; }
.pt-pe .marca .edu { font-size: .5em; }
:root[data-theme="dark"] .pt-pe .marca .sig,
:root:not([data-theme="light"]) .pt-pe .marca .sig { filter: invert(1); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .pt-pe .marca .sig { filter: none; }
}
:root[data-theme="light"] .pt-pe .marca .sig { filter: none; }

.pt-breve .selo { background: var(--am-wash); color: var(--am-txt); border: 1px solid var(--am-wash2);
                  border-radius: 999px; padding: .18rem .55rem; font-weight: 700; letter-spacing: .08em; }

/* ==========================================================================
   ABAS — o portal virou aplicativo de três abas
   Regra de cor da marca: azul é rotina, AMARELO é conquista e progresso.
   Por isso nível, sequência, medalha e ponto ganho são amarelos; check-in,
   aula e reposição continuam azuis.
   ========================================================================== */

.pt-wrap { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }

.pt-abas {
  position: fixed; inset: auto 0 0 0; z-index: 30; display: flex;
  background: var(--surface); border-top: 1px solid var(--line);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 20px -12px rgba(16,29,32,.35);
}
.pt-abas button {
  flex: 1; background: none; border: none; cursor: pointer; font-family: inherit;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 4px; border-radius: var(--r); color: var(--ink-3);
  font-size: .68rem; font-weight: 600; letter-spacing: -.01em; transition: color .14s;
}
.pt-abas button svg.ic { width: 21px; height: 21px; }
.pt-abas button.ativo { color: var(--brand-txt); }
.pt-abas button.ativo svg.ic { color: var(--brand); }
.pt-abas button:active { background: var(--surface-2); }

/* selo de sequência no topo */
.pt-streak {
  margin-left: auto; display: inline-flex; align-items: center; gap: .3rem;
  background: rgba(249,176,0,.18); border: 1px solid rgba(249,176,0,.34);
  color: var(--am); border-radius: 999px; padding: .26rem .6rem;
  font-family: var(--font-tt); font-weight: 700; font-size: .86rem;
}
.pt-streak svg.ic { width: 15px; height: 15px; }
.pt-topo .sair { margin-left: 10px; }

/* chamada do VOX GAME dentro do Início */
.pt-jogo-faixa {
  width: 100%; text-align: left; font-family: inherit; cursor: pointer;
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 14px; box-shadow: var(--sh-1); color: inherit;
}
.pt-jogo-faixa:active { transform: scale(.995); }
.pt-jogo-faixa .ic {
  flex: none; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  background: var(--am-wash); color: var(--am-txt);
}
.pt-jogo-faixa .ic svg.ic { width: 21px; height: 21px; }
.pt-jogo-faixa .t { font-size: .88rem; font-weight: 700; }
.pt-jogo-faixa .t .faixa { color: var(--ink-3); font-weight: 600; }
.pt-jogo-faixa .m { font-size: .74rem; color: var(--ink-3); margin: 2px 0 7px; }
.pt-jogo-faixa > svg.ic { flex: none; width: 18px; height: 18px; color: var(--ink-3); }

/* ---------------------------------------------- cartão de nível ---------- */

.vg-nivel {
  background: linear-gradient(160deg, var(--brand-deep) 0%, var(--brand-deep2) 100%);
  border-radius: var(--r-xl); padding: 18px; margin-bottom: 14px; color: #fff;
  position: relative; overflow: hidden; box-shadow: var(--sh-2);
}
.vg-nivel::after {
  content: ""; position: absolute; inset: auto -20% -40% auto; width: 220px; height: 220px;
  border-radius: 50%; background: rgba(249,176,0,.13); pointer-events: none;
}
.vg-nivel .topo { display: flex; align-items: center; gap: 16px; position: relative; z-index: 1; }
.vg-nivel .anel {
  flex: none; width: 86px; height: 86px; border-radius: 50%;
  background: conic-gradient(var(--am) calc(var(--p) * 1%), rgba(255,255,255,.16) 0);
  display: grid; place-items: center;
}
.vg-nivel .anel .dentro {
  width: 70px; height: 70px; border-radius: 50%; background: var(--brand-deep2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
}
.vg-nivel .anel .num { font-family: var(--font-tt); font-size: 1.7rem; font-weight: 700;
                       line-height: 1; letter-spacing: -.04em; }
.vg-nivel .anel .rot { font-size: .56rem; text-transform: uppercase; letter-spacing: .14em;
                       color: rgba(255,255,255,.6); margin-top: 2px; }
.vg-nivel .faixa { font-family: var(--font-tt); font-size: 1.1rem; font-weight: 700;
                   letter-spacing: -.03em; color: var(--am); }
.vg-nivel .pts { font-size: 1.05rem; font-weight: 700; margin-top: 1px; }
.vg-nivel .pts span { font-size: .74rem; font-weight: 500; color: rgba(255,255,255,.7); }
.vg-nivel .falta { font-size: .74rem; color: rgba(255,255,255,.72); margin-top: 4px; }

.vg-nivel .tiras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
                   margin-top: 16px; position: relative; z-index: 1; }
.vg-nivel .tira {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r); padding: 9px 6px; text-align: center;
}
.vg-nivel .tira svg.ic { width: 16px; height: 16px; color: rgba(255,255,255,.45); }
.vg-nivel .tira.on svg.ic { color: var(--am); }
.vg-nivel .tira b { display: block; font-family: var(--font-tt); font-size: 1.1rem;
                    line-height: 1.2; margin-top: 1px; }
.vg-nivel .tira span { display: block; font-size: .6rem; color: rgba(255,255,255,.62);
                       line-height: 1.25; }
.vg-aviso {
  display: flex; align-items: center; gap: 8px; margin-top: 12px; position: relative; z-index: 1;
  background: rgba(255,255,255,.09); border-radius: var(--r); padding: 9px 11px;
  font-size: .73rem; color: rgba(255,255,255,.82);
}
.vg-aviso svg.ic { width: 15px; height: 15px; flex: none; color: var(--am); }

/* ------------------------------------------------------- missões --------- */

.vg-missao {
  display: flex; align-items: center; gap: 11px; padding: 11px 0; cursor: pointer;
  border-bottom: 1px solid var(--line);
}
.vg-missao:last-child { border-bottom: none; }
.vg-missao .t { font-size: .87rem; font-weight: 600; }
.vg-missao .m { font-size: .74rem; color: var(--ink-3); margin-top: 1px; }
.vg-missao .ganho {
  font-family: var(--font-tt); font-weight: 700; font-size: .84rem;
  color: var(--am-txt); background: var(--am-wash); border-radius: 999px; padding: .18rem .5rem;
}
.vg-missao.feita { cursor: default; }
.vg-missao.feita .t { color: var(--ink-3); text-decoration: line-through; }
.vg-missao.feita .ganho { color: var(--ok); background: var(--ok-wash); }

/* -------------------------------------------------- categorias ----------- */

.vg-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.vg-cat {
  font-family: inherit; text-align: left; cursor: pointer; color: inherit;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 12px; transition: border-color .14s, transform .1s;
}
.vg-cat:active { transform: scale(.98); }
.vg-cat:hover { border-color: var(--brand-soft); }
/* Cada frente de treino tem cor e ícone próprios. Doze quadrados iguais viram
   uma lista cinza que ninguém percorre; com cor, a pessoa reconhece "a do
   debate" de longe e volta nela. A cor vem do --c da própria categoria. */
.vg-cat .ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
              background: var(--c, var(--brand)); color: #fff; margin-bottom: 9px;
              box-shadow: 0 6px 14px -6px var(--c, var(--brand)); }
.vg-cat .ic svg.ic { width: 21px; height: 21px; }
.vg-cat .nm { font-size: .81rem; font-weight: 700; line-height: 1.25; }
.vg-cat .mt { font-size: .68rem; color: var(--ink-3); margin-top: 3px; }
.vg-cat .selo-feito { position: absolute; top: 9px; right: 9px; font-size: .62rem;
                      font-weight: 700; color: var(--c, var(--brand)); }
.vg-cat { position: relative; }

/* --------------------------------------------------- treino do dia ------- */
/* Uma ação por tela. Este cartão é o que abre o app nos dias sem aula. */
.pt-treino-hoje {
  background: linear-gradient(155deg, var(--brand) 0%, var(--brand-forte, #0A7E79) 100%);
  color: #fff; border-radius: var(--r-xl); padding: 20px; margin-bottom: 14px;
  box-shadow: var(--sh-2);
}
.pt-treino-hoje .sel {
  display: inline-flex; align-items: center; gap: 6px; font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .09em; background: rgba(255,255,255,.18);
  padding: 4px 11px; border-radius: 999px;
}
.pt-treino-hoje .sel svg.ic { width: 13px; height: 13px; }
.pt-treino-hoje h3 { margin: 11px 0 4px; font-size: 1.12rem; font-weight: 700; line-height: 1.25; }
.pt-treino-hoje p { margin: 0; font-size: .82rem; opacity: .9; }
.pt-treino-hoje .btn-treino {
  margin-top: 15px; width: 100%; border: none; border-radius: var(--r-lg); padding: 15px;
  font-family: inherit; font-size: 1rem; font-weight: 700; cursor: pointer;
  background: #fff; color: var(--brand-txt); display: flex; align-items: center;
  justify-content: center; gap: 9px; box-shadow: 0 4px 0 rgba(0,0,0,.13);
  transition: transform .1s, box-shadow .1s;
}
.pt-treino-hoje .btn-treino:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0,0,0,.13); }
.pt-treino-hoje .btn-treino svg.ic { width: 19px; height: 19px; }
.pt-treino-hoje.feito {
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
}
.pt-treino-hoje.feito .sel { background: var(--ok-wash, var(--brand-wash)); color: var(--brand-txt); }
.pt-treino-hoje.feito p { color: var(--ink-3); opacity: 1; }
.pt-treino-hoje .btn-treino.ghost {
  background: var(--surface-2); color: var(--ink); box-shadow: none; font-size: .92rem;
  padding: 12px;
}

/* A ofensiva em risco: é o aviso que traz a pessoa de volta amanhã. */
.vg-aviso.ofensiva { background: #FFF3E2; border-color: #FFD9A8; color: #7A4A10; }
.vg-aviso.ofensiva svg.ic { color: #E07A1F; }

/* ------------------------------------------------------------ alertas ---- */
.pt-alertas {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
  background: var(--surface); border: 1px solid var(--brand-soft); border-radius: var(--r-xl);
  padding: 15px 16px; box-shadow: var(--sh-2);
}
.pt-alertas > svg.ic { width: 22px; height: 22px; color: var(--brand-txt); flex: none; }
.pt-alertas b { display: block; font-size: .89rem; }
.pt-alertas span { display: block; font-size: .74rem; color: var(--ink-3); line-height: 1.4;
                   margin-top: 2px; }
.pt-alertas button {
  font-family: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; flex: none;
  border-radius: 999px; padding: 9px 16px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--ink);
}
.pt-alertas button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.pt-alertas.ok { border-color: var(--line); }
.pt-alertas.ok > svg.ic { color: var(--ok); }
.pt-alertas.ios, .pt-alertas.bloqueado { border-color: var(--line); align-items: flex-start; }
.pt-alertas.ios > svg.ic, .pt-alertas.bloqueado > svg.ic { margin-top: 2px; color: var(--am); }

/* -------------------------------------------------------------- faixa ---- */
.pt-faixa { display: flex; align-items: center; gap: 13px; }
.pt-faixa .selo-faixa {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  background: linear-gradient(145deg, #F6E7C4, #E8C87C); color: #7A5410; flex: none;
}
.pt-faixa .selo-faixa svg.ic { width: 26px; height: 26px; }
.pt-faixa .k { font-size: .66rem; text-transform: uppercase; letter-spacing: .09em;
               color: var(--ink-3); font-weight: 700; }
.pt-faixa .v { font-size: 1.05rem; font-weight: 700; line-height: 1.2; }
.pt-faixa .m { font-size: .73rem; color: var(--ink-3); }
.pt-faixa .btn-selo {
  font-family: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; flex: none;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink);
  border-radius: 999px; padding: 8px 14px; display: flex; align-items: center; gap: 6px;
}
.pt-faixa .btn-selo svg.ic { width: 14px; height: 14px; color: #C9992F; }

/* ----------------------------------------------------------- evolução ---- */
.vg-evolucao { background: var(--surface-2); border-radius: var(--r-lg); padding: 14px;
               margin: 12px 0; border: 1px solid var(--line); }
.vg-evolucao .de-para { display: flex; align-items: center; justify-content: center; gap: 18px; }
.vg-evolucao .de-para div { text-align: center; }
.vg-evolucao .de-para span { display: block; font-size: .64rem; text-transform: uppercase;
                             letter-spacing: .08em; color: var(--ink-3); }
.vg-evolucao .de-para b { font-size: 1.7rem; font-family: var(--font-tt); font-weight: 800;
                          color: var(--ink-2); line-height: 1.1; }
.vg-evolucao .de-para b.agora { color: var(--brand-txt); }
.vg-evolucao .seta svg.ic { width: 20px; height: 20px; color: var(--ink-3); }
.vg-evolucao.sobe .seta svg.ic { color: var(--ok); transform: rotate(-45deg); }
.vg-evolucao .txt { font-size: .8rem; color: var(--ink-2); margin-top: 10px; text-align: center; }
.vg-linha { display: block; margin: 6px 0 2px; }
.vg-numeros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.vg-numeros div { background: var(--surface-2); border-radius: var(--r-md, 10px); padding: 10px;
                  text-align: center; }
.vg-numeros b { display: block; font-family: var(--font-tt); font-weight: 800; font-size: 1.15rem; }
.vg-numeros span { font-size: .66rem; color: var(--ink-3); text-transform: uppercase;
                   letter-spacing: .06em; }

/* --------------------------------------------------------- comparação ---- */
/* A régua de percentil. Sem nome de ninguém: só onde a pessoa está na curva. */
.vg-comparacao {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 14px 15px; margin: 14px 0;
}
.vg-comparacao .cab { display: flex; gap: 10px; align-items: flex-start; }
.vg-comparacao .cab svg.ic { width: 19px; height: 19px; color: var(--brand-txt); flex: none;
                             margin-top: 2px; }
.vg-comparacao .cab b { font-size: .88rem; display: block; line-height: 1.35; }
.vg-comparacao .cab span { font-size: .72rem; color: var(--ink-3); }
.vg-comparacao .regua {
  position: relative; height: 8px; border-radius: 999px; margin: 13px 0 5px;
  background: linear-gradient(90deg, var(--line), var(--brand-wash2, var(--brand-wash)));
}
.vg-comparacao .regua i {
  position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--brand);
}
.vg-comparacao .regua .marca {
  position: absolute; top: 50%; width: 15px; height: 15px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--brand); transform: translate(-50%, -50%);
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
}
.vg-comparacao.topo .regua i, .vg-comparacao.topo .regua .marca { background: #E8A020; }
.vg-comparacao.topo .regua .marca { background: var(--surface); border-color: #E8A020; }
.vg-comparacao .pes {
  display: flex; justify-content: space-between; font-size: .64rem; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: .06em;
}
.vg-comparacao .destaque {
  margin-top: 11px; display: flex; align-items: center; gap: 7px; font-size: .8rem;
  font-weight: 600; color: var(--brand-txt);
}
.vg-comparacao .destaque svg.ic { width: 15px; height: 15px; }

/* a escada de posições, sem nomes */
.vg-escada { margin-top: 14px; display: grid; gap: 5px; }
.vg-pos {
  display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; align-items: center;
  font-size: .8rem; padding: 5px 8px; border-radius: 9px;
}
.vg-pos .p { color: var(--ink-3); font-weight: 700; font-variant-numeric: tabular-nums; }
.vg-pos .b { height: 7px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.vg-pos .b i { display: block; height: 100%; background: var(--line); border-radius: 999px; }
.vg-pos .v { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.vg-pos.voce { background: var(--brand-wash); }
.vg-pos.voce .p, .vg-pos.voce .v { color: var(--brand-txt); font-weight: 700; }
.vg-pos.voce .b i { background: var(--brand); }
.vg-pos-dobra { font-size: .7rem; color: var(--ink-3); text-align: center; padding: 4px 0; }
.vg-nota-pe { font-size: .7rem; color: var(--ink-3); margin-top: 10px; }
.vg-sub { font-size: .9rem; font-weight: 700; margin: 20px 0 8px; }
.vg-cat-comp {
  display: flex; align-items: center; gap: 10px; padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.vg-cat-comp:last-of-type { border-bottom: none; }
.vg-cat-comp .t { font-size: .85rem; font-weight: 600; }
.vg-cat-comp .m { font-size: .71rem; color: var(--ink-3); }
.vg-cat-comp .pct {
  font-weight: 700; font-size: .9rem; color: var(--ink-2);
  background: var(--surface-2); padding: 4px 10px; border-radius: 999px;
}
.vg-cat-comp .pct.topo { background: #FBF0D8; color: #8A6111; }
.vg-cat-comp .pct.alto { background: var(--brand-wash); color: var(--brand-txt); }

/* ------------------------------------------------- pontos comemorados ---- */
/* Overlay curto: estrela, o ganho e uma frase da casa. Fecha sozinho. */
.pt-ganho {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center;
  background: rgba(8, 32, 34, .55); backdrop-filter: blur(2px);
  animation: ganhoFundo .18s ease-out;
}
.pt-ganho .caixa {
  background: var(--surface); border-radius: var(--r-xl); padding: 26px 30px;
  text-align: center; box-shadow: var(--sh-3, 0 22px 50px -18px rgba(0,0,0,.45));
  animation: ganhoEntra .34s cubic-bezier(.2,1.3,.4,1);
  min-width: 232px;
}
.pt-ganho .estrela { color: #F2B237; }
.pt-ganho .estrela svg.ic { width: 58px; height: 58px; animation: ganhoGira .7s ease-out; }
.pt-ganho .pts { font-size: 2.4rem; font-weight: 800; line-height: 1; color: var(--brand-txt);
                 letter-spacing: -.02em; margin-top: 4px; }
.pt-ganho .rot { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em;
                 color: var(--ink-3); font-weight: 700; }
.pt-ganho .frase { margin-top: 12px; font-size: .92rem; font-weight: 700; }
.pt-ganho .nivel-novo { margin-top: 12px; display: inline-flex; align-items: center; gap: 7px;
  background: var(--brand-wash); color: var(--brand-txt); font-weight: 700; font-size: .78rem;
  padding: 7px 12px; border-radius: 999px; }
.pt-ganho .nivel-novo svg.ic { width: 16px; height: 16px; }
.pt-ganho .faiscas { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.pt-ganho .faiscas i {
  position: absolute; bottom: 32%; width: 9px; height: 9px; background: #F2B237;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  animation: faisca 1.5s ease-out forwards; opacity: 0;
}
@keyframes faisca {
  0%   { transform: translateY(0) scale(.4) rotate(0deg); opacity: 0; }
  18%  { opacity: 1; }
  100% { transform: translateY(-190px) scale(1.1) rotate(var(--g, 30deg)); opacity: 0; }
}
@keyframes ganhoFundo { from { opacity: 0; } to { opacity: 1; } }
@keyframes ganhoEntra { from { transform: scale(.72); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes ganhoGira  { from { transform: scale(.3) rotate(-40deg); } to { transform: scale(1) rotate(0); } }
@media (prefers-reduced-motion: reduce) {
  .pt-ganho .faiscas { display: none; }
  .pt-ganho .caixa, .pt-ganho .estrela svg.ic { animation: none; }
}

.vg-desafio {
  display: flex; align-items: center; gap: 10px; padding: 12px 0; cursor: pointer;
  border-bottom: 1px solid var(--line);
}
.vg-desafio:last-child { border-bottom: none; }
.vg-desafio .t { font-size: .87rem; font-weight: 600; }
.vg-desafio .m { font-size: .73rem; color: var(--ink-3); margin-top: 2px; }
.vg-desafio svg.ic { width: 17px; height: 17px; color: var(--ink-3); }

/* ----------------------------------------------------------- trilhas ----- */

.vg-trilha { padding: 13px 0; border-bottom: 1px solid var(--line); }
.vg-trilha:last-child { border-bottom: none; }
.vg-trilha .cab { display: flex; align-items: center; gap: 11px; margin-bottom: 9px; }
.vg-trilha .t { font-size: .87rem; font-weight: 700; }
.vg-trilha .m { font-size: .73rem; color: var(--ink-3); margin-top: 1px; }
.vg-trilha .cont { font-family: var(--font-tt); font-weight: 700; font-size: .8rem;
                   color: var(--ink-3); }
.vg-trilha .passos { display: flex; gap: 7px; margin-top: 10px; flex-wrap: wrap; }
.vg-trilha .passo {
  width: 36px; height: 36px; border-radius: 11px; cursor: pointer; font-family: var(--font-tt);
  font-weight: 700; font-size: .84rem; background: var(--surface-2);
  border: 1px solid var(--line-2); color: var(--ink-3);
  display: grid; place-items: center; transition: transform .1s;
}
.vg-trilha .passo:active { transform: scale(.94); }
.vg-trilha .passo.feito { background: var(--am-wash); border-color: var(--am-wash2);
                          color: var(--am-txt); }
.vg-trilha .passo svg.ic { width: 16px; height: 16px; }

/* ------------------------------------------------------- o caminho ------- */
/* Trilha desenhada como percurso: uma linha vertical, os degraus alternando de
   lado. O aceso é o próximo passo — é o único que pulsa. */
.vg-caminho { padding: 16px 0 6px; border-bottom: 1px solid var(--line); }
.vg-caminho:last-child { border-bottom: none; }
.vg-caminho .cab { display: flex; align-items: center; gap: 11px; margin-bottom: 6px; }
.vg-caminho .t { font-size: .87rem; font-weight: 700; }
.vg-caminho .m { font-size: .73rem; color: var(--ink-3); margin-top: 1px; }
.vg-caminho .cont { font-family: var(--font-tt); font-weight: 700; font-size: .8rem;
                    color: var(--ink-3); }

.vg-caminho .degraus { position: relative; padding: 10px 0 4px; }
.vg-caminho .degraus::before {
  content: ""; position: absolute; top: 14px; bottom: 14px; left: 50%; width: 3px;
  transform: translateX(-50%); background: repeating-linear-gradient(
    var(--line) 0 7px, transparent 7px 14px);
}
.vg-caminho .degrau {
  position: relative; display: flex; flex-direction: column; align-items: center;
  gap: 4px; margin: 0 0 14px;
}
.vg-caminho .degrau.l0 { transform: translateX(0); }
.vg-caminho .degrau.l1 { transform: translateX(24%); }
.vg-caminho .degrau.l2 { transform: translateX(0); }
.vg-caminho .degrau.l3 { transform: translateX(-24%); }
@media (max-width: 380px) {
  .vg-caminho .degrau.l1 { transform: translateX(18%); }
  .vg-caminho .degrau.l3 { transform: translateX(-18%); }
}
.vg-caminho .degrau button {
  width: 54px; height: 54px; border-radius: 50%; cursor: pointer; border: none;
  font-family: var(--font-tt); font-weight: 800; font-size: 1rem;
  background: var(--surface-2); color: var(--ink-3);
  box-shadow: 0 4px 0 var(--line-2); display: grid; place-items: center;
  transition: transform .1s, box-shadow .1s;
}
.vg-caminho .degrau button:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--line-2); }
.vg-caminho .degrau button svg.ic { width: 22px; height: 22px; }
.vg-caminho .degrau .rot {
  font-size: .68rem; color: var(--ink-3); text-align: center; max-width: 130px;
  line-height: 1.25;
}
.vg-caminho .degrau.feito button { background: var(--am-wash); color: var(--am-txt);
                                   box-shadow: 0 4px 0 var(--am-wash2); }
.vg-caminho .degrau.agora button {
  background: var(--brand); color: #fff; box-shadow: 0 5px 0 var(--brand-forte, #0A7E79);
  animation: pulsaDegrau 2.4s ease-in-out infinite;
}
.vg-caminho .degrau.agora .rot { color: var(--ink); font-weight: 700; }
.vg-caminho .degrau .agora-selo {
  font-size: .6rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  color: var(--brand-txt); background: var(--brand-wash); padding: 2px 9px; border-radius: 999px;
}
.vg-caminho .degrau.adiante button { opacity: .62; }
.vg-caminho .degrau.fim button { background: #F6E7C4; color: #8A6111; box-shadow: 0 4px 0 #E8D2A0; }
@keyframes pulsaDegrau {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .vg-caminho .degrau.agora button { animation: none; }
}

/* ------------------------------------------------- a tela do treino ------ */

.vg-treino .meta { font-size: .72rem; color: var(--ink-3); font-weight: 600;
                   text-transform: uppercase; letter-spacing: .06em; }
.vg-treino .enunciado { font-size: 1rem; line-height: 1.6; margin: 10px 0 12px; }

.vg-treino .cronometro {
  background: var(--surface-2); border-radius: var(--r-lg); padding: 16px;
  text-align: center; margin-bottom: 12px; border: 1px solid var(--line);
}
.vg-treino .cronometro.rodando { border-color: var(--brand); }
.vg-treino .cronometro .tempo {
  font-family: var(--font-tt); font-size: 2.6rem; font-weight: 700; line-height: 1;
  letter-spacing: -.05em;
}
.vg-treino .cronometro .tempo span { font-size: .9rem; color: var(--ink-3); margin-left: 2px; }
.vg-treino .cronometro .alvo { font-size: .72rem; color: var(--ink-3); margin: 3px 0 10px; }
.vg-treino .cronometro.passou .tempo { color: var(--warn); }

.vg-treino .transcricao {
  background: var(--surface-2); border: 1px dashed var(--line-2); border-radius: var(--r-lg);
  padding: 13px; font-size: .86rem; line-height: 1.6; min-height: 84px; max-height: 190px;
  overflow-y: auto; margin-bottom: 14px;
}
.vg-treino .transcricao.vazia { color: var(--ink-3); font-size: .78rem; }

.vg-avaliando {
  display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%;
  padding: 14px; color: var(--ink-3); font-size: .86rem; font-weight: 600;
}
.vg-avaliando svg.ic { width: 18px; height: 18px; animation: vg-girar 1.5s linear infinite; }
@keyframes vg-girar { to { transform: rotate(360deg); } }

/* --------------------------------------------------------- resultado ----- */

.vg-resultado { text-align: center; }
.vg-resultado .nota {
  width: 108px; height: 108px; border-radius: 50%; margin: 4px auto 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--surface-2); border: 3px solid var(--line-2);
}
.vg-resultado .nota.ok { border-color: var(--ok); background: var(--ok-wash); }
.vg-resultado .nota.warn { border-color: var(--warn); background: var(--warn-wash); }
.vg-resultado .nota.bad { border-color: var(--bad); }
.vg-resultado .nota .v { font-family: var(--font-tt); font-size: 2.5rem; font-weight: 700;
                         line-height: 1; letter-spacing: -.05em; }
.vg-resultado .nota .r { font-size: .64rem; color: var(--ink-3); margin-top: 2px; }
.vg-resultado .ganhou {
  font-family: var(--font-tt); font-weight: 700; font-size: 1rem; color: var(--am-txt);
  background: var(--am-wash); border-radius: 999px; padding: .3rem .9rem;
  display: inline-block; margin-bottom: 14px;
}
.vg-resultado .medidas { display: grid; grid-template-columns: 1fr 1fr; gap: 9px;
                         margin-bottom: 14px; }
.vg-resultado .medida { background: var(--surface-2); border-radius: var(--r); padding: 10px;
                        text-align: left; }
.vg-resultado .medida .k { font-size: .66rem; color: var(--ink-3); font-weight: 600; }
.vg-resultado .medida .v { font-family: var(--font-tt); font-size: 1.05rem; font-weight: 700;
                           margin: 1px 0 6px; }
.vg-resultado .medida .v.ok { color: var(--ok); }
.vg-resultado .medida .v.warn { color: var(--warn); }
.vg-resultado .medida .v.bad { color: var(--bad); }

.vg-resultado .fala {
  text-align: left; background: var(--surface-2); border-radius: var(--r-lg);
  padding: 13px; margin-bottom: 9px; border-left: 3px solid var(--line-2);
}
.vg-resultado .fala.ok { border-left-color: var(--ok); }
.vg-resultado .fala.warn { border-left-color: var(--am); }
.vg-resultado .fala .rot {
  display: flex; align-items: center; gap: 6px; font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); margin-bottom: 5px;
}
.vg-resultado .fala .rot svg.ic { width: 14px; height: 14px; }
.vg-resultado .fala p { margin: 0; font-size: .87rem; line-height: 1.6; }
.vg-resultado .assinatura { font-size: .68rem; color: var(--ink-3); margin: 12px 0 4px; }

/* --------------------------------------------------------- medalhas ------ */

.vg-medalha-nova { text-align: center; padding: 8px 0; }
.vg-medalha-nova .selo {
  width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 14px;
  display: grid; place-items: center; background: var(--am-wash);
  border: 3px solid var(--am); color: var(--am-txt);
  animation: vg-pulsar .6s ease-out;
}
.vg-medalha-nova .selo svg.ic { width: 44px; height: 44px; }
@keyframes vg-pulsar {
  0% { transform: scale(.5); opacity: 0; }
  60% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); }
}
.vg-medalha-nova h3 { margin: 0 0 5px; font-family: var(--font-tt); font-size: 1.25rem; }
.vg-medalha-nova p { margin: 0 0 12px; font-size: .86rem; color: var(--ink-3); }
.vg-medalha-nova .ganho {
  display: inline-block; font-family: var(--font-tt); font-weight: 700;
  background: var(--am-wash); color: var(--am-txt); border-radius: 999px; padding: .3rem .9rem;
}

.vg-medalhas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.vg-medalha { text-align: center; opacity: .45; }
.vg-medalha.on { opacity: 1; }
.vg-medalha .selo {
  width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 6px; display: grid;
  place-items: center; background: var(--surface-3); color: var(--ink-3);
  border: 2px solid transparent;
}
.vg-medalha.on .selo { background: var(--am-wash); color: var(--am-txt); border-color: var(--am); }
.vg-medalha .selo svg.ic { width: 24px; height: 24px; }
.vg-medalha .nm { font-size: .68rem; font-weight: 700; line-height: 1.25; }
.vg-medalha .mt { font-size: .62rem; color: var(--ink-3); margin-top: 2px; }

/* ------------------------------------------------ perfil e histórico ----- */

.pt-perfil { text-align: center; }
.pt-perfil .avatar { margin: 2px auto 10px; }
.pt-perfil .nome { font-family: var(--font-tt); font-size: 1.15rem; font-weight: 700;
                   letter-spacing: -.03em; }
.pt-perfil .sub { font-size: .76rem; color: var(--ink-3); margin-bottom: 14px; }
.pt-perfil .linha-num {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  border-top: 1px solid var(--line); padding-top: 13px;
}
.pt-perfil .linha-num b { display: block; font-family: var(--font-tt); font-size: 1.2rem;
                          line-height: 1.2; }
.pt-perfil .linha-num span { display: block; font-size: .64rem; color: var(--ink-3); }

.vg-hist {
  display: flex; align-items: center; gap: 11px; padding: 11px 0; cursor: pointer;
  border-bottom: 1px solid var(--line);
}
.vg-hist:last-child { border-bottom: none; }
.vg-hist .nota {
  flex: none; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  font-family: var(--font-tt); font-weight: 700; font-size: 1rem;
  background: var(--surface-3); color: var(--ink-2);
}
.vg-hist .nota.ok { background: var(--ok-wash); color: var(--ok); }
.vg-hist .nota.warn { background: var(--warn-wash); color: var(--warn); }
.vg-hist .nota.bad { background: var(--bad-wash, var(--surface-3)); color: var(--bad); }
.vg-hist .t { font-size: .87rem; font-weight: 600; }
.vg-hist .m { font-size: .73rem; color: var(--ink-3); margin-top: 1px; }
.vg-hist svg.ic { width: 17px; height: 17px; color: var(--ink-3); }

/* ==========================================================================
   ABA DÚVIDAS — o chat com o professor virtual
   ========================================================================== */

.ch-tela { display: flex; flex-direction: column; min-height: 52vh; }

.ch-fluxo { display: flex; flex-direction: column; gap: 10px; padding: 4px 0 12px; }

.ch-balao {
  max-width: 86%; padding: 11px 14px; border-radius: 16px; font-size: .9rem;
  line-height: 1.55; word-wrap: break-word; animation: ch-entra .18s ease-out;
}
@keyframes ch-entra { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .ch-balao { animation: none; } }

.ch-balao.meu {
  align-self: flex-end; background: var(--brand); color: #fff;
  border-bottom-right-radius: 5px;
}
.ch-balao.dele {
  align-self: flex-start; background: var(--surface); border: 1px solid var(--line);
  border-bottom-left-radius: 5px; box-shadow: var(--sh-1);
}
.ch-balao .item { display: block; padding-left: 14px; text-indent: -10px; }
.ch-balao .item::before { content: "· "; color: var(--brand-txt); font-weight: 700; }
.ch-balao.meu .item::before { color: rgba(255,255,255,.75); }
.ch-balao .fonte {
  font-size: .64rem; color: var(--ink-3); margin-top: 6px;
  text-transform: uppercase; letter-spacing: .07em;
}

/* três pontinhos enquanto o professor pensa */
.ch-balao.digitando { display: flex; gap: 5px; padding: 15px 16px; }
.ch-balao.digitando span {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3);
  animation: ch-pula 1.1s infinite;
}
.ch-balao.digitando span:nth-child(2) { animation-delay: .16s; }
.ch-balao.digitando span:nth-child(3) { animation-delay: .32s; }
@keyframes ch-pula { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ch-balao.digitando span { animation: none; } }

.ch-boas {
  text-align: center; padding: 22px 16px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-1);
}
.ch-boas .selo {
  width: 58px; height: 58px; border-radius: 50%; margin: 0 auto 12px; display: grid;
  place-items: center; background: var(--brand-wash); color: var(--brand-txt);
}
.ch-boas .selo svg.ic { width: 27px; height: 27px; }
.ch-boas h2 { margin: 0 0 7px; font-family: var(--font-tt); font-size: 1.1rem; }
.ch-boas p { margin: 0 0 8px; font-size: .85rem; color: var(--ink-3); line-height: 1.6; }
.ch-boas p.mini { font-size: .74rem; margin-bottom: 0; }

.ch-sugestoes { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.ch-sugestoes button {
  font-family: inherit; font-size: .78rem; cursor: pointer; text-align: left;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--ink-2);
  border-radius: 999px; padding: .45rem .8rem; transition: border-color .14s, color .14s;
}
.ch-sugestoes button:hover { border-color: var(--brand-soft); color: var(--ink); }

.ch-aviso {
  display: flex; gap: 9px; align-items: flex-start; margin-bottom: 10px;
  background: var(--warn-wash); border-radius: var(--r); padding: 11px 13px;
  font-size: .78rem; color: var(--ink-2); line-height: 1.5;
}
.ch-aviso svg.ic { width: 16px; height: 16px; flex: none; color: var(--warn); margin-top: 1px; }

/* a barra de escrever gruda logo acima das abas */
.ch-barra {
  position: sticky; bottom: calc(78px + env(safe-area-inset-bottom)); z-index: 5;
  display: flex; align-items: flex-end; gap: 8px; padding: 9px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--sh-2);
}
.ch-barra textarea {
  flex: 1; border: none; background: none; resize: none; padding: 8px 4px;
  font-family: inherit; font-size: .92rem; line-height: 1.45; color: var(--ink);
  max-height: 130px; outline: none;
}
.ch-barra textarea::placeholder { color: var(--ink-3); }
.ch-enviar {
  flex: none; width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--brand); color: #fff; display: grid; place-items: center;
  transition: transform .1s, opacity .14s;
}
.ch-enviar svg.ic { width: 19px; height: 19px; transform: rotate(-90deg); }
.ch-enviar:active { transform: scale(.93); }
.ch-enviar:disabled { opacity: .45; cursor: not-allowed; }

.ch-rodape {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  font-size: .7rem; color: var(--ink-3); padding: 8px 4px 0;
}

/* telas maiores: o app do aluno não precisa esticar */
@media (min-width: 640px) {
  .pt-abas { max-width: 560px; left: 50%; transform: translateX(-50%);
             border-radius: 18px 18px 0 0; border: 1px solid var(--line); border-bottom: none; }
}

/* ------------------------------------------------- ver como o aluno -------
   Faixa fixa no topo enquanto alguém da equipe está olhando pela janela do
   aluno. Amarelo não serve aqui (é a cor de conquista da marca): esta faixa
   é aviso de contexto, então usa a tinta escura da marca, sem competir com
   nada da tela do aluno. */
.pt-simulacao {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 9px 14px; background: #0D2A29; color: #fff;
  font-size: .78rem; line-height: 1.35;
}
.pt-simulacao b { font-weight: 700; }
.pt-simulacao button {
  margin-left: auto; flex: none; cursor: pointer;
  border: 1px solid rgba(255,255,255,.45); background: transparent; color: #fff;
  font: inherit; font-weight: 600; padding: 5px 12px; border-radius: 8px;
  transition: background .13s;
}
.pt-simulacao button:hover { background: rgba(255,255,255,.14); }

/* ------------------------------------------------ porta do convidado ------
   Quem não é aluno entra por aqui. O separador e o aceite são os dois únicos
   elementos que a tela de login não tinha. */
.pt-ou {
  display: flex; align-items: center; gap: 10px; margin: 14px 0 12px;
  color: var(--ink-3); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em;
}
.pt-ou::before, .pt-ou::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}
.pt-aceite {
  display: flex; gap: 9px; align-items: flex-start; margin: 14px 0 4px;
  font-size: .74rem; color: var(--ink-2); line-height: 1.45; cursor: pointer;
}
.pt-aceite input { margin-top: 2px; flex: none; width: 16px; height: 16px; accent-color: var(--brand); }
