/* =====================================================================
   Xavier — design system do app
   Cores, fontes e raios vêm do manual da marca. Mude aqui e o app inteiro acompanha.
   Proporção da marca: preto e branco dominam; o verde só aparece para apontar o caminho.
   ===================================================================== */

:root {
  /* cores oficiais (iguais nos dois temas) */
  --verde: #2bb34b;
  --verde-claro: #7dd68f;
  --verde-escuro: #1c7a33;
  --preto: #0f100f;
  --branco: #f6f6f2;
  --grafite: #2a2c2a;
  --raiva: #e8735f;                  /* vermelho do pato bravo (fixo nos dois temas) */

  /* tema escuro (padrão) */
  --bg: #0a0b0a;
  --surface: #121412;
  --surface-2: #181a18;
  --surface-3: #202320;
  --border: #242724;
  --border-strong: #313531;
  --text: #f6f6f2;
  --text-2: #b9bdb6;
  --muted: #80867f;
  --verde-texto: #4cc868;            /* verde para texto pequeno (contraste ok no fundo escuro) */
  --accent: var(--verde);
  --accent-soft: rgba(43, 179, 75, 0.13);
  --accent-glow: rgba(43, 179, 75, 0.35);

  /* semânticas (separadas do verde da marca) */
  --pos: #4cc868;
  --pos-soft: rgba(76, 200, 104, 0.12);
  --neg: #e8735f;
  --neg-soft: rgba(232, 115, 95, 0.12);
  --warn: #e0a526;
  --warn-soft: rgba(224, 165, 38, 0.13);
  --neutro: #8a8f88;                 /* barras de saída nos gráficos */

  --grao-opacidade: 0.05;
  --radius-lg: 22px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.025) inset, 0 18px 40px -26px rgba(0, 0, 0, 0.8);

  --fonte: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --fonte-serif: "Newsreader", "Times New Roman", Georgia, serif;
  --fonte-num: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --fonte-logo: "Geist", "Archivo", sans-serif;

  --sidebar: 252px;
  color-scheme: dark;
}

:root[data-tema="claro"] {
  --bg: #f6f6f2;
  --surface: #ffffff;
  --surface-2: #f1f1ec;
  --surface-3: #e8e9e3;
  --border: #e3e4de;
  --border-strong: #d2d4cd;
  --text: #0f100f;
  --text-2: #43473f;
  --muted: #747a72;
  --verde-texto: #1c7a33;
  --accent-soft: rgba(43, 179, 75, 0.11);
  --accent-glow: rgba(43, 179, 75, 0.28);
  --pos: #1c7a33;
  --pos-soft: rgba(28, 122, 51, 0.09);
  --neg: #c2412d;
  --neg-soft: rgba(194, 65, 45, 0.08);
  --warn: #a8740a;
  --warn-soft: rgba(168, 116, 10, 0.1);
  --neutro: #b5b9b2;
  --grao-opacidade: 0.035;
  --shadow: 0 1px 2px rgba(15, 16, 15, 0.04), 0 14px 34px -24px rgba(15, 16, 15, 0.3);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--fonte);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
/* grão de filme por cima de tudo: dá textura de papel/impressão à interface */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: var(--grao-opacidade);
  background-image: 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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--verde-texto); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--verde); outline-offset: 2px; }
