This just happened to me, and like others here, I panicked, and luckily I was able to fix it. I can describe exactly what led to it happening and how I fixed it -- hopefully anyone else with the same problem can benefit.
the setup: Not sure how important this part was, but someone had slammed close the inner roof while the outer roof was open, which I didn't even know was not supposed to happen. This makes sense in hindsight, since you might forget about the outer roof being open when you close the inner one, and then rain could damage it. Anyway, a bunch of sunlight suddenly poured in and my passenger freaked out and slammed the inner roof shut, popping some catch flanges onto the wrong side of a cross-member stopper on the inside between the two sun-roofs.
If you are able to slide the inner roof open and close only when the outer roof is fully open, then this is probably happening to you. If you slide both roofs to full open you can see what is happening. Along the top surface of the inner roof, toward the back, there are two 'flanges' that protrude upward. There is also some cross-member that is supposed to be in front of the flange, and is now behind, and that cross-member is a part of the outer sunroof. I'll try to depict it below with some text art:
*outer roof* V-- right here was a bar that hung down, and the flange was catching on it...
( (===========|
( (===========/
*inner roof* ^-- flange
<--- front of car
hopefully that helps.
Anyway, I could tell that the bar was supposed to be *in front* of the flange because they had little foam pads glued onto their face so that when you slide the inner roof closed, it should soften the hit of the flange against the cross-member.
THE SOLUTION:
I needed two stiff, semi long, flat steel bars, as my original plan was to slide them in there between the two roofs and push the flanges flat. Upon getting them in there, I realized the flanges were quite strong, but the cross member they were catching on seemed to be flexible (and possible a stiff rubber?)
So in case imgur ever gets rid of this image, it's one of those woodworking clamps that slide along a long thin flat steel rod.
Anyway, these things were perfect. I needed two of them, and I was able to slide them in on their flat side between the two roofs, rest them next to the flanges, and then when I rotated them 90 degrees to be upright, it made the cross-member that the flanges were running into push upward, and i was able to finally push the inner sunroof back it's last final bit behind the cross-member, and then I rotated the clamp bars back flat and removed them. Voila.
Hopefully that helps!
I made this account just to share this tid-bit, and may you too one day also take the time to share your useful info on the interwebs