/* =====================================================================
   TS ATLAS · estilo base (claro, limpo, inspirado no Material 3)
   ===================================================================== */
:root {
  --azul: #0b57d0;
  --azul-esc: #0842a0;
  --azul-c: #d3e3fd;
  --azul-cc: #e8f0fe;
  --fundo: #f8fafd;
  --sup: #ffffff;
  --sup2: #f0f4f9;
  --sup3: #e9eef6;
  --tx: #1f1f1f;
  --tx2: #444746;
  --tx3: #5e6368;
  --linha: #e1e3e1;
  --verde: #146c2e;
  --verde-c: #c4eed0;
  --amarelo: #7a5900;
  --amarelo-c: #ffefc2;
  --verm: #b3261e;
  --verm-c: #f9dedc;
  --cor-ag: #0b57d0;               /* cor da agência (prévia) */
  --raio: 16px;
  --raio-g: 28px;
  --sombra: 0 1px 2px rgba(60, 64, 67, .12), 0 1px 3px 1px rgba(60, 64, 67, .08);
  --sombra-g: 0 4px 8px 3px rgba(60, 64, 67, .12), 0 1px 3px rgba(60, 64, 67, .2);
  --fonte: "Google Sans Flex", "Google Sans", Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --lateral: 256px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--fonte); font-size: 14px; line-height: 1.45; color: var(--tx); background: var(--fundo); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--azul); }
svg.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
.sr { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--azul); outline-offset: 2px; }

/* ---------- carregando ---------- */
.boot { position: fixed; inset: 0; display: grid; place-items: center; background: var(--fundo); }
.boot .marca { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 600; color: var(--tx2); animation: pulsa 1.4s ease-in-out infinite; }
@keyframes pulsa { 50% { opacity: .45; } }

