/* Argos Família. Tema escuro neutro, cor só nos três botões de crise e nos estados.
   Referências: tela de viagem do Uber, rastreio de pedido do iFood, localização ao vivo do WhatsApp. */
:root {
  --fundo: #0e0e10;
  --painel: #17171a;
  --painel-2: #202024;
  --painel-3: #2a2a2f;
  --borda: #26262b;
  --borda-forte: #38383e;
  --borda-campo: #6b6b72;
  --switch-desligado: #6a6a70;
  --texto: #ffffff;
  --texto-2: #b4b4b8;
  --texto-3: #8e8e93;
  --vermelho: #e3262a;
  --vermelho-escuro: #5c0b0d;
  --azul: #2f6fd6;
  --azul-escuro: #0c2247;
  --dourado: #c9a24a;
  --dourado-escuro: #8a6c27;
  --verde: #30a46c;
  --ambar: #e0a020;
  --eu: #2f7cf6;
  --raio: 16px;
  --raio-p: 12px;
  --safe-topo: env(safe-area-inset-top, 0px);
  --safe-base: env(safe-area-inset-bottom, 0px);
  --abas: 58px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; overscroll-behavior: none; }
html, body { margin: 0; height: 100%; background: var(--fundo); color: var(--texto); }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px; line-height: 1.4;
  display: flex; flex-direction: column; height: 100vh; height: 100dvh;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
button, a, select, input { touch-action: manipulation; }
input, select { font: inherit; -webkit-user-select: text; user-select: text; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.ic { display: block; flex: none; }
.sub { color: var(--texto-2); font-size: 14px; line-height: 20px; }
.meta { color: var(--texto-3); font-size: 13px; line-height: 18px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Leitor de tela ativa direto; quem usa teclado vê o botão quando ele recebe o foco. */
.sr-only.aparece-no-foco:focus-visible { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; display: block; margin: 0 0 10px; padding: 14px 16px; border-radius: 14px; background: var(--painel-2); color: var(--texto); font: inherit; font-weight: 600; text-align: center; }
/* hover só com mouse de verdade: no toque, o navegador deixaria o hover preso depois do toque */
@media (hover: hover) and (pointer: fine) { button:hover, a:hover { filter: brightness(1.1); } }
/* controles não selecionam texto nem abrem o balão de copiar no toque longo; conteúdo (endereço, códigos) continua selecionável */
button, [role="button"], a.btn, a.linha, .atalho, .chip, .crise, .controle, .historia, .selo, .pega, .info, .btn-mini, .switch, #abas, .teclado, .pessoa-acoes a, .av { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
/* resposta no toque, não ao soltar */
.btn, .btn-mini, .atalho-ic, .controle .ci, .redondo, .camadas button, .chip, .teclado button, .selo, .fechar-topo, .voltar-flutuante, .info, .historia .av, button.linha, a.linha { transition: transform 120ms var(--ease-out), background-color 120ms var(--ease-out); }
.btn:active, .btn-mini:active, .atalho:active .atalho-ic, .controle:active .ci, .redondo:active, .camadas button:active, .chip:active, .teclado button:active, .selo:active, .fechar-topo:active, .voltar-flutuante:active, .info:active, .historia:active .av { transform: scale(0.96); }
button.linha:active, a.linha:active { background-color: var(--painel-2); }
@media (prefers-reduced-motion: reduce) { *:not(.enche):not(.barra), *::before, *::after { animation: none !important; transition: none !important; } }

#tela { flex: 1; min-height: 0; padding: calc(10px + var(--safe-topo)) 16px 16px; display: flex; flex-direction: column; overflow-y: auto; -webkit-overflow-scrolling: touch; position: relative; overscroll-behavior: contain; }
#tela.cheia { padding: 0; overflow: hidden; }
#tela > * { flex-shrink: 0; }

/* barra de abas */
#abas { display: flex; background: #121214; border-top: 1px solid var(--borda); padding: 0 6px var(--safe-base); height: calc(var(--abas) + var(--safe-base)); flex: none; }
body.sem-abas #abas { display: none; }
#abas button { flex: 1; color: var(--texto-3); font-size: 12px; font-weight: 500; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; position: relative; }
#abas button.ativa { color: var(--texto); }
#abas i { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 17px; height: 17px; border-radius: 9px; background: var(--vermelho); color: #fff; font-style: normal; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
#abas i[hidden] { display: none; }

/* avatar */
.av { --t: 40px; --h: #555; width: var(--t); height: var(--t); border-radius: 50%; background: var(--h); color: #fff; font-weight: 700; font-size: calc(var(--t) * 0.4); display: inline-flex; align-items: center; justify-content: center; flex: none; position: relative; }
.av.anel { box-shadow: 0 0 0 2px var(--fundo), 0 0 0 4px var(--anel, var(--borda-forte)); }
.av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 32%; display: block; }
.av.ok { --anel: var(--verde); }
.av.atencao { --anel: var(--ambar); }
.av.emergencia { --anel: var(--vermelho); }
.av.emergencia::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--vermelho); animation: halo-av 1.4s ease-out infinite; pointer-events: none; }
@keyframes halo-av { 0% { transform: scale(0.9); opacity: 0.9; } 100% { transform: scale(1.35); opacity: 0; } }
.av.desatualizado, .av.sem { --anel: var(--borda-forte); }
.av.sem { opacity: 0.6; }

