:root {
  /* Verdes oficiais da identidade visual do A.C.Camargo (manual de marca) —
     Verde Nobre (escuro), Verde Camargo (médio) e Verde Menta (claro). */
  --brand: #033936; /* Verde Nobre */
  --brand-medium: #0e5236; /* Verde Camargo */
  --brand-light: #d7f9d3; /* Verde Menta */
  --brand-border: rgba(14, 82, 54, 0.3); /* Verde Camargo com transparência, pra bordas sutis sobre o Verde Menta */
  --bg: #f7f8f7;
  --card: #ffffff;
  --text: #1c1f1e;
  --muted: #6b7270;
  --border: #e2e5e3;
  --danger: #b3261e;
  --radius: 10px;
  /* Tipografia oficial da marca: Raleway pra títulos, Arial pro texto corrido. */
  --font-title: 'Raleway', -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: Arial, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
}

header.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--brand);
  color: #fff;
  padding: 0.85rem 1.25rem;
}

.app-header-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.app-header h1 {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
}

.brand-cluster { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.logo-icon { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex: none; display: block; }
.ac-logo { height: 48px; width: auto; flex: none; display: block; border-radius: 6px; }

.app-header .section-count {
  font-size: 0.75rem;
  opacity: 0.85;
}

.header-right { display: flex; align-items: center; gap: 0.6rem; }
.block-menu-btn {
  font-size: 0.68rem;
  line-height: 1;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  margin-top: -0.2rem;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}
.block-menu-btn:hover { background: rgba(255,255,255,0.22); }

.progress-track {
  height: 4px;
  background: rgba(255,255,255,0.25);
}
.progress-fill {
  height: 100%;
  background: #fff;
  transition: width 0.4s ease;
}

main {
  max-width: 860px;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 6rem;
}

.tabs {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.6rem;
  margin-bottom: 1.5rem;
}
.tab-pill {
  flex: none;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}
.tab-pill.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.tab-pill.done::after { content: " ✓"; }

.notice {
  background: var(--brand-light);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  font-size: 0.78rem;
  color: var(--brand);
  margin-bottom: 1.5rem;
}

.section-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.block-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.4rem;
}
.section-card h2 { margin-top: 0; font-size: 1.15rem; }
.section-card .section-intro {
  background: oklch(0.95 0.02 250);
  border: 1px solid oklch(0.85 0.05 250);
  color: oklch(0.4 0.1 250);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  margin-bottom: 1.4rem;
}

.field { margin-bottom: 1.4rem; }
.field label.field-label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
}
.field .field-hint { font-weight: 400; color: var(--muted); font-size: 0.78rem; }
.required-mark { color: var(--danger); margin-left: 0.15rem; }

input[type=text], input[type=email], input[type=number], input[type=tel],
select, textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  background: #fff;
  color: var(--text);
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}

