/* =====================================================================
   APP Entregas — site e app (cliente, entregador, empresa)
   Paleta da logo: preto #0B0B0B · vermelho #E00000 / #B80000 · prata #F0F0F0 · amarelo #FFC20E
   Mobile first; botões grandes na área do entregador (uso com uma mão).
   ===================================================================== */
:root {
  --preto: #0B0B0B; --grafite: #161616; --grafite-2: #222; --vermelho: #E00000; --vermelho-esc: #B80000; --vermelho-claro: #FFE5E5;
  --amarelo: #FFC20E; --amarelo-esc: #E0A800; --prata: #F0F0F0; --branco: #fff;
  --bg: #F4F4F5; --surface: #fff; --surface-2: #FAFAFA; --ink: #111; --muted: #5B5B66; --line: #E2E2E6;
  --ok: #138A4A; --ok-bg: #E3F6EC; --espera: #8A5A00; --espera-bg: #FFF4D6; --erro: #B80000; --erro-bg: #FFE5E5; --info: #1D4F91; --info-bg: #E5EEFB;
  --raio: 16px; --raio-sm: 10px;
  --sombra: 0 1px 2px rgba(0,0,0,.06), 0 12px 30px -16px rgba(0,0,0,.35);
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --text: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --topo-h: 64px; --abas-h: 64px;
}
*, *::before, *::after { box-sizing: border-box }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--text); font-size: 1rem; line-height: 1.55; -webkit-font-smoothing: antialiased }
body.com-abas { padding-bottom: calc(var(--abas-h) + env(safe-area-inset-bottom)) }
h1, h2, h3, h4 { line-height: 1.15; margin: 0; font-weight: 800; letter-spacing: -.01em }
h1 { font-size: clamp(1.7rem, 4.5vw, 2.4rem) }
h2 { font-size: clamp(1.3rem, 3.2vw, 1.7rem) }
p { margin: 0 }
a { color: var(--vermelho-esc) }
img { max-width: 100%; height: auto }
.ico { width: 20px; height: 20px; flex: none; vertical-align: middle }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px }
.estreito { max-width: 560px }
.muted { color: var(--muted) }
.sr, .pular:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }
.pular:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px }

