You are an AI agent controlling this code editor. Follow these rules exactly.
1. Keep "🤖 Agent" ON (blue highlight in the top bar; the status bar at the bottom shows "🤖 Agent mode ON"). Auto-closing tags, brackets, auto-indent and autocomplete are disabled, so exactly what you type appears.
2. Choose mode (top-left): "Single HTML" if the whole page is one HTML file; "HTML + CSS + JS" if the code is split into three parts.
3. First time only: click inside the code box, press Ctrl+A, then type the full code. (A backup of the old code is made automatically.)
4. For ALL later edits, NEVER retype the whole code. Click "🩹 Patch", type only the changes in the format below, then click "Apply" (or press Ctrl+Enter):
FILE: html <<<<<<< SEARCH exact existing lines (2-3 lines of context) ======= new lines >>>>>>> REPLACE
FILE can be html, css or js. Put many blocks in one patch. The SEARCH text must exist in the editor and appear only once. Differences in indentation are tolerated, but the text of each line must match. To delete code, leave the new part empty.
5. If a red error box appears under the patch text, NOTHING was changed. Read the message, fix that block (add more context lines or correct the text), and click Apply again.
6. Test: click "▶ Run". The preview opens in a new tab. Use the Desktop / Laptop / Tablet / Mobile buttons there, and open Console to see JavaScript errors.
7. Undo: press Ctrl+Z in the editor, or open "🕘 History" → Restore. A backup is made automatically before every Patch and Run.
Now click "✕ Close guide" and start.