:root {
  --bg: #e7f1f8;
  --bg-2: #f4f9fc;
  --ink: #16324a;
  --muted: #5d7c93;
  --line: #d3e4f0;
  --white: #ffffff;
  --primary: #1565a8;
  --primary-dark: #0c4474;
  --primary-deep: #083253;
  --accent: #3aa0dc;
  --soft: #e8f4fc;
  --soft-2: #d7ebf8;
  --good: #1c7a4a;
  --good-bg: #e5f6ec;
  --warn: #9a6208;
  --warn-bg: #fff4df;
  --bad: #b1332a;
  --bad-bg: #fdecea;
  --shadow: 0 12px 30px rgba(16, 62, 102, 0.08);
  --radius: 28px;
  --nav-h: 92px;
  --fonte: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --fonte-titulo: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--fonte);
  color: #1c2833;
  background: #f6f6f6;
  font-size: 15px;
  line-height: 1.45;
  font-synthesis: none;
}
h1, h2, h3 {
  font-family: var(--fonte-titulo);
  font-weight: 600;
  letter-spacing: -0.015em;
}
img { max-width: 100%; }
a { color: var(--primary-dark); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #8ebfe0; outline-offset: 2px; }

.flashes {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  gap: 8px;
  padding: 10px 16px 0;
}
.flash {
  margin: 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow);
  font-weight: 700;
}
[data-aviso-arquivo] { margin: 0 0 12px; }
.flash.sucesso { background: var(--good-bg); color: var(--good); }
.flash.erro { background: var(--bad-bg); color: var(--bad); }
.flash.aviso { background: var(--warn-bg); color: var(--warn); }

