.ac-wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 0 36px;
}

.ac-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  margin-bottom: 12px;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(30, 77, 143, 0.08), rgba(14, 165, 233, 0.05)),
    #fff;
}
.ac-hero h1 {
  margin: 0 0 6px;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  color: #0f172a;
}
.ac-hero p {
  margin: 0;
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.45;
  max-width: 52ch;
}
.ac-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1e40af;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ac-status {
  display: none;
  margin: 0 0 12px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.84rem;
}
.ac-status.is-ok {
  display: block;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.ac-status.is-error {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.ac-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.ac-sum {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.86rem;
  color: #475569;
}
.ac-sum b {
  color: #0f172a;
  font-weight: 800;
  margin-right: 4px;
}

.ac-menus {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 0.8fr;
  gap: 10px;
  margin-bottom: 14px;
}
.ac-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  min-height: 92px;
  padding: 16px 18px;
  border: 2px solid #cbd5e1;
  border-radius: 16px;
  background: #fff;
  color: #0f172a;
  text-align: left;
  cursor: pointer;
  font: inherit;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.ac-menu:hover { transform: translateY(-1px); }
.ac-menu-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}
.ac-menu-title {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.ac-menu-sub {
  font-size: 0.88rem;
  color: #64748b;
  font-weight: 600;
}
.ac-menu--warn.is-active {
  border-color: #d97706;
  background: linear-gradient(180deg, #fffbeb, #fef3c7);
  box-shadow: inset 0 0 0 1px rgba(217, 119, 6, 0.25);
}
.ac-menu--warn.is-active .ac-menu-title { color: #92400e; }
.ac-menu--alert.is-active {
  border-color: #ea580c;
  background: linear-gradient(180deg, #fff7ed, #ffedd5);
  box-shadow: inset 0 0 0 1px rgba(234, 88, 12, 0.25);
}
.ac-menu--alert.is-active .ac-menu-title { color: #9a3412; }
.ac-menu--all.is-active {
  border-color: #1e4d8f;
  background: linear-gradient(180deg, #eff6ff, #dbeafe);
  box-shadow: inset 0 0 0 1px rgba(30, 77, 143, 0.2);
}
.ac-menu--all.is-active .ac-menu-title { color: #1e3a8a; }

.ac-toolbar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  margin-bottom: 14px;
  align-items: center;
}
.ac-toolbar input,
.ac-toolbar select {
  height: 40px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0 12px;
  font: inherit;
  background: #fff;
  color: #0f172a;
}
.ac-btn-csv,
.ac-btn-atualizar {
  height: 44px;
  border: 0;
  border-radius: 10px;
  padding: 0 16px;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.ac-btn-csv { background: #0f766e; }
.ac-btn-csv:hover { background: #0d9488; }
.ac-btn-atualizar { background: #1e4d8f; }
.ac-btn-atualizar:hover { background: #163a6b; }
.ac-btn-atualizar:disabled,
.ac-btn-csv:disabled {
  opacity: 0.55;
  cursor: wait;
}
.ac-status.is-loading {
  display: block;
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.ac-progress {
  margin: 0 0 14px;
  padding: 14px 16px;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  background: linear-gradient(180deg, #eff6ff, #fff);
}
.ac-progress[hidden] { display: none !important; }
.ac-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.ac-progress-head strong {
  color: #1e3a8a;
  font-size: 0.95rem;
}
.ac-progress-head span {
  font-weight: 800;
  color: #1d4ed8;
  font-variant-numeric: tabular-nums;
}
.ac-progress-bar {
  height: 10px;
  border-radius: 999px;
  background: #dbeafe;
  overflow: hidden;
  margin-bottom: 12px;
}
.ac-progress-bar span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1e4d8f, #0ea5e9);
  transition: width 0.25s ease;
}
.ac-progress-steps {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: grid;
  gap: 6px;
}
.ac-progress-steps li {
  position: relative;
  padding: 6px 10px 6px 28px;
  border-radius: 8px;
  font-size: 0.86rem;
  color: #64748b;
  background: rgba(255, 255, 255, 0.7);
}
.ac-progress-steps li::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: #cbd5e1;
}
.ac-progress-steps li.is-done {
  color: #065f46;
  background: #ecfdf5;
}
.ac-progress-steps li.is-done::before { background: #10b981; }
.ac-progress-steps li.is-current {
  color: #1e3a8a;
  font-weight: 700;
  background: #dbeafe;
}
.ac-progress-steps li.is-current::before {
  background: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
  animation: acPulse 1s ease infinite;
}
.ac-progress-detail {
  margin: 0;
  font-size: 0.84rem;
  color: #334155;
}
@keyframes acPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18); }
  50% { box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.08); }
}

.ac-block { margin-bottom: 18px; }
.ac-block-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.ac-block-title h2 {
  margin: 0;
  font-size: 1rem;
  color: #0f172a;
}
.ac-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.ac-tag--warn { background: #fef3c7; color: #92400e; }
.ac-tag--alert { background: #ffedd5; color: #9a3412; }

.ac-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ac-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: inset 4px 0 0 #94a3b8;
}
.ac-item--warn { box-shadow: inset 4px 0 0 #d97706; }
.ac-item--alert { box-shadow: inset 4px 0 0 #ea580c; }
.ac-item-name {
  margin: 0 0 8px;
  font-size: 0.98rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
}
.ac-item-rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
}
.ac-pair {
  min-width: 0;
}
.ac-pair span {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 2px;
}
.ac-pair b {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
  word-break: break-word;
  font-variant-numeric: tabular-nums;
}
.ac-pair b.muted { color: #94a3b8; font-weight: 600; }
.ac-item-contact {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
  color: #475569;
  font-size: 0.86rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.ac-empty {
  padding: 14px;
  color: #64748b;
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
}

.ac-mail {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px;
}
.ac-mail h2 {
  margin: 0 0 4px;
  font-size: 1rem;
}
.ac-mail p {
  margin: 0 0 8px;
  color: #64748b;
  font-size: 0.86rem;
}
.ac-mail textarea {
  width: 100%;
  min-height: 180px;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 12px;
  font: inherit;
  resize: vertical;
}
.ac-mail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.ac-mail-actions button,
.ac-toolbar button {
  height: 38px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  background: #1e4d8f;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.ac-mail-actions button.secondary {
  background: #e2e8f0;
  color: #0f172a;
}

@media (max-width: 720px) {
  .ac-menus { grid-template-columns: 1fr; }
  .ac-menu { min-height: 84px; }
  .ac-menu-title { font-size: 1.35rem; }
  .ac-toolbar { grid-template-columns: 1fr; }
  .ac-btn-csv,
  .ac-btn-atualizar { width: 100%; }
  .ac-item-rows { grid-template-columns: 1fr; }
  .ac-hero { flex-direction: column; }
}
