:root {
  --nav-altura: 4.4rem;
  --lateral: 15.5rem;
  --aviso: #8A5A00;
  --aviso-fundo: #FFF4D6;
  --aviso-borda: #F2DC9B;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-tema="claro"]) {
    --aviso: #F5C46B;
    --aviso-fundo: rgba(245, 196, 107, 0.10);
    --aviso-borda: rgba(245, 196, 107, 0.30);
  }
}
:root[data-tema="escuro"] {
  --aviso: #F5C46B;
  --aviso-fundo: rgba(245, 196, 107, 0.10);
  --aviso-borda: rgba(245, 196, 107, 0.30);
}

.tela-app {
  padding-bottom: calc(var(--nav-altura) + 1.5rem + env(safe-area-inset-bottom));
  background-color: var(--fundo);
}

.topo-app {
  position: relative;
  background:
    radial-gradient(110% 120% at 100% 0%, var(--brilho-1), transparent 55%),
    var(--faixa);
  color: var(--faixa-texto);
  padding: 0.9rem 1.25rem 1.5rem;
  border-radius: 0 0 1.75rem 1.75rem;
}
.topo-app.com-cartao { padding-bottom: 3.75rem; }
.topo-linha { position: relative; z-index: 3; max-width: 46rem; margin: 0 auto; display: flex; align-items: center; gap: 0.75rem; min-height: 2.9rem; }
.topo-marca { display: flex; align-items: center; gap: 0.55rem; color: inherit; text-decoration: none; }
.topo-marca:hover { color: inherit; }
.topo-marca img { width: 2.2rem; height: 2.2rem; }
.topo-marca span { font-weight: 800; font-size: 1.1rem; }
.topo-marca span span { color: var(--menta); }
.topo-titulo { font-size: 1.2rem; font-weight: 800; color: var(--faixa-texto); }
.topo-espaco { flex: 1; }
.topo-sub { position: relative; z-index: 1; max-width: 46rem; margin: 0.35rem auto 0; color: var(--faixa-suave); font-size: 0.88rem; }

.menu-conta { position: relative; }
.menu-lista {
  position: absolute; right: 0; top: calc(100% + 0.4rem); z-index: 30;
  min-width: 14rem;
  padding: 0.4rem;
  border-radius: 16px;
  background: var(--superficie); color: var(--texto);
  border: 1px solid var(--linha);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  display: flex; flex-direction: column;
}
.menu-lista button, .menu-lista a {
  display: flex; align-items: center; gap: 0.7rem;
  min-height: 2.9rem; padding: 0 0.75rem;
  border: 0; border-radius: 10px; background: transparent;
  color: var(--texto); font: 600 0.95rem var(--fonte); text-align: left; text-decoration: none; cursor: pointer;
}
.menu-lista button:hover, .menu-lista a:hover { background: var(--superficie-2); color: var(--texto); }
.menu-lista .perigo { color: var(--erro); }
.menu-lista hr { border: 0; border-top: 1px solid var(--linha); margin: 0.3rem 0.2rem; }
.menu-usuario { padding: 0.55rem 0.75rem 0.65rem; border-bottom: 1px solid var(--linha); margin-bottom: 0.3rem; }
.menu-usuario strong { display: block; font-size: 0.95rem; }
.menu-usuario span { display: block; font-size: 0.78rem; color: var(--texto-3); overflow-wrap: anywhere; }

.navegacao {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: var(--superficie);
  border-top: 1px solid var(--linha);
  padding: 0.35rem 0.5rem calc(0.35rem + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px rgba(20, 24, 28, 0.06);
}
.navegacao .navegacao-marca { display: none; }
.topo-marca.so-icone span { display: none; }
.navegacao ul { list-style: none; margin: 0 auto; padding: 0; max-width: 34rem; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0.25rem; }
.navegacao ul a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.15rem;
  min-height: 3.5rem; border-radius: 14px;
  color: var(--texto-3); font-size: 0.72rem; font-weight: 700; text-decoration: none;
}
.navegacao ul a:hover { color: var(--texto); background: var(--superficie-2); }
.navegacao ul a[aria-current="page"] { color: var(--jade); background: var(--jade-fundo); }
:root[data-tema-atual="escuro"] .navegacao ul a[aria-current="page"] { color: var(--menta); }

.conteudo-app { width: calc(100% - 2.5rem); max-width: 46rem; margin: 1.25rem auto 0; display: flex; flex-direction: column; gap: 1.1rem; }
.topo-app.com-cartao + .conteudo-app { margin-top: -2.5rem; position: relative; z-index: 1; }

