/* ==========================================================================
   COMPONENTES — App Finança
   Coordenadas verticais do cabeçalho seguem o mockup (viewport 390).
   ========================================================================== */

/* ---------------- Moldura do app ---------------- */
.app {
  position: relative;
  width: min(100%, var(--app-max));
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
}
@media (min-width: 600px) {
  .app { box-shadow: 0 0 0 1px var(--slate-100), 0 40px 90px -40px rgb(5 45 123 / .22); }
}

/* Elementos fixos centralizados na coluna do app */
.top, .dock, .fade-bottom, .toast {
  position: fixed;
  left: 0;
  right: 0;
  margin-inline: auto;
}

/* ==========================================================================
   CABEÇALHO
   ========================================================================== */
.top {
  top: 0;
  width: min(100%, var(--app-max));
  height: var(--header-h);
  z-index: 20;
  pointer-events: none;              /* só as camadas visíveis recebem toque */
}

/* Fundo: mais alto que o cabeçalho; sobe (translateY) ao contrair.
   Só transform → composição em GPU; o blur acompanha sem repintar layout. */
.top__bg {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--header-h-min) - var(--header-h));
  height: calc(2 * var(--header-h) - var(--header-h-min));
  background: linear-gradient(to bottom,
    rgb(252 253 255 / .93) 0%,
    rgb(252 253 255 / .93) 72%,
    rgb(246 249 255 / .93) 100%);
  -webkit-backdrop-filter: blur(var(--blur-header)) saturate(1.5);
  backdrop-filter: blur(var(--blur-header)) saturate(1.5);
  pointer-events: auto;
  will-change: transform;
}

/* Máscara do conteúdo-herói: sobe junto com a borda inferior do cabeçalho */
.top__clip {
  position: absolute;
  inset: 0 0 auto 0;
  height: var(--header-h);
  overflow: hidden;
  will-change: transform;
}
.top__hero {
  position: relative;
  height: 100%;
  will-change: transform;
}

/* Linha degradê — sempre na borda inferior do cabeçalho */
.top__line {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--header-h) - var(--line-h));
  height: var(--line-h);
  background: linear-gradient(90deg, var(--line-from), var(--line-to));
  box-shadow: 0 1px 2px rgb(156 184 240 / .22);
  overflow: hidden;
  will-change: transform;
}
.top__sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgb(92 122 181 / .0) 25%, var(--blue-200) 50%, rgb(92 122 181 / .0) 75%, transparent 100%);
  opacity: 0;
}

/* Barra de perfil — imóvel em qualquer troca de página ou rolagem */
.top__bar {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  top: 37px;
  height: 31px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: auto;
}

.profile {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  border-radius: 14px;
  padding: 2px 6px 2px 0;
  margin-left: 0;
  transition: transform var(--dur-instant) var(--ease-out), opacity var(--dur-fast);
}
.profile:active { opacity: .75; }

.avatar {
  width: var(--avatar);
  height: var(--avatar);
  border-radius: 50%;
  flex: none;
  background: #999FAF center / cover no-repeat;
  /* sem foto: as iniciais */
  display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: var(--fw-semibold); letter-spacing: .02em;
}
.avatar.has-photo { color: transparent; }

