:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
  font-synthesis: none;
  --fundo: #030914;
  --fundo-2: #06111e;
  --fundo-3: #09182a;
  --painel: rgba(8, 20, 36, .74);
  --painel-solido: #081727;
  --painel-claro: #0c2035;
  --borda: rgba(126, 169, 220, .14);
  --borda-forte: rgba(58, 167, 255, .42);
  --texto: #f4f8ff;
  --texto-2: #c8d6e8;
  --muted: #8295ad;
  --azul: #36b7ff;
  --azul-forte: #1787ff;
  --violeta: #7557ff;
  --ciano: #25e6d5;
  --verde: #52dda2;
  --amarelo: #ffc968;
  --vermelho: #ff6e8d;
  --gradiente: linear-gradient(135deg, #20b9ff 0%, #237bff 48%, #7758ff 100%);
  --gradiente-suave: linear-gradient(135deg, rgba(32,185,255,.18), rgba(119,88,255,.12));
  --sombra: 0 28px 80px rgba(0,0,0,.34);
  --sombra-azul: 0 20px 56px rgba(31,126,255,.18);
  --raio: 18px;
  --raio-grande: 26px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--fundo); }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--texto);
  background:
    radial-gradient(circle at 78% -10%, rgba(29,135,255,.16), transparent 32%),
    radial-gradient(circle at 110% 48%, rgba(117,87,255,.09), transparent 34%),
    linear-gradient(180deg, #030914 0%, #04101c 48%, #030914 100%);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .2;
  background-image:
    linear-gradient(rgba(91,150,214,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91,150,214,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}
button, input, textarea, select { font: inherit; }
button { color: inherit; }
a { color: inherit; }
.oculto { display: none !important; }
::selection { background: rgba(54,183,255,.3); color: #fff; }

.tela-carregamento {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 24px;
  background:
    radial-gradient(circle at 50% 36%, rgba(40,141,255,.18), transparent 28%),
    radial-gradient(circle at 50% 46%, rgba(117,87,255,.09), transparent 36%),
    #030914;
}
.tela-carregamento p { color: var(--muted); margin: 0; font-size: 13px; letter-spacing: .02em; }
.spinner { width: 38px; height: 38px; border: 3px solid rgba(54,183,255,.12); border-top-color: var(--azul); border-right-color: var(--violeta); border-radius: 50%; animation: girar .8s linear infinite; box-shadow: 0 0 28px rgba(54,183,255,.12); }
@keyframes girar { to { transform: rotate(360deg); } }
@keyframes entrar { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@keyframes flutuar { 50% { transform: translateY(-8px); } }

.marca { display: flex; align-items: center; gap: 12px; letter-spacing: -.025em; }
.marca > span:last-child { display: flex; flex-direction: column; line-height: 1.02; }
.marca strong { font-size: 20px; font-weight: 760; color: #fff; }
.marca small { color: #7187a1; font-size: 9px; text-transform: uppercase; letter-spacing: .22em; margin-top: 5px; font-weight: 700; }
.marca-simbolo {
  position: relative;
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(65,170,255,.32);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(26,137,255,.16), rgba(117,87,255,.12));
  box-shadow: inset 0 0 24px rgba(54,183,255,.08), 0 8px 24px rgba(20,116,255,.08);
  color: transparent;
  font-size: 0;
  overflow: hidden;
}
.marca-simbolo::before,
.marca-simbolo::after { content: ""; position: absolute; height: 5px; border-radius: 999px; transform: skewX(-34deg); }
.marca-simbolo::before { width: 22px; background: linear-gradient(90deg, var(--azul), #248bff); top: 13px; left: 10px; box-shadow: 0 10px 0 #535dff; }
.marca-simbolo::after { width: 14px; background: #7958ff; bottom: 9px; right: 8px; }
.marca-central { margin-bottom: 2px; }

.rotulo { color: #65caff; font-size: 10px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }

.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(430px,.9fr) 1.1fr;
  background: transparent;
}
.login-painel {
  padding: 44px clamp(34px,6vw,94px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid rgba(107,155,207,.12);
  background: linear-gradient(90deg, rgba(3,9,20,.97), rgba(4,13,24,.92));
  z-index: 2;
}
.login-conteudo { max-width: 600px; margin: auto 0; padding: 74px 0; }
.login h1 { font-size: clamp(42px,4.8vw,72px); line-height: .98; letter-spacing: -.055em; margin: 18px 0 26px; max-width: 760px; text-wrap: balance; }
.login h1::after {
  content: "";
  display: block;
  width: 112px;
  height: 3px;
  margin-top: 28px;
  border-radius: 99px;
  background: var(--gradiente);
  box-shadow: 0 0 28px rgba(54,183,255,.32);
}
.login p { color: #96a9c0; font-size: 16px; line-height: 1.75; max-width: 560px; }
.nota-seguranca { font-size: 11px !important; color: #6d829a !important; margin-top: 18px; display: flex; align-items: center; gap: 8px; }
.nota-seguranca::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--verde); box-shadow: 0 0 14px rgba(82,221,162,.55); }
.login-visual { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(145deg,#06111f,#071528 44%,#030914); }
.login-visual::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  border-radius: 50%;
  border: 1px solid rgba(56,175,255,.28);
  box-shadow:
    0 0 0 34px rgba(37,145,255,.025),
    0 0 0 72px rgba(84,98,255,.018),
    0 0 120px rgba(31,128,255,.22),
    inset 0 0 80px rgba(41,159,255,.08);
  z-index: 0;
}
.grade-visual { position: absolute; inset: 0; opacity: .38; background-image: linear-gradient(rgba(75,155,235,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(75,155,235,.09) 1px, transparent 1px); background-size: 52px 52px; mask-image: radial-gradient(circle at 50% 50%,#000,transparent 76%); }
.orb { position: absolute; border-radius: 999px; filter: blur(2px); pointer-events: none; }
.orb-a { width: 600px; height: 600px; right: -160px; top: -120px; background: radial-gradient(circle, rgba(29,137,255,.22), rgba(29,137,255,.025) 58%, transparent 70%); }
.orb-b { width: 460px; height: 460px; left: -130px; bottom: -120px; background: radial-gradient(circle, rgba(112,72,255,.16), transparent 69%); }
.painel-flutuante {
  position: absolute;
  z-index: 2;
  width: 310px;
  padding: 22px;
  border: 1px solid rgba(98,169,237,.22);
  border-radius: 17px;
  background: linear-gradient(150deg, rgba(9,25,43,.8), rgba(7,16,30,.62));
  backdrop-filter: blur(22px) saturate(120%);
  box-shadow: 0 26px 75px rgba(0,0,0,.28), inset 0 1px rgba(255,255,255,.035);
  display: flex;
  flex-direction: column;
  gap: 7px;
  animation: flutuar 7s ease-in-out infinite;
}
.painel-flutuante span { color: #58c6ff; font-size: 9px; font-weight: 800; letter-spacing: .18em; }
.painel-flutuante strong { font-size: 18px; letter-spacing: -.02em; }
.painel-flutuante small { color: var(--muted); }
.painel-a { right: 9%; top: 24%; transform: rotate(1deg); }
.painel-b { left: 10%; bottom: 20%; animation-delay: -3.4s; }

.botao {
  border: 1px solid var(--borda);
  border-radius: 11px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 700;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
  background: transparent;
}
.botao:hover:not(:disabled) { transform: translateY(-1px); border-color: var(--borda-forte); }
.botao:focus-visible, .nav-item:focus-visible, .link-botao:focus-visible { outline: 2px solid #53c1ff; outline-offset: 3px; }
.botao:disabled { opacity: .42; cursor: not-allowed; }
.botao.primario { color: #fff; background: var(--gradiente); border-color: transparent; box-shadow: 0 13px 34px rgba(35,126,255,.22), inset 0 1px rgba(255,255,255,.16); }
.botao.primario:hover:not(:disabled) { box-shadow: 0 17px 42px rgba(35,126,255,.3); filter: saturate(112%) brightness(1.04); }
.botao.grande { margin-top: 25px; padding: 14px 23px; min-width: 205px; }
.botao.fantasma { background: rgba(255,255,255,.025); color: #c8d6e7; }
.botao.perigo { border-color: rgba(255,110,141,.26); color: #ff91a7; background: rgba(255,110,141,.055); }
.botao.mini { padding: 7px 10px; font-size: 11px; border-radius: 9px; }
.largura-total { width: 100%; }
.link-botao { border: 0; background: transparent; color: #67c6ff; cursor: pointer; padding: 6px; font-weight: 700; font-size: 12px; }

.shell { min-height: 100vh; display: grid; grid-template-columns: 255px minmax(0,1fr); }
.barra-lateral {
  height: 100vh;
  position: sticky;
  top: 0;
  border-right: 1px solid rgba(112,158,208,.12);
  background: linear-gradient(180deg, rgba(4,12,23,.98), rgba(4,11,21,.93));
  backdrop-filter: blur(24px);
  padding: 26px 17px 19px;
  display: flex;
  flex-direction: column;
  z-index: 10;
}
.barra-lateral::after { content: ""; position: absolute; top: 0; right: -1px; width: 1px; height: 36%; background: linear-gradient(to bottom, transparent, rgba(54,183,255,.34), transparent); }
.marca-sidebar { padding: 2px 10px 31px; }
.navegacao { display: grid; gap: 7px; }
.nav-item { border: 1px solid transparent; border-radius: 11px; background: transparent; color: #7e92ab; padding: 11px 12px; display: flex; align-items: center; gap: 12px; cursor: pointer; text-align: left; font-weight: 650; transition: .18s ease; }
.nav-item:hover { color: #d1ddeb; background: rgba(255,255,255,.028); }
.nav-item.ativo { color: #f6fbff; border-color: rgba(59,172,255,.2); background: linear-gradient(90deg, rgba(27,137,255,.16), rgba(116,84,255,.07)); box-shadow: inset 3px 0 #32b9ff; }
.icone { color: #53c3ff; width: 20px; text-align: center; filter: drop-shadow(0 0 8px rgba(54,183,255,.34)); }
.sidebar-rodape { margin-top: auto; display: grid; gap: 14px; }
.status-seguranca { color: #6e8299; font-size: 10px; padding: 0 6px; display: flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .07em; }
.status-seguranca span { width: 7px; height: 7px; border-radius: 50%; background: var(--verde); box-shadow: 0 0 12px rgba(82,221,162,.6); }

.conteudo { min-width: 0; padding: 0 clamp(22px,4vw,64px) 64px; position: relative; }
.topo { min-height: 104px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(114,160,211,.11); margin-bottom: 38px; backdrop-filter: blur(18px); }
.topo h2 { margin: 5px 0 0; font-size: 26px; letter-spacing: -.035em; }
.breadcrumb { margin: 0; color: #61758c; font-size: 10px; letter-spacing: .11em; text-transform: uppercase; font-weight: 700; }
.usuario { display: flex; align-items: center; gap: 12px; text-align: right; padding: 7px 8px 7px 14px; border: 1px solid rgba(117,163,211,.1); border-radius: 13px; background: rgba(255,255,255,.018); }
.usuario > div { display: flex; flex-direction: column; gap: 3px; }
.usuario strong { font-size: 12px; }
.usuario small { color: var(--muted); font-size: 10px; }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; border: 1px solid rgba(72,174,255,.31); background: linear-gradient(145deg,#0b2238,#111c42); color: #a9ddff; font-size: 11px; font-weight: 800; box-shadow: inset 0 0 22px rgba(48,169,255,.08); }

.pagina { animation: entrar .24s ease-out; }
.cabecalho-pagina { margin-bottom: 25px; }
.cabecalho-pagina.linha { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.cabecalho-pagina h3 { margin: 7px 0 7px; font-size: 30px; letter-spacing: -.042em; }
.cabecalho-pagina p { margin: 0; color: var(--muted); font-size: 13px; }

.metricas { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; margin-bottom: 20px; }
.metrica, .cartao, .item-card, .detalhe-bloco {
  border: 1px solid var(--borda);
  background: linear-gradient(145deg, rgba(11,27,47,.78), rgba(6,17,31,.82));
  box-shadow: 0 17px 52px rgba(0,0,0,.16), inset 0 1px rgba(255,255,255,.025);
}
.metrica { position: relative; overflow: hidden; padding: 22px; border-radius: var(--raio); display: flex; flex-direction: column; gap: 6px; min-height: 148px; }
.metrica::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 2px; background: linear-gradient(90deg, rgba(42,184,255,.78), rgba(119,88,255,.35), transparent 72%); opacity: .7; }
.metrica > span { color: #90a4bb; font-size: 11px; }
.metrica strong { font-size: 38px; letter-spacing: -.05em; margin-top: 7px; background: linear-gradient(135deg,#fff,#9edbff); -webkit-background-clip: text; color: transparent; }
.metrica small { color: #617890; margin-top: auto; font-size: 10px; }
.grade-dashboard { display: grid; grid-template-columns: 1fr 1fr; gap: 19px; }
.cartao { border-radius: var(--raio); padding: 21px; min-height: 282px; }
.cartao-topo { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.cartao h4 { margin: 6px 0 0; font-size: 17px; letter-spacing: -.025em; }
.lista-compacta { display: grid; gap: 8px; }
.item-compacto { padding: 12px 13px; border: 1px solid rgba(141,178,218,.085); border-radius: 11px; background: linear-gradient(90deg,rgba(255,255,255,.02),rgba(54,183,255,.015)); display: flex; justify-content: space-between; align-items: center; gap: 16px; transition: .18s ease; }
.item-compacto:hover { border-color: rgba(54,183,255,.17); transform: translateX(2px); }
.item-compacto strong { font-size: 12px; }
.item-compacto span { color: var(--muted); font-size: 10px; }

.barra-filtros { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding: 12px; border: 1px solid rgba(115,160,209,.09); border-radius: 14px; background: rgba(255,255,255,.014); }
.busca { flex: 1; max-width: 470px; position: relative; }
.busca span { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #668199; }
input, textarea, select { width: 100%; border: 1px solid rgba(126,169,220,.16); border-radius: 10px; background: rgba(5,17,30,.88); color: var(--texto); padding: 11px 12px; outline: 0; transition: .15s; }
input::placeholder, textarea::placeholder { color: #536a83; }
input:focus, textarea:focus, select:focus { border-color: rgba(54,183,255,.5); box-shadow: 0 0 0 3px rgba(35,135,255,.09), 0 0 22px rgba(38,141,255,.07); }
.busca input { padding-left: 36px; }
textarea { resize: vertical; }
select { width: auto; min-width: 210px; }
.toggle { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.toggle input { width: 15px; height: 15px; accent-color: var(--azul-forte); }

.grade-cards { display: grid; grid-template-columns: repeat(3,minmax(260px,1fr)); gap: 15px; }
.item-card { position: relative; overflow: hidden; border-radius: var(--raio); padding: 20px; display: flex; flex-direction: column; gap: 14px; min-height: 207px; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.item-card::after { content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%; right: -66px; top: -72px; background: radial-gradient(circle,rgba(50,166,255,.12),transparent 70%); }
.item-card:hover { transform: translateY(-2px); border-color: rgba(54,183,255,.25); box-shadow: 0 22px 58px rgba(0,0,0,.22), 0 0 30px rgba(45,136,255,.05); }
.item-card-topo { display: flex; justify-content: space-between; gap: 12px; }
.item-card h4 { margin: 0 0 5px; font-size: 16px; letter-spacing: -.025em; }
.item-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.62; }
.item-card-acoes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }

.selo { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 5px 8px; border-radius: 999px; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; border: 1px solid var(--borda); color: #90a5bd; background: rgba(255,255,255,.018); font-weight: 750; }
.selo.ativo, .selo.connected, .selo.completed { color: #78e4b6; border-color: rgba(82,221,162,.23); background: rgba(82,221,162,.055); }
.selo.arquivado, .selo.revoked, .selo.failed, .selo.invalid { color: #ff91aa; border-color: rgba(255,110,141,.24); background: rgba(255,110,141,.055); }
.selo.pending, .selo.running, .selo.partial { color: #ffd783; border-color: rgba(255,201,104,.22); background: rgba(255,201,104,.055); }
.selo.unconfigured, .selo.not_started, .selo.unknown { color: #9daec1; }

.tabela-responsiva { border: 1px solid var(--borda); border-radius: var(--raio); overflow: hidden; background: rgba(5,15,27,.55); }
.tabela { width: 100%; border-collapse: collapse; }
.tabela th { text-align: left; padding: 13px 15px; color: #698098; font-size: 9px; text-transform: uppercase; letter-spacing: .11em; border-bottom: 1px solid var(--borda); background: rgba(255,255,255,.018); }
.tabela td { padding: 15px; border-bottom: 1px solid rgba(126,169,220,.075); color: #aebed0; font-size: 11px; vertical-align: middle; }
.tabela tbody tr { transition: background .15s ease; }
.tabela tbody tr:hover { background: rgba(42,139,255,.035); }
.tabela tr:last-child td { border-bottom: 0; }
.tabela td strong { display: block; color: #eef6ff; font-size: 12px; }
.tabela td small { display: block; margin-top: 4px; color: #667d94; }
.acoes-tabela { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 7px; }
.vazio { min-height: 155px; display: grid; place-content: center; justify-items: center; gap: 8px; color: #687f98; text-align: center; font-size: 11px; border: 1px dashed rgba(116,161,210,.13); border-radius: 13px; }
.vazio strong { color: #a7b8ca; font-size: 13px; }

.alerta { margin: -12px 0 22px; padding: 12px 15px; border-radius: 11px; color: #ffb2c0; background: rgba(255,110,141,.075); border: 1px solid rgba(255,110,141,.2); font-size: 12px; }
.toast { position: fixed; z-index: 100; right: 24px; bottom: 24px; max-width: 420px; padding: 13px 16px; border-radius: 12px; background: rgba(8,25,42,.94); border: 1px solid rgba(74,185,255,.28); color: #dcefff; box-shadow: var(--sombra), 0 0 30px rgba(38,143,255,.09); backdrop-filter: blur(18px); font-size: 12px; }

.modal { border: 1px solid rgba(111,166,220,.2); border-radius: 20px; padding: 0; width: min(720px,calc(100vw - 32px)); background: linear-gradient(145deg,#081827,#06111f); color: var(--texto); box-shadow: 0 38px 120px rgba(0,0,0,.58), 0 0 80px rgba(35,126,255,.08); }
.modal::backdrop { background: rgba(0,4,11,.76); backdrop-filter: blur(8px); }
.modal > form, .modal > div { padding: 24px; }
.modal-grande { width: min(980px,calc(100vw - 32px)); }
.modal-topo { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 17px; border-bottom: 1px solid rgba(121,165,213,.1); }
.modal-topo h3 { margin: 6px 0 0; font-size: 22px; letter-spacing: -.035em; }
.fechar { width: 35px; height: 35px; border: 1px solid var(--borda); border-radius: 10px; background: rgba(255,255,255,.025); color: #8fa3ba; cursor: pointer; font-size: 21px; line-height: 1; }
.campos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 21px 0; }
.campos label { display: grid; gap: 7px; color: #93a6bb; font-size: 11px; }
.campos label > span { font-weight: 650; color: #afbed0; }
.campos label small { color: #60758c; font-size: 9px; }
.campo-largo { grid-column: 1/-1; }
.escolha-plataforma { grid-template-columns: auto 1fr !important; align-items: start; padding: 13px; border: 1px solid var(--borda); border-radius: 12px; background: rgba(255,255,255,.018); }
.escolha-plataforma input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--azul-forte); }
.escolha-plataforma span { display: grid; gap: 4px; }
.modal-acoes { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 9px; padding-top: 17px; border-top: 1px solid rgba(121,165,213,.1); }
.detalhe-grade { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; padding: 20px 0; }
.detalhe-bloco { border-radius: 15px; padding: 18px; }
.detalhe-bloco h4 { margin: 0 0 16px; font-size: 15px; }
.detalhe-bloco p { color: var(--muted); font-size: 11px; line-height: 1.65; }
.detalhe-lista { display: grid; gap: 0; }
.detalhe-lista > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid rgba(123,166,212,.08); }
.detalhe-lista > div:last-child { border-bottom: 0; }
.detalhe-lista span { color: #71869d; font-size: 10px; }
.detalhe-lista strong { color: #dce8f5; font-size: 10px; text-align: right; }
.conexao-acoes { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }

@media (max-width: 1120px) {
  .grade-cards { grid-template-columns: repeat(2,minmax(240px,1fr)); }
  .login { grid-template-columns: 1fr 1fr; }
  .login-painel { padding-left: 42px; padding-right: 42px; }
}
@media (max-width: 900px) {
  .login { display: block; }
  .login-painel { min-height: 100vh; border-right: 0; padding: 30px; }
  .login-visual { display: none; }
  .shell { grid-template-columns: 82px minmax(0,1fr); }
  .barra-lateral { padding: 20px 11px; }
  .marca-sidebar { justify-content: center; padding: 0 0 26px; }
  .marca-sidebar > span:last-child, .nav-item span:last-child, .sidebar-rodape .status-seguranca { display: none; }
  .nav-item { justify-content: center; padding: 12px 8px; }
  .icone { width: auto; }
  .conteudo { padding-left: 24px; padding-right: 24px; }
  .metricas { grid-template-columns: 1fr; }
  .grade-dashboard, .detalhe-grade { grid-template-columns: 1fr; }
  .topo { margin-bottom: 30px; }
}
@media (max-width: 680px) {
  .shell { display: block; }
  .barra-lateral { height: auto; position: sticky; top: 0; flex-direction: row; align-items: center; gap: 9px; padding: 10px 13px; border-right: 0; border-bottom: 1px solid var(--borda); }
  .marca-sidebar { padding: 0; margin-right: auto; }
  .marca-sidebar .marca-simbolo { width: 37px; height: 37px; }
  .navegacao { display: flex; gap: 4px; }
  .sidebar-rodape { margin: 0; }
  .sidebar-rodape .botao { padding: 8px 10px; font-size: 0; }
  .sidebar-rodape .botao::after { content: "↗"; font-size: 14px; }
  .conteudo { padding: 0 15px 40px; }
  .topo { min-height: 82px; margin-bottom: 24px; }
  .topo h2 { font-size: 21px; }
  .usuario > div { display: none; }
  .cabecalho-pagina.linha { align-items: flex-start; flex-direction: column; }
  .cabecalho-pagina h3 { font-size: 26px; }
  .metricas, .grade-cards { grid-template-columns: 1fr; }
  .barra-filtros { align-items: stretch; flex-direction: column; }
  .busca { max-width: none; }
  select { width: 100%; }
  .tabela-responsiva { overflow-x: auto; }
  .tabela { min-width: 790px; }
  .campos { grid-template-columns: 1fr; }
  .campo-largo { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
