/* =========================================================
   Sele IA — paleta oficial (manual de identidade visual)
   ========================================================= */
:root {
  /* Marca */
  --navy:        #002F8E;   /* azul navy — primario, topbar */
  --azul:        #007FFF;   /* azul vivo — CTAs, links, foco */
  --azul-suave:  #E8F1FF;   /* fundo de hover / chips */
  --lima:        #AEE046;   /* verde lima — acento, atendido */
  --lima-suave:  #F2FADC;   /* fundo de status atendido */
  --taupe:       #6C6764;   /* cinza taupe — texto secundario */

  /* Estados */
  --ok:      #5BA82F;       /* verde escuro derivado do lima */
  --ok-bg:   var(--lima-suave);
  --no:      #C0392B;
  --no-bg:   #FDECEA;
  --inc:     #B8860B;
  --inc-bg:  #FDF6E3;

  /* Superficies */
  --bg:    #F5F7FB;
  --card:  #FFFFFF;
  --linha: #E1E7F2;
  --tinta: #0F172A;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, Arial, sans-serif;
  background: var(--bg);
  color: var(--tinta);
  -webkit-font-smoothing: antialiased;
}

/* =========================================================
   Topbar
   ========================================================= */
.topbar {
  background: linear-gradient(135deg, var(--navy) 0%, #0049C9 100%);
  color: #fff;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 14px rgba(0,47,142,0.18);
  position: relative;
  overflow: hidden;
}
.topbar::after {
  /* faixa lima inferior, identidade Sele */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--lima);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.brand-mascot {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.logo {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.5px;
}
.logo-ia {
  color: var(--lima);
  margin-left: 2px;
}
.subtitle {
  font-size: 12px;
  opacity: .85;
  font-weight: 500;
}

.health { color: #cbd5e1; font-size: 18px; }
.health.ok { color: var(--lima); }
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
/* Chips na topbar (links visuais) */
.topbar-actions a, .topbar-actions .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #fff !important;
  text-decoration: none !important;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: background .15s ease, border-color .15s ease, transform .05s ease;
  line-height: 1;
}
.topbar-actions a:hover, .topbar-actions .nav-link:hover {
  background: rgba(255, 255, 255, 0.20);
  border-color: rgba(255, 255, 255, 0.35);
}
.topbar-actions a:active { transform: translateY(1px); }
.topbar-actions a::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lima);
  display: inline-block;
}
/* Voltar (com seta) sem o dot */
.topbar-actions a.nav-voltar::before { display: none; }
.topbar-actions a.nav-voltar { background: rgba(255, 255, 255, 0.05); }

.container { max-width: 1040px; margin: 36px auto; padding: 0 24px; }

/* =========================================================
   Barra da análise (nome + protocolo + ações)
   ========================================================= */
.sessao-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--linha);
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(15,23,42,0.03);
  flex-wrap: wrap;
}
.sessao-campos {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 14px;
  flex: 1;
  min-width: 320px;
}
.sessao-campo { display: flex; flex-direction: column; gap: 2px; }
.sessao-campo input {
  border: 1px solid var(--linha);
  border-radius: 10px;
  padding: 8px 12px;
  font: inherit;
  font-weight: 600;
  color: var(--navy);
  background: #fff;
  outline: none;
}
.sessao-campo input:focus { border-color: var(--azul); outline: 2px solid var(--azul-suave); }
.sessao-rotulo { font-size: 11px; font-weight: 700; color: var(--taupe); text-transform: uppercase; letter-spacing: 0.5px; }

