Ksm it sounds like the decision is made. She has to stay In your home until she is of legal age to leave.
If she does not like that and will not accept that, can you sit her down with a lawyer and let them explain it to her and explain to her what she can do and when? Or even a judge or the juvenile authorities? Our DCs will not listen to us (and often not to anybody) but I would give that a try.
Another thought is for you to get some advice from the juvenile authorities about what your rights are when it comes to her and what kind of help and support you can get from them.
I don't know. Reading your posts makes me feel helpless too. You need outside help from someone with her. I am sure you have already tried every consequence known.
Thinking of you tonight and wishing I had some solid solutions for you. Hugs.