/* ---------- início ---------- */
.inicio { flex: 1; display: flex; flex-direction: column; min-height: 100%; }
.topo { display: flex; justify-content: space-between; align-items: center; height: 40px; }
.logo { font-size: 14px; font-weight: 800; letter-spacing: 0.22em; color: var(--dourado); }
.titulo-grande { font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: -0.02em; margin-top: 10px; }
.resumo { margin-top: 2px; }
.banner { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 14px; padding: 12px 14px; border-radius: var(--raio-p); background: var(--painel); text-align: left; }
.banner.perigo { background: #2a1214; }
.banner.medica { background: #121c2c; }
.banner.central { background: #241e10; }
.banner.offline { background: #2a2210; align-items: flex-start; }
.banner.offline .ic { color: var(--ambar); margin-left: 0; margin-top: 2px; }
.banner b { display: block; font-size: 15px; }
.banner .ic { color: var(--texto-3); margin-left: auto; }
/* O guia de primeiro uso (P3): a faixa abre o guia, e o "Agora não" fica ao lado, do tamanho de um dedo. */
.banner.guia { padding: 4px 8px 4px 14px; }
.banner.guia .guia-abrir { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; min-height: 48px; padding: 6px 0; text-align: left; }
.banner.guia .guia-abrir > .ic:first-child { color: var(--dourado); margin-left: 0; }
.banner.guia .btn-mini { min-height: 44px; }
.historias { display: flex; gap: 16px; overflow-x: auto; margin: 18px -16px 0; padding: 4px 16px 2px; scrollbar-width: none; touch-action: pan-x; overscroll-behavior-x: contain; }
.historias::-webkit-scrollbar { display: none; }
.historia { display: flex; flex-direction: column; align-items: center; gap: 7px; width: 60px; flex: none; }
.historia .nome { font-size: 14px; color: var(--texto-2); max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.crise-area { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 18px 0 14px; min-height: 360px; }
.crise {
  --cor: var(--vermelho); --cor-escura: var(--vermelho-escuro); --ink: #fff;
  position: relative; overflow: hidden; width: 220px; height: 220px; border-radius: 50%; background: var(--cor); color: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  touch-action: none; -webkit-user-select: none; user-select: none; isolation: isolate;
  transition: transform 120ms var(--ease-out);
}
.crise.segurando { transform: scale(0.96); }
.crise .enche { position: absolute; inset: 0; border-radius: 50%; background: var(--cor-escura); transform: scale(0); z-index: -1; will-change: transform; }
.crise .t { font-size: 20px; font-weight: 800; letter-spacing: 0.08em; line-height: 1; }
.crise .s { font-size: 13px; line-height: 16px; font-weight: 500; text-align: center; }
.crise.perigo .t { font-size: 42px; }
.crise.medico, .crise.central, .crise.duvidas { width: 128px; height: 128px; gap: 4px; }
.crise.medico .s, .crise.central .s, .crise.duvidas .s { font-size: 12px; line-height: 15px; }
.crise.medico { --cor: var(--azul); --cor-escura: var(--azul-escuro); }
.crise.central { --cor: var(--dourado); --cor-escura: var(--dourado-escuro); --ink: #141414; }
.dupla-crise { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; max-width: 100%; }
.dica { font-size: 15px; color: var(--texto-2); text-align: center; margin: 0; }

.atalhos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: auto; padding-top: 10px; }
/* Os atalhos numa fileira só (três desde 10/11/2026: o "Colar link da viagem" solto saiu da Início, ele está dentro de
   "Estou numa corrida"; antes, quatro desde a construção 3 do assistente, quando o Antes de sair virou a porta DÚVIDAS),
   também a 320 px (iPhone SE com zoom da tela, reflow da WCAG): a coluna encolhe, e a fileira nunca quebra em duas, que iria
   para baixo da barra de abas (V3). */
@media (max-width: 340px) {
  .atalhos { gap: 4px; }
  .atalho-txt { font-size: 11px; line-height: 13px; }
  .atalho-ic.logo-uber img { width: 38px; }
}
.atalho { display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; }
.atalho-ic { width: 100%; max-width: 72px; height: 50px; border-radius: 14px; background: var(--painel-2); display: flex; align-items: center; justify-content: center; color: var(--texto); position: relative; }
.atalho-txt { font-size: 12px; color: var(--texto-2); line-height: 14px; text-align: center; }
.atalho-ic.logo-uber { background: #000; }
.atalho-ic.logo-uber img { width: 46px; height: auto; filter: invert(1); }
.atalho-ic.logo-99 { background: #ffdd00; overflow: hidden; }
.atalho-ic.logo-99 img { width: 50px; height: 50px; }
.logo-app { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: none; overflow: hidden; }
.logo-app.logo-uber { background: #000; border: 1px solid var(--borda-forte); }
.logo-app.logo-uber img { filter: invert(1); width: 34px; height: auto; }
.logo-app.logo-99 { background: #ffdd00; }
.atalho.ativo .atalho-ic { background: var(--painel-3); }
.atalho.ativo .atalho-txt { color: var(--texto); }
.badge-ponto { position: absolute; top: 7px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--verde); }

/* ---------- botões ---------- */
.btn { height: 52px; border-radius: 999px; font-size: 16px; font-weight: 600; width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; padding: 0 20px; position: relative; overflow: hidden; }
.btn-primario { background: #fff; color: var(--fundo); }
.btn-secundario { background: var(--painel-2); color: var(--texto); }
.btn-perigo { background: var(--vermelho); color: #fff; }
.btn-azul { background: var(--azul); color: #fff; }
.btn-verde { background: var(--verde); color: #fff; }
.btn-texto { background: none; color: var(--texto-2); height: 44px; }
.btn.peq { height: 38px; width: auto; padding: 0 16px; font-size: 14px; }
.btn .barra { position: absolute; inset: 0; background: rgba(255, 255, 255, 0.2); transform: scaleX(0); transform-origin: left; }
.btn > span:not(.barra) { position: relative; }
.pilha { display: flex; flex-direction: column; gap: 10px; }
.linha-btn { display: flex; gap: 10px; }
.linha-btn .btn { flex: 1; }

/* ---------- cartões, listas agrupadas ---------- */
.cartao { background: var(--painel); border-radius: var(--raio); padding: 16px; }
.secao-cab { display: flex; align-items: center; gap: 6px; padding: 0 16px 6px; margin-top: 24px; }
.secao-titulo { font-size: 13px; font-weight: 400; line-height: 18px; color: var(--texto-3); margin: 0; letter-spacing: 0; }
.grupo { background: var(--painel); border-radius: 14px; overflow: hidden; }
.linha { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 16px; border-bottom: 1px solid var(--borda); text-align: left; width: 100%; }
.linha:last-child { border-bottom: 0; }
a.linha { text-decoration: none; color: inherit; }
.linha .rotulo { flex: 1; min-width: 0; }
/* Linha com um botão pequeno ao lado ("Tirar" no "Para onde você já foi"): a linha ocupa o resto. */
.linha-com-acao { display: flex; align-items: center; border-bottom: 1px solid var(--borda); padding-right: 12px; }
.linha-com-acao:last-child { border-bottom: 0; }
.linha-com-acao > .linha { flex: 1; min-width: 0; border-bottom: 0; }
.linha .rotulo small { display: block; color: var(--texto-3); font-size: 13px; line-height: 18px; margin-top: 2px; }
.linha .valor { color: var(--texto-3); font-size: 15px; }
.linha .ic.chev { color: var(--texto-3); }
.linha input { background: transparent; border: 0; color: var(--texto); text-align: right; font-size: 16px; width: 55%; padding: 0; outline: none; }
.linha input::placeholder { color: var(--texto-3); }
.linha input:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 6px; }
.linha.radio .check { color: var(--texto); visibility: hidden; }
.linha.radio[aria-checked="true"] .check { visibility: visible; }
.nota { color: var(--texto-3); font-size: 13px; line-height: 18px; padding: 8px 16px 0; }
.switch { width: 51px; height: 31px; border-radius: 999px; background: var(--switch-desligado); position: relative; flex: none; transition: background-color 0.2s; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; transition: transform 0.2s; }
.switch[aria-checked="true"] { background: var(--verde); }
.switch[aria-checked="true"]::after { transform: translateX(20px); }

/* ---------- emergência ativa ---------- */
.alarme { display: flex; flex-direction: column; gap: 14px; }
.alarme-topo { --cor: var(--vermelho); --ink: #fff; background: var(--cor); color: var(--ink); border-radius: 22px; padding: 18px 18px 20px; }
.alarme-topo.medica { --cor: var(--azul); }
.alarme-topo.central { --cor: var(--dourado); --ink: #141414; }
.alarme-tipo { font-size: 15px; font-weight: 700; letter-spacing: 0.1em; margin: 0; line-height: 1.3; }
.alarme-tempo { font-size: 46px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; margin-top: 4px; }
.alarme-status { font-size: 17px; font-weight: 600; margin-top: 4px; }
.alarme-sub { font-size: 15px; line-height: 20px; margin-top: 6px; opacity: 0.92; }
.alarme-agente { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 15px; line-height: 20px; text-align: left; }
.alarme-agente-foto { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; background: rgba(255,255,255,0.15); }
.sem-querer { text-align: center; margin: 0 0 2px; }
.aviso-discreto { text-align: center; margin: 2px 0 0; }
.etapas { list-style: none; margin: 0; padding: 4px 4px 0; }
.etapa { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: start; position: relative; padding-bottom: 18px; }
.etapa:last-child { padding-bottom: 0; }
.etapa::before { content: ""; position: absolute; left: 10px; top: 16px; bottom: -2px; width: 2px; background: var(--borda-forte); }
.etapa:last-child::before { display: none; }
.etapa .marca { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--borda-forte); background: var(--fundo); display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; color: #fff; }
.etapa.feita .marca { background: var(--cor-etapa, var(--verde)); border-color: var(--cor-etapa, var(--verde)); }
.etapa.feita::before { background: var(--cor-etapa, var(--verde)); }
.etapa.atual .marca { border-color: var(--texto); }
.etapa .txt { font-size: 15px; line-height: 22px; color: var(--texto-3); }
.etapa.feita .txt, .etapa.atual .txt { color: var(--texto); }
.etapa .txt small { display: block; font-size: 13px; color: var(--texto-3); }
.etapa time { font-size: 13px; color: var(--texto-3); font-variant-numeric: tabular-nums; line-height: 22px; }
.controles { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 8px; }
.controle { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 14px; color: var(--texto-2); text-align: center; line-height: 15px; }
.controle .ci { width: 62px; height: 62px; border-radius: 50%; background: var(--painel-2); display: flex; align-items: center; justify-content: center; color: var(--texto); }
.controle[aria-pressed="true"] .ci { background: #fff; color: var(--fundo); }
.controle[aria-pressed="true"] { color: var(--texto); }
.estado-mini { display: flex; flex-direction: column; }
.estado-mini .linha { min-height: 44px; padding: 10px 14px; font-size: 14px; }
.ok-txt { color: var(--verde); }
.ruim-txt { color: var(--ambar); }
.previa { width: 100%; border-radius: var(--raio-p); background: #000; max-height: 180px; object-fit: cover; }
.previa[hidden] { display: none; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { height: 36px; padding: 0 14px; border-radius: 999px; background: var(--painel-2); font-size: 14px; font-weight: 500; }
.chip.sel { background: #fff; color: var(--fundo); }

/* contagem, envio, encerrado */
.centro { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 16px; }
.contagem-num { width: 200px; height: 200px; border-radius: 50%; background: var(--cor, var(--vermelho)); color: var(--ink, #fff); font-size: 96px; font-weight: 700; display: flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.pulso { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--vermelho); animation: pisca 1.2s infinite; }
@keyframes pisca { 50% { opacity: 0.3; } }

/* teclado de PIN, estilo iOS */
.teclado { display: grid; grid-template-columns: repeat(3, minmax(44px, 76px)); gap: 16px min(24px, 4vw); justify-content: center; max-width: 100%; }
.teclado button { width: 100%; height: auto; aspect-ratio: 1; border-radius: 50%; background: var(--painel-2); font-size: 30px; font-weight: 400; display: flex; align-items: center; justify-content: center; }
.teclado button.vazio { background: none; font-size: 15px; color: var(--texto-2); }
.pin-pontos { display: flex; gap: 18px; justify-content: center; margin: 18px 0 26px; }
.pin-pontos span { width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid var(--texto); }
.pin-pontos span.cheio { background: var(--texto); }
.pin-titulo { font-size: 20px; font-weight: 600; text-align: center; }
.pin-sub { text-align: center; margin-top: 6px; }

/* ---------- mapa ---------- */
.mapa-tela { position: absolute; inset: 0; }
#mapa, #mapa-corrida { position: absolute; inset: 0; background: #1a1a1d; }
.mapa-topo { position: absolute; top: calc(12px + var(--safe-topo)); left: 12px; right: 12px; z-index: 500; display: flex; justify-content: space-between; gap: 8px; pointer-events: none; }
.camadas { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(23, 23, 26, 0.94); border: 1px solid var(--borda); pointer-events: auto; }
.camadas button { height: 32px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--texto-2); }
.camadas button.sel { background: #fff; color: var(--fundo); }
/* Zonas ligadas, mas ocultas neste zoom: o botão mostra que está em pausa. */
.camadas button.sel.pausa { background: rgba(255, 255, 255, 0.55); }
/* Linha curta de estado sobre o mapa (sem internet, zonas ocultas, mapa indisponível). */
.mapa-estado { position: absolute; top: calc(64px + var(--safe-topo)); left: 50%; transform: translateX(-50%); z-index: 500; max-width: calc(100% - 24px); margin: 0; padding: 7px 14px; border-radius: 999px; background: rgba(23, 23, 26, 0.94); border: 1px solid var(--borda); color: var(--texto); font-size: 14px; font-weight: 600; text-align: center; pointer-events: none; }
.mapa-estado[hidden] { display: none; }
.mapa-lado { display: flex; gap: 8px; pointer-events: auto; }
.redondo { width: 42px; height: 42px; border-radius: 50%; background: rgba(23, 23, 26, 0.94); border: 1px solid var(--borda); display: flex; align-items: center; justify-content: center; color: var(--texto); }
.folha-mapa { position: absolute; left: 0; right: 0; bottom: 0; z-index: 600; background: var(--painel); border-radius: 22px 22px 0 0; border-top: 1px solid var(--borda); max-height: 48%; display: flex; flex-direction: column; transition: transform 280ms var(--ease-drawer); }
.folha-mapa.recolhida { transform: translateY(calc(100% - 70px)); }
.pega { display: block; width: 100%; height: 22px; position: relative; flex: none; }
.pega::after { content: ""; position: absolute; left: 50%; top: 8px; width: 38px; height: 5px; margin-left: -19px; border-radius: 3px; background: #4a4a50; }
.folha-cab { display: flex; justify-content: space-between; align-items: baseline; padding: 0 18px 8px; flex: none; }
.folha-cab h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
.folha-titulo { display: flex; align-items: center; gap: 6px; }
.lista-pessoas { list-style: none; margin: 0; padding: 0 8px 10px; overflow-y: auto; overscroll-behavior: contain; }
.pessoa { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; width: 100%; padding: 10px; border-radius: 14px; text-align: left; }
.pessoa.sel { background: var(--painel-2); }
.pessoa-txt { min-width: 0; }
.pessoa-txt b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 16px; font-weight: 600; line-height: 21px; }
.pessoa.sel .pessoa-txt b { -webkit-line-clamp: unset; }
.vazio-lista { padding: 6px 18px 14px; color: var(--texto-3); font-size: 14px; }
.pessoa-txt .meta { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pessoa-dir { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.pessoa-dir .dist { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.vivo-txt { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--texto-3); }
.vivo-txt i { width: 7px; height: 7px; border-radius: 50%; background: var(--verde); animation: pisca 1.6s infinite; }
.pessoa-acoes { display: flex; gap: 8px; flex-wrap: wrap; padding: 2px 10px 12px 66px; }
.pessoa-acoes a, .pessoa-acoes button { height: 34px; padding: 0 14px; border-radius: 999px; background: var(--painel-3); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; text-decoration: none; }
.pessoa-acoes a.rota { background: #fff; color: #1f1f1f; gap: 6px; }
/* O botão "Motorista e carro" (decisão de 06/11): grande no cartão da pessoa, a primeira coisa que a família toca. */
.pessoa-acoes a.btn-viagem { width: 100%; height: 48px; border-radius: 14px; font-size: 16px; justify-content: center; }
.pessoa-acoes .viagem-encerrada { width: 100%; }
.btn-viagem small { font-size: 13px; font-weight: 500; opacity: 0.75; margin-left: 4px; }
.link-estado[data-estado="ok"] { color: var(--verde); }
.link-estado[data-estado="recusado"], .link-estado[data-estado="erro"] { color: var(--texto); }
.colar-link { display: flex; gap: 8px; align-items: center; }
.colar-link input { flex: 1; min-width: 0; height: 46px; border-radius: 12px; border: 1px solid var(--borda-campo); background: var(--painel-2); color: var(--texto); font: inherit; font-size: 16px; padding: 0 12px; }
.pessoa-acoes a.rota img { display: block; height: 17px; width: auto; }

/* marcadores */
.pin-wrap { background: none !important; border: 0 !important; }
.pin { position: relative; width: 46px; height: 56px; }
.pin-av { position: absolute; top: 0; left: 3px; width: 40px; height: 40px; border-radius: 50%; background: var(--h); border: 3px solid #fff; color: #fff; font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5); z-index: 1; }
.pin-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 32%; display: block; }
.pin::after { content: ""; position: absolute; left: 50%; top: 35px; width: 10px; height: 10px; margin-left: -5px; background: #fff; transform: rotate(45deg); border-radius: 2px; }
.pin.emergencia .pin-av { border-color: var(--vermelho); }
.pin.emergencia::after { background: var(--vermelho); }
.pin.atencao .pin-av { border-color: var(--ambar); }
.pin.atencao::after { background: var(--ambar); }
.pin.desatualizado .pin-av, .pin.sem .pin-av { filter: grayscale(0.7); opacity: 0.8; }
.pin-halo { position: absolute; top: -6px; left: -3px; width: 52px; height: 52px; border-radius: 50%; background: var(--halo, rgba(48, 164, 108, 0.5)); opacity: 0; }
.pin.vivo .pin-halo { animation: halo 2.2s ease-out infinite; }
.pin.emergencia .pin-halo { --halo: rgba(227, 38, 42, 0.6); animation: halo 1.2s ease-out infinite; }
@keyframes halo { 0% { transform: scale(0.6); opacity: 0.6; } 100% { transform: scale(1.5); opacity: 0; } }
.eu { position: relative; width: 22px; height: 22px; }
.eu-ponto { position: absolute; inset: 2px; border-radius: 50%; background: var(--eu); border: 3px solid #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, 0.5); z-index: 1; }
.eu-cone { position: absolute; left: -24px; top: -24px; width: 70px; height: 70px; border-radius: 50%; background: conic-gradient(from -28deg, rgba(47, 124, 246, 0.4) 0deg 56deg, transparent 56deg); transform: rotate(var(--rumo, 0deg)); display: none; }
.eu.com-rumo .eu-cone { display: block; }
.marcador-lugar { width: 26px !important; height: 26px !important; margin-left: -13px !important; margin-top: -13px !important; border-radius: 8px; background: #fff; color: var(--fundo); display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); }
.rotulo-mapa { background: rgba(14, 14, 16, 0.88); color: #fff; border: 0; border-radius: 6px; padding: 3px 7px; font-size: 12px; font-weight: 600; box-shadow: none; }
.rotulo-mapa::before { display: none; }
.leaflet-container { font: inherit; background: #1a1a1d; }
.tiles-escuros { filter: invert(1) hue-rotate(180deg) brightness(0.9) contrast(0.9) saturate(0.6); }
.leaflet-control-attribution { background: rgba(14, 14, 16, 0.72) !important; color: var(--texto-3) !important; font-size: 10px; line-height: 14px; padding: 2px 6px; border-radius: 6px; }
.leaflet-control-attribution a { color: var(--texto-3) !important; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: #202024; color: var(--texto); }
.leaflet-popup-content a { color: var(--texto); }

/* ---------- corrida ---------- */
.corrida { position: absolute; inset: 0; }
.corrida #mapa-corrida { bottom: auto; height: 50%; }
.voltar-flutuante { position: absolute; top: calc(12px + var(--safe-topo)); left: 12px; z-index: 500; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--fundo); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4); }
.folha-fixa { position: absolute; left: 0; right: 0; bottom: 0; top: 46%; z-index: 600; background: var(--painel); border-radius: 22px 22px 0 0; padding: 0 18px calc(18px + var(--safe-base)); overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
/* Conteúdo maior que a folha rola; nada encolhe. Sem isto, a lista de lugares (.grupo, overflow hidden) ia a 0 de altura
   no iPhone e ficava atrás da própria folha, sem dar para tocar. */
.folha-fixa > * { flex-shrink: 0; }
.folha-fixa h2 { font-size: 24px; line-height: 30px; font-weight: 700; letter-spacing: -0.02em; }
.passos { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; counter-reset: passo; }
.passos li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; font-size: 15px; line-height: 21px; counter-increment: passo; }
.passos li::before { content: counter(passo); width: 28px; height: 28px; border-radius: 50%; background: var(--painel-2); font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.passos li small { display: block; color: var(--texto-3); font-size: 13px; line-height: 18px; margin-top: 2px; }
details.config { background: var(--painel); border-radius: 14px; }
details.config summary { list-style: none; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; font-weight: 600; cursor: pointer; }
details.config summary::-webkit-details-marker { display: none; }
details.config[open] summary .ic { transform: rotate(90deg); }
details.config .corpo { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 14px; }
.aguardando { display: flex; align-items: center; gap: 12px; }
.carregando { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--borda-forte); border-top-color: #fff; animation: gira 0.9s linear infinite; flex: none; }
@keyframes gira { to { transform: rotate(360deg); } }
.link-demo { font-size: 13px; color: var(--texto-3); text-decoration: underline; text-underline-offset: 3px; align-self: center; padding: 6px; }

/* ---------- avisos ---------- */
.titulo-tela { font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: -0.02em; margin: 6px 0 14px; }
.avisos { list-style: none; margin: 0; padding: 0; }
.aviso-item { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--borda); align-items: start; }
.aviso-item .txt { font-size: 15px; line-height: 21px; }
.aviso-item time { font-size: 13px; color: var(--texto-3); white-space: nowrap; }
.tag { display: block; margin: 0 0 2px; font-size: 13px; line-height: 18px; font-weight: 600; }
.tag.risco { color: #ff8a8d; }
.tag.atencao { color: #f4c35c; }
.tag.info { color: #8db6f5; }
.pergunta-cartao { background: var(--painel); border-radius: var(--raio); padding: 18px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 12px; }
/* Mural (P4): o alarme da família fixo no topo, sem a margem de cima da Início; a fileira das mensagens prontas com alvo de
   toque de 44 px; "Ver a viagem" na linha de baixo do item. Conserto da P4: a fileira tem a frase "Um toque manda à família"
   à vista, e os botões são de mandar (borda, canto de cartão), não a pílula dos chips de escolha. */
.banner.mural-alarme { margin: 0 0 14px; }
.mural-prontas { margin: 0 0 16px; }
.mural-dica { color: var(--texto-2); font-size: 13px; line-height: 18px; margin: 0 0 8px; }
.mural-botoes { display: flex; gap: 8px; flex-wrap: wrap; }
.pronta { min-height: 44px; padding: 10px 14px; border-radius: var(--raio-p); border: 1px solid var(--borda-forte); background: var(--painel); font-size: 14px; font-weight: 600; transition: transform 120ms var(--ease-out), background-color 120ms var(--ease-out); }
.pronta:active { transform: scale(0.96); }
.pronta[aria-disabled="true"] { opacity: 0.55; }
.aviso-item .meta .btn-mini { margin-top: 4px; min-height: 36px; }
.pergunta-cartao h2 { font-size: 20px; }
.vazio { text-align: center; padding: 48px 20px; color: var(--texto-3); display: flex; flex-direction: column; align-items: center; gap: 10px; }

/* ---------- ajustes ---------- */
.perfil { display: flex; align-items: center; gap: 14px; padding: 6px 0 4px; }
.perfil b { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; display: block; }
.codigo { color: var(--texto-2); word-break: break-all; -webkit-user-select: all; user-select: all; }
.select-linha { background: transparent; color: var(--texto-3); border: 0; font-size: 16px; text-align: right; }

/* ---------- sobreposições ---------- */
#pergunta, #acompanhar { position: fixed; inset: 0; z-index: 60; background: var(--fundo); display: flex; flex-direction: column; padding: calc(16px + var(--safe-topo)) 18px calc(18px + var(--safe-base)); overflow-y: auto; overscroll-behavior: contain; }
#pergunta[hidden], #acompanhar[hidden], #folha-modal[hidden], #ligacao[hidden], #discreto[hidden] { display: none; }
.sobre { flex: 1; display: flex; flex-direction: column; gap: 16px; max-width: 440px; width: 100%; margin: 0 auto; }
.sobre.centro-v { justify-content: center; text-align: center; }
.sobre h2 { font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: -0.02em; }
.icone-grande { width: 64px; height: 64px; border-radius: 50%; background: #33270e; color: var(--ambar); display: flex; align-items: center; justify-content: center; margin: 0 auto; }
.fechar-topo { align-self: flex-start; width: 40px; height: 40px; border-radius: 50%; background: var(--painel-2); display: flex; align-items: center; justify-content: center; }
#folha-modal { position: fixed; inset: 0; z-index: 65; background: rgba(0, 0, 0, 0.6); display: flex; align-items: flex-end; }
.folha-conteudo { width: 100%; background: var(--painel); border-radius: 22px 22px 0 0; padding: 0 18px calc(18px + var(--safe-base)); max-height: 88%; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; overscroll-behavior: contain; }
.folha-conteudo h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
/* folha comprida (o Fale com a Argos com a lista de pedidos): rola, e nenhum filho encolhe até sumir (o "Fechar" ficava com
   altura zero, fora do alcance do dedo) */
.folha-conteudo > * { flex-shrink: 0; }
.campo-num { display: flex; align-items: center; justify-content: center; gap: 18px; }
.campo-num button { width: 48px; height: 48px; border-radius: 50%; background: var(--painel-2); font-size: 24px; }
.campo-num output { font-size: 40px; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 120px; text-align: center; }
/* visibility junto da opacidade: enquanto some, o aviso já não conta como visível (o axe media o contraste no meio do esmaecimento) */
#toast { position: fixed; left: 50%; bottom: calc(var(--abas) + var(--safe-base) + 14px); transform: translate(-50%, 8px); z-index: 80; background: #fff; color: var(--fundo); border-radius: 999px; padding: 10px 18px; font-size: 14px; font-weight: 600; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out); white-space: normal; text-align: center; max-width: calc(100% - 32px); }
#toast.vis { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
/* A barra do Desfazer (P3, 08/11): no lugar do aviso, acima das abas, com o botão ao alcance do dedo; some sozinha. Fica logo
   acima das folhas (65), porque nasce na folha dos lugares, e por baixo da ligação falsa (70) e do aviso (80). A tela escura
   (50) só existe com o alarme em curso: o app esconde a barra quando um alarme começa, a tela escurece ou a ligação toca, e
   não a mostra enquanto eles estão na tela (conserto da revisão da P3: uma faixa branca por cima entregaria o disfarce). */
.barra-desfazer { position: fixed; left: 16px; right: 16px; bottom: calc(var(--abas) + var(--safe-base) + 14px); z-index: 66; display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 480px; margin: 0 auto; background: #fff; color: var(--fundo); border-radius: var(--raio-p); padding: 6px 6px 6px 16px; font-size: 15px; font-weight: 600; }
.barra-desfazer[hidden] { display: none; }
.barra-desfazer .btn-mini { background: var(--fundo); color: #fff; min-height: 44px; padding: 0 18px; font-weight: 700; }
#discreto { position: fixed; inset: 0; background: #000; z-index: 50; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 40px; touch-action: none; outline: none; }
#discreto p { color: #2a2a2a; font-size: 13px; }
/* A marca de gravação na tela escura (política, "Áudio e vídeo"; conserto depois das revisões, revisão dos termos, achado 12,
   e da pessoa, achado 9): um ponto vermelho pequeno no alto, sem palavra visível, sem brilho nem animação, com contraste de
   3,5:1 sobre o preto (o mínimo de um elemento gráfico é 3:1). A palavra "gravando" fica para o leitor de tela. Quem segura o
   celular vê que grava; de longe, é um ponto. */
#discreto .grav-discreta { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 14px); left: 0; right: 0; margin: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #2a2a2a; }
#discreto .grav-discreta[hidden] { display: none; }
#discreto .grav-discreta i { width: 8px; height: 8px; border-radius: 50%; background: #b03a3a; flex: none; }
/* Fale com a Argos (01/11) */
.fale-titulo { font-size: 16px; margin: 22px 0 8px; }
.fale-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.fale-lista li { background: var(--painel-2); border-radius: var(--raio-p); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.fale-lista .meta { display: block; }
.fale-texto { color: var(--texto-2); font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; }
.fale-resposta { font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; border-left: 2px solid var(--dourado); padding-left: 10px; margin-top: 4px; }
.versao-anterior a { color: var(--texto-2); }
/* O segurar da corrida não pode virar rolagem da folha no meio (arrastar cancelava calado). */
#perigo-corrida { touch-action: none; }

/* ---------- ligação falsa, no formato do iPhone ---------- */
#ligacao { position: fixed; inset: 0; z-index: 70; background: #000; }
.chamada-ios { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: calc(64px + var(--safe-topo)) 28px calc(44px + var(--safe-base)); background: radial-gradient(ellipse at 50% 15%, #3a3f4b, #0a0a0c 65%); color: #fff; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif; }
.chamada-ios .topo-ch { text-align: center; }
.chamada-ios .nome { font-size: 38px; font-weight: 400; letter-spacing: -0.01em; }
.chamada-ios .sub-ch { font-size: 18px; color: #c7c7cc; margin-top: 4px; font-variant-numeric: tabular-nums; }
.chamada-ios .base { width: 100%; max-width: 330px; }
.chamada-ios .opcoes { display: flex; justify-content: space-between; color: #fff; font-size: 12px; margin-bottom: 34px; padding: 0 10px; }
.chamada-ios .opcoes div { text-align: center; }
.chamada-ios .opcoes .ic-ch { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); margin: 0 auto 6px; display: flex; align-items: center; justify-content: center; }
.chamada-ios .botoes { display: flex; justify-content: space-between; width: 100%; }
.chamada-ios .botoes div { text-align: center; font-size: 13px; color: #fff; }
.chamada-ios .botoes button { width: 78px; height: 78px; border-radius: 50%; margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; }
.chamada-ios .recusar { background: #ff3b30; }
.chamada-ios .recusar svg { transform: rotate(135deg); }
.chamada-ios .aceitar { background: #34c759; }
.chamada-ios .grade { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 28px; }
.chamada-ios .grade div { text-align: center; font-size: 12px; color: #e5e5ea; }
.chamada-ios .grade .ic-ch { width: 76px; height: 76px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; }

/* entrada, conta e primeiro acesso (0.6) */
.entrada, .onb { display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 460px; margin: 0 auto; flex: 1; padding-bottom: 20px; }
.entrada-meio { margin-top: 10vh; display: flex; flex-direction: column; gap: 10px; }
.entrada > .pilha, .onb > .pilha { margin-top: auto; padding-top: 12px; }
.voltar-topo { display: inline-flex; align-items: center; gap: 2px; color: var(--texto-2); font-size: 16px; align-self: flex-start; margin-left: -8px; min-height: 40px; }
.form { display: flex; flex-direction: column; gap: 14px; }
.campo { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--texto-2); min-width: 0; }
.campo input, .campo select { background: var(--painel); border: 1px solid var(--borda-campo); border-radius: var(--raio-p); color: var(--texto); font-size: 17px; padding: 13px 14px; outline: none; width: 100%; min-width: 0; -webkit-appearance: none; appearance: none; }
.campo input:focus, .campo select:focus { border-color: #fff; }
.campo small { color: var(--texto-3); font-size: 12px; line-height: 16px; }
.campo-duplo { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; }
.erro-form { color: var(--ambar); font-size: 14px; line-height: 20px; }
.erro-form:empty { display: none; }
.dobra { color: var(--texto-2); font-size: 14px; }
.dobra summary { cursor: pointer; padding: 6px 0; color: var(--texto-2); }
.dobra[open] summary { margin-bottom: 10px; }
.cartao.instalar { display: flex; flex-direction: column; gap: 12px; }
.onb-topo { display: flex; justify-content: space-between; align-items: center; }
.onb-barra { height: 3px; background: var(--painel-2); border-radius: 2px; overflow: hidden; margin-top: -6px; }
.onb-barra i { display: block; height: 100%; width: 100%; background: #fff; border-radius: 2px; transform-origin: left; transition: transform 240ms var(--ease-out); }
.onb .titulo-grande { margin-top: 4px; }
.foto-grande { align-self: center; display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--texto-2); font-size: 15px; margin-top: 8px; }
.foto-grande > span:last-child { display: inline-flex; align-items: center; gap: 6px; }
.foto-grande.enviando { opacity: .5; pointer-events: none; }
.passos .btn.peq { margin-top: 10px; display: inline-flex; }
.at-resultado { display: block; margin-top: 8px; font-size: 14px; line-height: 20px; color: var(--texto-2); }
.at-resultado:empty { display: none; }
.campo-copia { margin-top: 8px; width: 100%; background: var(--painel-2); border: 1px solid var(--borda-campo); border-radius: 8px; color: var(--texto); font-size: 13px; padding: 8px; }
.atalho-tut { display: flex; flex-direction: column; gap: 14px; }
.cartao.convite { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.codigo-grande { font-size: 28px; letter-spacing: 0.12em; font-variant-numeric: tabular-nums; }
.convite-ajustes:not(:empty) { margin-top: 10px; }
.btn-mini { font-size: 14px; color: var(--texto-2); padding: 7px 12px; border-radius: 999px; background: var(--painel-2); flex: none; }
.form-contato { margin-top: 12px; }
.perfil-foto { position: relative; flex: none; }
.perfil-cam { position: absolute; right: -3px; bottom: -3px; width: 24px; height: 24px; border-radius: 50%; background: var(--painel-3); color: #fff; display: flex; align-items: center; justify-content: center; border: 2px solid var(--fundo); }
.estado-mini .linha .rotulo { flex: none; }
.estado-mini .linha > span:last-child { flex: 1; min-width: 0; text-align: right; }
.at-resultado.ok-txt { color: var(--verde); }
.at-resultado.ruim-txt { color: var(--ambar); }

/* 0.7: selo de pronto, botão discreto, posição velha, linhas de estado */
.selo { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; line-height: 18px; padding: 6px 12px; border-radius: 999px; align-self: flex-start; margin-top: 8px; }
.selo.ok { color: var(--verde); background: rgba(48, 164, 108, 0.12); }
.selo.falta { color: var(--ambar); background: rgba(224, 160, 32, 0.12); }
.btn-contorno { background: transparent; color: var(--texto-2); border: 1px solid var(--borda-forte); height: 46px; font-size: 15px; }
.pin.desatualizado .pin-av, .pin.sem .pin-av, .pin.velho .pin-av { filter: grayscale(1); opacity: 0.7; }
.pin.velho::after { background: #8e8e93; }
.pin-idade { position: absolute; top: 47px; left: 50%; transform: translateX(-50%); background: rgba(14, 14, 16, 0.88); color: #d0d0d4; font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 6px; white-space: nowrap; z-index: 2; }
.estado-mini button.linha:disabled { cursor: default; opacity: 1; }


/* 0.8: fase de teste sem central, relato */
.banner.teste { background: #241d10; }
.banner.teste .ic { color: var(--ambar); }
.link-relato { display: block; margin-top: 6px; color: var(--texto); font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-align: left; }
.cartao.aviso-teste { background: #241d10; border: 1px solid rgba(224, 160, 32, 0.35); }
textarea.relato { width: 100%; background: var(--painel-2); border: 1px solid var(--borda-campo); border-radius: var(--raio-p); color: var(--texto); font: inherit; font-size: 16px; padding: 12px; resize: vertical; -webkit-user-select: text; user-select: text; margin: 12px 0 4px; }
.etapa.falhou .marca { background: var(--ambar); border-color: var(--ambar); color: #141414; font-weight: 800; font-size: 13px; }
.etapa.falhou .txt { color: var(--ambar); }
.inicio > * { flex-shrink: 0; }
.banner.teste { margin-top: 10px; padding: 10px 12px; }
.crise-area { flex: 1 0 auto; }
.crise-area > * { flex-shrink: 0; }
.selo.ok { cursor: pointer; }
.btn.peq.btn-texto { height: 36px; padding: 0 8px; margin-top: 6px; }
[hidden] { display: none !important; }
.linha b.codigo { font-size: 17px; font-weight: 600; letter-spacing: 0.04em; color: var(--texto); font-variant-numeric: tabular-nums; white-space: nowrap; }
.linha b.codigo[aria-label="escondido"] { font-size: 15px; letter-spacing: 0.2em; color: var(--texto-2); }
.linha b.codigo.estado { font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--texto-3); }
.termo { color: var(--texto-2); font-size: 13px; line-height: 18px; }

/* 0.14: "i" de informação no lugar das frases */
.info { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; color: var(--texto-3); vertical-align: middle; margin-left: 2px; flex: none; }
.info .ic { stroke-width: 2; }
.secao-cab .info { width: 20px; height: 20px; }
.linha .rotulo .info { margin-left: 0; }
.banner#ver-codigos { background: #1a1f2b; }

/* break-ui: seletor de dados, só com ?dados= na URL */
#dados-seletor { position: fixed; left: 50%; bottom: calc(var(--abas) + var(--safe-base) + 8px); transform: translateX(-50%); z-index: 90; display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: #d9d9de; font: 500 12px -apple-system, system-ui, sans-serif; }
#dados-seletor button { padding: 5px 9px; border-radius: 999px; color: #333; }
#dados-seletor button.sel { background: #fff; color: #000; }

/* ---- acessibilidade (auditoria de 27/10/2026, design-plans/acessibilidade-relatorio.md) */
/* Título que recebe o foco por programa (tela nova) não mostra contorno. */
h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus, [data-foco-inicial]:focus:not(:focus-visible) { outline: none; }
h1.sub { font-weight: 400; margin: 0; }
.crise.perigo { max-width: 100%; }
@media (max-width: 300px) { .crise.perigo { width: 100%; height: auto; aspect-ratio: 1; } }
/* Tela baixa (Safari com barra): MÉDICO e CENTRAL sobem para fora da barra de abas. */
@media (max-height: 900px) { .crise-area { gap: 10px; padding: 4px 0 6px; min-height: 0; } .dica { font-size: 14px; } }
/* "i": o desenho continua de 22 px, a área de toque chega a 44. */
.info { position: relative; }
.info::after { content: ""; position: absolute; inset: -11px; }
.linha .info::after { inset: -8px; }
/* "Estou bem" tolera o dedo que desliza durante o segurar. */
#bem { touch-action: none; }
/* Mapa: aproximar e afastar com um toque, sem pinça. */
.mapa-zoom { position: absolute; right: 12px; top: calc(112px + var(--safe-topo)); z-index: 500; display: flex; flex-direction: column; gap: 8px; }
.mapa-zoom .redondo { font-size: 24px; font-weight: 500; line-height: 1; }
/* 320 px: os controles do topo do mapa cabem. */
@media (max-width: 360px) { .camadas button { padding: 0 9px; } .mapa-lado { gap: 6px; } }
.link-relato { display: block; margin: 4px auto 0; min-height: 44px; padding: 0 12px; }
/* O que o mapa mostra, em texto, na folha da lista. */
.perto-texto { padding: 4px 18px 16px; }
.perto-titulo { font-size: 13px; font-weight: 400; color: var(--texto-3); margin: 8px 0 6px; }
.perto-texto p { margin: 2px 0; }
.perto-lista { list-style: none; margin: 6px 0 0; padding: 0; }
.perto-lista li { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; border-top: 1px solid var(--borda); }
.perto-lista li span { display: flex; flex-direction: column; font-size: 15px; }
.perto-lista small { color: var(--texto-3); font-size: 13px; }
/* Faixa da fase de teste em uma linha e espaços menores em tela baixa: MÉDICO e CENTRAL ficam acima da barra de abas. */
.banner.compacto { padding: 8px 12px; gap: 8px; margin-top: 10px; }
.banner.compacto b { display: inline; font-size: 14px; }
.banner.compacto .sub { line-height: 18px; }
@media (max-height: 900px) { .historias { margin-top: 12px; } }
@media (max-height: 700px) { .crise-area { gap: 6px; padding: 0 0 4px; } .dica { font-size: 13px; line-height: 16px; } .historias { margin-top: 8px; } }
/* Contorno dos botões de crise (pedido do Vitor, 27/10): anel fino na cor do tipo, separado do botão por
   uma faixa do fundo. É desenho, não sombra: não tem desfoque. */
.crise { --anel: rgba(227, 38, 42, 0.8); box-shadow: 0 0 0 4px var(--fundo), 0 0 0 6px var(--anel); }
.crise.medico { --anel: rgba(47, 111, 214, 0.85); }
.crise.central { --anel: rgba(201, 162, 74, 0.8); }

/* 0.18 (plano web, V3): os botões de crise têm o tamanho do espaço que sobra entre a faixa e os atalhos. Em tela
   baixa (iPhone SE, Safari com barra) diminuem em vez de ir para baixo da barra de abas. Navegador sem consulta de
   contêiner fica com os tamanhos fixos de antes. */
@supports (container-type: size) {
  .inicio { height: 100%; min-height: 0; }
  .crise-area { flex: 1 1 0; min-height: 210px; container-type: size; justify-content: center; }
  .crise.perigo { width: clamp(112px, calc(58cqh - 12px), 220px); height: clamp(112px, calc(58cqh - 12px), 220px); }
  .crise.medico, .crise.central, .crise.duvidas { width: clamp(84px, calc(34cqh - 8px), 128px); height: clamp(84px, calc(34cqh - 8px), 128px); }
  .crise.perigo .t { font-size: clamp(26px, 9cqh, 42px); }
  .crise.perigo .s { font-size: clamp(11px, 3.6cqh, 13px); line-height: 1.2; }
  .crise.medico .t, .crise.central .t, .crise.duvidas .t { font-size: clamp(16px, 5cqh, 20px); }
  .crise.medico .s, .crise.central .s, .crise.duvidas .s { font-size: clamp(10px, 3.2cqh, 12px); line-height: 1.2; }
}
/* Tela baixa: avatares e atalhos um pouco menores para sobrar espaço aos botões de crise. */
@media (max-height: 700px) {
  .historias .av { --t: 46px !important; }
  .historias { margin-top: 6px; }
  .atalho-ic { height: 42px; }
  .atalhos { padding-top: 6px; }
  .titulo-grande { font-size: 24px; line-height: 30px; margin-top: 4px; }
}
/* Botões menores abaixo de uns 110 px: só o nome aparece; a explicação segue para o leitor de tela. */
@container (max-height: 350px) {
  .crise.medico .s, .crise.central .s, .crise.duvidas .s { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .crise.medico .t, .crise.central .t, .crise.duvidas .t { font-size: 15px; letter-spacing: 0.04em; }
}
/* "Esqueci o PIN" na tela do PIN do alarme: link de texto, área de toque de 44 px. */
.link-esqueci { display: inline-block; min-height: 44px; padding: 0 8px; color: var(--texto); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }


/* ---- 0.20: refinos a partir dos apps de referência (benchmark/refinos-esteticos.md) */
/* Barra de abas: a ativa muda de forma, não só de cor (Material 3, Uber). Contador âmbar; vermelho só com atenção máxima. */
#abas button.ativa .ic { stroke-width: 2; }
#abas button.ativa .ic path:first-child { fill: currentColor; }
#abas button.ativa .ic circle { fill: #121214; }
#abas i { background: var(--ambar); color: #141414; box-shadow: 0 0 0 2px #121214; }
#abas i.risco { background: var(--vermelho); color: #fff; }
/* Linhas de estado do alarme: ponto de cor e texto neutro (indicadores da Apple). */
.estado-mini .ok-txt, .estado-mini .ruim-txt { color: var(--texto-2); display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; }
.estado-mini .ok-txt::before, .estado-mini .ruim-txt::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--verde); flex: none; }
.estado-mini .ruim-txt::before { background: var(--ambar); }
/* Atendimento encerrado: fim em verde e botões no pé, perto do polegar. */
.alarme.fim { flex: 1 0 auto; padding-top: 8px; }
.alarme.fim > .pilha { margin-top: auto; padding-top: 16px; }
.etapa.fim .marca { background: var(--verde); border-color: var(--verde); }
/* Uma escala só de títulos: tela 28, folha e PIN 22, cartão 17 (escala do iOS). */
.folha-cab h2, .folha-fixa h2, .folha-conteudo h2, .pergunta-cartao h2 { font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: -0.01em; }
.pin-titulo, .sobre .pin-titulo { font-size: 22px; line-height: 28px; font-weight: 700; }
.cartao.instalar > b { font-size: 17px; line-height: 22px; font-weight: 600; }
/* Avisos: o dia escrito e o separador começando no texto (Ajustes e Buscar do iPhone). */
.aviso-item { border-bottom: 0; position: relative; }
.aviso-item + .aviso-item::before { content: ""; position: absolute; top: 0; left: 48px; right: 0; height: 1px; background: var(--borda); }
.aviso-item > div, .aviso-item time { padding-top: 7px; }
.aviso-item time { line-height: 21px; }
.aviso-dia { padding: 20px 0 4px; list-style: none; }
.aviso-dia:first-child { padding-top: 0; }
.aviso-dia h2 { font-size: 15px; line-height: 20px; font-weight: 600; color: var(--texto-2); }
.grupo > .linha { border-bottom: 0; position: relative; }
.grupo > .linha + .linha::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--borda); pointer-events: none; }
.grupo > .linha + .linha:has(> .av)::before { left: 64px; }
.estado-mini > .linha + .linha::before { left: 14px; }
.aviso-item time, .linha .valor, .pessoa-dir .meta, .perto-lista small { font-variant-numeric: tabular-nums; }
/* Mapa e corrida: crédito no canto de cima, voltar escuro, toque na lista. */
.mapa-tela .leaflet-top.leaflet-right { top: calc(204px + var(--safe-topo)); }
.corrida .leaflet-top.leaflet-right { top: var(--safe-topo); }
.voltar-flutuante { background: rgba(23, 23, 26, 0.94); color: var(--texto); border: 1px solid var(--borda); box-shadow: none; }
.pessoa { transition: background-color 120ms var(--ease-out); }
.pessoa:active { background: var(--painel-2); }
.mapa-estado { border-radius: 12px; }
#toast { border-radius: 14px; }
/* Teclado do PIN como o do iPhone: fileira de baixo alinhada, tecla clareia, pontos tremem no erro. */
.teclado button.vazio { padding: 0; gap: 0; }
.teclado button:not(.vazio):active { transform: none; background: #3a3a40; }
.teclado button.vazio:active { transform: none; color: var(--texto); }
@keyframes treme { 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(2px); } }
.pin-pontos.erro { animation: treme 320ms var(--ease-out); }
/* Folhas sobem da borda de baixo, e o fundo escurece. */
@keyframes veu { from { background-color: rgba(0, 0, 0, 0); } }
@keyframes sobe { from { transform: translateY(100%); } }
#folha-modal:not([hidden]) { animation: veu 200ms var(--ease-out); }
.folha-conteudo.entra { animation: sobe 280ms var(--ease-drawer); }
/* Volto às em grade de dois, com 44 px; chips com área de toque de 44 px. */
#atv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#atv .chip { height: 44px; }
.chip { position: relative; }
.chip::after { content: ""; position: absolute; inset: -4px 0; }

/* ---- 0.21: rota segura (padrão "Para onde?" de Uber e Waze) */
.rota-entrada { display: flex; align-items: center; gap: 10px; margin: 0 14px 10px; min-height: 48px; padding: 0 14px; border-radius: 14px; background: var(--painel-2); color: var(--texto); font-size: 16px; font-weight: 600; text-align: left; flex: none; }
.rota-entrada .ic { color: var(--texto-2); }
.rota-entrada small { margin-left: auto; font-size: 13px; font-weight: 500; color: var(--texto-3); }
#rota-painel { padding: 0 16px 12px; overflow-y: auto; overscroll-behavior: contain; }
.rota-cab { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.rota-cab h2 { font-size: 22px; line-height: 28px; font-weight: 700; margin: 0; }
.rota-opcoes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.rota-opcao { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border-radius: 14px; background: var(--painel-2); border: 1px solid transparent; text-align: left; min-height: 44px; }
.rota-opcao.sel { border-color: var(--texto); }
.rota-opcao b { font-size: 15px; }
.rota-opcao span { font-size: 15px; font-variant-numeric: tabular-nums; }
.rota-opcao small { font-size: 13px; }
.rota-resumo { margin: 0 0 4px; font-size: 17px; font-variant-numeric: tabular-nums; }
.rota-nota { margin: 2px 0 0; font-size: 13px; }
.rota-expo { margin: 2px 0 12px; font-size: 15px; }
.atencao-txt { color: #f4c35c; }
.rota-lista { margin: 8px 0 0; padding: 0 0 0 20px; display: grid; gap: 8px; }
.rota-lista li { font-size: 15px; color: var(--texto-2); }
.rota-lista small { display: block; color: var(--texto-3); font-variant-numeric: tabular-nums; }
.modo-rota { margin: 4px 0 12px; }
.busca-rota { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.busca-rota input { flex: 1; min-width: 0; height: 46px; border-radius: 12px; border: 1px solid var(--borda-campo); background: var(--painel-2); color: var(--texto); font: inherit; font-size: 16px; padding: 0 12px; }
.destinos-rapidos { margin-top: 6px; }
.destino-ponto { display: block; width: 18px; height: 18px; margin: 6px; border-radius: 50%; background: #fff; border: 5px solid #0e0e10; box-shadow: 0 0 0 2px #fff; }

/* ---- 0.21: deslizar para encerrar o alarme (como o SOS do Life360 e o "deslize para desligar" do iPhone) */
.deslizar { position: relative; display: flex; align-items: center; width: 100%; height: 56px; padding: 4px; border-radius: 28px; border: 1px solid var(--borda-forte); background: var(--painel); overflow: hidden; touch-action: none; -webkit-user-select: none; user-select: none; }
.deslizar-bola { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--texto); color: var(--fundo); will-change: transform; }
.deslizar-txt { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding-left: 44px; font-size: 16px; font-weight: 600; color: var(--texto-2); pointer-events: none; }
.deslizar.segurando .deslizar-bola { background: #e6e6ea; }
/* O puxador da folha do mapa tem 24 px de altura: com o campo da rota logo abaixo, o toque não erra. */
.folha-mapa > .pega { height: 24px; }
/* Crédito do mapa no canto, quebrando em linhas, sem atravessar a tela por cima dos marcadores. */
.leaflet-top.leaflet-right .leaflet-control-attribution { max-width: 58vw; white-space: normal; text-align: right; }
/* A área de conteúdo isola as camadas dela: o mapa (folha 600, controles do Leaflet 1000) nunca passa por cima da
   janela que sobe, da pergunta "Está tudo bem?", do aviso flutuante nem da tela escura. */
#tela { isolation: isolate; }

/* Modo de posição (0.23): interruptor de dois estados, cada um com a sua linha de explicação; escolha na primeira
   abertura; cartão de cada menor para o responsável. */
.modo-cartao { display: flex; flex-direction: column; gap: 12px; }
.modo-posicao { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.modo-opcao { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px; border-radius: 14px; background: var(--painel-2); border: 1px solid transparent; text-align: left; min-height: 44px; }
.modo-opcao b { font-size: 15px; line-height: 20px; }
.modo-opcao small { font-size: 13px; line-height: 18px; color: var(--texto-2); }
.modo-opcao.sel { border-color: var(--texto); background: var(--painel-3); }
.modo-posicao[aria-disabled="true"] .modo-opcao { cursor: default; }
.modo-posicao[aria-disabled="true"] .modo-opcao.sel { border-style: dashed; }
.modo-pedido { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cartao-menor { margin-top: 12px; }
.cartao-menor-cab { display: flex; align-items: center; gap: 10px; }
.cartao-menor-cab h3 { font-size: 17px; line-height: 22px; }
.cartao-menor-cab .meta { display: block; }
.tela-modo { gap: 18px; padding: 8px 0; }
.tela-modo .titulo-grande { margin: 0; }
.tela-modo .sub, .tela-modo .meta { max-width: 360px; }
.tela-modo .pilha { width: 100%; max-width: 400px; }
.btn-modo { display: flex; flex-direction: column; gap: 4px; width: 100%; min-height: 64px; padding: 16px 18px; border-radius: 18px; background: var(--painel-2); text-align: left; }
.btn-modo b { font-size: 17px; line-height: 22px; }
.btn-modo span { font-size: 14px; line-height: 20px; color: var(--texto-2); }
.btn-modo:disabled { opacity: 0.6; }
.links-politica a { color: var(--texto); }
/* Quem não está em "sempre": o modo e a prontidão em até duas linhas, para "localização desligada" nunca ficar cortada. */
.pessoa-txt .meta.duas { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* Parte C: área do agente (C5) e cadastro do agente (C1). As abas ficam dentro da tela: a conta de agente não tem a
   barra da família. */
.ag-abas { display: flex; gap: 6px; background: var(--painel); border-radius: 14px; padding: 4px; margin: 8px 0 14px; }
.ag-abas button { flex: 1; min-height: 44px; border-radius: 11px; font-size: 15px; font-weight: 600; color: var(--texto-2); position: relative; }
.ag-abas button.ativa { background: var(--painel-3); color: var(--texto); }
.ag-ponto { position: absolute; top: 8px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--vermelho); }
.ag-cartao { display: flex; flex-direction: column; gap: 10px; }
.ag-cartao > b { font-size: 20px; line-height: 26px; }
.ag-aceite { display: flex; gap: 10px; align-items: flex-start; }
.ag-aceite input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: #fff; }
#tela .oc-topo { margin-top: 2px; }
/* Contrato do agente (01/11): quatro abas na área do agente, os avisos do topo (termos novos, aviso de saída) e as linhas
   de período com os botões. */
.ag-abas button { min-width: 0; padding: 0 4px; font-size: 14px; }
.ag-aviso { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; background: #241d10; border: 1px solid rgba(224, 160, 32, 0.35); }
.ag-aviso > b { font-size: 17px; line-height: 22px; }
.ag-reserva { flex-wrap: wrap; }
.ag-botoes { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ag-regra { margin-top: 8px; }
.ag-mes { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 0 8px; }
.ag-mes b { font-size: 16px; text-align: center; flex: 1; }
.ag-mes .btn-mini:disabled { opacity: 0.4; }

/* ---------- consentimentos à parte (01/11): o "Não aceito" do mesmo tamanho e peso do "Aceito"; o escolhido fica claro ---------- */
.cons-onb { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.cons-onb .sub { margin: 0; }
.cons-titulo { font-size: 17px; line-height: 22px; font-weight: 600; }
.cons-escolha { margin-top: 4px; }
.cons-escolha .btn { height: 48px; }
.cons-escolha .btn[aria-checked="true"] { background: #fff; color: var(--fundo); }
.cons-menor-t { margin: 14px 0 6px; display: flex; align-items: center; gap: 6px; }
.cartao-menor .consentimentos { margin: 0; }
.fale-consentimentos { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.fale-consentimentos legend { font-size: 13px; color: var(--texto-2); margin-bottom: 6px; }
.fale-consentimentos .termo { display: flex; gap: 10px; align-items: flex-start; }
.fale-consentimentos small { color: var(--texto-3); font-size: 12px; }
.grupo input:disabled { opacity: 0.55; }
/* o item à parte (assistente de prevenção, 05/11): um bloco abaixo dos três, com a frase de onde ele é pedido */
.nota.cons-a-parte-t { padding: 12px 16px 6px; }

/* ---------- tela Antes de sair (assistente de prevenção, 05/11): a faixa do PERIGO presa no topo da folha, que segue a área
   visível da tela; o cartão de perigo; os cartões de dados em cor neutra, nunca verde ---------- */
.antes-de-sair, .pv-corpo { display: flex; flex-direction: column; gap: 14px; }
.pv-faixa { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 6px 0 8px; background: var(--painel); }
.pv-faixa .btn { height: 56px; padding: 0 12px; }
#pv-perigo { flex-direction: column; gap: 0; line-height: 1.15; }
.pv-perigo-t { font-size: 17px; font-weight: 800; letter-spacing: 0.04em; }
.pv-perigo-s { font-size: 12px; font-weight: 500; }
.pv-sub { font-size: 17px; font-weight: 600; }
.pv-perigo-cartao { background: #2a1214; border: 1px solid rgba(227, 38, 42, 0.55); border-radius: var(--raio); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.pv-perigo-cartao h3 { font-size: 19px; line-height: 24px; font-weight: 700; }
.pv-perigo-cartao .meta { color: var(--texto-2); }
.pv-cartao { background: var(--painel-2); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.pv-cartao h4 { font-size: 15px; font-weight: 700; }
.pv-cartao p { font-size: 15px; line-height: 21px; color: var(--texto); }
.pv-cartao .pv-fonte { font-size: 13px; line-height: 18px; color: var(--texto-2); }
.pv-aviso { font-size: 15px; line-height: 21px; color: var(--texto); background: var(--painel-2); border-radius: 14px; padding: 12px 16px; }
.pv-corpo .linha[aria-pressed="true"] { background: var(--painel-3); }
/* no fundo do escolhido, o cinza de sempre fica abaixo de 4,5:1 (o axe da tela com a IA falsa, 06/11): o subtítulo clareia */
.pv-corpo .linha[aria-pressed="true"] .rotulo small { color: var(--texto-2); }
.pv-corpo .linha[aria-pressed="false"] .pv-marca { visibility: hidden; }
/* O campo de pergunta, as dicas e "Mais uma pergunta" (construção 3 do assistente de prevenção, 05/11). As dicas ficam abaixo
   dos cartões de dados, com o rótulo da IA, em cor neutra: nada em verde. */
.pv-pergunta { display: flex; flex-direction: column; gap: 6px; }
.pv-pergunta textarea { width: 100%; min-height: 72px; background: var(--painel-2); border: 1px solid var(--borda-campo); border-radius: var(--raio-p); color: var(--texto); font: inherit; font-size: 16px; line-height: 22px; padding: 12px; resize: vertical; -webkit-user-select: text; user-select: text; }
.pv-dicas { background: var(--painel-2); border: 1px solid var(--borda-forte); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.pv-dicas h4 { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--texto-2); }
.pv-dicas ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.pv-dicas li { font-size: 15px; line-height: 21px; color: var(--texto); }
/* a ajuda do app (construção 2 do pacote de 06/11): as respostas que a IA escolheu e a lista "Dúvidas sobre o app" */
.pv-ajuda { background: var(--painel-2); border: 1px solid var(--borda-forte); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.pv-ajuda h4 { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--texto-2); }
.pv-ajuda h5 { font-size: 15px; line-height: 21px; font-weight: 700; margin: 0; }
.pv-ajuda p { font-size: 15px; line-height: 21px; color: var(--texto); margin: 2px 0 0; }
.pv-sobre-o-app { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.pv-ajuda-item { background: var(--painel-2); border-radius: 12px; }
.pv-ajuda-item summary { min-height: 44px; display: flex; align-items: center; padding: 10px 14px; font-size: 15px; font-weight: 600; cursor: pointer; list-style-position: inside; }
.pv-ajuda-item p { font-size: 15px; line-height: 21px; color: var(--texto); padding: 0 14px 12px; margin: 0; }
.pv-mais { display: flex; flex-direction: column; gap: 8px; }
.pv-mais > div { display: flex; flex-direction: column; gap: 10px; }
.pv-mais > div[hidden] { display: none; }
/* A porta do assistente de prevenção (construção 3, 05/11): no lugar do CENTRAL da Início, do mesmo tamanho, mas de um toque
   e em cor neutra, com o anel dourado mais apagado, para não parecer um pedido de ajuda. */
.crise.duvidas { --cor: var(--painel-2); --cor-escura: var(--painel-3); --ink: var(--texto); --anel: rgba(201, 162, 74, 0.45); touch-action: manipulation; }
.crise.duvidas .t { letter-spacing: 0.04em; }

/* Corrida: o botão do Uber com a cor e o logo dele, para a pessoa reconhecer de olho (0.23) */
.btn.btn-uber { background: #000; color: #fff; display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; border: 1px solid #3a3a3c; }
.btn.btn-uber img { width: 44px; height: auto; filter: invert(1); }
.pessoa-viagem { display: block; padding: 8px 0; color: var(--texto); text-decoration: underline; font-size: 14px; }
.aguardando .logo-app:not(.logo-uber):not(.logo-99) { background: var(--painel-2); color: var(--texto); }

/* ---- Lapidação 2 (10/11) */
/* Topo da Início: o nome do app com o cavalo ao lado. A imagem é o arquivo oficial do ícone, pequeno e como está. */
.marca-topo { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.marca-topo img { width: 30px; height: 30px; border-radius: 8px; flex: none; }
.topo + .resumo { margin-top: 8px; }
/* Rota segura: os aplicativos e o passo a passo são botões de verdade; o Copiar fica ao lado do passo a passo aberto. */
#rota-painel .pilha + .linha-btn { margin-top: 10px; }
#rota-painel .linha-btn + .rota-nota { margin-top: 8px; }
.rota-passos-linha { margin-top: 10px; }