/* ---------- topo ---------- */
.topo { position: sticky; top: 0; z-index: 40; background: var(--preto); color: #fff; border-bottom: 3px solid var(--vermelho) }
.topo-in { display: flex; align-items: center; gap: 16px; min-height: var(--topo-h) }
.topo-marca img { display: block; height: 30px; width: auto }
@media (max-width: 420px) { .topo-marca img { height: 24px } }
.topo-nav { display: none; gap: 4px; margin-left: 8px }
.topo-nav a { color: #ddd; text-decoration: none; font-weight: 600; font-size: .92rem; padding: 8px 12px; border-radius: 10px; display: inline-flex; align-items: center; gap: 6px }
.topo-nav a:hover, .topo-nav a[aria-current] { color: #fff; background: var(--grafite-2) }
.topo-nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--amarelo) }
.topo-acoes { margin-left: auto; display: flex; align-items: center; gap: 8px }
.topo-notif { position: relative; color: #fff; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50% }
.topo-notif b { position: absolute; top: 2px; right: 0; background: var(--amarelo); color: var(--preto); font-size: .68rem; border-radius: 999px; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 4px }
.topo-conta { position: relative }
.topo-conta summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; padding: 8px 10px; border-radius: 10px }
.topo-conta summary::-webkit-details-marker { display: none }
.topo-conta summary span { display: none }
.menu-pop { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; color: var(--ink); border-radius: 14px; box-shadow: var(--sombra); min-width: 250px; padding: 6px; display: grid; z-index: 50 }
.menu-pop a { color: var(--ink); text-decoration: none; padding: 10px 12px; border-radius: 10px; display: flex; align-items: center; gap: 8px; font-weight: 500 }
.menu-pop a:hover { background: var(--bg) }
@media (min-width: 900px) { .topo-nav { display: flex } .topo-conta summary span { display: inline } }

/* ---------- abas inferiores (app) ---------- */
.abas { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--preto); display: grid; grid-template-columns: repeat(5, 1fr); padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid #222 }
.abas a { color: #aaa; text-decoration: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: var(--abas-h); font-size: .72rem; font-weight: 600 }
.abas a[aria-current] { color: #fff }
.abas a[aria-current] .ico { color: var(--amarelo) }
.abas .ico { width: 24px; height: 24px }
.abas span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100% }
.abas .aba-centro { position: relative; color: #fff }
.abas .aba-centro i { display: grid; place-items: center; width: 54px; height: 54px; margin-top: -26px; border-radius: 50%; background: var(--amarelo); color: var(--preto); border: 4px solid var(--preto); box-shadow: 0 6px 16px rgba(0,0,0,.35); transition: transform .15s }
.abas .aba-centro .ico { width: 26px; height: 26px; color: var(--preto) }
.abas .aba-centro:active i { transform: scale(.94) }
.abas .aba-centro[aria-current] i { background: var(--vermelho); color: #fff }
.abas .aba-centro[aria-current] .ico { color: #fff }
@media (min-width: 900px) { .abas { display: none } body.com-abas { padding-bottom: 0 } }
@media (max-width: 899px) { .topo-pedir { display: none } }

/* ---------- botões e formulários ---------- */
[hidden] { display: none !important }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: 12px; border: 2px solid transparent; background: var(--vermelho); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .15s, transform .1s }
.btn:hover { background: var(--vermelho-esc) }
.btn:active { transform: scale(.98) }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none }
.btn[disabled] { opacity: .5; cursor: not-allowed }
.btn.sm { min-height: 38px; padding: 6px 14px; font-size: .9rem; border-radius: 10px }
.btn.xs { min-height: 32px; padding: 4px 10px; font-size: .82rem; border-radius: 8px }
.btn.lg { min-height: 58px; font-size: 1.1rem; border-radius: 14px; padding: 12px 26px }
.btn.bloco { display: flex; width: 100% }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line) }
.btn.ghost:hover { background: var(--surface-2) }
.btn.ghost-claro { background: transparent; color: #fff; border-color: #444 }
.btn.amarelo { background: var(--amarelo); color: var(--preto) }
.btn.amarelo:hover { background: var(--amarelo-esc) }
.btn.preto { background: var(--preto) }
.btn.ok { background: var(--ok) }
.btn.perigo { background: transparent; color: var(--erro); border-color: var(--erro) }
.acoes { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px }
.campo { display: flex; flex-direction: column; gap: 6px; margin-top: 14px }
.campo label, .rotulo { font-weight: 600; font-size: .9rem }
.campo small { color: var(--muted); font-size: .82rem }
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea, .entrada {
  width: 100%; min-height: 48px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; padding: 10px 14px }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--vermelho); box-shadow: 0 0 0 3px rgba(224,0,0,.15) }
textarea { min-height: 90px; resize: vertical }
.duas { display: grid; gap: 0 12px; grid-template-columns: 1fr }
@media (min-width: 640px) { .duas { grid-template-columns: 1fr 1fr } .tres { grid-template-columns: 2fr 1fr 1fr } }
.marcar { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-weight: 500; cursor: pointer }
.marcar input { width: 22px; height: 22px; accent-color: var(--vermelho) }