.profile__text { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.profile__name {
  font-size: var(--fs-name);
  line-height: 16px;
  max-width: 230px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile__edit {
  font-size: var(--fs-caption);
  line-height: 13px;
  margin-top: 1px;
  color: var(--slate-500);
  transition: color var(--dur-fast);
}
@media (hover: hover) {
  .profile:hover .profile__edit { color: var(--blue-500); }
}

.icon-btn {
  width: 40px;
  height: 40px;
  margin-right: -8.5px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: background-color var(--dur-fast), transform var(--dur-instant) var(--ease-out);
}
@media (hover: hover) {
  .icon-btn:hover { background: rgb(225 230 240 / .55); }
  .icon-btn:hover .ic--gear { transform: rotate(45deg); }
}
.ic--gear {
  width: 24px;
  height: 24px;
  stroke-width: 2.1;
  transition: transform var(--dur-page) var(--ease-out);
}

/* ---------------- Heróis ---------------- */
.hero {
  position: absolute;
  inset: 0;
  display: none;
}
.hero.is-active, .hero.is-leaving { display: block; }
.hero > * { position: absolute; left: var(--gutter); will-change: opacity, transform; }
.hero button { pointer-events: auto; }
.top.is-collapsed .hero button { pointer-events: none; }

.hero--compact .hero__label { top: 86.5px; }
.hero--compact .balance { top: 108.5px; }
.hero__label {
  top: 115px;
  font-size: var(--fs-label);
  line-height: 16px;
  color: var(--blue-500);
}

.balance {
  top: 137px;
  font-size: var(--fs-display);
  font-weight: var(--fw-bold);
  line-height: 1;
  letter-spacing: var(--track-display);
  white-space: nowrap;
}
.balance__cents {
  font-size: var(--fs-display-2);
  color: var(--blue-500);
  letter-spacing: 0;
  margin-left: -2px; /* vírgula encosta no inteiro, como no PSD */
}
.balance.is-negative .balance__whole { color: #B3261E; }
.balance.is-negative .balance__cents { color: #D9675F; } /* centavos negativos acompanham (tom mais claro) */

.accounts {
  top: 193px;
  height: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
  border-radius: var(--radius-full);
  transition: transform var(--dur-instant) var(--ease-out);
}
.accounts__chip {
  height: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px 0 11px;
  background: var(--slate-100);
  border-radius: var(--radius-full);
  transition: background-color var(--dur-fast);
}
@media (hover: hover) { .accounts:hover .accounts__chip { background: #D6DDEA; } }
.ic--chip { width: 14px; height: 14px; stroke-width: 1.9; }
.accounts__more {
  font-size: var(--fs-count);
  font-weight: var(--fw-bold);
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.accounts__empty { font-size: var(--fs-caption); font-weight: var(--fw-semibold); color: var(--slate-500); }

/* Gráfico */
.chart {
  top: 219px; /* folga abaixo da pílula de contas (termina em 213px) */
  left: 19px !important;
  right: 13px;
  height: 96px;
}
.chart__svg { display: block; width: 100%; height: 86px; overflow: visible; }
.chart__line { stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.chart__start { fill: var(--blue-200); }
.chart__ring { fill: var(--white); stroke: var(--ink); stroke-width: 1.8; }
.chart__dot { fill: var(--ink); }
.chart__halo { fill: var(--blue-500); opacity: 0; }
.chart__zero { stroke: #D3D9E3; stroke-width: 1; stroke-dasharray: 3 4; }
.chart__zero-label { font: var(--fw-semibold) 8.5px var(--font); fill: var(--slate-300); }
.chart__end.is-neg .chart__dot { fill: #B3261E; }
.chart__end.is-neg .chart__ring { stroke: #B3261E; }
.chart__empty { font: var(--fw-semibold) 9px var(--font); fill: var(--slate-300); }
.chart__axis {
  display: flex;
  justify-content: space-between;
  height: 11px;
  font-size: var(--fs-axis);
  font-weight: var(--fw-bold);
  line-height: 11px;
  text-transform: uppercase;
  letter-spacing: .02em;
}

/* ==========================================================================
   PALCO DE PÁGINAS
   ========================================================================== */
.stage {
  position: relative;
  padding-bottom: calc(var(--dock-bottom) + var(--dock-h) + 48px + env(safe-area-inset-bottom));
}
.page { display: none; padding-top: var(--page-h, var(--header-h)); }
.page.is-active { display: block; }
.page.is-leaving {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  pointer-events: none;
}

/* ---------------- Seções ---------------- */
.section { padding: 0 var(--gutter); margin-top: 22px; }
.section--first { margin-top: 20px; }

.section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 17px;
  padding: 0 17.5px;
  margin-bottom: 7px;
}
.section__title {
  font-size: var(--fs-section);
  font-weight: var(--fw-bold);
  line-height: 17px;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: var(--fs-link);
  font-weight: var(--fw-bold);
  line-height: 17px;
  padding: 8px 0 8px 10px;
  margin: -8px -2px -8px 0;
  border-radius: 8px;
  transition: opacity var(--dur-fast), transform var(--dur-instant) var(--ease-out);
}
.link:active { opacity: .6; }
.ic--link { width: 10px; height: 10px; stroke-width: 3.4; transition: transform var(--dur-base) var(--ease-spring); }
@media (hover: hover) { .link:hover .ic--link { transform: translateX(2px); } }

/* ---------------- Card ---------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-md);
}
.card--list { padding: 5px var(--inset) 9px; }

.empty {
  padding: 20px 0 16px;
  text-align: center;
  font-size: var(--fs-meta);
  font-weight: var(--fw-semibold);
  color: var(--ink-3);
  line-height: 1.5;
}
.empty span { font-weight: var(--fw-regular); color: var(--ink-4); }

/* ---------------- Transações ---------------- */
/* Linha = conteúdo (.tx__inner) por cima das ações reveladas no arraste (.tx__under) */
.tx {
  position: relative;
  height: 48px;
  margin-inline: -6px;   /* folga só para o fundo de toque/hover e o arraste; */
  padding-inline: 6px;   /* o conteúdo continua exatamente no mesmo lugar */
  overflow: hidden;
}
.tx__inner {
  position: relative;
  z-index: 1;
  margin-inline: -6px;
  padding-inline: 6px;
  display: grid;
  grid-template-columns: var(--icon-disc) minmax(0, 1fr) minmax(var(--amount-col), max-content);
  align-items: center;
  column-gap: 10px;
  height: 100%;
  background: var(--surface);
  transition: background-color 160ms var(--ease-out), border-radius 160ms var(--ease-out);
  touch-action: pan-y;            /* arraste horizontal fica com o app; vertical rola a página */
  will-change: transform;
}
.tx-list + .tx-group { border-top: 1px solid var(--slate-100); }
.tx + .tx::after {
  content: "";
  position: absolute;
  top: 0;
  left: 6px;
  right: 6px;
  height: 1px;
  background: var(--slate-100);
  z-index: 2;
  pointer-events: none;
}

.tx__icon {
  width: var(--icon-disc);
  height: var(--icon-disc);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gray-50);
  color: var(--gray-ic);
}
.tx__icon .ic { width: 18px; height: 18px; stroke-width: 1.9; }
.tx--in .tx__icon { background: var(--green-100); color: var(--green-700); }

.tx__text { display: flex; flex-direction: column; min-width: 0; }
.tx__title, .tx__meta {
  font-size: var(--fs-body);
  line-height: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tx__meta { color: var(--ink-3); }
.tx__pay { color: color-mix(in srgb, var(--mc) 62%, #8A8A8A); font-weight: var(--fw-medium); }
/* modo Todas: de quem é a transação */
.tx__who { margin-left: 6px; color: var(--blue-500); font-weight: var(--fw-medium); }
.tx__who .ic { width: 11px; height: 11px; margin-right: 3px; vertical-align: -1.5px; stroke-width: 2; }

.tx__amount {
  font-size: var(--fs-amount);
  font-weight: var(--fw-medium);
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.tx--in .tx__amount { color: var(--green-700); }

.tx-group {
  padding-top: 11px;
  font-size: var(--fs-body);
  line-height: 14px;
  color: #6F6F6F;
  text-transform: uppercase;
  letter-spacing: var(--track-caps);
}

/* Badge de categoria — cor comunica o tipo */
.badge {
  justify-self: end;
  height: 16px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  border: 1px solid var(--cat-border);
  border-radius: var(--radius-full);
  color: var(--cat);
  font-size: var(--fs-badge);
  font-weight: var(--fw-medium);
  letter-spacing: .03em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge-slot { width: 0; }
/* Centraliza pelas maiúsculas (não pela caixa da fonte) — estável em qualquer zoom */
@supports (text-box: trim-both cap alphabetic) {
  .badge__text, .sort__opt > span { text-box: trim-both cap alphabetic; }
}
@supports not (text-box: trim-both cap alphabetic) {
  .badge__text { padding-top: 1px; }
}

/* ---------------- Página de transações ---------------- */
.page--tx { padding-bottom: 64px; } /* espaço para o seletor de mês flutuante */
.section--sort { margin-top: 23px; }
.sort__label {
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  line-height: 14px;
  text-transform: uppercase;
  letter-spacing: .01em;
}

.sort__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.who { display: inline-flex; padding: 2px; border-radius: var(--radius-full); background: var(--slate-50); border: 1px solid var(--slate-100); }
.who__opt {
  height: 24px;
  padding: 0 11px;
  border-radius: var(--radius-full);
  font-size: 10.5px;
  font-weight: var(--fw-semibold);
  color: var(--slate-500);
  transition: background-color var(--dur-fast), color var(--dur-fast);
}
.who__opt[aria-checked="true"] { background: var(--blue-500); color: var(--white); }
/* 5 opções: se não couber, rola na horizontal sem barra visível */
.sort-scroll { margin: 4px -21px 0; padding: 0 21px; overflow-x: auto; scrollbar-width: none; }
.sort-scroll::-webkit-scrollbar { display: none; }
.sort {
  position: relative;
  display: inline-flex;
  margin-top: 0;
  height: 28px;
  isolation: isolate;
}
.sort__opt {
  position: relative;
  z-index: var(--z);
  height: 28px;
  padding: 0 14px 0 21px;
  margin-left: -14px;
  font-size: var(--fs-link);
  font-weight: var(--fw-bold);
  line-height: 28px;
  text-transform: uppercase;
  white-space: nowrap;
}
.sort__opt:first-of-type { padding: 0 11px; margin-left: 0; }
/* Proporções medidas no PSD: ponta final simétrica à inicial (11px);
   CATEGORIA tem respiro maior antes da curva */
.sort__opt:last-of-type { padding-right: 11px; }
.sort__opt[data-sort="category"] { padding-right: 19px; }
/* Cápsulas sobrepostas: a anterior fica por cima da seguinte.
   Só a ponta direita é arredondada; a esquerda é reta (escondida sob a vizinha),
   assim o topo e a base do grupo formam uma linha contínua e lisa. */
.sort__opt::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  background: var(--slate-50);
  border: 1.2px solid var(--slate-300);
  border-left: 0;
}
.sort__opt:first-of-type::before {
  border-radius: var(--radius-full);
  border-left: 1.2px solid var(--slate-300);
}
.sort__opt > span {
  position: relative;
  z-index: 1;
}
/* Selecionada: a própria cápsula fica azul (sem animação) */
.sort__opt[aria-checked="true"]::before { background: var(--blue-200); border-color: #5E77A3; }
.sort__opt[aria-checked="true"] > span { color: var(--white); }
.sort__opt:active > span { opacity: .6; }
.sort__opt:focus-visible { outline-offset: 3px; border-radius: var(--radius-full); }

.section--txall { margin-top: 21px; }
.tx-all { position: relative; }
/* Revelação da esquerda para a direita (Motion.reload): borda suave de 1/3 */
.tx-month.is-revealing {
  -webkit-mask-image: linear-gradient(90deg, #000 33.3%, transparent 66.6%);
  mask-image: linear-gradient(90deg, #000 33.3%, transparent 66.6%);
  -webkit-mask-size: 300% 100%;
  mask-size: 300% 100%;
  -webkit-mask-position: 100% 0;
  mask-position: 100% 0;
}
.tx-all .tx { height: 50px; }
.tx-all .tx::after {
  content: "";
  position: absolute;
  top: auto;
  bottom: 0;
  left: 6px;
  right: 6px;
  height: 1px;
  background: var(--slate-100);
  z-index: 2;
  pointer-events: none;
}
.tx-all .tx-list + .tx-group { border-top: 0; }
.tx-all .tx-group { padding: 9px 0 4px; line-height: 14px; }
.tx-all .tx-group:first-child { padding-top: 0; }

.tx-empty { padding: 36px 24px; text-align: center; }
.tx-all .tx-list:has(+ .tx-split) > .tx:last-child::after { display: none; }
.tx-split { height: 1.5px; margin: 10px 0 6px; border-radius: 2px; background: var(--blue-200); }
.tx-note { padding: 4px 0 8px; font-size: var(--fs-caption); color: var(--ink-4); }
.tx-empty__icon {
  width: 44px; height: 44px; margin: 0 auto 12px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--slate-50);
  color: var(--slate-300);
}
.tx-empty__title { font-size: var(--fs-body); font-weight: var(--fw-semibold); }
.tx-empty__text { margin-top: 6px; font-size: var(--fs-caption); color: var(--ink-3); line-height: 1.5; }

/* ==========================================================================
   SELETOR DE MÊS — pílula que vira grade
   Coordenadas no espaço do estado aberto (263×148, ancorado embaixo).
   Fechado = transforms que levam cada peça à posição na pílula.
   Transições CSS: interrompíveis e reversíveis no meio do movimento.
   ========================================================================== */
.mp {
  position: fixed;
  left: 0;
  right: 0;
  margin-inline: auto;
  bottom: calc(var(--dock-bottom) + var(--dock-h) + 17px + env(safe-area-inset-bottom));
  width: var(--mp-w-open);
  height: var(--mp-h-open);
  z-index: 32;
  color: var(--white);
  pointer-events: none;
}
.mp[hidden] { display: none; }
.mp button { pointer-events: auto; color: inherit; }

.mp__box {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: var(--mp-w);
  height: var(--mp-h);
  border-radius: 23px;
  transform: translateX(-50%);
  background: color-mix(in srgb, var(--mp-c, var(--blue-900)) 74%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 0 0 1px rgb(255 255 255 / .35), 0 14px 30px -10px color-mix(in srgb, var(--mp-c, var(--blue-900)) 55%, transparent);
  overflow: hidden; /* a grade nunca sai da forma enquanto ela muda */
  pointer-events: auto;
  transition: width 320ms var(--ease-out), height 320ms var(--ease-out), border-radius 320ms var(--ease-out);
}
.mp[data-open="true"] .mp__box {
  width: var(--mp-w-open);
  height: var(--mp-h-open);
  border-radius: 16px;
  transition: width 540ms var(--ease-pop), height 540ms var(--ease-pop), border-radius 540ms var(--ease-out);
}

/* Setas: no aberto ficam nos cantos do topo; no fechado, nas laterais da pílula */
.mp__arrow {
  position: absolute;
  bottom: 109.7px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: transform 320ms var(--ease-out), background-color var(--dur-fast);
}
.mp__arrow--prev { left: 2px;   transform: translate(63.7px, 102.2px); }
.mp__arrow--next { left: 229px; transform: translate(-64.5px, 102.2px); }
.mp[data-open="true"] .mp__arrow { transform: none; transition: transform 540ms var(--ease-pop), background-color var(--dur-fast); }
.mp__arrow:active { background: rgb(255 255 255 / .14); }
.mp__chev { width: 16px; height: 16px; stroke-width: 3; }
.mp__chev--l { transform: scaleX(-1); }

/* Ano: sobe junto com as setas */
.mp__year {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 117.7px;
  height: 16px;
  text-align: center;
  font-size: var(--fs-mp-year);
  line-height: 16px;
  transform: translateY(112.4px) scale(.84);
  transition: transform 320ms var(--ease-out);
  pointer-events: none;
}
.mp__year-text { display: inline-block; }
.mp[data-open="true"] .mp__year { transform: none; transition: transform 540ms var(--ease-pop); }

/* Mês atual (pílula) */
.mp__label {
  position: absolute;
  left: 50%;
  bottom: 17px;
  height: 24px;
  padding: 0 4px;
  transform: translateX(-50%);
  font-size: var(--fs-mp-month);
  font-weight: var(--fw-bold);
  line-height: 24px;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: opacity 260ms var(--ease-out) 80ms, transform 320ms var(--ease-out);
}
.mp__month { display: inline-block; }
.mp[data-open="true"] .mp__label {
  opacity: 0;
  transform: translateX(-50%) scale(.7);
  pointer-events: none;
  transition: opacity 140ms var(--ease-in), transform 320ms var(--ease-out);
}

/* Grade: dentro da caixa (recortada por ela), centralizada e ancorada embaixo;
   cada mês sai de onde estava o mês atual */
.mp__grid {
  position: absolute;
  left: 50%;
  margin-left: -116px;
  bottom: 7.5px;
  width: 232px;
  height: 97.5px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  pointer-events: none;
}
.mp__grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgb(255 255 255 / .2), rgb(255 255 255 / .2)) 25% 0 / 1px 100% no-repeat,
    linear-gradient(rgb(255 255 255 / .2), rgb(255 255 255 / .2)) 50% 0 / 1px 100% no-repeat,
    linear-gradient(rgb(255 255 255 / .2), rgb(255 255 255 / .2)) 75% 0 / 1px 100% no-repeat,
    linear-gradient(rgb(255 255 255 / .2), rgb(255 255 255 / .2)) 0 33.333% / 100% 1px no-repeat,
    linear-gradient(rgb(255 255 255 / .2), rgb(255 255 255 / .2)) 0 66.666% / 100% 1px no-repeat;
  opacity: 0;
  transform: scale(.92);
  transition: opacity 70ms linear, transform 320ms var(--ease-out);
}
.mp[data-open="true"] .mp__grid::before { opacity: 1; transform: none; transition: opacity 420ms var(--ease-out) 160ms, transform 540ms var(--ease-out) 120ms; }

.mp__cell {
  position: relative;
  border-radius: 0; /* selecionado e hover preenchem a célula inteira, sem cantos */
  font-size: var(--fs-mp-cell);
  font-weight: var(--fw-regular);
  letter-spacing: .01em;
  opacity: 0;
  visibility: hidden;
  transform: translate(var(--dx, 0), var(--dy, 0)) scale(.45);
  transition: transform 320ms var(--ease-out), opacity 90ms linear, visibility 0s linear 320ms, background-color var(--dur-fast);
}
.mp__cell--strong { font-weight: var(--fw-bold); }
.mp[data-open="true"] .mp__cell {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: transform 580ms var(--ease-pop) var(--d, 0ms), opacity 300ms var(--ease-out) var(--d, 0ms), visibility 0s, background-color var(--dur-fast);
}
.mp__cell[aria-current="true"] { background: rgb(255 255 255 / .16); }
.mp__cell:active { background: rgb(255 255 255 / .24); }
@media (hover: hover) {
  .mp__cell:hover { background: rgb(255 255 255 / .1); }
  .mp__arrow:hover { background: rgb(255 255 255 / .1); }
}


/* ---------------- Despesas fixas ---------------- */
.fixed {
  display: grid;
  gap: var(--fixed-gap);
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
}

.fx {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 41px;
  height: var(--fixed-row-h);
  background: var(--pending-bg);
}
/* Camada verde: varre da direita (onde está o check) para a esquerda */
.fx::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--green-50), var(--green-25));
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 560ms var(--ease-out);
}
.fx.is-paid::before { transform: scaleX(1); }
.fx > * { position: relative; z-index: 1; }

.fx__day {
  display: grid;
  place-items: center;
  font-size: var(--fs-row);
  color: var(--pending-text);
  background: var(--pending-day-bg);
  font-variant-numeric: tabular-nums;
  transition: background-color var(--dur-base) var(--ease-out), color var(--dur-base);
}

.fx__body {
  display: flex;
  align-items: center;
  min-width: 0;
  padding-left: 7.5px;
}
.fx__kind {
  width: 12px;
  height: 12px;
  stroke-width: 2;
  color: var(--pending-icon);
  margin-right: 6px;
  transition: color var(--dur-base);
}
.fx__title {
  flex: 1;
  min-width: 0;
  font-size: var(--fs-row);
  color: var(--pending-text);
  text-transform: uppercase;
  letter-spacing: .01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--dur-base);
}
.fx__amount {
  padding-left: 8px;
  font-size: var(--fs-row);
  font-weight: var(--fw-semibold);
  color: var(--pending-amount);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  transition: color var(--dur-base);
}

.fx.is-paid .fx__day { background-color: transparent; color: var(--green-400); }
.fx.is-paid .fx__title, .fx.is-paid .fx__kind { color: var(--green-400); }
.fx.is-paid .fx__amount { color: var(--green-500); }

/* Check de pago */
.check {
  display: grid;
  place-items: center;
  height: 100%;
}
.check::before {
  content: "";
  grid-area: 1 / 1;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--pending-ring);
  background: #F2F4F6;
  transition: background-color var(--dur-base) var(--ease-out), border-color var(--dur-base), transform var(--dur-base) var(--ease-spring);
}
.check__svg {
  grid-area: 1 / 1;
  width: 24px;
  height: 24px;
  overflow: visible;
  fill: none;
  stroke: var(--white);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  filter: drop-shadow(0 1px 1px rgb(49 137 38 / .25));
  transition: stroke-dashoffset 260ms var(--ease-in);
}
.is-paid .check::before {
  background: linear-gradient(160deg, #84D47F, var(--green-500));
  border-color: transparent;
  animation: check-pop 520ms var(--ease-spring);
}
.is-paid .check__svg {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 380ms var(--ease-out) 140ms;
}
@keyframes check-pop {
  0% { transform: scale(.6); }
  60% { transform: scale(1.12); }
  100% { transform: scale(1); }
}
@media (hover: hover) {
  .fx:not(.is-paid) .check:hover::before { border-color: var(--green-400); background: #EAF7EA; }
}

/* ---------------- Metas ---------------- */
.goals { display: grid; gap: 6px; }
.goal {
  padding: 18px var(--inset) 14px;
  background: var(--surface);
  border: 1px solid var(--slate-100);
  border-radius: 0;            /* meio: bordas retas */
}
.goal:first-child { border-top-left-radius: var(--radius-md); border-top-right-radius: var(--radius-md); }
.goal:last-child { border-bottom-left-radius: var(--radius-md); border-bottom-right-radius: var(--radius-md); }

.goal__head {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  column-gap: 10px;
  align-items: start;
}
.goal__icon { color: var(--goal); height: 26px; display: grid; place-items: center; }
.goal__icon .ic {
  width: 32px;
  height: 32px;
  stroke-width: 1.6;
  fill: color-mix(in srgb, var(--goal) 14%, transparent);
}
.goal__text { display: flex; flex-direction: column; min-width: 0; padding-top: 1px; }
.goal__title {
  font-size: var(--fs-title);
  font-weight: var(--fw-semibold);
  line-height: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.goal__sub {
  font-size: var(--fs-fine);
  line-height: 13px;
  margin-top: 2px;
  color: var(--ink-4);
}
.goal__actions { display: flex; gap: 5px; }

.mini-btn {
  position: relative;
  width: 23px;
  height: 23px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: #FBFBFB;
  border: 1px solid #E9E9E9;
  transition: background-color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-instant) var(--ease-out);
}
.mini-btn::after { content: ""; position: absolute; inset: -7px -3px; } /* área de toque ≥ 37px */
.mini-btn .ic { width: 13px; height: 13px; stroke-width: 1.8; }
@media (hover: hover) {
  .mini-btn:hover { background: var(--slate-50); border-color: var(--slate-100); }
}

.goal__value {
  margin-top: 12px;
  display: flex;
  align-items: baseline;
  white-space: nowrap;
}
.goal__whole {
  font-size: var(--fs-hero);
  font-weight: var(--fw-bold);
  line-height: 1;
  letter-spacing: var(--track-display);
}
.goal__whole--na { color: var(--slate-300); }
.goal__unit { font-size: var(--fs-unit); color: var(--ink-4); margin-left: 3px; }

.progress {
  --zz: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='14' viewBox='0 0 36 14'%3E%3Cpath d='M0 7 C4.5 2 13.5 2 18 7 S31.5 12 36 7' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
  position: relative;
  margin-top: 10px;
  height: 14px;
  background: var(--slate-100);              /* trilho em zig-zag */
  -webkit-mask: var(--zz) repeat-x 0 50% / var(--zw, 36px) 14px;
  mask: var(--zz) repeat-x 0 50% / var(--zw, 36px) 14px;
}
.progress__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: max(12px, calc(100% * var(--pct, 0)));
  overflow: hidden;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1100ms var(--ease-out);
}
/* degradê na cor da meta, sempre se movendo devagar (só transform: leve) */
.progress__flow {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(100% + 120px);
  background: linear-gradient(90deg, var(--goal) 0%, color-mix(in srgb, var(--goal) 38%, var(--mix-base)) 50%, var(--goal) 100%) 0 0 / 120px 100% repeat-x;
  animation: goal-flow 3.6s linear infinite;
  will-change: transform;
}
/* Tipos de linha: onda (padrão), zig-zag reto, quadrada, reta e pontos */
.progress[data-line="zigzag"] { --zz: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='14' viewBox='0 0 18 14'%3E%3Cpath d='M0 10.5 L4.5 3.5 L9 10.5 L13.5 3.5 L18 10.5' fill='none' stroke='black' stroke-width='2.6' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E"); --zw: 18px; }
.progress[data-line="square"] { --zz: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='14' viewBox='0 0 18 14'%3E%3Cpath d='M0 10 H4.5 V4 H13.5 V10 H18' fill='none' stroke='black' stroke-width='2.6' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E"); --zw: 18px; }
.progress[data-line="dots"]   { --zz: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='14' viewBox='0 0 10 14'%3E%3Ccircle cx='5' cy='7' r='2.6' fill='black'/%3E%3C/svg%3E"); --zw: 10px; }
.progress[data-line="line"]   { -webkit-mask: none; mask: none; height: 6px; margin-top: 14px; border-radius: 3px; }
.progress[data-line="line"] .progress__fill { border-radius: 3px; }
@keyframes goal-flow { from { transform: translateX(-120px); } to { transform: translateX(0); } }
.goal.is-visible .progress__fill { clip-path: inset(0 0 0 0); }

.goal__btns { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.goal__btn {
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--slate-100);
  background: var(--slate-50);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: var(--fw-semibold);
  transition: background-color var(--dur-fast), transform var(--dur-instant) var(--ease-out);
}
.goal__btn .ic { width: 15px; height: 15px; stroke-width: 2.2; }
.goal__btn:active { background: var(--slate-100); }
.goal__btn:disabled { opacity: .4; }

.goal__foot {
  margin-top: 9px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: var(--fs-meta);
  line-height: 15px;
  color: var(--ink-4);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.goal__foot b { color: var(--ink); font-weight: var(--fw-semibold); }

/* ==========================================================================
   DOCK
   ========================================================================== */
.fade-bottom {
  bottom: 0;
  width: min(100%, var(--app-max));
  height: 128px;
  background: linear-gradient(to bottom, rgb(255 255 255 / 0) 0%, rgb(255 255 255 / .85) 62%, #FFFFFF 100%);
  pointer-events: none;
  z-index: 25;
}

.dock {
  bottom: calc(var(--dock-bottom) + env(safe-area-inset-bottom));
  width: min(var(--dock-w), calc(100% - 52px));
  height: var(--dock-h);
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  border-radius: var(--radius-full);
  background: rgb(255 255 255 / .5);
  -webkit-backdrop-filter: blur(var(--blur-dock)) saturate(1.6);
  backdrop-filter: blur(var(--blur-dock)) saturate(1.6);
  border: 1px solid var(--dock-border);
  box-shadow: var(--shadow-dock);
}

.dock__indicator {
  position: absolute;
  left: 0;
  top: 50%;
  width: var(--dock-slot);
  height: var(--dock-slot);
  margin-top: calc(var(--dock-slot) / -2);
  border-radius: var(--radius-full);
  background: var(--gray-100);
  transform-origin: center;
  will-change: transform, width;
}

.dock__item {
  position: relative;
  width: var(--dock-slot);
  height: var(--dock-slot);
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
}
.dock__item .ic {
  width: 27px;
  height: 27px;
  stroke-width: 2;
  transition: transform var(--dur-base) var(--ease-spring), opacity var(--dur-fast);
}
.dock__item:not(.is-active) .ic { opacity: .9; }
.dock__item.is-active .ic { animation: dock-bump 520ms var(--ease-spring); }
@keyframes dock-bump {
  0% { transform: scale(.86); }
  55% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.dock__fab {
  position: relative;
  width: var(--dock-fab);
  height: var(--dock-fab);
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--fab-c, var(--blue-500));
  color: var(--white);
  box-shadow: var(--shadow-fab);
  transition: transform var(--dur-base) var(--ease-spring), background-color var(--dur-page) var(--ease-out), box-shadow var(--dur-page) var(--ease-out);
}
.dock__fab.is-themed { box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--fab-c) 60%, transparent), inset 0 1px 0 rgb(255 255 255 / .18); }
.dock__fab .ic { width: 25px; height: 25px; stroke-width: 3; transition: transform var(--dur-page) var(--ease-spring); }
.dock__fab:active { background: color-mix(in srgb, var(--fab-c, var(--blue-500)) 88%, #000); }
@media (hover: hover) { .dock__fab:hover .ic { transform: rotate(90deg); } }

/* ==========================================================================
   TOAST & TOOLTIP
   ========================================================================== */
.toast {
  bottom: calc(var(--dock-bottom) + var(--dock-h) + 14px + env(safe-area-inset-bottom));
  width: max-content;
  max-width: calc(min(100vw, var(--app-max)) - 2 * var(--gutter));
  z-index: 70;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  background: rgb(5 45 123 / .72);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  color: var(--white);
  font-size: 11.5px;
  font-weight: var(--fw-medium);
  line-height: 1.3;
  text-align: center;
  box-shadow: var(--shadow-toast);
  opacity: 0;
  transform: translateY(10px) scale(.96);
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.toast.is-shown { opacity: 1; transform: none; pointer-events: auto; cursor: pointer; }
.toast.has-action { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding-right: 8px; }
.toast__btn {
  height: 26px;
  padding: 0 11px;
  border-radius: var(--radius-full);
  background: rgb(255 255 255 / .16);
  color: var(--white);
  font-size: 11px;
  font-weight: var(--fw-semibold);
}
.toast__btn:active { background: rgb(255 255 255 / .28); }

.tip {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 50;
  max-width: 220px;
  padding: 6px 9px;
  border-radius: 8px;
  background: rgb(10 22 48 / .92);
  color: var(--white);
  font: var(--fw-medium) 11px/1.35 var(--font);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.tip.is-shown { opacity: 1; transform: none; }


/* Linha de transação abre a folha: estados de toque/hover/foco */
.tx__inner { cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none; }
.tx__inner::before {
  content: "";
  position: absolute;
  inset: 3px 1px;
  border-radius: 12px;
  background: var(--slate-50);
  opacity: 0;
  transition: opacity var(--dur-fast);
  pointer-events: none;
}
.tx__inner > * { position: relative; }
.tx__inner:active::before { opacity: 1; }
.tx__inner:focus-visible { outline: none; }
.tx__inner:focus-visible::before { opacity: 1; box-shadow: inset 0 0 0 2px var(--blue-500); }
.tx__inner.is-quiet-focus:focus-visible::before { opacity: 0; box-shadow: none; } /* foco devolvido ao fechar o popup */
@media (hover: hover) { .tx__inner:hover::before { opacity: .7; } }
.tx.is-swiping .tx__inner::before, .tx.is-open .tx__inner::before { opacity: 0; }
.tx.is-swiping .tx__inner, .tx.is-open .tx__inner, .tx.is-red .tx__inner { border-radius: 12px; }
.tx.is-red .tx__inner { background: #FDEDED; }

/* Ações reveladas pelo arraste */
.tx__under {
  position: absolute;
  inset: 4px 6px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.tx.is-open .tx__under { pointer-events: auto; }
.tx__act {
  height: 100%;
  padding: 0 13px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: var(--fw-semibold);
  white-space: nowrap;
  opacity: 0;
  will-change: opacity, transform;
}
.tx:not(.is-swiping) .tx__act { transition: opacity 220ms var(--ease-out), transform 300ms var(--ease-out); }
.tx__act .ic { width: 15px; height: 15px; stroke-width: 2.1; }
.tx__act--dup { background: #E8EEFB; color: var(--blue-500); }
.tx__act--del { background: #FDE8E9; color: #E5484D; }
.tx__act--del:active { background: #E5484D; color: var(--white); }
.tx--saved .tx__amount { color: var(--blue-500); }
.tx--saved .tx__icon { background: #E8EEFB; color: var(--blue-500); }
.tx--out .tx__icon { background: #FDE8E9; color: #E5484D; }
/* Programada: bolinha para marcar como paga (mesmo componente das despesas fixas) */
.tx--sched .tx__inner { grid-template-columns: var(--icon-disc) minmax(0, 1fr) minmax(var(--amount-col), max-content) 30px; }
.tx__check { width: 30px; height: 30px; justify-self: end; }
.tx--sched:not(.is-paid) .tx__amount { color: var(--slate-500); }
@media (hover: hover) { .tx:not(.is-paid) .tx__check:hover::before { border-color: var(--green-400); background: #EAF7EA; } }
/* Ordenado por categoria: ícone tingido com a cor da categoria */
.tx--tint .tx__icon { background: color-mix(in srgb, var(--tint) 14%, var(--mix-base)); color: var(--tint); }

/* ==========================================================================
   POPUP DO + — nasce do botão e expande para cima
   ========================================================================== */
.addpop {
  position: fixed;
  left: 0;
  right: 0;
  margin-inline: auto;
  bottom: calc(var(--dock-bottom) + var(--dock-h) + 12px + env(safe-area-inset-bottom));
  width: 244px;
  z-index: 34;
}
.addpop[hidden] { display: none; }
/* vidro fosco sutil (como a dock): o conteúdo de baixo aparece borrado.
   A sombra fica no próprio cartão: um "filter" no pai anularia o blur. */
.addpop__card {
  padding: 12px 8px 8px;
  border-radius: 22px;
  background: rgb(255 255 255 / .78);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid var(--dock-border);
  box-shadow: 0 14px 30px -8px rgb(5 45 123 / .22);
}
.addpop__title {
  padding: 0 10px 6px;
  font-size: 11px;
  font-weight: var(--fw-bold);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--slate-500);
}
.addpop__opt {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 7px 10px;
  border-radius: 14px;
  text-align: left;
  transition: background-color var(--dur-fast), transform var(--dur-instant) var(--ease-out);
}
.addpop__opt:active { background: var(--slate-50); }
@media (hover: hover) { .addpop__opt:hover { background: var(--slate-50); } }
.addpop__ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.addpop__ic .ic { width: 18px; height: 18px; stroke-width: 2.1; }
.addpop__ic--in { background: var(--green-100); color: var(--green-700); }
.addpop__ic--out { background: #FDE8E9; color: #E5484D; }
.addpop__ic--saved { background: #E8EEFB; color: var(--blue-500); }
.addpop__txt { display: flex; flex-direction: column; }
.addpop__txt b { font-size: 13.5px; font-weight: var(--fw-semibold); color: var(--ink); }
.addpop__txt small { font-size: 10.5px; color: var(--ink-4); }
.dock__fab[aria-expanded="true"] .ic { transform: rotate(45deg); }

.section__sub {
  margin: -4px 17.5px 7px;
  text-align: left;
  font-size: var(--fs-caption);
  color: var(--slate-300);
  font-variant-numeric: tabular-nums;
}
.section__sub:empty { display: none; }
.fx[data-id] { cursor: pointer; }
.fx[data-id]:active .fx__body { opacity: .7; }
.fx--add { background: var(--slate-50); }
/* Meta: cartão tocável + página com histórico */
.goals:not(.goals--page) .goal { cursor: pointer; transition: transform var(--dur-instant) var(--ease-out); }
.goals--page .goal { border-radius: var(--radius-md); }
.goal-init {
  display: grid;
  grid-template-columns: var(--icon-disc) minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 10px;
  min-height: 52px;
  border-top: 1px solid var(--slate-100);
}
.goal-init--only { border-top: 0; }
.goal-init__icon { width: var(--icon-disc); height: var(--icon-disc); border-radius: 50%; display: grid; place-items: center; background: #E8EEFB; color: var(--blue-500); }
.goal-init__icon .ic { width: 18px; height: 18px; stroke-width: 1.9; }
.goal-init__text { display: flex; flex-direction: column; }
.goal-init__text b { font-size: var(--fs-body); font-weight: var(--fw-semibold); }
.goal-init__text small { font-size: var(--fs-caption); color: var(--ink-4); }
.goal-init__val { font-size: 11.5px; font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; }
.goal-init__hint { text-align: center; padding-top: 2px; }
.fx--add .fx__day { background: var(--slate-100); color: var(--slate-300); }
.fx__plus { width: 14px; height: 14px; stroke-width: 2.6; }
.fx__addbtn { text-align: left; width: 100%; height: 100%; }
.fx__addbtn .fx__title { color: var(--slate-300); }
.fx--add:active { background: var(--slate-100); }

/* Despesas fixas — estado vazio */
.fx-empty { padding: 22px 20px 18px; text-align: center; }
.fx-empty__icon {
  width: 42px; height: 42px; margin: 0 auto 10px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--slate-50);
  color: var(--blue-500);
}
.fx-empty__icon .ic { width: 20px; height: 20px; stroke-width: 1.9; }
.fx-empty__title { font-size: var(--fs-body); font-weight: var(--fw-semibold); }
.fx-empty__text { margin: 4px auto 0; max-width: 250px; font-size: var(--fs-caption); line-height: 1.5; color: var(--ink-3); }
.fx-empty__btn {
  margin-top: 14px;
  height: 34px;
  padding: 0 14px 0 11px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius-full);
  background: var(--blue-500);
  color: var(--white);
  font-size: 11.5px;
  font-weight: var(--fw-semibold);
  transition: transform var(--dur-instant) var(--ease-out), background-color var(--dur-fast);
}
.fx-empty__btn .ic { width: 14px; height: 14px; stroke-width: 2.6; }
.fx-empty__btn:active { background: #4F6CA6; }

/* ==========================================================================
   SELETOR DO SALDO — pílula sob o saldo + painel
   ========================================================================== */
.accounts__dots { display: inline-flex; }
.accounts__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--ac);
  box-shadow: 0 0 0 1.5px var(--slate-100);
}
.accounts__dot + .accounts__dot { margin-left: -3px; }
.accounts__text { font-size: 10.5px; font-weight: var(--fw-semibold); color: var(--slate-500); white-space: nowrap; }
.accounts__chev { width: 10px; height: 10px; stroke-width: 2.8; color: var(--slate-500); transform: rotate(90deg); transition: transform var(--dur-base) var(--ease-out); }
#viewChip[aria-expanded="true"] .accounts__chev { transform: rotate(-90deg); }
#viewChip .accounts__chip { gap: 6px; padding: 0 8px 0 9px; }

.vp-wrap {
  position: fixed;
  z-index: 45;
  filter: drop-shadow(0 14px 18px rgb(5 45 123 / .16));
}
.vp {
  width: 292px;
  max-width: calc(100vw - 42px);
  padding: 10px 6px 6px;
  border-radius: 16px;
  background: #FFFFFF;
  border: 1px solid var(--slate-100);
}
.vp.is-revealing {
  -webkit-mask-image: linear-gradient(to bottom, #000 33.3%, transparent 66.6%);
  mask-image: linear-gradient(to bottom, #000 33.3%, transparent 66.6%);
  -webkit-mask-size: 100% 300%;
  mask-size: 100% 300%;
  -webkit-mask-position: 0 100%;
  mask-position: 0 100%;
}
.vp__title { padding: 0 10px 6px; font-size: 10.5px; font-weight: var(--fw-bold); letter-spacing: .04em; text-transform: uppercase; color: var(--slate-500); }
.vp__opt {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 11px;
  text-align: left;
  transition: background-color var(--dur-fast);
}
.vp__opt:active { background: var(--slate-50); }
@media (hover: hover) { .vp__opt:hover { background: var(--slate-50); } }
.vp__radio {
  width: 18px; height: 18px; flex: none;
  border-radius: 50%;
  border: 1.5px solid var(--slate-300);
  display: grid; place-items: center;
  transition: border-color var(--dur-fast);
}
.vp__radio::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--blue-500); transform: scale(0); transition: transform var(--dur-base) var(--ease-spring); }
.vp__opt.is-on .vp__radio { border-color: var(--blue-500); }
.vp__opt.is-on .vp__radio::after { transform: scale(1); }
.vp__txt { display: flex; flex-direction: column; min-width: 0; }
.vp__txt b { font-size: 12.5px; font-weight: var(--fw-semibold); color: var(--ink); }
.vp__txt small { font-size: 10.5px; color: var(--ink-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vp__accs { margin: 4px 4px 0 32px; padding-top: 4px; border-top: 1px solid var(--slate-100); transition: opacity var(--dur-fast); }
.vp__accs.is-dim { opacity: .55; }
.vp__acc {
  width: 100%;
  display: grid;
  grid-template-columns: 16px 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px 6px;
  border-radius: 9px;
  text-align: left;
}
.vp__acc:active { background: var(--slate-50); }
.vp__box {
  width: 16px; height: 16px; border-radius: 5px;
  border: 1.5px solid var(--slate-300);
  display: grid; place-items: center;
  color: var(--white);
  transition: background-color var(--dur-fast), border-color var(--dur-fast);
}
.vp__box .ic { width: 11px; height: 11px; stroke-width: 3.2; opacity: 0; transition: opacity var(--dur-fast); }
.vp__acc[aria-checked="true"] .vp__box { background: var(--blue-500); border-color: var(--blue-500); }
.vp__acc[aria-checked="true"] .vp__box .ic { opacity: 1; }
.vp__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ac); }
.vp__name { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vp__name i { font-style: normal; font-size: 9.5px; color: var(--blue-500); font-weight: var(--fw-semibold); margin-left: 3px; }
.vp__val { font-size: 11.5px; font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; color: var(--ink-3); }

/* ==========================================================================
   PÁGINA DA META — informações no topo; personalizar + histórico embaixo
   ========================================================================== */
.hero--goal .ghero { top: 92px; right: var(--gutter); }
.ghero__head { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 10px; align-items: center; }
.ghero__title { font-size: 15px; font-weight: var(--fw-semibold); line-height: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ghero .goal__value { margin-top: 10px; }
.ghero .progress__fill, .gline .progress__fill { clip-path: inset(0); transition: none; }
.ghero .goal__btns { margin-top: 10px; }

.gopt { position: relative; padding: 14px var(--inset) 16px; }
.gopt__date { display: flex; align-items: center; gap: 7px; text-align: left; cursor: pointer; }
.gopt__date .ic { width: 16px; height: 16px; color: var(--blue-500); flex: none; }
.gopt__date span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gopt__date.is-active { border-color: var(--blue-200); box-shadow: 0 0 0 3px rgb(156 184 240 / .22); }
.gopt__label { display: block; margin: 12px 0 6px; font-size: 11px; color: var(--sh-label, #555A61); }
.gopt__label:first-child { margin-top: 0; }
.gopt__in {
  width: 100%;
  height: 38px;
  padding: 0 11px;
  border: 1px solid var(--slate-100);
  border-radius: 9px;
  background: var(--white);
  font: 14px var(--font);
  color: var(--ink);
  outline: none;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.gopt__in:focus { border-color: var(--blue-200); box-shadow: 0 0 0 3px rgb(156 184 240 / .22); }
.gopt__in--num { font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; }
.gopt__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gopt__row .gopt__label { margin-top: 12px; }
.gicons { display: flex; flex-wrap: wrap; gap: 8px; }
.gicon {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--goal) 12%, var(--mix-base));
  color: var(--goal);
  transition: box-shadow var(--dur-fast), transform var(--dur-instant) var(--ease-out);
}
.gicon .ic { width: 22px; height: 22px; stroke-width: 1.8; }
.gicon.is-on { box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--goal); }
.glines { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.gline {
  display: flex; flex-direction: column; align-items: stretch; gap: 4px;
  padding: 8px 6px 6px;
  border-radius: 10px;
  border: 1px solid var(--slate-100);
  transition: border-color var(--dur-fast), background-color var(--dur-fast);
}
.gline.is-on { border-color: var(--goal); background: color-mix(in srgb, var(--goal) 7%, var(--mix-base)); }
.gline .progress--mini { margin-top: 0; }
.gline .progress--mini[data-line="line"] { margin: 4px 0; }
.gline__name { font-size: 9.5px; color: var(--slate-500); text-align: center; }
.gopt__del { width: 100%; margin-top: 16px; }

/* Transações: Minhas / Todas no topo, abaixo do saldo */
.hero--compact .who { top: 164px; }

/* ==========================================================================
   CARTÕES — painel, página do cartão, cartão visual, pessoas, configuração
   ========================================================================== */
.section__aside { font-size: var(--fs-caption); color: var(--ink-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-left: 10px; }
#cardBuys.is-revealing {
  -webkit-mask-image: linear-gradient(90deg, #000 33.3%, transparent 66.6%); mask-image: linear-gradient(90deg, #000 33.3%, transparent 66.6%);
  -webkit-mask-size: 300% 100%; mask-size: 300% 100%; -webkit-mask-position: 100% 0; mask-position: 100% 0;
}

/* ==========================================================================
   PESSOAS — avatar, lista, página (resumo, compras, carteira)
   ========================================================================== */
.pav { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--pc) center / cover no-repeat; color: var(--white); font-size: 12px; font-weight: var(--fw-semibold); letter-spacing: .02em; }
.pav .ic { width: 18px; height: 18px; }
.pav--md { width: 40px; height: 40px; font-size: 13px; }
.pav--lg { width: 56px; height: 56px; font-size: 17px; }
.pav--lg .ic { width: 26px; height: 26px; }

.plist { padding-block: 4px; }
.plist > li + li { border-top: 1px solid var(--slate-100); }
.pcard { display: grid; grid-template-columns: minmax(0, 1fr) 36px 36px; align-items: center; column-gap: 2px; min-height: 60px; }
.pcard__main { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 11px; align-items: center; text-align: left; min-height: 56px; border-radius: 10px; }
.pcard__main:focus-visible { outline: 2px solid var(--blue-200); outline-offset: 2px; }
.pcard__text { display: flex; flex-direction: column; min-width: 0; }
.pcard__name { font-size: 13px; font-weight: var(--fw-semibold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard__meta { font-size: var(--fs-caption); color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard__meta b { color: #B4561C; font-weight: var(--fw-semibold); }
.pcard__credit { color: var(--green-700); }
.pcard__act { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--ink); transition: background-color var(--dur-fast), color var(--dur-fast), transform var(--dur-instant) var(--ease-out); }
.pcard__act .ic { width: 16px; height: 16px; }
@media (hover: hover) { .pcard__act:not(:disabled):hover { background: var(--slate-50); } }
.pcard__act:disabled { color: var(--slate-300); cursor: not-allowed; }
.pcard__act--del.is-confirm { background: #E5484D; color: var(--white); }

.pstats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pstat { display: flex; flex-direction: column; gap: 2px; padding: 11px 12px; border-radius: 14px; border: 1px solid var(--slate-100); background: var(--white); min-width: 0; }
.pstat__k { font-size: var(--fs-caption); color: var(--ink-3); }
.pstat__v { font-size: 14px; font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pstat--pend .pstat__v { color: #B4561C; }
.pstat--paid .pstat__v { color: var(--green-700); }

.pbym { padding-block: 4px; }
.pbym li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto auto; column-gap: 9px; align-items: center; height: 40px; font-size: 12px; }
.pbym li + li { border-top: 1px solid var(--slate-100); }
.pbym__dot { width: 9px; height: 9px; border-radius: 50%; background: color-mix(in srgb, var(--mc) 70%, #8A8A8A); }
.pbym__name { font-weight: var(--fw-semibold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pbym__n { font-size: var(--fs-caption); color: var(--ink-4); }
.pbym__v { font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; text-align: right; min-width: 74px; }

.pbuys { padding-block: 2px; }
.pbuy { display: grid; grid-template-columns: minmax(0, 1fr) auto 40px; align-items: center; column-gap: 8px; min-height: 50px; }
.pbuy + .pbuy { border-top: 1px solid var(--slate-100); }
.pbuy__text { display: flex; flex-direction: column; min-width: 0; }
.pbuy__title { font-size: var(--fs-body); font-weight: var(--fw-medium); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pbuy__meta { font-size: var(--fs-caption); color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pbuy__meta b { color: var(--pc); font-weight: var(--fw-semibold); }
.pbuy__amount { display: flex; flex-direction: column; align-items: flex-end; padding: 6px 6px; margin-right: -6px; border-radius: 8px; font-size: var(--fs-amount); font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; text-align: right; transition: background-color var(--dur-fast); }
@media (hover: hover) { .pbuy__amount:hover { background: var(--slate-50); } }
.pbuy__of { font-size: 9.5px; font-weight: var(--fw-regular); color: var(--ink-4); }
.pbuy.is-partial .pbuy__amount { color: var(--blue-500); }
.pbuy.is-partial .check::before { background: conic-gradient(var(--blue-200) 0 50%, #F2F4F6 50% 100%); border-color: var(--blue-200); }
.pbuy__edit { grid-column: 1 / -1; padding: 2px 0 12px; --goal: var(--pc); }
.pbuy__editrow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px; }
.pbuy__editrow .ccopy__act { --cc: var(--pc); padding: 0 12px; height: 38px; }
.pbuy__cancel { --cc: var(--slate-500) !important; }
.pbuy.is-paid .pbuy__amount { color: var(--green-700); }
.pbuy.is-paid .pbuy__title { color: var(--ink-3); }
.pbuy__check { height: 40px; }
.pbuy.is-paid .check::before { animation: none; }
.pbuy.is-paid.just .check::before { animation: check-pop 520ms var(--ease-spring); }
.pshare { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 8px; align-items: center; margin-top: 10px; }
.pshare__seg { margin: 0; grid-template-columns: 1fr 1fr; }
.pshare__btn { height: 44px; --cc: var(--pc); }
.pshare .pshare__btn { height: 44px; font-size: 11.5px; } /* mesma altura do seletor Clara/Escura */
.pshare .pshare__seg { margin: 0; } /* sem a margem de baixo do seletor padrão: os dois alinham */
.pwallet__top { justify-content: flex-end; }
.cf__due { margin-top: 2px; font-size: 9px; line-height: 11px; font-weight: var(--fw-semibold); letter-spacing: .02em; opacity: .82; white-space: nowrap; }
.bpp__last { display: block; max-width: 100%; margin-top: 1px; font-size: 10.5px; line-height: 13px; color: var(--ink-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pshare__btn.is-busy { opacity: .6; cursor: progress; }

.pwallet { padding: 12px var(--inset) 14px; }
.pwallet__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pwallet__top > span { display: flex; flex-direction: column; }
.pwallet__top .ccopy__act { --cc: var(--pc); padding: 0 12px; }
.pwallet__v { font-size: 18px; font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; }
.pwallet__v.is-pos { color: var(--green-700); }
.pwallet__form { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 280ms var(--ease-out), opacity 200ms var(--ease-out); }
.pwallet__form.is-open { grid-template-rows: 1fr; opacity: 1; }
.pwallet__inner { min-height: 0; overflow: hidden; }
.pwallet__form.is-open .pwallet__inner { overflow: visible; }
.pwallet__fields { position: relative; padding: 4px 0 0; --goal: var(--pc); }
.pwallet__ok { margin-top: 12px; }
.pwallet__ok:disabled { opacity: .45; }
.pwallet__hist { margin-top: 14px; }
.pwallet__list li { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; column-gap: 8px; align-items: baseline; padding: 6px 0; font-size: 11.5px; }
.pwallet__list li + li { border-top: 1px dashed var(--slate-100); }
.pwallet__d { color: var(--ink-4); font-size: var(--fs-caption); }
.pwallet__n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pwallet__a { font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; }
.pwallet__list .is-in .pwallet__a { color: var(--green-700); }
.pwallet__list .is-out .pwallet__a { color: var(--ink-3); }
.pav-modes { display: flex; gap: 6px; --cc: var(--pc); }
.pav-photo { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.pav-photo .ccopy__act { --cc: var(--pc); padding: 0 12px; }
.cfg .gicons { margin-top: 10px; }

/* ==========================================================================
   CONFIGURAÇÕES
   ========================================================================== */
.hero--settings .set-back { top: 88px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--white); border: 1px solid var(--slate-100); box-shadow: 0 4px 12px -6px rgb(5 45 123 / .2); transition: transform var(--dur-instant) var(--ease-out); }
.hero--settings .set-back .ic { width: 18px; height: 18px; stroke-width: 2.2; }
.hero--settings .set-title { top: 96px; left: 0; right: 0; text-align: center; font-size: 17px; font-weight: var(--fw-bold); line-height: 24px; pointer-events: none; }
.page--settings { padding-bottom: 110px; }
.set-head { margin: 0 4px 7px; font-size: 10px; font-weight: var(--fw-semibold); letter-spacing: .1em; text-transform: uppercase; color: var(--slate-500); }
.set-card { padding: 4px 12px; }
.set-card > li + li { border-top: 1px solid var(--slate-100); }
.set-row { width: 100%; min-height: 54px; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto auto; align-items: center; column-gap: 11px; text-align: left; border-radius: 10px; transition: background-color var(--dur-fast); }
@media (hover: hover) { button.set-row:hover { background: var(--slate-50); } }
.set-row:focus-visible { outline: 2px solid var(--blue-200); outline-offset: 2px; }
.set-row__ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--slate-50); color: var(--slate-500); }
.set-row__ic .ic { width: 17px; height: 17px; }
.set-row__text { display: flex; flex-direction: column; min-width: 0; }
.set-row__title { font-size: 13px; font-weight: var(--fw-medium); color: var(--ink); }
.set-row__desc { font-size: var(--fs-caption); color: var(--ink-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.set-row__aside { font-size: 11.5px; color: var(--slate-500); max-width: 110px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.set-row__chev { width: 11px; height: 11px; color: var(--slate-300); }
.set-row__soon { grid-column: 3 / 5; font-size: 9.5px; font-weight: var(--fw-semibold); padding: 3px 8px; border-radius: 999px; background: var(--slate-50); color: var(--slate-500); }
.set-row.is-soon .set-row__title, .set-row.is-soon .set-row__ic { opacity: .55; }
.set-row.is-confirm .set-row__title { color: #E5484D; font-weight: var(--fw-semibold); }
.set-row.is-confirm .set-row__ic { background: #FDE8E9; color: #E5484D; }
.set-theme { display: flex; align-items: center; gap: 11px; height: 50px; }
.set-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; margin-bottom: 10px; border-radius: 12px; background: var(--slate-50); border: 1px solid var(--slate-100); }
.set-seg__opt { height: 34px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 11.5px; color: var(--slate-500); }
.set-seg__opt .ic { width: 14px; height: 14px; }
.set-seg__opt[aria-checked="true"] { background: var(--white); color: var(--ink); font-weight: var(--fw-semibold); box-shadow: 0 1px 4px rgb(5 45 123 / .1); }
.set-seg__opt:disabled { opacity: .5; cursor: not-allowed; }
.set-note__ic { width: 12px; height: 12px; margin-right: 4px; vertical-align: -2px; }

/* ---------------- Categorias (configurações) ---------------- */
.cat-seg { margin: 0 0 12px; grid-template-columns: 1fr 1fr; }
.cat-list { padding: 4px 12px; }
.cat-list > li + li { border-top: 1px solid var(--slate-100); }
.cat-row { width: 100%; min-height: 54px; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto 12px; column-gap: 11px; align-items: center; text-align: left; border-radius: 10px; }
@media (hover: hover) { .cat-row:hover { background: var(--slate-50); } .cat-list > li:hover, .cat-list > li:hover + li { border-top-color: transparent; } }
.cat-row__ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 16%, var(--mix-base)); color: var(--c); }
.cat-row__ic .ic { width: 18px; height: 18px; }
.cat-row__name { font-size: 13px; font-weight: var(--fw-medium); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-row__n { font-size: var(--fs-caption); color: var(--ink-4); }
.cat-row__chev { width: 11px; height: 11px; color: var(--slate-300); transform: rotate(90deg); transition: transform var(--dur-base) var(--ease-out); }
.cat-item.is-open .cat-row__chev { transform: rotate(-90deg); }
.cat-edit { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 260ms var(--ease-out); }
.cat-item.is-open .cat-edit { grid-template-rows: 1fr; }
.cat-edit__inner { min-height: 0; overflow: hidden; }
.cat-edit__body { padding: 0 2px 14px; --goal: var(--c); }
.cat-add { color: var(--blue-500); }
.cat-add .cat-row__ic { background: var(--slate-50); color: var(--blue-500); border: 1px dashed var(--slate-300); }

/* filtro em pílula (liga/desliga) */
.pill-tg {
  display: inline-flex; align-items: center; gap: 5px; height: 28px; margin: 0 0 8px 12px; padding: 0 11px 0 8px;
  border-radius: 999px; border: 1px solid var(--slate-100); background: var(--white);
  font-size: 11px; font-weight: var(--fw-medium); color: var(--slate-500);
  transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-instant) var(--ease-out);
}
.pill-tg .ic { width: 12px; height: 12px; stroke-width: 3; opacity: 0; transform: scale(.4); transition: opacity var(--dur-fast), transform var(--dur-base) var(--ease-spring); }
.pill-tg[aria-checked="true"] { background: var(--cc, var(--blue-500)); border-color: var(--cc, var(--blue-500)); color: var(--white); }
.pill-tg[aria-checked="true"] .ic { opacity: 1; transform: none; }

/* painel: uma linha por cartão */
.ccl {
  width: 100%; min-height: 58px;
  display: grid; grid-template-columns: 36px minmax(0, 1fr) auto 14px; align-items: center; column-gap: 11px;
  text-align: left; border-radius: 10px;
  transition: background-color var(--dur-fast), transform var(--dur-instant) var(--ease-out);
}
@media (hover: hover) { .ccl:hover { background: var(--slate-50); } }
.ccl:focus-visible { outline: 2px solid var(--blue-200); outline-offset: 2px; }
.ccl__disc { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--cc); color: var(--white); }
.ccl__disc .ic { width: 19px; height: 19px; }
.ccl__text { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.ccl__name { font-size: 13px; font-weight: var(--fw-semibold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ccl--add { grid-template-columns: 36px minmax(0, 1fr); color: var(--blue-500); }
.ccl--add .ccl__disc { background: var(--slate-50); color: var(--blue-500); border: 1px dashed var(--slate-300); }

/* cartão físico / virtuais */
.csub { display: flex; gap: 6px; margin-bottom: 10px; overflow-x: auto; scrollbar-width: none; }
.csub::-webkit-scrollbar { display: none; }
.csub__opt {
  flex: none; height: 30px; padding: 0 13px; border-radius: 999px;
  font-size: 11.5px; font-weight: var(--fw-medium); color: var(--slate-500);
  background: var(--slate-50); border: 1px solid var(--slate-100);
  transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.csub__opt[aria-selected="true"] { background: var(--cc); border-color: var(--cc); color: var(--white); font-weight: var(--fw-semibold); }

.ccopy__act {
  height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  font-size: 10.5px; font-weight: var(--fw-semibold); color: var(--cc);
  background: color-mix(in srgb, var(--cc) 8%, var(--mix-base));
  transition: transform var(--dur-instant) var(--ease-out), background-color var(--dur-fast);
}
.ccopy__act .ic { width: 13px; height: 13px; flex: none; }

/* configurar cartão (recolhido por padrão) */
.cfg__head { width: 100%; height: 48px; padding: 0 var(--inset); display: grid; grid-template-columns: 18px minmax(0, 1fr) 12px; align-items: center; column-gap: 9px; text-align: left; font-size: 12.5px; font-weight: var(--fw-semibold); }
.cfg__head .ic { width: 17px; height: 17px; color: var(--cc); }
.cfg__head .cfg__chev { width: 11px; height: 11px; color: var(--slate-300); transform: rotate(90deg); transition: transform var(--dur-base) var(--ease-out); }
.cfg.is-open .cfg__chev { transform: rotate(-90deg); }
.cfg__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 300ms var(--ease-out); }
.cfg.is-open .cfg__more { grid-template-rows: 1fr; }
.cfg__inner { min-height: 0; overflow: hidden; }
.cfg.is-settled .cfg__inner { overflow: visible; }
.cfg__body { padding-top: 2px; border-top: 1px solid var(--slate-100); --goal: var(--cc); }
.cfg__f { display: block; min-width: 0; }
/* formulário do cartão: rótulo sempre 6px acima do campo e 14px entre um campo e o rótulo seguinte */
.sh-cardf .gopt__label, .sh-cardf .gopt__row .gopt__label { margin: 0 0 6px; }
.sh-cardf > * + * { margin-top: 14px; }
.cfg__hint { margin-top: 8px; font-size: var(--fs-caption); line-height: 1.5; color: var(--ink-4); }
.cfg__subs { display: flex; flex-direction: column; gap: 8px; }
.cfg__sub { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) 34px; grid-template-areas: "n num rm" "e cvv rm"; gap: 6px; padding: 8px; border-radius: 12px; background: var(--slate-50); }
.cfg__sub > :nth-child(1) { grid-area: n; }
.cfg__sub > :nth-child(2) { grid-area: num; }
.cfg__sub > :nth-child(3) { grid-area: e; }
.cfg__sub > :nth-child(4) { grid-area: cvv; }
.cfg__sub .gopt__in { height: 34px; font-size: 12.5px; }
.cfg__rm { grid-area: rm; align-self: center; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #E5484D; }
.cfg__rm .ic { width: 16px; height: 16px; }
.cfg__rm:active { background: #FDE8E9; }
.sh-btn--del:disabled { opacity: .45; cursor: not-allowed; }

/* Contas (tela provisória) */
.acc-row { display: grid; grid-template-columns: 33px minmax(0, 1fr) auto; align-items: center; column-gap: 10px; height: 52px; }
.acc-row + .acc-row { border-top: 1px solid var(--slate-100); }
.acc-row__av {
  width: 33px; height: 33px; border-radius: 50%;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--ac) 14%, var(--mix-base));
  color: var(--ac);
  font-size: 13px; font-weight: var(--fw-bold);
}
.acc-row__text { display: flex; flex-direction: column; min-width: 0; }
.acc-row__name { font-size: 12.5px; font-weight: var(--fw-semibold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-row__meta { font-size: var(--fs-caption); color: var(--ink-3); }
.acc-row__value { font-size: 13px; font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; }
.acc-row__value.is-negative, .balance.is-negative .balance__whole { color: #B3261E; }
.acc-note { margin: 10px 17.5px 0; font-size: var(--fs-caption); line-height: 1.5; color: var(--ink-4); }

/* Página curta: sem rolagem (o cabeçalho não contrai à toa) */
html.no-scroll, html.no-scroll body { overflow: hidden; }

/* ==========================================================================
   SUB-DOCK — atalhos (toque duplo no Início)
   ========================================================================== */
.subdock {
  position: fixed;
  left: 0;
  right: 0;
  margin-inline: auto;
  bottom: calc(var(--dock-bottom) + var(--dock-h) + 3px + env(safe-area-inset-bottom));
  width: min(var(--dock-w), calc(100% - 52px));
  height: 50px;
  z-index: 33;
  pointer-events: none;
}
.subdock[hidden] { display: none; }
.subdock__bg {
  position: absolute;
  left: 9px;
  top: 0;
  width: 193px;
  height: 50px;
  border-radius: var(--radius-full);
  background: rgb(156 184 240 / .92);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  backdrop-filter: blur(10px) saturate(1.4);
  box-shadow: 0 0 0 2px rgb(225 230 240 / .9), 0 10px 24px -10px rgb(5 45 123 / .35);
}
.subdock__item {
  position: absolute;
  top: 4.5px;
  width: 41px;
  height: 41px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  pointer-events: auto;
  transition: background-color var(--dur-fast), transform var(--dur-instant) var(--ease-out);
}
.subdock__item:nth-of-type(1) { left: 14.6px; background: #84A3E3; }
.subdock__item:nth-of-type(2) { left: 60.1px; }
.subdock__item:nth-of-type(3) { left: 105.6px; }
.subdock__item:nth-of-type(4) { left: 151.1px; }
.subdock__item .ic { width: 26px; height: 26px; stroke-width: 2; }
.subdock__item:active { background: rgb(255 255 255 / .22); }
@media (hover: hover) { .subdock__item:not(:nth-of-type(1)):hover { background: rgb(255 255 255 / .16); } }

/* ==========================================================================
   MOVIMENTO REDUZIDO
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .progress__flow { animation: none; }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

/* ==========================================================================
   HOVER: as linhas de cima e de baixo somem; fica só o fundo cinza claro
   ========================================================================== */
.tx::after, .set-card > li, .ccl-list > li, .plist > li { transition: opacity var(--dur-fast), border-color var(--dur-fast); }
@media (hover: hover) {
  .tx:hover::after, .tx:hover + .tx::after { opacity: 0; }                    /* listas com linha em cima */
  .tx-all .tx:hover::after, .tx-all .tx:has(+ .tx:hover)::after { opacity: 0; } /* Transações: linha embaixo */
  .tx-all .tx:hover + .tx::after { opacity: 1; }
  .set-card > li:hover, .set-card > li:hover + li,
  .ccl-list > li:hover, .ccl-list > li:hover + li,
  .plist > li:hover, .plist > li:hover + li { border-top-color: transparent; }
  .pcard:hover { background: var(--slate-50); border-radius: 10px; }
}

/* ==========================================================================
   CONTAS E CAIXINHAS
   ========================================================================== */
.acct-list, .box-list { padding-block: 4px; }
.acct-list > li + li, .box-list > li + li { border-top: 1px solid var(--slate-100); }
.acct__row { display: grid; grid-template-columns: 33px minmax(0, 1fr) auto 30px 30px; align-items: center; column-gap: 6px; min-height: 58px; }
.acct__row .pcard__act { width: 30px; height: 30px; }
.acct__row .acc-row__meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct__row .acc-row__value { font-size: 12.5px; white-space: nowrap; }
.acct__row .acc-row__text { margin-left: 2px; }
.acct__main { margin-right: 5px; padding: 1px 6px; border-radius: 999px; font-size: 9px; font-weight: var(--fw-semibold); background: color-mix(in srgb, var(--ac) 12%, var(--mix-base)); color: var(--ac); vertical-align: 1px; }
.acct.is-open .cat-edit, .box.is-open .cat-edit { grid-template-rows: 1fr; }
.acct__kinds { flex-wrap: wrap; }
.acct__kinds .csub__opt[aria-selected="true"] { background: var(--cc, var(--goal)); border-color: var(--cc, var(--goal)); }
.acct__mainbtn { margin: 14px 0 0; }
.acct__mainbtn:disabled { cursor: default; }

.box { position: relative; }
.box__row { width: 100%; min-height: 60px; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; column-gap: 11px; text-align: left; border-radius: 10px; }
.box__ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--bc) 14%, var(--mix-base)); color: var(--bc); }
.box__ic .ic { width: 19px; height: 19px; }
.box__text { display: flex; flex-direction: column; min-width: 0; }
.box__name { font-size: 13px; font-weight: var(--fw-semibold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.box__meta { font-size: var(--fs-caption); color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.box__yield { color: var(--green-700); }
.box__value { display: flex; flex-direction: column; align-items: flex-end; font-size: 13px; font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; }
.box__tgt { font-size: 9.5px; font-weight: var(--fw-regular); color: var(--ink-4); }
.box__bar { display: block; height: 4px; margin: -4px 0 10px 47px; border-radius: 2px; background: var(--slate-50); overflow: hidden; }
.box__bar > span { display: block; height: 100%; width: calc(var(--p) * 100%); border-radius: 2px; background: var(--bc); transition: width var(--dur-slow) var(--ease-out); }
.box__acts { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 2px 0 10px; }
.box__form .ccopy__act { --cc: var(--bc); padding: 0 14px; height: 38px; }
.box__form .ccopy__act:disabled { opacity: .45; }
.box__edithead { padding: 0; margin-top: 10px; height: 42px; border-top: 1px solid var(--slate-100); }
.box.is-open .box__edithead[aria-expanded="true"] .cfg__chev { transform: rotate(-90deg); }
@media (hover: hover) {
  .box__row:hover { background: var(--slate-50); }
  .acct-list > li:hover, .acct-list > li:hover + li, .box-list > li:hover, .box-list > li:hover + li { border-top-color: transparent; }
}

/* ==========================================================================
   HOVER COM FOLGA: o fundo cinza passa 8px além do conteúdo (ícone e valor
   não encostam na borda do fundo), como nas linhas de transação.
   ========================================================================== */
.box__row, .ccl, .cat-row, button.set-row, .pcard, .acct__row {
  width: calc(100% + 16px);
  margin-inline: -8px;
  padding-inline: 8px;
  border-radius: 10px;
}
@media (hover: hover) {
  .acct__row:hover { background: var(--slate-50); }
}
/* anéis de seleção (cor/ícone) não são cortados pela borda da área recolhível */
.cat-edit__body .gcol, .cat-edit__body .gicons, .cfg__body .gcol, .cfg__body .gicons, .gopt .gcol, .gopt .gicons {
  padding: 4px;
  margin-inline: -4px;
}

/* ==========================================================================
   CARTÕES (UI do usuário, 2026-11-16) — medidas e cores amostradas dos mockups
   (imagem 923px → viewport 390: ÷ 2,367). Toda a paleta sai do matiz --h:
   azul (220) na visão geral; o matiz do cartão na página dele. Os tons
   (saturação/luminosidade) são os mesmos medidos no mockup azul e no roxo.
   ========================================================================== */
.hero--ov, .hero--bill, .page--ov, .page--bill, .dmt {
  --h: 220;
  --t-tile:   hsl(var(--h) 100% 97%);   /* bloco do mês, fundo do limite   (#F0F5FF / #F5F0FF) */
  --t-area0:  hsl(var(--h) 96% 90%);    /* área sob o traço — topo         (#CEE0FF / #DFD0FE) */
  --t-area1:  hsl(var(--h) 92% 96%);    /* área sob o traço — base         (#ECF3FE / #F1ECFE) */
  --t-line:   hsl(var(--h) 56% 46%);    /* traço do gráfico                (#3560B8) */
  --t-mlab:   hsl(var(--h) 65% 40%);    /* mês (não escolhido)             (#2351A6 / #4B26AB) */
  --t-mval:   hsl(var(--h) 44% 58%);    /* valor do mês                    (#6485C3 / #7E68B8) */
  --t-onlab:  hsl(var(--h) 22% 15%);    /* mês escolhido                   (#1E262C / #211C2E) */
  --t-onval:  hsl(var(--h) 10% 34%);    /* valor do mês escolhido          (#4D5560 / #534E5E) */
  --t-b1:     hsl(var(--h) 76% 63%);    /* contorno: pontas claras         (#5A8BEA / #7E58E4) */
  --t-b2:     hsl(var(--h) 48% 35%);    /* contorno: meio escuro           (#2E4C84 / #473387) */
  --t-accent: hsl(var(--h) 39% 52%);    /* ano, Minhas, selo da fatura     (#5E7BB6 / #6046A3) */
  --t-label:  hsl(var(--h) 28% 50%);    /* "Fatura Atual:" / "Faturas de"  (#5E71A3 / #6B5AA4) */
  --t-cents:  hsl(var(--h) 33% 51%);    /* centavos do valor               (#5772AD / #6E58A6) */
  --t-used0:  hsl(var(--h) 48% 39%);    /* limite usado — degradê          (#4F3496 → #5939A6) */
  --t-used1:  hsl(var(--h) 49% 45%);
  --t-free:   hsl(var(--h) 30% 76%);    /* limite disponível               (#B8ADD3) */
  --t-ukey:   hsl(var(--h) 39% 43%);    /* "Utilizado"                     (#574399) */
  --t-uval:   hsl(var(--h) 49% 45%);    /* valor utilizado                 (#5B3BAA) */
  --t-fkey:   hsl(var(--h) 16% 40%);    /* "Disponível" e valor            (#5E5678) */
  --t-showbg: hsl(var(--h) 100% 97.5%); /* botão "Mostrar dados"           (#F6F1FF) */
  --t-showtx: hsl(var(--h) 41% 47%);    /*                                  (#6347A9) */
}

/* ---------------- gráfico de meses (as duas páginas) ---------------- */
.hero .mt {
  right: var(--gutter); height: 114px;
  display: flex; gap: 5px; overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; scroll-snap-type: x mandatory; scroll-behavior: auto;
  pointer-events: auto; overscroll-behavior-x: contain; touch-action: pan-x;
  cursor: grab; user-select: none; -webkit-user-select: none;
}
.mt::-webkit-scrollbar { display: none; }
.mt.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.mt__tile {
  position: relative; flex: none; width: calc((100% - 15px) / 4); height: 100%;
  border-radius: 9px; overflow: hidden; scroll-snap-align: start;
  background: var(--t-tile);
}
.mt__tile:focus-visible { outline: 2px solid var(--t-b1); outline-offset: 1px; }
/* área sob o traço: recorte do mesmo polígono do traço + degradê vertical */
.mt__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.mt__defs { position: absolute; width: 0; height: 0; }
.mt__line { fill: none; stroke: var(--t-line); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.mt__dot { position: absolute; left: 50%; width: 5.5px; height: 5.5px; margin: -2.75px 0 0 -2.75px; border-radius: 50%; background: #000; }
.mt__tile.is-on .mt__dot { width: 9.5px; height: 9.5px; margin: -4.75px 0 0 -4.75px; box-shadow: 0 0 0 2.6px var(--t-tile), 0 0 0 4.1px #000; }
.mt__m, .mt__v { position: absolute; left: 0; right: 0; text-align: center; font-size: 12.5px; line-height: 15px; font-variant-numeric: tabular-nums; }
.mt__m { top: 82.5px; font-weight: var(--fw-bold); color: var(--t-mlab); }
.mt__v { top: 95px; color: var(--t-mval); }
.mt__tile.is-on .mt__m { color: var(--t-onlab); }
.mt__tile.is-on .mt__v { color: var(--t-onval); }
/* contorno do mês escolhido: degradê na diagonal — pontas claras, meio escuro */
.mt__tile.is-on::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.6px; pointer-events: none;
  background: linear-gradient(135deg, var(--t-b1) 0%, var(--t-b2) 50%, var(--t-b1) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
/* sobre o gráfico de meses: [alvo = mês atual] [ano ▾] — o ano abre a lista de anos */
.mt-ctl { display: inline-flex; align-items: center; gap: 6px; left: auto !important; right: var(--gutter); }
.mt-year { position: relative; height: 15px; padding: 0 7px; border-radius: 999px; display: inline-flex; align-items: center; background: var(--t-accent); color: var(--white); font-size: 10.5px; font-weight: var(--fw-bold); line-height: 1; font-variant-numeric: tabular-nums; transition: filter var(--dur-fast); }
.mt-year:empty { display: none; }
.mt-year[aria-expanded="true"] { filter: brightness(.9); }
.mt-now { position: relative; width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; color: var(--t-accent); background: color-mix(in srgb, var(--t-accent) 14%, var(--mix-base)); transition: background-color var(--dur-fast); }
.mt-now[hidden] { display: none; }
.mt-now .ic { width: 12px; height: 12px; stroke-width: 2.4; }
/* área de toque de ~36px sem mudar o desenho */
.mt-year::before, .mt-now::before { content: ""; position: absolute; inset: -10px -4px; }
@media (hover: hover) { .mt-year:hover { filter: brightness(.94); } .mt-now:hover { background: color-mix(in srgb, var(--t-accent) 22%, var(--mix-base)); } }
.mt-year:focus-visible, .mt-now:focus-visible { outline: 2px solid var(--t-accent); outline-offset: 2px; }
/* lista de anos */
.ypop { position: fixed; z-index: 80; min-width: 96px; max-height: 240px; overflow-y: auto; padding: 5px; border-radius: 12px; background: var(--surface); border: 1px solid var(--slate-100); box-shadow: 0 16px 34px -14px rgb(5 25 60 / .35); scrollbar-width: thin; }
.ypop__opt { width: 100%; height: 34px; padding: 0 12px; border-radius: 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; font-weight: var(--fw-semibold); color: var(--ink); font-variant-numeric: tabular-nums; transition: background-color var(--dur-fast); }
.ypop__opt small { font-size: 10.5px; font-weight: var(--fw-medium); color: var(--ink-4); }
.ypop__opt[aria-checked="true"] { background: color-mix(in srgb, var(--blue-500) 14%, var(--mix-base)); color: var(--blue-500); }
.ypop__opt:active { background: var(--slate-50); }
@media (hover: hover) { .ypop__opt:not([aria-checked="true"]):hover { background: var(--slate-50); } }

/* ---------------- visão geral: topo ---------------- */
.hero--ov .ov__label { top: 110px; font-size: 15px; line-height: 20px; color: var(--t-label); }
.hero--ov .ov__label b { font-weight: var(--fw-bold); }
.hero--ov .ov__value { top: 131px; }
.hero--ov .ov__value .balance__cents { color: var(--t-cents); }
.hero--ov .ov__who { top: 195px; }
.hero--ov .ov__who .who__opt { height: 21px; padding: 0 11px; font-size: 11.5px; }
.hero--ov .ov__who .who__opt[aria-checked="true"] { background: var(--t-accent); }
.hero--ov .ov__year { top: 209px; } /* 2px acima: o alvo (19px) é mais alto que o ano (15px) */
.hero--ov .ov__months { top: 230px; }

/* ---------------- visão geral: cartões em carteira ---------------- */
/* fim da rolagem: a última pessoa para 24px acima da dock (o palco já reserva dock + 48px) */
.page--ov { margin-bottom: -24px; }
.ov-cards { margin-top: 30px; }
/* título preso sob o cabeçalho enquanto houver cartões: o trilho termina 170px (1 cartão + folga)
   antes do fim da carteira, então o título sobe junto com o último cartão da pilha */
.ov-cards { position: relative; padding-top: 27px; }
.ov-cards__track { position: absolute; inset: 0 var(--gutter) 170px; z-index: 2; pointer-events: none; }
/* preso mantendo a mesma margem de 30px do estado aberto; sem fundo */
.ov-cards__head { position: sticky; top: calc(var(--header-h-ov) + 30px); pointer-events: auto; display: flex; align-items: center; justify-content: space-between; height: 27px; padding-bottom: 7px; }
.ov-cards__title { font-size: 13px; font-weight: var(--fw-bold); line-height: 20px; }
/* visão em lista: preso, o título ganha o fundo da página (do cabeçalho até ele) e um degradê curto embaixo */
.ov-cards__head { isolation: isolate; }
.ov-cards__head::before, .ov-cards__head::after { content: ""; position: absolute; left: calc(var(--gutter) * -1); right: calc(var(--gutter) * -1); z-index: -1; pointer-events: none; opacity: 0; transition: opacity var(--dur-fast); }
.ov-cards__head::before { top: -30px; bottom: 0; background: var(--bg); }
.ov-cards__head::after { top: 100%; height: 18px; background: linear-gradient(var(--bg), transparent); }
.ov-cards__head.is-stuck::before, .ov-cards__head.is-stuck::after { opacity: 1; }
.ov-cards__add { font-size: 13px; font-weight: var(--fw-bold); color: var(--ink); padding: 6px 0 6px 10px; margin: -6px 0; border-radius: 8px; transition: opacity var(--dur-fast); }
.ov-cards__add:active { opacity: .6; }
.wallet { position: relative; padding-bottom: 4px; }
.wcard {
  position: sticky; top: calc(var(--header-h-ov) + 57px + var(--i) * 42px); /* 30 margem + 27 título; faixa de 42px: nome e bandeira visíveis */
  display: flex; width: 100%; height: 166px; z-index: 1;
  transition: transform var(--dur-instant) var(--ease-out), filter var(--dur-fast);
}
.wcard + .wcard { margin-top: -55px; } /* abertos: um a cada 111px (medida do mockup) */
/* sombra só para cima (sobre o cartão de baixo); spread = −blur: nada vaza nas laterais */
.wcard + .wcard { box-shadow: 0 -5px 8px -8px rgb(10 10 40 / .45); }
.wcard:focus-visible { outline: 2px solid var(--blue-200); outline-offset: 2px; }
.wcard:active { filter: brightness(.96); }
.wcard .cf__brand .brand--mc { width: 46px; height: 28px; }
.wcard .cf__brand .brand--visa { width: 52px; height: 18px; }
.wcard .cf__brand .brand--elo { width: 50px; height: 21px; }
.wcard .cf__brand .brand--amex { width: 46px; height: 21px; }
.wcard .cf__total { margin-top: 4px; }
.ov-people { margin-top: 26px; }
.ov-people__title { margin-bottom: 4px; }

/* ---------------- pessoas (as duas páginas) ---------------- */
.bpp { margin-top: 10px; }
.bpp__row {
  width: calc(100% + 16px); margin-inline: -8px; padding: 5px 8px;
  display: grid; grid-template-columns: 47px minmax(0, 1fr); column-gap: 12px; align-items: center;
  text-align: left; border-radius: 12px; transition: background-color var(--dur-fast);
}
@media (hover: hover) { .bpp__row:hover { background: var(--slate-50); } }
.bpp__av { width: 47px; height: 47px; font-size: 15px; }
.bpp__av .ic { width: 22px; height: 22px; }
.bpp__text { display: flex; flex-direction: column; min-width: 0; }
.bpp__name { font-size: 13.5px; font-weight: var(--fw-bold); line-height: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bpp__v { font-size: 14px; line-height: 19px; font-variant-numeric: tabular-nums; }
.bpp__bar { display: block; height: 7px; margin-top: 4px; border-radius: 4px; background: #E1E6EF; overflow: hidden; }
.bpp__bar > span { display: block; height: 100%; width: calc(var(--p) * 100%); border-radius: 4px; background: var(--pc); transition: width var(--dur-slow) var(--ease-out); }
.bpp__more { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 260ms var(--ease-out), opacity 200ms var(--ease-out); }
.bpp__item.is-open .bpp__more { grid-template-rows: 1fr; opacity: 1; }
.bpp__inner { min-height: 0; overflow: hidden; }
.bpp__list { margin: 2px 0 8px 59px; padding-left: 10px; border-left: 2px solid color-mix(in srgb, var(--pc) 35%, var(--mix-base)); }
.bpp__list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; column-gap: 10px; align-items: baseline; padding: 3px 0; font-size: 11px; }
.bpp__t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bpp__i { font-size: 10px; font-weight: var(--fw-semibold); color: #5D6D85; }
.bpp__s { font-weight: var(--fw-medium); font-variant-numeric: tabular-nums; text-align: right; }

/* ---------------- página do cartão: topo ---------------- */
.hero--bill .bill__label { top: 96px; display: flex; align-items: center; gap: 6px; font-size: 15px; line-height: 20px; color: var(--t-label); }
.bill__badge { height: 17px; padding: 0 6px; border-radius: 5px; display: inline-flex; align-items: center; background: var(--t-accent); color: var(--white); font-size: 12px; font-weight: var(--fw-bold); line-height: 1; }
.bill__badge[hidden] { display: none; }
.bill__badge[data-status="paid"] { background: var(--green-500); }
.bill__badge[data-status="overdue"] { background: #E5484D; }
.hero--bill .bill__value { top: 117px; }
.hero--bill .bill__value .balance__cents { color: var(--t-cents); }
.hero--bill .bill__edit { left: auto; right: calc(var(--gutter) - 6px); top: 123px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); transition: background-color var(--dur-fast), transform var(--dur-instant) var(--ease-out); }
.hero--bill .bill__edit .ic { width: 22px; height: 22px; stroke-width: 1.9; }
@media (hover: hover) { .hero--bill .bill__edit:hover { background: rgb(225 230 240 / .55); } }
.hero--bill .bill__sub { top: 170px; right: 80px; font-size: 15px; line-height: 20px; color: #909092; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero--bill .bill__year { top: 182px; }
.hero--bill .bill__months { top: 202px; }

/* limite de gastos */
.hero--bill .bill__limit { top: 325px; right: var(--gutter); height: 96px; pointer-events: auto; }
.lim { height: 100%; padding: 13px 18px 0; border-radius: 12px; background: var(--t-tile); }
.lim__head { display: flex; align-items: center; justify-content: space-between; height: 20px; }
.lim__title { font-size: 13px; font-weight: var(--fw-bold); color: var(--ink); }
.lim__adj { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: var(--fw-bold); color: var(--ink); }
.lim__adj .ic { width: 11px; height: 11px; stroke-width: 3; }
.lim__bar { position: relative; display: block; height: 10px; margin-top: 10px; border-radius: 5px; background: var(--t-free); }
.lim__bar > span { display: block; height: 100%; width: calc(var(--p) * 100%); border-radius: 5px; background: linear-gradient(90deg, var(--t-used0), var(--t-used1)); transition: width var(--dur-slow) var(--ease-out); }
.lim__foot { display: flex; justify-content: space-between; margin-top: 7px; }
.lim__foot > span { display: flex; flex-direction: column; }
.lim__foot .lim__free { align-items: flex-end; }
.lim__k { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; line-height: 15px; color: var(--t-ukey); }
.lim__k i { width: 7px; height: 7px; border-radius: 50%; background: var(--t-uval); }
.lim__foot b { font-size: 12.5px; line-height: 16px; font-weight: var(--fw-bold); color: var(--t-uval); font-variant-numeric: tabular-nums; }
.lim__free .lim__k, .lim__free b { color: var(--t-fkey); }
.lim__free .lim__k i { background: var(--t-free); }
.lim.is-over .lim__bar > span { background: linear-gradient(90deg, #C2571A, #E5484D); }
.lim.is-over .lim__free .lim__k, .lim.is-over .lim__free b { color: #B3261E; }
.lim.is-over .lim__free .lim__k i { background: #E5484D; }
/* marcador do SEU limite dentro do crédito do cartão */
.lim__cap { position: absolute; top: -3px; bottom: -3px; left: calc(var(--c) * 100% - 1px); width: 2px; border-radius: 1px; background: var(--ink); opacity: .7; }
.lim__mine { align-items: center; }
.lim__mine .lim__k i { width: 2px; height: 9px; border-radius: 1px; background: var(--ink); opacity: .7; }
.lim__mine .lim__k, .lim__mine b { color: var(--ink); }
.lim.is-cap .lim__bar > span { background: linear-gradient(90deg, #C2571A, #E8873B); }
.lim.is-cap .lim__mine .lim__k, .lim.is-cap .lim__mine b, .lim.is-over .lim__mine .lim__k, .lim.is-over .lim__mine b { color: #B4561C; }
.lim--edit { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding-top: 0; }
.lim__row { display: grid; grid-template-columns: minmax(0, 1fr) auto 38px; gap: 6px; }
.lim__ok { height: 38px; padding: 0 14px; border-radius: 10px; display: inline-flex; align-items: center; gap: 5px; background: var(--t-accent); color: var(--white); font-size: 12px; font-weight: var(--fw-semibold); }
.lim__ok .ic { width: 13px; height: 13px; stroke-width: 2.6; }
.lim__cancel { height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--white); border: 1px solid var(--slate-100); color: var(--slate-500); }
.lim__cancel .ic { width: 14px; height: 14px; }
.lim__hint { font-size: 9.5px; line-height: 12px; color: var(--t-fkey); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero input { pointer-events: auto; }

/* ---------------- página do cartão: Meus Cartões ---------------- */
.bill-cards { margin-top: 23px; }
.bill-cards__title { font-size: 15px; font-weight: var(--fw-bold); line-height: 20px; margin-bottom: 11px; }
.stack { position: relative; isolation: isolate; z-index: 0; touch-action: pan-y; user-select: none; -webkit-user-select: none; outline: none; }
.stack:focus-visible { outline: 2px solid var(--t-b1); outline-offset: 4px; border-radius: 14px; }
/* ---------------- frente do cartão (a mesma nas duas páginas) ---------------- */
.cface {
  display: flex; flex-direction: column; padding: 13px 16px 12px;
  border-radius: 12px; border: 1px solid color-mix(in srgb, var(--cc, hsl(var(--h) 66% 60%)) 55%, #FFFFFF);
  color: var(--white); text-align: left;
  /* a cor exata do cartão no meio, um pouco mais escura à esquerda e mais clara à direita
     (é a cor física do cartão: igual nos dois temas, por isso preto/branco fixos na mistura) */
  background: linear-gradient(28deg, color-mix(in srgb, var(--cc, hsl(var(--h) 66% 60%)) 84%, #000000) 0%, var(--cc, hsl(var(--h) 66% 60%)) 45%, color-mix(in srgb, var(--cc, hsl(var(--h) 66% 60%)) 80%, #FFFFFF) 100%);
  -webkit-tap-highlight-color: transparent;
}
/* ---------------- desenhos da frente (escolhidos no popup do cartão) ----------------
   Tudo em camadas de fundo, a partir da cor exata (--cc): funciona do cartão grande à miniatura.
   É a cor física do cartão (igual nos dois temas), por isso as misturas usam preto/branco fixos. */
.cface {
  --c-dk: color-mix(in srgb, var(--cc, hsl(var(--h) 66% 60%)) 70%, #000000);
  --c-dk2: color-mix(in srgb, var(--cc, hsl(var(--h) 66% 60%)) 52%, #000000);
  --c-lt: color-mix(in srgb, var(--cc, hsl(var(--h) 66% 60%)) 68%, #FFFFFF);
  --c: var(--cc, hsl(var(--h) 66% 60%));
}
/* Liso: só a cor */
.cface[data-design="flat"] { background: var(--c); }
/* Arco: círculo escuro à esquerda, faixa de luz em arco e painel escuro à direita */
.cface[data-design="arc"] {
  background:
    linear-gradient(90deg, transparent 0 68%, var(--c-dk) 68% 100%),
    radial-gradient(ellipse 60% 98% at 0% 52%, var(--c-dk2) 0 99%, transparent 100%),
    linear-gradient(100deg, var(--c-lt) 30%, var(--c) 70%);
}
/* Faixa: painel vertical mais escuro à direita, com um brilho leve */
.cface[data-design="band"] {
  background:
    linear-gradient(90deg, transparent 0 72%, rgb(255 255 255 / .1) 72% 72.6%, var(--c-dk) 72.6% 100%),
    linear-gradient(160deg, var(--c-lt) 0%, var(--c) 55%);
}
/* Ondas: três ondas sobrepostas na parte de baixo */
.cface[data-design="wave"] {
  background:
    radial-gradient(ellipse 85% 55% at 18% 118%, var(--c-dk2) 0 99%, transparent 100%),
    radial-gradient(ellipse 95% 60% at 75% 112%, var(--c-dk) 0 99%, transparent 100%),
    radial-gradient(ellipse 110% 65% at 35% 100%, color-mix(in srgb, var(--c) 85%, #000000) 0 99%, transparent 100%),
    linear-gradient(180deg, var(--c-lt), var(--c) 60%);
}
/* Diagonal: o cartão dividido em dois tons */
.cface[data-design="diag"] { background: linear-gradient(118deg, var(--c) 0 56%, var(--c-dk) 56% 100%); }
/* Círculos: anéis finos saindo do canto de baixo à direita */
.cface[data-design="rings"] {
  background:
    radial-gradient(circle at 100% 100%, transparent 0 22%, rgb(255 255 255 / .16) 22% 23.2%, transparent 23.2% 38%, rgb(255 255 255 / .12) 38% 39.2%, transparent 39.2% 54%, rgb(255 255 255 / .09) 54% 55.2%, transparent 55.2% 70%, rgb(255 255 255 / .06) 70% 71.2%, transparent 71.2%),
    linear-gradient(135deg, var(--c) 0%, var(--c-dk) 100%);
}
/* Brilho: luz no canto e textura granulada (como papel) */
.cface[data-design="glow"] {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 90% 90% at 100% 100%, var(--c-lt) 0%, transparent 70%),
    radial-gradient(ellipse 70% 70% at 0% 0%, var(--c-dk) 0%, transparent 75%),
    var(--c);
}
/* Linhas: riscas diagonais finas sobre o degradê */
.cface[data-design="lines"] {
  background:
    repeating-linear-gradient(135deg, rgb(255 255 255 / .09) 0 1px, transparent 1px 8px),
    linear-gradient(28deg, var(--c-dk) 0%, var(--c) 100%);
}
/* Aurora: duas manchas de luz em tons vizinhos da cor */
.cface[data-design="aurora"] {
  background:
    radial-gradient(circle at 12% 18%, hsl(calc(var(--h) + 45) 85% 66% / .85) 0%, transparent 48%),
    radial-gradient(circle at 88% 85%, hsl(calc(var(--h) - 35) 85% 52% / .8) 0%, transparent 52%),
    var(--c);
}

/* máscaras das estampas (cada uma escrita uma vez) */
:root {
  --m-glass: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 202' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.1'%3E%3Cpolyline points='326,4 317,-5'/%3E%3Cpolyline points='325,30 313,17 305,2'/%3E%3Cpolyline points='316,45 300,30 292,9 287,-10'/%3E%3Cpolyline points='309,58 289,41 277,18 271,-6'/%3E%3Cpolyline points='310,73 289,59 271,41 258,19 251,-5'/%3E%3Cpolyline points='317,94 296,81 277,66 259,49 244,30 233,7'/%3E%3Cpolyline points='316,113 294,100 275,85 257,69 240,51 224,31 213,8'/%3E%3Cpolyline points='316,129 293,120 271,107 252,91 235,73 219,54 205,32 195,9'/%3E%3Cpolyline points='317,144 292,138 269,128 247,114 228,97 212,78 198,56 187,33 178,9'/%3E%3Cpolyline points='324,160 300,156 276,149 252,140 230,127 211,110 194,90 181,68 172,45 165,20 161,-5'/%3E%3Cpolyline points='323,179 299,174 275,167 251,158 229,146 208,131 189,113 173,93 161,70 153,45 148,20 146,-5'/%3E%3Cpolyline points='322,201 297,195 273,187 250,177 228,165 207,150 187,133 170,114 156,93 144,70 136,45 131,20 130,-5'/%3E%3Cpolyline points='271,209 248,198 226,185 205,170 186,153 169,134 154,114 140,92 129,69 121,45 115,20 112,-5'/%3E%3Cpolyline points='231,210 210,196 191,179 173,161 157,142 143,121 130,100 119,78 110,55 102,32 97,7'/%3E%3Cpolyline points='188,200 170,182 153,163 139,143 125,122 114,100 103,78 94,55 86,32 80,7'/%3E%3Cpolyline points='168,203 149,185 133,166 118,146 105,124 94,102 84,79 76,56 69,32 63,8'/%3E%3Cpolyline points='147,205 129,188 112,169 97,149 84,127 72,105 62,81 55,57 48,33 44,8'/%3E%3Cpolyline points='134,213 115,197 98,179 82,159 68,139 55,117 44,94 36,70 29,45 25,21 22,-5'/%3E%3Cpolyline points='95,200 78,181 62,162 48,141 35,118 24,95 16,71 9,46 5,21 3,-4'/%3E%3Cpolyline points='73,203 57,184 42,163 29,141 17,119 7,95 -1,71 -8,46'/%3E%3Cpolyline points='51,207 37,186 23,164 11,142 1,119 -8,95'/%3E%3Cpolyline points='22,197 9,175 -2,152 -11,129'/%3E%3C/g%3E%3C/svg%3E");
  --m-topo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 202' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%23000' stroke-width='1'%3E%3Cpolyline points='-12,198 -4,202 3,207'/%3E%3Cpolyline points='-8,187 1,194 12,198 25,204'/%3E%3Cpolyline points='-4,172 8,182 22,188 39,196 51,211'/%3E%3Cpolyline points='-0,155 18,165 34,176 52,188 66,207'/%3E%3Cpolyline points='4,140 28,146 49,161 64,181 76,204'/%3E%3Cpolyline points='-2,126 25,126 50,136 69,155 80,180 86,205'/%3E%3Cpolyline points='-2,110 24,111 50,118 73,133 88,155 94,181 96,206'/%3E%3Cpolyline points='-1,90 24,95 48,104 71,116 90,134 103,157 109,182 111,206'/%3E%3Cpolyline points='-7,68 19,74 43,86 65,100 85,116 102,135 115,157 124,180 128,205'/%3E%3Cpolyline points='-7,51 20,56 44,67 65,83 83,101 100,119 115,138 129,158 140,181 148,205'/%3E%3Cpolyline points='-7,39 19,42 44,51 66,65 85,81 101,100 116,119 130,139 144,159 156,181 165,205'/%3E%3Cpolyline points='-7,30 18,33 42,40 65,49 86,63 105,79 122,97 136,116 149,137 162,158 172,181 181,205'/%3E%3Cpolyline points='11,23 35,29 59,36 82,45 104,57 124,72 142,90 158,110 171,132 181,155 190,179 196,204'/%3E%3Cpolyline points='11,10 34,16 57,23 80,32 103,42 125,54 146,68 165,86 181,107 193,129 202,154 208,179 211,204'/%3E%3Cpolyline points='11,-8 35,-2 58,6 81,15 103,25 125,36 147,50 167,66 185,84 201,105 213,128 222,153 226,179 227,204'/%3E%3Cpolyline points='83,-7 106,4 127,17 148,31 167,47 186,65 202,84 217,106 228,129 236,154 241,179 242,205'/%3E%3Cpolyline points='127,-8 148,7 167,24 185,43 201,63 215,84 228,107 238,130 246,154 252,179 254,205'/%3E%3Cpolyline points='171,2 188,22 204,42 217,64 229,86 239,109 248,132 255,156 261,180 265,205'/%3E%3Cpolyline points='191,1 207,21 222,42 234,64 244,87 253,110 260,134 267,157 272,181 276,205'/%3E%3Cpolyline points='208,2 224,22 238,42 251,64 261,87 270,110 277,133 283,157 288,181 291,206'/%3E%3Cpolyline points='221,2 238,21 253,41 267,62 279,84 289,107 297,131 303,155 308,180 311,205'/%3E%3Cpolyline points='237,4 254,22 269,41 284,62 297,83 308,106 318,130 325,154 330,179'/%3E%3Cpolyline points='255,3 271,21 287,41 301,61 314,83 326,106'/%3E%3Cpolyline points='277,-1 292,19 306,39 319,61 331,83'/%3E%3Cpolyline points='299,-8 313,13 326,35'/%3E%3C/g%3E%3C/svg%3E");
  --m-neon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 202' preserveAspectRatio='none'%3E%3Cpath d='M-20 30 C3 30 3 55 26 55 C49 55 49 51 72 51 C95 51 95 7 118 7 C141 7 141 14 164 14 C187 14 187 5 210 5 C233 5 233 19 256 19 C279 19 279 47 302 47 C325 47 325 18 348 18 C371 18 371 41 394 41' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M-20 85 C6 85 6 56 32 56 C58 56 58 63 84 63 C110 63 110 98 136 98 C162 98 162 72 188 72 C214 72 214 68 240 68 C266 68 266 63 292 63 C318 63 318 107 344 107 C370 107 370 71 396 71' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'/%3E%3Cpath d='M-20 140 C2 140 2 119 24 119 C46 119 46 115 68 115 C90 115 90 116 112 116 C134 116 134 169 156 169 C178 169 178 166 200 166 C222 166 222 161 244 161 C266 161 266 110 288 110 C310 110 310 125 332 125 C354 125 354 164 376 164' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round'/%3E%3Cpath d='M-20 185 C9 185 9 203 38 203 C67 203 67 202 96 202 C125 202 125 175 154 175 C183 175 183 196 212 196 C241 196 241 196 270 196 C299 196 299 199 328 199 C357 199 357 166 386 166' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round'/%3E%3Cpath d='M-20 60 C15 60 15 84 50 84 C85 84 85 90 120 90 C155 90 155 78 190 78 C225 78 225 21 260 21 C295 21 295 93 330 93 C365 93 365 43 400 43' fill='none' stroke='%23000' stroke-width='1.2' stroke-linecap='round'/%3E%3Cpath d='M-20 115 C-1 115 -1 137 18 137 C37 137 37 131 56 131 C75 131 75 141 94 141 C113 141 113 127 132 127 C151 127 151 132 170 132 C189 132 189 96 208 96 C227 96 227 91 246 91 C265 91 265 91 284 91 C303 91 303 133 322 133 C341 133 341 128 360 128' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E");
  --m-tri: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 202' preserveAspectRatio='none'%3E%3Cpolygon points='128,-10 176,-10 128,36' fill='%23000' fill-opacity='0.22'/%3E%3Cpolygon points='176,-10 176,36 128,36' fill='%23000' fill-opacity='0.25'/%3E%3Cpolygon points='176,-10 224,-10 176,36' fill='%23000' fill-opacity='0.38'/%3E%3Cpolygon points='224,-10 224,36 176,36' fill='%23000' fill-opacity='0.35'/%3E%3Cpolygon points='224,-10 272,-10 224,36' fill='%23000' fill-opacity='0.37'/%3E%3Cpolygon points='272,-10 272,36 224,36' fill='%23000' fill-opacity='0.15'/%3E%3Cpolygon points='272,-10 320,-10 272,36' fill='%23000' fill-opacity='0.2'/%3E%3Cpolygon points='320,-10 320,36 272,36' fill='%23000' fill-opacity='0.18'/%3E%3Cpolygon points='320,-10 368,-10 320,36' fill='%23000' fill-opacity='0.38'/%3E%3Cpolygon points='368,-10 368,36 320,36' fill='%23000' fill-opacity='0.4'/%3E%3Cpolygon points='176,36 224,36 176,82' fill='%23000' fill-opacity='0.11'/%3E%3Cpolygon points='224,36 224,82 176,82' fill='%23000' fill-opacity='0.12'/%3E%3Cpolygon points='224,36 272,36 224,82' fill='%23000' fill-opacity='0.14'/%3E%3Cpolygon points='272,36 272,82 224,82' fill='%23000' fill-opacity='0.14'/%3E%3Cpolygon points='272,36 320,36 272,82' fill='%23000' fill-opacity='0.23'/%3E%3Cpolygon points='320,36 320,82 272,82' fill='%23000' fill-opacity='0.27'/%3E%3Cpolygon points='320,36 368,36 320,82' fill='%23000' fill-opacity='0.15'/%3E%3Cpolygon points='368,36 368,82 320,82' fill='%23000' fill-opacity='0.05'/%3E%3Cpolygon points='176,82 224,82 176,128' fill='%23000' fill-opacity='0.21'/%3E%3Cpolygon points='224,82 224,128 176,128' fill='%23000' fill-opacity='0.19'/%3E%3Cpolygon points='224,82 272,82 224,128' fill='%23000' fill-opacity='0.26'/%3E%3Cpolygon points='272,82 272,128 224,128' fill='%23000' fill-opacity='0.4'/%3E%3Cpolygon points='272,82 320,82 272,128' fill='%23000' fill-opacity='0.31'/%3E%3Cpolygon points='320,82 320,128 272,128' fill='%23000' fill-opacity='0.24'/%3E%3Cpolygon points='320,82 368,82 320,128' fill='%23000' fill-opacity='0.28'/%3E%3Cpolygon points='368,82 368,128 320,128' fill='%23000' fill-opacity='0.3'/%3E%3Cpolygon points='224,128 272,128 224,174' fill='%23000' fill-opacity='0.07'/%3E%3Cpolygon points='272,128 272,174 224,174' fill='%23000' fill-opacity='0.38'/%3E%3Cpolygon points='272,128 320,128 272,174' fill='%23000' fill-opacity='0.34'/%3E%3Cpolygon points='320,128 320,174 272,174' fill='%23000' fill-opacity='0.37'/%3E%3Cpolygon points='320,128 368,128 320,174' fill='%23000' fill-opacity='0.35'/%3E%3Cpolygon points='368,128 368,174 320,174' fill='%23000' fill-opacity='0.2'/%3E%3Cpolygon points='-8,120 36,162 -8,162' fill='%23000' fill-opacity='0.16'/%3E%3Cpolygon points='-8,120 36,120 36,162' fill='%23000' fill-opacity='0.08'/%3E%3Cpolygon points='36,120 80,162 36,162' fill='%23000' fill-opacity='0.21'/%3E%3Cpolygon points='36,120 80,120 80,162' fill='%23000' fill-opacity='0.07'/%3E%3Cpolygon points='-8,162 36,204 -8,204' fill='%23000' fill-opacity='0.08'/%3E%3Cpolygon points='-8,162 36,162 36,204' fill='%23000' fill-opacity='0.11'/%3E%3Cpolygon points='36,162 80,204 36,204' fill='%23000' fill-opacity='0.1'/%3E%3Cpolygon points='36,162 80,162 80,204' fill='%23000' fill-opacity='0.14'/%3E%3Cpolygon points='80,162 124,204 80,204' fill='%23000' fill-opacity='0.07'/%3E%3Cpolygon points='80,162 124,162 124,204' fill='%23000' fill-opacity='0.06'/%3E%3C/svg%3E");
  --m-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 202' preserveAspectRatio='none'%3E%3Cline x1='40' y1='202' x2='330' y2='20' stroke='%23000' stroke-width='1'/%3E%3Cline x1='90' y1='202' x2='330' y2='60' stroke='%23000' stroke-width='1'/%3E%3Cline x1='-10' y1='150' x2='330' y2='0' stroke='%23000' stroke-width='1'/%3E%3Cline x1='150' y1='202' x2='300' y2='-10' stroke='%23000' stroke-width='1'/%3E%3Cline x1='0' y1='110' x2='260' y2='-10' stroke='%23000' stroke-width='1'/%3E%3Cline x1='200' y1='202' x2='330' y2='120' stroke='%23000' stroke-width='1'/%3E%3C/svg%3E");
  --m-stitch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 202' preserveAspectRatio='none'%3E%3Cpath d='M4 111 l5 4 l5 -4' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M14 111 l5 4 l5 -4' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M24 111 l5 4 l5 -4' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M34 111 l5 4 l5 -4' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M44 111 l5 4 l5 -4' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M54 111 l5 4 l5 -4' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M64 111 l5 4 l5 -4' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M74 111 l5 4 l5 -4' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M84 111 l5 4 l5 -4' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M94 111 l5 4 l5 -4' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M104 111 l5 4 l5 -4' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M114 111 l5 4 l5 -4' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M124 111 l5 4 l5 -4' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M134 111 l5 4 l5 -4' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M144 111 l5 4 l5 -4' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M154 111 l5 4 l5 -4' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M164 111 l5 4 l5 -4' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M174 111 l5 4 l5 -4' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M184 111 l5 4 l5 -4' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M194 111 l5 4 l5 -4' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M204 111 l5 4 l5 -4' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M214 111 l5 4 l5 -4' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M224 111 l5 4 l5 -4' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M234 111 l5 4 l5 -4' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M244 111 l5 4 l5 -4' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M254 111 l5 4 l5 -4' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M264 111 l5 4 l5 -4' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M274 111 l5 4 l5 -4' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M284 111 l5 4 l5 -4' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M294 111 l5 4 l5 -4' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M304 111 l5 4 l5 -4' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M314 111 l5 4 l5 -4' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --m-smile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 202' preserveAspectRatio='none'%3E%3Cpath d='M78 126 Q160 196 242 126' fill='none' stroke='%23000' stroke-width='17' stroke-linecap='round'/%3E%3C/svg%3E");
}
/* ---------- desenhos com estampa (camada ::before na cor certa, recortada por uma máscara) ----------
   A frente isola a pintura: a estampa (z-index −1) fica acima do fundo e abaixo do texto. */
:where(.cface[data-design]) { position: relative; }
.cface[data-design] { isolation: isolate; }
.cface[data-design]::before { content: none; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }

/* Vidro: painel claro à esquerda e o resto translúcido com linhas de contorno */
.cface[data-design="glass"] {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--c) 10%, #F2C46D) 0 34%, rgb(255 255 255 / .35) 34% 34.6%, transparent 34.6%),
    radial-gradient(ellipse 70% 90% at 100% 100%, hsl(calc(var(--h) + 40) 80% 62% / .8), transparent 70%),
    linear-gradient(125deg, var(--c-lt), var(--c) 70%);
}
.cface[data-design="glass"]::before { content: ""; background: rgb(255 255 255 / .55);
  -webkit-mask-image: var(--m-glass), linear-gradient(90deg, transparent 34.6%, #000 34.6%);
  mask-image: var(--m-glass), linear-gradient(90deg, transparent 34.6%, #000 34.6%);
  -webkit-mask-composite: source-in; mask-composite: intersect; }

/* Neon: cartão escuro com rabiscos na cor do cartão e um brilho no canto */
.cface[data-design="neon"] {
  background:
    radial-gradient(ellipse 80% 90% at 100% 100%, color-mix(in srgb, var(--c) 55%, transparent), transparent 70%),
    linear-gradient(150deg, #19191C, #101012);
  border-color: color-mix(in srgb, var(--c) 35%, #2A2A2E);
}
.cface[data-design="neon"]::before { content: ""; background: var(--c); filter: drop-shadow(0 0 2px var(--c));
  -webkit-mask-image: var(--m-neon); mask-image: var(--m-neon); opacity: .9; }

/* Triângulos: mosaico de triângulos claros nos cantos */
.cface[data-design="tri"] { background: linear-gradient(160deg, var(--c) 0%, var(--c-dk) 100%); }
.cface[data-design="tri"]::before { content: ""; background: #FFFFFF; -webkit-mask-image: var(--m-tri); mask-image: var(--m-tri); }

/* Fios: cartão escuro com fios finos cruzados na cor do cartão (ex.: dourado) */
.cface[data-design="gold"] {
  background: linear-gradient(160deg, #1B1A1C 0%, #0E0E0F 100%);
  border-color: color-mix(in srgb, var(--c) 45%, #2A2A2E);
}
.cface[data-design="gold"]::before { content: ""; background: linear-gradient(120deg, var(--c-lt), var(--c) 50%, var(--c-lt));
  -webkit-mask-image: var(--m-gold); mask-image: var(--m-gold); }

/* Metal: dois tons (escuro em cima, fosco embaixo) com uma costura no meio */
.cface[data-design="metal"] {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .12 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(180deg, var(--c-dk2) 0 55%, color-mix(in srgb, var(--c) 40%, #8C8C90) 55% 100%);
}
.cface[data-design="metal"]::before { content: ""; background: rgb(255 255 255 / .4); -webkit-mask-image: var(--m-stitch); mask-image: var(--m-stitch); }

/* Sorriso: cor chapada com um traço curvo largo num tom vizinho */
.cface[data-design="smile"] { background: linear-gradient(160deg, var(--c-lt) -20%, var(--c) 55%); }
.cface[data-design="smile"]::before { content: ""; background: hsl(calc(var(--h) - 60) 75% 62%); -webkit-mask-image: var(--m-smile); mask-image: var(--m-smile); }

/* Topografia: linhas de contorno pelo cartão inteiro */
.cface[data-design="topo"] { background: linear-gradient(28deg, var(--c-dk) 0%, var(--c) 60%, var(--c-lt) 100%); }
.cface[data-design="topo"]::before { content: ""; background: rgb(255 255 255 / .22); -webkit-mask-image: var(--m-topo); mask-image: var(--m-topo); }

/* Losangos: padrão fino em todo o cartão, mais escuro embaixo */
.cface[data-design="diamond"] {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Cpath d='M11 1 L21 11 L11 21 L1 11 Z' fill='none' stroke='%23fff' stroke-opacity='.09' stroke-width='1'/%3E%3Ccircle cx='11' cy='11' r='1.2' fill='%23fff' fill-opacity='.1'/%3E%3C/svg%3E") 0 0 / 14px 14px, linear-gradient(200deg, var(--c) 0%, var(--c-dk2) 100%);
}

/* Pontos: meio-tom que se dissolve da direita para a esquerda */
.cface[data-design="dots"] { background: linear-gradient(135deg, var(--c) 0%, var(--c-dk) 100%); }
.cface[data-design="dots"]::before { content: "";
  background: radial-gradient(circle, rgb(255 255 255 / .32) 0 1.3px, transparent 1.7px) 0 0 / 9px 9px;
  -webkit-mask-image: linear-gradient(100deg, transparent 25%, #000 100%); mask-image: linear-gradient(100deg, transparent 25%, #000 100%); }

/* bandeiras e quadradinhos do número */
.brand--mc { display: block; }
.brand--visa, .brand--elo, .brand--amex { display: block; color: var(--white); }
.sq { display: inline-flex; gap: 2px; }
.sq i { width: 6.5px; height: 6.5px; background: currentColor; }
.cf__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; min-height: 24px; }
.cf__id { display: flex; flex-direction: column; min-width: 0; }
.cf__name { font-size: 10.5px; line-height: 13px; font-weight: var(--fw-bold); letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf__kind { margin-top: 2px; font-size: 9px; line-height: 10px; font-weight: var(--fw-bold); letter-spacing: .05em; opacity: .82; }
.cf__brand { flex: none; display: flex; flex-direction: column; align-items: flex-end; }
.cf__brand .brand--mc { width: 40px; height: 24px; }
.cf__brand .brand--visa { margin-top: 3px; width: 46px; height: 16px; }
.cf__brand .brand--elo { width: 44px; height: 19px; }
.cf__brand .brand--amex { width: 42px; height: 19px; }
.cf__last4 { margin-top: 6px; font-size: 13px; line-height: 16px; font-weight: var(--fw-semibold); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.cf__tl { margin-top: 6px; font-size: 12px; line-height: 14px; opacity: .95; }
.cf__total { font-size: 19px; line-height: 22px; font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; }
.cf__num { margin-top: auto; display: flex; align-items: center; gap: 9px; font-size: 16px; line-height: 18px; font-weight: var(--fw-semibold); letter-spacing: .04em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cf__num .sq i { width: 5.5px; height: 5.5px; }
.cf__holder { margin-top: 8px; min-height: 13px; font-size: 10.5px; line-height: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf__foot { display: flex; justify-content: space-between; margin-top: 5px; }
.cf__foot > span { display: flex; flex-direction: column; }
.cf__foot > span:last-child { align-items: flex-end; }
.cf__foot small { font-size: 9px; line-height: 10px; letter-spacing: .03em; opacity: .9; }
.cf__foot b { font-size: 13px; line-height: 16px; font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; }

/* página do cartão: pilha (o JS posiciona por transform) */
.scard {
  position: absolute; top: 0; left: 0;
  width: calc(100% - 103.125px); aspect-ratio: 1.6;
  will-change: transform; cursor: grab;
  --blur: 0px; --dim: 0;
}
.stack.is-single .scard { cursor: default; }
.scard > * { position: relative; z-index: 1; filter: blur(var(--blur)); }
.scard::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; background: rgb(20 8 40 / var(--dim)); pointer-events: none; z-index: 2; }
.scard:first-child { position: relative; }
.stack-show {
  margin-top: 6px; height: 31px; padding: 0 11px 0 12px;
  display: inline-flex; align-items: center; gap: 5px;
  border-radius: 10px; background: var(--t-showbg); color: var(--t-showtx); font-size: 12px; font-weight: var(--fw-bold);
  transition: transform var(--dur-instant) var(--ease-out), filter var(--dur-fast);
}
.stack-show .ic { width: 10px; height: 10px; stroke-width: 3.2; transition: transform var(--dur-base) var(--ease-out); }
.stack-show[aria-expanded="true"] .ic { transform: rotate(90deg); }
@media (hover: hover) { .stack-show:hover { filter: brightness(.97); } }
/* marcar a fatura do mês como paga (celular) */
.bill-pay:empty { display: none; }
.bill-pay { margin-top: 14px; }
.bill-pay__btn {
  width: 100%; height: 46px; padding: 0 16px; border-radius: 12px; display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: var(--fw-semibold); color: var(--white); background: var(--blue-500);
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out);
}
.bill-pay__btn .ic { width: 18px; height: 18px; stroke-width: 2.4; flex: none; }
.bill-pay__btn span { flex: 1; min-width: 0; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bill-pay__btn b { font-variant-numeric: tabular-nums; }
.bill-pay__btn.is-paid { color: var(--green-700); background: color-mix(in srgb, var(--green-500) 14%, var(--mix-base)); }
/* campos dos dados (abrem abaixo do botão) */
.cdata { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 300ms var(--ease-out), opacity 220ms var(--ease-out); }
.cdata.is-open { grid-template-rows: 1fr; opacity: 1; }
.cdata__inner { min-height: 0; overflow: hidden; }
.cdata__body { padding-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.cdata__row { display: grid; grid-template-columns: 58px minmax(0, 1fr) 36px; align-items: center; column-gap: 6px; }
.cdata__k { font-size: 11px; color: var(--ink-3); }
.cdata__in { height: 38px; min-width: 0; padding: 0 11px; border-radius: 9px; border: 1px solid transparent; background: var(--t-tile); font: var(--fw-semibold) 13px var(--font); color: var(--ink); font-variant-numeric: tabular-nums; outline: none; transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
/* número do cartão como texto editável (não <input>, ver render.cardData) */
.ce-in { display: flex; align-items: center; white-space: nowrap; overflow: hidden; cursor: text; }
.ce-in:empty::before { content: attr(data-ph); color: var(--ink-3); opacity: .7; font-weight: var(--fw-regular); }
.cdata__in:focus {border-color: var(--t-b1); box-shadow: 0 0 0 3px hsl(var(--h) 80% 70% / .22); background: var(--white); }
.cdata__copy { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--t-showtx); transition: background-color var(--dur-fast), transform var(--dur-instant) var(--ease-out); }
.cdata__copy .ic { width: 16px; height: 16px; }
.cdata__copy:active { background: var(--t-showbg); }
@media (hover: hover) { .cdata__copy:hover { background: var(--t-showbg); } }

/* Minhas/Todas + apenas parceladas (preso logo abaixo do cabeçalho contraído) */
.bill-ctrl {
  position: sticky; top: var(--header-h-bill-min); z-index: 6;
  display: flex; align-items: center; gap: 14px;
  margin-top: 14px; padding: 12px var(--gutter) 8px;
  background: var(--white);
}
.bill-ctrl::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 22px; background: linear-gradient(var(--surface), transparent); pointer-events: none; opacity: 0; transition: opacity var(--dur-fast); }
.bill-ctrl.is-stuck::after { opacity: 1; }
.bill-ctrl .who { background: #F3F3F7; border-color: #E8E8EF; }
.bill-ctrl .who__opt { height: 25px; padding: 0 12px; font-size: 11.5px; color: hsl(var(--h) 17% 45%); }
.bill-ctrl .who__opt[aria-checked="true"] { background: var(--t-accent); color: var(--white); }
.bill-check { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: var(--fw-semibold); color: var(--ink); }
.bill-check__box { width: 16px; height: 16px; border-radius: 4.5px; border: 1.6px solid var(--ink); display: grid; place-items: center; transition: background-color var(--dur-fast), border-color var(--dur-fast); }
.bill-check__box .ic { width: 11px; height: 11px; stroke-width: 3; color: var(--white); opacity: 0; transform: scale(.5); transition: opacity var(--dur-fast), transform var(--dur-base) var(--ease-spring); }
.bill-check[aria-checked="true"] .bill-check__box { background: var(--t-accent); border-color: var(--t-accent); }
.bill-check[aria-checked="true"] .bill-check__box .ic { opacity: 1; transform: none; }

/* compras da fatura (como no mockup: ícone neutro, forma de pagamento cinza, parcela em pílula) */
.bill-list { margin-top: 2px; }
/* última compra sem linha; mais ar antes das pessoas */
.bill-tx .tx-list:last-child > .tx:last-child::after { display: none; }
#cardPeople .bpp { margin-top: 22px; }
/* fim da rolagem: última pessoa ~24px acima da dock (o palco já reserva dock + 48px) */
.page--bill { margin-bottom: -24px; }
#cardBuys.is-revealing, #wallet.is-revealing {
  -webkit-mask-image: linear-gradient(90deg, #000 33.3%, transparent 66.6%); mask-image: linear-gradient(90deg, #000 33.3%, transparent 66.6%);
  -webkit-mask-size: 300% 100%; mask-size: 300% 100%; -webkit-mask-position: 100% 0; mask-position: 100% 0;
}
.bill-tx .tx-group { color: #6A6A6A; }
/* ícone neutro como no mockup: disco cinza e ícone escuro (entrada continua verde) */
.tx--bill.tx--out .tx__icon, .tx--bill.tx--saved .tx__icon { background: #F3F3F3; color: #2A2A2A; }
.tx--bill .tx__meta { color: #6A6A6A; }
.bill-tx .tx-group:first-child { padding-top: 2px; }
.bill-empty { padding-top: 28px; }
.tx__bill-right { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.tx__bill { display: flex; flex-direction: column; align-items: center; gap: 2px; max-width: 96px; min-width: 0; }
.tx__inst-pill { height: 14px; padding: 0 7px; border-radius: 999px; display: inline-flex; align-items: center; background: #5D6D85; color: var(--white); font-size: 10px; font-weight: var(--fw-bold); line-height: 1; font-variant-numeric: tabular-nums; }
.tx__bill-who { max-width: 100%; font-size: 9.5px; line-height: 11px; letter-spacing: .03em; color: #606E7B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------------- transações: totais por categoria (apenas minhas) ---------------- */
.tx-cats { margin-top: 28px; }
.tx-cats:empty { display: none; }
.tcat__title { font-size: 13px; font-weight: var(--fw-bold); line-height: 20px; margin-bottom: 8px; }
.tcat__title span { font-weight: 400; color: #8A8A8A; }
.tcat + .tcat { margin-top: 18px; }
.tcat__head { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--fs-body); color: #6F6F6F; text-transform: uppercase; letter-spacing: var(--track-caps); padding-bottom: 4px; }
.tcat__head b { color: var(--ink); text-transform: none; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.tcat__row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 10px; row-gap: 5px; align-items: center; padding: 8px 0; }
.tcat__row + .tcat__row { border-top: 1px solid var(--slate-100); }
.tcat__ic { grid-row: 1 / 3; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--cc); color: #fff; }
.tcat__ic .ic { width: 17px; height: 17px; }
.tcat__name { font-size: 13px; font-weight: var(--fw-semibold); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tcat__v { font-size: 13px; font-weight: var(--fw-semibold); text-align: right; font-variant-numeric: tabular-nums; }
.tcat__bar { height: 5px; border-radius: 3px; background: var(--slate-100); overflow: hidden; }
.tcat__bar span { display: block; height: 100%; width: calc(var(--p) * 100%); border-radius: inherit; background: var(--cc); }
.tcat__pct { font-size: 11px; color: #8A8A8A; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------------- notificações: sino, página e aviso de 5s ---------------- */
.top__acts { display: flex; align-items: center; gap: 2px; }
.icon-btn--bell { position: relative; margin-right: 0; }
.nbadge[hidden], .nbanner[hidden] { display: none; }
.nbadge { position: absolute; top: 5px; right: 4px; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 8px; display: grid; place-items: center; background: #E5484D; color: #fff; font-size: 9px; font-weight: var(--fw-bold); line-height: 1; box-shadow: 0 0 0 2px var(--header-top); }
.nhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: var(--fs-body); color: var(--ink-3); text-transform: uppercase; letter-spacing: var(--track-caps); }
.nclear { padding: 6px 0 6px 10px; margin: -6px 0; font-size: 12px; font-weight: var(--fw-bold); color: var(--blue-500); text-transform: none; letter-spacing: 0; }
.nlist { padding: 4px 6px; }
.nlist > li + li { border-top: 1px solid var(--slate-100); }
.nitem { width: 100%; display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 11px; align-items: start; padding: 11px 8px; text-align: left; border-radius: 10px; transition: background-color var(--dur-fast); }
.nitem:active { background: var(--slate-50); }
.nitem__ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--nc); color: #fff; }
.nitem__ic .ic { width: 18px; height: 18px; }
.nitem__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.nitem__text b { font-size: 12.5px; line-height: 16px; font-weight: var(--fw-bold); color: var(--ink); }
.nitem__text span { font-size: 11.5px; line-height: 15px; color: var(--ink-3); }
.nitem__text small { font-size: 10px; line-height: 12px; color: var(--ink-4); text-transform: uppercase; letter-spacing: var(--track-caps); }
.nitem.is-new .nitem__text b::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 6px; border-radius: 50%; background: #E5484D; vertical-align: 1px; }
.nempty { padding: 40px 24px; text-align: center; }
.nempty__ic { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: var(--slate-50); color: var(--slate-500); }
.nempty__ic .ic { width: 24px; height: 24px; }
.nempty__title { font-size: 13px; font-weight: var(--fw-bold); color: var(--ink); }
.nempty__text { margin-top: 6px; font-size: 11.5px; line-height: 16px; color: var(--ink-4); }
.nbanner {
  position: fixed; z-index: 80; top: calc(12px + env(safe-area-inset-top)); left: 50%;
  width: calc(min(100vw, var(--app-max)) - 2 * 12px);
  display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; column-gap: 11px; align-items: center;
  padding: 11px 14px; border-radius: 18px; text-align: left;
  background: rgb(255 255 255 / .86); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid rgb(225 230 240 / .9); box-shadow: 0 14px 34px -12px rgb(5 45 123 / .32);
  transform: translate(-50%, calc(-100% - 24px)); opacity: 0;
  transition: transform 360ms var(--ease-out), opacity 240ms var(--ease-out);
}
.nbanner.is-shown { transform: translate(-50%, 0); opacity: 1; }
.nbanner .nitem__text span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nbanner small { align-self: start; font-size: 10px; color: var(--ink-4); }
@media (prefers-reduced-motion: reduce) { .nbanner { transition: opacity 120ms linear; } }

/* ==========================================================================
   CONTAS e PESSOAS — mesmo modelo dos cartões (visão geral + página)
   ========================================================================== */
/* linha de apoio no lugar do Minhas/Todas (contas e pessoas não filtram) */
.hero--ov .ov__info { top: 197px; right: 110px; font-size: 12px; line-height: 16px; color: var(--t-label); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-sub__head { display: flex; align-items: center; justify-content: space-between; height: 27px; padding-bottom: 7px; }
.ov-people--first { margin-top: 30px; }

/* barras: complemento do valor (meta, conta, crédito) */
.bxs__of { margin-left: 2px; font-size: 11px; color: var(--ink-4); }
.box__yield { font-size: 11px; color: var(--green-700); }
.bxs__body { padding: 6px 0 14px; }
.bpp__row--go { grid-template-columns: 47px minmax(0, 1fr) 14px; }
.bpp__go { width: 14px; height: 14px; color: var(--ink-4); stroke-width: 2.4; }
.ppl-rows__v.is-paid { color: var(--green-700); font-weight: var(--fw-semibold); }
.ppl-rows__v.is-none { color: var(--ink-4); font-size: 12.5px; }

/* página da conta / pessoa: a barra fica logo abaixo do cabeçalho */
.bill-ctrl--top { margin-top: 12px; }
.bill__badge[data-status="partial"] { background: #C2571A; }

/* entradas × saídas (no lugar do limite) */
.lim__net { font-size: 12.5px; font-weight: var(--fw-bold); color: var(--green-700); font-variant-numeric: tabular-nums; }
.lim--flow.is-neg .lim__net { color: #B3261E; }
.lim--flow .lim__bar { background: #F7CFD1; }
.lim--flow .lim__bar > span { background: linear-gradient(90deg, #3F8F37, #6DC769); }
.lim--flow .lim__k, .lim--flow b { color: var(--green-700); }
.lim--flow .lim__k i { background: #4FA548; }
.lim--flow .lim__free .lim__k, .lim--flow .lim__free b { color: #B3261E; }
.lim--flow .lim__free .lim__k i { background: #E5484D; }

/* pago × pendente + crédito */
.lim--pay .lim__bar > span { background: linear-gradient(90deg, #3F8F37, #6DC769); }
.lim--pay .lim__foot > span:first-child .lim__k, .lim--pay .lim__foot > span:first-child b { color: var(--green-700); }
.lim--pay .lim__foot > span:first-child .lim__k i { background: #4FA548; }
.lim__credit { font-variant-numeric: tabular-nums; }
.lim__credit.is-pos { color: var(--green-700); }

/* compras da pessoa (estilo da fatura): ícone, texto, parcela, valor, check */
.pbuys--bill { padding: 0; }
.pbuy--bill { grid-template-columns: 34px minmax(0, 1fr) auto auto 40px; column-gap: 9px; min-height: 52px; }
.pbuy--bill + .pbuy--bill { border-top: 1px solid var(--slate-100); }
.pbuy__ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #F3F3F3; color: #2A2A2A; }
.pbuy__ic .ic { width: 17px; height: 17px; }
.pbuy--bill .pbuy__title { font-size: 12.5px; font-weight: var(--fw-semibold); }
.pbuy--bill .pbuy__meta { font-size: 10.5px; color: #6A6A6A; }
.pbuy__inst { align-self: center; }
.pbuy--bill .pbuy__edit { grid-column: 2 / -1; }

/* por forma de pagamento */
.pbym2 { margin-top: 8px; }
.pbym2 li { display: grid; grid-template-columns: minmax(0, 1fr) auto; row-gap: 5px; padding: 6px 0; }
.pbym2__name { font-size: 12.5px; font-weight: var(--fw-semibold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pbym2__name small { font-weight: var(--fw-regular); color: var(--ink-4); }
.pbym2__v { font-size: 12.5px; font-weight: var(--fw-semibold); text-align: right; font-variant-numeric: tabular-nums; }
.pbym2__bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--slate-100); overflow: hidden; }
.pbym2__bar > span { display: block; height: 100%; width: calc(var(--p) * 100%); border-radius: inherit; background: var(--mc); }
.pwallet__lead { margin: 0; white-space: normal; }
#pWallet .pwallet { margin-top: 4px; }

/* popup: pessoa (avatar ao lado do nome) e opções em 3 colunas (nunca sobra uma sozinha) */
.pform { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 12px; align-items: center; }
.pay--fit .pay__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pay--fit .pay__opt { height: 28px; padding: 0 6px; font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; }
.pform__photo { margin-top: 10px; }
.pform__photo .ccopy__act { padding: 0 12px; }
.pform__icons { margin-top: 10px; }
.sh-pill { margin-top: 16px; }
.sh-pill__hint { margin-top: 6px; }
/* cobrança: o seletor Clara/Escura ganha a mesma largura do botão (o texto não encosta no ícone) */
.page--bill .pshare { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.page--bill .pshare__seg .set-seg__opt { gap: 5px; padding: 0 6px; font-size: 11.5px; }
.page--bill .pshare__seg { grid-template-columns: 1fr 1fr; }
/* 8 ícones numa linha (pessoa e caixinha): colunas iguais, nunca sobra um sozinho */
.pform__icons, .bxs__body .gicons { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; }
.pform__icons .gicon, .bxs__body .gicons .gicon { width: 100%; height: auto; aspect-ratio: 1; max-width: 40px; justify-self: center; }

/* Contas (visão geral): cabeçalho mais baixo — as carteiras e o título presos usam essa altura */
.page--ov[data-page="wallet"] { --header-h-ov: var(--header-h-acc); }

/* página da conta: métricas */
.amx__sec--first { margin-top: 22px; }
.amx__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.amx__rd { font-size: 11px; color: var(--ink-4); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.amx__kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.amx__kpi { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 11px 12px; border-radius: 14px; background: var(--t-tile); }
.amx__k { font-size: 11px; color: var(--t-label); }
.amx__kpi b { font-size: 16px; line-height: 20px; font-weight: var(--fw-bold); color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.amx__kpi b.is-pos { color: var(--green-700); }
.amx__kpi b.is-neg { color: #B3261E; }
.amx__kpi small { font-size: 10.5px; color: var(--ink-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.amx__card { padding: 14px var(--inset); }
.amx__chart { position: relative; }
/* linha */
.amx__line { height: 120px; }
.amx__line svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.amx__stroke { fill: none; stroke: var(--t-line); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.amx__zero { stroke: var(--slate-300); stroke-width: 1; stroke-dasharray: 3 4; }
.amx__pt { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--t-line); box-shadow: 0 0 0 2px var(--surface); pointer-events: none; }
.amx__pt.is-min { background: #E5484D; }
.amx__pt.is-end { width: 10px; height: 10px; margin: -5px 0 0 -5px; background: var(--surface); box-shadow: 0 0 0 2.5px var(--t-line); }
.amx__hits { position: absolute; inset: 0; display: flex; }
.amx__hit { flex: 1; min-width: 0; height: 100%; border-radius: 4px; }
.amx__hit.is-sel { background: linear-gradient(to right, transparent calc(50% - 1px), var(--slate-300) calc(50% - 1px), var(--slate-300) calc(50% + 1px), transparent calc(50% + 1px)); }
.amx__axis { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 10px; color: var(--ink-4); font-variant-numeric: tabular-nums; }
/* categorias */
.amx__cats li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto 34px; column-gap: 8px; row-gap: 5px; align-items: center; padding: 6px 0; cursor: default; }
.amx__cdot { width: 10px; height: 10px; border-radius: 50%; background: var(--cc); }
.amx__cname { font-size: 12.5px; font-weight: var(--fw-semibold); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.amx__cval { font-size: 12.5px; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.amx__cpct { font-size: 11px; color: var(--ink-4); text-align: right; font-variant-numeric: tabular-nums; }
.amx__cbar { grid-column: 2 / -1; height: 6px; border-radius: 3px; background: var(--slate-100); overflow: hidden; }
.amx__cbar > span { display: block; height: 100%; width: calc(var(--p) * 100%); border-radius: inherit; background: var(--cc); }
/* barras (6 meses e dia da semana) */
.amx__legend { display: flex; gap: 14px; margin-bottom: 10px; font-size: 11px; color: var(--ink-3); }
.amx__legend i { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 2px; vertical-align: 0; }
.amx__legend .is-in i, .amx__b.is-in { background: #4FA548; }
.amx__legend .is-out i, .amx__b.is-out { background: #E5484D; }
.amx__bars { display: flex; align-items: stretch; gap: 6px; height: 130px; }
.amx__col { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; border-radius: 8px; padding-top: 16px; }
.amx__pair { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.amx__b { width: min(14px, 40%); height: calc(var(--p) * 100%); min-height: 2px; border-radius: 4px 4px 0 0; background: var(--t-line); transition: height var(--dur-slow) var(--ease-out); }
.amx__bars:not(.amx__bars--pair) .amx__b { width: min(22px, 70%); opacity: .55; }
.amx__col.is-top .amx__b { opacity: 1; }
.amx__lab { font-size: 10px; font-weight: var(--fw-semibold); color: var(--ink-4); }
.amx__col.is-on .amx__lab { color: var(--ink); }
.amx__top { position: absolute; top: 0; font-size: 10px; font-weight: var(--fw-bold); color: var(--ink); white-space: nowrap; }
.amx__col.is-sel { background: var(--slate-50); }
.acc-txhead { margin-top: 26px; }



/* ==========================================================================
   CONTAS — lista (como as pessoas) + caixinhas desenhadas como caixas
   ========================================================================== */
/* popup da pessoa: ícones grandes (6 por linha) e 16 cores (8 por linha) */
.pform__icons { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.pform__ic { aspect-ratio: 1; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--goal) 10%, var(--mix-base)); color: var(--goal); transition: transform var(--dur-instant) var(--ease-out), background-color var(--dur-fast), box-shadow var(--dur-fast); }
.pform__ic .ic { width: 26px; height: 26px; }
.pform__ic.is-on { background: var(--goal); color: #fff; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--goal); }
.pform__colors .gcol--fit { grid-template-columns: repeat(8, minmax(0, 1fr)); row-gap: 10px; }

/* ==========================================================================
   CABEÇALHO: card abaixo do gráfico — cinza, recolhido por padrão (título + resumo + barra fina);
   tocar expande (o cabeçalho cresce 48px) e mostra o detalhe e o botão. Só barra e botão têm cor.
   ========================================================================== */
.hero--bill .bill__limit { height: auto; }
.lim { height: 48px; padding: 0 16px; border-radius: 14px; background: var(--slate-50); overflow: hidden; transition: height 300ms var(--ease-out); contain: layout paint; }
.lim.is-open { height: 96px; }
.lim--edit { height: 96px; padding: 0 16px; }
.lim__head { height: 34px; gap: 10px; }
.lim__toggle { flex: 1; min-width: 0; height: 34px; display: flex; align-items: center; gap: 8px; text-align: left; color: var(--ink); }
.lim__toggle .lim__title { flex: none; }
.lim__sum { flex: 1; min-width: 0; text-align: right; font-size: 12px; font-weight: var(--fw-semibold); color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; transition: opacity var(--dur-fast); }
.lim.is-open .lim__sum { opacity: 0; }
.lim__chev { flex: none; width: 13px; height: 13px; stroke-width: 2.6; color: var(--ink-4); transform: rotate(90deg); transition: transform 300ms var(--ease-out); }
.lim.is-open .lim__chev { transform: rotate(-90deg); }
.lim .lim__bar { height: 6px; margin-top: 0; transition: height 300ms var(--ease-out); }
.lim.is-open .lim__bar { height: 10px; }
.lim__more { opacity: 0; transform: translateY(-4px); transition: opacity 200ms var(--ease-out), transform 300ms var(--ease-out); }
.lim.is-open .lim__more { opacity: 1; transform: none; }
.lim .lim__foot { margin-top: 6px; }
.lim .lim__k { color: var(--ink-3); }
.lim .lim__foot b { color: var(--ink); }
.lim .lim__adj { flex: none; color: var(--t-accent); }
.lim .lim__k i { background: var(--t-uval); }
.lim .lim__free .lim__k i { background: var(--t-free); }
.lim--flow .lim__k i { background: #4FA548; }
.lim--flow .lim__free .lim__k i { background: #E5484D; }
.lim--pay .lim__foot > span:first-child .lim__k i { background: #4FA548; }
.lim--pay .lim__mine .lim__k i { width: 7px; height: 7px; border-radius: 50%; background: var(--t-accent); opacity: 1; }
.lim .lim__net { font-size: 12px; }

/* ---------------- gráfico de meses se construindo ao abrir a página ----------------
   o traço "desenha" bloco a bloco (recorte da esquerda para a direita), a área sobe e os pontos aparecem.
   Só transform/opacity/clip-path (compositor). */
.mt.is-building .mt__svg { clip-path: inset(0 100% 0 0); animation: mt-wipe 140ms linear forwards; animation-delay: calc(var(--i, 0) * 110ms + 40ms); }
.mt.is-building .mt__area { transform-box: fill-box; transform-origin: 50% 100%; animation: mt-rise 380ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 110ms); }
.mt.is-building .mt__dot { animation: mt-pop 300ms var(--ease-spring) both; animation-delay: calc(var(--i, 0) * 110ms + 150ms); }
.mt.is-building .mt__m, .mt.is-building .mt__v { animation: mt-fade 300ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 110ms + 60ms); }
@keyframes mt-wipe { to { clip-path: inset(0 0 0 0); } }
@keyframes mt-rise { from { transform: scaleY(.15); opacity: 0; } }
@keyframes mt-pop { from { transform: scale(0); } }
@keyframes mt-fade { from { opacity: 0; transform: translateY(4px); } }

/* ---------------- cartões chegando da direita ao abrir a página ---------------- */
.wallet.is-arriving .wcard, .is-arriving .wlist > li, .is-arriving .bxg > li { animation: card-in 560ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms + 60ms); }
@keyframes card-in { from { transform: translate3d(72px, 0, 0); opacity: 0; } }

/* ---------------- visão geral: faturas pagas (abaixo do gráfico) ---------------- */
.page--ov[data-page="cards"] { --header-h-ov: var(--header-h-cards-min); }
.hero--ov .ov__paid { top: 356px; right: var(--gutter); pointer-events: none; }
.ovp__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ovp__k { font-size: 12px; font-weight: var(--fw-semibold); color: var(--t-label); }
.ovp__v { font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ovp__v b { color: var(--ink); font-weight: var(--fw-bold); }
.ovp__bar { display: block; height: 8px; margin-top: 6px; border-radius: 999px; background: var(--t-free); overflow: hidden; }
.ovp__bar > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--t-used0), var(--t-used1)); transform-origin: left center; transform: scaleX(var(--p)); transition: transform 900ms var(--ease-out); will-change: transform; }

/* ---------------- botão de visão + cartões em lista ---------------- */
.ov-cards__acts { display: inline-flex; align-items: center; gap: 4px; }
.ov-view { width: 32px; height: 32px; margin: -6px 0; border-radius: 50%; display: grid; place-items: center; color: var(--ink); transition: background-color var(--dur-fast), transform var(--dur-instant) var(--ease-out); }
.ov-view .ic { width: 18px; height: 18px; }
@media (hover: hover) { .ov-view:hover { background: var(--slate-50); } }
.wlist { display: flex; flex-direction: column; gap: 4px; }
.wlist__row { width: calc(100% + 16px); margin-inline: -8px; padding: 8px; display: grid; grid-template-columns: 58px minmax(0, 1fr) auto 14px; column-gap: 12px; align-items: center; text-align: left; border-radius: 14px; transition: background-color var(--dur-fast); }
@media (hover: hover) { .wlist__row:hover { background: var(--slate-50); } }
.wlist__row:active { background: var(--slate-50); }
.wlist__mini { position: relative; width: 58px; height: 38px; padding: 0; border-radius: 7px; }
.wlist__brand { position: absolute; right: 5px; top: 4px; }
.wlist__brand .brand { width: 22px !important; height: 13px !important; }
.wlist__last { position: absolute; left: 6px; bottom: 4px; font-size: 9px; font-weight: var(--fw-bold); letter-spacing: .06em; color: #fff; }
.wlist__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wlist__name { font-size: 13.5px; font-weight: var(--fw-bold); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wlist__st { font-size: 11px; color: var(--ink-3); }
.wlist__st[data-status="paid"] { color: var(--green-700); }
.wlist__st[data-status="overdue"] { color: #B3261E; }
.wlist__v { font-size: 14px; font-weight: var(--fw-semibold); color: var(--ink); font-variant-numeric: tabular-nums; }
.wallet--list { padding-bottom: 0; }

/* ---------------- performance: animações só no compositor; pintura isolada ---------------- */
.mt__tile, .bpp__item, .wlist__row { contain: layout paint; }
.tx-all .tx-list { content-visibility: auto; contain-intrinsic-size: auto 300px; }
/* content-visibility corta o que passa da borda da lista: o fundo do checkpoint (que passa 12px da margem) precisa dessa folga */
.tx-all .tx-list { overflow-clip-margin: 14px; }
.tx-all .tx-list:has(.tx--cp) { content-visibility: visible; }
@media (prefers-reduced-motion: reduce) {
  .mt.is-building *, .wallet.is-arriving * { animation: none !important; clip-path: none !important; }
}
.lim:not(.is-open) .lim__adj { display: none; }

/* ==========================================================================
   CONTAS e CAIXINHAS em lista (mesmo desenho da lista de cartões) + página da caixinha
   ========================================================================== */
.wlist__v.is-neg { color: #B3261E; }
.ov-people .wallet { padding-bottom: 0; }

.hero--box .boxh__edit { left: auto; right: calc(var(--gutter) - 6px); top: 137px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); pointer-events: auto; transition: background-color var(--dur-fast), transform var(--dur-instant) var(--ease-out); }
.hero--box .boxh__edit .ic { width: 22px; height: 22px; stroke-width: 1.9; }
.hero--box .ov__info { right: var(--gutter); }
.bxp__acts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.bxp__act { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 4px 0; font-size: 11.5px; font-weight: var(--fw-semibold); color: var(--ink); -webkit-tap-highlight-color: transparent; }
.bxp__act:disabled { opacity: .4; }
.bxp__actic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--box-c) 12%, var(--mix-base)); color: var(--box-c); transition: background-color var(--dur-fast), color var(--dur-fast), transform var(--dur-instant) var(--ease-out); }
.bxp__actic .ic { width: 22px; height: 22px; }
.bxp__act.is-on .bxp__actic { background: var(--box-c); color: #fff; }
.bxp__form { margin-top: 14px; padding: 14px 16px 16px; border-radius: 16px; background: var(--slate-50); }
.bxp__form .gopt__label:first-child { margin-top: 0; }
.bxp__in { font-size: 20px; height: 48px; }
.bxp__to { margin-bottom: 4px; }
.bxp__go { margin-top: 12px; }
.bxp__go:disabled { opacity: .45; }
.bxp__hist { margin-top: 26px; }

/* ---------------- Perfil: foto, nome e login ---------------- */
.pf__card { padding: var(--inset); }
.pf__top { display: flex; align-items: center; gap: 16px; }
.pf__av {
  position: relative; width: 84px; height: 84px; border-radius: 50%; flex: none; cursor: pointer;
  display: grid; place-items: center; background: var(--blue-500) center / cover no-repeat;
  color: #fff; font-size: 28px; font-weight: var(--fw-bold); letter-spacing: .02em;
}
.pf__av:focus-within, .pf__av:focus-visible { outline: 2px solid var(--blue-200); outline-offset: 3px; }
.pf__cam {
  position: absolute; right: -2px; bottom: -2px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface); color: var(--blue-500);
  box-shadow: 0 0 0 2px var(--surface), 0 2px 6px rgb(5 45 123 / .18);
}
.pf__cam .ic { width: 15px; height: 15px; }
.pf__acts { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.pf__btn {
  height: 34px; padding: 0 12px; border-radius: 10px; display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  font-size: 12.5px; font-weight: var(--fw-semibold); color: var(--blue-500);
  background: color-mix(in srgb, var(--blue-500) 10%, var(--mix-base)); transition: background-color var(--dur-fast);
}
.pf__btn .ic { width: 15px; height: 15px; }
.pf__btn:active { background: color-mix(in srgb, var(--blue-500) 18%, var(--mix-base)); }
.pf__btn--ghost { color: #B3261E; background: transparent; padding: 0 8px; margin-left: -8px; }
.pf__btn--ghost:active { background: color-mix(in srgb, #E5484D 10%, var(--mix-base)); }
.pf__card .gopt__label { margin-top: 16px; }
.pf__form { margin-top: 10px; }
.pf__row { margin-top: 10px; }
.pf__eye { display: inline-flex; align-items: center; gap: 6px; height: 28px; font-size: 12px; font-weight: var(--fw-semibold); color: var(--blue-500); }
.pf__eye .ic { width: 15px; height: 15px; }
.pf__err { margin-top: 8px; font-size: 12px; line-height: 1.35; color: #B3261E; }
.pf__go { display: flex; align-items: center; justify-content: center; gap: 8px; }
.pf__spin { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgb(255 255 255 / .35); border-top-color: #fff; animation: lgSpin 700ms linear infinite; }
.pf__go.is-busy .pf__spin { display: block; }
.pf__go.is-busy .ic { display: none; }
.pf__out { margin-top: 14px; }
.pf__user { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.set-row.is-open .set-row__chev { rotate: 90deg; }
.set-row__chev { transition: rotate var(--dur-fast) var(--ease-out); }

/* Transferir (página da conta): botão + formulário cinza do mesmo jeito das caixinhas */
.atr { margin-top: 22px; }
.atr__btn {
  width: 100%; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px; font-weight: var(--fw-semibold); color: var(--blue-500);
  background: color-mix(in srgb, var(--blue-500) 10%, var(--mix-base));
  transition: background-color var(--dur-fast), color var(--dur-fast);
}
.atr__btn .ic { width: 18px; height: 18px; }
.atr__btn--set, .atr__form + .atr__btn { margin-top: 8px; }
.atr__btn:active { background: color-mix(in srgb, var(--blue-500) 18%, var(--mix-base)); }
.atr__btn.is-on { background: var(--blue-500); color: var(--white); }
.atr__to { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; --cc: var(--blue-500); }
.atr__opt { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: var(--mix-base); }
.atr__opt[aria-selected="true"] { background: var(--cc); }
.atr__opt .ic { width: 14px; height: 14px; flex: none; }
.bxp__hist .ov-cards__title { margin-bottom: 6px; }
.bxh__row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; column-gap: 11px; align-items: center; min-height: 52px; }
.bxh__row + .bxh__row { border-top: 1px solid var(--slate-100); }
.bxh__ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--green-100); color: var(--green-700); }
.bxh__row.is-out .bxh__ic { background: #FDE8E9; color: #E5484D; }
.bxh__ic .ic { width: 18px; height: 18px; }
.bxh__t { display: flex; flex-direction: column; min-width: 0; }
.bxh__t b { font-size: 12.5px; font-weight: var(--fw-semibold); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bxh__t small { font-size: 10.5px; color: var(--ink-3); }
.bxh__v { font-size: 13px; font-weight: var(--fw-semibold); color: var(--green-700); font-variant-numeric: tabular-nums; }
.bxh__row.is-out .bxh__v { color: var(--ink); }
/* cartões: rolagem suficiente para o cabeçalho recolher por completo mesmo com poucos cartões
   (documento ≥ tela + (405 − 192); o palco soma 111px abaixo da página) */
.page--ov[data-page="cards"] { min-height: calc(100dvh + var(--header-h-cards) - var(--header-h-cards-min) - 111px); }
/* Pessoas: o gráfico recolhe com a rolagem → a página precisa ter altura para rolar até o mínimo */
.page--ov[data-page="people"] { min-height: calc(100dvh + var(--header-h-ov) - var(--header-h-cards-min) - 111px); }
.dock__item[data-page="home"] { touch-action: none; } /* deslizar para cima abre a sub-dock (não rola a página) */

/* ---------------- contas: a miniatura É a carteira (cor sólida, borda do bolso clara em cima, aba com fecho) ---------------- */
.wlist__wallet { position: relative; padding: 0; border-radius: 7px 7px 9px 9px; background: var(--wc); box-shadow: inset 0 5px 0 color-mix(in srgb, var(--wc) 72%, #fff); }
.wlist__wallet::before { content: ""; position: absolute; right: 0; top: 13px; width: 22px; height: 15px; border-radius: 6px 0 0 6px; background: color-mix(in srgb, var(--wc) 72%, #000); }
.wlist__wallet::after { content: ""; position: absolute; right: 7px; top: 18px; width: 5px; height: 5px; border-radius: 50%; background: #fff; }

/* ---------------- caixinhas em grade: só o ícone na cor da caixinha ---------------- */
.page--box { --box-c: var(--blue-500); }
.bxg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } /* sempre 2 por linha, crescendo para baixo */
.bxg__tile { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 10px 12px; border-radius: 16px; text-align: left; background: var(--surface); border: 1px solid var(--slate-100); transition: background-color var(--dur-fast), transform var(--dur-instant) var(--ease-out); }
@media (hover: hover) { .bxg__tile:hover { background: var(--slate-50); } }
.bxg__ic { color: var(--bc); margin-bottom: 6px; }
.bxg__ic .ic { width: 30px; height: 30px; stroke-width: 1.8; }
.bxg__name { max-width: 100%; font-size: 12px; line-height: 15px; font-weight: var(--fw-bold); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bxg__v { font-size: 13px; line-height: 17px; font-weight: var(--fw-semibold); color: var(--ink); font-variant-numeric: tabular-nums; }
.bxg__bar { display: block; width: 100%; height: 4px; margin-top: 6px; border-radius: 2px; background: var(--slate-100); overflow: hidden; }
.bxg__bar > span { display: block; height: 100%; border-radius: inherit; background: var(--bc); transform-origin: left center; transform: scaleX(var(--p)); }
.bxg__meta { margin-top: 3px; max-width: 100%; font-size: 10.5px; color: var(--ink-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ==========================================================================
   MICROINTERAÇÕES (js/interact.js) — padrões únicos para o app inteiro
   ========================================================================== */
/* seletores: o fundo da opção escolhida é UM elemento que desliza (não troca de lugar) */
.has-ind { position: relative; isolation: isolate; }
.seg-ind { position: absolute; left: 0; top: 0; z-index: 0; border-radius: 999px; pointer-events: none; will-change: transform; transition: opacity var(--dur-fast); }
.has-ind > .who__opt, .has-ind > .set-seg__opt { position: relative; z-index: 1; transition: color 220ms var(--ease-out); }
.has-ind > .who__opt[aria-checked="true"], .has-ind > .set-seg__opt[aria-checked="true"] { background: transparent !important; box-shadow: none !important; }
.who .seg-ind { background: var(--blue-500); }
.hero--ov .ov__who .seg-ind, .bill-ctrl .who .seg-ind { background: var(--t-accent); }
.set-seg .seg-ind { border-radius: 9px; background: var(--white); box-shadow: 0 1px 4px rgb(5 45 123 / .1); }

/* estados que trocam: cor, borda e fundo mudam sempre com transição (nada brusco) */
.pay__opt, .csub__opt, .chip, .gcol__opt, .pform__ic, .gicon, .icp__opt, .sort__opt, .bill-check__box, .cal__day, .who__opt, .set-seg__opt, .dock__item, .ov-view, .lim__adj {
  transition-property: background-color, color, border-color, box-shadow, opacity;
  transition-duration: 200ms; transition-timing-function: var(--ease-out);
}

/* modo de edição / formulários que abrem: entram com um leve deslize (continuidade, sem pulo) */
@keyframes enter-soft { from { opacity: 0; translate: 0 -6px; scale: .985; } }
.bxp__form, .pbuy__edit, .lim--edit .lim__row, .pwallet__form.is-open .pwallet__fields, .sh-confirm__msg:not(:empty) { animation: enter-soft 240ms var(--ease-out) both; }

/* foco por teclado: anel que aparece suave */
:focus-visible { transition: outline-offset 160ms var(--ease-out); }

/* reduzir movimento: tudo vira troca imediata (as animações em JS checam a mesma preferência) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}

/* entradas × saídas: trilho e números neutros — a cor fica só no preenchimento e nas bolinhas */
.lim--flow .lim__bar { background: var(--slate-100); }
.lim--flow .lim__net, .lim--flow.is-neg .lim__net { color: var(--ink-3); }
.lim--flow .lim__k, .lim--flow .lim__free .lim__k { color: var(--ink-3); }
.lim--flow b, .lim--flow .lim__free b { color: var(--ink); }

/* ---------------- gastos por categoria: recolhido (título, total e a divisão); tocar abre ---------------- */
.tx-cats { margin-top: 18px; }
.tcx { overflow: hidden; }
.tcx__head { margin: 0 -8px; width: calc(100% + 16px); border-radius: 12px; transition: background-color var(--dur-fast); }
@media (hover: hover) { .tcx__head:hover { background: var(--slate-50); } }
.tcx__head { display: grid; grid-template-columns: minmax(0, 1fr) auto 16px; align-items: center; column-gap: 8px; row-gap: 8px; padding: 8px; text-align: left; }
.tcx__t { font-size: 12.5px; font-weight: var(--fw-bold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcx__t small { font-weight: var(--fw-regular); color: var(--ink-4); }
.tcx__v { font-size: 12.5px; font-variant-numeric: tabular-nums; }
.tcx__chev { width: 14px; height: 14px; stroke-width: 2.4; color: var(--ink-4); transform: rotate(90deg); transition: transform 260ms var(--ease-out); }
.tcx.is-open .tcx__chev { transform: rotate(-90deg); }
.tcx__mix { grid-column: 1 / -1; display: flex; gap: 2px; height: 6px; border-radius: 3px; overflow: hidden; }
.tcx__mix i { display: block; min-width: 3px; background: var(--mc); }
.tcx__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 300ms var(--ease-out); }
.tcx.is-open .tcx__body { grid-template-rows: 1fr; }
.tcx__inner { min-height: 0; overflow: hidden; }
.tcx__inner::after { content: ""; display: block; height: 8px; }
.tcx .pbym2 { margin-top: 0; }
.tcx__sub { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--slate-100); font-size: 11px; text-transform: uppercase; letter-spacing: .02em; color: var(--ink-3); }
.tcx__sub b { text-transform: none; letter-spacing: 0; color: var(--ink); font-variant-numeric: tabular-nums; }
.tcx__none { padding: 4px 0; font-size: 12px; color: var(--ink-4); }

/* ---------------- checkpoint: o saldo fixado naquele momento (amarelo) ---------------- */
/* fica numa linha própria entre "Ordenar por" e a lista, alinhado à esquerda */
.sort__cp { margin-top: 14px; display: flex; }
.page--tx .section--sort + .section--txall { margin-top: 12px; }
.sort__cp .cp-add:active { background: #FCE9A4; }
.sort__cp .cp-add { height: 26px; padding: 0 10px; border-radius: 8px; display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: var(--fw-semibold); color: #6B5200; background: #FFF3C4; transition: background-color var(--dur-fast); }
.sort__cp .cp-add .ic { width: 13px; height: 13px; }
/* o amarelo é um cartão com folga (3px em cima/embaixo, cantos visíveis), como o fundo de toque; não encosta nas linhas */
/* conteúdo no mesmo lugar das outras linhas; o fundo amarelo passa 12px da margem da lista
   (a linha do checkpoint não arrasta, então não precisa cortar o que passa dela) */
.tx.tx--cp { overflow: visible; }
.tx--cp .tx__inner { cursor: default; background: transparent; grid-template-columns: var(--icon-disc) minmax(0, 1fr) auto 28px; }
.tx--cp .tx__inner::before { opacity: 1; inset: 3px -6px; border-radius: 12px; background: #FFF7DB; }
/* sem linhas cinzas em volta do checkpoint: a de cima (da própria linha), a de baixo (da próxima) e a do dia seguinte */
.tx + .tx.tx--cp::after, .tx.tx--cp + .tx::after { display: none; }
.tx-list:has(> .tx--cp:last-child) + .tx-group { border-top-color: transparent; }
/* Transações: a linha fica EMBAIXO de cada item → some a da transação de cima e a do próprio checkpoint;
   a da transação de baixo continua (separa ela da seguinte) */
.tx-all .tx:has(+ .tx--cp)::after, .tx-all .tx.tx--cp::after { display: none; }
.tx-all .tx.tx--cp + .tx::after { display: block; }
.tx--cp .tx__icon { background: #F5C842; color: #5A4300; }
.tx--cp .tx__title, .tx--cp .tx__amount { color: #5A4300; }
.tx--cp .tx__meta { color: #9A7A1A; }
.cp__del { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: #9A7A1A; transition: background-color var(--dur-fast), color var(--dur-fast); }
.cp__del .ic { width: 14px; height: 14px; }
.cp__del.is-confirm { background: #E5484D; color: #fff; }

/* ---------------- período: botão colado ao seletor de mês + painel de/até ---------------- */
.mp__period { position: absolute; bottom: 0; left: calc(50% + var(--mp-w) / 2 + 8px); width: var(--mp-h); height: var(--mp-h); border-radius: 50%; display: grid; place-items: center; background: var(--blue-500); color: #fff; box-shadow: 0 10px 22px -12px var(--blue-500); transition: opacity var(--dur-fast), transform var(--dur-base) var(--ease-out), background-color var(--dur-fast); }
.mp__period .ic { width: 19px; height: 19px; }
.mp .mp__period.is-on { background: #fff; color: var(--blue-500); box-shadow: 0 0 0 2px var(--blue-500), 0 10px 22px -12px var(--blue-500); }
.mp[data-open="true"] .mp__period { opacity: 0; transform: scale(.8); pointer-events: none; }
.dper { position: fixed; z-index: 72; width: 320px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--slate-100); box-shadow: 0 20px 44px -18px rgb(5 25 60 / .38); }
.dper.is-sheet { left: 21px; right: 21px; width: auto; bottom: calc(var(--dock-bottom) + var(--dock-h) + 80px + env(safe-area-inset-bottom)); }
.dper__t { margin-bottom: 10px; font-size: 14px; font-weight: var(--fw-bold); }
.dper__quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 14px; }
.dper__quick button { height: 30px; border-radius: 8px; font-size: 11.5px; font-weight: var(--fw-semibold); color: var(--ink-2); background: var(--slate-50); border: 1px solid var(--slate-100); transition: border-color var(--dur-fast); }
.dper__quick button:hover { border-color: var(--slate-300); }
.dper__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.dper__k { display: block; margin-bottom: 6px; font-size: 11px; color: var(--ink-3); }
.dper__d { width: 100%; height: 38px; padding: 0 10px; border-radius: 10px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink); background: var(--surface); border: 1px solid var(--slate-100); transition: border-color var(--dur-fast); }
.dper__d:hover { border-color: var(--slate-300); }
.dper__d .ic { width: 15px; height: 15px; color: var(--ink-3); }
.dper__acts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin-top: 14px; }
.dper__btn { height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: var(--fw-semibold); color: var(--ink); background: var(--slate-50); border: 1px solid var(--slate-100); }
.dper__btn .ic { width: 15px; height: 15px; }
.dper__btn.is-primary { background: var(--blue-500); border-color: var(--blue-500); color: #fff; }

/* ---------------- segurar uma transação: o saldo naquele momento ---------------- */
.balpop { position: fixed; z-index: 80; max-width: 260px; padding: 10px 14px; border-radius: 14px; display: flex; flex-direction: column; gap: 2px; color: #fff; background: rgb(10 22 48 / .94); box-shadow: 0 16px 34px -14px rgb(0 0 0 / .5); pointer-events: none; }
.balpop small { font-size: 10.5px; opacity: .7; }
.balpop b { font-size: 20px; line-height: 26px; font-variant-numeric: tabular-nums; }
.balpop.is-neg b { color: #FF9A9E; }
.balpop span { font-size: 11px; opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------------- pessoas: arrastar para a esquerda revela "Excluir pessoa" ---------------- */
.ppl-rows .bpp__item { position: relative; overflow: hidden; border-radius: 14px; }
.bpp__under { position: absolute; inset: 0; display: flex; align-items: center; justify-content: flex-end; padding-right: 2px; }
.bpp__item:not(.is-swiping):not(.is-open) .bpp__under { visibility: hidden; }
.bpp__del { height: calc(100% - 10px); padding: 0 14px; border-radius: 12px; display: inline-flex; align-items: center; gap: 6px; background: #E5484D; color: #fff; font-size: 12px; font-weight: var(--fw-semibold); }
.bpp__del .ic { width: 15px; height: 15px; }
.ppl-rows .bpp__row { position: relative; z-index: 1; background: var(--bg); touch-action: pan-y; }

/* ---------------- conta em espécie: notas e moedas ---------------- */
.cashc__tot { font-size: 15px; font-variant-numeric: tabular-nums; }
.cashc__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
.cashc__it { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; border-radius: 12px; background: var(--slate-50); border: 1px solid var(--slate-100); transition: border-color var(--dur-fast), background-color var(--dur-fast); }
.cashc__it.is-on { border-color: color-mix(in srgb, #B0893A 45%, transparent); background: color-mix(in srgb, #B0893A 8%, var(--mix-base)); }
.cashc__face { display: grid; place-items: center; font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; }
.cashc__face.is-note { min-width: 58px; height: 26px; padding: 0 8px; border-radius: 6px; font-size: 12px; background: #E3EFE0; color: #2F6B28; }
.cashc__face.is-coin { width: 34px; height: 34px; border-radius: 50%; font-size: 10px; background: radial-gradient(circle at 35% 30%, #F6E3A8, #D9B65C); color: #5A4300; }
.cashc__step { display: flex; align-items: center; gap: 8px; }
.cashc__step button { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 16px; font-weight: var(--fw-semibold); color: var(--ink); background: var(--surface); border: 1px solid var(--slate-100); }
.cashc__step button:disabled { opacity: .4; }
.cashc__step b { min-width: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.cashc__it small { font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.cashc__diff { margin-top: 10px; font-size: 12px; color: var(--ink-3); }

/* ---------------- estorno, configurações perigosas ---------------- */
.addpop__ic--refund { background: color-mix(in srgb, var(--green-500) 18%, var(--mix-base)); color: var(--green-700); }
.set-row--danger .set-row__ic, .set-row--danger .set-row__title { color: #D93B40; }
.set-row--danger.is-confirm { background: #FDE8E9; }
.set-row--warn .set-row__aside { color: #B4561C; font-weight: var(--fw-bold); }

/* ---------------- login (site publicado) ---------------- */
html.is-login, html.is-login body { overflow: hidden; }
.login { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 24px var(--gutter); overflow-y: auto;
  background: linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--blue-500) 10%, var(--bg)) 100%); }
.login__card { width: min(100%, 380px); display: flex; flex-direction: column; padding: 28px 24px 22px; border-radius: 24px; background: var(--surface); border: 1px solid var(--slate-100); box-shadow: 0 30px 70px -40px rgb(5 45 123 / .45); }
.login__mark { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--blue-500); color: #fff; box-shadow: 0 12px 24px -12px var(--blue-500); }
.login__mark .ic { width: 26px; height: 26px; }
.login__t { margin-top: 18px; font-size: 26px; line-height: 32px; font-weight: var(--fw-bold); letter-spacing: -.02em; }
.login__s { margin-top: 6px; font-size: 13px; line-height: 19px; color: var(--ink-3); }
.login__lab { margin-top: 14px; margin-bottom: 6px; font-size: 12px; font-weight: var(--fw-semibold); color: var(--ink-2); }
.login__s + .login__lab { margin-top: 22px; }
.login__in { width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--slate-100); background: var(--bg); color: var(--ink); font: inherit; font-size: 15px; outline: none; transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
.login__in:focus { border-color: var(--blue-200); box-shadow: 0 0 0 3px rgb(156 184 240 / .28); }
.login__pw { position: relative; display: block; }
.login__pw .login__in { padding-right: 48px; }
.login__eye { position: absolute; right: 4px; top: 4px; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: var(--ink-3); transition: background-color var(--dur-fast), color var(--dur-fast); }
.login__eye:hover { background: var(--slate-50); color: var(--ink); }
.login__eye[aria-pressed="true"] { color: var(--blue-500); }
.login__eye .ic { width: 18px; height: 18px; }
.login__err { margin-top: 12px; padding: 10px 12px; border-radius: 10px; font-size: 12.5px; line-height: 17px; color: #B3261E; background: #FDE8E9; }
.login__err[hidden] { display: none; }
.login__go { position: relative; height: 48px; margin-top: 20px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--blue-500); color: #fff; font-size: 15px; font-weight: var(--fw-semibold); box-shadow: 0 12px 24px -14px var(--blue-500); transition: background-color var(--dur-fast), opacity var(--dur-fast); }
.login__go:hover { background: color-mix(in srgb, var(--blue-500) 86%, #000); }
.login__go:disabled { cursor: progress; }
.login__spin { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgb(255 255 255 / .35); border-top-color: #fff; animation: lgSpin 700ms linear infinite; }
.is-busy .login__spin { display: block; }
@keyframes lgSpin { to { transform: rotate(1turn); } }
.login__name { display: flex; flex-direction: column; }
.login__name[hidden] { display: none; }
.login__code { display: flex; flex-direction: column; animation: enter-soft 240ms var(--ease-out) both; }
.login__code[hidden] { display: none; }
.login__code + .login__lab { margin-top: 14px; }
.login__code .login__in { letter-spacing: .12em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.login__s + .login__name > .login__lab, .login__s + .login__name[hidden] + .login__lab { margin-top: 22px; }
.login__switch { margin-top: 14px; text-align: center; font-size: 13px; color: var(--ink-3); }
.login__link { padding: 6px 4px; margin: -6px -4px; border-radius: 8px; color: var(--blue-500); font-weight: var(--fw-semibold); font-size: 13px; transition: background-color var(--dur-fast); }
.login__link:hover { background: var(--slate-50); }
.login__link:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 2px; }
.login__foot { margin-top: 16px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 11.5px; color: var(--ink-4); }
.login__foot .ic { width: 14px; height: 14px; }

/* ==========================================================================
   DESKTOP (≥1024px) — não é o celular esticado.
   [menu único, claro e fosco, que recolhe em trilho] [ÁREA PRINCIPAL que rola sozinha]
   A área principal é uma grade: barra fixa (caminho, ações, atalhos) → título → meses (os blocos
   do celular, mais largos) → indicadores → lista/conteúdo. Cada página arruma essas peças do seu jeito.
   Formas: controles = retângulos de canto 10–12px; blocos = 20px. Pílula/círculo só em avatar e bolinha.
   ========================================================================== */
.desk, .dh, .ws, .dframe, .addpop__desk, .dsk-only { display: none; }

/* lista própria do dropdown (vale em qualquer largura) */
.dd-native { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }
.dsel { display: flex; align-items: center; gap: 8px; min-width: 0; height: 36px; padding: 0 10px 0 12px; border-radius: 10px; border: 1px solid var(--slate-100); background: var(--surface); color: var(--ink); font-size: 13px; text-align: left; transition: border-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out), background-color 200ms var(--ease-out); }
@media (hover: hover) { .dsel:hover { border-color: var(--slate-300); } }
.dsel:focus-visible, .dsel.is-open { outline: none; border-color: var(--blue-200); box-shadow: 0 0 0 3px rgb(156 184 240 / .28); }
.dsel__face { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.dsel__label { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dsel__label.is-empty { color: var(--ink-4); }
.dsel__dot { flex: none; width: 9px; height: 9px; border-radius: 3px; background: var(--c); }
.dsel__chev { flex: none; width: 14px; height: 14px; stroke-width: 2.4; color: var(--ink-4); transform: rotate(90deg); transition: transform 260ms var(--ease-out); }
.dsel.is-open .dsel__chev { transform: rotate(-90deg); }
.ddpop { position: fixed; z-index: 75; max-height: 300px; overflow-y: auto; padding: 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--slate-100); box-shadow: 0 20px 44px -18px rgb(5 25 60 / .38); scrollbar-width: thin; }
.ddpop__opt { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 6px 10px; border-radius: 8px; text-align: left; font-size: 13px; color: var(--ink); outline: none; transition: background-color 140ms var(--ease-out); }
.ddpop__opt:hover, .ddpop__opt:focus { background: var(--slate-50); }
.ddpop__opt[aria-selected="true"] { font-weight: var(--fw-semibold); }
.ddpop__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ddpop__txt small { font-size: 11px; font-weight: var(--fw-regular); color: var(--ink-4); }
.ddpop__ok { flex: none; width: 15px; height: 15px; stroke-width: 2.6; color: var(--blue-500); opacity: 0; transform: scale(.6); transition: opacity 160ms, transform 240ms var(--ease-spring); }
.ddpop__opt[aria-selected="true"] .ddpop__ok { opacity: 1; transform: none; }
.ddpop__empty { padding: 12px; font-size: 12px; color: var(--ink-4); }

@media (min-width: 1024px) {
  :root {
    --dg: 14px; --pad: 24px; --bar-h: 78px;
    --nav-closed: 72px; --nav-open: 256px; --nav-w: var(--nav-closed);
    --main-l: calc(var(--dg) * 2 + var(--nav-w));
    --desk-bg: #E8EAEF;
    --app-max: 100vw;
    --r-ctl: 10px; --r-btn: 12px; --r-tile: 20px;
    /* destaque em tons de azul (o mesmo do topo do celular); cartões num cinza bem leve */
    --lead-bg: linear-gradient(160deg, #EEF3FD 0%, #E2EAFA 100%);
    --lead-label: #5E71A3;
    --d-tile: #F6F7FA;
  }
  html.nav-pinned { --nav-w: var(--nav-open); }
  html, body { background: var(--desk-bg); overflow: hidden; }
  .dframe, .top, .fade-bottom, .subdock, .mp, .dock { display: none !important; }

  /* ---------------- área principal: painel que rola sozinho (nada é cortado pela moldura) ---------------- */
  .app {
    position: fixed; top: var(--dg); bottom: var(--dg); right: var(--dg); left: var(--main-l);
    width: auto; max-width: none; min-height: 0; margin: 0;
    overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: thin;
    border-radius: 24px; background: var(--bg); box-shadow: 0 0 0 1px var(--slate-100), 0 24px 60px -42px rgb(5 25 60 / .3);
    padding: 0 var(--pad) var(--pad);
    display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; column-gap: 40px;
    grid-template-areas: "bar" "title" "rail" "kpis" "ws" "stage";
    transition: left 300ms var(--ease-out);
  }
  .dh { display: contents; }
  .dh > [hidden], .ws[hidden] { display: none !important; }
  #dhBar { grid-area: bar; } #dhTitle { grid-area: title; } #dhRail { grid-area: rail; } #dhKpis { grid-area: kpis; } #ws { grid-area: ws; } .stage { grid-area: stage; }
  #dhTitle, #dhRail, #dhKpis, #ws, .stage { margin-top: 20px; min-width: 0; }
  .stage { padding-bottom: 0; }
  .page { padding-top: 0 !important; padding-bottom: 0 !important; margin-bottom: 0 !important; }
  .page.is-leaving { left: 0; right: 0; }
  .section { padding: 0; margin-top: 0; }

  /* cada página arruma as peças do seu jeito (não são variações da mesma tela) */
  /* Início (= transações no desktop): fixas e metas em cima; a tabela ao lado de "Por categoria" — tudo dentro da página */
  .page[data-page="transactions"].is-active, .page[data-page="transactions"].is-leaving { display: grid; }
  .page[data-page="transactions"] { grid-template-columns: minmax(0, 1fr); gap: 28px 40px; align-items: start; grid-template-areas: "top" "ws" "side"; }
  html:not(.desk-narrow) .page[data-page="transactions"] { grid-template-columns: minmax(0, 1fr) var(--w-side, 320px); grid-template-areas: "top top" "ws side"; }
  html:not(.desk-narrow) .page[data-page="transactions"] > .tx-cats { position: sticky; top: calc(var(--bar-h) + 6px); }
  .page[data-page="transactions"] > * + * { margin-top: 0; }
  .dtx-top, .dtx-top.dsk-only { grid-area: top; display: grid; grid-template-columns: var(--w-fixed, minmax(0, 1fr)) minmax(0, 1fr); gap: 28px 40px; align-items: start; }
  @container (max-width: 760px) { .dtx-top { grid-template-columns: minmax(0, 1fr); } .dsplit--fixed { display: none !important; } }
  /* alças de largura (no vão de 40px entre as colunas): linha azul ao passar o mouse/arrastar */
  .dtx-ws, .dtx-top > #sectionFixed { position: relative; }
  .dsplit { display: block; position: absolute; top: 0; bottom: 0; width: 16px; z-index: 4; cursor: col-resize; touch-action: none; outline: none; }
  .dsplit--side { right: -28px; }
  .dsplit--fixed { right: -28px; }
  .dsplit::after { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; border-radius: 1px; background: var(--blue-500); opacity: 0; transition: opacity 160ms var(--ease-out); }
  .dsplit:hover::after, .dsplit:focus-visible::after, .dsplit.is-drag::after { opacity: 1; }
  html.desk-narrow .dsplit--side { display: none; }
  .dtx-ws { grid-area: ws; min-width: 0; }
  .dtx-ws > #ws { margin-top: 0; }
  .page[data-page="transactions"] > .tx-cats { grid-area: side; margin: 0; }
  .dtx-top > .section { margin: 0; min-width: 0; }
  /* metas: ícones pequenos com anel de progresso */
  .dgm { display: flex; flex-wrap: wrap; gap: 8px; }
  .dgm__it { flex: none; width: 112px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px 8px; border-radius: var(--r-btn); text-align: center; transition: background-color 200ms var(--ease-out); }
  .dgm__it:hover { background: var(--d-tile); }
  .is-arriving .dgm__it, .dgm__it { animation: card-in 420ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 50ms); }
  .dgm__ring { position: relative; flex: none; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--goal, var(--blue-500)) calc(var(--p, 0) * 1turn), var(--slate-100) 0); }
  .dgm__ic { position: relative; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--goal, var(--blue-500)) 14%, var(--bg)); color: color-mix(in srgb, var(--goal, var(--blue-500)) 85%, var(--mix-ink)); }
  .dgm__ic .ic { width: 28px; height: 28px; }
  .dgm__name { width: 100%; margin-top: 2px; font-size: 12.5px; font-weight: var(--fw-semibold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dgm__pct { font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
  .dgm__add .dgm__ring { background: none; border: 1.5px dashed var(--slate-300); }
  .dgm__add .dgm__ic { background: none; color: var(--ink-3); }
  html:not(.desk-narrow)[data-page="card"] .app { grid-template-columns: 340px minmax(0, 1fr); grid-template-rows: auto auto auto auto 1fr; grid-template-areas: "bar bar" "title title" "rail rail" "kpis ws" "stage ws"; }
  html:not(.desk-narrow)[data-page="person"] .app { grid-template-columns: minmax(0, 1fr) 340px; grid-template-rows: auto auto auto auto 1fr; grid-template-areas: "bar bar" "title title" "rail rail" "ws kpis" "ws stage"; }
  html[data-page="account"] .app { grid-template-areas: "bar" "title" "kpis" "rail" "stage" "ws"; }
  html:not(.desk-narrow):is([data-page="card"], [data-page="person"]) .dk { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  html:not(.desk-narrow):is([data-page="card"], [data-page="person"]) .dk__t.is-lead { grid-column: 1 / -1; }
  html:not(.desk-narrow):is([data-page="card"], [data-page="person"]) .dk__t:last-child:nth-child(even) { grid-column: 1 / -1; } /* nada sozinho na última linha */
  html:not(.desk-narrow):is([data-page="card"], [data-page="person"]) .dk__t { min-height: 92px; padding: 14px 16px; }
  html:not(.desk-narrow):is([data-page="card"], [data-page="person"]) .dk__v { font-size: 18px; }
  html:not(.desk-narrow):is([data-page="card"], [data-page="person"]) .dk__t.is-lead .dk__v { font-size: 30px; }

  .toast { left: calc(var(--main-l) + (100vw - var(--main-l) - var(--dg)) / 2); right: auto; margin: 0; translate: -50% 0; bottom: calc(var(--dg) + 20px); max-width: 560px; font-size: 12.5px; padding: 12px 18px; }
  .nbanner { left: auto; right: calc(var(--dg) + 18px); top: calc(var(--dg) + var(--bar-h)); width: 380px; transform: translate(0, -16px); }
  .nbanner.is-shown { transform: none; }

  /* ---------------- menu único: trilho de ícones que expande (mouse/foco) ou fica fixo ---------------- */
  .desk { display: block; position: fixed; z-index: 40; left: var(--dg); top: var(--dg); bottom: var(--dg); width: var(--nav-open); pointer-events: none; }
  .desk__panel {
    position: absolute; left: 0; top: 0; bottom: 0; width: var(--nav-closed); overflow: hidden; pointer-events: auto;
    display: flex; flex-direction: column; gap: 8px; padding: 12px;
    border-radius: 22px; color: var(--ink);
    background: linear-gradient(165deg, rgb(255 255 255 / .92), rgb(242 243 247 / .84));
    -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6);
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / .9), 0 0 0 1px rgb(15 23 42 / .06), 0 20px 50px -30px rgb(5 25 60 / .4);
    transition: width 280ms var(--ease-out), box-shadow 280ms var(--ease-out);
  }
  .desk.is-open .desk__panel { width: var(--nav-open); }
  html:not(.nav-pinned) .desk.is-open .desk__panel { box-shadow: inset 0 0 0 1px rgb(255 255 255 / .9), 0 0 0 1px rgb(15 23 42 / .06), 0 30px 70px -26px rgb(5 25 60 / .45); }
  .desk__panel > * { flex: none; }
  .desk__head { display: flex; align-items: center; gap: 6px; }
  .desk__search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 8px 0 14px; border-radius: var(--r-btn); background: rgb(15 23 42 / .045); color: var(--ink-3); transition: background-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out); }
  .desk__search:focus-within { background: var(--surface); box-shadow: 0 0 0 2px var(--blue-200); }
  .desk__search .ic { width: 18px; height: 18px; flex: none; }
  .desk__search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: none; color: var(--ink); font: inherit; font-size: 13px; }
  .desk__search input::-webkit-search-cancel-button { display: none; }
  .desk__search kbd, .desk__add kbd { flex: none; padding: 2px 6px; border-radius: 6px; background: rgb(15 23 42 / .06); color: var(--ink-3); font: inherit; font-size: 10px; white-space: nowrap; }
  .desk__pin { flex: none; width: 44px; height: 44px; border-radius: var(--r-btn); display: grid; place-items: center; color: var(--ink-3); transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out), opacity 160ms; }
  .desk__pin:hover { background: rgb(15 23 42 / .05); color: var(--ink); }
  .desk__pin[aria-pressed="true"] { color: var(--blue-500); background: color-mix(in srgb, var(--blue-500) 12%, transparent); }
  .desk__pin .ic { width: 18px; height: 18px; }
  .desk__nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; margin-top: 4px; }
  .desk__nav::-webkit-scrollbar { display: none; }
  .dnav__row { display: flex; align-items: center; gap: 2px; }
  .dnav__grp + .dnav__grp { margin-top: 4px; }
  .dnav__item { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 14px; border-radius: var(--r-btn); color: var(--ink-2); font-size: 13.5px; font-weight: var(--fw-semibold); text-align: left; white-space: nowrap; transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out), box-shadow 200ms var(--ease-out); }
  .dnav__item > span:not(.dnav__count) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .dnav__item .ic { width: 20px; height: 20px; flex: none; }
  .dnav__item:hover { background: rgb(15 23 42 / .05); color: var(--ink); }
  .dnav__grp.is-tab > .dnav__row > .dnav__item { color: var(--blue-500); background: color-mix(in srgb, var(--blue-500) 11%, transparent); }
  .dnav__item.is-on, .dnav__grp.is-tab > .dnav__row > .dnav__item.is-on { background: var(--blue-500); color: #fff; box-shadow: 0 8px 18px -10px var(--blue-500); }
  .dnav__tog { flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--ink-4); transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out), opacity 160ms; }
  .dnav__tog:hover { background: rgb(15 23 42 / .05); color: var(--ink); }
  .dnav__tog .ic { width: 14px; height: 14px; stroke-width: 2.4; transform: rotate(90deg); transition: transform 300ms var(--ease-out); }
  .dnav__grp.is-open .dnav__tog .ic { transform: rotate(-90deg); }
  .dnav__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 280ms var(--ease-out); }
  .desk.is-open .dnav__grp.is-open .dnav__more { grid-template-rows: 1fr; }
  .dnav__tree { min-height: 0; overflow: hidden; margin-left: 23px; padding-left: 12px; border-left: 1px solid rgb(15 23 42 / .1); }
  .dnav__grp.is-open .dnav__tree { padding-block: 2px 4px; }
  .dnav__leaf { position: relative; width: 100%; display: flex; align-items: center; gap: 9px; height: 34px; padding: 0 10px; border-radius: var(--r-ctl); color: var(--ink-3); font-size: 12.5px; text-align: left; white-space: nowrap; transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out); }
  .dnav__leaf::before { content: ""; position: absolute; left: -12px; top: 50%; width: 9px; height: 1px; background: rgb(15 23 42 / .1); }
  .dnav__leaf > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .dnav__leaf:hover { background: rgb(15 23 42 / .05); color: var(--ink); }
  .dnav__leaf.is-on { background: var(--surface); color: var(--ink); font-weight: var(--fw-semibold); box-shadow: 0 0 0 1px var(--slate-100), 0 4px 10px -6px rgb(5 25 60 / .2); }
  .dnav__dot { flex: none; width: 8px; height: 8px; border-radius: 3px; background: var(--c); }
  .dnav__bx { flex: none; width: 14px; height: 14px; color: var(--ink-4); order: -1; }
  .dnav__count { flex: none; padding: 1px 7px; border-radius: 6px; background: rgb(15 23 42 / .07); color: var(--ink-3); font-size: 10.5px; font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; }
  .dnav__item.is-on .dnav__count { background: rgb(255 255 255 / .22); color: #fff; }
  .desk__card { padding: 14px; border-radius: 16px; background: var(--surface); box-shadow: 0 0 0 1px var(--slate-100); white-space: nowrap; }
  .desk__ck { font-size: 11px; color: var(--ink-3); }
  .desk__cv { margin-top: 3px; font-size: 16px; font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; }
  .desk__cv small { font-size: 11px; font-weight: var(--fw-regular); color: var(--ink-4); }
  .desk__bar { display: block; height: 6px; margin-top: 10px; border-radius: 3px; background: var(--slate-100); overflow: hidden; }
  .desk__bar > span { display: block; height: 100%; background: var(--green-500); transform-origin: left center; transform: scaleX(var(--p)); transition: transform 700ms var(--ease-out); }
  .desk__cb { margin-top: 10px; display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; color: var(--ink-3); }
  .desk__cb b { color: var(--ink); font-variant-numeric: tabular-nums; }
  .desk__cb b.is-neg { color: #C4302B; }
  .desk__btn { display: none; }
  .desk__add { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 14px; border-radius: 14px; background: var(--blue-500); color: #fff; font-size: 13.5px; font-weight: var(--fw-semibold); white-space: nowrap; overflow: hidden; box-shadow: 0 10px 22px -12px var(--blue-500); transition: background-color 200ms var(--ease-out); }
  .desk__add:hover { background: color-mix(in srgb, var(--blue-500) 86%, #000); }
  .desk__add .ic { flex: none; width: 20px; height: 20px; stroke-width: 2.4; transition: rotate 180ms var(--ease-out); }
  .desk__add[aria-expanded="true"] .ic { rotate: 45deg; }
  .desk__add span { flex: 1; text-align: left; }
  .desk__add kbd { background: rgb(255 255 255 / .2); color: #fff; }
  /* recolhido: só os ícones (rótulos somem antes de a largura fechar) */
  .desk__search input, .desk__search kbd, .desk__pin, .dnav__item > span, .dnav__count, .dnav__tog, .desk__card, .desk__add span, .desk__add kbd { transition: opacity 180ms var(--ease-out); }
  .desk:not(.is-open) :is(.desk__search input, .desk__search kbd, .desk__pin, .dnav__item > span, .dnav__count, .dnav__tog, .desk__card, .desk__add span, .desk__add kbd) { opacity: 0; pointer-events: none; }
  .desk:not(.is-open) .dnav__tog { width: 0; }
  .desk:not(.is-open) .desk__pin { width: 0; }
  .desk:not(.is-open) .desk__card { visibility: hidden; }

  /* ---------------- "+": painel retangular ao lado do "Criar", com todas as criações ---------------- */
  .addpop { right: auto; margin: 0; bottom: calc(var(--dg) + 12px); width: 292px; }
  .addpop__card { padding: 10px 6px 6px; border-radius: 16px; box-shadow: 0 18px 40px -10px rgb(5 25 60 / .26); }
  .addpop p.addpop__desk { display: block; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--slate-100); }
  .addpop button.addpop__desk { display: flex; }
  .addpop kbd.addpop__desk, .addpop__opt kbd { display: inline-block; margin-left: auto; padding: 2px 7px; border-radius: 6px; background: var(--slate-50); border: 1px solid var(--slate-100); color: var(--ink-3); font: var(--fw-semibold) 10.5px/1.4 var(--font); }
  .addpop__opt { padding: 6px 8px; border-radius: var(--r-ctl); gap: 10px; }
  .addpop__ic { width: 32px; height: 32px; border-radius: var(--r-ctl); }
  .addpop__ic .ic { width: 16px; height: 16px; }
  .addpop__opt[data-add2] .addpop__ic { background: var(--slate-50); color: var(--ink-2); }
  .addpop__txt b { font-size: 13px; }

  /* ---------------- painel de edição: retangular, colado à direita, altura toda ---------------- */
  .sheet-scrim { background: rgb(10 14 24 / .2); }
  .sheet-layer .sheet, .sheet-layer .sheet.is-compact { left: auto; right: var(--dg); top: var(--dg); bottom: var(--dg); width: 460px; max-height: none; margin: 0; border-radius: 14px; box-shadow: 0 24px 60px -24px rgb(0 0 0 / .45); }
  .sheet-layer .sheet.is-compact .sheet__scroll { position: absolute; inset: 0; max-height: none; }
  .sheet__head { cursor: default; }
  .desk__panel { transition: width 280ms var(--ease-out), box-shadow 280ms var(--ease-out), filter 240ms var(--ease-out); }
  html.sheet-open .desk__panel { filter: brightness(.8) saturate(.9); pointer-events: none; }

  /* ======================= BARRA FIXA + TÍTULO ======================= */
  #dhBar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    height: var(--bar-h); margin: 0 calc(-1 * var(--pad)); padding: var(--pad) var(--pad) 14px;
    transition: background-color 220ms var(--ease-out), box-shadow 220ms var(--ease-out); }
  #dhBar.is-stuck { background: color-mix(in srgb, var(--bg) 80%, transparent); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); box-shadow: 0 1px 0 var(--slate-100); }
  .dh__crumbs { flex: 1 1 auto; display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; font-size: 13px; color: var(--ink-3); }
  .dh__crumb { padding: 6px 8px; margin: -6px -3px; border-radius: 8px; color: var(--ink-3); white-space: nowrap; transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out); }
  button.dh__crumb:hover { background: var(--slate-50); color: var(--ink); }
  .dh__crumb.is-here { color: var(--ink); font-weight: var(--fw-semibold); }
  .dh__sep { width: 12px; height: 12px; flex: none; stroke-width: 2.4; color: var(--slate-300); }
  .dh__acts { display: flex; align-items: center; gap: 6px; flex: none; }
  .dh__pacts { display: flex; align-items: center; gap: 8px; }
  /* área estreita: ações da barra só com o ícone (o nome fica na dica) */
  html.desk-narrow .dh__pacts .dbtn:not(.is-primary) { width: 40px; padding: 0; }
  html.desk-narrow .dh__pacts .dbtn:not(.is-primary) span { display: none; }
  html.desk-narrow .dh__me > span:not(.dh__av) { display: none; }
  html.desk-narrow .dh__me { padding: 0 4px; }
  .dh__div { width: 1px; height: 24px; margin: 0 6px; background: var(--slate-100); }
  .dh__icon { position: relative; width: 40px; height: 40px; border-radius: var(--r-btn); display: grid; place-items: center; color: var(--ink-2); transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out); }
  .dh__icon:hover { background: var(--slate-50); color: var(--ink); }
  .dh__icon .ic { width: 20px; height: 20px; }
  .dh__badge { position: absolute; top: 5px; right: 4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 6px; display: grid; place-items: center; background: #E5484D; color: #fff; font-size: 10px; font-weight: var(--fw-bold); box-shadow: 0 0 0 2px var(--bg); }
  .dh__me { display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 12px 0 5px; border-radius: var(--r-btn); border: 1px solid var(--slate-100); font-size: 13px; font-weight: var(--fw-semibold); color: var(--ink); transition: background-color 200ms var(--ease-out); }
  .dh__me:hover { background: var(--slate-50); }
  .dh__av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--slate-100) center / cover; color: var(--ink-2); font-size: 11px; font-weight: var(--fw-bold); }
  .dbtn { height: 40px; padding: 0 16px; border-radius: var(--r-btn); display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: var(--fw-semibold); color: var(--ink); background: var(--surface); border: 1px solid var(--slate-100); white-space: nowrap;
    transition: background-color 200ms var(--ease-out), border-color 200ms var(--ease-out), color 200ms var(--ease-out), box-shadow 200ms var(--ease-out); }
  .dbtn[aria-label] { width: 40px; padding: 0; }
  .dbtn .ic { width: 17px; height: 17px; stroke-width: 2.2; }
  .dbtn:hover { background: var(--slate-50); border-color: var(--slate-300); }
  .dbtn.is-primary { background: var(--blue-500); border-color: var(--blue-500); color: #fff; box-shadow: 0 10px 20px -12px var(--blue-500); }
  .dbtn.is-primary:hover { background: color-mix(in srgb, var(--blue-500) 86%, #000); border-color: transparent; }

  .dh__titlebox { display: flex; flex-direction: column; gap: 14px; }
  .dh__top { display: flex; align-items: center; gap: 16px; min-height: 52px; }
  .dh__lead { flex: none; display: flex; }
  .dh__sw { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 16%, var(--mix-base)); color: color-mix(in srgb, var(--c) 82%, var(--mix-ink)); }
  .dh__sw .ic { width: 24px; height: 24px; }
  .dh__lead .pav.dh__avt { width: 52px; height: 52px; font-size: 18px; }
  .dh__lead .pav.dh__avt .ic { width: 24px; height: 24px; }
  .dh__id { flex: 1; min-width: 0; }
  .dh__title { font-size: 28px; line-height: 34px; font-weight: var(--fw-bold); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dh__sub { margin-top: 3px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 13.5px; color: var(--ink-3); }
  .dh__status { padding: 2px 8px; border-radius: 6px; background: var(--blue-500); color: #fff; font-size: 11px; font-weight: var(--fw-semibold); }
  .dh__status[data-status="paid"] { background: var(--green-700); }
  .dh__status[data-status="overdue"] { background: #D93B40; }
  .dh__status[data-status="future"], .dh__status[data-status="none"] { background: var(--slate-500); }
  .dh__right { display: flex; align-items: center; gap: 8px; }
  .dh__seg, .qa__type { border-radius: var(--r-btn); }
  .dh__seg { height: 40px; padding: 3px; align-items: center; }
  .dh__seg .who__opt, .qa__type .who__opt { border-radius: 9px; }
  .dh__seg .who__opt { height: 32px; padding: 0 14px; font-size: 12.5px; }
  .dh__seg .seg-ind, .qa__type .seg-ind { border-radius: 9px; }
  .dh__picks { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
  .dh__pick { flex: none; height: 34px; padding: 0 13px 0 11px; border-radius: var(--r-ctl); display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: var(--fw-semibold); color: var(--ink-3); border: 1px solid var(--slate-100); transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out), border-color 200ms var(--ease-out); }
  .dh__pick i { width: 8px; height: 8px; border-radius: 3px; background: var(--c); }
  .dh__pick:hover { color: var(--ink); background: var(--slate-50); }
  .dh__pick.is-on { color: var(--blue-500); background: color-mix(in srgb, var(--blue-500) 9%, var(--mix-base)); border-color: var(--blue-500); }

  /* ======================= MESES: os blocos do celular, mais largos ======================= */
  .dmt { position: relative; }
  .dmt__head { display: flex; align-items: center; justify-content: space-between; height: 20px; margin-bottom: 8px; }
  .dmt__what { font-size: 12px; color: var(--ink-3); }
  .dmt .mt-ctl { position: static; }
  .dmt .mt { height: 114px; display: flex; gap: 5px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; cursor: grab; user-select: none; -webkit-user-select: none; }
  /* 12 blocos de 92px (como no celular, um pouco maiores): a faixa termina em ~1160px e o resto fica livre.
     Esticar só achatava a linha do gráfico, sem mostrar nada a mais */
  .dmt { max-width: 1159px; }
  .dmt .mt__tile { flex: 0 0 92px; width: 92px; min-width: 0; transition: filter 200ms var(--ease-out); }
  @media (hover: hover) { .dmt .mt__tile:not(.is-on):hover { filter: brightness(.97); } }

  /* ======================= INDICADORES ======================= */
  .dk { display: grid; grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr)); gap: 12px; }
  .dk__t { position: relative; min-width: 0; min-height: 104px; padding: 16px 18px; border-radius: var(--r-tile); background: var(--d-tile); display: flex; flex-direction: column; gap: 4px; text-align: left; }
  .dk__t.is-lead { background: var(--lead-bg); }
  .dk__k { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dk__t.is-lead .dk__k { color: var(--lead-label); }
  .dk__v { font-size: 22px; line-height: 28px; font-weight: var(--fw-bold); letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dk__t.is-lead .dk__v { font-size: 30px; line-height: 36px; }
  .dk__v.is-in { color: var(--green-700); }
  .dk__v.is-neg { color: #C4302B; }
  .dk__v.is-warn { color: #B4561C; }
  .dk__bar { display: block; height: 6px; margin-top: auto; border-radius: 3px; background: var(--slate-100); overflow: hidden; }
  .dk__bar > span { display: block; height: 100%; background: var(--blue-500); transform-origin: left center; transform: scaleX(var(--p)); }
  .dk__bar.is-in > span { background: var(--green-500); }
  .dk__bar.is-neg > span { background: #E5484D; }
  .dk__t.is-lead .dk__bar { background: rgb(92 122 181 / .18); }
  .dk__n { font-size: 11.5px; color: var(--ink-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dk__bar + .dk__n { margin-top: 2px; }
  .dk__t.is-lead .dk__n { color: var(--lead-label); }
  .dk__t.is-edit { cursor: pointer; color: var(--ink); box-shadow: inset 0 0 0 1px transparent; transition: box-shadow 200ms var(--ease-out); }
  .dk__t.is-edit:hover, .dk__t.is-edit:focus-visible { outline: none; box-shadow: inset 0 0 0 1px var(--slate-300); }
  .dk__edit { box-shadow: inset 0 0 0 1px var(--blue-200), 0 0 0 3px rgb(156 184 240 / .25); }
  .dk__in { width: 100%; height: 34px; padding: 0; border: 0; outline: none; background: none; color: var(--ink); font: var(--fw-bold) 22px/34px var(--font); font-variant-numeric: tabular-nums; }

  /* ======================= INÍCIO ======================= */
  #dhKpis { container-type: inline-size; }
  .dhome { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 4fr); gap: 16px; }
  @container (max-width: 1060px) { .dhome { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .dchart { grid-column: 2; grid-row: 1 / span 2; } }
  @container (max-width: 600px) { .dhome { grid-template-columns: minmax(0, 1fr); } .dchart { grid-column: auto; grid-row: auto; } }
  .dsal { min-width: 0; padding: 20px 22px; border-radius: var(--r-tile); background: var(--lead-bg); display: flex; flex-direction: column; align-items: flex-start; }
  .dsal__k { font-size: 14px; color: var(--lead-label); }
  .dsal__v { max-width: 100%; margin-top: 4px; font-size: 36px; line-height: 44px; font-weight: var(--fw-bold); letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dsal__v .balance__cents { font-size: 21px; color: var(--blue-500); }
  .dsal__v.is-neg { color: #C4302B; }
  .dsal__chip { position: static; height: auto; margin-top: 10px; }
  .dsal__chip .accounts__chip { height: 28px; padding: 0 12px; border-radius: var(--r-ctl); background: rgb(255 255 255 / .75); transition: background-color 200ms var(--ease-out); }
  .dsal__chip:hover .accounts__chip { background: #fff; }
  /* Início: saldo principal | indicadores 2×2 (mesma altura: o saldo estica junto) */
  .dsk2 { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 12px; }
  .dsk2 .dsal { min-height: 220px; }
  .dk.dk--2x2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .dk--2x2 .dk__t { min-height: 0; padding: 14px 18px; }
  .dsal__after { margin-top: auto; padding-top: 16px; font-size: 12.5px; color: var(--lead-label); }
  .dsal__after b { color: var(--ink); font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; }
  .dsal__after b.is-neg { color: #C4302B; }
  @container (max-width: 640px) { .dsk2 { grid-template-columns: minmax(0, 1fr); } .dsk2 .dsal { min-height: 0; } }
  .dsal__mini { margin-top: auto; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 22px; }
  .dsal__mini dt { font-size: 11.5px; color: var(--lead-label); white-space: nowrap; }
  .dsal__mini dd { margin: 2px 0 0; font-size: 15px; font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; white-space: nowrap; }
  .dsal__mini dd.is-in { color: var(--green-700); }
  .dchart, .dflow { min-width: 0; padding: 18px 20px; border-radius: var(--r-tile); background: var(--d-tile); display: flex; flex-direction: column; }
  .dchart { min-height: 220px; padding-bottom: 14px; }
  .dcard__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
  .dcard__t { font-size: 14px; font-weight: var(--fw-bold); }
  .dcard__s { font-size: 12.5px; color: var(--ink-3); }
  .dchart__plot { position: relative; flex: 1; min-height: 120px; margin-top: 14px; }
  .dchart__plot .chart__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
  .dchart__axis { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11px; color: var(--ink-4); }
  .dflow { gap: 12px; }
  .dflow__v { margin-top: 2px; font-size: 22px; line-height: 28px; font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; white-space: nowrap; }
  .dflow__v.is-in { color: var(--green-700); }
  .dflow__v.is-neg { color: #C4302B; }
  .dflow .amx__legend { margin: 0; }
  .dflow .amx__bars { height: 112px; }
  .dflow .amx__col.is-on { background: var(--surface); box-shadow: 0 0 0 1px var(--slate-100); }
  .dlink { display: inline-flex; align-items: center; gap: 2px; padding: 6px 8px; margin: -6px -8px; border-radius: 8px; font-size: 12.5px; font-weight: var(--fw-semibold); color: var(--blue-500); transition: background-color 200ms var(--ease-out); }
  .dlink .ic { width: 14px; height: 14px; stroke-width: 2.4; }
  .dlink:hover { background: var(--slate-100); }
  .dmon__chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .dmon__chip { height: 32px; padding: 0 12px; border-radius: var(--r-ctl); display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: var(--fw-semibold); color: var(--ink-2); background: var(--surface); border: 1px solid var(--slate-100); transition: border-color 200ms var(--ease-out), color 200ms var(--ease-out); }
  .dmon__chip .ic { width: 14px; height: 14px; }
  .dmon__chip:hover { border-color: var(--slate-300); color: var(--ink); }
  .dmon__chip.is-warn { color: #A34B14; background: color-mix(in srgb, #F39A4A 14%, var(--mix-base)); border-color: transparent; }

  .page[data-page="home"].is-active, .page[data-page="home"].is-leaving { display: grid; }
  .stage { container-type: inline-size; }
  .page[data-page="home"] { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto 1fr; gap: 24px 28px; align-items: start; }
  @container (max-width: 820px) {
    .page[data-page="home"] { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
    .page[data-page="home"] > .section--first, .page[data-page="home"] > #sectionFixed, .page[data-page="home"] > #dHomeDue { grid-column: auto; grid-row: auto; }
    .page[data-page="cards"] { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "main" "due" "ppl"; }
    .page[data-page="cards"] #dCardsDue { margin-top: 24px; }
    .page[data-page="wallet"].is-active, .page[data-page="wallet"].is-leaving { grid-template-columns: minmax(0, 1fr); }
  }
  @container (max-width: 680px) { .page[data-page="goal"].is-active, .page[data-page="goal"].is-leaving { grid-template-columns: minmax(0, 1fr); } }
  .page[data-page="home"] > .section { margin: 0; padding: 0; min-width: 0; }
  .page[data-page="home"] > .section--first { grid-column: 1; grid-row: 1 / span 2; align-self: stretch; }
  .page[data-page="home"] > #sectionFixed, .page[data-page="home"] > #dHomeDue { grid-column: 2; }
  .page[data-page="home"] > #sectionGoals { grid-column: 1 / -1; border: 0; padding: 0; }
  .page[data-page="home"] .goals { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
  .page[data-page="home"] .goals > .goal { margin: 0; }
  .stage .section__head { height: 24px; margin: 0 0 10px; padding: 0; }
  .stage .section__sub { margin: -6px 0 10px; }
  .tx__inner::before { inset: 2px -2px; }
  @media (hover: hover) { .tx__inner:hover::before { opacity: 1; } }

  /* ======================= TABELA (sem linhas de grade) ======================= */
  .ws { display: flex; flex-direction: column; container-type: inline-size; }
  .ws__tools { position: relative; display: flex; align-items: center; gap: 10px; min-height: 44px; padding-right: 150px; }
  .ws__search { flex: none; width: 40px; height: 40px; padding: 0 11px; display: flex; align-items: center; gap: 8px; overflow: hidden; cursor: pointer; border-radius: var(--r-btn); border: 1px solid var(--slate-100); color: var(--ink-3); background: var(--surface);
    transition: width 260ms var(--ease-out), border-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out), background-color 200ms var(--ease-out), color 200ms var(--ease-out); }
  .ws__search:hover { background: var(--slate-50); color: var(--ink); }
  .ws__search:focus-within, .ws__search.has-q { width: 250px; cursor: text; background: var(--surface); color: var(--ink-4); }
  .ws__search:focus-within { border-color: var(--blue-200); box-shadow: 0 0 0 3px rgb(156 184 240 / .25); }
  .ws__search .ic { width: 16px; height: 16px; flex: none; }
  .ws__search input { flex: 1; min-width: 0; width: 0; height: 100%; border: 0; outline: none; background: none; color: var(--ink); font: inherit; font-size: 13px; }
  .ws__search kbd { display: none; flex: none; padding: 1px 7px; border-radius: 6px; background: var(--slate-50); border: 1px solid var(--slate-100); color: var(--ink-4); font: inherit; font-size: 11px; }
  .ws__chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
  .ws__chip { flex: none; height: 34px; padding: 0 13px; border-radius: var(--r-ctl); font-size: 12px; font-weight: var(--fw-semibold); color: var(--ink-3); border: 1px solid var(--slate-100); transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out), border-color 200ms var(--ease-out); }
  .ws__chip:hover { color: var(--ink); border-color: var(--slate-300); }
  .ws__chip[aria-pressed="true"] { background: var(--blue-500); border-color: var(--blue-500); color: #fff; }
  /* Minhas/Todas (página do cartão): mesma altura e canto dos filtros, separado deles por um traço */
  .ws__who { position: relative; flex: none; height: 34px; padding: 2px; border-radius: var(--r-ctl); align-items: stretch; }
  .ws__who .who__opt { height: auto; padding: 0 12px; border-radius: 8px; font-size: 12px; font-weight: var(--fw-semibold); }
  .ws__who .seg-ind { border-radius: 8px; }
  .ws__div { flex: none; width: 1px; height: 20px; align-self: center; margin: 0 4px; background: var(--slate-100); }
  .qa { position: absolute; right: 0; top: 50%; translate: 0 -50%; z-index: 4; display: flex; align-items: center; gap: 8px; pointer-events: none; }
  .qa__go { pointer-events: auto; }
  .qa__fields { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 16px; background: var(--surface); border: 1px solid var(--slate-100);
    box-shadow: 0 18px 36px -22px rgb(5 45 123 / .4);
    width: min(760px, calc(100cqw - 140px));
    clip-path: inset(0 0 0 100% round 16px); opacity: 0; pointer-events: none;
    transition: clip-path 380ms var(--ease-out), opacity 220ms var(--ease-out); }
  .qa[data-open="true"] .qa__fields { clip-path: inset(-30px -30px -44px -30px round 16px); opacity: 1; pointer-events: auto; }
  .qa__fields > * { transition: opacity 260ms var(--ease-out), translate 320ms var(--ease-out); }
  /* com a adição rápida aberta, o que fica por baixo (busca e filtros) some; volta ao fechar */
  .ws__search, .ws__chips { transition: opacity 200ms var(--ease-out), width 260ms var(--ease-out), border-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out), background-color 200ms var(--ease-out), color 200ms var(--ease-out); }
  .ws__tools:has(.qa[data-open="true"]) > :is(.ws__search, .ws__chips) { opacity: 0; pointer-events: none; }
  .ws__tools:has(.qa[data-open="true"]) > .ws__search { width: 40px; }
  .qa[data-open="false"] .qa__fields > * { opacity: 0; translate: 14px 0; }
  .qa[data-open="true"] .qa__fields > :nth-child(1) { transition-delay: 150ms; }
  .qa[data-open="true"] .qa__fields > :nth-child(2) { transition-delay: 120ms; }
  .qa[data-open="true"] .qa__fields > :nth-child(3) { transition-delay: 90ms; }
  .qa[data-open="true"] .qa__fields > :nth-child(n+4) { transition-delay: 50ms; }
  .qa__type { flex: none; height: 36px; padding: 2px; }
  .qa__type .who__opt { height: 30px; padding: 0 12px; font-size: 12px; }
  .qa__in { height: 36px; min-width: 0; padding: 0 12px; border-radius: var(--r-ctl); border: 1px solid var(--slate-100); background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; outline: none; transition: border-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out); }
  .qa__in:focus { border-color: var(--blue-200); box-shadow: 0 0 0 3px rgb(156 184 240 / .25); }
  .qa__title { flex: 1 1 140px; }
  .qa__val { flex: 0 0 116px; text-align: right; font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; }
  .qa .dsel { flex: 0 1 158px; }
  .qa__go { flex: none; height: 40px; padding: 0 10px 0 14px; border-radius: var(--r-btn); display: inline-flex; align-items: center; gap: 7px; background: var(--blue-500); color: #fff; font-size: 13px; font-weight: var(--fw-semibold); box-shadow: 0 10px 20px -12px var(--blue-500); transition: background-color 200ms var(--ease-out); }
  .qa__go:hover { background: color-mix(in srgb, var(--blue-500) 86%, #000); }
  .qa__go .ic { width: 16px; height: 16px; stroke-width: 2.6; transition: rotate 300ms var(--ease-spring); }
  .qa[data-open="true"] .qa__go .ic { rotate: 90deg; }
  .qa__go kbd { padding: 1px 6px; border-radius: 6px; background: rgb(255 255 255 / .2); font: inherit; font-size: 10.5px; transition: opacity 200ms; }
  .qa[data-open="true"] .qa__go kbd { opacity: 0; }

  .ws__body { margin-top: 8px; }
  .wst { width: calc(100% + 16px); margin: 0 -8px; table-layout: fixed; border-collapse: separate; border-spacing: 0 2px; font-size: 13px; }
  /* larguras ajustáveis pelo usuário (variáveis gravadas em financa.ws.cols) */
  .wst th.wst__date { width: var(--wc-date, 72px); } .wst th.wst__cat { width: var(--wc-cat, 140px); } .wst th.wst__meth { width: var(--wc-meth, 104px); } .wst th.wst__ppl { width: var(--wc-ppl, 140px); } .wst th.wst__val { width: var(--wc-val, 124px); } .wst th.wst__acts { width: 132px; }
  .wst__rz { position: absolute; top: 6px; bottom: 6px; width: 13px; z-index: 3; cursor: col-resize; touch-action: none; outline: none; }
  .wst__rz--l { left: -9px; } .wst__rz--r { right: -3px; }
  .wst__rz::after { content: ""; position: absolute; left: 5.5px; top: 4px; bottom: 4px; width: 2px; border-radius: 1px; background: var(--slate-100); opacity: 0; transition: opacity 160ms var(--ease-out), background-color 160ms var(--ease-out); }
  .wst thead th:is(.wst__date, .wst__cat, .wst__meth, .wst__ppl, .wst__val) { overflow: visible; }
  .wst thead:hover .wst__rz::after { opacity: 1; }
  .wst__rz:hover::after, .wst__rz:focus-visible::after, .wst__rz.is-drag::after { opacity: 1; background: var(--blue-500); }
  html.is-colrz, html.is-colrz * { cursor: col-resize !important; user-select: none; }
  .wst__dw { display: flex; align-items: center; gap: 10px; min-width: 0; }
  .wst__dw .wst__ic { flex: none; margin-right: 0; }
  .wst__dw .wst__t { display: flex; flex-direction: column; min-width: 0; max-width: none; }
  td.wst__cat, td.wst__meth { overflow: hidden; }
  .wst__tag { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  @container (max-width: 900px) { .wst .wst__ppl { display: none; } }
  @container (max-width: 740px) { .wst .wst__meth { display: none; } }
  @container (max-width: 580px) { .wst .wst__cat { display: none; } }
  .wst thead th { position: sticky; top: var(--bar-h); z-index: 2; background: var(--bg); text-align: left; font-weight: var(--fw-semibold); }
  .wst th:first-child, .wst td:first-child { padding-left: 8px; }
  .wst th:last-child, .wst td:last-child { padding-right: 8px; }
  .wst thead button { display: inline-flex; align-items: center; gap: 4px; height: 36px; color: var(--ink-4); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; transition: color 200ms var(--ease-out); }
  .wst thead button:hover { color: var(--ink); }
  .wst__arr { width: 12px; height: 12px; stroke-width: 2.6; transform: rotate(90deg); transition: transform 240ms var(--ease-out); }
  .wst__arr.is-up { transform: rotate(-90deg); }
  .wst td { height: 52px; padding: 0 10px 0 0; vertical-align: middle; transition: background-color 160ms var(--ease-out); }
  .wst__row { cursor: pointer; outline: none; }
  .wst__row:hover td, .wst__row:focus-visible td { background: var(--slate-50); }
  .wst__row td:first-child { border-radius: var(--r-btn) 0 0 var(--r-btn); }
  .wst__row td:last-child { border-radius: 0 var(--r-btn) var(--r-btn) 0; }
  .wst__row.is-open td { background: color-mix(in srgb, var(--blue-500) 10%, var(--mix-base)); }
  .wst__row:focus-visible td:first-child { box-shadow: inset 3px 0 0 var(--blue-500); }
  .wst__row.is-new td { animation: rowGlow 1.2s ease-in-out; }
  @keyframes rowGlow { 0%, 100% { background-color: transparent; } 18%, 55% { background-color: color-mix(in srgb, var(--blue-500) 16%, var(--mix-base)); } }
  .wst__row.is-deleting td { background: color-mix(in srgb, #E5484D 13%, var(--mix-base)); }
  .ws__body.is-in .wst__row { animation: rowIn 300ms var(--ease-out) both; animation-delay: calc(var(--i) * 14ms); }
  @keyframes rowIn { from { opacity: 0; transform: translateY(6px); } }
  .wst__date { width: 64px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
  .wst__desc > span { vertical-align: middle; }
  .wst__ic { display: inline-grid; place-items: center; width: 32px; height: 32px; margin-right: 10px; border-radius: 50%; background: color-mix(in srgb, var(--c) 14%, var(--mix-base)); color: var(--c); }
  .wst__ic.is-in { --c: var(--green-700); }
  .wst__ic .ic { width: 16px; height: 16px; }
  .wst__t { display: inline-flex; flex-direction: column; max-width: calc(100% - 44px); }
  .wst__t b { font-weight: var(--fw-semibold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .wst__t small { font-size: 11px; color: var(--ink-4); }
  .wst__tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 6px; background: color-mix(in srgb, var(--c) 12%, var(--mix-base)); font-size: 12px; color: var(--ink-2); white-space: nowrap; }
  .wst__tag i { width: 7px; height: 7px; border-radius: 2px; background: var(--c); }
  .wst__none { color: var(--ink-4); }
  .wst__m { font-size: 12px; font-weight: var(--fw-semibold); color: color-mix(in srgb, var(--mc) 70%, var(--ink)); white-space: nowrap; }
  td.wst__ppl { color: var(--ink-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .wst__val { text-align: right; font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; white-space: nowrap; }
  .wst thead .wst__val button { flex-direction: row-reverse; }
  .wst thead th.wst__val { text-align: right; }
  .wst__val.is-in { color: var(--green-700); }
  .wst__val small { font-weight: var(--fw-regular); color: var(--ink-4); }
  .wst__row.is-paid .wst__t b { color: var(--ink-3); }
  .wst__acts { text-align: right; white-space: nowrap; }
  .wst__acts button { width: 32px; height: 32px; border-radius: 8px; display: inline-grid; place-items: center; color: var(--slate-300); transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out); }
  .wst__row:hover .wst__acts button, .wst__row:focus-within .wst__acts button { color: var(--ink-3); }
  .wst__acts .ic { width: 16px; height: 16px; }
  .wst__acts button:hover { background: var(--slate-100); color: var(--ink); }
  .wst__acts button.is-del:hover { background: #FDE8E9; color: #D93B40; }
  .wst__acts .wst__chk { margin-right: 4px; border: 1.6px solid var(--slate-300); border-radius: 50%; width: 24px; height: 24px; color: var(--ink-3); transition: background-color 200ms var(--ease-out), border-color 200ms var(--ease-out); }
  .wst__chk .ic { width: 13px; height: 13px; stroke-width: 3; opacity: 0; transform: scale(.5); transition: opacity 160ms, transform 260ms var(--ease-spring); }
  .wst__acts .wst__chk.is-on { background: var(--green-500); border-color: var(--green-500); color: #fff; }
  .wst__chk.is-on .ic { opacity: 1; transform: none; }
  .wst__chk:hover .ic { opacity: .5; transform: none; }
  .wst__empty td { height: 140px; text-align: center; color: var(--ink-4); }
  .ws__foot { margin-top: 10px; font-size: 12px; color: var(--ink-3); text-align: right; }
  .ws__foot b { color: var(--ink); font-variant-numeric: tabular-nums; }

  /* ======================= PÁGINAS ======================= */
  .dsk-only { display: block; }
  .dsec__t, .ov-cards__title, .section__title { font-size: 15px; font-weight: var(--fw-bold); }
  .dsec__t { margin-bottom: 12px; }
  .page--tx .section--sort, .page--tx .section--txall,
  #billCtrl, .page[data-page="card"] #cardBuys,
  .page[data-page="account"] .acc-txhead, #accCtrl, .page[data-page="account"] .bill-list,
  #psCtrl, .page[data-page="person"] .bill-list,
  #wallet, .ov-view, .ov-cards__add, #peopleBox, #accWallet,
  #goalPageBox .section:has(.gopt) { display: none !important; }
  .stage .page > * + * { margin-top: 18px; }
  .ov-sub__head, .ov-cards__head { position: static; height: auto; padding-bottom: 12px; }
  .ov-people, .ov-people--first { margin: 0; }
  .tx-cats { padding: 16px 18px 18px; border-radius: var(--r-tile); background: var(--d-tile); }
  .tx-cats .tcat__row { grid-template-columns: 36px minmax(0, 1fr) 96px; grid-template-rows: 18px 14px; row-gap: 6px; padding: 10px 0; align-items: center; }
  .tx-cats .tcat__ic { grid-row: 1 / 3; align-self: center; width: 36px; height: 36px; }
  .tx-cats .tcat__ic .ic { display: block; width: 18px; height: 18px; }
  .tx-cats .tcat__name, .tx-cats .tcat__v { line-height: 18px; }
  .tx-cats .tcat__bar { align-self: center; }
  .tx-cats .tcat__pct { line-height: 14px; }

  /* Cartões: painéis por cartão + coluna de vencimentos e pessoas */
  .page[data-page="cards"].is-active, .page[data-page="cards"].is-leaving { display: grid; }
  .page[data-page="cards"] { grid-template-columns: minmax(0, 1fr) 300px; grid-template-rows: auto 1fr; column-gap: 24px; grid-template-areas: "main due" "main ppl"; align-items: start; }
  .page[data-page="cards"] > * + * { margin-top: 0; }
  .page[data-page="cards"] .ov-cards { grid-area: main; margin: 0; padding: 0; }
  .page[data-page="cards"] #dCardsDue { grid-area: due; }
  .page[data-page="cards"] .ov-people { grid-area: ppl; margin-top: 24px; }
  .ov-cards__track { position: static; inset: auto; pointer-events: auto; }
  .dcards { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 16px; max-width: calc(var(--cols, 3) * 340px + (var(--cols, 3) - 1) * 16px); }
  .dcp { display: flex; flex-direction: column; gap: 10px; padding: 10px 10px 12px; border-radius: var(--r-tile); background: var(--d-tile); min-width: 0; }
  .is-arriving > .dcards > .dcp, .is-arriving > .dppl > .dpc, .is-arriving > .dacc > .dap { animation: card-in 480ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 55ms + 40ms); }
  .dcp__face { width: 100%; height: auto; aspect-ratio: 1.6; border-radius: 14px; transition: translate 240ms var(--ease-out), box-shadow 240ms var(--ease-out); box-shadow: 0 10px 22px -16px rgb(0 0 0 / .45); }
  .dcp__face:hover { translate: 0 -2px; box-shadow: 0 16px 28px -18px rgb(0 0 0 / .5); }
  .dcp__face .cf__total { margin-top: 2px; }
  .dcp__row { display: flex; align-items: center; gap: 8px; padding: 0 4px; min-width: 0; }
  .dcp__st { flex: none; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: var(--fw-semibold); background: color-mix(in srgb, var(--blue-500) 14%, var(--mix-base)); color: var(--blue-500); }
  .dcp__st[data-status="paid"] { background: color-mix(in srgb, var(--green-500) 18%, var(--mix-base)); color: var(--green-700); }
  .dcp__st[data-status="overdue"] { background: #FDE8E9; color: #C4302B; }
  .dcp__st[data-status="none"], .dcp__st[data-status="future"] { background: var(--slate-100); color: var(--ink-3); }
  .dcp__due { min-width: 0; font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dcp__due.is-soon { color: #B4561C; font-weight: var(--fw-semibold); }
  .dcp__lim { padding: 0 4px; display: flex; flex-direction: column; gap: 5px; }
  .dcp__lim small { font-size: 11.5px; color: var(--ink-4); }
  .dcp__bar { display: block; height: 5px; border-radius: 3px; background: var(--slate-100); overflow: hidden; }
  .dcp__bar > span { display: block; height: 100%; background: hsl(var(--h) 45% 52%); transform-origin: left center; transform: scaleX(var(--p)); }
  .dcp__bar.is-hi > span { background: #E5484D; }
  .dcp__acts, .dpc__acts, .dgoal__acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .dcp__btn { white-space: nowrap; height: 36px; padding: 0 8px; border-radius: var(--r-ctl); display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; font-weight: var(--fw-semibold); color: var(--ink); background: var(--surface); border: 1px solid var(--slate-100); transition: background-color 200ms var(--ease-out), border-color 200ms var(--ease-out), color 200ms var(--ease-out); }
  .dcp__btn .ic { width: 15px; height: 15px; stroke-width: 2.3; }
  .dcp__btn:hover:not(:disabled) { border-color: var(--slate-300); }
  .dcp__btn.is-primary { background: var(--blue-500); border-color: var(--blue-500); color: #fff; }
  .dcp__btn.is-primary:hover { background: color-mix(in srgb, var(--blue-500) 86%, #000); }
  .dcp__btn:disabled { opacity: .45; cursor: default; }
  .ddue { display: flex; flex-direction: column; gap: 4px; }
  .ddue__it { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px; margin: 0 -6px; border-radius: var(--r-btn); transition: background-color 160ms var(--ease-out); }
  .ddue__it:hover { background: var(--slate-50); }
  .ddue__date { width: 44px; height: 44px; border-radius: var(--r-ctl); display: grid; place-content: center; text-align: center; background: color-mix(in srgb, var(--c) 13%, var(--mix-base)); color: color-mix(in srgb, var(--c) 80%, var(--mix-ink)); }
  .ddue__date b { font-size: 15px; line-height: 16px; font-variant-numeric: tabular-nums; }
  .ddue__date small { font-size: 9.5px; font-weight: var(--fw-bold); letter-spacing: .04em; }
  .ddue__txt { display: flex; flex-direction: column; min-width: 0; text-align: left; }
  .ddue__txt b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ddue__txt small { font-size: 11.5px; color: var(--ink-3); }
  .ddue__it.is-soon .ddue__txt small { color: #B4561C; font-weight: var(--fw-semibold); }
  .ddue__it.is-paid { opacity: .55; }
  .ddue__v { font-size: 13px; font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; }

  /* Cartão: coluna da esquerda (cartão, limites, pessoas) + tabela */
  .page[data-page="card"] .bill-cards { margin: 0; padding: 0; }
  .page[data-page="card"] .bill-cards__title { display: none; }
  .page[data-page="card"] .bill-list { margin: 0; }
  .page[data-page="card"] .bill-list:not(:has(#cardPeople > *)) { display: none; }

  /* Pessoas: um cartão por pessoa */
  .dppl { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 16px; max-width: calc(var(--cols, 3) * 340px + (var(--cols, 3) - 1) * 16px); }
  .dpc { display: flex; flex-direction: column; gap: 14px; padding: 14px; border-radius: var(--r-tile); background: var(--d-tile); min-width: 0; }
  .dpc__head { display: flex; align-items: center; gap: 12px; padding: 4px; margin: -4px; border-radius: var(--r-btn); text-align: left; transition: background-color 160ms var(--ease-out); }
  .dpc__head:hover { background: var(--slate-100); }
  .dpc__av { width: 42px; height: 42px; flex: none; font-size: 14px; }
  .dpc__id { flex: 1; min-width: 0; display: flex; flex-direction: column; }
  .dpc__id b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dpc__id small { font-size: 11.5px; color: var(--ink-3); }
  .dpc__go { width: 16px; height: 16px; color: var(--ink-4); }
  .dpc__mid { display: flex; align-items: center; gap: 14px; }
  .dpc__ring, .dgoal__ring { position: relative; flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
    background: conic-gradient(var(--green-500) calc(var(--p) * 1turn), var(--slate-100) 0); }
  .dpc__ring::before, .dgoal__ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--d-tile); }
  .dpc__ring > span { position: relative; font-size: 13px; font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; }
  .dpc__nums { flex: 1; min-width: 0; }
  .dpc__k { font-size: 11.5px; color: var(--ink-3); }
  .dpc__v { font-size: 20px; line-height: 26px; font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dpc__v.is-warn { color: #B4561C; }
  .dpc__s { font-size: 11.5px; color: var(--ink-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dpc__s.is-credit { color: var(--green-700); }
  .dpc__last { display: flex; flex-direction: column; gap: 3px; margin: -4px 0 0; padding: 8px 10px; border-radius: var(--r-ctl); background: var(--surface); }
  .dpc__last li { display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; color: var(--ink-3); }
  .dpc__last li span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dpc__last li b { flex: none; font-weight: var(--fw-semibold); color: var(--ink-2); font-variant-numeric: tabular-nums; }
  .dpc__none { margin-top: -4px; font-size: 11.5px; color: var(--ink-4); }
  .dpc__acts .dcp__btn { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

  /* Contas: divisão do saldo + painel por conta; caixinhas ao lado */
  /* a coluna das contas tem a largura das carteiras (até 340px cada); as Caixinhas vêm logo ao lado (40px);
     o que sobra da tela fica livre à direita em vez de esticar os blocos */
  .page[data-page="wallet"].is-active, .page[data-page="wallet"].is-leaving { display: grid; grid-template-columns: auto minmax(260px, 340px); justify-content: start; gap: 24px 40px; align-items: start; }
  .page[data-page="wallet"] > * + * { margin-top: 0; }
  .page[data-page="wallet"] .dacc, .page[data-page="wallet"] .dshare { width: min(100%, calc(var(--cols, 3) * 320px + (var(--cols, 3) - 1) * 16px)); }
  .dshare { display: flex; gap: 3px; height: 10px; margin-bottom: 14px; }
  .dshare i { display: block; min-width: 4px; border-radius: 2px; background: var(--wc); }
  .dacc { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 16px; max-width: calc(var(--cols, 3) * 340px + (var(--cols, 3) - 1) * 16px); }
  html.desk-narrow .page[data-page="wallet"].is-active { grid-template-columns: minmax(0, 1fr); }
  .dap { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--r-tile); background: var(--d-tile); text-align: left; min-width: 0; transition: background-color 200ms var(--ease-out); }
  .dap:hover { background: var(--slate-100); }
  .dap__top { display: flex; align-items: center; gap: 12px; }
  .dap__wallet { width: 40px; height: 30px; flex: none; }
  .dap__wallet::before { top: 11px; width: 16px; height: 11px; }
  .dap__wallet::after { right: 5px; top: 15px; width: 4px; height: 4px; }
  .dap__id { flex: 1; min-width: 0; display: flex; flex-direction: column; }
  .dap__id b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dap__id small { font-size: 11.5px; color: var(--ink-3); }
  .dap__go { width: 16px; height: 16px; color: var(--ink-4); }
  .dap__v { font-size: 22px; font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; }
  .dap__v.is-neg { color: #C4302B; }
  .dap__flow { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
  .dap__flow span { display: inline-flex; align-items: center; gap: 4px; }
  .dap__flow .ic { width: 13px; height: 13px; }
  .dap__flow .is-in { color: var(--green-700); }

  /* Conta: painel de métricas em grade (resumo numa linha, gráficos 2 a 2) */
  #accMetrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  #accMetrics > .amx__sec { margin: 0; padding: 16px 18px 18px; border-radius: var(--r-tile); background: var(--d-tile); min-width: 0; }
  #accMetrics > .amx__sec--first { grid-column: 1 / -1; background: none; padding: 0; }
  #accMetrics .amx__kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #accMetrics .amx__card { border: 0; padding-inline: 0; background: none; }
  .page[data-page="account"] > .ov-people { padding: 0; background: none; }
  #accMetrics .amx__bars { height: 180px; gap: 10px; }
  #accMetrics .amx__bars--pair .amx__b { width: min(26px, 38%); }
  #accMetrics .amx__bars:not(.amx__bars--pair) .amx__b { width: min(46px, 62%); }
  #accMetrics .amx__lab { font-size: 11px; }
  #accMetrics .amx__legend { margin-bottom: 14px; }

  /* Meta: o progresso em destaque ao lado do histórico (editar = painel à direita) */
  .page[data-page="goal"].is-active, .page[data-page="goal"].is-leaving { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 24px; align-items: start; }
  .page[data-page="goal"] > * + * { margin-top: 0; }
  .dgoal { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 22px 18px 18px; border-radius: var(--r-tile); background: var(--d-tile); }
  .dgoal__ring { width: 168px; height: 168px; background: conic-gradient(var(--goal) calc(var(--p) * 1turn), var(--slate-100) 0); }
  .dgoal__ring::before { inset: 14px; }
  .dgoal__ring > span { position: relative; display: flex; flex-direction: column; align-items: center; }
  .dgoal__ring b { font-size: 34px; line-height: 38px; font-variant-numeric: tabular-nums; }
  .dgoal__ring small { font-size: 12px; color: var(--ink-3); }
  .dgoal__marks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; width: 100%; }
  .dgoal__marks span { height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 11.5px; font-weight: var(--fw-semibold); color: var(--ink-4); background: var(--slate-100); }
  .dgoal__marks span.is-on { background: color-mix(in srgb, var(--goal) 18%, var(--mix-base)); color: color-mix(in srgb, var(--goal) 80%, var(--mix-ink)); }
  .dgoal__nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
  .dgoal__nums div { padding: 10px; border-radius: var(--r-ctl); background: var(--surface); }
  .dgoal__nums dt { font-size: 11px; color: var(--ink-3); }
  .dgoal__nums dd { white-space: nowrap; margin: 2px 0 0; font-size: 12.5px; font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; }
  .dgoal__acts { width: 100%; }

  /* período, checkpoint e categorias no desktop */
  .dmt__right { display: flex; align-items: center; gap: 8px; }
  .dmt__period { height: 26px; padding: 0 10px; border-radius: 8px; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: var(--fw-semibold); color: var(--ink-3); background: var(--surface); border: 1px solid var(--slate-100); transition: border-color 200ms var(--ease-out), color 200ms var(--ease-out), background-color 200ms var(--ease-out); }
  .dmt__period .ic { width: 13px; height: 13px; }
  .dmt__period:hover { border-color: var(--slate-300); color: var(--ink); }
  .dmt__period.is-on { color: var(--blue-500); border-color: var(--blue-500); background: color-mix(in srgb, var(--blue-500) 9%, var(--mix-base)); }
  html:not([data-page="transactions"]) .dmt__period, html:not([data-page="transactions"]) .ws__cp { display: none; }
  .ws__cp { flex: none; width: 40px; height: 40px; border-radius: var(--r-btn); display: grid; place-items: center; color: #8A6A00; background: #FFF7DB; border: 1px solid #F1D98A; transition: background-color 200ms var(--ease-out), opacity 200ms var(--ease-out); }
  .ws__cp:hover { background: #FFEFB8; }
  .ws__cp .ic { width: 17px; height: 17px; }
  .ws__tools:has(.qa[data-open="true"]) > .ws__cp { opacity: 0; pointer-events: none; }
  .wst__sec td { height: auto; padding: 22px 8px 6px; font-size: 11px; font-weight: var(--fw-semibold); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-4); background: transparent !important; }
  .wst__cp td { background: #FFF7DB; }
  .wst__cp td:first-child { border-radius: var(--r-btn) 0 0 var(--r-btn); }
  .wst__cp td:last-child { border-radius: 0 var(--r-btn) var(--r-btn) 0; }
  .wst__ic--cp { background: #F5C842; color: #5A4300; }
  .wst__cp .wst__t b, .wst__cp .wst__val { color: #5A4300; }
  .wst__cp .wst__t small { color: #9A7A1A; }
  .wst__acts button.is-confirm { background: #E5484D; color: #fff; }
  .page[data-page="transactions"] > .tx-cats { padding: 0; background: none; }
  .page[data-page="transactions"] > .tx-cats .tcx { border: 0; border-radius: var(--r-tile); background: var(--d-tile); }
  .page[data-page="transactions"] > .tx-cats .tcx__head { pointer-events: none; margin: 0; width: 100%; padding: 16px 18px 12px; }
  .page[data-page="transactions"] > .tx-cats .tcx__chev { display: none; }
  .page[data-page="transactions"] > .tx-cats .tcx__inner { padding: 0 18px; }
  .page[data-page="transactions"] > .tx-cats .tcx__inner::after { height: 14px; }
  /* contas: mini gráfico e últimas movimentações */
  .dap__spark { display: block; width: 100%; height: 34px; overflow: visible; }
  .dap__line { fill: none; stroke: var(--wc); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
  .dap__area { fill: color-mix(in srgb, var(--wc) 14%, transparent); }
  .dap__last { display: flex; flex-direction: column; gap: 3px; padding-top: 8px; border-top: 1px solid var(--slate-100); }
  .dap__last > span { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--ink-3); }
  .dap__last > span > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dap__last b { flex: none; font-weight: var(--fw-semibold); color: var(--ink-2); font-variant-numeric: tabular-nums; }
  .dap__last b.is-in { color: var(--green-700); }
  .cashc__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 720px; }
  .page[data-page="account"] > #accCash:not(:empty) { padding: 16px 18px 18px; border-radius: var(--r-tile); background: var(--d-tile); }
  .page[data-page="account"] > #accCash .cashc__it { background: var(--surface); }
  .page[data-page="account"] .bxg { max-width: 540px; } /* 2 por linha, sem esticar na largura toda */

  /* páginas de leitura: coluna confortável */
  .page--settings, .page[data-page="box"] { max-width: 820px; }
  .page--settings .hero, .page--settings .set-back { display: none; }
}

/* reduzir movimento: o menu abre sem animar a largura */
@media (min-width: 1024px) and (prefers-reduced-motion: reduce) {
  .desk__panel, .app { transition: none; }
}

/* ---------- Pergunta ao editar uma parcela (só esta · seguintes · todas) ---------- */
.iask { position: fixed; inset: 0; z-index: 78; display: grid; align-items: end; justify-items: center; padding: 0 var(--gutter) calc(24px + env(safe-area-inset-bottom)); }
.iask__scrim { position: absolute; inset: 0; background: rgb(0 0 0 / .32); }
.iask__card {
  position: relative; width: 100%; max-width: 360px; padding: 18px 8px 8px; border-radius: 22px;
  background: rgb(255 255 255 / .86);
  -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid var(--dock-border); box-shadow: 0 18px 40px -10px rgb(5 25 60 / .3); outline: none;
}
.iask__t { padding: 0 12px; font-size: 17px; font-weight: var(--fw-bold); color: var(--ink); }
.iask__s { padding: 4px 12px 10px; font-size: 13px; line-height: 18px; color: var(--ink-2); }
.iask__opt {
  width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px; border-radius: 14px; text-align: left; color: var(--ink); font-size: 15px;
  transition: background-color var(--dur-fast);
}
.iask__opt b { font-weight: var(--fw-semibold); }
.iask__opt small { font-size: 12.5px; color: var(--ink-3); }
.iask__opt:active { background: var(--slate-50); }
.iask__opt:focus-visible { outline: 2px solid var(--blue-500); outline-offset: -2px; }
@media (hover: hover) { .iask__opt:not(:disabled):hover { background: var(--slate-50); } }
.iask__opt:disabled { opacity: .45; cursor: default; }
.iask__opt[data-iask="all"] b { color: var(--blue-500); }
@media (min-width: 1024px) { .iask { align-items: center; padding: 14px; } }

/* ==========================================================================
   CRONOGRAMA — saldo previsto dia a dia
   ========================================================================== */
.hero--sch .sch__info { right: var(--gutter); }
.hero--sch .ov__value.is-negative .balance__whole { color: #B3261E; }
.page--sch { margin-bottom: -24px; }
.page--sch .section--first { margin-top: 18px; }
/* mês: ‹ Novembro 2026 › · Mês atual */
.sch-nav { display: flex; align-items: center; gap: 6px; }
.sch-nav__m { min-width: 128px; text-align: center; font-size: 15px; font-weight: var(--fw-bold); }
.sch-nav__arr { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: var(--ink-2); background: var(--slate-50); transition: background-color var(--dur-fast), opacity var(--dur-fast); }
.sch-nav__arr .ic { width: 13px; height: 13px; stroke-width: 2.6; }
.sch-nav__l { transform: scaleX(-1); }
.sch-nav__arr:disabled { opacity: .35; cursor: default; }
.sch-nav__now { margin-left: auto; height: 30px; padding: 0 11px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: var(--fw-semibold); color: var(--blue-500); background: color-mix(in srgb, var(--blue-500) 10%, var(--mix-base)); }
.sch-nav__now .ic { width: 13px; height: 13px; }
@media (hover: hover) { .sch-nav__arr:not(:disabled):hover { background: var(--slate-100); } }
/* ganhos do trabalho */
.sch-work { margin-top: 14px; border-radius: 16px; background: var(--slate-50); }
.sch-work__head { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-align: left; border-radius: 16px; }
.sch-work__ic { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--green-700); background: color-mix(in srgb, var(--green-500) 16%, var(--mix-base)); }
.sch-work__ic .ic { width: 19px; height: 19px; }
.sch-work__t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sch-work__t b { font-size: 14px; font-weight: var(--fw-semibold); }
.sch-work__t small { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sch-work__chev { width: 12px; height: 12px; flex: none; color: var(--ink-4); transition: transform var(--dur-base) var(--ease-out); }
.sch-work.is-open .sch-work__chev { transform: rotate(90deg); }
.sch-form { padding: 4px 14px 14px; animation: enter-soft 240ms var(--ease-out) both; }
.sch-work .sch-form .gopt__label:first-child { margin-top: 0; }
.sch-dows { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.sch-dow { height: 36px; border-radius: 10px; font-size: 13px; font-weight: var(--fw-semibold); color: var(--ink-3); background: var(--white); border: 1px solid var(--slate-100); transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out), border-color 200ms var(--ease-out); }
.sch-dow[aria-pressed="true"] { background: var(--blue-500); border-color: var(--blue-500); color: var(--white); }
.sch-go { margin-top: 12px; height: 44px; }
/* resumo: 3 blocos da mesma altura */
.sch-sum { margin-top: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } /* o menor saldo fica no topo */
.sch-sum__t { min-width: 0; padding: 10px 12px; border-radius: 14px; background: var(--slate-50); display: flex; flex-direction: column; gap: 2px; }
.sch-sum__t span { font-size: 11px; color: var(--ink-3); }
.sch-sum__t b { font-size: 15px; font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sch-sum__t b.is-in { color: var(--green-700); }
.sch-sum__t b.is-neg { color: #B3261E; }
.sch-sum__t small { font-size: 10.5px; color: var(--ink-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sch-sum__t.is-warn { background: #FDE8E9; }
/* barras do saldo de cada dia */
.sch-chart { margin-top: 12px; padding: 12px 12px 8px; border-radius: 14px; background: var(--slate-50); }
.sch-chart svg { display: block; width: 100%; height: 64px; overflow: visible; }
.sch-bar { fill: color-mix(in srgb, var(--blue-500) 55%, var(--mix-base)); transition: fill var(--dur-fast); }
.sch-bar.is-neg { fill: #E5484D; }
.sch-bar.is-today { fill: var(--blue-500); }
.sch-bar.is-neg.is-today { fill: #B3261E; }
.sch-zero { stroke: var(--slate-300); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.sch-chart__axis { margin-top: 6px; display: flex; justify-content: space-between; font-size: 10.5px; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.sch-alert { margin-top: 10px; padding: 10px 12px; border-radius: 12px; display: flex; align-items: center; gap: 8px; font-size: 12.5px; line-height: 17px; color: #8C1D18; background: #FDE8E9; }
.sch-alert .ic { width: 16px; height: 16px; flex: none; }
/* os dias: data num bloco à esquerda (como no calendário) e, ao lado, o que muda no dia e o saldo */
.sch-days { margin-top: 18px; display: flex; flex-direction: column; gap: 2px; }
.sch-day__row {
  display: flex; align-items: flex-start; gap: 12px; width: calc(100% + 16px);
  margin: 0 -8px; padding: 8px; border-radius: 14px; text-align: left; -webkit-tap-highlight-color: transparent;
  transition: background-color 200ms var(--ease-out);
}
@media (hover: hover) { .sch-day__row:hover { background: var(--slate-50); } }
.sch-day.is-open .sch-day__row { background: var(--slate-50); border-radius: 14px 14px 0 0; }
.sch-day__d {
  width: 44px; height: 48px; flex: none; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  background: var(--slate-50); color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums;
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.sch-day__d small { font-size: 9.5px; font-weight: var(--fw-semibold); letter-spacing: .06em; color: var(--ink-4); }
.sch-day__d b { font-size: 17px; font-weight: var(--fw-bold); }
.sch-day__d:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 2px; }
.sch-day.is-open .sch-day__d, .sch-day__row:hover .sch-day__d { background: var(--surface); }
.sch-day.is-rest:not(.is-today) .sch-day__d b { color: var(--ink-3); }
.sch-day.is-today .sch-day__d { background: var(--blue-500); color: var(--white); box-shadow: 0 4px 10px -4px color-mix(in srgb, var(--blue-500) 70%, transparent); }
.sch-day.is-today .sch-day__d small { color: color-mix(in srgb, var(--white) 82%, transparent); }
.sch-day.is-neg:not(.is-today) .sch-day__d { background: #FDE8E9; }
.sch-day.is-neg:not(.is-today) .sch-day__d b { color: #B3261E; }
.sch-day__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; padding-top: 3px; cursor: pointer; }
/* linha de cima: quanto o dia muda | o saldo no fim do dia */
.sch-day__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-height: 20px; }
.sch-day__net { min-width: 0; font-size: 11.5px; font-weight: var(--fw-semibold); color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sch-day__net.is-in { color: var(--green-700); }
.sch-day__net.is-zero { font-weight: var(--fw-regular); color: var(--ink-4); }
.sch-day__bal { flex: none; font-size: 15px; font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.sch-day.is-today .sch-day__bal { color: var(--blue-500); }
.sch-day.is-neg .sch-day__bal { color: #B3261E; }
/* lançamentos: ícone do tipo, nome, valor e o ✓ (conta na previsão) */
.sch-day__its { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sch-it { min-width: 0; min-height: 24px; display: flex; align-items: center; gap: 8px; font-size: 12.5px; line-height: 17px; transition: opacity 200ms var(--ease-out); }
.sch-it__ic { width: 22px; height: 22px; flex: none; border-radius: 7px; display: grid; place-items: center; color: var(--ink-3); background: var(--slate-50); transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out); }
.sch-it__ic .ic { width: 12px; height: 12px; }
.sch-day__row:hover .sch-it__ic, .sch-day.is-open .sch-it__ic { background: var(--surface); }
.sch-it--inc .sch-it__ic { color: var(--green-700); background: color-mix(in srgb, var(--green-500) 14%, var(--mix-base)) !important; }
.sch-it--inc.is-zero .sch-it__ic { color: #A86B00; background: #FFF2CC !important; }
.sch-it--bill .sch-it__ic { color: var(--blue-500); background: color-mix(in srgb, var(--blue-500) 12%, var(--mix-base)) !important; }
.sch-it--fixed .sch-it__ic { color: #A86B00; background: color-mix(in srgb, #F5B300 18%, var(--mix-base)) !important; }
.sch-it--sched .sch-it__ic { color: #6E56CF; background: color-mix(in srgb, #6E56CF 13%, var(--mix-base)) !important; }
.sch-it__t { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; color: var(--ink-2); text-align: left; }
/* nomes longos quebram em até 2 linhas (o nome inteiro fica na dica) */
.sch-it__t > span { min-width: 0; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow-wrap: anywhere; }
.sch-it__open { min-height: 24px; margin: 0 -4px; padding: 2px 4px; border-radius: 6px; font: inherit; transition: background-color 160ms var(--ease-out); }
@media (hover: hover) { .sch-it__open:hover { background: color-mix(in srgb, var(--blue-500) 8%, transparent); } .sch-it__open:hover > span { color: var(--blue-500); } }
.sch-it__open:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 0; }
.sch-it__v { flex: none; font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; color: var(--ink); text-align: right; transition: color 200ms var(--ease-out); }
.sch-it--inc .sch-it__v, .sch-it.is-in .sch-it__v { color: var(--green-700); }
.sch-it--inc .sch-it__t { color: var(--ink-3); }
.sch-it--inc.is-zero .sch-it__t, .sch-it--inc.is-zero .sch-it__v { color: #A86B00; }
.sch-it--none .sch-it__t { color: var(--ink-4); padding-left: 0; }
.sch-it--inc.is-done .sch-it__t, .sch-it--inc.is-done .sch-it__v { color: var(--ink-4); }
/* fora da previsão: continua na lista, riscado e apagado */
.sch-it.is-off .sch-it__t > span, .sch-it.is-off .sch-it__v { text-decoration: line-through; text-decoration-thickness: 1px; color: var(--ink-4); }
.sch-it.is-off .sch-it__ic { opacity: .5; }
.sch-tag { flex: none; padding: 1px 6px; border-radius: 999px; font-style: normal; font-size: 9.5px; font-weight: var(--fw-semibold); color: #8A5A00; background: #FFF2CC; text-decoration: none; }
.sch-tag--off { color: var(--ink-3); background: var(--slate-100); }
/* ✓ tirar/colocar na previsão: 24px visíveis, 32px de toque */
.sch-tg { position: relative; width: 24px; height: 24px; flex: none; margin-left: 2px; border-radius: 50%; display: grid; place-items: center;
  color: transparent; border: 1.5px solid var(--slate-300); background: transparent;
  transition: background-color 200ms var(--ease-out), border-color 200ms var(--ease-out), color 200ms var(--ease-out); }
.sch-tg::before { content: ""; position: absolute; inset: -4px; }
.sch-it:not(.sch-it--none):not(:has(.sch-tg))::after { content: ""; width: 26px; flex: none; } /* valores alinhados na mesma coluna, com ou sem o ✓ */
.sch-tg .ic { width: 12px; height: 12px; stroke-width: 3; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset 260ms var(--ease-out) 40ms; }
.sch-tg[aria-pressed="true"] { color: var(--white); border-color: var(--blue-500); background: var(--blue-500); }
.sch-tg[aria-pressed="true"] .ic { stroke-dashoffset: 0; }
@media (hover: hover) { .sch-tg[aria-pressed="false"]:hover { border-color: var(--blue-500); color: color-mix(in srgb, var(--blue-500) 45%, transparent); } .sch-tg[aria-pressed="false"]:hover .ic { stroke-dashoffset: 0; } }
.sch-tg:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 2px; }
/* dias seguidos sem movimento: uma linha só */
.sch-quiet { cursor: pointer; }
.sch-day--quiet .sch-day__d { height: 40px; background: transparent; border: 1.5px dashed var(--slate-300); }
.sch-day--quiet .sch-day__d b { font-size: 13px; color: var(--ink-3); }
.sch-day--quiet .sch-day__d small { font-size: 8.5px; }
.sch-day--quiet .sch-day__bal { font-size: 13.5px; color: var(--ink-3); font-weight: var(--fw-semibold); }
.sch-quiet__more { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: var(--fw-semibold); color: var(--blue-500); }
.sch-quiet__more .ic { width: 10px; height: 10px; stroke-width: 2.8; transform: rotate(90deg); transition: transform 240ms var(--ease-spring); }
@media (hover: hover) { .sch-quiet:hover .sch-quiet__more .ic { transform: rotate(90deg) translateX(2px); } }
.sch-foot__ic { width: 11px; height: 11px; vertical-align: -1px; color: var(--blue-500); }
/* topo: quais contas entram (como na Home) */
.hero--sch .sch__view { top: 195px; left: var(--gutter); }
.hero--sch .sch__info { left: auto; right: var(--gutter); top: 197px; max-width: calc(100% - 2 * var(--gutter) - 150px); text-align: right; }
.sch__view[aria-expanded="true"] .accounts__chev, .sch-nav__view[aria-expanded="true"] .accounts__chev { transform: rotate(-90deg); }
.sch-nav__view { margin-left: auto; height: 30px; }
.sch-nav__view .accounts__chip { height: 30px; padding: 0 12px; }
.sch-nav__now + .sch-nav__view { margin-left: 6px; }
/* ajustar um dia (abre embaixo dele) */
.sch-ed { margin: 0 -8px; padding: 4px 12px 14px 64px; border-radius: 0 0 14px 14px; background: var(--slate-50); }
@media (max-width: 420px) { .sch-ed { padding-left: 12px; } }
.sch-ed .gopt__label:first-child { margin-top: 2px; }
.sch-inc { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sch-chip[aria-pressed="true"] { background: var(--blue-500); border-color: var(--blue-500); color: var(--white); font-weight: var(--fw-semibold); }
.sch-inc__in { flex: 1 1 110px; width: auto; height: 34px; }
.sch-mini { height: 34px; padding: 0 12px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; font-size: 12px; font-weight: var(--fw-semibold); color: var(--blue-500); background: color-mix(in srgb, var(--blue-500) 10%, var(--mix-base)); transition: background-color var(--dur-fast); white-space: nowrap; }
.sch-mini .ic { width: 13px; height: 13px; }
@media (hover: hover) { .sch-mini:hover { background: color-mix(in srgb, var(--blue-500) 16%, var(--mix-base)); } }
.sch-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.sch-line #schLineT { grid-column: 1 / -1; }
.sch-sign { align-self: center; }
.sch-sign .who__opt { height: 28px; padding: 0 12px; font-size: 11.5px; }
.sch-line .sch-mini--add { grid-column: 1 / -1; }
.sch-lines { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.sch-lines li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.sch-lines li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.sch-lines li b { font-variant-numeric: tabular-nums; }
.sch-lines li b.is-in { color: var(--green-700); }
.sch-x { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--ink-4); }
.sch-x .ic { width: 13px; height: 13px; }
@media (hover: hover) { .sch-x:hover { background: #FDE8E9; color: #D93B40; } }
.sch-quick { margin-top: 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.sch-quick .sch-mini { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sch-foot { margin-top: 18px; padding-bottom: 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
@media (min-width: 1024px) {
  .page--sch { max-width: 760px; }
  .page--sch .sch-sum { display: none; } /* os indicadores do topo já mostram entra, sai e o menor saldo */
}

@media (max-width: 1023.98px) { .dsplit { display: none; } } /* alças de largura: só no desktop */

@media (min-width: 1024px) {
  /* Conta: Transferir e Atualizar saldo como botões do tamanho do texto, lado a lado; o formulário abre embaixo com largura de leitura */
  .page[data-page="account"] .atr { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; }
  .page[data-page="account"] .atr__btn { width: auto; height: 40px; padding: 0 18px; margin: 0; }
  .page[data-page="account"] .atr__btn--set { order: 2; }
  .page[data-page="account"] .atr__form { order: 3; flex: 0 0 100%; max-width: 560px; margin-top: 4px; }
  .page[data-page="account"] { max-width: 1180px; }
  .page[data-page="account"] > #accCash:not(:empty) { max-width: 760px; }

  /* Caixinha: Movimentar + Evolução à esquerda (360px), Histórico à direita (até 600px).
     O resto da tela fica livre: a lista de movimentações não fica melhor mais larga */
  .page[data-page="box"] { max-width: 1000px; }
  .page[data-page="box"] #boxPage { display: grid; grid-template-columns: 360px minmax(0, 600px); grid-template-areas: "ctl hist" "evo hist"; gap: 16px 40px; align-items: start; }
  #boxPage > * + * { margin-top: 0; }
  #boxPage > .bxp__ctl { grid-area: ctl; margin: 0; padding: 16px 16px 18px; border-radius: var(--r-tile); background: var(--d-tile); }
  #boxPage > .bxp__evo { grid-area: evo; margin: 0; padding: 16px 18px 18px; border-radius: var(--r-tile); background: var(--d-tile); }
  #boxPage > .bxp__hist { grid-area: hist; margin: 0; padding: 16px 18px 10px; border-radius: var(--r-tile); background: var(--d-tile); }
  .bxp__ctlt { margin-bottom: 12px; }
  .page[data-page="box"] .bxp__acts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .page[data-page="box"] .bxp__act { flex-direction: row; justify-content: flex-start; gap: 10px; height: 52px; padding: 0 12px; border-radius: 12px; background: var(--surface); }
  .page[data-page="box"] .bxp__act.is-on { box-shadow: inset 0 0 0 1.5px var(--blue-500); }
  .page[data-page="box"] .bxp__actic { width: 34px; height: 34px; }
  .page[data-page="box"] .bxp__form { background: var(--surface); }
  .bxp__evohead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
  .bxp__evohead small { font-size: 11.5px; color: var(--ink-4); }
  .bxp__spark { height: 110px; --wc: var(--blue-500); }
  .bxp__spark .dap__spark { width: 100%; height: 100%; }
  .bxp__nochart { padding: 26px 0; font-size: 12.5px; color: var(--ink-4); text-align: center; }
  .bxp__sum { margin: 14px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .bxp__sum div { min-width: 0; }
  .bxp__sum dt { font-size: 11px; color: var(--ink-3); }
  .bxp__sum dd { margin: 2px 0 0; font-size: 14px; font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bxp__sum dd.is-in { color: var(--green-700); }
  .page[data-page="box"] .bxp__hist .ov-cards__title { margin-bottom: 4px; }
}
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .page[data-page="box"] #boxPage { grid-template-columns: minmax(0, 1fr); grid-template-areas: "ctl" "evo" "hist"; max-width: 640px; }
}

/* ==========================================================================
   MICROINTERAÇÕES DOS BOTÕES — ícones que respondem ao gesto (só transform/rotate/translate)
   ========================================================================== */
svg.ic { transition: rotate 300ms var(--ease-spring), translate 240ms var(--ease-spring); }
/* setas que abrem/fecham giram com mola */
.accounts__chev, .sch-work__chev, .sch-quiet__more .ic { transition: transform 320ms var(--ease-spring), rotate 300ms var(--ease-spring); }
@media (hover: hover) {
  /* "+": gira um quarto de volta */
  button:hover > svg.ic:has(> use[href="#i-plus"]), button:focus-visible > svg.ic:has(> use[href="#i-plus"]) { rotate: 90deg; }
  /* setas de navegação: andam um pouco para o lado em que levam */
  .sch-nav__arr:not(:disabled):hover .ic { translate: 2px 0; }
  .sch-nav__arr:not(:disabled):hover .sch-nav__l { translate: -2px 0; }
  .sch-work__head:hover .sch-work__chev { translate: 2px 0; }
  .sch-work.is-open .sch-work__head:hover .sch-work__chev { translate: 0 2px; }
  /* alvo "mês atual": pulsa */
  .sch-nav__now:hover .ic, .mt-now:hover .ic { animation: ic-pulse 600ms var(--ease-out); }
  /* botão principal: sobe 1px com uma sombra curta */
  .sh-confirm:not(:disabled) { transition: translate 200ms var(--ease-out), box-shadow 200ms var(--ease-out), background-color var(--dur-fast); }
  .sh-confirm:not(:disabled):hover { translate: 0 -1px; box-shadow: 0 6px 14px -8px color-mix(in srgb, var(--blue-500) 80%, transparent); }
  .sch-mini:hover .ic { translate: 0 -1px; }
}
@keyframes ic-pulse { 0% { scale: 1; } 40% { scale: 1.22; } 100% { scale: 1; } }
@media (prefers-reduced-motion: reduce) {
  svg.ic, .accounts__chev, .sch-work__chev { transition: none; }
  .sch-nav__now:hover .ic, .mt-now:hover .ic { animation: none; }
}