.option-group { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.option-pill {
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 0.83rem;
  cursor: pointer;
  color: var(--text);
  user-select: none;
}
.option-pill.selected {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.rating-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  margin-bottom: 0.85rem;
}
.rating-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}
.rating-item-head .rating-label { font-weight: 600; font-size: 0.9rem; }
.rating-item-head .rating-value { color: var(--muted); font-size: 0.9rem; }
.rating-scale { display: flex; gap: 0.5rem; }
.rating-scale button {
  flex: 1 1 0;
  height: 36px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.8rem;
  cursor: pointer;
}
.rating-scale button.selected { background: var(--brand); color: #fff; border-color: var(--brand); }

.identity-box {
  border: 1px dashed oklch(0.7 0.05 60);
  background: oklch(0.98 0.02 90);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}
.identity-box p { margin: 0 0 0.75rem; color: #6b5b1f; }

.nav-footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 0.85rem 1.25rem;
}
.nav-footer-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
button.nav-btn {
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: #fff;
}
button.nav-btn.primary { background: var(--brand); color: #fff; border-color: var(--brand); }
button.nav-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.status-msg { font-size: 0.9rem; margin-top: 1rem; padding: 0.75rem 1rem; border-radius: 8px; }
.status-msg.error { background: #fdecea; color: var(--danger); }
.status-msg.success { background: var(--brand-light); color: var(--brand); }

.field-error { color: var(--danger); font-size: 0.78rem; margin-top: 0.3rem; }

.consent-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  cursor: pointer;
  font-family: inherit;
}
.consent-checkbox {
  flex: none;
  width: 20px; height: 20px;
  margin-top: 0.1rem;
  border: 1.5px solid var(--muted);
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  color: #fff;
  background: transparent;
}
.consent-card.checked .consent-checkbox { background: var(--brand); border-color: var(--brand); }
.consent-card-text { display: flex; flex-direction: column; gap: 0.25rem; }
.consent-card-title { font-weight: 600; font-size: 0.92rem; color: var(--text); }
.consent-card-desc { font-size: 0.82rem; color: var(--muted); }

.consent-card-green { background: var(--brand-light); border-color: var(--brand-border); }
.consent-card-amber { background: oklch(0.95 0.04 60); border-color: oklch(0.8 0.09 60); }

.notice-center { text-align: center; }
.notice-justify { text-align: justify; }
.reset-draft-btn {
  margin-left: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  color: var(--danger);
}
.reset-draft-btn:hover { opacity: 0.75; }
.landing-intro { text-align: center; margin-bottom: 1.75rem; }
.landing-intro h2 { margin: 0 0 0.5rem; font-family: var(--font-title); font-size: 1.3rem; }
.landing-intro p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.block-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.3rem;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.block-card:hover {
  border-color: var(--brand);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.block-card-number {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
}
.block-card-title { font-size: 1.05rem; font-weight: 600; color: var(--text); }
.block-card-desc { font-size: 0.85rem; color: var(--muted); }

/* 3 blocos por linha, os últimos 2 numa segunda linha — ambas centralizadas.
   Flexbox com wrap (em vez de grid fixo) pra também encolher com elegância
   em telas estreitas, sem precisar de uma regra em separado por breakpoint. */
.block-grid-pyramid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  max-width: 780px;
  margin: 1.5rem auto 0;
}
.block-grid-pyramid .block-card {
  flex: 1 1 210px;
  max-width: 240px;
}
.block-card-completed { background: var(--brand-light); border-color: var(--brand-border); }
.block-card-done { font-size: 0.85rem; font-weight: 600; color: var(--brand); }
.block-card-next { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }

.block-menu-back { text-align: center; margin-top: 1.5rem; }

/* Caixa flutuante de consentimento LGPD, exibida antes da tela dos blocos
   até a pessoa aceitar — cobre 70% da tela, com o fundo visível mas travado
   (o overlay captura todo clique atrás dele; não é preciso desabilitar a
   página de baixo, só ficar por cima com background sólido/semi-opaco). */
.privacy-gate-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(3, 57, 54, 0.6);
  backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  padding: 5vh 5vw;
}
.privacy-gate-box {
  width: 70vw; height: 70vh; max-width: 820px;
  background: var(--card); border-radius: 16px;
  box-shadow: 0 24px 60px rgba(3, 57, 54, 0.35);
  display: flex; flex-direction: column; overflow: hidden;
}
.privacy-gate-head { padding: 1.6rem 1.9rem 1.1rem; border-bottom: 1px solid var(--border); flex: none; }
.privacy-gate-eyebrow { font-family: var(--font-body); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand); margin: 0 0 0.5rem; }
.privacy-gate-head h2 { font-family: var(--font-title); font-size: 1.35rem; font-weight: 700; margin: 0; color: var(--text); }
.privacy-gate-body { flex: 1 1 auto; overflow-y: auto; padding: 1.4rem 1.9rem; }
.privacy-gate-body p { margin: 0 0 1rem; font-size: 0.92rem; line-height: 1.65; color: var(--text); text-align: justify; }
.privacy-gate-body a { color: var(--brand); font-weight: 600; }
.privacy-gate-doc-link { display: inline-block; font-size: 0.78rem; color: var(--brand); font-weight: 600; text-decoration: underline; }
.privacy-gate-foot { flex: none; border-top: 1px solid var(--border); padding: 1.2rem 1.9rem 1.5rem; }
.privacy-gate-actions { display: flex; justify-content: flex-end; margin-top: 0.9rem; }
/* Só o texto da declaração dentro da caixa flutuante — não mexe nos outros
   checkboxes de consentimento do formulário, que reaproveitam a mesma
   classe .consent-card-title em outros blocos. */