/* ---------- cartões, avisos, status ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--raio); padding: 18px; box-shadow: 0 1px 2px rgba(0,0,0,.04) }
.card + .card { margin-top: 14px }
.titulo-pag { padding: 22px 0 6px }
.titulo-pag .lead { margin-top: 8px; color: var(--muted) }
.lead { font-size: 1.08rem }
.aviso { border-radius: 12px; padding: 12px 14px; margin: 14px 0; font-weight: 500 }
.aviso.sucesso, .aviso.ok { background: var(--ok-bg); color: var(--ok) }
.aviso.erro { background: var(--erro-bg); color: var(--erro) }
.aviso.info { background: var(--info-bg); color: var(--info) }
.aviso.espera { background: var(--espera-bg); color: var(--espera) }
.st { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap }
.st i { width: 8px; height: 8px; border-radius: 50%; background: currentColor }
.st-espera { background: var(--espera-bg); color: var(--espera) }
.st-andamento { background: var(--info-bg); color: var(--info) }
.st-andamento i { animation: pulsar 1.2s ease-in-out infinite }
.st-ok { background: var(--ok-bg); color: var(--ok) }
.st-erro { background: var(--erro-bg); color: var(--erro) }
@keyframes pulsar { 50% { opacity: .3 } }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--prata); color: var(--ink) }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-top: 14px }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column }
.kpi b { font-size: 1.6rem; font-weight: 800 }
.kpi span { font-size: .84rem; color: var(--muted) }
.lista-simples { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px }
.tabela-rolagem { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-top: 12px }
.tabela { width: 100%; border-collapse: collapse; font-size: .92rem }
.tabela th, .tabela td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top }
.tabela th { background: var(--surface-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted) }
.tabela .c { text-align: center } .tabela .d { text-align: right }
.paginacao { display: flex; gap: 8px; justify-content: center; margin: 16px 0 }
.vazio { text-align: center; padding: 28px 16px; color: var(--muted) }

/* ---------- landing ---------- */
.hero { background: radial-gradient(circle at 85% 15%, rgba(224,0,0,.45), transparent 45%), radial-gradient(circle at 10% 90%, rgba(255,194,14,.18), transparent 40%), var(--preto); color: #fff; padding: 40px 0 46px; overflow: hidden }
.hero-grid { display: grid; gap: 26px; align-items: center }
.hero-grid > * { min-width: 0 }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr .9fr } }
.hero h1 { font-family: var(--display); overflow-wrap: break-word; font-style: italic; font-size: clamp(2.4rem, 7vw, 4rem); text-transform: uppercase; letter-spacing: .01em }
.hero h1 em { color: var(--vermelho); font-style: italic } .hero h1 strong { color: var(--amarelo) }
.hero .lead { color: #ddd; margin-top: 14px; max-width: 560px }
.hero-logo { width: 100%; height: auto; max-width: 420px; margin: 0 auto; filter: drop-shadow(0 20px 40px rgba(224,0,0,.35)) }
.hero-num { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px }
.hero-num div { display: flex; flex-direction: column } .hero-num b { font-size: 1.4rem; color: var(--amarelo) } .hero-num span { font-size: .82rem; color: #bbb }
.sec { padding: 46px 0 }
.sec-escura { background: var(--preto); color: #fff }
.sec-escura .muted { color: #bbb }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--vermelho) }
.passos { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 20px }
.passo { background: #fff; border-radius: var(--raio); border: 1px solid var(--line); padding: 18px; position: relative }
.passo b.n { position: absolute; top: -14px; left: 16px; width: 32px; height: 32px; border-radius: 50%; background: var(--vermelho); color: #fff; display: grid; place-items: center }
.passo h3 { margin-top: 10px; font-size: 1.1rem }
.passo p { color: var(--muted); margin-top: 6px; font-size: .94rem }
.grade-3 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 18px }
.sec-escura .card { background: var(--grafite); border-color: #2a2a2a; color: #fff }
.sec-escura .card p { color: #bbb }

/* ---------- pedido de entrega ---------- */
.ponto { border-left: 4px solid var(--vermelho); padding-left: 14px }
.ponto.destino { border-color: var(--amarelo) }
.ponto h3 { display: flex; align-items: center; gap: 8px; font-size: 1.05rem }
.end-sugestoes { list-style: none; margin: 6px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff }
.end-sugestoes button { display: block; width: 100%; text-align: left; border: 0; background: #fff; padding: 10px 12px; font: inherit; cursor: pointer; border-bottom: 1px solid var(--line) }
.end-sugestoes button:hover { background: var(--bg) }
.end-escolhido { margin-top: 8px; background: var(--ok-bg); color: var(--ok); border-radius: 10px; padding: 8px 12px; font-size: .9rem; font-weight: 600 }
.cotacoes { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin-top: 12px }
.cotacao { position: relative; display: flex; flex-direction: column; gap: 4px; border: 2px solid var(--line); border-radius: 16px; padding: 14px; background: #fff; cursor: pointer }
.cotacao input { position: absolute; opacity: 0 }
.cotacao:has(input:checked) { border-color: var(--vermelho); box-shadow: 0 0 0 3px rgba(224,0,0,.15) }
.cotacao .ico { width: 34px; height: 34px; color: var(--vermelho) }
.cotacao b { font-size: 1.05rem }
.cotacao .preco { font-size: 1.5rem; font-weight: 800 }
.cotacao small { color: var(--muted) }
.cotacao .disp { font-size: .78rem; font-weight: 700 }
.cotacao .disp.sim { color: var(--ok) } .cotacao .disp.nao { color: var(--espera) }
.resumo-pedido { background: var(--preto); color: #fff; border-radius: var(--raio); padding: 16px }
.resumo-pedido .total { font-size: 2rem; font-weight: 800; color: var(--amarelo) }

/* ---------- acompanhamento / linha do tempo ---------- */
.linha-tempo { list-style: none; margin: 14px 0 0; padding: 0 0 0 26px; position: relative }
.linha-tempo::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--line) }
.linha-tempo li { position: relative; padding: 0 0 14px; color: var(--muted) }
.linha-tempo li::before { content: ""; position: absolute; left: -22px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--line) }
.linha-tempo li.feito { color: var(--ink) }
.linha-tempo li.feito::before { background: var(--ok); border-color: var(--ok) }
.linha-tempo li.atual { color: var(--ink); font-weight: 700 }
.linha-tempo li.atual::before { background: var(--vermelho); border-color: var(--vermelho); box-shadow: 0 0 0 4px rgba(224,0,0,.2); animation: pulsar 1.2s infinite }
.linha-tempo small { display: block; font-weight: 400; color: var(--muted) }
.mapa-box { height: 300px; border-radius: var(--raio); overflow: hidden; border: 1px solid var(--line); background: #e9e9ea; margin-top: 12px }
.pessoa { display: flex; align-items: center; gap: 12px }
.pessoa img, .avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--prata); display: grid; place-items: center; font-weight: 800 }
.comprovante img { border-radius: 12px; margin-top: 8px }
.estrelas { display: flex; gap: 6px; flex-direction: row-reverse; justify-content: flex-end }
.estrelas input { position: absolute; opacity: 0 }
.estrelas label { cursor: pointer; color: #ccc } .estrelas label .ico { width: 34px; height: 34px }
.estrelas input:checked ~ label, .estrelas label:hover, .estrelas label:hover ~ label { color: var(--amarelo) }

/* ---------- área do entregador ---------- */
.online-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-radius: var(--raio); padding: 16px; color: #fff; background: var(--grafite) }
.online-box.on { background: linear-gradient(135deg, #0E6B3A, var(--ok)) }
.online-box b { font-size: 1.2rem; display: flex; align-items: center; gap: 8px }
.online-box b i { width: 12px; height: 12px; border-radius: 50%; background: #888 }
.online-box.on b i { background: #7CFFB2; box-shadow: 0 0 0 4px rgba(124,255,178,.3); animation: pulsar 1.4s infinite }
.oferta { border: 3px solid var(--amarelo); background: #fff; border-radius: 20px; padding: 18px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.5); animation: chegar .35s ease }
@keyframes chegar { from { transform: translateY(14px); opacity: 0 } }
.oferta-valor { font-size: 2.2rem; font-weight: 800 }
.oferta-tempo { height: 6px; background: var(--prata); border-radius: 3px; overflow: hidden; margin-top: 10px }
.oferta-tempo i { display: block; height: 100%; background: var(--vermelho); transition: width 1s linear }
.passo-btn { min-height: 64px; font-size: 1.15rem; border-radius: 16px }
.atual-endereco { display: grid; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--line) }
.atual-endereco:last-child { border-bottom: 0 }
.atual-endereco .rot { font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--vermelho) }
.atual-endereco.dest .rot { color: var(--amarelo-esc) }
.navegar { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px }
.fotos-previa { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px }
.fotos-previa img { width: 90px; height: 90px; object-fit: cover; border-radius: 10px }

/* ---------- rodapé ---------- */
.rodape { background: var(--preto); color: #bbb; margin-top: 50px; padding: 34px 0 20px; border-top: 3px solid var(--vermelho) }
.rodape-in { display: grid; gap: 24px; grid-template-columns: 1fr }
@media (min-width: 800px) { .rodape-in { grid-template-columns: 2fr 1fr 1fr } }
.rodape nav { display: flex; flex-direction: column; gap: 8px }
.rodape nav b { color: #fff } .rodape a { color: #ddd; text-decoration: none } .rodape a:hover { color: var(--amarelo) }
.rodape-copy { margin-top: 24px; font-size: .82rem; color: #888 }
.erro-pag { padding: 50px 16px } .erro-pag .card { max-width: 520px; margin: 0 auto; text-align: center } .erro-cod { font-size: 3rem; font-weight: 800; color: var(--vermelho) }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none }
#toast { position: fixed; left: 50%; bottom: calc(var(--abas-h) + 16px); transform: translateX(-50%); background: var(--preto); color: #fff; padding: 12px 18px; border-radius: 12px; z-index: 90; box-shadow: var(--sombra); max-width: calc(100% - 32px) }
#toast.erro { background: var(--erro) } #toast.ok { background: var(--ok) }
.menu-pop .menu-sair { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: none; font: inherit; color: var(--ink); padding: 10px 12px; border-radius: 10px; cursor: pointer; text-align: left }
.menu-pop .menu-sair:hover { background: var(--bg) }
.perfil-escolha { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px }
.perfil-escolha button { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: 12px 6px; font: inherit; cursor: pointer; text-align: center }
.perfil-escolha button .ico { width: 30px; height: 30px; color: var(--vermelho) }
.perfil-escolha button b { font-size: .9rem } .perfil-escolha button small { font-size: .72rem; color: var(--muted) }
.perfil-escolha button.ativo { border-color: var(--vermelho); background: var(--vermelho-claro) }
.resumo-lista { margin: 8px 0 0; display: grid; gap: 8px }
.resumo-lista div { display: grid; grid-template-columns: 90px 1fr; gap: 8px }
.resumo-lista dt { color: var(--muted); font-size: .86rem } .resumo-lista dd { margin: 0 }
.mk-ae span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); color: #fff; font-weight: 800; box-shadow: 0 3px 8px rgba(0,0,0,.4); border: 2px solid #fff }
.mk-ae span::first-line { transform: rotate(45deg) }
.mk-ent span { width: 40px; height: 40px; border-radius: 50%; transform: none; background: var(--amarelo); color: var(--preto); border: 3px solid var(--preto) }
.mk-ent .ico { width: 22px; height: 22px }
.cartao-entrega { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink) }
.cartao-entrega:hover { border-color: var(--vermelho) }
.cartao-entrega > span:first-child { display: flex; justify-content: space-between; align-items: center; gap: 8px }
details.card summary { cursor: pointer; list-style: none }
.checklist { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px }
.checklist li { padding-left: 28px; position: relative }
.checklist li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line) }
.checklist li.feito::before { background: var(--ok); border-color: var(--ok) }
.checklist li.feito { color: var(--muted) }
.texto-legal h2 { font-size: 1.2rem; margin-top: 22px }
.texto-legal p, .texto-legal ul { margin-top: 8px; color: #333 }

/* CEP na tela "Pedir entrega": campo curto acima do endereço */
.campo-cep input { max-width: 190px; letter-spacing: .04em }
.campo-cep input.carregando { background-image: linear-gradient(90deg, transparent, rgba(224,0,0,.12), transparent); background-size: 200% 100%; animation: cep-busca 1s linear infinite }
@keyframes cep-busca { from { background-position: 200% 0 } to { background-position: -200% 0 } }
.marcar .adic { color: var(--vermelho, #E00000); font-weight: 700; white-space: nowrap }

/* ===== acompanhamento ao vivo (assets/js/acompanhar.js) ===== */
[data-acompanhar] .mapa-box { height: clamp(320px, 52vh, 460px) }
.rastreio { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 14px; border-radius: var(--raio-sm); background: var(--preto); color: #fff }
.rastreio[hidden] { display: none }
.rastreio-info { display: flex; align-items: center; gap: 10px; min-width: 0 }
.rastreio-info b { display: block; font-size: .98rem }
.rastreio-info small { display: block; color: rgba(255,255,255,.75); font-size: .8rem }
.rastreio-ponto { width: 10px; height: 10px; border-radius: 50%; background: #2ECC71; flex: none; animation: rastreioPulso 1.6s ease-out infinite }
.rastreio.fraco .rastreio-ponto { background: var(--amarelo); animation: none }
@keyframes rastreioPulso { 0% { box-shadow: 0 0 0 0 rgba(46,204,113,.7) } 100% { box-shadow: 0 0 0 10px rgba(46,204,113,0) } }
.rastreio-acoes { display: flex; gap: 6px }
.rastreio .btn.ghost { color: #fff; border-color: rgba(255,255,255,.35); background: transparent }
.rastreio .btn.ghost.ativo { background: var(--amarelo); color: var(--preto); border-color: var(--amarelo) }
.mk-rumo i { position: absolute; inset: 0; display: block }
.mk-rumo i::before { content: ""; position: absolute; left: 50%; top: 0; transform: translateX(-50%); border: 8px solid transparent; border-bottom: 12px solid var(--vermelho); filter: drop-shadow(0 1px 1px rgba(0,0,0,.4)) }
.mk-ent span { box-shadow: 0 0 0 6px rgba(255,194,14,.35), 0 3px 8px rgba(0,0,0,.4) }
@media (max-width: 560px) { .rastreio-acoes { width: 100% } .rastreio-acoes .btn { flex: 1 } }
@media (prefers-reduced-motion: reduce) { .rastreio-ponto { animation: none } }

/* ===== GPS em segundo plano (Traccar Client) ===== */
.gps-card summary { display: flex; flex-direction: column; gap: 2px; cursor: pointer; list-style: none }
.gps-card summary::-webkit-details-marker { display: none }
.gps-card summary small { font-size: .82rem }
.gps-passos { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 8px; font-size: .92rem }
.gps-cod { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; background: var(--prata); border-radius: 8px; padding: 3px 8px; word-break: break-all }
.gps-cod b { font-family: ui-monospace, Consolas, monospace; font-size: .9rem }

/* turno da escala (painel do entregador e entregador/turnos.asp) */
.turno-box { border-left: 5px solid var(--amarelo) }
.turno-topo { display: flex; justify-content: space-between; align-items: center; gap: 8px }
.turno-quando { font-size: 1.15rem; margin-top: 4px }
.turno-lista { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px }
.turno-lista li { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--surface); display: grid; gap: 4px }
.turno-lista .linha { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap }
.turno-lista .valor { font-weight: 800; color: var(--ok) }
/* viagem com várias paradas */
.viagem-box { margin-top: 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px }
.viagem-tit { font-weight: 800; font-size: .9rem }
.viagem-paradas { margin: 6px 0 0; padding-left: 0; list-style: none; display: grid; gap: 6px; counter-reset: parada }
.viagem-paradas li { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: center; font-size: .86rem }
.viagem-paradas li::before { counter-increment: parada; content: counter(parada); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--line); font-weight: 800; font-size: .8rem }
.viagem-paradas li.atual::before { background: var(--amarelo); color: var(--preto) }
.viagem-paradas li.feita { color: var(--muted); text-decoration: line-through }
.viagem-paradas li.feita::before { background: var(--ok); color: #fff; content: "✓" }
.viagem-paradas small { color: var(--muted) }
/* pedir com várias paradas */
.parada-extra { position: relative }
.parada-extra .parada-tirar { position: absolute; top: 12px; right: 12px }
.add-parada { margin-top: 12px; width: 100%; border-style: dashed }
