:root {
  /* — identidade visual "Meu Painel — Redesign" — */
  --bg: #0a0b10;
  --bg2: #0f1118;          /* bg-elev */
  --card: #14161e;         /* surface */
  --card2: #1a1d27;        /* surface-2 */
  --line: rgba(255,255,255,.06);   /* hair */
  --hair-2: rgba(255,255,255,.10);
  --txt: #f1f2f7;
  --muted: #9aa0b0;
  --faint: #6c7180;
  --accent: #7c6cf0;
  --accent2: #9a72f2;
  --accent-rgb: 124,108,240;
  --grad: linear-gradient(135deg, var(--accent), var(--accent2));
  --green: #3ad29f;
  --red: #f96d77;
  --amber: #f5b945;
  /* aliases p/ nomes do design system */
  --primary: var(--accent);
  --primary-2: var(--accent2);
  --surface: var(--card);
  --surface-2: var(--card2);
  --hair: var(--line);
  --radius: 16px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

/* scrollbar escura no tema (macOS com mouse mostra scrollbar permanente e a
   nativa vem clara, estourando no fundo escuro). containers que escondem a
   sua (scrollbar-width:none / display:none) continuam valendo — regra no
   elemento vence a universal. */
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.16) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 8px;
  border: 2px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.28); background-clip: padding-box; }
*::-webkit-scrollbar-corner { background: transparent; }
html, body {
  margin: 0; padding: 0; height: 100%;
  background: var(--bg); color: var(--txt);
  font-family: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;            /* mata o "scroll fantasma" lateral (gaveta off-canvas) */
  overscroll-behavior-x: none;   /* sem rubber-band horizontal */
}
/* app em tela cheia: o shell trava em 100dvh e a rolagem vai pra dentro do
   .view. assim o body nao rola e nao sobra faixa morta no rodape no PWA iOS */
