/* Contas da Casa — visual branco, pensado para iPhone.
   Layout: barra do mês no topo, conteúdo rolando no meio, abas fixas embaixo com botão + no centro. */
:root{
  --bg:#FFFFFF; --soft:#F4F4F2; --soft-2:#ECECE8; --ink:#1B1B1B; --muted:#6A6A66; --line:#E6E6E2;
  --ok:#17804F; --ok-soft:#E3F2EA; --warn:#9A5F0C; --warn-soft:#FAEFDB; --bad:#BE3B28; --bad-soft:#FBE6E1;
  --font-display:"Bricolage Grotesque", -apple-system, "SF Pro Display", system-ui, sans-serif;
  --font-body:"DM Sans", -apple-system, "SF Pro Text", system-ui, sans-serif;
  --r:16px;
  --st:env(safe-area-inset-top, 0px); --sb:env(safe-area-inset-bottom, 0px);
  --sl:env(safe-area-inset-left, 0px); --sr:env(safe-area-inset-right, 0px);
  --topo:52px; --abas:62px;
  color-scheme:light;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;height:100%;background:var(--bg);overflow-x:hidden;touch-action:manipulation}
body{color:var(--ink);font-family:var(--font-body);font-size:16px;line-height:1.4;-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%}
[hidden]{display:none !important}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer;touch-action:manipulation}
a{color:inherit}
.num{font-variant-numeric:tabular-nums}
h1,h2,h3{font-family:var(--font-display);margin:0;text-wrap:balance;letter-spacing:-.01em}
h1{font-size:28px;font-weight:700}
h2{font-size:19px;font-weight:600}
h3{font-size:16px;font-weight:600}
.nota{font-size:13.5px;color:var(--muted);margin:0}
:focus-visible{outline:2px solid var(--ink);outline-offset:2px}

/* ---------- botões ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 18px;border-radius:14px;border:1px solid var(--line);background:var(--bg);font-weight:600;font-size:16px;text-decoration:none;color:var(--ink)}
.btn:active{background:var(--soft)}
.btn.primario{background:var(--ink);border-color:var(--ink);color:#fff}
.btn.primario:active{background:#000}
.btn.perigo{color:var(--bad)}
.btn.verde{background:var(--ok);border-color:var(--ok);color:#fff}
.btn.cheio{width:100%}
.btn svg{width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.btn.pequeno{min-height:38px;padding:0 14px;font-size:14.5px;border-radius:12px}
.btn:disabled{opacity:.45}
.link-btn{color:var(--ink);font-weight:600;font-size:14.5px;text-decoration:underline;text-underline-offset:3px;padding:6px 0}

/* ---------- carregando / entrada ---------- */
.tela-centro{min-height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px}
.logo{border-radius:18px}
.tela-entrada{min-height:100%;padding:calc(var(--st) + 36px) calc(20px + var(--sr)) calc(var(--sb) + 28px) calc(20px + var(--sl));display:flex;flex-direction:column;gap:22px;max-width:480px;margin:0 auto}
.entrada-topo{display:flex;flex-direction:column;gap:10px}
.segmento{display:grid;grid-template-columns:1fr 1fr;background:var(--soft);border-radius:12px;padding:3px}
.segmento button{min-height:40px;border-radius:10px;font-weight:600;color:var(--muted);font-size:15px}
.segmento button[aria-pressed="true"]{background:var(--bg);color:var(--ink);box-shadow:0 1px 3px rgba(0,0,0,.1)}
.cartao{border:1px solid var(--line);border-radius:var(--r);padding:16px;display:flex;flex-direction:column;gap:12px}

