Tire her out, just like a baby you gotta tire them out. Once she is tired out act like you are going to sleep but keep the fire going outside, so that once she is asleep you can get up and go outside. Talk in hushed tone but still have some space. Then warn her that she is not allowed to grab your phone because you will be doing important work on your phone, her grabbing it will cause you to mess up and will have to start over. Which you don't want to do.
I'm praying >,<