body { height: 100dvh; overflow: hidden; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
button { font-family: inherit; cursor: pointer; border: none; }
input, textarea, select {
  font-family: inherit; font-size: 16px;
  background: var(--bg2); color: var(--txt);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; width: 100%; outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
label { font-size: 13px; color: var(--muted); display: block; margin: 12px 0 6px; }

/* ---------- LOGIN ---------- */
.login { position: fixed; inset: 0; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(120% 100% at 50% 0%, rgba(var(--accent-rgb),.22) 0%, var(--bg) 55%); }
.login-card { width: 100%; max-width: 340px; text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 32px 24px; }
.login-logo { font-size: 44px; }
.login-card h1 { margin: 8px 0 2px; font-size: 24px; }
.login-card p { margin: 0 0 22px; font-size: 14px; }
.login-card input { text-align: center; margin-bottom: 12px; }
.login-card button { width: 100%; padding: 14px; border-radius: 13px; font-size: 16px; font-weight: 700;
  color: #fff; background: var(--grad); box-shadow: 0 8px 22px rgba(var(--accent-rgb),.32); }
.erro { color: var(--red); font-size: 13px; margin-top: 12px; }

/* ---------- APP SHELL ---------- */
.app { display: flex; flex-direction: column; }
.topbar { flex-shrink: 0; position: sticky; top: 0; z-index: 20;
  padding: calc(var(--safe-t) + 4px) 18px 10px; display: flex; align-items: center; justify-content: space-between;
  background: rgba(11,14,22,.82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar-title { font-size: 22px; font-weight: 700; }
.topbar-ver { position: absolute; right: 18px; bottom: 3px; font-size: 9px; color: var(--faint); opacity: .7; letter-spacing: .04em; pointer-events: none; }
.net-badge { position: absolute; left: 50%; transform: translateX(-50%); bottom: 4px;
  font-size: 11px; font-weight: 600; padding: 2px 10px; border-radius: 999px; white-space: nowrap; pointer-events: none; }
.net-badge:empty { display: none; }
.net-badge[data-state="off"] { background: rgba(245,185,69,.18); color: var(--amber); }
.net-badge[data-state="sync"] { background: rgba(124,108,240,.2); color: var(--accent); }
.icon-btn { background: var(--card2); color: var(--txt); width: 38px; height: 38px; border-radius: 11px;
  font-size: 16px; display: grid; place-items: center; }
.main-area { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.view { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 16px 16px 0; max-width: 760px; width: 100%; margin: 0 auto; }
/* folga no fim da rolagem = altura do FAB (58) + distancia dele da borda (16) + 16 de respiro:
   o ultimo item e o botao "Paguei" sempre sobem acima do + (Rugno, 03/11/2026).
   (ja foi 120px, que sobrava faixa preta, e 24px, que deixava o fim escondido atras do +) */
body.with-fab .view { padding-bottom: calc(90px + var(--safe-b)); }

/* ---------- SIDEBAR / DRAWER ---------- */
/* o #app preenche EXATAMENTE a area visivel. no iOS/Chrome a barra do navegador
   aparece/some e o 100dvh/inset:0 nao acompanha, sobrando faixa preta no rodape.
   por isso o JS (setAppHeight) seta --app-h = visualViewport.height e atualiza
   em todo resize/scroll/rotacao. fallbacks: 100dvh -> 100vh pra quem nao tem JS. */
#app { position: fixed; left: 0; right: 0;
  top: var(--app-top, 0px);   /* acompanha o visualViewport.offsetTop: no iOS o teclado rola a pagina */
  height: 100vh; height: 100dvh; height: var(--app-h, 100dvh); }
.sidebar { position: fixed; top: 0; left: 0; bottom: 0; z-index: 50; width: 248px;
  background: var(--bg2); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: calc(var(--safe-t) + 16px) 12px 16px;
  transform: translateX(-100%); transition: transform .22s ease; }
.sidebar.open { transform: translateX(0); box-shadow: 0 0 40px rgba(0,0,0,.5); }
.sidebar-brand { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800;
  letter-spacing: -.01em; padding: 6px 10px 18px; }
.sidebar-brand .logo { width: 30px; height: 30px; border-radius: 9px; background: var(--grad);
  display: grid; place-items: center; font-size: 16px;
  box-shadow: 0 4px 12px rgba(var(--accent-rgb),.4); }
.sidenav { display: flex; flex-direction: column; gap: 3px; flex: 1; overflow-y: auto; }
.navitem { display: flex; align-items: center; gap: 13px; width: 100%;
  background: none; color: var(--muted); font-size: 15px; font-weight: 600; text-align: left;
  padding: 12px 14px; border-radius: 12px; transition: .14s; }
.navitem span { width: 24px; display: grid; place-items: center; flex-shrink: 0; }
.navitem span svg { width: 21px; height: 21px; display: block; }
.icon-btn svg { width: 20px; height: 20px; display: block; }
.fab svg { width: 26px; height: 26px; }
.navitem:hover { background: var(--card); color: var(--txt); }
.navitem.active { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(var(--accent-rgb),.3); }
.navitem-claude { color: #c4b5fd; }
.navitem-claude.active { background: linear-gradient(135deg, #8b5cf6, #d946ef); }
.navitem-sair { margin-top: 8px; border-top: 1px solid var(--line); border-radius: 0; padding-top: 16px; color: var(--muted); }
.navitem-sair:hover { color: var(--red); background: none; }
.scrim { position: fixed; inset: 0; z-index: 45; background: rgba(0,0,0,.55);
  opacity: 0; pointer-events: none; transition: opacity .2s; }
.scrim.show { opacity: 1; pointer-events: auto; }

/* desktop: sidebar fixa, conteúdo deslocado */
@media (min-width: 880px) {
  .sidebar { transform: translateX(0); box-shadow: none; }
  .main-area { margin-left: 248px; }
  .menu-btn { display: none; }
  .topbar > #btn-sair { display: none; }
  .scrim { display: none; }
}

/* ---------- FAB ---------- */
.fab { position: fixed; right: 18px; bottom: calc(16px + var(--safe-b)); z-index: 31; /* colado embaixo, acima da barra do sistema (03/11/2026; era 74px, sobra de barra antiga) */
  width: 58px; height: 58px; border-radius: 18px; font-size: 30px; color: #fff; line-height: 1;
  background: var(--grad);
  box-shadow: 0 10px 28px rgba(var(--accent-rgb),.45); }
.fab:active { transform: scale(.92); }
/* lupa de busca de tarefas: flutua ACIMA do + (mesma coluna à direita) */
.fab-busca { bottom: calc(86px + var(--safe-b)); width: 50px; height: 50px; border-radius: 16px;
  background: var(--card2); color: var(--txt); border: 1px solid var(--hair-2);
  display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0,0,0,.4); }
.fab-busca svg { width: 22px; height: 22px; }
.fab-busca.ativa { background: var(--grad); color: #fff; border-color: transparent; }
/* barra de busca de tarefas */
.tar-busca { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.tar-busca input { flex: 1; }
.tar-busca-x { flex-shrink: 0; width: 38px; height: 38px; border-radius: 11px; background: var(--card2);
  color: var(--muted); border: 1px solid var(--line); font-size: 14px; }

/* ---------- CARDS / COMUM ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; margin-bottom: 12px; }
.section-title { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em;
  color: var(--faint); margin: 22px 4px 10px; }
.section-title.sec-toggle { display: flex; align-items: center; gap: 7px; cursor: pointer;
  -webkit-user-select: none; user-select: none; }
.section-title.sec-toggle .sec-label { flex: 1; min-width: 0; }
.section-title.sec-toggle .dia-chevron { font-size: 10px; transition: transform .18s ease; }
.section-title.sec-toggle.col { margin-bottom: 22px; }
.section-title.sec-toggle.col .dia-chevron { transform: rotate(-90deg); }
.row { display: flex; align-items: center; gap: 12px; }
.between { justify-content: space-between; }
.pill { font-size: 11px; padding: 3px 9px; border-radius: 999px; background: var(--card2); color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 40px 20px; }
.empty .big { font-size: 40px; display: block; margin-bottom: 10px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.grid3 .stat { padding: 12px; }
.grid3 .stat .n { font-size: 22px; }

/* progress */
.bar { height: 7px; background: var(--bg2); border-radius: 999px; overflow: hidden; margin-top: 10px; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 999px; }

/* botões */
.btn { padding: 14px; border-radius: 13px; font-weight: 700; font-size: 15px; width: 100%;
  color: #fff; background: var(--grad); box-shadow: 0 8px 22px rgba(var(--accent-rgb),.32); }
.btn:active { transform: scale(.98); }
.btn-ghost { background: var(--card2); color: var(--txt); }
.btn-danger { background: rgba(239,68,68,.14); color: var(--red); }
.btn-sm { padding: 8px 12px; font-size: 13px; width: auto; border-radius: 10px; }
.chip { padding: 7px 12px; border-radius: 999px; font-size: 13px; background: var(--card2); color: var(--muted); border: 1px solid transparent; }
.chip.active { color: #fff; background: var(--grad); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- DASHBOARD ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(165deg, #181a26, #121219);
  border: 1px solid var(--hair-2); border-radius: 22px; padding: 20px; margin-bottom: 14px; }
.hero::after { content: ''; position: absolute; top: -55%; right: -25%; width: 75%; height: 150%;
  background: radial-gradient(circle, rgba(var(--accent-rgb),.30), transparent 62%); pointer-events: none; }
.hero > * { position: relative; }
.hero .saldo { font-size: 34px; font-weight: 800; letter-spacing: -.025em; margin: 3px 0 0; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.stat .n { font-size: 26px; font-weight: 800; }
.stat .l { font-size: 12px; color: var(--muted); }

/* ---------- SWITCH (interruptor) ---------- */
.switch { position: relative; width: 46px; height: 28px; border-radius: 999px; background: var(--card2);
  border: 1px solid var(--line); flex-shrink: 0; transition: background .16s; }
.switch i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.35); transition: transform .16s; }
.switch.on { background: var(--green); border-color: var(--green); }
.switch.on i { transform: translateX(18px); }

/* ---------- SEGMENTED (sub-abas) ---------- */
.segmented { display: flex; gap: 4px; background: var(--bg2); border: 1px solid var(--line);
  border-radius: 13px; padding: 4px; margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.segmented::-webkit-scrollbar { display: none; }
.seg { flex: 1 0 auto; padding: 9px 14px; border-radius: 9px; font-size: 13.5px; font-weight: 600;
  white-space: nowrap; background: none; color: var(--muted); transition: .15s; }
.seg.active { background: var(--grad); color: #fff; box-shadow: 0 4px 14px rgba(var(--accent-rgb),.32); }

/* ---------- CONTAS ---------- */
.contas-scroll { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 6px; margin-bottom: 6px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.contas-scroll::-webkit-scrollbar { display: none; }
.conta-card { flex: 0 0 auto; min-width: 140px; background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 14px; }
.conta-top { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.conta-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
.conta-saldo { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.conta-card.add { min-width: auto; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--muted); border-style: dashed; font-size: 12px; gap: 2px; padding: 14px 18px; }
.conta-card.add span { font-size: 22px; }
.conta-badge { font-size: 11px; padding: 2px 8px; border-radius: 999px; margin-right: 6px; font-weight: 600; }

/* ---------- SYNC BANCOS ---------- */
.sync-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.btn-sync { padding: 10px 16px; border-radius: 12px; font-weight: 600; font-size: 14px; color: #fff;
  background: linear-gradient(135deg, #22c55e, #16a34a); }
.btn-sync:disabled { opacity: .7; }

/* ---------- EXTRATO ---------- */
.extrato-bar { margin-bottom: 12px; }
.extrato-bar input { font-size: 15px; }

/* pílulas de filtro — fila horizontal rolável (sem quebrar feio) */
.filtros { display: flex; gap: 8px; margin: 10px 0 2px; overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
.filtros::-webkit-scrollbar { display: none; }
.fpill { display: inline-flex; align-items: center; gap: 5px; padding: 8px 13px; border-radius: 999px;
  font-size: 13px; font-weight: 600; white-space: nowrap; flex: 0 0 auto;
  background: var(--card2); color: var(--muted); border: 1px solid var(--line); }
.fpill .fchev { font-size: 10px; opacity: .7; }
.fpill.on { background: var(--grad); color: #fff; border-color: transparent; }
.fpill.open { border-color: var(--accent); color: var(--txt); }
.fdrop { display: flex; flex-direction: column; gap: 2px; margin: 8px 0 4px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 6px; }
.fopt { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
  padding: 11px 12px; border-radius: 10px; font-size: 14.5px; color: var(--txt); background: none; }
.fopt:hover { background: var(--card2); }
.fopt.on { background: rgba(var(--accent-rgb), .15); color: var(--accent); font-weight: 600; }

/* ---------- LISTAS ---------- */
.item { background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px; margin-bottom: 10px; }
/* cards/itens clicáveis: mãozinha no desktop (sem isso parece que não dá pra clicar) */
[data-empresa], [data-tarefa], [data-compra], [data-aval], [data-atv],
[data-evento], [data-trans], [data-meta], [data-bem], [data-manut], [data-nota] { cursor: pointer; }
.item h4 { margin: 0 0 2px; font-size: 16px; }
.item .sub { font-size: 13px; color: var(--muted); }
.amount { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.amount.in { color: var(--green); }
.amount.out { color: var(--red); }

/* hábitos */
.habit { display: flex; align-items: center; gap: 14px; }
.habit .emoji { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 22px; flex-shrink: 0; }
.check { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--line); background: var(--bg2);
  display: grid; place-items: center; font-size: 20px; flex-shrink: 0; transition: .12s; }
.check.on { border-color: var(--green); background: rgba(34,197,94,.18); }
.week { display: flex; gap: 5px; margin-top: 10px; }
.week i { flex: 1; height: 26px; border-radius: 7px; background: var(--bg2); display: grid; place-items: center;
  font-size: 9px; color: var(--muted); font-style: normal; }
.week i.on { background: rgba(34,197,94,.25); color: var(--green); }
.week i.tgt:not(.on) { box-shadow: inset 0 -2px 0 var(--accent); color: var(--accent); }
.week i.today { outline: 2px solid var(--accent); }

/* notas */
.notes-grid { columns: 2; column-gap: 10px; }
@media (max-width: 380px) { .notes-grid { columns: 1; } }
.note { break-inside: avoid; border-radius: 14px; padding: 14px; margin-bottom: 10px; border: 1px solid var(--line); }
.note h4 { margin: 0 0 6px; font-size: 15px; }
.note p { margin: 0; font-size: 13px; color: var(--muted); white-space: pre-wrap; }
.note .pin { float: right; }

/* ---------- MODAL ---------- */
/* touch-action pan-y + overscroll contain: mata o "arrastão" horizontal (rubber-band
   do iOS que deformava o modal e voltava ao soltar); mantém só o scroll vertical */
/* segue o visualViewport (igual o #app): no iOS, quando o teclado abre, a --app-h/--app-top
   encolhem o modal pra área VISÍVEL → o campo fica acima do teclado e o iOS abre o teclado.
   Com inset:0 (viewport cheia) o campo ficava na zona do teclado num fixed que não rola →
   focava (anel roxo) mas o teclado não subia. */
.modal { position: fixed; left: 0; right: 0; top: var(--app-top, 0px); height: var(--app-h, 100dvh);
  z-index: 60; display: flex; align-items: flex-end; justify-content: center;
  touch-action: pan-y; overscroll-behavior: contain; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); touch-action: none; }
/* max-height em % do .modal (que já segue --app-h), NÃO em vh: com o teclado aberto o
   modal encolhe pra área visível, mas 88vh continuava sendo 88% da TELA CHEIA → a card
   ficava mais alta que o modal e, alinhada pelo rodapé, o topo (campo "Tarefa") sumia
   pra cima da tela sem ter como rolar até ele. */
.modal-card { position: relative; width: 100%; max-width: 560px;
  background: var(--bg2); border: 1px solid var(--line); border-radius: 22px 22px 0 0;
  padding: 20px 18px calc(24px + var(--safe-b)); max-height: min(88vh, 100%); overflow-y: auto;
  touch-action: pan-y; overscroll-behavior: contain;
  animation: up .22s ease; }
/* slider precisa controlar o próprio arraste horizontal do thumb */
.modal-card input[type="range"] { touch-action: none; }
@media (min-width: 560px) { .modal { align-items: center; } .modal-card { border-radius: 22px; } }
@keyframes up { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.modal-head h3 { margin: 0; font-size: 19px; }
.modal-actions { display: flex; gap: 10px; margin-top: 20px; }

/* ---------- TAREFAS ---------- */
.tarefa { display: flex; align-items: flex-start; gap: 12px; }
/* título gigante sem espaço (ex: "lutas/eventos/filmes/games") quebra linha em
   vez de empurrar o botão "→ Semana" pra fora do card: o filho flex de conteúdo
   precisa de min-width:0 (senão min-content da palavra trava o encolhimento) */
.tarefa > div { min-width: 0; }
.prio { flex-shrink: 0; }
.item h4, .item .sub { overflow-wrap: anywhere; }
.tarefa .box { width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--line);
  background: var(--bg2); display: grid; place-items: center; font-size: 15px; flex-shrink: 0; margin-top: 1px; transition: .12s; }
.tarefa .box.on { background: var(--green); border-color: var(--green); color: #04210f; }
.tarefa .box.cancel { background: rgba(249,109,119,.14); border-color: transparent; font-size: 13px; cursor: default; }
.tarefa.done h4 { text-decoration: line-through; color: var(--muted); }
.lemb-dot { width: 24px; height: 24px; display: grid; place-items: center; font-size: 15px; flex-shrink: 0; margin-top: 1px; }
.item.tarefa.cancelada { opacity: .6; }
.item.tarefa.cancelada h4 { text-decoration: line-through; color: var(--muted); }
.tarefa-cancel { font-size: 11px; font-weight: 700; color: var(--red); margin-left: 6px; background: rgba(249,109,119,.14); padding: 1px 6px; border-radius: 6px; vertical-align: middle; }
.item.suspensa { opacity: .5; }
.section-title.suspensas-head { margin-top: 26px; color: var(--faint); }
.sub.sus-dia-sub { margin: 12px 4px 6px; opacity: .7; font-weight: 600; }
/* ---------- AVALIAÇÕES (estrelas) ---------- */
.stars-ro { letter-spacing: 1px; color: var(--amber); font-size: 15px; }
.stars-ro .off { color: var(--line); }
.aval-fav { font-size: 13px; }
.aval-stars { display: flex; gap: 4px; align-items: center; margin: 2px 0 4px; }
.aval-stars .star { background: none; border: none; padding: 0 2px; font-size: 30px; line-height: 1; color: var(--line); cursor: pointer; }
.aval-stars .star.on { color: var(--amber); }
.aval-stars .star-clear { background: var(--card2); color: var(--muted); border: none; border-radius: 8px; width: 30px; height: 30px; margin-left: 6px; cursor: pointer; font-size: 14px; }
.prio { width: 4px; align-self: stretch; border-radius: 4px; margin-right: 2px; }
.prio-alta { background: var(--red); } .prio-media { background: var(--amber); } .prio-baixa { background: var(--muted); }
.tag-prazo { font-size: 11px; color: var(--amber); }
/* Home: badge da empresa + data na MESMA linha (data à direita do badge) */
.tarefa-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 4px; margin-top: 4px; }
.tarefa-meta .conta-badge { margin-right: 0; }

/* planner Por dia (Seg→Dom) */
.dia-head { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 800; letter-spacing: -.01em;
  margin: 22px 2px 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.dia-head:first-child { margin-top: 4px; }
.dia-head.hoje { color: var(--accent); }
.dia-head.clicavel { cursor: pointer; -webkit-user-select: none; user-select: none; }
.dia-head .dia-nome { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
/* data do dia (02/11) ao lado do nome, mais apagada */
.dia-data { font-size: 13px; font-weight: 600; color: var(--faint); letter-spacing: 0; font-variant-numeric: tabular-nums; margin-left: -2px; }
.dia-chevron { font-size: 13px; color: var(--muted); transition: transform .18s ease; line-height: 1; }
.dia-head.col .dia-chevron { transform: rotate(-90deg); }
.dia-count { font-size: 12px; font-weight: 700; color: var(--muted); background: var(--card2);
  min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; display: inline-flex;
  align-items: center; justify-content: center; }
.dia-count.ok { color: var(--green); }
/* Agenda dentro do Por dia: compromisso é pra LEMBRAR (sem caixinha, não conta como pendente) */
.dia-ev { font-size: 12px; font-weight: 700; color: #38bdf8; background: rgba(56,189,248,.13);
  height: 22px; padding: 0 8px; border-radius: 999px; display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.ag-bloco { background: rgba(56,189,248,.06); border: 1px dashed rgba(56,189,248,.38); border-radius: 14px;
  padding: 8px 12px 2px; margin-bottom: 12px; }
.ag-label { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #38bdf8; margin: 2px 0 4px; }
.ag-ev { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid rgba(56,189,248,.14); }
.ag-label + .ag-ev { border-top: 0; }
.ag-ev.passou { opacity: .55; }
.ag-hora { width: 50px; flex-shrink: 0; font-size: 16px; font-weight: 800; color: #38bdf8;
  font-variant-numeric: tabular-nums; letter-spacing: -.01em; line-height: 1.1; }
.ag-hora.todo { font-size: 11px; font-weight: 700; color: var(--muted); line-height: 1.2; }
.ag-hora.bolo { font-size: 20px; }
.ag-tx { flex: 1; min-width: 0; }
.ag-tit { font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.ag-sub { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin-top: 3px; font-size: 12.5px; color: var(--muted); }
.ag-tipo { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 6px; }
.ag-local { overflow-wrap: anywhere; }
.dia-hoje { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: #fff; background: var(--grad); padding: 2px 8px; border-radius: 999px; }
.dia-sub { font-size: 11.5px; font-weight: 700; color: var(--faint); letter-spacing: .04em;
  margin: 12px 4px 7px; }
.ev-verif { display: inline-flex; align-items: center; font-size: 10.5px; font-weight: 700;
  color: var(--amber); background: rgba(245,185,69,.16); border: 1px solid rgba(245,185,69,.3);
  padding: 1px 7px; border-radius: 999px; vertical-align: middle; margin-left: 4px; }
.btn-voltar { background: var(--card2); color: var(--txt); font-size: 13px; font-weight: 600;
  padding: 8px 14px; border-radius: 10px; margin-bottom: 14px; display: inline-flex; align-items: center; gap: 4px; }
.btn-voltar:active { transform: scale(.96); }
.eye-btn { background: transparent; color: var(--muted); width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; margin: -4px -4px -4px 0; }
.eye-btn:active { transform: scale(.9); }
.eye-btn svg { width: 19px; height: 19px; display: block; }
.tarefa-hora { font-size: 13px; font-weight: 700; color: var(--accent); white-space: nowrap; align-self: flex-start; margin-left: 6px; }
.tarefa-pp { background: var(--bg2); color: var(--accent); border: 1px solid var(--line); border-radius: 9px; width: 30px; height: 30px; font-size: 15px; flex-shrink: 0; align-self: center; }
.tarefa-adiar { background: var(--bg2); color: var(--accent); border: 1px solid var(--line); border-radius: 9px; width: 32px; height: 32px; font-size: 16px; flex-shrink: 0; align-self: center; margin-left: 8px; }
.tarefa-moved { font-size: 11px; font-weight: 700; color: var(--accent); margin-left: 6px; background: rgba(var(--accent-rgb),.15); padding: 1px 6px; border-radius: 6px; vertical-align: middle; }
.tarefa-tag { font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 6px; vertical-align: middle; white-space: nowrap; }
.tarefa-tag.fixa { color: var(--red); background: rgba(249,109,119,.14); }
.tarefa-tag.var { color: var(--amber); background: rgba(245,158,11,.15); }
.manut .manut-emoji { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 21px; flex-shrink: 0; }
.manut-ok { align-self: center; white-space: nowrap; }
/* ---------- PROJETOS: listas como "pastas" ---------- */
.pasta { background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 4px 14px; margin: 14px 0; }
.pasta-head { display: flex; align-items: center; gap: 10px; padding: 13px 0 5px; }
.pasta-nome { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px;
  font-size: 17px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.pasta-ico { font-size: 18px; flex-shrink: 0; }
.pasta-count { font-size: 11.5px; font-weight: 700; color: var(--muted);
  background: var(--card2); padding: 3px 9px; border-radius: 999px; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.pasta-vazia { font-size: 13px; color: var(--faint); padding: 2px 0 13px; }
/* itens dentro da pasta: planos, separados por uma linha — sem cartão aninhado */
.item.pasta-item { background: transparent; border: 0; border-top: 1px solid var(--line);
  border-radius: 0; padding: 12px 0; margin: 0; }

/* ---------- LINHA DO TEMPO (lembretes pessoais) ---------- */
.tl { position: relative; margin: 6px 0 4px; padding-left: 26px; }
.tl::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 12px; width: 2px;
  background: var(--line); border-radius: 2px; }
.tl-item { position: relative; margin-bottom: 14px; }
.tl-dot { position: absolute; left: -24px; top: 26px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--bg); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .14); }
.tl-date { font-size: 11.5px; font-weight: 700; color: var(--muted); letter-spacing: .03em; margin: 0 0 5px 2px; }
.tl-item .item { margin-bottom: 0; }
.tl-late .tl-dot { background: var(--amber); box-shadow: 0 0 0 3px rgba(245,185,69,.16); }
.tl-late .tl-date { color: var(--amber); }
.item.venc { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 8px; }
.venc h4 { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.venc .venc-emoji { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 17px; flex-shrink: 0; }
.venc-right { display: flex; flex-direction: row; align-items: center; gap: 10px; flex-shrink: 0; }
.venc-val { font-weight: 800; font-size: 15px; white-space: nowrap; }
.venc-pagar { background: rgba(34,197,94,.16); color: var(--green); font-weight: 700; padding: 6px 12px; }
.via-stars { display: flex; gap: 6px; margin-top: 4px; }
.via-star { background: none; border: none; padding: 0; font-size: 30px; line-height: 1; cursor: pointer; color: var(--line); transition: color .12s; }
.via-star.on { color: var(--amber); }
.notif-li { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--line); }
.notif-li:last-of-type { border-bottom: none; }
.notif-emoji { font-size: 20px; flex-shrink: 0; line-height: 1.35; }
.notif-jarvis { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.notif-jarvis:empty { display: none; }
.nj-tit { font-size: 11.5px; font-weight: 700; opacity: .65; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.nj-bat { font-size: 13px; padding: 2px 0; }
.nj-al { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0 2px; margin-top: 5px; border-top: 1px solid var(--line); font-size: 13px; }
.nj-quando { flex-shrink: 0; font-size: 11.5px; white-space: nowrap; }
.feito-stamp { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px;
  font-size: 11px; font-weight: 700; color: var(--green); background: rgba(58,210,159,.14);
  border: 1px solid rgba(58,210,159,.28); padding: 2px 8px; border-radius: 999px;
  font-variant-numeric: tabular-nums; }
.atv-send { flex-shrink: 0; align-self: center; white-space: nowrap; font-size: 12.5px; color: var(--accent); border: 1px solid var(--accent); background: rgba(99,102,241,.12); }
.mes-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 8px 10px; }
.mes-nome { font-size: 16px; font-weight: 700; }
.semana-nav .semana-info { text-align: center; flex: 1; }

/* ---------- Vínculo pagamento ↔ extrato ---------- */
.vinc-box { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.vinc-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--bg2); border-radius: 11px; margin-bottom: 6px; }
.vinc-desc { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vinc-x { background: none; border: none; color: var(--muted); font-size: 15px; cursor: pointer; padding: 4px 6px; border-radius: 8px; flex-shrink: 0; }
.vinc-x:hover { color: var(--red); background: var(--card2); }
.vinc-cands { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; max-height: 50vh; overflow-y: auto; }
.vinc-cand { display: flex; align-items: center; gap: 10px; padding: 10px; background: var(--bg2); border: 1px solid var(--line); border-radius: 11px; cursor: pointer; color: var(--txt); }
.vinc-cand:hover { border-color: var(--accent); }
.semana-nav .semana-range { font-size: 12px; color: var(--muted); margin-top: 1px; }
.semana-hoje { display: block; margin: -2px auto 12px; }

/* ---------- EVENTOS ---------- */
.ev-mes-head { display: flex; align-items: center; justify-content: space-between;
  margin: 20px 2px 10px; padding-bottom: 8px; border-bottom: 1px solid var(--hair-2); }
.ev-mes-head > span:first-child { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.evento { display: flex; gap: 14px; align-items: center; }
.evento .datebox { width: 52px; flex-shrink: 0; text-align: center; border-radius: 12px;
  background: var(--card2); padding: 8px 4px; }
.evento .datebox .d { font-size: 20px; font-weight: 800; line-height: 1; }
.evento .datebox .m { font-size: 10px; text-transform: uppercase; color: var(--muted); margin-top: 2px; }

/* ---------- CLAUDE CHAT ---------- */
/* o shell ja preenche 100dvh; aqui o chat so desliga o scroll do .view
   (quem rola e a lista .chat-msgs) e tira o padding pra ocupar tudo. */
.view.view-chat { padding: 0; max-width: none; overflow: hidden; }
.chat-wrap { display: flex; flex-direction: column; height: 100%; max-width: 760px; margin: 0 auto; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.bubble { max-width: 84%; padding: 12px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
/* markdown do assistente: os blocos já quebram linha → desliga o pre-wrap só aqui */
.bubble .md { white-space: normal; }
.bubble .md-h { font-weight: 700; font-size: 15px; margin: 9px 0 3px; }
.bubble .md-h:first-child { margin-top: 0; }
.bubble .md-ul { margin: 4px 0; padding-left: 20px; }
.bubble .md-ul li { margin: 2px 0; }
.bubble .md-hr { border: 0; border-top: 1px solid var(--line); margin: 9px 0; opacity: .6; }
.bubble .md-sp { height: 7px; }
.bubble code { background: rgba(255,255,255,.10); padding: 1px 5px; border-radius: 5px; font-size: 13px; }
.bubble.user { align-self: flex-end; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; border-bottom-right-radius: 5px; }
.bubble.bot { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.bubble.bot.thinking { color: var(--muted); font-style: italic; }
.chat-hello { text-align: center; color: var(--muted); margin: auto 0; padding: 30px 20px; }
.chat-hello .big { font-size: 44px; display: block; margin-bottom: 12px; }
.chat-suggests { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.chat-suggests button { background: var(--card2); color: var(--txt); border: 1px solid var(--line); padding: 9px 13px; border-radius: 999px; font-size: 13px; }
.chat-input { display: flex; align-items: flex-end; gap: 8px; padding: 10px 16px max(10px, var(--safe-b)); border-top: 1px solid var(--line); background: var(--bg); }
.chat-input textarea { resize: none; max-height: 120px; border-radius: 18px; padding: 11px 16px; flex: 1; }
.chat-input .send { width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; font-size: 18px; }
.chat-input .send:disabled { opacity: .5; }
.chat-input .attach { width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; background: var(--card2); border: 1px solid var(--line); color: var(--txt); font-size: 18px; }
/* anexos pendentes */
.chat-anexos { display: none; }
.chat-anexos.has { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 16px 0; }
.anexo-chip { display: flex; align-items: center; gap: 6px; background: var(--card2); border: 1px solid var(--line); border-radius: 12px; padding: 4px 6px; max-width: 200px; }
.anexo-chip img { width: 34px; height: 34px; object-fit: cover; border-radius: 7px; }
.anexo-chip .pdf { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; background: var(--accent); color: #fff; border-radius: 7px; font-size: 11px; font-weight: 700; }
.anexo-chip .nome { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.anexo-chip button { color: var(--muted); font-size: 13px; padding: 2px 4px; }
/* anexos dentro do balão */
.bubble-img { display: block; max-width: 220px; max-height: 260px; border-radius: 12px; margin-bottom: 6px; }
.bubble-file { display: inline-block; background: rgba(255,255,255,.15); border-radius: 10px; padding: 6px 10px; font-size: 13px; margin-bottom: 6px; }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(96px + var(--safe-b)); transform: translateX(-50%); z-index: 80;
  background: var(--card2); border: 1px solid var(--line); color: var(--txt);
  padding: 11px 18px; border-radius: 999px; font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.4); }

/* ---------- INVESTIMENTOS (carteira estilo TradeMap) ---------- */
.inv-hero { background: linear-gradient(135deg, #141b2e, #1a1730); overflow: hidden; }
.inv-hero::after { content: none; }
.inv-hero .saldo { font-size: 27px; }
.inv-hero > .row > div:first-child { min-width: 0; }
.inv-evo { margin-top: 20px; }
.inv-evo-valor { font-size: 20px; font-weight: 700; }
.inv-evo-valor span { font-size: 16px; }
.inv-evo-grafico { margin: 12px -8px 16px; }
.inv-evo-grafico svg { display: block; width: 100%; height: 200px; }
.inv-evo-datas { display: flex; justify-content: space-between; padding: 0 8px; color: var(--muted); font-size: 11px; }
.inv-evo-vazio { min-height: 160px; display: grid; place-content: center; text-align: center; color: var(--muted); font-size: 13px; line-height: 1.7; padding: 20px; }
.inv-periodos { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; padding: 3px 0 10px; }
.inv-periodo { flex: 0 0 auto; padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; }
.inv-periodo.active { color: var(--txt); background: var(--accent); border-color: var(--accent); }
.inv-periodo:focus-visible { outline: 2px solid var(--txt); outline-offset: 2px; }
@media (min-width: 880px) {
  .inv-periodos { flex-wrap: wrap; overflow: visible; gap: 6px; padding-bottom: 3px; }
  .inv-periodo { flex: 1 1 auto; padding-inline: 10px; white-space: nowrap; }
}
.inv-evo-nota { margin-top: 6px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.inv-evo-nota details { margin-top: 8px; }
.inv-evo-nota summary { cursor: pointer; width: fit-content; }
.inv-evo-nota p { margin: 6px 0; }
.donut-wrap { width: 100px; height: 100px; flex-shrink: 0; }
.inv-leg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin-top: 14px; }
.leg { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.leg b { color: var(--txt); font-weight: 700; }
.leg-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.btn-balancear { width: 100%; text-align: right; background: transparent; color: var(--green);
  font-weight: 700; font-size: 14px; padding: 12px 4px; }
.btn-evolucao { width: 100%; text-align: left; background: var(--bg); color: var(--txt);
  font-weight: 700; font-size: 13.5px; padding: 11px 12px; border: 1px solid var(--line);
  border-radius: 12px; margin: 6px 0 10px; cursor: pointer; }
.cripto-chart { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 10px 8px 4px; margin: 6px 0 12px; }
.cripto-chart svg { width: 100%; height: auto; display: block; }
.evo-leg { display: flex; gap: 14px; justify-content: center; font-size: 12px; color: var(--muted); margin-top: 6px; }
.evo-leg b { display: inline-block; width: 18px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 4px; }
.moeda-row { display: flex; align-items: center; gap: 10px; padding: 11px 0; }
.moeda-row + .moeda-row { border-top: 1px solid var(--line); }
.moeda-row .sym { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 12px; color: #fff; flex-shrink: 0; }
.inv-cat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
.inv-cat-head { display: flex; align-items: center; gap: 12px; padding: 13px 14px; cursor: pointer; }
.inv-cat-head h4 { margin: 0 0 1px; font-size: 16px; }
.ring-wrap { position: relative; width: 62px; height: 62px; flex-shrink: 0; }
.ring-num { position: absolute; inset: 0; display: grid; place-items: center; font-size: 11.5px; font-weight: 700; color: var(--txt); }
.chev { color: var(--muted); font-size: 13px; flex-shrink: 0; }
.inv-itens { border-top: 1px solid var(--line); padding: 4px 14px 8px; }
.inv-item { display: flex; gap: 10px; align-items: center; padding: 10px 0; cursor: pointer; }
.inv-item + .inv-item { border-top: 1px solid var(--line); }
.inv-item h4 { margin: 0 0 2px; font-size: 14.5px; }
/* balancear modal */
.alvo-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.alvo-input { width: 84px; flex-shrink: 0; text-align: right; padding: 8px 10px; }
.alvo-sum { margin-top: 12px; text-align: right; font-size: 14px; color: var(--muted); }

/* ---------- DADOS (gastos por mês) ---------- */
.dm-meses { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin-bottom: 10px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.dm-meses::-webkit-scrollbar { display: none; }
.dm-mes { flex: 0 0 auto; min-width: 92px; padding: 9px 12px; border-radius: 13px; text-align: left;
  background: var(--card); border: 1px solid var(--line); color: var(--muted); transition: .15s; }
.dm-mes b { display: block; font-size: 13px; color: var(--txt); letter-spacing: .02em; }
.dm-mes span { display: block; font-size: 11.5px; margin-top: 2px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dm-mes.active { background: var(--grad); color: rgba(255,255,255,.85); border-color: transparent;
  box-shadow: 0 4px 14px rgba(var(--accent-rgb),.32); }
.dm-mes.active b { color: #fff; }
.dm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 6px; }
.dm-tile { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 11px 12px; min-width: 0; }
.dm-tile .l { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-tile .n { font-size: 16px; font-weight: 700; margin-top: 3px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-tile .p { font-size: 11px; color: var(--amber); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 20px 2px 9px; }
.dm-sec-head h3 { margin: 0; font-size: 14px; font-weight: 700; }
.dm-sec-head .amount { font-size: 14px; }
.dm-vazio { font-size: 12.5px; color: var(--muted); padding: 2px 2px 4px; }
.dm-row { padding: 11px 12px; margin-bottom: 8px; cursor: pointer; }
.dm-row h4 { font-size: 14.5px; }
.dm-row h4 .conta-dot { margin-right: 7px; }
.dm-em { margin-right: 7px; }
.dm-nota { font-size: 11.5px; color: var(--faint); margin: 18px 2px 8px; line-height: 1.45; }
.dm-row .sub { font-size: 12.5px; }
.dm-row.prev .amount { color: var(--amber); }
.dm-row.mudo { opacity: .6; }
.dm-row.mudo .amount { color: var(--muted); font-weight: 600; }
.dm-chev { font-size: 15px; line-height: 1; color: var(--muted); display: inline-block; transition: transform .18s ease; transform: rotate(-90deg); }
.open > .row .dm-chev, .open .dm-chev { transform: rotate(0); }
.dm-cat.open { border-color: var(--hair-2); margin-bottom: 6px; }
.dm-sub { margin: 0 0 10px 10px; padding-left: 10px; border-left: 2px solid var(--line); }
.dm-sub .dm-row { padding: 9px 11px; margin-bottom: 6px; }
.dm-sub .dm-row h4 { font-size: 13.5px; }
.dm-sub .dm-row .amount { font-size: 13.5px; }
.dm-semreg { font-size: 12.5px; color: var(--muted); padding: 8px 12px; border: 1px dashed var(--hair-2); border-radius: 12px; cursor: pointer; margin-bottom: 8px; }
.dm-semreg ul { margin: 8px 0 0; padding-left: 18px; color: var(--txt); }
.dm-semreg li { margin: 2px 0; }

/* Custo do ativo ocupa a linha inteira, preservando nome e quantidade no celular. */
.inv-item { flex-wrap: wrap; row-gap: 3px; }
.inv-item > .inv-custo { flex: 0 0 100%; text-align: right; }

/* Custo e proventos juntos, com quebra natural em telas estreitas. */
.inv-custo { display:flex; flex-wrap:wrap; align-items:baseline; column-gap:14px; row-gap:3px; }
.inv-custo > span { min-width:0; overflow-wrap:anywhere; }
.inv-item > .inv-custo { justify-content:flex-end; }

/* ===== Tela Início · modelo Foco (02/11/2026) ===== */
.p-olho { width: 38px; height: 38px; border-radius: 12px; background: var(--card2); font-size: 16px; flex: none; }
.p3-cab { display: flex; justify-content: space-between; align-items: center; margin: 6px 2px 4px; }
.p3-saud { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.p3-resumo { font-size: 15px; color: var(--muted); line-height: 1.45; margin: 0 2px 18px; }
.p3-resumo b { color: var(--txt); }
.p3-abas { position: sticky; top: -16px; z-index: 5; display: flex; gap: 4px; background: var(--bg); padding: 8px 0 0; margin: 0 -2px 6px;
  border-bottom: 1px solid var(--line); }
.p3-aba { flex: 1; padding: 10px 2px 12px; font-size: 14px; font-weight: 700; color: var(--muted); background: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.p3-aba span { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; font-size: 11px;
  background: var(--card2); color: var(--muted); margin-left: 5px; vertical-align: 1px; }
.p3-aba.on { color: var(--txt); border-bottom-color: var(--accent); }
.p3-aba.on span { background: var(--accent); color: #fff; }
.p3-corpo { padding-bottom: 10px; }
.p3-g { margin-top: 14px; }
.p3-g-tit { display: flex; align-items: baseline; gap: 8px; font-size: 13px; font-weight: 800; color: var(--txt); margin: 0 2px 2px; }
.p3-g-tit small { font-size: 12px; color: var(--faint); font-weight: 700; }
.p3-l { display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--line); cursor: pointer; min-width: 0; }
.p3-l.feita span { text-decoration: line-through; color: var(--muted); }
.p3-l-tx { flex: 1; min-width: 0; }
.p3-l-tx > span { display: block; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.p3-l-tx small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.p3-l em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.p3-chk { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--hair-2); flex: none; display: grid; place-items: center; font-size: 13px; color: #04210f; cursor: pointer; }
.p3-chk.on { background: var(--green); border-color: var(--green); }
.p3-adiar-mini { flex: none; width: 30px; height: 30px; border-radius: 50%; background: none; color: var(--faint); font-size: 14px; }
.p3-ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; flex: none; background: var(--card2); }
.p3-data { width: 40px; flex: none; text-align: center; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; line-height: 1.1; }
.p3-data b { display: block; font-size: 20px; letter-spacing: -.02em; }
.p3-vazio { color: var(--faint); font-size: 14px; padding: 10px 2px; }
.p3-feitas summary { list-style: none; cursor: pointer; font-size: 13px; color: var(--green); font-weight: 700; padding: 12px 2px 4px; }
.p3-feitas summary::-webkit-details-marker { display: none; }
.p3-din { padding: 16px 2px 4px; }
.p3-din-rot { font-size: 13px; color: var(--muted); }
.p3-din-val { font-size: 34px; font-weight: 800; letter-spacing: -.03em; margin: 2px 0 10px; font-variant-numeric: tabular-nums; }
.p3-din-l { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; cursor: default; }
.p3-din-l span { color: var(--muted); }
.p3-din-l b { text-align: right; font-variant-numeric: tabular-nums; }
.p3-din-l[data-goto] { cursor: pointer; }
.p3-habs { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; }
.p3-hab { padding: 10px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--txt); }
.p3-hab span { margin-right: 6px; }
.p3-hab.on { background: rgba(58,210,159,.16); border-color: rgba(58,210,159,.5); color: var(--green); }
.p3-meta { padding: 10px 2px; border-bottom: 1px solid var(--line); cursor: pointer; }
.p3-meta-top { display: flex; justify-content: space-between; font-size: 15px; font-weight: 600; }
.p3-meta-top small { color: var(--muted); }
.p3-meta-bar { height: 6px; background: var(--card2); border-radius: 6px; overflow: hidden; margin-top: 8px; }
.p3-meta-bar i { display: block; height: 100%; background: var(--grad); }

/* ===== Janela de tarefa · modelo Compacto (02/11/2026) ===== */
.modal[data-pm] .modal-card { padding-bottom: 0; }
.pm-tit { font-size: 19px; font-weight: 700; padding: 13px 14px; background: var(--card); border-color: var(--hair-2); margin-top: 6px; }
.pm-rot { font-size: 12px; font-weight: 700; color: var(--muted); margin: 14px 2px 7px; }
.pm-seg { display: flex; gap: 2px; padding: 3px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.pm-seg button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 9px 4px; border-radius: 9px;
  background: none; color: var(--muted); font-size: 13px; font-weight: 700; white-space: nowrap; }
.pm-seg button.on { background: var(--grad); color: #fff; }
.pm-seg4 button { font-size: 12.5px; }
.pm-caixa { margin-top: 8px; }
.pm-dias { display: flex; gap: 5px; }
.pm-dias button { flex: 1; height: 42px; min-width: 0; border-radius: 12px; background: var(--card2); color: var(--muted); font-size: 12.5px; font-weight: 700; }
.pm-dias button.on { background: var(--grad); color: #fff; }
.pm-dica { font-size: 12px; color: var(--faint); margin: 7px 2px 0; line-height: 1.35; }
.pm-chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.pm-rola { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.pm-rola::-webkit-scrollbar { display: none; }
.pm-chip { flex: none; padding: 8px 12px; border-radius: 999px; background: var(--card2); color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; }
.pm-chip.on { background: rgba(var(--accent-rgb), .18); color: var(--txt); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .7); }
.pm-data { flex: 1; min-width: 130px; width: auto; padding: 8px 10px; font-size: 14px; }
.pm-hora { flex: 1; min-width: 0; width: auto; padding: 9px 10px; font-size: 15px; }
.pm-num { width: 64px; padding: 8px 10px; margin: 0 8px; text-align: center; }
.pm-linha { display: flex; align-items: center; font-size: 15px; color: var(--txt); }
.pm-desc { font-size: 15px; resize: vertical; }
.pm-link { background: none; color: var(--accent2); font-weight: 700; font-size: 14px; padding: 14px 2px 2px; }
.pm-rodape { position: sticky; bottom: 0; z-index: 2; display: flex; gap: 8px; margin: 18px -18px 0; padding: 12px 18px calc(14px + var(--safe-b));
  background: var(--bg2); border-top: 1px solid var(--line); }
.pm-salvar { flex: 1; width: auto; background: var(--grad); color: #fff; }
.pm-ico { flex: none; min-width: 50px; padding: 0 12px; border-radius: 13px; background: var(--card2); color: var(--txt); font-size: 17px; }
.pm-ico-conf { background: rgba(249,109,119,.16); color: var(--red); font-size: 14px; font-weight: 800; }
.pm1-hora .pm-hora { flex: 0 1 170px; }

/* ===== assistente: conversas e memória (versão 230) ===== */
.chat-wrap { position: relative; }
.chat-topo { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--bg); }
.chat-topo-btn { width: 38px; height: 38px; flex: none; border-radius: 12px; background: var(--card2); color: var(--txt); font-size: 17px; }
.chat-topo-tit { flex: 1; min-width: 0; text-align: center; line-height: 1.2; }
.chat-topo-tit b { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-topo-tit small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 1px; }
/* cobre a tela toda (no computador fica por cima do menu do app, sem parecer uma 2ª barra lateral) */
.chat-lista { position: fixed; inset: 0; z-index: 70; display: flex; }
.chat-lista-fundo { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.chat-lista-card { position: relative; width: min(330px, 86%); height: 100%; overflow-y: auto; background: var(--bg2);
  border-right: 1px solid var(--line); padding: calc(14px + var(--safe-t)) 12px calc(16px + var(--safe-b)); }
.chat-lista-card.anim { animation: chatLista .18s ease; }
@keyframes chatLista { from { transform: translateX(-24px); opacity: .5; } to { transform: none; opacity: 1; } }
.chat-l-nova { width: 100%; padding: 12px; border-radius: 13px; background: var(--grad); color: #fff; font-weight: 700; font-size: 15px; }
.chat-l-rot { font-size: 12px; font-weight: 700; color: var(--muted); margin: 18px 4px 6px; }
.chat-l-item { display: flex; align-items: center; gap: 6px; padding: 10px 6px 10px 10px; border-radius: 12px; cursor: pointer; }
.chat-l-item.on { background: rgba(var(--accent-rgb), .16); }
.chat-l-tx { flex: 1; min-width: 0; }
.chat-l-tx span { display: block; font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-l-tx small { display: block; font-size: 12px; color: var(--faint); margin-top: 2px; }
.chat-l-del { flex: none; width: 32px; height: 32px; border-radius: 10px; background: none; font-size: 14px; opacity: .55; }
.chat-l-del:hover { opacity: 1; background: var(--card2); }
.chat-l-vazio { font-size: 13px; color: var(--faint); padding: 6px 8px; }
.chat-mem { display: flex; gap: 8px; align-items: flex-start; padding: 9px 10px; margin-bottom: 6px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--line); font-size: 13.5px; line-height: 1.4; }
.chat-mem span { flex: 1; }
.chat-mem button { flex: none; background: none; color: var(--faint); font-size: 13px; padding: 2px 4px; }

/* ===== "Não fiz" nas tarefas (05/11/2026, versão 235) ===== */
.p3-chk.nf { background: rgba(249,109,119,.16); border-color: transparent; color: var(--red); font-size: 12px; font-weight: 800; }
.tarefa .box.nf { background: rgba(249,109,119,.14); border-color: transparent; color: var(--red); font-size: 13px; font-weight: 800; cursor: pointer; }
.p3-l.naofeita .p3-l-tx > span { color: var(--muted); }
.item.tarefa.naofeita { opacity: .8; }
.item.tarefa.naofeita h4 { color: var(--muted); }
.nf-txt { color: var(--red); font-weight: 700; }
.nf-stamp { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 11px; font-weight: 700; color: var(--red);
  background: rgba(249,109,119,.12); border: 1px solid rgba(249,109,119,.28); padding: 2px 8px; border-radius: 999px; }
.p3-naofeitas summary { color: var(--red); }
.nf-cab { display: flex; flex-direction: column; gap: 3px; padding: 4px 2px 2px; }
.nf-cab b { font-size: 17px; overflow-wrap: anywhere; }
.nf-cab span { font-size: 13px; color: var(--muted); }
.nf-motivos { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.nf-motivos .pm-chip { padding: 10px 14px; font-size: 14px; color: var(--txt); }
.toast-acao { margin-left: 14px; background: none; border: none; color: var(--accent2); font-weight: 800; font-size: 14px; padding: 0; cursor: pointer; }
.pm-nf { font-size: 14px; font-weight: 700; color: var(--red); white-space: nowrap; }
.pm-nf-status { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding: 10px 12px; border-radius: 12px;
  background: rgba(249,109,119,.1); border: 1px solid rgba(249,109,119,.25); color: var(--red); font-size: 13.5px; font-weight: 700; }
.pm-nf-status button { flex: none; background: none; border: none; color: var(--txt); font-weight: 800; font-size: 13.5px; padding: 0; text-decoration: underline; }
.pm-nf-hist { display: flex; flex-wrap: wrap; gap: 6px; }
.pm-nf-hist span { font-size: 12px; padding: 4px 9px; border-radius: 999px; background: var(--card2); color: var(--muted); white-space: nowrap; }
.dia-count.nf { background: rgba(249,109,119,.16); color: var(--red); }
