/* Moldura da Luz (a IA do estúdio): menu com a conversa à esquerda, cabeçalho, agora/calendário/alertas à direita.
   Só o miolo muda entre as abas: a Luz (esfera, saudação e cérebro do estúdio) ou a tela escolhida.
   Branch kaizen: mesmo sistema do Luz com o tema Kaizen (verde #005c2f, cinzas e Open Sans; ver o fim do arquivo). Desenvolvido pela Camargo TI.
   Classes com prefixo lu- para não colidir com o style.css das outras telas. */

/* Marca: logo K + "Kaizen"; embaixo, "sistema de gestão" */
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-size: 23px; line-height: 1; }
.brand img { flex: none; width: 44px; height: 44px; }
.brand > span { min-width: 0; white-space: nowrap; }
.brand small { margin-top: 6px; padding-left: 1px; }
#home { flex: 1; min-width: 0; height: 100vh; display: flex; flex-direction: column; }
#home .muted { color: var(--muted); }
section.card.lu-panel, section.card.lu-conv { padding: 0; } /* o style.css dá padding a section.card; aqui cada painel tem o seu */
#home * { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.lu-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); margin: 0; }

/* Menu lateral: mais largo, abas em duas colunas e a conversa da Luz logo abaixo, em todas as abas. */
aside { width: 340px; padding-bottom: 10px; }
aside .lu-conv { margin-top: 20px; }
aside .reset { margin-top: 6px; padding: 8px 12px; }
@media (min-width: 801px) {
  .brand { margin-bottom: 22px; }
  nav { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 6px; }
  nav a { padding: 8px 12px; }
}

/* Cabeçalho: Luz, quem está usando e o selo da Camargo TI */
.lu-top { display: flex; align-items: center; gap: 24px; padding: 16px 40px; background: #fffdfb; border-bottom: 1px solid var(--line); flex: none; min-height: 65px; }
.lu-sub { color: var(--muted); font-size: 13px; }
.lu-sub b { color: var(--accent); font-weight: 600; }
.lu-who { display: flex; align-items: center; gap: 10px; padding-left: 24px; border-left: 1px solid var(--line); color: var(--ink); font: 500 13px 'Open Sans', Arial, sans-serif; }
.lu-who b { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #3dc15e); color: #fff; font-size: 13px; }
.lu-badge { margin-left: auto; color: var(--sand-ink); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }

/* Grade: centro (esfera, saudação e cérebro do estúdio) e lateral (clima e conversa) */
.lu-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-rows: minmax(0, 1fr); gap: 32px; padding: 24px 40px; }
.lu-col { min-height: 0; display: flex; flex-direction: column; }

/* Painéis (cartão branco com cabeçalho) */
.lu-panel > header, .lu-conv > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px 10px 18px; border-bottom: 1px solid var(--line); flex: none; }
.lu-panel h2, .lu-conv h2 { margin: 0; font-size: 20px; line-height: 1.2; }
.lu-panel { overflow: hidden; flex: none; }
.lu-icon { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; }
.lu-icon:hover { color: var(--ink); background: var(--bg); }
.lu-icon svg, .lu-send svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lu-icon svg { width: 18px; height: 18px; }

/* Miolo: a Luz ou a tela da aba (rola sozinho; a moldura fica parada) */
.lu-center { overflow: auto; padding: 0 4px; }
.lu-hero { flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: safe center; }
.lu-hero[hidden] { display: none; }
#view { flex: none; max-width: none; min-width: 0; padding: 6px 0 24px; }
#view .top { margin-bottom: 22px; }
#view h1 { font-size: 38px; }
/* O canvas sobra ~15% em cima e embaixo (espaço do brilho): margens negativas tiram a folga. */
.lu-orb { --s: min(100%, 52vh); width: var(--s); aspect-ratio: 1; flex: none; margin: calc(var(--s) * -.14) 0 calc(var(--s) * -.17); }
#orb { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
#orb:active { cursor: grabbing; }
.lu-status { margin: 8px 0 26px; font: 700 36px/1.2 'Open Sans', Arial, sans-serif; text-align: center; flex: none; }
.lu-status i { color: var(--accent); }

