/* ==========================================================================
   Rastro Zero · Grupo Rendering — identidade visual aplicada ao canal
   Paleta estrita da marca + tons derivados apenas dela (ver DESIGN.md)
   Criação: Carlos Bitencourt
   ========================================================================== */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 88% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  /* Núcleo da marca */
  --verde: #437441;
  --mata: #13763D;
  --broto: #8ABD48;
  --laco: #6EBE3B;
  --ouro: #EBB200;
  --ocre: #B47C03;
  /* Derivadas */
  --noite: #16281A;
  --noite-2: #1F3A22;
  --noite-3: #2A4A2C;
  --tinta: #1C2E1C;
  --musgo: #4A5E48;
  --verde-escuro: #2F5A2E;
  --papel: #F8F5EA;
  --papel-2: #F1EDDF;
  --nevoa: #E9F0E1;
  --linha: #DCE3D2;
  --ouro-claro: #FCF0C8;
  --ocre-escuro: #7A5402;
  --branco: #FFFFFF;

  --f-display: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --r: 22px;
  --r-md: 18px;
  --r-sm: 14px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --sombra: 0 1px 1px rgba(22, 40, 26, .04), 0 8px 24px -8px rgba(22, 40, 26, .16), 0 30px 60px -30px rgba(22, 40, 26, .22);
  --sombra-sm: 0 1px 2px rgba(22, 40, 26, .06), 0 6px 16px -10px rgba(22, 40, 26, .25);
}

/*icons:start*/
:root {
  --mi-arrow-right: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M5 12h14%22/%3E %3Cpath d=%22m12 5 7 7-7 7%22/%3E%3C/svg%3E");
  --mi-copy: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect width=%2214%22 height=%2214%22 x=%228%22 y=%228%22 rx=%222%22 ry=%222%22/%3E %3Cpath d=%22M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2%22/%3E%3C/svg%3E");
  --mi-file-chart-column: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z%22/%3E %3Cpath d=%22M14 2v5a1 1 0 0 0 1 1h5%22/%3E %3Cpath d=%22M8 18v-1%22/%3E %3Cpath d=%22M12 18v-6%22/%3E %3Cpath d=%22M16 18v-3%22/%3E%3C/svg%3E");
  --mi-info: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%2210%22/%3E %3Cpath d=%22M12 16v-4%22/%3E %3Cpath d=%22M12 8h.01%22/%3E%3C/svg%3E");
  --mi-locate-fixed: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cline x1=%222%22 x2=%225%22 y1=%2212%22 y2=%2212%22/%3E %3Cline x1=%2219%22 x2=%2222%22 y1=%2212%22 y2=%2212%22/%3E %3Cline x1=%2212%22 x2=%2212%22 y1=%222%22 y2=%225%22/%3E %3Cline x1=%2212%22 x2=%2212%22 y1=%2219%22 y2=%2222%22/%3E %3Ccircle cx=%2212%22 cy=%2212%22 r=%227%22/%3E %3Ccircle cx=%2212%22 cy=%2212%22 r=%223%22/%3E%3C/svg%3E");
  --mi-map-pin: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0%22/%3E %3Ccircle cx=%2212%22 cy=%2210%22 r=%223%22/%3E%3C/svg%3E");
  --mi-map-pinned: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M18 8c0 3.613-3.869 7.429-5.393 8.795a1 1 0 01-1.214 0C9.87 15.429 6 11.613 6 8a6 6 0 0112 0%22/%3E %3Cpath d=%22M4.474 15h-.197a1 1 0 00-.969.753l-1.097 4.35a1.5 1.5 0 001.444 1.898L20.344 22a1.5 1.5 0 001.446-1.897l-1.098-4.35a1 1 0 00-.969-.753h-.197%22/%3E %3Ccircle cx=%2212%22 cy=%228%22 r=%222%22/%3E%3C/svg%3E");
  --mi-save: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z%22/%3E %3Cpath d=%22M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7%22/%3E %3Cpath d=%22M7 3v4a1 1 0 0 0 1 1h7%22/%3E%3C/svg%3E");
  --mi-search: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22m21 21-4.34-4.34%22/%3E %3Ccircle cx=%2211%22 cy=%2211%22 r=%228%22/%3E%3C/svg%3E");
  --mi-x: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M18 6 6 18%22/%3E %3Cpath d=%22m6 6 12 12%22/%3E%3C/svg%3E");
}
/*icons:end*/

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  font-family: var(--f-display);
  font-size: 16px;
  line-height: 1.5;
  color: var(--tinta);
  background: var(--papel);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--verde); }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.005em; }
.ic { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -.2em; }
.vh, .arquivo {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
:focus-visible { outline: 3px solid var(--ouro); outline-offset: 2px; border-radius: 10px; }

.kicker {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: 12px; font-weight: 650; letter-spacing: .16em; text-transform: uppercase;
  color: var(--verde);
}
.kicker .ic { width: 14px; height: 14px; }
.lead { color: var(--musgo); font-size: 16.5px; }
.nota { color: var(--musgo); font-size: 13.5px; line-height: 1.45; }
.credito {
  font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--musgo); opacity: .75;
}

/* Ícones via máscara, para botões cujo texto o JS reescreve */
.mi::before, #gps::before, #copiar-protocolo::before, #copiar::before, #enviar::after, #botao-entrar::after,
#salvar-atendimento::before, #gerar-relatorio::before, .fechar::before {
  content: ""; width: 18px; height: 18px; flex: none; background: currentColor;
  -webkit-mask: var(--mi) center / contain no-repeat; mask: var(--mi) center / contain no-repeat;
}
#gps { --mi: var(--mi-locate-fixed); }
#copiar-protocolo, #copiar { --mi: var(--mi-copy); }
#enviar, #botao-entrar { --mi: var(--mi-arrow-right); }
#salvar-atendimento { --mi: var(--mi-save); }
#gerar-relatorio { --mi: var(--mi-file-chart-column); }
.fechar { --mi: var(--mi-x); }

/* ---------- Botões ---------- */
.enviar, .secundario {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: 16px; border: 0;
  font-weight: 650; font-size: 15.5px; letter-spacing: -.005em; text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s;
}
.enviar { background: var(--verde); color: var(--branco); box-shadow: 0 10px 22px -10px rgba(67, 116, 65, .9); }
.enviar:hover { background: var(--verde-escuro); }
.secundario { background: var(--branco); color: var(--tinta); box-shadow: inset 0 0 0 1.5px var(--linha); }
.secundario:hover { box-shadow: inset 0 0 0 1.5px var(--broto); }
.enviar:active, .secundario:active { transform: translateY(1px) scale(.99); }
.enviar:disabled, .secundario:disabled { opacity: .6; cursor: progress; }

