/* Visual do artboard (DESIGN.md): fundo cinza claro, cards brancos sem sombra nem contorno,
   terracota para ação, verde = bom, vermelho = acima da meta, ocre = pendente. */
:root {
  --fundo: #F5F5F6;
  --card: #ffffff;
  --tinta: #2B2521;
  --sec: #6A6057;
  --rotulo: #7A6F64;
  --terracota: #B8532F;
  --terracota-claro: #F7E4DA;
  --terracota-texto: #8E3B1D;
  --verde: #2F7A57;
  --verde-claro: #EEF7F1;
  --verde-tint: #DCEFE3;
  --verde-texto: #1F5E41;
  --vermelho: #B3273F;
  --vermelho-claro: #FBE3E7;
  --ocre: #7A5200;
  --ocre-claro: #FBF0D2;
  --lagoa: #2B7BA0;
  --cinza-box: #F5F5F4;
  --trilho: #F1EADD;
  --linha: #EFE8DA;
  --samuelito: #2D5DA8;
  --lo: #7A2F4E;
  --sombra-foto: 0 4px 14px rgba(43, 37, 33, 0.14);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fundo);
  color: var(--tinta);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input, select { font-family: inherit; }
a { color: inherit; }

.pagina { max-width: 1120px; margin: 0 auto; padding: 0 16px calc(112px + env(safe-area-inset-bottom)); }
.colunas { column-width: 340px; column-gap: 16px; }

/* cabeçalho */
.topo {
  position: sticky; top: 0; z-index: 20; margin: 0 -16px 12px; padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  display: flex; align-items: center; gap: 12px;
  background: rgba(245, 245, 246, 0.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.topo-titulo { margin-left: auto; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--rotulo); }

/* botões de ícone */
.iconbtn { width: 44px; height: 44px; flex: 0 0 44px; border: 0; border-radius: 999px; display: flex; align-items: center; justify-content: center; cursor: pointer; background: transparent; color: var(--tinta); padding: 0; }
.iconbtn.menu { color: var(--terracota); }
.iconbtn.fechar { background: #fff; box-shadow: inset 0 0 0 1px #DDD2BE; }
.iconbtn:focus-visible, .tab:focus-visible, .chip:focus-visible, .mi:focus-visible, .link:focus-visible, .botao:focus-visible, .vertodos:focus-visible { outline: 2px solid var(--terracota); outline-offset: 2px; }

/* cards */
.card {
  background: var(--card); border-radius: 24px; padding: 20px; margin: 0 0 16px;
  display: flex; flex-direction: column; gap: 16px; break-inside: avoid;
}
.card h2 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.sub { margin: 2px 0 0; font-size: 13px; color: var(--sec); }
.cab { display: flex; align-items: center; gap: 14px; }
.cab-linha { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.rotulo { font-size: 12px; color: var(--sec); }
.maiusc { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sec); }
.box { padding: 12px 14px; border-radius: 16px; background: var(--cinza-box); }
.grade2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.vazio { padding: 14px; border-radius: 16px; background: var(--cinza-box); font-size: 13px; color: var(--sec); line-height: 1.45; }

.avatar { border-radius: 999px; object-fit: cover; box-shadow: var(--sombra-foto); display: block; flex: 0 0 auto; }
.avatar-letra { display: flex; align-items: center; justify-content: center; background: var(--terracota-claro); color: var(--terracota); font-weight: 600; }
.bandeira { display: inline-block; border-radius: 3px; overflow: hidden; flex: 0 0 auto; box-shadow: 0 0 0 1px rgba(74, 52, 32, 0.14); }
.bandeira svg { display: block; }
.cat-ico { border-radius: 14px; display: flex; align-items: center; justify-content: center; }

/* seletor de período */
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: #F3EDE1; }
.tab { flex: 1; height: 40px; border: 0; border-radius: 999px; background: transparent; color: var(--sec); font: 500 13px Inter, system-ui, sans-serif; cursor: pointer; }
.tab[aria-pressed="true"] { background: var(--terracota); color: #fff; }

.chip { min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px #DDD2BE; color: var(--tinta); font: 500 13px Inter, system-ui, sans-serif; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--terracota); color: #fff; box-shadow: none; }
.link { min-height: 44px; padding: 0 10px; border: 0; border-radius: 12px; background: transparent; color: var(--sec); font: 500 13px Inter, system-ui, sans-serif; text-decoration: underline; cursor: pointer; }
.botao { min-height: 48px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--terracota); color: #fff; font: 600 15px Inter, system-ui, sans-serif; cursor: pointer; }
.botao[disabled] { opacity: 0.5; cursor: default; }
.vertodos { align-self: flex-end; min-height: 44px; margin: -14px 0 -8px; padding: 0; border: 0; background: transparent; color: var(--sec); font: 500 12px Inter, system-ui, sans-serif; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }

.pilula { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pilula.dentro, .pilula.verde { background: var(--verde-tint); color: var(--verde-texto); }
.pilula.fora, .pilula.vermelho { background: var(--vermelho-claro); color: var(--vermelho); }
.pilula.ocre { background: var(--ocre-claro); color: var(--ocre); }
.txt-dentro { color: var(--verde-texto); }
.txt-fora { color: var(--vermelho); }

/* barras */
.barra { display: block; width: 100%; height: 10px; border-radius: 5px; background: var(--trilho); overflow: hidden; }
.barra > span { display: block; height: 100%; border-radius: 5px; }
.barra.fina { height: 8px; border-radius: 4px; }

/* topo com foto */
.hero {
  position: relative; overflow: hidden; border-radius: 28px; min-height: 340px; margin: 0 0 16px; padding: 20px;
  display: flex; flex-direction: column; justify-content: space-between; color: #fff; break-inside: avoid;
  background-color: #5f6b4e; background-size: cover; background-position: center 35%; background-image: var(--foto, none);
}
@media (min-width: 700px) { .hero { background-position: center; background-image: var(--foto-larga, var(--foto, none)); } }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(32, 22, 14, 0.84) 0%, rgba(32, 22, 14, 0.32) 50%, rgba(32, 22, 14, 0.06) 100%); }
.hero > * { position: relative; }
.hero h1 { margin: 0; font-size: 40px; line-height: 1.05; font-weight: 600; letter-spacing: -0.03em; }
.hero-etiqueta { align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: rgba(32, 22, 14, 0.4); font-size: 12px; font-weight: 500; }
.hero-local { margin-top: 6px; display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 500; flex-wrap: wrap; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; border-radius: 22px; }
.slides::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px 24px; border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.30) 0%, rgba(255, 255, 255, 0.12) 55%, rgba(32, 22, 14, 0.26) 100%);
  -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.slide-rot { font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, 0.86); }