.lu-h { width: min(100%, 860px); margin: 0 0 12px; font-size: 22px; line-height: 1.2; flex: none; }
.lu-h small { font: 400 12px 'Open Sans', Arial, sans-serif; }
.lu-cards { width: min(100%, 860px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; flex: none; }
.lu-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 14px 16px 13px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.lu-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.lu-card span { color: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lu-card small { color: #555555; font-size: 13px; line-height: 1.35; }
.lu-card > i { display: block; height: 4px; border-radius: 2px; background: var(--line); position: relative; }
.lu-card > i::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); min-width: 4px; border-radius: 2px; background: var(--accent); }

/* Direita: agora (hora + clima), calendário e alertas; rola se a tela for baixa */
.lu-side { gap: 16px; overflow: auto; padding: 2px; }
.lu-agora > header { align-items: flex-start; padding-top: 12px; }
.lu-hora { font: 700 34px/1 'Open Sans', Arial, sans-serif !important; }
.lu-agora header small { display: block; margin-top: 4px; font-size: 12px; }
.lu-agora header small::first-letter { text-transform: uppercase; }
#lu-clima { padding: 12px 18px 14px; }
#lu-clima > p { margin: 0; font-size: 13px; }
.lu-now { display: flex; align-items: center; justify-content: space-between; }
.lu-now b { display: block; font: 700 28px/1.1 'Open Sans', Arial, sans-serif; }
.lu-now span { display: block; color: var(--accent); font-size: 13px; font-weight: 500; }
.lu-now small { font-size: 12px; }
.lu-now i { font-style: normal; font-size: 34px; line-height: 1; }
.lu-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 0; }
.lu-stats div { padding: 6px 4px; background: var(--bg); border-radius: 10px; text-align: center; }
.lu-stats dt { color: var(--muted); font-size: 11px; }
.lu-stats dd { margin: 2px 0 0; font-size: 13px; font-weight: 500; }

