/* Organiza.ai — painel web. Tema "Slate + ciano": SaaS escuro, frio, clean.
   Toda a cor mora nas custom properties abaixo — trocar de tema (ex.: claro)
   é só redefinir este :root, sem caçar hex pelo arquivo. */
:root {
  /* Tema "Dashboard" — preto real em camadas, monocromático. A cor só aparece
     nos dados (gráficos, prioridades, formas de pagamento). */
  /* Superfícies */
  --bg: #0a0a0b;
  --bg-sidebar: #0c0c0e;
  --surface: #141416;
  --surface-2: #1a1a1d; /* hover sutil / chip neutro */

  /* Bordas (sempre 1px solid, zero sombra difusa) */
  --border: #202024;
  --border-sidebar: #161618;
  --border-focus: #34343a; /* foco = borda mais clara, nunca glow */

  /* Texto */
  --text: #f4f5f6;
  --text-2: #8b8d93;
  --muted: #5d5f66;

  /* "Acento" agora é quase-branco (UI monocromática): usado em ações primárias,
     item ativo e destaques. Toda a cor de marca foi pros dados. */
  --accent: #e9eaec;
  --accent-fg: #121214; /* texto sobre o acento claro */
  --accent-chip: #1c1c20;

  /* Navegação */
  --nav-active-bg: rgba(255, 255, 255, 0.06);

  /* Prioridade / estados (dessaturados, sem neon) */
  --alta: #e0876b;
  --media: #e3b667;
  --baixa: #6fcf97;
  --ok: #6fcf97;
  --danger: #e0876b;

  /* Raios */
  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 8px;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  background-image: radial-gradient(120% 80% at 50% -10%, #131316 0%, var(--bg) 55%);
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--text);
  text-decoration: none;
}
h1,
h2,
h3 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.01em;
}
button {
  font-family: inherit;
  cursor: pointer;
}

/* Ícones de linha (SVG stroke). Herdam a cor do contexto via currentColor. */
svg.ic {
  width: 16px;
  height: 16px;
  flex: none;
  stroke: currentColor;
  fill: none;
}

/* ----- Login ----- */
.tela-login {
  display: grid;
  place-items: center;
  min-height: 100vh;
}
.login-card {
  width: min(360px, 92vw);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
}
.login-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.login-brand .brand-mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-xs);
  background: var(--accent-chip);
  color: var(--accent);
}
.login-brand .brand-nome {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.login-sub {
  color: var(--text-2);
  margin: 8px 0 22px;
  font-size: 13px;
}
#form-login {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.login-erro {
  color: var(--danger);
  font-size: 12.5px;
  margin: 2px 0 0;
}

/* ----- Inputs e botões ----- */
input,
select,
textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  width: 100%;
  outline: none;
  transition: border-color 0.15s;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent); /* foco = borda, sem anel/brilho */
}
textarea {
  resize: vertical;
  min-height: 64px;
}
label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0 0 6px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent);
  color: var(--accent-fg);
  border: none;
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  font-weight: 600;
  font-size: 13px;
}
.btn:hover {
  filter: brightness(1.06);
}
.btn:active {
  transform: translateY(1px);
}
.btn svg.ic {
  width: 15px;
  height: 15px;
}
/* Botão-toggle (ex.: "mostrar passados"): outline neutro; ativo = acento cheio. */
.btn-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  color: var(--text-2);
  border: 1px solid var(--border-focus);
  border-radius: var(--radius-sm);
  padding: 8px 13px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.btn-toggle:hover {
  color: var(--text);
  border-color: var(--text-2);
}
.btn-toggle.ativo {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}
.btn-toggle svg.ic {
  width: 15px;
  height: 15px;
}
button[type='submit'] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--accent);
  color: #07171a;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-weight: 500;
  font-size: 13px;
}
button[type='submit']:hover {
  filter: brightness(1.06);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 7px 11px;
  font-size: 12.5px;
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-focus);
  background: var(--surface-2);
}
.btn-ghost svg.ic {
  width: 15px;
  height: 15px;
}
.btn-danger {
  color: var(--danger);
  border-color: transparent;
  background: transparent;
}
.btn-danger:hover {
  background: rgba(229, 103, 95, 0.1);
  border-color: transparent;
  color: var(--danger);
}
.btn-sm {
  padding: 5px 8px;
  font-size: 12px;
  border-radius: var(--radius-xs);
}
.btn-sm svg.ic {
  width: 14px;
  height: 14px;
}
.btn-icone {
  padding: 6px;
}

/* ----- Layout principal ----- */
.app {
  display: grid;
  grid-template-columns: 234px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-sidebar);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 16px;
}
.brand .brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: radial-gradient(circle at 30% 30%, #2a2a30, #161618);
  border: 1px solid var(--border);
}
.brand-anel {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #cfd0d4;
  border-right-color: transparent;
  transform: rotate(-20deg);
}
.brand .brand-nome {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.nav-sec {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 14px 10px 6px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border-radius: 10px;
  color: var(--text-2);
  font-weight: 500;
  font-size: 13px;
  border-left: 2px solid transparent;
  cursor: pointer;
}
.nav-item:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}
.nav-item.ativo {
  background: var(--nav-active-bg);
  color: var(--text);
  border-left-color: var(--accent);
}
.nav-item.ativo svg.ic {
  color: var(--text);
}
.nav-item svg.ic {
  color: inherit;
  width: 17px;
  height: 17px;
}
.sidebar-rodape {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-sidebar);
}

.conteudo {
  padding: 24px 30px 32px;
  width: 100%;
  min-width: 0;
}