.slide-val { margin-top: 2px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: #8FE3B4; text-shadow: 0 1px 8px rgba(20, 12, 6, 0.35); }
.pontos { position: absolute; left: 0; right: 0; bottom: 2px; display: flex; justify-content: center; }
.pontos button { width: 24px; height: 24px; margin: 0 -5px; padding: 0; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.pontos span { display: block; height: 3px; border-radius: 999px; background: #fff; transition: opacity 0.2s, width 0.2s; }

/* listas de lançamentos */
.lista { display: flex; flex-direction: column; gap: 8px; }
.item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; background: #FDFBF7; min-height: 64px; }
.item-tit { font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.item-sub { font-size: 12px; color: var(--sec); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.item-val { text-align: right; flex: 0 0 auto; }
.item-val b { display: block; font-size: 14px; font-weight: 600; }
.item-val span { font-size: 12px; color: var(--sec); }
.etq { display: inline-block; margin: 0 0 5px 6px; vertical-align: middle; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; line-height: 1.35; }
.etq.Aporte { background: #2F7A57; color: #fff; }
.etq.Saque { background: #2B7BA0; color: #fff; }
.etq.Dívida { background: #F0BE3C; color: #4A3200; }

.cidade { display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; }
.hero-local .cidade { gap: 6px; }
.rolagem { scrollbar-width: thin; scrollbar-color: #CFC8BC transparent; }
.rolagem::-webkit-scrollbar { width: 6px; }
.rolagem::-webkit-scrollbar-thumb { background: #CFC8BC; border-radius: 999px; }
.rolagem:focus-visible { outline: 2px solid var(--terracota); outline-offset: 2px; border-radius: 8px; }
.owe { padding: 14px; border-radius: 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.owe-l { font-size: 12px; font-weight: 500; }
.owe.pendente { background: var(--ocre-claro); }
.owe.pendente .owe-l { color: var(--ocre); }
.owe.pendente .owe-v { color: #5C3D00; }
.owe.quite { background: var(--verde-claro); }
.owe.quite .owe-l { color: var(--verde-texto); }
.owe.quite .owe-v { color: var(--verde); }
.rodape { margin: 8px 0 0; text-align: center; font-size: 12px; color: var(--sec); }

/* menu */
.menu-fundo { position: fixed; inset: 0; z-index: 50; display: flex; }
.menu-fundo > .fechar-fundo { flex: 1 1 0; border: 0; background: rgba(43, 37, 33, 0.45); cursor: pointer; }
.menu-painel {
  width: 300px; max-width: 84%; padding: calc(20px + env(safe-area-inset-top)) 14px 20px; background: #fff;
  border-radius: 0 24px 24px 0; box-shadow: 0 24px 48px rgba(43, 37, 33, 0.25);
  display: flex; flex-direction: column; gap: 6px; overflow-y: auto;
}
.menu-cab { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 12px; }
.mi { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 8px 10px; border: 0; border-radius: 16px; background: transparent; color: var(--tinta); text-align: left; text-decoration: none; cursor: pointer; }
.mi[aria-current="page"] { background: var(--terracota-claro); }
.mi.sub-item { margin-left: 28px; width: calc(100% - 28px); min-height: 52px; }
.mi-ico { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.mi.sub-item .mi-ico { width: 32px; height: 32px; flex-basis: 32px; border-radius: 12px; }
.mi-txt { display: flex; flex-direction: column; }
.mi-txt b { font-size: 15px; font-weight: 600; }
.mi.sub-item .mi-txt b { font-size: 14px; }
.mi-txt span { font-size: 12px; color: var(--sec); }
.divisor { height: 1px; background: var(--linha); margin: 6px; }

/* entrada com PIN */
.pin-tela { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.pin-card { width: 100%; max-width: 360px; background: #fff; border-radius: 28px; padding: 28px 24px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.pin-input { width: 100%; height: 56px; border: 0; border-radius: 16px; background: var(--cinza-box); text-align: center; font: 600 24px Inter, system-ui, sans-serif; letter-spacing: 0.4em; color: var(--tinta); }
.pin-input:focus-visible { outline: 2px solid var(--terracota); outline-offset: 2px; }
.erro { color: var(--vermelho); font-size: 13px; }
.aviso-topo { margin: 0 0 12px; padding: 10px 14px; border-radius: 16px; background: var(--ocre-claro); color: var(--ocre); font-size: 13px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }

/* barra do Coxi (fixa embaixo) */
.lz-fixa {
  position: fixed; left: 0; right: 0; bottom: var(--teclado, 0px); z-index: 45; pointer-events: none;
  padding: 10px 16px calc(14px + env(safe-area-inset-bottom));
}
.lz-barra {
  max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 16px;
  border-radius: 999px; background: #fff; pointer-events: auto;
  box-shadow: 0 8px 28px rgba(43, 37, 33, 0.10), 0 1px 4px rgba(43, 37, 33, 0.05);
  transform-origin: 50% 100%; transition: transform 250ms cubic-bezier(0.22, 1, 0.36, 1), background-color 250ms ease;
}
.lz-fixa.encolhida .lz-barra {
  transform: scale(0.88); background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
}
.lz-input { flex: 1 1 0; min-width: 0; height: 44px; border: 0; background: transparent; font: 500 16px Inter, system-ui, sans-serif; color: var(--tinta); border-radius: 12px; outline: none; }
.lz-input::placeholder { color: var(--sec); }
.lz-gravando { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--sec); }
.lz-gravando[hidden], .lz-input[hidden] { display: none; }
.lz-ponto { width: 10px; height: 10px; border-radius: 999px; background: #D45068; animation: piscar 1s infinite; }
.iconbtn.lzmic { color: var(--tinta); }
.iconbtn.lzmic[aria-pressed="true"] { color: var(--terracota); }
.iconbtn.lzsend { background: var(--terracota); color: #fff; }
.lz-painel { position: fixed; inset: 0; z-index: 40; }
.lz-painel[hidden] { display: none; }
.lz-fundo { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; background: rgba(43, 37, 33, 0.38); cursor: pointer; }
.lz-dialogo {
  position: absolute; left: 0; right: 0; bottom: calc(88px + env(safe-area-inset-bottom) + var(--teclado, 0px)); margin: 0 auto;
  width: calc(100% - 24px); max-width: 536px; max-height: calc(100dvh - 120px - env(safe-area-inset-bottom) - var(--teclado, 0px));
  display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 24px; background: #fff;
  box-shadow: 0 24px 48px rgba(43, 37, 33, 0.2);
}
.lz-cab { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.lz-conversa { display: flex; flex-direction: column; gap: 12px; overflow-y: auto; min-height: 0; overscroll-behavior: contain; }
.bolha { align-self: flex-end; max-width: 86%; padding: 10px 14px; border-radius: 18px; background: #F0EDE8; font-size: 15px; line-height: 1.4; display: flex; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.coxi-msg { display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.55; }
.coxi-msg.erro { color: var(--vermelho); }
.como { font-size: 12px; color: var(--sec); }
.como summary { cursor: pointer; min-height: 32px; display: flex; align-items: center; }
.como ul { margin: 4px 0 0; padding-left: 18px; }
.proposta { display: flex; flex-direction: column; gap: 14px; padding: 14px; border-radius: 18px; background: #FDFBF7; }
.proposta.feita { background: var(--verde-claro); }
.proposta .chip { min-height: 36px; padding: 0 12px; }
.feito-ico { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 999px; background: var(--verde); color: #fff; display: flex; align-items: center; justify-content: center; }
.pensando { display: flex; gap: 5px; padding: 6px 0; }
.pensando span { width: 7px; height: 7px; border-radius: 999px; background: #CFC8BC; animation: pulo 1.2s infinite ease-in-out; }
.pensando span:nth-child(2) { animation-delay: 0.15s; }
.pensando span:nth-child(3) { animation-delay: 0.3s; }
@keyframes pulo { 0%, 80%, 100% { transform: translateY(0); opacity: 0.5; } 40% { transform: translateY(-4px); opacity: 1; } }
@keyframes piscar { 50% { opacity: 0.3; } }

/* tela Geral: destinos */
.dest { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 0; border-radius: 16px; background: #FBF8F2; color: var(--tinta); text-align: left; font-family: inherit; cursor: pointer; min-height: 44px; }
.dest[aria-expanded="true"] { background: #fff; box-shadow: inset 0 0 0 1px #DDD2BE; }
.dest.cidade-dest { background: #fff; padding: 10px 12px; }
.dest:focus-visible { outline: 2px solid var(--terracota); outline-offset: 2px; }
.dest .chev { display: flex; color: var(--sec); flex: 0 0 16px; transition: transform 0.15s; }
.dest[aria-expanded="true"] .chev { transform: rotate(180deg); }
.dest-l { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 1px; }
.dest-l b { font-size: 14px; font-weight: 600; }
.dest-l.rotulo { font-size: 12px; }
.dest-aberto { margin: 6px 0 0; padding: 14px 14px 16px; border-radius: 16px; background: #FBF8F2; display: flex; flex-direction: column; gap: 12px; }

/* tela Roteiro */
.rt-pais { display: flex; align-items: center; gap: 8px; padding: 6px 4px 4px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--sec); }
.rt-parada { display: flex; gap: 12px; align-items: stretch; }
.rt-trilho { position: relative; flex: 0 0 36px; display: flex; justify-content: center; }
.rt-trilho::after { content: ""; position: absolute; top: 40px; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: var(--linha); border-radius: 2px; }
.rt-parada.ultima .rt-trilho::after { display: none; }
.rt-ico { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 999px; display: flex; align-items: center; justify-content: center; }
.rt-tag { padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; line-height: 1.35; }
.rt-tag.definir { background: var(--ocre-claro); color: var(--ocre); }
.rt-tag.bate { background: #DCEEF5; color: #1B5F7E; }
.rt-tag.passagem { background: #EFEAE2; color: #5E554C; }
.rt-editar { width: 44px; height: 44px; flex: 0 0 44px; border: 0; border-radius: 999px; background: transparent; color: var(--terracota); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.rt-add { align-self: flex-start; min-height: 44px; margin: 4px 0 0 4px; padding: 0 14px 0 10px; border: 0; border-radius: 999px; background: transparent; color: var(--terracota); font: 600 14px Inter, system-ui, sans-serif; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.rt-editar:focus-visible, .rt-add:focus-visible { outline: 2px solid var(--terracota); outline-offset: 2px; }

/* tela Lançamentos */
.lc-topo { position: sticky; top: calc(64px + env(safe-area-inset-top)); z-index: 15; margin: 0 -16px 4px; padding: 4px 16px 10px; background: rgba(245, 245, 246, 0.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lc-busca { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 4px; padding: 0 6px 0 12px; min-height: 40px; border-radius: 999px; background: #fff; }
.lc-lupa { color: var(--sec); display: flex; }
.lc-busca input { flex: 1 1 0; min-width: 0; height: 40px; border: 0; background: transparent; font: 500 16px Inter, system-ui, sans-serif; color: var(--tinta); -webkit-appearance: none; appearance: none; outline: none; }
.lc-busca input::placeholder { color: var(--sec); }
.lc-busca input::-webkit-search-cancel-button { display: none; }
.lc-busca:focus-within { box-shadow: 0 0 0 2px var(--terracota); }
.lc-limpar { width: 36px; height: 36px; flex: 0 0 36px; border: 0; border-radius: 999px; background: transparent; color: var(--sec); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.lc-limpar[hidden], .lc-badge[hidden] { display: none; }
.lc-filtro { position: relative; width: 44px; height: 44px; flex: 0 0 44px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--terracota); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.lc-badge { position: absolute; top: 2px; right: 2px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--terracota); color: #fff; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.lc-chip { min-height: 36px; padding: 0 10px 0 12px; border: 0; border-radius: 999px; background: var(--terracota-claro); color: var(--terracota-texto); font: 500 13px Inter, system-ui, sans-serif; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.lc-contagem { margin: 6px 4px 0; font-size: 13px; color: var(--sec); }
.lc-dia { margin: 16px 4px 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: var(--sec); }
.lc-paginas { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 20px 0 8px; }
.chip[disabled] { opacity: 0.4; cursor: default; }
.sw { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin-bottom: 8px; }
.sw::-webkit-scrollbar { display: none; }
.swm { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; }
.swa { flex: 0 0 auto; display: flex; gap: 6px; padding-left: 6px; scroll-snap-align: end; }
.swb { width: 78px; border: 0; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font: 500 12px Inter, system-ui, sans-serif; cursor: pointer; }
.swb.editar { background: var(--terracota-claro); color: var(--terracota-texto); }
.swb.excluir { background: var(--vermelho); color: #fff; }
.lc-aviso { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 45; width: calc(100% - 32px); max-width: 420px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 6px 6px 18px; border-radius: 999px; background: var(--tinta); color: #fff; font-size: 14px; box-shadow: 0 12px 28px rgba(43, 37, 33, 0.3); }
.lc-aviso button { min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: #F3B79F; font: 600 14px Inter, system-ui, sans-serif; cursor: pointer; }

/* folhas que sobem de baixo (filtros, editar) */
.folha { position: fixed; inset: 0; z-index: 40; }
.folha-fundo { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; background: rgba(43, 37, 33, 0.38); cursor: pointer; }
.folha-corpo {
  position: absolute; left: 0; right: 0; bottom: calc(8px + env(safe-area-inset-bottom) + var(--teclado, 0px)); margin: 0 auto; width: calc(100% - 16px); max-width: 624px;
  max-height: calc(100dvh - 40px - var(--teclado, 0px)); overflow-y: auto; overscroll-behavior: contain;
  padding: 18px 16px 16px; border-radius: 24px; background: #fff; box-shadow: 0 24px 48px rgba(43, 37, 33, 0.2);
  display: flex; flex-direction: column; gap: 16px;
}
.grupo { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.grupo legend { padding: 0; margin-bottom: 8px; font-weight: 500; }
.opcoes { display: flex; flex-wrap: wrap; gap: 8px; }
.opcao { position: relative; display: inline-flex; }
.opcao input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opcao span { min-height: 40px; padding: 0 14px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px #DDD2BE; color: var(--tinta); font: 500 13px Inter, system-ui, sans-serif; display: inline-flex; align-items: center; cursor: pointer; }
.opcao input:checked + span { background: var(--terracota); color: #fff; box-shadow: none; }
.opcao input:focus-visible + span { outline: 2px solid var(--terracota); outline-offset: 2px; }
.campo { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 500; color: var(--sec); min-width: 0; }
.campo input { height: 48px; padding: 0 14px; border: 0; border-radius: 14px; background: #FBF8F2; box-shadow: inset 0 0 0 1px #DDD2BE; font: 500 16px Inter, system-ui, sans-serif; color: var(--tinta); min-width: 0; width: 100%; -webkit-appearance: none; appearance: none; }
.campo input:focus-visible { outline: 2px solid var(--terracota); outline-offset: 1px; }

/* Coxi em tela cheia */
.coxi-pagina { max-width: 720px; margin: 0 auto; padding: 8px 0 24px; display: flex; flex-direction: column; gap: 18px; }
.coxi-pagina .coxi-msg, .coxi-pagina .bolha { font-size: 16px; }
.coxi-pagina .proposta { background: #fff; }
.coxi-pagina .proposta.feita { background: var(--verde-claro); }

/* carregando */
.carregando { padding: 60px 0; text-align: center; color: var(--sec); font-size: 14px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
