/* DarkPost no celular. As cores, tipos e raios vêm de tokens.css (fonte única com o computador).
   Design system (ui-ux-pro-max: Dark Mode OLED) ajustado à marca: preto profundo e um único sinal, o ciano do monograma.
   Plano (frontend-design): tudo quieto e plano; o que marca é a "lâmina" ciano que indica o que está ativo e a forma em D
   do monograma (reta à esquerda, redonda à direita) usada só na ação principal e na busca da tela inicial.
   Tipos: Outfit (títulos, números, botões) + Onest (texto de interface). */
@font-face { font-family: "Outfit"; src: url("/tela/outfit.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Onest"; src: url("/ui/fonts/onest.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
* { box-sizing: border-box; }
html { height: 100%; -webkit-text-size-adjust: 100%; }
body { height: 100%; margin: 0; background: var(--grafite); color: var(--papel); font: 400 16px/1.5 var(--fonte);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a, summary, label { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--saber); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; } h1, h2, h3 { text-wrap: balance; }
a { color: #8FB4FF; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
.pular { position: absolute; left: 12px; top: -60px; z-index: 90; background: var(--acao); color: var(--sobre-acao); padding: 10px 14px; border-radius: var(--r-s); }
.pular:focus { top: calc(8px + var(--seguro-t)); }

/* ---------------------------------------------------------------- estrutura */
.app { height: 100%; display: flex; flex-direction: column; max-width: 720px; margin: 0 auto; position: relative; }
.topo { position: relative; flex: none; display: flex; align-items: center; gap: 8px; min-height: 54px;
  padding: calc(8px + var(--seguro-t)) 16px 8px; background: var(--grafite); border-bottom: 1px solid #202943; }
.topo h1 img { height: 26px; width: auto; flex: none; } .topo h1 img.nome { height: 17px; margin-top: 1px; }
.lamina { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--secao); box-shadow: 0 0 14px var(--secao);
  transform-origin: left; }
.lamina.acende { animation: acender 380ms cubic-bezier(.2,.7,.2,1); }
@keyframes acender { from { transform: scaleX(0); opacity: .3; } to { transform: none; opacity: 1; } }
.topo h1 { font: 600 21px/1.2 var(--titulo); letter-spacing: -.01em; display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topo-acoes { display: flex; gap: 4px; }
.voltar, .icone-bt { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; border-radius: var(--r); margin: -4px 0 -4px -10px; cursor: pointer; }
.icone-bt { margin: -4px -8px -4px 0; }
.voltar svg, .icone-bt svg, .nav svg, .seta svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
main { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 16px 28px; display: flex; flex-direction: column; gap: 14px; }
main:focus { outline: none; }
main > * { flex-shrink: 0; }
.nav { flex: none; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--trilho); border-top: 1px solid #202943;
  padding-bottom: var(--seguro-b); }
.nav a { position: relative; height: var(--nav-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--nevoa); text-decoration: none; font-size: 12px; font-weight: 500; transition: color var(--t); }
.nav a:active { background: var(--ardosia); }

.nav a[aria-current="page"] { color: var(--papel); }
.nav a[aria-current="page"]::before { content: ""; position: absolute; top: -1px; left: 22%; right: 22%; height: 2px; border-radius: 0 0 2px 2px;
  background: var(--cor); box-shadow: 0 0 10px var(--cor); }
.nav a[aria-current="page"] svg { color: var(--cor); }
.nav .bolha { position: absolute; top: 8px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--ciano);
  color: var(--sobre-acao); font: 700 11px/17px var(--fonte); text-align: center; }

/* ---------------------------------------------------------------- blocos */
.painel { background: var(--ardosia); border: 1px solid var(--linha); border-radius: var(--r-l); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.painel > h2, .secao > h2 { font: 600 17px/1.3 var(--titulo); }
.secao { display: flex; flex-direction: column; gap: 8px; }
.secao > h2 { color: var(--nevoa); font: 500 13px/1.3 var(--fonte); padding: 0 2px; }
.dica { color: var(--nevoa); font-size: 13.5px; } .apagado { color: var(--cinza); }
.linha { display: flex; align-items: center; gap: 10px; } .linha > .cresce { flex: 1; min-width: 0; }
.entre { justify-content: space-between; }
.corta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.quebra { overflow-wrap: anywhere; }
.grande { font: 600 34px/1.05 var(--titulo); letter-spacing: -.02em; }
.vazio { text-align: center; padding: 36px 16px; color: var(--nevoa); display: flex; flex-direction: column; gap: 6px; align-items: center; }
.vazio b { color: var(--papel); font: 600 18px var(--titulo); }

.bt { min-height: 48px; padding: 0 18px; border: 1px solid var(--linha); border-radius: var(--r); background: var(--pedra); color: var(--papel);
  font: 550 15.5px var(--titulo); letter-spacing: .005em; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
  transition: background var(--t), opacity var(--t); text-align: center; }
.bt:active { background: #2D3857; }
.bt.primario { background: var(--acao); border-color: var(--acao); color: var(--sobre-acao); font-weight: 650; border-radius: var(--forma-d); } .bt.primario:active { background: var(--ciano-apertado); }
.bt.primario.pequeno { border-radius: 6px 20px 20px 6px; }
.bt.perigo { color: var(--erro); } .bt.cheio { width: 100%; } .bt.pequeno { min-height: 40px; padding: 0 12px; font-size: 13.5px; }
.bt:disabled { opacity: .45; cursor: default; }
.bt.ocupado { opacity: .7; pointer-events: none; }
.bts { display: flex; gap: 8px; flex-wrap: wrap; } .bts > * { flex: 1 1 auto; }

.campo { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--nevoa); }
.campo > input, .campo > select, .campo > textarea, .entrada { width: 100%; min-height: 48px; padding: 12px; background: var(--poco); color: var(--papel);
  border: 1px solid var(--linha); border-radius: var(--r); font-size: 16px; }
.campo > textarea { min-height: 96px; resize: vertical; line-height: 1.4; }
.campo > input:focus, .campo > select:focus, .campo > textarea:focus, .entrada:focus { border-color: var(--saber); outline: none; }
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239BA2B4' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 18px; padding-right: 34px !important; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--poco); border: 1px solid var(--linha); border-radius: var(--r); padding: 3px; gap: 3px; }
.seg button { min-height: 42px; border: 0; border-radius: 7px; background: none; color: var(--nevoa); font-weight: 550; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--pedra); color: var(--papel); box-shadow: inset 0 -2px 0 var(--saber); }
.seg button { font-family: var(--titulo); }
.chave { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; color: var(--papel); cursor: pointer; }
.chave input { position: absolute; opacity: 0; pointer-events: none; }
.chave i { flex: none; width: 46px; height: 28px; border-radius: 14px; background: var(--poco); border: 1px solid var(--linha); position: relative; transition: background var(--t); }
.chave i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--nevoa); transition: transform var(--t), background var(--t); }
.chave input:checked + i { background: #0E3F4D; border-color: var(--acao); } .chave input:checked + i::after { transform: translateX(18px); background: var(--ciano); }
.chave input:focus-visible + i { outline: 2px solid var(--saber); outline-offset: 2px; }

.opcoes { display: flex; flex-direction: column; gap: 8px; }
.opcao { display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: 12px; background: var(--poco); border: 1px solid var(--linha); border-radius: var(--r); cursor: pointer; color: var(--papel); min-height: 56px; }
.opcao[aria-pressed="true"] { border-color: var(--saber); background: var(--ciano-fundo); }
.opcao .bola { flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; border: 2px solid var(--cinza); }
.opcao[aria-pressed="true"] .bola { border-color: var(--saber); background: var(--saber); box-shadow: inset 0 0 0 3px var(--ciano-fundo); }
.opcao small { display: block; color: var(--nevoa); font-size: 13px; }

.lista { display: flex; flex-direction: column; background: var(--ardosia); border: 1px solid var(--linha); border-radius: var(--r-l); overflow: hidden; }
.item { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; background: none; border: 0; border-top: 1px solid var(--linha);
  color: var(--papel); text-align: left; text-decoration: none; cursor: pointer; width: 100%; }
.item:first-child { border-top: 0; } .item:active { background: var(--pedra); }
.post .foto:active { opacity: .8; } .ficha:active, .opcao:active { background: #2D3857; }
.item .cresce { flex: 1; min-width: 0; } .item small { display: block; color: var(--nevoa); font-size: 13px; }
.item .seta { color: var(--cinza); flex: none; display: grid; }
.selo { flex: none; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--poco); color: var(--nevoa); white-space: nowrap; }
.selo.ok { color: var(--ok); } .selo.erro { color: var(--erro); } .selo.atencao { color: var(--atencao); }
.faixa { border-left: 3px solid var(--atencao); background: #2B2A1E; border-radius: var(--r); padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.faixa.erro { border-color: var(--erro); background: #331C2A; }
.barra { height: 4px; background: var(--poco); border-radius: 4px; overflow: hidden; }
.barra i { display: block; height: 100%; width: 0; background: var(--saber); border-radius: 4px; transition: width 300ms ease; }
.barra.vai i { width: 35% !important; animation: vai 1.2s ease-in-out infinite alternate; }
@keyframes vai { from { transform: translateX(-20%); } to { transform: translateX(210%); } }

/* ---------------------------------------------------------------- início: o garimpo vem primeiro */
.garimpo { display: flex; flex-direction: column; gap: 14px; padding: 6vh 0 4px; }
.chamada { font: 600 clamp(30px, 9vw, 40px)/1.02 var(--titulo); letter-spacing: -.03em; max-inline-size: 11ch; text-wrap: balance; }
.busca { display: flex; align-items: stretch; background: var(--ardosia); border: 1px solid var(--linha); border-radius: var(--forma-d); transition: border-color var(--t); }
.busca:focus-within { border-color: var(--ciano); box-shadow: 0 0 0 1px var(--ciano); }
.busca input { flex: 1; min-width: 0; min-height: 58px; padding: 0 6px 0 16px; background: none; border: 0; outline: none; font-size: 17px; color: var(--papel); }
.busca button { flex: none; width: 58px; border: 0; background: var(--ciano); color: var(--sobre-acao); border-radius: 0 26px 26px 0; cursor: pointer; display: grid; place-items: center; }
.busca button:active { background: var(--ciano-apertado); } .busca button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.atalhos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.atalho { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; min-height: 96px; padding: 14px 12px; background: var(--ardosia); border: 1px solid var(--linha); border-radius: var(--r-l);
  color: var(--papel); text-decoration: none; text-align: left; cursor: pointer; font: 550 14.5px/1.2 var(--titulo); }
.atalho:active { background: var(--pedra); } .atalho svg { width: 24px; height: 24px; color: var(--ciano); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.atalho small { display: block; color: var(--nevoa); font: 400 12.5px var(--fonte); margin-top: 3px; }
.cabeca-secao { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.cabeca-secao h2 { font: 600 18px var(--titulo); color: var(--papel); } .cabeca-secao a { font-size: 14px; color: var(--ciano); text-decoration: none; padding: 6px 0; }
.fila-perfis { touch-action: pan-x pan-y; display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 4px; scroll-snap-type: x proximity; scrollbar-width: none; overscroll-behavior-x: contain; }
.fila-perfis::-webkit-scrollbar { display: none; }
.perfil { flex: 0 0 132px; scroll-snap-align: start; display: flex; flex-direction: column; background: var(--ardosia); border: 1px solid var(--linha); border-radius: var(--r-l); overflow: hidden;
  padding: 0; color: var(--papel); text-align: left; cursor: pointer; }
.perfil:active { opacity: .8; } .perfil .foto { width: 100%; aspect-ratio: 1; background: var(--poco); display: block; }
.perfil .foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.perfil .nome { padding: 9px 10px 10px; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.perfil .nome b { font: 550 14px var(--titulo); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; }
.perfil .nome small { color: var(--nevoa); font-size: 12.5px; }
.osso.perfil-osso { flex: 0 0 132px; height: 186px; }

/* ---------------------------------------------------------------- linhas de estado (Lotes, avisos do Início, resumo do Baixar) */
.linha-lote, .linha-status { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 66px; padding: 11px 14px; background: none; border: 0;
  color: var(--papel); text-align: left; text-decoration: none; cursor: pointer; }
.lotes .linha-lote { border-top: 1px solid var(--linha); } .lotes .linha-lote:first-child { border-top: 0; }
.linha-lote:active, a.linha-status:active, button.linha-status:active { background: var(--pedra); }
.linha-status { background: var(--ardosia); border: 1px solid var(--linha); border-radius: var(--r-l); } .linha-status.parada { cursor: default; }
.linha-lote b, .linha-status b { display: block; font: 550 16px/1.3 var(--titulo); } .linha-lote small, .linha-status small { display: block; color: var(--nevoa); font-size: 13.5px; }
.linha-lote .cresce, .linha-status .cresce { flex: 1; min-width: 0; }
.item.parado { align-items: flex-start; } .item.parado > .cresce { flex: 0 0 auto; color: var(--nevoa); } .item.parado > :last-child { flex: 1; min-width: 0; text-align: right; } .item.parado > .selo { flex: none; margin-left: auto; }
.linha-lote .seta, .linha-status .seta { color: var(--cinza); display: grid; flex: none; }
.linha-lote > .barra, .linha-status > .barra { position: absolute; left: 14px; right: 14px; bottom: 4px; height: 3px; }
.estado { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--pedra); color: var(--nevoa); }
.estado .mi { width: 18px; height: 18px; }
.estado.ok { color: var(--ok); } .estado.erro { color: var(--erro); } .estado.fila { color: var(--atencao); }
.estado.rodando i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--ciano); border-right-color: transparent; animation: gira .9s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
.sugestoes .ficha { min-height: 42px; font-size: 14.5px; display: inline-flex; align-items: center; background: var(--ardosia); color: var(--papel); }
.sugestoes:empty { display: none; }
.recolhido { background: var(--ardosia); border: 1px solid var(--linha); border-radius: var(--r); } .recolhido summary { min-height: 48px; padding: 12px 14px; cursor: pointer; color: var(--nevoa); }
.recolhido > :not(summary) { padding: 0 14px 14px; margin: 0; }
.item.parado { cursor: default; } .item.parado:active { background: none; }

/* ---------------------------------------------------------------- ranking */
.filtros { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 2px; scrollbar-width: none; }
.filtros::-webkit-scrollbar { display: none; }
.filtros select { flex: none; min-height: 40px; padding: 0 12px; background-color: var(--ardosia); border: 1px solid var(--linha); border-radius: 99px; font-size: 14px; color: var(--papel); }
.filtros select.ligado { border-color: var(--saber); }
.grade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 560px) { .grade { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.post { content-visibility: auto; contain-intrinsic-size: auto 250px; position: relative; background: var(--ardosia); border: 1px solid var(--linha); border-radius: var(--r); overflow: hidden; }
.post.marcado { border-color: var(--saber); }
.post .foto { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--poco); border: 0; padding: 0; cursor: pointer; }
.post .foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post .check { position: absolute; top: 0; right: 0; width: 48px; height: 48px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; }
.post .check i { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; background: #0008; display: grid; place-items: center; }
.post.marcado .check i { background: var(--saber); border-color: var(--saber); }
.post.marcado .check i::after { content: ""; width: 11px; height: 6px; border: 2px solid var(--sobre-acao); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.post .auto { position: absolute; top: 8px; left: 8px; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 6px; background: #000B; color: var(--atencao); }
.post .info { padding: 8px 10px 9px; display: flex; flex-direction: column; gap: 1px; }
.post .info b { font: 600 15.5px var(--titulo); display: flex; justify-content: space-between; gap: 6px; }
.post .info .medida { display: inline-flex; align-items: center; gap: 4px; }
.mi { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -2px; }
.medida .mi, .fav .mi { fill: currentColor; stroke: none; } .fav { color: var(--atencao); margin-right: 5px; }
.foto.sem-foto, .slide.sem-foto { display: grid; place-items: center; color: var(--cinza); } .sem-foto .mi { width: 30px; height: 30px; }
.post .info b span:first-child { color: var(--nevoa); } .post.marcado .info b span:first-child { color: var(--saber); }
.post .info small { color: var(--nevoa); font-size: 12.5px; }
.barra-sel { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--ardosia); border-top: 1px solid var(--linha); }
.barra-sel b { font: 600 16px var(--titulo); white-space: nowrap; padding: 0 4px; }
.barra-sel .bt { min-height: 44px; padding: 0 12px; flex: 1; }

/* ---------------------------------------------------------------- carregando, sem rede, erros */
.pilha { display: flex; flex-direction: column; gap: 10px; }
.osso { height: 64px; border-radius: var(--r-l); background: var(--ardosia); border: 1px solid var(--linha); animation: pulsa 1.1s ease-in-out infinite alternate; }
.osso.quadrado { height: auto; aspect-ratio: 4 / 5; }
@keyframes pulsa { from { opacity: 1; } to { opacity: .45; } }
.so-leitor { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nova-versao { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--ciano-fundo); padding: 8px 12px 8px 16px; font-size: 14px; }
.certo { width: 44px; height: 44px; border-radius: 50%; background: #173A3A; border: 2px solid var(--ok); position: relative; }
.certo::after { content: ""; position: absolute; left: 13px; top: 13px; width: 16px; height: 9px; border: 2.5px solid var(--ok); border-top: 0; border-right: 0; transform: rotate(-45deg); }
.sem-rede { flex: none; background: #2B2A1E; color: var(--atencao); font-size: 13.5px; padding: 8px 16px; text-align: center; }
.erro-campo { color: var(--erro); font-size: 14px; border-left: 2px solid var(--erro); padding-left: 10px; }
.pilula { min-height: 44px; padding: 0 12px; background-color: var(--ardosia); border: 1px solid var(--linha); border-radius: var(--r); font-size: 15px; color: var(--papel); }
.bt.ligado { border-color: var(--saber); color: var(--papel); }
.fichas { display: flex; flex-wrap: wrap; gap: 8px; }
.ficha { min-height: 46px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--linha); background: var(--poco); color: var(--nevoa); font-weight: 550; cursor: pointer; }
.ficha[aria-pressed="true"] { border-color: var(--saber); color: var(--ciano); background: var(--ciano-fundo); }
main.entra { animation: entra 130ms ease-out; }
@keyframes entra { from { opacity: .35; } to { opacity: 1; } }

/* ---------------------------------------------------------------- folhas (painéis que sobem de baixo) */
.folha-fundo { position: fixed; inset: 0; z-index: 50; background: #070B14D9; display: flex; align-items: flex-end; justify-content: center; }
.folha { width: 100%; max-width: 720px; max-height: 88dvh; background: var(--ardosia); border: 1px solid var(--linha); border-bottom: 0; border-radius: 18px 18px 0 0;
  display: flex; flex-direction: column; animation: sobe 220ms cubic-bezier(.2,.7,.2,1); }
.folha.cheia { max-height: 100dvh; height: 100dvh; border-radius: 0; border: 0; background: #0A0F1C; }
@keyframes sobe { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.folha-topo { position: relative; flex: none; display: flex; align-items: center; gap: 8px; padding: 22px 16px 10px; touch-action: none; }
.folha.cheia .folha-topo { touch-action: auto; }
.alca { position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: #3D4A6B; }
.folha { transition: transform 180ms ease; }
.folha.cheia .folha-topo { padding-top: calc(10px + var(--seguro-t)); }
.folha-topo h2 { flex: 1; font: 600 19px var(--titulo); min-width: 0; }
.folha-corpo { overflow-y: auto; overscroll-behavior: contain; padding: 4px 16px calc(18px + var(--seguro-b)); display: flex; flex-direction: column; gap: 12px; }
.trilho { flex: 1; min-height: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.trilho::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; min-width: 0; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; display: flex; align-items: center; justify-content: center; }
.slide img { width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.previa { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; position: relative; touch-action: pan-y; }
.previa img { width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.previa .lado { position: absolute; top: 0; bottom: 0; width: 22%; background: none; border: 0; cursor: pointer; } .previa .lado.e { left: 0; } .previa .lado.d { right: 0; }
.previa-pe .bts { display: grid; grid-template-columns: 1fr 1.2fr 1fr; }
.previa-pe .bts .bt { padding: 0 8px; }
.pontos { display: flex; justify-content: center; gap: 5px; padding: 10px 0 2px; }
.pontos i { width: 6px; height: 6px; border-radius: 50%; background: #3D4A6B; transition: background var(--t), transform var(--t); } .pontos i.a { background: var(--ciano); transform: scale(1.25); }
.previa-pe { flex: none; padding: 6px 16px calc(14px + var(--seguro-b)); display: flex; flex-direction: column; gap: 10px; }
.legenda { color: var(--nevoa); font-size: 13.5px; max-height: 4.4em; overflow: hidden; white-space: pre-line; }
.arvore .item { min-height: 52px; } .arvore .item[aria-pressed="true"] { background: var(--ciano-fundo); box-shadow: inset 3px 0 0 var(--saber); }
.log { font-size: 13px; color: var(--nevoa); display: flex; flex-direction: column; gap: 4px; } .log .erro { color: var(--erro); } .log .ok { color: var(--ok); } .log .aviso { color: var(--atencao); }

.app:has(.barra-sel:not([hidden])) ~ .avisos { bottom: calc(var(--nav-h) + var(--seguro-b) + 72px); }
.avisos { position: fixed; left: 12px; right: 12px; bottom: calc(var(--nav-h) + var(--seguro-b) + 12px); z-index: 80; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.aviso { pointer-events: auto; max-width: 520px; width: 100%; background: #2A3450; border-left: 3px solid var(--saber); border-radius: var(--r); padding: 12px 14px; animation: sobe 200ms ease; }
.aviso.com-acao { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 14px; }
.seta-slide { margin: 0; color: var(--nevoa); } #pv-esq svg { transform: rotate(180deg); }
.aviso.erro { border-color: var(--erro); } .aviso.ok { border-color: var(--ok); }

/* ---------------------------------------------------------------- conta, consumo e saldo */
.cartao-pessoa { display: flex; align-items: center; gap: 14px; padding: 14px; background: var(--ardosia); border: 1px solid var(--linha); border-radius: var(--r-l); color: var(--papel); text-decoration: none; }
a.cartao-pessoa:active { background: var(--pedra); }
.cartao-pessoa b { display: block; font: 600 18px/1.25 var(--titulo); } .cartao-pessoa small { display: block; color: var(--nevoa); font-size: 13.5px; }
.cartao-pessoa .seta { color: var(--cinza); display: grid; }
.avatar { flex: none; width: 52px; height: 52px; display: grid; place-items: center; background: var(--ciano); color: var(--sobre-acao); font: 650 24px var(--titulo); border-radius: var(--forma-d); }
.medidor { flex-direction: row; align-items: center; gap: 16px; }
.medidor-texto { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; } .medidor-texto h2 { font: 600 17px/1.3 var(--titulo); }
.anel { position: relative; flex: none; width: 124px; height: 124px; }
.anel svg { width: 100%; height: 100%; display: block; } .anel circle { fill: none; stroke-width: 9; }
.anel .trilha { stroke: var(--pedra); } .anel .fatia { stroke: var(--ciano); stroke-linecap: round; filter: drop-shadow(0 0 5px #00F9FD88); transition: stroke-dashoffset 500ms ease; }
.anel .meio { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 16px; }
.anel .meio b { font: 600 19px/1.1 var(--titulo); letter-spacing: -.01em; } .anel .meio small { color: var(--nevoa); font-size: 12px; margin-top: 2px; }
@media (max-width: 350px) { .medidor { flex-direction: column; align-items: flex-start; } }

/* ---------------------------------------------------------------- ajuda */
.ajuda { display: flex; flex-direction: column; background: var(--ardosia); border: 1px solid var(--linha); border-radius: var(--r-l); overflow: hidden; }
.ajuda details { border-top: 1px solid var(--linha); } .ajuda details:first-child { border-top: 0; }
.ajuda summary { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; cursor: pointer; list-style: none; font-weight: 550; }
.ajuda summary::-webkit-details-marker { display: none; }
.ajuda summary span:first-child { flex: 1; } .ajuda summary .seta { color: var(--cinza); display: grid; transition: transform var(--t); }
.ajuda details[open] > summary .seta { transform: rotate(90deg); } .ajuda details[open] > summary { box-shadow: inset 3px 0 0 var(--saber); }
.ajuda-corpo { padding: 2px 14px 16px; display: flex; flex-direction: column; gap: 10px; max-width: 62ch; }
.ajuda-corpo ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; } .ajuda-corpo li::marker { color: var(--saber); font-weight: 650; }
.ajuda-corpo .nota { border-left: 2px solid var(--linha); padding-left: 10px; color: var(--nevoa); font-size: 14px; }

/* ---------------------------------------------------------------- entrada */
.porta { margin: auto 0; display: flex; flex-direction: column; gap: 18px; padding: 8px 4px; }
.porta .marca { display: flex; align-items: center; gap: 12px; } .porta .marca img { height: 44px; width: auto; } .porta .marca img.nome { height: 27px; }
.porta .marca b { font: 600 28px/1 var(--titulo); letter-spacing: -.02em; }


/* ================================================================== MATERIAL DESIGN 3 (só no celular)
   O app segue o sistema do Android: papéis de cor, escala de tipos e de formas, peças escolhidas pela função e estados de toque.
   Desvio assumido da regra: a lâmina de luz embaixo do topo continua, como assinatura da marca. O botão em D saiu do celular. */

/* ---- tipos: escala do Material 3 com as fontes da marca */
body { font: 400 16px/24px var(--fonte); letter-spacing: .01em; }
.painel > h2, .secao > h2, .medidor-texto h2, .cabeca-secao h2 { font: 500 16px/24px var(--titulo); letter-spacing: .005em; }        /* title-medium */
.secao > h2 { font: 500 14px/20px var(--fonte); color: var(--md-on-surface-variant); padding: 0 4px; }                              /* title-small */
.dica { font-size: 14px; line-height: 20px; } .apagado { color: var(--md-outline); }
.chamada { font: 500 clamp(32px, 9.4vw, 40px)/1.1 var(--titulo); letter-spacing: -.02em; }                                       /* display-small */
.grande { font: 500 32px/40px var(--titulo); letter-spacing: -.01em; }

/* ---- ícones */
svg.ms { width: 24px; height: 24px; flex: none; fill: currentColor !important; stroke: none !important; }
svg.ms.mi { width: 18px; height: 18px; vertical-align: -3px; } .estado svg.ms.mi { width: 20px; height: 20px; vertical-align: 0; } .sem-foto svg.ms.mi { width: 32px; height: 32px; }

/* ---- onda ao tocar e camada de estado */
.bt, .item, .ficha, .linha-lote, .linha-status, .opcao, .icone-bt, .voltar, .seg button, .nav a, .busca button, .cartao-pessoa, .ajuda summary, .recolhido summary { position: relative; overflow: hidden; }
.onda { position: absolute; border-radius: 50%; background: currentColor; opacity: .14; transform: scale(0); pointer-events: none; animation: onda 420ms var(--md-enfase) forwards; }
@keyframes onda { to { transform: scale(1); opacity: 0; } }
.bt:active { background: var(--md-secondary-container); } .bt.primario:active { background: var(--md-primary); } .bt.texto:active, .bt.perigo:active { background: none; }
.item:active, .linha-lote:active, a.linha-status:active, button.linha-status:active, .ficha:active, .opcao:active, .nav a:active { background: none; }

/* ---- topo (top app bar): ganha cor quando o conteúdo rola por baixo */
.topo { min-height: 64px; padding: calc(8px + var(--seguro-t)) 4px 8px 16px; border-bottom: 0; background: var(--md-surface); transition: background 200ms var(--md-enfase); }
.topo.rolou { background: var(--md-surface-container); }
.topo h1 { font: 400 22px/28px var(--titulo); letter-spacing: 0; }                                                                 /* title-large */
.voltar, .icone-bt { width: 48px; height: 48px; margin: 0; border-radius: var(--md-full); color: var(--md-on-surface); }
.voltar { margin-left: -12px; } .topo-acoes { gap: 0; }
.lamina { height: 2px; bottom: 0; }
main { padding: 16px 16px 32px; gap: 16px; }

/* ---- barra de navegação: pílula atrás do ícone da aba ativa */
.nav { background: var(--md-surface-container); border-top: 0; padding-bottom: var(--seguro-b); }
.nav a { height: var(--nav-h); gap: 4px; padding-top: 12px; justify-content: flex-start; color: var(--md-on-surface-variant); font: 500 12px/16px var(--fonte); letter-spacing: .03em; overflow: visible; }
.nav a .onda { display: none; }
.nav .indicador { width: 64px; height: 32px; display: grid; place-items: center; border-radius: var(--md-full); transition: background 200ms var(--md-enfase); }
.nav a[aria-current="page"] { color: var(--md-on-surface); font-weight: 700; }
.nav a[aria-current="page"] .indicador { background: var(--md-secondary-container); color: var(--md-on-secondary-container); }
.nav a[aria-current="page"]::before { content: none; } .nav a[aria-current="page"] svg { color: inherit; }
.nav a:active .indicador { background: var(--md-surface-highest); }
.nav .bolha { top: 10px; left: calc(50% + 8px); min-width: 16px; height: 16px; border-radius: 8px; background: var(--md-error); color: #2B0A10; font: 700 11px/16px var(--fonte); padding: 0 4px; }

/* ---- botões: cheio (principal), tonal (secundário) e texto. Todos em pílula. */
.bt { min-height: 48px; padding: 0 24px; border: 0; border-radius: var(--md-full); background: var(--md-secondary-container); color: var(--md-on-secondary-container);
  font: 500 14.5px/20px var(--fonte); letter-spacing: .01em; transition: box-shadow 150ms; }
.bt.primario, .bt.primario.pequeno { background: var(--md-primary); color: var(--md-on-primary); border-radius: var(--md-full); font-weight: 600; }
.bt.pequeno { min-height: 40px; padding: 0 16px; font-size: 14px; }
.bt.perigo { background: none; color: var(--md-error); } .bt.perigo.cheio { background: none; box-shadow: inset 0 0 0 1px var(--md-outline-variant); }
.bt.texto { background: none; color: var(--md-primary); padding: 0 12px; min-width: 64px; }
.bt.ligado { box-shadow: inset 0 0 0 1px var(--md-primary); }
.bt:disabled { background: #F2F5F61F; color: #F2F5F661; opacity: 1; }
.bts { gap: 8px; }

/* ---- barra de pesquisa do Início */
.busca { height: 56px; border: 0; border-radius: var(--md-full); background: var(--md-surface-high); align-items: center; padding: 0 4px 0 16px; }
.busca:focus-within { box-shadow: 0 0 0 2px var(--md-primary); }
.busca .lupa { display: grid; color: var(--md-on-surface-variant); margin-right: 12px; }
.busca input { min-height: 0; height: 100%; padding: 0; font-size: 16px; }
.busca button { width: 48px; height: 48px; border-radius: var(--md-full); }
.garimpo { gap: 16px; }

/* ---- cartões e listas: superfícies em camadas, sem contorno em tudo */
.painel { background: var(--md-surface-container); border: 0; border-radius: var(--md-l); padding: 16px; }
.lista { background: var(--md-surface-container); border: 0; border-radius: var(--md-l); }
.item { min-height: 56px; padding: 8px 16px; gap: 16px; border-top: 0; font-size: 16px; }
.item small { font-size: 14px; line-height: 20px; color: var(--md-on-surface-variant); }
.item .seta, .linha-lote .seta, .linha-status .seta { color: var(--md-on-surface-variant); }
.lotes .linha-lote { border-top: 0; } .linha-lote, .linha-status { min-height: 72px; padding: 12px 16px; gap: 16px; }
.linha-status { background: var(--md-surface-container); border: 0; border-radius: var(--md-l); }
.linha-lote b, .linha-status b { font: 400 16px/24px var(--fonte); letter-spacing: .01em; } .linha-lote small, .linha-status small { font-size: 14px; line-height: 20px; }
.estado { width: 40px; height: 40px; background: var(--md-surface-highest); color: var(--md-on-surface-variant); }
.estado.ok { background: #17403A; } .estado.erro { background: #4A1F2A; } .estado.fila { background: #4A3B17; } .estado.rodando { background: var(--md-primary-container); }
.cartao-pessoa { border: 0; background: var(--md-surface-container); border-radius: var(--md-l); padding: 16px; gap: 16px; }
.cartao-pessoa b { font: 400 22px/28px var(--titulo); }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--md-primary-container); color: var(--md-on-primary-container); font: 500 24px var(--titulo); }
.faixa { border-left: 0; border-radius: var(--md-m); background: var(--md-surface-high); padding: 16px; } .faixa.erro { background: #4A1F2A; color: #FFDADF; }
.selo { background: var(--md-surface-highest); border-radius: var(--md-s); font: 500 12px/16px var(--fonte); padding: 4px 8px; letter-spacing: .03em; }
.vazio b { font: 400 22px/28px var(--titulo); }

/* ---- painel de baixo (bottom sheet) e diálogo */
.folha-fundo { background: var(--md-scrim); }
.folha { background: var(--md-surface-low); border: 0; border-radius: var(--md-xl) var(--md-xl) 0 0; animation: sobe 320ms var(--md-enfase); }
.folha.cheia { background: #080C16; border-radius: 0; }
.folha-topo { padding: 28px 12px 8px 24px; } .folha.cheia .folha-topo { padding: calc(8px + var(--seguro-t)) 4px 8px 16px; }
.folha-topo h2 { font: 400 22px/28px var(--titulo); }
.alca { top: 12px; width: 32px; height: 4px; margin-left: -16px; background: var(--md-outline); opacity: .6; }
.folha-corpo { padding: 8px 16px calc(24px + var(--seguro-b)); gap: 16px; }
.folha .lista, .folha .painel, .folha .recolhido { background: var(--md-surface-high); }
.folha-fundo.centro { align-items: center; padding: 24px; }
.folha.dialogo { max-width: 400px; border-radius: var(--md-xl); background: var(--md-surface-high); animation: abre 220ms var(--md-enfase); }
.folha.dialogo .folha-topo { padding: 24px 24px 0; touch-action: auto; } .folha.dialogo .folha-topo h2 { font: 400 24px/32px var(--titulo); }
.folha.dialogo .folha-corpo { padding: 16px 24px 16px; color: var(--md-on-surface-variant); font-size: 14px; line-height: 20px; gap: 20px; } .folha.dialogo .folha-corpo p { margin: 0; }
.acoes-dialogo { display: flex; justify-content: flex-end; gap: 8px; margin: 4px -12px 0 0; }
#cf-sim { color: var(--md-primary); }
@keyframes abre { from { transform: scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sobe { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---- snackbar: aviso curto no rodapé, com a ação à direita */
.avisos { left: 16px; right: 16px; bottom: calc(var(--nav-h) + var(--seguro-b) + 16px); gap: 8px; }
.app:has(.barra-sel:not([hidden])) ~ .avisos { bottom: calc(var(--nav-h) + var(--seguro-b) + 88px); }
.aviso { background: var(--md-inverse-surface); color: var(--md-inverse-on-surface); border-left: 0; border-radius: var(--md-xs); padding: 14px 16px; font-size: 14px; line-height: 20px;
  box-shadow: 0 3px 8px #00000059; animation: sobe 250ms var(--md-enfase); }
.aviso.erro { background: #FFDADF; color: #40121B; } .aviso.ok { border: 0; }
.aviso.com-acao { padding: 4px 4px 4px 16px; } .aviso.com-acao .bt { background: none; color: var(--md-inverse-primary); font-weight: 600; padding: 0 12px; }

/* ---- chips: de filtro (marcado ganha o visto) e de sugestão */
.fichas { gap: 8px; }
.ficha { min-height: 40px; padding: 0 16px; border-radius: var(--md-s); border: 1px solid var(--md-outline-variant); background: none; color: var(--md-on-surface-variant);
  font: 500 14px/20px var(--fonte); letter-spacing: .01em; display: inline-flex; align-items: center; gap: 8px; }
.ficha[aria-pressed="true"] { background: var(--md-secondary-container); border-color: transparent; color: var(--md-on-secondary-container); box-shadow: none; padding-left: 8px; }
.ficha[aria-pressed="true"]::before { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--visto) center / contain no-repeat; mask: var(--visto) center / contain no-repeat; }
:root { --visto: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3E%3Cpath d='m382-354 339-339q12-12 28-12t28 12q12 12 12 28.500t-12 28.500L410-268q-12 12-28 12t-28-12L182-440q-12-12-11.500-28.500T183-497q12-12 28.500-12t28.500 12l142 143Z'/%3E%3C/svg%3E"); }
.sugestoes .ficha { background: none; color: var(--md-on-surface); min-height: 40px; }
.fav { color: var(--atencao); display: inline-grid; margin-right: 0; }

/* ---- chave (switch) */
.chave { min-height: 56px; gap: 16px; }
.chave i { width: 52px; height: 32px; border-radius: 16px; background: var(--md-surface-highest); border: 2px solid var(--md-outline); }
.chave i::after { top: 6px; left: 6px; width: 16px; height: 16px; background: var(--md-outline); transition: transform 200ms var(--md-enfase), width 200ms var(--md-enfase), height 200ms var(--md-enfase), top 200ms var(--md-enfase), left 200ms var(--md-enfase), background 200ms; }
.chave input:checked + i { background: var(--md-primary); border-color: var(--md-primary); }
.chave input:checked + i::after { top: 2px; left: 2px; width: 24px; height: 24px; transform: translateX(20px); background: var(--md-on-primary); }

/* ---- botões segmentados */
.seg { background: none; border: 1px solid var(--md-outline); border-radius: var(--md-full); padding: 0; gap: 0; overflow: hidden; }
.seg button { min-height: 40px; border-radius: 0; border-left: 1px solid var(--md-outline); color: var(--md-on-surface); font: 500 14px/20px var(--fonte); } .seg button:first-child { border-left: 0; }
.seg button[aria-pressed="true"] { background: var(--md-secondary-container); color: var(--md-on-secondary-container); box-shadow: none; }

/* ---- campos de texto (contornados) */
.campo { gap: 4px; font-size: 12px; line-height: 16px; letter-spacing: .03em; color: var(--md-on-surface-variant); }
.campo > input, .campo > select, .campo > textarea, .entrada, .pilula { min-height: 56px; padding: 16px; background: none; border: 1px solid var(--md-outline); border-radius: var(--md-xs); font-size: 16px; line-height: 24px; color: var(--md-on-surface); }
.campo > input:focus, .campo > select:focus, .campo > textarea:focus, .entrada:focus, .pilula:focus { border-color: var(--md-primary); box-shadow: inset 0 0 0 1px var(--md-primary); outline: none; }
.pilula { min-height: 48px; padding: 0 12px; border-radius: var(--md-s); border-color: var(--md-outline-variant); font-size: 14px; }
.erro-campo { border-left: 0; padding-left: 0; font-size: 12px; line-height: 16px; color: var(--md-error); }

/* ---- progresso */
.barra { height: 4px; border-radius: 2px; background: var(--md-secondary-container); } .barra i { background: var(--md-primary); border-radius: 2px; }
.estado.rodando i { border-color: var(--md-primary); border-right-color: transparent; border-width: 3px; }
.anel circle { stroke-width: 8; } .anel .trilha { stroke: var(--md-secondary-container); } .anel .fatia { filter: none; }
.anel .meio b { font: 500 22px/28px var(--titulo); }
.osso { border: 0; background: var(--md-surface-container); border-radius: var(--md-l); }

/* ---- escolha única (rádio) */
.opcoes { gap: 0; background: var(--md-surface-high); border-radius: var(--md-l); overflow: hidden; }
.opcao { border: 0; border-radius: 0; background: none; min-height: 72px; padding: 12px 16px; gap: 16px; align-items: center; font-size: 16px; }
.opcao[aria-pressed="true"] { background: none; } .opcao small { font-size: 14px; line-height: 20px; }
.opcao .bola { margin: 0; border-color: var(--md-on-surface-variant); } .opcao[aria-pressed="true"] .bola { border-color: var(--md-primary); background: var(--md-primary); box-shadow: inset 0 0 0 3px var(--md-surface-high); }

/* ---- ranking */
.post { border: 0; border-radius: var(--md-m); background: var(--md-surface-container); }
.post.marcado { box-shadow: 0 0 0 2px var(--md-primary); }
.post .info { padding: 8px 12px 12px; } .post .info b { font: 500 16px/24px var(--titulo); } .post .info small { font-size: 12px; line-height: 16px; letter-spacing: .03em; }
.post.marcado .check i { background: var(--md-primary); border-color: var(--md-primary); }
.barra-sel { background: var(--md-surface-container); border-top: 0; padding: 12px 16px; gap: 8px; box-shadow: 0 -1px 0 var(--md-outline-variant); }
.barra-sel b { font: 500 22px/28px var(--titulo); min-width: 28px; }
.barra-sel .bt { min-height: 48px; }

/* ---- ajuda, recolhidos, entrada */
.ajuda { border: 0; background: var(--md-surface-container); border-radius: var(--md-l); } .ajuda details { border-top: 0; }
.ajuda summary { min-height: 56px; padding: 8px 16px; font-weight: 400; font-size: 16px; } .ajuda details[open] > summary { box-shadow: none; color: var(--md-primary); }
.ajuda-corpo { padding: 0 16px 16px; }
.recolhido { border: 0; background: var(--md-surface-container); border-radius: var(--md-m); } .recolhido summary { min-height: 56px; padding: 16px; list-style: none; color: var(--md-on-surface); }
.recolhido summary::-webkit-details-marker { display: none; }
.porta .marca img.nome { height: 28px; }
.sem-rede, .nova-versao { background: var(--md-surface-high); color: var(--md-on-surface); font-size: 14px; } .sem-rede { color: var(--atencao); }
main.entra { animation: entra 200ms var(--md-enfase); }
@keyframes entra { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---- a tela inteira trabalha: conteúdo no meio, ação principal embaixo (no alcance do polegar) */
main > .cresce-tela { flex: 1 0 auto; display: flex; flex-direction: column; gap: 12px; }
main > .empurra { flex: 1 0 0; min-height: 0; }
.pe-fixo { position: sticky; bottom: -32px; z-index: 3; margin: auto -16px -32px; padding: 12px 16px calc(16px + 0px); display: flex; flex-direction: column; gap: 12px;
  background: var(--md-surface); box-shadow: 0 -1px 0 var(--md-outline-variant); }
.pe-fixo:empty { display: none; }
.vazio { margin: auto 0; padding: 24px 16px; gap: 8px; } .vazio .estado { width: 64px; height: 64px; margin-bottom: 8px; } .vazio .estado svg.ms.mi { width: 30px; height: 30px; }
.cresce-tela > .vazio, .cresce-tela > div > .vazio { flex: 1; justify-content: center; }
#r-recentes, #i-perfis { display: flex; flex-direction: column; flex: 1; gap: 12px; }
main > .garimpo { margin: auto 0; padding: 8px 0 24px; }      /* a pergunta fica no meio do espaço livre; perfis e busca ficam juntos embaixo */
#i-perfis { flex: none; }
[data-pagina="inicio"] .pe-fixo { margin-top: 0; box-shadow: none; }
.grade-perfis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.grade-perfis .perfil { flex: none; width: auto; border: 0; border-radius: var(--md-m); background: var(--md-surface-container); position: relative; overflow: hidden; }
.grade-perfis .perfil .foto { display: grid; place-items: center; color: var(--md-outline); }
.grade-perfis .perfil .nome { padding: 8px 10px 10px; } .grade-perfis .perfil .nome b { font: 500 13px/18px var(--fonte); } .grade-perfis .perfil .nome small { font-size: 12px; line-height: 16px; }
.grade-perfis .osso.quadrado { aspect-ratio: 3 / 4; }
/* botão flutuante (FAB estendido): a ação principal da tela, sempre embaixo à direita */
.fab { position: sticky; bottom: -16px; align-self: flex-end; margin-top: auto; z-index: 4; min-height: 56px; padding: 0 20px 0 16px; display: inline-flex; align-items: center; gap: 12px;
  border-radius: var(--md-l); background: var(--md-primary-container); color: var(--md-on-primary-container); text-decoration: none; font: 500 14.5px/20px var(--fonte); box-shadow: 0 3px 8px #00000066; }
.fab:active { background: #0E5A70; }

/* ---- saldo da equipe: linha do próximo crédito */
.medidor-texto .proximo { border-top: 1px solid var(--md-outline-variant); padding-top: 8px; margin-top: 2px; } .medidor-texto .proximo b { color: var(--md-primary); font-weight: 600; }
[data-pagina="contas"] .item.parado { align-items: center; } [data-pagina="contas"] .item.parado > .cresce { flex: 1 1 auto; min-width: 0; color: var(--md-on-surface); text-align: left; }
[data-pagina="contas"] .item.parado > .selo { flex: none; margin-left: 8px; } [data-pagina="contas"] .item.parado small { display: block; }

/* ---- listas salvas: marcar várias */
.lista-item { padding: 0 4px 0 0; gap: 0; } .lista-item .marcar-lista { display: flex; align-items: center; gap: 16px; padding: 8px 8px 8px 16px; min-height: 64px; background: none; border: 0; color: inherit; text-align: left; cursor: pointer; position: relative; overflow: hidden; }
.caixa { flex: none; width: 24px; height: 24px; border-radius: 6px; border: 2px solid var(--md-on-surface-variant); display: grid; place-items: center; color: transparent; }
.caixa svg.ms.mi { width: 18px; height: 18px; }
.marcar-lista[aria-pressed="true"] .caixa { background: var(--md-primary); border-color: var(--md-primary); color: var(--md-on-primary); }
.pe-folha { position: sticky; bottom: calc(-24px - var(--seguro-b)); margin: 0 -16px calc(-24px - var(--seguro-b)); padding: 12px 16px calc(16px + var(--seguro-b)); background: var(--md-surface-low); box-shadow: 0 -1px 0 var(--md-outline-variant); display: flex; flex-direction: column; gap: 8px; }
.chave small { font-size: 13px; line-height: 18px; margin-top: 2px; }

/* ---- convite pra instalar (Início) e passos */
.linha-status.convite { flex-direction: column; align-items: stretch; gap: 4px; padding: 14px 12px 8px 16px; } .linha-status.convite > .linha { gap: 16px; } .linha-status.convite .cresce { min-width: 0; }
.acoes-convite { display: flex; justify-content: flex-end; gap: 4px; } .acoes-convite .bt.texto { color: var(--md-on-surface-variant); }
ol.passos { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 12px; } ol.passos li::marker { color: var(--md-primary); font-weight: 600; }

/* ---- 14.3: revisão do celular */
/* Dentro das folhas nada encolhe: lista comprida rola em vez de espremer as linhas (era o texto cortado nas Listas salvas). */
.folha-corpo > *, .lista > *, .opcoes > * { flex-shrink: 0; }
/* Listas salvas: uma linha por lista, nome inteiro em cima e detalhes curtos embaixo */
.lista-item { min-height: 64px; padding: 0 4px 0 0; }
.lista-item .marcar-lista { flex: 1; min-width: 0; padding: 10px 8px 10px 16px; min-height: 64px; }
.lista-item .marcar-lista .cresce { display: flex; flex-direction: column; min-width: 0; }
.lista-item .marcar-lista b { font: 500 16px/22px var(--fonte); color: var(--md-on-surface); }
.lista-item .marcar-lista small { font-size: 13px; line-height: 18px; margin-top: 1px; }
.lista-item .icone-bt { flex: none; margin: 0; width: 48px; height: 48px; color: var(--md-on-surface-variant); }
.marcar-lista[aria-pressed="true"] b { color: var(--md-primary); }
.busca-lista { position: sticky; top: -8px; z-index: 2; display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 16px; margin-top: -4px;
  border-radius: var(--md-full); background: var(--md-surface-high); box-shadow: 0 -10px 0 var(--md-surface-low), 0 8px 12px -6px #00000080; }
.busca-lista:focus-within { box-shadow: 0 -10px 0 var(--md-surface-low), 0 0 0 2px var(--md-primary); }
.busca-lista .lupa { display: grid; color: var(--md-on-surface-variant); }
.busca-lista input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; color: var(--md-on-surface); font: 400 16px var(--fonte); }
.busca-lista input::-webkit-search-cancel-button { filter: invert(1) opacity(.6); }
.linha-pe { display: flex; gap: 8px; align-items: center; } .linha-pe .bt.texto { flex: none; padding: 0 12px; } .linha-pe .cresce { flex: 1; min-width: 0; }
.icone-item { flex: none; display: grid; color: var(--md-on-surface-variant); }
.item.perigo, .item.perigo .icone-item { color: var(--md-error); }
/* Compartilhar (Minha conta): campo e botão lado a lado */
.linha-campo { display: flex; gap: 8px; align-items: flex-end; } .linha-campo .campo { flex: 1; min-width: 0; } .linha-campo .bt { flex: none; min-height: 56px; }
/* Início: só a busca fica presa embaixo; os avisos vão pro meio da tela e não cobrem os perfis */
#i-avisos:empty { display: none; }
/* Medidores (Minha conta, Contas): em celular estreito o anel fica em cima e o texto ganha a largura toda */
@media (max-width: 400px) {
  .medidor { flex-direction: column; align-items: stretch; gap: 12px; }
  .medidor .anel { align-self: center; }
}

/* ---- 14.4: listas usadas e a pergunta depois do download */
details.usadas > summary { list-style: none; display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 4px; cursor: pointer;
  color: var(--md-on-surface-variant); font: 500 14px/20px var(--fonte); letter-spacing: .01em; }
details.usadas > summary::-webkit-details-marker { display: none; }
details.usadas > summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform 200ms var(--md-enfase); margin-right: 10px; }
details.usadas[open] > summary::after { transform: rotate(-135deg); }
details.usadas > summary .selo { font-size: 12px; }
.lista-item.usada .marcar-lista b, .lista-item.usada .marcar-lista small { color: var(--md-on-surface-variant); }
.lista-item.usada .marcar-lista b { text-decoration: line-through; text-decoration-color: #9BA2B466; }
.opcao .icone-item { margin-top: 0; }
.opcao.perigo > span:last-child { color: var(--md-error); } .opcao.perigo small { color: var(--md-on-surface-variant); }
.opcao[data-acao] { align-items: center; }
.pergunta-listas { display: flex; flex-direction: column; gap: 10px; background: var(--md-primary-container); color: var(--md-on-primary-container); }
.pergunta-listas p { margin: 0; } .pergunta-listas .bts { display: flex; flex-wrap: wrap; gap: 8px; }
.pergunta-listas .bt.texto { color: var(--md-on-primary-container); }