.sessao-acoes { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sessao-acoes .btn-primary,
.sessao-acoes .btn-ghost {
  padding: 8px 18px;
  font-size: 13px;
}
.sessao-status { font-size: 12px; color: var(--taupe); min-width: 110px; text-align: right; }
.sessao-status.dirty { color: var(--inc); font-weight: 700; }
.sessao-status.saved { color: var(--ok); font-weight: 700; }

/* =========================================================
   Hero "Como funciona" (estilo seleia.com.br)
   ========================================================= */
.hero { margin-bottom: 32px; }
.hero-head { text-align: center; max-width: 720px; margin: 0 auto 26px; }
.hero-head h1 {
  font-size: 34px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 10px;
  line-height: 1.15;
  letter-spacing: -0.5px;
}
.hero-head h1 .accent { color: var(--azul); }
.hero-head p {
  color: var(--taupe);
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
}

.passos {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  counter-reset: passo;
}
.passos li {
  background: #fff;
  border: 1px solid var(--linha);
  border-radius: 18px;
  padding: 18px 18px 20px;
  position: relative;
  box-shadow: 0 1px 2px rgba(15,23,42,0.03);
  transition: transform .12s ease, box-shadow .12s ease;
}
.passos li:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,47,142,0.08);
}
.passo-num {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  color: var(--lima);
  background: var(--navy);
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.passos h3 {
  margin: 0 0 6px;
  font-size: 15px;
  color: var(--navy);
  font-weight: 700;
}
.passos p {
  margin: 0;
  font-size: 13px;
  color: var(--taupe);
  line-height: 1.5;
}

/* =========================================================
   Dropzone
   ========================================================= */
.dropzone {
  border: 2px dashed #b9c6da;
  border-radius: 20px;
  background: #fff;
  padding: 52px 20px;
  text-align: center;
  cursor: pointer;
  transition: all .15s ease;
}
.dropzone:hover { border-color: var(--azul); }
.dropzone.drag {
  border-color: var(--azul);
  background: var(--azul-suave);
  transform: scale(1.005);
}
.dz-icon {
  width: 56px; height: 56px; line-height: 56px; margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--azul-suave);
  color: var(--azul);
  font-size: 26px;
  font-weight: 700;
}
.dz-title { font-size: 18px; font-weight: 700; margin: 4px 0; color: var(--navy); }
.dz-hint { color: var(--taupe); margin: 4px 0; font-size: 14px; }
.dz-file { margin-top: 10px; font-weight: 600; color: var(--navy); }

/* =========================================================
   Lista de arquivos selecionados (antes de processar)
   ========================================================= */
.arquivos-lista {
  margin: 14px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.arq-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--linha);
  border-radius: 12px;
  padding: 10px 14px;
}
.arq-num {
  width: 26px; height: 26px;
  background: var(--navy); color: var(--lima);
  font-weight: 800; font-size: 12px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
}
.arq-nome { flex: 1; font-weight: 600; color: var(--navy); font-size: 14px; }
.arq-tam  { color: var(--taupe); font-size: 12px; }
.arq-acoes { display: flex; gap: 8px; font-size: 12px; }
.arq-acoes .link { font-size: 12px; }
.arq-acoes .arq-remover { color: var(--no); }

/* =========================================================
   Cards de docs analisados (fase 1 -> fase 2)
   ========================================================= */
.docs-lista { display: flex; flex-direction: column; gap: 8px; }
.doc-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px 14px;
  align-items: center;
  background: #fafbfd;
  border: 1px solid var(--linha);
  border-radius: 12px;
  padding: 10px 14px;
}
.doc-card.principal {
  border-color: var(--azul);
  background: var(--azul-suave);
}
.doc-card:not(.pendente) .doc-nome::after {
  content: " ✓";
  color: var(--ok);
  font-weight: 900;
}
.doc-card.excluido { opacity: 0.45; background: #f5f6fa; }
.doc-card.excluido .doc-nome::after { content: " (excluído)"; color: var(--no); font-weight: 700; font-size: 11px; }

/* Botoes de acao por doc (lado direito) */
.doc-actions-right {
  display: flex; align-items: center; gap: 8px;
  grid-column: 3 / 4;
  grid-row: 1 / 2;
}
.doc-acao-icon {
  background: transparent;
  border: 1px solid var(--linha);
  border-radius: 999px;
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--taupe);
  font-size: 14px;
  transition: all .12s ease;
}
.doc-acao-icon:hover { color: var(--azul); border-color: var(--azul); background: var(--azul-suave); }
.doc-acao-icon.remover:hover { color: var(--no); border-color: var(--no); background: var(--no-bg); }
.doc-acao-icon.ocr-go {
  background: var(--lima);
  color: var(--navy);
  border-color: var(--lima);
  font-weight: 800;
  width: auto;
  padding: 0 12px;
  font-size: 11px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.doc-acao-icon.ocr-go:hover { background: #9BCB3A; border-color: #9BCB3A; color: var(--navy); }

/* Reclassificar natureza inline */
.doc-natureza .doc-nat-editar {
  background: transparent; border: 1px dashed var(--azul);
  color: var(--azul); font-size: 11px; font-weight: 700;
  padding: 1px 8px; border-radius: 999px;
  cursor: pointer; margin-left: 8px;
}
.doc-natureza .doc-nat-editar:hover { background: var(--azul-suave); }
.doc-nat-edit-row {
  display: inline-flex; gap: 6px; align-items: center; margin-left: 8px;
}
.doc-nat-edit-row select, .doc-nat-edit-row input {
  border: 1px solid var(--azul); border-radius: 6px;
  font: inherit; font-size: 12px;
  padding: 3px 8px;
  color: var(--navy);
  background: #fff;
  max-width: 280px;
}
.doc-nat-edit-row button {
  background: var(--navy); color: #fff;
  border: 0; border-radius: 6px;
  font-size: 11px; font-weight: 700;
  padding: 3px 10px; cursor: pointer;
}
.doc-nat-edit-row button.cancelar { background: transparent; color: var(--taupe); }

/* Status dot do doc */
.doc-status-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-left: 6px;
  vertical-align: middle;
}
.doc-status-dot.pending { background: #94a3b8; }
.doc-status-dot.ocr_done { background: var(--ok); }
.doc-status-dot.error { background: var(--no); }

/* Resumo curto + acoes */
.doc-resumo {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--tinta);
  line-height: 1.45;
  border-top: 1px dashed var(--linha);
  padding-top: 8px;
  font-style: italic;
}
.doc-resumo::before { content: "“"; color: var(--azul); font-size: 16px; font-weight: 800; margin-right: 2px; }
.doc-resumo::after  { content: "”"; color: var(--azul); font-size: 16px; font-weight: 800; margin-left: 2px; }

.doc-acoes {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--taupe);
  padding-top: 4px;
}
.doc-acoes label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 600; }
.doc-acoes label input { accent-color: var(--azul); }
.doc-btn-ver {
  background: transparent;
  border: 1px solid var(--linha);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--azul);
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px;
  transition: all .12s ease;
}
.doc-btn-ver:hover { background: var(--azul-suave); border-color: var(--azul); }
.doc-btn-ver::before { content: "👁"; font-size: 13px; }

