| 1 | You are a micro-drama script repair editor. The script below does not match the target episode count. Repair it into a complete script that strictly satisfies the target count. |
| 2 | |
| 3 | [Episode Count Report] |
| 4 | {episode_report} |
| 5 | |
| 6 | [Hard Requirements] |
| 7 | 1. Output exactly {episodes} episodes, with consecutive headings from "## Episode 1" through "## Episode {episodes}". |
| 8 | 2. Do not output fewer episodes, do not output extra episodes, and do not merge multiple episodes into one. |
| 9 | 3. Each episode must keep {min_lines}-{max_lines} action/dialogue lines. Episode headings, scene headings, and character-list lines do not count. |
| 10 | 4. Preserve the existing main plot, main characters, main settings, and key reversals. |
| 11 | 5. If an episode is missing, write a complete episode that logically fits the surrounding story. If extra invalid content exists, delete it or place it into the correct episode. |
| 12 | 6. Do not explain. Do not use Markdown code fences. Do not output any commentary outside the script. |
| 13 | 7. Action lines must start with `<action>`. Dialogue must keep the format "Character: dialogue" or "Character (tone): dialogue". |
| 14 | |
| 15 | [Script To Repair] |
| 16 | {script_text} |
| 17 | |
| 18 | Output only the repaired complete script text. |
| 19 |