:root {
  --pri: #004aac;
  --pri2: #2f6de6;
  --tint: #e6eefb;
  --tintfg: #004aac;
  --sub: #d6e4ff;
  --bg: #f5f4f4;
  --ink: #101010;
  --muted: #4a4f5c;
  --soft: #5b6478;
  --line: #e3e6ee;
  --red: #c10019;
  --redbg: #fdecee;
  --green: #17633f;
  --greenbg: #e3f3ea;
  --amber: #8a4b00;
  --amberbg: #fff1dc;
  --ft: 'Red Hat Display', 'Montserrat', sans-serif;
  --fb: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --top: max(18px, env(safe-area-inset-top));
  --bottom: max(12px, env(safe-area-inset-bottom));
}
body[data-empresa="comunidade"] {
  --pri: #051f5d;
  --pri2: #315dc1;
  --tint: #e9effb;
  --tintfg: #2a52ad;
  --sub: #c9d6f5;
  --bg: #f4f6fb;
  --ft: 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--fb); font-size: 16px; line-height: 1.4; font-style: normal; }
em, i, cite, address { font-style: normal; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
img, video { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--pri2); outline-offset: 2px; }

#app { max-width: 560px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); }
.carregando { padding: 40vh 20px 0; text-align: center; color: var(--muted); }
.conteudo { flex: 1; padding: 16px 20px 24px; display: flex; flex-direction: column; gap: 14px; }

