* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: #f4f6fb; color: #1e293b; line-height: 1.5;
}
.topo { background: #2563eb; color: #fff; padding: 28px 20px; text-align: center; }
.topo h1 { font-size: 28px; letter-spacing: .5px; }
.topo p { opacity: .9; margin-top: 4px; font-size: 15px; }
.container { max-width: 760px; margin: 0 auto; padding: 24px 16px 60px; }
.cartao { background: #fff; border-radius: 14px; padding: 24px; margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(30,41,59,.07); }
.oculto { display: none; }

/* dropzone */
.dropzone { display: block; border: 2px dashed #c3d0ec; border-radius: 12px;
  padding: 40px 20px; text-align: center; cursor: pointer; transition: .15s; background: #fafbff; }
.dropzone:hover, .dropzone.ativa { border-color: #2563eb; background: #f0f5ff; }
.dz-conteudo { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.dz-icone { width: 46px; height: 46px; border-radius: 50%; background: #2563eb; color: #fff;
  font-size: 26px; line-height: 46px; }
.dz-titulo { font-weight: 600; font-size: 17px; }
.dz-sub { color: #64748b; font-size: 14px; }
.dz-arquivo { color: #2563eb; font-size: 14px; font-weight: 600; margin-top: 6px; }

/* campos */
.campo { margin-top: 22px; }
.rotulo { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.marcas { display: flex; flex-wrap: wrap; gap: 10px; }
.marca { flex: 1; min-width: 140px; border: 1.5px solid #e2e8f0; border-radius: 10px;
  padding: 12px 14px; cursor: pointer; font-size: 14px; transition: .15s; }
.marca:has(input:checked) { border-color: #2563eb; background: #f0f5ff; color: #1d4ed8; font-weight: 600; }
.marca input { margin-right: 8px; }
input[type=text] { width: 100%; padding: 12px 14px; border: 1.5px solid #e2e8f0;
  border-radius: 10px; font-size: 15px; }
input[type=text]:focus { outline: none; border-color: #2563eb; }

/* botoes */
.botao { width: 100%; margin-top: 24px; background: #2563eb; color: #fff; border: 0;
  padding: 15px; border-radius: 10px; font-size: 16px; font-weight: 600; cursor: pointer; transition: .15s; }
.botao:hover { background: #1d4ed8; }
.botao:disabled { opacity: .6; cursor: default; }
.botao.secundario { background: #e2e8f0; color: #1e293b; margin-top: 14px; }

/* carregando */
#carregando { text-align: center; }
.spinner { width: 42px; height: 42px; border: 4px solid #dbeafe; border-top-color: #2563eb;
  border-radius: 50%; margin: 0 auto 16px; animation: girar .8s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
#status-msg { font-weight: 600; }
#carregando small { color: #64748b; }

/* erro */
.erro { border-left: 4px solid #dc2626; }
.erro p { color: #b91c1c; margin-bottom: 8px; }

/* resultado */
.rede { background: #fff; border-radius: 14px; padding: 20px; margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(30,41,59,.07); }
.rede-topo { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.rede-nome { font-weight: 700; font-size: 16px; color: #0f172a; }
.rede-bloco { margin-bottom: 14px; }
.rede-bloco:last-child { margin-bottom: 0; }
.rede-sub { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: #64748b; margin-bottom: 6px; }
.texto { white-space: pre-wrap; background: #f8fafc; border: 1px solid #eef2f7;
  border-radius: 8px; padding: 12px 14px; font-size: 14.5px; }
.copiar { border: 1.5px solid #2563eb; background: #fff; color: #2563eb; border-radius: 8px;
  padding: 7px 14px; font-size: 13px; font-weight: 600; cursor: pointer; transition: .15s; }
.copiar:hover { background: #2563eb; color: #fff; }
.copiar.feito { background: #16a34a; border-color: #16a34a; color: #fff; }
.contador { font-size: 12px; color: #94a3b8; margin-top: 6px; }
.capa-img { width: 200px; border-radius: 10px; display: block; margin-bottom: 12px; }
.aviso { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; padding: 12px 14px;
  border-radius: 10px; font-size: 14px; margin-bottom: 16px; }
.transc { font-size: 13px; color: #64748b; }
.transc summary { cursor: pointer; font-weight: 600; }
