/* ===== assets/influenciadores-instagram-sync.css =====
   Painel de sincronização em massa com o Instagram (assets/influenciadores-instagram-sync.js).
   Reaproveita .influ-overlay/.influ-modal/.influ-btn*/.influ-modal-actions de
   influenciadores.css e .influ-imp-progress-bar/.influ-imp-progress-fill de
   influenciadores-import.css — só o que é genuinamente novo tem prefixo .influ-sync-.
*/

.influ-sync-modal { max-width: 760px; }

.influ-sync-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.influ-sync-head h2 { margin: 0; font-size: 20px; text-transform: lowercase; }
.influ-sync-close {
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--ink-soft);
  padding: 4px;
  display: flex;
}
.influ-sync-close:hover { color: var(--ink); }
.influ-sync-close:disabled { opacity: 0.35; cursor: default; }

.influ-sync-intro p { font-size: 13px; color: var(--ink); line-height: 1.55; margin: 0 0 12px; }

.influ-sync-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin: 10px 0 8px;
}

.influ-sync-counters {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--ink-soft);
  margin: 10px 0 14px;
}
.influ-sync-counter-ok { color: #067647; font-weight: 700; }
.influ-sync-counter-warn { color: #8a4600; font-weight: 700; }

.influ-sync-hint { font-size: 12px; color: var(--ink-soft); margin: -4px 0 10px; }

.influ-btn-stop { background: #a83c2f; color: #fff; border-color: #a83c2f; }
.influ-btn-stop:hover { opacity: 0.9; }
.influ-btn-stop:disabled { opacity: 0.6; cursor: default; }

.influ-sync-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(66px, 1fr));
  gap: 12px;
  max-height: 340px;
  overflow-y: auto;
  padding: 6px 2px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--off-white);
}
.influ-sync-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 9.5px;
  text-align: center;
  padding: 4px;
}
.influ-sync-grid-done .influ-sync-item { cursor: pointer; border-radius: 8px; }
.influ-sync-grid-done .influ-sync-item:hover { background: var(--beige-soft); }
.influ-sync-item-avatar-wrap {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
}
.influ-sync-item-label {
  color: var(--ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.influ-sync-item[data-outcome="updated"] .influ-sync-item-avatar-wrap { color: #067647; }
.influ-sync-item[data-outcome="updated"] .influ-sync-item-label { color: #067647; font-weight: 700; }
.influ-sync-item[data-outcome="error"] .influ-sync-item-avatar-wrap { color: #a83c2f; }
.influ-sync-item[data-outcome="error"] .influ-sync-item-label { color: #a83c2f; font-weight: 700; }
.influ-sync-item[data-outcome="not_found"] .influ-sync-item-avatar-wrap,
.influ-sync-item[data-outcome="invalid_handle"] .influ-sync-item-avatar-wrap,
.influ-sync-item[data-outcome="private_or_unsupported"] .influ-sync-item-avatar-wrap,
.influ-sync-item[data-outcome="rate_limited"] .influ-sync-item-avatar-wrap { color: #8a4600; }
.influ-sync-item[data-outcome="not_found"] .influ-sync-item-label,
.influ-sync-item[data-outcome="invalid_handle"] .influ-sync-item-label,
.influ-sync-item[data-outcome="private_or_unsupported"] .influ-sync-item-label,
.influ-sync-item[data-outcome="rate_limited"] .influ-sync-item-label { color: #8a4600; font-weight: 600; }

.influ-sync-item-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--line);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: influ-sync-spin 0.8s linear infinite;
}
@keyframes influ-sync-spin { to { transform: rotate(360deg); } }

@media (max-width: 640px) {
  .influ-sync-modal { padding: 20px 18px 16px; }
  .influ-sync-grid { grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); }
}