/* ----- Topbar: título (saudação) à esquerda + ações à direita ----- */
.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.topbar-titulo {
  min-width: 0;
}
.ov-saud-h1 {
  margin: 0;
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.ov-saud-p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13.5px;
}
.topbar-acoes {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1; /* ocupa o espaço livre da topbar (a captura cresce dentro dele) */
  min-width: 0;
}
/* Campo de captura: cresce e preenche o espaço preto, pra dar área de escrita. */
.busca {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 11px 16px;
}
.busca:focus-within {
  border-color: var(--border-focus);
}
.busca.pensando {
  opacity: 0.65;
}
.captura-ic {
  width: 16px;
  height: 16px;
  color: var(--muted);
  flex: none;
}
.busca input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  padding: 0;
  font: inherit;
  font-size: 14px;
  color: var(--text);
}
.ic-btn {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  cursor: pointer;
}
.ic-btn:hover {
  color: var(--text);
}
.ic-btn .ic {
  width: 18px;
  height: 18px;
}
.ic-dot {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--baixa);
}
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #2b2b31, #17171a);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: #d7d8db;
  flex: none;
}

/* ----- Cabeçalho de página ----- */
.pagina-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.pagina-topo h1 {
  font-size: 18px;
  font-weight: 500;
}
.acoes {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.acoes select {
  width: auto;
  font-size: 13px;
  padding: 8px 10px;
}

/* ----- Cards de resumo (metric cards) ----- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 15px;
}
.card .rotulo {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.card .valor {
  font-size: 19px;
  font-weight: 700;
  margin-top: 7px;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.card .valor.accent,
.card .valor .accent {
  color: var(--accent);
}
/* Cards clicáveis: realce de borda no hover (sem glow), foco acessível. */
.card-link {
  display: block;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
}
.card-link:hover {
  border-color: var(--border-focus);
  background: var(--surface-2);
}
.card-link:focus-visible {
  outline: none;
  border-color: var(--accent);
}

/* ----- Visão geral: saudação ----- */
.saudacao {
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}

/* ----- Visão geral: resumo do dia em seções ----- */
.resumo-grade {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.rs-secao {
  padding: 0 20px;
  border-left: 1px solid var(--border);
}
.rs-secao:first-child {
  padding-left: 0;
  border-left: none;
}
.rs-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.rs-label svg.ic {
  width: 15px;
  height: 15px;
  color: var(--muted);
}
.rs-valor {
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.rs-sub {
  color: var(--text-2);
  font-size: 12px;
  margin-top: 2px;
}
.rs-vazio {
  color: var(--muted);
  font-size: 13px;
}
.rs-lista {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rs-lista li {
  font-size: 13px;
  color: var(--text);
}
.rs-hora {
  color: var(--accent);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  margin-right: 4px;
}

/* ----- Visão geral: prévias em 2 colunas ----- */
.previa-grade {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.painel-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.painel-topo h2 {
  margin: 0;
}
.ver-todos {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-2);
  transition: color 0.12s;
}
.ver-todos svg.ic {
  width: 14px;
  height: 14px;
}
.ver-todos:hover {
  color: var(--accent);
}
.previa-tarefas {
  display: flex;
  flex-direction: column;
}
.previa-tarefa {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 4px;
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text);
  transition: background 0.12s;
}
.previa-tarefa:last-child {
  border-bottom: none;
}
.previa-tarefa:hover {
  background: var(--surface-2);
}
.previa-texto {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ----- Captura: feedback inline da classificação ----- */
.captura-feedback {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 6px;
}
.captura-feedback[hidden] {
  display: none;
}
.fb-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 2px solid var(--border-focus);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text);
}
.fb-ic {
  display: inline-grid;
  place-items: center;
  color: var(--text-2);
  flex: none;
}
.fb-ic svg.ic {
  width: 16px;
  height: 16px;
}
.fb-txt strong {
  font-weight: 600;
}
.fb-gasto {
  border-left-color: var(--accent);
}
.fb-gasto .fb-ic {
  color: var(--accent);
}
.fb-tarefa {
  border-left-color: var(--media);
}
.fb-tarefa .fb-ic {
  color: var(--media);
}
.fb-lembrete {
  border-left-color: var(--ok);
}
.fb-lembrete .fb-ic {
  color: var(--ok);
}
.fb-ideia {
  border-left-color: var(--text-2);
}
.fb-ideia .fb-ic {
  color: var(--text-2);
}
.fb-erro {
  border-left-color: var(--danger);
}
.fb-erro .fb-ic {
  color: var(--danger);
}

.painel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 18px;
}
.painel h2 {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
  margin-bottom: 14px;
}
.resumo-dia {
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text);
  margin: 0;
  font-family: inherit;
}