/* ---------- Campos ---------- */
.campo { display: grid; gap: 7px; font-size: 14px; font-weight: 600; color: var(--tinta); }
.campo input, .campo textarea, .campo select, .busca input {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 14px;
  background: var(--branco); border: 1.5px solid var(--linha); font-weight: 450; font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.campo textarea { min-height: 110px; resize: vertical; line-height: 1.45; }
.campo input:focus, .campo textarea:focus, .campo select:focus, .busca input:focus {
  outline: none; border-color: var(--verde); box-shadow: 0 0 0 4px rgba(138, 189, 72, .25);
}
::placeholder { color: #8A9886; }

.erros {
  list-style: none; display: grid; gap: 6px; padding: 14px 16px; border-radius: 14px;
  background: var(--ouro-claro); color: var(--ocre-escuro); font-weight: 600; font-size: 14px;
  box-shadow: inset 0 0 0 1.5px rgba(180, 124, 3, .35);
}
.erros li { padding-left: 26px; position: relative; }
.erros li::before, p.erros::before {
  content: ""; position: absolute; left: 0; top: .15em; width: 17px; height: 17px; background: var(--ocre);
  -webkit-mask: var(--mi-info) center / contain no-repeat; mask: var(--mi-info) center / contain no-repeat;
}
p.erros { position: relative; padding-left: 42px; }
p.erros::before { left: 16px; top: 15px; }
.aviso {
  padding: 12px 16px; border-radius: 14px; background: var(--ouro-claro); color: var(--ocre-escuro);
  font-size: 14px; font-weight: 550;
}

/* ---------- Marcadores do mapa (Leaflet) ---------- */
.pino { background: none; border: 0; }
.pino i {
  position: absolute; left: 1px; top: 0; width: 26px; height: 26px; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg); background: var(--ouro); border: 3px solid var(--branco);
  box-shadow: 0 6px 14px rgba(22, 40, 26, .35);
}
.pino i::after { content: ""; position: absolute; inset: 0; margin: auto; width: 7px; height: 7px; border-radius: 50%; background: var(--noite); }
.pino.atendimento i { background: var(--broto); }
.pino.resolvida i { background: var(--verde); }
.pino.resolvida i::after { background: var(--branco); }
.pino.mentira i { background: #A9B5A4; }
.pino.ativa { z-index: 1000 !important; }
.pino.ativa i { transform: rotate(-45deg) scale(1.3); box-shadow: 0 0 0 6px rgba(235, 178, 0, .3), 0 8px 18px rgba(22, 40, 26, .45); }
.leaflet-container { font-family: var(--f-display); background: var(--nevoa); }
.leaflet-control-zoom a { color: var(--tinta) !important; }
.leaflet-bar { border: 0 !important; box-shadow: var(--sombra-sm) !important; border-radius: 12px !important; overflow: hidden; }

/* ==========================================================================
   PÁGINA PÚBLICA — app em passos, mobile-first (320–430)
   ========================================================================== */
.pagina-publica {
  --topo-h: 64px;
  --barra-h: calc(80px + env(safe-area-inset-bottom));
  --lado: max(16px, env(safe-area-inset-left));
  background: var(--papel);
  min-height: 100svh;
  -webkit-tap-highlight-color: transparent;
}
.pagina-publica button, .pagina-publica label, .pagina-publica summary, .pagina-publica a { touch-action: manipulation; }
.pagina-publica .sheet { width: min(520px, 100%); margin: 0 auto; overflow-x: clip; }
.pagina-publica h2:focus { outline: none; }
.pagina-publica ::placeholder { color: #687A65; opacity: 1; }

/* ---- Topo do app (só nos passos) ---- */
.app-topo {
  position: sticky; top: 0; z-index: 900; background: rgba(248, 245, 234, .92);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  padding: calc(10px + env(safe-area-inset-top)) var(--lado) 10px; border-bottom: 1px solid rgba(220, 227, 210, .8);
}
.app-topo-linha { width: min(488px, 100%); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.app-marca { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--verde); }
.app-marca img { width: 26px; height: 26px; }
.app-passo { font-size: 13px; font-weight: 650; color: var(--ocre-escuro); font-variant-numeric: tabular-nums; }
.progresso { width: min(488px, 100%); margin: 10px auto 0; display: flex; gap: 6px; }
.progresso i { flex: 1; height: 5px; border-radius: 9px; background: var(--linha); overflow: hidden; position: relative; }
.progresso i.feito { background: var(--verde); }
.progresso i.atual { background: linear-gradient(90deg, var(--verde) 55%, var(--linha) 55%); }

/* ---- Boas-vindas ---- */
.boas-vindas { display: grid; }
.bv-foto {
  position: relative; min-height: clamp(290px, 40svh, 380px); display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(14px + env(safe-area-inset-top)) var(--lado) 26px; color: var(--papel); overflow: hidden;
  background:
    linear-gradient(180deg, rgba(22, 40, 26, .62) 0%, rgba(22, 40, 26, .3) 30%, rgba(22, 40, 26, .55) 58%, rgba(22, 40, 26, .94) 100%),
    url("/assets/hero-m.webp") 64% 45% / cover no-repeat, var(--noite);
}
.bv-barra { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bv-barra .wordmark { width: 112px; height: auto; }
.selo-mini { width: 54px; height: 54px; flex: none; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .35)); }
.selo-mini svg { width: 100%; height: 100%; display: block; }
.bv-texto { display: grid; gap: 10px; }
.bv-texto .kicker { color: var(--ouro); text-shadow: 0 1px 10px rgba(22, 40, 26, .7); }
.bv-texto h1 { font-size: clamp(38px, 11.6vw, 54px); line-height: .95; letter-spacing: -.04em; font-weight: 750; font-stretch: 90%; text-wrap: balance; }
.bv-texto h1 em { display: block; color: var(--ouro); letter-spacing: -.02em; }
.bv-corpo {
  position: relative; display: grid; gap: 14px; padding: 22px var(--lado) 22px; background: var(--papel);
  border-radius: 26px 26px 0 0; margin-top: -18px;
}
.bv-lead { font-size: 16px; color: var(--musgo); line-height: 1.5; }
.bv-passos { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bv-passos li { display: grid; gap: 2px; padding: 12px 10px; border-radius: 16px; background: var(--branco); box-shadow: inset 0 0 0 1px var(--linha); }
.bv-passos li > span { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--nevoa); color: var(--verde); margin-bottom: 6px; }
.bv-passos strong { font-size: 14.5px; letter-spacing: -.01em; }
.bv-passos small { font-size: 12px; color: var(--musgo); line-height: 1.3; }
.atalho-odor {
  display: none; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; border: 0; border-radius: 16px;
  background: transparent; color: var(--verde-escuro); font-weight: 650; font-size: 15px;
}
.atalho-odor .ic { color: var(--ocre); }
.atalho-odor span { color: var(--musgo); font-weight: 500; }
.atalho-odor:active { background: var(--nevoa); }

/* Situação da fábrica */
.fabrica { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 18px; background: var(--branco); box-shadow: inset 0 0 0 1px var(--linha); }
.fabrica-luz { width: 12px; height: 12px; margin-top: 5px; border-radius: 50%; flex: none; background: #A9B5A4; box-shadow: 0 0 0 5px rgba(169, 181, 164, .25); }
.fabrica.funcionando .fabrica-luz { background: var(--laco); box-shadow: 0 0 0 5px rgba(110, 190, 59, .22); }
.fabrica.parada .fabrica-luz { background: var(--ouro); box-shadow: 0 0 0 5px rgba(235, 178, 0, .22); }
@media (prefers-reduced-motion: no-preference) { .fabrica.funcionando .fabrica-luz { animation: pulsar 2.4s ease-out infinite; } }
@keyframes pulsar { 0% { box-shadow: 0 0 0 0 rgba(110, 190, 59, .5); } 100% { box-shadow: 0 0 0 12px rgba(110, 190, 59, 0); } }
.fabrica-estado { font-weight: 700; font-size: 15px; }
.fabrica-nota { color: var(--musgo); font-size: 13.5px; line-height: 1.4; margin-top: 2px; }
.fabrica-quando { color: var(--musgo); font-size: 12.5px; margin-top: 4px; }

/* Rodapé (só na boas-vindas) */
.rodape { background: var(--noite); color: var(--papel); padding: 22px var(--lado) calc(var(--barra-h) + 18px); }
.rodape-alerta { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 16px; background: rgba(235, 178, 0, .1); box-shadow: inset 0 0 0 1px rgba(235, 178, 0, .28); }
.alerta-icone { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--ouro); color: var(--noite); flex: none; }
.rodape-alerta strong { color: var(--ouro); font-size: 14px; }
.rodape-alerta p { font-size: 13.5px; color: rgba(248, 245, 234, .82); line-height: 1.45; margin-top: 2px; }
.rodape-base { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.rodape-tag { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: rgba(248, 245, 234, .7); }
.rodape-link { color: var(--papel); font-weight: 600; font-size: 14px; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 99px; box-shadow: inset 0 0 0 1px rgba(248, 245, 234, .25); }
.rodape .credito { margin-top: 14px; color: rgba(248, 245, 234, .55); }

/* ---- Passos ---- */
#form { display: grid; gap: 14px; padding: 16px var(--lado) calc(var(--barra-h) + 20px); }
.passo { display: grid; gap: 14px; align-content: start; }
.passo-cab { display: grid; gap: 4px; }
.passo-k { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ocre-escuro); }
.passo h2 { font-size: clamp(27px, 8vw, 32px); line-height: 1.02; letter-spacing: -.035em; font-weight: 750; font-stretch: 90%; }
.passo h2 em { color: var(--verde); }
.passo-sub { color: var(--musgo); font-size: 15px; line-height: 1.4; }
.modo-odor { display: none; }
.modo-odor-ativo .modo-odor { display: inline; }
.modo-odor-ativo .modo-material { display: none; }

.erros { position: relative; }
.mapa-box { position: relative; border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 1px var(--linha), var(--sombra-sm); background: var(--nevoa); }
#mapa { width: 100%; height: clamp(240px, calc(100svh - 500px), 520px); }
.mapa-dica {
  position: absolute; left: 12px; top: 12px; z-index: 500; pointer-events: none;
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 99px;
  background: rgba(22, 40, 26, .88); color: var(--papel); font-size: 13px; font-weight: 600;
}
.mapa-dica .ic { color: var(--ouro); width: 15px; height: 15px; }
.mapa-box:has(.leaflet-marker-icon) .mapa-dica { opacity: 0; transition: opacity .3s; }
.mapa-box .leaflet-control-zoom a { width: 44px !important; height: 44px !important; line-height: 44px !important; font-size: 20px !important; }
.mapa-box .leaflet-control-attribution { font-size: 10px; }
.gps-botao {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; border: 0; border-radius: 18px;
  background: var(--noite); color: var(--papel); font-weight: 650; font-size: 16px; box-shadow: 0 10px 22px -12px rgba(22, 40, 26, .9);
}
.gps-botao::before { content: ""; width: 20px; height: 20px; background: var(--ouro); -webkit-mask: var(--mi-locate-fixed) center / contain no-repeat; mask: var(--mi-locate-fixed) center / contain no-repeat; }
.gps-botao:disabled { opacity: .75; }
.local-texto {
  position: relative; padding: 12px 14px 12px 44px; border-radius: 16px; background: var(--nevoa);
  font-size: 14px; color: var(--verde-escuro); font-weight: 550; line-height: 1.4;
}
.local-texto::before { content: ""; position: absolute; left: 14px; top: 12px; width: 20px; height: 20px; background: var(--verde); -webkit-mask: var(--mi-map-pin) center / contain no-repeat; mask: var(--mi-map-pin) center / contain no-repeat; }

.so-odor { display: flex; gap: 14px; align-items: center; min-height: 64px; padding: 12px 14px; border-radius: 18px; cursor: pointer; background: var(--branco); box-shadow: inset 0 0 0 1.5px var(--linha); position: relative; }
.so-odor input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chave { width: 50px; height: 30px; border-radius: 99px; background: #C9D3C2; position: relative; flex: none; transition: background .25s; }
.chave::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--branco); box-shadow: 0 2px 6px rgba(22, 40, 26, .3); transition: transform .25s var(--ease); }
.so-odor input:checked + .chave { background: var(--verde); }
.so-odor input:checked + .chave::after { transform: translateX(20px); }
.so-odor input:focus-visible + .chave { outline: 3px solid var(--ouro); outline-offset: 2px; }
.so-odor:has(input:checked) { background: var(--nevoa); box-shadow: inset 0 0 0 1.5px var(--broto); }
.so-odor strong { display: block; font-size: 15px; }
.so-odor small { display: block; color: var(--musgo); font-size: 13px; line-height: 1.35; margin-top: 1px; }

/* Foto */
.foto-caixa { display: grid; gap: 12px; }
.visor {
  position: relative; height: clamp(240px, calc(100svh - 470px), 460px); border-radius: 22px; overflow: hidden; color: var(--papel);
  background: radial-gradient(120% 90% at 30% 15%, rgba(138, 189, 72, .22), transparent 60%), var(--noite);
}
.visor::before, .visor::after { content: ""; position: absolute; width: 44px; height: 44px; border: 3px solid var(--ouro); z-index: 2; pointer-events: none; }
.visor::before { left: 16px; top: 16px; border-right: 0; border-bottom: 0; border-radius: 12px 0 0 0; }
.visor::after { right: 16px; bottom: 16px; border-left: 0; border-top: 0; border-radius: 0 0 12px 0; }
.visor-guia { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; gap: 8px; padding: 28px; border: 0; background: transparent; color: inherit; }
.visor-icone { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(248, 245, 234, .1); box-shadow: inset 0 0 0 1px rgba(248, 245, 234, .22); color: var(--ouro); margin-bottom: 4px; }
.visor-icone .ic { width: 28px; height: 28px; }
.visor-guia strong { font-size: 18px; letter-spacing: -.01em; }
.visor-guia span:last-child { font-size: 14px; color: rgba(248, 245, 234, .78); }
#preview { width: 100%; height: 100%; object-fit: cover; }
.foto-ok, .remover-foto { display: none; }
.visor:has(#preview:not([hidden])) .visor-guia { display: none; }
.visor:has(#preview:not([hidden]))::before, .visor:has(#preview:not([hidden]))::after { border-color: var(--branco); }
.visor:has(#preview:not([hidden])) .foto-ok {
  display: inline-flex; position: absolute; left: 14px; bottom: 14px; z-index: 3; align-items: center; gap: 6px;
  padding: 8px 12px 8px 10px; border-radius: 99px; background: var(--laco); color: var(--noite); font-size: 13px; font-weight: 700;
}
.visor:has(#preview:not([hidden])) .remover-foto {
  display: grid; place-items: center; position: absolute; right: 12px; top: 12px; z-index: 3; width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: rgba(22, 40, 26, .78); color: var(--papel); backdrop-filter: blur(6px);
}
.dicas { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; }
.dicas li { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 550; color: var(--musgo); padding: 7px 12px; border-radius: 99px; background: var(--branco); box-shadow: inset 0 0 0 1px var(--linha); }
.dicas .ic { width: 15px; height: 15px; color: var(--verde); }
.foto-acoes { display: grid; gap: 10px; }
.foto-acoes button { min-height: 58px; font-size: 16px; border-radius: 18px; }
.com-foto-t { display: none; }
.foto-caixa:has(#preview:not([hidden])) .foto-acoes { grid-template-columns: 1fr 1fr; }
.foto-caixa:has(#preview:not([hidden])) .foto-acoes button { min-height: 52px; font-size: 15px; }
.foto-caixa:has(#preview:not([hidden])) .com-foto-t { display: inline; }
.foto-caixa:has(#preview:not([hidden])) .sem-foto-t { display: none; }
.foto-caixa:has(#preview:not([hidden])) #abrir-camera { background: var(--branco); color: var(--tinta); box-shadow: inset 0 0 0 1.5px var(--linha); }

/* Relato */
fieldset { border: 0; display: grid; gap: 10px; min-width: 0; }
legend { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--musgo); margin-bottom: 10px; }
.tipos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tipos label {
  position: relative; display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 10px 12px; border-radius: 16px;
  background: var(--branco); box-shadow: inset 0 0 0 1.5px var(--linha); font-weight: 600; font-size: 15px; cursor: pointer; line-height: 1.2;
  transition: background .2s, box-shadow .2s, color .2s;
}
.tipos label.largo { grid-column: 1 / -1; }
.tipos input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #9DAA97; flex: none; display: grid; place-items: center; background: var(--branco); margin: 0; }
.tipos input::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--noite); transform: scale(0); transition: transform .2s var(--ease); }
.tipos input:checked { border-color: var(--ouro); background: var(--ouro); }
.tipos input:checked::after { transform: scale(1); }
.tipos label:has(input:checked) { background: var(--noite); color: var(--papel); box-shadow: none; }
.tipos label:has(input:focus-visible) { outline: 3px solid var(--ouro); outline-offset: 2px; }
.segmento { background: var(--branco); padding: 5px; border-radius: 18px; box-shadow: inset 0 0 0 1.5px var(--linha); gap: 5px; }
.segmento label { justify-content: center; box-shadow: none; background: transparent; min-height: 48px; }
.segmento input { position: absolute; opacity: 0; }
.segmento label:has(input:checked) { background: var(--verde); color: var(--branco); }
.campo textarea { min-height: 120px; }
.opcional { border-radius: 18px; background: var(--branco); box-shadow: inset 0 0 0 1.5px var(--linha); }
.opcional summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 16px; cursor: pointer; font-weight: 600; font-size: 15px; color: var(--tinta); }
.opcional summary::-webkit-details-marker { display: none; }
.opcional summary .ic { color: var(--verde); }
.opcional summary .seta { margin-left: auto; color: var(--musgo); transition: transform .25s var(--ease); }
.opcional[open] summary .seta { transform: rotate(180deg); }
.opcional-corpo { display: grid; gap: 12px; padding: 0 16px 16px; }
.nota-envio { text-align: center; }

/* ---- Barra de ação ---- */
.barra-acao { display: flex; gap: 10px; padding-top: 6px; }
.barra-acao .enviar { flex: 1; min-height: 56px; font-size: 16.5px; border-radius: 18px; }
.voltar { flex: none; width: 56px; min-height: 56px; border: 0; border-radius: 18px; display: grid; place-items: center; background: var(--branco); color: var(--tinta); box-shadow: inset 0 0 0 1.5px var(--linha); }
.voltar .ic { width: 22px; height: 22px; }
#enviar::after { width: 20px; height: 20px; }

/* ---- Sucesso ---- */
.sucesso {
  min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; color: var(--papel);
  padding: calc(28px + env(safe-area-inset-top)) var(--lado) calc(20px + env(safe-area-inset-bottom));
  background: radial-gradient(120% 60% at 100% 0%, rgba(138, 189, 72, .2), transparent 55%), var(--noite);
}
.sucesso-miolo { display: grid; gap: 14px; align-content: start; }
.ok-marca { width: 68px; height: 68px; border-radius: 20px; display: grid; place-items: center; background: var(--ouro); color: var(--noite); box-shadow: 0 14px 30px -12px rgba(235, 178, 0, .7); }
.ok-marca .ic { width: 32px; height: 32px; stroke-width: 2.6; }
.sucesso .kicker { color: var(--broto); }
.sucesso h2 { font-size: clamp(34px, 10.5vw, 42px); line-height: 1; letter-spacing: -.035em; font-weight: 750; font-stretch: 90%; }
.sucesso h2 em { color: var(--ouro); }
.sucesso-sub { color: rgba(248, 245, 234, .82); font-size: 15.5px; }
.protocolo-caixa { display: grid; gap: 12px; padding: 16px; border-radius: 20px; background: rgba(248, 245, 234, .07); box-shadow: inset 0 0 0 1px rgba(248, 245, 234, .16); }
.protocolo small { display: block; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: rgba(248, 245, 234, .7); }
.protocolo strong { font-size: clamp(21px, 6.6vw, 26px); letter-spacing: .02em; font-variant-numeric: tabular-nums; color: var(--branco); word-break: break-all; }
.sucesso .secundario { background: rgba(248, 245, 234, .12); color: var(--papel); box-shadow: inset 0 0 0 1px rgba(248, 245, 234, .25); min-height: 50px; }
.linha-tempo { list-style: none; display: grid; padding: 4px 0 0 4px; }
.linha-tempo li { position: relative; padding: 0 0 16px 28px; display: grid; }
.linha-tempo li::before { content: ""; position: absolute; left: 0; top: 4px; width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(248, 245, 234, .45); }
.linha-tempo li::after { content: ""; position: absolute; left: 5.5px; top: 20px; bottom: 2px; width: 1px; background: rgba(248, 245, 234, .25); }
.linha-tempo li:last-child { padding-bottom: 0; }
.linha-tempo li:last-child::after { display: none; }
.linha-tempo li.feito::before { background: var(--laco); box-shadow: 0 0 0 4px rgba(110, 190, 59, .25); }
.linha-tempo strong { font-size: 15px; }
.linha-tempo span { font-size: 13.5px; color: rgba(248, 245, 234, .72); }
.sucesso-acoes { display: grid; gap: 14px; }
.sucesso .enviar { min-height: 56px; border-radius: 18px; font-size: 16.5px; background: var(--ouro); color: var(--noite); box-shadow: 0 10px 22px -10px rgba(235, 178, 0, .8); }
.emergencia-linha { display: flex; gap: 10px; align-items: center; font-size: 13.5px; color: rgba(248, 245, 234, .82); }
.emergencia-linha .ic { color: var(--ouro); }
.sucesso .credito { color: rgba(248, 245, 234, .5); text-align: center; }

/* ==========================================================================
   Modo app (passos.js ligado)
   ========================================================================== */
.com-passos .barra-acao {
  position: fixed; z-index: 950; left: 0; right: 0; bottom: 0; margin: 0 auto; width: auto; max-width: 520px;
  padding: 12px var(--lado) calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(248, 245, 234, 0), rgba(248, 245, 234, .94) 28%, var(--papel));
  transform: translateY(calc(-1 * var(--teclado, 0px)));
}
.com-passos .teclado-aberto .barra-acao { padding-bottom: 8px; }
.com-passos .passo, .com-passos .app-topo, .com-passos .boas-vindas, .com-passos .barra-acao > * { display: none; }
.com-passos [data-tela="inicio"] .boas-vindas { display: grid; }
.com-passos [data-tela="inicio"] #comecar { display: inline-flex; }
.com-passos [data-tela="inicio"] .barra-acao { flex-wrap: wrap; gap: 2px; padding-top: 18px; }
.com-passos [data-tela="inicio"] #so-odor-atalho { display: inline-flex; }
.pagina-publica[data-tela="inicio"] .rodape { padding-bottom: calc(var(--barra-h) + 70px); }
.com-passos [data-tela="inicio"] #comecar { background: var(--ouro); color: var(--noite); box-shadow: 0 12px 26px -12px rgba(235, 178, 0, .9); }
.com-passos [data-tela="inicio"] #form { padding: 0; }
.com-passos [data-tela="1"] .app-topo, .com-passos [data-tela="2"] .app-topo, .com-passos [data-tela="3"] .app-topo { display: block; }
.com-passos [data-tela="1"] .passo[data-passo="1"],
.com-passos [data-tela="2"] .passo[data-passo="2"],
.com-passos [data-tela="3"] .passo[data-passo="3"] { display: grid; }
.com-passos [data-tela="1"] #voltar, .com-passos [data-tela="2"] #voltar, .com-passos [data-tela="3"] #voltar { display: grid; }
.com-passos [data-tela="1"] #continuar, .com-passos [data-tela="2"] #continuar { display: inline-flex; }
.com-passos [data-tela="3"] #enviar { display: inline-flex; }
.com-passos [data-tela="ok"] { background: var(--noite); }
@media (prefers-reduced-motion: no-preference) {
  .com-passos .passo { animation: entrar .32s var(--ease) both; }
  .com-passos .sucesso-miolo, .com-passos .bv-corpo { animation: subir .4s var(--ease) both; }
  .com-passos [data-direcao="tras"] .passo { animation-name: entrar-tras; }
  .com-passos .ok-marca { animation: carimbo .5s .1s var(--ease) both; }
}
@keyframes entrar { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes entrar-tras { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
@keyframes subir { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes carimbo { from { opacity: 0; transform: scale(.6) rotate(-8deg); } to { opacity: 1; transform: none; } }
/* sem passos.js: tudo empilhado, só o botão de envio */
html:not(.com-passos) #comecar, html:not(.com-passos) #continuar, html:not(.com-passos) #voltar, html:not(.com-passos) .app-topo, html:not(.com-passos) #so-odor-atalho { display: none; }
html:not(.com-passos) .barra-acao .enviar { flex: 1; }

/* Telas muito baixas ou estreitas */
@media (max-width: 359px) {
  .pagina-publica { --lado: 14px; }
  .bv-passos { gap: 6px; }
  .bv-passos li { padding: 10px 8px; }
  .bv-passos small { display: none; }
  .tipos label { font-size: 14px; padding: 10px; gap: 8px; }
}
@media (max-height: 640px) {
  .bv-foto { min-height: 300px; }
  #mapa, .visor { height: 210px; }
  .passo-k { display: none; }
  #form { padding-top: 12px; }
}

/* ==========================================================================
   PAINEL DA EQUIPE — desktop
   ========================================================================== */
.pagina-painel { background: var(--papel); min-height: 100vh; }

/* Login */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr; }
.login-arte { display: none; }
.login-card {
  align-self: center; justify-self: center; width: min(420px, 100% - 32px); margin: 32px 0; display: grid; gap: 16px;
  background: var(--branco); padding: 32px 28px; border-radius: 26px; box-shadow: var(--sombra);
}
.brand-login { gap: 12px; }
.brand-login .marca-img { width: 44px; height: 44px; }
.brand-login span { font-size: 12px; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; color: var(--verde); }
.login-card h1 { font-size: 40px; line-height: 1; letter-spacing: -.04em; font-weight: 750; font-stretch: 90%; }
.login-card h1 em { color: var(--verde); }
.login-card .enviar { width: 100%; }
.login-nota { display: flex; gap: 8px; align-items: center; }
.login-nota .ic { color: var(--verde); }
.login-card .credito { text-align: center; margin-top: 4px; }
@media (min-width: 900px) {
  .login-wrap { grid-template-columns: 1.15fr 1fr; }
  .login-arte {
    display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden;
    padding: 40px 48px; color: var(--papel);
    background: linear-gradient(180deg, rgba(22, 40, 26, .5), rgba(22, 40, 26, .15) 35%, rgba(22, 40, 26, .9)), url("/assets/hero-m.webp") 60% 50% / cover no-repeat, var(--noite);
  }
  .login-arte-topo img { width: 150px; height: auto; }
  .selo-medio { display: block; width: 96px; height: 96px; margin-bottom: 26px; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .35)); }
  .login-frase { font-size: clamp(48px, 5vw, 76px); line-height: .95; letter-spacing: -.045em; font-weight: 750; font-stretch: 90%; }
  .login-frase em { color: var(--ouro); }
  .login-sub { margin-top: 16px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: rgba(248, 245, 234, .7); }
  .login-card { box-shadow: none; background: transparent; padding: 32px 8px; }
}

/* Casca */
.casca { display: grid; grid-template-columns: 1fr; min-height: 100vh; }
.lateral { background: var(--noite); color: var(--papel); padding: 16px; display: grid; gap: 16px; align-content: start; }
.topo { display: grid; gap: 14px; }
.topo .brand .marca-img { width: 40px; height: 40px; border-radius: 12px; background: var(--papel); padding: 4px; }
.topo .brand strong { display: block; font-size: 15px; letter-spacing: -.01em; }
.topo .brand span { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(248, 245, 234, .6); }
.topo nav { display: flex; flex-wrap: wrap; gap: 4px; }
.topo nav button, .topo nav a, .nav-atual {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 0; background: transparent;
  color: rgba(248, 245, 234, .82); font-size: 14px; font-weight: 550; text-decoration: none; text-align: left;
  transition: background .2s, color .2s;
}
.topo nav button:hover, .topo nav a:hover { background: rgba(248, 245, 234, .08); color: var(--branco); }
.topo nav .ic { width: 17px; height: 17px; opacity: .85; }
.nav-atual { background: rgba(248, 245, 234, .1) !important; color: var(--branco) !important; font-weight: 650; }
.nav-atual .ic { color: var(--broto); opacity: 1 !important; }
#sair { color: rgba(248, 245, 234, .6); }

.fabrica-controle {
  display: grid; gap: 12px; padding: 14px; border-radius: 16px; background: rgba(248, 245, 234, .05);
  box-shadow: inset 0 0 0 1px rgba(248, 245, 234, .12);
}
.fabrica-controle strong { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ouro); font-weight: 700; }
#fabrica-painel-texto { font-size: 13px; line-height: 1.4; color: rgba(248, 245, 234, .82); margin-top: 6px; }
.fabrica-controle .fabrica-quando { color: rgba(248, 245, 234, .55); }
.fabrica-controle .nota { color: var(--ouro); }
.fabrica-botoes { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(0, 0, 0, .22); }
.fabrica-botoes button {
  min-height: 38px; border: 0; border-radius: 9px; background: transparent; color: rgba(248, 245, 234, .75);
  font-size: 13px; font-weight: 650; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
}
.fabrica-botoes button::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .55; }
.fabrica-botoes button[data-fabrica="funcionando"][aria-pressed="true"] { background: var(--laco); color: var(--noite); }
.fabrica-botoes button[data-fabrica="parada"][aria-pressed="true"] { background: var(--ouro); color: var(--noite); }
.fabrica-botoes button[aria-pressed="true"]::before { opacity: 1; }
.lateral > .credito { color: rgba(248, 245, 234, .4); font-size: 10.5px; }

.principal { padding: 20px 16px 24px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.principal-cab { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; justify-content: space-between; }
.principal-cab h1 { font-size: 36px; line-height: 1; letter-spacing: -.04em; font-weight: 750; font-stretch: 90%; margin-top: 4px; }
.principal-cab h1 em { color: var(--verde); }
.busca { position: relative; flex: 1 1 260px; max-width: 360px; }
.busca input { padding-left: 42px; min-height: 46px; border-radius: 99px; font-size: 14.5px; }
.busca::before {
  content: ""; position: absolute; left: 16px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); background: var(--musgo); z-index: 1;
  -webkit-mask: var(--mi-search) center / contain no-repeat; mask: var(--mi-search) center / contain no-repeat;
}
.numeros { display: flex; gap: 8px; flex-wrap: wrap; }
.numeros button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 15px; border-radius: 99px; border: 0;
  background: var(--branco); box-shadow: inset 0 0 0 1px var(--linha); font-size: 13.5px; font-weight: 600; color: var(--tinta);
  font-variant-numeric: tabular-nums; transition: background .2s, color .2s, box-shadow .2s;
}
.numeros button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--musgo); }
.numeros button:nth-child(2)::before { background: var(--ouro); }
.numeros button:nth-child(3)::before { background: var(--broto); }
.numeros button:nth-child(4)::before { background: var(--verde); }
.numeros button:nth-child(5)::before { background: #A9B5A4; }
.numeros button:hover { box-shadow: inset 0 0 0 1.5px var(--broto); }
.numeros button[aria-pressed="true"] { background: var(--noite); color: var(--papel); box-shadow: none; }
.aviso-nova { background: var(--nevoa); color: var(--verde-escuro); box-shadow: inset 0 0 0 1.5px var(--broto); font-weight: 650; }

.workspace { display: grid; gap: 14px; min-height: 0; }
.mapa-coluna { position: relative; border-radius: var(--r); overflow: hidden; background: var(--branco); box-shadow: var(--sombra-sm), 0 0 0 1px var(--linha); }
#mapa-painel { height: 360px; width: 100%; }
.legenda {
  position: absolute; left: 12px; right: 56px; width: max-content; max-width: calc(100% - 68px); bottom: 12px; z-index: 500; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 12px;
  padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .94); box-shadow: var(--sombra-sm); font-size: 12px; font-weight: 550; color: var(--musgo);
}
.legenda li { display: inline-flex; align-items: center; gap: 6px; }
.legenda li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ouro); }
.legenda .lg-atendimento::before { background: var(--broto); }
.legenda .lg-resolvida::before { background: var(--verde); }
.legenda .lg-mentira::before { background: #A9B5A4; }

.lista { display: grid; gap: 10px; align-content: start; }
.lista .item {
  display: grid; gap: 3px; text-align: left; padding: 14px 16px 14px 18px; border-radius: 18px; border: 0; background: var(--branco);
  box-shadow: var(--sombra-sm), inset 0 0 0 1px rgba(220, 227, 210, .8); position: relative; overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .2s;
}
.lista .item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--ouro); }
.lista .item.atendimento::before { background: var(--broto); }
.lista .item.resolvida::before { background: var(--verde); }
.lista .item.mentira::before { background: #A9B5A4; }
.lista .item:hover { transform: translateY(-1px); box-shadow: var(--sombra), inset 0 0 0 1px var(--linha); }
.lista .item.selecionado { box-shadow: 0 0 0 2px var(--ouro), var(--sombra); background: #FFFDF5; }
.lista .item p { font-size: 13px; color: var(--musgo); line-height: 1.4; }
.lista .item .recorte { color: var(--tinta); font-style: italic; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-topo { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 2px; }
.item-topo strong { font-size: 15px; letter-spacing: -.01em; }
.selo { flex: none; font-size: 11px; font-weight: 700; letter-spacing: .02em; padding: 4px 10px; border-radius: 99px; background: var(--ouro-claro); color: var(--ocre-escuro); }
.selo.atendimento { background: var(--nevoa); color: var(--verde-escuro); }
.selo.resolvida { background: var(--verde); color: var(--branco); }
.selo.mentira { background: var(--papel-2); color: var(--musgo); }
.vazio { padding: 28px 20px; border-radius: 18px; text-align: center; color: var(--musgo); background: var(--branco); box-shadow: inset 0 0 0 1.5px var(--linha); font-size: 14px; }
.vazio::before {
  content: ""; display: block; width: 40px; height: 40px; margin: 0 auto 10px; background: var(--broto);
  -webkit-mask: var(--mi-map-pinned) center / contain no-repeat; mask: var(--mi-map-pinned) center / contain no-repeat;
}

/* Gaveta de detalhe e equipe */
.detalhe {
  position: fixed; z-index: 2000; inset: 0; overflow-y: auto; background: var(--papel); padding: 20px 18px 28px;
  display: grid; gap: 14px; align-content: start; box-shadow: -30px 0 60px -20px rgba(22, 40, 26, .4);
}
.detalhe-topo { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.detalhe-topo h2 { font-size: 28px; line-height: 1.05; letter-spacing: -.03em; font-weight: 750; font-stretch: 90%; margin-top: 4px; }
.detalhe-topo h2 em { color: var(--verde); }
.detalhe .kicker { color: var(--ocre-escuro); letter-spacing: .1em; }
.protocolo-id { font-size: 13px; color: var(--musgo); font-variant-numeric: tabular-nums; letter-spacing: .03em; margin-top: 4px; }
.fechar {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 99px; border: 0;
  background: var(--branco); box-shadow: inset 0 0 0 1px var(--linha); font-size: 13.5px; font-weight: 600;
}
.fechar::before { width: 16px; height: 16px; }
.status-acoes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; border-radius: 16px; background: var(--branco); box-shadow: inset 0 0 0 1px var(--linha); }
.status-acoes button {
  min-height: 42px; border: 0; border-radius: 11px; background: transparent; font-size: 13.5px; font-weight: 650; color: var(--musgo);
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; transition: background .2s, color .2s;
}
.status-acoes button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ouro); }
.status-acoes [data-status="em_atendimento"]::before { background: var(--broto); }
.status-acoes [data-status="resolvida"]::before { background: var(--verde); }
.status-acoes [data-status="mentira"]::before { background: #A9B5A4; }
.status-acoes button:hover { background: var(--papel); }
.status-acoes [aria-pressed="true"] { background: var(--noite); color: var(--papel); }
.status-acoes [data-status="recebida"][aria-pressed="true"] { background: var(--ouro); color: var(--noite); }
.status-acoes [data-status="recebida"][aria-pressed="true"]::before { background: var(--noite); }
.status-acoes [data-status="em_atendimento"][aria-pressed="true"] { background: var(--broto); color: var(--noite); }
.status-acoes [data-status="em_atendimento"][aria-pressed="true"]::before { background: var(--noite); }
.status-acoes [data-status="resolvida"][aria-pressed="true"] { background: var(--verde); color: var(--branco); }
.status-acoes [data-status="resolvida"][aria-pressed="true"]::before { background: var(--branco); }
.status-acoes button:disabled { opacity: .55; }
#status-msg:empty { display: none; }
#foto-link { display: block; border-radius: 18px; overflow: hidden; box-shadow: var(--sombra-sm); background: var(--noite); }
#foto { width: 100%; max-height: 300px; object-fit: cover; }
.ficha { display: grid; background: var(--branco); border-radius: 18px; box-shadow: inset 0 0 0 1px var(--linha); padding: 4px 16px; }
.ficha > div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--linha); font-size: 13.5px; }
.ficha > div:last-child { border-bottom: 0; }
.ficha dt { color: var(--musgo); font-weight: 550; }
.ficha dd { color: var(--tinta); font-weight: 550; word-break: break-word; }
.ficha .ficha-relato dd { font-family: var(--f-serif); font-style: italic; font-size: 17px; font-weight: 400; line-height: 1.3; }
#coord { width: 100%; border: 0; background: var(--papel); border-radius: 8px; padding: 4px 8px; font-variant-numeric: tabular-nums; font-weight: 600; font-size: 13px; }
.maps-linha a { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: 14px; color: var(--verde); text-decoration: none; padding: 9px 14px; border-radius: 99px; background: var(--nevoa); }
section.atendimento { display: grid; gap: 12px; padding: 18px 16px; background: var(--branco); border-radius: 20px; box-shadow: inset 0 0 0 1px var(--linha); }
section.atendimento h3 { font-size: 20px; letter-spacing: -.02em; font-weight: 720; }
section.atendimento h3 em { color: var(--verde); }
.responsavel-foto img, .responsavel-preview { width: 96px; height: 96px; object-fit: cover; border-radius: 18px; box-shadow: 0 0 0 3px var(--branco), 0 0 0 4px var(--linha); }
#equipe .foto-acoes { grid-template-columns: 1fr 1fr; }
#form-responsavel { display: grid; gap: 12px; padding: 18px 16px; background: var(--branco); border-radius: 20px; box-shadow: inset 0 0 0 1px var(--linha); }
.lista-equipe { display: grid; gap: 8px; }
.equipe-card { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 16px; background: var(--branco); box-shadow: inset 0 0 0 1px var(--linha); }
.equipe-card img { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; }
.equipe-card strong { font-size: 15px; }
.equipe-card p { font-size: 12.5px; color: var(--musgo); }