/* Faixa de topo com a marca */
.faixa { background: var(--pri); color: #fff; padding: calc(var(--top) + 10px) 20px 18px; border-radius: 0 0 28px 28px; display: flex; flex-direction: column; gap: 14px; }
.faixa-linha { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faixa h1 { font-family: var(--ft); font-size: 30px; line-height: 36px; font-weight: 700; }
.faixa .sobre { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sub); }
.logo-esc { width: 116px; height: 52px; object-fit: contain; object-position: right center; flex-shrink: 0; }
.logo-com { width: 132px; height: 38px; object-fit: contain; object-position: right center; flex-shrink: 0; }

.troca { display: flex; gap: 2px; padding: 3px; border-radius: 14px; background: rgba(255, 255, 255, 0.16); }
.troca button { flex: 1; height: 44px; border: 0; border-radius: 11px; background: transparent; color: #fff; font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; }
.troca button[aria-pressed="true"] { background: #fff; color: var(--pri); }
.contador { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.24); color: #fff; }
.troca button[aria-pressed="true"] .contador { background: var(--red); }

.abas { display: flex; gap: 2px; padding: 3px; border-radius: 11px; background: #e3e6ee; }
.abas button { flex: 1; height: 40px; border: 0; border-radius: 8px; background: transparent; font-size: 13px; font-weight: 600; color: var(--muted); }
.abas button[aria-pressed="true"] { background: #fff; color: var(--pri); box-shadow: 0 1px 3px rgba(5, 31, 93, 0.18); }

/* Cartões */
.cartao { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 18px; background: #fff; box-shadow: 0 1px 2px rgba(5, 31, 93, 0.08); }
.chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.chip { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--tint); color: var(--tintfg); }
.chip.rede { background: var(--pri); color: #fff; font-weight: 700; }
.chip.ambar { background: var(--amberbg); color: var(--amber); }
.chip.verde { background: var(--greenbg); color: var(--green); }
.chip.vermelho { background: var(--redbg); color: var(--red); }
.cartao .titulo { font-size: 17px; line-height: 22px; font-weight: 700; color: var(--pri); }
.cartao .trecho { font-size: 14px; line-height: 20px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cartao .rodape { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid #e8eaf0; font-size: 12px; color: var(--soft); }
.cartao .rodape strong { color: var(--pri); font-weight: 700; }
.linha-arte { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--tintfg); }
.com-seta { display: flex; align-items: flex-start; gap: 8px; }
.com-seta > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.seta { flex-shrink: 0; color: #8a93a8; margin-top: 2px; }

.vazio { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 40px 20px; text-align: center; }
.vazio strong { font-family: var(--ft); font-size: 20px; color: var(--pri); }
.vazio span { font-size: 14px; color: var(--muted); }

/* Início */
.inicio { flex: 1; padding: calc(var(--top) + 14px) 20px 28px; display: flex; flex-direction: column; gap: 16px; }
.inicio .data { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #004aac; }
.inicio h1 { font-family: 'Red Hat Display', 'Montserrat', sans-serif; font-size: 32px; line-height: 38px; font-weight: 800; }
.inicio .frase { font-size: 15px; line-height: 21px; color: var(--muted); }
.empresa { display: flex; flex-direction: column; gap: 16px; padding: 20px; border-radius: 24px; }
.empresa.esc { background: #004aac; color: #fff; }
.empresa.com { background: #fff; color: #051f5d; border: 2px solid #051f5d; }
.empresa .topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.empresa .rotulo { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #d6e4ff; }
.empresa.com .rotulo { color: #315dc1; }
.empresa .marca { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.empresa.esc .marca img { width: 190px; height: 86px; object-fit: contain; object-position: left center; }
.empresa.com .marca img { width: 200px; height: 57px; object-fit: contain; object-position: left center; }
.pendencias { flex-shrink: 0; min-width: 96px; padding: 10px 12px; border-radius: 16px; background: #fff; display: flex; flex-direction: column; align-items: center; color: #d0021b; }
.empresa.com .pendencias { background: #fdecee; color: #c10019; }
.pendencias b { font-family: 'Red Hat Display', 'Montserrat', sans-serif; font-size: 34px; line-height: 38px; font-weight: 800; }
.pendencias span { font-size: 12px; font-weight: 700; }
.pendencias.zero { color: #17633f; }
.entradas { display: flex; flex-direction: column; gap: 8px; }
.entrada { min-height: 60px; padding: 10px 12px 10px 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.14); display: flex; align-items: center; gap: 12px; }
.empresa.com .entrada { background: #eaf0fb; }
.entrada > div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.entrada b { font-size: 16px; font-weight: 700; }
.entrada span { font-size: 13px; font-weight: 500; color: #d6e4ff; }
.empresa.com .entrada span { color: #3d4a6b; }
.empresa.com .entrada svg { color: #315dc1; }
.rodape-inicio { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }

/* Detalhe */
.topo-detalhe { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: calc(var(--top) + 6px) 12px 6px; }
.voltar { min-height: 44px; display: inline-flex; align-items: center; gap: 2px; padding: 0 8px; font-size: 17px; color: var(--pri2); font-weight: 600; border: 0; background: transparent; }
.detalhe { flex: 1; padding: 6px 20px 24px; display: flex; flex-direction: column; gap: 16px; }
.detalhe h1 { font-family: var(--ft); font-size: 26px; line-height: 32px; font-weight: 700; color: var(--pri); }
.detalhe h2 { font-family: var(--ft); font-size: 20px; font-weight: 700; color: var(--pri); }
.meta { font-size: 13px; line-height: 18px; color: var(--soft); }
.aviso { display: flex; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--tint); }
.aviso svg { flex-shrink: 0; color: var(--tintfg); margin-top: 1px; }
.aviso b { display: block; font-size: 13px; color: var(--pri); }
.aviso span { font-size: 14px; line-height: 20px; color: #24304d; white-space: pre-line; }
.aviso.vermelho { background: var(--redbg); }
.aviso.vermelho svg, .aviso.vermelho b { color: var(--red); }
.aviso.verde { background: var(--greenbg); }
.aviso.verde svg, .aviso.verde b { color: var(--green); }
.texto-caixa { padding: 18px; border-radius: 18px; background: #fff; box-shadow: 0 1px 2px rgba(5, 31, 93, 0.08); font-size: 16px; line-height: 25px; color: #1b2233; white-space: pre-line; overflow-wrap: anywhere; }
.cabeca-secao { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.cabeca-secao span { font-size: 13px; color: var(--soft); }

.galeria { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 0 20px 6px; -webkit-overflow-scrolling: touch; }
.galeria .midia { flex-shrink: 0; width: 78%; max-width: 340px; scroll-snap-align: center; border-radius: 14px; overflow: hidden; background: #dfe3ec; position: relative; }
.galeria.unica .midia { width: 100%; max-width: none; }
.galeria img { width: 100%; height: auto; }
.galeria video { width: 100%; max-height: 70vh; background: #101010; }
.galeria .pos { position: absolute; top: 10px; right: 10px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: rgba(16, 16, 16, 0.6); color: #fff; }

.roteiro { border-radius: 18px; background: #fff; box-shadow: 0 1px 2px rgba(5, 31, 93, 0.08); overflow: hidden; }
.roteiro section { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border-bottom: 1px solid #e8eaf0; }
.roteiro section:last-child { border-bottom: 0; }
.roteiro h3 { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tintfg); }
.roteiro p { font-size: 18px; line-height: 28px; color: #1b2233; white-space: pre-line; overflow-wrap: anywhere; }
.roteiro .gancho { background: var(--pri); }
.roteiro .gancho h3 { color: var(--sub); }
.roteiro .gancho p { color: #fff; font-size: 19px; line-height: 27px; font-weight: 600; }

/* Botões e campos */
.btn { min-height: 52px; padding: 0 18px; border: 0; border-radius: 14px; font-size: 16px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.btn.pri { background: var(--pri); color: #fff; }
.btn.azul { background: var(--pri2); color: #fff; }
.btn.linha { background: #fff; color: var(--tintfg); border: 1.5px solid var(--pri2); }
.btn.neutro { background: #fff; color: #24304d; border: 1.5px solid #c3cbdc; }
.btn.perigo { background: #fff; color: var(--red); border: 1.5px solid #d9525f; }
.btn.vermelho { background: var(--red); color: #fff; }
.btn.texto { background: transparent; color: var(--pri2); min-height: 44px; }
.btn.menor { min-height: 46px; font-size: 15px; align-self: flex-start; }
.btn:disabled { background: #e3e6ee; color: var(--soft); border-color: transparent; cursor: default; }
.campo { display: flex; flex-direction: column; gap: 6px; }
.campo label, .rotulo-campo { font-size: 14px; font-weight: 700; color: var(--pri); }
.campo .dica { font-size: 12px; line-height: 17px; color: var(--soft); }
.campo input, .campo select, .campo textarea { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid #c3cbdc; background: #fff; font-size: 16px; line-height: 22px; color: #1b2233; outline: none; }
.campo textarea { resize: vertical; min-height: 110px; }
.campo textarea.alto { min-height: 340px; border: 2px solid var(--pri2); }
.campo input:focus, .campo select:focus, .campo textarea:focus { border-color: var(--pri2); box-shadow: 0 0 0 3px rgba(47, 109, 230, 0.18); }
.duas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.envio { position: relative; min-height: 56px; padding: 8px 14px; border-radius: 14px; border: 1.5px dashed var(--pri2); background: var(--tint); color: var(--tintfg); font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center; cursor: pointer; }
.envio input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.ou { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; color: var(--soft); }
.ou::before, .ou::after { content: ''; flex: 1; height: 1px; background: #d5dbe8; }
.com-botao { display: flex; gap: 8px; }
.com-botao input { flex: 1; min-width: 0; }
.anexo { display: flex; align-items: center; gap: 12px; padding: 12px 8px 12px 14px; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(5, 31, 93, 0.08); }
.anexo .ico { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; background: var(--tint); color: var(--tintfg); display: flex; align-items: center; justify-content: center; }
.anexo > div:nth-child(2) { flex: 1; min-width: 0; }
.anexo b { display: block; font-size: 15px; color: var(--pri); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.anexo span { font-size: 13px; color: var(--muted); }
.lista-arquivos { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }

/* Barras fixas */
.barra { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: 12px 20px var(--bottom); display: flex; flex-direction: column; gap: 10px; }
.barra .lado { display: flex; gap: 10px; }
.barra .lado > * { flex: 1; }
.nav { position: sticky; bottom: 0; display: flex; padding: 8px 16px var(--bottom); background: #fff; border-top: 1px solid var(--line); }
.nav a { flex: 1; min-height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--soft); font-size: 11px; font-weight: 600; }
.nav a[aria-current="page"] { color: var(--pri); font-weight: 700; }
.fab { position: sticky; bottom: calc(76px + var(--bottom)); align-self: flex-end; margin: 0 20px 12px 0; min-height: 52px; padding: 0 20px; border: 0; border-radius: 26px; background: var(--pri); color: #fff; font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 6px 16px rgba(5, 31, 93, 0.3); }

/* Calendário da semana */
.semana { display: flex; gap: 4px; }
.semana button { flex: 1; height: 64px; border: 0; border-radius: 16px; padding: 0; background: transparent; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.semana button.hoje { background: rgba(255, 255, 255, 0.18); }
.semana button[aria-pressed="true"] { background: #fff; color: var(--pri); }
.semana small { font-size: 11px; font-weight: 600; opacity: 0.85; }
.semana b { font-size: 18px; font-weight: 700; }
.semana .ponto { width: 6px; height: 6px; border-radius: 3px; background: transparent; }
.semana .ponto.tem { background: #b9cdf8; }
.semana button[aria-pressed="true"] .ponto.tem { background: var(--pri); }
.redondo { width: 44px; height: 44px; border: 0; border-radius: 22px; background: rgba(255, 255, 255, 0.14); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.progresso { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.progresso > div:first-child { display: flex; justify-content: space-between; }
.progresso > div:first-child span { color: var(--sub); }
.trilho { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.2); overflow: hidden; }
.trilho div { height: 6px; border-radius: 3px; background: #9fbcf7; }
.grupo { display: flex; flex-direction: column; gap: 8px; }
.grupo h2 { font-size: 15px; font-weight: 700; color: var(--pri); display: flex; gap: 8px; align-items: baseline; }
.grupo h2 span { font-size: 12px; color: var(--tintfg); }
.item-roteiro { flex-direction: row; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; }
.item-roteiro .bola { width: 40px; height: 40px; border-radius: 20px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--tint); color: var(--tintfg); }
.item-roteiro .bola.feito { background: var(--greenbg); color: var(--green); }
.item-roteiro > div:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.item-roteiro .titulo { font-size: 16px; line-height: 21px; }

/* Folha de rejeição */
.fundo-folha { position: fixed; inset: 0; z-index: 20; display: flex; flex-direction: column; justify-content: flex-end; background: rgba(16, 16, 16, 0.45); }
.folha { width: 100%; max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; padding: 12px 20px var(--bottom); border-radius: 24px 24px 0 0; background: #fff; }
.folha .alca { align-self: center; width: 40px; height: 5px; border-radius: 3px; background: #c3cbdc; }
.folha h2 { font-family: var(--ft); font-size: 22px; color: var(--pri); }

/* Login */
.login { flex: 1; display: flex; flex-direction: column; }
.login .faixa { align-items: flex-start; padding-bottom: 28px; }
.login .faixa img { width: 210px; height: 96px; object-fit: contain; object-position: left center; }
.login form, .login .demo { padding: 24px 20px; display: flex; flex-direction: column; gap: 14px; }
.erro { font-size: 14px; font-weight: 600; color: var(--red); }

#toast { position: fixed; left: 50%; bottom: calc(96px + var(--bottom)); transform: translateX(-50%); z-index: 40; max-width: min(90vw, 480px); padding: 12px 16px; border-radius: 14px; background: #101010; color: #fff; font-size: 14px; font-weight: 600; text-align: center; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
#toast.visivel { opacity: 1; }
@media (prefers-reduced-motion: reduce) { #toast { transition: none; } }

.entrada .atraso { color: #ffb3b3; font-weight: 700; }
.empresa.com .entrada .atraso { color: var(--red); }
.item-roteiro .chips { gap: 6px; }

.escolha { border: 0; margin: 0; padding: 0; min-width: 0; }
.escolha legend { padding: 0; margin-bottom: 6px; }
.opcao { min-height: 50px; padding: 0 14px; border-radius: 14px; border: 1.5px solid #c3cbdc; background: #fff; display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; color: #1b2233; cursor: pointer; }
.opcao input { width: 20px; height: 20px; margin: 0; accent-color: var(--pri2); }
.opcao:has(input:checked) { border-color: var(--pri2); background: var(--tint); color: var(--tintfg); }

.tres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tres .opcao { padding: 0 10px; font-size: 15px; line-height: 1.2; }
@media (max-width: 360px) { .tres { grid-template-columns: 1fr; } }
a.anexo { color: inherit; }

[hidden] { display: none !important; }
.opcao input { flex-shrink: 0; }

/* Estrutura completa do roteiro (27/11/2026) */
.aviso.ambar { background: var(--amberbg); }
.aviso.ambar svg, .aviso.ambar b { color: var(--amber); }
.aviso ul, .aviso ol { margin: 6px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 20px; color: #3a2a10; }
.noticia { display: flex; flex-direction: column; gap: 10px; }
.noticia .cartao p { font-size: 15px; line-height: 22px; color: #1b2233; }
.noticia .cartao b { color: var(--pri); }
.roteiro .tag-tela { align-self: flex-start; font-size: 14px; font-weight: 700; padding: 6px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.18); color: #fff; }
.roteiro section.alt { background: #f7f8fb; }
.roteiro section.alt p { font-size: 16px; line-height: 24px; color: #3d4a6b; }
.dobra { border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(5, 31, 93, 0.08); }
.dobra summary { min-height: 52px; padding: 14px 16px; display: flex; align-items: center; font-size: 15px; font-weight: 700; color: var(--pri); cursor: pointer; list-style: none; }
.dobra summary::-webkit-details-marker { display: none; }
.dobra summary::after { content: '+'; margin-left: auto; font-size: 22px; line-height: 1; color: var(--tintfg); }
.dobra[open] summary::after { content: '\2212'; }
.dobra ol { margin: 0; padding: 0 16px 16px 34px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 22px; color: #1b2233; }
.na-tela { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.na-tela .par { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 12px; background: var(--tint); }
.na-tela .trecho { font-size: 13px; font-weight: 600; color: var(--soft); }
.na-tela .tela { font-size: 15px; line-height: 21px; color: #1b2233; }
.galeria .legenda { margin: 0; padding: 8px 10px; font-size: 13px; line-height: 18px; color: #24304d; background: #fff; }
.roteiro mark.pendente { background: #fff1dc; color: #8a4b00; font-weight: 700; padding: 1px 4px; border-radius: 6px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.roteiro .gancho h3.destaque { align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: #fff; color: var(--pri); font-size: 14px; font-weight: 800; letter-spacing: 0.1em; }
.parte { margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.parte h2 { font-size: 19px; }
.lista-prints { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }

/* pendência no último dia (28/11) */
.semana .ponto.prazo { background: #ff6b7a; width: 8px; height: 8px; border-radius: 4px; }
.semana button[aria-pressed="true"] .ponto.prazo { background: var(--red); }
.grupo.alerta h2 { color: var(--red); }
.cartao.item-roteiro.ultimo { flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden; box-shadow: 0 0 0 2px var(--red), 0 1px 2px rgba(5, 31, 93, 0.08); }
.faixa-ultimo { display: flex; align-items: center; gap: 6px; padding: 8px 16px; background: var(--red); color: #fff; font-size: 13px; font-weight: 700; }
.faixa-ultimo svg { width: 16px; height: 16px; flex: none; }
.cartao.item-roteiro.ultimo > .linha-r { flex-direction: row; display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; }
.item-roteiro .linha-r > div:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }

/* ---------- tela Hoje (29/11) ---------- */
.hoje-tela { flex: 1; display: flex; flex-direction: column; }
.hoje-topo { background: var(--pri); color: #fff; padding: calc(var(--top) + 6px) 20px 58px; border-radius: 0 0 28px 28px; display: flex; flex-direction: column; gap: 22px; }
.hoje-linha { display: flex; align-items: center; gap: 12px; }
.hoje-linha .logo-esc { width: 84px; height: 40px; opacity: .95; }
.avatar-btn { border: 0; padding: 0; background: none; border-radius: 50%; flex: none; }
.avatar { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: rgba(255, 255, 255, .2); color: #fff; font-family: var(--ft); font-weight: 800; font-size: 15px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .55); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.grande { width: 64px; height: 64px; font-size: 20px; background: var(--tint); color: var(--pri); box-shadow: none; flex: none; }
.ola { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ola small { font-size: 12.5px; opacity: .82; }
.ola b { font-family: var(--ft); font-size: 18px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.heroi { display: flex; flex-direction: column; gap: 6px; }
.heroi .rot { font-size: 13px; font-weight: 600; opacity: .85; }
.heroi .num { display: flex; align-items: baseline; gap: 10px; font-family: var(--ft); }
.heroi .num b { font-size: 60px; line-height: 58px; font-weight: 800; font-variant-numeric: tabular-nums; }
.heroi .num span { font-size: 22px; font-weight: 700; }
.pilula { align-self: flex-start; margin-top: 6px; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: #fff; color: var(--pri); }
.pilula.ambar { color: var(--amber); }
.pilula.vermelho { color: var(--red); }
.atalhos { margin: -36px 16px 0; padding: 16px 6px 12px; border-radius: 20px; background: #fff; box-shadow: 0 8px 24px rgba(8, 30, 80, .10); display: grid; grid-template-columns: repeat(4, 1fr); }
.atalhos.n3 { grid-template-columns: repeat(3, 1fr); }
.atalho { border: 0; background: none; padding: 2px 0; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; line-height: 16px; text-align: center; color: var(--ink); }
.atalho .bola { width: 56px; height: 56px; border-radius: 50%; background: #f0f1f5; color: var(--ink); display: grid; place-items: center; position: relative; transition: transform .15s ease-out; }
.atalho:active .bola { transform: scale(.94); }
.atalho .bola em { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--red); color: #fff; font-style: normal; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; }
.bloco { padding: 20px 20px 0; display: flex; flex-direction: column; gap: 12px; }
.bloco h2 { font-family: var(--ft); font-size: 17px; font-weight: 700; color: var(--ink); display: flex; align-items: baseline; justify-content: space-between; }
.bloco h2 small { font-family: var(--fb); font-size: 13px; font-weight: 600; color: var(--muted); }
.bloco h2.vermelho { color: var(--red); }
.bloco h2.ambar { color: var(--amber); }
.dias { display: grid; grid-template-columns: repeat(7, 1fr); padding: 14px 8px 12px; border-radius: 20px; background: #fff; box-shadow: 0 1px 2px rgba(8, 30, 80, .06); }
.dias div { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.dias small { font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.dias b { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.dias .hoje b { background: var(--pri); color: #fff; }
.dias .pontos { display: flex; gap: 3px; height: 6px; }
.dias .pontos i { width: 6px; height: 6px; border-radius: 50%; background: var(--pri2); }
.dias .hoje .pontos i { background: var(--red); }
.filtros { display: flex; gap: 8px; padding: 20px 20px 0; overflow-x: auto; scrollbar-width: none; }
.filtros::-webkit-scrollbar { display: none; }
.filtros button { flex: none; height: 36px; padding: 0 14px; border: 0; border-radius: 999px; font-size: 13.5px; font-weight: 600; background: #fff; color: var(--muted); box-shadow: 0 1px 2px rgba(8, 30, 80, .06); }
.filtros button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.tarefa { display: grid; grid-template-columns: 46px 1fr 20px; gap: 12px; align-items: center; padding: 14px 12px 14px 14px; border-radius: 18px; background: #fff; box-shadow: 0 1px 2px rgba(8, 30, 80, .06); transition: transform .15s ease-out; }
.tarefa:active { transform: scale(.985); }
.tarefa .ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #f0f1f5; color: var(--ink); }
.tarefa .corpo { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tarefa .tit { font-size: 15.5px; line-height: 21px; font-weight: 600; color: var(--ink); text-wrap: balance; }
.tarefa .meta { font-size: 13px; color: var(--muted); }
.tarefa .prazo { font-size: 13px; font-weight: 700; color: var(--muted); }
.tarefa .prazo.ambar { color: var(--amber); }
.tarefa .prazo.vermelho { color: var(--red); }
.tarefa .prazo.verde { color: var(--green); }
.tarefa > .seta { color: #a5adbd; }
.tarefa.ultimo { box-shadow: 0 0 0 1.5px var(--red), 0 6px 16px rgba(193, 0, 25, .10); }
.tarefa.ultimo .ico { background: var(--redbg); color: var(--red); }
.tarefa.feito { opacity: .62; }
.tarefa.feito .ico { background: var(--greenbg); color: var(--green); }
.folga { height: 28px; flex: none; }
.perfil-topo { display: flex; align-items: center; gap: 14px; }
.perfil-topo h2 { color: var(--ink); }
.perfil-topo span { font-size: 13.5px; color: var(--muted); word-break: break-all; }
.perfil-linha { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 16px; background: #f4f5f8; }
.perfil-linha > div { display: flex; flex-direction: column; gap: 2px; }
.perfil-linha b { font-size: 15px; }
.perfil-linha span { font-size: 13.5px; color: var(--muted); }
.folha.perfil { animation: folha-sobe .22s ease-out; }
@keyframes folha-sobe { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .folha.perfil { animation: none; } .atalho .bola, .tarefa { transition: none; } }

/* ---------- revisão de experiência (29/11) ---------- */
#app.entra { animation: tela-entra .18s ease-out; }
@keyframes tela-entra { from { opacity: 0; } to { opacity: 1; } }

/* esqueleto de carregamento */
.esqueleto { flex: 1; display: flex; flex-direction: column; }
.esqueleto .e-topo { height: 250px; border-radius: 0 0 28px 28px; background: var(--pri); opacity: .92; }
.esqueleto .e-corpo { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.esqueleto .e-linha, .esqueleto .e-cartao { display: block; border-radius: 18px; background: linear-gradient(90deg, #e6e8ee 0%, #f1f2f6 45%, #e6e8ee 90%); background-size: 200% 100%; animation: brilho 1.2s linear infinite; }
.esqueleto .e-linha { height: 18px; width: 45%; border-radius: 9px; }
.esqueleto .e-cartao { height: 86px; }
@keyframes brilho { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* navegação com contador */
.nav-ico { position: relative; display: grid; place-items: center; }
.nav-ico em { position: absolute; top: -5px; left: 14px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-style: normal; font-size: 11px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; }

/* listas */
.tarefa .trecho-1 { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grupo { display: flex; flex-direction: column; gap: 12px; }
.grupo h2 { font-family: var(--ft); font-size: 17px; color: var(--ink); }
.grupo.alerta h2 { color: var(--red); }
.progresso > div:first-child { gap: 12px; align-items: baseline; }
.progresso > div:first-child span { text-align: right; }
.vazio-ico { width: 64px; height: 64px; border-radius: 50%; background: #eceef3; color: var(--muted); display: grid; place-items: center; margin-bottom: 6px; }
.vazio strong { color: var(--ink); }
.conteudo { padding-bottom: 28px; }

/* cabeçalho das telas de detalhe */
.cab-det { display: flex; flex-direction: column; gap: 6px; }
.cab-det .sobre-det { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tintfg); }
.cab-det h1 { color: var(--ink); text-wrap: balance; }
.cab-det .linha-det { font-size: 14px; color: var(--muted); }
.cab-det .prazo-det { font-size: 14px; font-weight: 700; color: var(--muted); }
.cab-det .prazo-det.vermelho { color: var(--red); }
.cab-det .prazo-det.ambar { color: var(--amber); }
.cab-det .prazo-det.verde { color: var(--green); }
.atalhos.plano { margin: 0; box-shadow: 0 1px 2px rgba(8, 30, 80, .06); }
.atalhos.n2 { grid-template-columns: repeat(2, 1fr); }
#entrega { scroll-margin-top: 16px; border-radius: 16px; }
#entrega.pisca { animation: pisca 1.2s ease-out; }
@keyframes pisca { 0%, 40% { box-shadow: 0 0 0 6px var(--tint); background: var(--tint); } 100% { box-shadow: 0 0 0 6px transparent; background: transparent; } }
.barra .btn svg { flex: none; }

/* confirmação de tarefa concluída */
.sucesso { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px; background: rgba(10, 15, 25, .5); animation: tela-entra .18s ease-out; }
.sucesso.saindo { opacity: 0; transition: opacity .25s ease-in; }
.sucesso-cartao { width: min(320px, 100%); padding: 28px 24px 24px; border-radius: 28px; background: #fff; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; animation: sucesso-sobe .32s cubic-bezier(.2, .9, .3, 1.2); }
.sucesso-visto { width: 84px; height: 84px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; margin-bottom: 10px; animation: sucesso-pulo .45s cubic-bezier(.2, .9, .3, 1.4) .08s both; }
.sucesso-visto path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: sucesso-traco .35s ease-out .3s forwards; }
.sucesso-cartao b { font-family: var(--ft); font-size: 22px; color: var(--ink); }
.sucesso-cartao span { font-size: 15px; color: var(--muted); }
@keyframes sucesso-sobe { from { transform: translateY(16px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sucesso-pulo { from { transform: scale(.4); } to { transform: scale(1); } }
@keyframes sucesso-traco { to { stroke-dashoffset: 0; } }

/* teleprompter */
.tele { position: fixed; inset: 0; z-index: 70; background: #0b0d12; color: #fff; display: flex; flex-direction: column; }
.tele-topo { display: flex; align-items: center; gap: 8px; padding: calc(var(--top) + 2px) 12px 8px; }
.tele-titulo { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; color: #aeb6c6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tele-btn { min-width: 48px; height: 48px; padding: 0 12px; border: 0; border-radius: 24px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 17px; font-weight: 700; display: inline-grid; place-items: center; }
.tele-btn:active { background: rgba(255, 255, 255, .22); }
.tele-texto { flex: 1; overflow-y: auto; padding: 34vh 24px 60vh; font-family: var(--fb); font-size: 32px; line-height: 1.38; font-weight: 600; scrollbar-width: none; -webkit-overflow-scrolling: touch; outline: none; }
.tele-texto::-webkit-scrollbar { display: none; }
.tele-texto p { margin: 0 0 .75em; }
.tele-texto .tele-rot { font-size: 13px; line-height: 18px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #7f8aa3; margin: 1.4em 0 .6em; }
.tele-texto .tele-rot:first-child { margin-top: 0; }
.tele-texto .tele-fim { font-size: 15px; font-weight: 600; color: #7f8aa3; text-align: center; padding-top: 24px; }
.tele-texto mark { background: #ffd800; color: #101010; border-radius: 4px; padding: 0 4px; }
.tele-guia { position: absolute; left: 0; right: 0; top: 34vh; height: 2px; margin-top: 22px; background: linear-gradient(90deg, #2f6de6, transparent 12%, transparent 88%, #2f6de6); opacity: .9; pointer-events: none; z-index: 1; }
.tele-conta { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; font-family: var(--ft); font-size: 120px; font-weight: 800; background: rgba(11, 13, 18, .72); pointer-events: none; }
.tele-barra { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 8px; padding: 10px 16px var(--bottom); background: linear-gradient(#0b0d1200, #0b0d12 30%); }
.tele-grupo { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; color: #aeb6c6; }
.tele-grupo:last-child { align-items: flex-end; }
.tele-grupo > div { display: flex; gap: 6px; }
.tele-play { width: 68px; height: 68px; border: 0; border-radius: 50%; background: #fff; color: #0b0d12; display: grid; place-items: center; }
.tele.rodando .tele-topo, .tele.rodando .tele-grupo { opacity: .35; transition: opacity .3s; }

@media (prefers-reduced-motion: reduce) { #app.entra, .sucesso, .sucesso-cartao, .sucesso-visto, .sucesso-visto path, .esqueleto .e-linha, .esqueleto .e-cartao, #entrega.pisca { animation: none; } .sucesso-visto path { stroke-dashoffset: 0; } }

/* ---------- logo legível e tela de escolha da empresa (29/11) ---------- */
.marca-esc { display: inline-flex; align-items: center; gap: 10px; color: #fff; flex-shrink: 0; font-family: 'Red Hat Display', 'Montserrat', sans-serif; }
.marca-esc img { width: 46px; height: 46px; object-fit: contain; }
.marca-esc > span { display: flex; flex-direction: column; gap: 2px; line-height: 1.15; }
.marca-esc b { font-size: 13.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.marca-esc small { font-size: 10.5px; font-weight: 600; letter-spacing: .34em; text-transform: uppercase; opacity: .88; }
.marca-esc.grande img { width: 76px; height: 76px; }
.marca-esc.grande b { font-size: 18px; }
.marca-esc.grande small { font-size: 12px; }
.marca-esc.so-cc img { width: 42px; height: 42px; }
.logo-com.menor { width: 104px; height: 30px; }
.hoje-topo .troca { margin-top: -6px; }

.escolha { flex: 1; display: flex; flex-direction: column; gap: 16px; padding: calc(var(--top) + 8px) 20px 0; }
.escolha-topo { display: flex; align-items: center; gap: 12px; }
.escolha-topo .ola { color: var(--ink); }
.escolha-topo .ola small { color: var(--muted); opacity: 1; }
.avatar.claro { background: var(--tint); color: var(--pri); box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--line); }
.escolha-titulo { display: flex; flex-direction: column; gap: 6px; padding-top: 8px; }
.escolha-titulo h1 { font-family: 'Red Hat Display', 'Montserrat', sans-serif; font-size: 28px; line-height: 34px; font-weight: 800; color: var(--ink); text-wrap: balance; }
.escolha-titulo p { font-size: 15px; color: var(--muted); }
.empresa-cartao { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 24px; color: #fff; box-shadow: 0 8px 24px rgba(8, 30, 80, .16); transition: transform .15s ease-out; }
.empresa-cartao:active { transform: scale(.985); }
.empresa-cartao.esc { background: #004aac; }
.empresa-cartao.com { background: #051f5d; }
.ec-marca { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; }
.ec-marca .logo-com { width: 190px; height: 54px; object-position: left center; }
.ec-marca .marca-esc img { width: 52px; height: 52px; }
.ec-marca .marca-esc b { font-size: 15px; }
.ec-marca .seta { width: 24px; height: 24px; opacity: .8; flex: none; }
.ec-num { display: flex; align-items: baseline; gap: 10px; font-family: 'Red Hat Display', 'Montserrat', sans-serif; }
.ec-num b { font-size: 54px; line-height: 52px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ec-num span { font-size: 18px; font-weight: 700; }
.empresa-cartao.com .pilula { color: #051f5d; }
.empresa-cartao .pilula { margin-top: 0; }
.empresa-cartao .pilula.ambar { color: var(--amber); }
.empresa-cartao .pilula.vermelho { color: var(--red); }
@media (prefers-reduced-motion: reduce) { .empresa-cartao { transition: none; } }
.ola small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo-com.menor { width: 92px; height: 28px; }
.faixa-linha .marca-esc.so-cc img { width: 48px; height: 48px; }
.faixa-linha > div:last-child { display: flex; gap: 8px; flex: none; }
.faixa-linha .marca-esc { min-width: 0; }
.faixa-linha .marca-esc img { width: 42px; height: 42px; }
.faixa-linha .marca-esc b { font-size: 12.5px; letter-spacing: .1em; }
