/* VIDA EM DIA — visual: vidro fosco, degradês e dois temas (claro e escuro).
   Todas as cores ficam nas variáveis abaixo: para mudar a identidade, altere só este bloco. */
:root {
  color-scheme: light;
  --bg: #eef3f6;
  --vidro: rgba(255, 255, 255, .62); --vidro-2: rgba(255, 255, 255, .5); --vidro-forte: rgba(250, 252, 253, .96);
  --borda: rgba(255, 255, 255, .85); --line: rgba(24, 38, 43, .09);
  --campo: rgba(255, 255, 255, .8); --campo-b: rgba(24, 38, 43, .14);
  --ink: #17252a; --ink2: #586870; --ink3: #8a979d;
  --sombra: 0 10px 30px rgba(31, 60, 80, .09), 0 1px 2px rgba(31, 60, 80, .05);
  --sombra-forte: 0 24px 70px rgba(20, 40, 60, .28);
  --blur: blur(18px) saturate(165%);
  --grad-lilas: linear-gradient(135deg, #7d6df1 0%, #a56be0 55%, #e274a8 100%);
  --verde: #1fa883; --verde-esc: #157a62; --verde-bg: rgba(31, 168, 131, .14); --verde-tx: #146b56;
  --azul: #3b82d6; --azul-bg: rgba(59, 130, 214, .14); --azul-tx: #245f9f;
  --lilas: #8667d8; --lilas-bg: rgba(134, 103, 216, .15); --lilas-tx: #5a3fa6;
  --amarelo: #d99a00; --amarelo-bg: rgba(233, 172, 20, .2); --amarelo-tx: #7a5600;
  --rosa: #dc6593; --rosa-bg: rgba(220, 101, 147, .15); --rosa-tx: #a43763;
  --vermelho: #d64545; --vermelho-bg: rgba(214, 69, 69, .13); --vermelho-tx: #a32c2c;
  --laranja: #e0702f; --laranja-bg: rgba(224, 112, 47, .15); --laranja-tx: #974511;
  --cinza-bg: rgba(24, 38, 43, .06); --ovul: rgba(134, 103, 216, .32); --rolagem: rgba(24, 38, 43, .2); --rolagem-forte: rgba(24, 38, 43, .38);
  --sombra-alta: 0 18px 44px rgba(31, 60, 80, .16), 0 2px 4px rgba(31, 60, 80, .06);
  --s1: #257de0; --s2: #f47230; --s3: #00b894; --s4: #f2a600; --s5: #ee7fac; --s6: #008a17; --s7: #6a4ce2; --s8: #ec4647;
  --raio: 20px;
  --fonte: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
:root[data-tema="escuro"] {
  color-scheme: dark;
  --bg: #090e0f;
  --vidro: rgba(255, 255, 255, .065); --vidro-2: rgba(255, 255, 255, .05); --vidro-forte: rgba(20, 28, 30, .96);
  --borda: rgba(255, 255, 255, .11); --line: rgba(255, 255, 255, .09);
  --campo: rgba(255, 255, 255, .07); --campo-b: rgba(255, 255, 255, .15);
  --ink: #f0f5f4; --ink2: #a7b4b1; --ink3: #74827f;
  --sombra: 0 12px 34px rgba(0, 0, 0, .38);
  --sombra-forte: 0 28px 80px rgba(0, 0, 0, .6);
  --verde: #2bbf97; --verde-esc: #62dcb8; --verde-bg: rgba(43, 191, 151, .17); --verde-tx: #7be3c4;
  --azul: #5a9df0; --azul-bg: rgba(90, 157, 240, .17); --azul-tx: #9cc5f8;
  --lilas: #a08af0; --lilas-bg: rgba(160, 138, 240, .18); --lilas-tx: #c6b8fa;
  --amarelo: #f0b429; --amarelo-bg: rgba(240, 180, 41, .17); --amarelo-tx: #f6cf73;
  --rosa: #ee82ac; --rosa-bg: rgba(238, 130, 172, .17); --rosa-tx: #f6adc9;
  --vermelho: #f06a6a; --vermelho-bg: rgba(240, 106, 106, .16); --vermelho-tx: #f9a3a3;
  --laranja: #f08a4b; --laranja-bg: rgba(240, 138, 75, .17); --laranja-tx: #f7b78f;
  --cinza-bg: rgba(255, 255, 255, .08); --ovul: rgba(160, 138, 240, .42); --rolagem: rgba(255, 255, 255, .18); --rolagem-forte: rgba(255, 255, 255, .34);
  --sombra-alta: 0 20px 48px rgba(0, 0, 0, .55);
  --s1: #338ced; --s2: #e76624; --s3: #00a888; --s4: #d28e05; --s5: #e24d8b; --s6: #0aac23; --s7: #9887ef; --s8: #eb6263;
}
* { box-sizing: border-box; scrollbar-width: thin; scrollbar-color: var(--rolagem) transparent; }
*:hover { scrollbar-color: var(--rolagem-forte) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: var(--rolagem); border-radius: 999px; } ::-webkit-scrollbar-thumb:hover { background: var(--rolagem-forte); } ::-webkit-scrollbar-corner { background: transparent; }
html, body { height: 100%; }
body { overflow-x: clip; margin: 0; font-family: var(--fonte); color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: var(--mesh), var(--bg); }
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: 25px; font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 15px; font-weight: 700; }
a { color: var(--acento-esc); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg.ico-svg { flex: none; display: block; }
.muted { color: var(--ink2); } .peq { font-size: 13px; } .mini { font-size: 12px; } .forte { font-weight: 700; }
.dir { text-align: right; } .centro { text-align: center; }
.linha-flex { display: flex; align-items: center; gap: 10px; } .entre { justify-content: space-between; } .quebra { flex-wrap: wrap; } .cresce { flex: 1; min-width: 0; }
.col { display: flex; flex-direction: column; gap: 12px; }
.mt { margin-top: 16px; } .mb { margin-bottom: 16px; }
.trunca { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oculto { display: none !important; }
/* base do efeito vidro */
.card, .stat, .lateral, .rodape-nav, .tile, .acoes-rapidas, .seletor-mes, .aba, .btn, .btn-ico, .atalho, .busca input, .sonho, .plano, .msg.ia, .sugestoes button, .resumo button {
  background: var(--vidro); border: 1px solid var(--borda); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}

/* ---------- Animações ---------- */
@keyframes surge { from { opacity: 0; transform: translateY(16px) scale(.985); } }
@keyframes enche { from { transform: scaleX(0); } }
@keyframes sobe-barra { from { transform: scaleY(0); } }
@keyframes traca { from { stroke-dashoffset: 2400; } to { stroke-dashoffset: 0; } }
@keyframes pisca { from { opacity: 0; transform: scale(.4); } }
.entra > *, .entra .grade > *, .entra .colunas-cards > *, .entra .tiles > *, .entra .mural > *, .entra .planos > * { animation: surge .5s cubic-bezier(.2, .8, .2, 1) backwards; }
.entra > :nth-child(2), .entra .grade > :nth-child(2), .entra .colunas-cards > :nth-child(2), .entra .tiles > :nth-child(2), .entra .mural > :nth-child(2) { animation-delay: .05s; }
.entra > :nth-child(3), .entra .grade > :nth-child(3), .entra .colunas-cards > :nth-child(3), .entra .tiles > :nth-child(3), .entra .mural > :nth-child(3) { animation-delay: .1s; }
.entra > :nth-child(4), .entra .grade > :nth-child(4), .entra .colunas-cards > :nth-child(4), .entra .tiles > :nth-child(4), .entra .mural > :nth-child(4) { animation-delay: .15s; }
.entra > :nth-child(5), .entra .grade > :nth-child(5), .entra .colunas-cards > :nth-child(5), .entra .tiles > :nth-child(5), .entra .mural > :nth-child(5) { animation-delay: .2s; }
.entra > :nth-child(n+6), .entra .grade > :nth-child(n+6), .entra .colunas-cards > :nth-child(n+6), .entra .tiles > :nth-child(n+6), .entra .mural > :nth-child(n+6) { animation-delay: .25s; }
.entra .prog > i, .entra .barra-h .trilho i { transform-origin: left center; animation: enche .9s .2s cubic-bezier(.2, .8, .2, 1) backwards; }
.entra .colunas .grupo b { transform-origin: center bottom; animation: sobe-barra .8s .15s cubic-bezier(.2, .8, .2, 1) backwards; }
.entra .colunas .grupo:nth-child(2) b { animation-delay: .22s; } .entra .colunas .grupo:nth-child(3) b { animation-delay: .29s; } .entra .colunas .grupo:nth-child(4) b { animation-delay: .36s; } .entra .colunas .grupo:nth-child(5) b { animation-delay: .43s; } .entra .colunas .grupo:nth-child(n+6) b { animation-delay: .5s; }
.entra svg.linha-g polyline { stroke-dasharray: 2400; animation: traca 1.3s .2s ease-out backwards; }
.entra .ponto-g { animation: pisca .4s .9s backwards; }
@media (hover: hover) {
  .card, .stat, .tile, .sonho, .plano, .cartao-visual, .conta-banco { transition: transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .2s, border-color .2s; }
  .card:hover, .stat:hover, .plano:hover, .conta-banco:hover { transform: translateY(-3px); box-shadow: var(--sombra-alta); }
  .tile:hover, .sonho:hover { transform: translateY(-4px); box-shadow: var(--sombra-alta); }
  .item.clicavel { transition: background .15s, padding .15s; } .item.clicavel:hover { padding-left: 8px; }
}

/* ---------- Estrutura ---------- */
#app { min-height: 100%; }
.shell { min-height: 100vh; }
.lateral { position: fixed; left: 14px; top: 14px; bottom: 14px; width: 74px; z-index: 40; border-radius: 26px; box-shadow: var(--sombra); padding: 16px 12px; overflow-x: hidden; overflow-y: auto; scrollbar-width: none; transition: width .26s cubic-bezier(.2, .8, .2, 1), box-shadow .26s; }
.lateral::-webkit-scrollbar { display: none; }
.lateral:hover, .lateral:focus-within, .shell.fixo .lateral { width: 262px; }
.lateral:hover, .lateral:focus-within { box-shadow: var(--sombra-forte); background: var(--vidro-forte); }
.lateral .rot { white-space: nowrap; opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .2s; }
.lateral:hover .rot, .lateral:focus-within .rot, .shell.fixo .lateral .rot { opacity: 1; transform: none; }
.principal { margin-left: 102px; transition: margin-left .26s cubic-bezier(.2, .8, .2, 1); }
.shell.fixo .principal { margin-left: 290px; }
.marca { display: flex; align-items: center; gap: 12px; padding: 2px 7px 14px; font-weight: 800; font-size: 18px; letter-spacing: -.02em; white-space: nowrap; }
.marca .fixar { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--cinza-bg); color: var(--ink2); display: grid; place-items: center; flex: none; }
.shell.fixo .marca .fixar { background: var(--acento-bg); color: var(--acento-tx); }
.logo { width: 36px; height: 36px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; color: #fff; box-shadow: 0 6px 16px var(--brilho); flex: none; }
.nav-grupo { font-size: 11px; font-weight: 700; color: var(--ink3); text-transform: uppercase; letter-spacing: .07em; padding: 14px 12px 6px; white-space: nowrap; position: relative; height: 37px; }
.nav-grupo::before { content: ""; position: absolute; left: 12px; right: 12px; top: 22px; height: 1px; background: var(--line); transition: opacity .2s; }
.lateral:hover .nav-grupo::before, .lateral:focus-within .nav-grupo::before, .shell.fixo .nav-grupo::before { opacity: 0; }
.nav-item { display: flex; align-items: center; gap: 13px; padding: 10px 14px; white-space: nowrap; overflow: hidden; border-radius: 14px; color: var(--ink2); font-weight: 600; font-size: 14px; cursor: pointer; border: 0; background: none; width: 100%; text-align: left; }
.nav-item:hover { background: var(--cinza-bg); color: var(--ink); }
.nav-item { position: relative; z-index: 1; }
.nav-item.ativo, .nav-item.ativo:hover { background: none; color: #fff; }
#nav { position: relative; }
.nav-bolha { position: absolute; left: 0; right: 0; top: 0; z-index: 0; border-radius: 14px; background: var(--grad); box-shadow: 0 8px 20px var(--brilho); pointer-events: none; transition: translate .46s cubic-bezier(.34, 1.45, .5, 1), opacity .2s; }
.nav-bolha.move { animation: bolha-estica .46s ease; }
@keyframes bolha-estica { 30% { scale: .93 1.28; border-radius: 22px; } 65% { scale: 1.03 .92; } }
@keyframes bolha-estica-x { 30% { scale: 1.3 .88; } 65% { scale: .95 1.05; } }
.nav-item .ico { width: 22px; display: grid; place-items: center; }
.nav-item .cad { margin-left: auto; opacity: .55; display: grid; }
.principal { min-width: 0; display: flex; flex-direction: column; }
@media (hover: none) and (min-width: 901px) { .lateral { width: 262px; } .lateral .rot { opacity: 1; transform: none; } .principal { margin-left: 290px; } .nav-grupo::before { opacity: 0; } .marca .fixar { display: none; } }
.topo { display: flex; align-items: center; gap: 10px; padding: 14px 28px 18px; position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 55%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
.topo .marca { display: none; padding: 0; }
.busca { flex: 1; max-width: 460px; position: relative; color: var(--ink3); }
.busca > svg { position: absolute; left: 14px; top: 12px; pointer-events: none; z-index: 1; }
.busca input { width: 100%; border-radius: 999px; padding: 11px 16px 11px 42px; outline: none; color: var(--ink); box-shadow: var(--sombra); }
.busca input:focus { border-color: var(--acento); box-shadow: 0 0 0 3px var(--acento-bg); }
.topo .espaco { flex: 1; }
.btn-ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; position: relative; flex: none; color: var(--ink); box-shadow: var(--sombra); }
.btn-ico:hover { transform: translateY(-1px); }
.btn-ico .bolha { position: absolute; top: -3px; right: -3px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--vermelho); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--bg); }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--grad-lilas); color: #fff; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--borda); flex: none; box-shadow: var(--sombra); }
.conteudo { padding: 6px 28px 60px; max-width: 1360px; width: 100%; margin: 0 auto; }
.rodape-nav { display: none; }
.rodape-nav .nav-bolha { display: none; }
.faixa-modo { background: var(--amarelo-bg); color: var(--amarelo-tx); font-size: 12.5px; padding: 6px 14px; text-align: center; }

.pag-cab { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 10px 0 18px; flex-wrap: wrap; }
.pag-cab h1 { display: flex; align-items: center; gap: 10px; }
.pag-cab h1 > svg { color: var(--acento); }
.pag-cab .acoes { display: flex; gap: 8px; flex-wrap: wrap; }
.voltar { display: inline-flex; align-items: center; gap: 6px; color: var(--ink2); font-weight: 600; font-size: 13px; border: 0; background: none; padding: 0; margin-bottom: 4px; }

/* ---------- Componentes ---------- */
.card { border-radius: var(--raio); box-shadow: var(--sombra); padding: 16px; }
.card > h2, .card > .card-cab { margin-bottom: 12px; }
.card-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-cab h2 { display: flex; align-items: center; gap: 8px; min-width: 0; }
.grade { display: grid; gap: 14px; }
.grade > *, .col > *, .colunas-cards > * { min-width: 0; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); } .g4 { grid-template-columns: repeat(auto-fit, minmax(176px, 1fr)); }
.auto { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.colunas-cards { columns: 2; column-gap: 14px; }
.colunas-cards > .card { break-inside: avoid; margin-bottom: 14px; }
@media (min-width: 1500px) { .colunas-cards { columns: 3; } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; white-space: nowrap; color: var(--ink); transition: transform .12s, filter .12s; }
.btn:hover { transform: translateY(-1px); }
.btn.pri { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 8px 20px var(--brilho); } .btn.pri:hover { filter: brightness(1.06); }
.btn.perigo { color: var(--vermelho); } .btn.perigo.cheio { background: var(--vermelho); border-color: transparent; color: #fff; }
.btn.peq { padding: 7px 12px; font-size: 13px; }
.btn.suave { background: var(--acento-bg); border-color: transparent; color: var(--acento-tx); }
.btn.bloco { width: 100%; }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.link { border: 0; background: none; color: var(--acento-esc); font-weight: 700; padding: 0; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--cinza-bg); color: var(--ink2); white-space: nowrap; }
.chip.verde { background: var(--verde-bg); color: var(--verde-tx); } .chip.azul { background: var(--azul-bg); color: var(--azul-tx); }
.chip.lilas { background: var(--lilas-bg); color: var(--lilas-tx); } .chip.amarelo { background: var(--amarelo-bg); color: var(--amarelo-tx); }
.chip.rosa { background: var(--rosa-bg); color: var(--rosa-tx); } .chip.vermelho { background: var(--vermelho-bg); color: var(--vermelho-tx); } .chip.laranja { background: var(--laranja-bg); color: var(--laranja-tx); }
.ico-q { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; font-size: 18px; background: var(--cinza-bg); color: var(--ink2); flex: none; }
.ico-q.verde { background: var(--verde-bg); color: var(--verde-tx); } .ico-q.azul { background: var(--azul-bg); color: var(--azul-tx); } .ico-q.lilas { background: var(--lilas-bg); color: var(--lilas-tx); }
.ico-q.amarelo { background: var(--amarelo-bg); color: var(--amarelo-tx); } .ico-q.rosa { background: var(--rosa-bg); color: var(--rosa-tx); } .ico-q.vermelho { background: var(--vermelho-bg); color: var(--vermelho-tx); } .ico-q.laranja { background: var(--laranja-bg); color: var(--laranja-tx); }
.lista { display: flex; flex-direction: column; }
.item { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; padding: 10px 4px; border-bottom: 1px solid var(--line); min-width: 0; }
.item > .cresce { flex: 1 1 130px; }
.item:last-child { border-bottom: 0; }
.item.clicavel { cursor: pointer; border-radius: 12px; } .item.clicavel:hover { background: var(--vidro-2); }
.item .tit { font-weight: 600; } .item .sub { font-size: 13px; color: var(--ink2); }
.item.feito .tit { text-decoration: line-through; color: var(--ink3); }
.item .acoes { display: flex; gap: 6px; align-items: center; flex: none; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.check { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--campo-b); background: var(--campo); display: grid; place-items: center; flex: none; padding: 0; font-size: 14px; color: #fff; }
.check.on { background: var(--grad); border-color: transparent; box-shadow: 0 4px 10px var(--brilho); }
.vazio { text-align: center; padding: 26px 12px; color: var(--ink2); }
.vazio .emoji { width: 62px; height: 62px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; background: var(--acento-bg); color: var(--acento-tx); }
.abas { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 16px; padding: 2px 2px 4px; scrollbar-width: none; }
.abas::-webkit-scrollbar { display: none; }
.aba { padding: 8px 15px; border-radius: 999px; font-weight: 700; font-size: 13.5px; color: var(--ink2); white-space: nowrap; }
.aba.ativa { background: var(--ink); border-color: transparent; color: var(--bg); }
.prog { height: 9px; border-radius: 6px; background: var(--cinza-bg); overflow: hidden; }
.prog > i { display: block; height: 100%; border-radius: 6px; background: var(--grad); transition: width .3s; }
.stat { border-radius: var(--raio); box-shadow: var(--sombra); padding: 13px 15px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.stat .rot { font-size: 12px; color: var(--ink2); font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat .val { font-size: clamp(18px, 1.55vw, 22px); font-weight: 800; letter-spacing: -.025em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.stat .det { font-size: 11.5px; color: var(--ink3); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.val.pos { color: var(--verde-esc); } .val.neg { color: var(--vermelho); }
.aviso { border-radius: 16px; padding: 12px 15px; font-size: 13.5px; background: var(--azul-bg); color: var(--azul-tx); border: 1px solid var(--borda); }
.aviso.amarelo { background: var(--amarelo-bg); color: var(--amarelo-tx); } .aviso.rosa { background: var(--rosa-bg); color: var(--rosa-tx); } .aviso.lilas { background: var(--lilas-bg); color: var(--lilas-tx); } .aviso.vermelho { background: var(--vermelho-bg); color: var(--vermelho-tx); } .aviso.verde { background: var(--verde-bg); color: var(--verde-tx); }
.seletor-mes { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 3px; }
.seletor-mes button { border: 0; background: none; width: 32px; height: 32px; border-radius: 50%; font-size: 16px; } .seletor-mes button:hover { background: var(--cinza-bg); }
.seletor-mes span { font-weight: 700; font-size: 14px; min-width: 130px; text-align: center; }

/* ---------- Tela inicial ---------- */
.ola { margin: 6px 0 18px; }
.ola .peq { font-weight: 600; }
.ola h1 { font-size: 30px; margin: 2px 0; }
.destaques { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; margin-bottom: 16px; }
.hero-meta { position: relative; overflow: hidden; border-radius: 26px; padding: 22px; color: #fff; background: var(--grad); box-shadow: 0 16px 40px var(--brilho); display: flex; flex-direction: column; gap: 10px; cursor: pointer; min-height: 168px; }
.hero-meta::before, .hero-meta::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.hero-meta::before { width: 220px; height: 220px; right: -60px; top: -90px; } .hero-meta::after { width: 150px; height: 150px; right: 60px; bottom: -100px; background: rgba(255, 255, 255, .1); }
.hero-meta > * { position: relative; z-index: 1; }
.hero-meta .rot { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; opacity: .95; }
.hero-meta h2 { font-size: 23px; font-weight: 800; }
.hero-meta .seta { position: absolute; right: 20px; top: 20px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--acento-forte); display: grid; place-items: center; }
.hero-meta .barra { display: flex; align-items: center; gap: 10px; margin-top: auto; font-weight: 700; font-size: 13px; }
.hero-meta .barra .prog { flex: 1; height: 10px; background: rgba(255, 255, 255, .28); } .hero-meta .barra .prog > i { background: #fff; }
.saldo-card { position: relative; overflow: hidden; border-radius: 26px; padding: 22px; color: #fff; background: var(--grad-escuro); border: 1px solid var(--borda); box-shadow: var(--sombra); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); cursor: pointer; display: flex; flex-direction: column; gap: 6px; min-height: 168px; }
.saldo-card .rot { font-size: 13px; opacity: .8; font-weight: 600; }
.saldo-card .valor { font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; } .saldo-card .valor small { font-size: .62em; opacity: .55; font-weight: 700; }
.saldo-card .pares { display: flex; gap: 10px; margin-top: auto; flex-wrap: wrap; }
.saldo-card .par { flex: 1 1 120px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px; padding: 9px 12px; display: flex; align-items: center; gap: 9px; }
.saldo-card .par .bol { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .16); flex: none; }
.saldo-card .par small { display: block; font-size: 11.5px; opacity: .75; } .saldo-card .par b { font-size: 14px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { border-radius: 22px; box-shadow: var(--sombra); padding: 14px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px 12px; text-align: left; color: var(--ink); min-width: 0; }
.tile:hover { transform: translateY(-2px); }
.tile .ico-q { width: 44px; height: 44px; border-radius: 50%; }
.tile .n { font-weight: 800; font-size: 26px; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; } .tile .t { grid-column: 1 / -1; font-size: 12.5px; color: var(--ink2); line-height: 1.25; }
.acoes-rapidas { border-radius: 26px; box-shadow: var(--sombra); padding: 16px 10px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(74px, 1fr); gap: 4px; overflow-x: auto; scrollbar-width: none; margin-bottom: 16px; }
.acoes-rapidas::-webkit-scrollbar { display: none; }
.acao { border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink2); padding: 0 4px; }
.acao .bola { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--vidro); border: 1px solid var(--borda); color: var(--ink); box-shadow: var(--sombra); transition: transform .12s; }
.acao:hover .bola { transform: translateY(-2px); }
.acao.pri .bola { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 10px 22px var(--brilho); }
.resumo { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 10px; }
.resumo button { display: flex; align-items: center; gap: 10px; box-shadow: var(--sombra); border-radius: 18px; padding: 12px; text-align: left; color: var(--ink); }
.resumo .n { font-weight: 800; font-size: 18px; line-height: 1.1; } .resumo .t { font-size: 12.5px; color: var(--ink2); line-height: 1.25; }
.atalhos { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.atalhos::-webkit-scrollbar { display: none; }
.atalho { flex: none; display: flex; align-items: center; gap: 9px; text-align: left; padding: 11px 15px; border-radius: 16px; font-weight: 700; font-size: 13.5px; color: var(--ink); }
.atalho > svg { color: var(--acento); }
.atalho:hover { border-color: var(--acento); }

/* ---------- Perfil na tela inicial ---------- */
.perfil { display: flex; align-items: center; gap: 24px; margin: 4px 0 20px; }
.foto-g { position: relative; width: 136px; height: 136px; border-radius: 50%; padding: 4px; background: var(--grad); box-shadow: 0 18px 44px var(--brilho); flex: none; border: 0; transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.foto-g:hover { transform: scale(1.03) rotate(-1.5deg); }
.foto-g .dentro { width: 100%; height: 100%; border-radius: 50%; background: var(--vidro-forte) center/cover no-repeat; border: 4px solid var(--bg); display: grid; place-items: center; font-size: 50px; font-weight: 800; color: var(--acento-esc); }
.foto-g .cam { position: absolute; right: 2px; bottom: 6px; width: 36px; height: 36px; border-radius: 50%; background: var(--vidro-forte); border: 1px solid var(--borda); color: var(--ink); display: grid; place-items: center; box-shadow: var(--sombra); }
.perfil .ola { margin: 0; min-width: 0; }
.bolhas { display: flex; align-items: center; margin-top: 12px; flex-wrap: wrap; row-gap: 6px; }
.bolha-f { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--bg); margin-left: -10px; background: var(--grad-lilas) center/cover no-repeat; color: #fff; font-weight: 800; font-size: 15px; display: grid; place-items: center; padding: 0; flex: none; position: relative; transition: transform .18s cubic-bezier(.2, .8, .2, 1); box-shadow: var(--sombra); animation: pisca .45s backwards; }
.bolha-f:first-child { margin-left: 0; }
.bolha-f:hover { transform: translateY(-4px) scale(1.08); z-index: 2; }
.bolha-f.pendente { opacity: .55; }
.bolha-f.mais { background: var(--vidro); border: 1.5px dashed var(--campo-b); color: var(--ink2); box-shadow: none; }
.bolhas .leg { margin-left: 10px; font-size: 12.5px; color: var(--ink2); }
.avatar { background-position: center; background-size: cover; }
.avatar-p { width: 40px; height: 40px; border-radius: 50%; background: var(--grad-lilas) center/cover no-repeat; color: #fff; font-weight: 800; display: grid; place-items: center; flex: none; }

/* ---------- Bancos e cartões ---------- */
.banco-logo { width: 54px; aspect-ratio: 3 / 2; border-radius: 10px; background: var(--cinza-bg) center/cover no-repeat; flex: none; box-shadow: 0 2px 8px rgba(0, 0, 0, .16); display: grid; place-items: center; color: var(--ink2); }
.seletor-bancos { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.seletor-bancos button { position: relative; aspect-ratio: 3 / 2; border-radius: 14px; border: 2px solid transparent; padding: 0; overflow: hidden; background: var(--cinza-bg) center/cover no-repeat; color: var(--ink2); font-size: 11.5px; font-weight: 700; display: grid; place-items: center; transition: transform .15s, box-shadow .15s; }
.seletor-bancos button:hover { transform: translateY(-2px); }
.seletor-bancos button.on { border-color: var(--acento); box-shadow: 0 0 0 3px var(--acento-bg); }
.seletor-bancos button.on::after { content: "\2713"; position: absolute; right: 5px; top: 5px; width: 20px; height: 20px; border-radius: 50%; background: #fff; color: #17252a; font-size: 12px; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.cartoes-vis { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.cartao-visual { position: relative; overflow: hidden; border-radius: 22px; padding: 18px 20px; aspect-ratio: 1.62; color: var(--ct, #fff); background: linear-gradient(135deg, var(--c1, #1fa883), var(--c2, #2a8fd1)); box-shadow: 0 18px 40px rgba(10, 20, 30, .26); display: flex; flex-direction: column; justify-content: space-between; cursor: pointer; }
.cartao-visual::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; right: -90px; top: -120px; background: rgba(255, 255, 255, .13); }
.cartao-visual::after { content: ""; position: absolute; width: 200px; height: 200px; border-radius: 50%; left: -70px; bottom: -130px; background: rgba(255, 255, 255, .08); }
.cartao-visual > * { position: relative; z-index: 1; }
.cartao-visual .topo-c { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cartao-visual .banco-logo { width: 62px; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); outline: 1.5px solid rgba(255, 255, 255, .4); }
.cartao-visual .nome-c { font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
.cartao-visual .num-c { font-size: 13px; opacity: .85; letter-spacing: .18em; font-variant-numeric: tabular-nums; }
.cartao-visual .rod-c { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.cartao-visual .rod-c small { display: block; font-size: 11px; opacity: .8; } .cartao-visual .rod-c b { font-size: 16px; font-variant-numeric: tabular-nums; }
.cartao-visual .prog { height: 5px; background: rgba(127, 127, 127, .35); margin-top: 6px; } .cartao-visual .prog > i { background: currentColor; }
@media (hover: hover) { .cartao-visual:hover { transform: translateY(-5px) rotate(-.6deg); box-shadow: 0 26px 54px rgba(10, 20, 30, .34); } }
.contas-banco { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.conta-banco { background: var(--vidro); border: 1px solid var(--borda); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border-radius: 18px; box-shadow: var(--sombra); padding: 13px; display: flex; align-items: center; gap: 12px; cursor: pointer; min-width: 0; text-align: left; color: var(--ink); }
.conta-banco .sal { font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Seletor de cores ---------- */
.amostras { display: flex; flex-wrap: wrap; gap: 10px; }
.amostra-b { border: 0; background: none; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--ink2); width: 62px; }
.amostra { width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--campo-b), var(--sombra); transition: transform .18s; display: grid; place-items: center; color: #fff; }
.amostra-b:hover .amostra { transform: scale(1.1); }
.amostra-b.on .amostra { box-shadow: 0 0 0 2.5px var(--ink), var(--sombra); } .amostra-b.on { color: var(--ink); }

/* ---------- Formulários ---------- */
.campo { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.campo > label { font-size: 13px; font-weight: 700; color: var(--ink2); }
.campo .dica { font-size: 12px; color: var(--ink3); }
.inp, .campo input[type=text], .campo input[type=number], .campo input[type=date], .campo input[type=time], .campo input[type=email], .campo input[type=password], .campo select, .campo textarea, .rapido input {
  width: 100%; border: 1px solid var(--campo-b); background: var(--campo); color: var(--ink); border-radius: 14px; padding: 10px 13px; outline: none; min-height: 44px; }
.campo textarea { min-height: 76px; resize: vertical; }
.inp:focus, .campo input:focus, .campo select:focus, .campo textarea:focus, .rapido input:focus { border-color: var(--acento); box-shadow: 0 0 0 3px var(--acento-bg); }
.form-grade { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grade .inteiro { grid-column: 1 / -1; }
.marcar { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 14px; cursor: pointer; padding: 6px 0; }
.marcar input { width: 18px; height: 18px; accent-color: var(--acento); }
.chips-sel { display: flex; flex-wrap: wrap; gap: 6px; }
.chips-sel button { border: 1px solid var(--campo-b); background: var(--campo); color: var(--ink); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; }
.chips-sel button.on { background: var(--acento-bg); border-color: var(--acento); color: var(--acento-tx); }
.rapido { display: flex; gap: 8px; }
/* microfone do assistente */
.btn-mic { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; display: grid; place-items: center; position: relative; background: var(--acento-bg); color: var(--acento-tx); transition: transform .12s, background .2s, color .2s; }
.btn-mic:hover { transform: translateY(-1px); }
.btn-mic.ouvindo { background: var(--vermelho); color: #fff; }
.btn-mic.ouvindo::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--vermelho); animation: onda-mic 1.3s ease-out infinite; pointer-events: none; }
@keyframes onda-mic { to { transform: scale(1.75); opacity: 0; } }
.ouvindo-txt { color: var(--vermelho-tx); font-weight: 700; }
/* botões do topo quando a tela deles está aberta */
.btn-ico.ativo { background: var(--grad); color: #fff; box-shadow: 0 8px 20px var(--brilho); }
.avatar.ativo { border-color: var(--acento); box-shadow: 0 0 0 3px var(--acento-bg); }
.rapido input { flex: 1; min-width: 0; border-radius: 999px; padding-left: 16px; }
.anexo { display: flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 12px; font-size: 13px; }
.foto-prev { width: 100%; height: 130px; border-radius: 16px; background: var(--cinza-bg) center/cover no-repeat; display: grid; place-items: center; color: var(--ink3); font-size: 13px; }

/* ---------- Modal e avisos ---------- */
.fundo { position: fixed; inset: 0; background: rgba(8, 18, 20, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 18px; animation: aparece .15s; }
.modal { background: var(--vidro-forte); border: 1px solid var(--borda); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border-radius: 26px; width: 100%; max-width: 520px; max-height: 92vh; display: flex; flex-direction: column; box-shadow: var(--sombra-forte); animation: sobe .2s; }
.modal.largo { max-width: 720px; }
.modal-cab { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 10px; }
.modal-corpo { padding: 6px 22px 16px; overflow-y: auto; }
.modal-pe { padding: 12px 22px 20px; display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; border-top: 1px solid var(--line); }
.modal-pe .esq { margin-right: auto; }
.fechar { border: 0; background: var(--cinza-bg); color: var(--ink); width: 34px; height: 34px; border-radius: 50%; font-size: 14px; }
@keyframes aparece { from { opacity: 0; } } @keyframes sobe { from { transform: translateY(14px); opacity: 0; } }
#toasts { position: fixed; left: 50%; bottom: 104px; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: rgba(20, 32, 36, .92); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 14px; box-shadow: var(--sombra-forte); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .12); animation: sobe .2s; max-width: 90vw; }
.toast.erro { background: rgba(200, 55, 55, .95); }
.carregando { display: grid; place-items: center; min-height: 100vh; color: var(--ink2); gap: 12px; align-content: center; }
.giro { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--acento-bg); border-top-color: var(--acento); animation: gira .8s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }

/* ---------- Calendário ---------- */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal .dsem { text-align: center; font-size: 11.5px; font-weight: 700; color: var(--ink3); padding: 4px 0; }
.cal .dia { aspect-ratio: 1; min-height: 44px; border-radius: 14px; border: 1px solid transparent; background: var(--vidro-2); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-weight: 600; font-size: 14px; padding: 2px; position: relative; }
.cal .dia.fora { opacity: .35; } .cal .dia.hoje { border-color: var(--acento); color: var(--acento-esc); font-weight: 800; }
.cal .dia.sel { background: var(--grad); color: #fff; box-shadow: 0 6px 14px var(--brilho); }
.cal .dia .pts { display: flex; gap: 2px; height: 6px; } .cal .dia .pts i { width: 6px; height: 6px; border-radius: 50%; background: var(--azul); }
.cal .dia.mens { background: var(--rosa-bg); color: var(--rosa-tx); } .cal .dia.prev { background: transparent; border: 1.5px dashed var(--rosa); }
.cal .dia.fertil { background: var(--lilas-bg); } .cal .dia.ovul { background: var(--ovul); }
.cal .dia.sel.mens, .cal .dia.sel.fertil, .cal .dia.sel.prev, .cal .dia.sel.ovul { box-shadow: 0 0 0 2px var(--ink); }
.cal .dia.sel.mens { background: var(--rosa-bg); color: var(--rosa-tx); } .cal .dia.sel.prev { background: transparent; color: var(--ink); } .cal .dia.sel.fertil { background: var(--lilas-bg); color: var(--ink); } .cal .dia.sel.ovul { background: var(--ovul); color: var(--ink); }
.legenda { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: var(--ink2); }
.legenda i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* ---------- Calendário grande (Agenda) ---------- */
.quebra-cab { flex-wrap: wrap; row-gap: 8px; }
.cal-g { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-rows: minmax(118px, 1fr); gap: 6px; min-height: calc(100vh - 330px); }
.cal-g .dsem { grid-row: 1; height: 24px; align-self: start; text-align: center; font-size: 12px; font-weight: 700; color: var(--ink3); text-transform: capitalize; }
.cal-g { grid-template-rows: 24px; }
.cel { min-width: 0; border-radius: 16px; background: var(--vidro-2); border: 1.5px solid transparent; padding: 6px; display: flex; flex-direction: column; gap: 3px; cursor: pointer; overflow: hidden; transition: border-color .15s, background .15s, box-shadow .15s; }
.cel:hover { border-color: var(--acento); background: var(--vidro); }
.cel.fora { opacity: .42; }
.cel.sel { border-color: var(--acento); box-shadow: 0 0 0 3px var(--acento-bg); background: var(--vidro); }
.cel-cab { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1px; }
.cel .num { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.cel.hoje .num { background: var(--grad); color: #fff; box-shadow: 0 4px 10px var(--brilho); }
.cel .add-ev { width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--acento-bg); color: var(--acento-tx); font-weight: 800; line-height: 1; display: grid; place-items: center; opacity: 0; transition: opacity .15s; }
.cel:hover .add-ev, .cel.sel .add-ev, .cel .add-ev:focus-visible { opacity: 1; }
.ev { display: flex; align-items: center; gap: 5px; width: 100%; min-width: 0; border: 0; border-radius: 8px; padding: 3px 7px; font-size: 11.5px; font-weight: 600; text-align: left; background: var(--azul-bg); color: var(--azul-tx); transition: filter .12s, transform .12s; }
.ev:hover { filter: brightness(.94); transform: translateX(2px); }
.ev .hr { font-weight: 800; flex: none; font-variant-numeric: tabular-nums; }
.ev.verde { background: var(--verde-bg); color: var(--verde-tx); } .ev.amarelo { background: var(--amarelo-bg); color: var(--amarelo-tx); } .ev.lilas { background: var(--lilas-bg); color: var(--lilas-tx); }
.ev.vermelho { background: var(--vermelho-bg); color: var(--vermelho-tx); } .ev.laranja { background: var(--laranja-bg); color: var(--laranja-tx); } .ev.rosa { background: var(--rosa-bg); color: var(--rosa-tx); }
.ev.feito { opacity: .55; text-decoration: line-through; }
.cel .mais-ev { font-size: 11px; font-weight: 700; color: var(--ink2); padding-left: 5px; }
.entra .cel { animation: surge .4s cubic-bezier(.2, .8, .2, 1) backwards; }
@media (max-width: 900px) {
  .cal-g { gap: 3px; grid-auto-rows: minmax(76px, auto); min-height: 0; }
  .cel { padding: 3px; border-radius: 10px; gap: 2px; } .cel .num { width: 22px; height: 22px; font-size: 12px; } .cel .add-ev { display: none; }
  .ev { padding: 2px 4px; font-size: 9.5px; border-radius: 5px; } .ev .hr { display: none; } .cel .mais-ev { font-size: 9.5px; padding-left: 2px; }
}

/* ---------- Gráficos ---------- */
.barras-h { display: flex; flex-direction: column; gap: 9px; }
.barra-h { display: grid; grid-template-columns: minmax(90px, 30%) 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.barra-h .trilho { height: 12px; display: flex; }
.barra-h .trilho i { display: block; height: 100%; border-radius: 0 4px 4px 0; min-width: 2px; background: var(--s1); }
.barra-h .v { font-weight: 700; font-variant-numeric: tabular-nums; }
.colunas { display: flex; align-items: flex-end; gap: 10px; height: 170px; border-bottom: 1px solid var(--line); padding: 0 4px; }
.colunas .grupo { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 2px; height: 100%; min-width: 0; }
.colunas .grupo b { display: block; width: 100%; max-width: 22px; border-radius: 4px 4px 0 0; }
.colunas-rot { display: flex; gap: 10px; padding: 6px 4px 0; } .colunas-rot span { flex: 1; text-align: center; font-size: 11.5px; color: var(--ink2); min-width: 0; text-transform: capitalize; }
.tip { position: fixed; z-index: 300; background: rgba(20, 32, 36, .95); color: #fff; padding: 7px 11px; border-radius: 10px; font-size: 12.5px; pointer-events: none; white-space: pre-line; max-width: 240px; box-shadow: var(--sombra-forte); }
svg.linha-g { width: 100%; height: 170px; display: block; overflow: visible; }

/* ---------- Tabelas ---------- */
.tabela-x { overflow-x: auto; }
table.tab { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tab th { text-align: left; font-size: 12px; color: var(--ink2); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tab td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tab tr:last-child td { border-bottom: 0; }
.tab .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Metas (mural) ---------- */
.mural { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.sonho { border-radius: 24px; box-shadow: var(--sombra); overflow: hidden; cursor: pointer; display: flex; flex-direction: column; transition: transform .12s; }
.sonho:hover { transform: translateY(-3px); }
.sonho .foto { height: 136px; background: var(--grad-lilas) center/cover no-repeat; display: grid; place-items: center; color: rgba(255, 255, 255, .95); position: relative; }
.sonho .foto .pct { position: absolute; right: 10px; top: 10px; background: rgba(255, 255, 255, .92); border-radius: 999px; padding: 3px 11px; font-size: 13px; font-weight: 800; color: var(--acento-forte); }
.sonho .corpo { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 7px; }

/* ---------- Assistente ---------- */
.chat { display: flex; flex-direction: column; height: calc(100vh - 210px); min-height: 380px; }
.chat .msgs { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 6px 2px 14px; }
.msg { max-width: 82%; padding: 11px 15px; border-radius: 20px; font-size: 14.5px; white-space: pre-line; }
.msg.eu { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 6px; box-shadow: 0 8px 20px var(--brilho); }
.msg.ia { align-self: flex-start; box-shadow: var(--sombra); border-bottom-left-radius: 6px; }
.msg .prop { margin-top: 9px; padding: 11px 13px; border-radius: 16px; background: var(--acento-bg); white-space: normal; }
.msg .prop .bts { display: flex; gap: 6px; margin-top: 9px; flex-wrap: wrap; }
.sugestoes { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.sugestoes button { border-radius: 999px; padding: 7px 13px; font-size: 12.5px; font-weight: 600; color: var(--ink2); }

/* ---------- Login e planos ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth .lado { position: relative; overflow: hidden; background: var(--grad); color: #fff; margin: 14px; border-radius: 32px; padding: 56px 48px; display: flex; flex-direction: column; justify-content: center; gap: 18px; box-shadow: 0 24px 60px var(--brilho); }
.auth .lado::before { content: ""; position: absolute; width: 420px; height: 420px; right: -140px; top: -160px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.auth .lado::after { content: ""; position: absolute; width: 300px; height: 300px; left: -100px; bottom: -140px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.auth .lado > * { position: relative; z-index: 1; }
.auth .lado .logo { background: rgba(255, 255, 255, .22); box-shadow: none; }
.auth .lado h1 { font-size: 36px; line-height: 1.15; }
.auth .lado ul { padding: 0; margin: 6px 0 0; font-size: 15.5px; display: flex; flex-direction: column; gap: 10px; }
.auth .lado li { list-style: none; display: flex; align-items: center; gap: 10px; }
.auth .lado li .bol { width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .2); display: grid; place-items: center; flex: none; }
.auth .caixa { display: flex; align-items: center; justify-content: center; padding: 28px; }
.auth form { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 13px; background: var(--vidro); border: 1px solid var(--borda); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border-radius: 28px; padding: 28px; box-shadow: var(--sombra); }
.planos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.plano { border-radius: 24px; box-shadow: var(--sombra); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.plano.atual { border: 2px solid var(--acento); }
.plano .preco { font-size: 28px; font-weight: 800; letter-spacing: -.02em; } .plano .preco small { font-size: 13px; font-weight: 600; color: var(--ink2); }
.plano ul { margin: 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--ink2); display: flex; flex-direction: column; gap: 4px; flex: 1; }
.plano li::before { content: "✓ "; color: var(--acento); font-weight: 800; }

/* ---------- Celular ---------- */
@media (max-width: 900px) {
  .lateral { display: none; }
  .principal, .shell.fixo .principal { margin-left: 0; }
  .topo { padding: 12px 16px 18px; gap: 8px; } .topo .marca { display: flex; font-size: 16px; white-space: nowrap; gap: 8px; } .topo .btn-ico, .topo .avatar { width: 40px; height: 40px; }
  .topo .busca { display: none; } .topo .busca.aberta { display: block; position: absolute; left: 12px; right: 12px; top: 10px; max-width: none; z-index: 5; }
  .conteudo { padding: 4px 16px 124px; }
  .rodape-nav .nav-bolha { display: block; }
  .rodape-nav { display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; position: fixed; bottom: calc(12px + env(safe-area-inset-bottom)); left: 12px; right: 12px; z-index: 50; border-radius: 28px; padding: 8px 6px; box-shadow: var(--sombra-forte); background: color-mix(in srgb, var(--vidro-forte) 80%, transparent); }
  .rodape-nav button { border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 700; color: var(--ink2); padding: 6px 0; border-radius: 18px; }
  .rodape-nav button { position: relative; z-index: 1; } .rodape-nav button.ativo { color: var(--acento-esc); }
  .rodape-nav .nav-bolha { top: 8px; bottom: 8px; right: auto; height: auto; border-radius: 18px; background: var(--acento-bg); box-shadow: none; }
  .rodape-nav .nav-bolha.move { animation-name: bolha-estica-x; }
  .rodape-nav .mais { background: none !important; }
  .rodape-nav .mais .ico { width: 54px; height: 54px; margin: -30px 0 -6px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px var(--brilho); border: 4px solid var(--bg); }
  .g2, .g3 { grid-template-columns: 1fr; } .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .colunas-cards { columns: 1; } .g4.manter, .g2.manter, .g3.manter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .destaques { grid-template-columns: 1fr; }
  .perfil { flex-direction: column; text-align: center; gap: 14px; margin-top: 8px; } .perfil .bolhas { justify-content: center; } .foto-g { width: 124px; height: 124px; }
  .cartoes-vis { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } .tile { padding: 11px; border-radius: 20px; gap: 6px 8px; } .tile .ico-q { width: 36px; height: 36px; } .tile .n { font-size: 21px; }
  h1 { font-size: 22px; } .ola h1 { font-size: 27px; }
  .fundo { align-items: flex-end; padding: 0; }
  .modal { max-width: none; border-radius: 28px 28px 0 0; max-height: 94vh; }
  .modal-pe { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  .auth { grid-template-columns: 1fr; } .auth .lado { padding: 26px 22px; margin: 12px 12px 0; border-radius: 26px; } .auth .lado h1 { font-size: 24px; } .auth .lado ul { display: none; } .auth .caixa { padding: 16px 12px 28px; align-items: flex-start; }
  .chat { height: calc(100vh - 270px); }
}
@media (max-width: 520px) { .form-grade { grid-template-columns: 1fr; } .barra-h { grid-template-columns: minmax(80px, 34%) 1fr auto; } .cal .dia { min-height: 38px; font-size: 13px; } .saldo-card .valor { font-size: 30px; } }
/* ---------- Sub-abas, textos longos ---------- */
.abas.sub { margin-top: -8px; }
.abas.sub .aba { padding: 6px 13px; font-size: 13px; font-weight: 600; box-shadow: none; }
.abas.sub .aba.ativa { background: var(--acento-bg); color: var(--acento-tx); border-color: var(--acento); }
.previa, .duas { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.texto-livre { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }

/* ---------- Leitura ---------- */
.estante { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.livro { border-radius: 18px; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; background: var(--vidro); border: 1px solid var(--borda); box-shadow: var(--sombra); transition: transform .2s, box-shadow .2s; min-width: 0; }
.livro:focus-visible { outline: 2px solid var(--acento); outline-offset: 2px; }
@media (hover: hover) { .livro:hover { transform: translateY(-3px); box-shadow: var(--sombra-alta); } }
.livro .corpo { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.capa { position: relative; aspect-ratio: 2 / 3; background: linear-gradient(150deg, var(--lilas-bg), var(--acento-bg)) center / cover no-repeat; display: grid; place-items: center; overflow: hidden; }
.capa .sem { padding: 12px; text-align: center; display: flex; flex-direction: column; gap: 6px; color: var(--lilas-tx); min-width: 0; }
.capa .sem b { font-size: 14px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.capa .sem small { font-size: 11.5px; opacity: .85; overflow-wrap: anywhere; }
.capa .pct { position: absolute; right: 8px; bottom: 8px; background: rgba(0, 0, 0, .62); color: #fff; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.livro-topo { display: flex; gap: 16px; align-items: flex-start; }
.livro-topo .capa { width: 120px; flex: none; border-radius: 12px; }
.estrelas { color: var(--amarelo); letter-spacing: 1px; font-size: 14px; white-space: nowrap; }
.estrelas i { font-style: normal; color: var(--ink3); opacity: .45; }

/* ---------- Minhas notas ---------- */
.notas { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 16px; align-items: start; }
.notas-lista { display: flex; flex-direction: column; gap: 10px; position: sticky; top: 84px; max-height: calc(100vh - 104px); padding: 14px; }
.notas-filtros { display: flex; flex-direction: column; gap: 8px; } .notas-filtros:empty { display: none; }
.notas-filtros .chips-sel button { padding: 4px 10px; font-size: 12.5px; display: inline-flex; align-items: center; gap: 4px; }
.chips-sel.etiquetas button { border-style: dashed; }
.notas-itens { overflow-y: auto; display: flex; flex-direction: column; gap: 4px; min-height: 80px; margin: 0 -6px; padding: 0 6px 2px; }
.nota-item { text-align: left; border: 1px solid transparent; background: none; color: var(--ink); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; min-width: 0; width: 100%; flex: none; cursor: pointer; }
.nota-item:hover { background: var(--vidro-2); }
.nota-item.ativa { background: var(--acento-bg); border-color: var(--acento); }
.nota-item .tit { font-weight: 700; }
.nota-item .previa { font-size: 13px; color: var(--ink2); }
.nota-item .rodape-n { display: flex; gap: 8px; align-items: center; font-size: 11.5px; color: var(--ink3); min-width: 0; overflow: hidden; white-space: nowrap; }
.nota-item .rodape-n > span { display: inline-flex; align-items: center; flex: none; }
.nota-item .rodape-n > .pasta-n { display: block; flex: 0 1 auto; background: var(--cinza-bg); border-radius: 999px; padding: 1px 8px; max-width: 140px; color: var(--ink2); }
.marca-n { color: var(--ink3); display: inline-flex; flex: none; } .marca-n.fav { color: var(--amarelo); }
.notas-ed { display: flex; flex-direction: column; gap: 10px; min-height: 62vh; padding: 14px 18px 16px; }
.nota-topo { display: flex; align-items: center; gap: 6px; min-height: 36px; }
.nota-status { font-size: 12px; color: var(--ink3); }
.btn-n { width: 36px; height: 36px; border-radius: 50%; border: 0; background: none; color: var(--ink2); display: grid; place-items: center; flex: none; cursor: pointer; }
.btn-n:hover { background: var(--cinza-bg); color: var(--ink); }
.btn-n.on { background: var(--acento-bg); color: var(--acento-tx); }
.nota-barra { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; padding: 4px; border-radius: 14px; background: var(--vidro-forte); border: 1px solid var(--line); position: sticky; top: 72px; z-index: 5; }
.nota-barra button { min-width: 34px; height: 34px; padding: 0 8px; border: 0; background: none; color: var(--ink); border-radius: 10px; display: grid; place-items: center; font-size: 15px; cursor: pointer; }
.nota-barra button:hover { background: var(--cinza-bg); }
.nota-barra button.txt { font-size: 12.5px; font-weight: 700; }
.nota-barra .sep { width: 1px; height: 20px; background: var(--line); margin: 0 4px; }
.nota-titulo { border: 0; background: none; outline: none; color: var(--ink); font-size: 22px; font-weight: 800; letter-spacing: -.02em; width: 100%; padding: 4px 0; }
.nota-titulo::placeholder { color: var(--ink3); }
.nota-corpo { flex: 1; min-height: 240px; outline: none; font-size: 15.5px; line-height: 1.6; overflow-wrap: anywhere; }
.nota-corpo.vazia::before { content: attr(data-ph); color: var(--ink3); float: left; height: 0; pointer-events: none; }
.nota-corpo h2 { font-size: 19px; margin: 10px 0 4px; } .nota-corpo h3 { margin: 8px 0 4px; }
.nota-corpo ul, .nota-corpo ol { padding-left: 26px; margin: 4px 0; }
.nota-corpo a { color: var(--acento-tx); text-decoration: underline; cursor: pointer; }
.nota-corpo img { max-width: 100%; height: auto; border-radius: 12px; margin: 6px 0; display: block; }
.nota-corpo blockquote { border-left: 3px solid var(--acento); padding-left: 12px; color: var(--ink2); margin: 6px 0; }
.nota-corpo hr { border: 0; border-top: 1px solid var(--line); margin: 10px 0; }
.nota-link { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 12px; background: var(--acento-bg); color: var(--acento-tx); font-size: 13px; min-width: 0; }
.nota-link[hidden] { display: none; }
.nota-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; border-top: 1px solid var(--line); padding-top: 10px; }
.nota-pasta { display: flex; align-items: center; gap: 6px; color: var(--ink2); min-width: 0; }
.nota-pasta select { border: 1px solid var(--campo-b); background: var(--campo); color: var(--ink); border-radius: 999px; padding: 6px 10px; font-size: 13px; max-width: 230px; min-height: 34px; }
.nota-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--ink2); flex: 1; min-width: 180px; }
.nota-tags .chip button { border: 0; background: none; color: inherit; padding: 0 0 0 3px; font-size: 15px; line-height: 1; cursor: pointer; }
.nota-tags input { border: 0; background: none; outline: none; color: var(--ink); font-size: 13px; width: 120px; padding: 5px 2px; }
.nota-pe { font-size: 11.5px; color: var(--ink3); }
@media (max-width: 900px) {
  .notas { grid-template-columns: minmax(0, 1fr); }
  .notas-lista { position: static; max-height: none; }
  .notas-itens { overflow: visible; }
  .notas-pag.aberta .pag-cab, .notas-pag.aberta .notas-lista { display: none; }
  .notas-pag:not(.aberta) .notas-ed { display: none; }
  .notas-ed { min-height: 70vh; padding: 12px 14px 14px; }
  .nota-barra { top: 66px; }
  .nota-tags input, .nota-pasta select, .nota-corpo { font-size: 16px; }
  .livro-topo .capa { width: 92px; }
  .estante { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; }
}
@media (min-width: 901px) { .so-cel { display: none !important; } }
@media (max-width: 900px) { .so-pc { display: none !important; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- Impressão (exportar PDF): sempre claro e sem vidro ---------- */
@media print {
  :root, :root[data-tema="escuro"] { color-scheme: light; --ink: #17252a; --ink2: #586870; --ink3: #8a979d; --line: #ddd; --vidro: #fff; --borda: #ddd; --cinza-bg: #f1f1f1; }
  body::before { display: none; } body { background: #fff; }
  .lateral, .topo, .rodape-nav, .nao-imprime, .faixa-modo, #toasts { display: none !important; }
  .shell { display: block; } .conteudo { padding: 0; max-width: none; }
  .card, .stat { box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; break-inside: avoid; }
}
