/* =========================================================
   Redinha: componentes do app.
   Cores, fontes e medidas vêm de tokens.css (gerado do brandkit).
   Aqui só se usa var(--…): nenhuma cor escrita à mão.
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--surface); touch-action: manipulation; }
/* app: sem zoom de pinça nem de dois toques; campos com 16px ou mais para o iPhone não aproximar sozinho */
input, textarea, select { font-size: max(16px, 1em); }
/* a dica da caixa de escrever fica numa linha só (com a letra grande, quebrava e saía cortada) */
textarea::placeholder { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.so-leitor { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* o app tem a largura de um celular; no computador fica centralizado */
/* A barra de baixo nunca solta da tela: a página não rola, só o miolo (main) rola; o topo e a
   barra ficam presos na casca, que tem a altura exata da tela. */
html:has(> body > .app), html:has(> body > .app) > body { height: 100%; min-height: 0; overflow: hidden; overscroll-behavior: none; }
.app { max-width: 480px; margin: 0 auto; height: 100vh; height: 100dvh; position: relative; overflow: hidden; }
.app > main { position: absolute; inset: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: var(--header) 0 var(--nav); box-sizing: border-box; }

/* ---------- toque com mola ---------- */
.mola { transition: transform .18s cubic-bezier(.3, .7, .4, 1.5); }
.mola:active { transform: scale(.92); }

/* ---------- topo ---------- */
.topo {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  height: calc(var(--header) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 8px 0 16px;
  display: flex; align-items: center; gap: 6px;
  max-width: 480px; margin: 0 auto;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: blur(18px) saturate(1.8); backdrop-filter: blur(18px) saturate(1.8);
}
.topo__logo { width: 26px; height: 26px; border-radius: 50%; }
.topo__nome { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icone-botao {
  width: var(--tap); height: var(--tap); border: none; background: transparent; padding: 0;
  display: flex; align-items: center; justify-content: center; position: relative; color: var(--ink);
}
.ponto-novo { position: absolute; top: 9px; right: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--heart); border: 2px solid var(--surface); }

/* ---------- botões ---------- */
.botao {
  min-height: 50px; padding: 0 18px; border: none; border-radius: var(--radius-md);
  font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .18s cubic-bezier(.3, .7, .4, 1.5), background-color .25s, color .25s;
}
.botao:active { transform: scale(.92); }
.botao--rosa { background: var(--pink); color: var(--on-pink); }
.botao--escuro { background: var(--ink); color: var(--surface); }
.botao--suave { background: var(--surface-soft); color: var(--ink); }
.botao--feito { background: var(--mint-soft); color: var(--mint-ink); }
.botao--pilula { min-height: 36px; padding: 0 12px; border-radius: var(--radius-pill); font-size: 13px; }
.botao--largo { width: 100%; }

/* ---------- etiquetas ---------- */
.etiqueta { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: var(--radius-pill); white-space: nowrap; }
.etiqueta--rotina, .etiqueta--resumo, .etiqueta--fixado { background: var(--sun-soft); color: var(--sun-ink); }
.etiqueta--comunicado, .etiqueta--lembrete { background: var(--sky-soft); color: var(--sky-ink); }
.etiqueta--aviso, .etiqueta--escola { background: var(--rose-soft); color: var(--rose-ink); }
.etiqueta--evento, .etiqueta--cardapio, .etiqueta--cardapio_dia { background: var(--mint-soft); color: var(--mint-ink); }
.etiqueta--enquete { background: var(--lilac-soft); color: var(--lilac-ink); }

/* ---------- avatar ---------- */
.avatar { width: var(--avatar-post); height: var(--avatar-post); border-radius: 50%; flex-shrink: 0; overflow: hidden; }
.avatar--logo { background: #fff; object-fit: cover; box-shadow: 0 0 0 1px rgba(43, 34, 51, .1); }
.avatar--iniciais { display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 13px; background: var(--rose-soft); color: var(--rose-ink); }

/* ---------- stories ---------- */
.stories { display: flex; gap: 14px; overflow-x: auto; padding: 8px var(--space-gutter) 12px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.stories::-webkit-scrollbar { display: none; }
.story { flex-shrink: 0; width: var(--avatar-story); border: none; background: none; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.story__anel {
  width: var(--avatar-story); height: var(--avatar-story); border-radius: 50%; padding: 3px;
  background: linear-gradient(45deg, var(--ring-1), var(--ring-2), var(--ring-3), var(--ring-4));
}
.story__anel > span { display: block; width: 100%; height: 100%; border-radius: 50%; padding: 3px; background: var(--surface); }
.story__anel img { width: 100%; height: 100%; border-radius: 50%; }
.story__nome { font-size: 12px; max-width: var(--avatar-story); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story--visto .story__anel { background: var(--line-strong); }
.story--visto .story__nome { color: var(--ink-mute); }
.story--carregando .story__anel { background: conic-gradient(var(--ring-1), var(--ring-2), var(--ring-3), var(--ring-4), var(--ring-1)); animation: gira 1.2s linear infinite; }
.story--carregando .story__anel > span { animation: gira 1.2s linear infinite reverse; }

/* ---------- post ---------- */
/* mais respiro entre um post e outro (pedido dela em 21/10/2026: estava tudo grudado) */
.post { padding: 16px 0 26px; }
.post__cabeca { display: flex; align-items: center; gap: 10px; padding: 0 var(--space-gutter) 10px; }
.post__autor { flex: 1; min-width: 0; line-height: 1.2; }
.post__autor .nome, .post__autor small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post__autor small { font-size: 12px; color: var(--ink-mute); }
.post__midia { position: relative; }
.post__midia img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.post__acoes { display: flex; align-items: center; gap: 2px; padding: 6px 6px 0; }
.post__acoes .contador { font-size: 14px; font-weight: 700; margin-right: 6px; }
.coracao--on { color: var(--heart); }
.coracao--on svg { animation: bate .45s cubic-bezier(.3, .8, .3, 1.6); }
.post__legenda { padding: 0 16px; }
.post__legenda .nome { margin-right: 4px; }
.post__tempo { display: block; margin-top: 4px; font-size: 12px; color: var(--ink-mute); }
.coracao-grande { position: absolute; left: 50%; top: 50%; width: 110px; height: 110px; margin: -55px 0 0 -55px; pointer-events: none; color: var(--surface); filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .25)); animation: coracao .9s cubic-bezier(.2, .9, .3, 1.3) forwards; }

/* ---------- Pergunte em casa (foto do dia) ---------- */
.pergunta { display: flex; gap: 10px; margin: 10px 12px; padding: 12px; border-radius: 18px; background: var(--lilac-soft); text-align: left; }
.pergunta__bicho { flex: none; width: 44px; height: 44px; }
.pergunta__corpo { flex: 1; min-width: 0; }
.pergunta__rotulo { display: block; font-size: 12px; font-weight: 700; color: var(--lilac-ink); }
.pergunta__texto { margin: 2px 0 0; font-family: var(--font-display); font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }
.pergunta__pe { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px; }
.pergunta__botao { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: none; border-radius: var(--radius-pill); background: var(--pink); color: var(--on-pink); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.pergunta__botao--feito { background: var(--mint-soft); color: var(--mint-ink); cursor: default; }
.pergunta__total { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.pergunta__total:empty { display: none; }
.pergunta__coracao { position: absolute; left: 38px; bottom: 26px; width: 28px; height: 28px; color: var(--heart); pointer-events: none; animation: pergunta-sobe .9s ease-out forwards; }
@keyframes pergunta-sobe { 0% { transform: translateY(8px) scale(.5); opacity: 0; } 25% { transform: none; opacity: 1; } 100% { transform: translateY(-36px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pergunta__coracao { display: none; } }

/* ---------- enquete ---------- */
.enquete { margin: 0 var(--space-gutter); padding: 18px; border-radius: var(--radius-card); background: var(--lilac-soft); }
.enquete__dica { font-size: 13px; color: var(--lilac-ink); }
.enquete__pergunta { margin: 4px 0 14px; }
.enquete__opcoes { display: flex; flex-direction: column; gap: var(--space-2); }
.enquete__opcao {
  position: relative; overflow: hidden; min-height: 50px; padding: 0 16px; border-radius: var(--radius-md);
  border: 2px solid transparent; background: var(--surface); display: flex; align-items: center; justify-content: space-between;
  font-size: 16px; font-weight: 700; text-align: left;
}
.enquete__opcao[aria-pressed="true"] { border-color: var(--lilac-ink); }
.enquete__barra { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--surface-soft); transition: width .6s cubic-bezier(.3, .8, .3, 1.1); }
.enquete__opcao[aria-pressed="true"] .enquete__barra { background: var(--lilac-bar); }
.enquete__opcao > span:not(.enquete__barra) { position: relative; }

/* ---------- cartaz (recado sem foto) ---------- */
.cartaz { position: relative; aspect-ratio: 13 / 10; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 48px; }
.cartaz__flores { position: absolute; inset: 0; width: 100%; height: 100%; }
.cartaz__titulo { position: relative; margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 38px; line-height: 1; text-wrap: balance; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.cartaz__titulo--longo { font-size: 30px; }
.cartaz__sub { position: relative; margin: 10px 0 0; font-size: 15px; }
.tom--rotina, .tom--resumo { background: var(--sun-soft); color: var(--sun-ink); }
.tom--comunicado, .tom--lembrete { background: var(--sky-soft); color: var(--sky-ink); }
.tom--aviso, .tom--aniversario { background: var(--rose-soft); color: var(--rose-ink); }
/* o story "Assine", só na demo: lilás como o "Gostou do que viu?" do mural */
.tom--assine { background: var(--lilac-soft); color: var(--lilac-ink); }
.story-assine { color: var(--lilac-ink); padding: 0 24px; }
.story-assine img { border-radius: 0; }
.story-assine .cartaz__titulo { font-size: 40px; }
.tom--assine .story-tela__rodape .botao { background: var(--pink); color: var(--on-pink); border: none; text-decoration: none; display: flex; align-items: center; justify-content: center; }
.tom--evento, .tom--cardapio, .tom--cardapio_dia { background: var(--mint-soft); color: var(--mint-ink); }
.tom--enquete { background: var(--lilac-soft); color: var(--lilac-ink); }
/* o post de parabéns (13/10/2026): ultra coloridinho, é a festa de uma criança só */
.cartaz--festa { padding: 34px 40px 18px; gap: 4px; justify-content: flex-end; color: var(--ink);
  background: linear-gradient(160deg, #FFE3EE 0%, #FFF1D6 28%, #E3FAF0 52%, #E6F0FF 76%, #EAE3FF 100%); }
.festa-cor--0 { fill: #FF5C9A; } .festa-cor--1 { fill: #FFC94D; } .festa-cor--2 { fill: #3CC48A; }
.festa-cor--3 { fill: #5AA9FF; } .festa-cor--4 { fill: #B46BFF; } .festa-cor--5 { fill: #FF8A5C; }
.festa-fio { stroke: #2B2233; stroke-opacity: .25; stroke-width: 1.4; }
.festa-bolo { position: relative; width: 38%; max-width: 150px; height: auto; flex-shrink: 0; }
.festa-chama path { fill: #FFB020; transform-box: fill-box; transform-origin: 50% 100%; animation: festa-chama .9s ease-in-out infinite alternate; }
.festa-chama path:nth-child(2) { animation-delay: .3s; }
.festa-chama path:nth-child(3) { animation-delay: .6s; }
.festa-balao { transform-box: fill-box; transform-origin: 50% 100%; animation: festa-balao 3.2s ease-in-out infinite; }
.festa-balao--2 { animation-delay: -1.1s; }
.festa-balao--3 { animation-delay: -2.2s; }
.festa-confete { animation: festa-confete 4s ease-in-out infinite alternate; }
.festa-titulo { margin-top: 6px; font-size: 36px; -webkit-text-stroke: 7px #fff; paint-order: stroke fill; text-shadow: 0 3px 8px rgba(43, 34, 51, .22); }
.festa-letra--rosa { color: #FF4F87; } .festa-letra--laranja { color: #FF8A3D; } .festa-letra--sol { color: #F5B400; }
.festa-letra--verde { color: #2EBD7A; } .festa-letra--azul { color: #3D9BFF; } .festa-letra--lilas { color: #A45CFF; }
.festa-titulo.cartaz__titulo--longo { font-size: 28px; }
/* a turma cantando (01/11/2026): o título sobe, a cena fica embaixo e tudo cresce junto com a largura do cartaz */
.cartaz--coro { container-type: inline-size; justify-content: flex-start; padding: 0; }
.cartaz--coro .festa-titulo { margin: 11.5cqw 6cqw 0; font-size: 36px; font-size: 10.4cqw; -webkit-text-stroke: 1.8cqw #fff; }
.cartaz--coro .festa-titulo.cartaz__titulo--longo { font-size: 28px; font-size: 8cqw; }
.cartaz--coro .festa-titulo.cartaz__titulo--enorme { font-size: 22px; font-size: 6.2cqw; -webkit-text-stroke: 1.4cqw #fff; -webkit-line-clamp: 3; }
.festa-canta { transform-box: fill-box; transform-origin: 50% 100%; animation: festa-canta 1.5s ease-in-out infinite; }
.festa-canta--2 { animation-delay: -.12s; } .festa-canta--3 { animation-delay: -.24s; } .festa-canta--4 { animation-delay: -.36s; }
.festa-boca { transform-box: fill-box; transform-origin: 50% 0; animation: festa-boca .75s ease-in-out infinite; }
.festa-nota { fill: #2B2233; opacity: .62; transform-box: fill-box; animation: festa-nota 3s ease-in-out infinite; }
.festa-nota--2 { animation-delay: -1s; } .festa-nota--3 { animation-delay: -2s; }
.etiqueta--aniversario { background: linear-gradient(90deg, #FFE3EE, #FFF1D6, #E3FAF0, #E6F0FF, #EAE3FF); color: var(--ink); }
@keyframes festa-chama { from { transform: scale(1, 1) rotate(-4deg); } to { transform: scale(.85, 1.12) rotate(4deg); } }
@keyframes festa-balao { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-6px) rotate(3deg); } }
@keyframes festa-confete { from { transform: translateY(-3px); } to { transform: translateY(3px); } }
@keyframes festa-canta { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes festa-boca { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.55); } }
@keyframes festa-nota { 0%, 100% { transform: translateY(5px) rotate(-6deg); } 50% { transform: translateY(-7px) rotate(6deg); } }
@media (prefers-reduced-motion: reduce) { .festa-chama path, .festa-balao, .festa-confete, .festa-canta, .festa-boca, .festa-nota { animation: none; } }

/* ---------- faixa de ação (embaixo do cartaz) ---------- */
.faixa { width: 100%; min-height: 52px; border: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 16px; font-size: 15px; font-weight: 700; text-align: left; transition: background-color .25s, color .25s; }
.faixa--pendente { background: var(--ink); color: var(--surface); }
.faixa--feito { background: var(--mint-soft); color: var(--mint-ink); }
.faixa--erro { background: var(--sun-soft); color: var(--sun-ink); }

/* ---------- evento ---------- */
.evento { margin: 0 var(--space-gutter); padding: 18px; border-radius: var(--radius-card); display: flex; align-items: center; gap: 16px; }
.evento--crianca { background: var(--mint-soft); }
.evento--familia { background: var(--sun-soft); }
.evento--passado { background: var(--surface-sunk); }
.adesivo-data { width: 78px; height: 88px; border-radius: 20px; background: var(--surface); flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; transform: rotate(-4deg); box-shadow: var(--shadow-sticker); color: var(--ink); }
.adesivo-data small { font-size: 12px; font-weight: 700; color: var(--pink); text-transform: uppercase; }
.adesivo-data b { font-family: var(--font-display); font-weight: 800; font-size: 40px; }
.adesivo-data em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--ink-mute); }
.evento--passado .adesivo-data { opacity: .7; }
.evento__info { min-width: 0; line-height: 1.3; color: var(--ink); }
.evento__info span { display: block; font-size: 14px; margin-top: 4px; }
.evento__info small { display: block; font-size: 14px; color: var(--ink-soft); }
.evento__pergunta { margin: 12px 16px 0; }
/* a escola mudou a data: selo no evento e a resposta de antes, para confirmar de novo */
.evento__mudou { display: inline-block; margin-top: 4px; padding: 2px 10px; border-radius: 99px; background: var(--surface); color: var(--rose-ink); font-style: normal; font-size: 12px; font-weight: 800; }
.evento__antes { margin: 2px 16px 0; font-size: 13px; color: var(--ink-soft); }
.caixa-info--mudou { background: var(--rose-soft); color: var(--rose-ink); }
.evento__escolha { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); margin: 8px var(--space-gutter) 0; }
.evento__escolha .botao { min-height: 48px; }
.botao--sim { background: var(--mint-ink); color: var(--surface); }
.caixa-info { margin: 12px var(--space-gutter) 0; padding: 12px 14px; border-radius: var(--radius-md); background: var(--surface-sunk); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.caixa-info--ok { background: var(--mint-soft); color: var(--mint-ink); }
.caixa-info--esgotado { background: var(--rose-soft); color: var(--rose-ink); }
.caixa-info .botao { min-height: 36px; padding: 0 12px; border-radius: var(--radius-sm); font-size: 13px; background: var(--surface); color: inherit; margin-left: auto; }
.evento__prazo { margin: 8px 16px 0; font-size: 13px; color: var(--ink-soft); }
.progresso { margin: 4px 16px 0; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-soft); }
.progresso__trilho { flex: 1; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progresso__barra { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--success); transition: width .6s; }

/* ---------- folha de baixo ---------- */
.veu { position: fixed; inset: 0; z-index: 60; border: none; padding: 0; background: rgba(43, 34, 51, .3); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: aparece .3s ease; }
.folha {
  position: fixed; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); z-index: 61; max-width: 464px; margin: 0 auto;
  /* sobra véu visível em cima: encostada no topo, a folha vira a tela inteira e não fica
     claro que dá para rolar nem onde tocar para sair */
  max-height: calc(100dvh - 76px); overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; background: var(--surface); border-radius: var(--radius-sheet);
  padding: 12px var(--space-5) 22px; box-shadow: var(--shadow-sheet); animation: sobe .45s cubic-bezier(.2, .9, .25, 1.05);
}
.folha__alca { width: 40px; height: 5px; border-radius: 99px; background: var(--line-strong); margin: 0 auto 14px; }
.folha h2 { margin: 0; }
.folha__sub { margin: 2px 0 14px; font-size: 15px; color: var(--ink-mute); }
.folha__rotulo { display: block; font-size: 14px; font-weight: 700; margin: 14px 0 8px; }
.folha textarea { width: 100%; border: none; border-radius: var(--radius-md); background: var(--surface-soft); color: var(--ink); padding: 12px 14px; font: inherit; font-size: 16px; resize: none; }
.folha .botao--largo { margin-top: 16px; }
.escolhas { display: flex; flex-wrap: wrap; gap: 6px; }
.escolha { min-height: 42px; padding: 0 14px; border-radius: 14px; border: none; background: var(--surface-soft); color: var(--ink); font-weight: 700; font-size: 14px; }
.escolha[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.contador-linha { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 18px; background: var(--surface-sunk); margin-top: 8px; }
.contador-linha span { flex: 1; line-height: 1.25; }
.contador-linha small { display: block; font-size: 12px; color: var(--ink-mute); }
.contador-linha button { width: 44px; height: 44px; border-radius: 14px; border: none; background: var(--surface); font-size: 22px; font-weight: 700; }
.contador-linha output { width: 26px; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 20px; }

/* ---------- story aberto ---------- */
.story-tela { position: fixed; inset: 0; z-index: 70; max-width: 480px; margin: 0 auto; overflow: hidden; animation: abre-story .35s cubic-bezier(.2, .9, .25, 1); }
/* a abertura (a tela crescendo e o cartaz pulando) é só para o primeiro story; de uma tela para a
   outra, o conteúdo só aparece suave (pedido dela em 21/10/2026: vendo vários, a animação cansava) */
.story-tela--seguindo { animation: none; }
.story-tela--seguindo .story-tela__conteudo { animation: story-troca .22s ease-out; }
@keyframes story-troca { from { opacity: 0; } to { opacity: 1; } }
.story-tela__zona { position: absolute; top: 70px; bottom: 90px; z-index: 1; border: none; background: transparent; padding: 0; }
.story-tela__zona--voltar { left: 0; width: 35%; }
.story-tela__zona--seguir { right: 0; width: 65%; }
.story-tela__barras { position: absolute; left: 10px; right: 10px; top: calc(12px + env(safe-area-inset-top, 0px)); z-index: 3; display: flex; gap: 4px; }
.story-tela__barras span { flex: 1; height: 3px; border-radius: 99px; background: rgba(43, 34, 51, .18); overflow: hidden; }
.story-tela__barras i { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 99px; }
.story-tela__barras .cheia i { width: 100%; }
.story-tela__barras .anda i { animation: barra 5s linear forwards; }
.story-tela__topo { position: absolute; left: 12px; right: 4px; top: calc(24px + env(safe-area-inset-top, 0px)); z-index: 3; display: flex; align-items: center; gap: 10px; }
.story-tela__topo img { width: 36px; height: 36px; border-radius: 50%; box-shadow: 0 0 0 2px var(--surface); }
.story-tela__topo .nome { flex: 1; }
.story-tela__topo small { font-family: var(--font-body); font-weight: 600; font-size: 13px; color: var(--ink-soft); margin-left: 4px; }
.story-tela__conteudo { position: absolute; left: 0; right: 0; top: 80px; bottom: 96px; z-index: 2; pointer-events: none; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 22px; animation: adesivo .5s cubic-bezier(.3, .8, .3, 1.4); }
.story-tela__foto { width: 100%; max-width: 340px; aspect-ratio: 4 / 5; border-radius: 28px; object-fit: cover; box-shadow: 0 20px 40px -20px rgba(43, 34, 51, .4); }
.story-tela__legenda { margin-top: -28px; padding: 10px 18px; border-radius: 16px; background: var(--surface); transform: rotate(-2deg); box-shadow: var(--shadow-sticker); text-align: center; max-width: 300px; }
/* legenda até 200 caracteres (limite da foto do dia): letra um pouco menor para caber inteira */
.story-tela__legenda--longa { font-size: 15px; line-height: 1.35; }
.story-tela__adesivo { width: 100%; max-width: 310px; padding: 20px; border-radius: 26px; background: var(--surface); box-shadow: 0 20px 40px -20px rgba(43, 34, 51, .45); transform: rotate(2deg); color: var(--ink); }
.story-tela__adesivo ul { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 16px; font-weight: 700; }
.story-tela__adesivo li { display: flex; gap: 10px; align-items: center; }
.story-tela__adesivo li::before { content: ""; flex-shrink: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--pink); }
/* o lembrete é um post-it amarelinho no fundo azul (pedido dela em 10/10/2026: o branco sumia no fundo claro) */
.tom--lembrete .story-tela__adesivo { background: #FFE9A6; }
.tom--lembrete .story-tela__adesivo h2 { color: var(--sun-ink); }
/* o parabéns no story: o mesmo cartaz do post, ou a foto com o selo (23/10/2026) */
.story-tela.tom--aniversario { background: linear-gradient(160deg, #FFE3EE 0%, #FFF1D6 28%, #E3FAF0 52%, #E6F0FF 76%, #EAE3FF 100%); }
.story-tela__festa { width: 100%; max-width: 340px; border-radius: 28px; overflow: hidden; background: var(--surface); box-shadow: 0 20px 40px -20px rgba(43, 34, 51, .4); transform: rotate(-1.5deg); }
.story-tela__festa-foto { position: relative; width: 100%; max-width: 340px; }
.story-tela__festa-foto .story-tela__foto { display: block; max-width: none; }
.story-tela__festa-foto .festa-selo { top: 14px; left: 14px; font-size: 18px; }
/* o selo do aniversário na foto: pequeno, num canto, para não cobrir ninguém */
.festa-selo { position: absolute; top: 12px; left: 12px; z-index: 2; max-width: calc(100% - 96px); padding: 5px 12px 6px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .94); box-shadow: 0 6px 16px -8px rgba(43, 34, 51, .45); font-family: var(--font-display); font-weight: 800; font-size: 16px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transform: rotate(-3deg); transform-origin: left top; pointer-events: none; }
.story-tela__parabens { text-align: center; color: var(--rose-ink); }
.story-tela__parabens img { width: 140px; height: 140px; border-radius: 50%; margin: 0 auto 10px; }
.story-tela__parabens .cartaz__titulo { font-size: 46px; }
.story-tela__rodape { position: absolute; left: 12px; right: 12px; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); z-index: 3; display: flex; justify-content: center; }
.story-tela__rodape .botao { border: 1.5px solid rgba(43, 34, 51, .25); background: rgba(255, 255, 255, .55); color: var(--ink); min-height: 48px; border-radius: var(--radius-pill); }

.mural__fim { text-align: center; color: var(--ink-mute); font-size: 13px; padding: 10px 0 30px; }
.brilho { background: linear-gradient(90deg, var(--surface-soft) 0%, var(--surface-sunk) 40%, var(--surface-soft) 80%); background-size: 300% 100%; animation: brilho 1.4s ease-in-out infinite; }
.aviso-topo { margin: 10px var(--space-gutter) 0; padding: 12px 14px; border-radius: var(--radius-md); font-size: 14px; }
.aviso-topo--erro { background: var(--sun-soft); color: var(--sun-ink); }

/* ---------- barra de baixo ---------- */
.barra {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 10; max-width: 480px; margin: 0 auto;
  height: calc(var(--nav) + env(safe-area-inset-bottom, 0px)); padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  display: flex; justify-content: space-around; align-items: center;
  background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(18px) saturate(1.8); backdrop-filter: blur(18px) saturate(1.8);
  border-top: 1px solid var(--line);
}
.barra .icone-botao { width: 60px; }
.barra__perfil img { width: 26px; height: 26px; border-radius: 50%; }
.barra__perfil[aria-current="page"] img { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }

/* ---------- botões: tamanhos e estados extras ---------- */
.botao--grande { min-height: 56px; font-size: 17px; border-radius: 18px; }
.botao--apagado { background: var(--surface-soft); color: var(--ink-mute); cursor: default; }
.botao--apagado:active { transform: none; }
.botao--transparente { background: transparent; color: var(--ink-soft); }
a.botao { text-decoration: none; }

/* ---------- primeiro acesso ---------- */
.entrada { max-width: 480px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px); }
.entrada__topo { display: flex; align-items: center; gap: 8px; padding: 14px var(--space-5) 0; min-height: 58px; }
.entrada__topo .icone-botao { margin-left: -10px; }
.pontos { display: flex; justify-content: center; gap: 6px; min-height: 8px; margin-top: 12px; }
.pontos__ponto { width: 8px; height: 8px; border-radius: 99px; background: var(--line-strong); transition: width .35s cubic-bezier(.3, .8, .3, 1.2), background-color .3s; }
.pontos__ponto--feito { background: var(--pink); }
.pontos__ponto--atual { width: 26px; }
.entrada__corpo { flex: 1; padding: 8px var(--space-5) 0; }
.entrada__passo { animation: passo .4s cubic-bezier(.2, .9, .25, 1); display: flex; flex-direction: column; gap: 12px; }
.entrada__carregando { color: var(--ink-mute); text-align: center; margin-top: 30vh; }
.entrada__passo .tela { margin: 4px 0 0; }
.entrada__texto { margin: 0; font-size: 15px; color: var(--ink-soft); line-height: 1.5; }
.entrada__escola { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-mute); }
.entrada__escola img { width: 26px; height: 26px; border-radius: 50%; }
.entrada__bicho { width: 96px; height: 96px; border-radius: 50%; margin: 16px 0 6px; }
.entrada__bicho--grande { width: 150px; height: 150px; align-self: center; margin-top: 30px; }
.entrada__erro { margin: 0; padding: 12px 14px; border-radius: var(--radius-md); background: var(--sun-soft); color: var(--sun-ink); font-size: 14px; }
.entrada__aviso { margin: 0; padding: 12px 14px; border-radius: var(--radius-md); background: var(--sky-soft); color: var(--sky-ink); font-size: 14px; }
.entrada__outros { margin: 0; font-size: 14px; color: var(--mint-ink); }
.entrada__rodape { padding: 12px var(--space-5) 22px; position: sticky; bottom: 0; background: var(--surface); }
.entrada__botoes { display: flex; flex-direction: column; gap: 6px; }

.campo-codigo {
  width: 100%; min-height: 64px; border: 2px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface);
  text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 30px; letter-spacing: .18em; color: var(--ink);
  text-transform: uppercase; margin-top: 6px;
}
.campo-codigo:focus { outline: none; border-color: var(--pink); }
.campo-codigo::placeholder { color: var(--line-strong); }
/* o nome e o WhatsApp no primeiro acesso (entrar.js, telaContato) */
.campo-texto {
  width: 100%; box-sizing: border-box; min-height: 56px; border: 2px solid var(--line-strong); border-radius: var(--radius-md);
  background: var(--surface); color: var(--ink); padding: 0 16px; font: inherit; font-size: 17px; font-weight: 600;
}
.campo-texto:focus { outline: none; border-color: var(--pink); }
.campo-texto::placeholder { color: var(--line-strong); font-weight: 500; }

.grade-criancas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 8px; padding: 8px 0 4px; }
.crianca { border: none; background: transparent; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.crianca__foto { position: relative; width: 82px; height: 82px; border-radius: 50%; padding: 3px; background: var(--line); transition: background-color .2s; }
.crianca__foto img { width: 100%; height: 100%; border-radius: 50%; border: 3px solid var(--surface); }
.crianca__check {
  position: absolute; right: -2px; bottom: -2px; width: 28px; height: 28px; border-radius: 50%; background: var(--pink); color: var(--on-pink);
  border: 3px solid var(--surface); display: flex; align-items: center; justify-content: center;
  transform: scale(0); transition: transform .3s cubic-bezier(.3, .8, .3, 1.5);
}
.crianca[aria-pressed="true"] .crianca__foto { background: var(--pink); }
.crianca[aria-pressed="true"] .crianca__check { transform: scale(1); }
.crianca__nome { font-size: 14px; font-weight: 700; text-align: center; }

.opcoes { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.opcao {
  min-height: 58px; padding: 0 18px; border-radius: 18px; border: 2px solid transparent; background: var(--surface-sunk);
  display: flex; align-items: center; justify-content: space-between; font-size: 17px; font-weight: 700; text-align: left;
}
.opcao svg { color: var(--pink); opacity: 0; transform: scale(.4); transition: all .25s cubic-bezier(.3, .8, .3, 1.5); }
.opcao[aria-pressed="true"] { border-color: var(--pink); background: var(--rose-soft); }
.opcao[aria-pressed="true"] svg { opacity: 1; transform: none; }

.combinados { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.combinados li { display: flex; gap: 12px; padding: 14px; border-radius: var(--radius-lg); background: var(--surface-sunk); font-size: 15px; line-height: 1.45; }
.combinados b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.combinados__check { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--mint-soft); color: var(--mint-ink); display: flex; align-items: center; justify-content: center; }

.entrada__pronto { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding-top: 50px; }
.entrada__avatares { display: flex; justify-content: center; }
.entrada__avatar { width: 110px; height: 110px; margin: 0 -10px; border-radius: 50%; padding: 4px; background: linear-gradient(45deg, var(--ring-1), var(--ring-2), var(--ring-3), var(--ring-4)); }
.entrada__avatar img { width: 100%; height: 100%; border-radius: 50%; border: 4px solid var(--surface); }
.entrada__assinatura { margin: 0; padding: 10px 18px; border-radius: var(--radius-md); background: var(--rose-soft); color: var(--rose-ink); }

/* ---------- animações da marca ---------- */
@keyframes aparece { from { opacity: 0; } to { opacity: 1; } }
@keyframes sobe { from { transform: translateY(100%); } to { transform: none; } }
@keyframes abre-story { from { opacity: 0; transform: scale(.88); } to { opacity: 1; transform: none; } }
@keyframes adesivo { from { transform: scale(.6) rotate(-6deg); opacity: 0; } to { opacity: 1; } }
@keyframes barra { from { width: 0; } to { width: 100%; } }
@keyframes brilho { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes passo { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
.anima-flutua { animation: flutua 3.2s ease-in-out infinite; }
.anima-pula { animation: pula .7s cubic-bezier(.3, .8, .3, 1.4) 2; transform-origin: 50% 100%; }
@keyframes flutua { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes pula { 0%, 100% { transform: translateY(0) scale(1); } 40% { transform: translateY(-16px) scale(1.04, .96); } 70% { transform: translateY(0) scale(1.06, .92); } }
@keyframes bate { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }
@keyframes coracao { 0% { transform: scale(0); opacity: 0; } 15% { transform: scale(1.25); opacity: 1; } 30% { transform: scale(.95); } 45% { transform: scale(1.05); } 80% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.1); opacity: 0; } }
@keyframes gira { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}
.esqueleto__linha { display: block; width: 120px; height: 12px; border-radius: 99px; }
.esqueleto__foto { aspect-ratio: 1; }
.folha-titulo { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1.1; }
.enquete__opcao[aria-pressed="true"] .enquete__barra, .enquete__barra--vence { background: var(--lilac-bar); }
.enquete__rodape { margin-top: 10px; }
.evento__confirmar { display: flex; width: calc(100% - 28px); margin: 12px var(--space-gutter) 0; }
/* 22/10/2026: no mural da família, a data, a pergunta e os botões ficam num cartão só (pedido dela) */
.evento-bloco { margin: 0 var(--space-gutter); padding-bottom: 14px; border-radius: var(--radius-card); }
.evento-bloco--crianca { background: var(--mint-soft); }
.evento-bloco--familia { background: var(--sun-soft); }
.evento-bloco--passado { background: var(--surface-sunk); }
.evento-bloco .evento { margin: 0; background: none; }
.evento-bloco .evento__pergunta { margin: 0 18px; font-size: 18px; }
.evento-bloco .evento__escolha + .evento__pergunta { margin-top: 14px; }
.evento-bloco .evento__antes { margin: 2px 18px 0; }
.evento-bloco .evento__escolha { margin: 8px 14px 0; }
.evento-bloco .evento__escolha .botao { min-height: 44px; font-size: 15px; }
.evento-bloco .botao--suave { background: var(--surface); }
.evento-bloco .caixa-info { margin: 0 14px; }
.evento-bloco .caixa-info + .evento__escolha { margin-top: 8px; }
.evento-bloco .caixa-info--ok, .evento-bloco--passado .caixa-info { background: var(--surface); }
.evento-bloco .evento__confirmar { margin: 0 14px; width: calc(100% - 28px); }
.escolhas--datas { margin-top: 10px; }
.escolhas--datas label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-soft); flex: 1; }
/* No iPhone o campo de data vazio ignora a altura e fica fininho (print dela, 21/10/2026):
   sem a aparência do sistema, com altura fixa e largura cheia, ele fica do tamanho de um botão. */
.escolhas--datas input { -webkit-appearance: none; appearance: none; display: block; box-sizing: border-box; width: 100%; height: 50px; border: none; border-radius: 14px; background: var(--surface-soft); padding: 0 14px; font: inherit; font-size: 16px; line-height: 50px; color: var(--ink); text-align: left; }
.escolhas--datas input::-webkit-date-and-time-value { text-align: left; }
.petala { fill: var(--illus-petal); }
.petala--2 { fill: var(--ring-4); }
.petala--branca { fill: var(--surface); }
.miolo { fill: var(--illus-sun); }
.confete rect { fill: var(--ring-3); }
.confete rect:nth-child(2n) { fill: var(--illus-sky); }
.confete rect:nth-child(3n) { fill: var(--success); }
.vazio { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 60px 30px 0; gap: 10px; }
.vazio img { width: 150px; height: 150px; border-radius: 50%; }
.vazio p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.contador-linha > span { font-family: var(--font-body); font-size: 15px; font-weight: 700; }
.contador-linha > span small { font-weight: 600; }

/* ---------- tamanho do texto: grande deixa tudo 15% maior (o app não tem zoom de pinça) ----------
   O zoom vale também para 100vh e 100dvh: tela de altura cheia divide por --zoom, senão passa da tela
   (em 03/11/2026 a conversa perdia a caixa de escrever no "Grande"). No JS: zoomDaPagina() do comum.js. */
:root { --zoom: 1; }
html[data-texto="grande"] { --zoom: 1.15; }
html[data-texto="grande"] body { zoom: var(--zoom); }
html[data-texto="grande"] .app, html[data-texto="grande"] .painel { height: calc(100vh / var(--zoom)); height: calc(100dvh / var(--zoom)); }

/* ---------- perfil ---------- */
.perfil { padding: 18px var(--space-5) 30px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.perfil__filhos { display: flex; justify-content: center; margin-top: 6px; }
.perfil__nome { margin: 6px 0 0; }
.perfil__turma { margin: 0; color: var(--ink-soft); font-size: 15px; }
.perfil__assinatura { margin: 4px 0 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.perfil__assinatura small { font-size: 13px; color: var(--ink-mute); }
.perfil__assinatura b { padding: 8px 16px; border-radius: var(--radius-md); background: var(--rose-soft); color: var(--rose-ink); }
.perfil__bloco { width: 100%; text-align: left; }
.segmento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 5px; border-radius: 18px; background: var(--surface-soft); }
.segmento__opcao { min-height: 52px; border: none; border-radius: 14px; background: transparent; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; font-weight: 700; }
.segmento__opcao[aria-checked="true"] { background: var(--surface); box-shadow: 0 2px 8px -2px rgba(43, 34, 51, .18); }
.segmento__aa { font-family: var(--font-display); font-weight: 800; line-height: 1; }
.segmento__aa--normal { font-size: 16px; }
.segmento__aa--grande { font-size: 22px; }
.perfil__lista { width: 100%; margin-top: 14px; border-radius: var(--radius-lg); background: var(--surface-sunk); overflow: hidden; }
.perfil__item { width: 100%; min-height: 56px; border: none; background: transparent; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; font-size: 15px; font-weight: 700; text-align: left; }
.perfil__item + .perfil__item { border-top: 1px solid var(--line); }
.perfil__item--sair { color: var(--rose-ink); }

/* ---------- marca: símbolo vivo e assinatura ---------- */
.simbolo__no { transform-box: fill-box; transform-origin: center; animation: respira 3s ease-in-out infinite; }
.simbolo__no.n2 { animation-delay: .6s; } .simbolo__no.n3 { animation-delay: 1.2s; } .simbolo__no.n4 { animation-delay: 1.8s; } .simbolo__no.n5 { animation-delay: 2.4s; }
.simbolo__carinha { transform-box: view-box; transform-origin: 60px 80px; animation: flutua-carinha 3.2s ease-in-out infinite; }
.simbolo__olho { transform-box: fill-box; transform-origin: center; animation: pisca 4s infinite; }
@keyframes respira { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@keyframes flutua-carinha { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes pisca { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.assinatura { font-family: var(--font-display); font-weight: 800; letter-spacing: -.01em; line-height: 1; color: var(--ink); white-space: nowrap; }
/* escola com endereço próprio (marca-endereco.js): o logo dela no lugar do símbolo e o nome no lugar de "redinha" */
.simbolo--escola { display: block; object-fit: contain; }
.simbolo--escola-aguarde { animation: respira 2.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .simbolo--escola-aguarde { animation: none; } }
.assinatura--escola { white-space: normal; text-align: center; font-size: .8em; }
.assinatura__i { position: relative; display: inline-block; }
.assinatura__i svg { position: absolute; left: 50%; top: -.01em; width: .26em; height: .24em; margin-left: -.13em; overflow: visible; }
.assinatura__ponto, .assinatura__coracao { fill: var(--pink); transform-box: fill-box; transform-origin: 50% 60%; }
.assinatura__ponto { animation: ponto-vira 6s ease-in-out infinite; }
.assinatura__coracao { transform: scale(0); animation: vira-coracao 6s ease-in-out infinite; }
@keyframes ponto-vira { 0%, 74%, 100% { transform: scale(1); } 78%, 96% { transform: scale(0); } }
@keyframes vira-coracao { 0%, 76% { transform: scale(0); } 81% { transform: scale(1.25); } 85% { transform: scale(.95); } 89% { transform: scale(1.15); } 94% { transform: scale(1); } 98%, 100% { transform: scale(0); } }
@media (prefers-reduced-motion: reduce) { .assinatura__coracao { display: none; } }
.entrada__marca { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 18px 0 10px; }
.entrada__marca .assinatura { font-size: 34px; }

/* ---------- abertura do símbolo: a família chega e a carinha fica orgulhosa (2.8 s) ---------- */
.simbolo__feliz { opacity: 0; }
.simbolo--abertura .simbolo__carinha { transform-origin: 60px 62px; animation: carinha-chega 2.8s cubic-bezier(.3, .8, .3, 1.1) both, flutua-carinha 3.2s ease-in-out 2.8s infinite; }
@keyframes carinha-chega {
  0% { transform: scale(2.6); }
  24% { transform: scale(1); }
  52% { transform: scale(1); }
  60% { transform: translateY(-3px) scale(1.09, 1.07); }
  76% { transform: translateY(-3px) scale(1.09, 1.07); }
  88%, 100% { transform: none; }
}
.simbolo--abertura .simbolo__fios path { stroke-dasharray: 50; animation: fio-chega .45s ease-out both; }
.simbolo--abertura .simbolo__fios .f1 { animation-delay: .45s; } .simbolo--abertura .simbolo__fios .f2 { animation-delay: .55s; }
.simbolo--abertura .simbolo__fios .f3 { animation-delay: .65s; } .simbolo--abertura .simbolo__fios .f4 { animation-delay: .75s; }
.simbolo--abertura .simbolo__fios .f5 { animation-delay: .85s; }
@keyframes fio-chega { from { stroke-dashoffset: 50; } to { stroke-dashoffset: 0; } }
.simbolo--abertura .simbolo__no { animation: no-chega .5s cubic-bezier(.3, .8, .3, 1.6) both, respira 3s ease-in-out infinite; }
.simbolo--abertura .simbolo__no.n1 { animation-delay: .6s, 3.2s; } .simbolo--abertura .simbolo__no.n2 { animation-delay: .7s, 3.8s; }
.simbolo--abertura .simbolo__no.n3 { animation-delay: .8s, 4.4s; } .simbolo--abertura .simbolo__no.n4 { animation-delay: .9s, 5s; }
.simbolo--abertura .simbolo__no.n5 { animation-delay: 1s, 5.6s; }
@keyframes no-chega { from { transform: scale(0); } to { transform: scale(1); } }
/* orgulho: olhinhos em sorriso, sorriso maior, bochechas coradas */
.simbolo--abertura .simbolo__olhos { animation: some-volta 2.8s both; }
.simbolo--abertura .simbolo__feliz { animation: aparece-some 2.8s both; }
.simbolo__sorriso, .simbolo__bochecha { transform-box: fill-box; transform-origin: center; }
.simbolo--abertura .simbolo__sorriso { animation: sorriso-abre 2.8s both; }
.simbolo--abertura .simbolo__bochecha { animation: cora 2.8s both; }
@keyframes some-volta { 0%, 52% { opacity: 1; } 56%, 82% { opacity: 0; } 86%, 100% { opacity: 1; } }
@keyframes aparece-some { 0%, 52% { opacity: 0; } 56%, 82% { opacity: 1; } 86%, 100% { opacity: 0; } }
@keyframes sorriso-abre { 0%, 52% { transform: none; } 60%, 80% { transform: scale(1.35, 1.6); } 88%, 100% { transform: none; } }
@keyframes cora { 0%, 52% { transform: none; fill-opacity: .7; } 60%, 80% { transform: scale(1.35); fill-opacity: 1; } 88%, 100% { transform: none; fill-opacity: .7; } }
.simbolo--abertura { cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .simbolo--abertura * { animation: none !important; } }

/* ---------- o símbolo como progresso: a família chega uma bolinha por vez (20% cada) ---------- */
/* apagada, a bolinha fica cinza e quieta; ao acender, pega a cor dela com um pulinho de mola.
   No fim (simbolo--pronto) a carinha faz os olhinhos de orgulho da abertura e dá um pulo. */
.simbolo--progresso .simbolo__no { animation: none; transition: fill .35s ease; }
.simbolo--progresso .simbolo__no:not(.acesa) { fill: #E3DEEA; }
.simbolo--progresso .simbolo__no.acesa { animation: no-acende .55s cubic-bezier(.3, .8, .3, 1.6) both; }
@keyframes no-acende { 0% { transform: scale(.55); } 60% { transform: scale(1.22); } 100% { transform: scale(1); } }
.simbolo--progresso.simbolo--pronto .simbolo__olhos { opacity: 0; }
.simbolo--progresso.simbolo--pronto .simbolo__feliz { opacity: 1; }
.simbolo--progresso.simbolo--pronto .simbolo__carinha { transform-origin: 60px 62px; animation: carinha-pula .6s cubic-bezier(.3, .8, .3, 1.4) both; }
.simbolo--progresso.simbolo--pronto .simbolo__bochecha { fill-opacity: 1; }
@keyframes carinha-pula { 0% { transform: none; } 45% { transform: translateY(-6px) scale(1.08); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .simbolo--progresso * { animation: none !important; transition: none !important; } }

/* ---------- o loading (aguarde): as bolinhas acendem em roda, 0,3 s uma da outra, num ciclo de 3 s.
   A carinha olha para a que acende; com as cinco acesas (de 1,4 s a 1,8 s) fica orgulhosa. ---------- */
.aguarde { display: flex; flex-direction: column; align-items: center; gap: 14px; animation: aparece .3s ease .5s both; }
.simbolo--aguarde .n1, .simbolo--aguarde .f1 { --cor: #E0306F; } .simbolo--aguarde .n2, .simbolo--aguarde .f2 { --cor: #5AA9FF; animation-delay: .3s; }
.simbolo--aguarde .n3, .simbolo--aguarde .f3 { --cor: #3CC48A; animation-delay: .6s; } .simbolo--aguarde .n4, .simbolo--aguarde .f4 { --cor: #B46BFF; animation-delay: .9s; }
.simbolo--aguarde .n5, .simbolo--aguarde .f5 { --cor: #FF8A5C; animation-delay: 1.2s; }
.simbolo--aguarde .simbolo__no { fill: var(--line-strong); animation-name: no-roda; animation-duration: 3s; animation-timing-function: ease-in-out; animation-iteration-count: infinite; animation-fill-mode: both; }
.simbolo--aguarde .simbolo__fios path { animation-name: fio-roda; animation-duration: 3s; animation-timing-function: ease-in-out; animation-iteration-count: infinite; animation-fill-mode: both; }
@keyframes no-roda { 0% { fill: var(--line-strong); transform: scale(.8); } 6% { fill: var(--cor); transform: scale(1.3); } 12%, 62% { fill: var(--cor); transform: scale(1); } 72%, 100% { fill: var(--line-strong); transform: scale(.8); } }
@keyframes fio-roda { 0% { stroke: var(--line-strong); } 8%, 60% { stroke: color-mix(in srgb, var(--cor) 35%, var(--line-strong)); } 72%, 100% { stroke: var(--line-strong); } }
.simbolo--aguarde .simbolo__olhos { animation: olha-roda 3s ease-in-out infinite, some-orgulho 3s infinite; }
.simbolo--aguarde .simbolo__feliz { animation: aparece-orgulho 3s infinite; }
.simbolo--aguarde .simbolo__carinha { transform-origin: 60px 80px; animation: carinha-orgulho 3s cubic-bezier(.3, .8, .3, 1.3) infinite; }
.simbolo--aguarde .simbolo__sorriso { animation: sorriso-orgulho 3s infinite; }
.simbolo--aguarde .simbolo__olho { animation: none; }
@keyframes olha-roda {
  0%, 7% { transform: translate(-1.6px, -1.6px); } 10%, 17% { transform: translate(1.6px, -1.6px); } 20%, 27% { transform: translate(2.2px, .4px); }
  30%, 37% { transform: translate(0, 1.8px); } 40%, 44% { transform: translate(-2.2px, .4px); } 47%, 92% { transform: none; } 100% { transform: translate(-1.6px, -1.6px); }
}
@keyframes some-orgulho { 0%, 45% { opacity: 1; } 47%, 60% { opacity: 0; } 62%, 100% { opacity: 1; } }
@keyframes aparece-orgulho { 0%, 45% { opacity: 0; } 47%, 60% { opacity: 1; } 62%, 100% { opacity: 0; } }
@keyframes carinha-orgulho { 0%, 45% { transform: none; } 51% { transform: translateY(-4px) scale(1.08, 1.05); } 58%, 100% { transform: none; } }
@keyframes sorriso-orgulho { 0%, 45% { transform: none; } 50%, 58% { transform: scale(1.35, 1.6); } 63%, 100% { transform: none; } }
/* as frases trocam sozinhas, uma por vez, no mesmo lugar */
.aguarde__frases { display: grid; font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ink-soft); text-align: center; }
.aguarde__frases span { grid-area: 1 / 1; opacity: 0; animation: frase-roda 9.6s infinite; }
.aguarde__frases span:nth-child(2) { animation-delay: 2.4s; } .aguarde__frases span:nth-child(3) { animation-delay: 4.8s; } .aguarde__frases span:nth-child(4) { animation-delay: 7.2s; }
@keyframes frase-roda { 0% { opacity: 0; transform: translateY(8px); } 4%, 22% { opacity: 1; transform: none; } 26%, 100% { opacity: 0; transform: translateY(-6px); } }

/* a Fileirinha: apagada pega a cor do texto do botão; acesa, as cores do logo (no botão rosa, branca) */
.fileirinha { display: inline-flex; align-items: center; gap: 4px; height: 18px; margin-left: 8px; vertical-align: middle; }
.fileirinha i { width: 7px; height: 7px; border-radius: 50%; background: color-mix(in srgb, currentColor 30%, transparent); animation: fileirinha 1.3s ease-in-out infinite both; }
.fileirinha i:nth-child(1) { --cor: #E0306F; } .fileirinha i:nth-child(2) { --cor: #5AA9FF; animation-delay: .1s; } .fileirinha i:nth-child(3) { --cor: #3CC48A; animation-delay: .2s; }
.fileirinha i:nth-child(4) { --cor: #B46BFF; animation-delay: .3s; } .fileirinha i:nth-child(5) { --cor: #FF8A5C; animation-delay: .4s; }
.botao .fileirinha { margin-left: 0; }
.botao--rosa .fileirinha i { --cor: #FFFFFF; }
@keyframes fileirinha {
  0%, 62%, 100% { transform: none; background: color-mix(in srgb, currentColor 30%, transparent); }
  18% { transform: translateY(-6px) scale(1.1, .95); background: var(--cor); }
  36% { transform: scale(1.15, .85); background: var(--cor); }
  48% { transform: none; background: var(--cor); }
}
.fileirinha--grande { gap: 6px; height: 28px; margin: 0; }
.fileirinha--grande i { width: 10px; height: 10px; }
.mural__fim--carregando .fileirinha, .mural-escola__fim--carregando .fileirinha { margin: 0; }
.folha .aguarde { padding: 28px 0 16px; }
/* parado (reduzir movimento): a regra geral pararia no último quadro, com tudo cinza; aqui fica tudo colorido */
@media (prefers-reduced-motion: reduce) {
  .aguarde, .aguarde__frases span, .simbolo--aguarde *, .fileirinha i { animation: none !important; }
  .simbolo--aguarde .simbolo__no { fill: var(--cor); }
  .aguarde__frases span:first-child { opacity: 1; }
  .fileirinha i { background: var(--cor); }
}

/* entrada: títulos e textos centralizados (as listas continuam à esquerda, para ler melhor) */
.entrada__passo { text-align: center; }
.entrada__passo .tela { text-wrap: balance; }
.entrada__escola { justify-content: center; }
.entrada__bicho { align-self: center; }
.combinados li, .opcao { text-align: left; }

/* ---------- agenda ---------- */
.agenda { padding: 10px var(--space-gutter) 30px; }
.agenda__semana { display: flex; align-items: center; justify-content: space-between; text-align: center; }
.agenda__semana h2 { margin: 0; }
.agenda__semana small { font-size: 13px; color: var(--ink-mute); }
.agenda__dias { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.agenda__dia { position: relative; height: 66px; border: none; border-radius: 20px; background: var(--surface-soft); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 0; }
.agenda__dia span { font-size: 12px; }
.agenda__dia b { font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1; }
.agenda__dia i { position: absolute; bottom: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--pink); }
.agenda__dia--hoje { box-shadow: inset 0 0 0 2px var(--pink); }
.agenda__dia[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.agenda__dia[aria-pressed="true"] i { background: var(--illus-sun); }
.agenda__lista { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.agenda__item { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: var(--radius-lg); animation: aparece .3s ease; }
.agenda__item--aula { background: var(--lilac-soft); }
.agenda__item--evento { background: var(--sun-soft); }
.agenda__item--lembrete { background: var(--sky-soft); }
.agenda__item--cardapio_dia { background: var(--mint-soft); }
.agenda__hora { position: relative; width: 54px; height: 54px; flex-shrink: 0; border-radius: 18px; background: var(--surface); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 17px; }
.agenda__hora > img { width: 100%; height: 100%; border-radius: 18px; }
.agenda__hora > svg { width: 36px; height: 36px; }   /* sem horário: o desenho da atividade (js/atividades.js) */
.agenda__item--cancelado .agenda__hora > svg { filter: grayscale(1); opacity: .45; }
/* de quem é (família com filhos em turmas diferentes): o bichinho da criança no canto */
.agenda__filhos { position: absolute; right: -9px; bottom: -9px; display: flex; }
.agenda__filhos img { width: 28px; height: 28px; border-radius: 50%; background: var(--surface); border: 3px solid var(--cor-filho, var(--surface)); box-shadow: 0 2px 6px -2px rgba(43, 34, 51, .3); animation: adesivo .35s ease both; }
.agenda__filhos img + img { margin-left: -10px; }
.agenda__quem { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.agenda__chip { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; border: none; border-radius: 999px; background: var(--surface-soft); color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.agenda__chip img { width: 30px; height: 30px; margin-left: -10px; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 2.5px var(--cor-filho); }
.agenda__chip[aria-pressed="true"] { background: var(--cor-filho-forte, var(--ink)); color: #fff; }
.agenda__chip[aria-pressed="true"] img { box-shadow: 0 0 0 2.5px #fff; }
/* o nome do filho no item: a cor dele, sempre legível */
.agenda__de { display: inline-block; margin-right: 6px; padding: 0 8px; border-radius: 999px; background: var(--surface); color: var(--cor-filho-forte); font-weight: 700; }
/* cores dos filhos: as bolinhas da família no logo (a forte é para texto, com contraste) */
.filho-0 { --cor-filho: #5AA9FF; --cor-filho-forte: #1F6FC8; }
.filho-1 { --cor-filho: #3CC48A; --cor-filho-forte: #13804F; }
.filho-2 { --cor-filho: #FF8A5C; --cor-filho-forte: #C2511F; }
.filho-3 { --cor-filho: #B46BFF; --cor-filho-forte: #7B33C4; }
.agenda__texto { min-width: 0; line-height: 1.3; display: flex; flex-direction: column; }
.agenda__texto small { font-size: 12px; color: var(--ink-soft); }
.agenda__texto b { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.15; }
.agenda__texto span { font-size: 14px; color: var(--ink-soft); }
.agenda__item--cancelado { background: var(--surface-sunk); }
.agenda__item--cancelado b { text-decoration: line-through; color: var(--ink-mute); }
.agenda__cancelado { color: var(--rose-ink) !important; font-weight: 700; }
.agenda__vazio { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 30px 0; color: var(--ink-soft); text-align: center; }
.agenda__vazio img { width: 96px; height: 96px; border-radius: 50%; }
.agenda__vazio p { margin: 0; }

/* ---------- avisos no celular: chaves liga/desliga ---------- */
.chave-linha { width: 100%; min-height: 52px; border: none; background: transparent; color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0; text-align: left; font-size: 16px; font-weight: 700; }
.chave-linha--principal { min-height: 60px; padding: 0 14px; margin-top: 4px; border-radius: 18px; background: var(--surface-sunk); }
.chave-linha:disabled { color: var(--ink-mute); cursor: default; }
.chave { position: relative; flex-shrink: 0; width: 50px; height: 30px; border-radius: 999px; background: var(--line-strong); transition: background-color .25s; }
.chave__bolinha { position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .3s cubic-bezier(.3, .8, .3, 1.3); }
.chave-linha[aria-checked="true"] .chave { background: var(--success); }
.chave-linha[aria-checked="true"] .chave__bolinha { transform: translateX(20px); }
.avisos-tipos { transition: opacity .25s; }
.avisos-tipos--apagado { opacity: .5; }
.aviso-situacao { padding: 14px; border-radius: var(--radius-md); background: var(--sky-soft); color: var(--sky-ink); font-size: 14px; line-height: 1.45; margin-bottom: 8px; }
.aviso-situacao ol { margin: 8px 0 0; padding-left: 20px; }
.folha__erro { margin: 8px 0 0; padding: 12px 14px; border-radius: var(--radius-md); background: var(--sun-soft); color: var(--sun-ink); font-size: 14px; }

/* ---------- comentários ---------- */
.post__comentario { margin-top: 4px; }
.post__ver { display: block; border: none; background: none; padding: 0 16px; min-height: 30px; color: var(--ink-mute); font: inherit; font-size: 14px; font-weight: 600; }
.folha--comentarios { height: min(640px, calc(100dvh / var(--zoom) - 60px)); display: flex; flex-direction: column; overflow: hidden; padding-bottom: 12px; }
.comentarios { flex: 1; min-height: 0; display: flex; flex-direction: column; font-family: var(--font-body); font-size: 14px; font-weight: 600; line-height: 1.45; }
.comentarios__topo { position: relative; text-align: center; padding: 0 44px 10px; border-bottom: 1px solid var(--line); }
.comentarios__fechar { position: absolute; top: -8px; right: -6px; }
.comentarios__titulo { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 20px; line-height: 1.2; }
.comentarios__topo p { margin: 0; font-size: 12px; color: var(--ink-mute); }
.comentarios__lista { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 0; }
.comentarios__lista .esqueleto__linha { margin: 16px 0; }
.comentario { display: flex; gap: 10px; padding: 10px 0; animation: aparece .3s ease; transition: opacity .25s ease, transform .25s ease; }
.comentario--saindo { opacity: 0; transform: translateX(-24px); }
.comentario__av { width: 36px; height: 36px; font-size: 12px; }
.comentario__corpo { flex: 1; min-width: 0; font-size: 14px; line-height: 1.4; }
.comentario__quem { display: flex; align-items: center; flex-wrap: wrap; gap: 0 6px; }
.comentario__quem b { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.comentario__quem small { font-size: 12px; color: var(--ink-mute); }
.comentario__corpo p { margin: 1px 0 0; overflow-wrap: anywhere; }
.selo-escola { padding: 1px 8px; border-radius: 999px; background: var(--rose-soft); color: var(--rose-ink); font-size: 11px; font-weight: 700; }
.comentario__apagar { border: none; background: none; padding: 0; min-height: 30px; color: var(--ink-mute); font: inherit; font-size: 12px; font-weight: 700; }
.comentario__apagar--confirmar { color: var(--rose-ink); }
.comentario__curtir { flex-shrink: 0; width: 40px; height: 44px; border: none; background: none; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--ink-mute); font-size: 11px; font-weight: 700; }
.comentario__curtir.coracao--on { color: var(--heart); }
.comentarios__vazio { padding: 30px 16px; text-align: center; color: var(--ink-mute); }
.comentarios__vazio img { width: 84px; height: 84px; margin: 0 auto; border-radius: 50%; }
.comentarios__vazio p { margin: 8px 0 0; }
.comentarios__como { margin: 0; padding-top: 8px; border-top: 1px solid var(--line); text-align: center; font-size: 12px; color: var(--ink-mute); }
.comentarios__como b { color: var(--ink-soft); }
.comentarios__escrever { display: flex; align-items: flex-end; gap: 8px; padding-top: 6px; }
.folha .comentarios__escrever textarea { flex: 1; min-height: 44px; max-height: 120px; border: 1.5px solid var(--line); border-radius: 22px; background: var(--surface); padding: 10px 14px; font-weight: 600; line-height: 1.35; }
.folha .comentarios__escrever textarea:focus { outline: none; border-color: var(--pink); }
.comentarios__publicar { min-height: 44px; padding: 0 6px; border: none; background: none; color: var(--pink); font: inherit; font-size: 15px; font-weight: 700; }
.comentarios__publicar:disabled { color: var(--line-strong); }
.comentarios__resta { margin: 4px 0 0; text-align: right; font-size: 12px; color: var(--ink-mute); }
.comentarios__fechado { margin: 0; padding-top: 12px; border-top: 1px solid var(--line); text-align: center; font-size: 14px; color: var(--ink-mute); }

/* ---------- escola de demonstração (suaescola.redinha.app.br) ---------- */
.demo { margin-top: 22px; padding: 16px; border-radius: var(--radius-lg); background: var(--sun-soft); text-align: center; }
.demo__titulo { margin: 0 0 12px; font-size: 14px; color: var(--sun-ink); }
.demo__opcoes { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.demo__opcoes .botao { background: var(--surface); }

/* ---------- aviso de mentira (demonstração): igual a uma notificação do celular ---------- */
.push-falsa {
  position: fixed; top: calc(10px + env(safe-area-inset-top, 0px)); left: 8px; right: 8px; z-index: 200; max-width: 440px; margin: 0 auto;
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px 16px; border-radius: 24px;
  background: rgba(250, 249, 252, .9); -webkit-backdrop-filter: blur(24px) saturate(1.8); backdrop-filter: blur(24px) saturate(1.8);
  box-shadow: 0 14px 40px -6px rgba(43, 34, 51, .3); color: var(--ink); touch-action: none; user-select: none; cursor: grab;
  transform: translateY(calc(-100% - 30px)); transition: transform .6s cubic-bezier(.2, 1.25, .35, 1);
}
.push-falsa--dentro { transform: translateY(0); }
.push-falsa--saindo { transform: translateY(calc(-100% - 30px)) !important; transition: transform .4s cubic-bezier(.5, 0, .75, .3) !important; }
.push-falsa img { width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; margin-top: 2px; }
.push-falsa__corpo { flex: 1; min-width: 0; line-height: 1.3; }
.push-falsa__topo { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .03em; }
.push-falsa__topo span + span { text-transform: none; letter-spacing: 0; }
.push-falsa b { display: block; margin-top: 1px; font-size: 15px; }
.push-falsa p { margin: 1px 0 0; font-size: 14px; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.push-falsa__alca { position: absolute; left: 50%; bottom: 6px; width: 36px; height: 4px; margin-left: -18px; border-radius: 99px; background: rgba(43, 34, 51, .18); }

/* ---------- fotos dos posts: carrossel como no Instagram ---------- */
.post__fotos { position: relative; aspect-ratio: 1; background: var(--surface-soft); overflow: hidden; }
.fotos__trilho { display: flex; width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: none; }
.fotos__trilho::-webkit-scrollbar { display: none; }
.post__fotos .fotos__trilho img { flex: 0 0 100%; width: 100%; height: 100%; max-width: none; aspect-ratio: auto; object-fit: cover; scroll-snap-align: center; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.fotos__contador { position: absolute; top: 12px; right: 12px; padding: 3px 9px; border-radius: var(--radius-pill); background: rgba(43, 34, 51, .55); color: #fff; font-size: 12px; font-weight: 700; }
.fotos__pontos { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.fotos__pontos i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .55); transition: background .2s, transform .2s; }
.fotos__pontos i.ativo { background: #fff; transform: scale(1.2); }
.story-tela__foto--real { object-fit: cover; }

/* item do perfil que é link (Como usar): igual aos botões */
a.perfil__item { text-decoration: none; color: inherit; box-sizing: border-box; }
#conta-folha .perfil__item { width: 100%; margin-top: 8px; }

/* story do cardápio com a foto do prato: a lista fica por cima, como um adesivo */
.story-tela__foto--prato { aspect-ratio: 4 / 3; max-width: 300px; margin-bottom: -28px; }
/* legenda: título do post com fotos e texto longo recolhido */
.post__titulo-legenda { font-family: var(--font-display); font-weight: 700; }
.post__legenda--longa { display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.post__mais { margin-top: -2px; }
/* álbum do ano */
.sem-rolagem { overflow: hidden; }
.album { position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column; background: var(--surface); animation: aparece .3s ease both; }
.album__topo { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 480px; margin: 0 auto; box-sizing: border-box; padding: calc(8px + env(safe-area-inset-top, 0px)) 8px 6px; }
.album__topo b { font-family: var(--font-display); font-weight: 800; font-size: 18px; }
.album__vazio-topo { width: 44px; }
.album__corpo { flex: 1; overflow-y: auto; overscroll-behavior: contain; width: 100%; max-width: 480px; margin: 0 auto; box-sizing: border-box; padding: 4px var(--space-gutter) calc(28px + env(safe-area-inset-bottom, 0px)); }
.album__intro { margin: 4px 2px 14px; font-size: 14px; line-height: 1.45; color: var(--ink-soft); }
.album__aviso { margin: 4px 0 14px; padding: 14px; border-radius: 18px; background: var(--sun-soft); color: var(--sun-ink); font-size: 14px; line-height: 1.45; }
.album__aviso b { display: block; font-size: 15px; color: var(--ink); }
.album__fotos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.album__fotos img, .album__fotos span { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--surface-sunk); display: block; }
.album__tudo { margin-top: 18px; }
/* o álbum por semestre: 4 fotos de amostra e o livrinho (PDF) de cada filho */
.album .botao--branco { background: var(--surface); color: var(--ink); }
.album__aviso--festa { background: var(--rose-soft); color: var(--rose-ink); }
.semestre { margin-top: 14px; padding: 16px; border-radius: var(--radius-card); background: var(--surface-soft); }
.semestre__topo { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.semestre__topo h2 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1.15; }
.semestre__topo small { font-size: 13px; color: var(--ink-mute); }
.semestre__andamento { background: var(--sky-soft); color: var(--sky-ink); flex-shrink: 0; }
.semestre .album__fotos { margin: 0 0 12px; }
.semestre > :last-child { margin-bottom: 0; }
.livrinho-botao { display: flex; align-items: center; gap: 12px; width: 100%; margin-bottom: 8px; padding: 12px 14px 12px 10px; border: none; border-radius: 18px; background: var(--rose-soft); color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.livrinho-botao img { width: 48px; height: 48px; flex-shrink: 0; }
.livrinho-botao span { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.livrinho-botao b { font-family: var(--font-display); font-weight: 800; font-size: 17px; }
.livrinho-botao small { font-size: 13px; color: var(--rose-ink); }
.livrinho-botao svg { flex-shrink: 0; color: var(--rose-ink); }
/* montando o livrinho: o símbolo vai acendendo as bolinhas (por cima do álbum) */
.livrinho-veu { z-index: 80; }
.livrinho-folha { z-index: 81; text-align: center; }
.livrinho-folha__simbolo { display: flex; justify-content: center; margin: 6px 0 10px; }
.livrinho-folha__texto { margin: 8px 4px 16px; font-size: 14px; line-height: 1.45; color: var(--ink-soft); }
.livrinho-folha__botoes { display: flex; flex-direction: column; gap: 8px; }
.livrinho-folha__botoes a { text-decoration: none; }
.album-faixa { display: flex; align-items: center; gap: 12px; margin: 12px var(--space-gutter) 4px; padding: 14px; border-radius: var(--radius-card); background: var(--sun-soft); }
.album-faixa > div { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.album-faixa b { font-family: var(--font-display); font-size: 16px; }
.album-faixa span { font-size: 13px; color: var(--sun-ink); }
.album-faixa .botao { flex-shrink: 0; }
.album-faixa--semestre { background: var(--rose-soft); }
.album-faixa--semestre span { color: var(--rose-ink); }
.album-faixa--espera { background: var(--lilac-soft); }
.album-faixa--espera span { color: var(--lilac-ink); }
/* verificação contra robôs (só aparece quando o Cloudflare pede) */
.anti-robo { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 200; }
/* vídeo no carrossel do post */
.post__fotos .fotos__trilho video { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; background: #000; scroll-snap-align: center; }

/* ---------- a barra de rolagem com o jeitinho da Redinha ---------- */
/* No celular ela nem aparece; no computador e na moldura do site, fica fininha e lilás. */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 99px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: var(--pink); background-clip: content-box; }
@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
}

/* ---------- atualizar (discreto, no topo) ---------- */
.atualizar { color: var(--ink-mute); flex-shrink: 0; }
.atualizar[aria-busy="true"] svg { animation: gira-atualizar .8s linear infinite; }
@keyframes gira-atualizar { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .atualizar[aria-busy="true"] svg { animation: none; opacity: .5; } }

/* ---------- faixa de volta, só na escola de demonstração ----------
   desde 21/10/2026 no fim do mural, depois do post mais antigo */
.demo-faixa { display: flex; align-items: center; gap: 12px; margin: 16px var(--space-gutter) 4px; padding: 14px; border-radius: var(--radius-card); background: var(--lilac-soft); }
.demo-faixa > div { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.demo-faixa b { font-family: var(--font-display); font-size: 16px; }
.demo-faixa span { font-size: 13px; color: var(--lilac-ink); }
.demo-faixa .botao { flex-shrink: 0; text-decoration: none; }
@media (max-width: 400px) {
  .demo-faixa { flex-direction: column; align-items: stretch; gap: 10px; }
  .demo-faixa .botao { width: 100%; }
}

/* ---------- falta você responder (topo do mural) ---------- */
/* cartão rosinha com os itens brancos por cima; some sozinho quando não sobra nada */
.pendentes { margin: 12px var(--space-gutter) 16px; padding: 14px 10px 8px; border-radius: var(--radius-card); background: var(--rose-soft); transform-origin: 50% 0; }
.pendentes__topo { display: flex; align-items: center; gap: 8px; margin: 0 6px 10px; }
.pendentes__titulo { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 17px; line-height: 1.2; color: var(--ink); }
.pendentes__conta { min-width: 24px; height: 24px; padding: 0 7px; border-radius: var(--radius-pill); background: var(--pink); color: var(--on-pink); font-size: 13px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.pendentes__lista { list-style: none; margin: 0; padding: 0; }
.pendentes__lista li + li { margin-top: 6px; }
.pendente { width: 100%; min-height: 62px; border: none; border-radius: var(--radius-md); background: var(--surface); color: var(--ink); display: flex; align-items: center; gap: 12px; padding: 8px; text-align: left; }
.pendente__bicho { width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; padding: 5px; }
.pendente__bicho img { width: 100%; height: 100%; }
.pendente__bicho--evento { background: var(--mint-soft); }
.pendente__bicho--enquete { background: var(--lilac-soft); }
.pendente__bicho--ciente { background: var(--sky-soft); }
.pendente__texto { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; line-height: 1.3; }
.pendente__texto b { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pendente__texto small { font-size: 13px; color: var(--ink-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pendente__logo { color: var(--rose-ink); font-weight: 800; }
.pendente__seta { flex-shrink: 0; color: var(--ink-mute); }
.pendentes__mais { display: block; width: 100%; min-height: 44px; margin-top: 2px; border: none; background: transparent; color: var(--rose-ink); font-size: 14px; font-weight: 800; }
/* respondeu: o item desliza para o lado e a lista fecha o espaço */
.pendente--saindo { overflow: hidden; animation: pendente-sai .38s cubic-bezier(.4, 0, .2, 1) forwards; }
.pendentes--saindo { animation: pendentes-some .38s cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes pendente-sai { 0% { opacity: 1; max-height: 90px; } 50% { opacity: 0; transform: translateX(32px); max-height: 90px; } 100% { opacity: 0; transform: translateX(32px); max-height: 0; margin-top: 0; } }
@keyframes pendentes-some { to { opacity: 0; transform: scale(.96); } }
/* o post achado pela faixa: o topo fixo não cobre, e o fundo fica rosinha por um instante */
#feed .post { scroll-margin-top: calc(var(--header) + env(safe-area-inset-top, 0px) + 8px); }
.post--destaque { animation: post-destaque 1.8s ease-out; }
@keyframes post-destaque { 0%, 35% { background-color: var(--rose-soft); } 100% { background-color: transparent; } }
@media (prefers-reduced-motion: reduce) { .post--destaque { animation: none !important; background-color: var(--rose-soft); } }
/* o post antigo aberto sozinho, numa folha: o post leva as próprias margens */
.folha--post { padding-left: 0; padding-right: 0; }
.folha-post__topo { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 6px 0 var(--space-5); font-size: 13px; color: var(--ink-mute); }
.folha--post .post { padding-bottom: 6px; }

/* ---------- post-it: o post só de texto, baixinho ----------
   Posts em dois tamanhos (decidido em 09/10/2026): lembrete, aviso, comunicado e cardápio sem foto.
   Medidas do quadro "Posts em dois tamanhos" do estudo v3. Mesmo desenho no mural das famílias e no do painel. */
.post--postit { padding: 24px var(--space-gutter) 18px; }
.postit--lembrete, .postit--comunicado { --postit: var(--sky-soft); --postit-tinta: var(--sky-ink); }
.postit--aviso { --postit: var(--rose-soft); --postit-tinta: var(--rose-ink); }
.postit--cardapio, .postit--cardapio_dia { --postit: var(--mint-soft); --postit-tinta: var(--mint-ink); }
.postit { position: relative; padding: 14px 14px 4px; border-radius: 4px 22px 22px 22px; background: var(--postit, var(--surface-soft)); color: var(--ink); box-shadow: 0 12px 18px -16px rgba(43, 34, 51, .55); }
/* a fita que segura o post-it: amarelinha (a branca sumia no fundo branco, pedido de 12/10/2026) */
.postit::before { content: ''; position: absolute; top: -9px; left: 24px; width: 58px; height: 18px; border-radius: 3px; background: rgba(255, 201, 77, .78); box-shadow: 0 1px 2px rgba(43, 34, 51, .12); transform: rotate(-4deg); }
.postit__cabeca { display: flex; align-items: center; gap: 8px; }
.postit .avatar { width: 28px; height: 28px; font-size: 11px; background: var(--surface); }
/* quem, para quem e quando, uma embaixo da outra (pedido dela em 21/10/2026: a data ficava lá no pé) */
.postit__autor { flex: 1; min-width: 0; line-height: 1.25; font-size: 12px; color: var(--ink-soft); }
.postit__autor .nome, .postit__autor small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.postit__autor small { font-size: 12px; }
.postit__autor .nome { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--ink); }
.postit .etiqueta { flex-shrink: 0; padding: 4px 9px; font-size: 11px; background: var(--surface); color: var(--postit-tinta, var(--ink)); }
.postit__abrir { width: 36px; height: 36px; margin: -6px -8px -6px -4px; }
.postit__titulo { margin: 10px 0 0; font-family: var(--font-display); font-weight: 800; font-size: 21px; line-height: 1.08; color: var(--postit-tinta, var(--ink)); text-wrap: balance; }
.postit__texto { margin: 6px 0 0; font-size: 15px; line-height: 1.42; overflow-wrap: anywhere; }
.postit__texto--longo { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.postit__mais, .postit__ver { display: block; border: none; background: none; padding: 2px 0; min-height: 30px; font: inherit; font-size: 14px; font-weight: 700; color: var(--postit-tinta, var(--ink)); }
.postit__ver { color: var(--ink-soft); font-weight: 600; }
.postit__ciente { margin-top: 10px; min-height: 46px; border-radius: 14px; padding: 0 14px; }
.postit__ciente.faixa--pendente { background: var(--surface); color: var(--postit-tinta, var(--ink)); }
.postit__ciente.mural-escola__ciente span { background: var(--postit, var(--surface-soft)); }
.postit__pe { display: flex; align-items: center; gap: 2px; margin-top: 4px; }
.postit__pe .icone-botao { width: 38px; height: 38px; margin-left: -8px; }
.postit__pe .icone-botao + .contador + .icone-botao { margin-left: 0; }
.postit__pe .contador { font-size: 13px; font-weight: 700; margin-right: 6px; }
/* sem curtida (o pé some): o post-it fecha com o mesmo respiro do topo */
.postit:not(:has(.postit__pe)) { padding-bottom: 14px; }

/* ---------- convite para instalar (instalar.js) ----------
   Medidas dos quadros "Convite para instalar: iPhone / Android" do estudo v3. */
.instalar .folha-titulo { font-size: 27px; line-height: 1.08; text-wrap: balance; }
.instalar .folha__sub { margin: 6px 0 14px; line-height: 1.4; color: var(--ink-soft); }
.instalar__demo { position: relative; height: 196px; border-radius: 24px; overflow: hidden; background: var(--surface-soft); }
.instalar__cena { position: absolute; inset: 0; animation: aparece .3s ease; }
.instalar__linhas { position: absolute; left: 22px; right: 22px; top: 22px; display: flex; flex-direction: column; gap: 9px; }
.instalar__linhas i { height: 12px; border-radius: 99px; background: var(--line-strong); }
.instalar__linhas i:nth-child(1) { width: 62%; }
.instalar__linhas i:nth-child(2) { width: 84%; }
.instalar__linhas i:nth-child(3) { width: 48%; }
.instalar__barra { position: absolute; left: 12px; right: 12px; bottom: 14px; height: 58px; border-radius: 22px; background: var(--surface); box-shadow: 0 6px 18px -8px rgba(43, 34, 51, .3); display: flex; align-items: center; gap: 8px; padding: 0 10px; color: var(--ink-mute); }
.instalar__endereco { flex: 1; min-width: 0; height: 36px; border-radius: 99px; background: var(--surface-soft); display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; }
.instalar__alvo { position: relative; width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; background: #FFE1EC; color: var(--pink); display: flex; align-items: center; justify-content: center; }
.instalar__pulso { animation: instalar-pulso 1.3s ease-out .4s infinite; }
.instalar__dedo { position: absolute; left: 10px; top: 12px; width: 26px; height: 26px; border-radius: 50%; background: rgba(43, 34, 51, .28); border: 2px solid rgba(255, 255, 255, .9); animation: instalar-dedo 1.3s ease-in-out .2s infinite; }
.instalar__cena--folha { left: 12px; right: 12px; top: 18px; bottom: 0; border-radius: 22px 22px 0 0; background: var(--surface); box-shadow: 0 -6px 18px -10px rgba(43, 34, 51, .3); padding: 8px 12px 0; animation: sobe .5s cubic-bezier(.2, .9, .25, 1.05) both; }
.instalar__mini-alca { width: 32px; height: 4px; border-radius: 99px; background: var(--line-strong); margin: 0 auto 10px; }
.instalar__opcao { position: relative; min-height: 38px; display: flex; align-items: center; justify-content: space-between; padding: 0 6px; font-size: 14px; color: var(--ink-soft); border-bottom: 1px solid var(--line); }
.instalar__opcao--certa { margin-top: 6px; min-height: 44px; padding: 0 10px; border: none; border-radius: 14px; background: #FFE1EC; color: var(--rose-ink); font-weight: 700; }
.instalar__opcao--certa .instalar__dedo { left: auto; right: 18px; top: 9px; }
.instalar__cena--inicio { background: linear-gradient(160deg, var(--sky-soft), var(--lilac-soft)); }
.instalar__icones { position: absolute; left: 26px; right: 26px; top: 62px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 18px; }
.instalar__icones i, .instalar__app { aspect-ratio: 1; border-radius: 14px; background: rgba(255, 255, 255, .65); }
.instalar__app { position: relative; display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, #FFFFFF, #DCEEFF); box-shadow: 0 4px 10px -4px rgba(43, 34, 51, .35); animation: instalar-icone .7s cubic-bezier(.3, .8, .3, 1.5) .25s both; }
.instalar__app small { position: absolute; top: 100%; left: -10px; right: -10px; margin-top: 3px; text-align: center; font-size: 10px; font-weight: 700; color: var(--ink); }
.instalar__notificacao { position: absolute; left: 10px; right: 10px; top: 10px; padding: 9px 12px; border-radius: 18px; background: rgba(255, 255, 255, .94); box-shadow: 0 8px 20px -10px rgba(43, 34, 51, .4); display: flex; align-items: center; gap: 10px; animation: instalar-notificacao .55s cubic-bezier(.2, .9, .25, 1.1) 1.1s both; }
.instalar__notificacao > span:first-child { width: 30px; height: 30px; flex-shrink: 0; border-radius: 8px; background: linear-gradient(180deg, #FFFFFF, #DCEEFF); display: flex; align-items: center; justify-content: center; }
.instalar__notificacao > span:last-child { flex: 1; min-width: 0; line-height: 1.25; font-size: 12px; color: var(--ink-soft); }
.instalar__notificacao b { display: block; font-size: 13px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.instalar__passos { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.instalar__passo { width: 100%; border: none; border-radius: 18px; background: transparent; color: var(--ink); font: inherit; display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; text-align: left; transition: background-color .25s; }
.instalar__passo[aria-current="true"] { background: #FFF0F5; }
.instalar__n { width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; background: var(--surface-soft); color: var(--ink-soft); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 15px; transition: background-color .25s, color .25s; }
.instalar__passo[aria-current="true"] .instalar__n { background: var(--pink); color: var(--on-pink); }
.instalar__passo > span:last-child { flex: 1; min-width: 0; line-height: 1.3; }
.instalar__passo b { display: block; font-size: 15px; }
.instalar__passo small { font-size: 13px; color: var(--ink-soft); }
.instalar__dica { margin: 12px 0 0; text-align: center; font-size: 13px; color: var(--ink-mute); }
.folha .instalar__nao { margin-top: 6px; color: var(--ink); }
.instalar__centro { text-align: center; }
.instalar__centro .folha__sub { margin: 6px 6px 18px; line-height: 1.45; }
.instalar__icone { display: block; width: 88px; height: 88px; margin: 4px auto 16px; border-radius: 24px; box-shadow: 0 10px 24px -12px rgba(43, 34, 51, .45); }
.instalar__icone--feliz { animation: instalar-feliz .8s cubic-bezier(.3, .8, .3, 1.5); }
.folha .instalar__centro [data-instalar] { margin-top: 0; }
.instalar-aviso { position: fixed; left: 14px; right: 14px; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); z-index: 120; max-width: 440px; margin: 0 auto; padding: 14px 16px; border-radius: 20px; background: var(--ink); color: var(--surface); font-size: 14px; line-height: 1.4; box-shadow: var(--shadow-float); animation: instalar-aviso .4s cubic-bezier(.2, .9, .25, 1.1); }
.aviso-situacao__ver { margin-top: 10px; background: var(--surface); color: var(--ink); }
@keyframes instalar-pulso { 0% { box-shadow: 0 0 0 0 rgba(224, 48, 111, .45); } 100% { box-shadow: 0 0 0 14px rgba(224, 48, 111, 0); } }
@keyframes instalar-dedo { 0%, 100% { transform: translate(10px, 14px) scale(1); opacity: 0; } 25% { opacity: .9; } 45% { transform: translate(0, 0) scale(.82); opacity: .9; } 70% { transform: translate(0, 0) scale(1); opacity: .6; } }
@keyframes instalar-icone { from { transform: scale(0) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes instalar-notificacao { from { transform: translateY(-120%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes instalar-feliz { 0% { transform: scale(1); } 35% { transform: scale(1.18) rotate(-6deg); } 100% { transform: none; } }
@keyframes instalar-aviso { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .instalar *, .instalar-aviso { animation-duration: .01s !important; animation-iteration-count: 1 !important; transition: none !important; }
  .instalar__dedo { display: none; }
}
/* o tokens.css tem um estilo de texto chamado .folha (título de folha, 28px): sem isto, todo o texto
   da folha herda a letra de título. Aqui só nas folhas novas; as outras folhas: ver PENDENCIAS.md */
.folha.instalar { font-family: var(--font-body); font-size: 15px; line-height: 1.4; font-weight: 600; }
.instalar__passo b { font-weight: 700; }
.instalar__passo small { display: block; line-height: 1.3; }
.postit__pe svg { width: 22px; height: 22px; }

/* ---------- visor de fotos e vídeos (10/10/2026) ----------
   A foto em tela cheia, num cartão com o bichinho da turma, a turma, o dia e a marca: o print já
   sai fofinho. Um toque esconde os botões. Ninguém salva a foto pelo toque longo. */
.post__fotos img, .story-tela img, .visor img { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.visor { position: fixed; inset: 0; z-index: 90; background: var(--surface-soft); display: flex; flex-direction: column; animation: aparece .2s ease; touch-action: none; }
.visor__topo { position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 0 16px; transition: opacity .2s ease; }
.visor__conta { min-height: 28px; padding: 0 12px; border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; }
.visor__conta:empty { visibility: hidden; }
.visor__lado { display: flex; align-items: center; gap: 8px; }
/* 23/10/2026: o "Baixar" (só aparece quando a escola liberou) e o recadinho de quantas ainda dá hoje */
.visor__baixar { min-height: 44px; padding: 0 16px 0 12px; border: none; border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; box-shadow: var(--shadow-sticker); }
.visor__baixar[hidden] { display: none; }
.visor__baixar--feito svg { display: none; }
.visor__baixar:disabled { opacity: .75; }
.visor__recado { position: absolute; z-index: 3; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); margin: 0; padding: 10px 16px; border-radius: 16px; background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 700; text-align: center; box-shadow: var(--shadow-sticker); animation: recado-chega .3s ease; }
@keyframes recado-chega { from { opacity: 0; transform: translate(-50%, 8px); } }
.visor__fechar { width: 44px; height: 44px; border: none; border-radius: 50%; background: var(--surface); color: var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sticker); }
.visor__trilho { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.visor__trilho::-webkit-scrollbar { display: none; }
.visor--zoom .visor__trilho { overflow: hidden; }
.visor__quadro { flex: 0 0 100%; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; padding: calc(64px + env(safe-area-inset-top, 0px)) 14px calc(56px + env(safe-area-inset-bottom, 0px)); box-sizing: border-box; }
.visor__cartao { margin: 0; width: 100%; max-width: 460px; padding: 10px 10px 0; border-radius: 22px; background: var(--surface); box-shadow: 0 18px 40px -18px rgba(43, 34, 51, .35); box-sizing: border-box; }
.visor__janela { border-radius: 14px; overflow: hidden; background: var(--surface-sunk); display: flex; justify-content: center; }
.visor__midia { display: block; width: 100%; max-height: calc(100dvh / var(--zoom) - 230px); object-fit: contain; transform-origin: center; }
video.visor__midia { background: #000; cursor: pointer; }
/* o vídeo no visor: botões nossos, discretos (sem os do celular) */
.visor__janela--video { position: relative; }
.visor__play { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; opacity: 0; transition: opacity .2s ease; }
.visor__play svg { width: 68px; height: 68px; padding: 18px 16px 18px 20px; box-sizing: border-box; border-radius: 50%; background: rgba(43, 34, 51, .5); color: #fff; }
.visor__janela--pausado .visor__play { opacity: 1; }
.visor__som { position: absolute; right: 10px; bottom: 16px; width: 36px; height: 36px; padding: 0; border: none; border-radius: 50%; background: rgba(43, 34, 51, .5); color: #fff; display: grid; place-items: center; }
.visor__barra { position: absolute; left: 0; right: 0; bottom: 0; height: 24px; touch-action: none; cursor: pointer; }
.visor__barra::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .35); }
.visor__barra span { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--pink); transform: scaleX(0); transform-origin: left; }
.visor--limpo .visor__som { opacity: 0; pointer-events: none; }
.visor__legenda { display: flex; align-items: center; gap: 9px; padding: 10px 6px 12px; }
.visor__legenda img { width: 30px; height: 30px; flex-shrink: 0; }
.visor__legenda span { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.visor__legenda b { font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.visor__legenda small { font-size: 12px; color: var(--ink-soft); }
.visor__marca { margin-left: auto; font-family: "Baloo 2", sans-serif; font-style: normal; font-weight: 800; font-size: 18px; color: var(--ink); letter-spacing: -.01em; }
.visor__pontos { position: absolute; left: 0; right: 0; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: center; gap: 6px; transition: opacity .2s ease; }
.visor__pontos i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.visor__pontos i.ativo { background: var(--ink); }
.visor--limpo .visor__topo, .visor--limpo .visor__pontos { opacity: 0; pointer-events: none; }
.story-tela__video { background: #000; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { .visor { animation: none; } }