.app { width: min(1120px, calc(100% - 16px)); max-width: 100%; margin: 0 auto; }
.miolo { min-width: 0; padding: 8px 16px calc(var(--nav-h) + 20px); }
.sidebar { display: none; }
.marcas-instituicao {
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  width: 100%; margin: 0 0 4px; padding: 0 0 16px; background: #fff;
  border-bottom: 1px solid #d5dee6;
}
.marcas-instituicao img {
  height: auto; display: block; margin: 0; max-width: 100%;
  border: 0; box-shadow: none; background: transparent; object-fit: contain;
}
.marcas-instituicao .brasao-menu { width: min(170px, 100%); }
.marcas-instituicao .wordmark { width: min(190px, 100%); }

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 2px 8px;
}
.ola { margin: 0; color: var(--muted); font-size: 13px; font-weight: 500; }
.topbar h1 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.subtitulo { margin: 2px 0 0; color: var(--muted); font-size: 13px; font-weight: 400; }
.curso-saudacao { margin-top: 2em; font-weight: 700; color: #1c2833; }
.validacao-doc { margin-top: 22px; }
.validacao-doc h2 { margin: 0 0 12px; font-size: 16px; }
.texto-ajuda h2 {
  margin: 18px 0 6px; font-family: var(--fonte-titulo);
  font-size: 16px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3;
}
.texto-ajuda h2:first-child { margin-top: 0; }
.texto-ajuda p {
  margin: 0; font-family: var(--fonte); font-size: 15px; font-weight: 400;
  line-height: 1.45; color: #1c2833; white-space: pre-wrap;
}
.texto-validacao { margin: 12px 0 0; font-weight: 600; line-height: 1.5; }
.topbar h1.centro-titulo { font-size: 17px; font-weight: 600; margin: 0; text-align: center; flex: 1; line-height: 1.25; padding-top: 8px; }
.topbar h1.centro-titulo.nome-aluno {
  font-size: 26px; font-weight: 800; color: var(--primary-deep);
  letter-spacing: -0.03em; line-height: 1.15; padding-top: 6px;
}
.top-acoes { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.hero-atalhos h2 { margin: 0 0 12px; font-size: 16px; font-weight: 600; }
.hero-atalhos .atalhos { min-width: 0; }
.hero-atalhos .trilho { margin: 0; padding-bottom: 2px; }
.avatar, .icone-btn {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white); color: var(--primary-dark);
  text-decoration: none; border: 0; box-shadow: var(--shadow);
  font-weight: 800; position: relative;
}
.avatar { background: var(--primary-deep); color: white; }
.selo-num {
  position: absolute; top: -2px; right: -2px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 99px; background: var(--bad); color: white;
  font-size: 11px; display: grid; place-items: center;
}
.avisos-caixa { position: relative; }
.painel-avisos {
  display: none; position: absolute; right: 0; top: 54px; width: min(320px, 80vw);
  background: white; border-radius: 20px; box-shadow: var(--shadow); padding: 12px; z-index: 5;
}
.avisos-caixa.aberto .painel-avisos { display: grid; gap: 8px; }
.painel-avisos p { margin: 0; }
.painel-avisos small { color: var(--muted); }

.busca {
  display: flex; align-items: center; gap: 8px;
  background: white; border-radius: 18px; padding: 4px 8px 4px 14px;
  box-shadow: var(--shadow); margin: 8px 0 16px;
}
.busca input { border: 0; min-height: 46px; width: 100%; background: transparent; }
.busca button { border: 0; background: var(--soft); color: var(--primary-dark); border-radius: 14px; min-height: 42px; padding: 0 12px; font-weight: 800; }

.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center;
  background: linear-gradient(145deg, #f7fbfe 0%, #e7f4fc 48%, #d5eaf8 100%);
  border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow); position: relative; overflow: hidden; min-height: 0; max-width: 100%;
}
.hero::after {
  content: ""; position: absolute; width: 160px; height: 160px; border-radius: 50%;
  border: 1px dashed rgba(21, 101, 168, .25); right: 18px; top: 12px;
}
.sobretitulo { margin: 0 0 4px; letter-spacing: .08em; font-size: 11px; font-weight: 600; color: var(--primary); }
.cabeca-questao { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 8px; }
.cabeca-questao h2, .cabeca-questao .chip { margin: 0; }
.passo-destaque {
  display: inline-flex; align-items: center; justify-content: center;
  margin: 0 0 12px; padding: 12px 22px; min-height: 48px;
  border-radius: 16px; background: var(--primary-deep); color: #fff;
  font-size: 20px; font-weight: 700; letter-spacing: 0.01em; line-height: 1.2;
}
.hero h2 { margin: 0 0 6px; font-size: 20px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
.festa { font-size: 22px; line-height: 1; margin-left: 4px; vertical-align: -2px; }
.hero p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.hero p.passo-destaque { margin: 0 0 12px; color: #fff; font-size: 20px; }
.marca-logo, .logo-orbita {
  width: min(136px, 34vw); height: auto; aspect-ratio: 1; border-radius: 50%; justify-self: end;
  background: radial-gradient(circle at 40% 30%, #fff, #e7f3fb 70%);
  display: grid; place-items: center; position: relative; z-index: 1;
  box-shadow: 0 10px 24px rgba(12, 68, 116, .12); border: 6px solid rgba(255,255,255,.85);
}
.marca-logo img, .logo-orbita img { width: 78%; height: 78%; object-fit: contain; }

.secao { display: flex; justify-content: space-between; align-items: baseline; margin: 22px 2px 10px; }
.secao h2 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.secao h2.titulo-longo { flex: 1; min-width: 0; line-height: 1.45; font-weight: 700; }
.secao a { font-weight: 600; font-size: 14px; text-decoration: none; }
.secao-sanfona { align-items: center; }
.secao-sanfona.so-botao { justify-content: flex-end; }
.btn-sanfona-tudo {
  border: 1.5px solid var(--primary-deep); background: white; color: var(--primary-deep);
  border-radius: 999px; font: inherit; font-size: 12px; font-weight: 700;
  min-height: 30px; padding: 4px 12px; cursor: pointer; white-space: nowrap;
}
.btn-sanfona-tudo:hover { background: var(--primary-deep); color: white; }

.acoes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; }
.acoes a { text-decoration: none; color: var(--ink); font-size: 13px; font-weight: 800; }
.bolha {
  width: 72px; height: 72px; margin: 0 auto 8px; border-radius: 22px; background: white;
  display: grid; place-items: center; box-shadow: var(--shadow); color: var(--primary);
  font-size: 36px; line-height: 1; font-weight: 700;
}

.cartao {
  background: white; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
}
.miolo-perfil .topbar {
  align-items: center; margin: 0; min-height: 0;
  padding: 16px 18px 0; background: white;
  border-radius: 28px 28px 0 0; position: relative; z-index: 2;
}
.miolo-perfil .topbar h1.nome-aluno {
  display: block; flex: 1; margin: 0; padding: 8px 0 10px;
  text-align: left; text-transform: uppercase;
  font-size: 16px; font-weight: 800; line-height: 1.3;
  color: var(--primary-deep);
}
.miolo-perfil .ficha-aluno {
  margin-top: -12px; padding-top: 30px; border-radius: 0 0 28px 28px;
  box-shadow: var(--shadow); position: relative; z-index: 1;
}
.ficha-aluno { display: grid; gap: 14px; font-size: 16px; color: var(--primary-deep); }
.perfil-curso { margin: 0; font-size: 16px; font-weight: 650; }
.perfil-curso strong { font-weight: 800; }
.perfil-identidade {
  display: grid; gap: 12px; align-items: end;
  grid-template-columns: minmax(0, 1fr) auto;
}
.perfil-turma, .perfil-nome { margin: 0; min-width: 0; }
.perfil-turma p, .perfil-nome label, .perfil-cpf span,
.perfil-sappes .ficha-legenda, .ficha-aluno-dados dt, .ficha-aluno-local p {
  display: block; margin: 0 0 6px; font-size: 13px; font-weight: 700;
  letter-spacing: .02em; text-transform: none; color: var(--primary-dark);
}
.ficha-aluno-dados dt, .ficha-aluno-local p { text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.perfil-turma-linha, .perfil-nome-linha { display: flex; gap: 8px; align-items: center; }
.perfil-turma select, .perfil-nome input {
  flex: 1; width: 100%; min-width: 0; height: 44px; min-height: 44px;
  border-radius: 16px; border: 1.5px solid #c5d9e8; padding: 8px 14px;
  background: white; font-size: 16px; font-weight: 650; color: var(--primary-deep);
}
.perfil-cpf { display: grid; justify-items: end; align-content: end; }
.perfil-cpf strong {
  display: flex; align-items: center; height: 44px;
  font-size: 16px; font-weight: 800; letter-spacing: 0.01em;
}
.perfil-sappes p { margin: 0; }
.perfil-sappes p:first-child { font-size: 13px; font-weight: 700; color: var(--primary-dark); margin-bottom: 4px; }
.perfil-passo { font-size: 16px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.ficha-aluno-dados {
  display: grid; grid-template-columns: 1.3fr 1fr 0.9fr; gap: 8px; margin: 0; align-items: stretch;
}
.ficha-aluno-dados > div, .ficha-aluno-local {
  background: var(--bg-2); border-radius: 14px; padding: 12px 14px; min-width: 0;
}
.ficha-aluno-dados > div { display: flex; flex-direction: column; justify-content: flex-end; }
.caixa-situacao dd, .ficha-aluno-dados dd, .ficha-aluno-local strong {
  margin: 0; font-size: 16px; font-weight: 700; line-height: 1.35; color: var(--primary-deep);
}
.local-ficha { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.local-ficha strong { flex: 1; }
.local-ficha form { margin: 0; }
.ficha-aluno .justificativa { margin: 0; font-size: 16px; }
.ficha-aluno-rodape {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 16px; align-items: end;
  border-top: 1px solid var(--line); padding-top: 14px;
}
.perfil-nome { display: grid; }
.perfil-nome-linha { min-height: 44px; }
.ficha-aluno-comandos {
  display: flex; align-items: center; justify-content: flex-end;
  height: 44px; margin: 0;
}
.ficha-aluno .btn { width: auto; height: 44px; min-height: 44px; padding: 0 16px; font-size: 16px; }
.btn-texto {
  display: inline-flex; align-items: center; height: 44px;
  border: 0; background: transparent; color: var(--primary);
  font: inherit; font-size: 16px; font-weight: 700;
  cursor: pointer; padding: 0; white-space: nowrap;
}
.btn-texto:hover { text-decoration: underline; }
@media (max-width: 700px) {
  .perfil-identidade, .ficha-aluno-rodape, .ficha-aluno-dados { grid-template-columns: 1fr; }
  .perfil-cpf, .ficha-aluno-comandos { justify-items: start; justify-content: flex-start; }
}
.cartao + .cartao, .lista { margin-top: 12px; }
.ficha-equipe {
  display: grid; gap: 10px; align-items: center; padding: 12px 14px;
}
.ficha-equipe p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.ficha-acoes { display: flex; flex-wrap: wrap; gap: 4mm; }
.ficha-acoes form { margin: 0; }
.ficha-acoes .btn { min-height: 40px; padding: 0 14px; font-weight: 650; }
.vincular-turma { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin: 4px 0 0; }
.vincular-turma .campo { flex: 1 1 180px; margin: 0; }
.vincular-turma .btn { min-height: 48px; }
@media (min-width: 720px) {
  .ficha-equipe { grid-template-columns: minmax(0, 1fr) auto; }
  .ficha-acoes { justify-content: flex-end; }
}
.percurso-resumo { display: grid; grid-template-columns: 132px 1fr; gap: 12px; align-items: center; }
.percurso-feito { margin: 0 0 4px; font-size: 15px; font-weight: 400; line-height: 1.45; color: #1c2833; }
.percurso-feito strong { font-weight: 700; }
.anel { width: 124px; height: 124px; }
.anel circle { fill: none; stroke-width: 10; }
.trilho-anel { stroke: #e3eef6; }
.valor-anel { stroke: var(--primary); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 60px 60px; }
.anel text { font-size: 22px; font-weight: 800; fill: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip, .etiqueta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--soft); color: var(--primary-dark); border-radius: 999px;
  padding: 4px 10px; font-size: 13px; font-weight: 800;
}
.chip.concluido { background: #0b5c38; color: white; }
.etiqueta.espera { background: var(--warn-bg); color: var(--warn); }
.etiqueta.feito { background: var(--good-bg); color: var(--good); }
.etiqueta.agora { background: var(--soft-2); color: var(--primary-deep); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 20px; border-radius: 999px; border: 0;
  font-weight: 800; text-decoration: none; cursor: pointer;
}
.btn-primario { background: var(--primary-deep); color: white; }
.btn-conclusao {
  display: flex; white-space: normal; text-align: center; line-height: 1.35;
  height: auto; min-height: 72px; padding: 16px 22px;
}
.btn:disabled {
  background: #c5ced6; color: #5e6e7a; cursor: not-allowed;
}
.btn-hero { min-height: 40px; padding: 0 16px; font-size: 14px; font-weight: 700; }
.btn-secundario { background: var(--soft); color: var(--primary-deep); }
.btn-perigo { background: var(--bad); color: white; }
.btn-bloco { width: 100%; }
.acao-solta { margin: 16px 0; }
.afastado { margin-top: 24px; }
.btn-linha { background: white; color: var(--primary-deep); border: 1.5px solid var(--line); }

.campo { display: grid; gap: 6px; margin: 0 0 14px; font-weight: 800; }
.campo span, .campo legend { font-size: 15px; }
.campo input, .campo select, .campo textarea {
  width: 100%; min-height: 52px; border-radius: 16px; border: 1.5px solid #c5d9e8;
  padding: 12px 14px; background: white; font-weight: 600;
}
.campo textarea { min-height: 120px; resize: vertical; }
.grade-endereco { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.grade-endereco .campo { min-width: 0; }
.grade-endereco .campo-largo { grid-column: 1 / -1; }
.campo input[readonly] { background: #f4f8fb; color: var(--muted); }
.apoio-arquivo { margin: 0 0 8px; color: var(--muted); font-weight: 600; }
.aviso-cep { margin: -4px 0 14px; font-weight: 700; color: var(--bad); }
.aviso-cep:empty { display: none; }
.aviso-cep.ok { color: var(--good); }
.com-olho { position: relative; display: block; }
.com-olho input { padding-right: 48px; }
.olho {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border: 0; border-radius: 12px; padding: 0;
  background: transparent; color: #5d7c93; cursor: pointer;
  display: grid; place-items: center;
}
.olho:hover { color: var(--primary-dark); background: var(--soft); }
.olho .riscado { display: none; }
.olho.aberto .limpo { display: none; }
.olho.aberto .riscado { display: block; }
.filtro-curso { max-width: 560px; margin-top: 18px; }
.limpar-busca { margin: -6px 0 14px; }
.limpar-busca a { font-weight: 700; }
.menu-redondo { position: relative; font-weight: 600; }
.menu-redondo summary {
  list-style: none; cursor: pointer; position: relative;
  min-height: 52px; border-radius: 16px; border: 1.5px solid #c5d9e8;
  background: white; padding: 14px 42px 14px 16px;
}
.menu-redondo summary::-webkit-details-marker { display: none; }
.menu-redondo summary::marker { content: ""; }
.menu-redondo summary::after {
  content: ""; position: absolute; right: 18px; top: 20px;
  width: 8px; height: 8px; border-right: 2px solid #5d7c93; border-bottom: 2px solid #5d7c93;
  transform: rotate(45deg);
}
.menu-redondo[open] { z-index: 8; }
.menu-redondo[open] summary::after { transform: rotate(225deg); top: 24px; }
.menu-redondo-lista {
  position: absolute; z-index: 6; left: 0; right: 0; top: calc(100% + 8px);
  background: white; border-radius: 18px; padding: 8px;
  box-shadow: 0 16px 40px rgba(16, 62, 102, 0.16);
  display: grid; gap: 4px; max-height: 280px; overflow: auto;
}
.menu-redondo-lista a,
.menu-redondo-lista button {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  width: 100%; text-align: left; font: inherit; font-weight: 600;
  text-decoration: none; color: inherit; background: transparent; border: 0; cursor: pointer;
  border-radius: 12px; padding: 12px 14px;
}
.menu-redondo-lista a:hover,
.menu-redondo-lista button:hover { background: var(--soft); color: var(--primary-deep); }
.menu-redondo-lista a.marcado,
.menu-redondo-lista a.marcado:hover,
.menu-redondo-lista button.marcado,
.menu-redondo-lista button.marcado:hover { background: var(--primary); color: white; }
.menu-redondo.travado { pointer-events: none; }
.menu-redondo.travado summary { background: #f4f8fb; color: var(--muted); }
.select-nativo {
  position: absolute !important; width: 1px !important; height: 1px !important;
  min-height: 0 !important; padding: 0 !important; margin: -1px !important;
  overflow: hidden !important; clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important; border: 0 !important;
}
.sinal-aviso { display: inline-flex; color: var(--warn); flex: 0 0 auto; }
.sinal-aviso svg { width: 18px; height: 18px; display: block; }
.menu-redondo summary.resumo-aviso { display: flex; align-items: center; gap: 8px; }
.rotulo-passo {
  display: inline-flex; align-items: center; gap: 8px; min-width: 0;
}
.menu-redondo-lista a.marcado .sinal-aviso,
.menu-redondo-lista a.marcado:hover .sinal-aviso { color: #fff4df; }
.menu-redondo-lista a small { color: var(--muted); font-weight: 700; }
.menu-redondo-lista a.marcado small,
.menu-redondo-lista a.marcado:hover small { color: #d7e6f3; }
.indice { margin: 6px 0 14px; }
.indice p { margin: 10px 0 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.letras { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; }
.letras a {
  min-width: 28px; height: 28px; padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; color: var(--primary-dark); font-weight: 700; font-size: 13px;
  border-radius: 8px;
}
.letras a.ativo { background: var(--primary); color: white; }
.letras a:hover { background: var(--soft); }
.letras a.ativo:hover { background: var(--primary-dark); color: white; }
.rodape-lista { display: grid; justify-items: center; gap: 12px; margin-top: 18px; }
.tamanhos { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; align-items: center; }
.tamanhos span { color: var(--muted); font-weight: 700; margin-right: 4px; }
.tamanhos a {
  min-height: 32px; padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; border-radius: 8px; font-weight: 700; color: var(--primary);
}
.tamanhos a.ativo { background: var(--primary); color: white; }
.paginacao { display: flex; justify-content: center; gap: 4px; margin: 0; flex-wrap: wrap; }
.paginacao a, .paginacao span {
  min-width: 32px; height: 32px; padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; border-radius: 8px; font-weight: 700; color: var(--primary-dark);
}
.paginacao a.ativo, .paginacao span.ativo { background: var(--primary); color: white; }
.paginacao .reticencias { min-width: 16px; color: var(--muted); }
.tabela-rolagem { overflow-x: auto; background: white; border-radius: 22px; box-shadow: var(--shadow); }
.tabela-estudantes { width: 100%; border-collapse: collapse; min-width: 860px; table-layout: fixed; }
.tabela-estudantes th {
  text-align: left; font-size: 13px; color: var(--muted); font-weight: 700;
  padding: 14px 12px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.tabela-estudantes td { padding: 12px; border-bottom: 1px solid #eef4f8; vertical-align: middle; }
.tabela-estudantes th:nth-child(1),
.tabela-estudantes td:nth-child(1) { width: 24%; }
.tabela-estudantes th:nth-child(2),
.tabela-estudantes td:nth-child(2) { width: 28%; }
.tabela-estudantes th:nth-child(3),
.tabela-estudantes td:nth-child(3) { width: 11%; padding-left: 4px; white-space: nowrap; }
.tabela-estudantes th:nth-child(4),
.tabela-estudantes td:nth-child(4) { width: 37%; }
.tabela-estudantes tr:last-child td { border-bottom: 0; }
.tabela-estudantes.com-marcas th:nth-child(1),
.tabela-estudantes.com-marcas td:nth-child(1) { width: 46px; padding-right: 0; }
.tabela-estudantes.com-marcas th:nth-child(2),
.tabela-estudantes.com-marcas td:nth-child(2) { width: 23%; }
.tabela-estudantes.com-marcas th:nth-child(3),
.tabela-estudantes.com-marcas td:nth-child(3) { width: 26%; padding-left: 12px; white-space: normal; }
.tabela-estudantes.com-marcas th:nth-child(4),
.tabela-estudantes.com-marcas td:nth-child(4) { width: 12%; }
.tabela-estudantes.com-marcas th:nth-child(5),
.tabela-estudantes.com-marcas td:nth-child(5) { width: 32%; }
.tabela-rolagem { max-width: 100%; }
.tabela-estudantes.tabela-seguro { min-width: 0; width: 100%; table-layout: auto; }
.tabela-estudantes.tabela-seguro th:nth-child(1),
.tabela-estudantes.tabela-seguro td:nth-child(1) {
  width: 1%; white-space: nowrap; padding: 12px 12px 12px 14px;
}
.tabela-estudantes.tabela-seguro th:nth-child(2),
.tabela-estudantes.tabela-seguro td:nth-child(2) { width: auto; }
.tabela-estudantes.tabela-seguro th:nth-child(3),
.tabela-estudantes.tabela-seguro td:nth-child(3) { width: 26%; padding-left: 12px; white-space: normal; }
.tabela-estudantes.tabela-seguro th:nth-child(4),
.tabela-estudantes.tabela-seguro td:nth-child(4) { width: 24%; white-space: normal; }
.tabela-estudantes.tabela-seguro select,
.tabela-estudantes.tabela-seguro .menu-redondo { max-width: 100%; }
.col-marca input {
  width: 18px; height: 18px; margin: 0; accent-color: var(--primary-deep); cursor: pointer;
}
.lote-liberar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  margin: 12px 0 0; background: white; border-radius: 18px; padding: 12px 14px;
  box-shadow: var(--shadow);
}
.btn-marcar {
  border: 0; border-radius: 10px; min-height: 40px; padding: 0 14px;
  background: #e7eef5; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer;
}
.btn-marcar:hover { background: #d7e4ef; }
.rotulo-lote { color: var(--muted); font-weight: 700; }
.lote-liberar select {
  min-height: 40px; border-radius: 10px; border: 1.5px solid #c5d9e8;
  padding: 0 12px; background: white; font: inherit; font-weight: 700; color: var(--ink);
}
.linha-nome { display: flex; align-items: center; gap: 8px; }
.linha-nome .celula-nome { flex: 1; min-width: 0; }
.btn-lixeira-mini { width: 28px; height: 28px; border-radius: 8px; flex: none; }
.btn-lixeira-mini svg { width: 15px; height: 15px; }
.btn-apagar { background: #b42318; }
.celula-nome {
  display: flex; gap: 10px; align-items: center; text-decoration: none; color: inherit; font-weight: 700;
}
.celula-situacao { display: flex; flex-wrap: nowrap; gap: 8px; align-items: center; }
.btn-pendencia {
  display: inline-flex; align-items: center; justify-content: center;
  box-sizing: border-box; min-height: 0; padding: 4px 10px; border: 0; border-radius: 999px;
  background: var(--bad); color: white; font-family: inherit; font-size: 13px;
  font-weight: 800; line-height: 1.45; text-decoration: none;
  cursor: pointer; white-space: nowrap;
}
.passo .acao-doc { margin-top: 10px; }
.passo .acao-doc .btn,
.btn-baixo {
  min-height: 32px; height: 32px; padding: 0 12px;
  font-size: 13px; font-weight: 700;
}
.iniciais {
  width: 36px; height: 36px; border-radius: 50%; background: var(--primary-deep); color: white;
  display: grid; place-items: center; font-size: 12px; font-weight: 800; flex: none;
}
.contagem-lista { margin: 0 0 8px; color: var(--muted); font-weight: 700; }
.escolha { display: grid; gap: 12px; }
.escolha > label, .opcao {
  display: block; background: white; border-radius: 22px; padding: 16px 16px 16px 18px;
  border: 2px solid transparent; box-shadow: var(--shadow); cursor: pointer; font-weight: 700;
}
.escolha input { position: absolute; opacity: 0; pointer-events: none; }
.escolha label:has(input:checked), .opcao.marcada { border-color: var(--primary); background: var(--soft); }
.escolha small, .opcao small { display: block; color: var(--muted); font-weight: 600; margin-top: 4px; }
.rosto { display: none; font-size: 22px; line-height: 1; margin-left: 8px; vertical-align: -3px; }
.escolha > label:has(input:checked) .rosto { display: inline; }
.recuo-opcao { margin-left: 28px; }
.recuo-opcao .campo { margin-bottom: 0; }
.lead { font-size: 18px; margin: 0 0 12px; }
.enunciado-questao { margin: 4px 0 14px; font-size: 22px; line-height: 1.35; font-weight: 800; }
.contato-sanfona { padding: 0; margin-bottom: 12px; overflow: hidden; }
.contato-sanfona summary { list-style: none; cursor: pointer; padding: 14px 16px; }
.contato-sanfona summary::-webkit-details-marker { display: none; }
.contato-sanfona summary::marker { content: ""; }
.contato-resumo { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.contato-linha { display: grid; gap: 2px; min-width: 0; }
.contato-linha small { color: var(--muted); font-weight: 700; }
.contato-linha .status-aguardando { color: var(--bad); font-weight: 800; }
.contato-linha .status-feita { color: var(--good); font-weight: 800; }
.contato-linha .status-lida { color: var(--primary-deep); font-weight: 800; }
.popup-alerta { max-width: 520px; }
.texto-alerta { white-space: pre-wrap; }
.contato-sanfona .sanfona-corpo { padding: 0 16px 16px; }
.contato-acoes { display: flex; align-items: center; gap: 8px; flex: none; }
.tag-curso { flex: none; max-width: 46%; text-align: center; line-height: 1.25; white-space: normal; }
.contato-acoes form { margin: 0; }
.btn-urgente {
  min-height: 40px; padding: 0 12px; border: 0; border-radius: 999px; cursor: pointer;
  background: #f6e7a8; color: #6a4b00; font-weight: 800;
}
.btn-urgente.marcado { background: #e6b325; color: #3d2a00; }
.selo-urgente { color: #8a6200; font-weight: 800; }
.contato-urgente { background: #fff4c2; box-shadow: inset 0 0 0 2px #e6b325; }
.contato-pendente { color: var(--bad); font-weight: 800; }
.popup-contato { max-width: 520px; }
.lead.pergunta, .lead.destaque { font-weight: 800; }
.lead.pergunta { margin-bottom: 4px; }
.aviso-box { background: var(--soft); border-radius: 18px; padding: 14px; font-weight: 700; }
.aviso-alerta {
  background: var(--warn-bg); color: var(--warn); border-radius: 18px;
  padding: 14px; font-weight: 800; margin: 0 0 14px;
}
.confetes {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 80;
}
.aviso-cpf { margin: -6px 0 14px; color: var(--primary-deep); font-size: 14px; font-weight: 700; line-height: 1.4; }
.justificativa { background: var(--bad-bg); color: var(--bad); border-radius: 18px; padding: 14px; font-weight: 700; }

.passo {
  display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  background: white; border-radius: 22px; padding: 12px; box-shadow: var(--shadow); margin-bottom: 10px;
  max-width: 100%; min-width: 0;
}
.hero + .passo { margin-top: 16px; }
.passo .num {
  width: 88px; min-height: 54px; border-radius: 18px; display: grid; place-items: center;
  background: #f8d5e4; color: #8d3d62; font-weight: 800;
  font-size: 13px; line-height: 1.15; text-align: center; padding: 8px 6px;
}
.passo.feito .num { background: #d7f3e3; color: #1f6b45; }
.passo.agora .num { background: #fff3c4; color: #7a5c10; }
.passo.espera .num { background: #f8d5e4; color: #8d3d62; }
.passo .prazo-passo { margin: 4px 0 0; color: var(--primary-dark); font-size: 14px; font-weight: 700; line-height: 1.35; }
.passo h3 { margin: 0; font-size: 16px; }
.lista-nomes {
  max-height: 240px; overflow: auto; display: grid; gap: 8px;
  background: white; border-radius: 16px; padding: 12px; border: 1.5px solid #c5d9e8;
}
.lista-nomes label { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.passo p { margin: 2px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.passo .status-passo strong { font-weight: 800; color: var(--ink); }
.passo .explicacao { margin-top: 4px; }
.passo .ok {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--good); color: white; font-size: 14px;
}
.passo.espera .ok { background: var(--line); color: transparent; }
.passo-sanfona { display: block; padding: 0; }
.passo-sanfona > details > summary {
  display: block; padding: 0; cursor: pointer; list-style: none;
}
.passo-sanfona > details > summary::-webkit-details-marker { display: none; }
.passo-sanfona > details > summary::marker { content: ""; }
.passo-sanfona .resumo-passo {
  display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 14px 16px;
}
.passo-sanfona .texto-passo { min-width: 0; }
.passo-sanfona .lado { display: grid; justify-items: center; gap: 8px; }
.passo-sanfona .seta {
  width: 8px; height: 8px; border-right: 2px solid #5d7c93; border-bottom: 2px solid #5d7c93;
  transform: rotate(45deg);
}
.passo-sanfona details[open] > summary .seta { transform: rotate(225deg); }
.passo-sanfona .sanfona-corpo {
  display: grid; gap: 10px; margin: 0;
  padding: 14px 16px 18px 116px; border-top: 1px solid var(--line);
}
.passo-sanfona .sanfona-corpo p { margin: 0; color: var(--ink); font-weight: 600; line-height: 1.45; }
.passo-sanfona .sanfona-corpo strong { font-weight: 800; }
.passo-sanfona .sanfona-corpo .btn { width: 100%; margin: 0; }
.passo-sanfona .sanfona-corpo .acao-doc .btn + .btn { margin-top: 12px; }
.texto-quebra { white-space: pre-wrap; }
.diario-passo {
  display: grid; gap: 10px; margin-top: 4px; padding-top: 12px;
  border-top: 1px solid var(--line);
}
.diario-passo .diario-titulo {
  font-size: 12px; font-weight: 800; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--muted);
}
.diario-passo .entrada-diario {
  background: #f4f8fb; border-radius: 14px; padding: 12px 14px; margin: 0;
}
.diario-passo .entrada-diario p { font-weight: 600; white-space: pre-wrap; }
.historico-sanfona .resumo-passo { grid-template-columns: auto minmax(0, 1fr) 28px; }
.historico-sanfona .num {
  width: auto; min-width: 108px; padding: 10px 14px;
  background: #fff3c4; color: var(--ink); text-transform: uppercase; letter-spacing: 0.04em;
}
.historico-sanfona .texto-passo .explicacao { margin: 0; color: var(--ink); font-weight: 600; font-size: 15px; }
.historico-sanfona .seta { width: 10px; height: 10px; border-color: var(--primary-deep); }
.historico-sanfona .sanfona-corpo { display: block; }
.historico-sanfona .sanfona-corpo .btn { width: auto; }
.historico-sanfona .timeline { margin: 0; }
.historico-sanfona .timeline li { display: grid; gap: 4px; }
.fato-historico { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.btn-historico {
  min-height: 36px; height: auto; padding: 6px 14px;
  font-size: 13px; font-weight: 700; white-space: normal;
  background: var(--primary-deep); color: white;
}
.btn-historico:hover { background: var(--primary-dark); color: white; }
.passo.agora { outline: 2px solid #e6c96a; }
.abas { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.abas a, .abas button {
  border: 0; background: white; border-radius: 999px; min-height: 42px; padding: 10px 14px;
  font-weight: 800; color: var(--muted); text-decoration: none;
}
.abas a.ativa, .abas button.ativa { background: var(--primary-deep); color: white; }
button.pessoa { width: 100%; text-align: left; border: 0; font: inherit; cursor: pointer; }
.filtros { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 12px; }
.filtros .campo { margin: 0; }
.filtros .btn { grid-column: 1 / -1; }
.trilho {
  display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; padding: 2px 0 16px; margin: 0 0 8px;
  width: 100%; max-width: 100%; min-width: 0;
  scrollbar-width: none;
}
.trilho::-webkit-scrollbar { display: none; }
.servico {
  flex: 0 0 104px; scroll-snap-align: start; text-align: center;
  text-decoration: none; color: var(--ink); font-size: 13px; font-weight: 600;
}
.servico-icone {
  width: 76px; height: 76px; margin: 0 auto 8px; border-radius: 16px;
  background: #eee; color: var(--ink); display: grid; place-items: center;
  font-size: 28px; font-weight: 700;
}
.trilho.trilho-largo {
  flex-wrap: wrap; overflow: visible; scroll-snap-type: none;
}
.trilho-largo .tile {
  flex: 1 1 148px; max-width: 240px; scroll-snap-align: unset; min-height: 96px;
}
.passos-pratica { gap: 10px; }
.passos-pratica a {
  flex: 0 0 112px; scroll-snap-align: start; text-align: center;
  background: #eee; color: inherit; text-decoration: none; border-radius: 16px;
  padding: 14px 10px; box-shadow: none;
}
.passos-pratica a strong { display: block; }
.passos-pratica a small { color: var(--muted); font-weight: 800; }
.passos-pratica a.ativa { background: var(--primary-deep); color: white; }
.passos-pratica a.ativa small { color: #d7e6f3; }
.passos-pratica a.destaque { background: var(--primary); color: white; }
.passos-pratica a.destaque small { color: #d7e6f3; }
.opcao-visitas {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--primary); color: #fff; border-radius: 16px;
  padding: 16px; margin: 14px 0 8px; font-weight: 800; line-height: 1.35;
}
.opcao-visitas input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: #fff; }
.requerimento h3 { margin: 18px 0 8px; font-size: 16px; }
.identidade-requerimento { margin: 0 0 8px; }
.ciente {
  display: flex; gap: 12px; align-items: flex-start;
  background: white; border-radius: 16px; padding: 14px 16px; margin: 0 0 8px;
  border: 2px solid transparent; box-shadow: var(--shadow); font-weight: 700; line-height: 1.35;
}
.ciente:has(input:checked) { border-color: var(--primary); background: var(--soft); }
.ciente input { width: 22px; height: 22px; margin-top: 2px; flex: none; }
.contador { margin: 0 0 12px; font-size: 14px; font-weight: 700; color: var(--muted); }
.contador.pronto { color: var(--primary-dark); }
.entrada-diario { margin-bottom: 10px; }
.entrada-diario p { white-space: pre-wrap; margin: 8px 0 0; }
.turma-titulo { margin: 14px 2px 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.faixa-alunos {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px; padding: 2px 0 16px; margin: 0 0 8px;
  width: 100%; max-width: 100%; min-width: 0;
}
.faixa-alunos > .pessoa, .faixa-alunos > .cartao {
  width: auto; min-width: 0; margin: 0;
}
.faixa-alunos > .cartao + .cartao { margin-top: 0; }
.popup {
  border: 0; border-radius: 24px; padding: 22px; max-width: 420px; width: calc(100% - 32px);
  box-shadow: var(--shadow);
}
.popup::backdrop { background: rgba(8, 50, 83, .45); }
.popup h2 { margin-top: 0; }
.popup [data-popup-texto] strong { font-weight: 800; }
.popup [data-popup-texto] strong.info { display: block; margin-top: 10px; }
.popup-acoes { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }
.popup-acoes .btn { min-height: 46px; }
.popup-doc[open] { display: flex; flex-direction: column; max-width: 760px; }
.popup-doc .doc-quadro {
  max-height: min(68vh, 640px); overflow: auto; border-radius: 12px; background: white;
}
.popup-doc .doc-oficial { box-shadow: none; padding: 8px 4px 0; }
.popup-doc .doc-oficial img { display: block; width: 100%; height: auto; margin: 0 0 12px; border-radius: 8px; }

.orbita { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; justify-items: center; margin: 8px 0 18px; }
.logo-orbita { width: 168px; height: 168px; grid-column: 1 / -1; }
.metrica {
  width: 100%; background: white; border-radius: 20px; padding: 12px; box-shadow: var(--shadow); text-align: left;
}
.metrica strong { display: block; font-size: 18px; }
.metrica span { color: var(--muted); font-size: 13px; font-weight: 700; }
.barra { height: 8px; background: #e5f0f7; border-radius: 99px; overflow: hidden; margin-top: 8px; }
.barra i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--primary-dark)); border-radius: 99px; }
.grade-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.pessoa, .item-lista {
  display: block; background: white; border-radius: 22px; padding: 16px; box-shadow: var(--shadow);
  text-decoration: none; color: inherit; margin-bottom: 10px;
}
.item-lista .local-link { display: block; text-decoration: none; color: inherit; }
.indicado-no-local {
  display: flex; align-items: center; gap: 8px;
  margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line);
}
.indicado-no-local .texto { flex: 1; min-width: 0; }
.indicado-no-local small { display: block; color: var(--muted); }
.indicado-no-local a { color: var(--primary-dark); font-weight: 800; text-decoration: none; }
.indicado-no-local a:hover { text-decoration: underline; }
.indicado-no-local form { margin: 0; }
.linha-item {
  display: flex; align-items: center; gap: 12px;
  background: white; border-radius: 22px; padding: 12px 12px 12px 16px;
  box-shadow: var(--shadow); margin-bottom: 10px;
}
.linha-item .texto { flex: 1; min-width: 0; }
.linha-item .texto strong { display: block; }
.linha-item .texto small { color: var(--muted); }
.linha-item form { margin: 0; }
.acoes-item { display: flex; align-items: center; gap: 8px; flex: none; }
.btn-lixeira {
  width: 48px; height: 48px; border: 0; border-radius: 16px; padding: 0;
  background: #fdecec; color: #b42318; cursor: pointer;
  display: grid; place-items: center;
}
.btn-lixeira svg { width: 22px; height: 22px; }
.btn-ocultar {
  min-height: 44px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: white; color: var(--primary-deep); font-weight: 800;
}
.pessoa strong, .item-lista strong { display: block; }
.pessoa small, .item-lista small { color: var(--muted); }

.pizza-bloco { display: grid; gap: 16px; align-items: center; justify-items: center; }
.pizza { width: 210px; height: 210px; overflow: visible; }
.fatia { cursor: pointer; outline: none; transition: transform .18s ease, filter .18s ease; }
.fatia:focus,
.fatia:focus-visible { outline: none; }
.fatia.relevo {
  transform: translate(var(--dx), var(--dy));
  filter: drop-shadow(0 7px 5px rgba(16, 62, 102, .35));
}
.pizza-legenda { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; width: 100%; }
.pizza-legenda button {
  display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 8px; align-items: center;
  width: 100%; margin: 0; padding: 6px 8px; border: 0; border-radius: 10px;
  background: transparent; color: inherit; font: inherit; font-weight: 700;
  text-align: left; cursor: pointer;
}
.pizza-legenda button.destaque { background: var(--soft); box-shadow: inset 0 0 0 2px var(--primary-deep); }
.pizza-legenda i { width: 14px; height: 14px; border-radius: 4px; }
.pizza-legenda strong { color: var(--primary-deep); }
@media (min-width: 700px) {
  .pizza-bloco { grid-template-columns: 210px minmax(0, 1fr); justify-items: stretch; }
}
.linha-grafico { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; margin-bottom: 12px; align-items: center; }
.linha-grafico .barra { grid-column: 1 / -1; margin: 0; height: 10px; }

.mapa-br {
  position: relative;
  background: #f4f9fc;
  border-radius: 28px;
  padding: 12px 8px 4px;
  box-shadow: var(--shadow);
}
.ajuda-mapa {
  position: absolute; top: 10px; right: 12px; z-index: 2;
  width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--primary);
  background: white; color: var(--primary-deep); font-weight: 800; font-size: 15px;
  line-height: 1; cursor: pointer; padding: 0;
}
.ajuda-mapa:hover { background: var(--soft); }
.popup-mapa { max-width: 520px; }
.popup-mapa p { margin: 0 0 12px; line-height: 1.45; }
.popup-cnes { max-width: 520px; }
.popup-cnes p { margin: 0 0 12px; line-height: 1.45; }
.link-termo {
  display: inline; margin: 0; padding: 0; border: 0; background: none;
  color: inherit; font: inherit; font-weight: 800; line-height: inherit;
  text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}
.parabens { color: var(--good); font-weight: 800; letter-spacing: .04em; }
.mapa-svg { width: min(100%, 640px); height: auto; display: block; margin: 0 auto; }
.mapa-svg .estado {
  fill: #d7e6f3; stroke: #ffffff; stroke-width: 1px; stroke-linejoin: round; stroke-linecap: round;
  vector-effect: non-scaling-stroke; cursor: pointer;
}
.mapa-svg .baixo { fill: #8eb8d8; }
.mapa-svg .medio { fill: #2f6fa8; }
.mapa-svg .alto { fill: #0a3d6b; }
.mapa-svg .estado.selecionado { stroke: #083253; stroke-width: 2.5px; }
.mapa-svg .estado:focus,
.mapa-svg .estado:focus-visible { outline: none; }
.mapa-svg .contorno-uf {
  fill: none; stroke: #083253; stroke-width: 3px; stroke-linejoin: round; stroke-linecap: round;
  vector-effect: non-scaling-stroke; pointer-events: none;
}
.mapa-contagem {
  margin: 4px 8px 10px; min-height: 1.4em; text-align: center;
  font-weight: 800; color: var(--primary-deep);
}
.busca-estado { align-items: flex-end; padding: 12px; position: relative; z-index: 1100; overflow: visible; margin-bottom: 12px; }
.busca-estado .campo { flex: 1; margin: 0; overflow: visible; }
.busca-estado .btn-entrar {
  flex: none; min-height: 52px; padding: 0 22px; border-radius: 16px; border: 0;
  background: var(--primary-deep); color: white; font-weight: 800;
}
.busca-estado .menu-redondo[open],
.busca-estado .menu-redondo-lista { z-index: 1100; }
.palco-mapa {
  position: relative; height: min(68vh, 640px); min-height: 420px;
  margin: 0 -16px 16px; background: #e5e3df;
}
#mapa-ruas { height: 100%; width: 100%; }
.busca-flutuante {
  position: absolute; z-index: 500; top: 12px; left: 12px; right: 58px;
  background: white; border-radius: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.3);
  padding: 8px 12px 12px;
}
.busca-flutuante label { display: grid; gap: 4px; font-size: 12px; font-weight: 700; color: #5f6368; }
.busca-flutuante select {
  border: 0; background: transparent; font-size: 16px; font-weight: 600; min-height: 36px; padding: 0;
}
.btn-pronto {
  position: absolute; z-index: 500; left: 16px; right: 16px; bottom: 16px;
  background: #111; color: white; border: 0; border-radius: 8px;
  min-height: 48px; font-size: 16px; font-weight: 700; cursor: pointer;
}
.legenda-pinos {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  margin: 0 0 12px; padding: 0; list-style: none;
}
.legenda-pinos li { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.marca-pino {
  width: 22px; height: 26px; display: inline-flex; align-items: flex-start; justify-content: center; flex: none;
}
.marca-pino i {
  display: block; width: 16px; height: 16px; margin-top: 2px;
  border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  border: 2px solid white; box-shadow: 0 2px 6px rgba(0,0,0,.35);
}
.marca-pino .vermelho { background: #c62828; }
.marca-pino .azul { background: #1565a8; }
.marca-pino .verde { background: #0b7a4b; }
.pino-mapa { background: transparent; border: 0; }
.pino-mapa span {
  display: block; width: 16px; height: 16px; margin: 2px auto 0;
  border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  border: 2px solid white; box-shadow: 0 2px 6px rgba(0,0,0,.35);
}
.atuantes-local { margin: 16px 0; }
.atuantes-local .intro-atuantes { margin: 0 0 4px; font-weight: 700; }
.atuantes-local h2 { margin: 0 0 12px; font-size: 18px; }
.atuantes-local .item-lista { display: grid; gap: 2px; margin-bottom: 8px; }
.atuantes-local .item-lista small { display: block; }
.sanfona-locais { padding: 0; margin-top: 16px; scroll-margin-top: 12px; }
.sanfona-locais > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px; cursor: pointer; font-weight: 800; font-size: 16px; list-style: none;
}
.sanfona-locais > summary::-webkit-details-marker { display: none; }
.sanfona-locais > summary::marker { content: ""; }
.sanfona-locais > summary span {
  margin-left: auto; color: var(--primary-deep); font-size: 13px;
}
.sanfona-locais > summary::after {
  content: ""; flex: none; width: 8px; height: 8px; margin-left: 8px;
  border-right: 2px solid #5d7c93; border-bottom: 2px solid #5d7c93;
  transform: rotate(45deg);
}
.sanfona-locais[open] > summary::after { transform: rotate(225deg); margin-top: 4px; }
.sanfona-locais .sanfona-corpo { padding: 0 16px 16px; }
.mapa-uf {
  width: min(100%, 560px); height: auto; display: block; margin: 0 auto 12px;
  background: #e7f4fc; border-radius: 24px; box-shadow: var(--shadow);
}
.mapa-uf .contorno { fill: #d5e7f6; stroke: #ffffff; stroke-width: 0.45; stroke-linejoin: round; }
.mapa-uf .cidade { fill: #2f6fa8; stroke: #ffffff; stroke-width: 0.25; }
.mapa-uf .cidade.com-aluno { fill: #0a3d6b; }
.mapa-uf .cidade.ativa { fill: #0b7a4b; }
.mapa-uf a:hover .cidade, .mapa-uf a:focus .cidade { stroke: #083253; stroke-width: 0.45; }
.mapa-pontos { position: relative; height: 320px; background: #e7f4fc; border-radius: 24px; margin-bottom: 12px; }
.ponto {
  position: absolute; transform: translate(-50%, -50%);
  width: 18px; height: 18px; border-radius: 50%; background: var(--primary);
  box-shadow: 0 0 0 6px rgba(21, 101, 168, .18);
}

.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
  height: var(--nav-h); padding: 8px 6px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(211, 228, 240, .8);
}
.bottom-nav.com-diario { grid-template-columns: repeat(6, 1fr); }
.bottom-nav.com-seguro { grid-template-columns: repeat(6, 1fr); }
.bottom-nav.com-diario.com-seguro { grid-template-columns: repeat(7, 1fr); }
.bottom-nav.nav-equipe { grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); }
.btn-aviso { background: var(--warn-bg); color: var(--warn); }
.quantitativo-seguro {
  margin: 0 0 4px; font-size: 42px; line-height: 1; font-weight: 800; color: var(--warn);
}
.aviso-seguro {
  background: var(--warn-bg); color: var(--warn); border-radius: 18px;
  padding: 12px 14px; font-weight: 700; margin-bottom: 12px;
}
.aviso-seguro ul { margin: 8px 0 0; padding-left: 18px; font-weight: 700; }
.aviso-seguro a { color: inherit; }
.popup-seguro { max-width: 520px; }
.popup-seguro .lista-aviso-seguro {
  max-height: 46vh; overflow: auto; margin: 8px 0 12px; padding-left: 18px;
}
.texto-apolice { white-space: pre-wrap; font-weight: 500; line-height: 1.55; }
.linha-anexo { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.btn-anexo { position: relative; min-height: 36px; padding: 0 14px; font-size: 14px; overflow: hidden; }
.btn-anexo input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.nome-anexo { margin: 0; font-weight: 600; color: var(--muted); font-size: 13px; }
.cartao-grupo { padding: 14px 16px; }
.cartao-grupo h2 { margin: 0 0 2px; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.cartao-grupo .texto-apolice { margin-top: 8px; font-size: 14px; }
.acoes-grupo { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.acoes-grupo form { margin: 0; }
.btn-grupo {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 30px; padding: 0 12px; border-radius: 999px;
  border: 1px solid #d5e4f0; background: #f4f9fc; color: var(--primary-deep);
  font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn-grupo-apagar { background: white; color: #9a3b32; border-color: #f0d4d0; }
.cartao-apolice {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
}
.cartao-apolice .apolice-corpo { min-width: 0; flex: 1; }
.cartao-apolice .btn { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 700px) {
  .cartao-apolice { flex-direction: column; }
  .cartao-apolice .btn { align-self: stretch; }
}
.marca-seguro { width: 18px; height: 18px; }
.linha-aguardando { background: var(--warn-bg); }
.bottom-nav a {
  text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 800;
  display: grid; justify-items: center; gap: 2px;
}
.bottom-nav a.ativo { color: var(--primary-dark); }
.nav-centro {
  width: 64px; height: 64px; border-radius: 50%; margin-top: -28px;
  background: radial-gradient(circle at 35% 30%, #3aa0dc, #0c4474);
  color: white !important; display: grid; place-items: center;
  box-shadow: 0 10px 20px rgba(12, 68, 116, .28); border: 4px solid #e7f1f8;
}
.nav-centro span { display: none; }
.nav-centro .pegadas { height: 46px; width: auto; max-width: none; display: block; }

.auth-shell { min-height: 100vh; display: grid; }
.auth-lado {
  background: linear-gradient(180deg, #0c4474, #1565a8 70%);
  color: white; padding: 36px 24px 28px; text-align: center;
}
.auth-lado .marca-logo { margin: 12px auto; background: white; }
.auth-lado h1 { margin: 0 0 8px; font-size: 44px; font-weight: 700; letter-spacing: 0.04em; line-height: 1; color: white; }
.auth-lado p { margin: 0 auto; max-width: 280px; color: #d7ebf8; }
.wordmark { width: min(280px, 80%); margin-top: 18px; }
.auth-lado .brasao-login {
  background: white;
  border-radius: 16px;
  padding: 12px 16px;
  width: min(250px, 86%);
  height: auto;
  display: block;
  margin: 0 auto 18px;
  object-fit: contain;
}
.auth-lado .wordmark {
  background: white;
  border-radius: 16px;
  padding: 8px 12px;
  width: min(250px, 86%);
  display: block;
  margin: 0 auto 22px;
}
.auth-lado .logo-sappes {
  width: min(250px, 86%);
  height: auto;
  display: block;
  margin: 0 auto 14px;
  background: transparent;
}
.auth-lado .nome-sistema {
  margin: 0 auto;
  max-width: 34rem;
  color: white;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.35;
}
.auth-lado .credito-login {
  margin: 18px auto 0;
  max-width: 34rem;
  color: white;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.35;
}
.auth-card { padding: 22px 18px 40px; }
.auth-card h2 { margin: 0 0 6px; font-size: 28px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; margin: 8px 0 16px; }
.check input { width: 22px; height: 22px; margin-top: 2px; flex: none; }
.check label { font-weight: 700; }
.termo-texto { display: grid; gap: 12px; margin: 0 0 16px; }
.termo-texto p { margin: 0; }
.aceite-rotulo { margin: 0 0 8px; font-weight: 800; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.timeline li { background: var(--bg-2); border-radius: 16px; padding: 12px 14px; }
.timeline small { color: var(--muted); }

.grade-mais { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile {
  background: white; border-radius: 22px; padding: 16px; text-decoration: none; color: inherit;
  box-shadow: var(--shadow); min-height: 110px; display: flex; flex-direction: column; justify-content: flex-end;
}
.tile strong { font-size: 16px; }
.tile span { color: var(--muted); font-size: 13px; font-weight: 700; }

.doc-oficial { background: white; border-radius: 18px; padding: 22px; box-shadow: var(--shadow); }
.doc-oficial h1 { font-size: 22px; color: var(--primary-deep); }
.codigo-grande { font-size: 22px; letter-spacing: .08em; text-align: center; background: var(--soft); border-radius: 16px; padding: 12px; }

.erro-pagina { min-height: 70vh; display: grid; place-items: center; padding: 24px; text-align: center; }
.nota-exemplo { background: var(--warn-bg); color: var(--warn); border-radius: 18px; padding: 12px 14px; font-weight: 700; margin-bottom: 12px; }
.oculto { display: none; }
.rodape-curto { color: var(--primary-deep); font-size: 11px; font-weight: 800; letter-spacing: .03em; line-height: 1.45; text-align: center; margin: 28px auto 8px; max-width: 34rem; }
.miolo .rodape-curto {
  position: static; z-index: auto; left: auto; right: auto; bottom: auto;
  margin: 28px auto 8px; max-width: 34rem; padding: 0;
  background: transparent; text-align: center;
}
.busca-sus { background: var(--soft); border-radius: 22px; padding: 14px; margin: 8px 0 16px; }
.busca-sus h3 { margin: 0 0 6px; }
.item-sus {
  display: block; width: 100%; text-align: left; font: inherit; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: 18px;
  padding: 12px 14px; margin-top: 8px; cursor: pointer;
}
.item-sus strong { display: block; }
.item-sus p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.item-sus.mais-proximo, .item-sus.escolhido { border: 2px solid var(--primary); background: #f3f9fd; }
.item-sus.fora-da-lista { color: var(--primary-deep); }
.selo-perto {
  display: inline-block; background: var(--primary); color: white; border-radius: 999px;
  font-size: 12px; font-weight: 800; padding: 3px 8px; margin-bottom: 6px;
}

@media (max-width: 380px) {
  .hero { grid-template-columns: 1fr; }
  .marca-logo { justify-self: center; }
  .topbar h1 { font-size: 20px; }
  .acoes { font-size: 12px; }
  .bolha { width: 64px; height: 64px; font-size: 32px; }
}

@media (min-width: 900px) {
  body { display: block; }
  .app { width: min(1180px, calc(100% - 32px)); display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 16px; padding-top: 18px; }
  .sidebar {
    display: flex; flex-direction: column; gap: 16px;
    position: sticky; top: 16px; align-self: start; height: calc(100vh - 32px);
    background: white; border-radius: 28px; padding: 22px 20px; box-shadow: var(--shadow);
    z-index: 5;
  }
  .sidebar nav { display: grid; gap: 6px; }
  .sidebar a {
    text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 500; border-radius: 14px; padding: 10px 12px;
  }
  .sidebar a.ativo, .sidebar a:hover { background: var(--soft); color: var(--primary-deep); font-weight: 600; }
  .side-sair button {
    width: 100%; text-align: left; background: transparent; border: 0; cursor: pointer;
    color: var(--ink); font-weight: 500; border-radius: 14px; padding: 10px 12px; font-size: 14px;
  }
  .side-sair button:hover { background: var(--soft); color: var(--primary-deep); }
  .side-user { margin-top: auto; background: var(--soft); border-radius: 18px; padding: 12px; }
  .bottom-nav { display: none; }
  .miolo { min-width: 0; padding: 8px 8px 28px; }
  .hero { min-height: 0; }
  .marca-logo, .logo-orbita.hero-logo { width: min(148px, 100%); }
  .orbita { grid-template-columns: 180px 1fr 180px; grid-template-rows: auto auto; align-items: center; }
  .logo-orbita { grid-column: 2; grid-row: 1 / span 2; width: 230px; height: 230px; }
  .grade-mais { grid-template-columns: repeat(3, 1fr); }
  .auth-shell { grid-template-columns: 1.05fr .95fr; }
  .auth-lado { display: grid; align-content: center; min-height: 100vh; }
  .auth-card { display: grid; align-content: center; padding: 48px; }
  .duas { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; align-items: start; }
}

.vinculos { display: grid; gap: 10px; margin: 4px 0 14px; }
[data-form-usuario] [data-adicionar-vinculo] { margin-bottom: 18px; }
.rotulo-vinculo { font-weight: 800; }
.vinculo { display: grid; grid-template-columns: 1fr; gap: 8px; align-items: start; }
.lista-seletor {
  display: none; background: white; border: 1.5px solid #c5d9e8;
  border-radius: 16px; box-shadow: var(--shadow); overflow: auto;
}
.lista-seletor.aberta { display: block; }
.lista-seletor button {
  display: block; width: 100%; text-align: left; background: white; border: 0;
  padding: 10px 14px; font: inherit; font-weight: 600; cursor: pointer; color: inherit;
}
.lista-seletor button.marcada,
.lista-seletor button:hover { background: var(--soft); }
.vinculo .campo { margin: 0; }
.grade-usuario { display: grid; grid-template-columns: 1fr; }
@media (min-width: 800px) {
  .vinculo { grid-template-columns: 1fr 1fr auto; }
}
.pergunta-usuarios { margin-bottom: 16px; }
.pergunta-usuarios .lead { margin: 0 0 14px; font-size: 22px; }
.pergunta-usuarios .escolha a {
  display: flex; align-items: center; min-height: 64px;
  background: white; border-radius: 22px; padding: 16px 18px;
  border: 2px solid var(--line); box-shadow: var(--shadow);
  color: var(--ink); font-weight: 800; text-decoration: none;
}
.pergunta-usuarios .escolha a.marcada { border-color: var(--primary); background: var(--soft); }
.btn-permissoes { margin-top: 14px; letter-spacing: 0.02em; }
.lista-permissoes { display: grid; gap: 8px; margin: 12px 0 16px; }
.marca-permissao {
  display: flex; align-items: center; gap: 10px;
  min-height: 44px; margin: 0; padding: 8px 12px;
  background: var(--bg-2); border-radius: 14px; font-weight: 700;
}
.marca-permissao input { width: 18px; height: 18px; flex: none; }
.escolha-dupla { grid-template-columns: 1fr; }
.filtros-usuarios { margin: 0 0 16px; }
.filtros-usuarios .campo { margin: 0; }
.filtros-usuarios .acoes-usuario { margin-top: 22px; }
.linha-usuario { margin-bottom: 10px; }
.linha-usuario p { margin: 0; }
.acoes-usuario { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.acoes-usuario form { margin: 0; }
.lista-acessos { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 50vh; overflow: auto; }
.lista-acessos li { background: var(--bg-2); border-radius: 16px; padding: 12px 14px; display: grid; gap: 2px; }
.lista-acessos span { color: var(--muted); font-weight: 700; }
@media (min-width: 800px) {
  .grade-usuario { grid-template-columns: 1fr 1fr; gap: 0 12px; }
  .grade-usuario .campo-largo { grid-column: 1 / -1; }
  .escolha-dupla { grid-template-columns: 1fr 1fr; }
  .lista-permissoes { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
@media print {
  .bottom-nav, .sidebar, .topbar, .flashes, .btn { display: none !important; }
  .miolo .rodape-curto { position: static; padding: 0; }
  .miolo { padding: 0; }
  body { background: white; }
}
