I think you can go to sleep after seeing 200+
even if you get unaccepted, un-upvote, user removed, offered a bounty, etc... It happened to me and I didn't lost the progress of the legendary/epic badge.
What I noticed is that you need to reach (even for few minutes) 200+
considering all the positive scores (don't consider the negative ones). So you can increase the progress of the badge by only having +150
for example (+200
and -50
).
You can also check this link https://stackoverflow.com/reputation for your reputation recap. You will notice at the end: earned at least 200 reputation on X days
. The X
will probably be smaller than the number of days shown in the badge progress (Y/150
).
I have 12 days of difference (Y - X
) which means that I have reached an overall of +200
without keeping them or I have reached a positive score of +200
.
Example of day (+245
-70
):

Another example of day where I have reached +200
as positive score for a short period of time (I deleted an upvoted question (+20
)).

Concerning your last question, It will depend if both actions are made in the same day or not. I had an accepted answer that got unaccepted another day so both +15
and -15
exist in different days and logically affect the reputation of each day:

If both happen the same day then both will not be visible in your reputation (probably treated as never existed) BUT the +15
will affect the reputation for the badge progress if it allow you to go past +200
before the unaccept action.
So probably you can earn the legendary badge with 0
reputation:
- You get 14 accepted answers (
+210
).
- The progress of the badge will increment.
- Right after you get unaccepted (you fall back to
0
).
You repeat this each day.
This is my own analysis based on what I noticed and what happened to me so I may be wrong in some cases.