.num { font-family: var(--fonte-num); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.serif { font-family: var(--fonte-serif); }
.pos { color: var(--pos); }
.neg { color: var(--neg); }
.muted { color: var(--muted); }
.verde { color: var(--verde-texto); }
[hidden] { display: none !important; }

/* ------------------------------------------------------------ layout */
.app { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }

.sidebar {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 4px;
  padding: 24px 14px 18px;
  background: var(--preto);
  color: var(--branco);
  border-right: 1px solid #1d201d;
  overflow: hidden;
  isolation: isolate;
}

/* ------------------------------------------------------------ logo "xav." (Geist; o ponto em verde) */
.logo-xav { font-family: var(--fonte-logo); font-weight: 700; letter-spacing: -0.07em; line-height: 1; white-space: nowrap; }
.logo-xav i { font-style: normal; color: var(--verde); }
.marca { display: flex; flex-direction: column; gap: 6px; padding: 2px 10px 26px; color: var(--branco); text-decoration: none !important; }
.marca .logo-xav { font-size: 34px; padding-right: .07em; }
.marca small { display: block; color: #8a8f88; font: 500 10.5px var(--fonte-num); letter-spacing: .12em; text-transform: uppercase; }

.nav { display: flex; flex-direction: column; gap: 2px; position: relative; z-index: 1; }
.nav a {
  position: relative; display: flex; align-items: center; gap: 11px;
  padding: 8px 10px; border-radius: 10px;
  color: #9a9f98; font-weight: 500; font-size: 13.5px; letter-spacing: -.005em; text-decoration: none;
  transition: background .15s, color .15s;
}
.nav a svg { width: 17px; height: 17px; opacity: .75; transition: color .15s, opacity .15s; }
.nav a:hover { background: #151715; color: var(--branco); }
.nav a.ativo { background: #1a1d1a; color: var(--branco); font-weight: 600; box-shadow: 0 0 0 1px #242824 inset; }
.nav a.ativo svg { color: var(--verde); opacity: 1; }
.nav-grupo { padding: 16px 10px 6px; color: #5f655d; font: 600 10px var(--fonte-num); letter-spacing: .14em; text-transform: uppercase; }
.nav-grupo:first-child { padding-top: 0; }

.sidebar-rodape { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding: 0 4px; position: relative; z-index: 1; }
.sync-info { font: 500 11px var(--fonte-num); color: #80867f; padding: 0 8px; line-height: 1.5; letter-spacing: -0.01em; }
.sync-info .ponto { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--verde); margin-right: 7px; box-shadow: 0 0 0 3px rgba(43,179,75,.18); animation: pulsar 2.4s infinite; }
.sync-info .ponto.erro { background: var(--neg); box-shadow: 0 0 0 3px var(--neg-soft); animation: none; }
@keyframes pulsar { 50% { box-shadow: 0 0 0 6px rgba(43,179,75,0); } }
.sidebar .btn { background: #161816; border-color: #2a2d2a; color: var(--branco); }
.sidebar .btn:hover { background: #1d201d; }
.sidebar .btn-fantasma { background: transparent; border-color: transparent; color: #a9ada6; }

.principal { min-width: 0; padding: 30px 38px 70px; }
.topo { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.topo h1 { font-family: var(--fonte-serif); font-weight: 400; font-size: 36px; letter-spacing: -0.035em; line-height: 1.05; margin: 0; }
.topo h1 .ponto-final { color: var(--verde); }
.topo .sub { color: var(--muted); font-size: 13px; margin-top: 6px; }
.topo-acoes { margin-left: auto; display: flex; gap: 10px; align-items: center; }

/* ------------------------------------------------------------ componentes */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow);
  min-width: 0;
  transition: border-color .25s, transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s;
}
.card.vivo:hover { border-color: color-mix(in srgb, var(--verde) 35%, var(--border)); transform: translateY(-2px); box-shadow: var(--shadow), 0 18px 40px -30px var(--accent-glow); }
.card-titulo { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 14px; font-weight: 700; letter-spacing: -0.005em; }
.card-titulo .acao { margin-left: auto; font-size: 12.5px; font-weight: 600; }
.card-titulo small { color: var(--muted); font-weight: 500; font-size: 12px; }
.card-titulo .serif { font-weight: 400; font-size: 19px; letter-spacing: -0.02em; }

/* holofote: brilho verde que segue o mouse (ativado por JS nos .holofote) */
.holofote { overflow: hidden; }
.holofote::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(43,179,75,.16), transparent 60%);
}
.holofote:hover::after { opacity: 1; }

.grade { display: grid; gap: 18px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-hero { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.g-60 { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.mt { margin-top: 18px; }
.span-2 { grid-column: span 2; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--surface-2);
  font-weight: 650; font-size: 13px; cursor: pointer; white-space: nowrap;
  transition: transform .1s, background .2s, border-color .2s, box-shadow .2s, opacity .2s;
}
.btn:hover { background: var(--surface-3); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn svg { width: 16px; height: 16px; }
/* verde com texto PRETO (regra de contraste do manual) */
.btn-primario { background: var(--verde); border-color: transparent; color: var(--preto); box-shadow: 0 10px 26px -14px var(--accent-glow); }
.btn-primario:hover { background: #33c457; box-shadow: 0 12px 30px -12px var(--accent-glow); }
.btn-perigo { color: var(--neg); }
.btn-perigo.cheio { background: var(--neg); border-color: transparent; color: #fff; }
.btn-fantasma { background: transparent; border-color: transparent; }
.btn-fantasma:hover { background: var(--surface-2); }
.btn-icone { width: 38px; padding: 0; }
.btn-sm { height: 30px; padding: 0 12px; font-size: 12px; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.girando { animation: girar 0.9s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }

.campo, .select {
  height: 38px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--border-strong); background: var(--surface-2);
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.campo:focus, .select:focus { border-color: var(--verde); box-shadow: 0 0 0 3px var(--accent-soft); }
.select { padding-right: 32px; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232bb34b' stroke-width='2.6'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
label.rotulo { display: block; font: 600 11px var(--fonte-num); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }

.segmentado { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
.segmentado button { border: 0; background: transparent; height: 30px; padding: 0 13px; border-radius: 999px; font-weight: 600; font-size: 12.5px; color: var(--muted); cursor: pointer; transition: color .2s, background .2s; }
.segmentado button:hover { color: var(--text); }
.segmentado button.ativo { background: var(--text); color: var(--bg); }

.selo { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px; font: 600 10.5px var(--fonte-num); letter-spacing: .02em; background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.selo.ok { background: var(--pos-soft); color: var(--pos); }
.selo.alerta { background: var(--warn-soft); color: var(--warn); }
.selo.estourado, .selo.erro { background: var(--neg-soft); color: var(--neg); }
.selo.roxo, .selo.marca { background: var(--accent-soft); color: var(--verde-texto); }

/* categoria: inicial em serifa num quadradinho — um pequeno "monograma" para cada categoria */
.cat { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 12.5px; white-space: nowrap; }
.cat-ic { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; flex: none; font-family: var(--fonte-serif); font-size: 16px; line-height: 1; font-weight: 500; }
button.cat { border: 1px dashed transparent; background: none; padding: 2px 8px 2px 2px; border-radius: 11px; cursor: pointer; }
button.cat:hover { border-color: var(--border-strong); background: var(--surface-2); }

.barra { position: relative; height: 8px; border-radius: 99px; background: var(--surface-3); overflow: visible; }
.barra > i { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: var(--verde); transition: width 1.1s cubic-bezier(.2,.8,.2,1); }
.barra > i.ok { background: linear-gradient(90deg, var(--verde-escuro), var(--verde)); box-shadow: 0 0 12px -2px var(--accent-glow); }
.barra > i.alerta { background: linear-gradient(90deg, #b9821a, var(--warn)); }
.barra > i.estourado { background: linear-gradient(90deg, #b8432f, var(--neg)); }
.barra .marcador { position: absolute; top: -4px; width: 2px; height: 16px; background: var(--text); border-radius: 2px; opacity: .5; }

.vazio { text-align: center; padding: 30px 16px; color: var(--muted); }
.vazio .pato-vazio { width: 64px; height: 64px; border-radius: 18px; background: var(--preto); color: var(--branco); display: grid; place-items: center; margin: 0 auto 12px; --fundo: var(--preto); }
.vazio .pato-vazio svg { width: 78%; }
.vazio .emoji { font-size: 32px; display: block; margin-bottom: 8px; }
.vazio b { color: var(--text); display: block; margin-bottom: 4px; font-family: var(--fonte-serif); font-weight: 500; font-size: 19px; letter-spacing: -0.02em; }
.vazio p { margin: 4px 0 0; }

/* ------------------------------------------------------------ hero (sempre preto, em qualquer tema) */
.hero {
  position: relative; overflow: hidden; color: var(--branco); background: var(--preto);
  border: 1px solid #1d201d; isolation: isolate;
}
.hero .rotulo-hero { font: 600 11px var(--fonte-num); letter-spacing: .14em; text-transform: uppercase; color: #8a8f88; }
.hero .valor-hero { font-size: clamp(34px, 4.2vw, 50px); font-weight: 600; margin: 10px 0 22px; letter-spacing: -0.05em; line-height: 1; }
.hero .valor-hero .cent { color: #6f746d; }
.hero .partes { display: flex; gap: 30px; flex-wrap: wrap; }
.hero .partes div > span { display: block; font: 600 10.5px var(--fonte-num); letter-spacing: .1em; text-transform: uppercase; color: #8a8f88; margin-bottom: 4px; }
.hero .partes div b { font-size: 15px; font-weight: 600; }
.hero canvas { position: absolute; left: 0; right: 0; bottom: 0; height: 96px !important; width: 100% !important; z-index: -1; }
.hero-conteudo { position: relative; }
.hero-nota { margin-top: 26px; font-size: 12px; color: #80867f; line-height: 1.5; max-width: 400px; }
.hero .linha-verde { width: 54px; height: 4px; border-radius: 4px; background: var(--verde); box-shadow: 0 0 18px 1px var(--accent-glow); margin-top: 18px; }

/* KPIs */
.kpi .rotulo-kpi { display: flex; align-items: center; gap: 9px; color: var(--muted); font: 600 11px var(--fonte-num); letter-spacing: .1em; text-transform: uppercase; }
.kpi .ic { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; }
.kpi .ic svg { width: 16px; height: 16px; }
.kpi .valor { font-size: 26px; font-weight: 600; margin-top: 14px; letter-spacing: -0.045em; }
.kpi .rodape-kpi { margin-top: 6px; font-size: 12px; color: var(--muted); }
.delta { font-weight: 700; font-family: var(--fonte-num); }

/* dica do mascote */
.xav { display: flex; gap: 14px; align-items: flex-start; background: var(--verde); color: var(--preto); border: 0; }
.xav .avatar-xav { width: 46px; height: 46px; border-radius: 14px; background: var(--preto); color: var(--branco); display: grid; place-items: center; flex: none; --fundo: var(--preto); box-shadow: 0 10px 20px -12px rgba(0,0,0,.6); }
.xav .avatar-xav svg { width: 82%; }
.xav .quem { font-family: var(--fonte-serif); font-size: 19px; letter-spacing: -0.02em; line-height: 1; }
.xav .quem i { font-style: normal; color: var(--preto); opacity: .55; font-family: var(--fonte-num); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; margin-left: 6px; vertical-align: 3px; }
.xav p { margin: 6px 0 0; font-weight: 600; font-size: 13.5px; line-height: 1.45; }
.xav .proximas { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.xav .proximas button { border: 0; border-radius: 99px; padding: 5px 11px; background: rgba(15,16,15,.12); color: var(--preto); font-weight: 600; font-size: 11.5px; cursor: pointer; }
.xav .proximas button:hover { background: rgba(15,16,15,.2); }
.xav .pato .olho-piscar { animation: piscar 5s infinite; transform-origin: center; transform-box: fill-box; }
@keyframes piscar { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }

/* ------------------------------------------------------------ listas */
.lista { display: flex; flex-direction: column; }
.linha { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.linha:last-child { border-bottom: 0; }
.linha .meio { min-width: 0; flex: 1; }
.linha .titulo { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linha .detalhe { font-size: 12px; color: var(--muted); margin-top: 2px; }
.linha .valor { font-weight: 600; font-size: 13.5px; text-align: right; white-space: nowrap; }

.legenda-cat { display: flex; flex-direction: column; gap: 13px; }
.legenda-cat .item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 12px; }
.legenda-cat .item > :nth-child(2) { text-align: right; white-space: nowrap; }
.legenda-cat .item .barra { grid-column: 1 / -1; height: 4px; }

.dia-grupo { margin-bottom: 6px; }
.dia-cab { display: flex; justify-content: space-between; padding: 16px 6px 8px; font: 600 11px var(--fonte-num); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; border-bottom: 1px dashed var(--border); margin-bottom: 4px; }
.tx { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.2fr) minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 12px; transition: background .15s; }
.tx:hover { background: var(--surface-2); }
.tx .desc { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx .desc small { display: block; font-weight: 500; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.tx .conta-tx { font-size: 12.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx .valor { font-weight: 600; text-align: right; min-width: 110px; }

.filtros { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filtros .busca { flex: 1; min-width: 200px; position: relative; }
.filtros .busca input { width: 100%; padding-left: 38px; }
.filtros .busca svg { position: absolute; left: 13px; top: 11px; width: 16px; height: 16px; color: var(--muted); }
.resumo-filtro { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.resumo-filtro div > span { display: block; font: 600 10.5px var(--fonte-num); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.resumo-filtro div b { font-size: 18px; font-weight: 600; }

/* ------------------------------------------------------------ orçamentos */
.orc { display: flex; flex-direction: column; gap: 14px; }
.orc-topo { display: flex; align-items: center; gap: 12px; }
.orc-topo .acoes { margin-left: auto; display: flex; gap: 4px; opacity: 0; transition: opacity .2s; }
.orc:hover .orc-topo .acoes, .orc:focus-within .orc-topo .acoes { opacity: 1; }
.orc-valores { display: flex; align-items: baseline; gap: 8px; }
.orc-valores b { font-size: 24px; font-weight: 600; }
.orc-rodape { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); gap: 10px; flex-wrap: wrap; }
.orc-grade { align-items: start; }

/* Itens dentro da categoria (Aluguel, Condomínio, Luz…) */
.orc-itens { list-style: none; margin: 2px 0 0; padding: 4px 0 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; }
.orc-item { width: 100%; display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 10px 8px; margin: 0 -8px; width: calc(100% + 16px); border: 0; border-radius: 10px; background: transparent;
  color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background .15s; }
button.orc-item:hover, button.orc-item:focus-visible { background: var(--surface-2); outline: none; }
.orc-itens li + li .orc-item, .orc-itens li + li.orc-item { border-top: 1px dashed var(--border); border-radius: 0; }
.orc-itens li + li .orc-item:hover { border-radius: 10px; }
.oi-ponto { width: 8px; height: 8px; border-radius: 50%; background: var(--surface-3); box-shadow: 0 0 0 3px var(--surface-2); }
.orc-item.pago .oi-ponto { background: var(--verde); box-shadow: 0 0 0 3px var(--accent-soft); }
.orc-item.acima .oi-ponto { background: var(--neg); box-shadow: 0 0 0 3px var(--neg-soft); }
.orc-item.nao_encontrado .oi-ponto { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); }
.orc-item.a_vencer .oi-ponto { background: transparent; border: 1.5px solid var(--muted); box-shadow: none; }
.orc-item.sem-item .oi-ponto { background: transparent; border: 1.5px dashed var(--muted); box-shadow: none; }
.oi-meio { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.oi-nome { font-weight: 600; font-size: 13.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.oi-nome .selo { height: 18px; font-size: 9.5px; padding: 0 7px; }
.oi-meta { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oi-barra { display: block; height: 3px; border-radius: 3px; background: var(--surface-3); margin-top: 3px; overflow: hidden; }
.oi-barra i { display: block; height: 100%; border-radius: 3px; background: var(--verde); }
.oi-barra i.estourado { background: var(--neg); }
.oi-valor { font-size: 13.5px; font-weight: 600; white-space: nowrap; color: var(--text); text-decoration: none; }
.oi-valor small { color: var(--muted); font-weight: 500; }
a.oi-valor:hover { color: var(--verde-texto); }
.orc-item.sem-item { cursor: default; color: var(--text-2); }
.orc-item.sem-item .oi-nome { font-weight: 500; }
.orc-add { align-self: flex-start; margin-left: -8px; color: var(--verde-texto); }

/* Formulário do item */
.campo-linha { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
label.rotulo small { text-transform: none; letter-spacing: 0; font-weight: 500; opacity: .8; }
.ajuda { font-size: 12px !important; color: var(--muted) !important; margin: 7px 0 0 !important; line-height: 1.45 !important; }
.ajuda.previa { color: var(--text-2) !important; display: flex; gap: 6px; align-items: flex-start; }
.ajuda.previa svg { width: 14px; height: 14px; flex: none; margin-top: 1px; color: var(--verde-texto); }
.ajuda:empty { display: none; }
.chips[data-grupo] { margin-bottom: 9px; }
.chips-rolar { max-height: 68px; overflow-y: auto; }
.orc-item.geral .oi-ponto { background: var(--verde); opacity: .55; box-shadow: none; }
.modal .segmentado { display: flex; width: fit-content; max-width: 100%; }

/* Planejamento (abas, insights, renda, bancos) */
.orc-abas { margin-bottom: 18px; }
.orc-dist i.sobra, .legenda-bancos i.sobra { background: transparent !important; border: 1.5px dashed var(--verde); }
.link-hero { border: 0; background: none; padding: 0; color: var(--verde-texto); font: inherit; font-weight: 600; cursor: pointer; }
.link-hero:hover { text-decoration: underline; text-underline-offset: 3px; }
.card-titulo .link-hero { margin-left: auto; font-size: 12.5px; }
.insights { display: flex; flex-direction: column; gap: 12px; }
.insight { display: flex; gap: 12px; align-items: flex-start; }
.insight .selo { width: 28px; height: 28px; padding: 0; justify-content: center; border-radius: 9px; flex: none; }
.insight .selo svg { width: 14px; height: 14px; }
.insight p { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--text-2); }
.insight p b { color: var(--text); font-weight: 600; }
.cem { display: flex; flex-direction: column; }
.cem-linha { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--border); }
.cem-linha:last-child { border-bottom: 0; }
.cem-linha b { font-size: 14px; }
.cem-linha.sobra { border-top: 1px solid var(--border-strong); border-bottom: 0; margin-top: 4px; padding-top: 12px; }
.cem-linha.sobra b { color: var(--verde-texto); }
.cem-linha.sobra b.neg { color: var(--neg); }
.cem-linha .cat-ic svg { width: 15px; height: 15px; }
.orc-resumo { display: flex; gap: 32px; flex-wrap: wrap; }
.orc-resumo div > span { display: block; font: 600 10.5px var(--fonte-num); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.orc-resumo div b { font-size: 19px; font-weight: 600; }
.orc-resumo small { font-size: 12px; font-weight: 500; }
.orc-item.plano .oi-ponto { background: var(--muted); box-shadow: 0 0 0 3px var(--surface-2); }
.orc-item.plano.receita .oi-ponto { background: var(--verde); box-shadow: 0 0 0 3px var(--accent-soft); }
.oi-meta svg { width: 11px; height: 11px; vertical-align: -1px; margin-right: 3px; }
.sem-banco { color: var(--warn); }
.mini-logo { width: 14px; height: 14px; border-radius: 4px; object-fit: contain; vertical-align: -3px; margin-right: 4px; background: #fff; }
.chips button .mini-logo { width: 16px; height: 16px; margin: 0 6px 0 -4px; vertical-align: -4px; }
.banco-logo.com-logo { padding: 0 !important; overflow: visible; }
.banco-logo.com-logo img { border-radius: inherit; }
.envios { display: flex; flex-direction: column; }
.envio { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--border); }
.envio:last-child { border-bottom: 0; }
.envio .meio { flex: 1; min-width: 0; }
.envio .titulo { font-size: 13.5px; }
.envio .detalhe { font-size: 12px; color: var(--muted); margin-top: 2px; }
.envio-bancos { display: flex; align-items: center; gap: 8px; flex: none; }
.envio-seta { color: var(--verde-texto); font-weight: 700; }
.envio-valor { font-size: 17px; white-space: nowrap; }
.envio .banco-logo::after, .banco .banco-logo::after { width: 10px; height: 10px; }
.agenda { display: flex; flex-direction: column; }
.agenda-linha { display: flex; align-items: center; gap: 14px; width: 100%; padding: 9px 8px; margin: 0 -8px; width: calc(100% + 16px);
  border: 0; border-bottom: 1px dashed var(--border); background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: 0; }
.agenda-linha:last-child { border-bottom: 0; }
.agenda-linha:hover { background: var(--surface-2); border-radius: 10px; }
.agenda-dia { width: 34px; height: 34px; border-radius: 10px; background: var(--surface-3); display: grid; place-items: center; font-weight: 600; flex: none; }
.agenda-linha .meio { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.agenda-linha .titulo { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agenda-linha .detalhe { font-size: 11.5px; color: var(--muted); }
@media (max-width: 640px) {
  .orc-resumo { gap: 16px 24px; }
  .envio { flex-wrap: wrap; }
  .envio .meio { flex-basis: calc(100% - 140px); }
}
@media (max-width: 640px) {
  .lista-fixas .linha > .cat-ic { display: none; }
  .lista-fixas .linha .titulo { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .lista-fixas .linha .btn span { display: none; }
  .lista-fixas .linha .btn { width: 34px; padding: 0; justify-content: center; }
}
@media (max-width: 480px) { .campo-linha[data-so] { grid-template-columns: minmax(0, 1fr); } .modal { padding: 22px 18px; } .modal .botoes { margin: 0 -18px -22px; padding: 14px 18px 18px; bottom: -22px; } }
.anel { position: relative; width: 140px; height: 140px; flex: none; }
.anel svg { transform: rotate(-90deg); }
.anel .centro { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.anel .centro b { font-size: 24px; display: block; font-weight: 600; }
.anel .centro span { font: 600 10px var(--fonte-num); color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }

/* ------------------------------------------------------------ recorrentes */
.rec { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 16px; padding: 14px 4px; border-bottom: 1px solid var(--border); }
.rec:last-child { border-bottom: 0; }
.rec .nome-rec { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec .info-rec { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 5px; align-items: center; font-size: 12px; color: var(--muted); }
.rec .mini, .mini { display: flex; align-items: flex-end; gap: 3px; height: 28px; }
.mini i { width: 6px; border-radius: 2px; background: var(--verde); opacity: .8; }
.rec .lado { text-align: right; }
.rec .lado b { font-size: 15px; display: block; font-weight: 600; }
.rec .lado span { font-size: 11.5px; color: var(--muted); }
.rec.inativa { opacity: .5; }
.timeline { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.timeline .evento { flex: none; width: 156px; padding: 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); transition: transform .2s, border-color .2s; }
.timeline .evento:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--verde) 40%, var(--border)); }
.timeline .evento .quando { font: 700 11px var(--fonte-num); text-transform: uppercase; letter-spacing: .06em; color: var(--verde-texto); white-space: nowrap; }
.timeline .evento .quando.hoje { color: var(--warn); }
.timeline .evento .rel { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.timeline .evento .nome-ev { font-weight: 650; margin: 8px 0 4px; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ------------------------------------------------------------ cartões */
.cartao-visual {
  position: relative; aspect-ratio: 1.586; max-width: 360px; width: 100%; border-radius: 20px; padding: 22px;
  color: var(--branco); overflow: hidden; display: flex; flex-direction: column; isolation: isolate;
  background: linear-gradient(145deg, #1a1c1a 0%, #0f100f 60%, #0a0b0a 100%);
  border: 1px solid #2a2d2a;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.03) inset;
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.cartao-visual::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(400px 200px at var(--mx, 80%) var(--my, 0%), rgba(43,179,75,.22), transparent 60%); }
.cartao-visual .chip { width: 40px; height: 30px; border-radius: 7px; background: linear-gradient(135deg, #e9e9e2, #9ea29b); margin-top: 18px; opacity: .85; }
.cartao-visual .nome-cartao { font-family: var(--fonte-serif); font-size: 19px; letter-spacing: -0.02em; }
.cartao-visual .final { margin-top: auto; font-size: 16px; letter-spacing: .2em; color: #b9bdb6; }
.cartao-visual .fatura { position: absolute; right: 22px; bottom: 22px; text-align: right; }
.cartao-visual .fatura span { display: block; font: 600 9.5px var(--fonte-num); letter-spacing: .12em; text-transform: uppercase; color: #8a8f88; }
.cartao-visual .fatura b { font-size: 19px; font-weight: 600; }
.cartao-visual .logo-cartao { position: absolute; right: 22px; top: 18px; font-size: 22px; opacity: .9; }

/* ------------------------------------------------------------ cartões: carrossel com o visual de cada banco */
.cv-resumo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 8px; }
.cv-resumo > div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 3px; }
.cv-resumo span { font-size: 12px; font-weight: 600; color: var(--muted); }
.cv-resumo b { font-size: 20px; font-weight: 600; }
.cv-resumo small { font-size: 11.5px; color: var(--muted); }

.cv-carrossel { position: relative; margin: 0 -8px; }
.cv-trilho { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; outline: none;
  padding: 28px calc(50% - min(170px, 41%)) 22px; -webkit-overflow-scrolling: touch; }
.cv-trilho::-webkit-scrollbar { display: none; }
.cv-slide { flex: 0 0 min(340px, 82%); scroll-snap-align: center; border: 0; background: none; padding: 0; cursor: pointer; color: inherit;
  transform: scale(.88); opacity: .5; filter: saturate(.7); transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .35s, filter .35s; }
.cv-slide.ativo { transform: none; opacity: 1; filter: none; cursor: default; }
.cv-seta { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-size: 24px; line-height: 1; cursor: pointer; box-shadow: var(--shadow); }
.cv-seta[data-dir="-1"] { left: 4px; } .cv-seta[data-dir="1"] { right: 4px; }
.cv-seta:hover { border-color: var(--verde); }
.cv-pontos { display: flex; justify-content: center; gap: 8px; margin-bottom: 6px; }
.cv-pontos button { width: 8px; height: 8px; border-radius: 99px; border: 0; padding: 0; background: var(--border-strong); cursor: pointer; transition: width .3s, background .3s; }
.cv-pontos button.ativo { width: 24px; background: var(--verde); }

.cartao-real { --c1: #2b2e33; --c2: #121316; --tx: #f4f4f1; --sub: rgba(255,255,255,.7);
  position: relative; aspect-ratio: 1.586; width: 100%; border-radius: 18px; padding: 20px 22px; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; text-align: left; color: var(--tx);
  background: linear-gradient(135deg, var(--c1) 0%, var(--c2) 100%);
  box-shadow: 0 28px 50px -24px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.08) inset;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
/* brilho que segue o mouse + textura sutil */
.cartao-real::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(380px 200px at var(--mx, 75%) var(--my, 0%), rgba(255,255,255,.18), transparent 60%),
              repeating-linear-gradient(115deg, rgba(255,255,255,.025) 0 2px, transparent 2px 7px); }
.cartao-real::after { content: ""; position: absolute; z-index: -1; width: 70%; aspect-ratio: 1; right: -22%; top: -35%; border-radius: 50%;
  background: radial-gradient(circle, var(--brilho, rgba(255,255,255,.10)), transparent 70%); }
.cr-topo { display: flex; justify-content: space-between; align-items: flex-start; }
.cr-marca { font: 700 22px/1 var(--fonte); letter-spacing: -0.03em; }
.cr-nfc { width: 22px; height: 22px; opacity: .75; transform: rotate(0deg); }
.cr-nivel { font: 600 10.5px var(--fonte-num); letter-spacing: .22em; text-transform: uppercase; color: var(--sub); margin-top: 4px; }
.cr-chip { width: 42px; height: 31px; border-radius: 7px; margin-top: auto; margin-bottom: 12px;
  background: linear-gradient(135deg, #f3e3a6 0%, #c9a94f 45%, #e9d58f 70%, #b08f3a 100%);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); position: relative; }
.cr-chip::before { content: ""; position: absolute; inset: 7px 9px; border: 1px solid rgba(0,0,0,.22); border-radius: 4px; }
.cr-numero { font-size: 15px; letter-spacing: .14em; color: var(--sub); text-shadow: 0 1px 0 rgba(0,0,0,.25); }
.cr-base { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: 10px; min-height: 30px; }
.cr-titular { font: 600 11.5px var(--fonte-num); letter-spacing: .1em; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-bandeira { flex: none; display: flex; align-items: center; }
.band-master { width: 48px; height: 30px; }
.band-visa { font: italic 900 25px/1 "Arial Black", Arial, sans-serif; letter-spacing: -0.04em; color: var(--tx); }
.band-texto { font: 800 18px/1 var(--fonte); color: var(--tx); }

/* temas por banco: as cores do plástico de cada um e o logo de verdade (o nível black/infinite escurece) */
.cr-logo { display: block; height: var(--logo-h, 28px); width: auto; max-width: 130px; filter: drop-shadow(0 1px 1px rgba(0,0,0,.18)); }
.cartao-real > * { flex: none; }                       /* nada encolhe (o chip ficava espremido em cartão pequeno) */
.cartao-real .cr-chip { margin-top: auto; margin-bottom: 9px; }
.cartao-real .cr-base { min-height: 26px; margin-top: 6px; }
@media (max-width: 640px) { .cr-logo { height: calc(var(--logo-h, 28px) * .78); } .cartao-real { padding: 16px 18px; } .cr-chip { width: 36px; height: 27px; margin-bottom: 8px; } }
.cartao-real.escuro { --c1: #26282b; --c2: #050506; --tx: #f4f4f1; --sub: rgba(255,255,255,.7); }
.tema-nubank { --c1: #8a10d8; --c2: #5c0aa3; --brilho: rgba(215,160,255,.28); --logo-h: 30px; }
.tema-nubank.escuro { --c1: #2e1745; --c2: #0c0513; --brilho: rgba(170,90,255,.3); }          /* Ultravioleta */
.tema-itau { --c1: #ff8a1a; --c2: #e05a00; --brilho: rgba(255,220,180,.3); --logo-h: 32px; }
.tema-itau .cr-logo { border-radius: 8px; }
.tema-itau.escuro { --c1: #2a2b2e; --c2: #08090a; }
.tema-mercadopago { --c1: #22c0f2; --c2: #0a7fd6; --brilho: rgba(255,255,255,.25); --logo-h: 34px; }
.tema-mercadopago.escuro { --c1: #1d2a3a; --c2: #050a12; }
.tema-safra { --c1: #1b1b4a; --c2: #04040f; --tx: #e9d9a6; --sub: rgba(233,217,166,.75); --brilho: rgba(233,217,166,.15); --logo-h: 36px; }
.tema-safra.escuro { --c1: #15153a; --c2: #02020a; --tx: #e9d9a6; --sub: rgba(233,217,166,.75); }
.tema-inter { --c1: #ff8a00; --c2: #e35d00; --logo-h: 24px; }
.tema-inter.escuro { --c1: #2b2b2b; --c2: #0b0b0b; --tx: #ff8a00; }
.tema-c6 { --c1: #3a3a3a; --c2: #0d0d0d; --logo-h: 24px; }
.tema-santander { --c1: #ec0000; --c2: #8f0000; --logo-h: 32px; }
.tema-bradesco { --c1: #cc092f; --c2: #6d0019; --logo-h: 32px; }
.tema-bb { --c1: #fcf000; --c2: #f0c400; --tx: #003a8c; --sub: rgba(0,58,140,.75); --logo-h: 32px; }
.tema-bb.escuro .cr-logo { filter: brightness(0) invert(1); }
.tema-caixa { --c1: #0f6cb6; --c2: #003f7d; --logo-h: 30px; }
.tema-xp { --c1: #262626; --c2: #000; --logo-h: 30px; }
.tema-btg { --c1: #13294b; --c2: #050d1c; --logo-h: 30px; }
.tema-picpay { --c1: #21c25e; --c2: #0f8a3e; --logo-h: 32px; }
.tema-neon { --c1: #0f92ff; --c2: #20bfcf; --logo-h: 18px; }
.tema-pan { --c1: #12305a; --c2: #050f1f; --logo-h: 32px; }

/* detalhe do cartão escolhido */
.cv-valor { font-size: 34px; font-weight: 600; letter-spacing: -0.02em; margin-top: 6px; }
.cv-sub { font-size: 13px; margin-top: 6px; line-height: 1.5; }
.cv-linhas { display: flex; flex-direction: column; margin-top: 16px; border-top: 1px dashed var(--border); }
.cv-linhas > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.cv-linhas span { color: var(--text-2); }
.cv-legenda { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.cv-legenda span { display: inline-flex; align-items: center; gap: 6px; }
.cv-legenda i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.cv-legenda i.tracejado { border: 1.5px dashed var(--verde); }
.cv-parcela .meio { display: flex; flex-direction: column; gap: 3px; }
.barra.fina { height: 4px; margin-top: 6px; }
.cv-parcela .valor small { font-size: 11px; margin-left: 2px; }

@media (max-width: 760px) {
  .cv-resumo { grid-template-columns: 1fr; gap: 8px; }
  .cv-resumo > div { flex-direction: row; flex-wrap: wrap; align-items: baseline; justify-content: space-between; }
  .cv-resumo small { width: 100%; }
  .cv-seta { display: none; }
  .cv-carrossel { margin: 0 -16px; }
  .cv-trilho { gap: 10px; }
  .cv-valor { font-size: 28px; }
}

/* ------------------------------------------------------------ bancos */
.distribuicao { display: flex; height: 14px; border-radius: 99px; overflow: hidden; gap: 3px; margin-top: 18px; }
.distribuicao i { display: block; height: 100%; border-radius: 99px; transition: flex-grow 1s cubic-bezier(.2,.8,.2,1); min-width: 6px; }
.legenda-bancos { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font-size: 12px; color: #b9bdb6; }
.legenda-bancos span { display: inline-flex; align-items: center; gap: 7px; }
.legenda-bancos i { width: 9px; height: 9px; border-radius: 3px; }
.banco { display: flex; flex-direction: column; gap: 18px; overflow: hidden; }
.banco-topo { display: flex; align-items: center; gap: 14px; }
.banco-logo { width: 48px; height: 48px; border-radius: 14px; background: #fff; display: grid; place-items: center; flex: none; padding: 7px; box-shadow: 0 0 0 1px var(--border); position: relative; }
.banco-logo img { width: 100%; height: 100%; object-fit: contain; }
.banco-logo .inicial { font-family: var(--fonte-serif); font-size: 24px; color: var(--preto); }
.banco-logo::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 12px; height: 12px; border-radius: 50%; background: var(--cor-banco, var(--verde)); border: 2px solid var(--surface); }
.banco-nome { font-family: var(--fonte-serif); font-size: 24px; letter-spacing: -0.03em; line-height: 1.05; }
.banco-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.banco-liquido { margin-left: auto; text-align: right; }
.banco-liquido > span { display: block; font: 600 10px var(--fonte-num); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.banco-liquido b { font-size: 24px; font-weight: 600; }
.banco-numeros { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.banco-numeros div { background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; }
.banco-numeros div > span { display: block; font: 600 10px var(--fonte-num); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.banco-numeros b { display: block; font-size: 15.5px; font-weight: 600; margin-top: 6px; }
.subconta { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.subconta:last-child { border-bottom: 0; }
.subconta .tipo-ic { width: 32px; height: 32px; border-radius: 10px; background: var(--surface-3); display: grid; place-items: center; flex: none; color: var(--text-2); }
.subconta .tipo-ic svg { width: 16px; height: 16px; }
.subconta .meio { flex: 1; min-width: 0; }
.subconta .titulo { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.subconta .detalhe { font-size: 11.5px; color: var(--muted); }
.subconta .valor { font-weight: 600; text-align: right; white-space: nowrap; font-size: 13.5px; }
.subconta .valor small { display: block; color: var(--muted); font-weight: 500; font-size: 11px; }

/* ------------------------------------------------------------ conexões */
.conexao { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface-2); flex-wrap: wrap; }
.conexao + .conexao { margin-top: 10px; }
.conexao img { width: 44px; height: 44px; border-radius: 12px; background: #fff; padding: 6px; }
.conexao .acoes { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.passos { counter-reset: passo; display: flex; flex-direction: column; gap: 14px; }
.passos li { list-style: none; position: relative; padding-left: 42px; color: var(--text-2); line-height: 1.55; }
.passos li::before { counter-increment: passo; content: counter(passo); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--verde); color: var(--preto); font: 700 12px var(--fonte-num); }
.passos li b { color: var(--text); }

/* ------------------------------------------------------------ modal e toast */
.modal-fundo { position: fixed; inset: 0; background: rgba(5, 6, 5, .7); backdrop-filter: blur(6px); display: grid; place-items: center; z-index: 50; padding: 16px; animation: aparecer .2s; }
.modal { width: min(500px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); padding: 26px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); animation: subir .3s cubic-bezier(.2,.8,.2,1); position: relative; }
.modal .botoes { position: sticky; bottom: -26px; margin: 0 -26px -26px; padding: 14px 26px 22px; background: linear-gradient(transparent, var(--surface) 30%); }
.modal::before { content: ""; position: absolute; left: 26px; top: 0; width: 54px; height: 3px; border-radius: 0 0 3px 3px; background: var(--verde); box-shadow: 0 0 16px 1px var(--accent-glow); }
.modal h3 { margin: 4px 0 8px; font-family: var(--fonte-serif); font-weight: 400; font-size: 26px; letter-spacing: -0.03em; }
.modal p { color: var(--text-2); margin: 0 0 18px; line-height: 1.5; }
.modal .campos { display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; }
.modal .campos .campo, .modal .campos .select { width: 100%; }
.modal .botoes { display: flex; justify-content: flex-end; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { border: 1px solid var(--border-strong); background: var(--surface-2); border-radius: 99px; padding: 6px 12px; font-size: 12px; font-weight: 600; cursor: pointer; transition: all .15s; }
.chips button:hover, .chips button.ativo { border-color: var(--verde); background: var(--accent-soft); color: var(--text); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-2); cursor: pointer; }
.check input { margin-top: 2px; accent-color: var(--verde); }

.toasts { position: fixed; right: 22px; bottom: 22px; display: flex; flex-direction: column; gap: 10px; z-index: 60; }
.toast { min-width: 280px; max-width: 400px; padding: 12px 16px 12px 12px; border-radius: 16px; background: var(--preto); color: var(--branco); border: 1px solid #2a2d2a; box-shadow: 0 24px 48px -20px rgba(0,0,0,.7); font-weight: 600; font-size: 13px; display: flex; gap: 12px; align-items: center; animation: subir .35s cubic-bezier(.2,.8,.2,1); }
.toast .t-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: #1a1c1a; --fundo: #1a1c1a; color: var(--branco); }
.toast .t-ic svg { width: 84%; }
.toast.ok .t-ic { box-shadow: 0 0 0 1.5px var(--verde) inset; }
.toast.erro .t-ic { box-shadow: 0 0 0 1.5px var(--neg) inset; }
@keyframes aparecer { from { opacity: 0; } }
@keyframes subir { from { opacity: 0; transform: translateY(12px); } }

/* ------------------------------------------------------------ carregando */
/* o xav. pensando: aparece só se o carregamento passar de ~0,2 s (evita "piscar" em telas rápidas) */
.carregando { min-height: 50vh; display: grid; place-items: center; align-content: center; gap: 14px; animation: aparecer .3s .2s both; }
.carregando .pato-pensando { width: 104px; height: 104px; border-radius: 30px; }
.carregando small { font: 600 10.5px var(--fonte-num); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-align: center; }

.pato-pensando { display: inline-grid; place-items: center; background: var(--preto); color: var(--branco); --fundo: var(--preto); border-radius: 30%; flex: none; }
.pato-pensando svg { width: 82%; animation: cabeca-pensando 2.6s ease-in-out infinite; transform-origin: 40% 90%; }
.pato-pensando .pt { animation: reticencias 1.3s ease-in-out infinite; }
.pato-pensando .pt2 { animation-delay: .18s; } .pato-pensando .pt3 { animation-delay: .36s; }
.pato-pensando .pt-rastro { opacity: .5; }
.pato-pensando.mini { width: 26px; height: 26px; border-radius: 8px; }
@keyframes cabeca-pensando { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg) translateY(-1px); } }
@keyframes reticencias { 0%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }

/* humores do xav. */
.humor-feliz .brilho { animation: brilhar 2.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.humor-feliz .b2 { animation-delay: .7s; }
.humor-preocupado .gota { animation: escorrer 2.4s ease-in infinite; }
.humor-bravo .raiva { animation: pulsar-raiva 1.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.humor-muito_bravo .vapor { animation: vapor 1.6s ease-out infinite; }
.humor-muito_bravo .v2 { animation-delay: .5s; }
@keyframes brilhar { 0%, 100% { opacity: .35; transform: scale(.7) rotate(0deg); } 50% { opacity: 1; transform: scale(1.1) rotate(20deg); } }
@keyframes escorrer { 0% { transform: translateY(-3px); opacity: 0; } 25% { opacity: 1; } 100% { transform: translateY(7px); opacity: 0; } }
@keyframes pulsar-raiva { 50% { transform: scale(1.25); } }
@keyframes vapor { 0% { transform: translateY(4px); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateY(-5px); opacity: 0; } }
.entrar > * { animation: entrar .6s cubic-bezier(.2,.8,.2,1) both; }
.entrar > *:nth-child(2) { animation-delay: .06s; }
.entrar > *:nth-child(3) { animation-delay: .12s; }
.entrar > *:nth-child(4) { animation-delay: .18s; }
.entrar > *:nth-child(5) { animation-delay: .24s; }
.entrar > *:nth-child(6) { animation-delay: .3s; }
@keyframes entrar { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }

.grafico { position: relative; height: 260px; }
.grafico.alto { height: 300px; }
.donut-wrap { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: center; }
.donut-wrap .grafico { height: 200px; }
.donut-centro { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; pointer-events: none; }
.donut-centro span { display: block; font: 600 9.5px var(--fonte-num); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.donut-centro b { font-size: 17px; font-weight: 600; }

/* ------------------------------------------------------------ xav. (assistente com IA) */
.xav-fab {
  position: fixed; right: 22px; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 20px 0 7px; border-radius: 999px;
  background: var(--preto); color: var(--branco); border: 1px solid #2a2d2a; cursor: pointer;
  box-shadow: 0 18px 40px -16px rgba(0,0,0,.7), 0 0 0 0 var(--accent-glow);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .3s, opacity .2s;
  animation: fab-entrar .6s cubic-bezier(.2,.8,.2,1) .4s both;
}
.xav-fab:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -16px rgba(0,0,0,.7), 0 0 0 6px rgba(43,179,75,.18); }
.xav-fab-pato { width: 40px; height: 40px; border-radius: 50%; background: #1a1c1a; display: grid; place-items: center; --fundo: #1a1c1a; color: var(--branco); box-shadow: 0 0 0 2px var(--verde); }
.xav-fab-pato svg { width: 78%; }
.xav-fab-txt { font-size: 13px; font-weight: 600; white-space: nowrap; }
.xav-fab-txt b { font-family: var(--fonte-serif); font-weight: 500; font-size: 16px; color: var(--verde); }
body.xav-aberto .xav-fab { opacity: 0; pointer-events: none; transform: scale(.9); }
/* quando o orçamento do mês preocupa, o pato do botão muda de cara e ganha um anel na cor do humor */
.xav-fab-pato.humor { background: #1a1c1a; color: var(--branco); --fundo: #1a1c1a; box-shadow: 0 0 0 2px var(--cor-humor), 0 0 16px -2px var(--cor-humor); }
.xav-fab-pato.preocupado { --cor-humor: #e0a526; }
.xav-fab-pato.bravo, .xav-fab-pato.muito_bravo { --cor-humor: #e8735f; }
.xav-fab-pato.muito_bravo svg { animation: pato-tremer-forte .45s linear infinite; }
.xav-fab-pato.bravo svg { animation: pato-tremer 2.6s ease-in-out infinite; }
@keyframes fab-entrar { from { opacity: 0; transform: translateY(20px) scale(.9); } }

.xav-painel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 45; width: min(440px, 100vw);
  display: flex; flex-direction: column; background: var(--preto); color: var(--branco);
  border-left: 1px solid #232623; box-shadow: -30px 0 60px -30px rgba(0,0,0,.8);
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
  transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1);
  --surface: #151715; --surface-2: #1b1d1b; --surface-3: #242724; --border: #262926; --border-strong: #333733;
  --text: var(--branco); --text-2: #b9bdb6; --muted: #80867f; --verde-texto: #4cc868; --neg: #e8735f; color-scheme: dark;
}
.xav-painel.visivel { transform: none; }
.xav-cab { display: flex; align-items: center; gap: 12px; padding: 16px 16px 14px; border-bottom: 1px solid #1f221f; }
.xav-cab b { font-family: var(--fonte-serif); font-weight: 500; font-size: 22px; letter-spacing: -0.02em; }
.xav-cab small { display: block; color: #80867f; font: 600 10px var(--fonte-num); letter-spacing: .12em; text-transform: uppercase; }
.xav-cab > div { flex: 1; }
.xav-cab .btn { color: #b9bdb6; }
.xav-av { width: 38px; height: 38px; border-radius: 12px; background: var(--preto); display: grid; place-items: center; flex: none; --fundo: var(--preto); color: var(--branco); box-shadow: 0 0 0 1px #2a2d2a; }
.xav-av svg { width: 80%; }
.xav-av.mini { width: 28px; height: 28px; border-radius: 9px; }

.xav-msgs { flex: 1; overflow-y: auto; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 14px; scrollbar-width: thin; }
.xav-msg { display: flex; gap: 10px; align-items: flex-start; animation: subir .3s cubic-bezier(.2,.8,.2,1); }
.xav-msg.de-eu { justify-content: flex-end; }
.xav-msg .bolha { max-width: 88%; min-width: 0; font-size: 13.5px; line-height: 1.55; overflow-wrap: anywhere; }
.xav-msg.de-eu .bolha { background: var(--verde); color: var(--preto); padding: 10px 14px; border-radius: 16px 16px 4px 16px; font-weight: 500; }
.xav-msg.de-xav .bolha { background: #151715; border: 1px solid #232623; padding: 12px 14px; border-radius: 4px 16px 16px 16px; }
.xav-msg .bolha p { margin: 0 0 8px; } .xav-msg .bolha p:last-child { margin-bottom: 0; }
.xav-msg .bolha ul, .xav-msg .bolha ol { margin: 4px 0 8px; padding-left: 20px; }
.xav-msg .bolha li { margin: 3px 0; }
.xav-msg .bolha b { color: #fff; }
.xav-msg .bolha h4 { font-family: var(--fonte-serif); font-weight: 500; font-size: 17px; margin: 10px 0 6px; letter-spacing: -0.02em; }
.xav-msg .bolha code { font-family: var(--fonte-num); font-size: 12px; background: #242724; padding: 1px 5px; border-radius: 5px; }
.xav-tabela { overflow-x: auto; margin: 8px 0; }
.xav-tabela table { border-collapse: collapse; font-size: 12.5px; width: 100%; }
.xav-tabela th, .xav-tabela td { text-align: left; padding: 6px 8px; border-bottom: 1px solid #262926; white-space: nowrap; }
.xav-tabela th { font: 600 10px var(--fonte-num); letter-spacing: .08em; text-transform: uppercase; color: #80867f; }
.xav-status { display: flex; align-items: center; gap: 9px; color: #80867f; font: 500 12px var(--fonte-num); margin-top: 4px; }
.ponto-pulsa { width: 8px; height: 8px; border-radius: 50%; background: var(--verde); animation: pulsar 1.2s infinite; }
.cursor { display: inline-block; width: 7px; height: 15px; background: var(--verde); vertical-align: -2px; margin-left: 2px; animation: piscar-cursor 1s steps(1) infinite; }
@keyframes piscar-cursor { 50% { opacity: 0; } }

.xav-sugestao { margin-left: 38px; border: 1px solid color-mix(in srgb, var(--verde) 45%, #232623); background: linear-gradient(160deg, rgba(43,179,75,.12), rgba(43,179,75,.02)); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; animation: subir .3s; }
.xav-sugestao .rot { font: 600 10px var(--fonte-num); letter-spacing: .12em; text-transform: uppercase; color: var(--verde); }
.xav-sugestao .linha-sug { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.xav-sugestao p { margin: 0; color: #b9bdb6; font-size: 12.5px; }
.xav-sugestao .btn { align-self: flex-start; margin-top: 4px; }

.xav-sug { display: flex; gap: 6px; padding: 4px 16px 10px; overflow-x: auto; scrollbar-width: none; }
.xav-sug button { flex: none; border: 1px solid #2a2d2a; background: #151715; color: #d6d9d2; border-radius: 99px; padding: 7px 12px; font-size: 12px; font-weight: 500; cursor: pointer; transition: border-color .2s, background .2s; }
.xav-sug button:hover { border-color: var(--verde); background: rgba(43,179,75,.1); }
.xav-form { display: flex; gap: 8px; align-items: flex-end; padding: 10px 16px 8px; border-top: 1px solid #1f221f; }
.xav-form textarea { flex: 1; resize: none; min-height: 42px; max-height: 140px; padding: 11px 14px; border-radius: 14px; border: 1px solid #2a2d2a; background: #151715; color: var(--branco); outline: none; line-height: 1.4; }
.xav-form textarea:focus { border-color: var(--verde); box-shadow: 0 0 0 3px rgba(43,179,75,.15); }
.xav-form .btn { height: 42px; width: 42px; }
.xav-aviso { margin: 0; padding: 0 16px 12px; font-size: 10.5px; color: #6f746d; }

/* card de dica na visão geral: botão para continuar a conversa */
.xav .proximas .btn-conversar { background: var(--preto); color: var(--branco); border: 0; }
.xav .proximas .btn-conversar:hover { background: #1c1e1c; }

@media (max-width: 860px) {
  .xav-fab { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); padding: 0 6px; height: 52px; }
  .xav-fab-txt { display: none; }
}

/* ------------------------------------------------------------ seletores modernos (substituem o <select> nativo) */
.select-nativo { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; overflow: hidden; }
.seletor {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; max-width: 100%;
  height: 38px; padding: 0 12px 0 15px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text);
  font-weight: 600; font-size: 13px; transition: border-color .2s, box-shadow .2s, background .2s;
}
.seletor > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seletor svg { width: 14px; height: 14px; color: var(--verde); flex: none; transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.seletor:hover { background: var(--surface-3); }
.seletor.aberto { border-color: var(--verde); box-shadow: 0 0 0 3px var(--accent-soft); }
.seletor.aberto svg { transform: rotate(180deg); }

.seletor-painel { position: fixed; z-index: 90; display: flex; flex-direction: column; background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); }
.seletor-painel.popover {
  border-radius: 18px; padding: 6px;
  box-shadow: 0 28px 60px -22px rgba(0,0,0,.6), 0 2px 6px rgba(0,0,0,.12);
  opacity: 0; transform: translateY(-6px) scale(.97); transform-origin: top center;
  transition: opacity .16s ease, transform .2s cubic-bezier(.2,.8,.2,1);
}
.seletor-painel.popover.acima { transform: translateY(6px) scale(.97); transform-origin: bottom center; }
.seletor-painel.visivel { opacity: 1; transform: none; }
.seletor-lista { overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 2px; scrollbar-width: thin; min-height: 0; }
.seletor-opcao {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; flex: none;
  text-align: left; border: 0; background: transparent; color: var(--text); cursor: pointer;
  padding: 10px 12px; border-radius: 12px; font-size: 13.5px; font-weight: 500; transition: background .12s;
}
.seletor-opcao > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seletor-opcao:hover, .seletor-opcao:focus-visible { background: var(--surface-2); outline: none; }
.seletor-opcao svg { width: 17px; height: 17px; color: var(--verde); opacity: 0; flex: none; transform: scale(.6); transition: opacity .15s, transform .2s; }
.seletor-opcao.ativa { font-weight: 700; background: var(--accent-soft); }
.seletor-opcao.ativa svg { opacity: 1; transform: none; }
.seletor-vazio { margin: 0; padding: 14px; text-align: center; color: var(--muted); font-size: 13px; }
.seletor-busca { position: relative; display: block; margin: 2px 2px 6px; flex: none; }
.seletor-busca svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--muted); }
.seletor-busca input { width: 100%; height: 38px; padding: 0 12px 0 36px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); outline: none; }
.seletor-busca input:focus { border-color: var(--verde); box-shadow: 0 0 0 3px var(--accent-soft); }

/* celular: folha que sobe de baixo da tela */
.seletor-fundo { position: fixed; inset: 0; z-index: 89; background: rgba(5, 6, 5, .55); backdrop-filter: blur(3px); opacity: 0; transition: opacity .22s; }
.seletor-fundo.visivel { opacity: 1; }
.seletor-painel.folha {
  left: 0; right: 0; bottom: 0; max-height: 74vh; border-radius: 26px 26px 0 0; border-bottom: 0;
  padding: 8px 12px calc(14px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -20px 50px -20px rgba(0,0,0,.6);
  transform: translateY(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.seletor-painel.folha.visivel { transform: none; }
.folha-alca { width: 42px; height: 5px; border-radius: 3px; background: var(--border-strong); margin: 4px auto 12px; flex: none; }
.folha-titulo { font-family: var(--fonte-serif); font-size: 22px; letter-spacing: -0.03em; padding: 0 8px 12px; flex: none; }
.folha .seletor-opcao { padding: 15px 16px; font-size: 15px; border-radius: 14px; }
.folha .seletor-opcao svg { width: 20px; height: 20px; }
.folha .seletor-busca input { height: 44px; font-size: 15px; }

/* ------------------------------------------------------------ Real × Orçado */
.rxo-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 30px; align-items: center; padding: 28px 30px; }
.rxo-humor { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.rxo-pato {
  position: relative; width: 148px; height: 148px; border-radius: 44px; display: grid; place-items: center;
  background: #161816; --fundo: #161816; color: var(--branco); box-shadow: 0 0 0 1px #262926 inset;
}
.rxo-pato::before { content: ""; position: absolute; inset: -7px; border-radius: 50px; border: 2px solid var(--cor-humor); opacity: .55; box-shadow: 0 0 34px -8px var(--cor-humor); }
.rxo-pato svg { width: 76%; }
.rxo-humor.feliz .rxo-pato svg { animation: pato-pular 2.6s ease-in-out infinite; }
.rxo-humor.preocupado .rxo-pato svg { animation: pato-balancar 3.2s ease-in-out infinite; transform-origin: 40% 95%; }
.rxo-humor.bravo .rxo-pato svg { animation: pato-tremer 2.6s ease-in-out infinite; }
.rxo-humor.muito_bravo .rxo-pato { background: color-mix(in srgb, #e8735f 16%, #161816); --fundo: #2a1d1a; }
.rxo-humor.muito_bravo .rxo-pato svg { animation: pato-tremer-forte .45s linear infinite; }
.rxo-humor.muito_bravo .rxo-pato::before { animation: pulsar-borda 1s ease-in-out infinite; }
@keyframes pato-pular { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(-6px); } 60% { transform: translateY(0); } }
@keyframes pato-balancar { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(3deg); } }
@keyframes pato-tremer { 0%, 80%, 100% { transform: translateX(0); } 84% { transform: translateX(-3px) rotate(-2deg); } 88% { transform: translateX(3px) rotate(2deg); } 92% { transform: translateX(-2px); } 96% { transform: translateX(2px); } }
@keyframes pato-tremer-forte { 0%, 100% { transform: translate(0, 0) rotate(0); } 25% { transform: translate(-2px, 1px) rotate(-1.5deg); } 75% { transform: translate(2px, -1px) rotate(1.5deg); } }
@keyframes pulsar-borda { 50% { opacity: .95; box-shadow: 0 0 44px -4px var(--cor-humor); } }
.rxo-titulo { font-family: var(--fonte-serif); font-weight: 400; font-size: clamp(34px, 4.2vw, 52px); letter-spacing: -0.045em; line-height: 1; margin: 10px 0 12px; text-wrap: balance; }
.rxo-frase { color: #b9bdb6; max-width: 54ch; margin: 0 0 22px; font-size: 14.5px; line-height: 1.55; }
.rxo-frase b { color: var(--branco); font-weight: 600; }
.rxo-kpis { display: flex; gap: 30px; flex-wrap: wrap; }
.rxo-kpis div > span { display: block; font: 600 10px var(--fonte-num); letter-spacing: .12em; text-transform: uppercase; color: #8a8f88; margin-bottom: 5px; }
.rxo-kpis b { font-size: 17px; font-weight: 600; }
.rxo-anel { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero .anel svg circle:first-child { stroke: #232623; }
.hero .anel .centro b { color: var(--branco); }
.hero .anel .centro span { color: #8a8f88; }
.rxo-perguntar { border: 1px solid #2f332f; background: #151715; color: #d9dcd5; border-radius: 99px; padding: 7px 13px; font-size: 12px; font-weight: 600; cursor: pointer; transition: border-color .2s, background .2s; white-space: nowrap; }
.rxo-perguntar:hover { border-color: var(--verde); background: rgba(43,179,75,.12); }
.rxo-nota { margin: 12px 0 0; font-size: 12px; color: var(--muted); }

.balas { display: flex; flex-direction: column; gap: 22px; }
.bala-cab { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; flex-wrap: wrap; }
.bala-cab b { font-weight: 600; font-size: 14px; }
.bala-valores { margin-left: auto; font-weight: 600; font-size: 13.5px; }
.bala-valores small { color: var(--muted); font-weight: 500; }
.bala-trilho { position: relative; height: 14px; border-radius: 99px; background: var(--surface-3); }
.bala-zona { position: absolute; top: 0; bottom: 0; right: 0; border-radius: 0 99px 99px 0;
  background: repeating-linear-gradient(-45deg, var(--neg-soft) 0 5px, transparent 5px 10px); }
.bala-real { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; transition: width 1.2s cubic-bezier(.2,.8,.2,1);
  background: linear-gradient(90deg, var(--verde-escuro), var(--verde)); box-shadow: 0 0 14px -4px var(--accent-glow); }
.bala.perto .bala-real, .bala.vai_passar .bala-real { background: linear-gradient(90deg, #b9821a, var(--warn)); box-shadow: none; }
.bala.acima .bala-real { background: linear-gradient(90deg, #b8432f, var(--neg)); box-shadow: none; }
.bala-limite { position: absolute; top: -6px; bottom: -6px; width: 2px; border-radius: 2px; background: var(--text); transform: translateX(-50%); }
.bala-proj { position: absolute; top: -4px; bottom: -4px; width: 4px; border-radius: 4px; background: var(--text); opacity: .45; transform: translateX(-50%); }
.bala-rodape { display: flex; justify-content: space-between; gap: 10px; margin-top: 9px; font-size: 12px; color: var(--muted); }
.bala-rodape b { color: var(--text); font-weight: 600; }

.ajustes { display: flex; flex-direction: column; gap: 14px; }
.ajuste { display: flex; gap: 12px; align-items: flex-start; padding-bottom: 14px; border-bottom: 1px dashed var(--border); }
.ajuste:last-child { border-bottom: 0; padding-bottom: 0; }
.ajuste-ic { width: 30px; height: 30px; padding: 0; justify-content: center; border-radius: 10px; flex: none; }
.ajuste-ic svg { width: 15px; height: 15px; }
.ajuste-txt p { margin: 2px 0 10px; font-size: 13.5px; line-height: 1.5; color: var(--text-2); }
.ajuste-txt p b { color: var(--text); }
.ajuste-acoes { display: flex; gap: 6px; flex-wrap: wrap; }

.mapa-scroll { overflow-x: auto; padding-bottom: 4px; }
.mapa { display: grid; grid-template-columns: minmax(150px, 1.4fr) repeat(12, minmax(32px, 1fr)) 72px; gap: 6px; align-items: center; min-width: 660px; }
.mapa-mes { font: 600 10px var(--fonte-num); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: center; }
.mapa-cat { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; min-width: 0; }
.mapa-cat > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mapa i { aspect-ratio: 1; border-radius: 9px; display: grid; place-items: center; font: 600 9.5px var(--fonte-num); font-style: normal; color: var(--text); transition: transform .15s; }
.mapa i:hover { transform: scale(1.12); }
.mapa i.m-ok { background: rgba(43, 179, 75, var(--forca, .5)); }
.mapa i.m-perto { background: rgba(224, 165, 38, var(--forca, .7)); color: #1a1406; }
.mapa i.m-acima { background: rgba(232, 115, 95, var(--forca, .8)); color: #1d0e0b; }
.mapa i.m-vazio { border: 1px dashed var(--border-strong); }
.mapa i.andamento { outline: 2px dashed var(--text); outline-offset: 2px; }
.mapa-total { font-size: 12px; font-weight: 600; text-align: right; }
.mapa-legenda { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 14px; font-size: 12px; color: var(--muted); }
.mapa-legenda span { display: inline-flex; align-items: center; gap: 7px; }
.mapa-legenda i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.mapa-legenda .m-ok { background: rgba(43,179,75,.7); } .mapa-legenda .m-perto { background: rgba(224,165,38,.8); }
.mapa-legenda .m-acima { background: rgba(232,115,95,.85); } .mapa-legenda .m-vazio { border: 1px dashed var(--border-strong); }
.mapa-legenda .andamento { outline: 2px dashed var(--text); outline-offset: 1px; }

/* ------------------------------------------------------------ prévia no celular */
.celular-fundo { position: fixed; inset: 0; z-index: 70; background: rgba(8, 9, 8, .94); color: var(--branco); isolation: isolate;
  display: flex; flex-direction: column; align-items: center; padding: 18px 20px; animation: aparecer .25s; backdrop-filter: blur(6px); }
.celular-barra { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 18px; }
.celular-barra b { font-family: var(--fonte-serif); font-weight: 400; font-size: 24px; letter-spacing: -0.03em; margin-right: 10px; }
.celular-barra .ponto-final { color: var(--verde); }
.celular-barra .segmentado { background: #151715; border-color: #2a2d2a; }
.celular-barra .segmentado button { color: #9ba09a; }
.celular-barra .segmentado button.ativo { background: var(--branco); color: var(--preto); }
.celular-barra .btn { background: #151715; border-color: #2a2d2a; color: var(--branco); }
.celular-palco { display: flex; justify-content: center; }
.aparelho { width: calc(var(--w) + 24px); height: calc(var(--h) + 24px); padding: 12px; border-radius: 58px; background: #050605;
  box-shadow: 0 0 0 2px #2c2f2c, 0 0 0 9px #111311, 0 40px 90px -30px rgba(0,0,0,.9), 0 0 120px -40px rgba(43,179,75,.35);
  transform-origin: top center; transition: transform .3s; }
.aparelho.sem-ilha { border-radius: 40px; }
.aparelho-tela { position: relative; width: var(--w); height: var(--h); border-radius: 46px; overflow: hidden; background: var(--preto); display: flex; flex-direction: column; }
.aparelho.sem-ilha .aparelho-tela { border-radius: 28px; }
.aparelho-status { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 26px 0 32px; background: var(--preto); color: var(--branco); font: 600 14px var(--fonte); position: relative; }
.aparelho-status .ilha { position: absolute; left: 50%; top: 11px; transform: translateX(-50%); width: 120px; height: 34px; border-radius: 20px; background: #000; }
.aparelho-status .sinais { display: flex; gap: 6px; align-items: center; }
.aparelho-status .sinais i { display: block; background: currentColor; border-radius: 2px; }
.aparelho-tela iframe { border: 0; width: 100%; flex: 1; background: var(--bg); display: block; }
.aparelho-tela .home { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); width: 134px; height: 5px; border-radius: 3px; background: rgba(246,246,242,.75); pointer-events: none; mix-blend-mode: difference; }
.celular-dica { margin: 16px 0 0; font-size: 12px; color: #80867f; text-align: center; max-width: 60ch; }
.no-celular #btn-celular { display: none !important; }

@media (max-width: 860px) {
  .rxo-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 22px; padding: 26px 20px; }
  .rxo-kpis { justify-content: center; gap: 20px; }
  .rxo-pato { width: 124px; height: 124px; border-radius: 36px; }
  .rxo-frase { margin-inline: auto; }
  .bala-valores { margin-left: 0; width: 100%; }
  #btn-celular { display: none; }
}

/* o pato (SVG em viewBox 0 0 100 100) */
svg.pato { display: block; overflow: visible; }

/* ------------------------------------------------------------ responsivo */
@media (max-width: 1180px) {
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-hero, .g-60 { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar, .nav { min-width: 0; }
  .sidebar { position: sticky; top: 0; z-index: 20; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: calc(12px + env(safe-area-inset-top, 0px)) calc(14px + env(safe-area-inset-right, 0px)) 12px calc(14px + env(safe-area-inset-left, 0px)); }
  .marca { padding: 0 8px 0 0; }
  .marca .logo-xav { font-size: 28px; }
  .marca small { display: none; }
  .nav { flex-direction: row; overflow-x: auto; flex: 1 1 100%; order: 3; scrollbar-width: none; }
  .nav a span { display: none; }
  .nav a.ativo::before { display: none; }
  .nav-grupo, .sync-info { display: none; }
  .sidebar-rodape { margin: 0 0 0 auto; flex-direction: row; }
  .sidebar-rodape .btn span { display: none; }
  .principal { padding: 22px 16px 104px; }
  .segmentado { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .segmentado button { white-space: nowrap; flex: none; }
  .topo h1 { font-size: 29px; }
  /* ações do topo (mês + botões) quebram linha em vez de empurrar a página para o lado */
  .principal { overflow-x: clip; }
  .topo-acoes { margin-left: 0; width: 100%; flex-wrap: wrap; }
  .topo-acoes > .seletor { flex: 1 1 100%; min-width: 0; }
  .topo-acoes > .btn { flex: 1 1 0; }
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .donut-wrap { grid-template-columns: 1fr; }
  .tx { grid-template-columns: minmax(0, 1fr) auto; }
  .tx .conta-tx, .tx .cat-col { display: none; }
  .rec { grid-template-columns: auto minmax(0, 1fr) auto; }
  .rec .mini { display: none; }
  .banco-numeros { grid-template-columns: 1fr; }
  .banco-topo { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ------------------------------------------------------------ investimentos */
.linha-botao { width: 100%; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: 0; }
.lista .linha-botao { border-bottom: 1px solid var(--border); }
.lista .linha-botao:last-child { border-bottom: 0; }
.linha-botao:hover { background: var(--surface-2); border-radius: 10px; }
.cab-tabela { padding: 6px 0 !important; font: 600 10.5px var(--fonte-num); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cab-tabela.cdi { color: var(--text-2); border-top: 1px solid var(--border-strong); padding-top: 10px !important; }
.col-n { width: 78px; text-align: right; flex: none; font-size: 13px; font-weight: 600; }
.cab-tabela .col-n { font-size: 10.5px; }
.filtros-ativos { margin-bottom: 4px; }
.ativos { display: flex; flex-direction: column; }
.ativo-linha { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 14px; width: calc(100% + 16px);
  margin: 0 -8px; padding: 11px 8px; border: 0; border-bottom: 1px dashed var(--border); background: transparent; color: inherit;
  font: inherit; text-align: left; cursor: pointer; border-radius: 0; }
.ativo-linha:last-child { border-bottom: 0; }
.ativo-linha:hover { background: var(--surface-2); border-radius: 10px; }
.ativo-linha .meio { display: flex; flex-direction: column; min-width: 0; }
.ativo-linha .titulo { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ativo-linha .detalhe { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ativo-rent { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 13px; font-weight: 600; }
.ativo-valor { display: flex; flex-direction: column; align-items: flex-end; min-width: 120px; }
.ativo-valor b { font-size: 14px; font-weight: 600; }
.ativo-valor small { font-size: 11px; color: var(--muted); }
.ranking { display: flex; flex-direction: column; gap: 4px; }
.rank { display: flex; flex-direction: column; gap: 6px; padding: 10px 8px; margin: 0 -8px; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: 10px; }
.rank:hover { background: var(--surface-2); }
.rank-cab { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.rank-cab b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-cab .num { font-weight: 600; white-space: nowrap; }
.rank-trilho { position: relative; height: 8px; border-radius: 99px; background: var(--surface-3); }
.rank-trilho i { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: var(--verde); }
.rank-trilho i.alerta { background: var(--warn); }
.rank-trilho i.estourado { background: var(--neg); }
.rank-100 { position: absolute; top: -4px; width: 2px; height: 16px; background: var(--text); border-radius: 2px; opacity: .6; }
.rank-rod { font-size: 11.5px; }
.tabela-rent { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 12px; }
.tabela-rent th, .tabela-rent td { padding: 7px 6px; text-align: right; white-space: nowrap; }
.tabela-rent thead th { font: 600 10.5px var(--fonte-num); color: var(--muted); letter-spacing: .08em; border-bottom: 1px solid var(--border-strong); }
.tabela-rent tbody th { text-align: left; font-weight: 600; color: var(--text-2); }
.tabela-rent tr.ano-cab th { font-family: var(--fonte-serif); font-weight: 400; font-size: 17px; color: var(--text); padding-top: 16px; }
.tabela-rent tr.cdi th, .tabela-rent tr.cdi td { color: var(--muted); }
.tabela-rent td.total { font-weight: 700; border-left: 1px solid var(--border); }
.tabela-rent td.parcial { text-decoration: underline dotted; text-underline-offset: 3px; }
.tabela-rent tr:not(.ano-cab) + tr:not(.ano-cab) td, .tabela-rent tr:not(.ano-cab) + tr:not(.ano-cab) th { border-top: 1px dashed var(--border); }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.kv div { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 9px 12px; min-width: 0; }
.kv span { display: block; font: 600 10px var(--fonte-num); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kv b { display: block; margin-top: 4px; font-size: 13.5px; font-weight: 600; overflow-wrap: anywhere; }
.kv b small { color: var(--muted); font-weight: 500; }
.movs-ativo { max-height: 220px; overflow-y: auto; }
.subconta.linha-botao { display: flex; padding: 10px 6px; margin: 0 -6px; width: calc(100% + 12px); border-bottom: 1px dashed var(--border); }
@media (max-width: 860px) {
  .ativo-linha { grid-template-columns: auto minmax(0, 1fr) auto; }
  .ativo-linha { row-gap: 4px; }
  .ativo-linha > .banco-logo { grid-row: 1 / span 2; }
  .ativo-linha .ativo-rent { grid-column: 2; grid-row: 2; flex-direction: row; align-items: center; gap: 8px; font-size: 12px; }
  .ativo-linha .ativo-rent:empty { display: none; }
  .ativo-valor { grid-column: 3; grid-row: 1 / span 2; }
  .ativo-valor { min-width: 0; }
  .kv { grid-template-columns: 1fr 1fr; }
  .col-n { width: 64px; }
}

/* ------------------------------------------------------------ lugares (localização) */
.nav-data { display: inline-flex; align-items: center; gap: 6px; }
.nav-data .btn-icone { width: 36px; height: 36px; font-size: 20px; line-height: 1; }
.nav-data-txt { font-weight: 600; font-size: 13.5px; min-width: 110px; text-align: center; white-space: nowrap; }
.nav-data-txt::first-letter { text-transform: uppercase; }
.regua { display: flex; height: 16px; border-radius: 6px; overflow: hidden; gap: 2px; margin-top: 22px; }
.regua i { display: block; height: 100%; min-width: 3px; }
.hero .legenda-bancos { color: #b9bdb6; }
.ponto-cat { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; margin-right: 8px; }
.ponto-cat.grande { width: 14px; height: 14px; margin: 0; box-shadow: 0 0 0 3px var(--surface-2); }
.linha-tempo { list-style: none; margin: 0; padding: 0; position: relative; max-height: 460px; overflow-y: auto; }
.linha-tempo li { display: grid; grid-template-columns: 46px 22px minmax(0, 1fr); align-items: center; gap: 8px; position: relative; }
.linha-tempo li::before { content: ""; position: absolute; left: 64px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.lt-hora { font-size: 12px; color: var(--muted); text-align: right; }
.lt-marca { position: relative; z-index: 1; justify-self: center; }
.lt-parada .lt-marca { width: 14px; height: 14px; border-radius: 50%; background: var(--cor); box-shadow: 0 0 0 4px var(--surface); }
.lt-trajeto .lt-marca { width: 22px; height: 22px; border-radius: 7px; background: var(--surface-3); color: #e0a526; display: grid; place-items: center; box-shadow: 0 0 0 4px var(--surface); }
.lt-trajeto .lt-marca svg { width: 13px; height: 13px; }
.lt-trajeto .lt-txt { font-size: 12.5px; color: var(--muted); padding: 8px 0; }
.lt-lugar { display: flex; flex-direction: column; gap: 3px; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; padding: 10px 8px; margin: 2px 0; border-radius: 10px; cursor: pointer; }
.lt-lugar:hover { background: var(--surface-2); }
.lt-lugar b { font-size: 14px; font-weight: 600; }
.lt-nome { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lt-lugar .selo { height: 18px; font-size: 9.5px; }
.topo-alinhado { align-items: start; }
/* mapa do OpenStreetMap escurecido no tema escuro (o original é claro) */
:root:not([data-tema="claro"]) .mapa-lugares .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(.9) saturate(.35); }
.lt-lugar small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mapa-lugares { height: 380px; border-radius: 14px; overflow: hidden; background: var(--surface-2); position: relative; z-index: 0; }
.mapa-lugares.alto { height: 520px; }
.mapa-lugares.muito-alto { height: 620px; }
.mapa-erro { padding: 20px; }
.leaflet-container { font-family: var(--fonte); background: var(--surface-2); }
.leaflet-tooltip { background: #0f100f; color: #f6f6f2; border: 1px solid #2a2d2a; border-radius: 8px; font-size: 12px; font-weight: 600; box-shadow: none; }
.leaflet-tooltip-top::before { border-top-color: #2a2d2a; }
.leaflet-bar a { background: var(--surface); color: var(--text); border-color: var(--border) !important; }
.leaflet-control-attribution { font-size: 10px; }
.valor-hora { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.valor-hora b { font-size: 34px; font-weight: 600; letter-spacing: -0.04em; }
.valor-hora span { color: var(--muted); font-size: 13px; }
.passos { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 16px; font-size: 13.5px; line-height: 1.55; color: var(--text-2); }
.passos b { color: var(--text); }
.passos .btn { display: flex; width: fit-content; margin-top: 8px; }
.cfg-manual { margin-top: 18px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.cfg-manual summary { cursor: pointer; font-weight: 600; font-size: 13px; }
.cfg-campo { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.cfg-campo:last-child { border-bottom: 0; }
.cfg-campo span { font: 600 10.5px var(--fonte-num); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cfg-campo code { font-family: var(--fonte-num); font-size: 12px; overflow-wrap: anywhere; color: var(--text); }
.cfg-status { display: flex; align-items: center; gap: 12px; }
.cfg-status p { margin: 0; font-size: 13.5px; color: var(--text-2); }
@media (max-width: 860px) {
  .mapa-lugares { height: 300px; }
  .mapa-lugares.alto, .mapa-lugares.muito-alto { height: 420px; }
  .nav-data-txt { min-width: 0; flex: 1; }
  .topo-acoes > .nav-data { flex: 1 1 100%; justify-content: space-between; }
  .cfg-campo { grid-template-columns: minmax(0, 1fr) auto; }
  .cfg-campo span { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------ lugares: casa/trabalho no mapa, circuito e avisos */
.mb { margin-bottom: 18px; }
.fixos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fixo-lugar { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px dashed var(--border-strong); border-radius: var(--radius); }
.fixo-lugar.ok { border-style: solid; }
.fixo-lugar .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.fixo-lugar .ic svg { width: 18px; height: 18px; }
.fixo-lugar .meio { flex: 1; min-width: 0; }
.fixo-lugar .titulo { font-weight: 700; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fixo-lugar .detalhe { font-size: 12.5px; color: var(--text-2); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; }
.fixo-lugar .btn svg, .acoes-lugar .btn svg, [data-aqui] svg, .selo svg { width: 14px; height: 14px; }
.acoes-lugar { display: flex; flex-wrap: wrap; gap: 8px; }

.modal.modal-largo { width: min(720px, 100%); }
.mapa-lugares.mapa-editor { height: 340px; margin-top: 4px; cursor: crosshair; }
.pino-mapa span { display: block; width: 28px; height: 28px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--verde); border: 3px solid #fff; box-shadow: 0 6px 14px rgba(0,0,0,.45); }
.busca-endereco { display: flex; gap: 8px; }
.busca-endereco .campo { flex: 1; }
.resultados-busca { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; max-height: 190px; overflow-y: auto; }
.resultados-busca button { text-align: left; border: 0; border-bottom: 1px solid var(--border); background: var(--surface-2); color: var(--text); padding: 9px 12px; font-size: 12.5px; cursor: pointer; }
.resultados-busca button:hover { background: var(--accent-soft); }
.resultados-busca p { margin: 10px 12px; font-size: 12.5px; }
.faixa { width: 100%; accent-color: var(--verde); }

.agora-lugar { margin: 0 0 14px; font-size: 14px; color: var(--text-2); }
.circuito { display: grid; grid-template-columns: repeat(7, auto); align-items: center; gap: 10px; overflow-x: auto; padding: 6px 2px 4px; }
.ct-etapa { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; min-width: 86px; }
.ct-ponto { width: 14px; height: 14px; border-radius: 50%; background: var(--cor); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cor) 25%, transparent); }
.ct-hora { font-size: 18px; font-weight: 600; }
.ct-rotulo { font-size: 11.5px; color: var(--muted); }
.ct-trecho { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12.5px; color: var(--text-2); min-width: 90px; text-align: center;
  border-top: 2px dashed var(--border-strong); padding-top: 8px; }
.ct-trecho small { font-size: 11px; }

.notif-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.notif-acoes .btn svg { width: 16px; height: 16px; }
.notif-prefs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin-top: 18px; }
.notif-prefs small { font-size: 11.5px; }
.sub-titulo { font: 600 11px var(--fonte-num); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 20px 0 6px; }

@media (max-width: 760px) {
  .fixos, .notif-prefs { grid-template-columns: 1fr; }
  .fixo-lugar { flex-wrap: wrap; }
  .fixo-lugar .btn { width: 100%; justify-content: center; }
  .circuito { grid-template-columns: 1fr; justify-items: start; gap: 0; }
  .ct-etapa { flex-direction: row; gap: 10px; min-width: 0; }
  .ct-trecho { flex-direction: row; gap: 8px; border-top: 0; border-left: 2px dashed var(--border-strong); margin-left: 6px; padding: 8px 0 8px 16px; min-width: 0; text-align: left; }
  .mapa-lugares.mapa-editor { height: 280px; }
}

/* ------------------------------------------------------------ classificar transações (regras aprendidas) */
.escopos { display: flex; flex-direction: column; gap: 10px; }
.escopos .check span { flex: 1; min-width: 0; }
.campo.campo-sm { height: 34px; padding: 0 10px; font-size: 13px; margin-top: 6px; width: 100%; }
.previa-regra { border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13px; }
.previa-regra p { margin: 0; }
.previa-lista { display: flex; flex-direction: column; margin-top: 8px; font-size: 12px; }
.previa-lista div { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; padding: 5px 0; border-top: 1px solid var(--border); }
.previa-lista span:nth-child(1) { color: var(--muted); }
.previa-lista span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pendentes .linha-botao { gap: 14px; }
.pendentes .linha-botao .btn { pointer-events: none; flex: none; }
.regras-lista .linha { gap: 12px; }
#btn-regras .selo { margin-left: 4px; height: 18px; }
@media (max-width: 760px) {
  .pendentes .linha-botao .btn { display: none; }
}

/* ------------------------------------------------------------ real × orçado: por categoria, receitas e neutras */
.rxo-filtro .chips-rolar { max-height: 92px; }
.rxo-painel .card-titulo .selo { margin-left: 4px; }
.rxo-itens { display: flex; flex-direction: column; }
.rxo-itens > div { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.rxo-painel-acoes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.rxo-painel-acoes .btn svg { width: 14px; height: 14px; }
.rxo-tx .detalhe { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rxo-tx .detalhe .selo { height: 18px; font-size: 10px; }
.rxo-neutra-valores { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 13px; }
.rxo-dica { margin-top: 16px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--warn-soft); color: var(--text-2); font-size: 13px; line-height: 1.5; }
.rxo-dica b { color: var(--text); }
.rxo-dica .lista { margin-top: 8px; }

/* transações: a linha inteira abre a janela de classificar */
.tx-clicavel { cursor: pointer; outline: none; }
.tx-clicavel:hover, .tx-clicavel:focus-visible { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border-strong); }
.tx-clicavel:focus-visible { box-shadow: inset 0 0 0 2px var(--verde); }
.tx-mudou { animation: tx-mudou 1.8s ease-out; }
@keyframes tx-mudou { 0%, 30% { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--verde); } 100% { background: transparent; box-shadow: none; } }

/* classificar: criar subcategoria na hora */
.chips button.chip-nova { border-style: dashed; color: var(--verde-texto); background: transparent; }
.nova-sub { margin-top: 10px; padding: 12px; border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); display: flex; flex-direction: column; gap: 8px; }
.nova-sub .campo-sm { margin-top: 0; }
.nova-sub .campo-valor { width: 120px; display: inline-block; margin-left: 4px; }
.nova-sub .check { align-items: center; }
.nova-sub-acoes { display: flex; gap: 8px; }

/* aviso "N transações sem classificação" + filtro + bolinha no menu */
.aviso-classificar { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 18px; border-radius: var(--radius);
  background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); color: var(--text); text-decoration: none; }
.aviso-classificar > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.aviso-classificar small { color: var(--text-2); font-size: 12.5px; }
.aviso-classificar .aviso-ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--warn); color: #0f100f; font-weight: 800; }
.aviso-classificar.ok { background: var(--pos-soft); border-color: color-mix(in srgb, var(--pos) 30%, transparent); }
.aviso-classificar.ok .aviso-ic { background: var(--pos); }
.aviso-classificar.ativo { border-style: dashed; }
.filtro-pendentes { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 99px; cursor: pointer;
  border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text-2); font-weight: 600; font-size: 13px; }
.filtro-pendentes .num { background: var(--warn-soft); color: var(--warn); border-radius: 99px; padding: 1px 8px; font-size: 11.5px; }
.filtro-pendentes.ativo { border-color: var(--warn); background: var(--warn-soft); color: var(--text); }
.nav a .nav-aviso { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; display: inline-grid; place-items: center;
  background: var(--warn); color: #0f100f; font: 700 10.5px var(--fonte-num); }
@media (max-width: 760px) {
  .aviso-classificar { flex-wrap: wrap; }
  .aviso-classificar .btn { width: 100%; justify-content: center; }
}

/* sugestões automáticas de classificação */
.sug-acoes-topo { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 8px; }
.linha.sug { align-items: flex-start; gap: 14px; }
.linha.sug .titulo small { font-weight: 500; margin-left: 4px; }
.linha.sug .detalhe { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sug-para { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 6px; font-size: 13px; }
.sug-para .sug-seta { color: var(--verde-texto); font-weight: 700; }
.sug-para .selo { height: 18px; font-size: 10px; }
.sug-para small { font-size: 11.5px; }
.sug-botoes { display: flex; gap: 6px; flex: none; align-self: center; }
.sug-botoes .btn { min-width: 36px; justify-content: center; }
@media (max-width: 760px) {
  .linha.sug { flex-wrap: wrap; }
  .sug-botoes { width: 100%; }
  .sug-botoes .btn { flex: 1; }
}

/* real × orçado: visão por dia */
.segmentado.segmentado-sm button { padding: 5px 12px; font-size: 12px; }
.dia-detalhe { margin-top: 16px; padding-top: 4px; border-top: 1px dashed var(--border); }
@media (max-width: 760px) { #ritmo-modo { margin-left: 0 !important; margin-top: 8px; } }

/* real × orçado: dois círculos (total e por categoria) */
.rxo-circulos { display: grid; grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.6fr); gap: 28px; align-items: start; }
.rxo-circulo { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.rxo-circulo-cats { display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: center; gap: 20px; }
.grafico.rxo-anel-grande { position: relative; width: 220px; height: 220px; }
.rxo-anel-grande .donut-centro small { display: block; font-size: 11px; margin-top: 2px; }
.rxo-circulo-rodape { display: flex; flex-direction: column; gap: 6px; width: 100%; max-width: 260px; }
.rxo-circulo-rodape > div { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 6px 0; border-bottom: 1px dashed var(--border); }
.rxo-circulo-rodape span { color: var(--text-2); }
.rxo-legenda { display: flex; flex-direction: column; gap: 2px; max-height: 300px; overflow-y: auto; }
.rxo-leg { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; grid-template-areas: "cor nome valor" ". barra barra"; gap: 4px 10px; align-items: center;
  text-align: left; border: 0; background: none; color: var(--text); padding: 7px 8px; border-radius: 10px; cursor: pointer; font-size: 13px; }
.rxo-leg:hover { background: var(--surface-2); }
.rxo-leg > i { grid-area: cor; width: 10px; height: 10px; border-radius: 3px; }
.rxo-leg-nome { grid-area: nome; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rxo-leg > .num { grid-area: valor; font-size: 12.5px; }
.rxo-leg > .barra, .rxo-leg-sem { grid-area: barra; }
.rxo-leg-sem { font-size: 11px; color: var(--muted); }
.bala.bala-receita { width: 100%; text-align: left; border: 0; background: none; color: inherit; cursor: pointer; padding: 0; }
@media (max-width: 1000px) {
  .rxo-circulos { grid-template-columns: 1fr; }
  .rxo-circulo-cats { grid-template-columns: 1fr; justify-items: center; }
  .rxo-legenda { width: 100%; max-height: none; }
}

/* saldo nas contas: começo × fim do mês */
.tabela-rolar { overflow-x: auto; margin-top: 14px; }
.tabela-saldos { width: 100%; border-collapse: collapse; font-size: 13px; }
.tabela-saldos th { font: 600 10.5px var(--fonte-num); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: right; padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.tabela-saldos th:first-child, .tabela-saldos td:first-child { text-align: left; }
.tabela-saldos td { text-align: right; padding: 10px; border-bottom: 1px dashed var(--border); white-space: nowrap; }
.tabela-saldos tfoot td { font-weight: 700; border-bottom: 0; border-top: 1px solid var(--border-strong); }
.tabela-saldos .sem-hist { font-size: 11.5px; }
.tabela-saldos a { color: var(--text); font-weight: 600; text-decoration: none; }
.tabela-saldos a:hover { color: var(--verde-texto); }
.tabela-saldos .ts-atual td { background: var(--accent-soft); }
.ts-banco { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.ts-col-banco { text-align: center !important; color: var(--text-2); }
.tabela-saldos .mini-logo { width: 20px; height: 20px; border-radius: 6px; object-fit: contain; background: #fff; padding: 2px; vertical-align: middle; margin: 0; }
.tabela-saldos .mini-logo.inicial { display: inline-grid; place-items: center; color: #fff; font-size: 11px; font-weight: 700; padding: 0; }

/* dinheiro do mês: cascata começo → entradas → saídas → fim */
.fluxo { display: flex; flex-direction: column; gap: 2px; margin-top: 16px; }
.fluxo-linha { display: grid; grid-template-columns: minmax(150px, 1.2fr) minmax(0, 2fr) auto; gap: 14px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.fluxo-rot { display: flex; flex-direction: column; font-weight: 600; }
.fluxo-rot small { font-weight: 500; font-size: 11px; color: var(--muted); }
.fluxo-barra { height: 10px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.fluxo-barra i { display: block; height: 100%; border-radius: 99px; background: var(--neutro); }
.fluxo-linha.entra .fluxo-barra i { background: var(--pos); }
.fluxo-linha.sai .fluxo-barra i { background: var(--neg); }
.fluxo-linha.base .fluxo-barra i, .fluxo-linha.total .fluxo-barra i { background: var(--text-2); }
.fluxo-linha.entra b { color: var(--pos); }
.fluxo-linha.sai b { color: var(--neg); }
.fluxo-linha.total { border-bottom: 0; border-top: 1px solid var(--border-strong); font-weight: 700; }
@media (max-width: 760px) { .fluxo-linha { grid-template-columns: 1fr auto; } .fluxo-barra { grid-column: 1 / -1; grid-row: 2; } }

/* ------------------------------------------------------------ entrar / criar conta (beta fechada) */
main.entrar { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; background: var(--bg); }
.entrar-caixa { width: min(420px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px; }
.entrar-marca { display: flex; align-items: center; gap: 12px; }
.entrar-marca img { width: 48px; height: 48px; }
.entrar-marca .logo-xav { font-size: 34px; }
.entrar-sub { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.5; }
.entrar-abas { display: flex; width: 100%; }
.entrar-abas button { flex: 1; }
.entrar-form { display: flex; flex-direction: column; gap: 14px; }
.entrar-form .campo { width: 100%; }
.entrar-botao { width: 100%; justify-content: center; height: 46px; font-size: 15px; }
.entrar-erro { margin: 0; color: var(--neg); font-size: 13px; background: var(--neg-soft); border-radius: var(--radius-sm); padding: 10px 12px; }
.entrar-rodape { margin: 0; font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.entrar-voltar { align-self: center; font-size: 13px; color: var(--text-2); }

/* menu da conta (rodapé da barra lateral) */
.conta-botao { display: flex; align-items: center; gap: 10px; width: 100%; border: 1px solid var(--border); background: var(--surface-2);
  color: var(--text); border-radius: var(--radius-sm); padding: 8px 10px; cursor: pointer; font: 600 13px var(--fonte); text-align: left; }
.conta-botao:hover { border-color: var(--border-strong); }
.conta-botao .avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--accent-soft); color: var(--verde-texto); font-weight: 800; }
.conta-botao .meio { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.conta-botao small { color: var(--muted); font-weight: 500; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conta-acoes { display: flex; flex-direction: column; gap: 8px; }
.conta-acoes .btn { justify-content: flex-start; }
.convite-link { display: flex; gap: 8px; align-items: center; }
.convite-link code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: var(--surface-2);
  padding: 8px 10px; border-radius: var(--radius-sm); font-size: 12px; }
.chaves-form { display: flex; flex-direction: column; gap: 12px; }
.chaves-form .campo { width: 100%; font-family: var(--fonte-num); font-size: 13px; }
.entrar-google { width: 100%; justify-content: center; height: 46px; gap: 10px; font-size: 14.5px; background: #fff; color: #1f1f1f; border-color: #dadce0; text-decoration: none; }
.entrar-google:hover { background: #f6f8fa; }
.entrar-google svg { width: 18px; height: 18px; }
.entrar-ou { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; }
.entrar-ou::before, .entrar-ou::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* ------------------------------------------------------------ Administração (só o administrador vê) */
.adm-de { font-size: 15px; color: var(--muted); font-weight: 500; }
.adm-alerta { display: flex; align-items: center; gap: 14px; border-color: color-mix(in srgb, var(--neg) 40%, var(--border)); background: var(--neg-soft); }
.adm-alerta svg { width: 22px; height: 22px; color: var(--neg); flex: none; }
.adm-alerta small { display: block; color: var(--text-2); margin-top: 2px; }
.adm-dias { display: flex; align-items: flex-end; gap: 4px; height: 150px; margin-top: 8px; }
.adm-dias i { flex: 1; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, var(--verde-claro), var(--verde)); box-shadow: 0 0 12px -4px var(--accent-glow); }
.adm-dias i.zero { background: var(--surface-3); box-shadow: none; }
.adm-dias-eixo { display: flex; justify-content: space-between; margin-top: 8px; font: 500 11px var(--fonte-num); color: var(--muted); }
.adm-funil { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.adm-funil > div { display: grid; grid-template-columns: minmax(120px, 1.1fr) 2fr 36px; align-items: center; gap: 12px; font-size: 13px; }
.adm-funil b { text-align: right; }
.adm-bancos { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-bancos span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--border); font-size: 13px; }
.adm-bancos b { color: var(--verde-texto); }
.adm-secao { font-family: var(--fonte-serif); font-weight: 400; font-size: 26px; letter-spacing: -0.03em; margin: 34px 0 14px; }
.adm-pessoa { display: flex; flex-direction: column; gap: 14px; }
.adm-pessoa-topo { display: flex; align-items: center; gap: 12px; }
.adm-pessoa-topo .avatar { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; font-weight: 700;
  background: var(--accent-soft); color: var(--verde-texto); }
.adm-pessoa-topo .meio { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.adm-pessoa-topo .meio small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.adm-visto { font-size: 12px; color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.adm-visto::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--surface-3); }
.adm-visto.ativo { color: var(--text-2); } .adm-visto.ativo::before { background: var(--verde); box-shadow: 0 0 8px var(--verde); }
.adm-selos { display: flex; flex-wrap: wrap; gap: 6px; }
.adm-numeros { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 12px 0; border-block: 1px solid var(--border); }
.adm-numeros span { display: block; font: 600 9.5px var(--fonte-num); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.adm-numeros b { font-size: 16px; font-weight: 600; }
.adm-sync { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); }
.adm-sync .ponto { width: 7px; height: 7px; border-radius: 50%; background: var(--verde); flex: none; }
.adm-sync.erro { color: var(--neg); } .adm-sync.erro .ponto { background: var(--neg); }
.adm-rodape { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); }
@media (max-width: 640px) {
  .adm-numeros { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adm-funil > div { grid-template-columns: 1fr 1fr 30px; }
}

/* ------------------------------------------------------------ guia para ligar os bancos (Conexões) */
.guia-intro { margin: 0 0 16px; font-size: 13.5px; line-height: 1.55; }
.guia-etapas { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.guia-etapas li { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 14px; border: 1px solid var(--border); transition: border-color .3s, background .3s; }
.guia-etapas li > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.guia-etapas small { color: var(--muted); font-size: 12px; margin-top: 2px; }
.guia-num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; font: 700 12px var(--fonte-num);
  background: var(--surface-3); color: var(--text-2); }
.guia-etapas li.feito .guia-num { background: var(--verde); color: var(--preto); }
.guia-etapas li.feito b { color: var(--text-2); }
.guia-etapas li.atual { border-color: color-mix(in srgb, var(--verde) 55%, var(--border)); background: var(--accent-soft); }
.guia-etapas li.atual .guia-num { background: var(--preto); color: var(--verde); box-shadow: 0 0 0 2px var(--verde), 0 0 14px -2px var(--accent-glow); }
.guia-comecar { width: 100%; justify-content: center; height: 46px; }

/* a janela do passo a passo */
.modal.tutorial { width: min(620px, 100%); padding-top: 18px; }
.tu-topo { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 12.5px; color: var(--muted); }
.tu-topo .tu-etapa { flex: 1; } .tu-topo b { color: var(--verde-texto); }
.tu-fechar { order: 3; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); background: none; color: var(--text-2); cursor: pointer; }
.tu-pontos { display: flex; gap: 5px; margin-bottom: 16px; }
.tu-pontos button { flex: 1; height: 5px; border-radius: 9px; border: 0; padding: 0; background: var(--surface-3); cursor: pointer; transition: background .3s; }
.tu-pontos button.feito { background: color-mix(in srgb, var(--verde) 55%, var(--surface-3)); }
.tu-pontos button.atual { background: var(--verde); box-shadow: 0 0 10px -1px var(--accent-glow); }
.tu-midia { border-radius: 16px; overflow: hidden; background: radial-gradient(120% 100% at 50% 0%, var(--accent-soft), transparent 70%), var(--surface-2);
  padding: 18px; display: grid; place-items: center; min-height: 250px; }
.tu-midia.trocou > * { animation: tu-entra .45s cubic-bezier(.2,.8,.2,1); }
@keyframes tu-entra { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.tu-print { display: block; width: 100%; border-radius: 10px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.7); }
.modal.tutorial h3 { margin-top: 18px; }
.modal.tutorial .tu-texto { margin-bottom: 10px; }
.tu-dica { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: 13px; }
.tu-dica svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--verde-texto); }
.tu-botoes { display: flex; align-items: center; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.tu-botoes .tu-extra { flex: 1; display: flex; justify-content: center; }
.tu-video { width: min(960px, 100%); border-radius: 16px; overflow: hidden; background: #000; }
.tu-video video { display: block; width: 100%; max-height: calc(100dvh - 40px); }

/* telas desenhadas (os sites da Pluggy são claros; o xav. é escuro) */
.tm-janela { width: 100%; max-width: 480px; border-radius: 12px; overflow: hidden; background: #fff; color: #1d2433;
  box-shadow: 0 24px 50px -24px rgba(0,0,0,.8), 0 0 0 1px rgba(0,0,0,.08); font-size: 12.5px; }
.tm-barra { display: flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; background: #eef0f3; border-bottom: 1px solid #dde1e6; }
.tm-barra i { width: 8px; height: 8px; border-radius: 50%; background: #c8ccd2; }
.tm-barra span { margin-left: 10px; flex: 1; text-align: center; font-size: 11px; color: #5b6472; background: #fff; border-radius: 6px; padding: 2px 8px; margin-right: 30px; }
.tm-tela { position: relative; padding: 16px; min-height: 180px; display: flex; flex-direction: column; gap: 10px; }
.tm-centro { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.tm-centro .tm-campo { width: 70%; }
.tm-logo { font: 800 17px var(--fonte); letter-spacing: -0.03em; color: #1d2433; }
.tm-logo i { color: var(--verde); font-style: normal; }
.tm-selo { font-size: 10.5px; font-weight: 700; color: #0a7a3b; background: #dcf5e6; padding: 2px 8px; border-radius: 99px; }
.tm-campo { display: flex; flex-direction: column; gap: 3px; padding: 7px 10px; border: 1px solid #d7dce3; border-radius: 8px; background: #fafbfc; }
.tm-campo small { font-size: 10px; color: #7a8394; font-weight: 600; }
.tm-campo span { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-family: var(--fonte-num); font-size: 12px; }
.tm-largo { width: 100%; }
.tm-aqui { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 2px; flex-direction: column; padding: 7px 14px; border-radius: 8px;
  background: #1d2433; color: #fff; font-weight: 700; font-family: var(--fonte); font-size: 12px; white-space: nowrap;
  box-shadow: 0 0 0 3px rgba(43,179,75,.95), 0 0 0 7px rgba(43,179,75,.25); animation: tm-pulso 1.6s ease-in-out infinite; }
.tm-aqui small { font-weight: 500; opacity: .85; font-size: 10.5px; }
@keyframes tm-pulso { 50% { box-shadow: 0 0 0 3px rgba(43,179,75,.95), 0 0 0 12px rgba(43,179,75,0); } }
.tm-topo, .tm-menu { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tm-menu { justify-content: flex-start; gap: 14px; padding-bottom: 10px; border-bottom: 1px solid #e6e9ee; color: #5b6472; }
.tm-menu .tm-aqui { padding: 4px 10px; }
.tm-lista { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 14px 0; }
.tm-vazio { color: #7a8394; }
.tm-bancos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tm-bancos img { width: 100%; aspect-ratio: 1; max-width: 46px; justify-self: center; border-radius: 12px; }
.tm-celular-mini { display: flex; align-items: center; gap: 8px; align-self: flex-end; font-size: 11px; color: #5b6472; }
.tm-celular-mini svg { width: 26px; height: 26px; color: #1d2433; }
.tm-sub { font-weight: 700; font-size: 13px; }
.tm-serif { font: 400 18px var(--fonte-serif); }
.tm-conectores { display: flex; flex-direction: column; border: 1px solid #e1e5ea; border-radius: 10px; overflow: hidden; }
.tm-conectores > div { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 1px solid #eef0f3; }
.tm-conectores > div:last-child { border: 0; }
.tm-conectores .tm-alvo { background: #f0fbf4; box-shadow: inset 3px 0 0 var(--verde); }
.tm-chave { width: 30px; height: 17px; border-radius: 99px; background: #cfd5dd; position: relative; }
.tm-chave::after { content: ""; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: #fff; }
.tm-chave.ligada { background: var(--verde); box-shadow: 0 0 0 3px rgba(43,179,75,.3); }
.tm-chave.ligada::after { left: 15px; }
.tm-campo .tm-aqui { padding: 3px 9px; font-size: 10.5px; }
.tm-busca { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; border: 1.5px solid #8a94a6; }
.tm-busca svg { width: 15px; height: 15px; color: #7a8394; }
.tm-busca span::after { content: "|"; animation: piscar-cursor .8s steps(1) infinite; color: #1d2433; margin-left: 1px; }
.tm-resultados { display: flex; flex-direction: column; gap: 6px; }
.tm-resultados > div { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: #9aa2ad; }
.tm-resultados img { width: 24px; height: 24px; border-radius: 6px; opacity: .5; }
.tm-resultados .tm-aqui { align-items: flex-start; }
.tm-janela:has(.tm-xav) { background: #0f100f; color: #f6f6f2; }
.tm-xav { display: flex; gap: 12px; min-height: 160px; }
.tm-lateral { width: 42%; display: flex; flex-direction: column; gap: 7px; }
.tm-lateral .tm-logo { color: #f6f6f2; margin-bottom: 4px; }
.tm-lateral span:not(.tm-aqui) { height: 9px; border-radius: 4px; background: #232623; width: 80%; }
.tm-lateral .tm-aqui { margin-top: auto; background: #f6f6f2; color: #0f100f; }
.tm-conteudo { flex: 1; display: grid; gap: 8px; } .tm-conteudo div { border-radius: 8px; background: #191b19; }
@media (max-width: 640px) {
  .tu-midia { padding: 10px; min-height: 0; }
  .tm-centro .tm-campo { width: 92%; }
  .tu-botoes .tu-extra { order: 3; flex-basis: 100%; }
  .tu-botoes [data-seguir] { margin-left: auto; }
}

/* sugestões: aprovar em lote e aprovação automática */
.sug-lote { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 12.5px; }
.sug-lote .btn b { margin-left: 4px; font-family: var(--fonte-num); opacity: .8; }
.sug-auto { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; margin: 6px 0 12px; border-radius: 14px; border: 1px solid var(--border); cursor: pointer; }
.sug-auto input { position: absolute; opacity: 0; pointer-events: none; }
.sug-auto small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; line-height: 1.45; }
.sug-chave { width: 38px; height: 22px; border-radius: 99px; background: var(--surface-3); position: relative; flex: none; margin-top: 1px; transition: background .25s; }
.sug-chave::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--text-2); transition: left .25s, background .25s; }
.sug-auto input:checked + .sug-chave { background: var(--verde); box-shadow: 0 0 12px -2px var(--accent-glow); }
.sug-auto input:checked + .sug-chave::after { left: 19px; background: #fff; }
.sug-auto input:focus-visible + .sug-chave { outline: 2px solid var(--verde); outline-offset: 2px; }
.sug-auto:has(input:checked) { border-color: color-mix(in srgb, var(--verde) 45%, var(--border)); background: var(--accent-soft); }

/* orçamento sugerido (montado do histórico) */
.orc-montar { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; border-color: color-mix(in srgb, var(--verde) 40%, var(--border));
  background: radial-gradient(120% 160% at 0% 0%, var(--accent-soft), transparent 60%), var(--surface); }
.orc-montar > div { flex: 1; min-width: 0; }
.orc-montar small { display: block; color: var(--text-2); font-size: 13px; margin-top: 4px; line-height: 1.5; }
.montar-grupo h4 { margin: 4px 0 6px; font: 600 11px var(--fonte-num); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.montar-linha { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--border); cursor: pointer; }
.montar-linha input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--verde); flex: none; }
.montar-linha .meio { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.montar-linha .meio b { font-size: 13.5px; }
.montar-linha .meio small { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.montar-linha:has(input[type=checkbox]:not(:checked)) { opacity: .45; }
.montar-valor { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); flex: none; }
.modal .campos .montar-valor .campo { width: 96px; height: 34px; text-align: right; font-family: var(--fonte-num); }
.montar-totais { margin: 6px 0 0 !important; font-size: 13.5px; }
@media (max-width: 640px) {
  .orc-montar { flex-direction: column; align-items: stretch; }
  .modal .campos .montar-valor .campo { width: 82px; }
}

/* ------------------------------------------------------------ celular: barra de baixo + gaveta "Mais" */
.nav-cel, .mais-fundo { display: none; }
@media (max-width: 860px) {
  .sidebar .nav { display: none; }                         /* no celular, as telas ficam na barra de baixo */
  .app { align-content: start; }                           /* página curta: o topo não estica para preencher a tela */
  .sidebar { flex-wrap: nowrap; }
  .sidebar-rodape { align-items: center; }
  .conta-botao { width: auto; padding: 4px; border-radius: 99px; }
  .conta-botao .meio { display: none; }
  .nav-cel { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 40; padding: 5px; border-radius: 24px; border: 1px solid color-mix(in srgb, var(--border-strong) 70%, transparent);
    background: color-mix(in srgb, var(--surface) 72%, transparent); backdrop-filter: blur(24px) saturate(1.6); -webkit-backdrop-filter: blur(24px) saturate(1.6);
    box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 16px 40px -12px rgba(0,0,0,.55); }
  .nav-cel a, .nav-cel button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 3px 2px;
    border: 0; background: none; color: var(--muted); font: 500 10px var(--fonte); letter-spacing: .01em; text-decoration: none; cursor: pointer;
    -webkit-tap-highlight-color: transparent; transition: color .2s; }
  .nav-cel svg { width: 20px; height: 20px; box-sizing: content-box; padding: 5px 15px; border-radius: 99px;
    transition: background .25s, color .25s, transform .25s cubic-bezier(.3,1.6,.5,1); }
  .nav-cel a:active svg, .nav-cel button:active svg { transform: scale(.88); }
  .nav-cel .ativo { color: var(--text); font-weight: 600; }
  .nav-cel .ativo svg { color: var(--verde); background: var(--accent-soft); }
  .nav-cel .nav-aviso { position: absolute; top: 0; left: 56%; margin: 0; min-width: 17px; height: 17px; font-size: 9.5px; padding: 0 4px; }
  .principal { padding-bottom: calc(160px + env(safe-area-inset-bottom, 0px)); }
  .xav-fab { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .toasts { bottom: calc(98px + env(safe-area-inset-bottom, 0px)); }
  .mais-fundo { display: flex; align-items: flex-end; position: fixed; inset: 0; z-index: 60; background: rgba(5,6,5,.55); backdrop-filter: blur(6px); animation: aparecer .2s; }
  .mais-fundo.saindo { opacity: 0; transition: opacity .2s; }
  .mais-fundo.saindo .mais-folha { transform: translateY(40px); transition: transform .2s; }
  .mais-folha { width: 100%; max-height: 86vh; overflow-y: auto; padding: 8px 14px calc(16px + env(safe-area-inset-bottom, 0px)); border-radius: 28px 28px 0 0;
    background: var(--surface); border-top: 1px solid var(--border-strong); box-shadow: 0 -20px 50px -20px rgba(0,0,0,.6);
    animation: subir-folha .38s cubic-bezier(.2,.9,.25,1); }
  .mais-topo { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 14px; }
  .mais-topo h2 { margin: 0; font: 400 26px var(--fonte-serif); letter-spacing: -.01em; }
  .mais-topo h2 i { color: var(--verde); font-style: normal; }
  .mais-grupo { margin: 0 4px 8px; color: var(--muted); font: 600 10.5px var(--fonte-num); letter-spacing: .14em; text-transform: uppercase; }
  /* lista agrupada (estilo apps de banco): blocos arredondados com linhas finas, ícone pequeno, nome, frase e seta */
  .mais-grade { display: flex; flex-direction: column; margin-bottom: 20px; border-radius: 18px; overflow: hidden;
    background: var(--surface-2); border: 1px solid var(--border); }
  .mais-grade:last-child { margin-bottom: 0; }
  .mais-grade a { --cor: var(--verde); position: relative; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 13px;
    padding: 8px 14px; min-height: 40px; text-decoration: none; color: var(--text); -webkit-tap-highlight-color: transparent;
    animation: subir .35s cubic-bezier(.2,.9,.25,1) both; animation-delay: calc(var(--i) * 18ms); transition: background .15s; }
  .mais-grade a + a::before { content: ""; position: absolute; top: 0; right: 0; left: 61px; height: 1px; background: var(--border); }
  .mais-grade a::after { content: ""; width: 7px; height: 7px; margin-right: 3px; border: solid var(--muted); border-width: 1.8px 1.8px 0 0;
    transform: rotate(45deg); opacity: .6; }
  .mais-grade a:active { background: color-mix(in srgb, var(--text) 6%, transparent); }
  .mais-grade a svg { width: 18px; height: 18px; padding: 8px; box-sizing: content-box; border-radius: 11px;
    color: var(--cor); background: color-mix(in srgb, var(--cor) 15%, transparent); }
  .mais-grade a span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
  .mais-grade a b { font-size: 14.5px; font-weight: 600; letter-spacing: -.005em; }
  .mais-grade a small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mais-grade a.ativo { background: color-mix(in srgb, var(--cor) 9%, transparent); }
  .mais-grade a.ativo b { color: color-mix(in srgb, var(--cor) 70%, var(--text)); }
  .mais-grade a.ativo::after { border-color: var(--cor); opacity: 1; }
  .mais-selo { display: grid; place-items: center; min-width: 24px; height: 24px; border-radius: 50%; font: 700 12px var(--fonte-num); font-style: normal;
    color: var(--muted); border: 1.5px solid var(--border-strong); }
  .mais-folha.editando .mais-grade a::after { display: none; }
  .mais-folha.editando .na-barra .mais-selo { background: var(--cor); border-color: var(--cor); color: #0b0c0b; }
  .mais-folha.editando .mais-grade a:not(.na-barra) { opacity: .55; }
  .mais-botao { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 99px; border: 1px solid var(--border-strong);
    background: var(--surface-2); color: var(--text); font: 600 12.5px var(--fonte); cursor: pointer; }
  .mais-botao svg { width: 15px; height: 15px; }
  .mais-botao.destaque { background: var(--verde); border-color: var(--verde); color: #0b0c0b; }
  .mais-dica { margin: -6px 4px 14px; color: var(--text-2); font-size: 12.5px; line-height: 1.45; }
  .mais-dica b { color: var(--verde-texto); font-family: var(--fonte-num); }
  .mais-restaurar { display: block; margin: 4px auto 0; padding: 8px 14px; border: 0; background: none; color: var(--muted); font: 600 12.5px var(--fonte); text-decoration: underline; cursor: pointer; }
  .mais-instalar { display: flex; align-items: center; gap: 13px; width: 100%; margin-top: 20px; padding: 12px 14px; border-radius: 18px; cursor: pointer;
    text-align: left; color: var(--text); font: inherit; background: linear-gradient(120deg, var(--accent-soft), var(--surface-2) 75%);
    border: 1px solid color-mix(in srgb, var(--verde) 30%, var(--border)); }
  .mais-instalar svg { width: 18px; height: 18px; padding: 8px; box-sizing: content-box; flex: none; border-radius: 11px; color: #0b0c0b; background: var(--verde); }
  .mais-instalar span { display: flex; flex-direction: column; gap: 2px; }
  .mais-instalar b { font-size: 14px; font-weight: 600; }
  .mais-instalar small { color: var(--muted); font-size: 11.5px; }
  .mais-tema { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 8px 8px 8px 16px;
    border-radius: 18px; background: var(--surface-2); border: 1px solid var(--border); font-size: 14.5px; font-weight: 600; }
  .mais-tema-opcoes { display: flex; gap: 2px; padding: 3px; border-radius: 99px; background: var(--bg); border: 1px solid var(--border); }
  .mais-tema-opcoes button { padding: 6px 14px; border: 0; border-radius: 99px; background: none; color: var(--muted); font: 600 12.5px var(--fonte); cursor: pointer; }
  .mais-tema-opcoes [aria-checked="true"] { background: var(--surface-2); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.25), 0 0 0 1px var(--border-strong) inset; }
}
/* janela "Instalar no celular" (app e site) */
.instalar-passos { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; line-height: 1.45; }
.instalar-ic { display: inline-block; padding: 0 7px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border-strong); font-weight: 600; }
.instalar-como .ajuda, .instalar-como p { margin: 10px 0 0; }
@keyframes subir-folha { from { transform: translateY(100%); } }

/* estado vazio de quem ainda não ligou os bancos */
.vazio .vazio-acao { display: inline-flex; margin-top: 16px; }
.vazio .vazio-nota { display: block; margin-top: 10px; color: var(--muted); font-size: 12px; }

/* =====================================================================
   Início: diagnóstico de cara + resumo de tudo
   ===================================================================== */
.ini-topo { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; }
.ini-diag { background: var(--preto); color: var(--branco); border-color: #1d201d; isolation: isolate; overflow: hidden; }
.ini-diag::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 70%; height: 120%; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--cor-diag) 22%, transparent), transparent); }
.ini-diag-cab { display: flex; align-items: center; gap: 16px; }
.ini-diag-txt { min-width: 0; flex: 1; }
.ini-pato { width: 58px; height: 58px; border-radius: 18px; background: var(--cor-diag); color: var(--preto); display: grid; place-items: center; flex: none; --fundo: var(--cor-diag); }
.ini-pato svg { width: 80%; }
.ini-eyebrow { font: 600 10.5px var(--fonte-num); letter-spacing: .14em; text-transform: uppercase; color: #8a8f88; }
.ini-geral { margin: 6px 0 0; font: 400 clamp(22px, 2.6vw, 30px) var(--fonte-serif); letter-spacing: -0.02em; line-height: 1.1; }
.ini-frase { margin: 6px 0 0; color: #b9bdb6; font-size: 13px; line-height: 1.45; }
.ini-diag .anel .centro b { color: var(--branco); }
.ini-diag .anel circle:first-child { stroke: #242724; }
.ini-pontos { display: flex; flex-direction: column; margin-top: 18px; border-top: 1px solid #242724; }
.ini-ponto { display: flex; align-items: flex-start; gap: 12px; padding: 12px 4px; border-bottom: 1px solid #1d201d; color: inherit; text-decoration: none; border-radius: 10px; transition: background .2s; }
.ini-ponto:hover { background: #161816; }
.ini-ponto .selo { width: 28px; height: 28px; padding: 0; justify-content: center; border-radius: 9px; flex: none; }
.ini-ponto .selo svg { width: 14px; height: 14px; }
.ini-ponto b { font-size: 13.5px; font-weight: 600; }
.ini-ponto p { margin: 3px 0 0; font-size: 12.5px; line-height: 1.5; color: #b9bdb6; }
.ini-ponto p b { color: var(--branco); font-size: inherit; }
.ini-ponto .ini-seta { margin-left: auto; color: #5e625d; align-self: center; transition: transform .2s, color .2s; }
.ini-ponto:hover .ini-seta { color: var(--verde); transform: translateX(3px); }
.ini-diag-acoes { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.ini-diag-acoes .btn svg { width: 14px; height: 14px; }

.ini-reserva { display: flex; flex-direction: column; }
.ini-res-valor { font-size: 32px; font-weight: 600; letter-spacing: -0.04em; margin: 4px 0 6px; }
.ini-res-cab { display: flex; align-items: center; gap: 16px; }
.ini-res-meses { width: 92px; height: 92px; border-radius: 24px; flex: none; display: grid; place-content: center; text-align: center;
  background: color-mix(in srgb, var(--cor-res) 16%, transparent); color: var(--cor-res); }
.ini-res-meses b { font-size: 34px; font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.ini-res-meses span { font: 600 10px var(--fonte-num); letter-spacing: .12em; text-transform: uppercase; margin-top: 4px; }
.ini-res-txt { font-size: 13px; line-height: 1.55; color: var(--text-2); }
.ini-res-txt b { color: var(--text); }
.ini-regua { position: relative; margin: 30px 0 26px; }
.ini-regua .faixas { display: flex; height: 12px; border-radius: 99px; overflow: hidden; gap: 2px; }
.ini-regua .faixas i { display: block; height: 100%; opacity: .85; }
.ini-regua .marca { position: absolute; top: -6px; width: 4px; height: 24px; margin-left: -2px; border-radius: 3px; background: var(--text); box-shadow: 0 0 0 3px var(--surface); }
.ini-regua .marca em { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); font: 600 11px var(--fonte-num); font-style: normal; background: var(--text); color: var(--bg); padding: 2px 7px; border-radius: 99px; white-space: nowrap; }
.ini-regua .ticks { position: relative; height: 14px; margin-top: 6px; }
.ini-regua .ticks span { position: absolute; transform: translateX(-50%); font: 500 10.5px var(--fonte-num); color: var(--muted); }
.ini-regua .ticks span:first-child { transform: none; }
.ini-metas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ini-metas > div { padding: 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); min-width: 0; }
.ini-metas span { display: block; font: 600 10px var(--fonte-num); letter-spacing: .04em; color: var(--muted); text-transform: uppercase; }
.ini-metas em { display: block; font-style: normal; font-size: 11px; color: var(--text-2); margin-top: 1px; }
.ini-metas b { display: block; font-size: 13.5px; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; }
.ini-metas small { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.ini-metas .feita { border-color: color-mix(in srgb, var(--verde) 45%, var(--border)); background: var(--accent-soft); }
.ini-metas .feita small { color: var(--verde-texto); font-weight: 600; }
.ini-nota { font-size: 12px; color: var(--muted); line-height: 1.5; margin: 12px 0 0; }
.ini-link { border: 0; background: none; padding: 0; margin-top: 12px; color: var(--verde-texto); font: 600 12.5px var(--fonte); cursor: pointer; align-self: flex-start; }

.ini-meses { display: grid; grid-template-columns: repeat(auto-fit, minmax(62px, 1fr)); gap: 6px; margin-top: 14px; }
.ini-meses > div { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 7px 4px; border-radius: 10px; background: var(--surface-2); }
.ini-meses > div.atual { outline: 1px solid color-mix(in srgb, var(--verde) 45%, transparent); }
.ini-meses span { font: 600 10px var(--fonte-num); text-transform: uppercase; color: var(--muted); }
.ini-meses i { width: 6px; height: 6px; border-radius: 50%; }
.ini-meses b { font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.ini-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--border-strong); }
.ini-total span { font: 600 11px var(--fonte-num); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ini-total b { font-size: 18px; font-weight: 600; }

.ini-inv-cab { display: flex; gap: 26px; flex-wrap: wrap; }
.ini-inv-cab > div > span { display: block; font: 600 10.5px var(--fonte-num); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.ini-inv-cab b { font-size: 20px; font-weight: 600; letter-spacing: -0.03em; }
.ini-inv-cab small { display: block; font-size: 11px; margin-top: 2px; }
.ini-pilha { display: flex; height: 12px; border-radius: 99px; overflow: hidden; gap: 2px; margin-top: 18px; }
.ini-pilha i { display: block; height: 100%; }
.ini-legenda { color: var(--text-2); }

.ini-agora { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; padding: 6px 12px; border-radius: 99px; background: var(--surface-2); margin-bottom: 14px; }
.ini-agora i { width: 8px; height: 8px; border-radius: 50%; background: var(--verde); box-shadow: 0 0 0 4px var(--accent-soft); animation: ini-pulsar 2s infinite; }
@keyframes ini-pulsar { 50% { box-shadow: 0 0 0 7px transparent; } }
.ini-lug-horas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ini-lug-horas span { display: flex; align-items: center; gap: 6px; font: 600 10.5px var(--fonte-num); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ini-lug-horas span i { width: 8px; height: 8px; border-radius: 3px; }
.ini-lug-horas b { display: block; font-size: 17px; font-weight: 600; margin-top: 4px; }
.ini-dias { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; height: 110px; margin-top: 16px; }
.ini-dias > div { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.ini-dias .col { flex: 1; width: 100%; max-width: 30px; display: flex; flex-direction: column-reverse; border-radius: 8px; overflow: hidden; background: var(--surface-2); }
.ini-dias .col i { display: block; width: 100%; }
.ini-dias span { font: 600 10px var(--fonte-num); text-transform: uppercase; color: var(--muted); }
.ini-dias .futuro { opacity: .35; }
.ini-lug-vazio { display: flex; gap: 14px; align-items: flex-start; }
.ini-lug-vazio > svg { width: 38px; height: 38px; padding: 9px; border-radius: 12px; background: var(--accent-soft); color: var(--verde); flex: none; }
.ini-lug-vazio p { margin: 4px 0 12px; font-size: 13px; line-height: 1.5; }

@media (max-width: 1180px) { .ini-topo { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .ini-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ini-kpis .card { padding: 14px; }
  .ini-kpis .rotulo-kpi { font-size: 9.5px; letter-spacing: .06em; gap: 7px; }
  .ini-kpis .ic { width: 24px; height: 24px; }
  .ini-kpis .valor { font-size: 17px; margin-top: 10px; }
  .ini-kpis .rodape-kpi { font-size: 11px; }
}
@media (max-width: 640px) {
  .ini-diag-cab { flex-wrap: wrap; }
  .ini-diag-txt { order: 3; flex-basis: 100%; }
  .ini-diag-cab .anel { margin-left: auto; }
  .ini-metas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ini-lug-horas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ini-res-meses { width: 78px; height: 78px; }
  .ini-res-meses b { font-size: 28px; }
}

/* Meu ritmo: quando o dinheiro entra e quando as contas são pagas */
.ritmo-quadro { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.ritmo-quadro.novo { border-color: color-mix(in srgb, var(--verde) 40%, var(--border)); background: linear-gradient(135deg, var(--accent-soft), transparent 60%), var(--surface); }
.ritmo-quadro > div:nth-child(2) { flex: 1; min-width: 0; }
.ritmo-quadro small { display: block; color: var(--text-2); font-size: 13px; margin-top: 4px; line-height: 1.55; }
.ritmo-quadro small b { color: var(--text); font-weight: 600; }
.ritmo-icone { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--verde); }
.ritmo-icone svg { width: 20px; height: 20px; }
.ritmo-linhas { display: flex; flex-direction: column; gap: 8px; }
.ritmo-linha { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.3fr) 76px 34px; gap: 8px; align-items: center; }
.ritmo-linha [data-valor] { min-width: 0; }
.ritmo-linha [data-valor][hidden] { display: block; visibility: hidden; }
@media (max-width: 640px) {
  .ritmo-quadro { flex-direction: column; align-items: stretch; }
  .ritmo-linha { grid-template-columns: minmax(0, 1fr) 76px 34px; }
  .ritmo-linha input[name=nome] { grid-column: 1 / -1; }
}
