/* Sobrô leve: estrutura enxuta com acabamento de app da Apple. Só vale com html.leve.
   Fundo cinza do iOS, grupos brancos de um nível só, fonte do sistema (SF no iPhone),
   números arredondados, barra de abas de vidro e modo claro e escuro. */

/* ---------- Tokens ---------- */
html.leve:root, html.leve:root[data-theme] {
  --lv-bg: #F2F2F7; --lv-card: #FFFFFF; --lv-card2: #FFFFFF; --lv-fill: rgba(118, 118, 128, .12); --lv-fill2: rgba(118, 118, 128, .2);
  --lv-ink: #0B0B0F; --lv-ink2: #6C6C72; --lv-ink3: #8E8E93; --lv-sep: rgba(60, 60, 67, .16);
  --lv-acc: #0A7A55; --lv-acc-soft: rgba(10, 122, 85, .12); --lv-acc-ink: #FFFFFF;
  --lv-gasto: #FF8A00; --lv-inv: #007AFF; --lv-neg: #D92D20;
  --lv-glass: rgba(255, 255, 255, .72); --lv-glass-edge: rgba(255, 255, 255, .9);
  --lv-shadow: 0 8px 30px -12px rgba(0, 0, 0, .18), 0 1px 2px rgba(0, 0, 0, .04);
  --lv-r: 20px; --lv-ease: cubic-bezier(.23, 1, .32, 1);
  --lv-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Geist", system-ui, sans-serif;
  --lv-disp: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Geist", system-ui, sans-serif;
  --lv-round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Geist", system-ui, sans-serif;

  /* o app antigo lê estes nomes: todos passam a apontar para os novos */
  --bg: var(--lv-bg); --surface: var(--lv-card); --surface-2: var(--lv-fill); --grupo: var(--lv-bg); --fill: var(--lv-fill);
  --ink: var(--lv-ink); --muted: var(--lv-ink2); --line: var(--lv-sep); --sep: var(--lv-sep);
  --accent: var(--lv-acc); --accent-ink: var(--lv-acc-ink); --marca-o: var(--lv-acc); --in: var(--lv-acc);
  --out: var(--lv-gasto); --inv: var(--lv-inv); --warn: var(--lv-gasto);
  --capa: var(--lv-card); --capa-2: var(--lv-fill); --capa-muted: var(--lv-ink2); --menta: var(--lv-acc);
  --bloco: transparent; --bloco-mut: var(--lv-ink2); --bloco-ink: var(--lv-ink); --bloco-linha: var(--lv-sep);
  --escuro: var(--lv-ink); --escuro-ink: var(--lv-card); --escuro-mut: var(--lv-ink2);
  --card-sombra: none; --cartao-sombra: none; --shadow: none; --vidro: var(--lv-glass);
  --f-display: var(--lv-disp); --f-body: var(--lv-sans); --f-num: var(--lv-sans);
  --c1: var(--lv-acc); --c2: #FF9500; --c3: #007AFF; --c4: #AF52DE; --c5: #FF2D55; --c6: #30B0C7; --c7: #FFCC00; --c8: #8E8E93;
  color-scheme: light;
}
html.leve.pj:root, html.leve.pj:root[data-theme] { --lv-acc: #1F4FCC; --lv-acc-soft: rgba(31, 79, 204, .12); --lv-inv: #5E5CE6; }
html.leve.vg:root, html.leve.vg:root[data-theme] { --lv-acc: #C2410C; --lv-acc-soft: rgba(194, 65, 12, .12); }
@media (prefers-color-scheme: dark) {
  html.leve:not(.lv-claro):root {
    --lv-bg: #000000; --lv-card: #1C1C1E; --lv-card2: #2C2C2E; --lv-fill: rgba(118, 118, 128, .24); --lv-fill2: rgba(118, 118, 128, .32);
    --lv-ink: #FFFFFF; --lv-ink2: #A1A1A8; --lv-ink3: #8E8E93; --lv-sep: rgba(84, 84, 88, .55);
    --lv-acc: #34D399; --lv-acc-soft: rgba(52, 211, 153, .16); --lv-acc-ink: #04291C;
    --lv-gasto: #FF9F0A; --lv-inv: #0A84FF; --lv-neg: #FF6961;
    --lv-glass: rgba(30, 30, 32, .66); --lv-glass-edge: rgba(255, 255, 255, .12);
    --lv-shadow: 0 10px 34px -12px rgba(0, 0, 0, .7);
    --c2: #FF9F0A; --c3: #0A84FF; --c4: #BF5AF2; --c5: #FF375F; --c6: #40C8E0; --c7: #FFD60A; --c8: #98989D;
    color-scheme: dark;
  }
  html.leve.vg:not(.lv-claro):root { --lv-acc: #FF9F6B; --lv-acc-soft: rgba(255, 159, 107, .16); --lv-acc-ink: #2A1004; }
  html.leve.pj:not(.lv-claro):root { --lv-acc: #7AA2FF; --lv-acc-soft: rgba(122, 162, 255, .16); --lv-acc-ink: #0A1A3D; --lv-inv: #7D7AFF; }
}
/* escuro escolhido à mão em Mais > Aparência */
html.leve.lv-escuro:root {
    --lv-bg: #000000; --lv-card: #1C1C1E; --lv-card2: #2C2C2E; --lv-fill: rgba(118, 118, 128, .24); --lv-fill2: rgba(118, 118, 128, .32);
    --lv-ink: #FFFFFF; --lv-ink2: #A1A1A8; --lv-ink3: #8E8E93; --lv-sep: rgba(84, 84, 88, .55);
    --lv-acc: #34D399; --lv-acc-soft: rgba(52, 211, 153, .16); --lv-acc-ink: #04291C;
    --lv-gasto: #FF9F0A; --lv-inv: #0A84FF; --lv-neg: #FF6961;
    --lv-glass: rgba(30, 30, 32, .66); --lv-glass-edge: rgba(255, 255, 255, .12);
    --lv-shadow: 0 10px 34px -12px rgba(0, 0, 0, .7);
    --c2: #FF9F0A; --c3: #0A84FF; --c4: #BF5AF2; --c5: #FF375F; --c6: #40C8E0; --c7: #FFD60A; --c8: #98989D;
    color-scheme: dark;
  }
  html.leve.vg.lv-escuro:root { --lv-acc: #FF9F6B; --lv-acc-soft: rgba(255, 159, 107, .16); --lv-acc-ink: #2A1004; }
html.leve.pj.lv-escuro:root { --lv-acc: #7AA2FF; --lv-acc-soft: rgba(122, 162, 255, .16); --lv-acc-ink: #0A1A3D; --lv-inv: #7D7AFF; }

/* ---------- Base ---------- */
html.leve, html.leve body, html.leve .wrap { background: var(--lv-bg) !important; }
html.leve body { overflow-x: clip; color: var(--lv-ink); font-family: var(--lv-sans); -webkit-font-smoothing: antialiased; letter-spacing: -.01em; }
html.leve ::selection { background: var(--lv-acc-soft); }
html.leve :focus-visible { outline: 2px solid var(--lv-acc) !important; outline-offset: 2px; }
html.leve :is(.num, .v, .a, [class*="-v"]) { font-variant-numeric: tabular-nums; }
html.leve .wrap { padding-bottom: calc(176px + env(safe-area-inset-bottom, 0px)) !important; }
@media (min-width: 900px) { html.leve .wrap { max-width: 640px !important; } }
html.leve :is(.lv-campo, .lv-linha, .lv-modo, .views button, .row) { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
html.leve :is(.btn, .btn-primary, .lv-ic, .lv-linha, .lv-link, .row, .views button, .lv-campo-tx, .fab, .lv-seg button):active { transform: scale(.97); transition: transform 100ms ease-out; }

/* ---------- Topo ---------- */
html.leve header.top {
  position: relative; display: flex !important; flex-wrap: wrap !important; align-items: center; gap: 2px; row-gap: 0;
  padding: 8px 12px 0 16px !important; background: transparent !important; color: var(--lv-ink) !important; margin: 0 !important;
}
html.leve .top .oi, html.leve .top .perfil-sw { display: none !important; }
html.leve .top-r { display: contents !important; }
html.leve .lv-modo {
  order: 0; display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--lv-ink);
  padding: 8px 4px 8px 0; margin-right: auto; cursor: pointer; font: inherit; min-height: 44px;
}
html.leve .lv-marca { font: 700 20px/1 "Bricolage Grotesque", var(--lv-disp); letter-spacing: -.035em; }
html.leve .lv-marca b { color: var(--lv-acc); font-weight: 700; }
/* topo como no app antigo: conta à esquerda; sino e a chave no canto direito */
html.leve .lv-modo { display: none !important; }
/* topo, no celular e no computador, com ou sem conta: a conta (pílula "Entrar" ou o círculo com a inicial)
   no canto esquerdo; à direita, o sino colado na chave de modo. Todos com a altura da chave (36px) */
html.leve #acctBtn { order: 0; margin-left: 0 !important; margin-right: auto !important; }
html.leve #alertBtn { order: 1; margin-left: 0 !important; margin-right: 0 !important; }
html.leve #lvAtualizar { order: 1; margin-left: 0 !important; margin-right: 6px !important; }
html.leve #lvAtualizar.girando svg { animation: lv-gira .8s linear infinite; }
@keyframes lv-gira { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { html.leve #lvAtualizar.girando svg { animation-duration: 2.4s; } }
html.leve .top :is(.icon-btn, .acct-btn) {
  width: 36px; height: 36px; min-width: 36px; min-height: 36px !important; max-height: 36px; aspect-ratio: 1; flex: none; padding: 0 !important; border-radius: 50%; background: var(--lv-card) !important; color: var(--lv-ink) !important;
  border: 0 !important; box-shadow: 0 1px 2px rgba(0, 0, 0, .06) !important; display: inline-grid; place-items: center; margin-left: 6px;
}
html.leve .top :is(.icon-btn, .acct-btn) svg { width: 19px; height: 19px; }
html.leve .top .acct-btn .avatar { background: var(--lv-acc) !important; color: var(--lv-acc-ink) !important; }
html.leve .top .badge { background: var(--lv-neg) !important; color: #fff !important; }

/* a chave Pessoal / Empresa / Viagem: um marcador que desliza até o modo escolhido */
html.leve .lv-chave {
  --i: 0; order: 3; flex: none; position: relative; display: grid; grid-template-columns: repeat(3, 1fr);
  margin: 0 0 0 6px; padding: 2px; border-radius: 99px; background: var(--lv-fill2); touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
html.leve .lv-chave-bola {
  position: absolute; top: 2px; bottom: 2px; left: 2px; width: calc((100% - 4px) / 3); border-radius: 99px;
  background: var(--lv-acc); box-shadow: 0 3px 10px -2px color-mix(in srgb, var(--lv-acc) 55%, transparent), 0 1px 2px rgba(0, 0, 0, .12);
  transform: translateX(calc(var(--i) * 100%)); transition: transform .45s cubic-bezier(.32, .72, 0, 1), background-color .35s ease, box-shadow .35s ease;
}
html.leve .lv-chave button {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 9px; border: 0; background: none;
  border-radius: 99px; font: 600 12.5px/1 var(--lv-sans); letter-spacing: -.01em; color: var(--lv-ink2); cursor: pointer;
  transition: color .3s ease, transform .1s ease-out; -webkit-tap-highlight-color: transparent;
}
html.leve .lv-chave button { width: 40px; padding: 0 !important; letter-spacing: .02em; }
html.leve .lv-chave .lv-longo { display: none; }
html.leve .lv-chave .lv-curto { display: inline-flex; align-items: center; justify-content: center; font: 650 12.5px/1 var(--lv-round); }
html.leve .lv-chave .lv-curto svg { display: block; width: 17px; height: 17px; stroke-width: 2; }
html.leve .lv-chave button[aria-checked="true"] { color: #FFFFFF; }
html.leve.lv-escuro .lv-chave button[aria-checked="true"], html.leve .lv-chave button[aria-checked="true"] { color: var(--lv-acc-ink); }
html.leve .lv-chave button:active { transform: scale(.95); }
html.leve .lv-chave button:focus-visible { outline-offset: -2px; }
@media (prefers-reduced-motion: reduce) { html.leve .lv-chave-bola { transition: background-color .2s ease; } }

/* mês como título grande, no estilo dos apps da Apple */
html.leve #monthNav {
  order: 10; flex: 1 0 100% !important; display: flex !important; align-items: center; gap: 2px;
  background: none !important; padding: 0 !important; margin: 6px 0 0 !important; max-width: none !important; min-width: 0;
}
html.leve #monthNav[hidden] { display: none !important; }
html.leve #monthNav #monthLbl { order: -1; margin-right: auto; }
html.leve .wrap #monthNav span, html.leve #monthNav .m-lbl {
  font: 700 26px/1.1 var(--lv-disp) !important; letter-spacing: -.025em !important; overflow: hidden; text-overflow: ellipsis; max-width: calc(100vw - 120px); color: var(--lv-ink) !important;
  white-space: nowrap !important; flex: none !important; text-align: left !important; padding: 4px 0 !important; min-width: 0;
  display: inline-flex !important; align-items: center; gap: 6px; text-transform: none;
}
html.leve #monthNav .m-seta { width: 18px; height: 18px; color: var(--lv-acc); stroke-width: 3; }
html.leve #monthNav .m-ciclo { font: 500 13px/1 var(--lv-sans) !important; color: var(--lv-ink2) !important; letter-spacing: 0 !important; }
/* datas do período ou do ciclo numa linha própria, embaixo do título: nunca cortadas */
html.leve #monthNav .m-lbl:has(.m-ciclo) { flex-wrap: wrap !important; row-gap: 2px; }
html.leve #monthNav .m-lbl .m-ciclo { flex-basis: 100%; white-space: nowrap; }
html.leve #monthNav button:not(.m-lbl) {
  width: 34px; height: 34px; min-width: 34px; border-radius: 50%; background: var(--lv-fill) !important; color: var(--lv-ink) !important;
  border: 0 !important; box-shadow: none !important; display: inline-grid; place-items: center; font-size: 20px; margin-left: 6px;
}

/* ---------- Superfícies: grupos brancos de um nível só ---------- */
html.leve :is(.capa, .folha, .summary, .stat, .prev-card, .cloud-card, .wallet-strip, .viagem-card, .assist, .capa-tit, .day) {
  background: none !important; box-shadow: none !important; border-color: transparent !important;
}
html.leve :is(.capa, .panel, .summary, .stat, .prev-card, .cloud-card, .assist)::before,
html.leve :is(.capa, .panel, .summary, .stat, .prev-card, .cloud-card, .assist)::after { display: none !important; content: none !important; }
html.leve .capa { padding: 0 !important; margin: 0 !important; border-radius: 0 !important; color: var(--lv-ink) !important; min-height: 0 !important; }
html.leve .folha { padding: 0 !important; margin: 0 !important; border-radius: 0 !important; display: block !important; }
html.leve .panel, html.leve .prev-card:not([hidden]) {
  background: var(--lv-card) !important; border: 0 !important; box-shadow: none !important;
  border-radius: var(--lv-r) !important; margin: 0 16px 16px !important; padding: 18px 16px !important;
}
html.leve .panel-head { display: flex !important; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 10px !important; padding: 0 !important; min-height: 0; }
html.leve .panel h2, html.leve .ws-head h2 { font: 700 20px/1.2 var(--lv-disp) !important; letter-spacing: -.02em !important; color: var(--lv-ink) !important; }
html.leve .panel .aside { font-size: 13px; color: var(--lv-ink2); }
html.leve .capa-tit { padding: 16px 16px 12px !important; }
html.leve .capa-tit h1 { font: 700 34px/1.1 var(--lv-disp) !important; letter-spacing: -.03em !important; color: var(--lv-ink) !important; }
html.leve .capa-tit p { font-size: 15px; line-height: 1.4; color: var(--lv-ink2) !important; margin-top: 6px; max-width: 44ch; }
html.leve #v-carteira .capa::before, html.leve #v-invest .capa::before { display: none !important; }
html.leve .note { color: var(--lv-ink2); font-size: 14px; line-height: 1.45; }
html.leve .empty, html.leve .empty * { background: none !important; border: 0 !important; color: var(--lv-ink2); }
html.leve .empty strong { color: var(--lv-ink) !important; font-weight: 600; }

/* botões */
html.leve .btn, html.leve .btn.solid, html.leve .btn-capa {
  background: none !important; color: var(--lv-acc) !important; border: 0 !important; box-shadow: none !important;
  font: 600 15px/1.2 var(--lv-sans) !important; padding: 8px 4px !important; min-height: 40px; letter-spacing: -.01em;
}
html.leve .panel-head .btn.solid.sm { background: var(--lv-acc-soft) !important; padding: 7px 12px !important; border-radius: 99px !important; min-height: 32px; font-size: 14px !important; }
html.leve .btn.big, html.leve .btn-primary, html.leve .rel-exp {
  background: var(--lv-acc) !important; color: var(--lv-acc-ink) !important; border: 0 !important; box-shadow: none !important;
  border-radius: 14px !important; font: 600 16px/1.2 var(--lv-sans) !important; min-height: 50px;
}
html.leve .linkish { color: var(--lv-acc) !important; }
html.leve .campo, html.leve .panel select, html.leve .panel input:not([type="checkbox"]):not([type="radio"]), html.leve .sheet-card :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  background: var(--lv-fill) !important; border: 0 !important; border-radius: 12px !important; color: var(--lv-ink) !important; min-height: 46px; font-size: 16px !important;
}

/* ---------- Início ---------- */
/* o cartão do mês */
html.leve #v-inicio .capa {
  margin: 12px 16px 0 !important; padding: 20px 20px 4px !important; background: var(--lv-card) !important;
  border-radius: 24px !important; box-shadow: var(--lv-shadow) !important;
}
html.leve #v-inicio .capa > .summary {
  display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; column-gap: 12px; row-gap: 0;
  padding: 0 !important; margin: 0 !important;
}
html.leve .summary .stat { container-type: normal !important; }
html.leve #v-inicio .summary .stat { padding: 0 !important; border-radius: 0 !important; min-height: 0 !important; color: var(--lv-ink) !important; display: grid !important; gap: 3px; align-content: start; }
html.leve #v-inicio .summary .stat.hero { grid-column: 1 / -1; order: -1; margin-bottom: 16px; justify-content: stretch !important; justify-items: start; }
html.leve #v-inicio .summary .stat.hero .lv-barra { justify-self: stretch; }
html.leve #v-inicio .summary .stat:not(.hero) .lbl { display: flex !important; align-items: center; gap: 6px; font: 500 13px/1.2 var(--lv-sans) !important; color: var(--lv-ink2) !important; text-transform: none !important; letter-spacing: 0 !important; }
html.leve #v-inicio .summary .stat:not(.hero) .lbl i { width: 8px !important; height: 8px !important; border-radius: 50% !important; display: inline-block !important; flex: none; margin: 0 !important; }
html.leve #v-inicio .summary .stat:nth-child(1) .lbl i { background: var(--lv-ink3) !important; box-shadow: none; }
html.leve #v-inicio .summary .stat:nth-child(2) .lbl i { background: var(--lv-gasto) !important; }
html.leve #v-inicio .summary .stat:nth-child(3) .lbl i { background: var(--lv-inv) !important; }
html.leve #v-inicio .summary .stat:not(.hero) .v { font: 600 16px/1.25 var(--lv-round) !important; color: var(--lv-ink) !important; letter-spacing: -.01em !important; white-space: nowrap; }
html.leve #v-inicio .summary .stat:not(.hero) .sub { display: none !important; }
html.leve .stat.hero .eyebrow, html.leve .stat.hero .rel-discreto, html.leve .stat.hero .hero-spark, html.leve #mesCapa { display: none !important; }
html.leve .stat.hero .lbl { display: flex !important; align-items: center; gap: 4px; font: 500 15px/1.2 var(--lv-sans) !important; text-transform: none !important; letter-spacing: -.01em !important; }
html.leve .stat.hero :is(.lbl, .lbl *) { color: var(--lv-ink2) !important; opacity: 1 !important; }
html.leve .stat.hero .olho-v { width: 30px; height: 30px; color: var(--lv-ink3) !important; background: none !important; }
html.leve :is(#sBal, .hero-v, #patTotal, #iTotal) { display: block !important; padding: 0 !important; margin: 2px 0 0 !important; min-height: 0 !important; height: auto !important; }
html.leve #sBal { font: 650 46px/1.05 var(--lv-round) !important; letter-spacing: -.035em !important; color: var(--lv-ink) !important; }
html.leve :is(#sBal, .hero-v, #patTotal, #iTotal) :is(.hv-s, .hv-c) {
  display: inline !important; vertical-align: baseline !important; position: static !important;
  color: inherit !important; opacity: 1 !important; margin: 0 !important; transform: none !important; letter-spacing: -.01em !important;
}
html.leve :is(#sBal, .hero-v, #patTotal, #iTotal) .hv-s { font-size: .5em !important; font-weight: 600 !important; margin-right: .18em !important; color: var(--lv-ink2) !important; }
html.leve :is(#sBal, .hero-v, #patTotal, #iTotal) .hv-c { font-size: .5em !important; font-weight: 600 !important; color: var(--lv-ink2) !important; }
html.leve #sBal.neg, html.leve #sBal .neg { color: var(--lv-neg) !important; }
html.leve .stat.hero .sub { font: 600 14px/1.3 var(--lv-sans) !important; color: var(--lv-acc) !important; opacity: 1 !important; margin-top: 4px; }

/* barra do mês: gasto, investido e o que sobrou */
html.leve .lv-barra { display: flex; width: 100%; justify-self: stretch; gap: 3px; height: 10px; margin: 16px 0 0; border-radius: 6px; overflow: hidden; }
html.leve .lv-barra[hidden] { display: none; }
html.leve .lv-barra i { display: block; flex: 0 0 0; min-width: 4px; border-radius: 3px; transition: flex-grow .6s var(--lv-ease); }
html.leve .lv-barra i[hidden] { display: none; }
html.leve .lv-barra .g { background: var(--lv-gasto); }
html.leve .lv-barra .v { background: var(--lv-inv); }
html.leve .lv-barra .s { background: var(--lv-acc); }
html.leve .lv-barra.passou .g { background: var(--lv-neg); }

/* "ver resumo": a linha final do cartão */
html.leve .lv-link {
  display: flex; align-items: center; justify-content: space-between; width: calc(100% + 40px); margin: 16px -20px 0;
  border: 0; border-top: .5px solid var(--lv-sep); background: none; padding: 14px 20px;
  color: var(--lv-acc); font: 600 15px/1 var(--lv-sans); cursor: pointer; min-height: 48px; border-radius: 0 0 24px 24px;
}
html.leve .lv-link svg { width: 17px; height: 17px; }

/* o campo de lançar */
html.leve .lv-campo {
  display: flex; align-items: center; gap: 0; margin: 0 14px 10px; padding: 6px; pointer-events: auto;
  border-radius: 22px; background: var(--lv-glass); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  border: 0; box-shadow: var(--lv-shadow);
}
html.leve .dock > .lv-campo { order: 4; max-width: 612px; width: calc(100% - 28px); align-self: center; }
html.leve body.lancando .dock > .lv-campo { display: none !important; }
html.leve .lv-campo-tx {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; text-align: left; border: 0; background: none;
  padding: 6px 4px 6px 4px; min-height: 48px; font: 400 17px/1.2 var(--lv-sans); color: var(--lv-ink3); cursor: text; letter-spacing: -.02em;
}
html.leve .lv-mais-ic { width: 36px; height: 36px; border-radius: 12px; background: var(--lv-acc); color: var(--lv-acc-ink); display: grid; place-items: center; flex: none; }
html.leve .lv-mais-ic svg { width: 20px; height: 20px; stroke-width: 2.4; }
html.leve .lv-ic {
  width: 44px; height: 44px; border-radius: 12px; border: 0; background: none; color: var(--lv-ink2);
  display: inline-grid; place-items: center; cursor: pointer; flex: none; transition: background-color .15s ease, transform .1s ease-out;
}
html.leve .lv-ic svg { width: 22px; height: 22px; }
html.leve .lv-ic.sm { width: 34px; height: 34px; border-radius: 50%; background: var(--lv-fill); color: var(--lv-ink); }
html.leve .lv-ic.sm svg { width: 17px; height: 17px; stroke-width: 2.2; }
html.leve .lv-ic[hidden] { display: none; }

/* abas que não são do modo atual continuam escondidas */
html.leve:not(.vg) .views .vg-only, html.leve:not(.pj) .views .pj-only, html.leve:is(.pj, .vg) .views .pf-only { display: none !important; }
html.leve.vg .views :is([data-view="carteira"], [data-view="planejar"], [data-view="vendas"]) { display: none !important; }

/* o que sai da frente */
html.leve #v-inicio :is(#walletStrip, section[aria-label="Investimentos"], .assist) { display: none !important; }
html.leve #cloudCard:not([hidden]) {
  display: flex !important; align-items: center; gap: 12px; margin: 0 16px 16px !important; padding: 12px 12px 12px 16px !important;
  background: var(--lv-acc-soft) !important; border-radius: 16px !important; border: 0 !important;
}
html.leve #cloudCard .cloud-txt { padding: 0 !important; margin: 0 !important; }
html.leve #cloudCard .cloud-txt span { display: none; }
html.leve #cloudCard strong { font: 500 14px/1.35 var(--lv-sans); color: var(--lv-ink); }
html.leve #cloudCard .btn.solid { background: var(--lv-acc) !important; color: var(--lv-acc-ink) !important; border-radius: 99px !important; padding: 8px 14px !important; white-space: nowrap; }

/* lista de lançamentos */
html.leve .lv-lanc { padding: 16px 16px 6px !important; }
html.leve .lv-lanc .panel-head { margin-bottom: 2px !important; }
html.leve .lv-lanc .panel-head .aside { margin-left: auto; }
html.leve .lv-lanc .search-row { display: none !important; }
html.leve .lv-lanc.lv-busca-on .search-row { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 6px; }
html.leve .lv-lanc.lv-busca-on .search-row input { grid-column: 1 / -1; }
html.leve .day { margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; }
html.leve .day-h {
  padding: 14px 0 6px !important; font: 600 13px/1.2 var(--lv-sans) !important; color: var(--lv-ink2) !important;
  text-transform: none !important; letter-spacing: 0 !important; background: none !important; border: 0 !important; display: flex !important; justify-content: space-between;
}
html.leve .day-h .num { font-weight: 500; color: var(--lv-ink3); }
html.leve .row {
  position: relative; background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  padding: 9px 0 !important; min-height: 58px; column-gap: 12px !important;
}
html.leve .row::before, html.leve .row::after { display: none !important; }
html.leve .row + .row::before { display: block !important; content: "" !important; position: absolute; left: 52px; right: 0; top: 0; height: .5px; background: var(--lv-sep); }
html.leve .row .d { font: 500 16px/1.3 var(--lv-sans) !important; color: var(--lv-ink) !important; letter-spacing: -.015em !important; }
html.leve .row .a { font: 600 16px/1.3 var(--lv-round) !important; color: var(--lv-ink) !important; letter-spacing: -.01em !important; }
html.leve .row .a.Receita, html.leve .row .a.Resgate { color: var(--lv-acc) !important; }
html.leve .row .m { font-size: 13px !important; color: var(--lv-ink2) !important; white-space: nowrap !important; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
html.leve .row .m { display: flex !important; flex-wrap: nowrap !important; gap: 4px; }
html.leve .row .m > * { flex: none; white-space: nowrap; }
html.leve .row .m > :last-child { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* a linha de detalhes quebra em vez de cortar: moeda de origem, "para quem" e o banco sempre aparecem inteiros */
html.leve .row .m { flex-wrap: wrap !important; white-space: normal !important; overflow: visible !important; row-gap: 2px; }
html.leve .row .m > :last-child { overflow: visible; text-overflow: clip; }
html.leve .row .m .chip { background: none !important; padding: 0 !important; color: var(--lv-ink2) !important; font-weight: 500; border: 0 !important; }
/* a linha de detalhes corre como texto: quebra só depois de um "·", nunca deixando o "·" sozinho no começo da linha de baixo */
html.leve .row .m { display: block !important; white-space: normal !important; overflow: visible !important; line-height: 1.4; }
html.leve .row .m > * { display: inline; white-space: normal; overflow: visible; }
html.leve .row .m > * + * { margin-left: 4px; }
html.leve .row .m > .who { display: inline-grid; vertical-align: middle; }
html.leve .row .m > .m-sep { margin-left: 0; }
html.leve .row .m > .chip.para { margin-left: 0; }
/* os detalhes ocupam a largura toda, por baixo do nome e do valor (o valor fica só na linha do nome);
   antes a coluna do valor apertava a linha e "Mercado · Crédito · Nubank" quebrava em duas */
html.leve .row:has(> .ico) { grid-template-areas: "i d a" "i m m" !important; }
html.leve .row:not(:has(> .ico)) { grid-template-areas: "d a" "m m" !important; }
html.leve .row > .a { align-self: center; }
/* ícones como os de Ajustes do iPhone: quadrado arredondado na cor da categoria */
html.leve .row .ico { width: 40px !important; height: 40px !important; border-radius: 11px !important; box-shadow: none !important; }
html.leve .row .ico.gen { background: var(--c) !important; color: #FFFFFF !important; }
html.leve .row .ico.t-Receita { background: var(--lv-acc) !important; color: var(--lv-acc-ink) !important; }
html.leve .row .ico.t-Investimento { background: var(--lv-inv) !important; color: #FFFFFF !important; }
html.leve .row .ico.t-Resgate { background: #30B0C7 !important; color: #FFFFFF !important; }
html.leve .row .ico:not(.gen):not(.marca):not([class*="t-Receita"]):not([class*="t-Investimento"]):not([class*="t-Resgate"]) { background: #8E8E93 !important; color: #FFFFFF !important; }
html.leve .row .ico.marca { background: #FFFFFF !important; box-shadow: none !important; }
html.leve .row .ico svg { width: 21px !important; height: 21px !important; stroke-width: 2 !important; }

/* ---------- Barra de abas: vidro flutuante ---------- */
html.leve .dock { background: none !important; padding: 0 !important; }
html.leve .bar-abas {
  position: relative; display: flex !important; align-items: center; gap: 10px; background: none !important; border: 0 !important;
  padding: 0 14px calc(10px + env(safe-area-inset-bottom, 0px)) !important; max-width: 640px !important; margin: 0 auto !important; pointer-events: none;
}
html.leve .bar-abas > * { pointer-events: auto; }
html.leve .views {
  flex: 1; display: flex !important; justify-content: space-around; height: 62px !important; padding: 4px !important; margin: 0 !important;
  background: var(--lv-glass) !important; -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  border: 0 !important; border-radius: 31px !important; box-shadow: var(--lv-shadow) !important;
}
html.leve .views::before, html.leve .views::after { display: none !important; }
/* abas como no app antigo; Ajustes fica no botão da conta (no computador, também na barra lateral) */
html.leve:root .views button.lv-tab-mais { display: none !important; }
html.leve .views button, html.leve .views button[aria-selected="true"] {
  flex: 1; display: grid !important; place-content: center; justify-items: center; gap: 2px; padding: 4px 2px !important; height: 100%; min-height: 0;
  background: none !important; box-shadow: none !important; border-radius: 27px !important; color: var(--lv-ink) !important;
  font: 600 10.5px/1 var(--lv-sans) !important; letter-spacing: 0 !important; transition: background-color .25s var(--lv-ease), color .25s var(--lv-ease);
}
html.leve .views button[aria-selected="true"] { color: var(--lv-acc) !important; background: var(--lv-fill) !important; }
html.leve .views button svg { width: 24px; height: 24px; stroke-width: 1.8; }
html.leve .views button[aria-selected="true"] svg { stroke-width: 2.2; }
html.leve .views .lv-tab-mais { order: 99 !important; }
/* o lançar fica na barra de cima da barra de abas: sem botão "+" solto */
html.leve:root .bar-abas #fab { display: none !important; }


/* painel de lançar */
html.leve body.lancando .dock { background: rgba(0, 0, 0, .3) !important; }
html.leve .composer, html.leve .lanc-topo, html.leve .sugest { background: var(--lv-card) !important; box-shadow: none !important; }
html.leve .composer textarea { background: var(--lv-fill) !important; border: 0 !important; color: var(--lv-ink) !important; border-radius: 14px !important; font-size: 17px !important; }
html.leve .sugest button, html.leve .preview .chip { background: var(--lv-fill) !important; color: var(--lv-ink) !important; border: 0 !important; box-shadow: none !important; }
html.leve .preview > * { background: var(--lv-bg) !important; border: 0 !important; box-shadow: none !important; }
html.leve .lanc-topo b { font: 700 20px/1.2 var(--lv-disp) !important; letter-spacing: -.02em; }
html.leve :is(.lanc-topo .x, .sheet-card .x) { background: var(--lv-fill) !important; color: var(--lv-ink2) !important; border: 0 !important; }

/* boas-vindas: tela cheia antes da conta (o app fica inerte por baixo) */
html.leve .bv { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 20px calc(24px + env(safe-area-inset-bottom, 0px)); background: var(--lv-bg); color: var(--lv-ink); overflow-y: auto; font-family: var(--lv-sans); }
html.leve .bv[hidden] { display: none; }
html.leve .bv-card { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 24px; }
html.leve .bv-brand { display: flex; align-items: center; gap: 12px; font: 700 26px/1 var(--lv-disp); letter-spacing: -.02em; color: var(--lv-ink); }
html.leve .bv-brand img { width: 52px; height: 52px; border-radius: 0; box-shadow: none; }
html.leve .bv-brand b { color: var(--lv-acc); }
html.leve .bv h2 { margin: 0; font: 700 30px/1.15 var(--lv-disp); letter-spacing: -.025em; color: var(--lv-ink); }
html.leve .bv-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
html.leve .bv-lista li { display: flex; align-items: center; gap: 14px; font-size: 16px; color: var(--lv-ink2); }
html.leve .bv-ic { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--lv-acc-soft); color: var(--lv-acc); display: grid; place-items: center; }
html.leve .bv-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
html.leve .bv-destaque { margin: 0; padding: 14px 16px; border-radius: 16px; background: var(--lv-acc-soft); color: var(--lv-acc); font-weight: 600; font-size: 16px; }
html.leve .bv-nota { margin: 0; font-size: 14px; color: var(--lv-ink2); }
html.leve .bv-acoes { display: flex; flex-direction: column; gap: 10px; }
html.leve .bv-btn { min-height: 52px; border: 0; border-radius: 16px; font: 600 17px/1 var(--lv-sans); background: var(--lv-fill); color: var(--lv-ink); cursor: pointer; }
html.leve .bv-btn.solid { background: var(--lv-acc); color: var(--lv-acc-ink); }
html.leve .bv-rodape { margin: 0; text-align: center; font-size: 13px; }
html.leve .bv-instalar { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; margin: -6px auto 0; padding: 8px 18px 8px 10px; border: 0; border-radius: 999px; background: var(--lv-fill); color: var(--lv-ink); font: 600 15px/1.2 var(--lv-sans); cursor: pointer; -webkit-tap-highlight-color: transparent; }
html.leve .bv-instalar[hidden] { display: none; }
html.leve .bv-instalar img { width: 28px; height: 28px; border-radius: 8px; flex: 0 0 28px; }
html.leve .bv-instalar span { color: var(--lv-ink2); font-size: 18px; }
html.leve .bv-instalar:focus-visible { outline: 3px solid var(--lv-acc); outline-offset: 2px; }
html.leve .bv-rodape a { color: var(--lv-ink2); }
html.leve .bv-btn:focus-visible, html.leve .bv-rodape a:focus-visible { outline: 3px solid var(--lv-acc); outline-offset: 2px; }

/* telas que sobem de baixo */
html.leve .sheet { background: rgba(0, 0, 0, .3) !important; }
html.leve .sheet-card { background: var(--lv-card) !important; color: var(--lv-ink) !important; border-radius: 28px 28px 0 0 !important; box-shadow: 0 -10px 40px -16px rgba(0, 0, 0, .3) !important; }
html.leve .sheet-card h2 { font: 700 22px/1.2 var(--lv-disp) !important; letter-spacing: -.02em !important; }
html.leve .sheet-card label { color: var(--lv-ink2); font-size: 13px; font-weight: 500; }

/* ---------- Carteira e Investimentos ---------- */
html.leve .capa > .panel.pat, html.leve #v-invest .capa > .summary {
  margin: 12px 16px 16px !important; padding: 20px !important; background: var(--lv-card) !important;
  border-radius: 24px !important; box-shadow: var(--lv-shadow) !important; color: var(--lv-ink) !important;
}
html.leve .capa .summary .stat.hero { border-radius: 0 !important; padding: 0 !important; background: none !important; }
html.leve .panel.pat .panel-head h2 { font: 500 15px/1.2 var(--lv-sans) !important; color: var(--lv-ink2) !important; letter-spacing: -.01em !important; }
html.leve :is(.hero-v, #patTotal, #iTotal) { font: 650 38px/1.1 var(--lv-round) !important; letter-spacing: -.03em !important; color: var(--lv-ink) !important; }
html.leve .pat-parts, html.leve .pat-parts > * { border-color: var(--lv-sep) !important; color: var(--lv-ink) !important; }
html.leve .pat-parts { margin-top: 14px !important; }
html.leve #v-invest .capa > .summary { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 14px 12px; }
html.leve #v-invest .summary .stat { padding: 0 !important; min-height: 0 !important; color: var(--lv-ink) !important; border-radius: 0 !important; }
html.leve #v-invest .summary .stat.hero { grid-column: 1 / -1; }
html.leve #v-invest .summary .stat.hero .v { font: 650 38px/1.1 var(--lv-round) !important; letter-spacing: -.03em !important; }
html.leve :is(.summary.three, #v-invest .summary) .stat .lbl { font: 500 13px/1.25 var(--lv-sans) !important; color: var(--lv-ink2) !important; text-transform: none !important; letter-spacing: 0 !important; }
html.leve :is(.summary.three, #v-invest .summary) .stat .lbl i { display: none; }
html.leve :is(.summary.three .stat, #v-invest .summary .stat:not(.hero)) .v { font: 600 16px/1.3 var(--lv-round) !important; color: var(--lv-ink) !important; letter-spacing: -.01em !important; }
html.leve #v-invest .summary .stat .sub { font-size: 12px !important; color: var(--lv-ink2) !important; }
html.leve .summary.three { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 12px; margin: 0 !important; }
html.leve .panel > .summary.three { padding: 2px 0 10px !important; border-bottom: .5px solid var(--lv-sep) !important; margin-bottom: 4px !important; }
html.leve .summary.three .stat { padding: 0 !important; min-height: 0 !important; border-radius: 0 !important; grid-column: auto !important; grid-row: auto !important; }
html.leve .summary.three .stat .sub { display: none !important; }
html.leve .panel:not(:has(.wtile)) > .summary.three { display: none !important; }

/* linhas com seta, como uma lista do iOS */
html.leve .lv-linha {
  display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; text-align: left; cursor: pointer;
  padding: 14px 16px; min-height: 52px; font: 500 16px/1.2 var(--lv-sans); color: var(--lv-ink); letter-spacing: -.015em;
}
html.leve .lv-linha > span:first-child { flex: 1; }
html.leve .lv-linha .num { color: var(--lv-ink2); font: 500 16px/1.2 var(--lv-round); }
html.leve .lv-linha svg { width: 16px; height: 16px; color: var(--lv-ink3); stroke-width: 2.4; }
html.leve #v-carteira .folha > .lv-linha { background: var(--lv-card); border-radius: 16px; margin: 0 16px 16px; width: calc(100% - 32px); }
html.leve .lv-voltar { display: inline-flex; align-items: center; gap: 2px; border: 0; background: none; color: var(--lv-acc); font: 500 17px/1 var(--lv-sans); padding: 12px 10px 0; min-height: 44px; cursor: pointer; }
html.leve .lv-voltar svg { width: 22px; height: 22px; stroke-width: 2.4; }
html.leve .lv-como { margin: 10px 0 0; padding: 0; }
html.leve .lv-como summary { color: var(--lv-acc); font: 500 14px/1 var(--lv-sans); padding: 8px 0; cursor: pointer; list-style: none; }
html.leve .lv-como summary::-webkit-details-marker { display: none; }
html.leve .lv-como .note { margin: 0; }

/* cartões e contas: uma linha por item */
html.leve .wgrid { display: block !important; }
html.leve .wtile { display: grid !important; grid-template-columns: 1fr auto; gap: 2px 12px; background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; padding: 12px 0 !important; margin: 0 !important; }
html.leve .wtile + .wtile { border-top: .5px solid var(--lv-sep) !important; }
html.leve .wtile .plastic {
  grid-column: 1 / -1; display: grid !important; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 12px;
  background: none !important; color: var(--lv-ink) !important; box-shadow: none !important; border: 0 !important; padding: 0 !important;
  min-height: 0 !important; aspect-ratio: auto !important; border-radius: 0 !important; transform: none !important;
}
html.leve .wtile .plastic::before, html.leve .wtile .plastic::after, html.leve .wtile .pl-chip, html.leve .wtile .pl-kind { display: none !important; }
html.leve .wtile .pl-top { display: flex; align-items: center; gap: 12px; }
html.leve .wtile .pl-nfc { display: none !important; }
/* cartãozinho com a marca do banco (cartões) e quadradinho com o logo (contas): só preenchimento, sem contorno */
html.leve .mini-cartao {
  position: relative; flex: none; width: 56px; height: 36px; border-radius: 8px; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(120% 150% at 0% 0%, color-mix(in srgb, var(--bank) 55%, #FFFFFF) 0%, transparent 52%),
    radial-gradient(90% 120% at 100% 100%, color-mix(in srgb, var(--bank) 55%, #000000) 0%, transparent 70%),
    var(--bank);
  box-shadow: 0 8px 16px -10px color-mix(in srgb, var(--bank) 85%, #000000);
}
html.leve .mini-cartao::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .18) 50%, transparent 62%); pointer-events: none; }
html.leve .mc-marca { position: absolute; left: 5px; top: 5px; width: 18px; height: 18px; border-radius: 5px; overflow: hidden; display: grid; place-items: center; color: #FFFFFF; }
html.leve .mc-marca img { display: block; width: 100%; height: 100%; object-fit: cover; }
html.leve .mc-marca b { font: 800 13px/1 var(--lv-round); color: #FFFFFF; letter-spacing: -.02em; }
html.leve .mc-marca svg { width: 16px; height: 16px; }
html.leve .mc-chip { position: absolute; right: 6px; bottom: 6px; width: 11px; height: 8px; border-radius: 2px; background: linear-gradient(135deg, #F6E3A4, #C99B3B); }
html.leve .mini-conta {
  flex: none; width: 40px; height: 40px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; color: #FFFFFF;
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--bank) 55%, #FFFFFF) 0%, transparent 55%), var(--bank);
  box-shadow: 0 8px 16px -10px color-mix(in srgb, var(--bank) 85%, #000000);
}
html.leve .mini-conta img { display: block; width: 100%; height: 100%; object-fit: cover; }
html.leve .mini-conta b { font: 800 17px/1 var(--lv-round); letter-spacing: -.02em; }
html.leve .mini-conta svg { width: 21px; height: 21px; }
@media (prefers-reduced-motion: no-preference) {
  html.leve .wtile:hover .mini-cartao { transform: translateY(-1px) rotate(-2deg); }
  html.leve .mini-cartao { transition: transform .3s var(--lv-ease); }
}
html.leve .wtile .pl-bank { font: 600 16px/1.2 var(--lv-sans) !important; color: var(--lv-ink) !important; letter-spacing: -.015em !important; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; min-width: 0; }
html.leve .wtile .pl-top { min-width: 0; }
html.leve .wtile .pl-mid { grid-column: 3; display: grid !important; justify-items: end; gap: 0; margin: 0 !important; }
html.leve .wtile .pl-lbl { font: 400 12px/1.2 var(--lv-sans) !important; color: var(--lv-ink2) !important; order: 2; }
html.leve .wtile .pl-val { font: 600 16px/1.25 var(--lv-round) !important; color: var(--lv-ink) !important; letter-spacing: -.01em !important; }
html.leve .wtile .pl-bot { grid-column: 1 / -1; margin: 8px 0 0 !important; }
html.leve .wtile .track { height: 6px !important; background: var(--lv-fill) !important; border-radius: 3px !important; box-shadow: none !important; }
html.leve .wtile .track .fill { background: var(--lv-gasto) !important; border-radius: 3px !important; }
html.leve .wtile .wt-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; font-size: 12.5px !important; color: var(--lv-ink2) !important; margin: 4px 0 0 !important; padding: 0 !important; }
html.leve .wtile .wt-since { grid-column: 1 / -1; font-size: 12.5px !important; color: var(--lv-ink2) !important; background: none !important; padding: 2px 0 0 !important; margin: 0 !important; }
html.leve .wtile .wt-acts { grid-column: 1 / -1; display: flex !important; gap: 18px; justify-content: flex-start; margin: 2px 0 0 !important; padding: 0 !important; border: 0 !important; }
html.leve .wtile .wt-acts .btn { padding: 8px 0 !important; min-height: 36px; flex: none !important; width: auto !important; }
html.leve .wtile .wt-acts .btn:disabled { color: var(--lv-ink3) !important; }

/* assistente: uma linha no fim da tela */
html.leve .view .assist {
  display: flex !important; align-items: center; gap: 12px; width: calc(100% - 32px); margin: 0 16px 16px !important; padding: 12px 14px !important;
  background: var(--lv-card) !important; border-radius: 16px !important; border: 0 !important; color: var(--lv-ink) !important;
}
html.leve .assist .assist-ic { background: linear-gradient(135deg, var(--lv-acc), var(--lv-inv)) !important; color: #FFFFFF !important; box-shadow: none !important; border-radius: 11px !important; }
html.leve .assist b { font: 600 16px/1.25 var(--lv-sans) !important; color: var(--lv-ink) !important; }
html.leve .assist small { color: var(--lv-ink2) !important; }

/* ---------- Planejar ---------- */
html.leve #v-planejar > .capa { display: none !important; }
html.leve #v-planejar .folha { padding-top: 12px !important; }
html.leve .month.mini { background: var(--lv-fill) !important; border: 0 !important; box-shadow: none !important; padding: 0 2px !important; gap: 0 !important; border-radius: 99px !important; }
html.leve .month.mini button { width: 30px; height: 30px; background: none !important; color: var(--lv-ink) !important; border: 0 !important; }
html.leve .month.mini span { font: 500 13px/1 var(--lv-sans) !important; color: var(--lv-ink) !important; }
html.leve .panel-head .head-r { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- Resumo ---------- */
html.leve .lv-res-topo:empty { display: none !important; }
html.leve .prev-card:not([hidden]) :is(b, strong) { font-family: var(--lv-round); }
html.leve .res-kpis > *, html.leve .r-kpis > * { background: var(--lv-card) !important; box-shadow: none !important; border: 0 !important; color: var(--lv-ink) !important; border-radius: 16px !important; }
html.leve .r-kpis .r-sobra { background: var(--lv-acc-soft) !important; }
html.leve .res-doc { background: none !important; }
html.leve .res-doc :is(.r-card, .r-box) { box-shadow: none !important; }
html.leve .per-bar button { background: var(--lv-card) !important; color: var(--lv-ink) !important; border: 0 !important; box-shadow: none !important; border-radius: 99px !important; font-weight: 500 !important; }
html.leve .per-bar button[aria-pressed="true"] { background: var(--lv-ink) !important; color: var(--lv-bg) !important; }
html.leve .lv-mais { margin: 0 16px 16px; background: var(--lv-card); border-radius: var(--lv-r); }
html.leve .lv-mais > summary { display: grid; grid-template-columns: 1fr auto; row-gap: 2px; align-items: center; padding: 16px; cursor: pointer; list-style: none; font: 700 18px/1.2 var(--lv-disp); letter-spacing: -.02em; color: var(--lv-ink); }
html.leve .lv-mais > summary::-webkit-details-marker { display: none; }
html.leve .lv-mais > summary small { grid-row: 2; grid-column: 1; font: 400 13px/1.2 var(--lv-sans); color: var(--lv-ink2); letter-spacing: 0; }
html.leve .lv-mais > summary svg { grid-row: 1 / span 2; grid-column: 2; width: 18px; height: 18px; color: var(--lv-ink3); transition: transform .25s var(--lv-ease); }
html.leve .lv-mais[open] > summary svg { transform: rotate(180deg); }
html.leve .lv-mais-c > .panel { margin: 0 !important; border-radius: 0 !important; border-top: .5px solid var(--lv-sep) !important; }

/* ---------- Mais ---------- */
html.leve .lv-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 2px; background: var(--lv-fill); border-radius: 10px; }
html.leve .lv-seg button { border: 0; background: none; border-radius: 8px; min-height: 34px; font: 500 14px/1 var(--lv-sans); color: var(--lv-ink); cursor: pointer; transition: background-color .2s var(--lv-ease); }
html.leve .lv-seg button[aria-pressed="true"] { background: var(--lv-card2); font-weight: 600; box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .04); }
html.leve .lv-atalhos .lv-lista { margin: 0 -16px -18px; }
html.leve .lv-atalhos .lv-linha + .lv-linha { box-shadow: inset 16px .5px 0 var(--lv-card), inset 0 .5px 0 var(--lv-sep); }


/* ---------- Estados ---------- */
@media (hover: hover) and (pointer: fine) {
  html.leve :is(.lv-linha, .lv-menu button, .lv-mais > summary, .row):hover { background-color: var(--lv-fill) !important; }
  html.leve .lv-ic:not(.sm):hover { background: var(--lv-fill); }
  html.leve .views button:not([aria-selected="true"]):hover { background: var(--lv-fill) !important; }
}
@media (prefers-reduced-motion: reduce) {
  html.leve .lv-menu { animation: none; }
  html.leve :is(.lv-modo, .lv-mais > summary) svg, html.leve .lv-barra i, html.leve .views button { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  html.leve :is(.views, .lv-menu) { background: var(--lv-card) !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  html.leve:root { --lv-ink2: #3A3A3F; --lv-sep: rgba(60, 60, 67, .4); }
}

html.leve .lv-side-marca { display: none; }
/* ---------- Computador: barra lateral como num app de Mac ---------- */
@media (min-width: 1000px) {
  html.leve .wrap { max-width: none !important; margin: 0 0 0 260px !important; padding: 8px 32px 110px !important; }
  html.leve header.top { max-width: 1120px; padding: 16px 0 4px !important; }
  html.leve .view { max-width: 1120px; }
  html.leve .lv-chave button { width: auto; padding: 0 12px !important; font-size: 13px; letter-spacing: -.01em; }
  html.leve .lv-chave .lv-longo { display: inline; }
  html.leve .lv-chave .lv-curto { display: none; }

  /* barra lateral */
  html.leve .dock { position: static !important; padding: 0 !important; background: none !important; }
  html.leve .bar-abas {
    position: fixed !important; left: 0; top: 0; bottom: 0; width: 260px; max-width: none !important; z-index: 40;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 18px; pointer-events: auto;
    padding: 76px 14px 20px !important; margin: 0 !important;
    background: var(--lv-glass) !important; -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%);
    border-right: .5px solid var(--lv-sep) !important;
  }
  html.leve .lv-side-marca { display: block !important; position: absolute; top: 24px; left: 22px; font: 700 23px/1 "Bricolage Grotesque", var(--lv-disp); letter-spacing: -.035em; color: var(--lv-ink); }
  html.leve .lv-side-marca b { color: var(--lv-acc); font-weight: 700; }
  html.leve .lv-side-marca { display: flex !important; align-items: center; gap: 9px; }
  html.leve .lv-side-marca .lv-simb { width: 30px; height: 30px; object-fit: contain; }
  html.leve .views {
    flex: none; flex-direction: column; justify-content: flex-start; gap: 2px; height: auto !important; padding: 0 !important; width: auto !important; min-width: 0 !important; max-width: 100% !important;
    background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  html.leve .views button, html.leve .views button[aria-selected="true"] {
    flex: none; display: flex !important; flex-direction: row !important; align-items: center; justify-content: flex-start; gap: 12px; height: 40px; width: 100%; place-content: initial; text-align: left; padding: 0 12px !important;
    border-radius: 10px !important; font: 500 15px/1 var(--lv-sans) !important; letter-spacing: -.01em !important;
  }
  html.leve .views button[aria-selected="true"] { background: var(--lv-acc-soft) !important; color: var(--lv-acc) !important; font-weight: 600 !important; }
  html.leve .views button svg { width: 20px; height: 20px; }
  html.leve:root .bar-abas .views button.lv-tab-mais { order: 99 !important; margin-top: 0; display: flex !important; }
  /* botão de lançar vira um botão largo no topo da barra lateral (também no Início) */
  /* a barra de lançar fica fixa embaixo da área de conteúdo, em todas as abas */
  html.leve .dock > .lv-campo {
    position: fixed; z-index: 35; bottom: 22px; left: calc(260px + (100vw - 260px) / 2); transform: translateX(-50%);
    width: min(680px, calc(100vw - 260px - 64px)); max-width: none; margin: 0;
  }

  /* lançar: abre no centro, com o fundo escurecido */
  html.leve .dock .composer { display: none !important; }
  html.leve body.lancando { overflow: hidden; }
  html.leve body.lancando .dock {
    position: fixed !important; inset: 0; z-index: 70; display: flex !important; flex-direction: column; align-items: center; justify-content: center;
    background: rgba(0, 0, 0, .32) !important; padding: 0 !important; pointer-events: auto; gap: 0 !important; row-gap: 0 !important;
  }
  html.leve body.lancando .bar-abas { opacity: .35; pointer-events: none; }
  html.leve body.lancando .dock > * { flex: none !important; height: auto !important; min-height: 0 !important; margin-top: 0 !important; margin-bottom: 0 !important; border: 0 !important; box-shadow: none; }
  html.leve body.lancando .dock > .eco { display: none !important; }
  html.leve body.lancando .dock .composer { max-height: 70vh; overflow: auto; }
  html.leve body.lancando :is(.lanc-topo, .sugest, .dock .composer) { width: min(560px, calc(100vw - 48px)); max-width: none; margin: 0; background: var(--lv-card) !important; }
  html.leve body.lancando .lanc-topo { order: 1; display: flex !important; align-items: center; justify-content: space-between; padding: 22px 22px 6px; border-radius: 24px 24px 0 0; }
  html.leve body.lancando .lanc-topo .grab { display: none; }
  html.leve body.lancando .sugest { order: 2; display: flex !important; gap: 6px; flex-wrap: wrap; padding: 8px 22px 4px; }
  html.leve body.lancando .sugest button { border-radius: 99px; padding: 8px 12px; font: 500 13px var(--lv-sans); cursor: pointer; }
  html.leve body.lancando .dock .composer {
    order: 3; display: flex !important; flex-direction: column; padding: 10px 22px 22px; border-radius: 0 0 24px 24px; box-shadow: var(--lv-shadow) !important;
  }
  html.leve body.lancando .composer-row { order: 3; background: var(--lv-fill); border-radius: 18px; padding: 5px; display: flex; align-items: flex-end; gap: 4px; }
  html.leve body.lancando .composer-row textarea { background: none !important; }
  html.leve body.lancando .preview { order: 1; padding: 0 0 8px; }
  html.leve body.lancando .pick-row { order: 2; padding: 0 0 8px; display: flex; gap: 8px; }

  /* Início em duas colunas: o mês e o campo à esquerda, os lançamentos à direita */
  html.leve #v-inicio:not([hidden]) { display: grid !important; grid-template-columns: minmax(340px, 400px) minmax(0, 1fr); column-gap: 8px; align-items: start; }
  html.leve #v-inicio > .capa { grid-column: 1; grid-row: 1; margin: 12px 0 0 !important; }
  html.leve #v-inicio > .folha { grid-column: 2; grid-row: 1 / span 3; padding-top: 12px !important; }
  html.leve #v-inicio > .folha > * { margin-right: 0 !important; }
  html.leve #sBal { font-size: 48px !important; }
  html.leve #v-inicio .summary .stat.hero { grid-column: 1 / -1 !important; grid-row: auto !important; min-height: 0 !important; }
  html.leve #v-inicio .summary > .stat:not(.hero) { grid-row: auto !important; justify-content: start !important; padding: 0 !important; }
  html.leve .views button > span { display: inline !important; }

  /* demais telas: grupos em duas colunas, como um painel do Mac */
  /* grade de duas colunas (o layout em colunas embaralhava botões no Safari) */
  html.leve :is(#v-carteira, #v-planejar, #v-ajustes, #v-invest, #v-vendas) .folha { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; padding: 0 !important; }
  html.leve :is(#v-carteira, #v-planejar, #v-ajustes, #v-invest, #v-vendas) .folha > :is(.lv-linha, .acao-topo, .lv-voltar, .assist, .lv-como, [hidden]) { grid-column: 1 / -1; }
  html.leve :is(#v-carteira, #v-planejar, #v-ajustes, #v-invest, #v-vendas) .folha > [hidden] { display: none !important; }
  html.leve #v-carteira .capa > .panel.pat, html.leve #v-invest .capa > .summary { margin: 12px 16px 16px !important; }
  html.leve #v-resumo > * { max-width: 860px; }
  html.leve .capa-tit h1 { font-size: 40px !important; }

  /* telas que sobem de baixo viram janelas no centro */
  html.leve .sheet-card { border-radius: 24px !important; }

  html.leve .toast { left: calc(50% + 130px) !important; bottom: 28px !important; }
}
/* o app antigo põe sombra na barra de abas no escuro: aqui vale a nossa */
html.leve:root .bar-abas .views { box-shadow: var(--lv-shadow) !important; }
@media (min-width: 1000px) { html.leve:root .bar-abas .views { box-shadow: none !important; border: 0 !important; } }

/* o time de assistentes: o rosto de cada um no lugar do ícone */
html.leve .assist .assist-ic { width: 44px !important; height: 44px !important; border-radius: 50% !important; background: none !important; }
html.leve .chat-av { width: 52px; height: 52px; }
html.leve .chat-bio { color: var(--lv-ink2); opacity: 1; }
html.leve .chat-papel { display: block; font: 500 13px/1.3 var(--lv-sans); color: var(--lv-ink2); letter-spacing: 0; margin-top: 2px; }

/* selo "assistente com IA" na conversa */
html.leve .chat-ia { color: var(--lv-acc); font-weight: 600; }

/* avisos rápidos (toast) acima da barra de lançar */
html.leve .toast { bottom: calc(150px + env(safe-area-inset-bottom, 0px)) !important; }
@media (min-width: 1000px) { html.leve .toast { bottom: 100px !important; } }

/* ======================================================================
   Telas que ainda tinham a base antiga: contas, metas, dicas, tabelas,
   relatório do Resumo, edição de lançamento, avisos, conversa e empresa.
   ====================================================================== */

/* cartões de crédito e contas: o estilo de linha vale só para eles (a meta tem o seu) */
html.leve #metaList .wtile:not(.meta) { display: block !important; }

/* contas do mês / a pagar: como a lista de lembretes do iPhone */
html.leve .cp {
  display: grid !important; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 12px; row-gap: 2px;
  padding: 12px 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; border-radius: 0 !important; position: relative;
}
html.leve .cp + .cp::before { content: ""; position: absolute; top: 0; left: 40px; right: 0; height: .5px; background: var(--lv-sep); }
html.leve .cp-check {
  grid-row: 1 / span 2; width: 26px !important; height: 26px !important; border-radius: 50% !important; padding: 0 !important;
  border: 0 !important; background: var(--lv-fill2) !important; color: transparent !important; display: grid; place-items: center; box-shadow: none !important;
  transition: background-color .2s ease, border-color .2s ease, transform .1s ease-out;
}
html.leve .cp-check svg { width: 15px; height: 15px; stroke-width: 3; }
html.leve .cp-check[aria-pressed="true"] { background: var(--lv-acc) !important; color: var(--lv-acc-ink) !important; }
html.leve .cp-check:active { transform: scale(.9); }
html.leve .cp-main { display: grid; gap: 2px; min-width: 0; }
html.leve .cp-n { font: 500 16px/1.3 var(--lv-sans); color: var(--lv-ink); letter-spacing: -.015em; }
html.leve .cp-d { font-size: 13px; color: var(--lv-ink2); line-height: 1.35; }
html.leve .cp-when { color: var(--lv-ink2); font-weight: 500; }
html.leve .cp.atrasado .cp-when, html.leve .cp .atr { color: var(--lv-neg) !important; }
html.leve .cp-v { font: 600 16px/1.3 var(--lv-round); color: var(--lv-ink); white-space: nowrap; }
html.leve .cp-acts { grid-column: 2 / -1; display: flex; gap: 14px; }
html.leve .cp-acts .linkish { font: 500 13.5px/1 var(--lv-sans); padding: 6px 0; text-decoration: none; }
html.leve .cp.pago .cp-n, html.leve .cp.feito .cp-n, html.leve .cp:has(.cp-check[aria-pressed="true"]) .cp-n { color: var(--lv-ink3); text-decoration: line-through; }
html.leve .cp:has(.cp-check[aria-pressed="true"]) .cp-v { color: var(--lv-ink3); }
html.leve #cpResumo { background: none !important; border: 0 !important; padding: 0 0 6px !important; color: var(--lv-ink2); font-size: 13.5px; }

/* metas como potes de vidro: o líquido na cor da meta (--mc) sobe até o nível; só preenchimento, sem borda */
html.leve #metaList.grade { display: grid !important; grid-template-columns: 1fr 1fr; gap: 14px 12px; align-items: start; }
html.leve #metaList.grade.uma { grid-template-columns: 1fr; }
@media (min-width: 1000px) {
  html.leve #metaList.grade { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important; }
  html.leve #v-planejar .panel:has(> #metaList) { grid-column: 1 / -1; } /* computador: a faixa de metas ocupa a largura toda do Planejar, 3 a 4 potes por linha */
}
html.leve .wtile.meta {
  display: flex !important; flex-direction: column; align-items: stretch; position: relative; isolation: isolate;
  background: var(--lv-card) !important; color: var(--lv-ink) !important; border: 0 !important; border-radius: 22px !important;
  padding: 14px !important; margin: 0 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 10px 26px -18px rgba(0, 0, 0, .35) !important;
}
html.leve .wtile.meta + .wtile.meta { border-top: 0 !important; margin-top: 0 !important; padding-top: 14px !important; }
html.leve #metaList.uma .wtile.meta { flex-direction: row !important; align-items: center; gap: 18px; padding: 18px !important; }
html.leve .wtile.meta .pote-area { flex: none; width: 100%; }
html.leve #metaList.uma .pote-area { width: 136px; }
html.leve .wtile.meta .meta-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
/* pote de vidro com moedas (SVG de poteMoedasSVG): vidro, moedas e rótulo creme; só preenchimento, sem borda */
html.leve { --pm-vidro: rgba(34, 92, 72, .12); --pm-parede: rgba(34, 92, 72, 0); --pm-borda: #3F6F5D; }
@media (prefers-color-scheme: dark) { html.leve:not(.lv-claro) { --pm-vidro: rgba(255, 255, 255, .05); --pm-parede: rgba(0, 0, 0, .12); --pm-borda: #FFFFFF; } }
html.leve.lv-escuro { --pm-vidro: rgba(255, 255, 255, .05); --pm-parede: rgba(0, 0, 0, .12); --pm-borda: #FFFFFF; }
/* moeda nova: entra pela boca do pote (começa em --dx/--dy, sob a tampa, em escala .8), cai acelerando, vira (scaleX) e quica ao assentar; só transform e opacity */
@keyframes pmCai {
  0% { transform: translate(var(--dx), var(--dy)) scale(.8, .8); opacity: 0; animation-timing-function: cubic-bezier(.5, 0, .75, 0); }
  6% { transform: translate(var(--dx), var(--dy)) scale(.8, .8); opacity: 1; animation-timing-function: cubic-bezier(.5, 0, .75, 0); }
  38% { transform: translate(calc(var(--dx) * .45), calc(var(--dy) * .45)) scale(.3, .8); opacity: 1; animation-timing-function: cubic-bezier(.5, 0, .75, 0); }
  58% { transform: translate(calc(var(--dx) * .12), calc(var(--dy) * .12)) scale(.9, .9); opacity: 1; animation-timing-function: cubic-bezier(.5, 0, .75, 0); }
  75% { transform: translate(0, 0) scale(1, 1); opacity: 1; animation-timing-function: cubic-bezier(.5, 0, .5, 1); }
  88% { transform: translate(0, -4px) scale(1, 1); opacity: 1; animation-timing-function: cubic-bezier(.5, 0, .75, 0); }
  100% { transform: translate(0, 0) scale(1, 1); opacity: 1; }
}
/* tampa: levanta cerca de 9 unidades e gira −14° na dobradiça (borda esquerda de baixo); fecha no fim com um quique */
@keyframes pmTampa {
  0% { transform: translate(0, 0) rotate(0deg); }
  12% { transform: translate(0, -9px) rotate(-14deg); animation-timing-function: ease-in-out; }
  80% { transform: translate(0, -9px) rotate(-14deg); animation-timing-function: ease-in; }
  90% { transform: translate(0, 1px) rotate(1deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}
@keyframes pmSurge { from { opacity: 0; } to { opacity: 1; } }
@keyframes pmTuc { 0% { transform: scale(1); } 50% { transform: scale(1.03); } 100% { transform: scale(1); } }
html.leve .pm-tampa { transform-box: fill-box; transform-origin: 0% 100%; }
html.leve .pm-abrindo .pm-tampa { animation: pmTampa var(--pm-fim, 750ms) linear both; }
html.leve .pm-queda .pm-cai { animation: pmCai .6s both; animation-delay: var(--d, 0ms); }
html.leve .pm-fade { animation: pmSurge .2s both; animation-delay: var(--fd, 0ms); }
html.leve .pm-oculta, html.leve .pm-queda.pm-feito { visibility: hidden; }
html.leve .pm-espera, html.leve .pl-espera { visibility: hidden; animation-play-state: paused; }
html.leve .pote.pm-tuc { animation: pmTuc .12s ease-out; }
html.leve .pm-vidro { fill: var(--pm-vidro); }
html.leve .pm-parede { fill: var(--pm-parede); }
html.leve .pm-borda { stop-color: var(--pm-borda); }
html.leve .pote { position: relative; width: 100%; max-width: 150px; margin: 0 auto; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; transition: transform .25s ease; }
html.leve .pote > svg { display: block; width: 100%; height: auto; overflow: visible; }
html.leve .pote.segurando { transform: scale(.97); }
html.leve .pote.puxando { transform: translateY(calc(var(--puxa, 0px) * -1)) scale(1.02); }
html.leve .pote.volta { transition: transform .5s cubic-bezier(.34, 1.5, .64, 1); }
/* rótulo creme por cima do vidro: figurinha e nome; não vaza do pote */
html.leve .pote-rot { position: absolute; left: 50%; top: 58%; transform: translate(-50%, -50%); max-width: 88%; display: inline-flex; align-items: center; gap: 4px; padding: 5px 8px 5px 7px; border-radius: 10px; background: rgba(250, 245, 232, .94); color: #13201C; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 6px 14px rgba(20, 14, 4, .22); white-space: nowrap; font: 650 11.5px/1 var(--lv-sans); pointer-events: none; }
html.leve .pote-rot i { display: block; width: 12px; height: 12px; flex: none; }
html.leve .pote-rot i svg { display: block; width: 12px; height: 12px; fill: currentColor; }
html.leve .pote-rot b { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 650; }
html.leve .pote-dica { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 6px; margin: 4px 0 0; padding: 0; background: none; color: var(--lv-ink2); font: 500 12.5px/1.35 var(--lv-sans); text-align: center; }
html.leve .pote-dica svg { width: 14px; height: 14px; flex: none; fill: var(--lv-acc); }
/* textos centralizados como na prévia; o nome fica só para leitor de tela */
html.leve .wtile.meta .meta-txt { align-items: center; text-align: center; }
html.leve .wtile.meta .wt-name { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; margin: 0 !important; padding: 0 !important; }
html.leve .wtile.meta .wt-big { display: flex !important; flex-direction: row !important; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 0 4px; margin: 10px 0 0 !important; }
html.leve .wtile.meta .wt-big .num { font: 650 15px/1.3 var(--lv-round); color: var(--lv-ink); white-space: nowrap; letter-spacing: 0; }
html.leve .wtile.meta .wt-de { font: 500 13px/1.3 var(--lv-round); color: var(--lv-ink2); white-space: nowrap; }
html.leve .wtile.meta .meta-barra { width: 100%; height: 5px; margin-top: 8px; border-radius: 999px; background: var(--lv-fill); overflow: hidden; }
html.leve .wtile.meta .meta-barra i { display: block; height: 100%; border-radius: 999px; background: var(--lv-acc); transition: width .9s cubic-bezier(.22, .7, .3, 1); }
html.leve .wtile.meta .wt-foot { display: block !important; margin: 8px 0 0 !important; font-size: 13px !important; color: var(--lv-ink) !important; text-align: center; }
html.leve .wtile.meta .wt-foot span { margin: 0; }
html.leve .wtile.meta .meta-ok { display: inline-flex; align-items: center; gap: 6px; font: 650 13px/1.3 var(--lv-sans); color: var(--lv-acc) !important; }
html.leve .meta-ok svg { width: 14px; height: 14px; flex: none; fill: var(--lv-acc); }
html.leve .meta-ok svg polygon { fill: var(--lv-acc-ink); }
html.leve .wtile.meta .wt-since { text-align: center; }
html.leve .wtile.meta .meta-acts { display: grid; gap: 6px; margin-top: 12px; }
html.leve .wtile.meta .meta-acts .btn { width: 100% !important; min-height: 44px; padding: 0 6px !important; border: 0 !important; border-radius: 13px !important; box-shadow: none !important; white-space: nowrap; font: 600 clamp(12.5px, 3.7vw, 14px)/1.2 var(--lv-sans) !important; }
html.leve .wtile.meta .meta-acts .btn.primario { background: var(--lv-acc) !important; color: var(--lv-acc-ink) !important; }
html.leve .wtile.meta .meta-acts .btn.primario.meta-add-feito { background: var(--lv-fill) !important; color: var(--lv-acc) !important; }
html.leve .wtile.meta .meta-acts .btn:not(.primario) { background: var(--lv-fill) !important; color: var(--lv-ink) !important; }
/* resumo do topo: total guardado e objetivo total, como na prévia */
html.leve .meta-resumo { display: grid; grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr); align-items: center; margin: 0 0 14px; padding: 14px 16px; border-radius: 20px; background: var(--lv-card); box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 10px 26px -18px rgba(0, 0, 0, .35); }
html.leve .meta-resumo[hidden] { display: none; }
html.leve .meta-resumo > div { padding: 0 2px; min-width: 0; }
html.leve .meta-resumo > div:last-child { padding-left: 16px; }
html.leve .meta-resumo .sep { display: block; height: 34px; background: var(--lv-sep); }
html.leve .meta-resumo small { display: block; font: 600 11px/1.2 var(--lv-sans); letter-spacing: .06em; color: var(--lv-ink2); text-transform: uppercase; }
html.leve .meta-resumo strong { display: block; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font: 700 20px/1.2 var(--lv-round); letter-spacing: -.02em; color: var(--lv-ink); font-variant-numeric: tabular-nums; }
html.leve .meta-resumo strong.verde { color: var(--lv-acc); }
html.leve .meta-resumo.longo strong { font-size: clamp(14px, 4.1vw, 17px); }
html.leve .meta-resumo.longo > div:last-child { padding-left: 12px; }
/* estado vazio: pote pequeno ao lado do texto (o .empty zera o fundo) */
html.leve .empty.meta-vazia { display: flex !important; flex-direction: row; align-items: center; gap: 16px; text-align: left; }
html.leve .empty.meta-vazia .pote { flex: 0 0 64px; width: 64px; max-width: none; margin: 0; }
html.leve .empty.meta-vazia > div:last-child { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
@media (prefers-reduced-motion: reduce) {
  html.leve .pote, html.leve .pote.segurando, html.leve .pote.puxando, html.leve .pote.volta { transition: none; transform: none; }
  /* sem movimento: nada de tampa nem queda; as moedas novas aparecem direto no lugar */
  html.leve .pm-queda { display: none; }
  html.leve .pm-oculta { visibility: visible; }
  html.leve .pm-fade, html.leve .pm-tampa, html.leve .pm-queda .pm-cai, html.leve .pote.pm-tuc { animation: none; }
  html.leve .wtile.meta .meta-barra i { transition: none; }
}

/* tabelas de renda e de rendimento: cabeçalho discreto, sem maiúsculas */
html.leve table { border-collapse: collapse; width: 100%; }
html.leve :is(.panel, .res-doc) th { font: 500 12.5px/1.3 var(--lv-sans) !important; color: var(--lv-ink2) !important; text-transform: none !important; letter-spacing: 0 !important; background: none !important; border: 0 !important; border-bottom: .5px solid var(--lv-sep) !important; padding: 6px 8px 8px 0 !important; text-align: left; }
html.leve :is(.panel, .res-doc) td { border: 0 !important; border-bottom: .5px solid var(--lv-sep) !important; padding: 10px 8px 10px 0 !important; color: var(--lv-ink); font-size: 14.5px; background: none !important; }
html.leve :is(.panel, .res-doc) tr:last-child td { border-bottom: 0 !important; }
html.leve .rent-row, html.leve .rent-rows .head { border-color: var(--lv-sep) !important; }
html.leve .rent-rows .head, html.leve .rent-rows .head * { font: 500 12.5px/1.3 var(--lv-sans) !important; color: var(--lv-ink2) !important; text-transform: none !important; letter-spacing: 0 !important; }

/* dicas: uma lista, não caixas dentro do grupo */
html.leve .dica { background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; padding: 12px 0 !important; margin: 0 !important; }
html.leve .dica + .dica { border-top: .5px solid var(--lv-sep) !important; }
html.leve .dica :is(b, strong, h3) { font: 600 16px/1.3 var(--lv-sans) !important; color: var(--lv-ink) !important; }
html.leve .dica :is(p, span, small) { color: var(--lv-ink2); font-size: 14.5px; line-height: 1.45; }
html.leve .glossario { background: none !important; border: 0 !important; }

/* barras de categoria e de banco */
html.leve .bars .track, html.leve .bar .track { height: 6px !important; border-radius: 3px !important; background: var(--lv-fill) !important; }
html.leve .bars .fill, html.leve .bar .fill { border-radius: 3px !important; }
html.leve .bar-top .n { font: 500 15px/1.3 var(--lv-sans); color: var(--lv-ink); }
html.leve .bar-top .v { font: 600 15px/1.3 var(--lv-round); color: var(--lv-ink); }
html.leve .bar-top .pct { color: var(--lv-ink2); font-size: 13px; }
html.leve .tabs { background: var(--lv-fill) !important; border: 0 !important; border-radius: 10px !important; padding: 2px !important; gap: 2px !important; box-shadow: none !important; }
html.leve .tabs button { border: 0 !important; background: none !important; border-radius: 8px !important; color: var(--lv-ink) !important; font: 500 13.5px/1 var(--lv-sans) !important; min-height: 30px; box-shadow: none !important; }
html.leve .tabs button[aria-pressed="true"] { background: var(--lv-card2) !important; font-weight: 600 !important; box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .04) !important; }

/* calendário de gastos: células suaves, hoje em destaque */
html.leve .cal :is(.cd, .cw) { border-radius: 10px !important; border: 0 !important; box-shadow: none !important; }
html.leve .cal .cd { background: var(--lv-fill); color: var(--lv-ink); }
html.leve .cal .cd.l1 { background: color-mix(in srgb, var(--lv-gasto) 22%, var(--lv-card)) !important; color: var(--lv-ink) !important; }
html.leve .cal .cd.l2 { background: color-mix(in srgb, var(--lv-gasto) 45%, var(--lv-card)) !important; color: var(--lv-ink) !important; }
html.leve .cal .cd.l3 { background: color-mix(in srgb, var(--lv-gasto) 75%, var(--lv-card)) !important; color: #FFFFFF !important; }
html.leve .cal .cd.l4 { background: var(--lv-gasto) !important; color: #FFFFFF !important; }
html.leve .cal .cd.hoje { box-shadow: none !important; background: var(--lv-fill2) !important; }
html.leve .cal .cd.sel { box-shadow: none !important; background: var(--lv-acc-soft) !important; }

/* relatório do Resumo: seções como grupos, títulos no estilo do app */
html.leve .res-doc { padding: 0 !important; }
html.leve .res-doc :is(.r-sec, .r-bl) { background: var(--lv-card) !important; border: 0 !important; box-shadow: none !important; border-radius: var(--lv-r) !important; margin: 0 16px 16px !important; padding: 18px 16px !important; color: var(--lv-ink); }
html.leve .res-doc :is(.r-sec, .r-bl) .r-sec, html.leve .res-doc .r-sec .r-bl { margin: 0 !important; padding: 0 !important; background: none !important; }
html.leve .res-doc h2 { font: 700 20px/1.2 var(--lv-disp) !important; letter-spacing: -.02em !important; color: var(--lv-ink) !important; margin: 0 0 10px !important; text-transform: none !important; }
html.leve .res-doc :is(p, li, .r-nota) { color: var(--lv-ink2); }
html.leve .res-doc .r-dest li { color: var(--lv-ink); line-height: 1.45; margin-bottom: 4px; }
html.leve .res-doc .r-dest b { color: var(--lv-ink); }
html.leve .res-doc .r-linha, html.leve .res-doc .r-linhas > * { border-color: var(--lv-sep) !important; }
html.leve .res-doc .r-rod { color: var(--lv-ink3) !important; font-size: 12px !important; text-align: center; margin: 4px 16px 16px !important; background: none !important; }
html.leve .res-doc .r-trilho { background: var(--lv-fill) !important; border-radius: 3px; }
html.leve .res-doc .r-cats > *, html.leve .res-doc .r-leg > * { border-color: var(--lv-sep) !important; }

/* tabelas do relatório no celular: cada linha vira um item de lista */
@media (max-width: 999px) {
  html.leve .lv-tab thead, html.leve .lv-tab tr:first-child:has(th) { display: none; }
  html.leve .lv-tab, html.leve .lv-tab tbody { display: block; width: 100%; }
  html.leve .lv-tab tr { display: grid; grid-template-columns: max-content max-content 1fr auto; column-gap: 6px; row-gap: 2px; align-items: baseline; padding: 10px 0; border-bottom: .5px solid var(--lv-sep); }
  html.leve .lv-tab tr:last-child { border-bottom: 0; }
  html.leve .lv-tab td { border: 0 !important; padding: 0 !important; font-size: 13px; color: var(--lv-ink2); }
  /* maiores gastos: gasto e valor em cima; dia, categoria e forma embaixo, numa linha que quebra sozinha */
  html.leve .lv-tab-gastos tr { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 4px; row-gap: 2px; }
  html.leve .lv-tab-gastos td:nth-child(2) { order: 1; flex: 1 1 0; min-width: 0; font: 500 16px/1.3 var(--lv-sans); color: var(--lv-ink); }
  html.leve .lv-tab-gastos td:nth-child(5) { order: 2; margin-left: auto; font: 600 16px/1.3 var(--lv-round); color: var(--lv-ink); white-space: nowrap; text-align: right; }
  html.leve .lv-tab-gastos tr::after { content: ""; order: 3; flex-basis: 100%; height: 0; }
  html.leve .lv-tab-gastos td:nth-child(1) { order: 4; }
  html.leve .lv-tab-gastos td:nth-child(3) { order: 5; }
  html.leve .lv-tab-gastos td:nth-child(4) { order: 6; }
  html.leve .lv-tab-gastos td:nth-child(3)::before, html.leve .lv-tab-gastos td:nth-child(4)::before { content: "· "; }
}
/* demais tabelas do relatório (cartões, renda e contas fixas): viram lista em qualquer tela */
html.leve .lv-tab-generica thead, html.leve .lv-tab-generica tr:first-child:has(th) { display: none; }
html.leve .lv-tab-generica, html.leve .lv-tab-generica tbody { display: block; width: 100%; }
html.leve .lv-tab-generica tr { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); column-gap: 12px; row-gap: 2px; padding: 10px 0; border-bottom: .5px solid var(--lv-sep); }
html.leve .lv-tab-generica tr:last-child { border-bottom: 0; }
html.leve .lv-tab-generica td { border: 0 !important; padding: 0 !important; min-width: 0; }
html.leve .lv-tab-generica td:first-child { grid-column: 1 / -1; font: 500 16px/1.3 var(--lv-sans) !important; color: var(--lv-ink) !important; overflow-wrap: anywhere; }
html.leve .lv-tab-generica td:not(:first-child)::before { content: attr(data-col) " "; color: var(--lv-ink3); font-family: var(--lv-sans); font-weight: 400; }
html.leve .lv-tab-generica td:not(:first-child) { color: var(--lv-ink) !important; font: 500 14px/1.35 var(--lv-round) !important; }

/* edição de um lançamento dentro da lista */
html.leve .edit { background: var(--lv-bg) !important; border: 0 !important; box-shadow: none !important; border-radius: 16px !important; padding: 14px !important; margin: 4px 0 10px !important; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
html.leve .edit .full { grid-column: 1 / -1; }
html.leve .edit label { font: 500 12.5px/1.3 var(--lv-sans); color: var(--lv-ink2); display: grid; gap: 4px; }
html.leve .edit :is(input:not([type="checkbox"]), select) { background: var(--lv-card) !important; border: 0 !important; border-radius: 10px !important; min-height: 42px; font-size: 15.5px !important; color: var(--lv-ink) !important; padding: 0 12px; }
html.leve .edit .chk { display: flex; align-items: center; gap: 8px; color: var(--lv-ink); font-size: 14px; }
html.leve .edit .acts { grid-column: 1 / -1; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
html.leve .edit .acts .btn.solid { background: var(--lv-acc) !important; color: var(--lv-acc-ink) !important; border-radius: 12px !important; padding: 10px 18px !important; }
html.leve .edit .acts .danger { color: var(--lv-neg) !important; margin-left: auto; }

/* avisos */
html.leve .alert-list { display: grid; gap: 0; }
html.leve .alert { display: grid !important; grid-template-columns: auto 1fr; gap: 2px 12px; padding: 12px 0 !important; background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
html.leve .alert-row { display: flex; align-items: flex-start; gap: 4px; }
html.leve .alert-row + .alert-row { border-top: .5px solid var(--lv-sep); }
html.leve .alert-row .alert { flex: 1; min-width: 0; align-items: start; text-align: left; color: var(--lv-ink) !important; }
/* quem avisa: o retrato redondo, só preenchimento */
html.leve .alert-av { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; flex: none; background: var(--lv-fill2); display: grid; place-items: center; }
html.leve .alert-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
html.leve .alert-tx { display: grid; gap: 2px; min-width: 0; font: 400 15px/1.4 var(--lv-sans); overflow-wrap: anywhere; }
html.leve .alert-tx b { font: 600 13px/1.3 var(--lv-sans); color: var(--lv-ink2); }
html.leve .alert-tx b i { font-style: normal; color: var(--lv-neg); margin-left: 6px; }
html.leve .alert-dot { width: 10px !important; height: 10px !important; border-radius: 50% !important; margin: 0 !important; background: var(--lv-gasto) !important; }
html.leve .alert.hi .alert-dot { background: var(--lv-neg) !important; }
/* dispensar: alvo de toque de 44px, bolinha cinza preenchida */
html.leve .alert-x { flex: none; width: 44px; height: 44px; margin: 9px -8px 0 0; padding: 0; border: 0 !important; background: none !important; box-shadow: none !important; color: var(--lv-ink2); font: 400 18px/1 var(--lv-sans); display: grid; place-items: center; cursor: pointer; }
html.leve .alert-x::before { content: ""; position: absolute; width: 28px; height: 28px; border-radius: 50%; background: var(--lv-fill2); z-index: -1; }
html.leve .alert-x { position: relative; z-index: 0; }
html.leve .alert-x:active::before { background: var(--lv-fill); }

/* conversa com os assistentes */
html.leve .chat-msgs .msg { border-radius: 18px !important; padding: 10px 14px !important; font-size: 15.5px; line-height: 1.45; max-width: 86%; box-shadow: none !important; border: 0 !important; }
html.leve .chat-msgs .msg.eu { background: var(--lv-acc) !important; color: var(--lv-acc-ink) !important; align-self: flex-end; border-bottom-right-radius: 6px !important; }
html.leve .chat-msgs .msg.ia { background: var(--lv-fill) !important; color: var(--lv-ink) !important; align-self: flex-start; border-bottom-left-radius: 6px !important; }
html.leve .chat-msgs .msg.erro { background: color-mix(in srgb, var(--lv-neg) 12%, var(--lv-card)) !important; color: var(--lv-neg) !important; }
html.leve .chat-sugest button { background: var(--lv-fill) !important; border: 0 !important; color: var(--lv-ink) !important; border-radius: 99px !important; font: 500 14px/1.2 var(--lv-sans) !important; box-shadow: none !important; }
html.leve .chat-form input { background: var(--lv-fill) !important; border: 0 !important; border-radius: 99px !important; min-height: 44px; padding: 0 16px !important; }
/* ajuste proposto pelo assistente: antes e depois, Confirmar e Cancelar (só preenchimento) */
html.leve .chat-msgs .ajuste { background: var(--lv-fill); color: var(--lv-ink); border-radius: 18px; border-bottom-left-radius: 6px; font-size: 15.5px; max-width: 86%; }
html.leve .chat-msgs .ajuste :is(.aj-sub, .aj-est) { color: var(--lv-ink2); }
html.leve .chat-msgs .ajuste .aj-bts .btn { min-height: 44px; border-radius: 12px !important; padding: 8px 14px !important; }
html.leve .chat-msgs .ajuste .aj-bts .btn.solid { background: var(--lv-acc) !important; color: var(--lv-acc-ink) !important; }
html.leve .chat-msgs .ajuste .aj-bts .btn:not(.solid) { background: var(--lv-fill2) !important; color: var(--lv-ink) !important; }
html.leve .chat-msgs .ajuste .aj-col .btn { text-align: left !important; font-weight: 500 !important; line-height: 1.3 !important; }
html.leve .chat-msgs .ajuste .aj-col .btn[data-aj-nao] { text-align: center !important; color: var(--lv-ink2) !important; }

/* empresa: painel, saúde do caixa, fluxo, imposto, ferramentas, equipe, vendas */
html.leve :is(#painelBox, #saudeBox, #fluxoBox, #impostoBox, #ferrBox, #equipeList, #cobList, #cliList, #pixBox) > * { box-shadow: none !important; }
html.leve :is(#painelBox, #saudeBox, #impostoBox) :is(.kpi, .pn, .card, .box, [class*="tile"]) { background: var(--lv-bg) !important; border: 0 !important; border-radius: 14px !important; color: var(--lv-ink) !important; }
html.leve .fluxo-tabs { background: var(--lv-fill) !important; border-radius: 10px !important; padding: 2px !important; border: 0 !important; }
html.leve .fluxo-tabs button { background: none !important; border: 0 !important; border-radius: 8px !important; color: var(--lv-ink) !important; font: 500 13px/1 var(--lv-sans) !important; }
html.leve .fluxo-tabs button[aria-pressed="true"] { background: var(--lv-card2) !important; font-weight: 600 !important; box-shadow: 0 3px 8px rgba(0, 0, 0, .12) !important; }
html.leve .ferr > * { background: var(--lv-bg) !important; border: 0 !important; border-radius: 14px !important; box-shadow: none !important; color: var(--lv-ink) !important; }
html.leve #v-vendas .capa-tit .ven-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
html.leve #v-vendas .ven-acts :is(.rel-exp, .btn-capa) { background: var(--lv-card) !important; color: var(--lv-acc) !important; border: 0 !important; border-radius: 99px !important; padding: 9px 14px !important; font: 600 14px/1 var(--lv-sans) !important; min-height: 0; box-shadow: none !important; }
html.leve #v-vendas .ven-acts .rel-exp { background: var(--lv-acc) !important; color: var(--lv-acc-ink) !important; }
html.leve .r-kpis.res-kpis, html.leve #venKpis { gap: 10px !important; }

/* viagens */
html.leve .vg-lista > * { background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; padding: 12px 0 !important; }
html.leve .vg-lista > * + * { border-top: .5px solid var(--lv-sep) !important; }
html.leve .viagem-card:not([hidden]) { background: var(--lv-card) !important; border-radius: var(--lv-r) !important; margin: 0 16px 16px !important; padding: 16px !important; }

/* telas que sobem de baixo: cabeçalho e ações no padrão do app */
html.leve .sheet-card .sheet-head { padding-bottom: 6px; }
/* título e X da janela ficam presos no topo enquanto o conteúdo rola */
html.leve .sheet-card > .sheet-head:first-child { position: sticky; top: calc(-1 * var(--sh-pt, 24px)); z-index: 3; background: var(--lv-card); margin: calc(-1 * var(--sh-pt, 24px)) calc(-1 * var(--sh-px, 18px)) 0; padding: var(--sh-pt, 24px) var(--sh-px, 18px) 8px; border-radius: inherit; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
@media (min-width: 521px) { html.leve .sheet-card { --sh-pt: 18px; } } /* no computador a janela tem 18px de folga em cima */
html.leve .per-livre .btn { background: var(--lv-ink) !important; color: var(--lv-bg) !important; border-radius: 999px !important; min-height: 44px; padding: 0 22px !important; font-weight: 700; text-decoration: none !important; }
html.leve .sheet-card .note { color: var(--lv-ink2); }
html.leve .sheet-card .err, html.leve .err { color: var(--lv-neg) !important; background: none !important; }
html.leve .sheet-card :is(.btn.danger, .danger) { color: var(--lv-neg) !important; }
/* excluir nunca parece o botão principal: fundo neutro e texto vermelho, nos dois temas */
html.leve .btn.danger, html.leve .sheet-card .btn.danger.big { background: var(--lv-fill) !important; color: var(--lv-neg) !important; border: 0 !important; box-shadow: none !important; }
html.leve .pill { border-radius: 99px !important; font: 600 12px/1 var(--lv-sans) !important; padding: 4px 8px !important; background: var(--lv-acc-soft) !important; color: var(--lv-acc) !important; border: 0 !important; }
html.leve .pill.atr { background: color-mix(in srgb, var(--lv-neg) 14%, var(--lv-card)) !important; color: var(--lv-neg) !important; }
html.leve :is(#fixasHome, #cpList, .panel) details:not(.lv-mais):not(.lv-como) > summary { list-style: none; cursor: pointer; color: var(--lv-ink2); font: 500 14px/1.3 var(--lv-sans); padding: 10px 0; display: flex; align-items: center; gap: 6px; }
html.leve :is(#fixasHome, #cpList, .panel) details:not(.lv-mais):not(.lv-como) > summary::-webkit-details-marker { display: none; }
html.leve :is(#fixasHome, #cpList, .panel) details:not(.lv-mais):not(.lv-como) > summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .2s var(--lv-ease); margin-right: 2px; }
html.leve :is(#fixasHome, #cpList, .panel) details[open]:not(.lv-mais):not(.lv-como) > summary::before { transform: rotate(45deg); }
html.leve .panel .edit :is(input:not([type="checkbox"]):not([type="radio"]), select) { background: var(--lv-card) !important; }
html.leve .r-kpis > * > :first-child { color: var(--lv-ink2) !important; opacity: 1 !important; }

/* pílula que desliza até a aba ativa */
html.leve .views { position: relative; isolation: isolate; }
html.leve:root .views::before {
  display: block !important; content: "" !important; position: absolute; z-index: -1; left: 0; top: 0; pointer-events: none;
  width: var(--lw, 0); height: var(--lh, 0); transform: translate(var(--lx, 0), var(--ly, 0));
  border-radius: 27px; background: var(--lv-fill) !important; box-shadow: none !important; opacity: 1;
  transition: transform .42s cubic-bezier(.32, .72, 0, 1), width .42s cubic-bezier(.32, .72, 0, 1), height .42s cubic-bezier(.32, .72, 0, 1);
}
html.leve:root .views.lv-sem-mola::before { transition: none; }
html.leve:root .views button[aria-selected="true"], html.leve:root .views button { background: none !important; }
@media (min-width: 1000px) { html.leve:root .views::before { border-radius: 10px; background: var(--lv-acc-soft) !important; } }
@media (prefers-reduced-motion: reduce) { html.leve:root .views::before { transition: none; } }

/* lançar no computador: a janela surge com um leve movimento */
@media (min-width: 1000px) and (prefers-reduced-motion: no-preference) {
  html.leve body.lancando .dock { animation: lvEscurece .22s ease-out; }
  html.leve body.lancando :is(.lanc-topo, .sugest, .dock .composer) { animation: lvSurge .32s cubic-bezier(.23, 1, .32, 1); }
}
@keyframes lvEscurece { from { background: rgba(0, 0, 0, 0); } }
@keyframes lvSurge { from { opacity: 0; transform: translateY(14px) scale(.98); } }

/* botão da conta aceso enquanto os Ajustes estão abertos (tocar de novo volta) */
html.leve .top .acct-btn.lv-ativo { background: var(--lv-acc) !important; color: var(--lv-acc-ink) !important; }
html.leve .top .acct-btn.lv-ativo .avatar { background: var(--lv-acc-ink) !important; color: var(--lv-acc) !important; }

/* ---------- Dados grandes: nada corta nem se sobrepõe ---------- */
/* números do topo do Início: lado a lado quando cabem; quando não cabem, quebram de linha */
html.leve #v-inicio .capa > .summary { display: flex !important; flex-wrap: wrap; column-gap: 18px; row-gap: 10px; }
html.leve #v-inicio .summary .stat.hero { flex: 1 0 100%; }
html.leve #v-inicio .summary .stat:not(.hero) { flex: 1 1 auto; min-width: max-content; }
html.leve #v-inicio .summary .stat:not(.hero) .v { white-space: nowrap; }
/* número grande do topo encolhe um pouco quando é enorme */
html.leve :is(#sBal, #patTotal, #iTotal) { font-size: clamp(30px, 11vw, 46px) !important; overflow-wrap: anywhere; }

/* patrimônio: Em contas, Investido e Faturas viram linhas (rótulo à esquerda, valor à direita) */
html.leve .pat-parts { display: grid !important; grid-template-columns: 1fr; gap: 0 !important; margin-top: 12px !important; }
html.leve .pat-parts > span { display: flex !important; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0 !important; border: 0 !important; border-top: .5px solid var(--lv-sep) !important; font-size: 14px; color: var(--lv-ink2) !important; white-space: normal !important; overflow: visible !important; text-overflow: clip !important; min-width: 0; }
html.leve .pat-parts > span b { font: 600 15.5px/1.3 var(--lv-round); color: var(--lv-ink) !important; white-space: nowrap; overflow: visible !important; text-overflow: clip !important; }
@media (min-width: 1000px) {
  html.leve .pat-parts { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 20px !important; }
  html.leve .pat-parts > span { flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 2px; }
}

/* totais dos cartões e das contas: no celular, uma linha por total */
@media (max-width: 999px) {
  html.leve .panel > .summary.three { display: grid !important; grid-template-columns: 1fr !important; gap: 0 !important; }
  html.leve .panel > .summary.three .stat { display: flex !important; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0 !important; }
  html.leve .panel > .summary.three .stat .v { white-space: nowrap; font-size: 15.5px !important; }
}

/* faturas do cartão: sem caixa cinza, duas colunas simples */
html.leve .cw-painel .fat { grid-column: 1 / -1; display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px !important; margin: 10px 0 2px !important; background: none !important; border: 0 !important; padding: 0 !important; }
html.leve .cw-painel .fat > div, html.leve .cw-painel .fat > .fat-b { background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; padding: 0 !important; display: grid; gap: 2px; min-width: 0; align-content: start; }
html.leve .cw-painel .fat > .fat-b { min-height: 44px; }
html.leve .cw-painel .fat > .fat-b:active { opacity: .6; }
html.leve .cw-painel .fat .fat-corr { font: 600 12.5px/1.3 var(--lv-sans); color: var(--lv-acc); }
html.leve .cw-painel .fat span { font-size: 12.5px; color: var(--lv-ink2); }
html.leve .cw-painel .fat b { font: 600 15.5px/1.3 var(--lv-round); color: var(--lv-ink); white-space: nowrap; }
html.leve .cw-painel .fat small { font-size: 12.5px; color: var(--lv-ink2); }
html.leve .cw-painel .fat small.vence { color: var(--lv-gasto); font-weight: 600; }
html.leve .cw-painel .fat small.paga { color: var(--lv-acc); font-weight: 600; }
html.leve .wtile .pl-bank { overflow-wrap: anywhere; }
html.leve .wtile .pl-val { white-space: nowrap; }

/* barra de lançar: frase sempre em uma linha */
html.leve .lv-campo-tx > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
html.leve .lv-campo-tx { font-size: 16.5px; }
@media (max-width: 999px) {
  html.leve .pat-parts > span, html.leve .panel > .summary.three .stat { flex-direction: row !important; flex-wrap: wrap; }
  html.leve .panel > .summary.three .stat .v { margin-left: auto; }
}

/* sem conta: o botão vira uma pílula "Entrar" na cor do modo, para entrar ou criar conta pelo topo */
html.leve .top .acct-btn:not(.in) {
  width: auto !important; min-width: 0 !important; aspect-ratio: auto !important; padding: 0 14px 0 10px !important; gap: 6px; border-radius: 99px !important;
  height: 36px !important; min-height: 36px !important; max-height: 36px !important; /* mesma altura da chave Pessoal | Empresa | Viagem */
  display: inline-flex !important; align-items: center; background: var(--lv-acc) !important; color: var(--lv-acc-ink) !important; box-shadow: none !important;
}
html.leve .top .acct-btn:not(.in) svg { width: 18px; height: 18px; }
html.leve .top .acct-btn .acct-txt { font: 600 12.5px/1 var(--lv-sans); letter-spacing: -.01em; white-space: nowrap; } /* mesma letra da chave */
@media (max-width: 999px) { html.leve .top .acct-btn:not(.in) { padding: 0 14px !important; } html.leve .top .acct-btn:not(.in) svg { display: none; } } /* celular: só a palavra, para caber com a chave de modo */
html.leve .sheet .sem-conta { display: block; margin: 14px auto 2px; font-size: 14px; color: var(--lv-ink2) !important; }

/* botão da conta conectada (antes um círculo com a inicial; agora a engrenagem, mais abaixo) */
html.leve .top .acct-btn.in { position: relative; padding: 0 !important; background: var(--lv-card) !important; color: var(--lv-ink) !important; overflow: visible; }
/* conectado: uma engrenagem num círculo igual ao do sino; com os Ajustes abertos, o círculo fica na cor do modo */
html.leve .top .acct-btn.in .engr { width: 19px; height: 19px; }
html.leve .top .acct-btn.in .avatar {
  width: 100% !important; height: 100% !important; min-width: 0 !important; padding: 0 !important; margin: 0 !important; border-radius: 50% !important;
  display: grid !important; place-items: center; background: none !important; color: var(--lv-acc-ink) !important; box-shadow: none !important;
  font: 650 16px/1 var(--lv-round) !important; letter-spacing: 0 !important;
}
/* o pontinho só aparece quando há algo a avisar: salvando (laranja) ou sem conexão (vermelho) */
html.leve .top .acct-btn .dot { position: absolute !important; right: -2px !important; bottom: -2px !important; width: 12px !important; height: 12px !important; border-radius: 50% !important; border: 0 !important; box-shadow: none !important; }
html.leve .top .acct-btn .dot.ok, html.leve .top .acct-btn .dot.local { display: none !important; }
html.leve .top .acct-btn .dot.salvando { background: var(--lv-gasto) !important; }
html.leve .top .acct-btn .dot.offline { background: var(--lv-neg) !important; }
/* aceso enquanto os Ajustes estão abertos: anel na cor do modo */
html.leve .top .acct-btn.in.lv-ativo { box-shadow: none !important; background: var(--lv-acc) !important; color: var(--lv-acc-ink) !important; }
html.leve .top .acct-btn.in.lv-ativo .avatar { background: none !important; color: var(--lv-acc-ink) !important; }
/* número de avisos no sino: menor e mais limpo */
html.leve .top .badge { min-width: 20px !important; height: 20px !important; padding: 0 5px !important; border-radius: 10px !important; font: 750 12.5px/1 var(--lv-round) !important; font-variant-numeric: tabular-nums; box-sizing: border-box !important; border: 0 !important; top: -5px !important; right: -5px !important; display: grid; place-items: center; }
/* número do sino: vermelho mais fechado (branco sobre ele passa de 5:1; o coral do escuro dava 2,6:1), só preenchimento, sem anel */
html.leve .top .badge { background: #D92D20 !important; color: #FFFFFF !important; box-shadow: none !important; }

/* campo de data: o texto visível é do app (no idioma do app, centralizado); o campo nativo fica por cima, invisível, só para abrir o seletor */
html.leve .data-box { position: relative; display: block; width: 100%; min-width: 0; }
html.leve input[type="date"] {
  -webkit-appearance: none; appearance: none; display: block; box-sizing: border-box;
  width: 100% !important; max-width: 100%; min-width: 0 !important; text-align: left; cursor: pointer;
  color: transparent !important; -webkit-text-fill-color: transparent; caret-color: transparent;
}
html.leve input[type="date"]::-webkit-date-and-time-value { text-align: left; margin: 0; min-height: 1.3em; }
html.leve input[type="date"]::-webkit-datetime-edit { color: transparent; }
html.leve input[type="date"]::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: auto; height: auto; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
html.leve .data-txt {
  position: absolute; left: 12px; right: 44px; top: 50%; transform: translateY(-50%); pointer-events: none;
  color: var(--lv-ink); font-weight: 450; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}
html.leve .data-txt.vazio { color: var(--lv-ink3, var(--lv-ink)); opacity: .6; }
html.leve .data-box .data-ico { position: absolute; right: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); pointer-events: none; color: var(--lv-ink); opacity: .5; }
html.leve .data-box:focus-within .data-ico { color: var(--lv-acc); opacity: 1; }

/* caixas de marcar: quadrado preenchido de cinza, sem borda (regra do Luis: formas só com preenchimento); marcada, fica na cor do modo com o visto */
html.leve input[type="checkbox"] {
  -webkit-appearance: none; appearance: none; flex: none; margin: 0; box-sizing: border-box;
  width: 22px !important; height: 22px !important; min-width: 22px; min-height: 22px; border-radius: 7px;
  border: 0; background: var(--lv-fill2); display: inline-grid; place-items: center; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
html.leve input[type="checkbox"]::after {
  content: ""; width: 5px; height: 10px; border: solid var(--lv-acc-ink); border-width: 0 2.5px 2.5px 0;
  transform: translateY(-1px) rotate(45deg) scale(0); transition: transform .18s var(--lv-ease);
}
html.leve input[type="checkbox"]:checked { background: var(--lv-acc); }
html.leve input[type="checkbox"]:checked::after { transform: translateY(-1px) rotate(45deg) scale(1); }
html.leve input[type="checkbox"]:focus-visible { outline: 2px solid var(--lv-acc); outline-offset: 2px; }
html.leve .chk { display: flex !important; align-items: center !important; gap: 10px !important; line-height: 1.35; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { html.leve input[type="checkbox"]::after { transition: none; } }

/* Início: os 5 lançamentos mais recentes à mostra; os seguintes ficam por baixo de um desfoque que aumenta aos poucos,
   com a pílula "Ver todos" por cima. Tocar mostra a lista inteira */
html.leve .lanc-corte { position: relative; height: 162px; overflow: hidden; margin: 0 -16px -6px; padding: 0 16px; border-radius: 0 0 var(--lv-r) var(--lv-r); isolation: isolate; } /* vai até a borda de baixo do cartão, com os mesmos cantos redondos */
html.leve .lanc-peek { pointer-events: none; user-select: none; -webkit-user-select: none; }
/* três camadas de desfoque, cada uma começando mais abaixo: a passagem do nítido para o borrado fica suave */
html.leve .lanc-corte::before, html.leve .lanc-peek::before, html.leve .lanc-peek::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
}
html.leve .lanc-corte::before {
  -webkit-backdrop-filter: blur(1.5px); backdrop-filter: blur(1.5px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 30%); mask-image: linear-gradient(to bottom, transparent 0%, #000 30%);
}
html.leve .lanc-peek::before {
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 15%, #000 55%); mask-image: linear-gradient(to bottom, transparent 15%, #000 55%);
}
html.leve .lanc-peek::after {
  -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 40%, #000 85%); mask-image: linear-gradient(to bottom, transparent 40%, #000 85%);
  background: linear-gradient(to bottom, transparent 20%, color-mix(in srgb, var(--lv-card) 75%, transparent) 70%, var(--lv-card) 100%);
}
html.leve .lanc-ver {
  position: absolute; z-index: 2; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px 0 18px; border: 0; border-radius: 99px; cursor: pointer;
  background: var(--lv-acc); color: var(--lv-acc-ink); font: 600 14.5px/1 var(--lv-sans); letter-spacing: -.01em; white-space: nowrap;
  box-shadow: none;
  transition: transform .12s ease-out; -webkit-tap-highlight-color: transparent;
}
html.leve .lanc-ver .num {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; display: inline-grid; place-items: center; box-sizing: border-box;
  background: color-mix(in srgb, var(--lv-acc-ink) 16%, transparent); font: 650 12px/1 var(--lv-round); font-variant-numeric: tabular-nums;
}
html.leve .lanc-ver svg { width: 16px; height: 16px; }
html.leve .lanc-ver:active { transform: translateX(-50%) scale(.96); }
html.leve .lanc-ver:focus-visible { outline: 2px solid var(--lv-ink); outline-offset: 3px; }
html.leve .lanc-menos {
  display: block; margin: 8px auto 6px; padding: 10px 16px; min-height: 44px; border: 0; border-radius: 99px; cursor: pointer;
  background: var(--lv-fill); color: var(--lv-ink2); font: 600 13.5px/1 var(--lv-sans);
}
/* ao tocar em "Ver todos", as linhas que estavam escondidas entram uma depois da outra */
html.leve .row.lv-entra { animation: lvEntraLinha .42s var(--lv-ease) both; animation-delay: calc(var(--k, 1) * 28ms); }
@keyframes lvEntraLinha { from { opacity: 0; transform: translateY(8px); filter: blur(3px); } }
@media (prefers-reduced-motion: reduce) { html.leve .row.lv-entra { animation: lvEntraFade .2s ease both; } @keyframes lvEntraFade { from { opacity: 0; } } }
@media (prefers-reduced-transparency: reduce) {
  html.leve .lanc-corte::before, html.leve .lanc-peek::before { display: none; }
  html.leve .lanc-peek::after { -webkit-backdrop-filter: none; backdrop-filter: none; -webkit-mask-image: none; mask-image: none; background: linear-gradient(to bottom, color-mix(in srgb, var(--lv-card) 40%, transparent), var(--lv-card) 75%); }
}

/* Carteira em carrossel: um cartão grande por vez (o vizinho espia); o item do meio mostra o detalhe embaixo */
html.leve .cw-trilho {
  position: relative; display: flex; gap: 6px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
  padding: 14px 7% 22px; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
}
html.leve .cw-trilho::-webkit-scrollbar { display: none; }
html.leve .cw-cartao {
  position: relative; flex: 0 0 100%; aspect-ratio: 1.586; height: auto; container-type: inline-size; border-radius: 22px; overflow: hidden; isolation: isolate;
  display: block; margin: 0; padding: 0; border: 0; font: inherit; text-align: left; color: var(--ft, #FFFFFF);
  scroll-snap-align: center; background: linear-gradient(135deg, var(--bank), color-mix(in srgb, var(--bank) 70%, #000000));
  box-shadow: 0 28px 44px -26px rgba(0, 0, 0, .7), 0 8px 16px -10px rgba(0, 0, 0, .35);
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; will-change: transform;
}
html.leve .cw-cartao::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 55%);
}
html.leve .cw-cartao.over { background: linear-gradient(180deg, #FF6B5E 0%, #D92D20 60%, #B42318 100%); }
/* conta: textura de linhas diagonais na cor do texto, em vez do líquido */
html.leve .cw-cartao.conta { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--ft) 12%, transparent) 0 2px, transparent 2px 14px), linear-gradient(135deg, var(--bank), color-mix(in srgb, var(--bank) 70%, #000000)); }
/* nível de líquido: a parte usada do limite, com a onda andando */
html.leve .cw-liquido { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; background: rgba(0, 0, 0, .34); transition: height 1.1s cubic-bezier(.22, .8, .24, 1); }
html.leve .cw-onda { position: absolute; left: 0; top: -12px; width: 200%; height: 12px; display: block; animation: cwOnda 3.6s linear infinite; }
html.leve .cw-onda path { fill: rgba(0, 0, 0, .34); }
@keyframes cwOnda { to { transform: translate3d(-50%, 0, 0); } }
html.leve .cw-brilho {
  position: absolute; top: -40%; bottom: -40%; left: -80%; width: 260%; z-index: 3; pointer-events: none;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, .26) 50%, rgba(255, 255, 255, 0) 62%);
  transform: translate3d(var(--gx, 0px), 0, 0);
}
/* chip dourado: faixa do meio do cartão, escala com a largura (cqi = largura do cartão) */
html.leve .cw-chip { position: relative; z-index: 2; justify-self: start; align-self: center; width: clamp(30px, 13cqi, 44px); aspect-ratio: 44 / 34; height: auto; border-radius: 9px; background: linear-gradient(135deg, #FBEFC4 0%, #D8B25E 48%, #F4DC96 100%); box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
html.leve .cw-chip::after { content: ""; position: absolute; left: 25%; top: 24%; right: 25%; bottom: 24%; border-radius: 3px; background: rgba(120, 80, 10, .3); }
/* 3 faixas: topo (nome + selo), meio (chip), base (rótulo + valor). Nada se sobrepõe. */
html.leve .cw-conteudo { position: absolute; inset: 0; z-index: 4; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; row-gap: 0; padding: clamp(14px, 5cqi, 20px) clamp(16px, 5.4cqi, 22px) clamp(14px, 5cqi, 20px); pointer-events: none; text-shadow: 0 1px 2px rgba(0, 0, 0, .18); }
html.leve .cw-topo { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
html.leve .cw-banco { flex: 1 1 auto; font: 650 16px/1.2 var(--lv-sans); letter-spacing: -.01em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.leve .cw-selo { flex: none; font: 600 11.5px/1 var(--lv-sans); padding: 6px 10px; border-radius: 99px; background: color-mix(in srgb, var(--ft) 18%, transparent); text-shadow: none; }
html.leve .cw-base { align-self: end; display: flex; flex-direction: column; gap: 3px; min-width: 0; max-width: 100%; }
html.leve .cw-rotulo { font: 500 12.5px/1.25 var(--lv-sans); opacity: .85; }
/* valor: cabe numa linha em qualquer largura; a fonte encolhe, o número nunca é cortado */
html.leve .cw-valor { font-family: var(--lv-round); font-weight: 650; font-size: clamp(14px, 8.2cqi, 28px); line-height: 1.1; letter-spacing: -.02em; white-space: nowrap; min-width: 0; max-width: 100%; }
html.leve .cw-cartao.over .cw-valor { font-size: clamp(13px, 6.6cqi, 24px); }
html.leve .cw-valor.neg span { display: inline-block; max-width: 100%; padding: 1px 8px; border-radius: 10px; line-height: 1.25; background: rgba(110, 0, 0, .42); color: #FFB4B4; }
/* cartão claro (texto escuro, ex.: amarelo do BB): pílula vermelha clara com texto escuro, contraste legível */
html.leve .cw-cartao.claro .cw-valor.neg span { background: rgba(180, 35, 24, .16); color: #7A1206; }
html.leve .cw-cartao.claro { text-shadow: none; }
/* "+ Adicionar" do fim do carrossel: preenchimento cinza, sem borda */
html.leve .cw-fantasma { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: var(--lv-fill); color: var(--lv-ink2); box-shadow: none; font: 600 15px/1.2 var(--lv-sans); cursor: pointer; -webkit-tap-highlight-color: transparent; }
html.leve .cw-fantasma::before { display: none; }
html.leve .cw-fantasma .mais { font: 300 44px/1 var(--lv-sans); color: var(--lv-ink); }
html.leve .cw-fantasma:disabled { opacity: .45; cursor: default; }
/* segurar um cartão e arrastar: levantado = sombra mais funda (a escala vem do JS); o trilho não encaixa enquanto o dedo mexe */
html.leve .cw-cartao.cw-levanta { z-index: 3; box-shadow: 0 40px 56px -22px rgba(0, 0, 0, .78), 0 14px 26px -12px rgba(0, 0, 0, .5); }
html.leve .cw-trilho.cw-arrastando { scroll-snap-type: none; }
html.leve .cw-dica { margin: -8px 0 6px; text-align: center; font: 500 12.5px/1.3 var(--lv-sans); color: var(--lv-ink2); }
/* pontinhos de página: o ativo é a pílula verde */
html.leve .cw-pontos { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 2px; }
html.leve .cw-pontos i { display: block; width: 6px; height: 6px; border-radius: 3px; background: var(--lv-fill2); transition: width .3s var(--lv-ease), background-color .3s ease; }
html.leve .cw-pontos i.on { width: 18px; background: var(--lv-acc); }
/* detalhe do item ativo: superfície, botões preenchidos lado a lado */
html.leve .cw-painel { margin-top: 12px; padding: 18px; border-radius: 24px; background: var(--lv-card); box-shadow: var(--lv-shadow); transition: opacity .15s ease, transform .15s ease; }
html.leve .cw-painel.saindo { opacity: 0; transform: translate3d(0, 6px, 0); }
html.leve .cw-painel .wt-foot { display: flex; justify-content: space-between; gap: 4px 8px; flex-wrap: wrap; font: 400 12.5px/1.3 var(--lv-sans); color: var(--lv-ink2); }
html.leve .cw-painel .wt-state { font-weight: 600; }
html.leve .cw-painel.warn .wt-state { color: var(--lv-gasto); }
html.leve .cw-painel.over .wt-state { color: var(--lv-neg); }
html.leve .cw-painel .wt-since { font: 400 12.5px/1.3 var(--lv-sans); color: var(--lv-ink2); margin-top: 6px; }
html.leve .cw-painel .wt-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
html.leve .cw-painel .wt-acts .btn { height: 52px; min-height: 52px; padding: 0 !important; border: 0; border-radius: 16px; background: var(--lv-fill) !important; color: var(--lv-ink) !important; font: 600 15px/1 var(--lv-sans) !important; box-shadow: none; width: auto; }
html.leve .cw-painel .wt-acts .btn.cw-principal { background: var(--lv-acc) !important; color: var(--lv-acc-ink) !important; }
html.leve .cw-painel .wt-acts .btn:disabled { opacity: .45; }
html.leve .cw-painel .wt-acts .btn:active { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) {
  html.leve .cw-onda { animation: none; }
  html.leve .cw-liquido, html.leve .cw-painel, html.leve .cw-pontos i { transition: none; }
}

/* Bolha de resposta ao lançar: o cartão ou a conta que o lançamento mexeu. Celular: centralizada acima da barra de lançar;
   computador: canto inferior direito. Só preenchimento (sem borda nem contorno); só a própria bolha recebe toque. */
html.leve .rl-bolha { position: fixed; z-index: 80; left: 50%; translate: -50% 0; bottom: var(--rl-acima, var(--rl-base, 96px)); width: max-content; max-width: calc(100vw - 32px); pointer-events: none; }
@media (min-width: 1000px) { html.leve .rl-bolha { left: auto; right: 24px; translate: none; bottom: var(--rl-acima, 24px); } }
html.leve .rl-bolha.entra { animation: rlEntra .42s cubic-bezier(.2, .9, .25, 1.25) both; }
html.leve .rl-bolha.sai { animation: rlSai .34s cubic-bezier(.5, 0, .8, .4) both; }
@keyframes rlEntra { 0% { opacity: 0; transform: translate3d(0, 22px, 0) scale(.94); } 55% { opacity: 1; transform: translate3d(0, -5px, 0) scale(1.01); } to { opacity: 1; transform: none; } }
@keyframes rlSai { from { opacity: 1; transform: none; } to { opacity: 0; transform: translate3d(var(--rl-dx, 0px), var(--rl-dy, 60px), 0) scale(.18); } }
html.leve .rl-toque { pointer-events: auto; display: flex; align-items: center; gap: 12px; max-width: 100%; min-width: 0; padding: 10px 16px 10px 10px; margin: 0; border: 0; border-radius: 22px; outline: 0; background: var(--lv-card); box-shadow: var(--lv-shadow); color: var(--lv-ink); font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
html.leve .rl-toque:focus-visible { background: var(--lv-fill); }
html.leve .rl-bolha.sai .rl-toque { pointer-events: none; }
html.leve .rl-mini { flex: none; width: 150px; height: 95px; aspect-ratio: auto; border-radius: 14px; box-shadow: 0 8px 16px -10px rgba(0, 0, 0, .5); }
html.leve .rl-mini .cw-conteudo { padding: 10px 12px; }
html.leve .rl-mini .cw-banco { font-size: 12px; }
html.leve .rl-mini .cw-selo { font-size: 9.5px; padding: 4px 7px; }
html.leve .rl-mini .cw-chip { width: 26px; }
html.leve .rl-mini .rl-liq { transition: height .7s cubic-bezier(.22, .8, .24, 1); }
/* estourou o limite: o líquido fica vermelho (o cartão continua na cor do banco) */
html.leve .rl-mini.rl-over .rl-liq { background: color-mix(in srgb, var(--lv-neg) 82%, transparent); }
html.leve .rl-mini.rl-over .cw-onda path { fill: color-mix(in srgb, var(--lv-neg) 82%, transparent); }
html.leve .rl-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
html.leve .rl-rot { font: 600 13px/1.2 var(--lv-sans); color: var(--lv-ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
html.leve .rl-val { font: 700 22px/1.1 var(--lv-round); letter-spacing: -.02em; color: var(--lv-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
html.leve .rl-val.up { color: var(--lv-acc); }
html.leve .rl-bolha.over .rl-rot { color: var(--lv-neg); }
html.leve .rl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  html.leve .rl-bolha.entra { animation: rlFade .2s ease both; }
  html.leve .rl-bolha.sai { animation: rlFadeSai .2s ease both; }
  html.leve .rl-mini .rl-liq { transition: none; }
}
@keyframes rlFade { from { opacity: 0; } }
@keyframes rlFadeSai { to { opacity: 0; } }

/* abas Cartões | Contas (só no celular): controle segmentado preenchido, com a pílula que desliza sob a aba ativa */
html.leve #v-carteira .cw-abas { position: relative; display: flex; height: 44px; margin: 0 16px 14px; border-radius: 14px; background: var(--lv-fill); }
html.leve #v-carteira .cw-abas button { position: relative; z-index: 1; flex: 1 1 0; height: 44px; min-height: 44px; margin: 0; padding: 0; border: 0; outline: 0; border-radius: 14px; background: none; box-shadow: none; font: 600 15px/1 var(--lv-sans); color: var(--lv-ink2); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color .3s ease; }
html.leve #v-carteira .cw-abas button[aria-selected="true"] { color: var(--lv-ink); }
html.leve #v-carteira .cw-abas button:focus-visible { background: var(--lv-fill2); }
html.leve #v-carteira .cw-aba-pilula { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / 2); border-radius: 11px; background: var(--lv-card); box-shadow: 0 3px 10px -4px rgba(0, 0, 0, .25); transition: transform .35s var(--lv-ease); }
html.leve #v-carteira .cw-abas[data-aba="conta"] .cw-aba-pilula { transform: translate3d(100%, 0, 0); }
@media (min-width: 1000px) { html.leve #v-carteira .cw-abas { display: none !important; } }
/* o grupo escondido na aba (celular) some mesmo com display próprio (.summary, .panel) */
html.leve #v-carteira .folha > [data-cw-grupo][hidden] { display: none !important; }

/* dock de ordem (cartões e contas com 2 ou mais): minicartões na ordem atual; a barra é preenchida, sem contorno */
html.leve #v-carteira .cw-dock { margin-top: 12px; }
html.leve #v-carteira .cw-dock-titulo { margin: 0 0 8px; font: 500 13px/1.3 var(--lv-sans); color: var(--lv-ink2); text-align: center; }
html.leve #v-carteira .cw-dock-titulo b { font-weight: 600; color: var(--lv-acc); }
html.leve #v-carteira .cw-dock-barra { display: flex; align-items: center; justify-content: safe center; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; background: var(--lv-fill); border-radius: 22px; padding: 0 6px; }
html.leve #v-carteira .cw-dock-barra::-webkit-scrollbar { display: none; }
html.leve #v-carteira .cw-mini { position: relative; flex: 0 0 60px; width: 60px; height: 56px; min-height: 44px; margin: 0; padding: 0; border: 0; outline: 0; border-radius: 16px; background: none; box-shadow: none; font: inherit; color: inherit; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; transition: transform .3s var(--lv-ease); }
html.leve #v-carteira .cw-mini:focus-visible { background: var(--lv-fill2); }
html.leve #v-carteira .cw-mini.lift { z-index: 5; cursor: grabbing; transition: none; }
html.leve #v-carteira .cw-mini-c { position: absolute; left: 2px; top: 6px; width: 56px; height: 40px; border-radius: 10px; display: grid; place-items: center; font: 800 16px/1 var(--lv-round); color: var(--ft, #FFFFFF); background: linear-gradient(135deg, var(--bank), color-mix(in srgb, var(--bank) 70%, #000000)); box-shadow: 0 2px 6px -2px rgba(0, 0, 0, .3); transition: transform .28s var(--lv-ease), box-shadow .28s ease; }
html.leve #v-carteira .cw-mini.on .cw-mini-c { transform: scale(1.1); }
html.leve #v-carteira .cw-mini.lift .cw-mini-c { transform: scale(1.15); box-shadow: 0 16px 28px -8px rgba(0, 0, 0, .55); }
html.leve #v-carteira .cw-mini-pt { position: absolute; left: 50%; top: 48px; width: 6px; height: 6px; margin-left: -3px; border-radius: 3px; background: var(--lv-acc); opacity: 0; transform: scale(.3); transition: opacity .25s ease, transform .28s var(--lv-ease); }
html.leve #v-carteira .cw-mini.on .cw-mini-pt { opacity: 1; transform: scale(1); }
@media (prefers-reduced-motion: reduce) {
  html.leve #v-carteira .cw-abas button, html.leve #v-carteira .cw-aba-pilula, html.leve #v-carteira .cw-mini, html.leve #v-carteira .cw-mini-c, html.leve #v-carteira .cw-mini-pt { transition: none !important; }
}

/* gestos na lista: deslizar para editar ou apagar, segurar para repetir */
html.leve #list .day { position: relative; overflow-x: clip; }
html.leve #list .row { touch-action: pan-y; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
html.leve #list .row.lv-segurando { transform: scale(.95); transition: transform 420ms cubic-bezier(.2, .8, .2, 1) 110ms; }
html.leve .lv-acoes { position: absolute; right: 0; width: 148px; box-sizing: border-box; display: flex; gap: 6px; padding: 6px 0 6px 8px; visibility: hidden; }
html.leve .lv-ac { flex: 1; min-width: 0; border: 0 !important; border-radius: 12px; box-shadow: none !important; font: 600 14px/1 var(--lv-sans); cursor: pointer; }
html.leve .lv-ac.ed { background: var(--lv-fill2); color: var(--lv-ink); }
html.leve .lv-ac.ap { background: #D92D20; color: #FFFFFF; } /* vermelho fechado nos dois temas: branco em cima dá 4,9:1 */
html.leve .lv-ac:active { transform: scale(.96); transition: transform 100ms ease-out; }
html.leve .lv-dica-gesto { margin: 10px 0 0; font: 400 13px/1.4 var(--lv-sans); color: var(--lv-ink2); text-align: center; text-wrap: balance; }
@media (prefers-reduced-motion: reduce) { html.leve #list .row.lv-segurando { transform: none; transition: none; } }

/* entrar com Face ID / digital (passkey) */
/* botão grande secundário: cinza preenchido, para não disputar com o principal */
html.leve .btn.big.lv-sec { background: var(--lv-fill2) !important; color: var(--lv-ink) !important; }
html.leve .pk-btn { display: flex !important; align-items: center; justify-content: center; gap: 10px; width: 100%; }
html.leve .pk-btn svg { width: 22px; height: 22px; flex: none; }
html.leve .pk-ou { margin: 2px 0 0; text-align: center; font: 400 13px/1.3 var(--lv-sans); color: var(--lv-ink2); }
html.leve .pk-box { display: grid; gap: 8px; padding: 14px; border-radius: 16px; background: var(--lv-fill); }
html.leve .pk-box strong { font: 600 16px/1.3 var(--lv-sans); color: var(--lv-ink); }
html.leve .pk-box .note { margin: 0; }
html.leve .pk-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
html.leve .pk-item + .pk-item { border-top: .5px solid var(--lv-sep); }
html.leve .pk-item span { display: grid; min-width: 0; font: 500 15px/1.3 var(--lv-sans); color: var(--lv-ink); overflow-wrap: anywhere; }
html.leve .pk-item small { font: 400 13px/1.3 var(--lv-sans); color: var(--lv-ink2); }
html.leve .pk-item button { flex: none; min-height: 44px; color: var(--lv-neg); }

/* selo "IA" ao lado do nome entendido pela IA: separado do texto, pílula preenchida */
html.leve .pv .ia-tag { display: inline-block; margin-left: 8px; padding: 2px 6px; border-radius: 6px; background: var(--lv-fill2); color: var(--lv-ink2); font: 600 10.5px/1.3 var(--lv-sans); letter-spacing: .04em; vertical-align: 2px; }

/* campos de dinheiro: números alinhados, sem pular de largura enquanto digita */
html.leve input[inputmode="decimal"] { font-variant-numeric: tabular-nums; }

/* ===================================================================
   Início colorido (15/nov/2026): o visual de antes, com o que o leve trouxe.
   Fundo com o tom da cor do modo, mês numa pílula com as setas, cartão "Sobrou"
   em degradê com a curva do mês e Entrou / Saiu / Investiu em cartões separados.
   Só preenchimento: nada de borda, anel ou contorno.
   =================================================================== */
html.leve:root, html.leve:root[data-theme] {
  --lv-hero-a: #45C78C; --lv-hero-b: #1E8F5D; --lv-hero-c: #0B5235;
  --lv-bg: color-mix(in srgb, var(--lv-acc) 6%, #F1F3F2);
  --lv-glow: color-mix(in srgb, var(--lv-hero-a) 22%, transparent);
}
html.leve.pj:root, html.leve.pj:root[data-theme] { --lv-hero-a: #5B86F5; --lv-hero-b: #2A50C2; --lv-hero-c: #15307D; }
html.leve.vg:root, html.leve.vg:root[data-theme] { --lv-hero-a: #F59A5C; --lv-hero-b: #C8561C; --lv-hero-c: #7F3110; }
@media (prefers-color-scheme: dark) {
  html.leve:not(.lv-claro):root {
    --lv-bg: color-mix(in srgb, var(--lv-acc) 6%, #040605);
    --lv-card: color-mix(in srgb, var(--lv-acc) 8%, #131615);
    --lv-card2: color-mix(in srgb, var(--lv-acc) 11%, #1D211F);
    --lv-glow: color-mix(in srgb, var(--lv-hero-b) 42%, transparent);
  }
}
html.leve.lv-escuro:root {
  --lv-bg: color-mix(in srgb, var(--lv-acc) 6%, #040605);
  --lv-card: color-mix(in srgb, var(--lv-acc) 8%, #131615);
  --lv-card2: color-mix(in srgb, var(--lv-acc) 11%, #1D211F);
  --lv-glow: color-mix(in srgb, var(--lv-hero-b) 42%, transparent);
}
/* brilho da cor do modo no alto da tela, como antes */
html.leve, html.leve:root { background: radial-gradient(140% 460px at 50% -120px, var(--lv-glow), transparent 75%) no-repeat, var(--lv-bg) !important; }
html.leve body, html.leve .wrap { background: transparent !important; }

/* mês numa pílula: ‹ Novembro de 2026 ⌄ ›, tocar no nome abre o período */
html.leve #monthNav {
  flex: 0 1 auto !important; width: auto; max-width: 100% !important; margin: 10px 0 2px !important; gap: 0 !important;
  background: var(--lv-card) !important; border-radius: 22px !important; padding: 4px !important;
}
html.leve #monthNav #monthLbl { order: 0; margin: 0; }
html.leve #monthNav .m-lbl, html.leve .wrap #monthNav .m-lbl {
  font: 600 16px/1.15 var(--lv-sans) !important; letter-spacing: -.015em !important; color: var(--lv-ink) !important;
  background: none !important; border: 0 !important; box-shadow: none !important; cursor: pointer;
  width: auto !important; height: auto !important; min-width: 0 !important; min-height: 36px; border-radius: 16px !important;
  padding: 4px 10px !important; max-width: calc(100vw - 140px); justify-content: center; text-align: center !important;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
html.leve #monthNav .m-lbl:active { background: var(--lv-fill) !important; transform: scale(.97); }
html.leve #monthNav .m-seta { width: 16px; height: 16px; flex: none; }
html.leve #monthNav .m-lbl .m-ciclo { text-align: center; }
html.leve #monthNav button:not(.m-lbl) { margin: 0 !important; width: 36px; height: 36px; min-width: 36px; background: var(--lv-fill) !important; touch-action: manipulation; }

/* o cartão do mês sai: cada parte vira seu próprio cartão */
html.leve #v-inicio .capa { margin: 14px 16px 0 !important; padding: 0 !important; background: none !important; box-shadow: none !important; border-radius: 0 !important; }
html.leve #v-inicio .capa > .summary { column-gap: 10px; row-gap: 10px; }

/* "Sobrou": degradê na cor do modo, com a curva do mês embaixo */
html.leve #v-inicio .summary .stat.hero {
  position: relative; overflow: hidden; isolation: isolate; margin-bottom: 0 !important; gap: 4px;
  padding: 16px 20px 0 !important; border-radius: 26px !important; color: #FFFFFF !important;
  background:
    radial-gradient(80% 110% at 100% 0%, color-mix(in srgb, var(--lv-hero-a) 70%, transparent) 0%, transparent 62%),
    radial-gradient(70% 90% at 0% 110%, color-mix(in srgb, var(--lv-hero-c) 90%, transparent) 0%, transparent 70%),
    linear-gradient(165deg, var(--lv-hero-b) 0%, var(--lv-hero-c) 100%) !important;
  box-shadow: 0 22px 44px -24px color-mix(in srgb, var(--lv-hero-c) 90%, transparent) !important;
}
html.leve #v-inicio .summary .stat.hero .eyebrow {
  display: inline-block !important; justify-self: start; margin: 0 0 8px; padding: 6px 10px; border-radius: 99px;
  background: rgba(255, 255, 255, .16); color: #FFFFFF !important; font: 700 11px/1 var(--lv-sans) !important; letter-spacing: .14em !important; text-transform: uppercase;
}
html.leve #v-inicio .stat.hero :is(.lbl, .lbl *) { color: rgba(255, 255, 255, .86) !important; }
html.leve #v-inicio .stat.hero .olho-v { color: rgba(255, 255, 255, .8) !important; }
html.leve #v-inicio #sBal { color: #FFFFFF !important; font-size: clamp(34px, 11vw, 46px) !important; }
html.leve #v-inicio #sBal :is(.hv-s, .hv-c) { color: rgba(255, 255, 255, .78) !important; }
html.leve #v-inicio #sBal.neg, html.leve #v-inicio #sBal .neg { color: #FFD3CC !important; }
html.leve #v-inicio .stat.hero .sub { color: rgba(255, 255, 255, .9) !important; font-weight: 500 !important; }
html.leve #v-inicio .stat.hero .lv-barra { display: none !important; }
html.leve #v-inicio .stat.hero .hero-spark { display: block !important; justify-self: stretch; height: 64px; margin: 8px -20px 0; pointer-events: none; }
html.leve #v-inicio .stat.hero .hero-spark:empty { height: 16px; }
html.leve #v-inicio .stat.hero .hero-spark svg { display: block; width: 100%; height: 100%; }

/* Entrou, Saiu e Investiu: três cartões com o pontinho da cor de cada um */
html.leve #v-inicio .summary .stat:not(.hero) {
  background: var(--lv-card) !important; border-radius: 18px !important; padding: 12px 11px 13px !important; gap: 7px; min-width: 0;
}
html.leve #v-inicio .summary .stat:nth-child(1) .lbl i { background: var(--lv-acc) !important; }
html.leve #v-inicio .summary .stat:not(.hero) .v { font-size: 15px !important; overflow: hidden; text-overflow: clip; }

/* "Ver resumo do mês": linha própria, logo abaixo */
html.leve #v-inicio .lv-link {
  width: 100%; margin: 10px 0 0; border: 0; border-radius: 16px; background: var(--lv-card); padding: 0 16px; min-height: 48px;
}

/* ---------- janela "Escolher período" ---------- */
html.leve .pm-abas { position: relative; display: flex; gap: 0; padding: 4px; margin: 4px 0 2px; border-radius: 14px; background: var(--lv-fill); }
html.leve .pm-abas button {
  position: relative; z-index: 1; flex: 1 1 0; min-width: 0; min-height: 36px; border: 0; border-radius: 10px; background: none;
  color: var(--lv-ink2); font: 600 14px/1.1 var(--lv-sans); letter-spacing: -.01em; cursor: pointer; padding: 0 6px;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: color .2s ease;
}
html.leve .pm-abas button[aria-selected="true"] { color: var(--lv-ink); }
html.leve .pm-abas-bola { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: 0; border-radius: 10px; background: var(--lv-card2); box-shadow: 0 2px 8px -2px rgba(0, 0, 0, .25); transition: transform .32s var(--lv-ease), width .32s var(--lv-ease); }
html.leve .pm-bloco { margin-top: 16px; }
/* as três abas com a mesma altura: a janela não pula ao trocar */
html.leve .pm-bloco[data-pmb] { min-height: 262px; }
html.leve .pm-bloco > .note:first-child { margin-top: 0; }
html.leve .pm-bloco h3 { font: 600 16px/1.3 var(--lv-sans); color: var(--lv-ink); }
html.leve .pm-ano { gap: 22px; font: 700 20px/1 var(--lv-round); color: var(--lv-ink); }
html.leve .pm-seta { background: var(--lv-fill) !important; color: var(--lv-ink) !important; border: 0 !important; width: 40px; height: 40px; touch-action: manipulation; }
html.leve .pm-grade { gap: 8px; }
html.leve .pm-mes {
  position: relative; border: 0 !important; background: var(--lv-fill) !important; color: var(--lv-ink) !important; border-radius: 16px !important; min-height: 58px;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: transform 100ms ease-out;
}
html.leve .pm-mes b { font: 600 15px/1.1 var(--lv-sans); }
html.leve .pm-mes small { color: var(--lv-ink2) !important; }
html.leve .pm-mes:active:not(:disabled) { transform: scale(.95); }
/* mês de hoje: um pontinho na cor do modo embaixo do nome */
html.leve .pm-mes.hoje::after { content: ""; position: absolute; left: 50%; bottom: 7px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--lv-acc); }
html.leve .pm-mes.on { background: linear-gradient(160deg, var(--lv-hero-a), var(--lv-hero-c)) !important; color: #FFFFFF !important; }
html.leve .pm-mes.on small { color: rgba(255, 255, 255, .8) !important; }
html.leve .pm-mes.on.hoje::after { background: #FFFFFF; }
html.leve .pm-mes:disabled { opacity: .3; }
html.leve .pm-dias { gap: 8px; }
html.leve .pm-dias button {
  border: 0 !important; background: var(--lv-fill) !important; color: var(--lv-ink) !important; height: 42px; border-radius: 99px;
  font: 600 14px/1 var(--lv-sans) !important; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
html.leve .pm-dias button[aria-pressed="true"] { background: var(--lv-acc) !important; color: var(--lv-acc-ink) !important; }
html.leve .pm-dias button:active { transform: scale(.96); transition: transform 100ms ease-out; }
html.leve .pm-per { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
html.leve .pm-per button { padding: 0 10px; border-radius: 14px; height: 48px; }
html.leve .pm-per button[data-pp="livre"] { grid-column: 1 / -1; }
html.leve .per-livre { padding: 14px; border-radius: 16px; background: var(--lv-fill); }
@media (prefers-reduced-motion: reduce) { html.leve .pm-abas-bola { transition: none; } }

@media (min-width: 900px) {
  html.leve #monthNav { margin-top: 12px !important; }
  html.leve #monthNav .m-lbl, html.leve .wrap #monthNav .m-lbl { max-width: 420px; }
}

/* ---------- Saudação do Início ("Olá, Luis", estilo Nubank) ---------- */
/* no cabeçalho, entre a fileira de botões (order 0 a 3) e o seletor de mês (order 10): linha própria, largura toda.
   Só aparece na aba Início (setView põe o [hidden]). Espaço: 6px em cima, 4px embaixo + 6px do #monthNav = 10px */
html.leve header.top > .ola {
  order: 9; flex: 1 0 100%; margin: 6px 0 4px; font: 650 24px/1.2 var(--lv-sans); color: var(--lv-ink); letter-spacing: -.02em;
}
@media (min-width: 900px) {
  html.leve header.top > .ola { font-size: 28px; }
}
/* "Como quer ser chamado?": link de texto, sem fundo, sem borda e sem contorno; toque de 44px */
html.leve .ola-nome {
  display: block; min-height: 44px; margin: 0; padding: 12px 0; border: 0; background: none; box-shadow: none;
  font: 600 15px/1.2 var(--lv-sans); color: var(--lv-acc); text-align: left; cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
/* foco sem contorno: o sublinhado mostra onde está (regra do Luis). !important para vencer o contorno global de :focus-visible */
html.leve .ola-nome:focus-visible { text-decoration: underline; text-underline-offset: 3px; outline: none !important; }
/* selo do plano ao lado do nome: pílula só de preenchimento (sem borda, anel ou contorno — regra do Luis); toque abre os planos */
html.leve .ola-selo {
  display: inline-flex; align-items: center; vertical-align: .32em; margin-left: 10px; padding: 5px 11px; min-height: 26px;
  border: 0; border-radius: 99px; box-shadow: none; outline: none;
  font: 650 12.5px/1 var(--lv-sans); letter-spacing: .01em; white-space: nowrap; cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; position: relative;
  transition: transform .15s ease, filter .15s ease;
}
html.leve .ola-selo::after { content: ""; position: absolute; inset: -9px -4px; } /* área de toque de 44px */
html.leve .ola-selo:active { transform: scale(.96); }
html.leve .ola-selo:focus-visible { outline: none !important; filter: brightness(1.12); text-decoration: underline; text-underline-offset: 2px; }
html.leve .ola-selo.plus { background: var(--lv-acc); color: var(--lv-acc-ink); }
html.leve .ola-selo.teste { background: var(--lv-acc-soft); color: var(--lv-acc); }
html.leve .ola-selo.gratis { background: var(--lv-fill); color: var(--lv-ink); }
@media (min-width: 900px) { html.leve .ola-selo { font-size: 13.5px; padding: 6px 13px; } }
@media (prefers-reduced-motion: reduce) { html.leve .ola-selo { transition: none; } }

/* Presente do fundador (tela "Sobrô+ para sempre"): só preenchimento, sem borda */
.presente { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 16px; text-align: center; }
.presente-selo { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 18px 22px; border-radius: 22px; background: #0A7A55; color: #FFFFFF; }
.presente-ico { width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, .16); display: grid; place-items: center; }
.presente-ico svg { width: 34px; height: 34px; }
.presente-selo strong { font: 700 22px/1.2 var(--lv-disp, inherit); letter-spacing: -.02em; }
.presente-carta { margin: 0; text-align: left; font-size: 15px; line-height: 1.5; color: var(--lv-ink, inherit); background: var(--lv-fill, rgba(118, 118, 128, .12)); border-radius: 18px; padding: 16px 18px; overflow-wrap: anywhere; }
.presente-assina { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 14px; color: var(--lv-ink2, inherit); }
.presente-l { width: 34px; height: 34px; border-radius: 50%; background: #0A7A55; color: #FFFFFF; display: grid; place-items: center; font: 700 17px/1 var(--lv-disp, inherit); }
.presente-conf { position: absolute; top: 6px; width: 8px; height: 12px; border-radius: 3px; opacity: 0; pointer-events: none; background: #0A7A55; }
.presente-conf:nth-of-type(1) { left: 12%; background: #0A7A55; }
.presente-conf:nth-of-type(2) { left: 26%; background: #5FC29A; }
.presente-conf:nth-of-type(3) { left: 40%; background: #F4C06B; }
.presente-conf:nth-of-type(4) { left: 58%; background: #FF8A6B; }
.presente-conf:nth-of-type(5) { left: 72%; background: #5FC29A; }
.presente-conf:nth-of-type(6) { left: 86%; background: #F4C06B; }
.presente-conf:nth-of-type(7) { left: 50%; background: #9BD8FF; }
@media (prefers-reduced-motion: no-preference) {
  .presente-selo { animation: presente-entra .7s cubic-bezier(.22, 1, .36, 1) both; }
  .presente-conf { animation: presente-cai .6s cubic-bezier(.2, .7, .3, 1) both; }
  .presente-conf:nth-of-type(2n) { animation-delay: .08s; }
  .presente-conf:nth-of-type(3n) { animation-delay: .15s; }
}
@keyframes presente-entra { from { opacity: 0; transform: scale(.86); } to { opacity: 1; transform: none; } }
@keyframes presente-cai { 0% { opacity: 0; transform: translate3d(0, -12px, 0) rotate(0deg); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate3d(0, 140px, 0) rotate(240deg); } }

/* Campos de texto sem contorno ao focar (regra do Luis: formas sem borda, só preenchimento).
   Vence o anel verde de html.leve :focus-visible e as bordas/sombras de foco das telas antigas.
   Botões e caixas de seleção mantêm o foco de teclado. */
html.leve :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="file"]):not([type="color"]), textarea, select):focus {
  outline: none !important; box-shadow: none !important; border-color: transparent !important;
  background-color: var(--lv-fill2) !important;
}

/* Plano: aviso no Início, folha de limite e folha de planos (sem contorno) */
.aviso-plano { display: inline-flex; align-items: center; margin: 0 16px 12px; padding: 7px 14px; border: 0; border-radius: 99px; background: var(--lv-acc-soft); color: var(--lv-acc); font: 600 13px/1.2 var(--lv-sans); cursor: pointer; }
.aviso-plano[hidden] { display: none; }
.limite { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.limite-ico { width: 56px; height: 56px; border-radius: 50%; background: var(--lv-acc-soft); color: var(--lv-acc); display: grid; place-items: center; }
.limite-ico svg { width: 28px; height: 28px; }
.limite .note { margin: 0; }
.faixa-modo { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px; margin: 0 0 8px; padding: 8px 14px; border: 0; border-radius: 0 0 14px 14px; background: var(--lv-acc-soft); color: var(--lv-acc); font: 600 13px/1.3 var(--lv-sans); text-align: center; }
.faixa-modo[hidden] { display: none; }
.faixa-modo button { border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; padding: 0; }
.chip-leitura { display: inline-block; margin: 0 0 8px; padding: 3px 10px; border-radius: 99px; background: var(--lv-fill); color: var(--lv-ink2); font: 600 12px/1.2 var(--lv-sans); }
.ativo-grupo { border: 0; margin: 0 0 6px; padding: 0; }
.ativo-grupo legend { font: 600 13px/1.2 var(--lv-sans); color: var(--lv-ink2); margin-bottom: 4px; }
.ativo-op { display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin-top: 6px; border-radius: 14px; background: var(--lv-fill); font: 500 16px/1.2 var(--lv-sans); color: var(--lv-ink); }
.ativo-op input { accent-color: var(--lv-acc); width: 18px; height: 18px; }
.planos-lista { display: flex; flex-direction: column; gap: 14px; }
.planos-ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 15px; color: var(--lv-ink); }
.planos-preco { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 16px; background: var(--lv-fill); }
.planos-preco strong { font-size: 16px; color: var(--lv-ink); }
.planos-preco span { font-size: 14px; color: var(--lv-ink2); }
/* Tela de planos (etapa 5): só preenchimento, sem contorno. Celular: Sobrô+ primeiro; computador: 3 cartões lado a lado */
.plano-status { margin: 0; align-self: flex-start; padding: 8px 14px; border-radius: 99px; background: var(--lv-acc-soft); color: var(--lv-acc); font: 600 14px/1.25 var(--lv-sans); }
.plano-ciclo { margin: 0; width: 100%; }
.plano-ciclo button { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.plano-etiq { font-size: 12px; font-weight: 600; opacity: .85; }
.planos-grade { display: flex; flex-direction: column; gap: 12px; }
.plano-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 20px; background: var(--lv-fill); }
.plano-card.destaque { background: var(--lv-acc-soft); order: -1; }
.plano-card h3 { margin: 0; font: 700 18px/1.2 var(--lv-disp); letter-spacing: -.02em; color: var(--lv-ink); }
.plano-preco { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; }
.plano-preco strong { font: 700 30px/1 var(--lv-round); letter-spacing: -.03em; color: var(--lv-ink); }
.plano-preco span { font-size: 14px; color: var(--lv-ink2); }
.plano-dica { margin: -4px 0 0; font-size: 13px; color: var(--lv-ink2); }
.plano-selo { align-self: flex-start; padding: 4px 10px; border-radius: 99px; background: var(--lv-acc); color: var(--lv-acc-ink); font: 600 12px/1.2 var(--lv-sans); }
.plano-card > .btn { width: 100%; }
html.leve .btn.plano-ok:disabled { background: var(--lv-fill2) !important; color: var(--lv-ink2) !important; opacity: 1; }
.plano-itens { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; font-size: 15px; line-height: 1.35; color: var(--lv-ink); }
.plano-itens li { display: flex; gap: 10px; align-items: flex-start; }
.plano-ck { flex: none; width: 18px; text-align: center; font-weight: 700; color: var(--lv-acc); }
.plano-ck.no { color: var(--lv-ink3); }
.plano-itens li:has(.plano-ck.no) { color: var(--lv-ink2); }
.plano-confianca { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.plano-confianca li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--lv-ink2); }
.plano-confianca svg { flex: none; width: 18px; height: 18px; color: var(--lv-acc); }
.plano-cancelar { align-self: center; }
.sheet-card:has(.planos-grade) { max-width: 940px; }
@media (min-width: 720px) {
  .planos-grade { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
  .plano-card.destaque { order: 0; }
}

/* Plano Grátis (etapa 4c): Investimentos mostra só o total; Resumo só do mês atual */
#invPlus { display: none; }
html.gratis-lim #v-invest .summary .stat:not(.hero), html.gratis-lim #v-invest .folha { display: none !important; }
html.gratis-lim #invPlus { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin: 8px 16px 24px; padding: 18px; border-radius: var(--lv-r); background: var(--lv-card); }
html.gratis-lim #invPlus p { margin: 0; color: var(--lv-ink2); font-size: 15px; line-height: 1.35; }
.res-plano { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0 0 12px; color: var(--lv-ink2); font-size: 13px; }
.res-plano[hidden] { display: none; }
.plano-renova { margin: -4px 0 0; font-size: 12.5px; line-height: 1.35; color: var(--lv-ink2); }
.plano-aceite { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: 13.5px; line-height: 1.4; color: var(--lv-ink2); border: 0; }
.plano-aceite input { flex: none; accent-color: var(--lv-acc); width: 18px; height: 18px; margin: 2px 0 0; }
.plano-aceite a { color: var(--lv-acc); }

/* ---------- Linha do mês (Planejar): régua do ciclo com o saldo projetado ---------- */
/* só preenchimento: nada de border, outline ou anel; toques com 44px ou mais */
html.leve .lm-dica { margin: -4px 0 12px; font: 500 13.5px/1.35 var(--lv-sans); color: var(--lv-ink2); }
html.leve .lm-cartao { display: grid; gap: 4px; margin: 0 0 12px; padding: 14px 16px; border-radius: 18px; background: linear-gradient(160deg, var(--lv-card2), var(--lv-card)); box-shadow: var(--lv-shadow); }
html.leve .lm-cab { font: 600 13px/1.2 var(--lv-sans); color: var(--lv-ink2); text-transform: capitalize; }
html.leve .lm-venc { margin: 0; font: 500 13.5px/1.35 var(--lv-sans); color: var(--lv-ink); }
html.leve .lm-sob { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 4px; }
html.leve .lm-sl { font: 600 13px/1.2 var(--lv-sans); color: var(--lv-ink2); }
html.leve .lm-sv { font: 800 28px/1 var(--lv-disp); letter-spacing: -.02em; color: var(--lv-acc); font-variant-numeric: tabular-nums; }
html.leve .lm-sv.neg { color: var(--lv-neg); }
html.leve .lm-wrap { position: relative; }
html.leve .lm-rail { position: relative; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin: 0 -16px; }
html.leve .lm-rail::-webkit-scrollbar { display: none; }
html.leve .lm-in { display: flex; align-items: stretch; }
/* as folgas das pontas são pseudo-elementos: a primeira e a última pastilha também centralizam */
html.leve .lm-in::before, html.leve .lm-in::after { content: ""; flex: 0 0 var(--lm-pad, 0px); }
html.leve .lm-col { flex: 0 0 auto; }
html.leve .lm-area { display: block; overflow: visible; }
html.leve .lm-fila { display: flex; }
html.leve .lm-dia { flex: 0 0 44px; width: 44px; min-width: 44px; min-height: 96px; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; margin: 0; padding: 8px 0; border: 0; border-radius: 22px; background: var(--lv-fill); color: var(--lv-ink); font: inherit; scroll-snap-align: center; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color .2s ease, opacity .2s ease; }
html.leve .lm-dia b { font: 700 16px/1 var(--lv-disp); font-variant-numeric: tabular-nums; }
html.leve .lm-dia small { font: 600 11px/1 var(--lv-sans); color: var(--lv-ink2); }
html.leve .lm-dia.passou { opacity: .45; }
html.leve .lm-dia.hoje { background: var(--lv-acc-soft); }
html.leve .lm-dia.hoje b, html.leve .lm-dia.hoje small { color: var(--lv-acc); }
html.leve .lm-dia.on { background: var(--lv-fill2); }
html.leve .lm-dia.hoje.on { background: var(--lv-acc); }
html.leve .lm-dia.hoje.on b, html.leve .lm-dia.hoje.on small { color: var(--lv-acc-ink); }
html.leve .lm-pts { display: grid; grid-template-columns: repeat(2, 7px); gap: 3px; justify-content: center; min-height: 17px; }
html.leve .lm-pt { display: block; width: 7px; height: 7px; border-radius: 50%; }
html.leve .lm-cur { position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--lv-ink); opacity: .7; pointer-events: none; z-index: 2; }
html.leve .lm-leg { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 12px; font: 500 12px/1.2 var(--lv-sans); color: var(--lv-ink2); }
html.leve .lm-leg span { display: inline-flex; align-items: center; gap: 6px; }
html.leve .lm-leg i { display: block; width: 8px; height: 8px; border-radius: 50%; }
html.leve .lm-vazio { display: grid; justify-items: start; gap: 12px; font: 500 14px/1.4 var(--lv-sans); color: var(--lv-ink2); }
html.leve .lm-vazio[hidden], html.leve #lmCorpo[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { html.leve .lm-rail, html.leve .lm-dia { scroll-behavior: auto; } html.leve .lm-dia { transition: none; } }

/* ---------- Viagem como cartão de embarque (modo Viagem): carrossel, picote por máscara, líquido do orçamento e verso com o gasto por categoria. Só preenchimento, sem contorno ---------- */
html.leve .vb-caixa { display: grid; gap: 12px; min-width: 0; }
html.leve .vb-trilho { position: relative; display: flex; gap: 10px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; padding: 14px max(4%, calc(50% - 280px)) 30px; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
html.leve .vb-trilho::-webkit-scrollbar { display: none; }
html.leve .vb-trilho.vb-unico { padding: 14px 0 30px; }
html.leve .vb-unico .vb-slot { flex-basis: 100%; }
html.leve .vb-slot {
  position: relative; flex: 0 0 min(92%, 560px); aspect-ratio: 1.6; height: auto; container-type: inline-size; perspective: 1200px;
  scroll-snap-align: center; border: 0; margin: 0; padding: 0; background: none; font: inherit; text-align: left; color: #FFFFFF;
  cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  filter: drop-shadow(0 18px 20px rgba(0, 0, 0, .32));
}
html.leve .vb-giro { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
html.leve .vb-slot.vb-virado .vb-giro { transform: rotateY(180deg); }
/* cada face tem o recorte do picote nas duas pontas (máscara com dois círculos), sem borda */
html.leve .vb-face {
  position: absolute; inset: 0; border-radius: 22px; overflow: hidden; isolation: isolate; background: var(--vb-bg);
  -webkit-backface-visibility: hidden; backface-visibility: hidden; text-shadow: 0 1px 2px rgba(0, 0, 0, .2);
  -webkit-mask-image: radial-gradient(circle 13px at var(--vb-corte) 0, transparent 12.5px, #000 13px), radial-gradient(circle 13px at var(--vb-corte) 100%, transparent 12.5px, #000 13px);
  mask-image: radial-gradient(circle 13px at var(--vb-corte) 0, transparent 12.5px, #000 13px), radial-gradient(circle 13px at var(--vb-corte) 100%, transparent 12.5px, #000 13px);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
html.leve .vb-face::after {
  content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background: radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 55%), linear-gradient(105deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, 0) 60%);
}
html.leve .vb-frente { display: grid; grid-template-columns: 60% 40%; }
html.leve .vb-verso { transform: rotateY(180deg); display: flex; flex-direction: column; justify-content: space-between; gap: 8px; padding: clamp(14px, 5cqi, 20px) clamp(16px, 5.4cqi, 22px); }
html.leve .vb-parte { position: relative; z-index: 2; min-width: 0; padding: clamp(14px, 5cqi, 20px) 10px clamp(14px, 5cqi, 20px) clamp(16px, 5.4cqi, 22px); display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
html.leve .vb-canhoto { position: relative; overflow: hidden; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; padding: clamp(14px, 5cqi, 20px) 10px clamp(14px, 5cqi, 20px) 14px; }
html.leve .vb-canhoto > :not(.vb-liquido) { position: relative; z-index: 2; }
html.leve .vb-topo { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
html.leve .vb-rot { font: 700 10.5px/1 var(--lv-sans); letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
html.leve .vb-selo { font: 800 10.5px/1 var(--lv-sans); letter-spacing: .06em; text-transform: uppercase; background: #FFFFFF; color: var(--lv-acc); padding: 6px 10px; border-radius: 999px; white-space: nowrap; text-shadow: none; }
html.leve .vb-destino { margin: 0; font: 800 clamp(24px, 8.4cqi, 36px)/1.05 var(--lv-sans); overflow-wrap: anywhere; min-width: 0; }
html.leve .vb-aviao { font-size: .8em; vertical-align: .1em; }
html.leve .vb-trecho { display: grid; gap: 2px; justify-items: start; min-width: 0; }
html.leve .vb-datas, html.leve .vb-dias { margin: 0; font: 600 12px/1.3 var(--lv-sans); }
html.leve .vb-dias { font-weight: 800; }
html.leve .vb-picote { position: absolute; top: 12%; bottom: 12%; left: var(--vb-corte); transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; justify-content: space-between; align-items: center; pointer-events: none; }
html.leve .vb-picote i { display: block; width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .6); }
/* líquido do orçamento: a mesma onda dos cartões de crédito */
html.leve .vb-liquido { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; background: rgba(0, 0, 0, .3); transition: height 1.1s cubic-bezier(.22, .8, .24, 1); }
html.leve .vb-onda { position: absolute; left: 0; top: -12px; width: 200%; height: 12px; display: block; animation: cwOnda 3.6s linear infinite; }
html.leve .vb-onda path { fill: rgba(0, 0, 0, .3); }
html.leve .vb-over .vb-liquido { background: rgba(180, 35, 24, .5); }
html.leve .vb-over .vb-onda path { fill: rgba(180, 35, 24, .5); }
html.leve .vb-texto { display: grid; gap: 2px; min-width: 0; }
html.leve .vb-gasto, html.leve .vb-sobra { display: grid; gap: 1px; min-width: 0; }
html.leve .vb-gasto b, html.leve .vb-sobra b { font: 800 clamp(13px, 4.4cqi, 16px)/1.15 var(--lv-sans); font-variant-numeric: tabular-nums; white-space: nowrap; }
html.leve .vb-gasto span, html.leve .vb-sobra span { font: 600 10.5px/1.25 var(--lv-sans); opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.leve .vb-sobra b:empty { display: none; }
html.leve .vb-gasto { margin: 0; font: 700 11.5px/1.3 var(--lv-sans); font-variant-numeric: tabular-nums; }
html.leve .vb-sobra { margin: 0; font: 600 11px/1.3 var(--lv-sans); opacity: .95; }
html.leve .vb-neg { color: #FF9F94 !important; font-weight: 800; }
/* verso: barras preenchidas por categoria */
html.leve .vb-cats { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
html.leve .vb-cats li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 3px 8px; font: 600 12px/1.2 var(--lv-sans); }
html.leve .vb-cat-n { grid-column: 1; grid-row: 1; }
html.leve .vb-cats li b { grid-column: 2; grid-row: 1; }
html.leve .vb-cat-bar { grid-column: 1 / -1; grid-row: 2; }
html.leve .vb-cat-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.leve .vb-cat-bar { display: block; height: 9px; border-radius: 5px; background: rgba(255, 255, 255, .22); overflow: hidden; }
html.leve .vb-cat-bar i { display: block; height: 100%; border-radius: 5px; background: #FFFFFF; }
html.leve .vb-cats b { font-variant-numeric: tabular-nums; }
html.leve .vb-maior { margin: 0; font: 600 12px/1.3 var(--lv-sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* viagem passada apagada; cartão fantasma (sem viagens) só ilustra */
html.leve .vb-passada { opacity: .6; filter: saturate(.45) drop-shadow(0 14px 18px rgba(0, 0, 0, .25)); }
html.leve .vb-fantasma { opacity: .55; pointer-events: none; filter: saturate(.2) drop-shadow(0 14px 16px rgba(0, 0, 0, .18)); }
/* pontinhos do carrossel: a viagem do meio é a pílula */
html.leve .vb-pontos { display: flex; justify-content: center; align-items: center; gap: 6px; }
html.leve .vb-pontos i { display: block; width: 6px; height: 6px; border-radius: 3px; background: var(--lv-fill2); transition: width .3s var(--lv-ease), background-color .3s ease; }
html.leve .vb-pontos i.on { width: 18px; background: var(--lv-acc); }
/* detalhes da viagem do meio (botões de Abrir e Editar continuam os mesmos) */
html.leve .vb-det { display: grid; gap: 6px; padding: 0 4px; }
html.leve .vb-det-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
html.leve .vb-det-top b { font-size: 16px; }
html.leve .vb-det-sub { margin: 0; color: var(--lv-ink2); font-size: 13px; }
html.leve .vb-det-val { margin: 0; font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
html.leve .vb-det-val small { font-weight: 500; color: var(--lv-ink2); font-size: 13px; }
html.leve .vb-det-track { display: block; height: 8px; border-radius: 4px; background: var(--lv-fill); overflow: hidden; }
html.leve .vb-det-track i { display: block; height: 100%; border-radius: 4px; background: var(--lv-acc); transition: width .6s var(--lv-ease); }
html.leve .vb-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
@media (prefers-reduced-motion: reduce) {
  html.leve .vb-giro { transform-style: flat; transition: none; }
  html.leve .vb-slot.vb-virado .vb-giro { transform: none; }
  /* sem giro: o verso aparece no lugar do cartão (cross-fade) */
  html.leve .vb-verso { transform: none; opacity: 0; transition: opacity .5s ease; }
  html.leve .vb-frente { transition: opacity .5s ease; }
  html.leve .vb-slot.vb-virado .vb-frente { opacity: 0; }
  html.leve .vb-slot.vb-virado .vb-verso { opacity: 1; }
  html.leve .vb-onda { animation: none; }
  html.leve .vb-liquido, html.leve .vb-pontos i, html.leve .vb-det-track i { transition: none; }
}

/* E7 investimentos em pilhas */
html.leve .pl-estante { --pl-ouro: linear-gradient(180deg, #FBE7A6 0%, #E7B54F 55%, #C88F2C 100%); --pl-ouro-fundo: #9A6B1E; --pl-limao: linear-gradient(180deg, #F1FCC0 0%, #B9E24F 55%, #86B92A 100%); --pl-limao-fundo: #5E8A1A; --pl-perda: linear-gradient(180deg, rgba(255, 160, 150, .6) 0%, rgba(240, 100, 90, .42) 100%); --pl-perda-fundo: rgba(200, 60, 50, .3);
  display: flex; align-items: flex-start; width: 100%; min-width: 0; max-width: 100%; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 96px 0 0; margin: -88px 0 10px; pointer-events: none; }
/* espaço acima das pilhas (o topo da estante é transparente, sem toque) para a moeda nova cair de cima sem ser cortada */
html.leve .pl-estante::-webkit-scrollbar { display: none; }
html.leve .pl-pilha { flex: 0 0 96px; width: 96px; display: flex; flex-direction: column; scroll-snap-align: start; cursor: pointer; border-radius: 16px; outline: 0; background: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: background-color .2s var(--lv-ease); }
html.leve .pl-pilha:focus-visible { background: var(--lv-fill); }
html.leve .pl-area { position: relative; width: 56px; height: 136px; margin: 0 auto; }
html.leve .pl-moeda { position: absolute; left: 0; bottom: calc(var(--k, 0) * 9px); width: 56px; height: 13px; border-radius: 50%; background: var(--pl-ouro); box-shadow: 0 3px 0 0 var(--pl-ouro-fundo); animation: pl-sobe .5s var(--lv-ease) both; animation-delay: calc(var(--k, 0) * 35ms); }
html.leve .pl-moeda::after { content: ""; position: absolute; left: 16%; right: 16%; top: 2px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, .5); }
html.leve .pl-moeda.pl-ganho { background: var(--pl-limao); box-shadow: 0 3px 0 0 var(--pl-limao-fundo); }
html.leve .pl-moeda.pl-perda { background: var(--pl-perda); box-shadow: 0 3px 0 0 var(--pl-perda-fundo); }
html.leve .pl-prat { height: 10px; border-radius: 0; background: var(--lv-fill2); }
html.leve .pl-pilha:first-child .pl-prat { border-radius: 6px 0 0 6px; }
html.leve .pl-pilha:last-child .pl-prat { border-radius: 0 6px 6px 0; }
html.leve .pl-pilha:only-child .pl-prat { border-radius: 6px; }
html.leve .pl-txt { padding-inline: 4px; }
html.leve .pl-txt { display: grid; gap: 1px; padding: 8px 0 0; min-width: 0; text-align: center; justify-items: center; }
html.leve .pl-nome { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 100%; font: 600 12.5px/1.25 var(--lv-sans); color: var(--lv-ink); }
html.leve .pl-valor { max-width: 100%; font: 700 12px/1.3 var(--lv-sans); color: var(--lv-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
html.leve .pl-d { max-width: 100%; font: 600 11px/1.3 var(--lv-sans); font-variant-numeric: tabular-nums; white-space: nowrap; }
html.leve .pl-d.pl-in { color: var(--lv-acc); }
html.leve .pl-d.pl-out { color: var(--lv-neg); }
html.leve .iv-pos.pl-foco { background: var(--lv-acc-soft); border-radius: 14px; margin-inline: -10px; padding-inline: 10px; transition: background-color .3s ease; }
@keyframes pl-sobe { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
/* moeda nova da pilha: cai de cima (-90 px), acelera, quica ao assentar; as antigas não se mexem mais a cada pintura */
html.leve .pl-pilha { pointer-events: auto; }
html.leve .pl-moeda.pl-cai { animation: plCai .65s both; animation-delay: var(--d, 0ms); }
html.leve .pl-moeda.pl-quieta { animation: none; }
@keyframes plCai {
  0% { transform: translateY(-90px); animation-timing-function: cubic-bezier(.5, 0, .75, 0); }
  62% { transform: none; animation-timing-function: cubic-bezier(.2, .6, .4, 1); }
  80% { transform: translateY(-6px); animation-timing-function: cubic-bezier(.5, 0, .75, 0); }
  100% { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html.leve .pl-moeda { animation: none; }
  html.leve .pl-pilha, html.leve .iv-pos.pl-foco { transition: none; }
  html.leve .pl-estante { scroll-behavior: auto; }
}

/* Novidades e tour de primeiro acesso */
html.leve .nv[hidden], html.leve .tr[hidden], html.leve .tr-voltar[hidden] { display: none; }
html.leve .nv { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; justify-content: center; background: rgba(8, 14, 12, .42); font-family: var(--lv-sans); color: var(--lv-ink); animation: nvFundo .28s ease both; }
html.leve .nv-folha { width: 100%; max-height: 88vh; overflow: auto; box-sizing: border-box; display: flex; flex-direction: column; gap: 16px; background: var(--lv-card); border-radius: 26px 26px 0 0; padding: 22px 20px calc(22px + env(safe-area-inset-bottom, 0px)); animation: nvSobe .42s var(--lv-ease) both; }
html.leve .nv-topo { display: flex; align-items: flex-start; gap: 12px; }
html.leve .nv-cab { flex: 1; min-width: 0; }
html.leve .nv-titulo { margin: 0; font: 700 22px/1.2 var(--lv-disp); letter-spacing: -.02em; color: var(--lv-ink); }
html.leve .nv-sub { margin: 4px 0 0; font-size: 14px; color: var(--lv-ink2); }
html.leve .nv-x, html.leve .tr-x { flex: none; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; outline: 0; border-radius: 50%; background: var(--lv-fill); color: var(--lv-ink2); font: 500 20px/1 var(--lv-sans); cursor: pointer; }
html.leve .nv-x:focus-visible, html.leve .tr-x:focus-visible { background: var(--lv-fill2); }
html.leve .nv-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
html.leve .nv-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border-radius: 16px; background: transparent; }
html.leve button.nv-item { width: 100%; margin: 0; border: 0; outline: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
html.leve button.nv-item:hover, html.leve button.nv-item:focus-visible { background: var(--lv-fill); }
html.leve button.nv-item.nv-atual { background: color-mix(in srgb, var(--lv-acc) 14%, transparent); }
html.leve button.nv-item.nv-atual .nv-seta { color: var(--lv-acc); }
html.leve .nv-dot { flex: none; width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--lv-acc); }
html.leve .nv-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
html.leve .nv-txt strong { font-size: 16px; font-weight: 650; color: var(--lv-ink); }
html.leve .nv-txt > span { font-size: 14px; line-height: 1.4; color: var(--lv-ink2); }
html.leve .nv-seta { flex: none; align-self: center; font-size: 22px; line-height: 1; color: var(--lv-ink3); }
html.leve .nv-ok { width: 100%; margin: 0; padding: 14px; border: 0; outline: 0; border-radius: 16px; background: var(--lv-acc); color: var(--lv-acc-ink); font: 650 17px/1.2 var(--lv-sans); cursor: pointer; }
html.leve .nv-ok:focus-visible { filter: brightness(.92); }
html.leve .nv-abrir { display: flex; width: 100%; margin: 0; align-items: center; justify-content: space-between; padding: 13px 14px; border: 0; outline: 0; border-radius: 14px; background: var(--lv-fill); color: var(--lv-acc); font: 600 16px/1.2 var(--lv-sans); text-align: left; cursor: pointer; }
html.leve .nv-abrir:focus-visible { background: var(--lv-fill2); }
@media (min-width: 900px) {
  html.leve .nv { align-items: center; padding: 24px; }
  html.leve .nv-folha { width: 440px; max-width: 100%; max-height: 86vh; border-radius: 24px; padding: 26px 26px 24px; animation-name: nvCentro; }
}

html.leve .tr { position: fixed; inset: 0; z-index: 95; font-family: var(--lv-sans); color: var(--lv-ink); }
html.leve .tr-recorte { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
html.leve .tr-recorte path { fill: rgba(8, 14, 12, .58); }
html.leve .tr-balao { position: fixed; left: 0; top: 0; box-sizing: border-box; overflow: auto; background: var(--lv-card); color: var(--lv-ink); border-radius: 18px; padding: 14px 16px 14px; box-shadow: var(--lv-shadow); transition: left .38s var(--lv-ease), top .38s var(--lv-ease); }
html.leve .tr-topo { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
html.leve .tr-pontos { display: flex; align-items: center; gap: 5px; }
html.leve .tr-pt { width: 6px; height: 6px; border-radius: 3px; background: var(--lv-fill2); transition: width .3s var(--lv-ease), background-color .3s; }
html.leve .tr-pt.on { width: 18px; background: var(--lv-acc); }
html.leve .tr-tit { margin: 0 0 6px; font: 700 18px/1.25 var(--lv-disp); letter-spacing: -.015em; color: var(--lv-ink); }
html.leve .tr-txt { margin: 0; font-size: 15px; line-height: 1.45; color: var(--lv-ink2); }
html.leve .tr-acoes { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
html.leve .tr-voltar, html.leve .tr-prox { margin: 0; padding: 11px 16px; border: 0; outline: 0; border-radius: 14px; font: 650 15px/1.2 var(--lv-sans); cursor: pointer; }
html.leve .tr-voltar { background: var(--lv-fill); color: var(--lv-ink); }
html.leve .tr-prox { margin-left: auto; background: var(--lv-acc); color: var(--lv-acc-ink); }
html.leve .tr-voltar:focus-visible { background: var(--lv-fill2); }
html.leve .tr-prox:focus-visible { filter: brightness(.92); }

html.leve .nv :focus-visible, html.leve .tr :focus-visible, html.leve .nv-abrir:focus-visible { outline: none !important; }

/* pílula das novidades: a folha recolhida; no celular fica acima das abas (JS mede a altura), no computador no canto */
html.leve .nv-pilula { position: fixed; z-index: 36; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); --nv-x: -50%; transform: translateX(var(--nv-x)); box-sizing: border-box; display: flex; align-items: center; gap: 4px; height: 44px; padding: 0 6px 0 14px; border: 0; outline: 0; border-radius: 999px; background: var(--lv-card); box-shadow: var(--lv-shadow); color: var(--lv-ink); font: 600 14px/1 var(--lv-sans); letter-spacing: -.01em; white-space: nowrap; animation: nvPilula .32s var(--lv-ease) both; }
html.leve .nv-pilula-ir { display: flex; align-items: center; gap: 8px; height: 44px; margin: 0; padding: 0; border: 0; outline: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
html.leve .nv-pilula-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--lv-acc); }
html.leve .nv-pilula-pos { color: var(--lv-ink2); }
html.leve .nv-pilula-x { flex: none; display: grid; place-items: center; width: 32px; height: 32px; margin: 0 0 0 4px; padding: 0; border: 0; outline: 0; border-radius: 50%; background: var(--lv-fill); color: var(--lv-ink2); font: 500 18px/1 var(--lv-sans); cursor: pointer; }
html.leve .nv-pilula-ir:focus-visible, html.leve .nv-pilula-x:focus-visible { background: var(--lv-fill2); }
html.leve .nv-pilula :focus-visible { outline: none !important; }
@media (min-width: 900px) {
  html.leve .nv-pilula { left: auto; right: 24px; bottom: 22px; --nv-x: 0px; }
}

@keyframes nvFundo { from { opacity: 0; } to { opacity: 1; } }
@keyframes nvSobe { from { transform: translateY(100%); } to { transform: none; } }
@keyframes nvCentro { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes nvPilula { from { opacity: 0; transform: translateX(var(--nv-x)) translateY(12px); } to { opacity: 1; transform: translateX(var(--nv-x)) translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  html.leve .nv, html.leve .nv-folha, html.leve .nv-pilula { animation: none; }
  html.leve .tr-balao, html.leve .tr-pt { transition: none; }
}

/* Colocar na tela inicial: só preenchimento (sem borda, contorno ou anel); glifos preenchidos */
html.leve .inst-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--lv-fill); border-radius: 14px; margin: 14px 0 12px; }
html.leve .inst-seg button { border: 0; background: none; min-height: 44px; border-radius: 10px; font: 500 15px/1 var(--lv-sans); color: var(--lv-ink); cursor: pointer; }
html.leve .inst-seg button[aria-pressed="true"] { background: var(--lv-card2); font-weight: 600; }
html.leve .inst-passos { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
html.leve .inst-passos li { display: grid; grid-template-columns: 28px 40px minmax(0, 1fr); gap: 12px; align-items: center; background: var(--lv-fill); border-radius: 16px; padding: 12px; }
html.leve .inst-num { width: 28px; height: 28px; border-radius: 50%; background: var(--lv-acc); color: var(--lv-acc-ink); font: 700 14px/28px var(--lv-round); text-align: center; }
html.leve .inst-chip { width: 40px; height: 40px; border-radius: 12px; background: var(--lv-acc-soft); color: var(--lv-acc); display: grid; place-items: center; }
html.leve .inst-chip svg { width: 22px; height: 22px; }
html.leve .inst-txt { display: grid; gap: 3px; min-width: 0; }
html.leve .inst-txt strong { font: 600 15px/1.25 var(--lv-sans); color: var(--lv-ink); }
html.leve .inst-txt > span { font: 400 13px/1.35 var(--lv-sans); color: var(--lv-ink2); }
html.leve .inst-nota { margin: 4px 0 0; }
html.leve .inst-dica { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 44px; gap: 10px; align-items: center; background: var(--lv-card); border-radius: 18px; padding: 10px 10px 10px 12px; margin: 0 16px 12px; }
html.leve .inst-dica[hidden] { display: none; }
html.leve .inst-dica-ic { width: 44px; height: 44px; border-radius: 11px; display: block; }
html.leve .inst-dica-txt { display: grid; gap: 2px; min-width: 0; }
html.leve .inst-dica-txt strong { font: 600 15px/1.25 var(--lv-sans); color: var(--lv-ink); }
html.leve .inst-dica-txt span { font: 400 13px/1.35 var(--lv-sans); color: var(--lv-ink2); }
html.leve .inst-dica-ver { border: 0; background: var(--lv-acc); color: var(--lv-acc-ink); border-radius: 99px; min-height: 44px; padding: 0 14px; font: 600 14px/1 var(--lv-sans); cursor: pointer; white-space: nowrap; }
html.leve .inst-dica-x { border: 0; background: var(--lv-fill); color: var(--lv-ink2); border-radius: 50%; width: 44px; height: 44px; font: 400 22px/1 var(--lv-sans); cursor: pointer; }
html.leve #instalarPanel[hidden] { display: none; }