.cartao-app {
  background: var(--superficie);
  border: 1px solid var(--linha);
  border-radius: 20px;
  padding: 1.1rem 1.15rem;
  box-shadow: 0 6px 20px rgba(20, 24, 28, 0.05);
  display: flex; flex-direction: column; gap: 0.9rem;
  min-width: 0;
}
.cartao-cabeca { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.cartao-cabeca h2 { font-size: 1.05rem; }
.cartao-cabeca a { font-size: 0.85rem; }

.saldo-topo { position: relative; z-index: 1; max-width: 46rem; margin: 0.9rem auto 0; }
.saldo-rotulo { font-size: 0.85rem; font-weight: 600; color: var(--faixa-suave); }
.saldo-linha { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.15rem; }
.saldo-valor { font: 700 2.35rem var(--fonte-numero); letter-spacing: -0.02em; line-height: 1.1; color: #FFFFFF; overflow-wrap: anywhere; }
.saldo-valor.negativo { color: #FF9C92; }
.saldo-olho {
  flex: none; width: 2.6rem; height: 2.6rem; border: 0; border-radius: 12px;
  display: grid; place-items: center; cursor: pointer;
  background: var(--faixa-botao); color: var(--faixa-texto);
}
.saldo-olho:hover { background: var(--faixa-botao-hover); }
.saldo-olho .olho-fechado { display: none; }
.saldo-olho[aria-pressed="true"] .olho-aberto { display: none; }
.saldo-olho[aria-pressed="true"] .olho-fechado { display: block; }
.saldo-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.85rem; }
.saldo-chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.7rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08); color: #DDE3E8;
  font-size: 0.8rem; font-weight: 600;
}
.saldo-chip b { font-family: var(--fonte-numero); font-weight: 700; color: #FFFFFF; }
.saldo-chip.menta b { color: var(--menta); }

.previsto { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.previsto p { font-size: 0.85rem; color: var(--texto-3); font-weight: 600; }
.previsto strong { font: 700 1.35rem var(--fonte-numero); white-space: nowrap; }
.previsto small { display: block; font-size: 0.78rem; color: var(--texto-3); font-weight: 500; margin-top: 0.1rem; }
.oculto-valor { letter-spacing: 0.08em; }

.alerta {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.8rem 0.9rem;
  border-radius: 16px;
  border: 1px solid var(--aviso-borda);
  background: var(--aviso-fundo);
  color: var(--texto);
}
.alerta.vencido { border-color: var(--erro-borda); background: var(--erro-fundo); }
.alerta-icone { flex: none; width: 2.4rem; height: 2.4rem; border-radius: 12px; display: grid; place-items: center; background: var(--superficie); color: var(--aviso); }
.alerta.vencido .alerta-icone { color: var(--erro); }
.alerta-texto { flex: 1; min-width: 0; }
.alerta-texto strong { display: block; font-size: 0.95rem; }
.alerta-texto span { display: block; font-size: 0.8rem; color: var(--texto-3); }
.alerta a { font-size: 0.88rem; white-space: nowrap; }

.progresso { height: 0.55rem; border-radius: 999px; background: var(--superficie-2); overflow: hidden; border: 1px solid var(--linha); }
.progresso span { display: block; height: 100%; border-radius: 999px; background: var(--jade); transition: width 0.4s ease; }
.resumo-numeros { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.resumo-numeros div { min-width: 0; }
.resumo-numeros dt { font-size: 0.74rem; font-weight: 700; color: var(--texto-3); }
.resumo-numeros dd { margin: 0.1rem 0 0; font: 700 clamp(0.82rem, 3.4vw, 1rem) var(--fonte-numero); white-space: nowrap; }
.resumo-numeros .falta dd { color: var(--aviso); }

.lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.lista > li + li { border-top: 1px solid var(--linha); }
.linha-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 0; min-width: 0; }
.linha-item.clicavel { cursor: pointer; border-radius: 12px; margin: 0 -0.5rem; padding: 0.7rem 0.5rem; }
.linha-item.clicavel:hover { background: var(--superficie-2); }
.linha-texto { flex: 1; min-width: 0; }
.linha-texto strong { display: block; font-size: 0.98rem; font-weight: 700; overflow-wrap: anywhere; }
.linha-texto span { display: block; font-size: 0.8rem; color: var(--texto-3); }
.linha-texto span.atrasado { color: var(--erro); font-weight: 600; }
.linha-valor { text-align: right; font: 700 1rem var(--fonte-numero); white-space: nowrap; }
.linha-valor small { display: block; font: 600 0.72rem var(--fonte); margin-top: 0.15rem; }
.linha-botao { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-align: left; flex: 1; min-width: 0; display: flex; align-items: center; gap: 0.75rem; cursor: pointer; }
.linha-botao:focus-visible { outline-offset: 4px; }

.pilula { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.15rem 0.55rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700; white-space: nowrap; }
.pilula.pago, .pilula.recebido, .pilula.aberta { background: var(--jade-fundo); color: var(--sucesso); }
.pilula.a-pagar, .pilula.a-receber { background: var(--aviso-fundo); color: var(--aviso); }
.pilula.vencido { background: var(--erro-fundo); color: var(--erro); }
.pilula.concluida, .pilula.arquivada { background: var(--superficie-2); color: var(--texto-3); border: 1px solid var(--linha); }

.marcar {
  flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--borda); background: var(--superficie); color: transparent; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.marcar:hover { border-color: var(--jade); color: var(--jade); }
.marcar[aria-pressed="true"] { background: var(--jade); border-color: var(--jade); color: #FFFFFF; }
.marcar[disabled] { cursor: default; opacity: 0.55; }

.botao.pequeno { min-height: 2.6rem; padding: 0 0.95rem; font-size: 0.9rem; border-radius: 12px; }
.botao.perigo { background: transparent; color: var(--erro); border-color: var(--erro-borda); }
.botao.perigo:hover { background: var(--erro-fundo); color: var(--erro); }
.botao.suave { background: var(--superficie-2); color: var(--texto); border-color: var(--linha); }
.botao.suave:hover { background: var(--linha); color: var(--texto); }
.botao-novo {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3.5rem; border-radius: 18px;
  border: 2px dashed var(--borda); background: transparent;
  color: var(--link); font: 800 1rem var(--fonte); text-decoration: none; cursor: pointer;
}
.botao-novo:hover { border-color: var(--jade); background: var(--jade-fundo); color: var(--link-hover); }
.acoes { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.acoes > * { flex: 1 1 10rem; }

.segmentado { display: grid; grid-template-columns: 1fr 1fr; gap: 0.3rem; padding: 0.3rem; border-radius: 14px; background: var(--superficie-2); border: 1px solid var(--linha); }
.segmentado label { position: relative; }
.segmentado input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmentado span { display: flex; align-items: center; justify-content: center; min-height: 2.6rem; border-radius: 10px; font-weight: 700; font-size: 0.9rem; color: var(--texto-3); }
.segmentado input:checked + span { background: var(--superficie); color: var(--texto); box-shadow: 0 2px 8px rgba(20, 24, 28, 0.08); }
.segmentado input:focus-visible + span { outline: 3px solid var(--foco); }

.campo select, .campo input[type="date"], .campo input[type="month"] {
  width: 100%; min-height: var(--alvo); padding: 0 0.85rem;
  border: 1px solid var(--borda); border-radius: 12px;
  background: var(--superficie); color: var(--texto); font: 500 1rem var(--fonte);
}
.campo-ajuda { font-size: 0.8rem; color: var(--texto-3); }
.previa-valor { font: 700 0.95rem var(--fonte-numero); color: var(--sucesso); }
.previa-valor:empty { display: none; }
.duas-colunas { display: grid; grid-template-columns: 1fr; gap: 0.9rem; }
@media (min-width: 30rem) { .duas-colunas { grid-template-columns: 1fr 1fr; } }

.seletor-mes { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.seletor-mes button { width: 2.9rem; height: 2.9rem; border-radius: 12px; border: 1px solid var(--linha); background: var(--superficie); color: var(--texto); display: grid; place-items: center; cursor: pointer; }
.seletor-mes button:hover { background: var(--superficie-2); }
.seletor-mes strong { font-size: 1.05rem; text-align: center; }

.opcao-cartao { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.9rem; border-radius: 16px; border: 2px solid var(--linha); cursor: pointer; }
.opcao-cartao:has(input:checked) { border-color: var(--jade); background: var(--jade-fundo); }
.opcao-cartao input { margin-top: 0.3rem; width: 1.2rem; height: 1.2rem; accent-color: var(--jade); flex: none; }
.opcao-cartao strong { display: block; }
.opcao-cartao span { display: block; font-size: 0.85rem; color: var(--texto-3); }
.etiquetas { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.5rem; }
.etiquetas li { list-style: none; padding: 0.2rem 0.55rem; border-radius: 999px; background: var(--superficie); border: 1px solid var(--linha); font-size: 0.78rem; font-weight: 600; color: var(--texto-2); }
.etiquetas { padding: 0; margin-bottom: 0; }

.vazio { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.6rem; padding: 1rem 0.5rem; }
.vazio img { width: 5rem; height: auto; }
.vazio p { color: var(--texto-3); font-size: 0.92rem; max-width: 26rem; }

.esqueleto { height: 1rem; border-radius: 8px; background: linear-gradient(90deg, var(--superficie-2), var(--linha), var(--superficie-2)); background-size: 200% 100%; animation: brilhar 1.2s linear infinite; }
@keyframes brilhar { to { background-position: -200% 0; } }

dialog.janela {
  width: min(100% - 1.5rem, 30rem);
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  border: 1px solid var(--linha);
  border-radius: 22px;
  background: var(--superficie);
  color: var(--texto);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
dialog.janela::backdrop { background: rgba(17, 19, 21, 0.55); }
.janela form, .janela .janela-corpo { padding: 1.35rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: 0.9rem; }
.janela-cabeca { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.janela-cabeca p { color: var(--texto-3); font-size: 0.9rem; margin-top: 0.2rem; }
.fechar { flex: none; width: 2.6rem; height: 2.6rem; border-radius: 12px; border: 0; background: var(--superficie-2); color: var(--texto-2); display: grid; place-items: center; cursor: pointer; margin: -0.3rem -0.3rem 0 0; }
.fechar:hover { color: var(--texto); background: var(--linha); }
@media (max-width: 40rem) {
  dialog.janela { width: 100%; max-width: none; margin: auto 0 0; border-radius: 22px 22px 0 0; padding-bottom: env(safe-area-inset-bottom); }
}

.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-altura) + 1rem + env(safe-area-inset-bottom)); z-index: 50;
  transform: translate(-50%, 1rem); opacity: 0; pointer-events: none;
  width: max-content; max-width: calc(100% - 2rem);
  display: flex; align-items: center; gap: 0.9rem;
  padding: 0.75rem 0.9rem 0.75rem 1.1rem;
  border-radius: 14px;
  background: #23282E; color: #FFFFFF;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
  font-size: 0.92rem; font-weight: 600;
  transition: opacity 0.2s, transform 0.2s;
}
.toast.visivel { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast.erro { background: #8E1F16; }
.toast button { border: 0; background: rgba(255, 255, 255, 0.12); color: #A8F0D8; font: 800 0.88rem var(--fonte); padding: 0.45rem 0.7rem; border-radius: 10px; cursor: pointer; }

@media (min-width: 64rem) {
  .grade-inicio { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.1rem; align-items: start; }
  .grade-inicio > div { display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; }
}

.formulario { display: flex; flex-direction: column; gap: 0.9rem; }
.resumo-numeros.duas { grid-template-columns: 1fr 1fr; }
.lista-alertas { display: flex; flex-direction: column; gap: 0.6rem; }
.lista-alertas:empty { display: none; }
.acoes-coluna { display: flex; flex-direction: column; gap: 0.6rem; }
.linha-link, .linha-link:hover { color: inherit; text-decoration: none; font-weight: inherit; }

.navegacao ul a span { white-space: nowrap; }
@media (max-width: 26rem) { .navegacao ul a { font-size: 0.66rem; } }

.chave-linha { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.25rem; }
.chave-linha > div { min-width: 0; }
.chave-linha strong { display: block; font-size: 0.98rem; }
.chave-linha span.ajuda { display: block; font-size: 0.8rem; color: var(--texto-3); }
.chave { position: relative; flex: none; width: 3.25rem; height: 1.9rem; }
.chave input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.chave span { position: absolute; inset: 0; border-radius: 999px; background: var(--borda); transition: background 0.15s; }
.chave span::after { content: ""; position: absolute; top: 0.2rem; left: 0.2rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 3px rgba(0,0,0,0.25); transition: transform 0.15s; }
.chave input:checked + span { background: var(--jade); }
.chave input:checked + span::after { transform: translateX(1.35rem); }
.chave input:focus-visible + span { outline: 3px solid var(--foco); outline-offset: 2px; }

.linha-config { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; min-height: 3.25rem; width: 100%; padding: 0; border: 0; background: none; color: var(--texto); font: 600 0.98rem var(--fonte); text-align: left; text-decoration: none; cursor: pointer; }
.linha-config:hover { color: var(--texto); }
.linha-config small { font-size: 0.82rem; color: var(--texto-3); font-weight: 500; }
.linha-config.perigo { color: var(--erro); }
.grupo-config { display: flex; flex-direction: column; }
.grupo-config > * + * { border-top: 1px solid var(--linha); }

.matricula { display: flex; gap: 0.5rem; align-items: center; }
.matricula output { flex: 1; min-width: 0; min-height: 3rem; display: flex; align-items: center; padding: 0 0.8rem; border-radius: 12px; border: 1px solid var(--borda); background: var(--superficie-2); font: 700 1rem var(--fonte-numero); letter-spacing: 0.05em; overflow-wrap: anywhere; }
.botao-icone { flex: none; width: 3rem; height: 3rem; border-radius: 12px; border: 1px solid var(--borda); background: var(--superficie); color: var(--texto-2); display: grid; place-items: center; cursor: pointer; }
.botao-icone:hover { background: var(--superficie-2); color: var(--texto); }
.botao-icone.primario { background: var(--jade); border-color: var(--jade); color: #FFFFFF; }
.botao-icone .olho-fechado { display: none; }
.botao-icone[aria-pressed="true"] .olho-aberto { display: none; }
.botao-icone[aria-pressed="true"] .olho-fechado { display: block; }

.joice-dica { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.8rem 0.9rem; border-radius: 16px; background: var(--joice-fundo); color: var(--texto); font-size: 0.88rem; line-height: 1.45; }
.joice-dica img { flex: none; width: 2.6rem; height: auto; }

.destaque-numero { display: flex; flex-direction: column; gap: 0.1rem; }
.destaque-numero span { font-size: 0.85rem; font-weight: 700; color: var(--texto-3); }
.destaque-numero strong { font: 700 2rem var(--fonte-numero); letter-spacing: -0.02em; color: var(--sucesso); }
.destaque-numero strong.negativo { color: var(--erro); }
.destaque-numero small { font-size: 0.82rem; color: var(--texto-3); }

.botoes-rapidos { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); gap: 0.55rem; }
.botao-rapido {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.15rem;
  min-height: 4.2rem; padding: 0.6rem 0.75rem; border-radius: 16px;
  border: 1px solid var(--linha); background: var(--superficie-2); color: var(--texto);
  font: 700 0.95rem var(--fonte); text-align: left; cursor: pointer;
}
.botao-rapido:hover { border-color: var(--jade); background: var(--jade-fundo); }
.botao-rapido small { font: 700 0.85rem var(--fonte-numero); color: var(--sucesso); }
.botao-rapido.novo { align-items: center; justify-content: center; border-style: dashed; border-width: 2px; color: var(--link); background: transparent; }
.editando .botao-rapido:not(.novo) { border-color: var(--aviso-borda); background: var(--aviso-fundo); }

.barras { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.barras li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.2rem 0.75rem; font-size: 0.88rem; }
.barras li span:first-child { font-weight: 700; }
.barras li span:nth-child(2) { font: 700 0.9rem var(--fonte-numero); }
.barras .barra { grid-column: 1 / -1; height: 0.5rem; border-radius: 999px; background: var(--superficie-2); overflow: hidden; }
.barras .barra i { display: block; height: 100%; border-radius: 999px; background: var(--jade); }

.filtros { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.6rem; }
@media (min-width: 34rem) { .filtros { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.espaco { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 0.9rem; }
.espaco-texto { margin: 0; font-size: 0.85rem; font-weight: 600; color: var(--texto-2); }
.espaco-barra { height: 0.5rem; border-radius: 999px; background: var(--superficie-2); border: 1px solid var(--linha); overflow: hidden; }
.espaco-barra span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--jade); transition: width 0.3s; }
.espaco.quase-cheio .espaco-barra span { background: var(--erro); }
.espaco-alerta { margin: 0; font-size: 0.82rem; font-weight: 600; color: var(--erro); }
.aviso-manutencao { margin: 0; padding: 0.85rem 1rem; border-radius: 14px; border: 1px solid var(--erro-borda); background: var(--erro-fundo); color: var(--erro); font-size: 0.9rem; font-weight: 600; }
.mes-pdf { display: flex; flex-direction: column; gap: 0.6rem; }
.mes-pdf-titulo { margin: 0; font-size: 1rem; }
.mes-pdf-texto { margin: 0; font-size: 0.88rem; color: var(--texto-2); }
.mes-pdf-lembrete { margin: 0; padding: 0.7rem 0.9rem; border-radius: 12px; background: var(--jade-fundo); color: var(--texto); font-size: 0.88rem; font-weight: 600; }
.mes-pdf-linha { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.mes-pdf-linha select { flex: 1 1 12rem; min-width: 0; min-height: 3rem; padding: 0 0.85rem; border: 1px solid var(--borda); border-radius: 12px; background: var(--superficie); color: var(--texto); font: 500 0.98rem var(--fonte); }
.mes-pdf-linha .botao { flex: 0 1 auto; }
.mes-pdf-apagar { display: flex; flex-direction: column; gap: 0.6rem; padding-top: 0.6rem; border-top: 1px solid var(--linha); }
.mes-pdf-guardou { margin: 0; font-size: 0.88rem; color: var(--texto-2); outline: none; }
.filtros input, .filtros select { width: 100%; min-height: 3rem; padding: 0 0.85rem; border: 1px solid var(--borda); border-radius: 12px; background: var(--superficie); color: var(--texto); font: 500 0.98rem var(--fonte); }

.grade-cartoes { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0.8rem; }
.cartao-clicavel { display: flex; flex-direction: column; gap: 0.6rem; padding: 1rem; border-radius: 18px; border: 1px solid var(--linha); background: var(--superficie); color: var(--texto); text-align: left; font: inherit; cursor: pointer; box-shadow: 0 6px 20px rgba(20, 24, 28, 0.05); }
.cartao-clicavel:hover { border-color: var(--jade); }
.cartao-topo { display: flex; align-items: center; gap: 0.7rem; }
.icone-tipo { flex: none; width: 2.6rem; height: 2.6rem; border-radius: 12px; display: grid; place-items: center; background: var(--jade-fundo); color: var(--jade); }
:root[data-tema-atual="escuro"] .icone-tipo { color: var(--menta); }
.cartao-clicavel .linha-texto strong { font-size: 1rem; }
.valor-grande { font: 700 1.5rem var(--fonte-numero); letter-spacing: -0.01em; }

.previa-arquivo { border-radius: 16px; border: 1px solid var(--linha); background: var(--superficie-2); overflow: hidden; display: grid; place-items: center; min-height: 10rem; }
.previa-arquivo img { max-width: 100%; max-height: 22rem; object-fit: contain; }
.arquivo-escolher { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; padding: 1.1rem; border-radius: 16px; border: 2px dashed var(--borda); color: var(--texto-2); text-align: center; cursor: pointer; font-weight: 600; font-size: 0.92rem; }
.arquivo-escolher:hover { border-color: var(--jade); background: var(--jade-fundo); }
.arquivo-escolher input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.arquivo-escolher:focus-within { outline: 3px solid var(--foco); }
.dados-lista { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.4rem 1rem; margin: 0; font-size: 0.92rem; }
.dados-lista dt { color: var(--texto-3); font-weight: 600; }
.dados-lista dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }

.chat { display: flex; flex-direction: column; gap: 0.75rem; min-height: 40vh; }
.balao { max-width: 85%; padding: 0.75rem 0.95rem; border-radius: 18px; font-size: 0.96rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.balao.joice { align-self: flex-start; background: var(--joice-fundo); color: var(--texto); border-bottom-left-radius: 6px; }
.balao.usuario { align-self: flex-end; background: var(--jade); color: #FFFFFF; border-bottom-right-radius: 6px; }
.balao.digitando { color: var(--texto-3); font-style: italic; }
.joice-cabeca { display: flex; align-items: center; gap: 0.7rem; }
.joice-cabeca img { width: 2.6rem; height: auto; }
.joice-cabeca strong { display: block; }
.joice-cabeca span { display: block; font-size: 0.78rem; color: var(--texto-3); }
.sugestoes { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.sugestoes button { min-height: 2.5rem; padding: 0 0.85rem; border-radius: 999px; border: 1px solid var(--linha); background: var(--superficie); color: var(--texto-2); font: 600 0.85rem var(--fonte); cursor: pointer; }
.sugestoes button:hover { border-color: var(--jade); color: var(--texto); }
.envio { position: sticky; bottom: calc(var(--nav-altura) + 0.75rem + env(safe-area-inset-bottom)); display: flex; gap: 0.5rem; padding: 0.5rem; border-radius: 18px; background: var(--superficie); border: 1px solid var(--linha); box-shadow: 0 10px 30px rgba(20, 24, 28, 0.12); }
.envio input { flex: 1; min-width: 0; min-height: 3rem; border: 0; background: transparent; color: var(--texto); font: 500 1rem var(--fonte); padding: 0 0.6rem; }
.envio input:focus { outline: none; }
@media (min-width: 64rem) { .envio { bottom: 1rem; } }

.codigos { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; padding: 0.8rem; border-radius: 14px; background: var(--superficie-2); font: 700 0.95rem var(--fonte-numero); letter-spacing: 0.05em; }
.contagem { font: 700 1.6rem var(--fonte-numero); color: var(--sucesso); }
.passos-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.9rem; color: var(--texto-2); }
.passos-lista li { display: flex; gap: 0.6rem; align-items: center; }
.passos-lista li::before { content: ""; flex: none; width: 1.3rem; height: 1.3rem; border-radius: 50%; border: 2px solid var(--borda); }
.passos-lista li.ok::before { border-color: var(--jade); background: var(--jade) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }

.calc-flutuante {
  position: fixed; z-index: 21;
  right: max(1rem, env(safe-area-inset-right));
  bottom: calc(5rem + env(safe-area-inset-bottom));
  width: 3.5rem; height: 3.5rem; border-radius: 50%; border: 0;
  display: grid; place-items: center; cursor: pointer;
  background: var(--faixa); color: #FFFFFF;
  box-shadow: 0 0 0 3px var(--menta), 0 12px 28px rgba(20, 24, 28, 0.3);
}
.calc-flutuante:hover { transform: translateY(-1px); }
.calc-flutuante:focus-visible { outline: 3px solid var(--jade); outline-offset: 4px; }
.valor-com-calc { display: flex; gap: 0.5rem; align-items: stretch; }
.valor-com-calc input { flex: 1; min-width: 0; }
.calc-campo { flex: none; width: 3rem; border-radius: 12px; border: 1px solid var(--linha); background: var(--superficie-2); color: var(--texto-2); display: grid; place-items: center; cursor: pointer; }
.calc-campo:hover { color: var(--jade); border-color: var(--jade); }
.calc-campo svg { width: 20px; height: 20px; }
dialog.calculadora { width: min(100% - 1.5rem, 24rem); }
.calc-visor { background: var(--superficie-2); border: 1px solid var(--linha); border-radius: 16px; padding: 0.75rem 1rem; text-align: right; display: flex; flex-direction: column; gap: 0.15rem; min-height: 6.5rem; justify-content: flex-end; }
.calc-anterior { margin: 0; font-size: 0.8rem; color: var(--texto-3); min-height: 1.1em; overflow-wrap: anywhere; }
.calc-conta { margin: 0; font-size: 1rem; color: var(--texto-2); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.calc-total { margin: 0; font: 700 2.2rem/1.1 var(--fonte-numero); color: var(--texto); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.calc-teclas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; }
.calc-tecla { min-height: 3.4rem; border-radius: 14px; border: 1px solid var(--linha); background: var(--superficie); color: var(--texto); font: 700 1.35rem var(--fonte-numero); cursor: pointer; display: grid; place-items: center; }
.calc-tecla:hover { background: var(--superficie-2); }
.calc-tecla:active { transform: scale(0.97); }
.calc-tecla.acao { background: var(--superficie-2); color: var(--texto-2); font-size: 1.1rem; }
.calc-tecla.operador { background: var(--jade-fundo); color: var(--jade); font-size: 1.5rem; }
:root[data-tema-atual="escuro"] .calc-tecla.operador { color: var(--menta); }
.calc-tecla.zero { grid-column: span 2; }
.calc-tecla.igual { background: var(--jade); color: #FFFFFF; border-color: var(--jade); font-size: 1.6rem; }
.calc-acoes { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.calc-acoes:has([data-calc-usar][hidden]) { grid-template-columns: 1fr; }
@media (min-width: 64rem) { .calc-flutuante { bottom: 1.75rem; right: 1.75rem; } }
body[data-titulo="titulo.joice"] .calc-flutuante { display: none; }
@media (max-width: 63.99rem) { body:has(.calc-flutuante) .conteudo-app { padding-bottom: 4.5rem; } }

.joice-leitura { display: grid; gap: 0.6rem; padding: 0.85rem 1rem; border-radius: 14px; background: var(--joice-fundo); border: 1px solid color-mix(in srgb, var(--joice) 25%, transparent); }
.joice-leitura .chave-linha strong { color: var(--joice); }
.joice-leitura .chave input:checked + span { background: var(--joice); }
.joice-status { margin: 0; font-size: 0.9rem; font-weight: 600; color: var(--texto-2); display: flex; align-items: center; gap: 0.5rem; }
.joice-status.lendo::before { content: ""; flex: none; width: 1rem; height: 1rem; border-radius: 50%; border: 2px solid var(--joice); border-right-color: transparent; animation: girar-joice 0.8s linear infinite; }
.joice-status.pronto { color: var(--joice); }
.joice-status.aviso { color: var(--erro); }
.selo-joice { display: inline-block; margin-left: 0.4rem; padding: 0.05rem 0.45rem; border-radius: 999px; background: var(--joice); color: var(--superficie); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.03em; vertical-align: middle; }
.preenchido-joice { border-color: var(--joice) !important; background: var(--joice-fundo) !important; }
.joice-ocupada [type="submit"] { opacity: 0.6; }
@keyframes girar-joice { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .joice-status.lendo::before { animation: none; } }

.tut-fundo { position: fixed; inset: 0; z-index: 90; }
.tut-foco { position: fixed; z-index: 91; border-radius: 16px; box-shadow: 0 0 0 9999px rgba(15, 18, 22, 0.62); outline: 3px solid var(--joice); outline-offset: 2px; pointer-events: none; transition: top 0.25s, left 0.25s, width 0.25s, height 0.25s; }
.tut-foco.sem-alvo { top: 50%; left: 50%; width: 0; height: 0; outline: 0; }
.tut-balao { position: fixed; z-index: 92; width: min(22rem, calc(100vw - 2rem)); padding: 1.1rem 1.15rem 1rem; border-radius: 18px; background: var(--superficie); color: var(--texto); border: 2px solid var(--joice); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3); display: grid; gap: 0.75rem; transition: top 0.25s, left 0.25s; }
.tut-topo { display: flex; align-items: center; gap: 0.75rem; }
.tut-topo img { flex: none; }
.tut-contador { margin: 0; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; color: var(--joice); }
.tut-texto { margin: 0; font-size: 1.02rem; line-height: 1.5; }
.tut-acoes { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.tut-acoes .botao { min-height: 2.75rem; padding-inline: 1rem; }
.tut-espaco { flex: 1; }
.tut-aberto .calc-flutuante { z-index: 89; }
@media (prefers-reduced-motion: reduce) { .tut-foco, .tut-balao { transition: none; } }

.destaque-inicio { display: flex; flex-direction: column; gap: 0.15rem; }
.destaque-inicio strong { font-family: var(--fonte-numero); font-size: 1.65rem; line-height: 1.15; letter-spacing: -0.01em; }
.destaque-inicio span { font-size: 0.88rem; color: var(--texto-3); }
.destaque-inicio.alerta-texto-erro strong { color: var(--erro); font-family: var(--fonte); font-size: 1.15rem; }
.progresso.atencao span { background: var(--aviso); }
.progresso.estourado span { background: var(--erro); }
.lista-mini { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.lista-mini li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: baseline; gap: 0.75rem; padding: 0.55rem 0; border-top: 1px solid var(--linha); font-size: 0.92rem; }
.lista-mini li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lista-mini li small { color: var(--texto-3); font-size: 0.8rem; }
.lista-metas { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.lista-metas a { display: flex; flex-direction: column; gap: 0.4rem; padding: 0.7rem 0.8rem; margin: 0 -0.8rem; border-radius: var(--raio); }
.lista-metas a:hover { background: var(--superficie-2); }
.lista-metas small { font-size: 0.8rem; color: var(--texto-3); }
.meta-linha { display: flex; justify-content: space-between; gap: 0.75rem; font-size: 0.95rem; }
.meta-linha span { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }


.icone-redondo { flex: none; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 14px; background: var(--superficie-2); color: var(--texto-2); }
.extrato { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.extrato li + li { border-top: 1px solid var(--linha); }
.extrato-linha { display: flex; align-items: center; gap: 0.85rem; padding: 0.7rem 0; color: var(--texto); text-decoration: none; font-weight: inherit; }
.extrato-linha:hover { color: var(--texto); }
.extrato-linha:hover strong { text-decoration: underline; }
.extrato-texto { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.extrato-texto strong { font-size: 0.97rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.extrato-texto small { font-size: 0.82rem; color: var(--texto-3); }
.extrato-direita { display: flex; flex-direction: column; align-items: flex-end; gap: 0.2rem; }
.extrato-valor { font-family: var(--fonte-numero); font-size: 1rem; white-space: nowrap; }
.extrato-valor.saida { color: var(--texto); }
.extrato li.vencida .icone-redondo { background: var(--erro-fundo); color: var(--erro); }
.extrato li.perto .icone-redondo { background: var(--aviso-fundo); color: var(--aviso); }
.extrato li.vencida small { color: var(--erro); }
.mes-resumo { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; font-size: 0.88rem; color: var(--texto-3); }
.mes-resumo b { color: var(--aviso); font-family: var(--fonte-numero); }
.destaque-inicio { display: flex; flex-direction: column; gap: 0.15rem; }
.destaque-inicio strong { font-family: var(--fonte-numero); font-size: 1.75rem; line-height: 1.15; letter-spacing: -0.01em; color: var(--jade); }
:root[data-tema-atual="escuro"] .destaque-inicio strong { color: var(--menta); }
.destaque-inicio span { font-size: 0.85rem; color: var(--texto-3); }
.destaque-inicio.alerta-texto-erro strong { color: var(--erro); font-family: var(--fonte); font-size: 1.15rem; }
.progresso.atencao span { background: var(--aviso); }
.progresso.estourado span { background: var(--erro); }
.meta-linha { display: flex; justify-content: space-between; gap: 0.75rem; font-size: 0.92rem; }
.meta-linha span { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.barras-categoria { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.85rem; }
.barras-categoria li { display: flex; align-items: center; gap: 0.75rem; }
.barras-categoria li > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.barras-categoria .icone-redondo { width: 2.3rem; height: 2.3rem; border-radius: 12px; }

.atalhos-cartao { padding: 1rem 0.5rem; }
.atalhos-redondos { display: flex; gap: 0.25rem; overflow-x: auto; scrollbar-width: none; padding: 0 0.5rem; scroll-snap-type: x proximity; }
.atalhos-redondos::-webkit-scrollbar { display: none; }
.atalho-redondo { flex: 1 0 5.4rem; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding: 0.3rem 0.2rem; border: 0; background: none; cursor: pointer; color: var(--texto-2); font: 700 0.8rem/1.25 var(--fonte); text-align: center; text-decoration: none; }
.atalho-redondo:hover { color: var(--texto); }
.atalho-redondo .icone-redondo { width: 3.4rem; height: 3.4rem; border-radius: 50%; background: var(--jade-fundo); color: var(--jade); transition: transform 0.15s; }
:root[data-tema-atual="escuro"] .atalho-redondo .icone-redondo { color: var(--menta); }
.atalho-redondo.joice .icone-redondo { background: var(--joice-fundo); color: var(--joice); }
.atalho-redondo:hover .icone-redondo { transform: translateY(-2px); }

.banners { display: flex; gap: 0.85rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -1.25rem; padding: 0 1.25rem; }
.banners::-webkit-scrollbar { display: none; }
.banner { flex: 0 0 82%; scroll-snap-align: center; position: relative; overflow: hidden; min-height: 8.5rem; padding: 1.1rem 1.2rem; border-radius: 20px; color: #FFFFFF; text-decoration: none; display: flex; flex-direction: column; justify-content: space-between; gap: 0.8rem; }
.banner:hover { color: #FFFFFF; }
.banner.roxo { background: linear-gradient(120deg, #5B3FBF, #8A6FE6); }
.banner.verde { background: linear-gradient(120deg, #0B6B52, #22AE84); }
.banner.escuro { background: linear-gradient(120deg, #23282E, #3E4851); }
.banner-texto { display: flex; flex-direction: column; gap: 0.3rem; max-width: 72%; position: relative; z-index: 1; }
.banner-texto strong { font-size: 1.08rem; line-height: 1.25; }
.banner-texto span { font-size: 0.85rem; opacity: 0.92; }
.banner-botao { align-self: flex-start; position: relative; z-index: 1; padding: 0.4rem 0.85rem; border-radius: 999px; background: rgba(255, 255, 255, 0.2); font-weight: 800; font-size: 0.85rem; }
.banner img { position: absolute; right: 0.6rem; bottom: 0; height: 88%; width: auto; }
.duas-col { display: flex; flex-direction: column; gap: 1.1rem; }

.widget-joice { display: flex; align-items: center; gap: 0.9rem; padding: 1rem 1.1rem; border-radius: 20px; background: var(--joice-fundo); color: var(--texto); text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.widget-joice:hover { color: var(--texto); }
.widget-joice span { flex: 1; }
.widget-joice b { color: var(--joice); white-space: nowrap; }
.widget-dica { display: flex; gap: 0.85rem; align-items: flex-start; padding: 1rem 1.1rem; border-radius: 20px; background: var(--joice-fundo); }
.widget-dica strong { display: block; color: var(--joice); font-size: 0.92rem; }
.widget-dica p { margin: 0.2rem 0 0; font-size: 0.9rem; color: var(--texto-2); line-height: 1.45; }
.metas-aneis { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.8rem; }
.metas-aneis li { display: flex; align-items: center; gap: 0.85rem; }
.metas-aneis strong { display: block; font-size: 0.95rem; }
.metas-aneis small { color: var(--texto-3); font-size: 0.82rem; }
.anel { position: relative; flex: none; width: 3.5rem; height: 3.5rem; display: grid; place-items: center; }
.anel svg { position: absolute; inset: 0; }
.anel b { position: relative; font-size: 0.74rem; font-weight: 800; }
.resumo-lateral { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem 1rem; }
.resumo-lateral dt { font-size: 0.8rem; color: var(--texto-3); font-weight: 600; }
.resumo-lateral dd { margin: 0.1rem 0 0; font: 700 1.05rem var(--fonte-numero); }
.resumo-lateral .negativo, .saldo-resumo .negativo { color: var(--erro); }
.resumo-lateral .positivo, .saldo-resumo .positivo { color: var(--jade); }
:root[data-tema-atual="escuro"] .resumo-lateral .positivo, :root[data-tema-atual="escuro"] .saldo-resumo .positivo { color: var(--menta); }
.resumo-lateral .atencao { color: var(--aviso); }
.saudacao, .saldo-resumo, .menu-avatar { display: none; }
.lateral { display: none; }
.lateral.sempre { display: flex; flex-direction: column; gap: 1.1rem; }
.coluna-principal { display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; }
@media (prefers-reduced-motion: reduce) { .atalho-redondo .icone-redondo { transition: none; } .atalho-redondo:hover .icone-redondo { transform: none; } }

@media (min-width: 40rem) {
  .banner { flex-basis: 60%; }
}

@media (min-width: 64rem) {
  :root { --largura-app: 92rem; }
  .tela-app { padding-bottom: 3rem; padding-left: 0; }
  .navegacao {
    position: sticky; top: 0; left: auto; right: auto; bottom: auto; z-index: 40;
    height: 4.5rem; padding: 0 max(1.5rem, calc((100% - var(--largura-app)) / 2));
    display: flex; align-items: stretch; gap: 2.5rem;
    border-top: 0; border-bottom: 1px solid var(--linha); box-shadow: none;
  }
  .navegacao .navegacao-marca {
    display: flex; align-items: center; gap: 0.6rem; min-height: 0; padding: 0; background: none;
    color: var(--texto); font-size: 1.2rem; font-weight: 800; text-decoration: none;
  }
  .navegacao .navegacao-marca:hover { color: var(--texto); background: none; }
  .navegacao-marca img { width: 2.4rem; height: 2.4rem; }
  .navegacao-marca span span { color: var(--jade); }
  :root[data-tema-atual="escuro"] .navegacao-marca span span { color: var(--menta); }
  .navegacao ul { display: flex; grid-auto-flow: unset; max-width: none; margin: 0; gap: 0.25rem; }
  .navegacao li { display: flex; }
  .navegacao ul a { flex-direction: row; gap: 0.55rem; min-height: 0; padding: 0 1rem; border-radius: 0; font-size: 0.95rem; color: var(--texto-2); border-bottom: 3px solid transparent; margin-bottom: -1px; }
  .navegacao ul a svg { width: 20px; height: 20px; }
  .navegacao ul a:hover { background: none; color: var(--texto); }
  .navegacao ul a[aria-current="page"] { background: none; color: var(--jade); border-bottom-color: var(--jade); }
  :root[data-tema-atual="escuro"] .navegacao ul a[aria-current="page"] { color: var(--menta); border-bottom-color: var(--menta); }
  .navegacao .menu-conta { margin-left: auto; display: flex; align-items: center; }
  .navegacao #botao-menu { height: 2.9rem; padding: 0 0.9rem 0 0.35rem; border-radius: 999px; background: var(--superficie-2); color: var(--texto); border: 1px solid var(--linha); }
  .navegacao #botao-menu:hover { border-color: var(--jade); }
  .navegacao #botao-menu > svg { display: none; }
  .navegacao .menu-avatar { display: flex; align-items: center; gap: 0.6rem; font: 700 0.95rem var(--fonte); letter-spacing: 0; }
  .navegacao .menu-avatar b { width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; background: var(--jade); color: #FFFFFF; font-size: 0.95rem; }
  .toast { bottom: 1.5rem; left: 50%; }

  .topo-app { background: none; color: var(--texto); border-radius: 0; margin: 0; padding: 1.75rem max(1.5rem, calc((100% - var(--largura-app)) / 2)) 0; }
  .topo-app::before, .topo-app::after { display: none; }
  .topo-linha { max-width: none; min-height: 3rem; }
  .topo-titulo { color: var(--texto); font-size: 1.7rem; }
  .topo-marca { display: none; }
  .topo-app .botao-faixa { background: var(--superficie); color: var(--texto); border: 1px solid var(--linha); border-radius: 50%; width: 2.9rem; padding: 0; }
  .topo-app .botao-faixa:hover { border-color: var(--jade); background: var(--superficie); }
  .topo-sub { max-width: none; color: var(--texto-3); }

  .conteudo-app { width: auto; max-width: none; margin: 1.5rem max(1.5rem, calc((100% - var(--largura-app)) / 2)) 0; }
  .conteudo-app.com-lateral { display: grid; grid-template-columns: minmax(0, 1fr) 24rem; gap: 1.5rem; align-items: start; }
  .lateral, .lateral.sempre { display: flex; flex-direction: column; gap: 1.25rem; position: sticky; top: 6rem; }
  .cartao-app { padding: 1.35rem 1.5rem; border-radius: 22px; box-shadow: 0 1px 3px rgba(20, 24, 28, 0.05); }
  .grade-cartoes { grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }

  body[data-titulo="titulo.inicio"] .topo-app.com-cartao {
    display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-areas: "linha linha" "saldo resumo";
    padding-bottom: 0;
  }
  body[data-titulo="titulo.inicio"] .topo-linha { grid-area: linha; margin: 0 0 1.25rem; }
  .saudacao { display: block; }
  .saudacao h1 { font-size: 1.7rem; font-weight: 800; color: var(--texto); }
  .saudacao p { margin: 0.2rem 0 0; color: var(--texto-3); font-size: 0.95rem; }
  body[data-titulo="titulo.inicio"] .saldo-topo {
    grid-area: saldo; max-width: none; margin: 0; padding: 1.75rem 2rem; border-radius: 22px 0 0 22px;
    background: radial-gradient(120% 140% at 100% 0%, rgba(79, 209, 168, 0.35), transparent 55%), linear-gradient(135deg, #0F8A6A, #0A5743);
  }
  body[data-titulo="titulo.inicio"] .saldo-rotulo { color: rgba(255, 255, 255, 0.85); }
  body[data-titulo="titulo.inicio"] .saldo-valor { font-size: 2.9rem; }
  body[data-titulo="titulo.inicio"] .saldo-olho { background: rgba(255, 255, 255, 0.18); color: #FFFFFF; }
  body[data-titulo="titulo.inicio"] .saldo-chip { background: rgba(255, 255, 255, 0.16); color: #FFFFFF; }
  body[data-titulo="titulo.inicio"] .saldo-chip.menta b { color: #C9FBE9; }
  .saldo-resumo { grid-area: resumo; display: grid; grid-template-columns: 1fr 1fr; align-content: center; gap: 1.1rem 1.5rem; margin: 0; padding: 1.5rem 2rem; border-radius: 0 22px 22px 0; background: var(--superficie); border: 1px solid var(--linha); border-left: 0; }
  .saldo-resumo dt { font-size: 0.85rem; color: var(--texto-3); font-weight: 600; }
  .saldo-resumo dd { margin: 0.15rem 0 0; font: 700 1.45rem var(--fonte-numero); }
  body[data-titulo="titulo.inicio"] .topo-app.com-cartao + .conteudo-app { margin-top: 1.5rem; }
  body[data-titulo="titulo.inicio"] .previsto-cartao, body[data-titulo="titulo.inicio"] .lista-alertas { display: none; }
  .atalhos-cartao { padding: 1.25rem 1rem; }
  .atalhos-redondos { justify-content: space-between; overflow: visible; }
  .atalho-redondo { flex: 1 1 0; font-size: 0.85rem; }
  .atalho-redondo .icone-redondo { width: 3.75rem; height: 3.75rem; }
  .banners { display: grid; grid-template-columns: 1.4fr 1fr 1fr; overflow: visible; margin: 0; padding: 0; }
  .banner { min-height: 9rem; }
  .duas-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .coluna-principal { gap: 1.25rem; }
  body[data-titulo="titulo.config"] .coluna-principal { display: block; columns: 2; column-gap: 1.25rem; }
  body[data-titulo="titulo.config"] .coluna-principal > * { break-inside: avoid; margin-bottom: 1.25rem; }
}
@media (min-width: 64rem) and (max-width: 79.99rem) {
  .conteudo-app.com-lateral { grid-template-columns: minmax(0, 1fr) 20rem; }
  .banners { grid-template-columns: 1fr 1fr; }
  .banners .banner:last-child { display: none; }
}

.carregando-linha { position: relative; display: block; min-height: 5.5rem; margin: 0; overflow: hidden; border-radius: 14px; color: transparent; font-size: 0; user-select: none;
  background:
    linear-gradient(var(--superficie-2), var(--superficie-2)) 0 0.4rem / 55% 0.85rem no-repeat,
    linear-gradient(var(--superficie-2), var(--superficie-2)) 0 2.1rem / 85% 0.75rem no-repeat,
    linear-gradient(var(--superficie-2), var(--superficie-2)) 0 3.6rem / 70% 0.75rem no-repeat; }
.carregando-linha::before { display: none; }
.carregando-linha::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, color-mix(in srgb, var(--superficie) 70%, transparent) 50%, transparent 80%); transform: translateX(-100%); animation: brilho-carregando 1.3s ease-in-out infinite; }
.lista .carregando-linha, li > .carregando-linha { margin: 0.4rem 0; }
.grade-cartoes > .carregando-linha { grid-column: 1 / -1; min-height: 8rem; }
.widget.esqueleto { min-height: 9rem; }
@keyframes brilho-carregando { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .carregando-linha::after { animation: none; } }

.janela.confirmacao .janela-corpo { align-items: center; text-align: center; gap: 0.9rem; }
.confirmacao-selo { display: grid; place-items: center; width: 5rem; height: 5rem; border-radius: 50%; background: var(--jade-fundo); }
.confirmacao-circulo { stroke: var(--jade); stroke-width: 3; stroke-dasharray: 151; stroke-dashoffset: 151; animation: desenhar-traco 0.5s ease-out forwards; }
.confirmacao-check { stroke: var(--jade); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: desenhar-traco 0.35s 0.4s ease-out forwards; }
:root[data-tema-atual="escuro"] .confirmacao-circulo, :root[data-tema-atual="escuro"] .confirmacao-check { stroke: var(--menta); }
@keyframes desenhar-traco { to { stroke-dashoffset: 0; } }
.janela.confirmacao h2 { font-size: 1.4rem; }
.confirmacao-sub { margin: -0.4rem 0 0; color: var(--texto-2); font-size: 0.95rem; line-height: 1.45; max-width: 22rem; }
.confirmacao-dados { width: 100%; margin: 0.25rem 0 0.35rem; padding: 0.4rem 1rem; border-radius: 16px; background: var(--superficie-2); border: 1px dashed var(--borda); text-align: left; }
.confirmacao-dados div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; }
.confirmacao-dados div + div { border-top: 1px solid var(--linha); }
.confirmacao-dados dt { color: var(--texto-3); font-size: 0.88rem; font-weight: 600; }
.confirmacao-dados dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.janela.confirmacao .acoes-coluna { width: 100%; }
@media (prefers-reduced-motion: reduce) { .confirmacao-circulo, .confirmacao-check { animation: none; stroke-dashoffset: 0; } }

.saldo-moeda { flex: none; height: 2.6rem; padding: 0 2rem 0 0.8rem; border: 0; border-radius: 12px; background: var(--faixa-botao) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.7rem center; color: var(--faixa-texto); font: 800 0.9rem var(--fonte); appearance: none; cursor: pointer; }
.saldo-moeda:hover { background-color: var(--faixa-botao-hover); }
.saldo-moeda option { color: var(--texto); background: var(--superficie); }
.saldo-cotacao { margin: 0.6rem 0 0; font-size: 0.78rem; color: var(--faixa-suave); }
@media (min-width: 64rem) {
  body[data-titulo="titulo.inicio"] .saldo-moeda { background-color: rgba(255, 255, 255, 0.18); color: #FFFFFF; }
  body[data-titulo="titulo.inicio"] .saldo-cotacao { color: rgba(255, 255, 255, 0.8); }
}

.menu-lista { min-width: 17.5rem; padding: 0.5rem; border-radius: 20px; box-shadow: 0 20px 50px rgba(15, 18, 22, 0.22); }
.menu-usuario { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0.6rem 0.85rem; margin-bottom: 0.4rem; }
.menu-usuario-inicial { flex: none; width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--jade); color: #FFFFFF; font-size: 1.05rem; font-weight: 800; }
.menu-usuario > div { min-width: 0; }
.menu-usuario strong { font-size: 1rem; }
.menu-usuario span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal; }
.menu-lista button, .menu-lista a { gap: 0.8rem; min-height: 3rem; padding: 0 0.6rem; border-radius: 12px; font-size: 0.95rem; }
.menu-lista a svg, .menu-lista button svg { flex: none; box-sizing: content-box; width: 18px; height: 18px; padding: 0.4rem; border-radius: 10px; background: var(--superficie-2); color: var(--texto-2); }
.menu-lista a:hover svg, .menu-lista button:hover svg { background: var(--jade-fundo); color: var(--jade); }
:root[data-tema-atual="escuro"] .menu-lista a:hover svg, :root[data-tema-atual="escuro"] .menu-lista button:hover svg { color: var(--menta); }
.menu-lista .perigo svg { background: var(--erro-fundo); color: var(--erro); }
.menu-lista .perigo:hover svg { background: var(--erro-fundo); color: var(--erro); }
.menu-lista .tema-lua, .menu-lista .tema-sol { display: contents; }
:root[data-tema-atual="claro"] .menu-lista .tema-sol, :root[data-tema-atual="escuro"] .menu-lista .tema-lua { display: none; }
.menu-lista hr { margin: 0.35rem 0.4rem; }

.janela-inatividade .janela-corpo {
  text-align: center;
}

.janela-inatividade h2 {
  margin-top: 0.75rem;
}

.inativo-selo {
  width: 4rem;
  height: 4rem;
  margin: 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--info-fundo);
  color: var(--info);
  border: 1px solid var(--info-borda);
}

.janela-inatividade .acoes-coluna {
  margin-top: 1.25rem;
}

.ajuda-topo h2 {
  margin-bottom: 0.75rem;
}

.ajuda-busca {
  position: relative;
}

.ajuda-busca svg {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--texto-3);
  pointer-events: none;
}

.campo.ajuda-busca {
  margin: 0;
}

.campo.ajuda-busca input {
  width: 100%;
  padding-left: 2.75rem;
}

#ajuda-perguntas {
  display: flex;
  flex-direction: column;
  gap: inherit;
}

.ajuda-grupo h2 {
  margin-bottom: 0.25rem;
}

.ajuda-item {
  border-top: 1px solid var(--linha);
}

.ajuda-item:first-of-type {
  border-top: 0;
}

.ajuda-item summary {
  list-style: none;
  cursor: pointer;
  padding: 0.95rem 2rem 0.95rem 0;
  font-weight: 600;
  position: relative;
  border-radius: var(--raio);
}

.ajuda-item summary::-webkit-details-marker {
  display: none;
}

.ajuda-item summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--jade);
}

.ajuda-item[open] summary::after {
  content: "−";
}

.ajuda-item summary:focus-visible {
  outline: 3px solid var(--foco);
  outline-offset: 2px;
}

.ajuda-item p {
  margin: 0 0 1rem;
  color: var(--texto-3);
  line-height: 1.6;
}

.ajuda-nada {
  text-align: center;
  color: var(--texto-3);
  padding: 1.5rem 1rem;
}

.ajuda-contato {
  margin-top: 1rem;
  display: grid;
  gap: 0.35rem;
}

.ajuda-contato > span,
.ajuda-contato small {
  color: var(--texto-3);
}

.ajuda-contato-linha {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.ajuda-contato-linha a {
  font-weight: 700;
  font-size: 1.05rem;
  word-break: break-all;
}

.ajuda-golpe {
  margin-top: 1rem;
}

.novidades {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.novidade {
  position: relative;
  padding-left: 1.4rem;
  border-left: 2px solid var(--linha);
}

.novidade::before {
  content: "";
  position: absolute;
  left: -0.4rem;
  top: 0.35rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--linha);
}

.novidade.atual::before {
  background: var(--jade);
}

.novidade-cabeca {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  flex-wrap: wrap;
}

.novidade-cabeca span {
  color: var(--texto-3);
  font-size: 0.875rem;
}

.novidade ul {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
  color: var(--texto-3);
  line-height: 1.55;
}
.janela .texto-apoio { white-space: pre-line; }