.privacy-gate-foot .consent-card-title { text-align: justify; font-style: italic; }
@media (max-width: 780px) {
  .privacy-gate-overlay { padding: 0; }
  .privacy-gate-box { width: 100vw; height: 100dvh; max-width: none; border-radius: 0; }
  .privacy-gate-head { padding: 1.3rem 1.25rem 0.9rem; }
  .privacy-gate-body { padding: 1.1rem 1.25rem; }
  .privacy-gate-foot { padding: 1rem 1.25rem 1.25rem; }
}

.block-complete-card { text-align: center; padding: 2.5rem 1.5rem; }
.block-complete-check {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand);
  font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.block-complete-card h2 { margin: 0 0 0.6rem; font-family: var(--font-title); }
.block-complete-card p { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* Página de apresentação (tela inicial institucional) — segue o manual de
   marca: fundo claro com cor usada como contraste estratégico (não bloco
   escuro cobrindo tudo), título em Raleway, texto corrido em Arial, e
   "tracking" (letras espaçadas, caixa alta) em rótulos/botões. */
.presentation-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh; /* se adapta à janela real do visitante, inclusive no celular */
  /* degradê sutil: o verde só se concentra perto do grafismo (canto superior
     direito) e se dissolve em branco — mantém a "leveza" do manual em vez de
     um bloco de cor cobrindo a tela toda. */
  background: radial-gradient(140% 100% at 100% 0%, var(--brand-light) 0%, #ffffff 60%);
  overflow: hidden;
}
/* fundo.png vem em traço branco, fundo transparente de verdade. O filtro SVG
   (definido inline no app.js) recolore exatamente pro Verde Nobre (#033936),
   usando só a forma/alpha da imagem. */
.presentation-hero-deco { position: absolute; right: 30px; top: 50%; transform: translateY(-50%); width: 486px; height: auto; opacity: 0.95; pointer-events: none; }
.presentation-logo { height: 68px; width: auto; display: block; flex: none; }
/* Grid de 3 colunas (logo | menu | ação) ocupando a LARGURA TOTAL da janela
   (sem max-width) — assim o logo fica na borda esquerda da página, a
   engrenagem na borda direita, e o menu centralizado entre os dois. Um
   max-width aqui limitaria a barra a uma coluna central, deixando a
   engrenagem "presa" antes da borda real em telas largas. */
.presentation-nav {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
  padding: 22px 48px;
}
/* padding-right em % (tentativa anterior) dependia da largura da faixa do
   meio, que varia com logo/engrenagem — na prática quase não deslocava.
   transform com valor fixo em px é visível e previsível em qualquer largura. */
.presentation-nav-links { display: flex; align-items: center; justify-content: center; gap: 30px; transform: translateX(-220px); }
.presentation-navlink { color: var(--text); font-size: 0.85rem; font-weight: 600; font-family: var(--font-body); background: none; border: none; cursor: pointer; padding: 0; }
.presentation-navlink:hover { color: var(--brand); }
.presentation-btn-nav {
  background: var(--brand); color: #fff; border: 1px solid var(--brand);
  padding: 10px 20px; font-size: 0.78rem; font-weight: 700; border-radius: 8px; cursor: pointer;
  font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.18em;
}
.presentation-btn-nav:hover { background: var(--brand-medium); border-color: var(--brand-medium); }
.presentation-nav-actions { display: flex; align-items: center; gap: 10px; justify-self: end; }
.presentation-btn-icon {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; flex: none;
  background: var(--brand); color: #fff; border: 1px solid var(--brand);
  border-radius: 8px; cursor: pointer;
}
.presentation-btn-icon:hover { background: var(--brand-medium); border-color: var(--brand-medium); }
/* max-width igual ao da nav, pra o texto do hero alinhar com o logo acima —
   mas SEM margin:auto, pra não centralizar o bloco: o conteúdo fica ancorado
   à esquerda, e é o .presentation-hero-content (mais estreito, também sem
   auto-centralização) que controla a largura confortável de leitura. */
.presentation-hero-inner { position: relative; z-index: 2; max-width: 1600px; margin: 0 auto; padding: 64px 48px 110px; flex: 1 1 auto; display: flex; align-items: center; width: 100%; box-sizing: border-box; }
.presentation-hero-content { max-width: 720px; }
.presentation-badge {
  display: inline-block; background: var(--brand-light); border: 1px solid var(--brand-border);
  color: var(--brand); font-family: var(--font-body); font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.18em; padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.presentation-hero-title { margin: 0 0 18px; font-family: var(--font-title); font-size: 2.6rem; line-height: 1.18; }
.presentation-hero-title span { display: block; }
.presentation-hero-title .line1 { color: var(--brand); font-weight: 800; }
.presentation-hero-title .line2 { color: var(--brand-medium); font-weight: 600; }
.presentation-hero-desc { margin: 0 0 32px; font-family: var(--font-body); font-size: 1rem; line-height: 1.6; color: var(--muted); max-width: 520px; }
.presentation-hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.presentation-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.18em;
  cursor: pointer; white-space: nowrap; border: 1px solid transparent;
}
.presentation-btn-onlight { background: var(--brand); color: #fff; border-color: var(--brand); }
.presentation-btn-onlight:hover { background: var(--brand-medium); border-color: var(--brand-medium); }
.presentation-btn-outline-onlight { background: transparent; color: var(--brand); border-color: var(--brand); }
.presentation-btn-outline-onlight:hover { background: var(--brand-light); }
.presentation-btn-dark { background: var(--brand); color: #fff; border-color: var(--brand); }
.presentation-btn-dark:hover { background: var(--brand-medium); border-color: var(--brand-medium); }

.presentation-section { padding: 80px 48px 40px; }
.presentation-section-inner { max-width: 860px; margin: 0 auto; text-align: center; }
.presentation-eyebrow {
  display: inline-block; background: var(--brand-light); border: 1px solid var(--brand-border);
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brand); padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}
.presentation-section h2 { margin: 0 0 16px; font-family: var(--font-title); font-size: 1.6rem; font-weight: 700; color: var(--text); line-height: 1.3; }
.presentation-section p { margin: 0; font-family: var(--font-body); font-size: 0.95rem; line-height: 1.75; color: var(--muted); }

/* Seção de objetivos: enxuta e calma — menos respiro vertical que as outras,
   só o rótulo e um parágrafo curto. */
.presentation-section-slim { padding: 44px 48px; }
.presentation-section-slim .presentation-section-inner { max-width: 760px; }

.presentation-block-grid { display: flex; flex-wrap: nowrap; justify-content: center; gap: 14px; max-width: 1200px; margin: 28px auto 0; }
.presentation-block-card { flex: 1 1 0; min-width: 0; text-align: center; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 15px; }
.presentation-block-number { display: block; font-family: var(--font-body); font-size: 0.64rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); margin-bottom: 4px; }
.presentation-block-title { display: block; font-family: var(--font-title); font-size: 0.85rem; font-weight: 700; color: var(--text); margin-bottom: 4px; line-height: 1.3; }
.presentation-block-desc { display: block; font-family: var(--font-body); font-size: 0.7rem; line-height: 1.45; color: var(--muted); }

.presentation-sobre { background: var(--bg); padding: 32px 48px; }

.presentation-card-wrap { background: #fff; padding: 0 48px 88px; }
.presentation-card {
  max-width: 820px; margin: 0 auto; background: var(--brand-light); border: 1px solid var(--brand-border);
  border-radius: var(--radius); padding: 28px 32px;
}
.presentation-card p:first-child { margin: 0 0 10px; font-family: var(--font-title); font-size: 1.05rem; font-weight: 700; color: var(--text); }
.presentation-card p { margin: 0 0 22px; font-family: var(--font-body); font-size: 0.88rem; line-height: 1.65; color: #4a5250; }

/* Celular: menu detalhado (Sobre/Objetivos/Como Funciona) some pra não
   sobrepor o logo — a página é de rolagem única, dá pra chegar em tudo só
   descendo. Blocos passam de 5 numa linha só (espremidos) pra 2 por linha. */
@media (max-width: 780px) {
  .presentation-nav-links { display: none; }
  .presentation-hero-inner { padding: 48px 24px 72px; }
  .presentation-section, .presentation-section-slim, .presentation-sobre, .presentation-card-wrap { padding-left: 24px; padding-right: 24px; }
  /* só a opacidade — no celular a imagem cobre quase a tela toda (mesma
     largura fixa de 540px do desktop) e fica atrás do título/parágrafo;
     baixando a opacidade o texto continua legível sem mexer no
     tamanho/posição, que é coisa pra resolver depois, à parte. */
  .presentation-hero-deco { opacity: 0.05; }
}
@media (max-width: 640px) {
  .presentation-block-grid { flex-wrap: wrap; }
  .presentation-block-card { flex: 1 1 45%; }
}

/* Painel administrativo */
.admin-login-card { max-width: 420px; margin: 2rem auto; }
.admin-full-width { width: 100%; }
.admin-subheading { margin-top: 1.5rem; margin-bottom: 0.75rem; font-size: 0.95rem; }
.admin-checkbox-group { display: flex; flex-direction: column; gap: 0.5rem; }
.admin-checkbox { font-weight: 400; font-size: 0.88rem; display: flex; align-items: center; gap: 0.4rem; }
.admin-export-btn { display: inline-block; text-decoration: none; }

.live-now-card { display: flex; align-items: center; justify-content: center; gap: 0.6rem; padding: 1rem; }
.live-now-dot {
  width: 10px; height: 10px; border-radius: 50%; background: #2fa84f; flex: none;
  animation: live-now-pulse 1.6s ease-in-out infinite;
}
@keyframes live-now-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(47,168,79,0.4); }
  50% { opacity: 0.6; box-shadow: 0 0 0 4px rgba(47,168,79,0); }
}
.live-now-value { font-size: 1.4rem; font-weight: 700; color: var(--brand); }
.live-now-label { font-size: 0.82rem; color: var(--muted); }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.85rem;
}
.stat-tile {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.stat-value { font-size: 1.5rem; font-weight: 700; color: var(--brand); }
.stat-label { font-size: 0.78rem; color: var(--muted); }

/* Versão compacta: encolhe pra caber todos os indicadores numa linha só,
   em vez de quebrar em múltiplas linhas quando há muitos "quadrinhos". */
.stat-grid-compact { grid-template-columns: repeat(auto-fit, minmax(95px, 1fr)); gap: 0.5rem; }
.stat-grid-compact .stat-tile { padding: 0.6rem 0.5rem; gap: 0.15rem; align-items: center; text-align: center; }
.stat-grid-compact .stat-value { font-size: 1.15rem; }
.stat-grid-compact .stat-label { font-size: 0.66rem; line-height: 1.25; }

.admin-table-scroll { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.admin-table th, .admin-table td { text-align: left; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
.admin-table th { color: var(--muted); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.03em; }
.admin-table-compact th, .admin-table-compact td { white-space: normal; }
.admin-detail-cell { white-space: normal; font-size: 0.75rem; color: var(--muted); max-width: 320px; word-break: break-word; }

/* Painel: layout geral e navegação por abas */
.admin-main { max-width: 1080px; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }
.admin-tabs {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  gap: 0.3rem;
  overflow-x: auto;
  padding: 0.75rem 1.25rem 0;
}
.admin-tab {
  flex: none;
  padding: 0.5rem 0.9rem;
  border-radius: 8px 8px 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border);
  border-bottom: none;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.admin-tab.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.admin-loading { text-align: center; color: var(--muted); padding: 2rem 0; font-size: 0.9rem; }
.admin-hint { font-size: 0.8rem; color: var(--muted); margin: 0.4rem 0 0; }
.admin-mt { margin-top: 1rem; }
.admin-link-btn {
  background: none; border: none; padding: 0; font: inherit; font-weight: 600;
  color: var(--brand); text-decoration: underline; cursor: pointer; margin-right: 0.75rem;
}
.admin-badge {
  display: inline-block; font-size: 0.62rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.03em; color: var(--brand); background: var(--brand-light);
  border-radius: 999px; padding: 0.1rem 0.5rem; vertical-align: middle;
}

.admin-progress { height: 10px; background: var(--border); border-radius: 999px; overflow: hidden; margin: 0.75rem 0; }
.admin-progress .progress-fill { background: var(--brand); }

.funnel { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; justify-content: center; padding: 1rem 0; }
.funnel-step {
  display: flex; flex-direction: column; align-items: center; gap: 0.2rem;
  border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.4rem; min-width: 120px;
}
.funnel-step-final { border-color: var(--brand); background: var(--brand-light); }
.funnel-value { font-size: 1.4rem; font-weight: 700; color: var(--brand); }
.funnel-label { font-size: 0.75rem; color: var(--muted); }
.funnel-arrow { font-size: 0.78rem; color: var(--muted); white-space: nowrap; }

.chart-box { position: relative; height: 260px; }
.chart-box-tall { height: 220px; }

.admin-toolbar { display: flex; gap: 0.6rem; margin-bottom: 1rem; flex-wrap: wrap; align-items: center; }
.admin-toolbar input { flex: 1 1 220px; }
.admin-toolbar-spacer { flex: 1 1 auto; }
.admin-pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1rem; }

.admin-danger-btn { background: #fdecea; border-color: #f3b7b1; color: var(--danger); }
.admin-danger-btn:hover { background: #fbdcd8; }
.admin-danger-link { color: var(--danger); }
.reset-stats-bar { text-align: right; margin-top: 0.75rem; }

.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center; z-index: 100; padding: 1rem;
}
.modal-box {
  background: var(--card); border-radius: var(--radius); padding: 1.5rem;
  max-width: 380px; width: 100%; box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
.modal-box h3 { margin-top: 0; }
.modal-cancel-btn { display: block; margin: 0.75rem auto 0; }

.admin-inline-form { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; padding: 0.5rem 0; }
.admin-inline-form input[type=password] { width: auto; flex: 1 1 220px; }
.admin-reset-row td { border-bottom: 1px solid var(--border); background: var(--bg); }
.admin-row-actions { white-space: nowrap; }

.brazil-map-wrap { max-width: 460px; margin: 0.5rem auto 0; }
.brazil-map-wrap svg { width: 100%; height: auto; display: block; }
.brazil-map-wrap svg path { transition: fill 0.15s ease; }
.brazil-map-wrap svg path:hover { fill-opacity: 0.85; }
.brazil-map-legend { display: flex; align-items: center; justify-content: center; gap: 0.6rem; flex-wrap: wrap; font-size: 0.75rem; color: var(--muted); margin-top: 0.5rem; }
.brazil-map-legend-gradient { display: inline-block; width: 90px; height: 10px; border-radius: 999px; background: linear-gradient(to right, rgb(176,216,209), rgb(3,57,54)); }
.brazil-map-legend-none { display: inline-flex; align-items: center; gap: 0.3rem; margin-left: 0.5rem; }
.brazil-map-legend-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: #e2e5e3; border: 1px solid var(--border); }

/* Tela de agradecimento / censo encerrado */
.thank-you-card { text-align: center; padding: 3rem 1.5rem; }
.thankyou-info-grid { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.75rem; text-align: left; max-width: 480px; margin-left: auto; margin-right: auto; }
.thankyou-info-card { border-radius: var(--radius); padding: 1rem 1.1rem; display: flex; gap: 0.75rem; align-items: flex-start; }
.thankyou-info-card .info-icon { font-size: 1.3rem; line-height: 1; flex: none; }
.thankyou-info-title { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.2rem; color: var(--text); }
.thankyou-info-desc { display: block; font-size: 0.83rem; color: var(--muted); }
.thankyou-info-green { background: var(--brand-light); border: 1px solid var(--brand-border); }
.thankyou-info-amber { background: oklch(0.95 0.04 60); border: 1px solid oklch(0.8 0.09 60); }
.thankyou-info-neutral { background: oklch(0.95 0.02 250); border: 1px solid oklch(0.85 0.05 250); }