/* ----- Listas / linhas (cards de lançamento) ----- */
.lista {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.linha {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 15px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
/* Chip de ícone do lançamento */
.linha-icone {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text-2);
  flex: none;
}
.linha-icone.accent {
  background: var(--accent-chip);
  color: var(--accent);
}
.linha .principal {
  flex: 1;
  min-width: 0;
}
.linha .titulo {
  font-weight: 500;
  overflow-wrap: anywhere;
}
.linha .sub {
  color: var(--text-2);
  font-size: 12px;
  margin-top: 2px;
}
.linha .valor-num {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-size: 14px;
}
/* Forma de pagamento, no meio da linha */
.chip-pgto {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  white-space: nowrap;
}
.chip-pgto svg.ic {
  width: 14px;
  height: 14px;
}
.chip-pgto-cartao {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  background: var(--accent-chip);
}
.chip-pgto-pix {
  color: #00a6a6;
  border-color: color-mix(in srgb, #00a6a6 40%, transparent);
  background: color-mix(in srgb, #00a6a6 14%, transparent);
}
/* Logo do PIX é preenchido, não contorno — sobrescreve o stroke padrão do .ic */
.chip-pgto-pix svg.ic {
  fill: currentColor;
  stroke: none;
}
.chip-pgto-p2p {
  color: #e0a458;
  border-color: color-mix(in srgb, #e0a458 40%, transparent);
  background: color-mix(in srgb, #e0a458 14%, transparent);
}
.linha-acoes {
  display: flex;
  gap: 4px;
  opacity: 0.6;
  transition: opacity 0.15s;
}
.linha:hover .linha-acoes {
  opacity: 1;
}
.vazio {
  color: var(--muted);
  text-align: center;
  padding: 28px 10px;
  font-size: 13px;
}

/* ----- Tags / chips ----- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  white-space: nowrap;
}
.chip svg.ic {
  width: 13px;
  height: 13px;
}
/* Chip de prioridade clicável: cicla baixa → média → alta ao clicar. */
.chip-prio {
  font-family: inherit;
  line-height: 1.5;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
}
.chip-prio:hover {
  border-color: var(--border-focus);
  background: var(--surface);
}
.chip-prio:focus-visible {
  outline: none;
  border-color: var(--accent);
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.dot.alta {
  background: var(--alta);
}
.dot.media {
  background: var(--media);
}
.dot.baixa {
  background: var(--baixa);
}
.chip.tipo-compromisso {
  color: var(--accent);
  border-color: var(--accent);
}

/* ----- Gastos: lançamentos agrupados por categoria ----- */
.secao-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 500;
  margin: 0 0 12px 2px;
}
.grupos {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.grupo-cat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.grupo-topo {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 15px;
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.grupo-topo:hover {
  background: var(--surface-2);
}
.grupo-nome {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 13.5px;
  text-transform: capitalize;
}
/* Empurra a setinha pro fim; resumo fica colado nela. */
.grupo-resumo {
  margin-left: auto;
}
.grupo-seta {
  display: inline-grid;
  place-items: center;
  color: var(--muted);
  flex: none;
  transition: transform 0.18s ease;
}
.grupo-seta svg.ic {
  width: 18px;
  height: 18px;
}
.grupo-cat.aberto .grupo-seta {
  transform: rotate(180deg);
}
/* Recolhido por padrão. Abre com altura animada (estilo "Apple"): o truque do
   grid-template-rows 0fr→1fr revela suavemente sem saber a altura do conteúdo. */
.grupo-cat .lista {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.grupo-cat.aberto .lista {
  grid-template-rows: 1fr;
}
.grupo-cat .lista-inner {
  overflow: hidden;
  min-height: 0;
}
.grupo-cat.aberto .grupo-topo {
  border-bottom: 1px solid var(--border);
}
/* Realce rápido ao abrir uma categoria a partir do gráfico. */
@keyframes catFlash {
  0% {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.55);
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}
.grupo-cat.ov-flash {
  animation: catFlash 1.1s ease;
}
.grupo-ic {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-xs);
  flex: none;
}
.grupo-ic svg.ic {
  width: 16px;
  height: 16px;
}
.grupo-resumo {
  color: var(--text-2);
  font-size: 12px;
  white-space: nowrap;
}
.grupo-resumo strong {
  color: var(--text);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
/* Linhas dentro do grupo: planas, divididas por hairline (não cards soltos). */
.grupo-cat .lista {
  gap: 0;
}
.grupo-cat .linha {
  background: none;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid var(--border);
  padding: 11px 15px;
}
.grupo-cat .linha:last-child {
  border-bottom: none;
}

/* ----- Gastos: gráfico + barras ----- */
.gastos-grade {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 18px;
  align-items: start;
}
.painel-grafico {
  position: sticky;
  top: 20px;
}
.barras {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.barra-item .barra-topo {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  margin-bottom: 6px;
  color: var(--text-2);
}
.barra-trilho {
  height: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.barra-preenche {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
}
.grafico-wrap {
  position: relative;
}
.grafico-donut {
  position: relative;
  height: 210px;
  margin-bottom: 4px;
}
/* Legenda rica: cor · categoria · % · valor, em colunas alinhadas */
.legenda-cat {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}
.leg-item {
  display: grid;
  grid-template-columns: 10px 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 0.12s;
}
.leg-item:last-child {
  border-bottom: none;
}
.leg-item:hover {
  background: var(--surface-2);
}
.leg-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}
.leg-nome {
  font-size: 13px;
  color: var(--text);
  text-transform: capitalize;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.leg-pct {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  min-width: 38px;
  text-align: right;
}
.leg-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  min-width: 84px;
  text-align: right;
}

/* ----- Seletor de período (intervalo de datas) ----- */
.periodo-wrap {
  position: relative;
}
.periodo-trigger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  cursor: pointer;
  transition: border-color 0.12s;
}
.periodo-trigger:hover {
  border-color: var(--border-focus);
}
.periodo-trigger.aberto {
  border-color: var(--accent);
}
.periodo-trigger .ic:first-child {
  color: var(--accent);
  width: 16px;
  height: 16px;
}
.periodo-trigger .ic:last-child {
  color: var(--text-2);
  width: 15px;
  height: 15px;
}
.periodo-txt {
  font-variant-numeric: tabular-nums;
}

.periodo-pop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0; /* ancora à direita do gatilho: abre pra esquerda, sem vazar a tela */
  left: auto;
  z-index: 50;
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  gap: 12px;
  max-width: calc(100vw - 280px);
  overflow: auto;
}
.pk-presets {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-right: 12px;
  border-right: 1px solid var(--border);
  min-width: 132px;
}
.pk-preset {
  font: inherit;
  font-size: 13px;
  text-align: left;
  color: var(--text-2);
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s, color 0.12s;
}
.pk-preset:hover {
  background: var(--surface-2);
  color: var(--text);
}
.pk-preset.ativo {
  background: var(--accent-chip);
  color: var(--accent);
}

.pk-cals {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.pk-nav {
  display: inline-grid;
  place-items: center;
  background: none;
  border: none;
  color: var(--text-2);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  margin-top: 2px;
}
.pk-nav:hover {
  color: var(--accent);
  background: var(--surface-2);
}
.pk-mes {
  width: 196px;
}
.pk-mes-tit {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}
.pk-semana {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 4px;
}
.pk-semana span {
  text-align: center;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pk-grade {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.pk-dia {
  font: inherit;
  font-size: 12.5px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.pk-vazio {
  visibility: hidden;
  pointer-events: none;
}
.pk-dia:not(.pk-ini):not(.pk-fim):not(.pk-meio):hover {
  background: var(--surface-2);
  border-radius: var(--radius-sm);
}
/* Hoje: contorno fino (sem preencher), como no exemplo. */
.pk-hoje:not(.pk-ini):not(.pk-fim):not(.pk-meio) {
  box-shadow: inset 0 0 0 1px var(--border-focus);
  border-radius: var(--radius-sm);
}
/* Banda do intervalo: meio translúcido, pontas sólidas em ciano. */
.pk-meio {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.pk-ini,
.pk-fim {
  background: var(--accent);
  color: #0f1216;
  font-weight: 600;
}
.pk-ini {
  border-top-left-radius: var(--radius-sm);
  border-bottom-left-radius: var(--radius-sm);
}
.pk-fim {
  border-top-right-radius: var(--radius-sm);
  border-bottom-right-radius: var(--radius-sm);
}
.pk-unico {
  border-radius: var(--radius-sm);
}

/* ----- Kanban ----- */
.kanban {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.coluna {
  background: var(--bg-sidebar);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  min-height: 120px;
}
.coluna.dragover {
  border-color: var(--accent);
}
.coluna-topo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 6px 12px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.coluna-topo .cont {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 11px;
  letter-spacing: 0;
}
.kard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  margin-bottom: 10px;
  cursor: grab;
}
.kard:active {
  cursor: grabbing;
}
.kard.arrastando {
  opacity: 0.5;
}
/* Fundo tingido pela prioridade. Hues bem separados (vermelho / âmbar / verde
   frio) e mais saturados que as cores muted do tema, pra dar pra distinguir as
   três batendo o olho — mas misturados no fundo escuro pra seguir sóbrio. */
.kard-alta {
  background: color-mix(in srgb, #e5484d 15%, var(--surface));
  border-color: color-mix(in srgb, #e5484d 48%, var(--border));
}
.kard-media {
  background: color-mix(in srgb, #e0a020 14%, var(--surface));
  border-color: color-mix(in srgb, #e0a020 44%, var(--border));
}
.kard-baixa {
  background: color-mix(in srgb, #25b777 13%, var(--surface));
  border-color: color-mix(in srgb, #25b777 40%, var(--border));
}
.kard .kard-texto {
  font-weight: 400;
  margin-bottom: 9px;
  overflow-wrap: anywhere;
  color: var(--text);
}
/* Etiqueta de prazo: atrasada (vermelho) / vence hoje (âmbar) */
.chip-prazo.atrasada {
  color: var(--alta);
  border-color: color-mix(in srgb, var(--alta) 45%, transparent);
  background: color-mix(in srgb, var(--alta) 12%, transparent);
  font-weight: 500;
}
.chip-prazo.hoje {
  color: var(--media);
  border-color: color-mix(in srgb, var(--media) 45%, transparent);
  background: color-mix(in srgb, var(--media) 12%, transparent);
  font-weight: 500;
}
.kard .kard-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.kard .kard-acoes {
  display: flex;
  gap: 2px;
}

/* ----- Mural de ideias ----- */
/* ===================== IDEIAS (layout premium) ===================== */
.pagina-sub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13.5px;
}
/* Tabs de filtro */
.ideia-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.ideia-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: inherit;
  font-size: 13px;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 13px;
  cursor: pointer;
  transition: color 0.14s, border-color 0.14s, background 0.14s;
}
.ideia-tab:hover {
  color: var(--text);
  border-color: var(--border-focus);
}
.ideia-tab.ativo {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--border-focus);
}
.ideia-tab-n {
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  background: var(--surface-2);
  border-radius: 999px;
  min-width: 18px;
  text-align: center;
  padding: 0 5px;
}
.ideia-tab.ativo .ideia-tab-n {
  color: var(--text);
  background: var(--bg);
}

/* Grade: lista de ideias + resumo lateral */
.ideias-grade {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  align-items: start;
}
.ideias-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

/* Card de ideia (largo, em lista) */
.ideia-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.15s ease, transform 0.15s ease, opacity 0.2s ease;
}
.ideia-card:hover {
  border-color: var(--border-focus);
}
.ideia-card.arquivada {
  opacity: 0.62;
}
.ideia-card.revisada {
  border-color: color-mix(in srgb, var(--baixa) 30%, var(--border));
}
.ideia-card-corpo {
  display: flex;
  gap: 14px;
}
.ideia-ic {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--media);
  flex: none;
}
.ideia-ic svg.ic {
  width: 18px;
  height: 18px;
}
.ideia-card-main {
  flex: 1;
  min-width: 0;
}
.ideia-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}
.ideia-titulo {
  margin: 0;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.ideia-quando {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  flex: none;
}
.ideia-desc {
  margin: 6px 0 0;
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.ideia-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
}
.ideia-tag {
  font-size: 11.5px;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 2px 9px;
  text-transform: capitalize;
}
.ideia-prio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 500;
  padding: 2px 9px 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.ideia-prio.alta {
  color: var(--alta);
  border-color: color-mix(in srgb, var(--alta) 35%, transparent);
}
.ideia-prio.media {
  color: var(--media);
  border-color: color-mix(in srgb, var(--media) 35%, transparent);
}
.ideia-prio.baixa {
  color: var(--baixa);
  border-color: color-mix(in srgb, var(--baixa) 35%, transparent);
}

/* Rodapé de ações do card */
.ideia-rodape {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 13px;
  border-top: 1px solid var(--border);
}
.ideia-rodape-acoes {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.ideia-rodape-dir {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ideia-badge {
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.ideia-badge svg.ic {
  width: 11px;
  height: 11px;
}
.ideia-badge.virou,
.ideia-badge.rev {
  color: var(--baixa);
  border-color: color-mix(in srgb, var(--baixa) 40%, transparent);
}

/* Menu "..." */
.ideia-menu-wrap {
  position: relative;
}
.ideia-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 20;
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
  padding: 5px;
  display: none;
}
.ideia-menu-wrap.aberto .ideia-menu {
  display: block;
}
.ideia-menu button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  font: inherit;
  font-size: 13px;
  text-align: left;
  color: var(--text-2);
  background: none;
  border: none;
  border-radius: var(--radius-xs);
  padding: 8px 10px;
  cursor: pointer;
}
.ideia-menu button:hover {
  background: var(--surface-2);
  color: var(--text);
}
.ideia-menu button svg.ic {
  width: 15px;
  height: 15px;
}
.ideia-menu button.perigo:hover {
  color: var(--danger);
}

/* Resumo lateral */
.ideias-resumo {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: sticky;
  top: 20px;
}
.ideias-resumo-tit {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 600;
}
.resumo-stat {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 0;
}
.resumo-stat + .resumo-stat {
  border-top: 1px solid var(--border);
}
.resumo-ic {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  flex: none;
}
.resumo-ic.ok {
  color: var(--baixa);
}
.resumo-ic svg.ic {
  width: 17px;
  height: 17px;
}
.resumo-num {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.resumo-lbl {
  color: var(--text-2);
  font-size: 12.5px;
}
.ideias-resumo-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12.5px;
}
.ideias-resumo-hint svg.ic {
  width: 15px;
  height: 15px;
  flex: none;
}

/* Estado vazio */
.ideias-vazio {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 8px;
  padding: 56px 20px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}
.ideias-vazio-ic {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--media);
  margin-bottom: 4px;
}
.ideias-vazio-ic svg.ic {
  width: 22px;
  height: 22px;
}
.ideias-vazio-tit {
  font-size: 15px;
  font-weight: 600;
}
.ideias-vazio-sub {
  color: var(--muted);
  font-size: 13px;
  max-width: 340px;
  margin-bottom: 8px;
}

@keyframes ideiaSai {
  to {
    opacity: 0;
    transform: scale(0.96) translateY(-6px);
  }
}
.ideia-card.ideia-saindo {
  animation: ideiaSai 0.28s ease forwards;
}

/* ----- Modal ----- */
.modal-fundo {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: grid;
  place-items: center;
  padding: 16px;
  z-index: 50;
}
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: min(440px, 96vw);
  padding: 22px;
}
.modal h3 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 16px;
}
.campo {
  margin-bottom: 13px;
}
.campo-opc {
  color: var(--muted);
  font-weight: 400;
  font-size: 11px;
}
.campo-linha {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.modal-acoes {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

/* ----- Toast ----- */
.toasts {
  position: fixed;
  bottom: 84px; /* acima do botão do chat de consulta */
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 60;
  max-width: min(360px, 90vw);
}
.toast {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  animation: surge 0.34s cubic-bezier(0.22, 1.4, 0.5, 1) both;
}
.toast.ok {
  border-left-color: var(--ok);
}
.toast.erro {
  border-left-color: var(--danger);
}
/* Toast da captura: ícone do balde à esquerda (cores vêm de .fb-<balde>). */
.toast-captura {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.toast-captura .fb-ic {
  margin-top: 1px;
  flex: none;
}

/* ----- Autocomplete de categoria (modal de gasto) ----- */
.campo-ac {
  position: relative;
}
.ac-lista {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--surface-2);
  border: 1px solid var(--border-focus);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  z-index: 5;
  max-height: 216px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 4px;
  animation: surge 0.18s ease both;
}
.ac-item {
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  font: inherit;
  font-size: 12.5px;
  padding: 8px 10px;
  border-radius: 7px;
  cursor: pointer;
  text-transform: capitalize;
}
.ac-item:hover,
.ac-item.ativo {
  background: rgba(255, 255, 255, 0.07);
}

/* ----- Chat de consulta (FAB + popover no canto inferior direito) ----- */
.chat-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-fg);
  border: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 55;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.chat-fab:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
}
.chat-fab:active {
  transform: scale(0.96);
}
.chat-fab.ativo {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border-focus);
}
.chat-fab .ic {
  width: 24px;
  height: 24px;
}
.chat-pop {
  position: fixed;
  bottom: 84px;
  right: 20px;
  width: min(440px, calc(100vw - 40px));
  background: #18181c;
  border: 1px solid var(--border-focus);
  border-radius: var(--radius);
  z-index: 55;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65), 0 4px 16px rgba(0, 0, 0, 0.4);
  /* Abre deslizando do botão (transform-origin no canto), fecha no reverso. */
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity 0.22s ease, transform 0.24s cubic-bezier(0.22, 1.2, 0.36, 1);
}
.chat-pop.aberto {
  opacity: 1;
  transform: none;
}
.chat-pop[hidden] {
  display: none;
}
.chat-topo {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.chat-topo .ic {
  width: 16px;
  height: 16px;
  color: var(--text-2);
  margin-right: 8px;
  vertical-align: -3px;
}
.chat-dica {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}
.chat-msgs {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 240px;
  max-height: min(56vh, 520px);
  overflow-y: auto;
}
.chat-msg {
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-line;
  max-width: 88%;
  font-variant-numeric: tabular-nums;
  animation: chatMsgIn 0.28s cubic-bezier(0.22, 1.2, 0.36, 1) both;
}
@keyframes chatMsgIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
.chat-msg.eu {
  align-self: flex-end;
  background: var(--accent);
  color: var(--accent-fg);
  border-bottom-right-radius: 5px;
}
.chat-msg.bot {
  align-self: flex-start;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-bottom-left-radius: 5px;
}
.chat-msg.erro {
  border-color: var(--danger);
}
/* "Pensando": três pontinhos quicando. */
.chat-dots {
  display: inline-flex;
  gap: 4px;
  padding: 3px 2px;
}
.chat-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-2);
  animation: chatDot 0.9s ease-in-out infinite;
}
.chat-dots i:nth-child(2) {
  animation-delay: 0.15s;
}
.chat-dots i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes chatDot {
  0%,
  100% {
    transform: none;
    opacity: 0.35;
  }
  40% {
    transform: translateY(-4px);
    opacity: 1;
  }
}
.chat-form {
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.chat-form input {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  padding: 14px 16px;
  color: var(--text);
  font: inherit;
  font-size: 13px;
}
.chat-form input::placeholder {
  color: var(--muted);
}
.toast.erro {
  border-left-color: var(--danger);
}
.toast .toast-balde {
  font-weight: 500;
  text-transform: capitalize;
}
/* Notificação de prioridade: bolinha + texto, borda na cor da prioridade. */
.toast-prio {
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast-prio.prio-alta {
  border-left-color: var(--alta);
}
.toast-prio.prio-media {
  border-left-color: var(--media);
}
.toast-prio.prio-baixa {
  border-left-color: var(--baixa);
}
.toast.saindo {
  animation: toastSai 0.28s ease-in forwards;
}
/* Item escondido durante a janela de "desfazer" (não foi apagado no banco). */
.item-removido {
  display: none !important;
}
/* Toast de desfazer: texto + botão "Desfazer" em ciano/acento. */
.toast-desfazer {
  display: flex;
  align-items: center;
  gap: 12px;
}
.td-txt {
  flex: 1;
}
.td-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  background: none;
  border: none;
  color: var(--accent);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 2px;
}
.td-btn:hover {
  text-decoration: underline;
}
.td-btn svg.ic {
  width: 14px;
  height: 14px;
}
/* Entra deslizando da direita com um quiquezinho (estilo cassino). */
@keyframes surge {
  0% {
    opacity: 0;
    transform: translateX(46px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}
@keyframes toastSai {
  to {
    opacity: 0;
    transform: translateX(46px);
  }
}

/* =====================================================================
   VISÃO GERAL — tema "dashboard" (preto-mono). Classes ov-* isoladas
   pra não afetar as outras abas.
   ===================================================================== */
.ov-saud {
  margin-bottom: 22px;
}
.ov-saud h1 {
  margin: 0;
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.ov-saud p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13.5px;
}

/* Métricas */
.ov-metricas {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.ov-metrica {
  display: block;
  padding: 17px 19px;
  transition: border-color 0.12s, background 0.12s;
}
.ov-metrica:hover {
  border-color: var(--border-focus);
  background: var(--surface-2);
}
/* Card urgente (ex.: há tarefas pendentes): destaque vermelho. */
.ov-metrica.ov-urgente {
  border-color: color-mix(in srgb, var(--alta) 55%, var(--border));
  background: color-mix(in srgb, var(--alta) 8%, var(--surface));
}
.ov-metrica.ov-urgente:hover {
  border-color: var(--alta);
  background: color-mix(in srgb, var(--alta) 12%, var(--surface));
}
.ov-metrica.ov-urgente .ov-m-ic,
.ov-metrica.ov-urgente .ov-m-val {
  color: var(--alta);
}
.ov-m-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  color: var(--faint);
}
.ov-m-ic {
  display: inline-grid;
  place-items: center;
}
.ov-m-ic .ic {
  width: 15px;
  height: 15px;
}
.ov-rotulo {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}
.ov-m-corpo {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}
.ov-m-val {
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.ov-m-delta {
  margin-top: 8px;
}
.ov-delta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.ov-delta .ic {
  width: 13px;
  height: 13px;
  stroke-width: 2.2;
}
.ov-delta.up {
  color: var(--baixa);
}
.ov-delta.down {
  color: var(--alta);
}
.ov-delta.ov-flat {
  color: var(--faint);
}
.ov-spark {
  width: 78px;
  height: 30px;
  flex: none;
  opacity: 0.9;
}

/* Grade principal */
.ov-grade {
  display: grid;
  grid-template-columns: 1fr 392px;
  gap: 20px;
  align-items: start;
}
.ov-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.ov-card {
  padding: 20px 22px;
}
.ov-card-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.ov-titulo {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.ov-ver {
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
}
.ov-ver:hover {
  color: var(--text);
}
/* Seletor de período do gráfico (select nativo com cara de pílula). */
.ov-sel {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
  background-color: var(--surface-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238b8d93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6l6 -6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 7px 30px 7px 12px;
  cursor: pointer;
  transition: border-color 0.14s ease;
}
.ov-sel:hover {
  border-color: var(--border-focus);
}
.ov-sel:focus {
  outline: none;
  border-color: var(--border-focus);
}

/* Gráfico */
.ov-chart-sub {
  color: var(--muted);
  font-size: 12.5px;
  margin: 2px 0 14px;
}
.ov-fin-vazio {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 90px 10px;
}
/* Legenda-filtro: liga/desliga cada linha (Total + categorias) */
.ov-fin-legenda {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.ov-fin-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: inherit;
  font-size: 12px;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 11px;
  cursor: pointer;
  opacity: 0.5;
  text-transform: capitalize;
  transition: opacity 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}
.ov-fin-chip:hover {
  opacity: 0.85;
}
.ov-fin-chip.ativo {
  opacity: 1;
  color: var(--text);
  background: var(--surface);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.ov-fin-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
}
.ov-fin-val {
  color: var(--muted);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}
.ov-fin-chip.ativo .ov-fin-val {
  color: var(--text-2);
}
.ov-chart {
  width: 100%;
  position: relative;
}
.ov-svg {
  display: block;
  width: 100%;
  height: auto;
}
/* Crosshair + pontos do hover */
.ov-cross {
  stroke: rgba(255, 255, 255, 0.28);
  stroke-width: 1;
  stroke-dasharray: 3 4;
  pointer-events: none;
}
.ov-hover-pt {
  stroke: var(--bg);
  stroke-width: 2;
  pointer-events: none;
}
/* Linha selecionada x apagadas (realce no hover, com transição). */
.ov-line {
  transition: opacity 0.18s ease, stroke-width 0.18s ease;
}
.ov-line.apagada {
  opacity: 0.12;
}
/* Balão (tooltip) com mês + a categoria sob o mouse — anima ao aparecer. */
.ov-tip {
  position: absolute;
  top: 6px;
  z-index: 5;
  pointer-events: none;
  background: #1b1b1f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  padding: 9px 11px;
  min-width: 150px;
  max-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(5px) scale(0.97);
  transform-origin: top center;
  transition: opacity 0.16s ease, transform 0.16s cubic-bezier(0.22, 1, 0.36, 1);
}
.ov-tip.ativo {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
}
.ov-tip-mes {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}
.ov-tip-l {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  padding: 2px 0;
}
.ov-tip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}
.ov-tip-nome {
  flex: 1;
  color: var(--text-2);
  text-transform: capitalize;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ov-tip-l strong {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.ov-grid line {
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 1;
}
.ov-ylab text {
  fill: var(--muted);
  font-size: 12px;
  text-anchor: end;
}
.ov-xlab text {
  fill: var(--muted);
  font-size: 12px;
  text-anchor: middle;
}

/* Barras de categoria (estilo candle, gradiente por categoria) */
.barras-wrap {
  width: 100%;
}
.ov-barras-svg {
  display: block;
  width: 100%;
  height: auto;
}
.ov-xlab-cat text {
  font-size: 11px;
  text-transform: capitalize;
}
.ov-barra-g {
  cursor: pointer;
}
.ov-barra {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: barGrow 0.5s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  transition: filter 0.18s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* Hover: a barra cresce um toque e brilha (as outras ficam como estão). */
.ov-barra-g:hover .ov-barra {
  transform: scaleY(1.05);
  filter: brightness(1.18) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.45));
}
@keyframes barGrow {
  from {
    transform: scaleY(0.001);
  }
  to {
    transform: scaleY(1);
  }
}
/* Balão com o valor da categoria, acima da barra — aparece no hover. */
.ov-barra-rotulo {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
  pointer-events: none;
}
.ov-barra-g:hover .ov-barra-rotulo {
  opacity: 1;
  transform: translateY(0);
}
.ov-barra-rotulo rect {
  fill: #1f1f23;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 1;
}
.ov-barra-rotulo text {
  fill: var(--text);
  font-size: 12px;
  font-weight: 600;
  text-anchor: middle;
  font-variant-numeric: tabular-nums;
}

/* Categorias */
.ov-cat {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 0;
}
.ov-cat + .ov-cat {
  border-top: 1px solid var(--border);
}
.ov-cat-ic {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text-2);
  flex: none;
}
.ov-cat-ic svg.ic {
  width: 15px;
  height: 15px;
}
.ov-cat-nome {
  font-weight: 500;
  width: 92px;
  flex: none;
  text-transform: capitalize;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ov-cat-bar {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.ov-cat-bar > i {
  display: block;
  height: 100%;
  border-radius: 999px;
}
.ov-cat-val {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  width: 92px;
  text-align: right;
  flex: none;
}
.ov-cat-pct {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  width: 36px;
  text-align: right;
  flex: none;
  font-size: 12px;
}
.ov-rodape-link {
  margin-top: 4px;
  padding-top: 13px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12.5px;
  cursor: pointer;
}
.ov-rodape-link:hover {
  color: var(--text);
}
.ov-rodape-link svg.ic {
  width: 15px;
  height: 15px;
}

/* Dupla tarefas + agenda */
.ov-dupla {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
/* Cards mais altos (a agenda fica ampla, igual à referência). */
.ov-dupla > .ov-card {
  display: flex;
  flex-direction: column;
  min-height: 270px;
}
.ov-dupla .ov-tarefas,
.ov-dupla .ov-agenda {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.ov-dupla .ov-agenda {
  justify-content: center;
}
.ov-tarefa {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  cursor: pointer;
}
.ov-tarefa + .ov-tarefa {
  border-top: 1px solid var(--border);
}
.ov-tarefa:hover .ov-tarefa-txt {
  color: var(--text);
}
.ov-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.6px solid #3a3b40;
  flex: none;
}
.ov-tarefa-txt {
  flex: 1;
  font-weight: 500;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ov-pchip {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  flex: none;
}
.ov-pchip.alta {
  color: var(--alta);
  background: rgba(224, 135, 107, 0.13);
}
.ov-pchip.media {
  color: var(--media);
  background: rgba(227, 182, 103, 0.13);
}
.ov-pchip.baixa {
  color: var(--baixa);
  background: rgba(111, 207, 151, 0.13);
}
.ov-agenda-item {
  display: flex;
  gap: 10px;
  padding: 11px 0;
}
.ov-agenda-item + .ov-agenda-item {
  border-top: 1px solid var(--border);
}
.ov-hora {
  color: var(--text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  flex: none;
}
.ov-agenda-txt {
  color: var(--text-2);
}
.ov-vazio {
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--text-2);
  padding: 30px 10px 24px;
  gap: 10px;
}
.ov-vazio svg.ic {
  width: 26px;
  height: 26px;
  color: var(--muted);
}
.ov-vazio b {
  color: var(--text);
  font-weight: 600;
  display: block;
}

/* Últimos gastos */
.ov-lanc {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 0;
}
.ov-lanc + .ov-lanc {
  border-top: 1px solid var(--border);
}
.ov-lanc-ic {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text-2);
  flex: none;
}
.ov-lanc-ic svg.ic {
  width: 16px;
  height: 16px;
}
.ov-lanc-main {
  flex: 1;
  min-width: 0;
}
.ov-lanc-desc {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ov-lanc-data {
  color: var(--muted);
  font-size: 11.5px;
  margin-top: 1px;
}
.ov-lanc-val {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  flex: none;
}

/* Footer */
.ov-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  color: var(--muted);
  font-size: 12px;
}
.ov-stamp {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.ov-stamp::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--baixa);
}

/* =====================================================================
   MOTION — micro-interações e transições (sutil, premium). Tudo é
   desligado em prefers-reduced-motion (no fim do arquivo).
   ===================================================================== */

/* Entrada dos blocos ao trocar de aba (stagger curto). */
@keyframes blocoIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.view-anim > * {
  animation: blocoIn 0.36s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.view-anim > *:nth-child(1) {
  animation-delay: 0.03s;
}
.view-anim > *:nth-child(2) {
  animation-delay: 0.09s;
}
.view-anim > *:nth-child(3) {
  animation-delay: 0.15s;
}
.view-anim > *:nth-child(4) {
  animation-delay: 0.21s;
}
.view-anim > *:nth-child(5) {
  animation-delay: 0.27s;
}

/* Hover — cards de métrica sobem um toque. */
.ov-metrica {
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}
.ov-metrica:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

/* Hover — painéis ganham borda mais clara (sem subir, são grandes). */
.ov-card,
.card,
.grupo-cat {
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.ov-card:hover,
.grupo-cat:hover {
  border-color: var(--border-focus);
}

/* Hover — linhas de lista destacam suave. */
.ov-lanc,
.ov-cat,
.ov-tarefa,
.leg-item,
.previa-tarefa {
  transition: background 0.14s ease, color 0.14s ease;
}
.ov-lanc:hover,
.ov-cat:hover,
.ov-tarefa:hover {
  background: var(--surface-2);
}

/* Hover — navegação desliza levemente. */
.nav-item {
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.14s ease;
}
.nav-item:hover {
  transform: translateX(2px);
}

/* Hover — botões e ícones. */
.btn {
  transition: filter 0.15s ease, transform 0.08s ease, box-shadow 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.3);
}
.btn:active {
  transform: translateY(0);
  box-shadow: none;
}
.ic-btn {
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease, transform 0.14s ease;
}
.ic-btn:hover {
  transform: translateY(-1px);
  border-color: var(--border-focus);
}
.avatar {
  transition: transform 0.16s ease;
}
.avatar:hover {
  transform: scale(1.05);
}
.chip-prio,
.ver-todos,
.ov-ver,
.ov-rodape-link,
.card-link {
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease, transform 0.14s ease;
}

/* Gráfico — linha "desenha", área e ponto entram em sequência. */
@keyframes ovDraw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes ovFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.ov-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: ovDraw 0.95s ease 0.15s forwards;
}
.ov-area {
  opacity: 0;
  animation: ovFade 0.6s ease 0.55s forwards;
}
.ov-svg circle {
  opacity: 0;
  animation: ovFade 0.4s ease 0.95s forwards;
}

/* Respeita quem prefere menos movimento: desliga animações e transições. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ----- Menu mobile ----- */
.menu-btn {
  display: none;
}

@media (max-width: 980px) {
  /* Ideias: resumo lateral vai pra baixo da lista */
  .ideias-grade {
    grid-template-columns: 1fr;
  }
  .ideias-resumo {
    position: static;
  }
}
@media (max-width: 820px) {
  .app {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: fixed;
    z-index: 40;
    width: 200px;
    transform: translateX(-110%);
    transition: transform 0.2s;
  }
  .sidebar.aberta {
    transform: translateX(0);
  }
  .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: var(--radius-sm);
    padding: 9px;
    flex: none;
  }
  .menu-btn svg.ic {
    width: 18px;
    height: 18px;
  }
  .gastos-grade {
    grid-template-columns: 1fr;
  }
  .painel-grafico {
    position: static;
  }
  .kanban {
    grid-template-columns: 1fr;
  }
  /* Topbar empilha em telas estreitas */
  .topbar {
    flex-wrap: wrap;
    align-items: center;
  }
  .topbar-acoes {
    flex: 1;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .busca {
    flex: 1;
    width: auto;
    min-width: 160px;
  }
  /* Visão geral (dashboard): tudo vira 1 coluna */
  .ov-metricas {
    grid-template-columns: repeat(2, 1fr);
  }
  .ov-grade {
    grid-template-columns: 1fr;
  }
  .ov-dupla {
    grid-template-columns: 1fr;
  }
  /* (resíduo do tema antigo, caso algo ainda use) */
  .resumo-grade,
  .previa-grade {
    grid-template-columns: 1fr;
  }
  /* Seletor de período: empilha presets + calendários e cabe na tela. */
  .periodo-pop {
    flex-direction: column;
    left: 0;
    max-width: calc(100vw - 48px);
    overflow-x: auto;
  }
  .pk-presets {
    flex-direction: row;
    flex-wrap: wrap;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-right: 0;
    padding-bottom: 8px;
    min-width: 0;
  }
  .pk-cals {
    flex-wrap: wrap;
    justify-content: center;
  }
}
@media (min-width: 821px) {
  .menu-btn {
    display: none;
  }
}

/* ----- Visão geral: seletor de período no topo (mesmo componente de Gastos) ----- */
.ov-topo-acoes {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 16px;
}

/* ----- Agenda: grupos por dia + encerrados recolhíveis ----- */
.agenda-dias {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.agenda-dia-tit {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 500;
  margin: 0 0 10px 2px;
}
.agenda-dia-tit strong {
  color: var(--text-2);
  font-weight: 600;
}
.agenda-encerrados {
  margin-top: 18px;
}
/* O rótulo do rodapé é frase normal, não capitaliza como categoria de gasto. */
.agenda-encerrados .grupo-nome {
  text-transform: none;
  font-weight: 500;
  font-size: 13px;
  color: var(--text-2);
  gap: 8px;
}
.agenda-encerrados .grupo-nome svg.ic {
  width: 16px;
  height: 16px;
}
