* { box-sizing: border-box; }
img { max-width: 100%; }
body { margin: 0; font-family: system-ui, sans-serif; background: #f4f4f2; color: #222; }
header { background: #1f2937; color: #fff; padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between; }
nav { display: flex; gap: 14px; }
nav a { color: #d1d5db; text-decoration: none; }
nav a:hover { color: #fff; }
main { max-width: 720px; margin: 0 auto; padding: 16px; }
.card { background: #fff; border-radius: 10px; padding: 16px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
h2 { margin: 0 0 12px; font-size: 1.15rem; }
h3 { margin: 0 0 6px; }
label { display: block; margin-bottom: 12px; font-size: .9rem; font-weight: 600; }
input, select { display: block; width: 100%; margin-top: 4px; padding: 10px; font-size: 1rem; border: 1px solid #ccc; border-radius: 6px; font-weight: 400; background: #fff; }
button { padding: 10px 16px; font-size: 1rem; border: 0; border-radius: 6px; background: #16a34a; color: #fff; cursor: pointer; }
button:disabled { opacity: .6; }
button.sec { background: #4b5563; padding: 8px 12px; font-size: .9rem; }
.foto { width: 100%; max-height: 320px; object-fit: contain; background: #eee; border-radius: 8px; margin-bottom: 12px; }
.mini { width: 90px; height: 90px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.item { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid #eee; }
.item:first-of-type { border-top: 0; }
.item.inativo { opacity: .55; }
.corpo { flex: 1; min-width: 0; }
.corpo p { margin: 6px 0; }
.corpo ul, .corpo ol, .resultado ol { margin: 4px 0 0; padding-left: 22px; }
.marcado { position: relative; }
.marcado img { display: block; width: 100%; border-radius: 8px; }
.marca { position: absolute; transform: translate(-50%, -50%); aspect-ratio: 1; border: 3px solid #dc2626; border-radius: 50%; box-shadow: 0 0 0 2px #fff, inset 0 0 0 2px #fff; }
.marca b { position: absolute; top: -12px; right: -12px; min-width: 22px; height: 22px; line-height: 22px; text-align: center; font-size: .8rem; color: #fff; background: #dc2626; border-radius: 99px; box-shadow: 0 0 0 2px #fff; }
.fotobox { max-width: 460px; margin: 10px 0; }
.resultado .marcado { max-width: 460px; margin: 10px 0; }
table.resumo { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.resumo th, table.resumo td { text-align: left; padding: 8px 6px; border-top: 1px solid #eee; }
table.resumo tr.ativa { background: #f0fdf4; }
.pag { display: flex; justify-content: space-between; margin-top: 12px; }
.linha { display: flex; gap: 8px; align-items: end; margin-top: 8px; flex-wrap: wrap; }
.linha label, .linha input { margin: 0; }
.linha input[type=number] { width: 80px; }
.linha input[type=password], .linha input[type=file] { width: auto; flex: 1; min-width: 140px; }
.peq { font-size: .85rem; color: #666; }
.erro { color: #b91c1c; }
.aviso { background: #fef3c7; padding: 10px 14px; border-radius: 6px; }
.resultado { margin-top: 16px; padding: 14px; border-radius: 8px; }
.resultado.ok { background: #dcfce7; border: 1px solid #16a34a; }
.resultado.ruim { background: #fee2e2; border: 1px solid #dc2626; }
.tag { font-size: .8rem; padding: 2px 8px; border-radius: 99px; margin-left: 6px; }
.tag.ok { background: #dcfce7; color: #166534; }
.tag.ruim { background: #fee2e2; color: #991b1b; }