/* Relatório */
.relatorio { position: fixed; inset: 0; z-index: 2100; overflow-y: auto; background: rgba(22, 40, 26, .55); backdrop-filter: blur(4px); padding: 16px; }
.relatorio-miolo { width: min(1180px, 100%); margin: 0 auto; background: var(--papel); border-radius: 26px; padding: 24px 20px; display: grid; gap: 16px; box-shadow: var(--sombra); }
.relatorio-filtro { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.relatorio-filtro .enviar { grid-column: 1 / -1; }
.relatorio-periodo { font-weight: 650; font-size: 15px; }
.resumo { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.resumo article { padding: 16px 18px; border-radius: 18px; background: var(--branco); box-shadow: inset 0 0 0 1px var(--linha); display: grid; gap: 2px; }
.resumo article:first-child { background: var(--noite); color: var(--papel); box-shadow: none; }
.resumo article strong { font-size: 34px; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.resumo article span { font-size: 13px; color: var(--musgo); }
.resumo article:first-child span { color: rgba(248, 245, 234, .7); }
.relatorio-acoes { display: flex; gap: 10px; flex-wrap: wrap; }
.relatorio-tabela { overflow-x: auto; border-radius: 18px; background: var(--branco); box-shadow: inset 0 0 0 1px var(--linha); }
.relatorio-tabela table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 820px; }
.relatorio-tabela th { text-align: left; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--musgo); font-weight: 650; padding: 12px 14px; background: var(--papel-2); }
.relatorio-tabela td { padding: 12px 14px; border-top: 1px solid var(--linha); vertical-align: top; }
.relatorio-tabela td p { color: var(--musgo); font-size: 12px; margin-top: 3px; }
.quem-atendeu { display: flex; gap: 8px; align-items: center; }
.quem-atendeu img { width: 30px; height: 30px; border-radius: 9px; object-fit: cover; }
.relatorio-credito { text-align: right; }

@media (min-width: 640px) {
  .detalhe { inset: 0 0 0 auto; width: min(480px, 100%); border-radius: 26px 0 0 26px; padding: 26px 24px 32px; }
  .relatorio-filtro { grid-template-columns: 1fr 1fr auto; }
  .relatorio-filtro .enviar { grid-column: auto; }
  .relatorio-miolo { padding: 30px 32px; }
}
@media (min-width: 1000px) {
  .casca { grid-template-columns: 248px 1fr; height: 100vh; }
  .lateral { padding: 22px 16px; grid-template-rows: auto 1fr auto auto; height: 100vh; position: sticky; top: 0; }
  .topo nav { flex-direction: column; flex-wrap: nowrap; margin-top: 12px; }
  .topo nav #sair { margin-top: 8px; }
  .fabrica-controle { align-self: end; }
  .principal { padding: 26px 28px; display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
  .workspace { flex: 1 1 auto; }
  .principal-cab h1 { font-size: 44px; }
  .workspace { grid-template-columns: minmax(0, 1.35fr) minmax(330px, 1fr); min-height: 0; }
  .mapa-coluna, #mapa-painel { height: 100%; min-height: 420px; }
  .lista { overflow-y: auto; padding: 2px 6px 12px 2px; min-height: 0; }
}

/* ==========================================================================
   QR — página e cartaz A4
   ========================================================================== */
.pagina-qr { background: var(--papel); }
.qr-nav-topo { background: var(--noite); color: var(--papel); }
.qr-nav-miolo { width: min(1240px, 100% - 32px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 66px; flex-wrap: wrap; }
.qr-nav-marca { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--papel); }
.qr-nav-marca img { width: 110px; height: auto; }
.qr-nav-marca span { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; padding-left: 12px; border-left: 1px solid rgba(248, 245, 234, .3); opacity: .8; }
.qr-nav-links { display: flex; gap: 4px; flex-wrap: wrap; }
.qr-nav-links a { display: inline-flex; align-items: center; gap: 7px; color: rgba(248, 245, 234, .82); text-decoration: none; font-size: 13.5px; font-weight: 550; padding: 8px 12px; border-radius: 99px; }
.qr-nav-links a:hover { background: rgba(248, 245, 234, .1); color: var(--branco); }
.qr-hero { padding: 48px 0 28px; }
.qr-hero-miolo { width: min(1240px, 100% - 32px); margin-inline: auto; display: grid; gap: 14px; }
.qr-hero h1 { font-size: clamp(42px, 7vw, 84px); line-height: .95; letter-spacing: -.045em; font-weight: 750; font-stretch: 90%; }
.qr-hero h1 em { color: var(--verde); }
.qr-hero .lead { max-width: 60ch; }
.qr-corpo { width: min(1240px, 100% - 32px); margin: 0 auto; padding-bottom: 56px; }
.qr-palco { display: grid; gap: 28px; align-items: start; }

/* O cartaz (proporção A4) */
.placa-sinalizacao {
  --u: 1cqw;
  container-type: inline-size; width: min(560px, 100%); aspect-ratio: 210 / 297; margin-inline: auto; justify-self: center;
  display: grid; grid-template-rows: 47% 1fr auto; overflow: hidden; background: var(--papel); border-radius: 6px;
  box-shadow: 0 2px 4px rgba(22, 40, 26, .08), 0 40px 80px -30px rgba(22, 40, 26, .45);
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.placa-topo {
  position: relative; color: var(--papel); padding: 6cqw 7cqw; display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(180deg, rgba(22, 40, 26, .55), rgba(22, 40, 26, .05) 35%, rgba(22, 40, 26, .7) 78%, rgba(22, 40, 26, .92)), url("/assets/hero-m.webp") 60% 55% / cover no-repeat, var(--noite);
}
.placa-logo { position: absolute; left: 7cqw; top: 6cqw; width: 25cqw; height: auto; }
.placa-selo { position: absolute; right: 6cqw; top: 5cqw; width: 15cqw; height: 15cqw; filter: drop-shadow(0 1cqw 2cqw rgba(0, 0, 0, .35)); }
.placa-chamada { font-size: 15.5cqw; line-height: .88; letter-spacing: -.05em; font-weight: 780; font-stretch: 88%; }
.placa-chamada em { color: var(--ouro); letter-spacing: -.02em; }
.placa-subchamada { margin-top: 2.6cqw; font-size: 3.1cqw; line-height: 1.35; color: rgba(248, 245, 234, .85); max-width: 70cqw; }
.placa-conteudo { display: grid; grid-template-columns: 1fr 41cqw; gap: 5cqw; align-items: center; padding: 6cqw 7cqw; }
.placa-passos { list-style: none; display: grid; gap: 4.4cqw; }
.placa-passos li { display: flex; gap: 3cqw; align-items: flex-start; }
.passo-num { width: 6.4cqw; height: 6.4cqw; border-radius: 50%; display: grid; place-items: center; background: var(--noite); color: var(--ouro); font-weight: 750; font-size: 3.3cqw; flex: none; }
.placa-passos strong { display: block; font-size: 4cqw; line-height: 1.1; letter-spacing: -.02em; }
.placa-passos div span { display: block; font-size: 2.8cqw; color: var(--musgo); line-height: 1.3; margin-top: .5cqw; }
.placa-qr { position: relative; display: grid; justify-items: center; }
.qr-moldura-escanear { width: 100%; aspect-ratio: 1; background: var(--branco); border-radius: 4cqw; padding: 2.4cqw; box-shadow: 0 0 0 .5cqw var(--noite); }
.qr-moldura-escanear img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.qr-etiqueta { margin-top: -3cqw; position: relative; background: var(--ouro); color: var(--noite); font-weight: 750; font-size: 2.3cqw; letter-spacing: .14em; text-transform: uppercase; padding: 1.2cqw 3cqw; border-radius: 99px; }
.endereco { margin-top: 2cqw; font-size: 2.2cqw; color: var(--musgo); text-align: center; word-break: break-all; font-variant-numeric: tabular-nums; }
.placa-rodape { display: grid; grid-template-columns: 1fr auto; gap: .8cqw 4cqw; align-items: center; background: var(--noite); color: rgba(248, 245, 234, .8); padding: 4cqw 7cqw 4.4cqw; font-size: 2.4cqw; }
.placa-rodape p:first-child { grid-column: 1 / -1; font-size: 3.6cqw; font-weight: 700; color: var(--papel); letter-spacing: -.01em; }
.placa-rodape p:first-child em { color: var(--ouro); }
.placa-aviso-emergencia { color: var(--ouro); font-weight: 650; text-align: right; }

/* Coluna lateral */
.qr-lado { display: grid; gap: 14px; }
.acoes-divulgacao-box { display: grid; gap: 12px; padding: 24px 22px; border-radius: 24px; background: var(--noite); color: var(--papel); box-shadow: var(--sombra); }
.acoes-divulgacao-box .kicker { color: var(--ouro); }
.divulgacao-titulo { font-size: 30px; line-height: 1.02; letter-spacing: -.035em; font-weight: 750; font-stretch: 90%; }
.divulgacao-titulo em { color: var(--ouro); }
.divulgacao-sub { color: rgba(248, 245, 234, .75); font-size: 14.5px; }
.botoes-acao-grid { display: grid; gap: 10px; margin-top: 4px; }
.acoes-divulgacao-box .enviar { background: var(--ouro); color: var(--noite); box-shadow: 0 10px 22px -10px rgba(235, 178, 0, .8); }
.acoes-divulgacao-box .secundario { background: rgba(248, 245, 234, .08); color: var(--papel); box-shadow: inset 0 0 0 1px rgba(248, 245, 234, .2); }
.botao-whatsapp { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; border-radius: 16px; text-decoration: none; font-weight: 650; font-size: 15.5px; color: var(--noite); background: var(--broto); }
.botao-whatsapp:hover { background: var(--laco); }
.acoes-divulgacao-box .aviso { background: rgba(235, 178, 0, .12); color: var(--ouro-claro); box-shadow: inset 0 0 0 1px rgba(235, 178, 0, .3); font-size: 13px; }
.card-diretriz { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 20px; background: var(--branco); box-shadow: inset 0 0 0 1px var(--linha); }
.diretriz-icone { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--nevoa); color: var(--verde); flex: none; }
.card-diretriz h3 { font-size: 16px; letter-spacing: -.01em; }
.card-diretriz p { font-size: 13.5px; color: var(--musgo); line-height: 1.45; margin-top: 3px; }
.botao-painel-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 650; font-size: 14px; color: var(--verde); text-decoration: none; }
.qr-rodape { padding-top: 0; }
.qr-rodape .rodape-base { width: min(1240px, 100% - 32px); border-top: 0; margin-top: 0; padding-top: 24px; }
.qr-rodape .credito { width: min(1240px, 100% - 32px); text-align: left; }
@media (min-width: 980px) {
  .qr-palco { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; }
  .placa-sinalizacao { width: min(600px, 100%); }
}

/* ==========================================================================
   Impressão
   ========================================================================== */
@media print {
  .no-print { display: none !important; }

  body.imprimindo-relatorio { background: #fff; }
  body.imprimindo-relatorio .casca,
  body.imprimindo-relatorio #detalhe,
  body.imprimindo-relatorio #equipe,
  body.imprimindo-relatorio #login { display: none !important; }
  body.imprimindo-relatorio #relatorio { position: static; overflow: visible; background: #fff; padding: 0; backdrop-filter: none; }
  body.imprimindo-relatorio .relatorio-miolo { box-shadow: none; border-radius: 0; padding: 0; background: #fff; width: 100%; }
  body.imprimindo-relatorio .relatorio-tabela { overflow: visible; box-shadow: none; }
  body.imprimindo-relatorio .relatorio-tabela table { min-width: 0; }
  body.imprimindo-relatorio .resumo article, body.imprimindo-relatorio tr { break-inside: avoid; }
  body.imprimindo-relatorio * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  @page { size: A4; margin: 0; }
  body.pagina-qr { background: #fff !important; margin: 0; }
  body.pagina-qr .qr-corpo, body.pagina-qr .qr-palco { width: 210mm; max-width: none; margin: 0; padding: 0; display: block; }
  body.pagina-qr .placa-sinalizacao {
    width: 210mm; height: 297mm; max-width: none; aspect-ratio: auto; margin: 0; border-radius: 0; box-shadow: none;
    break-inside: avoid; page-break-after: avoid;
  }
}
.pagina-publica #gps::before { background: var(--ouro); }

/* Continuar fica discreto até o passo ter o que precisa */
.com-passos .passo-incompleto #continuar { background: var(--nevoa); color: var(--verde-escuro); box-shadow: inset 0 0 0 1.5px var(--linha); }
.passo h2 + .passo-sub { margin-top: 2px; }
.com-passos .pagina-publica[data-tela="inicio"] .barra-acao, .com-passos [data-tela="inicio"] .barra-acao {
  background: var(--papel); border-radius: 24px 24px 0 0; box-shadow: 0 -12px 30px -14px rgba(22, 40, 26, .45);
}

/* ==========================================================================
   Novidades — status público, clima, agrupamento, foto de resolução
   ========================================================================== */

/* Link para acompanhar o protocolo na tela de sucesso */
.status-link { text-align: center; }
.status-link a {
  color: var(--ouro-claro); font-size: 14px; font-weight: 650; text-decoration: none;
  border-bottom: 1px solid rgba(252, 240, 200, .4);
}

/* Cartão de condições do ar (sucesso do odor) */
.clima-card {
  display: grid; gap: 6px; padding: 16px 18px; border-radius: var(--r-md);
  background: rgba(235, 178, 0, .1); box-shadow: inset 0 0 0 1px rgba(235, 178, 0, .3);
}
.clima-card .kicker { color: var(--ouro); }
#clima-resumo { color: var(--papel); font-size: 15px; line-height: 1.5; }
.clima-card .nota { color: rgba(248, 245, 234, .62); }

/* Página pública de acompanhamento e de transparência */
.status-wrap {
  width: min(560px, 100% - 36px); margin-inline: auto; padding: 42px 0 60px;
  display: grid; gap: 18px; align-content: start; min-height: 100dvh;
}
.status-wrap h1 { font-size: 34px; letter-spacing: -.03em; line-height: 1.05; }
#form-status { display: grid; gap: 12px; }
.status-resultado {
  display: grid; gap: 14px; padding: 20px; border-radius: var(--r);
  background: var(--noite); color: var(--papel); box-shadow: var(--sombra);
}
.status-resultado .kicker { color: var(--ouro); }
.status-resultado h2 { font-size: 24px; letter-spacing: -.02em; }
.status-resultado .nota { color: rgba(248, 245, 234, .62); }

/* Controles do mapa do painel */
.mapa-controles {
  position: absolute; top: 12px; left: 12px; z-index: 500; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center;
  padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .94); box-shadow: var(--sombra-sm);
  font-size: 12px; font-weight: 550; color: var(--musgo);
}
.mapa-controles label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.mapa-controles input[type="checkbox"] { accent-color: var(--mata); width: 15px; height: 15px; }
.mapa-controles .mini { min-height: 28px; padding: 0 10px; font-size: 12px; border-radius: 99px; }

/* Pinos de agrupamento e da fábrica */
.pino-grupo { background: none; border: 0; }
.pino-grupo b {
  position: absolute; inset: 0; display: grid; place-items: center; cursor: pointer;
  width: 40px; height: 40px; border-radius: 50%; background: var(--noite); color: var(--papel);
  border: 3px solid var(--branco); box-shadow: 0 6px 14px rgba(22, 40, 26, .35);
  font-size: 14px; font-weight: 750;
}
.pino-fabrica { background: none; border: 0; }
.pino-fabrica i {
  position: absolute; left: 1px; top: 1px; width: 26px; height: 26px; border-radius: 6px;
  background: var(--mata); border: 3px solid var(--branco); box-shadow: 0 6px 14px rgba(22, 40, 26, .4);
}
.pino-fabrica i::after { content: ""; position: absolute; inset: 0; margin: auto; width: 8px; height: 8px; background: var(--papel); }

/* Foto de resolução (antes/depois) no painel */
.resolucao-foto {
  display: grid; gap: 10px; padding: 16px; border-radius: 20px;
  background: var(--branco); box-shadow: inset 0 0 0 1px var(--linha);
}
.resolucao-foto h3 { font-size: 20px; letter-spacing: -.02em; font-weight: 720; }
.resolucao-preview img { border-radius: var(--r-sm); box-shadow: var(--sombra-sm); max-height: 240px; object-fit: cover; width: 100%; }

/* Aviso de novas denúncias vira clicável */
.aviso-nova { cursor: pointer; }

/* Alerta do cruzamento odor × fábrica */
#ficha-alerta-fabrica { font-weight: 600; }

/* Ajustes do canal público (merge) */
.sucesso .status-link a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 16px; border-radius: 16px; border-bottom: 0; color: var(--ouro-claro); box-shadow: inset 0 0 0 1px rgba(252, 240, 200, .3); width: 100%; }
.rodape-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagina-publica .status-wrap { padding: calc(32px + env(safe-area-inset-top)) 0 calc(40px + env(safe-area-inset-bottom)); }
.status-wrap h1 { font-weight: 750; font-stretch: 90%; }
.status-wrap h1 em { color: var(--verde); }
.status-wrap .enviar { width: 100%; min-height: 56px; border-radius: 18px; }
.status-wrap .credito { text-align: center; }
.status-wrap .resumo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.status-wrap .resumo > * { padding: 16px; border-radius: 18px; background: var(--branco); box-shadow: inset 0 0 0 1px var(--linha); display: grid; gap: 2px; }
.status-wrap .resumo > *:first-child { background: var(--noite); color: var(--papel); box-shadow: none; }
.status-wrap .resumo strong { font-size: 32px; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.status-wrap .resumo span { font-size: 13px; color: var(--musgo); }
.status-wrap .resumo > *:first-child span { color: rgba(248, 245, 234, .75); }

