/* Menu do celular (até 991px): gaveta própria que sai da esquerda. O desktop não muda.
   Os itens são lidos do menu lateral do painel; o tema usa o botão .tf-theme-toggle original. */
html body .tfmm{display:none}
@media (max-width:991px){
html body .tfmm{--bg:#fbfbfe;--sup:#fff;--linha:#ebe8f7;--t1:#160d61;--t2:#6b6790;--ic:#5b2be0;--icbg:#efe9ff;--ativo-bg:#efe9ff;--ativo-bd:#cdbcff;
  display:block;position:fixed;inset:0;z-index:20000;color:var(--t1);font-family:Inter,Arial,sans-serif;font-size:14px;font-weight:600;line-height:1.3;
  visibility:hidden;transition:visibility 0s .24s;text-align:left}
html.tf-dark-mode body .tfmm{--bg:#080b12;--sup:#10141f;--linha:#1c2232;--t1:#f4f6fb;--t2:#8d93a8;--ic:#c4a8ff;--icbg:rgba(140,92,255,.16);--ativo-bg:rgba(140,92,255,.16);--ativo-bd:rgba(160,120,255,.45)}
html body .tfmm.aberto{visibility:visible;transition:none}
html body .tfmm *{box-sizing:border-box}
html body .tfmm a,html body .tfmm a:hover,html body .tfmm a:focus{text-decoration:none;color:inherit}
html body .tfmm :focus:not(:focus-visible){outline:none}
html body .tfmm :focus-visible{outline:2px solid #8b5cf6;outline-offset:2px}
html body .tfmm__fundo{position:absolute;inset:0;margin:0;padding:0;border:0;background:rgba(8,6,30,.42);opacity:0;transition:opacity .24s ease}
html.tf-dark-mode body .tfmm__fundo{background:rgba(0,0,0,.55)}
html body .tfmm__painel{position:absolute;top:0;left:0;bottom:0;width:min(86vw,360px);display:flex;flex-direction:column;background:var(--bg);
  border-radius:0 20px 20px 0;box-shadow:12px 0 40px rgba(20,10,80,.18);overflow:hidden;transform:translateX(-100%);transition:transform .24s cubic-bezier(.2,.7,.3,1);will-change:transform}
html.tf-dark-mode body .tfmm__painel{box-shadow:12px 0 40px rgba(0,0,0,.5);border-right:1px solid var(--linha)}
html body .tfmm.aberto .tfmm__fundo{opacity:1}
html body .tfmm.aberto .tfmm__painel{transform:none}
html.tfmm-trava,html.tfmm-trava body{overflow:hidden!important}
html.tfmm-trava .tfmm-oculto{opacity:0!important;pointer-events:none!important}

html body .tfmm__topo{flex:none;height:62px;display:flex;align-items:center;justify-content:space-between;padding:0 14px 0 18px;border-bottom:1px solid var(--linha)}
html body .tfmm__topo img{height:34px;width:auto;max-width:200px;object-fit:contain}
html body .tfmm__fechar{width:40px;height:40px;margin:0;padding:0;border-radius:12px;border:1px solid var(--linha);background:var(--sup);color:var(--t1);font-size:22px;line-height:1;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:none}
html body .tfmm__corpo{flex:1;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:16px 16px 24px;scrollbar-width:none}
html body .tfmm__corpo::-webkit-scrollbar{display:none}

html body .tfmm__saldo{position:relative;overflow:hidden;border-radius:18px;padding:16px 16px 14px;color:#fff;
  background:radial-gradient(circle at 85% -20%,rgba(190,140,255,.55),transparent 45%),linear-gradient(150deg,#5a1fd6 0%,#2c128f 55%,#140a5c 100%);box-shadow:0 12px 28px rgba(60,20,170,.28)}
html body .tfmm__saldo::after{content:"";position:absolute;right:-60px;bottom:-90px;width:220px;height:220px;border-radius:50%;border:2px solid rgba(190,140,255,.35);box-shadow:0 0 0 18px rgba(190,140,255,.08);pointer-events:none}
html body .tfmm__saldo-rot{font-size:12px;font-weight:600;opacity:.8;color:#fff}
html body .tfmm__saldo-val{margin-top:2px;font-size:28px;font-weight:800;letter-spacing:-.02em;color:#fff}
html body .tfmm__saldo-acoes{position:relative;z-index:1;display:flex;gap:8px;margin-top:12px}
html body .tfmm .tfmm__btn{flex:1;height:42px;border-radius:11px;display:inline-flex;align-items:center;justify-content:center;gap:6px;font-size:13px;font-weight:700;white-space:nowrap}
html body .tfmm .tfmm__btn--claro,html body .tfmm .tfmm__btn--claro:hover{background:#fff;color:#2c128f}
html body .tfmm .tfmm__btn--vidro,html body .tfmm .tfmm__btn--vidro:hover{background:rgba(255,255,255,.14);color:#fff;border:1px solid rgba(255,255,255,.22)}
html body .tfmm__btn i{font-size:17px}

html body .tfmm__atalhos{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}
html body .tfmm .tfmm__atalho{display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:13px;border-radius:14px;background:var(--sup);border:1px solid var(--linha);font-size:13px;font-weight:700;color:var(--t1)}
html body .tfmm__atalho i{width:34px;height:34px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;font-size:18px;color:var(--ic);background:var(--icbg)}
html body .tfmm .tfmm__atalho.ativo{background:var(--ativo-bg);border-color:var(--ativo-bd)}

html body .tfmm__grupo{margin-top:20px}
html body .tfmm__grupo-tit{margin:0 4px 8px;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--t2)}
html body .tfmm__lista{border-radius:14px;background:var(--sup);border:1px solid var(--linha);overflow:hidden}
html body .tfmm .tfmm__item{display:flex;align-items:center;gap:12px;min-height:50px;padding:0 14px;font-size:14px;font-weight:600;color:var(--t1);border-top:1px solid var(--linha)}
html body .tfmm__item:first-child{border-top:0}
html body .tfmm__item > i:first-child{width:30px;height:30px;border-radius:9px;flex:none;display:inline-flex;align-items:center;justify-content:center;font-size:16px;color:var(--ic);background:var(--icbg)}
html body .tfmm__item span{flex:1;color:inherit}
html body .tfmm__item .tfmm__seta{font-size:18px;color:var(--t2)}
html body .tfmm .tfmm__item.ativo{background:var(--ativo-bg)}
html body .tfmm .tfmm__item.ativo span{color:var(--ic)}
html body .tfmm b.tfmm__selo{font-size:10px;font-weight:800;padding:3px 7px;border-radius:20px;background:#16a34a;color:#fff;letter-spacing:.02em;line-height:1.2}
html body .tfmm__item:active,html body .tfmm__atalho:active{transform:scale(.985)}

html body .tfmm__rodape{flex:none;display:flex;gap:10px;padding:12px 16px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--linha);background:var(--bg)}
html body .tfmm .tfmm__rodape button,html body .tfmm .tfmm__rodape a{flex:1;height:46px;margin:0;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font:700 13px Inter,Arial,sans-serif;cursor:pointer;border:1px solid var(--linha);background:var(--sup);color:var(--t1);box-shadow:none}
html body .tfmm .tfmm__rodape .tfmm__sair{color:#dc2626}
html.tf-dark-mode body .tfmm .tfmm__rodape .tfmm__sair{color:#f87171}
html body .tfmm__rodape i{font-size:18px}
}
@media (prefers-reduced-motion:reduce){html body .tfmm,html body .tfmm__fundo,html body .tfmm__painel{transition:none!important}}
