/* =====================================================================
   Atlas Rede · design system
   Origem: a tela de acesso (referencia/atlas-rede-authscreen.html).
   Tudo no console usa as mesmas cores, tipos, campos, botões e avisos dela.

   1. tokens               7. anel (carregamento e estados)
   2. escala por tela      8. console: estrutura e lateral
   3. base                 9. console: barra de ações e abas
   4. componentes         10. tabela de dados
   5. camadas             11. telas
   6. tela de acesso      12. responsivo e movimento reduzido
   ===================================================================== */

/* ---------- 1. tokens ---------- */
:root {
  color-scheme: dark;

  /* cor: base escura */
  --sumi: #0B0C11;            /* fundo */
  --sumi-2: #0E1017;          /* lateral e barra de ações */
  --concreto: #15161D;        /* topo do gradiente dos campos */
  --superficie: #111219;      /* painéis */
  --superficie-2: #161821;    /* cabeçalho de tabela, hover */
  --camada: #13151D;          /* menus, modais, gavetas */

  /* cor: texto */
  --washi: #E6EEF9;           /* texto forte, títulos */
  --texto: #B3B3BA;           /* texto corrido */
  --texto-suave: #92939F;     /* secundário */
  --texto-apagado: #6C6E7B;   /* terciário, desabilitado */

  /* cor: destaque e estados */
  --brilho: #93B8EE;
  --brilho-forte: #C6DEFA;
  --brilho-suave: rgba(147, 184, 238, .12);
  --ok: #63D6A0;    --ok-suave: rgba(99, 214, 160, .12);
  --aviso: #E8B86B; --aviso-suave: rgba(232, 184, 107, .12);
  --erro: #F07A72;  --erro-suave: rgba(240, 122, 114, .12);

  /* cor: linhas */
  --linha: rgba(230, 238, 249, .09);
  --linha-forte: rgba(230, 238, 249, .16);
  --borda-campo: rgba(174, 184, 203, .26);
  --borda-campo-hover: rgba(174, 184, 203, .39);

  /* materiais */
  --fundo-campo: linear-gradient(180deg, var(--concreto), var(--sumi-2));
  --cromado: linear-gradient(180deg, #F4F9FF 0%, #E6EEF9 54%, #CBD9EC 100%);
  --sombra-campo: inset 0 1px 0 rgba(255, 255, 255, .035), 0 5px 18px rgba(0, 0, 0, .17);
  --sombra-flutua: 0 18px 48px rgba(0, 0, 0, .5), 0 0 0 1px var(--linha-forte);

  /* tipografia */
  --fonte: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --fonte-marca: "Anta", "Montserrat", sans-serif;

  /* forma: campos e botões do console 8 px; da tela de acesso 11 px; painéis 12 px */
  --r-campo: 8px;
  --r-grande: 11px;
  --r-painel: 12px;
  --r-pilula: 999px;

  /* movimento (da tela de acesso) */
  --ease-saida: cubic-bezier(.16, 1, .3, 1);
  --ease-suave: cubic-bezier(.22, .61, .36, 1);
  --ease-orbita: cubic-bezier(.45, .1, .3, 1);
  --t-rapido: .18s;
  --t-medio: .3s;
  --t-entrada: .7s;
  --t-volta: 1s;
  --t-saida: .4s;
}

/* ---------- 2. escala por tela ----------
   Uma só fonte de medidas, ajustada pela largura da tela:
   celular (toque) · laptop · monitor · monitor grande. */
:root {
  --t-base: 13px;      /* texto da interface */
  --t-sm: 12px;        /* secundário */
  --t-xs: 11px;        /* ajuda, selos */
  --t-micro: 10.5px;   /* rótulos em caixa alta */
  --t-titulo: 15px;    /* título da página */
  --controle: 34px;    /* altura de campos e botões */
  --controle-menor: 28px;
  --linha-tabela: 10px;
  --pagina: 24px;      /* margem da página: barra, abas e conteúdo alinham por ela */
  --acaobar: 56px;
  --abas: 42px;
  --lateral: 240px;
  --lateral-compacta: 64px;
  --conteudo-max: 1600px;
}
@media (min-width: 1600px) {
  :root { --t-base: 13.5px; --t-sm: 12.5px; --t-titulo: 16px; --controle: 36px; --linha-tabela: 11px; --pagina: 32px; --acaobar: 60px; --abas: 44px; --lateral: 256px; }
}
@media (min-width: 2200px) {
  :root { --t-base: 14.5px; --t-sm: 13px; --t-xs: 12px; --t-micro: 11px; --t-titulo: 18px; --controle: 40px; --controle-menor: 32px; --linha-tabela: 13px; --pagina: 40px; --acaobar: 64px; --abas: 48px; --lateral: 288px; --conteudo-max: 1760px; }
}
@media (max-width: 1279px) {
  :root { --controle: 32px; --linha-tabela: 9px; --pagina: 20px; --acaobar: 52px; --abas: 40px; --lateral: 228px; }
}
@media (max-width: 760px) {   /* celular: alvos de toque maiores, texto um pouco maior */
  :root { --t-base: 14px; --t-sm: 13px; --t-xs: 12px; --t-micro: 11px; --t-titulo: 16px; --controle: 40px; --controle-menor: 32px; --linha-tabela: 12px; --pagina: 16px; --acaobar: 56px; --abas: 44px; --lateral: 272px; }
}

/* ---------- 3. base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
[hidden] { display: none !important; }
::selection { color: var(--washi); background: rgba(147, 184, 238, .27); }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh; background: var(--sumi); color: var(--texto);
  font: 400 var(--t-base)/1.5 var(--fonte); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
}
body.em-entrada { height: 100%; overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--brilho); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pular { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 8px 12px; border-radius: var(--r-campo); background: var(--cromado); color: var(--sumi); font-weight: 600; text-decoration: none; }
.pular:focus { top: 12px; }
* { scrollbar-color: rgba(230, 238, 249, .18) transparent; scrollbar-width: thin; }

/* ícones: traço de 1,6 em todo o sistema */
.ico { display: inline-flex; flex: none; }
.ico svg, .botao--icone > svg, .usuario-seta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 4. componentes ---------- */

/* rótulo: caixa alta espaçada, a voz da marca */
.rotulo { display: block; margin: 0 0 7px 2px; color: rgba(230, 238, 249, .71); font-size: var(--t-micro); font-weight: 500; letter-spacing: .15em; text-transform: uppercase; white-space: nowrap; }
legend.rotulo { padding: 0; }

/* campo: moldura fina, fundo em gradiente, foco em brilho */
.grupo { min-width: 0; border: 0; }
.campo {
  position: relative; overflow: hidden;
  border: 1px solid var(--borda-campo); border-radius: var(--r-campo);
  background: var(--fundo-campo); box-shadow: var(--sombra-campo);
  transition: border-color var(--t-rapido) var(--ease-suave), box-shadow var(--t-medio) var(--ease-suave);
}
.campo:hover { border-color: var(--borda-campo-hover); }
.campo:focus-within { border-color: rgba(147, 184, 238, .72); box-shadow: 0 0 0 3px rgba(147, 184, 238, .085), 0 7px 20px rgba(0, 0, 0, .22); }
.campo--invalido, .campo--invalido:hover, .campo--invalido:focus-within { border-color: rgba(240, 122, 114, .76); box-shadow: 0 0 0 3px rgba(240, 122, 114, .08); }
.campo--desabilitado { opacity: .6; }
.campo__input {
  display: block; width: 100%; min-width: 0; height: var(--controle); padding: 0 12px;
  border: 0; border-radius: inherit; outline: none; background: transparent;
  color: var(--washi); font: 400 var(--t-base) var(--fonte); letter-spacing: .01em; caret-color: var(--brilho);
  text-overflow: ellipsis;
}
.campo__input::placeholder { color: rgba(179, 179, 186, .62); opacity: 1; }
.campo__input:disabled { color: var(--texto-suave); cursor: not-allowed; }
select.campo__input { appearance: none; padding-right: 32px; cursor: pointer; white-space: nowrap; }
select.campo__input option { background: var(--camada); color: var(--washi); }
.campo--select::after { content: ""; position: absolute; right: 12px; top: 50%; width: 7px; height: 7px; margin-top: -5px; border-right: 1.5px solid var(--texto-suave); border-bottom: 1.5px solid var(--texto-suave); transform: rotate(45deg); pointer-events: none; }
.campo--com-icone .ico { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--texto-suave); pointer-events: none; }
.campo--com-icone .ico svg { width: 15px; height: 15px; }
.campo--com-icone .campo__input { padding-left: 34px; }
.campo__ver {
  position: absolute; top: 50%; right: 7px; transform: translateY(-50%);
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px;
  color: rgba(179, 179, 186, .75); transition: color var(--t-rapido), background var(--t-rapido);
}
.campo__ver:hover { color: var(--washi); background: rgba(230, 238, 249, .05); }
.campo__ver:focus-visible { outline: 1.5px solid var(--brilho); outline-offset: -2px; }
.campo__ver svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.ajuda { margin: 6px 2px 0; font-size: var(--t-xs); line-height: 16px; color: var(--texto-suave); transition: color var(--t-rapido); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ajuda:empty { display: none; }
.ajuda--aviso { color: #F0A29B; }
.erro { margin: 6px 2px 0; color: var(--erro); font-size: var(--t-xs); font-weight: 500; line-height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.erro.tremer { animation: tremer .35s; }

/* botão: cromado claro, caixa alta espaçada, com reflexo que atravessa no hover */
.botao {
  position: relative; overflow: hidden; flex: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--controle); padding: 0 calc(16px - .14em) 0 16px;
  border: 1px solid rgba(244, 249, 255, .8); border-radius: var(--r-campo);
  background: var(--cromado); color: var(--sumi);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .48), 0 6px 18px rgba(0, 0, 0, .25);
  font: 600 var(--t-xs)/1 var(--fonte); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
  transition: transform var(--t-rapido) var(--ease-suave), box-shadow var(--t-medio) var(--ease-suave), background var(--t-rapido), border-color var(--t-rapido), color var(--t-rapido);
}
.botao::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; transform: translateX(-120%);
  background: linear-gradient(105deg, transparent 39%, rgba(255, 255, 255, .48) 50%, transparent 61%);
  transition: transform .6s var(--ease-saida);
}
.botao:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 8px 22px rgba(0, 0, 0, .3); }
.botao:hover::after { transform: translateX(120%); }
.botao:active { transform: translateY(1px); }
.botao:focus-visible { outline: 2px solid var(--brilho); outline-offset: 3px; }
.botao:disabled { cursor: default; transform: none; }
.botao:disabled:not([aria-busy="true"]) { opacity: .38; cursor: not-allowed; box-shadow: none; }
.botao:disabled::after { display: none; }
.botao[aria-busy="true"] { color: rgba(11, 12, 17, .7); }
.botao[aria-busy="true"]::after { animation: varre 1.2s linear infinite; }
.botao .ico svg { width: 15px; height: 15px; stroke-width: 2; }

