.gegraesp-anac-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  white-space: nowrap;
}
.gegraesp-anac-status--pendente,
.gegraesp-anac-status--consultando,
.gegraesp-anac-status--estrutura_inesperada { color: #334155; }
.gegraesp-anac-status--sucesso { color: #166534; }
.gegraesp-anac-status--falha_temporaria { color: #92400e; }
.gegraesp-anac-status--falha_definitiva,
.gegraesp-anac-status--sem_dado_localizado { color: #991b1b; }
.gegraesp-anac-modal-root { display: none; }
.gegraesp-anac-modal-root.is-open { display: block; }
.gegraesp-anac-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.58);
  z-index: 99980;
}
.gegraesp-anac-modal {
  position: fixed;
  inset: 18px;
  z-index: 99981;
  max-width: 1100px;
  margin: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.gegraesp-anac-modal-small {
  inset: auto 18px;
  top: 28%;
  min-height: 180px;
  max-width: 520px;
}
.gegraesp-anac-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.gegraesp-anac-modal-header h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}
.gegraesp-anac-modal-header p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 13px;
}
.gegraesp-anac-close {
  border: 0;
  background: #f1f5f9;
  border-radius: 999px;
  width: 34px;
  height: 34px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.gegraesp-anac-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  color: #334155;
  font-size: 13px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.gegraesp-anac-image-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: #fff;
  padding: 14px;
}
.gegraesp-anac-print-preview {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 76vh;
  object-fit: contain;
  background: #fff !important;
  border-radius: 12px;
  margin: 0 auto;
}
.gegraesp-anac-empty {
  flex: 1;
  display: grid;
  place-items: center;
  color: #64748b;
  background: #f8fafc;
  margin: 14px;
  border-radius: 12px;
  min-height: 260px;
  text-align: center;
}
.gegraesp-anac-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 20px 18px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}
.gegraesp-anac-btn {
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #fff;
  color: #0f172a;
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 800;
  cursor: pointer;
}
.gegraesp-anac-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}
.gegraesp-anac-btn-primary {
  background: #0f172a;
  color: #fff;
}
.gegraesp-anac-progress {
  height: 5px;
  margin: 24px 20px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}
.gegraesp-anac-progress span {
  display: block;
  height: 100%;
  width: 38%;
  border-radius: inherit;
  background: #0f172a;
  animation: gegraesp-anac-progress 1.25s infinite ease-in-out;
}
@keyframes gegraesp-anac-progress {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(90%); }
  100% { transform: translateX(280%); }
}
@media (max-width: 720px) {
  .gegraesp-anac-modal { inset: 8px; border-radius: 14px; }
  .gegraesp-anac-summary { align-items: flex-start; flex-direction: column; }
  .gegraesp-anac-actions { flex-wrap: wrap; justify-content: stretch; }
  .gegraesp-anac-btn { flex: 1 1 auto; }
}
