/* Acerto Bekväm — estilo claro, didático, no espírito do Notion.
   Hierarquia por tamanho e peso. Cor só com significado: verde recebe, vermelho paga, pastel é categoria.
   Inter em tudo; Titillium só no wordmark da tela de entrada e no "b" da Bekväm. */
:root {
  --ink: #37352F; --ink-2: #787774; --ink-3: #B4B2AC;
  --linha: #E9E9E7; --fundo: #FFFFFF; --fundo-2: #F7F7F5; --preto: #1F1F1F;
  --pos: #2F7D4F; --neg: #D44C47; --pos-fundo: #EDF3EC; --neg-fundo: #FDEBEC;
  --atencao: #CB912F; --atencao-fundo: #FBF3DB;
  --c1-bg: #E7F3F8; --c1: #337EA9;   /* Produtos para a Bekväm */
  --c2-bg: #FBECDD; --c2: #D9730D;   /* Deslocamento */
  --c3-bg: #EDF3EC; --c3: #448361;   /* Alimentação */
  --c4-bg: #F6F3F9; --c4: #9065B0;   /* Assinaturas (só histórico) */
  --c5-bg: #FAF1F5; --c5: #C14C8A;   /* Pessoal */
  --c6-bg: #F1F1EF; --c6: #787774;   /* Outros */
  --c7-bg: #FBF3DB; --c7: #CB912F;   /* Envios */
  --c8-bg: #E9E5E3; --c8: #9F6B53;   /* Fornecedores e terceiros */
  --c9-bg: #E4F1F0; --c9: #3B8C84;   /* Hospedagem */
  --abas: calc(60px + env(safe-area-inset-bottom));
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html { background: var(--fundo); }
body {
  margin: 0; color: var(--ink); background: var(--fundo);
  font: 400 17px/1.45 Inter, system-ui, sans-serif; font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased; min-height: 100dvh;
  padding: env(safe-area-inset-top) 0 calc(var(--abas) + 24px);
}
body.sem-abas { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
main { max-width: 560px; margin: 0 auto; padding: 0 20px; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
input { font: inherit; color: var(--ink); background: none; border: 0; outline: none; min-width: 0; }
input::placeholder { color: var(--ink-3); }
b { font-weight: 600; }
h1, h2, p { margin: 0; }

.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.fraco { color: var(--ink-3); width: 18px; height: 18px; }
.ic.mini { width: 14px; height: 14px; }
.ic circle[r="1.3"] { fill: currentColor; }

/* resposta ao toque */
.botao, .botao-google, .cat, .pessoa, .chip, .opcao, .botao-novo, .segmento button, .passo button, a.linha, button.linha, .abas a { transition: transform 0.12s ease, background-color 0.12s ease, opacity 0.12s ease; }
.botao:active, .botao-google:active, .cat:active, .chip:active, .opcao:active, .segmento button:active, .passo button:active { transform: scale(0.97); }
.botao-novo:active { transform: scale(0.92); }
.abas a:active { transform: scale(0.94); }
.botao:disabled, .botao-google:disabled { opacity: 0.6; cursor: default; }
.spin { display: inline-block; width: 16px; height: 16px; margin-right: 10px; flex: none; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; vertical-align: -3px; animation: gira 0.8s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }

.pos { color: var(--pos); }
.neg { color: var(--neg); }
.zero, .sutil { color: var(--ink-2); }

/* marca: só na entrada */
.marca { display: flex; align-items: baseline; gap: 8px; }
.wordmark { font-family: 'Titillium Web', sans-serif; font-weight: 600; letter-spacing: 0; text-transform: none; font-size: 46px; line-height: 1; color: var(--ink); }
.tagline { font-family: 'Titillium Web', sans-serif; font-weight: 600; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: #C8A96E; }

/* carregando */
.esq { height: 14px; border-radius: 6px; background: linear-gradient(90deg, #F1F1EF 25%, #E9E9E7 50%, #F1F1EF 75%); background-size: 200% 100%; animation: esq 1.2s infinite; }
@keyframes esq { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.carregando { padding: 40px 0; display: flex; flex-direction: column; gap: 18px; }
.carregando .esq:nth-child(1) { width: 40%; } .carregando .esq:nth-child(2) { width: 70%; height: 36px; } .carregando .esq:nth-child(3) { width: 55%; }
.vazio { padding: 60px 0; text-align: center; color: var(--ink-2); }

/* avatares */
.av { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; overflow: visible; background: var(--fundo-2); color: var(--ink-2); font-size: 13px; font-weight: 500; }
.av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.av.s { width: 28px; height: 28px; font-size: 11px; }
.av.g { width: 52px; height: 52px; font-size: 17px; }
.av.bk { background: #1A1A1A; } /* cubo do app, recortado em círculo */
.selo { position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--fundo); }
.selo img { width: 13px; height: 13px; object-fit: contain; }
.pilha { display: inline-flex; flex: none; position: relative; }
.pilha .av { box-shadow: 0 0 0 2px var(--fundo); }
.pilha .av + .av { margin-left: -10px; }
.dupla { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.icat { width: 100%; height: 100%; object-fit: contain; display: block; }

/* topos */
.topo { display: flex; justify-content: space-between; align-items: flex-end; padding: 22px 0 0; }
.topo .data { font-size: 13px; color: var(--ink-2); }
.topo h1 { font-size: 28px; letter-spacing: -0.015em; font-weight: 600; margin-top: 2px; }
.topo-form { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 14px 0; position: sticky; top: 0; z-index: 5; background: var(--fundo); }
.topo-form h1 { font-size: 17px; text-align: center; white-space: nowrap; font-weight: 600; }
.voltar { display: inline-flex; align-items: center; gap: 2px; color: var(--ink-2); font-size: 17px; justify-self: start; }
.voltar .ic { width: 20px; height: 20px; margin-left: -6px; }

.faixa { font-size: 13px; padding: 8px 12px; border-radius: 10px; margin: 10px 0 0; }
.faixa.demo { background: var(--fundo-2); color: var(--ink-2); }
.faixa.cancelado { background: var(--neg-fundo); color: var(--neg); font-size: 14px; margin-top: 4px; }
.faixa.atencao { background: var(--atencao-fundo); color: var(--atencao); font-size: 14px; }

/* herói */
.heroi { padding: 26px 0 8px; }
.heroi small { display: block; font-size: 15px; color: var(--ink-2); }
.heroi .n { font-size: 34px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; margin: 2px 0; }
.heroi .n i { font-style: normal; font-weight: 400; opacity: 0.72; }
.heroi.titulo .n { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }

/* seções e linhas */
.secao { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; font-weight: 600; margin: 28px 0 2px; }
.secao a, .secao button { font-size: 15px; font-weight: 400; color: var(--ink-2); }
.secao .nota { font-weight: 400; color: var(--ink-2); font-size: 13px; margin-left: 8px; }
.linha { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 0; border-bottom: 1px solid var(--linha); color: inherit; }
.linha:last-child { border-bottom: 0; }
a.linha:active, button.linha:active { background: var(--fundo-2); }
.txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.txt b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.txt small, .val small { font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.txt input { font-size: 17px; width: 100%; padding: 2px 0; }
.txt input[type="date"] { min-height: 28px; }
.txt input:disabled { color: var(--ink-3); }
.val { display: flex; flex-direction: column; align-items: flex-end; white-space: nowrap; font-size: 16px; }
.cancelado { opacity: 0.45; }
.cancelado .txt b { text-decoration: line-through; }
.tag { display: inline-block; vertical-align: 1px; margin-left: 6px; padding: 1px 6px; border-radius: 6px; background: var(--fundo-2); color: var(--ink-2); font-size: 11px; font-weight: 500; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.tag.grande { font-size: 13px; padding: 2px 8px; vertical-align: 4px; margin-left: 10px; }
.etiqueta { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 3px 10px 3px 6px; border-radius: 999px; }
.etiqueta img { width: 16px; height: 16px; object-fit: contain; }
.dica { font-size: 13px; color: var(--ink-2); margin: 8px 0; }
.dica.centro { text-align: center; }
.rodape-info { font-size: 13px; color: var(--ink-3); margin: 18px 0; }
.link { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }

/* interruptor */
.alternar input[type="checkbox"] { appearance: none; -webkit-appearance: none; width: 51px; height: 31px; border-radius: 99px; flex: none; background: #D9D9D6; position: relative; transition: background 0.18s; }
.alternar input[type="checkbox"]::after { content: ''; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 0.18s; }
.alternar input[type="checkbox"]:checked { background: var(--preto); }
.alternar input[type="checkbox"]:checked::after { transform: translateX(20px); }

/* botões */
.botao { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 10px; border: 1px solid var(--linha); background: var(--fundo); font-size: 16px; font-weight: 500; }
.botao.primario { background: var(--preto); color: #fff; border-color: var(--preto); }
.botao.perigo { color: var(--neg); }
.botao.largo { width: 100%; max-width: 360px; }
.botao:disabled { opacity: 0.35; cursor: default; }
.botao.mini { min-height: 32px; padding: 0 12px; font-size: 14px; border-radius: 999px; }
.acoes-par { display: flex; justify-content: space-between; gap: 12px; margin: 18px 0; }
.acoes-par .botao { flex: 1; }
.acoes-par > span:first-child:empty { display: none; }
.acoes-par > span:first-child:empty + .botao { flex: 0 1 auto; margin-left: auto; }

/* Botão do Google no padrão oficial (tema claro): branco, borda #747775, Roboto Medium 14, G de 20 px. */
.botao-google { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 40px; padding: 0 12px; min-width: 240px; border-radius: 20px; border: 1px solid #747775; background: #fff; color: #1F1F1F; font: 500 14px/1 Roboto, Inter, system-ui, sans-serif; letter-spacing: 0.25px; cursor: pointer; }
.botao-google svg { width: 20px; height: 20px; flex: none; }
.botao-google:hover { background: #F7F8F8; }
.botao-google:active { background: #EEF0F0; }
body.entrada { padding-bottom: 0; }
.entrar { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: calc(100dvh - env(safe-area-inset-top)); padding: 0 0 8vh; text-align: center; }
.entrar .marca { margin-bottom: 20px; }
/* Abertura (primeira vez neste aparelho): a trema cai, quica, pisca e assenta. ~2,2 s. */
.wordmark.brinca { display: inline-block; }
.wordmark.brinca i { display: inline-block; font-style: normal; opacity: 0; animation: letra 0.55s cubic-bezier(0.16, 1, 0.3, 1) both; }
.wordmark.brinca .a { position: relative; }
.wordmark.brinca .a .com { position: absolute; left: 0; top: 0; opacity: 0; animation: troca 0.01s linear 2.05s both; }
.wordmark.brinca .a .sem { display: inline-block; animation: trocaSem 0.01s linear 2.05s both; }
.trema { position: absolute; display: block; width: 0.105em; height: 0.105em; border-radius: 50%; background: #C8A96E; top: 0.165em; left: 0.165em;
  transform: translateY(-3.2em); animation: queda 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.55s both, pisca 0.22s ease-in-out 1.55s 1, assenta 0.4s ease 1.75s both, some 0.01s linear 2.05s both; }
.trema.t2 { left: 0.395em; animation-delay: 0.63s, 1.55s, 1.75s, 2.05s; }
.wordmark.brinca { animation: oof 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) 1.3s 1; }
.entrar.animada .botao-google, .entrar.animada .lista { opacity: 0; animation: surge 0.7s cubic-bezier(0.16, 1, 0.3, 1) 1.9s both; }
.entrar.animada .sutil { opacity: 0; animation: surge 0.7s cubic-bezier(0.16, 1, 0.3, 1) 2.05s both; }
@keyframes letra { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes queda { 0% { transform: translateY(-3.2em) scale(1); } 62% { transform: translateY(0) scale(1); } 72% { transform: translateY(0.02em) scale(1.35, 0.6); } 84% { transform: translateY(-0.2em) scale(0.9, 1.1); } 100% { transform: translateY(0) scale(1); } }
@keyframes oof { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(0.035em); } }
@keyframes pisca { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.12); } }
@keyframes assenta { from { background: #C8A96E; } to { background: var(--ink); } }
@keyframes some { to { opacity: 0; } }
@keyframes troca { to { opacity: 1; } }
@keyframes trocaSem { to { opacity: 0; } }
@keyframes surge { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .entrar.animada * { animation: none !important; opacity: 1 !important; transform: none !important; } .entrar.animada .trema, .entrar.animada .sem { display: none !important; } .entrar.animada .com { position: static !important; } }
.entrar .lista { width: 100%; max-width: 360px; text-align: left; }

/* abas */
.abas { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; height: var(--abas); padding: 6px 8px env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5, 1fr); align-items: start; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--linha); }
.abas a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding-top: 4px; font-size: 11px; color: var(--ink-2); }
.abas a.ativa { color: var(--ink); }
.abas a .ic { width: 23px; height: 23px; }
.botao-novo { justify-self: center; width: 46px; height: 46px; border-radius: 50%; background: var(--preto); color: #fff; display: grid; place-items: center; }
.botao-novo .ic { width: 24px; height: 24px; stroke-width: 2.2; }

/* folha do + */
.folha-fundo { position: fixed; inset: 0; z-index: 30; background: rgba(55, 53, 47, 0); transition: background 0.22s; display: flex; align-items: flex-end; justify-content: center; }
.folha-fundo.aberta { background: rgba(55, 53, 47, 0.32); }
.folha { width: 100%; max-width: 560px; background: var(--fundo); border-radius: 20px 20px 0 0; padding: 8px 20px calc(16px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform 0.22s ease-out; }
.folha-fundo.aberta .folha { transform: none; }
.alca { display: block; width: 36px; height: 5px; border-radius: 3px; background: var(--linha); margin: 0 auto 10px; }
.opcao { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--linha); width: 100%; }
.opcao:last-child { border-bottom: 0; }
.opcao .quadro { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--fundo-2); flex: none; }
.opcao .quadro .ic { width: 24px; height: 24px; }
.opcao span { display: flex; flex-direction: column; }
.opcao b { font-size: 17px; font-weight: 500; }
.opcao small { font-size: 14px; color: var(--ink-2); }

/* formulário */
.cabeca-valor { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 18px 0 2px; }
.cabeca-valor .valor-grande { padding: 0; }
.recibo { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; color: var(--ink-2); cursor: pointer; }
.recibo-quadro { width: 56px; height: 56px; border-radius: 16px; border: 1px dashed var(--ink-3); background: var(--fundo-2); display: grid; place-items: center; overflow: hidden; color: var(--ink-2); }
.recibo-quadro .ic { width: 24px; height: 24px; }
.recibo-quadro img { width: 100%; height: 100%; object-fit: cover; display: block; }
.recibo.ok .recibo-quadro { border: 2px solid var(--ink); }
.recibo.ok { color: var(--ink); }
.valor-grande { display: flex; flex-direction: column; align-items: center; padding: 22px 0 6px; }
.valor-grande small { font-size: 13px; color: var(--ink-2); margin-bottom: 2px; }
.valor-linha { display: flex; align-items: baseline; justify-content: center; gap: 6px; }
.moeda { font-size: 22px; color: var(--ink-2); }
.valor-grande input { width: 6.2ch; font-size: 44px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.campo-desc { display: block; width: 100%; text-align: center; font-size: 19px; padding: 6px 0 16px; }

/* 7 categorias em 4 + 3, a última linha centralizada; rótulos curtos. */
.cats { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; margin-top: 8px; }
.cat { grid-column: span 2; display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 10px 4px 9px; border-radius: 12px; border: 1px solid var(--linha); font-size: 12px; line-height: 1.2; text-align: center; color: var(--ink-2); min-width: 0; }
.cat .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; }
.cat .ico img { width: 30px; height: 30px; object-fit: contain; }
.cat.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); color: var(--ink); }

.pessoas { display: flex; justify-content: space-between; gap: 4px; margin-top: 8px; }
.pessoa { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px 0; font-size: 12px; color: var(--ink-2); min-width: 0; }
.pessoa span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pessoa .av { opacity: 0.4; transition: opacity 0.15s, transform 0.15s; }
.pessoa.on { color: var(--ink); }
.pessoa.on .av { opacity: 1; box-shadow: 0 0 0 2px var(--fundo), 0 0 0 4px var(--ink); }
.pessoa:active .av { transform: scale(0.95); }

.segmento { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--fundo-2); border-radius: 10px; padding: 2px; margin: 10px 0 4px; }
.segmento button { padding: 8px 0; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--ink-2); text-align: center; }
.segmento button.on { background: var(--fundo); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.linha-pessoa > b { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.linha-pessoa .previa { width: 92px; text-align: right; color: var(--ink-2); font-size: 15px; flex: none; }
.entrada { display: flex; align-items: center; gap: 4px; background: var(--fundo-2); border-radius: 8px; padding: 7px 10px; color: var(--ink-2); flex: none; }
.entrada input { width: 6ch; font-size: 16px; text-align: right; }
.passo { display: flex; align-items: center; gap: 10px; flex: none; }
.passo button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--linha); font-size: 18px; line-height: 1; text-align: center; }
.passo span, .passo input { min-width: 2ch; width: 3ch; text-align: center; font-size: 17px; }

/* linha do tempo das parcelas */
.linha-tempo { list-style: none; margin: 10px 0 0; padding: 0; }
.linha-tempo li { display: grid; grid-template-columns: 14px 48px 1fr auto; align-items: center; gap: 10px; min-height: 44px; position: relative; font-size: 15px; }
.linha-tempo li::before { content: ''; position: absolute; left: 6px; top: 0; bottom: 0; width: 1.5px; background: var(--linha); }
.linha-tempo li:first-child::before { top: 50%; }
.linha-tempo li:last-child::before { bottom: 50%; }
.ponto { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-3); position: relative; z-index: 1; margin-left: 2px; box-shadow: 0 0 0 3px var(--fundo); }
.linha-tempo li.agora .ponto { background: var(--atencao); }
.linha-tempo li.feita .ponto { background: var(--pos); }
.linha-tempo li.corte .ponto { background: transparent; border: 1.5px dashed var(--ink-3); }
.lt-n { color: var(--ink-2); font-size: 14px; }
.lt-data { display: flex; flex-direction: column; }
.lt-data small { font-size: 12px; color: var(--atencao); }
.linha-tempo li.feita .lt-data small { color: var(--pos); }
.linha-tempo li.corte .lt-data { color: var(--ink-3); }
.lt-valor { color: var(--ink-2); }
.total-parcelas { text-align: right; margin: 10px 0 0; color: var(--ink-2); font-size: 15px; }
.total-parcelas b { color: var(--ink); font-weight: 500; }

/* rodapé do formulário */
.rodape-form { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; padding: 10px 20px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--linha); }
.rodape-form > * { max-width: 520px; margin: 0 auto; }
.barra { background: var(--atencao-fundo); color: var(--atencao); border-radius: 10px; padding: 10px 12px; font-size: 15px; text-align: center; margin-bottom: 10px; }
.barra.passou { background: var(--neg-fundo); color: var(--neg); }
.acoes { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.erro-form { flex: 1; color: var(--neg); font-size: 13px; }
.acoes .botao { min-width: 150px; }

/* histórico */
.busca { display: flex; gap: 10px; align-items: center; margin: 14px 0 0; }
.busca input[type="search"] { flex: 1; background: var(--fundo-2); border-radius: 10px; padding: 10px 14px; font-size: 16px; -webkit-appearance: none; }
.alternar-mini { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.filtros { display: flex; gap: 8px; overflow-x: auto; margin: 10px -20px 0; padding: 2px 20px 6px; scrollbar-width: none; }
.filtros::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--linha); border-radius: 999px; padding: 6px 12px; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.chip img { width: 16px; height: 16px; object-fit: contain; }
.chip .av { width: 20px; height: 20px; font-size: 9px; margin-left: -4px; }
.chip.on { background: var(--preto); color: #fff; border-color: var(--preto); }

.comprovante { padding: 10px 0; color: var(--ink-2); }
.comprovante img { width: 100%; border-radius: 10px; display: block; }

/* aviso */
.aviso { position: fixed; left: 50%; bottom: calc(var(--abas) + 14px); transform: translateX(-50%); z-index: 50; display: flex; align-items: center; gap: 16px; padding: 11px 16px; border-radius: 10px; font-size: 15px; max-width: calc(100% - 32px); background: var(--preto); color: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); }
body.sem-abas .aviso { bottom: calc(90px + env(safe-area-inset-bottom)); }
.aviso.erro { background: var(--neg); }
.aviso button { color: #fff; font-weight: 600; }

/* Deslocamento por km */
.km-bloco { margin: 2px 0 8px; }
.segmento.dois { grid-template-columns: repeat(2, 1fr); max-width: 180px; margin: 6px auto 0; }
.km-detalhe { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.km-detalhe .dica { margin: 0; }
.km-detalhe .sutil { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
#km-dica { text-align: center; margin: 6px 0 0; }
#km-dica:empty { display: none; }