/* Bloco Fase 2 */
.fase2-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}
.fase2-grid .campo { display: flex; flex-direction: column; gap: 4px; }
.fase2-grid .campo > span { font-size: 12px; font-weight: 600; color: var(--taupe); text-transform: uppercase; letter-spacing: 0.4px; }
.fase2-grid select {
  border: 1px solid var(--linha);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-weight: 600;
  color: var(--navy);
  background: #fff;
  cursor: pointer;
}
.fase2-grid select:focus { outline: 2px solid var(--azul); outline-offset: 1px; border-color: var(--azul); }
.fase2-grid small { color: var(--taupe); font-size: 11px; line-height: 1.4; }

.fase2-aviso {
  background: var(--inc-bg);
  color: #92400e;
  border: 1px solid #fcd34d;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 12px;
}
.fase2-aviso b { color: #78350f; }

.ocr-pre {
  background: #0F172A;
  color: #cbd5e1;
  border-radius: 10px;
  padding: 14px 16px;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
}
.doc-id {
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  background: var(--navy);
  color: var(--lima);
  padding: 4px 10px;
  border-radius: 999px;
}
.doc-nome { font-weight: 600; color: var(--navy); font-size: 14px; word-break: break-word; }
.doc-meta { font-size: 11px; color: var(--taupe); font-family: "Cascadia Code", Consolas, monospace; }
.doc-natureza {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--tinta);
  border-top: 1px dashed var(--linha);
  padding-top: 8px;
}
.doc-natureza .doc-nat-label { color: var(--taupe); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-right: 6px; }
.doc-natureza .doc-nat-valor { font-weight: 700; color: var(--navy); }
.doc-natureza .doc-nat-conf { color: var(--ok); font-size: 12px; margin-left: 8px; font-weight: 700; }
.doc-natureza .doc-nat-conf.baixa { color: var(--inc); }
.doc-card.pendente .doc-natureza { color: var(--taupe); font-style: italic; }
.doc-card.pendente .doc-id::after {
  content: "";
  display: inline-block;
  width: 10px; height: 10px;
  margin-left: 6px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: var(--lima);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
}

