* { box-sizing: border-box; margin: 0; }
:root {
  --azul: #1a56db; --azul-escuro: #0f3aa3; --fundo: #f3f5f9;
  --ok: #0e9f6e; --erro: #d92626; --alerta: #b45309; --borda: #d7dce5;
}
body { font-family: "Segoe UI", system-ui, sans-serif; background: var(--fundo); color: #1b2434; }
header { background: #fff; border-bottom: 1px solid var(--borda); padding: 14px 24px;
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
h1 { font-size: 20px; }
h2 { margin-bottom: 8px; }
h3, h4 { margin: 12px 0 8px; }
nav .tab { background: none; border: none; padding: 8px 14px; font-size: 15px;
  cursor: pointer; border-radius: 8px; color: #4b5565; }
nav .tab.ativo { background: var(--azul); color: #fff; }
main { max-width: 1100px; margin: 24px auto; padding: 0 16px; }
.oculto { display: none !important; }
.dica { color: #5a6577; font-size: 13.5px; margin: 4px 0 12px; }
.alerta { color: var(--alerta); font-weight: 600; margin: 6px 0; }

.passos { display: flex; gap: 8px; list-style: none; padding: 0; margin-bottom: 20px; flex-wrap: wrap; }
.passos li { padding: 8px 16px; background: #e4e8f0; border-radius: 20px; font-size: 14px; color: #5a6577; }
.passos li.atual { background: var(--azul); color: #fff; font-weight: 600; }
.passos li.feito { background: var(--ok); color: #fff; }

.cartao { background: #fff; border: 1px solid var(--borda); border-radius: 12px;
  padding: 16px; margin: 12px 0; }
.cartao.destaque { border-color: var(--azul); background: #eef3ff; }
.colunas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 760px) { .colunas { grid-template-columns: 1fr; } }

label { display: block; margin: 8px 0; font-size: 14px; font-weight: 600; }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
input, select, textarea { width: 100%; padding: 8px 10px; margin-top: 4px;
  border: 1px solid var(--borda); border-radius: 8px; font-size: 14px; }
input[type=checkbox] { width: auto; }
.linha-campos { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }

button { padding: 9px 16px; border: 1px solid var(--borda); background: #fff;
  border-radius: 8px; cursor: pointer; font-size: 14px; margin: 8px 6px 0 0; }
button:hover { background: #f0f3f9; }
button.primario { background: var(--azul); color: #fff; border-color: var(--azul); }
button.primario:hover { background: var(--azul-escuro); }
button.grande { font-size: 16px; padding: 12px 22px; }

table { width: 100%; border-collapse: collapse; background: #fff; margin: 8px 0;
  border: 1px solid var(--borda); border-radius: 8px; overflow: hidden; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--borda); font-size: 13.5px; text-align: left; }
th { background: #eef1f7; }
td input { padding: 5px 8px; font-size: 13.5px; }
tr.div-erro { background: #fdeaea; }
tr.div-ok { background: #eafaf3; }

.selo { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 12px;
  font-weight: 700; margin: 2px 2px 2px 0; white-space: nowrap; }
.selo.ok { background: #d3f3e5; color: var(--ok); }
.selo.erro { background: #fbdcdc; color: var(--erro); }
.selo.aviso { background: #fdeccd; color: var(--alerta); }
.selo.neutro { background: #e4e8f0; color: #4b5565; }

pre { background: #101828; color: #d2fadf; padding: 14px; border-radius: 8px;
  overflow: auto; font-size: 12.5px; }
#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: #101828; color: #fff; padding: 12px 22px; border-radius: 10px;
  font-size: 14px; z-index: 99; max-width: 90vw; }
#toast.erro { background: var(--erro); }
a { color: var(--azul); font-weight: 600; }