/* ---------- marca ---------- */
.selo { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--azul); color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .02em; flex: none; }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--tx); }
.marca b { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.marca small { display: block; font-size: 11px; color: var(--tx3); font-weight: 500; margin-top: -2px; }

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 20px; border-radius: 999px; border: 0; cursor: pointer; font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; transition: background .2s, box-shadow .2s, color .2s; }
.btn .ic { width: 18px; height: 18px; }
.btn-pri { background: var(--azul); color: #fff; }
.btn-pri:hover { background: var(--azul-esc); box-shadow: var(--sombra); }
.btn-ton { background: var(--azul-c); color: #041e49; }
.btn-ton:hover { box-shadow: var(--sombra); }
.btn-sec { background: transparent; color: var(--azul); border: 1px solid #747775; }
.btn-sec:hover { background: var(--azul-cc); }
.btn-txt { background: transparent; color: var(--azul); padding: 0 12px; }
.btn-txt:hover { background: var(--azul-cc); }
.btn-perigo { background: transparent; color: var(--verm); padding: 0 12px; }
.btn-perigo:hover { background: var(--verm-c); }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn-grande { min-height: 48px; padding: 0 24px; font-size: 15px; }
.btn-ic { width: 40px; height: 40px; padding: 0; border-radius: 50%; display: inline-grid; place-items: center; background: transparent; border: 0; cursor: pointer; color: var(--tx2); }
.btn-ic:hover { background: var(--sup3); }

/* ---------- formulários ---------- */
.campo { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.campo > span { font-size: 13px; font-weight: 600; color: var(--tx2); }
.campo small { color: var(--tx3); font-size: 12px; }
.inp, .sel, .txa { width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid #c4c7c5; border-radius: 12px; background: var(--sup); transition: border-color .15s, box-shadow .15s; }
.txa { min-height: 88px; resize: vertical; line-height: 1.5; }
.inp:hover, .sel:hover, .txa:hover { border-color: #747775; }
.inp:focus, .sel:focus, .txa:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 1px var(--azul); }
.inp:disabled, .sel:disabled, .txa:disabled { background: var(--sup2); color: var(--tx2); }
.grade-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.grade-form .inteiro { grid-column: 1 / -1; }
.chk { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; }
.chk input { width: 18px; height: 18px; accent-color: var(--azul); }

/* ---------- chips e etiquetas ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--sup3); color: var(--tx2); white-space: nowrap; }
.chip.azul { background: var(--azul-c); color: #041e49; }
.chip.verde { background: var(--verde-c); color: var(--verde); }
.chip.amarelo { background: var(--amarelo-c); color: var(--amarelo); }
.chip.verm { background: var(--verm-c); color: var(--verm); }

/* =====================================================================
   LOGIN
   ===================================================================== */
.entrar { min-height: 100%; display: grid; place-items: center; padding: 32px 16px; background:
  radial-gradient(1200px 500px at 10% -10%, #e8f0fe 0%, transparent 60%),
  radial-gradient(900px 500px at 110% 110%, #e6f4ea 0%, transparent 55%), var(--fundo); }
.entrar-card { width: min(440px, 100%); background: var(--sup); border-radius: var(--raio-g); padding: 40px 36px 32px; box-shadow: var(--sombra); }
.entrar-card h1 { font-size: 28px; font-weight: 500; letter-spacing: -.01em; margin: 28px 0 6px; }
.entrar-card > p { margin: 0 0 24px; color: var(--tx2); font-size: 15px; }
.entrar-card form { display: flex; flex-direction: column; gap: 16px; }
.entrar-card .btn-pri { width: 100%; }
.demo-aviso { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--linha); }
.demo-aviso h2 { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 0 0 6px; }
.demo-aviso p { margin: 0 0 14px; color: var(--tx2); font-size: 13px; }
.demo-users { display: grid; gap: 10px; }
.demo-user { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--linha); border-radius: var(--raio); background: var(--sup); cursor: pointer; text-align: left; transition: background .15s, border-color .15s; }
.demo-user:hover { background: var(--azul-cc); border-color: var(--azul-c); }
.demo-user b { display: block; font-weight: 600; }
.demo-user small { color: var(--tx3); }
.demo-user .chip { margin-left: auto; }
.entrar-ok { text-align: center; }
.entrar-ok .bola { width: 64px; height: 64px; margin: 8px auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--verde-c); color: var(--verde); }
.entrar-ok .bola .ic { width: 30px; height: 30px; }
.rodape-entrar { margin-top: 20px; text-align: center; color: var(--tx3); font-size: 12px; }

/* =====================================================================
   ESTRUTURA DO APP
   ===================================================================== */
.app { display: grid; grid-template-columns: var(--lateral) minmax(0, 1fr); min-height: 100%; }
.lateral { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 8px; padding: 12px 12px 16px; background: var(--fundo); overflow-y: auto; }
.lateral .marca { padding: 8px 12px 12px; }
.nova { align-self: flex-start; display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 22px 0 18px; margin: 4px 0 12px; border-radius: 16px; border: 0; background: #c2e7ff; color: #001d35; font-weight: 600; font-size: 14px; cursor: pointer; box-shadow: var(--sombra); text-decoration: none; transition: box-shadow .2s; }
.nova:hover { box-shadow: var(--sombra-g); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 16px; border-radius: 999px; color: var(--tx); text-decoration: none; font-weight: 500; }
.nav a:hover { background: var(--sup3); }
.nav a[aria-current="page"] { background: var(--azul-c); color: #041e49; font-weight: 700; }
.nav a .fase { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--tx3); }
.nav-tit { margin: 14px 16px 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tx3); }
.lateral .fim-lat { margin-top: auto; padding: 12px 16px 0; color: var(--tx3); font-size: 12px; }
.chip-demo { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; background: var(--amarelo-c); color: var(--amarelo); font-size: 12px; font-weight: 600; margin-bottom: 8px; }

.principal { min-width: 0; display: flex; flex-direction: column; padding: 8px 16px 16px 0; }
.topo { display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 4px; }
.menu-btn { display: none; }
.busca { flex: 1; max-width: 720px; display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 16px; border-radius: 999px; background: var(--sup3); color: var(--tx2); border: 0; cursor: text; text-align: left; transition: background .15s, box-shadow .15s; }
.busca:hover { background: #e1e7f0; }
.busca span { flex: 1; font-size: 15px; }
.busca kbd { font-family: var(--mono); font-size: 11px; padding: 2px 6px; border-radius: 6px; background: var(--sup); color: var(--tx3); }
.topo .dir { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.troca-ag { display: inline-flex; align-items: center; gap: 10px; height: 44px; max-width: 280px; padding: 0 12px 0 6px; border-radius: 999px; border: 1px solid var(--linha); background: var(--sup); cursor: pointer; }
.troca-ag:hover { background: var(--sup2); }
.troca-ag .nome { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.ag-logo { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; overflow: hidden; color: #fff; font-weight: 700; font-size: 12px; background: var(--cor-ag); }
.ag-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; background: #0f9d58; color: #fff; font-weight: 700; font-size: 14px; border: 0; cursor: pointer; }
.avatar.p { width: 32px; height: 32px; font-size: 13px; cursor: default; }

.palco { flex: 1; min-height: calc(100vh - 88px); background: var(--sup); border-radius: var(--raio-g); padding: 32px clamp(20px, 3vw, 40px) 48px; }
.cab { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.cab h1 { margin: 0; font-size: 28px; font-weight: 500; letter-spacing: -.01em; }
.cab p { margin: 6px 0 0; color: var(--tx2); }
.abas { display: flex; gap: 4px; border-bottom: 1px solid var(--linha); margin: -8px 0 28px; overflow-x: auto; scrollbar-width: none; }
.abas a { padding: 12px 16px; color: var(--tx2); text-decoration: none; font-weight: 600; border-bottom: 3px solid transparent; white-space: nowrap; }
.abas a[aria-current="page"] { color: var(--azul); border-color: var(--azul); }

/* ---------- cartões, listas, tabelas ---------- */
.cartao { background: var(--sup); border: 1px solid var(--linha); border-radius: var(--raio); padding: 20px; min-width: 0; }
.cartao h2 { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.cartao > p.sub { margin: 0 0 16px; color: var(--tx2); }
.cartao.cinza { background: var(--sup2); border-color: transparent; }
.grade-2 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.grade-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pilha { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.kpi { background: var(--sup2); border-radius: var(--raio); padding: 18px 20px; }
.kpi small { display: block; color: var(--tx2); font-weight: 500; }
.kpi b { display: block; font-size: 28px; font-weight: 500; margin-top: 4px; }

.tabela-env { position: relative; overflow-x: auto; border: 1px solid var(--linha); border-radius: var(--raio); }
table.tab { width: 100%; border-collapse: collapse; min-width: 560px; }
.tab th { text-align: left; font-size: 12px; font-weight: 600; color: var(--tx2); padding: 12px 16px; background: var(--sup2); border-bottom: 1px solid var(--linha); white-space: nowrap; }
.tab td { padding: 12px 16px; border-bottom: 1px solid var(--linha); vertical-align: middle; }
.tab tr:last-child td { border-bottom: 0; }
.tab tr:hover td { background: #fafbfd; }
.tab .acoes { text-align: right; white-space: nowrap; }
.pessoa { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pessoa b { display: block; font-weight: 600; }
.pessoa small { color: var(--tx3); }
.sel.mini { min-height: 36px; width: auto; padding: 6px 30px 6px 12px; border-radius: 10px; }
.vazio { text-align: center; padding: 40px 16px; color: var(--tx2); }
.vazio .ic { width: 40px; height: 40px; color: var(--tx3); margin-bottom: 8px; }

/* ---------- início ---------- */
.ola h1 { font-size: 32px; }
.passos { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.passo { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 12px; text-decoration: none; color: var(--tx); }
a.passo:hover { background: var(--sup2); }
.passo .bol { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; border: 2px solid #c4c7c5; color: transparent; }
.passo.ok .bol { background: var(--verde); border-color: var(--verde); color: #fff; }
.passo.ok .tx b { text-decoration: line-through; color: var(--tx2); }
.passo .tx { flex: 1; min-width: 0; }
.passo .tx b { display: block; font-weight: 600; }
.passo .tx small { color: var(--tx3); }
.barra { height: 8px; border-radius: 999px; background: var(--sup3); overflow: hidden; margin: 10px 0 16px; }
.barra i { display: block; height: 100%; border-radius: inherit; background: var(--verde); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.modulos { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.modulo { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: var(--raio); background: var(--sup2); text-decoration: none; color: var(--tx); transition: background .15s; }
.modulo:hover { background: var(--sup3); }
.modulo .ic { width: 24px; height: 24px; color: var(--azul); }
.modulo b { font-weight: 600; }
.modulo small { color: var(--tx2); }
.linha-tempo { list-style: none; margin: 0; padding: 0; }
.linha-tempo li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--linha); }
.linha-tempo li:last-child { border-bottom: 0; }
.linha-tempo .pt { width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--azul); flex: none; }
.linha-tempo small { display: block; color: var(--tx3); font-size: 12px; }

/* ---------- marca: prévia do PDF ---------- */
.previa { position: sticky; top: 16px; }
.folha { background: #fff; border-radius: 12px; box-shadow: var(--sombra-g); overflow: hidden; font-size: 12px; color: #202124; }
.folha-topo { display: flex; align-items: center; gap: 14px; padding: 20px 22px; border-bottom: 4px solid var(--cor-ag); }
.folha-logo { width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center; flex: none; overflow: hidden; background: var(--cor-ag); color: #fff; font-weight: 700; font-size: 18px; }
.folha-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.folha-topo b { display: block; font-size: 16px; }
.folha-topo small { color: #5f6368; display: block; }
.folha-corpo { padding: 18px 22px; }
.folha-corpo h4 { margin: 0 0 2px; font-size: 15px; }
.folha-corpo .meta { color: #5f6368; margin-bottom: 12px; }
.folha-item { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid #eee; }
.folha-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--cor-ag) 10%, #fff); color: var(--cor-ag); font-weight: 700; }
.folha-total b { font-size: 16px; }
.folha-cond { margin-top: 12px; color: #5f6368; font-size: 11px; white-space: pre-line; }
.folha-rod { padding: 10px 22px; background: #f8f9fa; color: #5f6368; font-size: 11px; white-space: pre-line; }
.folha-btn { display: inline-flex; margin-top: 14px; padding: 8px 14px; border-radius: 999px; background: var(--cor-ag); color: #fff; font-weight: 600; }
.logo-up { display: flex; align-items: center; gap: 16px; }
.logo-up .folha-logo { width: 64px; height: 64px; }
.cores { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cor-op { width: 32px; height: 32px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--linha); cursor: pointer; padding: 0; }
.cor-op[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--tx); }
.cor-livre { width: 44px; height: 32px; padding: 0; border: 1px solid var(--linha); border-radius: 8px; background: none; cursor: pointer; }
.barra-salvar { position: sticky; bottom: 16px; display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; padding: 12px; border-radius: var(--raio); background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); box-shadow: var(--sombra); }

/* ---------- módulo em breve ---------- */
.breve { max-width: 640px; margin: 24px auto; text-align: center; }
.breve .ic-g { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 24px; display: grid; place-items: center; background: var(--azul-cc); color: var(--azul); }
.breve .ic-g .ic { width: 34px; height: 34px; }
.breve h1 { font-size: 28px; font-weight: 500; margin: 12px 0 8px; }
.breve p { color: var(--tx2); font-size: 15px; }
.breve ul { text-align: left; display: inline-flex; flex-direction: column; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.breve li { display: flex; gap: 10px; align-items: flex-start; }
.breve li .ic { width: 18px; height: 18px; color: var(--verde); margin-top: 1px; }

/* ---------- janelas, menus, avisos ---------- */
dialog.jan { width: min(520px, calc(100vw - 32px)); border: 0; border-radius: var(--raio-g); padding: 0; box-shadow: var(--sombra-g); color: var(--tx); }
dialog.jan::backdrop { background: rgba(32, 33, 36, .4); }
.jan-c { padding: 24px; }
.jan h2 { margin: 0 0 6px; font-size: 22px; font-weight: 500; }
.jan p.sub { margin: 0 0 20px; color: var(--tx2); }
.jan form { display: flex; flex-direction: column; gap: 16px; }
.jan-acoes { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.menu-pop { position: fixed; z-index: 60; min-width: 260px; max-width: calc(100vw - 24px); max-height: 70vh; overflow-y: auto; padding: 8px 0; border-radius: var(--raio); background: var(--sup); box-shadow: var(--sombra-g); }
.menu-pop .tit { padding: 8px 16px 6px; font-size: 12px; color: var(--tx3); font-weight: 600; }
.menu-pop button, .menu-pop a { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 16px; border: 0; background: none; cursor: pointer; text-align: left; color: var(--tx); text-decoration: none; }
.menu-pop button:hover, .menu-pop a:hover { background: var(--sup2); }
.menu-pop .ativo { font-weight: 700; }
.menu-pop .ativo::after { content: "✓"; margin-left: auto; color: var(--azul); }
.menu-pop hr { border: 0; border-top: 1px solid var(--linha); margin: 6px 0; }
.menu-pop .eu { padding: 12px 16px; }
.menu-pop .eu b { display: block; }
.menu-pop .eu small { color: var(--tx3); }
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { padding: 14px 20px; border-radius: 8px; background: #303030; color: #f2f2f2; box-shadow: var(--sombra-g); font-weight: 500; animation: sobe .25s ease-out; }
.toast.erro { background: var(--verm); color: #fff; }
@keyframes sobe { from { transform: translateY(12px); opacity: 0; } }
.cmdk-lista { display: flex; flex-direction: column; margin-top: 12px; max-height: 50vh; overflow-y: auto; }
.cmdk-lista a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; color: var(--tx); text-decoration: none; }
.cmdk-lista a:hover, .cmdk-lista a.sel { background: var(--azul-cc); }
.cmdk-lista small { margin-left: auto; color: var(--tx3); }
.veu { display: none; }

/* =====================================================================
   RESPONSIVO
   ===================================================================== */
@media (max-width: 1100px) {
  .grade-2 { grid-template-columns: minmax(0, 1fr); }
  .previa { position: static; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .lateral { position: fixed; z-index: 50; left: 0; top: 0; width: min(300px, 86vw); background: var(--sup); box-shadow: var(--sombra-g); transform: translateX(-105%); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
  .lateral.aberta { transform: none; }
  .veu { display: block; position: fixed; inset: 0; z-index: 45; background: rgba(32, 33, 36, .4); opacity: 0; pointer-events: none; transition: opacity .25s; }
  .veu.on { opacity: 1; pointer-events: auto; }
  .principal { padding: 0; }
  .topo { padding: 0 8px; gap: 4px; }
  .menu-btn { display: inline-grid; }
  .busca { height: 44px; }
  .busca kbd { display: none; }
  .palco { border-radius: 24px 24px 0 0; padding: 24px 16px 40px; min-height: calc(100vh - 64px); }
  .grade-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .troca-ag .nome { display: none; }
  .troca-ag { padding: 0 6px; }
  .busca span { font-size: 14px; }
  .grade-form { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi b { font-size: 22px; }
  .cab h1, .ola h1 { font-size: 24px; }
  .entrar-card { padding: 32px 22px 24px; }
  .barra-salvar { bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.demo-user > span:nth-child(2) { min-width: 0; overflow-wrap: anywhere; }
.pilha > *, .grade-2 > * { min-width: 0; }
