.fp-feed-planner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
}

.fp-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.fp-title h2 {
  margin: 0 0 6px 0;
  font-size: 22px;
}
.fp-title p {
  margin: 0;
  color: #475569;
}

.fp-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.fp-btn {
  border: 1px solid #cbd5e1;
  background: #fff;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
}
.fp-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.fp-btn-primary {
  background: #2563EB;
  border-color: #2563EB;
  color: #fff;
}

.fp-btn-danger {
  background: #fff;
  border-color: #ef4444;
  color: #991b1b;
}

.fp-notice {
  margin: 10px 0 14px 0;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 700;
}
.fp-notice-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.fp-notice-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.fp-notice-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

.fp-grid-wrap {
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  position: relative;
  min-height: 220px;
}

.fp-empty {
  color: #64748b;
  font-weight: 700;
  padding: 18px 8px;
}

.fp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

/* Frame 4:5 (Instagram 1080x1350) */
.fp-cell {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #fff;
  aspect-ratio: 4 / 5;
}

/* MOSTRAR A IMAGEM INTEIRA (sem cortar) */
.fp-cell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
}

.fp-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  font-weight: 800;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
}

.fp-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  font-weight: 900;
  cursor: pointer;
  line-height: 28px;
}

.fp-cell.fp-dragging {
  opacity: 0.6;
}
.fp-cell.fp-drop {
  outline: 2px dashed #2563EB;
  outline-offset: -4px;
}

.fp-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  flex-wrap: wrap;
}

.fp-muted {
  color: #64748b;
  font-weight: 600;
}