.lu-cal-nav { display: flex; align-items: center; gap: 2px; }
.lu-cal-nav span { min-width: 112px; text-align: center; font-size: 12px; font-weight: 500; }
.lu-cal-nav span::first-letter { text-transform: uppercase; }
.lu-cal-nav .lu-icon { width: 26px; height: 26px; }
.lu-cal-nav .lu-icon svg { width: 15px; height: 15px; }
.lu-cal-body { padding: 8px 14px 12px; }
.lu-cal-grade { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.lu-cal-grade > small { padding-bottom: 4px; font-size: 11px; font-weight: 600; }
.lu-cal-grade button { position: relative; height: 28px; padding: 0 0 6px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: 13px 'Open Sans', Arial, sans-serif; cursor: pointer; }
.lu-cal-grade button:hover { background: var(--bg); }
.lu-cal-grade button.hoje { color: var(--accent); font-weight: 700; }
.lu-cal-grade button.sel { background: var(--rose); color: var(--rose-ink); }
.lu-cal-grade button b { position: absolute; left: 0; right: 0; bottom: 3px; display: flex; justify-content: center; gap: 2px; }
.lu-cal-grade button b i, .lu-cal-dia li::before { width: 5px; height: 5px; border-radius: 50%; }
i.agenda, .lu-cal-dia li.agenda::before { background: var(--accent); }
i.cobranca, .lu-cal-dia li.cobranca::before { background: var(--sand-ink); }
i.prazo, .lu-cal-dia li.prazo::before { background: var(--sky-ink); }
.lu-cal-leg { display: flex; justify-content: center; gap: 14px; margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.lu-cal-leg span { display: flex; align-items: center; gap: 5px; }
.lu-cal-leg i { width: 6px; height: 6px; border-radius: 50%; }
.lu-cal-dia { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.lu-cal-dia h3 { margin: 0 0 6px; }
.lu-cal-dia p { margin: 0; font-size: 13px; }
.lu-cal-dia ul { max-height: 64px; overflow: auto; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.lu-cal-dia li { display: flex; align-items: center; gap: 8px; }
.lu-cal-dia li::before { content: ""; flex: none; }

.lu-alertas { flex: 1 1 0; min-height: 210px; display: flex; flex-direction: column; }
.lu-alertas > header .pill { cursor: default; }
.lu-alertas-lista { flex: 1; min-height: 0; list-style: none; margin: 0; padding: 4px 0; overflow: auto; }
.lu-alertas-lista li { display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 16px; border-left: 3px solid transparent; }
.lu-alertas-lista li + li { border-top: 1px solid var(--line); }
.lu-alertas-lista li.n0 { border-left-color: var(--rose-ink); }
.lu-alertas-lista li.n1 { border-left-color: var(--sand-ink); }
.lu-alertas-lista li.n2 { border-left-color: var(--sky-ink); }
.lu-alertas-lista li > div { flex: 1; min-width: 0; }
.lu-alertas-lista b { display: block; font-size: 13px; font-weight: 500; line-height: 1.35; }
.lu-alertas-lista li.n0 b { color: var(--rose-ink); }
.lu-alertas-lista small { display: block; margin-top: 1px; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lu-acao { flex: none; padding: 5px 10px; border: 1px solid var(--line); border-radius: 99px; color: var(--ink); font-size: 12px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.lu-acao:hover { border-color: var(--accent); color: var(--accent); }
.lu-ok { justify-content: center; color: var(--muted); font-size: 13px; }

.lu-conv { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.lu-chat { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.lu-msg { max-width: 90%; padding: 10px 14px; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.lu-msg.ai { align-self: flex-start; background: var(--bg); border: 1px solid var(--line); border-radius: 4px 14px 14px 14px; }
.lu-msg.user { align-self: flex-end; background: var(--rose); color: var(--rose-ink); border-radius: 14px 14px 4px 14px; }
.lu-bar { display: flex; align-items: center; gap: 6px; flex: none; margin: 0 14px 14px; padding: 4px 6px 4px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; }
.lu-bar:focus-within { border-color: var(--accent); }
.lu-bar input { flex: 1; min-width: 0; margin: 0; padding: 8px 0; border: 0; background: none; font-size: 14px; }
.lu-bar input:focus { outline: none; }
.lu-send { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border: 0; border-radius: 10px; background: var(--accent); color: #fff; cursor: pointer; }
.lu-send:hover { filter: brightness(.95); }
.lu-send svg { width: 18px; height: 18px; }

/* Telas mais baixas: a esfera encolhe para os cartões continuarem visíveis. */
@media (max-height: 820px) {
  .lu-orb { --s: min(100%, 40vh); }
  .lu-status { margin: 2px 0 16px; font-size: 30px; }
}

/* Tablet e celular: uma coluna só (esfera e cartões, depois conversa e clima), rolando a página. */
@media (max-width: 1100px) {
  #home { height: auto; min-height: 100vh; }
  .lu-hero { flex: none; }
  .lu-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 24px; padding: 16px; }
  .lu-center { overflow: visible; }
  .lu-orb { --s: min(100%, 360px); }
  .lu-side { overflow: visible; }
  .lu-alertas { flex: none; min-height: 0; }
  .lu-alertas-lista { max-height: 420px; }
  .lu-top { gap: 14px; padding: 12px 16px; }
}
/* Celular: o menu vira barra no topo (style.css); a conversa fica logo abaixo das abas, com altura fixa. */
@media (max-width: 800px) {
  aside { width: auto; }
  aside .lu-conv { height: 60vh; margin-top: 12px; }
  body:not(.em-home) aside .lu-conv { display: none; } /* no celular a conversa aparece só na Luz */
  #view { padding-top: 0; }
}
@media (max-width: 640px) {
  .lu-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lu-badge, .lu-who span { display: none; }
  .lu-status { font-size: 28px; }
}

/* ---------- Aba Faturamento: indicadores, gráficos e recebimentos ---------- */
.fat-kpis, .fat-grid { --rec: #005c2f; --prev: #e0b85a; --atr: #c0392b; }
.fat-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 18px; }
.fat-kpi { padding: 16px 18px; }
.fat-kpi small { display: block; }
.fat-kpi small::first-letter { text-transform: uppercase; }
.fat-kpi b { display: block; margin: 2px 0 4px; font: 700 28px/1.15 'Open Sans', Arial, sans-serif; white-space: nowrap; }
.fat-kpi span { color: var(--muted); font-size: 12px; }
.fat-kpi.sobe span { color: var(--sage-ink); font-weight: 500; }
.fat-kpi.desce span, .fat-kpi.late span, .fat-kpi.late b, .fat-kpi.neg b { color: var(--rose-ink); }
.fat-kpi.pos b { color: var(--sage-ink); }
.fat-kpi.late span { font-weight: 500; }

.fat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; }
.fat-wide { grid-column: 1 / -1; }
.fat-box { min-width: 0; }
.fat-box header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.fat-box h3 { margin: 0; }
.fat-nota { margin: 8px 0 0; color: var(--muted); font-size: 12px; }

.fat-leg { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; color: var(--muted); font-size: 12px; }
.fat-leg span { display: flex; align-items: center; gap: 6px; }
.fat-leg span::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.fat-grid .rec { --c: var(--rec); } .fat-grid .prev { --c: var(--prev); } .fat-grid .atr { --c: var(--atr); }

.fat-meses { list-style: none; margin: 0; padding: 0; height: 230px; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
.fat-meses li { min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; }
.fat-meses li > b { font-weight: 500; white-space: nowrap; }
.fat-pilha { flex: 1; width: min(100%, 46px); display: flex; flex-direction: column-reverse; border-bottom: 1px solid var(--line); }
.fat-pilha i { display: block; background: var(--c); }
.fat-pilha i:last-child { border-radius: 4px 4px 0 0; }
.fat-meses li > span { color: var(--muted); }
.fat-meses li.atual > span { color: var(--ink); font-weight: 600; }
.fat-meses li.atual > b { color: var(--accent); }

.fat-situacao { display: flex; align-items: center; gap: 20px; }
.fat-donut { position: relative; flex: none; width: 130px; height: 130px; margin: 0; }
.fat-donut svg { display: block; width: 100%; height: 100%; }
.fat-donut circle { fill: none; stroke: var(--c); stroke-width: 16; transition: stroke-width .15s; }
.fat-donut circle:hover { stroke-width: 19; }
.fat-donut figcaption { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.fat-donut b { font: 700 22px/1 'Open Sans', Arial, sans-serif; }
.fat-donut small { font-size: 11px; }
.fat-leg-v { flex: 1; min-width: 0; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.fat-leg-v li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; column-gap: 8px; font-size: 13px; }
.fat-leg-v li::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.fat-leg-v span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fat-leg-v b { font-weight: 500; white-space: nowrap; }
.fat-leg-v small { grid-column: 2 / -1; font-size: 11px; }

.fat-barras { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.fat-barras li > div { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.fat-barras li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fat-barras li b { font-weight: 500; white-space: nowrap; }
.fat-barras li > i { display: block; height: 6px; margin: 6px 0 3px; border-radius: 3px; background: var(--line); position: relative; }
.fat-barras li > i::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 3px; background: var(--accent); }
.fat-barras li small { font-size: 11px; }

.fat-receb { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px 28px; }
.fat-lista { list-style: none; margin: 0; padding: 0; }
.fat-lista li { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 0; }
.fat-lista li + li { border-top: 1px solid var(--line); }
.fat-lista time { padding: 6px 0; border-radius: 10px; background: var(--bg); text-align: center; font-size: 12px; font-weight: 600; }
.fat-lista b { display: block; font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fat-lista small { display: block; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fat-lista strong { font-size: 14px; font-weight: 600; white-space: nowrap; }
.fat-lista .btn { padding: 6px 12px; font-size: 12px; }
.fat-ok { display: block !important; color: var(--muted); font-size: 13px; }

@media (max-width: 640px) {
  .fat-meses { gap: 4px; height: 190px; }
  .fat-meses li { font-size: 10px; }
  .fat-situacao { flex-direction: column; align-items: stretch; }
  .fat-donut { align-self: center; }
  .fat-lista li { grid-template-columns: 42px minmax(0, 1fr) auto; }
  .fat-lista .btn { grid-column: 2 / -1; justify-self: start; }
}

/* ---------- Conta (menu no cabeçalho) e troca de senha ---------- */
.lu-conta { position: relative; }
.lu-who { border: 0; background: none; cursor: pointer; border-radius: 10px; padding: 4px 6px 4px 24px; }
.lu-who:hover { background: var(--bg); }
.lu-who svg { width: 14px; height: 14px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lu-menu { position: absolute; top: calc(100% + 6px); left: 24px; z-index: 20; min-width: 170px; padding: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, .12); }
.lu-menu button { display: block; width: 100%; padding: 9px 12px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: 500 13px 'Open Sans', Arial, sans-serif; text-align: left; cursor: pointer; }
.lu-menu button:hover { background: var(--bg); color: var(--accent); }
.form-senha footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }

/* ---------- Tela de login ---------- */
body.login { display: grid; place-items: center; min-height: 100vh; padding: 24px; }
.login-box { width: min(400px, 100%); display: flex; flex-direction: column; align-items: center; text-align: center; }
.login-orb { width: 96px; height: 96px; margin-bottom: 14px; filter: drop-shadow(0 10px 24px rgba(0, 92, 47, .3)); }
.login-box h1 { margin: 0; font-size: 40px; }
.login-box h1 i { color: var(--accent); }
.login-sub { margin: 6px 0 22px; color: var(--muted); font-size: 14px; }
.login-sub b { color: var(--accent); font-weight: 600; }
.login-card { width: 100%; padding: 24px 24px 22px; text-align: left; }
.login-card label { margin-bottom: 14px; }
.login-card .btn { width: 100%; margin-top: 4px; padding: 11px; font-size: 14px; }
.login-erro { margin: -4px 0 12px; color: var(--rose-ink); font-size: 13px; }
.login-brand { margin: 28px 0 0; justify-content: center; font-size: 21px; }
@media (max-width: 800px) {
  .lu-menu { left: 0; }
  .lu-who { padding-left: 0; }
}

/* Clientes + resgate */
.chip-resgate:not(.on) span { color: var(--sand-ink); }
.nota-resgate { margin: -4px 0 14px; color: var(--muted); font-size: 13px; }
.row.resgate small.late { color: var(--sand-ink); font-weight: 500; }

/* ---------- Financeiro: entradas x saídas e contas ---------- */
.fat-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1500px) { .fat-kpi { padding: 14px 14px; } .fat-kpi b { font-size: 21px; } .fat-kpi span, .fat-kpi small { font-size: 11px; } }
@media (max-width: 1100px) { .fat-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .fat-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fat-kpi b { font-size: 22px; } }
.fat-box header small { white-space: nowrap; }
.fat-grid .ent { --c: #005c2f; } .fat-grid .ent-a { --c: #c5e8d4; } .fat-grid .sai { --c: #c0392b; } .fat-grid .sai-a { --c: #f3c9c4; }
.fin-par { flex: 1; width: 100%; display: flex; justify-content: center; gap: 4px; min-height: 0; }
.fin-par .fat-pilha { width: min(42%, 24px); }
.fat-meses li > b.neg { color: var(--rose-ink); }
.fat-box header small { color: var(--muted); font-size: 12px; }
.fin-novo { display: flex; flex-wrap: wrap; gap: 8px; }
.fat-lista li { cursor: pointer; }
.fat-lista li.atr em { color: var(--rose-ink); font-style: normal; font-weight: 500; }
.fat-lista li.atr time { background: var(--rose); color: var(--rose-ink); }
.fin-acoes { display: flex; gap: 6px; }
.fat-lista li { grid-template-columns: 46px minmax(0, 1fr) auto auto; }
i.pagar, .lu-cal-dia li.pagar::before { background: var(--rose-ink); }
@media (max-width: 640px) { .fin-acoes { grid-column: 2 / -1; } }

/* Balão das barras do Financeiro, nas cores do sistema (o title nativo do navegador não aceita estilo). */
.fat-meses li { position: relative; outline: none; }
.fin-tip {
  position: absolute; z-index: 5; top: 26px; left: 50%; transform: translate(-50%, 4px);
  display: flex; flex-direction: column; gap: 3px; width: max-content; padding: 10px 14px 12px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--ink);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .16); font: 400 12px/1.5 'Open Sans', Arial, sans-serif; text-align: left;
  opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s;
}
.fin-tip strong { margin-bottom: 2px; color: var(--accent); font: 700 18px/1.2 'Open Sans', Arial, sans-serif; }
.fin-tip > span { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.fin-tip b { font-weight: 600; }
.fin-tip small { color: var(--muted); font-size: 11px; }
.fin-tip i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.fin-tip .pos { margin-top: 2px; padding-top: 5px; border-top: 1px solid var(--line); color: var(--sage-ink); }
.fin-tip .neg { margin-top: 2px; padding-top: 5px; border-top: 1px solid var(--line); color: var(--rose-ink); }
.fat-meses li:nth-child(-n+2) .fin-tip { left: 0; transform: translate(0, 4px); }
.fat-meses li:nth-last-child(-n+2) .fin-tip { left: auto; right: 0; transform: translate(0, 4px); }
.fat-meses li:hover .fin-tip, .fat-meses li:focus-visible .fin-tip { opacity: 1; transform: translate(-50%, 0); }
.fat-meses li:nth-child(-n+2):hover .fin-tip, .fat-meses li:nth-child(-n+2):focus-visible .fin-tip,
.fat-meses li:nth-last-child(-n+2):hover .fin-tip, .fat-meses li:nth-last-child(-n+2):focus-visible .fin-tip { transform: none; }

/* ---------- Conversa com a Luz (respostas formatadas, digitando, sugestões) ---------- */
.lu-msg.ai p { margin: 0 0 6px; }
.lu-msg.ai p:last-child, .lu-msg.ai ul:last-child, .lu-msg.ai ol:last-child { margin-bottom: 0; }
.lu-msg.ai ul, .lu-msg.ai ol { margin: 2px 0 6px; padding-left: 18px; }
.lu-msg.ai li { margin: 2px 0; }
.lu-msg.ai b { font-weight: 600; }
.lu-msg.erro { border-color: var(--rose); background: var(--rose); color: var(--rose-ink); }
.lu-digitando { display: inline-flex; gap: 4px; padding: 4px 0; }
.lu-digitando i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .3; animation: lu-pisca 1.2s infinite; }
.lu-digitando i:nth-child(2) { animation-delay: .2s; } .lu-digitando i:nth-child(3) { animation-delay: .4s; }
@keyframes lu-pisca { 0%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }
.lu-sugestoes { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.lu-sugestoes button { padding: 7px 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--panel); color: var(--ink); font: 13px 'Open Sans', Arial, sans-serif; text-align: left; cursor: pointer; }
.lu-sugestoes button:hover { border-color: var(--accent); color: var(--accent); }
.lu-send:disabled { opacity: .5; cursor: wait; }
.lu-aviso { margin: 6px 0 0 !important; color: var(--rose-ink); font-size: 12px; }

/* ---------- Kaizen: menu lateral verde (como a faixa do topo do site de referência) ---------- */
aside { background: var(--accent); border-right: 0; color: #fff; }
aside .lu-conv { color: var(--ink); } /* o cartão da conversa é branco: volta o texto escuro */
aside .brand, aside .brand i { color: #fff; }
aside .brand small { color: #c5e8d4; }
nav a { color: rgba(255, 255, 255, .8); }
nav a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
nav a.on { background: #fff; color: var(--accent); }
aside .reset { color: rgba(255, 255, 255, .7); }
aside .reset:hover { color: #fff; }
.lu-top { background: #fff; }
.lu-badge { color: var(--accent); }
.lu-msg.user { background: var(--sage); color: var(--sage-ink); }
.lu-cal-grade button.sel { background: var(--sage); color: var(--sage-ink); }
h1, h2, .brand { letter-spacing: -.01em; }
h1 { font-size: 32px; }
#view h1 { font-size: 30px; }
.lu-status { font-size: 30px; }
.stat b { font-size: 28px; }
