/* Mini page do chat 04 (prefixo s04-). As telas montadas pelo chat (link do cliente, checklist de saída, quadro em zoom)
   trazem aqui o estilo delas, porque a página própria da função não carrega o CSS do bloco da home.
   Fora dos aparelhos: variáveis --n-*. Dentro: tokens do design system do app, em `em`. */
.s04-f {
  --s04-sombra-chave: 0 0 0 1px rgb(11 16 32 / 0.06), 0 6px 14px -6px rgb(11 16 32 / 0.35);
  --s04-sombra-papel: 0 0 0 1px rgb(11 16 32 / 0.06), 0 2px 4px rgb(11 16 32 / 0.04), 0 28px 48px -24px rgb(11 16 32 / 0.3);
  --s04-vidro: rgb(255 255 255 / 0.72);
  --s04-pauta: rgb(11 16 32 / 0.07);
  --s04-brilho: rgb(47 85 240 / 0.28);
  --s04-brilho-0: rgb(47 85 240 / 0);
  --s04-tinta-caneta: #1b2a8a;
  --s04-barra: #eef1f8;
  --s04-luz: rgb(255 255 255 / 0.16);
  --s04-some-0: rgb(244 246 251 / 0);
  --s04-some-1: rgb(244 246 251 / 0.96);
}
.s04-f .s04-so-leitor { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* parado (?parado=1) ou movimento reduzido: nasce no estado final, sem transição nem animação */
.s04-parado, .s04-parado *, .s04-parado *::before, .s04-parado *::after { animation: none !important; transition: none !important; }
/* as telas dentro dos iPhones em zoom: a letra parte de 4,7cqw, sem a cápsula de baixo do app */
.s04-f .ms-iphone .t-cel { font-size: 4.7cqw; }
.s04-f .ms-iphone .t-pl .plate__band { font-size: 0; }
.s04-f .ms-iphone .t-doca { display: none; }
.s04-f .ms-iphone .t-cel--patio, .s04-f .ms-iphone .t-cel--clientes, .s04-f .ms-iphone .t-cel--hoje { padding-bottom: 1.2em; }
.s04-f .ms-iphone .stamp__when { font-size: .8em; }
.s04-f .ms-iphone .t-av { font-size: .9em; }
.s04-f .ms-iphone .t-etp small, .s04-f .ms-iphone .t-abas__i b { font-size: .9em; }
.s04-f .s04-f-palco { align-content: center; gap: 18px; }
.s04-f .s04-denovo { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 14px 0 0; border: 0; border-radius: 999px; background: transparent; font-size: 0.9375rem; font-weight: 650; color: var(--n-azul); cursor: pointer; transition-property: scale, color; transition-duration: var(--n-rapido); transition-timing-function: var(--n-curva); }
.s04-f .s04-denovo:hover { color: var(--n-azul-vivo); }
.s04-f .s04-denovo:active { scale: 0.96; }
.s04-f .s04-denovo[hidden] { display: none; }
.s04-f .s04-denovo .icon { width: 16px; height: 16px; stroke-width: 2; }

/* ---------- trazido do bloco 6: a tela do link do cliente ---------- */
.s04-f .s04-lk { gap: .6em; padding-bottom: .6em; }
.s04-f .s04-lk__capa { flex: none; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.s04-f .s04-lk__capa img { width: 100%; height: 4.4em; object-fit: cover; }
.s04-f .s04-lk__id { display: flex; flex-direction: column; align-items: flex-start; gap: .15em; padding: .5em .7em .55em; }
.s04-f .s04-lk__id b { font: var(--weight-bold) 1.3em/1.1 var(--font-display); }
.s04-f .s04-lk__agora { --estrada: var(--accent-on-dark); --estrada-tinta: var(--surface-inverse); --apagado: var(--text-inverse-muted); flex: none; display: grid; gap: .45em; padding: .85em .9em; border-radius: var(--radius-xl); background: var(--surface-inverse); color: var(--text-inverse); box-shadow: var(--shadow-deep); }
.s04-f .s04-lk[data-tom="pronto"] .s04-lk__agora { --estrada: var(--text-on-accent); --estrada-tinta: var(--success); --apagado: var(--text-on-accent); background: var(--success); color: var(--text-on-accent); }
.s04-f .s04-lk__topo { display: flex; align-items: center; justify-content: space-between; gap: .5em; font-size: .8em; color: var(--apagado); font-variant-numeric: tabular-nums; }
.s04-f .s04-lk__eta { display: inline-flex; align-items: center; gap: .3em; padding: .2em .65em; border-radius: var(--radius-full); background: var(--surface-inverse-raised); white-space: nowrap; }
.s04-f .s04-lk__eta[data-marcada] { color: var(--text-inverse); font-weight: var(--weight-semibold); }
.s04-f .s04-lk__eta .icon { width: 1.05em; height: 1.05em; }
.s04-f .s04-lk__titulo { font: var(--weight-bold) 1.75em/1.05 var(--font-display); }
.s04-f .s04-lk__linha { display: flex; align-items: flex-start; gap: .4em; margin: 0; font-size: .9em; color: var(--apagado); }
.s04-f .s04-lk__estrada { display: flex; align-items: center; height: 2.6em; margin: .15em 0 0; padding: 0; list-style: none; }
.s04-f .s04-lk__estrada li { position: relative; flex: 1; display: grid; place-items: center; height: 100%; }
.s04-f .s04-lk__estrada li::before { content: ""; position: absolute; right: 50%; top: 50%; width: 100%; border-top: .13em dashed var(--apagado); opacity: .5; }
.s04-f .s04-lk__estrada li:first-child::before { content: none; }
.s04-f .s04-lk__estrada li[data-estado="feita"]::before, .s04-f .s04-lk__estrada li[data-estado="atual"]::before { margin-top: -.13em; border-top: .26em solid var(--estrada); opacity: 1; transform-origin: left; animation: s04-pintar 360ms var(--n-curva) both; animation-delay: calc(var(--i) * 60ms); }
.s04-f .s04-lk__estrada i { position: relative; z-index: 1; display: grid; place-items: center; border-radius: var(--radius-full); }
.s04-f .s04-lk__estrada li[data-estado="feita"] i { width: 1.3em; height: 1.3em; background: var(--estrada); color: var(--estrada-tinta); }
.s04-f .s04-lk__estrada li[data-estado="feita"] .icon { width: .85em; height: .85em; stroke-width: 3; }
.s04-f .s04-lk__estrada li[data-estado="falta"] i { width: .8em; height: .8em; border: .13em solid var(--apagado); background: var(--estrada-tinta); }
.s04-f .s04-lk__estrada li[data-estado="atual"] i { width: 2.6em; height: 2.6em; background: var(--estrada); color: var(--estrada-tinta); box-shadow: var(--shadow-raised); animation: s04-chegar 420ms var(--n-curva) both; animation-delay: calc(var(--i) * 60ms); }
.s04-f .s04-lk__estrada li[data-estado="atual"] .icon { width: 1.4em; height: 1.4em; }
@keyframes s04-pintar { from { transform: scaleX(0); } }
@keyframes s04-chegar { from { transform: translateX(-1.5em) scale(.7); opacity: 0; } }
.s04-f .s04-lk__pernas { display: grid; gap: .25em; margin: 0; padding-top: .5em; border-top: 1px solid var(--surface-inverse-raised); font-size: .8em; }
.s04-f .s04-lk__pernas div { display: grid; grid-template-columns: 5.2em minmax(0, 1fr); gap: .6em; color: var(--apagado); }
.s04-f .s04-lk__pernas dd { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s04-f .s04-lk__pernas div[data-agora] { color: inherit; font-weight: var(--weight-semibold); }
.s04-f .s04-lk__botao { display: flex; align-items: center; justify-content: center; gap: .4em; min-height: 2.7em; margin-top: .15em; border-radius: var(--radius-md); background: var(--text-inverse); color: var(--surface-inverse); font-weight: var(--weight-semibold); font-size: .95em; }
.s04-f .s04-lk__partes { display: flex; gap: .35em; flex: none; overflow: hidden; }
.s04-f .s04-lk__partes .t-chip { flex: none; }
.s04-f .s04-lk__marcos { flex: none; gap: .1em; }
.s04-f .s04-lk__marco { display: grid; grid-template-columns: 1.9em minmax(0, 1fr) auto; align-items: center; gap: .6em; padding-block: .42em; border-bottom: 1px solid var(--border); font-size: .9em; }
.s04-f .s04-lk__marco:last-child { border-bottom: 0; }
.s04-f .s04-lk__marco > i { display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: var(--radius-sm); background: var(--surface-sunken); color: var(--text-muted); }
.s04-f .s04-lk__marco:first-of-type > i { background: var(--accent-soft); color: var(--accent-text); }
.s04-f .s04-lk__marco time { font-size: .9em; color: var(--text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.s04-f .s04-lk__ok { display: flex; align-items: flex-start; gap: .45em; flex: none; margin: 0; padding: .6em .7em; border: 1px solid var(--success-border); border-radius: var(--radius-md); background: var(--success-soft); color: var(--success-text); font-size: .78em; line-height: 1.35; }

/* ---------- desta ficha ---------- */
.s04-f .s04-lk__ok { font-size: .82em; }
.s04-f .s04-lk__ok .icon { margin-top: .1em; }
/* parte 1: a folha de mandar o link */
.s04-f .s04-ml__msg { min-height: 0; padding: .8em .9em; line-height: 1.45; }
.s04-f .s04-ml .t-btn { min-height: 3em; font-size: 1em; }
.s04-f .s04-ml__msg b { color: var(--accent-text); overflow-wrap: anywhere; }
/* parte 2: o alto do link em recorte ampliado (fora do aparelho, na escala da página) */
.s04-f .s04-recorte { width: min(100%, 24em); font-size: clamp(16px, 1.55vw, 20px); line-height: var(--leading-snug); text-align: left; }
.s04-f .s04-recorte .icon { width: 1.15em; height: 1.15em; flex: none; }
.s04-f .s04-recorte .s04-lk { display: grid; padding: 0; }
.s04-f .s04-recorte .s04-lk__agora { padding: 1.2em 1.25em 1.3em; gap: .6em; }
.s04-f .s04-recorte .s04-lk__pernas dd { white-space: normal; }
.s04-f .s04-recorte__c { justify-self: center; }
/* parte 3: as fotos que o cliente vê */
.s04-f .s04-lk__fotos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5em; flex: none; }
.s04-f .s04-lk__fotos figure { display: grid; gap: .25em; margin: 0; }
.s04-f .s04-lk__fotos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-md); outline: 1px solid var(--border); outline-offset: -1px; }
.s04-f .s04-lk__fotos figcaption { font-size: .8em; color: var(--text-muted); }
/* parte 4: a conferência (Trava.tsx) */
.s04-f .s04-trava { flex: none; gap: .7em; }
.s04-f .s04-trava p { margin: 0; font-size: .9em; line-height: 1.45; }
.s04-f .s04-trava__in { gap: .6em; min-height: 3.1em; font: var(--weight-bold) 1.2em/1 var(--font-display); letter-spacing: .12em; color: var(--text-subtle); }
.s04-f .s04-trava__in .icon { color: var(--text-muted); }
.s04-f .s04-trava .t-btn { min-height: 3em; font-size: 1em; }
.s04-f .s04-trava__link { align-self: center; font-size: .85em; font-weight: var(--weight-semibold); color: var(--accent-text); text-decoration: underline; text-underline-offset: .2em; }
