/* Parte 4 · R32 · recursos que funcionam: cada palco (luz fria do azul do site + trama de pontos) traz uma peça do app
   dentro da janela dela (topo com ícone, nome da tela e data) e o visitante usa: botões de verdade, um roteiro que se
   demonstra uma vez com o ponteiro, "Ver de novo". Peças nos tokens do app (Geist 13 px, JetBrains Mono só em hora,
   número e telefone, pílulas e botões do Aurora). Só transform e opacity animam (a zona do lote anima a altura uma vez);
   calmo = quadro final, sem transição. */

@font-face { font-family: p4Geist; src: url(../../app/fontes/geist-latin.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: Geist; src: url(../../app/fontes/geist-latin.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(../../app/fontes/jetbrains-mono-latin.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

.p4 {
  --t1: #eef1f6; --t3: #8f98a8; --t4: #6b7586;
  --linha: rgb(255 255 255 / .075); --chao: #0b0f17;
  --az: #8fb3ee; --menta: #7fd1ad; --ambar: #e0b872;
  /* o app (Aurora v2) */
  --ap-1: #151b28; --ap-2: #10141e; --ap-hi: #1a2130; --ap-l: rgb(200 205 213 / .1); --ap-l2: rgb(200 205 213 / .18);
  --ink-1: #f5f7fa; --ink-2: #d4d8de; --ink-3: #9da4ad; --ink-4: #79828f;
  --ok: #6bb597; --aviso: #c9a35f; --info: #a8c0e0;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --curva: cubic-bezier(.22, .8, .26, 1);
  position: relative; scroll-margin-top: 64px; padding: 140px var(--margem) 150px; background: var(--tinta);
  color: var(--t1); font-family: p4Geist, Inter, system-ui, sans-serif; overflow: hidden;
}
.p4 *, .p4 *::before, .p4 *::after { box-sizing: border-box; }
.p4 h2, .p4 h3, .p4 p, .p4 ul, .p4 ol { margin: 0; }
.p4 ul, .p4 ol { padding: 0; list-style: none; }
.p4 svg { display: block; flex: none; }
.p4 em, .p4 i { font-style: normal; }
.p4 [hidden] { display: none !important; }
:where(.p4) button { margin: 0; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
:where(.p4) button:disabled { cursor: default; }
.p4 button:focus-visible, .p4 [contenteditable]:focus-visible { outline: 2px solid var(--az); outline-offset: 2px; }
.p4::before {
  content: ""; position: absolute; inset: 0 var(--margem) auto; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / .1) 25%, rgb(255 255 255 / .1) 75%, transparent);
}

/* cabeçalho no mesmo desenho da parte 3 */
.p4-cab { max-width: 860px; margin: 0 auto 64px; text-align: center; }
.p4-rotulo { margin-bottom: 18px; font: 500 12px/1 Jost, sans-serif; letter-spacing: .3em; text-transform: uppercase; color: rgb(229 231 235 / .72); }
.p4-cab h2 { font: 300 clamp(34px, 3.7vw, 54px)/1.08 Jost, sans-serif; letter-spacing: -.018em; color: #f3f5f9; text-wrap: balance; }
.p4 .p4-sub { margin-top: 16px; font: 400 18px/1.5 Inter, sans-serif; color: rgb(229 231 235 / .64); text-wrap: balance; }

/* ── a grade: moldura com divisórias de 1 px ── */
.c-grade {
  max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px;
  background: var(--linha); border-radius: 26px; overflow: hidden;
  box-shadow: 0 0 0 1px var(--linha), 0 60px 120px -80px rgb(0 0 0 / .9);
}
.c-card { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: var(--chao); }
.c-txt { position: relative; z-index: 2; padding: 44px 48px 0; }
.p4 .c-onde { display: flex; align-items: center; gap: 11px; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--t3); }
.c-onde-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: #cfdcf5;
  background: linear-gradient(180deg, #1c2942, #141d30); box-shadow: inset 0 0 0 1px rgb(143 179 238 / .26), inset 0 1px 0 rgb(255 255 255 / .08); }
.c-onde-ic svg { width: 16px; height: 16px; }
.p4 .c-txt h3 { margin-top: 20px; font: 500 25px/1.26 p4Geist, Inter, sans-serif; letter-spacing: -.02em; color: #8f98a8; text-wrap: balance; }
.c-txt h3 span { color: var(--t1); }
.p4 .c-frase { margin-top: 14px; max-width: 430px; font: 400 15.5px/1.6 p4Geist, Inter, sans-serif; color: var(--t3); text-wrap: pretty; }
/* o que experimentar (a única linha azul do texto) e, depois do roteiro, "Ver de novo" ao lado */
.c-acao { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 20px; }
.p4 .c-tente { display: flex; align-items: center; gap: 9px; font: 500 14px/1.35 p4Geist, Inter, sans-serif; color: #bcd0f2; }
.c-tente svg { width: 18px; height: 18px; color: var(--az); }

/* o palco: a peça do app em evidência, sob a luz fria do azul do site */
.palco {
  position: relative; isolation: isolate; flex: 1; display: grid; place-items: center; min-height: 390px; margin: 30px 22px 22px;
  border-radius: 20px; overflow: hidden;
  background: radial-gradient(60% 65% at 50% 38%, rgb(96 140 222 / .2), transparent 72%), linear-gradient(180deg, #111a2b, #0b1019);
  box-shadow: inset 0 0 0 1px rgb(160 188 236 / .13), inset 0 1px 0 rgb(255 255 255 / .06);
}
.palco::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(rgb(205 220 248 / .1) 1px, transparent 1.3px) 0 0 / 18px 18px;
  -webkit-mask-image: radial-gradient(70% 75% at 50% 42%, #000, transparent); mask-image: radial-gradient(70% 75% at 50% 42%, #000, transparent); }

/* cards largos: texto de um lado, palco do outro; o do meio inverte */
.c-largo { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); min-height: 548px; }
.c-largo .c-txt { align-self: center; padding: 64px 28px 64px 56px; }
.p4 .c-largo h3 { font-size: 32px; }
.c-largo .palco { margin: 24px 24px 24px 0; min-height: 500px; }
.c-inverso { grid-template-columns: minmax(0, 58fr) minmax(0, 42fr); }
.c-inverso .palco { order: -1; margin: 24px 0 24px 24px; }
.c-inverso .c-txt { padding: 64px 56px 64px 28px; }

/* "Ver de novo" e o ponteiro do roteiro */
.denovo { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px 0 10px; border-radius: 999px;
  font: 500 12.5px/1 p4Geist, Inter, sans-serif; color: var(--ink-2); background: rgb(255 255 255 / .035);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .13); transition: color .2s ease, background .2s ease; animation: p4-aparece .45s ease both; }
.denovo svg { width: 14px; height: 14px; }
@media (hover: hover) { .denovo:hover { color: #fff; background: rgb(255 255 255 / .08); } }
@keyframes p4-aparece { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.fantasma { position: absolute; z-index: 20; left: 0; top: 0; width: 0; height: 0; pointer-events: none; opacity: 0;
  transition: transform .8s var(--curva), opacity .3s ease; }
.fantasma.vivo { opacity: 1; }
.fantasma svg { position: absolute; left: -3px; top: -2px; width: 20px; height: 24px; overflow: visible; filter: drop-shadow(0 4px 5px rgb(0 0 0 / .55)); }
.fantasma.segura svg { transform: scale(.9); }
.fantasma.aperta svg { animation: p4-aperta .32s ease; }
@keyframes p4-aperta { 40% { transform: scale(.84); } }
.fantasma .onda { position: absolute; left: -16px; top: -16px; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid rgb(255 255 255 / .85); opacity: 0; }
.fantasma.aperta .onda { animation: p4-onda .65s ease-out; }
@keyframes p4-onda { 0% { opacity: .95; transform: scale(.35); } 100% { opacity: 0; transform: scale(1.5); } }
.fantasma-toque { transition: opacity .25s ease; }
.fantasma-toque::before { content: ""; position: absolute; left: -17px; top: -17px; width: 34px; height: 34px; border-radius: 50%;
  background: rgb(232 240 252 / .28); box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .75), 0 6px 16px rgb(0 0 0 / .4); }
.fantasma-toque.aperta::before { animation: p4-dedo .32s ease; }
@keyframes p4-dedo { 45% { transform: scale(.82); } }

/* selo do resultado */
.p4 .selo { position: absolute; z-index: 7; display: inline-flex; align-items: center; gap: 9px; height: 38px; padding: 0 16px 0 11px; border-radius: 999px;
  white-space: nowrap; font: 500 13.5px/1 p4Geist, Inter, sans-serif; color: #e4f6ec; pointer-events: none;
  background: linear-gradient(180deg, #1f4c3b, #17392c);
  box-shadow: inset 0 0 0 1px rgb(127 209 173 / .5), inset 0 1px 0 rgb(255 255 255 / .12), 0 0 0 5px rgb(127 209 173 / .08), 0 20px 36px -14px rgb(0 0 0 / .95);
  opacity: 0; translate: 0 10px; transition: opacity .4s ease, translate .6s var(--curva); }
.selo svg { width: 17px; height: 17px; color: #93e2bf; stroke-width: 2.2; }
.p4 .selo-az { color: #e6eefc; background: linear-gradient(180deg, #23375c, #1a2a4b);
  box-shadow: inset 0 0 0 1px rgb(143 179 238 / .55), inset 0 1px 0 rgb(255 255 255 / .12), 0 0 0 5px rgb(143 179 238 / .09), 0 20px 36px -14px rgb(0 0 0 / .95); }
.selo-az svg { color: #b9d0f6; }

/* ── peças do app ── */
.ap {
  position: relative; border-radius: 14px; background: linear-gradient(180deg, var(--ap-1), var(--ap-2));
  box-shadow: inset 0 0 0 1px var(--ap-l), inset 0 1px 0 rgb(255 255 255 / .06), 0 34px 64px -30px rgb(0 0 0 / .9);
  font: 400 13px/1.35 p4Geist, Inter, sans-serif; color: var(--ink-2);
}
.jan { overflow: hidden; }
.jan-topo { display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 46px; padding: 0 16px 0 12px;
  border-bottom: 1px solid var(--ap-l); background: rgb(255 255 255 / .02); }
.p4 .jan-tit { display: flex; align-items: center; gap: 10px; font: 600 13.5px/1 p4Geist, Inter, sans-serif; letter-spacing: -.005em; color: var(--ink-1); }
.jan-ic { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; color: #cfdcf5;
  background: rgb(143 179 238 / .12); box-shadow: inset 0 0 0 1px rgb(143 179 238 / .28); }
.jan-ic svg { width: 15px; height: 15px; }
.p4 .jan-meta { font: 400 12px/1 p4Geist, Inter, sans-serif; color: var(--ink-4); white-space: nowrap; }
.p4 .ap-rot { display: flex; justify-content: space-between; gap: 12px; font: 600 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-4); white-space: nowrap; }
.ap strong { font-weight: 600; color: var(--ink-1); }
.ap small { font-size: 12px; color: var(--ink-4); }
.bt { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 8px; white-space: nowrap;
  font: 500 12.5px/1 p4Geist, Inter, sans-serif; color: var(--ink-2); background: rgb(255 255 255 / .03); box-shadow: inset 0 0 0 1px var(--ap-l2);
  transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .15s ease; }
@media (hover: hover) { button.bt:not(:disabled):hover { color: var(--ink-1); background: rgb(255 255 255 / .07); } }
button.bt:not(:disabled):active { transform: scale(.97); }
.bt-cheio { color: #0b0e14; background: linear-gradient(180deg, #f4f6f9, #d6dbe3); box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgb(0 0 0 / .45), 0 6px 14px -6px rgb(0 0 0 / .6); }
@media (hover: hover) { button.bt-cheio:not(:disabled):hover { color: #0b0e14; background: linear-gradient(180deg, #fff, #e3e7ee); } }
.bt-cheio:disabled { opacity: .8; }
.bt-cheio svg { width: 14px; height: 14px; }
.bt-mudo { color: var(--ink-4); background: none; box-shadow: inset 0 0 0 1px var(--ap-l); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; white-space: nowrap; font: 500 12px/1 p4Geist, Inter, sans-serif; }
.pill svg { width: 12px; height: 12px; stroke-width: 2; }
.pill-ok { color: #c4e8d6; background: rgb(107 181 151 / .14); box-shadow: inset 0 0 0 1px rgb(107 181 151 / .34); }
.pill-res, .pill-env { color: #d3dff1; background: rgb(168 192 224 / .13); box-shadow: inset 0 0 0 1px rgb(168 192 224 / .32); }
.pill-pend { color: #eed6a8; background: rgb(201 163 95 / .14); box-shadow: inset 0 0 0 1px rgb(201 163 95 / .38); }
.av { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; font: 600 11.5px/1 p4Geist, sans-serif;
  color: #e3e9f3; background: linear-gradient(180deg, #2c364c, #1d2436); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1); }
.muda { display: inline-block; animation: p4-muda .55s var(--curva); }
@keyframes p4-muda { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.entra { animation: p4-entra .5s var(--curva) both; }
@keyframes p4-entra { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ── Central de Vagas (R55): o cancelamento chega pelo WhatsApp (âmbar), vira vaga aberta, o Aurian liga a vaga a quem é
   compatível e o encaixe a reaproveita (verde). Fases em .enc[data-fase]: vazio → aviso → aberta → busca → compat → encaixada.
   Movimento só com transform e opacity; o fio e a varredura são elementos pequenos. ── */
.enc { position: relative; width: 560px; height: 452px; }
.enc-jan { position: absolute; inset: 0; }
.enc-corpo { position: relative; padding: 14px 16px 16px; }
.enc-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.p4 .enc-kpis p { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
  background: rgb(255 255 255 / .022); box-shadow: inset 0 0 0 1px var(--ap-l); transition: background .5s ease, box-shadow .5s ease; }
.enc-kpis small { color: var(--ink-3); }
.enc-kpis b { font: 500 19px/1 var(--mono); color: var(--ink-1); }
.enc:is([data-fase="aberta"], [data-fase="busca"], [data-fase="compat"]) [data-k="abertas"] { background: rgb(224 184 114 / .06); box-shadow: inset 0 0 0 1px rgb(224 184 114 / .4); }
.enc[data-ok] [data-k="aproveitadas"] { background: rgb(107 181 151 / .08); box-shadow: inset 0 0 0 1px rgb(107 181 151 / .45); }
.enc-mais { position: absolute; right: 40px; top: 50%; margin-top: -7px; font: 600 12.5px/1 var(--mono); font-style: normal; color: #93e2bf; opacity: 0; pointer-events: none; }
.enc[data-ok] .enc-mais { animation: p4-enc-mais 1.5s var(--curva) .15s both; }
@keyframes p4-enc-mais { 0% { opacity: 0; transform: translateY(8px); } 22% { opacity: 1; transform: none; } 70% { opacity: 1; } 100% { opacity: 0; transform: translateY(-12px); } }

/* o lugar da vaga: vazio (tracejado) até o cancelamento cair nele */
.enc-slot { display: grid; height: 84px; margin-top: 12px; }
.enc-slot > * { grid-area: 1 / 1; min-width: 0; }
.p4 .enc-vazio { display: grid; place-items: center; border-radius: 12px; font-size: 13px; color: var(--ink-4);
  box-shadow: inset 0 0 0 1px rgb(200 205 213 / .07); background: repeating-linear-gradient(135deg, rgb(255 255 255 / .018) 0 8px, transparent 8px 16px);
  transition: opacity .3s ease; }
.enc-vaga { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 14px 12px 14px; border-radius: 12px;
  background: var(--ap-hi); box-shadow: inset 0 0 0 1px rgb(143 179 238 / .38), 0 0 0 3px rgb(143 179 238 / .07), 0 18px 34px -20px rgb(0 0 0 / .9);
  opacity: 0; transform: translateY(-10px) scale(.97); transition: opacity .35s ease, transform .6s var(--curva), box-shadow .5s ease; }
.enc:not([data-fase="vazio"], [data-fase="aviso"]) .enc-vazio { opacity: 0; }
.enc-vazio span { transition: opacity .25s ease; }
.enc:not([data-fase="vazio"]) .enc-vazio span { opacity: 0; }
.enc:not([data-fase="vazio"], [data-fase="aviso"]) .enc-vaga { opacity: 1; transform: none; }
.enc[data-fase="encaixada"] .enc-vaga { box-shadow: inset 0 0 0 1px rgb(107 181 151 / .55), 0 0 0 3px rgb(107 181 151 / .1), 0 18px 34px -20px rgb(0 0 0 / .9); }
/* a tecla: azul com o calendário que volta a girar (vaga liberada); encaixada, vira verde com o ✓ */
.enc-tec { --t: 58px; --c1: #4a82f6; --c2: #0e52dd; --brilho: rgb(74 130 246 / .45); }
.enc-tec-verde { position: absolute; inset: 0; border-radius: inherit; opacity: 0; transition: opacity .5s ease;
  background: radial-gradient(130% 80% at 28% -8%, rgb(255 255 255 / .3), transparent 58%), linear-gradient(180deg, #22b678, #039259); box-shadow: inset 0 1px 0 rgb(255 255 255 / .42); }
.enc-tec .enc-tec-livre { background-image: url(img/vaga-livre.webp); transition: opacity .25s ease, transform .4s var(--curva); }
.enc-tec .enc-tec-ok { background-image: url(img/rx-agenda.webp); opacity: 0; transform: scale(.55) rotate(-10deg); transition: opacity .25s ease, transform .55s cubic-bezier(.3, 1.5, .5, 1); }
.enc[data-fase="encaixada"] .enc-tec { --brilho: rgb(34 182 120 / .5); }
.enc[data-fase="encaixada"] .enc-tec-verde, .enc[data-fase="encaixada"] .enc-tec-ok { opacity: 1; transform: none; }
.enc[data-fase="encaixada"] .enc-tec-livre { opacity: 0; transform: scale(.8); }
.enc[data-fase="aberta"] .enc-tec { animation: p4-enc-pop .6s cubic-bezier(.3, 1.5, .5, 1) .05s both; }
@keyframes p4-enc-pop { from { transform: scale(.55); } }
.enc-tec-anel { position: absolute; inset: -5px; border-radius: calc(var(--t) * .28 + 5px); box-shadow: 0 0 0 2px rgb(143 179 238 / .85); opacity: 0; pointer-events: none; }
.enc[data-fase="aberta"] .enc-tec-anel { animation: p4-enc-anel .9s ease-out .1s; }
.enc[data-fase="encaixada"] .enc-tec-anel { box-shadow: 0 0 0 2px rgb(107 220 168 / .9); animation: p4-enc-anel-ok .9s ease-out .05s; }
@keyframes p4-enc-anel { 0% { opacity: 1; transform: scale(.92); } 100% { opacity: 0; transform: scale(1.5); } }
@keyframes p4-enc-anel-ok { 0% { opacity: 1; transform: scale(.92); } 100% { opacity: 0; transform: scale(1.5); } }
.enc-brilho { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; pointer-events: none; }
.enc-brilho::before { content: ""; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 45%; opacity: 0;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / .5), transparent); transform: skewX(-18deg); }
.enc[data-fase="aberta"] .enc-brilho::before, .enc[data-fase="encaixada"] .enc-brilho::before { animation: p4-enc-brilho 1s ease .25s; }
@keyframes p4-enc-brilho { 0% { opacity: 0; transform: translateX(0) skewX(-18deg); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateX(330%) skewX(-18deg); } }
/* o que a vaga é e de onde veio: "Canc. WhatsApp · agora" (âmbar) até ser encaixada (verde) */
.enc-info { display: grid; gap: 4px; min-width: 0; }
.p4 .enc-quando { display: flex; align-items: baseline; gap: 8px; }
.enc-quando b { font: 500 13.5px/1 var(--mono); color: var(--ink-1); }
.enc-quando small { font: 600 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4); }
.p4 .enc-oque { font-size: 15.5px; line-height: 1.2; letter-spacing: -.01em; }
.p4 .enc-meta { display: grid; min-width: 0; font-size: 12px; color: var(--ink-4); }
.enc-meta > span { grid-area: 1 / 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: opacity .35s ease, transform .45s var(--curva); }
.enc-meta i { margin: 0 6px; font-style: normal; opacity: .55; }
.enc-canc { display: inline; font-weight: 500; color: #e9c98f; }
.enc-canc svg { display: inline-block; width: 12px; height: 12px; margin-right: 5px; vertical-align: -2px; color: #3fd27f; }
.enc-feito { color: #a8e6c8; opacity: 0; transform: translateY(5px); }
.enc-feito svg { display: inline-block; width: 12px; height: 12px; margin-right: 5px; vertical-align: -1.5px; stroke-width: 2.6; }
.enc-feito b { font-weight: 600; color: #d6f3e5; }
.enc[data-fase="encaixada"] .enc-orig { opacity: 0; transform: translateY(-5px); }
.enc[data-fase="encaixada"] .enc-feito { opacity: 1; transform: none; }
.enc[data-fase="compat"] .enc-casa { color: #b5ecd2; text-decoration: underline 1.5px rgb(107 181 151 / .7); text-underline-offset: 3px; transition: color .3s ease; }
/* o lado: Aberta + Reservar → Reservada · mm:ss → Encaixado */
.p4 .enc-lado { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.enc-lado .pill { display: none; animation: p4-entra .4s var(--curva) both; }
.enc-lado time { font: 500 12px/1 var(--mono); font-variant-numeric: tabular-nums; }
.enc:not([data-res], [data-fase="encaixada"]) .enc-p-aberta, .enc[data-res]:not([data-fase="encaixada"]) .enc-p-res, .enc[data-fase="encaixada"] .enc-p-ok { display: inline-flex; }
.enc-reservar { height: 28px; color: #dce7fa; background: rgb(143 179 238 / .1); box-shadow: inset 0 0 0 1px rgb(143 179 238 / .45); }
@media (hover: hover) { .enc-reservar:hover { background: rgb(143 179 238 / .18); } }
.enc[data-res] .enc-reservar, .enc[data-fase="encaixada"] .enc-reservar { display: none; }

/* o rótulo da fila conta o que o Aurian está fazendo */
.p4 .enc-rot { display: grid; justify-content: start; margin: 16px 2px 10px 26px; }
.enc-rot > span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 7px; opacity: 0; transition: opacity .3s ease; }
.enc:not([data-fase="busca"], [data-fase="compat"]) .enc-r0, .enc[data-fase="busca"] .enc-r1, .enc[data-fase="compat"] .enc-r2 { opacity: 1; }
.enc-r1 { color: #c6d6f2; }
.enc-r2 { color: #a8e6c8; }
.enc-r2 svg { width: 12px; height: 12px; stroke-width: 2.6; }
.enc-gira { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid #8fb3ee; border-right-color: transparent; }
.enc[data-fase="busca"] .enc-gira { animation: p4-gira .8s linear infinite; }

/* a fila: o trilho com um nó por paciente; a varredura passa; o fio liga a vaga ao compatível */
.enc-fila { position: relative; padding-left: 26px; }
.enc-trilho { position: absolute; left: 9px; top: 8px; bottom: 14px; width: 2px; border-radius: 2px; background: rgb(200 205 213 / .09); }
.enc-fio { position: absolute; z-index: 1; left: 9px; top: 0; width: 2px; height: 0; border-radius: 2px; transform: scaleY(0); transform-origin: top; opacity: 0;
  background: linear-gradient(180deg, rgb(143 179 238 / .85), #6bb597); box-shadow: 0 0 8px rgb(107 181 151 / .45); transition: transform .7s var(--curva), opacity .25s ease; }
.enc[data-fio] .enc-fio { transform: none; opacity: 1; }
.enc-fio b { position: absolute; left: -2px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: #e4fbef; box-shadow: 0 0 8px 2px rgb(107 220 168 / .85); opacity: 0; }
.enc[data-fio][data-fase="compat"] .enc-fio b { animation: p4-enc-gota 1.5s cubic-bezier(.45, 0, .3, 1) .7s infinite; }
@keyframes p4-enc-gota { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(var(--h, 120px)); } }
.enc-varre { position: absolute; left: 20px; right: 0; top: -22px; height: 44px; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, transparent, rgb(143 179 238 / .1) 42%, rgb(143 179 238 / .1) 58%, transparent); }
.enc-varre::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: linear-gradient(90deg, transparent, rgb(196 216 250 / .8) 30%, rgb(196 216 250 / .8) 70%, transparent); }
.enc[data-fase="busca"] .enc-varre { animation: p4-enc-varre 1.5s linear both; }
@keyframes p4-enc-varre { 0% { opacity: 0; transform: translateY(-31px); } 10% { opacity: 1; } 90% { opacity: 1; } 100% { opacity: 0; transform: translateY(209px); } }
.enc-espera li { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; max-height: 64px; margin-bottom: 6px; padding: 10px 12px;
  border-radius: 10px; background: rgb(255 255 255 / .02); box-shadow: inset 0 0 0 1px var(--ap-l);
  transition: max-height .45s var(--curva), margin .45s var(--curva), padding .45s var(--curva), opacity .35s ease, background .35s ease, box-shadow .35s ease; }
.enc-espera li[data-st="nao"] { opacity: .42; }
.enc-espera li[data-st="sim"] { background: rgb(107 181 151 / .07); box-shadow: inset 0 0 0 1px rgb(107 181 151 / .5), 0 0 0 3px rgb(107 181 151 / .08); }
.enc-espera li.sai { overflow: hidden; max-height: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; opacity: 0; }
.enc-no { position: absolute; left: -21px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: #1a2131;
  box-shadow: inset 0 0 0 1.5px rgb(200 205 213 / .24); transition: background .3s ease, box-shadow .3s ease; }
.enc-espera li[data-st] .enc-no { animation: p4-enc-ping .5s ease-out; }
@keyframes p4-enc-ping { from { transform: scale(1.7); } }
.enc-espera li[data-st="sim"] .enc-no { background: #6bb597; box-shadow: 0 0 0 3px rgb(107 181 151 / .2), 0 0 10px rgb(107 181 151 / .7); }
.enc-no::after { content: ""; position: absolute; left: 9px; top: 3.5px; width: 12px; height: 2px; border-radius: 2px; background: #6bb597; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--curva); }
.enc[data-fio] li[data-st="sim"] .enc-no::after { transform: none; transition-delay: .55s; }
.enc-quem { min-width: 0; }
.p4 .enc-quem strong { display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; }
.enc-quem small { display: block; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.enc-tag { display: none; align-items: center; gap: 4px; height: 18px; padding: 0 7px; border-radius: 999px; font: 500 11px/1 p4Geist, Inter, sans-serif; font-style: normal; }
.enc-tag svg { width: 11px; height: 11px; }
.enc-tag-sim { padding-left: 5px; color: #c4e8d6; background: rgb(107 181 151 / .16); box-shadow: inset 0 0 0 1px rgb(107 181 151 / .4); }
.enc-tag-nao { color: var(--ink-4); box-shadow: inset 0 0 0 1px var(--ap-l); }
.enc-espera li[data-st="sim"] .enc-tag-sim, .enc-voo .enc-tag-sim { display: inline-flex; animation: p4-enc-tag .45s cubic-bezier(.3, 1.5, .5, 1); }
.enc-espera li[data-st="nao"] .enc-tag-nao { display: inline-flex; animation: p4-entra .35s var(--curva); }
@keyframes p4-enc-tag { from { opacity: 0; transform: scale(.6); } }
.enc-encaixar { height: 28px; }
.enc-encaixar[hidden] { display: none; }
.enc-encaixar:not([hidden]) { animation: p4-enc-tag .45s cubic-bezier(.3, 1.5, .5, 1); }

/* o aviso do WhatsApp: desce até o lugar vazio da vaga, o "Cancelar" é tocado e ali mesmo ele vira a vaga */
.enc-aviso { position: relative; z-index: 2; align-self: center; justify-self: center; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  width: calc(100% - 40px); max-width: 430px; padding: 10px 12px 10px 10px; border-radius: 16px; pointer-events: none;
  background: linear-gradient(180deg, #252e40, #1a2131);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .13), inset 0 1px 0 rgb(255 255 255 / .12), 0 0 0 1px rgb(0 0 0 / .45), 0 22px 40px -16px rgb(0 0 0 / .95);
  opacity: 0; transform: translateY(-44px) scale(.96); transition: opacity .35s ease, transform .7s var(--curva); }
.enc[data-fase="aviso"] .enc-aviso { opacity: 1; transform: none; }
.enc.vira .enc-aviso { opacity: 0; transform: scale(.93); transition: opacity .26s ease, transform .4s var(--curva); }
.enc-aviso-wa { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #fff;
  background: radial-gradient(130% 80% at 28% -8%, rgb(255 255 255 / .3), transparent 58%), linear-gradient(180deg, #34e381, #1fb257);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .42), 0 8px 18px -10px rgb(47 224 122 / .6); }
.enc-aviso-wa svg { width: 23px; height: 23px; }
.p4 .enc-aviso-txt { display: grid; gap: 3px; min-width: 0; }
.enc-aviso-txt small { font: 600 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #8fd9ad; }
.p4 .enc-aviso-txt strong { font-size: 13.5px; line-height: 1.2; }
.enc-aviso-txt span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--ink-3); }
.enc-aviso-bt { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px 0 10px; border-radius: 9px;
  font: 500 12.5px/1 p4Geist, Inter, sans-serif; color: #d6e6ff; background: rgb(255 255 255 / .05); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14);
  transition: color .25s ease, background .25s ease, box-shadow .25s ease; }
.enc-aviso-bt svg { width: 14px; height: 14px; }
.enc-aviso-bt::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; box-shadow: 0 0 0 2px rgb(233 201 143 / .8); opacity: 0; }
.enc.toca .enc-aviso-bt { color: #f2dcb0; background: rgb(224 184 114 / .16); box-shadow: inset 0 0 0 1px rgb(224 184 114 / .55); animation: p4-enc-toque .4s ease; }
.enc.toca .enc-aviso-bt::after { animation: p4-enc-anel .7s ease-out; }
@keyframes p4-enc-toque { 40% { transform: scale(.9); } }

/* o paciente encaixado sobe da fila até a vaga */
.enc-voo { position: absolute; z-index: 6; display: grid; align-items: center; padding: 10px 12px; border-radius: 10px; opacity: 0; pointer-events: none;
  background: linear-gradient(180deg, #213f35, #19302a); box-shadow: inset 0 0 0 1px rgb(107 181 151 / .6), 0 18px 32px -12px rgb(0 0 0 / .9);
  transition: transform .56s cubic-bezier(.5, 0, .25, 1); }
.enc-voo.vai { animation: p4-enc-voo .62s ease both; }
@keyframes p4-enc-voo { 0% { opacity: 1; } 72% { opacity: 1; } 100% { opacity: 0; } }

/* o modal do encaixe (texto do app: "Reencaixe", "Confirmar encaixe") */
.enc-veu { position: absolute; inset: 0; z-index: 3; border-radius: 14px; background: rgb(6 9 15 / .58); opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.enc-modal { position: absolute; z-index: 4; left: 50%; top: 50%; width: 344px; margin: -108px 0 0 -172px; padding: 18px 18px 16px; border-radius: 16px;
  background: linear-gradient(180deg, #1c2333, #131824); opacity: 0; transform: translateY(14px) scale(.97); pointer-events: none;
  box-shadow: inset 0 0 0 1px var(--ap-l2), inset 0 1px 0 rgb(255 255 255 / .1), 0 0 0 1px rgb(0 0 0 / .5), 0 44px 80px -24px rgb(0 0 0 / .95);
  transition: opacity .3s ease, transform .5s var(--curva); }
.enc[data-modal] .enc-veu { opacity: 1; pointer-events: auto; }
.enc[data-modal] .enc-modal { opacity: 1; transform: none; pointer-events: auto; }
.p4 .enc-m-rot { font: 600 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--info); }
.p4 .enc-m-tit { margin-top: 9px; font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; color: var(--ink-1); }
.enc-m-dest { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; margin-top: 14px; padding: 11px 12px; border-radius: 10px;
  background: rgb(255 255 255 / .03); box-shadow: inset 0 0 0 1px var(--ap-l); }
.p4 .enc-m-quando { display: grid; gap: 5px; padding-right: 12px; border-right: 1px solid var(--ap-l); }
.enc-m-quando b { font: 500 16px/1 var(--mono); color: var(--ink-1); }
.enc-m-quando small { font-size: 11.5px; white-space: nowrap; }
.enc-m-oque { min-width: 0; }
.enc-m-oque strong, .enc-m-oque small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.enc-m-oque small { margin-top: 4px; }
.p4 .enc-m-nota { margin-top: 10px; font-size: 12px; color: var(--ink-4); }
.p4 .enc-m-pe { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--ap-l); }
.enc-m-pe .bt { height: 32px; padding: 0 13px; font-size: 13px; }
.enc-m-pe .bt-cheio { min-width: 136px; }
.p4 .enc-selo { left: 0; right: 0; bottom: 16px; width: max-content; margin: 0 auto; }
.enc[data-ok] .enc-selo { opacity: 1; translate: 0 0; }

/* ── Lembrete (R66): peça de motion. A agenda de amanhã é um cilindro de nomes que gira sob uma lente de vidro; a lente lê cada um;
   quem confirmou dispara um sinal de luz que vira a mensagem à direita; quem não confirmou ou cancelou passa sem mensagem. ── */
@media (min-width: 1101px) {
  .p4 .c-faixa { min-height: 0; }
  .p4 .c-faixa .c-txt { padding-top: 38px; padding-bottom: 38px; }
}
.p4 .c-faixa .palco { min-height: 0; }
.c-lem .palco { flex: none; height: auto; padding: 18px 0;
  background: radial-gradient(44% 70% at 29% 56%, rgb(96 140 222 / .22), transparent 72%), radial-gradient(32% 60% at 80% 56%, rgb(58 170 130 / .13), transparent 72%), linear-gradient(180deg, #0e1524, #0a0f18); }
.c-lem .palco::before, .c-lote .palco::before { display: none; }
.lm { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 262px; grid-template-rows: auto 244px; column-gap: 36px; row-gap: 4px; width: 620px; }
.p4 .lm-rot { display: flex; align-items: center; gap: 8px; padding-left: 16px; font: 500 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--t3); white-space: nowrap; }
.p4 .lm-rot-b { padding-left: 2px; }
.lm-hora { font-weight: 600; color: var(--ink-1); font-variant-numeric: tabular-nums; }
/* o ponto vivo: o sistema está ligado */
.lm-vivo { position: relative; flex: none; width: 6px; height: 6px; border-radius: 50%; background: #5fd7a5; box-shadow: 0 0 8px rgb(95 215 165 / .8); }
.lm-vivo::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; box-shadow: 0 0 0 1px rgb(95 215 165 / .5); opacity: 0; animation: lm-vivo 2.6s ease-out infinite; }
@keyframes lm-vivo { 0% { opacity: .9; transform: scale(.45); } 70%, 100% { opacity: 0; transform: scale(1.25); } }

/* a agenda: um cilindro de verdade (perspectiva + rotação), com a luz fria atrás da lente */
.lm-agenda { position: relative; min-width: 0; }
.lm-halo { position: absolute; left: 6%; right: 6%; top: 50%; height: 120px; margin-top: -60px; border-radius: 50%; background: radial-gradient(closest-side, rgb(112 160 240 / .34), transparent); opacity: .5; pointer-events: none; }
.lm-halo.lm-pulso { animation: lm-pulso 1.5s ease-out; }
@keyframes lm-pulso { 18% { opacity: 1; transform: scaleX(1.06); } }
.lm-cil { position: absolute; inset: 0; perspective: 860px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 24%, #000 76%, transparent); mask-image: linear-gradient(180deg, transparent, #000 24%, #000 76%, transparent); }
.lm-roda { --raio: 148px; position: absolute; inset: 0; transform-style: preserve-3d; transform: translateZ(calc(var(--raio) * -1)) rotateX(calc(var(--r, 0) * 1deg)); transition: transform 1.05s cubic-bezier(.64, .02, .16, 1); }
.lm-roda.lm-salto { transition: none; }
.lm-lin { position: absolute; left: 0; right: 0; top: 50%; display: flex; align-items: center; gap: 16px; height: 44px; margin-top: -22px; padding: 0 16px; text-align: left; backface-visibility: hidden;
  transform: rotateX(calc(var(--j) * var(--passo) * -1deg)) translateZ(var(--raio)); opacity: .07; transition: opacity .6s ease; pointer-events: none; }
.lm-lin[data-d="0"] { opacity: 1; pointer-events: auto; }
.lm-lin[data-d="1"] { opacity: .5; pointer-events: auto; }
.lm-lin[data-d="2"] { opacity: .2; pointer-events: auto; }
.lm-lin[data-d="4"] { visibility: hidden; transition: none; }
@media (hover: hover) { .lm-lin[data-d="1"]:hover { opacity: .82; } .lm-lin[data-d="2"]:hover { opacity: .5; } }
.lm-lin time { flex: none; width: 42px; font: 500 12.5px/1 var(--mono); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.lm-lin span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 400 20px/1.15 Jost, sans-serif; letter-spacing: -.005em; color: #f3f5f9; }
.lm-lin:focus-visible { outline: 2px solid var(--az); outline-offset: -2px; border-radius: 10px; }

/* a lente: vidro percebido pela borda e pelo reflexo; o conteúdo continua nítido */
.lm-lente { position: absolute; z-index: 3; left: 0; right: 0; top: 50%; height: 56px; margin-top: -28px; overflow: hidden; border-radius: 16px; pointer-events: none;
  background: linear-gradient(180deg, rgb(255 255 255 / .085), rgb(255 255 255 / .025) 46%, rgb(255 255 255 / .05));
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1), inset 0 1px 0 rgb(255 255 255 / .28), inset 0 -1px 0 rgb(255 255 255 / .05), 0 22px 44px -22px rgb(0 0 0 / .95), 0 0 46px -8px rgb(96 150 236 / .3);
  -webkit-backdrop-filter: saturate(1.35) brightness(1.12); backdrop-filter: saturate(1.35) brightness(1.12); }
/* a leitura: uma luz fina atravessa a lente */
.lm-lente::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 46%; opacity: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgb(170 205 255 / .05) 40%, rgb(214 232 255 / .16) 68%, rgb(240 247 255 / .3) 82%, rgb(214 232 255 / .12) 92%, transparent); }
.lm-lente.lm-le::after { animation: lm-le .78s cubic-bezier(.5, 0, .25, 1); }
@keyframes lm-le { 0% { opacity: 1; transform: translateX(-105%); } 88% { opacity: 1; } 100% { opacity: 0; transform: translateX(225%); } }
.p4 .lm-st { position: absolute; right: 15px; top: 50%; display: flex; align-items: center; gap: 6px; transform: translateY(-50%); font: 500 12.5px/1 p4Geist, Inter, sans-serif; white-space: nowrap; opacity: 0; transition: opacity .25s ease; }
.p4 .lm-st.lm-st-vivo { opacity: 1; }
.lm-st-conf { color: #a8ecc9; }
.lm-st-nao, .lm-st-canc { color: var(--ink-3); }
.lm-st svg { width: 14px; height: 14px; stroke-width: 2.4; stroke-dasharray: 26; stroke-dashoffset: 26; }
.lm-st-vivo svg { animation: lm-risca .42s cubic-bezier(.3, 0, .2, 1) forwards; }
@keyframes lm-risca { to { stroke-dashoffset: 0; } }

/* o sinal: sai da borda da lente e chega na mensagem */
.lm-sinal { position: absolute; z-index: 4; left: 100%; top: 50%; width: 56px; height: 2px; margin-top: -1px; border-radius: 2px; opacity: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgb(127 226 187 / .75) 55%, #fff); box-shadow: 0 0 12px rgb(127 226 187 / .75); }
.lm-sinal.lm-vai { animation: lm-vai .4s cubic-bezier(.45, 0, .55, 1); }
@keyframes lm-vai { 0% { opacity: 0; transform: translateX(-46px) scaleX(.4); } 30% { opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; transform: translateX(26px) scaleX(1); } }

/* a saída: uma pilha que sobe junto com o giro; a mensagem da vez fica na altura da lente */
.lm-saida { position: relative; min-width: 0;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 16%, #000 100%); mask-image: linear-gradient(180deg, transparent, #000 16%, #000 100%); }
.lm-bal { position: absolute; left: 0; right: 0; top: 50%; translate: 0 -50%; padding: 10px 13px 12px; border-radius: 16px; color: #e9f4ef;
  background: linear-gradient(165deg, rgb(52 150 120 / .34), rgb(24 92 74 / .3)); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: inset 0 0 0 1px rgb(150 235 200 / .17), inset 0 1px 0 rgb(255 255 255 / .2), 0 24px 44px -22px rgb(0 0 0 / .95);
  font: 400 13.5px/1.42 -apple-system, "SF Pro Text", system-ui, sans-serif; letter-spacing: -.005em; -webkit-font-smoothing: antialiased;
  transition: transform .95s cubic-bezier(.3, .7, .2, 1), opacity .55s ease, filter .5s ease; }
.lm-bal[data-pos="ent"] { opacity: 0; transform: translateX(-14px) scale(.975); filter: blur(7px); }
.lm-bal[data-pos="atual"] { opacity: 1; z-index: 2; }
.lm-bal[data-pos="ant"] { opacity: .3; transform: translateY(calc(-100% - 10px)) scale(.93); }
.lm-bal[data-pos="fora"] { opacity: 0; transform: translateY(calc(-200% - 20px)) scale(.88); }
.lm-bal.lm-salto { transition: none; }
.p4 .lm-bal-cab { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 12px; line-height: 1; color: rgb(233 244 239 / .68); }
.lm-bal-cab svg { flex: none; width: 13px; height: 13px; color: #59e39a; }
.lm-bal-cab time { margin-left: auto; font-variant-numeric: tabular-nums; }
.lm-tiques { display: block; width: 16px; height: 11px; color: rgb(233 244 239 / .6); transition: color .45s ease; }
.lm-tiques svg { display: block; width: 100%; height: 100%; color: inherit; }
.lm-tiques .t2 { opacity: 0; transition: opacity .25s ease; }
.lm-tiques[data-t="2"] .t2, .lm-tiques[data-t="3"] .t2 { opacity: 1; }
.lm-tiques[data-t="3"] { color: #6fcdf5; }
.p4 .lm-bal-txt { white-space: pre-line; overflow-wrap: anywhere; }
.lm-bal-txt strong { font-weight: 600; color: #fff; }
/* quem não confirmou: sem mensagem, só o motivo */
.lm-bal[data-sem] { background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; color: var(--ink-3); text-align: center; font: 400 13.5px/1.45 p4Geist, Inter, sans-serif; }
.lm-bal[data-sem] .lm-bal-cab { display: none; }

/* ── Modelos personalizados (R60): passo a passo no topo, o compositor à esquerda, o WhatsApp do paciente à direita ── */
.c-mod .palco { flex: none; height: calc(560px * var(--mo-z, 1)); min-height: 0; }
.mo { position: relative; width: 672px; height: 560px; }

/* o passo a passo: 1 Você escreve → 2 A Meta aprova → 3 Cada paciente recebe a sua; uma frase simples embaixo */
.p4 .mo-passos { position: absolute; left: 24px; right: 24px; top: 20px; display: flex; align-items: center; gap: 10px; }
.p4 .mo-passo { flex: none; display: flex; align-items: center; gap: 9px; font: 500 13.5px/1 p4Geist, Inter, sans-serif; color: var(--ink-4);
  transition: color .4s ease; }
.mo-passo b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font: 600 12px/1 p4Geist, Inter, sans-serif;
  color: var(--ink-4); background: rgb(255 255 255 / .03); box-shadow: inset 0 0 0 1px var(--ap-l2);
  transition: color .4s ease, background .4s ease, box-shadow .4s ease; }
.mo-passo[data-st="vivo"] { color: #eef3fc; }
.mo-passo[data-st="vivo"] b { color: #0b1324; background: var(--az); box-shadow: 0 0 0 4px rgb(143 179 238 / .16), 0 0 18px rgb(143 179 238 / .35); }
.mo-passo[data-st="feito"] { color: var(--ink-2); }
.mo-passo[data-st="feito"] b { color: transparent; background: #2f6f53 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d9f7e8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") 50% 50% / 13px no-repeat;
  box-shadow: inset 0 0 0 1px rgb(127 209 173 / .6); }
.mo-fio { flex: 1; min-width: 12px; height: 2px; border-radius: 2px; background: var(--ap-l2); overflow: hidden; }
.mo-fio i { display: block; height: 100%; background: linear-gradient(90deg, #7fd1ad, var(--az)); transform: scaleX(0); transform-origin: 0 50%; transition: transform .7s var(--curva); }
.mo-fio[data-st="cheio"] i { transform: none; }
.p4 .mo-legenda { position: absolute; left: 24px; right: 24px; top: 60px; text-align: center; font: 400 15px/1.45 p4Geist, Inter, sans-serif; color: var(--ink-2); text-wrap: balance; }
.mo-legenda.muda { animation: mo-legenda .55s var(--curva); }
@keyframes mo-legenda { from { opacity: 0; transform: translateY(5px); } }

/* o compositor: "Mensagem nova" */
.mo-jan { position: absolute; z-index: 3; left: 16px; top: 118px; width: 348px; }
.mo-corpo { display: grid; gap: 14px; padding: 13px 14px 14px; }
.mo-campo small { display: block; margin-bottom: 7px; font: 600 11px/1 p4Geist, Inter, sans-serif; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-4); }
.mo-editor { height: 120px; overflow: hidden; padding: 10px 12px; border-radius: 10px; background: rgb(0 0 0 / .24);
  box-shadow: inset 0 0 0 1px var(--ap-l2); transition: box-shadow .4s ease; }
.mo[data-fase="escreve"] .mo-editor { box-shadow: inset 0 0 0 1px rgb(143 179 238 / .5), 0 0 0 3px rgb(143 179 238 / .08); }
.p4 .mo-esc { white-space: pre-wrap; overflow-wrap: anywhere; font: 400 14px/1.65 p4Geist, Inter, sans-serif; color: var(--ink-1); }
.mo[data-fase="escreve"] .mo-esc::after { content: ""; display: inline-block; width: 1.5px; height: 1.15em; margin-left: 1px; vertical-align: -.2em;
  background: var(--az); animation: mo-cursor 1.05s steps(1) infinite; }
@keyframes mo-cursor { 50% { opacity: 0; } }
.mo-tok { display: inline-block; margin: 0 1px; padding: 0 7px; border-radius: 6px; white-space: nowrap; font: 500 13px/22px p4Geist, Inter, sans-serif;
  color: #dbe8ff; background: linear-gradient(180deg, rgb(76 155 255 / .34), rgb(76 155 255 / .2)); box-shadow: inset 0 0 0 1px rgb(124 180 255 / .55); }
.mo-tok.acende { animation: mo-acende 1.1s ease; }
@keyframes mo-acende { 20%, 55% { color: #fff; background: rgb(76 155 255 / .62); box-shadow: inset 0 0 0 1px rgb(170 208 255 / .9), 0 0 0 4px rgb(76 155 255 / .22), 0 0 18px rgb(76 155 255 / .5); } }
.p4 .mo-vars { display: flex; flex-wrap: wrap; gap: 6px; }
.mo-vars button { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 11px 0 9px; border-radius: 8px;
  font: 500 13px/1 p4Geist, Inter, sans-serif; color: #d5e4fd; background: rgb(76 155 255 / .1); box-shadow: inset 0 0 0 1px rgb(124 180 255 / .3);
  transition: background .2s ease, box-shadow .2s ease; }
.mo-vars button b { font-weight: 600; color: var(--az); }
@media (hover: hover) { .mo-vars button:hover { background: rgb(76 155 255 / .2); box-shadow: inset 0 0 0 1px rgb(124 180 255 / .55); } }
.mo-vars button.tocou { animation: mo-tecla .5s ease; }
@keyframes mo-tecla { 30% { transform: scale(.93); background: rgb(76 155 255 / .38); box-shadow: inset 0 0 0 1px rgb(170 208 255 / .85), 0 0 0 4px rgb(76 155 255 / .16); } }
.mo-vars button.cheio-nao { animation: mo-nega .4s ease; }
@keyframes mo-nega { 25% { transform: translateX(-3px); } 50% { transform: translateX(3px); } 75% { transform: translateX(-2px); } }
.p4 .mo-pe { display: flex; justify-content: flex-end; }
.mo-enviar { height: 34px; padding: 0 14px; font-size: 13px; }
.mo-enviar:disabled { cursor: default; }
.mo[data-fase="escreve"] .mo-enviar:disabled { opacity: .42; }
.mo-env-a, .mo-env-b { display: inline-flex; align-items: center; gap: 7px; }
.mo-env-b, .mo:not([data-fase="escreve"]) .mo-env-a { display: none; }
.mo:not([data-fase="escreve"]) .mo-env-b { display: inline-flex; }
.mo:not([data-fase="escreve"]) .mo-enviar { opacity: 1; color: #bff0d6; background: rgb(107 181 151 / .14); box-shadow: inset 0 0 0 1px rgb(127 209 173 / .45); }
.mo-env-b svg { width: 14px; height: 14px; stroke-width: 2.4; }

/* a pilha de balões (R63): a mensagem chega a cada paciente como o balão de notificação escuro (o que era do Lembrete);
   um por paciente, empilhados; sem celular e sem o cartão claro do WhatsApp */
.p4 .mo-leg-cel { position: absolute; z-index: 4; left: 372px; top: 196px; display: flex; align-items: center; height: 26px;
  font: 500 11px/1 var(--mono); letter-spacing: .11em; text-transform: uppercase; color: var(--t3); white-space: nowrap; transition: opacity .4s ease; }
.mo[data-fase="envio"] .mo-leg-cel { opacity: 0; visibility: hidden; }
.p4 .mo-leg-cel { pointer-events: none; }
.mo-pilha { position: absolute; z-index: 2; left: 372px; top: 190px; width: 290px; height: 280px; }
.mo-conv { position: absolute; left: 0; right: 0; top: 46px; overflow: hidden; border-radius: 20px; transform-origin: 50% 0;
  background: linear-gradient(180deg, #2b313e, #20252f);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1), inset 0 1px 0 rgb(255 255 255 / .14), 0 26px 50px -22px rgb(0 0 0 / .95);
  font: 400 14px/1.4 -apple-system, "SF Pro Text", system-ui, sans-serif; letter-spacing: -.005em; color: #e6eaf1; -webkit-font-smoothing: antialiased;
  transition: transform .7s var(--curva), opacity .5s ease, filter .6s ease; }
.mo-conv[data-pos="0"] { z-index: 3; }
.mo-conv[data-pos="1"] { z-index: 2; transform: translateY(-33px) scale(.95); filter: brightness(.78); }
.mo-conv[data-pos="2"] { z-index: 1; transform: translateY(-64px) scale(.9); filter: brightness(.6); }
.mo-conv[data-pos="x"] { z-index: 0; opacity: 0; transform: scale(.97); pointer-events: none; }
.mo-conv-cab { display: flex; align-items: center; gap: 10px; width: 100%; height: 44px; padding: 6px 14px 0 11px; text-align: left; background: none; }
.mo-conv-cab:disabled, .mo-conv[data-pos="0"] .mo-conv-cab { cursor: default; }
@media (hover: hover) { .mo-conv:not([data-pos="0"]) .mo-conv-cab:not(:disabled):hover { background: rgb(255 255 255 / .05); } }
/* a foto do contato com o selinho do WhatsApp (como a notificação de conversa do iPhone) */
.mo-conv-av { position: relative; display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; font: 600 11.5px/1 -apple-system, system-ui, sans-serif; font-style: normal;
  color: #fff; background: #5d6878 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Ccircle cx='12' cy='8.6' r='4'/%3E%3Cpath d='M4.5 20c.8-4 3.8-6.2 7.5-6.2s6.7 2.2 7.5 6.2z'/%3E%3C/svg%3E") 50% 60% / 19px no-repeat; }
.mo-conv-av:not(:empty) { background-image: none; background-color: #4f6c86; }
.mo-conv-av::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 14px; height: 14px; border-radius: 50%;
  background: #25c94f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4.2c-4.5 0-8 3.2-8 7.2 0 1.6.6 3.1 1.6 4.3L4.8 19l3.6-1.1c1.1.5 2.3.8 3.6.8 4.5 0 8-3.2 8-7.3S16.5 4.2 12 4.2Z' fill='%23fff'/%3E%3C/svg%3E") 50% 50% / 9px no-repeat;
  box-shadow: 0 0 0 2px #262c38; }
.mo-conv-quem { display: flex; flex: 1; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; }
.mo-conv-quem b { font-size: 14.5px; font-weight: 600; color: #fff; white-space: nowrap; }
.mo-conv-nome.etq, .mo-slot { color: #dbe8ff; background: rgb(76 155 255 / .24); box-shadow: inset 0 0 0 1px rgb(124 180 255 / .5); }
.mo-conv-nome.etq { padding: 1px 7px; border-radius: 6px; font-weight: 500; }
.p4 .mo-conv-quem small { flex: none; font-size: 12.5px; color: rgb(255 255 255 / .5); }
.mo-conv-corpo { padding: 2px 15px 14px 51px; }
.p4 .mo-bal-txt { min-height: 1.4em; white-space: pre-wrap; overflow-wrap: anywhere; }
.mo-slot { display: inline-block; perspective: 320px; padding: 0 5px; margin: 0 1px; border-radius: 5px; font-weight: 500;
  transition: padding .3s ease, color .3s ease, background-color .3s ease, box-shadow .3s ease; }
.mo-v { display: inline-block; backface-visibility: hidden; }
.mo-slot.cheio { padding: 0 1px; margin: 0 -1px; font-weight: 600; color: #fff; background-color: transparent; box-shadow: none; }

/* o selo: âmbar enquanto a Meta analisa, verde quando aprova (arte 3D só aqui, fora da janela) */
.p4 .mo-selo { left: 190px; top: 464px; bottom: auto; height: 48px; padding: 0 18px 0 6px; gap: 10px; transform: translateX(-50%); }
.mo:not([data-fase="escreve"]) .mo-selo { opacity: 1; translate: 0 0; }
.p4 .mo[data-fase="analise"] .mo-selo { color: #f6e7c8; background: linear-gradient(180deg, #4b3b1d, #362a13);
  box-shadow: inset 0 0 0 1px rgb(224 184 114 / .55), inset 0 1px 0 rgb(255 255 255 / .12), 0 0 0 5px rgb(224 184 114 / .08), 0 20px 36px -14px rgb(0 0 0 / .95); }
.mo-tec { position: relative; flex: none; width: 46px; height: 46px; margin: -8px 0 -6px; }
.mo-tec i { position: absolute; inset: 0; background-position: 50% 50%; background-size: contain; background-repeat: no-repeat; transition: opacity .3s ease, transform .55s cubic-bezier(.3, 1.5, .5, 1); }
.mo-tec-a { background-image: url(img/molde-analise.webp); }
.mo-tec-b { background-image: url(img/molde-aprovado.webp); opacity: 0; transform: scale(.55) rotate(-8deg); }
.mo:is([data-fase="aprovado"], [data-fase="envio"]) .mo-tec-a { opacity: 0; transform: scale(.6); }
.mo:is([data-fase="aprovado"], [data-fase="envio"]) .mo-tec-b { opacity: 1; transform: none; }
.mo[data-fase="analise"] .mo-tec-a { animation: mo-ampulheta 1.6s ease-in-out infinite; }
@keyframes mo-ampulheta { 50% { transform: translateY(-2px) rotate(-3deg); } }

/* reticências de "digitando" (badges) */
.b-dig i { width: 6px; height: 6px; border-radius: 50%; background: #8696a0; animation: p4-dig 1.1s ease-in-out infinite; }
.b-dig i:nth-child(2) { animation-delay: .15s; }
.b-dig i:nth-child(3) { animation-delay: .3s; }
@keyframes p4-dig { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }

/* ── Lotes (R71): a tela é uma só e vai enchendo. Antes da planilha já existem o encaixe no topo, a semana em branco e a folha em branco;
   nada troca de lugar, nada cobre texto: a planilha pousa no encaixe e as linhas viram a semana (cenas-cards.js) ── */
.lot { position: relative; width: 640px; height: 452px; }
.lot-jan { position: absolute; left: 50px; top: 0; width: 540px; height: 452px; display: flex; flex-direction: column; }
.lot-corpo { position: relative; flex: 1; min-height: 0; }
/* o encaixe: um rebaixo do tamanho do cabeçalho, onde a planilha pousa */
.p4 .lot-zona { position: absolute; z-index: 2; left: 14px; right: 14px; top: 9px; height: 48px; display: flex; align-items: center; gap: 12px; padding: 0 14px 0 4px; border-radius: 11px; text-align: left;
  border: 1px dashed rgb(143 179 238 / .4); background: rgb(7 11 19 / .42); box-shadow: inset 0 1px 3px rgb(0 0 0 / .45);
  transition: opacity .28s ease, background .22s ease, border-color .22s ease, box-shadow .22s ease; }
@media (hover: hover) { .p4 .lot-zona:hover { background: rgb(143 179 238 / .07); } }
/* pegou a planilha: o encaixe acorda; chegou perto: ele acende */
.p4 .lot:has(.lot-arq.arrastando) .lot-zona { border-color: rgb(143 179 238 / .72); background: rgb(143 179 238 / .06); }
.p4 .lot[data-sobre] .lot-zona { border-color: rgb(143 179 238 / .95); border-style: solid; background: rgb(143 179 238 / .13); box-shadow: 0 0 0 3px rgb(143 179 238 / .12), 0 0 26px rgb(143 179 238 / .22); }
.lot:not([data-fase="vazio"]) .lot-zona { opacity: 0; pointer-events: none; }
/* o lugar do ícone: a mesma forma e o mesmo ponto do ícone da planilha, que cai exatamente aqui */
.lot-zona-ic { display: grid; place-items: center; flex: none; width: 32px; height: 38px; border-radius: 5px 10px 5px 5px; color: rgb(143 179 238 / .85); border: 1px dashed rgb(143 179 238 / .45); transition: color .2s ease, background .2s ease, border-color .2s ease; }
.lot-zona-ic svg { width: 14px; height: 14px; }
.lot[data-sobre] .lot-zona-ic { color: #e4edfd; border-style: solid; border-color: rgb(143 179 238 / .9); background: rgb(143 179 238 / .16); }
.lot-zona strong { font-size: 13.5px; font-weight: 600; color: var(--ink-1); white-space: nowrap; }
.lot-zona small { margin-left: auto; font-size: 12px; color: var(--ink-4); white-space: nowrap; }
.lot-lote { position: absolute; inset: 14px; display: flex; flex-direction: column; pointer-events: none; }
.lot[data-fase="lote"] .lot-lote { pointer-events: auto; }
/* o cabeçalho é onde a planilha pousa */
.lot-cab { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 0 5px 12px; border-bottom: 1px solid var(--ap-l); }
.lot-cab > .lot-doc, .lot-nome { opacity: 0; transition: opacity .16s ease .5s; }
.lot:not([data-fase="vazio"]) .lot-cab > .lot-doc, .lot:not([data-fase="vazio"]) .lot-nome { opacity: 1; }
.lot-doc { display: grid; place-items: center; width: 32px; height: 38px; flex: none; border-radius: 5px 10px 5px 5px; font: 700 9px/1 var(--mono); letter-spacing: .05em;
  color: #d8e5fb; background: linear-gradient(180deg, #2a3c5f, #1e2c47); box-shadow: inset 0 0 0 1px rgb(143 179 238 / .35); }
.lot-nome { min-width: 0; }
.lot-nome strong, .lot-nome small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lot-nome strong { font: 600 13.5px/1.2 p4Geist, sans-serif; }
.lot-nome small { margin-top: 3px; font: 400 11.5px/1 p4Geist, sans-serif; color: var(--ink-3); }
.lot-nome small b { font: 500 11.5px/1 var(--mono); color: var(--ink-1); }
.lot-ao-fim { display: none; }
.lot[data-fase="lote"] .lot-ao-ler { display: none; }
.lot[data-fase="lote"] .lot-ao-fim { display: inline; }
.lot-falta { height: 26px; font-size: 12px; opacity: 0; transform: scale(.82); transition: opacity .25s ease, transform .45s cubic-bezier(.3, 1.5, .5, 1); }
.lot-falta.ve { opacity: 1; transform: none; }
.lot-falta b { font: 600 12px/1 var(--mono); }
.lot-graf { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 212px; gap: 12px; padding: 12px 0; }
/* a semana: as colunas já existem; os dias só aparecem quando o Aurian lê as datas */
.lot-dias { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; align-items: stretch; }
.lot-dia { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 7px; min-width: 0; padding: 8px 0 9px; border-radius: 10px;
  transition: background .25s ease, box-shadow .25s ease; }
.lot-dia em, .lot-dia-nome { opacity: 0; transition: opacity .35s ease calc(.28s + var(--i) * 60ms), color .2s ease; }
.lot:not([data-fase="vazio"]) .lot-dia em, .lot:not([data-fase="vazio"]) .lot-dia-nome { opacity: 1; }
@media (hover: hover) { .lot[data-fase="lote"] .lot-dia:hover { background: rgb(255 255 255 / .035); } }
.lot-dia[aria-selected="true"] { background: rgb(143 179 238 / .09); box-shadow: inset 0 0 0 1px rgb(143 179 238 / .32); }
.lot:not([data-fase="lote"]) .lot-dia { background: none; box-shadow: none; }
.lot-dia em { font: 500 11.5px/1 var(--mono); color: var(--ink-3); }
.lot-dia[aria-selected="true"] em, .lot-dia.pega em { color: var(--ink-1); }
.lot-trilho { position: relative; flex: none; width: 28px; height: 186px; border-radius: 7px; background: rgb(255 255 255 / .03); transition: background .18s ease; }
.lot-dia.mira .lot-trilho { background: rgb(143 179 238 / .13); }
.lot-dia.mira em { color: var(--ink-1); }
/* camada própria: sem ela o Safari redesenha a textura das colunas a cada quadro e a chuva cai para 14 quadros por segundo (medido 2026-11-06) */
.lot-bar { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; transform-origin: bottom; transform: scaleY(var(--p, 0)); will-change: transform;
  transition: transform .34s cubic-bezier(.3, 1.4, .5, 1), opacity .25s ease; }
.lot-bar.corre { transition: opacity .25s ease; }
.lot-bar i { display: block; width: 100%; }
/* as barras são pilhas de linhas */
.lot-bar .b-e { height: calc(var(--e) * 100% - 1px); border-radius: 6px 6px 2px 2px; background: repeating-linear-gradient(0deg, rgb(11 16 27 / .26) 0 1px, transparent 1px 5px), rgb(143 179 238 / .36); }
.lot-bar .b-c { height: calc(var(--c) * 100% - 1px); border-radius: 2px 2px 4px 4px; background: repeating-linear-gradient(0deg, rgb(11 16 27 / .17) 0 1px, transparent 1px 5px), linear-gradient(180deg, #a4c1f3, #6f97dd); }
.lot[data-fase="lote"] .lot-dia:not([aria-selected="true"]) .lot-bar { opacity: .72; }
.lot-dia-nome { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.lot-dia-nome b { font-weight: 600; color: var(--ink-1); }
.lot-dia.pega .lot-dia-nome, .lot-dia.mira .lot-dia-nome { color: var(--ink-1); }
/* o lado direito: a folha da planilha que, no fim, vira o detalhe do dia no mesmo lugar */
.lot-lado { position: relative; min-width: 0; }
.lot-det { box-sizing: border-box; height: 100%; min-width: 0; padding: 12px 12px 10px; border-radius: 11px; background: rgb(255 255 255 / .022); box-shadow: inset 0 0 0 1px var(--ap-l); transition: opacity .4s ease .1s; }
.lot[data-fase="lendo"] .lot-det, .lot[data-fase="vazio"] .lot-det { opacity: 0; }
.lot-folha { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; border-radius: 11px; background: rgb(255 255 255 / .022); box-shadow: inset 0 0 0 1px var(--ap-l);
  pointer-events: none; transition: opacity .3s ease; }
.lot[data-fase="lote"] .lot-folha { opacity: 0; }
.lot-folha-cab, .lot-linhas li { display: grid; grid-template-columns: 38px 36px minmax(0, 1fr); gap: 8px; align-items: center; padding: 0 12px; }
.p4 .lot-folha-cab { flex: none; height: 30px; font-size: 11px; color: var(--ink-4); border-bottom: 1px solid var(--ap-l); }
.lot-folha-cab span { opacity: 0; transition: opacity .3s ease .3s; }
.lot:not([data-fase="vazio"]) .lot-folha-cab span { opacity: 1; }
.lot-folha-vao { position: relative; flex: 1; min-height: 0; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 66%, transparent); mask-image: linear-gradient(180deg, #000 66%, transparent); }
.lot-linhas { transition: transform .24s var(--curva); }
.lot-linhas.corre { transition: transform 1.35s cubic-bezier(.62, 0, .3, 1); }
.lot-linhas.corre li { opacity: .55; }
.lot-linhas li { position: relative; height: 30px; font-size: 11.5px; color: var(--ink-3); white-space: nowrap; box-shadow: inset 0 -1px 0 rgb(255 255 255 / .045); transition: opacity .2s ease; }
/* antes da planilha, a folha é só o traço das linhas; o texto real entra de cima para baixo */
.lot-linhas li::before { content: ""; position: absolute; left: 12px; top: 13px; width: 68%; height: 4px; border-radius: 2px; background: rgb(255 255 255 / .06); transition: opacity .25s ease; }
.lot-linhas li:nth-child(3n + 2)::before { width: 52%; }
.lot-linhas li:nth-child(3n)::before { width: 60%; }
.lot:not([data-fase="vazio"]) .lot-linhas li::before { opacity: 0; }
.lot-linhas li > * { opacity: 0; transition: opacity .28s ease calc(.3s + var(--n, 0) * 38ms), color .12s ease; }
.lot:not([data-fase="vazio"]) .lot-linhas li > * { opacity: 1; }
.lot-linhas li b { font: 500 11.5px/1 var(--mono); color: var(--ink-2); }
.lot-linhas li span:nth-child(2) { font: 400 11.5px/1 var(--mono); color: var(--ink-4); }
.lot-linhas li span:last-child { overflow: hidden; text-overflow: ellipsis; }
.lot-linhas li.sem span:last-child { color: #eed6a8; }
.lot-linhas li.lida b { color: #d8e5fb; }
.lot-linhas li.saiu { opacity: 0; }
/* a linha que está sendo lida */
.lot-cursor { position: absolute; left: 5px; right: 5px; top: 2px; height: 26px; border-radius: 7px; background: rgb(143 179 238 / .1); box-shadow: inset 0 0 0 1px rgb(143 179 238 / .42); opacity: 0; transition: opacity .25s ease .55s; }
.lot:not([data-fase="vazio"]) .lot-cursor { opacity: 1; }
/* o que voa: a linha que vira lasca da barra */
.lot-voo { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.lot-voa { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.p4 .lot-voa-linha { display: grid; grid-template-columns: 38px 36px minmax(0, 1fr); gap: 8px; align-items: center; padding: 0 12px; overflow: hidden; border-radius: 7px; font-size: 11.5px; color: var(--ink-1); white-space: nowrap;
  background: #26344f; box-shadow: inset 0 0 0 1px rgb(143 179 238 / .55), 0 10px 22px -8px rgb(0 0 0 / .8); }
.lot-voa-linha b { font: 500 11.5px/1 var(--mono); color: #fff; }
.lot-voa-linha span:nth-child(2) { font: 400 11.5px/1 var(--mono); color: var(--ink-3); }
.lot-voa-linha span:last-of-type { overflow: hidden; text-overflow: ellipsis; }
.lot-voa-linha > i { position: absolute; inset: 0; opacity: 0; background: linear-gradient(180deg, #a4c1f3, #6f97dd); }
.p4 .lot-voa-falta { color: #eed6a8; background: #3a3323; box-shadow: inset 0 0 0 1px rgb(201 163 95 / .55), 0 10px 22px -8px rgb(0 0 0 / .8); }
.lot-lasca { width: 28px; height: 3px; border-radius: 1.5px; background: #a4c1f3; box-shadow: 0 0 8px rgb(164 193 243 / .55); }
.lot-lasca.e { background: rgb(143 179 238 / .6); box-shadow: none; }
/* o detalhe e o rodapé */
.lot-det-cab strong, .lot-det-cab small { display: block; }
.lot-det-cab strong { font-size: 13.5px; }
.lot-det-cab small { margin-top: 4px; }
.lot-det ul { display: grid; gap: 10px; margin-top: 13px; }
.lot-det li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 8px; align-items: baseline; font-size: 12px; }
.lot-det li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.lot-det li b { font: 500 11.5px/1.2 var(--mono); color: var(--ink-1); }
.lot-det li i { grid-column: 1 / -1; display: block; height: 4px; border-radius: 2px; overflow: hidden; background: rgb(255 255 255 / .06); }
.lot-det li i::after { content: ""; display: block; height: 100%; width: calc(var(--w) * 100%); border-radius: 2px; background: var(--cor); }
.lot-det.entra ul li i::after { animation: p4-barra .6s var(--curva) both; transform-origin: left; }
@keyframes p4-barra { from { transform: scaleX(0); } to { transform: none; } }
.lot .t-c { --cor: linear-gradient(90deg, #6f97dd, #a4c1f3); }
.lot .t-e { --cor: rgb(143 179 238 / .42); }
.p4 .lot-leg { display: flex; gap: 12px; margin-top: 13px; font-size: 11px; color: var(--ink-4); }
.lot-leg span { display: inline-flex; align-items: center; gap: 5px; }
.lot-leg i { width: 8px; height: 8px; border-radius: 2px; background: var(--cor); }
.lot-pe { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0 0 5px; border-top: 1px solid var(--ap-l); }
.p4 .lot-pe p { display: flex; align-items: baseline; gap: 7px; font-size: 13px; color: var(--ink-3); white-space: nowrap; transition: opacity .3s ease; }
.lot[data-fase="vazio"] .lot-pe p { opacity: 0; }
.lot-pe p small { font-size: 12.5px; color: var(--ink-3); opacity: 0; transform: translateX(-5px); transition: opacity .4s ease .2s, transform .5s var(--curva) .2s; }
.lot-pe b { font: 500 17px/1 var(--mono); color: var(--ink-1); }
.lot.pronta .lot-pe p small { opacity: 1; transform: none; }
/* o botão só acende quando o lote está pronto */
.lot-pe .bt { position: relative; flex: none; opacity: .32; transition: opacity .45s ease .15s; }
.lot.pronta .lot-pe .bt { opacity: 1; }
.lot-pe .bt::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; box-shadow: 0 0 0 1px rgb(255 255 255 / .55), 0 0 24px 5px rgb(164 193 243 / .5); }
.lot.pronta .lot-pe .bt::after { animation: lot-acende 1.25s ease .25s both; }
@keyframes lot-acende { 0%, 100% { opacity: 0; } 34% { opacity: 1; } }
/* a planilha: flutua sobre a folha em branco, que é o que ela vai preencher, e nunca cobre um texto */
.lot-arq { position: absolute; z-index: 6; right: 0; top: 276px; display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 13px; text-align: left;
  background: linear-gradient(180deg, #2a3650, #1b2334); touch-action: none; cursor: grab; rotate: -3deg;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14), inset 0 1px 0 rgb(255 255 255 / .12), 0 24px 40px -14px rgb(0 0 0 / .95);
  transition: translate .9s var(--curva), opacity .35s ease, rotate .3s ease, scale .3s var(--curva), box-shadow .3s ease; animation: lot-flutua 3.4s ease-in-out infinite alternate; }
@keyframes lot-flutua { from { transform: translateY(2px); } to { transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .lot-arq { animation: none; } }
.lot-arq.arrastando { rotate: 0deg; scale: 1.035; cursor: grabbing; animation: none;
  box-shadow: inset 0 0 0 1px rgb(143 179 238 / .4), inset 0 1px 0 rgb(255 255 255 / .14), 0 34px 54px -14px rgb(0 0 0 / 1), 0 0 30px rgb(143 179 238 / .16); }
.lot-arq.mao { transition: rotate .2s ease, scale .2s var(--curva), box-shadow .2s ease; }
.lot-arq-txt strong, .lot-arq-txt small { display: block; white-space: nowrap; }
.lot-arq-txt strong { font: 600 13.5px/1.2 p4Geist, sans-serif; color: var(--ink-1); }
.lot-arq-txt small { margin-top: 3px; font: 400 11.5px/1 p4Geist, sans-serif; color: var(--ink-4); transition: opacity .18s ease; }
.lot:not([data-fase="vazio"]) .lot-arq-txt small { opacity: 0; }    /* a instrução sai antes de o cabeçalho entrar, para as duas legendas não se misturarem */
.lot:not([data-fase="vazio"]) .lot-arq { opacity: 0; rotate: 0deg; scale: 1; animation: none; pointer-events: none; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0), inset 0 1px 0 rgb(255 255 255 / 0), 0 0 0 0 rgb(0 0 0 / 0);
  transition: translate .56s var(--curva), opacity .16s ease .5s, rotate .3s ease, scale .3s var(--curva), box-shadow .4s ease; }
@media (hover: hover) { .lot[data-fase="vazio"] .lot-arq:not(.arrastando):hover { rotate: -1.5deg; scale: 1.02; } }

/* ── "…e ainda": 3 colunas; cada cartão com uma cena que funciona, o nome, uma linha e o que experimentar ── */
.c-ainda { max-width: 1200px; margin: 104px auto 0; }
.p4 .c-ainda-tit { margin-bottom: 34px; text-align: center; font: 300 clamp(28px, 2.6vw, 38px)/1.1 Jost, sans-serif; letter-spacing: -.01em; color: #f1f3f8; }
.p4 .c-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.c-tiles > li { position: relative; display: flex; flex-direction: column; min-width: 0; padding-bottom: 24px; border-radius: 20px; overflow: hidden;
  background: var(--chao); box-shadow: inset 0 0 0 1px var(--linha); transition: box-shadow .3s ease, transform .5s var(--curva); }
@media (hover: hover) { .c-tiles > li:hover { box-shadow: inset 0 0 0 1px rgb(143 179 238 / .26); } }
.c-cena { position: relative; isolation: isolate; height: 240px; margin: 10px 10px 22px; border-radius: 14px; overflow: hidden;
  background: radial-gradient(70% 80% at 50% 30%, rgb(96 140 222 / .17), transparent 72%), linear-gradient(180deg, #111a2b, #0c111b);
  box-shadow: inset 0 0 0 1px rgb(160 188 236 / .11); }
.c-cena::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(rgb(205 220 248 / .09) 1px, transparent 1.3px) 0 0 / 16px 16px;
  -webkit-mask-image: radial-gradient(70% 75% at 50% 40%, #000, transparent); mask-image: radial-gradient(70% 75% at 50% 40%, #000, transparent); }
.p4 .c-tile-nome { padding: 0 24px; font: 500 16.5px/1.35 p4Geist, Inter, sans-serif; letter-spacing: -.01em; color: var(--t1); text-wrap: balance; }
.p4 .c-tile-linha { padding: 8px 24px 0; font: 400 14px/1.5 p4Geist, Inter, sans-serif; color: var(--t3); text-wrap: pretty; }
.c-tile .c-acao { gap: 8px 12px; margin: 14px 24px 0; }
.c-tile .c-tente { font-size: 13px; }
.c-tile .denovo { height: 26px; padding: 0 10px 0 8px; font-size: 12px; }
.c-tile .c-tente svg { width: 16px; height: 16px; }

.v { position: absolute; inset: 20px 24px; display: flex; flex-direction: column; justify-content: center; gap: 8px;
  font: 400 12.5px/1.42 p4Geist, Inter, sans-serif; color: #e3e8ef; }
.v b { font-weight: 600; color: #fff; }
.v time { float: right; margin: 5px 0 -2px 10px; font: 500 10.5px/1 var(--mono); color: #8792a4; }
.b {
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08), inset 0 1px 0 rgb(255 255 255 / .1), 0 18px 30px -16px rgb(0 0 0 / .95);
}
@keyframes p4-bate { 40% { transform: scale(1.1); } }
@keyframes p4-flutua { 50% { transform: translateY(-3px); } }
/* leitor: a folha exportada (na cor do formato) passa pela luz do leitor e as colunas saem reconhecidas */
.v-leitor { align-items: center; gap: 14px; }
.lei-palco { display: flex; align-items: center; gap: 10px; width: 100%; }
.lei-folha[data-f="csv"] { --cor: #4f7fe0; }
.lei-folha[data-f="pdf"] { --cor: #e5483e; }
.lei-folha.entra { animation: p4-folha .6s var(--curva); }
@keyframes p4-folha { from { opacity: 0; transform: translateY(10px) rotate(-7deg) scale(.9); } }
.p4 .lei-tipo { font-weight: 700; color: #fff; }
.lei-fluxo { flex: none; display: flex; gap: 4px; }
.lei-fluxo i { width: 5px; height: 5px; border-radius: 50%; background: rgb(127 209 173 / .35); }
[data-vivo] .lei-fluxo i { animation: p4-flui 1.3s ease-in-out infinite; }
.lei-fluxo i:nth-child(2) { animation-delay: .18s !important; }
.lei-fluxo i:nth-child(3) { animation-delay: .36s !important; }
.v-leitor[data-lendo] .lei-fluxo i { background: #93e2bf; }
@keyframes p4-flui { 0%, 100% { opacity: .35; transform: none; } 45% { opacity: 1; transform: translateX(3px); } }
.p4 .lei-cab { flex: 1; min-width: 0; display: grid; gap: 6px; }
.lei-cab li { position: relative; overflow: hidden; display: grid; align-items: center; height: 30px; padding: 0 10px; border-radius: 9px; background: #172030;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08), inset 0 1px 0 rgb(255 255 255 / .08), 0 12px 22px -14px rgb(0 0 0 / .95); transition: background .3s ease, box-shadow .3s ease; }
.lei-cab li.ok { background: rgb(107 181 151 / .12); box-shadow: inset 0 0 0 1px rgb(107 181 151 / .4), 0 12px 22px -14px rgb(0 0 0 / .95); animation: p4-chip .45s var(--curva); }
@keyframes p4-chip { from { transform: translateX(-8px); } }
.lei-cab s, .lei-cab b { grid-area: 1 / 1; min-width: 0; transition: opacity .3s ease, transform .45s var(--curva); }
.lei-cab s { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; font: 500 11px/1.45 var(--mono); color: #96a1b2; }
.lei-cab b { display: flex; align-items: center; gap: 5px; opacity: 0; transform: translateY(5px); font: 600 12px/1.4 p4Geist, sans-serif; color: #cdeedd; white-space: nowrap; }
.lei-cab svg { width: 12px; height: 12px; flex: none; color: var(--menta); stroke-width: 2.4; }
.lei-cab li.ok s { opacity: 0; transform: translateY(-5px); }
.lei-cab li.ok b { opacity: 1; transform: none; }
.p4 .lei-arq { display: flex; justify-content: center; gap: 6px; }
.lei-arq button { padding: 6px 9px; border-radius: 7px; font: 700 10.5px/1 var(--mono); letter-spacing: .04em; color: var(--ink-3);
  background: rgb(255 255 255 / .04); box-shadow: inset 0 0 0 1px var(--ap-l); transition: color .2s ease, background .2s ease, box-shadow .2s ease; }
@media (hover: hover) { .lei-arq button:hover { color: var(--ink-1); } }
.lei-arq button[aria-selected="true"] { color: #e6eefc; background: rgb(143 179 238 / .18); box-shadow: inset 0 0 0 1px rgb(143 179 238 / .48); }
/* API oficial: os símbolos do WhatsApp e da Meta; o modelo passa pela análise */
.v-meta { align-items: center; gap: 18px; }
.meta-par { display: flex; align-items: center; padding: 6px; border-radius: 18px; background: none; cursor: pointer; }
.meta-wa, .meta-m { display: grid; place-items: center; width: 78px; height: 78px; border-radius: 23px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .42), inset 0 0 0 1px rgb(255 255 255 / .1), inset 0 -3px 8px rgb(0 0 0 / .14), 0 10px 24px -12px var(--brilho, rgb(0 0 0 / .6)), 0 16px 28px -14px rgb(0 0 0 / .95); }
.meta-wa { --brilho: rgb(47 224 122 / .5); color: #fff; background: radial-gradient(130% 80% at 28% -8%, rgb(255 255 255 / .3), transparent 58%), linear-gradient(180deg, #34e381, #1fb257); }
.meta-m { --brilho: rgb(120 160 255 / .45); color: #0866ff; background: linear-gradient(180deg, #ffffff, #e6ecf5); }
.meta-wa svg, .meta-m svg { width: 44px; height: 44px; }
.meta-m { position: relative; }
.meta-m::after { content: ""; position: absolute; inset: -7px; border-radius: 29px; box-shadow: 0 0 0 2px rgb(143 179 238 / .6); opacity: 0; pointer-events: none; }
.meta-fio { position: relative; width: 70px; height: 0; border-top: 2px dashed rgb(205 220 248 / .4); }
.meta-pacote { position: absolute; left: -5px; top: -7px; width: 12px; height: 12px; border-radius: 50%; opacity: 0;
  background: #93e2bf; box-shadow: 0 0 0 3px rgb(127 209 173 / .18), 0 0 12px rgb(127 209 173 / .7); }
.meta-ok { position: absolute; top: -9px; right: -9px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  color: #fff; background: #0866ff; box-shadow: 0 0 0 2px #0f1726, 0 6px 12px -4px rgb(0 0 0 / .8); }
.meta-ok svg { width: 15px; height: 15px; stroke-width: 3; }
/* o envio: o WhatsApp aperta, o pacote corre pelo fio, a Meta acende e o selo de aprovado aparece (só com o badge na tela) */
[data-vivo] .meta-wa { animation: p4-aperta 3.6s var(--curva) infinite; }
[data-vivo] .meta-pacote { animation: p4-pacote 3.6s ease-in-out infinite; }
[data-vivo] .meta-m { animation: p4-chega 3.6s var(--curva) infinite; }
[data-vivo] .meta-m::after { animation: p4-anel 3.6s ease-out infinite; }
[data-vivo] .meta-ok { animation: p4-selo 3.6s var(--curva) infinite; }
@keyframes p4-aperta { 0%, 14%, 100% { transform: none; } 6% { transform: scale(.9); } }
@keyframes p4-pacote { 0%, 6% { opacity: 0; transform: translateX(0) scale(.5); } 14% { opacity: 1; transform: translateX(4px) scale(1); }
  42% { opacity: 1; transform: translateX(66px) scale(1); } 50%, 100% { opacity: 0; transform: translateX(74px) scale(.5); } }
@keyframes p4-chega { 0%, 44%, 62%, 100% { transform: none; } 52% { transform: scale(1.07); } }
@keyframes p4-anel { 0%, 46% { opacity: 0; transform: scale(.92); } 54% { opacity: 1; } 78%, 100% { opacity: 0; transform: scale(1.22); } }
@keyframes p4-selo { 0%, 50% { opacity: 0; transform: scale(0); } 60% { opacity: 1; transform: scale(1.22); } 68%, 90% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(.6); } }
.p4 .meta-nome { text-align: center; font: 600 18px/1.25 p4Geist, sans-serif; color: var(--ink-1); }
.meta-nome small { display: block; margin-top: 6px; font: 500 14px/1 p4Geist, sans-serif; color: var(--ink-3); }
@keyframes p4-gira { to { transform: rotate(360deg); } }
/* balões (escuro) */
.b { align-self: flex-start; max-width: 94%; padding: 8px 11px 7px; border-radius: 13px 13px 13px 4px; background: #1c2433; text-wrap: pretty; }
.b-eu { align-self: flex-end; border-radius: 13px 13px 4px 13px; background: #1b3f33; color: #e6f6ee; }
.b-eu time { color: #94bfac; }
.b-eu time i { color: #7fd1ad; }
.b-fim { box-shadow: inset 0 0 0 1px rgb(143 179 238 / .38), inset 0 1px 0 rgb(255 255 255 / .1), 0 16px 28px -16px #000; }
.chat-sug { align-self: flex-end; display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px 0 14px; border-radius: 999px;
  font: 500 12.5px/1 p4Geist, sans-serif; color: #e6f6ee; background: #1b3f33; box-shadow: inset 0 0 0 1px rgb(127 209 173 / .4), 0 10px 20px -10px #000;
  transition: background .2s ease, opacity .3s ease, transform .35s var(--curva); }
.chat-sug svg { width: 14px; height: 14px; color: #93e2bf; }
@media (hover: hover) { .chat-sug:hover { background: #21503f; } }
/* opt-out: o sino toca (com ondas) enquanto recebe; ao pedido, ganha o corte, a chave desliga e vem a resposta */
.v-opt { gap: 12px; }
.opt-topo { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 15px; background: #151c29;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08), inset 0 1px 0 rgb(255 255 255 / .1), 0 18px 30px -16px rgb(0 0 0 / .95); }
@keyframes p4-toca { 0%, 34%, 100% { transform: none; } 5% { transform: rotate(15deg); } 10% { transform: rotate(-13deg); } 15% { transform: rotate(9deg); } 20% { transform: rotate(-6deg); } 26% { transform: rotate(2deg); } }
[data-vivo] .v-opt[data-st="on"] .opt-onda { animation: p4-onda 2.4s ease-out infinite; }
[data-vivo] .v-opt[data-st="on"] .opt-onda + .opt-onda { animation-delay: .35s; }
@keyframes p4-onda { 0%, 3% { opacity: 0; transform: scale(.92); } 9% { opacity: 1; } 42%, 100% { opacity: 0; transform: scale(1.38); } }
.opt-tex { flex: 1; min-width: 0; }
.p4 .opt-tex b { display: block; font-size: 13px; line-height: 1.2; }
.opt-tex small { display: block; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 11.5px/1.2 p4Geist, sans-serif; color: #9fd8bd; transition: color .3s ease; }
.v-opt[data-st="off"] .opt-tex small { color: #eed6a8; }
.opt-chave { flex: none; position: relative; width: 38px; height: 22px; border-radius: 999px; background: #2fb36d; box-shadow: inset 0 1px 2px rgb(0 0 0 / .3); transition: background .35s ease; }
.opt-chave::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 4px rgb(0 0 0 / .35); transform: translateX(16px); transition: transform .4s var(--curva); }
.v-opt[data-st="off"] .opt-chave { background: #4a5263; }
.v-opt[data-st="off"] .opt-chave::after { transform: none; }
.opt-baixo { position: relative; display: flex; flex-direction: column; align-items: flex-end; min-height: 72px; }
.v-opt[data-st="pedido"] .chat-sug { opacity: .6; transform: scale(.97); }
.v-opt[data-st="off"] .chat-sug { opacity: 0; transform: translateY(-6px); pointer-events: none; }
.opt-resp { position: absolute; top: 0; left: 0; font-size: 12px; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .35s ease, transform .45s var(--curva); }
.v-opt[data-st="off"] .opt-resp { opacity: 1; transform: none; }
/* R73, a caneta da recepção. Sem tecla e sem objeto: o próprio conteúdo é a peça. A marca cai na expressão que o Aurian reconhece de verdade;
   os traços são de caneta (GPT Image, recortados em máscara: img/tm-*.webp) e a cor vem daqui. A tinta sai molhada e seca. */
.c-cena { --tinta: #ecd9ae; }
.tm { position: absolute; display: block; pointer-events: none; visibility: hidden; }
.tm[data-v] { visibility: visible; }
.tm > i { position: absolute; inset: 0; display: block; background: var(--tinta); transition: opacity 1.4s ease;
  -webkit-mask: center / 100% 100% no-repeat; mask: center / 100% 100% no-repeat; }
.tm.seca > i { opacity: .8; }
.tm[data-v="circulo-a"] > i { -webkit-mask-image: url(img/tm-circulo-a.webp); mask-image: url(img/tm-circulo-a.webp); }
.tm[data-v="circulo-b"] > i { -webkit-mask-image: url(img/tm-circulo-b.webp); mask-image: url(img/tm-circulo-b.webp); }
.tm[data-v="circulo-c"] > i { -webkit-mask-image: url(img/tm-circulo-c.webp); mask-image: url(img/tm-circulo-c.webp); }
.tm[data-v="sublinha-a"] > i { -webkit-mask-image: url(img/tm-sublinha-a.webp); mask-image: url(img/tm-sublinha-a.webp); }
.tm[data-v="sublinha-b"] > i { -webkit-mask-image: url(img/tm-sublinha-b.webp); mask-image: url(img/tm-sublinha-b.webp); }
.tm[data-v="duplo-a"] > i { -webkit-mask-image: url(img/tm-duplo-a.webp); mask-image: url(img/tm-duplo-a.webp); }

/* controle das respostas: uma folha de movimento do dia, linha a linha */
.v-rx { gap: 0; justify-content: center; padding-top: 6px; }
.p4 .rx-cab { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 9px; }
.p4 .rx-cab > b { font: 400 16px/1.2 Jost, p4Geist, sans-serif; letter-spacing: .005em; color: #fff; }
.rx-soma { position: relative; flex: none; font: 400 12.5px/1.2 p4Geist, sans-serif; color: #8f9aad; }
.p4 .rx-soma b { display: inline-block; font-weight: 500; color: #e3e8ef; }
.tm-soma { left: -3px; right: -3px; bottom: -8px; height: 6px; }
.p4 .rx-lista { display: block; }
.rx { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: baseline; column-gap: 8px; width: 100%; min-width: 0; height: 38px;
  padding: 10px 0 0; text-align: left; border-top: 1px solid rgb(255 255 255 / .075); cursor: pointer; transition: opacity .35s ease; }
.rx[data-st="nova"] { opacity: .42; }
.rx-quem { font: 400 12px/1.2 p4Geist, sans-serif; color: #8592a6; }
.rx-fala { min-width: 0; white-space: nowrap; font: 400 15px/1.25 Jost, p4Geist, sans-serif; color: #bcc5d3; transition: color .3s ease; }
.rx-fala q { quotes: none; }
.rx-alvo { position: relative; display: inline-block; color: #f4f6f9; transition: margin .28s var(--curva); }
.rx-st { justify-self: end; white-space: nowrap; font: 400 12.5px/1.2 p4Geist, sans-serif; font-style: normal; opacity: 0; transform: translateX(-5px); transition: opacity .4s ease, transform .55s var(--curva); }
.rx[data-st="feito"] .rx-st { opacity: 1; transform: none; }
.rx[data-tom="ok"] .rx-st { color: #c4e8d6; }
.rx[data-tom="az"] .rx-st { color: #d3dff1; }
.rx[data-tom="vi"] .rx-st { color: #ddd3ff; }
.rx[data-tom="pend"] .rx-st { color: #eed6a8; }
@media (hover: hover) { .rx:hover .rx-fala { color: #e3e8ef; } }
.rx:focus-visible { outline: 1px solid rgb(236 217 174 / .6); outline-offset: 2px; border-radius: 3px; }
/* o desenho de cada marca em volta da palavra */
.rx-alvo .tm[data-v^="sublinha"] { left: -2px; right: -3px; bottom: -4px; height: 5px; }
.rx-alvo .tm[data-v^="circulo"] { left: -9px; right: -10px; top: -6px; bottom: -6px; }
/* a volta da caneta precisa de ar: a palavra ao lado abre espaço para ela */
.rx-lista li:nth-child(2) .rx-alvo[data-marca="circulo"] { margin-right: 8px; }
.rx-lista li:nth-child(4) .rx-alvo { margin-left: 8px; }
.rx-lista li:nth-child(4) .rx-alvo .tm[data-v^="circulo"] { right: -8px; }

/* respostas (R74): a resposta sai do botão. Tecla acesa e bolha são uma forma só, desenhada em SVG; mesma matéria verde da mensagem do Lembrete */
[data-cena="respostas"]::before { content: none; }
.c-cena .v-rb { inset: 0; display: block; overflow: hidden; --m: 18px; --topo: 64px; --alt: 36px; --vao: 8px; }
.rb-rolo { position: absolute; z-index: 1; inset: 0; will-change: transform; }
.rb-topo { position: absolute; z-index: 5; left: 0; right: 0; top: 0; height: 24px; background: linear-gradient(180deg, #111a2c, rgb(17 26 44 / 0)); pointer-events: none; }
.p4 .rb-aviso { position: absolute; left: var(--m); right: var(--m); top: 0; white-space: nowrap; overflow: hidden; font: 400 12.5px/18px p4Geist, Inter, sans-serif; color: #8f9aad; }
.rb-aviso b { font-weight: 500; color: #d3dae6; }
.rb-luz { position: absolute; z-index: 0; left: -12%; right: -12%; top: 62px; height: 190px; background: radial-gradient(closest-side, rgb(64 186 146 / .13), transparent); opacity: 0; transition: opacity .9s ease; pointer-events: none; }
.v-rb[data-aberta] .rb-luz { opacity: 1; }
.rb-fundos, .rb-teclas { position: absolute; left: var(--m); right: var(--m); top: var(--topo); height: var(--alt); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rb-fundos { z-index: 1; }
.rb-fundos i { border-radius: 12px; background: linear-gradient(180deg, rgb(255 255 255 / .075), rgb(255 255 255 / .03)); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .085), inset 0 1px 0 rgb(255 255 255 / .08); }
.rb-forma { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; opacity: 0; transition: opacity .13s linear; }
.v-rb[data-aberta] .rb-forma { opacity: 1; }
.rb-teclas { z-index: 3; }
.p4 .rb-tecla { position: relative; display: flex; align-items: center; justify-content: center; gap: 7px; min-width: 0; border-radius: 12px; overflow: hidden; font: 500 13.5px/1 p4Geist, Inter, sans-serif; color: #c3ccda; transition: color .22s ease; }
.rb-tecla svg { width: 14px; height: 14px; color: #84a6d4; transition: color .22s ease; }
.rb-tecla[aria-pressed="true"] { color: #fff; }
.rb-tecla[aria-pressed="true"] svg { color: #8fe6c0; }
.rb-tecla::after { content: ""; position: absolute; inset: 0; background: #fff; opacity: 0; transition: opacity .18s ease; pointer-events: none; }
@media (hover: hover) { .rb-tecla[aria-pressed="false"]:hover { color: #fff; } .rb-tecla[aria-pressed="false"]:hover::after { opacity: .04; } }
.rb-toque { position: absolute; left: 50%; top: 50%; width: 110px; height: 110px; margin: -55px 0 0 -55px; border-radius: 50%; background: rgb(255 255 255 / .2); opacity: 0; pointer-events: none; }
.rb-tecla.bate .rb-toque { animation: rb-toque .62s cubic-bezier(.2, .7, .3, 1); }
@keyframes rb-toque { from { opacity: 1; transform: scale(.12); } to { opacity: 0; transform: scale(1.5); } }
.v-rb.salto, .v-rb.salto * { transition: none !important; }
.rb-dentro { position: absolute; z-index: 3; inset: 0; pointer-events: none; visibility: hidden; }
.v-rb[data-aberta] .rb-dentro { visibility: visible; }
.rb-dentro > * { pointer-events: auto; }
.rb-bolha { position: absolute; left: var(--m); right: var(--m); top: calc(var(--topo) + var(--alt) + var(--vao)); padding: 11px 14px 0; }
.rb-campo { position: relative; isolation: isolate; min-height: 23px; cursor: text; font: 400 18px/23.5px Jost, p4Geist, sans-serif; letter-spacing: .002em; color: #f6faf8; -webkit-font-smoothing: antialiased;
  opacity: 0; transition: opacity .2s ease .06s; }
.v-rb[data-aberta] .rb-campo { opacity: 1; }
.v-rb[data-aberta] .rb-campo.troca { opacity: 0; transform: translateY(5px); transition: opacity .11s linear, transform .11s linear; }
.rb-campo.volta { animation: rb-volta .5s var(--curva); }
@keyframes rb-volta { from { opacity: .3; transform: translateY(5px); } }
.rb-texto { display: block; outline: none; white-space: break-spaces; overflow-wrap: anywhere; caret-color: #c8f7df; }
.p4 .rb-texto:focus-visible { outline: none; }
.rb-sel { position: absolute; z-index: -1; inset: 0; pointer-events: none; }
.rb-sel i { position: absolute; border-radius: 3px; background: rgb(170 240 205 / .3); transform: scaleX(0); transform-origin: 100% 50%; transition: transform .3s linear, opacity .16s ease; }
.rb-sel.on i { transform: none; }
.rb-sel.sai i { opacity: 0; transition-delay: 0s !important; transition-duration: .16s !important; }
.rb-vai { display: inline-block; transition: transform .24s cubic-bezier(.5, 0, .75, .3), opacity .2s ease; }
.rb-vai.foi { transform: translateY(-9px); opacity: 0; }
.rb-caret { position: absolute; left: 0; top: 0; display: none; width: 1.5px; height: 20px; border-radius: 1px; background: #c8f7df; pointer-events: none; }
.v-rb[data-editando] .rb-caret, .c-cena[data-fase="livre"] .v-rb[data-aberta] .rb-caret { display: block; }
.c-cena[data-fase="livre"] .rb-caret { animation: p4-pisca 1.1s steps(1) infinite; }
.rb-caret.some, .rb-texto:focus ~ .rb-caret { visibility: hidden; }
.p4 .rb-meta { position: absolute; left: calc(var(--m) + 14px); right: calc(var(--m) + 12px); top: 0; display: flex; align-items: center; gap: 7px; height: 15px; font: 400 12px/15px p4Geist, Inter, sans-serif; color: rgb(224 240 233 / .66); pointer-events: none; will-change: transform; }
.rb-st { display: inline-grid; height: 15px; overflow: hidden; margin-right: auto; }
.rb-st > span { grid-area: 1 / 1; white-space: nowrap; transition: transform .5s var(--curva), opacity .3s ease; }
.rb-st > span + span { color: #f1dfb2; opacity: 0; transform: translateY(100%); }
.v-rb[data-st="personalizada"] .rb-st > span:first-child { opacity: 0; transform: translateY(-100%); }
.v-rb[data-st="personalizada"] .rb-st > span + span { opacity: 1; transform: none; }
.rb-meta time { float: none; margin: 0; font: 500 11px/15px var(--mono); color: inherit; font-variant-numeric: tabular-nums; }
.rb-seta { position: absolute; z-index: 6; left: 0; top: 0; width: 0; height: 0; opacity: 0; pointer-events: none; transition: transform .62s cubic-bezier(.22, .8, .26, 1), opacity .24s ease; }
.rb-seta.vivo { opacity: 1; }
.rb-seta.arrasta { transition-timing-function: cubic-bezier(.45, .05, .5, .95), ease; }
.rb-seta svg { position: absolute; left: -3px; top: -2px; width: 18px; height: 22px; overflow: visible; filter: drop-shadow(0 3px 4px rgb(0 0 0 / .5)); transition: transform .12s ease; }
.rb-seta.aperta svg { transform: scale(.88); }
.p4 .rb-pe { position: absolute; z-index: 3; left: var(--m); right: var(--m); top: 0; height: 20px; display: flex; align-items: center; justify-content: space-between; gap: 10px; white-space: nowrap; font: 400 12.5px/20px p4Geist, Inter, sans-serif; color: #8f9aad; opacity: 0; transition: opacity .18s ease; pointer-events: none; will-change: transform; }
.v-rb[data-st="personalizada"]:not([data-editando]) .rb-pe { opacity: 1; transition: opacity .4s ease .12s; pointer-events: auto; }
.rb-curto { display: none; }
.rb-rest { flex: none; color: #aab4c4; text-decoration: underline; text-decoration-color: rgb(255 255 255 / .22); text-underline-offset: 3px; transition: color .18s ease; }
@media (hover: hover) { .rb-rest:hover { color: #fff; text-decoration-color: rgb(255 255 255 / .6); } }
/* a largura aqui é a do próprio card (a grade muda de 270 a 371 px em qualquer tela): cede primeiro o que explica, depois o que enfeita, nunca a fala */
[data-cena="triagem"], [data-cena="respostas"] { container: cena / inline-size; }
@container cena (max-width: 359px) { .rx-longo, .rb-longo { display: none; } .rb-curto { display: inline; } }
@container cena (max-width: 339px) {
  .c-cena .v-rx { left: 16px; right: 16px; }
  .c-cena .v-rb { --m: 14px; }
  .rx { grid-template-columns: 33px minmax(0, 1fr) auto; column-gap: 6px; }
  .rx-fala { font-size: 14.5px; }
  .rb-campo { font-size: 17px; line-height: 22.5px; }
  .rb-bolha { padding: 11px 12px 0; }
  .p4 .rb-meta { left: calc(var(--m) + 12px); right: calc(var(--m) + 10px); }
}
@container cena (max-width: 299px) {
  .rx { grid-template-columns: minmax(0, 1fr) auto; }
  .rx-quem { display: none; }
  .rb-campo { font-size: 16.5px; line-height: 21.5px; }
  .p4 .rb-pe { gap: 6px; font-size: 12px; }
  .rb-caret { height: 18px; }
}
/* unidades: o escudo (verde-água, com cadeado e brilho) guarda a Unidade Centro; a Unidade Norte aparece só em vulto */
.v-uni { flex-direction: row; align-items: center; gap: 16px; }
.fig-escudo.segura { animation: p4-bate .45s var(--curva); }
[data-vivo] .un-brilho::before { animation: p4-brilho 3.8s ease-in-out infinite; }
@keyframes p4-brilho { 0%, 52% { opacity: 0; transform: translateX(0) skewX(-18deg); } 58% { opacity: 1; } 84%, 100% { opacity: 0; transform: translateX(300%) skewX(-18deg); } }
.segura .un-anel { animation: p4-segura .9s ease-out; }
@keyframes p4-segura { 0% { opacity: 1; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.6); } }
.un-cartoes { flex: 1; min-width: 0; display: grid; gap: 8px; }
.un-c { position: relative; display: block; width: 100%; padding: 9px 11px 7px; border-radius: 12px; text-align: left; background: #172030;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08), inset 0 1px 0 rgb(255 255 255 / .08), 0 14px 24px -16px rgb(0 0 0 / .95); }
.un-sua { box-shadow: inset 0 0 0 1px rgb(74 216 200 / .45), 0 0 0 4px rgb(74 216 200 / .07), 0 14px 24px -16px #000; }
.p4 .un-c-cab { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; white-space: nowrap; }
.p4 .un-c-cab b { font-size: 12.5px; }
.un-c-cab small { margin-left: auto; font: 500 10.5px/1 var(--mono); color: #7fe0d3; }
.un-c-cab svg { width: 12px; height: 12px; flex: none; stroke-width: 2; color: #8a95a8; transition: color .2s ease; }
.p4 .un-trancada .un-c-cab b { color: #aeb7c4; }
.un-trancada .un-c-cab small { color: #8a95a8; }
.un-c li { display: flex; align-items: center; justify-content: space-between; height: 20px; font-size: 12px; color: #cbd2dd; }
.un-c li span { font: 500 11px/1 var(--mono); color: #8a95a8; }
.un-trancada li i { width: 58%; height: 7px; border-radius: 4px; background: rgb(255 255 255 / .1); }
.un-trancada li span { width: 28px; height: 7px; border-radius: 4px; background: rgb(255 255 255 / .07); }
.un-trancada { transition: background .2s ease; }
@media (hover: hover) { .un-trancada:hover { background: #1c283b; } }
.un-trancada.nega { animation: p4-nega .5s ease; }
.un-trancada.nega .un-c-cab svg { color: var(--ambar); }
@keyframes p4-nega { 0%, 100% { translate: 0 0; } 20% { translate: -6px 0; } 40% { translate: 5px 0; } 60% { translate: -4px 0; } 80% { translate: 2px 0; } }
.un-nega { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: inherit;
  font: 600 12.5px/1 p4Geist, sans-serif; color: #eed6a8; background: rgb(14 19 30 / .9); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.un-nega svg { width: 14px; height: 14px; stroke-width: 2; }
.v-uni[data-nega] .un-nega { opacity: 1; }

/* ── R37 ── */
/* leitor: enquanto lê, a luz corre pelos pontos e passa por cada coluna; a coluna reconhecida entra com o ✓ */
.v-leitor[data-lendo] .lei-fluxo i { animation-duration: .7s !important; }
.lei-cab li::after { content: ""; position: absolute; inset: 0; opacity: 0; pointer-events: none; transform: translateX(-100%);
  background: linear-gradient(100deg, transparent 20%, rgb(150 255 205 / .2) 46%, rgb(150 255 205 / .04) 62%, transparent 76%); }
.v-leitor[data-lendo] .lei-cab li:not(.ok)::after { opacity: 1; animation: p4-brilho-chip .85s ease-in-out infinite; }
@keyframes p4-brilho-chip { to { transform: translateX(100%); } }
.lei-cab li.ok svg { animation: p4-ok .45s var(--curva) .08s both; }
@keyframes p4-ok { from { transform: scale(0) rotate(-35deg); } }
.lei-folha.entra { animation: p4-entra-arq .6s var(--curva); }
@keyframes p4-entra-arq { from { opacity: 0; transform: translateY(10px) scale(.9); } }
.lei-arq button { transition: color .3s ease, background .3s ease, box-shadow .3s ease; }
/* opt-out: barrada, a tecla apaga para cinza (só nesse momento) */
.fig-msg::before { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0; transition: opacity .5s ease;
  background: radial-gradient(130% 80% at 28% -8%, rgb(255 255 255 / .22), transparent 58%), linear-gradient(180deg, #8b919c, #59606b); }
.v-opt[data-st="off"] .fig-msg::before { opacity: 1; }
.v-opt[data-st="off"] .fig-msg { --brilho: rgb(0 0 0 / .45); }

/* ── R36: emblemas em camadas; o código só dá vida (só transform e opacity em laço) ── */
.tec-dentro { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
/* leitor: a folha parada; o mini leitor varre de cima para baixo, a luz dele acende as linhas que passa e volta */
.lei-pag, .lei-luz, .lei-barra { position: absolute; inset: 0; }
.lei-pag { background: url(img/leitor-folha.webp) 50% 46% / 128% no-repeat; filter: drop-shadow(0 2px 2px rgb(0 0 0 / .16)); }
.lei-luz { -webkit-mask: url(img/leitor-folha.webp) 50% 46% / 128% no-repeat; mask: url(img/leitor-folha.webp) 50% 46% / 128% no-repeat; }
.lei-luz::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 16%; opacity: 0;
  background: linear-gradient(180deg, rgb(140 255 200 / .75), rgb(140 255 200 / 0)); transform: translateY(-40%); }
.lei-barra { background: url(img/leitor-leitor.webp) 50% 50% / 100% no-repeat; transform: translateY(-38%); filter: drop-shadow(0 3px 3px rgb(0 0 0 / .25)); }
.lei-barra::after { content: ""; position: absolute; left: 10%; right: 10%; top: 59%; height: 7%; border-radius: 50%; opacity: .55;
  background: radial-gradient(closest-side, rgb(150 255 205 / .95), rgb(150 255 205 / 0)); }
[data-vivo] .lei-barra { animation: p4-varre 3.2s cubic-bezier(.45, 0, .3, 1) infinite; }
[data-vivo] .lei-luz::before { animation: p4-varre-luz 3.2s cubic-bezier(.45, 0, .3, 1) infinite; }
[data-vivo] .lei-barra::after { animation: p4-laser 3.2s ease-in-out infinite; }
@keyframes p4-varre { 0%, 6% { transform: translateY(-38%); } 58%, 66% { transform: translateY(30%); } 100% { transform: translateY(-38%); } }
@keyframes p4-varre-luz { 0%, 6% { opacity: 0; transform: translateY(-40%); } 12% { opacity: 1; } 56% { opacity: 1; } 58% { transform: translateY(380%); } 64%, 100% { opacity: 0; transform: translateY(380%); } }
@keyframes p4-laser { 0%, 6%, 66%, 100% { opacity: .35; } 12%, 58% { opacity: 1; } }
.v-leitor[data-lendo] .lei-barra::after { opacity: 1; }
/* opt-out: a mensagem chega (com ondas) enquanto a pessoa recebe; ao pedido, a placa de proibido carimba e o balão apaga */
.fig-msg { --t: 72px; --c1: #f58c2e; --c2: #db690c; --brilho: rgb(245 140 46 / .45); }
.msg-balao { position: absolute; inset: 0; background: url(img/optout-balao.webp) 50% 48% / 120% no-repeat; transition: filter .5s ease, opacity .5s ease;
  filter: drop-shadow(0 2px 2px rgb(0 0 0 / .16)); }
[data-vivo] .v-opt[data-st="on"] .msg-balao { animation: p4-msg 2.4s cubic-bezier(.2, .8, .2, 1) infinite; }
@keyframes p4-msg { 0% { opacity: 0; transform: translateY(26%) scale(.86); } 16% { opacity: 1; transform: none; } 78% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: translateY(-14%) scale(.96); } }
.v-opt[data-st="pedido"] .msg-balao { animation: p4-nega .5s ease; }
.v-opt[data-st="off"] .msg-balao { filter: saturate(.15) brightness(.82) drop-shadow(0 2px 2px rgb(0 0 0 / .16)); }
.msg-placa { position: absolute; right: -27%; bottom: -27%; width: 92%; height: 92%; opacity: 0; pointer-events: none;
  background: url(img/optout-placa.webp) 50% 50% / 100% no-repeat; filter: drop-shadow(0 4px 6px rgb(0 0 0 / .4));
  transform: scale(1.7) rotate(-24deg); transition: opacity .25s ease, transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.v-opt[data-st="off"] .msg-placa { opacity: 1; transform: none; }

/* figurinhas (R35): a mesma tecla do WhatsApp (cor cheia, luz no topo, sombra) com um emblema ilustrado próprio de cada
   recurso (GPT Image: branco, tons e um acento dourado, recortado com a cor real em img/); o código só dá vida.
   Só transform e opacity em laço. */
.tec { position: relative; flex: none; display: block; width: var(--t); height: var(--t); border-radius: calc(var(--t) * .28);
  background: radial-gradient(130% 80% at 28% -8%, rgb(255 255 255 / .3), transparent 58%), linear-gradient(180deg, var(--c1), var(--c2)); box-shadow: inset 0 1px 0 rgb(255 255 255 / .42), inset 0 0 0 1px rgb(255 255 255 / .1), inset 0 -3px 8px rgb(0 0 0 / .14), 0 10px 24px -12px var(--brilho, rgb(0 0 0 / .6)), 0 16px 28px -14px rgb(0 0 0 / .95); }
.tec-s { position: absolute; inset: 0; background: center / 118% no-repeat; filter: drop-shadow(0 1.5px 1.5px rgb(0 0 0 / .14)); }
/* leitor: a tecla toma a cor do formato e a luz do leitor passa por ela */
.lei-folha { --t: 84px; --c1: #22b678; --c2: #039259; --brilho: rgb(34 182 120 / .45); }
.lei-folha[data-f="csv"] { --c1: #6f9dff; --c2: #3263dc; --brilho: rgb(111 157 255 / .45); }
.lei-folha[data-f="pdf"] { --c1: #ff7466; --c2: #d4372d; --brilho: rgb(255 116 102 / .45); }
.lei-tipo { position: absolute; left: 50%; bottom: -9px; display: grid; place-items: center; height: 18px; padding: 0 6px; border-radius: 6px; transform: translateX(-50%);
  font: 700 9.5px/1 var(--mono); letter-spacing: .06em; color: #fff; background: #0f1726; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .18); }
/* opt-out: o sino toca (com ondas) enquanto recebe; ao pedido, a tecla apaga e ganha o corte */
.opt-onda { position: absolute; inset: -4px; border-radius: 21px; box-shadow: 0 0 0 2px rgb(255 200 103 / .55); opacity: 0; pointer-events: none; }
/* unidades: a tecla verde-água com o brilho que passa; ao espiar a outra unidade, o anel segura */
.fig-escudo { --t: 88px; --c1: #33c9bd; --c2: #099992; --brilho: rgb(51 201 189 / .45); }
.fig-escudo .tec-s { background-image: url(img/unidades.webp); }
.un-brilho { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; pointer-events: none; }
.un-brilho::before { content: ""; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 45%; opacity: 0;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / .45), transparent); transform: skewX(-18deg); }
.un-anel { position: absolute; inset: -5px; border-radius: 25px; box-shadow: 0 0 0 2px rgb(74 216 200 / .75); opacity: 0; pointer-events: none; }

/* ── entrada: o card sobe; a cena já está no começo e o roteiro começa quando o palco aparece ── */
.p4-anima .c-card { transition: opacity .8s ease var(--d, 0ms), transform .9s var(--curva) var(--d, 0ms); }
.p4-anima .c-card:not(.visto) { opacity: 0; transform: translateY(14px); }
.p4-anima .c-tiles > li { transition: opacity .7s ease var(--d, 0ms), transform .8s var(--curva) var(--d, 0ms), box-shadow .3s ease; }
.p4-anima .c-tiles > li:not(.visto) { opacity: 0; transform: translateY(12px); }
.calmo .p4 *, .calmo .p4 *::before, .calmo .p4 *::after { transition: none !important; animation: none !important; }

/* ── telas médias: as peças largas encolhem; abaixo de 1100 a grade vira uma coluna ── */
@media (max-width: 1340px) {
  .p4 .c-largo h3 { font-size: 29px; }
  .c-largo .c-txt { padding-left: 44px; }
  .c-inverso .c-txt { padding: 64px 44px 64px 24px; }
  :is(.enc, .lot) { zoom: .88; }
  .lm { zoom: .84; }
}
@media (max-width: 1100px) {
  .c-grade { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
  .c-largo, .c-inverso { display: flex; min-height: 0; }
  .c-largo .c-txt, .c-inverso .c-txt { align-self: stretch; padding: 44px 48px 0; }
  .c-largo .palco, .c-inverso .palco { order: 0; margin: 30px 22px 22px; min-height: 500px; }
  :is(.enc, .lot) { zoom: 1; }
  .lm { zoom: 1; }
  .p4 .c-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c-ainda { max-width: 760px; }
}
@media (max-width: 760px) {
  .p4 { padding: 104px 16px 100px; }
  .p4 .p4-sub { font-size: 16px; }
  .p4-cab { margin-bottom: 44px; }
  .c-grade { border-radius: 20px; }
  .c-txt, .c-largo .c-txt, .c-inverso .c-txt { padding: 32px 24px 0; }
  .p4 .c-txt h3, .p4 .c-largo h3 { margin-top: 16px; font-size: 23px; }
  .p4 .c-frase { font-size: 14.5px; }
  .c-acao { margin-top: 16px; }
  .p4 .c-tente { font-size: 13.5px; }
  .palco, .c-largo .palco, .c-inverso .palco { flex: none; margin: 24px 12px 12px; min-height: 0; height: 380px; border-radius: 16px; }
  /* no celular, cada peça fica mais estreita para caber sem ficar miúda */
  .c-encaixe .palco { height: 400px; }
  .enc { width: 420px; height: 476px; zoom: .78; }
  .enc-kpis small { font-size: 11px; }
  .enc-tec { --t: 50px; }
  .enc-vaga { gap: 12px; padding: 12px; }
  .enc-dr { display: none; }
  .enc-aviso { width: calc(100% - 16px); gap: 10px; }
  .c-lote .palco { height: 470px; }
  .lot { width: 420px; height: 570px; zoom: .78; }
  .lot-jan { left: 0; width: 420px; height: 570px; }
  .lot-zona small { display: none; }
  .lot-graf { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .lot-trilho { height: 118px; }
  .lot-det ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 14px; }
  .lot-leg { display: none; }
  .lot-arq { right: 22px; top: 392px; }
  .lot-nome small { white-space: normal; }
  /* lembrete: a roda em cima, a mensagem embaixo (o sinal só existe lado a lado) */
  .c-lem .palco { height: auto; padding: 20px 0 18px; }
  .lm { display: flex; flex-direction: column; width: calc(100% - 28px); zoom: 1; }
  .lm-rot-a { order: 1; }
  .lm-agenda { order: 2; height: 196px; margin-top: 6px; }
  .p4 .lm-rot-b { order: 3; margin-top: 14px; padding-left: 16px; }
  .lm-saida { order: 4; height: 128px; margin-top: 8px; -webkit-mask-image: none; mask-image: none; }
  .lm-sinal { display: none; }
  .lm-roda { --raio: 118px; }
  .lm-lin { padding: 0 14px; gap: 12px; }
  .lm-lin span { font-size: 18px; }
  .p4 .lm-st { right: 13px; }
  .lm-bal[data-pos="ant"], .lm-bal[data-pos="fora"] { opacity: 0; }
  /* modelos: passo a passo (só o passo da vez com nome), a frase, o compositor, o celular cortado e o selo sobre ele */
  .c-mod .palco { height: auto; place-items: start center; }
  .mo { display: flex; flex-direction: column; width: 100%; height: auto; padding: 18px 10px 0; }
  .p4 .mo-passos { position: static; gap: 6px; }
  .p4 .mo-passo { font-size: 13px; line-height: 1.25; gap: 7px; }
  .p4 .mo-passo[data-st="vivo"] { flex: 0 1 auto; min-width: 0; }
  .mo-passo:not([data-st="vivo"]) span { display: none; }
  .p4 .mo-legenda { position: static; min-height: 2.9em; margin: 12px 2px 12px; font-size: 14px; }
  .mo-jan { position: relative; left: auto; top: auto; width: 100%; }
  .mo-jan .jan-tit { flex: none; }
  .mo-jan .jan-meta { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .p4 .mo-leg-cel { display: none; }
  .mo-pilha { position: relative; left: auto; top: auto; align-self: center; width: 100%; max-width: 320px; height: 236px; margin-top: 8px; }
  .mo-conv { top: 66px; }
  .p4 .mo-selo { position: relative; left: auto; top: auto; bottom: auto; align-self: center; margin-top: 16px; transform: none; }
  .c-ainda { margin-top: 80px; }
}
@media (max-width: 600px) {
  .p4 .c-tiles { display: grid; grid-auto-flow: column; grid-auto-columns: 290px; grid-template-columns: none; gap: 12px; overflow-x: auto;
    margin: 0 -16px; padding: 2px 16px 8px; scroll-snap-type: x mandatory; scroll-padding: 16px; scrollbar-width: none; }
  .p4 .c-tiles::-webkit-scrollbar { display: none; }
  .c-tiles > li { scroll-snap-align: start; }
  .v { inset: 20px 18px; }
  /* no carrossel as figurinhas encolhem um pouco para as peças caberem inteiras */
  .lei-cab svg, .un-c-cab small { display: none; }
  .opt-tex small { white-space: normal; }
  .v-uni { gap: 12px; }
}
@media (max-width: 400px) {
  .enc, .lot { zoom: .74; }
}
@media (max-width: 600px) {
  .lei-folha { --t: 70px; }
  .meta-wa, .meta-m { width: 66px; height: 66px; border-radius: 20px; }
  .meta-wa svg, .meta-m svg { width: 38px; height: 38px; }
  .meta-fio { width: 56px; }
  .fig-msg { --t: 58px; }
  .fig-escudo { --t: 72px; }
}

/* ── R78/R79 · "…e ainda" no celular ──
   R78 (founder 2026-11-09: "no celular essa parte não ficou legal"): o cartão de 290 px deixava meio cartão vizinho com o texto
   cortado e nada dizia quantos eram. Um cartão por tela, só a borda do próximo (28 px); pontos embaixo; "Toque…" no pé.
   R79 ("ainda ficou ruim de passar para o lado"): o cartão ocupa meia tela e o gesto de lado disputa com a rolagem da página,
   então entram as setas ‹ › (um cartão por toque) e cada deslize anda exatamente um cartão (scroll-snap-stop).
   Navegação montada no geral.js §6. Acima de 600 px nada muda. */
.c-nav { display: none; }
@media (max-width: 600px) {
  .p4 .c-tiles { grid-auto-columns: calc(100% - 24px); overscroll-behavior-x: contain; }
  .c-tiles > li { scroll-snap-stop: always; }
  .c-tile .c-acao { margin-top: auto; padding-top: 16px; }
  .c-nav { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; }
  .c-pontos { display: flex; }
  .c-pontos button { position: relative; width: 18px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; transition: width .35s var(--curva); }
  .c-pontos button::before { content: ""; position: absolute; left: 5px; right: 5px; top: 10px; height: 8px; border-radius: 4px; background: rgb(205 220 248 / .22); transition: background .3s ease; }
  .c-pontos button[aria-current="true"] { width: 34px; }
  .c-pontos button[aria-current="true"]::before { background: #dbe4f5; }
  /* seta: alvo de 44 px (dedo), círculo de vidro escuro com a borda fina do cartão */
  .c-seta { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
    color: #dbe4f5; background: rgb(255 255 255 / .04); box-shadow: inset 0 0 0 1px rgb(205 220 248 / .16), inset 0 1px 0 rgb(255 255 255 / .06);
    -webkit-tap-highlight-color: transparent; transition: opacity .25s ease, background .2s ease, transform .2s var(--curva); }
  .c-seta svg { width: 16px; height: 16px; }
  .c-seta:active:not(:disabled) { transform: scale(.92); background: rgb(255 255 255 / .09); }
  .c-seta:disabled { opacity: .3; cursor: default; }
  :is(.c-pontos button, .c-seta):focus-visible { outline: 2px solid #8fb3ee; outline-offset: -2px; }
  .c-pontos button:focus-visible { border-radius: 8px; }
}