.botao--secundario { background: transparent; border-color: var(--borda-campo); color: var(--washi); box-shadow: none; }
.botao--secundario:hover { background: rgba(230, 238, 249, .05); border-color: var(--borda-campo-hover); box-shadow: none; }
.botao--secundario::after, .botao--icone::after { display: none; }
.botao--perigo { background: linear-gradient(180deg, #F59D96 0%, #F07A72 55%, #DB6158 100%); border-color: rgba(255, 196, 191, .7); color: #1A0A09; }
.botao--icone {
  width: var(--controle); padding: 0; border-color: transparent; background: transparent; color: var(--texto); box-shadow: none;
  letter-spacing: 0;
}
.botao--icone:hover, .botao--icone[aria-expanded="true"] { background: rgba(230, 238, 249, .06); color: var(--washi); box-shadow: none; }
.botao--grande { width: 100%; height: var(--auth-botao, 54px); padding: 0 16px; border-radius: var(--r-grande); font-size: 11.5px; letter-spacing: .24em; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .48), 0 8px 24px rgba(0, 0, 0, .25); }
.botao--grande span { margin-right: -.24em; }

.link { padding: 0; color: var(--brilho); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(147, 184, 238, .4); }
.link:hover { color: var(--brilho-forte); }
.link:focus-visible { outline: 1.5px solid var(--brilho); outline-offset: 3px; border-radius: 3px; }

/* seleção: caixas e opções no mesmo material dos campos */
input[type="checkbox"], input[type="radio"] { accent-color: var(--brilho); width: 15px; height: 15px; margin: 0; flex: none; }
.escolhas { display: flex; gap: 6px; flex-wrap: wrap; }
.escolha {
  display: inline-flex; align-items: center; gap: 8px; height: var(--controle); padding: 0 12px;
  border: 1px solid var(--borda-campo); border-radius: var(--r-campo); background: var(--fundo-campo);
  color: var(--texto); font-size: var(--t-sm); font-weight: 500; white-space: nowrap; cursor: pointer; user-select: none;
  transition: border-color var(--t-rapido), color var(--t-rapido);
}
.escolha:hover { border-color: var(--borda-campo-hover); }
.escolha:has(input:checked) { border-color: rgba(147, 184, 238, .72); color: var(--washi); }
.escolha:has(input:disabled) { opacity: .5; cursor: not-allowed; }

.opcoes-cartao { display: grid; gap: 6px; }
.opcao-cartao {
  display: grid; grid-template-columns: 15px minmax(0, 1fr); align-items: center; gap: 1px 12px;
  padding: 9px 12px; border: 1px solid var(--borda-campo); border-radius: var(--r-campo); background: var(--fundo-campo); cursor: pointer;
  transition: border-color var(--t-rapido), box-shadow var(--t-medio);
}
.opcao-cartao:hover { border-color: var(--borda-campo-hover); }
.opcao-cartao input { grid-row: span 2; }
.opcao-cartao strong { color: var(--washi); font-size: var(--t-base); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.opcao-cartao span { color: var(--texto-suave); font-size: var(--t-xs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.opcao-cartao:has(input:checked) { border-color: rgba(147, 184, 238, .72); box-shadow: 0 0 0 3px rgba(147, 184, 238, .085); }

.alternar { display: grid; grid-template-columns: 15px minmax(0, 1fr); align-items: center; gap: 1px 12px; cursor: pointer; }
.alternar input { grid-row: span 2; }
.alternar strong { color: var(--washi); font-size: var(--t-base); font-weight: 500; white-space: nowrap; }
.alternar span { color: var(--texto-suave); font-size: var(--t-xs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alternar:has(input:disabled) { cursor: not-allowed; }

/* painel, selo, avatar */
.painel { background: var(--superficie); border: 1px solid var(--linha); border-radius: var(--r-painel); overflow: hidden; }
.selo { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: var(--r-pilula); font-size: var(--t-xs); font-weight: 500; white-space: nowrap; }
.selo-ponto::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 6px currentColor; }
.selo-ok { background: var(--ok-suave); color: var(--ok); }
.selo-aviso { background: var(--aviso-suave); color: var(--aviso); }
.selo-erro { background: var(--erro-suave); color: var(--erro); }
.avatar { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--brilho-suave); color: var(--brilho); border: 1px solid rgba(147, 184, 238, .25); font-size: 11px; font-weight: 600; letter-spacing: .04em; }

/* abas, filtro segmentado */
.segmentos { display: inline-flex; gap: 2px; padding: 3px; flex: none; background: var(--sumi); border: 1px solid var(--linha); border-radius: var(--r-campo); }
.segmento { display: inline-flex; align-items: center; gap: 7px; height: var(--controle-menor); padding: 0 11px; border-radius: 6px; color: var(--texto-suave); font-size: var(--t-sm); font-weight: 500; white-space: nowrap; transition: color var(--t-rapido), background var(--t-rapido); }
.segmento:hover { color: var(--washi); }
.segmento[aria-pressed="true"] { background: var(--superficie-2); color: var(--washi); box-shadow: inset 0 0 0 1px var(--linha-forte); }
.segmento-numero { color: var(--texto-apagado); }
.segmento[aria-pressed="true"] .segmento-numero { color: var(--brilho); }

/* estado vazio */
.vazio { display: grid; justify-items: center; gap: 6px; padding: 56px 24px; text-align: center; }
.vazio-desenho { width: 104px; height: 64px; margin-bottom: 10px; }
.vazio h2 { color: var(--washi); font-size: calc(var(--t-base) + 1px); font-weight: 500; letter-spacing: .01em; }
.vazio p { color: var(--texto-suave); font-size: var(--t-sm); max-width: 46ch; }
.vazio .botao { margin-top: 12px; }

/* ---------- 5. camadas: menu, modal, gaveta, avisos ---------- */
.menu {
  position: fixed; z-index: 70; min-width: 224px; padding: 5px;
  background: var(--camada); border-radius: var(--r-campo); box-shadow: var(--sombra-flutua);
  animation: surgir var(--t-rapido) var(--ease-saida);
}
.menu-cabecalho { padding: 8px 10px 9px; margin-bottom: 4px; border-bottom: 1px solid var(--linha); display: grid; line-height: 1.35; }
.menu-cabecalho strong { color: var(--washi); font-weight: 500; white-space: nowrap; }
.menu-cabecalho span { color: var(--texto-suave); font-size: var(--t-xs); white-space: nowrap; }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; height: 34px; padding: 0 10px; border-radius: 6px; color: var(--texto); text-align: left; font-size: var(--t-base); white-space: nowrap; }
.menu-item .ico { color: var(--texto-suave); }
.menu-item .ico svg { width: 15px; height: 15px; }
.menu-item:hover, .menu-item:focus-visible { background: rgba(230, 238, 249, .06); color: var(--washi); outline: none; }
.menu-item-perigo, .menu-item-perigo .ico { color: var(--erro); }
.menu-item-perigo:hover, .menu-item-perigo:focus-visible { color: #F7A099; }
.menu-divisor { height: 1px; margin: 5px 0; background: var(--linha); }

dialog { padding: 0; border: 0; color: var(--texto); background: var(--camada); }
dialog::backdrop { background: rgba(5, 6, 10, .72); backdrop-filter: blur(2px); }
.modal { margin: auto; width: min(440px, calc(100vw - 32px)); border-radius: var(--r-painel); box-shadow: var(--sombra-flutua); }
.modal[open] { animation: surgir var(--t-medio) var(--ease-saida); }
.gaveta { width: min(500px, 100vw); max-width: 100vw; height: 100dvh; max-height: none; margin: 0 0 0 auto; border-left: 1px solid var(--linha-forte); box-shadow: -24px 0 60px rgba(0, 0, 0, .5); }
.gaveta[open] { animation: deslizar var(--t-medio) var(--ease-saida); }
.gaveta form { display: flex; flex-direction: column; height: 100%; }
.camada-topo { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 22px 6px; }
.camada-topo > div { min-width: 0; }
.camada-topo h2 { color: var(--washi); font-size: calc(var(--t-titulo) + 1px); font-weight: 400; letter-spacing: .01em; line-height: 1.3; }
.camada-topo p { margin-top: 4px; color: var(--texto-suave); font-size: var(--t-sm); }
.gaveta .camada-topo { border-bottom: 1px solid var(--linha); padding-bottom: 16px; }
.gaveta .camada-topo p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.camada-corpo { display: grid; gap: 18px; padding: 16px 22px; align-content: start; }
.gaveta .camada-corpo { flex: 1; overflow-y: auto; padding-top: 20px; }
.camada-pe { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 22px 22px; }
.gaveta .camada-pe { border-top: 1px solid var(--linha); padding: 14px 22px calc(14px + env(safe-area-inset-bottom)); }
.duas-colunas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

/* toasts (da tela de acesso), com ação opcional */
.toasts { position: fixed; z-index: 80; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none; }
.toast {
  --tom: var(--ok); --duracao: 4.2s;
  position: relative; overflow: hidden; display: flex; gap: 11px; align-items: flex-start;
  max-width: min(400px, calc(100vw - 32px)); padding: 13px 14px 15px; pointer-events: auto;
  border: 1px solid var(--linha-forte); border-radius: var(--r-grande); background: #12151D; color: var(--washi);
  font-size: 12.5px; line-height: 1.45; box-shadow: 0 14px 32px rgba(0, 0, 0, .35);
  animation: deslizar .3s var(--ease-saida); transition: opacity .25s, transform .25s;
}
.toast--erro { --tom: var(--erro); }
.toast--info { --tom: var(--brilho); }
.toast > .anel { margin-top: 1px; }
.toast__texto { flex: 1; min-width: 0; }
.toast__acao { flex: none; margin: -3px -4px -3px 6px; height: 26px; padding: 0 8px; border-radius: 6px; color: var(--brilho); font-size: var(--t-micro); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.toast__acao:hover { background: rgba(147, 184, 238, .1); color: var(--brilho-forte); }
.toast::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--tom); opacity: .7; transform-origin: left; animation: toast-tempo var(--duracao) linear forwards; }
.toast.saindo { opacity: 0; transform: translateX(16px); }

/* ---------- 6. tela de acesso ---------- */
.entrada {
  --cap: 27px;              /* altura das letras do logotipo; o anel deriva dela */
  --auth-campo: 55px;
  --auth-botao: 54px;
  --auth-caixa: 354px;
  --auth-grupo: 15px;
  --auth-instrucao: 26px;
  position: fixed; inset: 0; z-index: 10;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden; padding: 22px 24px; background: var(--sumi);
}
/* textura de pontos e arcos discretos, mais fortes nas bordas */
.entrada::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(40% 32% at 92% -6%, rgba(147, 184, 238, .08), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600' fill='none'%3E%3Cg stroke='%23E6EEF9'%3E%3Ccircle cx='600' cy='0' r='110' stroke-opacity='.10'/%3E%3Ccircle cx='600' cy='0' r='190' stroke-opacity='.07'/%3E%3Ccircle cx='600' cy='0' r='270' stroke-opacity='.045'/%3E%3C/g%3E%3C/svg%3E") right top / min(34vmax, 340px) auto no-repeat,
    radial-gradient(rgba(230, 238, 249, .17) 1px, transparent 1.3px) 0 0 / 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 52% 48% at 50% 50%, transparent 0 38%, #000 100%);
          mask-image: radial-gradient(ellipse 52% 48% at 50% 50%, transparent 0 38%, #000 100%);
}
.fundo-orbitas {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; user-select: none; opacity: .95;
  -webkit-mask-image: radial-gradient(ellipse 34% 46% at 50% 52%, transparent 0 55%, #000 100%);
          mask-image: radial-gradient(ellipse 34% 46% at 50% 52%, transparent 0 55%, #000 100%);
}
.fundo-orbitas ellipse { opacity: .7; }
.anel-gigante { transform-origin: 800px 450px; }
.anel-gigante--externo { animation: giro 110s linear infinite; }
.anel-gigante--medio { animation: giro-inverso 145s linear infinite; }
.anel-gigante--interno { animation: giro 185s linear infinite; }

.palco { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; margin-bottom: 18px; }
.lockup { display: flex; align-items: center; justify-content: center; }
.logo {
  flex: none; overflow: visible;
  width: calc(var(--cap) * 1.73); height: calc(var(--cap) * 1.73);
  margin: 0 calc(var(--cap) * -.05) 0 calc(var(--cap) * -.24);
  filter: drop-shadow(0 0 12px rgba(147, 184, 238, .08));
  animation: entra var(--t-entrada) var(--ease-saida) .12s backwards;
  transition: transform .7s var(--ease-saida), filter .5s;
}
.logo__aro { animation: desenha 1s var(--ease-saida) .1s backwards; transition: opacity var(--t-medio); }
.logo__detalhe { animation: acende .8s .7s ease-out backwards; transition: opacity var(--t-medio); }
.logo__entrada { animation: acende .9s .6s ease-out backwards; }
.logo__orbita { transform-origin: 36px 36px; }
.logo__estria { transform-origin: 56.2px 19.6px; }
.logo__trilha { opacity: 0; transition: opacity var(--t-medio); }
.marca { flex: none; animation: entra var(--t-entrada) var(--ease-saida) .3s backwards; transition: opacity .5s; }
.marca svg { display: block; width: auto; height: calc(var(--cap) * 1.095); }
.atlas-palavra text { font-family: var(--fonte-marca); font-size: 84px; font-weight: 400; font-kerning: normal; }

.caixa { position: relative; z-index: 1; width: min(100%, var(--auth-caixa)); text-align: left; transition: opacity var(--t-saida), transform var(--t-saida) var(--ease-saida); }
.formulario { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .5s var(--ease-saida), opacity var(--t-medio); }
.formulario__conteudo { min-height: 0; transition: opacity var(--t-medio); }
.instrucao { margin-bottom: var(--auth-instrucao); text-align: center; font-size: 12px; color: var(--texto-suave); animation: entra var(--t-entrada) var(--ease-saida) .45s backwards; }
.caixa .grupo { margin-bottom: var(--auth-grupo); }
.caixa .grupo:last-of-type { margin-bottom: 0; }
.caixa .rotulo { font-size: 11px; margin-bottom: 8px; animation: entra var(--t-entrada) var(--ease-saida) .52s backwards; }
.campo--grande { border-radius: var(--r-grande); animation: entra var(--t-entrada) var(--ease-saida) .62s backwards; }
.campo--senha { animation-delay: .7s; }
.campo--grande .campo__input { height: var(--auth-campo); padding: 0 48px 0 16px; font-size: 14px; letter-spacing: .02em; }
.campo--grande .campo__input::placeholder { font-size: 12px; letter-spacing: .015em; }
#senha { font-size: 15px; letter-spacing: .06em; }
.caixa .ajuda { margin-top: 7px; white-space: normal; }
.erro--entrada { min-height: 19px; margin: 6px 0 10px; line-height: 19px; font-size: 11.5px; font-weight: 400; white-space: normal; }
.botao--grande { animation: entra var(--t-entrada) var(--ease-saida) .78s backwards; }
.suporte { margin-top: 20px; text-align: center; font-size: 11.5px; color: var(--texto-suave); }

/* estados: ocioso → verificando → carregando → saindo */
.entrada[data-estado="verificando"] .formulario__conteudo { opacity: .6; }
.entrada[data-estado="saindo"] .caixa { opacity: 0; transform: translateY(-12px); }
.entrada:is([data-estado="verificando"], [data-estado="carregando"]) .logo { transform: scale(1.12); filter: drop-shadow(0 0 16px rgba(147, 184, 238, .4)); }
.entrada:is([data-estado="verificando"], [data-estado="carregando"]) .logo__aro { opacity: .3; }
.entrada:is([data-estado="verificando"], [data-estado="carregando"]) .logo__detalhe { opacity: 0; }
.entrada:is([data-estado="verificando"], [data-estado="carregando"]) .logo__trilha { opacity: 1; }
.entrada:is([data-estado="verificando"], [data-estado="carregando"]) .logo__aura { animation: respira var(--t-volta) ease-in-out infinite; }
.entrada:is([data-estado="verificando"], [data-estado="carregando"]) .logo__orbita { animation: giro var(--t-volta) var(--ease-orbita) infinite; }
.entrada:is([data-estado="verificando"], [data-estado="carregando"]) .logo__estria { animation: giro-inverso var(--t-volta) var(--ease-orbita) infinite; }
.entrada:is([data-estado="verificando"], [data-estado="carregando"]) .marca { animation: pulso-marca 1.6s ease-in-out infinite; }
.entrada:is([data-estado="verificando"], [data-estado="carregando"]) .anel-gigante--externo { animation-duration: 30s; }
.entrada:is([data-estado="verificando"], [data-estado="carregando"]) .anel-gigante--medio { animation-duration: 40s; }
.entrada:is([data-estado="verificando"], [data-estado="carregando"]) .anel-gigante--interno { animation-duration: 55s; }
.entrada:is([data-estado="verificando"], [data-estado="carregando"]) .fundo-orbitas ellipse { opacity: 1; transition: opacity .6s; }
.entrada[data-estado="saindo"] .logo { transform: scale(1.5); opacity: 0; transition: transform .45s var(--ease-saida), opacity .4s; }
/* celular: o formulário recolhe e fica só o anel girando */
.entrada:is([data-estado="carregando"], [data-estado="saindo"]) .formulario { grid-template-rows: 0fr; opacity: 0; pointer-events: none; }
.entrada:is([data-estado="carregando"], [data-estado="saindo"]) .formulario__conteudo { overflow: hidden; }

/* escala da tela de acesso: largura e altura disponíveis */
@media (min-width: 900px) {
  .entrada { --cap: 38px; --auth-caixa: 360px; }
  .palco { margin-bottom: 22px; }
  /* no computador o formulário continua visível, esmaecido, enquanto carrega */
  .entrada:is([data-estado="carregando"], [data-estado="saindo"]) .formulario { grid-template-rows: 1fr; opacity: .45; }
}
@media (min-width: 1600px) and (min-height: 900px) {
  .entrada { --cap: 46px; --auth-caixa: 384px; --auth-campo: 58px; --auth-botao: 56px; --auth-grupo: 17px; --auth-instrucao: 30px; }
  .palco { margin-bottom: 28px; }
  .instrucao { font-size: 13px; }
}
@media (max-height: 750px) {
  .entrada { --auth-campo: 51px; --auth-botao: 51px; --auth-grupo: 12px; --auth-instrucao: 18px; }
}
@media (min-width: 900px) and (max-height: 750px) { .entrada { --cap: 30px; } .palco { margin-bottom: 18px; } }
@media (max-height: 620px) {
  .entrada { --cap: 24px; --auth-campo: 47px; --auth-botao: 47px; --auth-grupo: 9px; --auth-instrucao: 13px; padding-block: 15px; }
  .palco { margin-bottom: 12px; }
  .caixa .rotulo { margin-bottom: 5px; }
  .erro--entrada { min-height: 15px; margin: 4px 0 6px; line-height: 15px; }
  .suporte { margin-top: 12px; }
}
@media (max-width: 600px) {
  .entrada { padding: 16px 22px; --auth-caixa: 344px; }
  .campo--grande .campo__input, #senha { font-size: 16px; }   /* evita o zoom automático do iOS */
}
@media (max-width: 380px) { .entrada { --cap: 23px; padding-inline: 17px; } }
/* telas muito baixas: rola só se o formulário não couber */
@media (max-height: 520px) {
  .entrada { --cap: 20px; --auth-campo: 43px; --auth-botao: 43px; overflow-y: auto; justify-content: safe center; padding-block: 14px; }
  .palco { margin-bottom: 10px; }
}

/* ---------- 7. anel: carregamento e estados ----------
   O anel cromado da marca é o indicador universal. Variantes (data-estado):
   ocioso · carregando · progresso · sucesso · erro · aviso · info
   Tamanhos: p (16 px, botões e avisos) · m (28 px) · g (56 px, páginas) · xg (88 px, telas cheias) */
.anel { --tam: 28px; --traco: 3.4; --cor: var(--brilho); display: inline-grid; place-items: center; flex: none; width: var(--tam); height: var(--tam); color: var(--cor); }
.anel--p { --tam: 16px; --traco: 6; }
.anel--m { --tam: 28px; --traco: 3.6; }
.anel--g { --tam: 56px; --traco: 2.4; }
.anel--xg { --tam: 88px; --traco: 2; }
.anel svg { width: 100%; height: 100%; overflow: visible; transition: filter var(--t-medio); }
.anel__aro { fill: none; stroke: url(#anel-cromado); stroke-width: var(--traco); transition: stroke var(--t-medio), opacity var(--t-medio); }
.anel__progresso { fill: none; stroke: var(--brilho); stroke-width: var(--traco); stroke-linecap: round; opacity: 0; transition: stroke-dasharray .5s var(--ease-saida), opacity var(--t-medio); }
.anel__giro { transform-origin: 36px 36px; }
.anel__trilha { opacity: 0; transition: opacity var(--t-medio); }
.anel__trilha circle { fill: none; stroke: #EAF3FF; stroke-width: calc(var(--traco) * 1.25); stroke-linecap: round; }
.anel__luz, .anel__ponto { transition: opacity var(--t-medio); }
.anel__marca { fill: none; stroke: currentColor; stroke-width: calc(var(--traco) * 1.3); stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; opacity: 0; }

.anel[data-estado="ocioso"] .anel__aro { opacity: .6; }
.anel[data-estado="ocioso"] .anel__luz { opacity: .7; }
.anel[data-estado="carregando"] .anel__aro { opacity: .28; }
.anel[data-estado="carregando"] .anel__trilha { opacity: 1; }
.anel[data-estado="carregando"] .anel__giro { animation: giro var(--t-volta) var(--ease-orbita) infinite; }
.anel[data-estado="carregando"] svg { filter: drop-shadow(0 0 6px rgba(147, 184, 238, .35)); }
.anel[data-estado="progresso"] .anel__aro { opacity: .22; }
.anel[data-estado="progresso"] .anel__progresso { opacity: 1; }
.anel[data-estado="progresso"] .anel__luz, .anel[data-estado="progresso"] .anel__ponto { opacity: 0; }
.anel:is([data-estado="sucesso"], [data-estado="erro"], [data-estado="aviso"], [data-estado="info"]) .anel__giro { display: none; }
.anel:is([data-estado="sucesso"], [data-estado="erro"], [data-estado="aviso"], [data-estado="info"]) .anel__aro { stroke: currentColor; opacity: .9; }
.anel[data-estado="sucesso"] { --cor: var(--ok); }
.anel[data-estado="erro"] { --cor: var(--erro); }
.anel[data-estado="aviso"] { --cor: var(--aviso); }
.anel[data-estado="info"] { --cor: var(--brilho); }
.anel[data-estado="sucesso"] svg { filter: drop-shadow(0 0 6px rgba(99, 214, 160, .45)); }
.anel[data-estado="erro"] svg { filter: drop-shadow(0 0 6px rgba(240, 122, 114, .45)); animation: tremer .35s .15s; }
.anel[data-estado="aviso"] svg { filter: drop-shadow(0 0 6px rgba(232, 184, 107, .4)); }
.anel[data-estado="sucesso"] .anel__marca--ok,
.anel[data-estado="erro"] .anel__marca--erro,
.anel[data-estado="aviso"] .anel__marca--aviso,
.anel[data-estado="info"] .anel__marca--info { opacity: 1; animation: desenhar .45s .1s var(--ease-saida) forwards; }

/* bloco de carregamento de página */
.carregando-pagina { display: grid; justify-items: center; gap: 14px; padding: 72px 24px; color: var(--texto-suave); font-size: var(--t-sm); letter-spacing: .02em; }

/* ---------- 8. console: estrutura e lateral ---------- */
.shell { display: grid; grid-template-columns: var(--lateral) minmax(0, 1fr); min-height: 100vh; transition: grid-template-columns var(--t-medio) var(--ease-saida); }
.shell.compacta, .shell.medio { grid-template-columns: var(--lateral-compacta) minmax(0, 1fr); }
.shell.estreito { display: block; }
.area { grid-column: 2; grid-row: 1; min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
/* em telas muito largas, barra, abas e conteúdo ficam numa coluna centralizada, com a mesma borda esquerda */
.limite { width: 100%; max-width: calc(var(--conteudo-max) + 2 * var(--pagina)); margin-inline: auto; }

.lateral {
  grid-column: 1; grid-row: 1; position: sticky; top: 0; z-index: 40; height: 100vh;
  display: flex; flex-direction: column; overflow: hidden;
  background: linear-gradient(180deg, #0F1119 0%, var(--sumi-2) 40%, #0C0E14 100%);
  border-right: 1px solid var(--linha);
}
/* arcos da marca no canto de baixo */
.lateral::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 320px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 300' fill='none'%3E%3Cg stroke='%23E6EEF9'%3E%3Ccircle cx='0' cy='300' r='90' stroke-opacity='.08'/%3E%3Ccircle cx='0' cy='300' r='160' stroke-opacity='.055'/%3E%3Ccircle cx='0' cy='300' r='230' stroke-opacity='.035'/%3E%3C/g%3E%3Ccircle cx='113' cy='175' r='2' fill='%23C6DEFA' fill-opacity='.6'/%3E%3C/svg%3E") left bottom / 300px 300px no-repeat;
}
.lateral > * { position: relative; }

/* cabeçalho: marca + recolher. A linha de baixo continua na barra de ações. */
.lateral-cabeca { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: var(--acaobar); padding: 0 10px 0 16px; flex: none; border-bottom: 1px solid var(--linha); }
.lateral-marca { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 6px 4px; margin-left: -4px; border-radius: var(--r-campo); text-decoration: none; }
.lateral-marca .anel { --tam: calc(var(--controle) * .9); --traco: 3.2; }
.lateral-palavra { height: calc(var(--t-base) * 1.15); width: auto; flex: none; }
.lateral-alternar { position: relative; display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: var(--r-campo); color: var(--texto-suave); transition: background var(--t-rapido), color var(--t-rapido); }
.lateral-alternar:hover { background: rgba(230, 238, 249, .06); color: var(--washi); }
.lateral-alternar-icone { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lateral-alternar-icone .seta { transition: transform var(--t-medio) var(--ease-saida); transform-origin: 14.5px 12px; }
.lateral-alternar-anel { display: none; }

.cliente { display: flex; align-items: center; gap: 10px; margin: 14px 12px 6px; padding: 8px 10px; flex: none; border: 1px solid var(--linha); border-radius: var(--r-grande); background: rgba(11, 12, 17, .6); }
.cliente-sigla { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 7px; background: var(--cromado); color: var(--sumi); font-weight: 600; font-size: 12px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5); }
.cliente-texto { display: grid; min-width: 0; line-height: 1.3; }
.cliente-texto strong { color: var(--washi); font-size: var(--t-base); font-weight: 500; letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cliente-texto small { color: var(--texto-suave); font-size: var(--t-xs); white-space: nowrap; }

/* menu */
.nav { flex: 1; overflow-y: auto; padding: 14px 12px 16px; }
.nav-secao { display: grid; gap: 3px; }
.nav-secao + .nav-secao { margin-top: 20px; }
.nav-grupo { display: flex; align-items: center; gap: 10px; padding: 0 10px 8px; color: rgba(230, 238, 249, .42); font-size: var(--t-micro); font-weight: 500; letter-spacing: .15em; text-transform: uppercase; white-space: nowrap; }
.nav-grupo::after { content: ""; flex: 1; height: 1px; background: var(--linha); }
.nav-item {
  position: relative; display: flex; align-items: center; gap: 12px; height: calc(var(--controle) + 4px); padding: 0 10px;
  border: 1px solid transparent; border-radius: var(--r-grande); color: var(--texto); text-decoration: none; white-space: nowrap;
  transition: background var(--t-rapido), color var(--t-rapido), border-color var(--t-rapido);
}
.nav-item .ico { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; color: var(--texto-suave); transition: color var(--t-rapido), background var(--t-rapido); }
.nav-item .ico svg { width: 17px; height: 17px; }
.nav-item:hover { background: rgba(230, 238, 249, .045); color: var(--washi); }
.nav-item:hover .ico { color: var(--washi); }
.nav-item[aria-current="page"] {
  background: linear-gradient(90deg, rgba(147, 184, 238, .16), rgba(147, 184, 238, .03));
  border-color: rgba(147, 184, 238, .16); color: var(--washi); font-weight: 500;
}
.nav-item[aria-current="page"] .ico { color: var(--sumi); background: var(--cromado); box-shadow: 0 0 12px rgba(147, 184, 238, .35); }
.nav-rotulo { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.nav-selo { min-width: 20px; height: 20px; padding: 0 6px; display: grid; place-items: center; border-radius: var(--r-pilula); background: rgba(232, 184, 107, .14); color: var(--aviso); font-size: 10.5px; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(232, 184, 107, .3); }

/* rodapé: perfil + configurações */
.lateral-pe { display: flex; align-items: center; gap: 6px; padding: 10px 10px 12px; flex: none; border-top: 1px solid var(--linha); }
.usuario { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; padding: 7px 8px; border-radius: var(--r-grande); text-align: left; transition: background var(--t-rapido); }
.usuario:hover, .usuario[aria-expanded="true"] { background: rgba(230, 238, 249, .05); }
.usuario-texto { display: grid; flex: 1; min-width: 0; line-height: 1.3; }
.usuario-texto strong { color: var(--washi); font-size: var(--t-base); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.usuario-texto small { color: var(--texto-suave); font-size: var(--t-xs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lateral-config { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border: 1px solid transparent; border-radius: var(--r-grande); color: var(--texto-suave); transition: background var(--t-rapido), color var(--t-rapido), transform .5s var(--ease-saida); }
.lateral-config svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .6s var(--ease-saida); }
.lateral-config:hover { background: rgba(230, 238, 249, .05); color: var(--washi); }
.lateral-config:hover svg { transform: rotate(60deg); }
.lateral-config[aria-current="page"] { color: var(--washi); background: var(--brilho-suave); border-color: rgba(147, 184, 238, .2); }
.lateral-config[aria-current="page"] svg { color: var(--brilho); }

/* lateral compacta: só ícones (computador recolhido e tablet) */
.shell.compacta .lateral, .shell.compacta .nav { overflow: visible; }
.shell.compacta .lateral-cabeca { justify-content: center; padding: 0; }
.shell.compacta .lateral-marca,
.shell.compacta .cliente-texto,
.shell.compacta .nav-rotulo,
.shell.compacta .usuario-texto { display: none; }
.shell.compacta .lateral-alternar { width: 40px; height: 40px; }
.shell.compacta .lateral-alternar-anel { display: grid; }
.shell.compacta .lateral-alternar-anel .anel { --tam: 30px; --traco: 3.2; }
.shell.compacta .lateral-alternar-icone { position: absolute; opacity: 0; transition: opacity var(--t-rapido); }
.shell.compacta .lateral-alternar-icone .seta { transform: scaleX(-1); }
.shell.compacta .lateral-alternar:is(:hover, :focus-visible) .lateral-alternar-anel { opacity: 0; }
.shell.compacta .lateral-alternar:is(:hover, :focus-visible) .lateral-alternar-icone { opacity: 1; }
.shell.compacta .cliente { justify-content: center; padding: 6px; margin-inline: 12px; }
.shell.compacta .nav-grupo { padding: 0; margin: 0 10px 10px; font-size: 0; }
.shell.compacta .nav-item { justify-content: center; padding: 0; }
.shell.compacta .nav-selo { position: absolute; top: 4px; right: 4px; width: 9px; min-width: 9px; height: 9px; padding: 0; font-size: 0; background: var(--aviso); }
.shell.compacta .lateral-pe { flex-direction: column-reverse; padding-inline: 0; gap: 4px; }
.shell.compacta .usuario { flex: none; padding: 5px; }
/* dica ao passar o mouse, só na lateral compacta */
.shell.compacta [data-dica] { position: relative; }
.shell.compacta [data-dica]:is(:hover, :focus-visible)::after {
  content: attr(data-dica); position: absolute; left: calc(100% + 12px); top: 50%; transform: translateY(-50%); z-index: 70;
  padding: 6px 10px; border-radius: var(--r-campo); background: var(--camada); box-shadow: var(--sombra-flutua);
  color: var(--washi); font-size: var(--t-sm); font-weight: 500; white-space: nowrap; pointer-events: none;
  animation: surgir var(--t-rapido) var(--ease-saida);
}

/* lateral flutuante: por cima do conteúdo (tablet e celular) */
.shell.estreito .lateral {
  position: fixed; top: 0; bottom: 0; left: 0; width: var(--lateral); height: auto; z-index: 60;
  transform: translateX(-100%); visibility: hidden;
  transition: transform var(--t-medio) var(--ease-saida), visibility 0s linear var(--t-medio);
}
.shell.flutuante .lateral {
  position: fixed; top: 0; bottom: 0; left: 0; width: var(--lateral); height: auto; z-index: 60;
  transform: none; visibility: visible; box-shadow: 24px 0 60px rgba(0, 0, 0, .5);
  transition: transform var(--t-medio) var(--ease-saida);
}
.fundo-menu { display: none; position: fixed; inset: 0; z-index: 55; background: rgba(5, 6, 10, .65); cursor: default; }
.shell.flutuante .fundo-menu { display: block; }

/* ---------- 9. console: barra de ações e abas ----------
   Barra, abas e conteúdo começam na mesma margem (--pagina). */
.topo { position: sticky; top: 0; z-index: 30; background: rgba(13, 15, 21, .9); backdrop-filter: blur(12px) saturate(1.2); border-bottom: 1px solid var(--linha); transition: box-shadow var(--t-medio); }
.topo.rolou { box-shadow: 0 10px 28px rgba(0, 0, 0, .38); }
.topo:has(.abas:not([hidden])) .acaobar { border-bottom: 1px solid var(--linha); }
.acaobar-linha { display: flex; align-items: center; gap: 14px; height: var(--acaobar); padding: 0 var(--pagina); }
.abrir-menu { display: none; margin-left: -8px; }
.titulo-pagina { display: grid; flex: 1; min-width: 0; gap: 3px; }
.trilha { display: flex; align-items: center; gap: 7px; min-width: 0; color: var(--texto-apagado); font-size: var(--t-micro); font-weight: 500; letter-spacing: .15em; text-transform: uppercase; white-space: nowrap; line-height: 1; }
.trilha > span { flex: none; }
.trilha .ico svg { width: 11px; height: 11px; }
.trilha-cliente { color: var(--texto-suave); }
.titulo-pagina h1 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--washi); font-size: var(--t-titulo); font-weight: 400; letter-spacing: .01em; line-height: 1.2; }
.acaobar-acoes { display: flex; align-items: center; gap: 8px; flex: none; }

.abas-linha { display: flex; gap: 28px; height: var(--abas); padding: 0 var(--pagina); overflow-x: auto; scrollbar-width: none; }
.abas-linha::-webkit-scrollbar { display: none; }
.aba { position: relative; display: inline-flex; align-items: center; gap: 8px; flex: none; color: var(--texto-suave); text-decoration: none; font-size: var(--t-base); white-space: nowrap; transition: color var(--t-rapido); }
.aba:hover { color: var(--washi); }
.aba[aria-current="page"] { color: var(--washi); font-weight: 500; }
.aba[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px 2px 0 0; background: var(--brilho); box-shadow: 0 0 10px rgba(147, 184, 238, .55); }
.aba-numero { min-width: 20px; height: 18px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: var(--r-pilula); background: rgba(230, 238, 249, .06); color: var(--texto-suave); font-size: 10.5px; font-weight: 500; }
.aba[aria-current="page"] .aba-numero { background: var(--brilho-suave); color: var(--brilho); }

.conteudo { flex: 1; outline: none; }
.conteudo > .limite { padding: var(--pagina); }

/* ---------- 10. tabela de dados ----------
   Ordenação por coluna, seleção com ações em massa, paginação e colunas que saem quando falta largura.
   Nenhum texto é cortado: a coluna inteira sai; se ainda faltar espaço, a tabela rola. */
.dados { container-type: inline-size; }
.ferramentas { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border-bottom: 1px solid var(--linha); }
.ferramentas-dir { display: flex; gap: 8px; flex: 0 1 480px; min-width: 0; }
.ferramentas-dir .campo--com-icone { flex: 1 1 240px; }
.ferramentas-dir .campo--select { flex: 0 0 170px; }
.so-movel { display: none; }

/* barra de seleção: aparece no lugar dos filtros quando há linhas marcadas */
.selecao { display: flex; align-items: center; gap: 10px; min-height: calc(var(--controle) + 24px); padding: 12px; border-bottom: 1px solid rgba(147, 184, 238, .22); background: linear-gradient(90deg, rgba(147, 184, 238, .1), rgba(147, 184, 238, .02)); animation: surgir var(--t-rapido) var(--ease-saida); }
.selecao-qtd { display: inline-flex; align-items: center; gap: 10px; color: var(--washi); font-weight: 500; white-space: nowrap; }
.selecao-acoes { display: flex; gap: 8px; margin-left: auto; flex-wrap: nowrap; overflow-x: auto; }

.tabela-rolagem { overflow-x: auto; }
.tabela { width: 100%; border-collapse: collapse; white-space: nowrap; }
.tabela th { position: sticky; top: 0; text-align: left; padding: 0 14px; height: 38px; background: var(--superficie-2); border-bottom: 1px solid var(--linha); color: rgba(230, 238, 249, .55); font-size: var(--t-micro); font-weight: 500; letter-spacing: .13em; text-transform: uppercase; }
.tabela td { padding: var(--linha-tabela) 14px; border-bottom: 1px solid var(--linha); vertical-align: middle; }
.tabela tbody tr:last-child td, .tabela tbody tr:last-child th { border-bottom: 0; }
.tabela tbody tr { transition: background var(--t-rapido); }
.tabela tbody tr:hover { background: rgba(230, 238, 249, .025); }
.tabela tbody tr[aria-selected="true"] { background: rgba(147, 184, 238, .07); }
.tabela tbody tr[aria-selected="true"] td:first-child { box-shadow: inset 2px 0 0 var(--brilho); }
.tabela .col-marcar { width: 44px; padding-right: 0; }
.tabela .acoes { width: 52px; padding-block: 0; text-align: right; }
.ordenar { display: inline-flex; align-items: center; gap: 6px; margin: 0 -6px; padding: 4px 6px; border-radius: 5px; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; }
.ordenar:hover { color: var(--washi); background: rgba(230, 238, 249, .05); }
.ordenar svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: .35; transition: transform var(--t-rapido), opacity var(--t-rapido); }
.ordenar:hover svg { opacity: .7; }
th[aria-sort="ascending"] .ordenar, th[aria-sort="descending"] .ordenar { color: var(--brilho); }
th[aria-sort="ascending"] .ordenar svg, th[aria-sort="descending"] .ordenar svg { opacity: 1; }
th[aria-sort="descending"] .ordenar svg { transform: rotate(180deg); }

.paginacao { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 14px; border-top: 1px solid var(--linha); color: var(--texto-suave); font-size: var(--t-sm); white-space: nowrap; }
.paginacao-esq, .paginacao-dir { display: flex; align-items: center; gap: 10px; }
.paginacao .campo { width: 76px; }
.paginacao .campo__input { height: var(--controle-menor); font-size: var(--t-sm); }
.paginacao .botao--icone { width: var(--controle-menor); height: var(--controle-menor); border: 1px solid var(--linha-forte); }
.paginacao .botao--icone:disabled { opacity: .35; cursor: not-allowed; }

/* ---------- 11. telas ---------- */
.pessoa { display: flex; align-items: center; gap: 11px; min-width: 0; }
.pessoa-texto { display: grid; min-width: 0; line-height: 1.35; }
.pessoa-linha { display: flex; align-items: center; min-width: 0; }
.pessoa-nome { color: var(--washi); font-weight: 500; text-align: left; }
.pessoa-nome:hover { color: var(--brilho-forte); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(147, 184, 238, .4); }
.pessoa-email { color: var(--texto-suave); font-size: var(--t-sm); }
.pessoa-voce { flex: none; margin-left: 6px; padding: 1px 6px; border-radius: var(--r-pilula); background: rgba(230, 238, 249, .07); color: var(--texto-suave); font-size: 10px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; vertical-align: 1px; }
.secundario { color: var(--texto-suave); }
.mfa-sim { color: var(--ok); }
.mfa-nao { color: var(--texto-apagado); }
.linha-suspensa .pessoa-nome, .linha-suspensa .col-papel, .linha-suspensa .avatar { opacity: .6; }

/* colunas que saem primeiro quando o painel estreita (com a lateral aberta ou recolhida) */
@container (max-width: 1160px) { .tabela-pessoas .col-mfa { display: none; } }
@container (max-width: 1020px) { .tabela-pessoas .col-acesso { display: none; } }
@container (max-width: 900px) { .tabela-pessoas .col-unidades { display: none; } }

/* matriz de papéis */
.matriz th:not(:first-child), .matriz td { text-align: center; }
.matriz tbody th { position: static; height: auto; padding: var(--linha-tabela) 14px; text-align: left; background: transparent; color: var(--washi); font-size: var(--t-base); font-weight: 500; letter-spacing: .01em; text-transform: none; }
.nivel { display: inline-grid; place-items: center; min-width: 84px; height: 22px; padding: 0 10px; border-radius: var(--r-pilula); font-size: var(--t-xs); font-weight: 500; white-space: nowrap; }
.nivel-total { background: var(--cromado); color: var(--sumi); font-weight: 600; }
.nivel-editar { background: var(--brilho-suave); color: var(--brilho); box-shadow: inset 0 0 0 1px rgba(147, 184, 238, .3); }
.nivel-ver { background: rgba(230, 238, 249, .05); color: var(--texto); box-shadow: inset 0 0 0 1px var(--linha); }
.nivel-nada { color: var(--texto-apagado); }
.legenda { display: flex; gap: 22px; padding: 12px 14px; border-top: 1px solid var(--linha); overflow-x: auto; white-space: nowrap; color: var(--texto-suave); font-size: var(--t-sm); }
.legenda > span { display: inline-flex; align-items: center; gap: 9px; flex: none; }
.legenda .nivel { min-width: 0; }

/* modal com anel de estado no topo (ações que pedem atenção) */
.camada-topo .anel { margin-bottom: 14px; }

/* ---------- animações ---------- */
@keyframes entra { from { opacity: 0; transform: translateY(9px); } }
@keyframes acende { from { opacity: 0; } }
@keyframes desenha { from { stroke-dasharray: 100 100; stroke-dashoffset: 100; } to { stroke-dasharray: 100 100; stroke-dashoffset: 0; } }
@keyframes desenhar { to { stroke-dashoffset: 0; } }
@keyframes giro { to { transform: rotate(360deg); } }
@keyframes giro-inverso { to { transform: rotate(-360deg); } }
@keyframes respira { 0%, 100% { opacity: .12; } 50% { opacity: .28; } }
@keyframes varre { from { transform: translateX(-120%); } to { transform: translateX(120%); } }
@keyframes tremer { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@keyframes deslizar { from { opacity: 0; transform: translateX(20px); } }
@keyframes surgir { from { opacity: 0; transform: translateY(6px) scale(.985); } }
@keyframes pulso-marca { 50% { opacity: .6; } }
@keyframes toast-tempo { to { transform: scaleX(0); } }

/* ---------- 12. responsivo e movimento reduzido ---------- */
/* ---------- 11b. telas do produto (indicadores, campanhas, recompensas, tickets, resgates, configurações) ---------- */
.pilha { display: grid; gap: 16px; min-width: 0; }
.pilha--justa { gap: 8px; }
.grade-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.num { text-align: right !important; font-variant-numeric: tabular-nums; }
.texto-erro { color: var(--erro) !important; }
.texto-ok { color: var(--ok) !important; }
.selo-info { background: var(--brilho-suave); color: var(--brilho); }
.selo-neutro { background: rgba(230, 238, 249, .06); color: var(--texto-suave); }
.selo-margem { margin-left: 8px; height: 19px; }
.codigo-pequeno { font: 500 var(--t-xs)/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--texto); background: rgba(230, 238, 249, .05); padding: 3px 6px; border-radius: 5px; letter-spacing: .04em; }
.ajuda--livre { white-space: normal; overflow: visible; }

/* faixa de aviso dentro da página */
.faixa { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 14px; border-radius: var(--r-campo); border: 1px solid var(--tom-borda, var(--linha)); background: var(--tom-fundo, rgba(230, 238, 249, .03)); color: var(--washi); font-size: var(--t-sm); line-height: 1.5; }
.faixa--info { --tom-borda: rgba(147, 184, 238, .25); --tom-fundo: rgba(147, 184, 238, .06); }
.faixa--ok { --tom-borda: rgba(99, 214, 160, .28); --tom-fundo: rgba(99, 214, 160, .06); }
.faixa--aviso { --tom-borda: rgba(232, 184, 107, .3); --tom-fundo: rgba(232, 184, 107, .07); }
.faixa--erro { --tom-borda: rgba(240, 122, 114, .32); --tom-fundo: rgba(240, 122, 114, .07); }
.faixa-texto { flex: 1; min-width: 0; }
.faixa-texto strong { font-weight: 600; }
.faixa-acoes { flex: none; display: flex; gap: 8px; }
.faixa .botao { height: var(--controle-menor); }

/* seção com cabeçalho */
.secao { overflow: visible; }
.secao-cabeca { padding: 14px 16px 12px; border-bottom: 1px solid var(--linha); }
.secao-cabeca h2 { color: var(--washi); font-size: calc(var(--t-base) + 1px); font-weight: 600; letter-spacing: .01em; }
.secao-cabeca p { margin-top: 3px; color: var(--texto-suave); font-size: var(--t-sm); line-height: 1.5; }
.secao-cabeca--linha { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.secao-corpo { padding: 14px 16px 16px; min-width: 0; }
.secao-corpo > .tabela, .secao-corpo > .tabela-rolagem { margin: -14px -16px -16px; width: calc(100% + 32px); }
.secao > .tabela-rolagem { border-top: 0; }
.secao-vazia { padding: 16px; color: var(--texto-suave); font-size: var(--t-sm); }
.secao-pe { padding: 10px 16px; border-top: 1px solid var(--linha); }
.tabela-compacta td { padding-block: 9px; }
.tabela-compacta th { height: 34px; }

/* indicadores */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.kpi { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--r-painel); border: 1px solid var(--linha); background: linear-gradient(180deg, var(--superficie-2), var(--superficie)); min-width: 0; }
.kpi-rotulo { color: rgba(230, 238, 249, .6); font-size: var(--t-micro); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.kpi-valor { color: var(--washi); font-size: calc(var(--t-base) * 1.85); font-weight: 500; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-detalhe { color: var(--texto-suave); font-size: var(--t-xs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi--alerta .kpi-valor { color: var(--aviso); }

.grafico { display: grid; gap: 10px; }
.grafico-area { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; height: 190px; }
.grafico-eixo-y { display: flex; flex-direction: column; justify-content: space-between; padding-bottom: 22px; color: var(--texto-apagado); font-size: 10px; text-align: right; font-variant-numeric: tabular-nums; }
.grafico-eixo-y span { transform: translateY(-50%); }
.grafico-eixo-y span:last-child { transform: translateY(50%); }
.grafico-colunas { display: grid; grid-template-columns: repeat(var(--colunas), minmax(0, 1fr)); gap: 4px; background: linear-gradient(var(--linha), var(--linha)) 0 0 / 100% 1px no-repeat, linear-gradient(var(--linha), var(--linha)) 0 calc((100% - 22px) / 2) / 100% 1px no-repeat, linear-gradient(var(--linha-forte), var(--linha-forte)) 0 calc(100% - 22px) / 100% 1px no-repeat; }
.grafico-coluna { display: grid; grid-template-rows: minmax(0, 1fr) 22px; min-width: 0; }
.grafico-barras { display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.grafico-barras span { width: min(14px, 38%); border-radius: 3px 3px 0 0; min-height: 0; }
.grafico-a { background: var(--brilho); }
.grafico-b { background: var(--ok); }
.grafico-dia { padding-top: 6px; color: var(--texto-apagado); font-size: 10px; text-align: center; white-space: nowrap; }
@media (max-width: 760px) { .grafico-dia--par { visibility: hidden; } .grafico-area { height: 160px; } }
.grafico-legenda { display: flex; gap: 18px; color: var(--texto-suave); font-size: var(--t-xs); }
.grafico-legenda > span { display: inline-flex; align-items: center; gap: 7px; }
.grafico-cor { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.grafico-cor--a { background: var(--brilho); }
.grafico-cor--b { background: var(--ok); }

.lista-campanhas { list-style: none; padding: 0; display: grid; gap: 14px; }
.lista-campanhas li { display: grid; gap: 6px; padding-bottom: 14px; border-bottom: 1px solid var(--linha); }
.lista-campanhas li:last-child { padding-bottom: 0; border-bottom: 0; }
.lista-campanhas-topo { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.lista-campanhas-nome { color: var(--washi); font-weight: 500; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lista-campanhas-nome:hover { color: var(--brilho-forte); text-decoration: underline; text-underline-offset: 3px; }
.lista-campanhas-num { color: var(--texto-suave); font-size: var(--t-xs); }
.tiers { display: grid; gap: 5px; }
.tier { display: grid; grid-template-columns: 16px minmax(0, 1fr) 52px; align-items: center; gap: 8px; font-size: var(--t-xs); }
.tier-letra { color: var(--washi); font-weight: 600; }
.tier-trilho { position: relative; height: 8px; border-radius: 4px; background: rgba(230, 238, 249, .05); overflow: hidden; }
.tier-esperado { position: absolute; inset: 0 auto 0 0; background: rgba(147, 184, 238, .22); border-radius: 4px; }
.tier-obtido { position: absolute; left: 0; top: 2px; bottom: 2px; background: var(--brilho); border-radius: 2px; }
.tier-num { text-align: right; color: var(--texto-suave); font-variant-numeric: tabular-nums; }

/* células */
.celula-dupla { display: grid; min-width: 0; line-height: 1.4; }
.celula-dupla .secundario { font-size: var(--t-sm); overflow: hidden; text-overflow: ellipsis; }
.celula-link { color: var(--washi); font-weight: 500; text-align: left; text-decoration: none; overflow: hidden; text-overflow: ellipsis; }
.celula-link:hover { color: var(--brilho-forte); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(147, 184, 238, .4); }
.celula-forte { color: var(--washi); font-weight: 500; }
.celula-codigo { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .06em; }
.medidor { display: inline-flex; align-items: center; gap: 9px; color: var(--texto-suave); font-size: var(--t-sm); font-variant-numeric: tabular-nums; }
.medidor-trilho { width: 72px; height: 6px; border-radius: 3px; background: rgba(230, 238, 249, .07); overflow: hidden; flex: none; }
.medidor-valor { display: block; height: 100%; border-radius: 3px; background: var(--brilho); }
.medidor-valor--baixo { background: var(--aviso); }
.medidor--grande { display: flex; }
.medidor--grande .medidor-trilho { flex: 1; width: auto; height: 10px; border-radius: 5px; }

/* formulários dentro de painéis */
.formulario-painel { display: grid; gap: 16px; }
.formulario-acoes { display: flex; justify-content: flex-end; gap: 8px; }
.opcoes-cartao--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.distribuicao { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.dist-item { display: grid; gap: 2px; padding: 12px; border-radius: var(--r-campo); border: 1px solid var(--linha); background: rgba(230, 238, 249, .02); }
.dist-item strong { color: var(--washi); font-size: calc(var(--t-base) * 1.4); font-weight: 500; font-variant-numeric: tabular-nums; }
.dist-item .secundario { font-size: var(--t-xs); }
.dist-tier { color: rgba(230, 238, 249, .6); font-size: var(--t-micro); letter-spacing: .14em; text-transform: uppercase; }
.dist-item--sem strong { color: var(--texto-suave); }

/* editores de sorteio e recompensas */
.editor-sorteio td, .editor-recompensas td { padding-block: 7px; }
.editor-sorteio td:first-child .campo__input { height: var(--controle-menor); padding: 0 10px; border: 1px solid var(--borda-campo); border-radius: var(--r-campo); background: var(--fundo-campo); min-width: 120px; }
.campo--pct, .campo--dias, .campo--estoque { display: inline-flex; align-items: center; height: var(--controle-menor); width: 92px; }
.campo--pct::after { content: "%"; color: var(--texto-apagado); padding-right: 10px; font-size: var(--t-sm); }
.campo--dias { width: 76px; }
.campo--estoque { width: 104px; }
.campo__input--num { text-align: right; padding: 0 8px; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.campo__input--num::-webkit-inner-spin-button { opacity: .4; }
.editor-sorteio tfoot th, .editor-sorteio tfoot td { position: static; height: auto; padding: 9px 14px; background: var(--superficie-2); border-top: 1px solid var(--linha); border-bottom: 0; color: var(--texto); font-size: var(--t-sm); letter-spacing: 0; text-transform: none; font-weight: 500; }
.editor-sorteio tfoot strong { color: var(--washi); font-weight: 600; }
.editor-rodape { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.editor-botoes { display: flex; gap: 8px; flex-wrap: wrap; }
.problemas { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; color: var(--texto); font-size: var(--t-sm); line-height: 1.5; }

/* resgates */
.consulta { display: flex; gap: 10px; align-items: stretch; max-width: 520px; }
.campo--consulta { flex: 1; }
.campo__input--codigo { font: 500 calc(var(--t-base) * 1.4)/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace !important; letter-spacing: .12em; text-transform: uppercase; }
.consulta-resultado:not(:empty) { margin-top: 16px; }
.voucher { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; padding: 18px; border-radius: var(--r-painel); border: 1px solid var(--linha-forte); background: var(--superficie-2); max-width: 720px; }
.voucher-corpo { display: grid; gap: 10px; min-width: 0; }
.voucher-topo { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.voucher-codigo { color: var(--washi); font: 500 calc(var(--t-base) * 1.6)/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .12em; }
.voucher-premio { color: var(--washi); font-size: calc(var(--t-base) * 1.25); font-weight: 600; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.voucher-tier { color: var(--brilho); font-size: var(--t-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.voucher-dados { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; font-size: var(--t-sm); }
.voucher-dados dt { color: var(--texto-suave); }
.voucher-dados dd { margin: 0; color: var(--washi); min-width: 0; overflow-wrap: anywhere; }
.voucher-baixa { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; padding-top: 14px; border-top: 1px solid var(--linha); }
.voucher--resgatado, .voucher--vencido, .voucher--cancelado { border-color: var(--linha); }

/* configurações */
.sessoes { list-style: none; padding: 0; display: grid; }
.sessoes li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--linha); }
.sessoes li:first-child { padding-top: 0; }
.sessoes li:last-child { border-bottom: 0; padding-bottom: 0; }
.sessoes li > div { display: grid; gap: 2px; min-width: 0; justify-items: start; }
.sessoes strong { color: var(--washi); font-weight: 500; }
.sessoes .secundario { font-size: var(--t-xs); }
.auditoria { list-style: none; padding: 0; display: grid; }
.auditoria li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--linha); }
.auditoria li:first-child { padding-top: 0; }
.auditoria li:last-child { border-bottom: 0; }
.auditoria-texto { display: grid; gap: 1px; min-width: 0; font-size: var(--t-sm); }
.auditoria-texto strong { color: var(--washi); font-weight: 500; }
.auditoria-texto .secundario { font-size: var(--t-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auditoria time { font-size: var(--t-xs); white-space: nowrap; }
.avatar--p { width: 26px; height: 26px; font-size: 10px; }
.permissoes { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; max-width: 220px; white-space: normal; }
.permissoes .nivel { min-width: 0; padding: 0 8px; }
.campo--link .campo__input { font: 400 var(--t-sm)/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.carregando-pagina--camada { padding: 40px 24px; }

/* tela de acesso: segunda etapa e criação de senha */
.caixa--etapa .instrucao { color: var(--washi); }
.campo--codigo .campo__input { text-align: center; font: 500 22px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .5em; padding-left: .5em; }
.etapa-cadastro { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: 20px; }
.etapa-qr { width: 132px; aspect-ratio: 1; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px var(--linha-forte), 0 10px 30px rgba(0, 0, 0, .35); }
.etapa-qr svg { display: block; width: 100%; height: 100%; }
.etapa-passos { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--texto); font-size: var(--t-xs); line-height: 1.5; }
.etapa-chave { list-style: none; margin-left: -18px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.etapa-chave code { font: 500 11.5px/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--washi); letter-spacing: .06em; word-break: break-all; }
.etapa-carregando { display: grid; justify-items: center; padding: 30px 0; }
.caixa--etapa .grupo + .grupo { margin-top: var(--auth-grupo, 18px); }

/* folha de impressão dos tickets (só aparece no papel) */
.impressao { display: none; }
@media print {
  @page { size: A4; margin: 10mm; }
  body > *:not(.impressao) { display: none !important; }
  html, body { background: #fff !important; }
  .impressao { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 4mm; color: #111; font-family: var(--fonte); }
  .impressao-ticket { break-inside: avoid; display: grid; justify-items: center; gap: 1mm; padding: 4mm 3mm; border: .3mm dashed #999; border-radius: 2mm; text-align: center; }
  .impressao-qr { width: 30mm; height: 30mm; }
  .impressao-qr svg { width: 100%; height: 100%; }
  .impressao-ticket strong { font-size: 9pt; font-weight: 600; }
  .impressao-ticket span { font-size: 8pt; }
  .impressao-ticket small { font-size: 6.5pt; color: #555; }
}

@container (max-width: 980px) { .tabela-campanhas .col-periodo, .tabela-recompensas .col-cmv, .tabela-recompensas .col-vouch { display: none; } }
@container (max-width: 820px) { .tabela-campanhas .col-resg, .tabela-lotes .col-oculta-movel, .tabela-vouchers .col-oculta-movel, .tabela-recompensas .col-camp, .tabela-recompensas .col-tipo { display: none; } }
@container (max-width: 640px) { .tabela-campanhas .col-part, .tabela-lotes .col-unidade { display: none; } }
@media (max-width: 1100px) { .grade-2 { grid-template-columns: minmax(0, 1fr); } }

@media (max-width: 760px) {
  .abrir-menu { display: inline-flex; }
  .acaobar-linha { gap: 10px; }
  .trilha { display: none; }
  .abas-linha { gap: 22px; }
  /* ação principal só com ícone em telas bem estreitas */
  .acaobar-acoes .botao:not(.botao--icone) { padding-inline: 14px; }

  .ferramentas { padding: 10px; }
  .ferramentas .segmentos { display: none; }
  .ferramentas-dir { flex: 1 1 auto; flex-wrap: wrap; }
  .ferramentas-dir .campo--com-icone { flex: 1 1 100%; }
  .ferramentas-dir .campo--select { flex: 1 1 calc(50% - 4px); }
  .so-movel { display: block; }
  .campo__input { font-size: 16px; }   /* evita o zoom automático do iOS */
  /* ações em massa só com ícone (o nome continua para leitores de tela e na dica) */
  .selecao { flex-wrap: nowrap; }
  .selecao-acoes .botao { width: var(--controle); padding: 0; }
  .selecao-acoes .botao-texto { display: none; }

  /* pessoas em lista: marcar, nome e ações em cima; papel e situação embaixo */
  .tabela-pessoas thead { display: none; }
  .tabela-pessoas tr {
    display: grid; grid-template-columns: auto auto auto minmax(0, 1fr) auto; align-items: center; column-gap: 8px;
    grid-template-areas: "marcar pessoa pessoa pessoa acoes" ". papel situacao . acoes";
    padding: 12px 0; border-bottom: 1px solid var(--linha);
  }
  .tabela-pessoas tbody tr:last-child { border-bottom: 0; }
  .tabela-pessoas td { padding: 0 12px; border: 0; }
  .tabela-pessoas td:first-child { box-shadow: none !important; }
  .tabela-pessoas .col-marcar { grid-area: marcar; width: auto; padding-right: 0; }
  .tabela-pessoas .col-pessoa { grid-area: pessoa; min-width: 0; padding-left: 0; }
  .tabela-pessoas .col-papel { grid-area: papel; padding: 6px 0 0 41px; font-size: var(--t-sm); }
  .tabela-pessoas .col-situacao { grid-area: situacao; padding: 6px 0 0; }
  .tabela-pessoas .acoes { grid-area: acoes; width: auto; }
  .tabela-pessoas .col-unidades, .tabela-pessoas .col-mfa, .tabela-pessoas .col-acesso { display: none; }
  .pessoa-nome { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .pessoa-email { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .paginacao { padding: 10px 12px; }
  .paginacao-rotulo { display: none; }

  .escolhas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .duas-colunas { grid-template-columns: minmax(0, 1fr); }
  .gaveta { border-left: 0; }
  .modal { width: 100vw; max-width: 100vw; margin: auto auto 0; border-radius: var(--r-painel) var(--r-painel) 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .camada-pe .botao { flex: 1; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .kpi { padding: 12px; }
  .faixa { flex-wrap: wrap; }
  .faixa-acoes { width: 100%; justify-content: flex-end; }
  .voucher { grid-template-columns: minmax(0, 1fr); }
  .voucher > .anel { display: none; }
  .voucher-baixa { grid-template-columns: minmax(0, 1fr); }
  .consulta { flex-direction: column; max-width: none; }
  .opcoes-cartao--2 { grid-template-columns: minmax(0, 1fr); }
  .etapa-cadastro { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .auditoria li { grid-template-columns: auto minmax(0, 1fr); }
  .auditoria time { grid-column: 2; }
  .secao-cabeca--linha { flex-wrap: wrap; }
  .toasts { left: 16px; right: 16px; align-items: stretch; }
  .toast { max-width: none; }
}
@media (max-width: 420px) {
  .acaobar-acoes .botao-texto { display: none; }
  .acaobar-acoes .botao:not(.botao--icone) { width: var(--controle); padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .anel__marca { stroke-dashoffset: 0; }   /* sem animação, a marca já aparece desenhada */
}
/* segunda etapa: o conteúdo entra rápido (a página já está aberta) */
.caixa--etapa :is(.instrucao, .rotulo, .campo--grande, .botao--grande, .etapa-cadastro) { animation: entra .4s var(--ease-saida) backwards; }