/* Drawer (reaproveitado de historico.css inline aqui pra index) */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(880px, 95vw);
  background: #fff;
  border-left: 1px solid var(--linha);
  box-shadow: -20px 0 50px rgba(15,23,42,0.18);
  z-index: 100;
  display: flex; flex-direction: column;
  animation: slideIn .18s ease;
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
.drawer-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 22px; border-bottom: 1px solid var(--linha);
  background: var(--navy); color: #fff;
}
.drawer-head h2 { margin: 0; font-size: 16px; }
.drawer-head .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.4); }
.drawer-head .btn-ghost:hover { border-color: #fff; }
.drawer-corpo { padding: 18px 22px; overflow-y: auto; flex: 1; }
.drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(15,23,42,0.35);
  z-index: 99;
  animation: fadeIn .15s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Tag de origem no item de checklist */
.item-origem {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  background: var(--azul-suave);
  color: var(--azul);
  padding: 1px 7px;
  border-radius: 999px;
  margin-left: 6px;
  font-family: "Cascadia Code", Consolas, monospace;
}

/* =========================================================
   Botoes
   ========================================================= */
.actions { display: flex; gap: 12px; margin: 18px 0; flex-wrap: wrap; }

/* =========================================================
   Toggle Expressa / Completa
   ========================================================= */
.modo-toggle {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin: 18px 0 0;
}
.modo-opt { cursor: pointer; }
.modo-opt input { position: absolute; opacity: 0; pointer-events: none; }
.modo-card {
  display: block;
  border: 2px solid var(--linha);
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
  transition: all .12s ease;
}
.modo-card strong { display: block; color: var(--navy); font-size: 14px; }
.modo-card small  { display: block; color: var(--taupe); font-size: 12px; margin-top: 3px; line-height: 1.4; }
.modo-opt input:checked + .modo-card {
  border-color: var(--azul);
  background: var(--azul-suave);
  box-shadow: 0 2px 10px rgba(0,127,255,0.12);
}
.modo-opt input:focus-visible + .modo-card { outline: 2px solid var(--azul); outline-offset: 2px; }
.btn-primary {
  background: var(--navy);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 12px 26px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease, transform .05s ease, box-shadow .15s ease;
  box-shadow: 0 4px 14px rgba(0,47,142,0.22);
}
.btn-primary:hover:not(:disabled) { background: #0049C9; box-shadow: 0 6px 18px rgba(0,47,142,0.32); }
.btn-primary:active:not(:disabled) { transform: translateY(1px); }
.btn-primary:disabled { background: #aab6c8; cursor: not-allowed; box-shadow: none; }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--linha);
  border-radius: 999px;
  padding: 11px 22px;
  cursor: pointer;
  color: var(--taupe);
  font-weight: 600;
}
.btn-ghost:hover { border-color: var(--azul); color: var(--azul); }

.link {
  background: none;
  border: 0;
  color: var(--azul);
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  padding: 0;
}
.link:hover { color: var(--navy); }

/* =========================================================
   Progresso
   ========================================================= */
.progresso {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-weight: 600;
  margin: 16px 0;
}
.spinner {
  width: 22px; height: 22px;
  border: 3px solid #cfe0f3;
  border-top-color: var(--azul);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.erro {
  background: var(--no-bg);
  color: var(--no);
  border: 1px solid #f2c4bf;
  border-radius: 10px;
  padding: 14px 16px;
  margin: 16px 0;
}

/* =========================================================
   Timeline de fases (stepper)
   ========================================================= */
.timeline {
  background: #fff;
  border: 1px solid var(--linha);
  border-radius: 16px;
  padding: 14px 20px;
  margin: 16px 0;
  box-shadow: 0 1px 3px rgba(15,23,42,0.03);
}
.tl-steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  gap: 8px;
  position: relative;
}
.tl-step {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  position: relative;
  z-index: 1;
}
.tl-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 11px; left: 50%; right: -50%;
  height: 2px;
  background: var(--linha);
  z-index: -1;
}
.tl-step.done:not(:last-child)::after { background: var(--lima); }
.tl-dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--linha);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
  transition: all .25s ease;
}
.tl-lbl { font-size: 11px; font-weight: 700; color: var(--taupe); text-transform: uppercase; letter-spacing: 0.4px; text-align: center; }
.tl-step.active .tl-dot {
  background: var(--azul);
  border-color: var(--azul);
  color: #fff;
  box-shadow: 0 0 0 4px var(--azul-suave);
  animation: pulseDot 1.4s ease-in-out infinite;
}
.tl-step.active .tl-lbl { color: var(--azul); }
.tl-step.done .tl-dot {
  background: var(--lima); border-color: var(--lima); color: var(--navy);
}
.tl-step.done .tl-dot::after { content: "✓"; font-size: 13px; }
.tl-step.active .tl-dot::after { content: ""; }
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 4px var(--azul-suave); }
  50%      { box-shadow: 0 0 0 8px rgba(0,127,255,0.18); }
}

/* =========================================================
   Sticky counters do checklist
   ========================================================= */
.card-head.sticky-top {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
  padding: 8px 0;
  margin: -8px 0 12px;
  border-bottom: 1px solid var(--linha);
}

