If she can't return to your home the juvenile probation department can find her a placement.
This answer does not create an attorney/client relationship. Consult my office for a confidential consultation. Leslie Barrows, The Barrows Firm, P.C. looks forward to protecting your rights!
The court will appoint her an attorney. Speak candidly either her attorney and the probation officer. They have great ideas and programs. They may not return her to you immediately, get counselling and definitely monitor her meds. Honestly, best wishes!