:root {
  --cor-primaria: #0B3D66;
  --cor-acento: #D4AF37;
  --cor-fundo: #FFFFFF;
  --cor-texto: #1A1A1A;
  --cor-borda: #E2E8F0;
  --fonte: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--fonte);
  background: #F7F9FB;
  color: var(--cor-texto);
}

.topo {
  background: var(--cor-primaria);
  color: #fff;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topo .marca {
  font-weight: 700;
  font-size: 1.25rem;
}

.topo .marca span { color: var(--cor-acento); }

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 1.5rem;
}

.tela-login {
  max-width: 380px;
  margin: 4rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.tela-login h1 { font-size: 1.1rem; margin-bottom: 1.25rem; }

input, select, button, textarea {
  font-family: inherit;
  font-size: 0.95rem;
}

input, select, textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--cor-borda);
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

button.primario {
  background: var(--cor-primaria);
  color: #fff;
  border: none;
  padding: 0.65rem 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

button.primario:hover { opacity: 0.92; }

button.secundario {
  background: transparent;
  border: 1px solid var(--cor-borda);
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
}

.cards-agentes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.card-agente {
  background: #fff;
  border: 1px solid var(--cor-borda);
  border-radius: 12px;
  padding: 1.1rem;
}

.card-agente h3 { margin: 0 0 0.4rem; font-size: 1rem; color: var(--cor-primaria); }
.card-agente p { margin: 0 0 0.8rem; font-size: 0.85rem; color: #555; }

.secao {
  background: #fff;
  border: 1px solid var(--cor-borda);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.secao-titulo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: left; padding: 0.5rem; border-bottom: 1px solid var(--cor-borda); }
th { color: #666; font-weight: 600; }

.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: #EEF2F7;
}

.resultado-ia {
  white-space: pre-wrap;
  background: #FBFAF6;
  border: 1px solid #EEE0B0;
  border-radius: 8px;
  padding: 0.9rem;
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.oculto { display: none !important; }