/* Animacao de update do item */
@keyframes pulseItem {
  0%   { background: var(--azul-suave); }
  100% { background: #fff; }
}
.item.flash { animation: pulseItem 0.8s ease-out; }

/* =========================================================
   Cards
   ========================================================= */
.card {
  background: var(--card);
  border: 1px solid var(--linha);
  border-radius: 18px;
  padding: 22px 24px;
  margin-bottom: 20px;
  box-shadow: 0 1px 2px rgba(15,23,42,0.03);
}
.card h2 {
  margin: 0 0 12px;
  font-size: 17px;
  color: var(--navy);
  font-weight: 700;
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.tag {
  font-size: 11px;
  background: var(--azul-suave);
  color: var(--azul);
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 700;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.tag-warn { background: var(--inc-bg); color: var(--inc); }

.natureza-linha { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.natureza-nome { font-size: 18px; font-weight: 700; color: var(--navy); }
.badge {
  background: var(--lima-suave);
  color: var(--ok);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 700;
}
.badge.baixa { background: var(--inc-bg); color: var(--inc); }
.indicios { color: var(--taupe); font-size: 13px; margin: 10px 0 0; padding-left: 18px; }
.avisos { color: var(--inc); font-size: 13px; margin-top: 8px; }

.resumo-contadores { display: flex; gap: 8px; flex-wrap: wrap; }
.cont { font-size: 13px; padding: 4px 12px; border-radius: 20px; font-weight: 600; }
.cont-ok   { background: var(--lima-suave); color: var(--ok); }
.cont-no   { background: var(--no-bg);  color: var(--no); }
.cont-inc  { background: var(--inc-bg); color: var(--inc); }
.cont-na   { background: #eef2f7; color: #64748b; }
.cont-pend { background: #eef2f7; color: #64748b; }

.filtros {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin: 14px 0;
  font-size: 13px;
  color: var(--taupe);
}
.filtros label { display: flex; gap: 5px; align-items: center; cursor: pointer; }

/* =========================================================
   Checklist
   ========================================================= */
.checklist {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 460px;
  overflow-y: auto;
  padding-right: 4px;
}
.sec-title {
  font-weight: 800;
  color: var(--navy);
  margin: 14px 0 4px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.item {
  border: 1px solid var(--linha);
  border-left-width: 4px;
  border-radius: 10px;
  padding: 9px 12px;
  background: #fff;
  transition: border-color .12s ease, background .12s ease;
}
.item.pending {
  border-left-color: #cbd5e1;
  background: #fafbfd;
}
.item.ok  { border-left-color: var(--ok); }
.item.no  { border-left-color: var(--no); }
.item.inc { border-left-color: var(--inc); }
.item.na  { border-left-color: #94a3b8; opacity: .7; }
.item-top { display: flex; gap: 8px; align-items: flex-start; }
.item-id {
  font-size: 11px;
  color: var(--taupe);
  font-weight: 700;
  min-width: 56px;
  font-variant-numeric: tabular-nums;
}
.item-q { flex: 1; font-size: 14px; line-height: 1.4; }
.item-status {
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.item-status.ok  { color: var(--ok); }
.item-status.no  { color: var(--no); }
.item-status.inc { color: var(--inc); }
.item-status.na  { color: #64748b; }
.item-status.pend, .item-status.pending { color: #94a3b8; }
.item-detalhe { font-size: 12px; color: var(--taupe); margin-top: 5px; padding-left: 64px; }
.item-detalhe b { color: var(--tinta); }

/* =========================================================
   Minutas
   ========================================================= */
.minuta {
  width: 100%;
  border: 1px solid var(--linha);
  border-radius: 10px;
  padding: 14px;
  font-family: Georgia, serif;
  font-size: 14px;
  line-height: 1.55;
  resize: vertical;
  background: #fcfcfd;
}
.minuta:focus { outline: 2px solid var(--azul); outline-offset: 1px; }
.copy { margin-top: 6px; display: inline-block; }

.json-view {
  background: #0F172A;
  color: #c7e0ff;
  border-radius: 10px;
  padding: 14px;
  overflow: auto;
  max-height: 360px;
  font-size: 12px;
}
.tempos { text-align: center; color: var(--taupe); font-size: 12px; }

/* =========================================================
   Log (streaming)
   ========================================================= */
.log-card { padding-bottom: 14px; }
.log-box {
  background: #0F172A;
  color: #cbd5e1;
  border-radius: 10px;
  padding: 12px 14px;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
  max-height: 220px;
  overflow-y: auto;
  margin: 0;
  white-space: pre-wrap;
}
.log-line { display: block; }
.log-line.ok   { color: var(--lima); }
.log-line.warn { color: #fbbf24; }
.log-line.err  { color: #fca5a5; }