/* ---------- formulários ---------- */
form{display:flex;flex-direction:column;gap:14px;margin:0}
.campo{display:flex;flex-direction:column;gap:6px}
.campo label,.rotulo{font-size:14px;font-weight:600}
.ajuda{font-size:13px;color:var(--muted)}
input,select,textarea{font:inherit;font-size:16px;color:var(--ink);background:var(--soft);border:1px solid transparent;border-radius:12px;padding:0 14px;min-height:50px;width:100%;-webkit-appearance:none;appearance:none}
select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236A6A66' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:18px;padding-right:40px}
textarea{padding:12px 14px;min-height:84px;resize:vertical;line-height:1.4}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--ink);background:var(--bg)}
input[type="date"]{display:flex;align-items:center}
.duas{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.erro-txt{color:var(--bad);font-size:14px;margin:0}
.erro-txt:empty{display:none}
.chave{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:50px;padding:0 4px;font-size:15.5px;font-weight:500}
.chave input{position:absolute;opacity:0;width:1px;height:1px}
.chave .trilho{flex:none;width:51px;height:31px;border-radius:999px;background:var(--soft-2);position:relative;transition:background .2s}
.chave .trilho::after{content:"";position:absolute;top:2px;left:2px;width:27px;height:27px;border-radius:50%;background:#fff;box-shadow:0 2px 4px rgba(0,0,0,.2);transition:transform .2s}
.chave input:checked + .trilho{background:var(--ok)}
.chave input:checked + .trilho::after{transform:translateX(20px)}
.chave input:focus-visible + .trilho{outline:2px solid var(--ink);outline-offset:2px}

/* ---------- topo ---------- */
.topo{position:fixed;top:0;left:0;right:0;z-index:10;display:grid !important;grid-template-columns:44px 1fr 44px;background:rgba(255,255,255,.92);-webkit-backdrop-filter:saturate(180%) blur(16px);backdrop-filter:saturate(180%) blur(16px);border-bottom:1px solid var(--line);padding:var(--st) calc(8px + var(--sr)) 0 calc(8px + var(--sl));height:calc(var(--topo) + var(--st));display:flex;align-items:center;justify-content:space-between}
.topo-mesbox{display:flex;align-items:center;justify-content:center;gap:2px;min-width:0}
.topo-lado{width:44px}
.topo-btn{width:44px;height:44px;display:grid;place-items:center;border-radius:12px}
.topo-btn:active{background:var(--soft)}
.topo-btn svg{width:22px;height:22px;fill:none;stroke:var(--ink);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.topo-mes{font-family:var(--font-display);font-weight:600;font-size:17px;padding:8px 6px;border-radius:12px;white-space:nowrap}
.topo-mes:active{background:var(--soft)}

/* ---------- conteúdo ---------- */
.conteudo{overflow-x:hidden;padding:calc(var(--topo) + var(--st) + 16px) calc(16px + var(--sr)) calc(var(--abas) + var(--sb) + 24px) calc(16px + var(--sl));max-width:640px;margin:0 auto;display:flex;flex-direction:column;gap:18px}
.secao{display:flex;flex-direction:column;gap:10px}
.secao-topo{display:flex;align-items:baseline;justify-content:space-between;gap:10px}

.hero{background:var(--ink);color:#fff;border-radius:22px;padding:20px;display:flex;flex-direction:column;gap:6px}
.hero .rot{font-size:14px;opacity:.75}
.hero .val{font-family:var(--font-display);font-weight:700;font-size:40px;line-height:1.05}
.hero .val.neg{color:#FF9C8A}
.hero .linha{font-size:14px;opacity:.85;display:flex;gap:14px;flex-wrap:wrap}
.hero .linha b{font-weight:600}
.mini{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.mini div{background:var(--soft);border-radius:14px;padding:12px;display:flex;flex-direction:column;gap:2px;min-width:0}
.mini span{font-size:12.5px;color:var(--muted)}
.mini b{font-family:var(--font-display);font-size:clamp(13px,3.9vw,17px);font-weight:700;white-space:nowrap;letter-spacing:-.01em}
.mini .vermelho b{color:var(--bad)}
.mini .verde b{color:var(--ok)}

.aviso{border-radius:14px;padding:12px 14px;font-size:14.5px;display:flex;flex-direction:column;gap:10px;background:var(--soft)}
.aviso.erro{background:var(--bad-soft)}
.aviso.bom{background:var(--ok-soft)}
.aviso .acoes{display:flex;gap:8px;flex-wrap:wrap}

.pessoas{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.pessoa{border:1px solid var(--line);border-radius:14px;padding:12px;display:flex;flex-direction:column;gap:4px;font-size:13.5px;color:var(--muted);min-width:0}
.pessoa strong{color:var(--ink);font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pessoa .l{display:flex;justify-content:space-between;gap:6px}
.pessoa b{color:var(--ink);font-weight:600}

/* filtro por pessoa */
.hero-quem{display:grid;grid-template-columns:repeat(3,1fr);background:rgba(255,255,255,.1);border-radius:12px;padding:3px;margin-bottom:8px}
.hero-quem button{min-height:36px;border-radius:9px;font-size:14px;font-weight:600;color:rgba(255,255,255,.7);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0 6px}
.hero-quem button[aria-pressed="true"]{background:#fff;color:var(--ink)}
.chips-quem{display:flex;flex-wrap:wrap;gap:8px}
.chips-quem::-webkit-scrollbar{display:none}
.chips-quem button{flex:none;min-height:38px;padding:0 14px;border-radius:999px;border:1px solid var(--line);font-size:14.5px;font-weight:600;color:var(--muted);white-space:nowrap}
.chips-quem button[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:#fff}

/* filtro */
.filtro{display:grid;grid-template-columns:repeat(3,1fr);background:var(--soft);border-radius:12px;padding:3px}
.filtro button{min-height:36px;border-radius:10px;font-size:14.5px;font-weight:600;color:var(--muted)}
.filtro button[aria-pressed="true"]{background:var(--bg);color:var(--ink);box-shadow:0 1px 3px rgba(0,0,0,.1)}

/* lista */
.lista{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
.item{display:grid;grid-template-columns:4px minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px 14px 12px 0;border-top:1px solid var(--line);background:var(--bg);text-align:left;width:100%}
.item:first-child{border-top:none}
.item:active{background:var(--soft)}
.faixa{align-self:stretch;background:transparent;border-radius:0 3px 3px 0}
.item.atrasada .faixa{background:var(--bad)}
.item.hoje .faixa,.item.breve .faixa{background:var(--warn)}
.item.paga .faixa{background:var(--ok)}
.info{display:flex;flex-direction:column;gap:3px;min-width:0}
.desc{font-weight:600;font-size:15.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.item.paga .desc{color:var(--muted)}
.meta{display:flex;flex-wrap:wrap;gap:4px 8px;font-size:12.5px;color:var(--muted);align-items:center}
.pill{font-size:12px;font-weight:600;border-radius:999px;padding:2px 8px;background:var(--soft);color:var(--ink);white-space:nowrap}
.pill.atrasada{background:var(--bad-soft);color:var(--bad)}
.pill.hoje,.pill.breve{background:var(--warn-soft);color:var(--warn)}
.pill.paga{background:var(--ok-soft);color:var(--ok)}
.direita{display:flex;flex-direction:column;align-items:flex-end;gap:6px}
.valor{font-family:var(--font-display);font-weight:700;font-size:17px;white-space:nowrap}
.valor.entrada{color:var(--ok)}
.btn-pagar{min-height:34px;padding:0 14px;border-radius:999px;background:var(--ink);color:#fff;font-size:14px;font-weight:600;display:inline-flex;align-items:center;text-decoration:none}
.btn-pagar:active{background:#000}
.vazio{border:1px dashed var(--line);border-radius:var(--r);padding:26px 16px;text-align:center;color:var(--muted);font-size:14.5px;display:flex;flex-direction:column;gap:12px;align-items:center}
.total-lista{display:flex;justify-content:space-between;font-size:14px;color:var(--muted);padding:0 4px}
.total-lista b{color:var(--ink)}

/* categorias e histórico */
.cat{display:flex;flex-direction:column;gap:12px;border:1px solid var(--line);border-radius:var(--r);padding:14px}
.cat-linha{display:grid;grid-template-columns:1fr auto;gap:5px 10px;font-size:14.5px}
.cat-barra{grid-column:1/-1;height:6px;border-radius:4px;background:var(--soft);overflow:hidden}
.cat-barra span{display:block;height:100%;background:var(--ink);border-radius:4px}
.hist{border:1px solid var(--line);border-radius:var(--r);padding:14px;display:flex;flex-direction:column;gap:8px}
.hist svg{width:100%;height:auto;display:block}
.legenda{display:flex;gap:14px;font-size:12.5px;color:var(--muted)}
.legenda i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:5px;vertical-align:-1px}

/* ajustes */
.grupo{border:1px solid var(--line);border-radius:var(--r);padding:16px;display:flex;flex-direction:column;gap:12px}
.codigo-convite{font-family:var(--font-display);font-size:32px;font-weight:700;letter-spacing:.12em}
.banco-linha{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center}
.banco-linha .campos{display:flex;flex-direction:column;gap:6px}
.banco-linha button{width:44px;height:44px;border-radius:12px;color:var(--bad);font-size:20px}
.passos{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:8px;font-size:14.5px}

/* ---------- abas ---------- */
.abas{position:fixed;left:0;right:0;bottom:0;max-width:640px;margin:0 auto;z-index:10;background:rgba(255,255,255,.94);-webkit-backdrop-filter:saturate(180%) blur(16px);backdrop-filter:saturate(180%) blur(16px);border-top:1px solid var(--line);height:calc(var(--abas) + var(--sb));padding:0 calc(4px + var(--sr)) var(--sb) calc(4px + var(--sl));display:grid;grid-template-columns:repeat(5,1fr);align-items:center}
.aba{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;height:100%;color:var(--muted);font-size:11px;font-weight:600}
.aba svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.aba[aria-current="page"]{color:var(--ink)}
.aba[aria-current="page"] svg{stroke-width:2.3}
.aba-mais{justify-self:center;width:54px;height:54px;border-radius:50%;background:var(--ink);display:grid;place-items:center;box-shadow:0 6px 18px rgba(0,0,0,.22);margin-top:-14px}
.aba-mais svg{width:26px;height:26px;fill:none;stroke:#fff;stroke-width:2.6;stroke-linecap:round}
.aba-mais:active{transform:scale(.95)}

/* ---------- folha (bottom sheet) ---------- */
.folha-fundo{position:fixed;inset:0;z-index:40;background:rgba(0,0,0,.35);display:flex;align-items:flex-end;justify-content:center}
.folha{background:var(--bg);width:100%;max-width:640px;max-height:calc(100% - var(--st) - 12px);border-radius:22px 22px 0 0;display:flex;flex-direction:column;overflow:hidden}
.folha-alca{width:40px;height:5px;border-radius:3px;background:var(--soft-2);margin:8px auto 0;flex:none}
.folha-topo{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 18px 6px;flex:none}
.folha-fechar{width:36px;height:36px;border-radius:50%;background:var(--soft);display:grid;place-items:center;font-size:18px;color:var(--muted)}
.folha-corpo{padding:8px 18px 18px;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;display:flex;flex-direction:column;gap:14px}
.folha-rodape{flex:none;padding:12px 18px calc(12px + var(--sb));border-top:1px solid var(--line);display:flex;gap:10px;background:var(--bg)}
.folha-rodape .btn{flex:1}
.acoes-lista{display:flex;flex-direction:column;gap:8px}
.acoes-lista .btn{justify-content:flex-start;min-height:54px;border-radius:14px}
.acoes-lista .btn svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.resumo-item{background:var(--soft);border-radius:14px;padding:14px;display:flex;flex-direction:column;gap:4px}
.resumo-item .valor{font-size:26px}
.codigo-fmt{font-family:ui-monospace,"SF Mono",Menlo,monospace;font-size:13px;overflow-wrap:anywhere;color:var(--muted)}
.bol-dados{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.bol-dados div{background:var(--soft);border-radius:12px;padding:10px 12px;display:flex;flex-direction:column;gap:2px}
.bol-dados span{font-size:12px;color:var(--muted)}
.bol-dados b{font-family:var(--font-display);font-size:17px;font-weight:700}
.bol-dados .cheio{grid-column:1/-1}
.bol-botoes{display:grid;grid-template-columns:1fr 1fr;gap:10px}

/* ---------- scanner ---------- */
.scanner{position:fixed;inset:0;z-index:60;background:#000;color:#fff}
.scanner video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.scanner-guia{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none}
.scanner-guia span{width:88%;height:22%;max-height:200px;border:3px solid #fff;border-radius:14px;box-shadow:0 0 0 9999px rgba(0,0,0,.45)}
.scanner-topo{position:absolute;top:0;left:0;right:0;padding:calc(var(--st) + 10px) 16px 10px;display:flex;justify-content:flex-end}
.scanner-btn{background:rgba(0,0,0,.55);color:#fff;border-radius:999px;padding:10px 18px;font-weight:600}
.scanner-dica{position:absolute;left:16px;right:16px;bottom:calc(var(--sb) + 28px);text-align:center;margin:0;font-size:15px;text-shadow:0 1px 4px rgba(0,0,0,.6)}

/* ---------- toast ---------- */
.toast{position:fixed;left:12px;right:12px;bottom:calc(var(--abas) + var(--sb) + 12px);z-index:50;max-width:560px;margin:0 auto;background:var(--ink);color:#fff;border-radius:16px;padding:14px;display:flex;flex-direction:column;gap:10px;box-shadow:0 10px 30px rgba(0,0,0,.25);font-size:15px}
.toast-acoes{display:flex;gap:8px;flex-wrap:wrap}
.toast-acoes button{border:1px solid rgba(255,255,255,.6);border-radius:10px;padding:8px 14px;font-weight:600;font-size:14px}
.toast input{background:#fff;color:var(--ink);min-height:42px;font-size:13px}

@media (prefers-reduced-motion:no-preference){
  .folha-fundo:not([hidden]) .folha{animation:sobe .24s cubic-bezier(.2,.8,.2,1)}
  .folha-fundo:not([hidden]){animation:aparece .2s ease}
  .chave .trilho,.chave .trilho::after{transition:all .2s}
}
@keyframes sobe{from{transform:translateY(100%)}to{transform:none}}
@keyframes aparece{from{background:rgba(0,0,0,0)}to{background:rgba(0,0,0,.35)}}
@media (max-width:360px){
  .hero .val{font-size:34px}
  .mini b{font-size:15px}
  .duas{grid-template-columns:1fr}
}

/* ---------- consultor (chat) ---------- */
.chat-topo{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.chat-topo .link-btn{flex:none;margin-top:6px}
.modo-btn{display:flex;align-items:center;gap:12px;width:100%;text-align:left;border:1px solid var(--line);border-radius:14px;padding:12px 14px;background:var(--bg)}
.modo-btn.on{background:#FFF3EF;border-color:#F4C6B9}
.modo-ic{font-size:22px;flex:none}
.modo-txt{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.modo-txt b{font-size:15px}
.modo-txt span{font-size:13px;color:var(--muted)}
.mini-chave{min-height:0;padding:0;flex:none}
.mini-chave .trilho.ligado{background:var(--bad)}
.mini-chave .trilho.ligado::after{transform:translateX(20px)}
.chat{display:flex;flex-direction:column;gap:10px}
.msg{max-width:88%;border-radius:18px;padding:10px 14px;font-size:15.5px;line-height:1.45;overflow-wrap:anywhere}
.msg p{margin:0 0 6px}.msg p:last-child{margin-bottom:0}
.msg ul,.msg ol{margin:4px 0 8px;padding-left:20px;display:flex;flex-direction:column;gap:3px}
.msg h3{font-size:15.5px;margin:10px 0 4px}.msg h3:first-child{margin-top:0}
.msg.ia{align-self:flex-start;background:var(--soft);border-bottom-left-radius:6px}
.msg.eu{align-self:flex-end;background:var(--ink);color:#fff;border-bottom-right-radius:6px}
.msg.erro{background:var(--bad-soft);color:var(--bad)}
.msg-tag{display:inline-block;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;opacity:.7;margin-bottom:2px}
.digitando{display:inline-flex;gap:4px;padding:4px 0}
.digitando i{width:7px;height:7px;border-radius:50%;background:var(--muted);opacity:.4;animation:pisca 1s infinite}
.digitando i:nth-child(2){animation-delay:.15s}.digitando i:nth-child(3){animation-delay:.3s}
@keyframes pisca{0%,100%{opacity:.25}50%{opacity:.9}}
.sugestoes{display:flex;flex-direction:column;gap:8px}
.sugestoes button{text-align:left;border:1px solid var(--line);border-radius:14px;padding:12px 14px;font-size:15px;font-weight:500}
.sugestoes button:active{background:var(--soft)}
.composer{position:sticky;bottom:calc(var(--abas) + var(--sb) + 10px);display:flex;flex-direction:column;gap:8px;margin-top:4px;z-index:5}
.composer-aud{align-self:flex-start;border:1px solid var(--line);background:var(--bg);border-radius:999px;padding:7px 14px;font-size:13.5px;font-weight:600;box-shadow:0 2px 8px rgba(0,0,0,.06)}
.composer-linha{display:flex;align-items:flex-end;gap:8px;background:var(--bg);border:1px solid var(--line);border-radius:24px;padding:6px 6px 6px 14px;box-shadow:0 6px 20px rgba(0,0,0,.08)}
.composer-linha textarea{background:transparent;border:0;min-height:38px;max-height:140px;padding:8px 0;resize:none;border-radius:0}
.composer-linha textarea:focus{background:transparent;border:0}
.enviar{flex:none;width:38px;height:38px;border-radius:50%;background:var(--ink);display:grid;place-items:center}
.enviar svg{width:20px;height:20px;fill:none;stroke:#fff;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.enviar:disabled{opacity:.35}
body.tela-chat .conteudo{padding-bottom:calc(var(--abas) + var(--sb) + 12px)}

/* Sr. Gastão */
.chat-id{display:flex;align-items:center;gap:12px;min-width:0}
.av{border-radius:50%;object-fit:cover;flex:none;background:var(--soft)}
.av-g{width:52px;height:52px;box-shadow:0 0 0 2px var(--bg),0 0 0 3px var(--line)}
.linha-ia{display:flex;align-items:flex-end;gap:8px;align-self:flex-start;max-width:94%}
.linha-ia .av{width:30px;height:30px}
.linha-ia .msg{max-width:none}
.aba-av{width:26px;height:26px;border-radius:50%;object-fit:cover;opacity:.75;box-shadow:0 0 0 1.5px transparent}
.aba[aria-current="page"] .aba-av{opacity:1;box-shadow:0 0 0 2px var(--ink)}

/* uso (parecido com o do Claude) */
.uso-card{display:grid;grid-template-columns:1fr 1fr auto;gap:14px;align-items:start;width:100%;text-align:left;border:1px solid var(--line);border-radius:14px;padding:12px 12px 12px 14px;background:var(--bg)}
.uso-card:active{background:var(--soft)}
.uso-card.carregando{display:block}
.uso-seta{align-self:center;width:18px;height:18px;fill:none;stroke:var(--muted);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.uso-item{display:flex;flex-direction:column;gap:5px;min-width:0}
.uso-l{display:flex;justify-content:space-between;gap:6px;font-size:12.5px;color:var(--muted)}
.uso-l b{color:var(--ink);font-weight:600;white-space:nowrap}
.uso-barra{height:6px;border-radius:999px;background:var(--soft-2);overflow:hidden}
.uso-barra span{display:block;height:100%;border-radius:999px;background:var(--ink);min-width:2px}
.uso-barra.warn span{background:var(--warn)}
.uso-barra.bad span{background:var(--bad)}
.uso-r{font-size:11.5px;color:var(--muted)}
.uso-det{display:flex;flex-direction:column;gap:18px;border:1px solid var(--line);border-radius:var(--r);padding:16px}
.uso-item.grande .uso-l{font-size:14.5px}
.uso-item.grande .uso-barra{height:9px}
.uso-item.grande .uso-r{font-size:13px}
.uso-pessoa{display:grid;grid-template-columns:1fr auto auto;gap:12px;align-items:baseline;font-size:15px}

/* importar */
.imp-acoes{display:flex;gap:16px}
.imp-lista{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
.imp-item{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:start;padding:10px 12px;border-top:1px solid var(--line)}
.imp-item:first-child{border-top:0}
.imp-item.off{opacity:.55}
.imp-chk input{width:22px;height:22px;min-height:0;margin:2px 0 0;accent-color:var(--ink);-webkit-appearance:auto;appearance:auto}
.imp-info{display:flex;flex-direction:column;gap:3px;min-width:0}
.imp-desc{font-weight:600;font-size:15px;overflow-wrap:anywhere}
.imp-tag{color:var(--warn);font-weight:600}
.imp-cat{min-height:36px;font-size:14px;padding:0 34px 0 10px;border-radius:10px;margin-top:2px;background-color:var(--soft)}
.imp-item .valor{font-size:15.5px}
.chk{display:flex;gap:8px;align-items:center;font-size:14px}
.chk input{width:20px;height:20px;min-height:0;-webkit-appearance:auto;appearance:auto;accent-color:var(--bad)}
.banco-linha .btn.pequeno{align-self:flex-start;min-height:34px}

.parc-box{display:flex;flex-direction:column;gap:10px;background:var(--soft);border-radius:14px;padding:12px}
.parc-box select{background-color:var(--bg)}
.parc-box .ajuda{font-size:13.5px;color:var(--ink)}

/* investimentos */
.topo-gastao{width:40px;height:40px;border-radius:50%;padding:0;display:grid;place-items:center;box-shadow:0 0 0 2px var(--bg),0 0 0 3px var(--line)}
.topo-gastao img{width:36px;height:36px;border-radius:50%;object-fit:cover}
.topo-gastao.ativo{box-shadow:0 0 0 2px var(--bg),0 0 0 4px var(--ink)}
.hero-inv{background:#0F3D2A}
.botoes-inv{display:grid;grid-template-columns:1.2fr 1fr;gap:10px}
.inv-lista{display:flex;flex-direction:column;gap:10px}
.inv-card{display:flex;flex-direction:column;gap:6px;text-align:left;width:100%;cursor:pointer;-webkit-user-select:none;user-select:none;min-width:0;border:1px solid var(--line);border-radius:var(--r);padding:14px}
.inv-card:active{background:var(--soft)}
.inv-l1{display:flex;justify-content:space-between;gap:10px;align-items:baseline}
.inv-nome{font-weight:600;font-size:16px;min-width:0;overflow-wrap:anywhere}
.meta-barra{height:8px}
.meta-barra span{background:var(--ok)}
.txt-ok{color:var(--ok)} .txt-bad{color:var(--bad)}
.mov-linha{display:grid;grid-template-columns:auto 1fr auto auto;gap:10px;align-items:center;font-size:14px;padding:6px 0;border-top:1px solid var(--line)}
.mov-linha:first-of-type{border-top:0}
.mov-x{color:var(--muted);font-size:13px;padding:4px 6px;border-radius:8px}
.mov-x.conf{color:#fff;background:var(--bad)}
.aba span{font-size:10.5px}

.chips-quem:empty,.hero-quem:empty{display:none}
.membro{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid var(--line)}
.membro:first-child{border-top:0}
.membro-info{display:flex;flex-direction:column;gap:2px;min-width:0}
.membro-info .nota{overflow-wrap:anywhere}
