Add a Bucket tool to the supplied offline 8×8 pixel editor. Clicking a cell with Bucket selected must recolor exactly the region of matching cells connected to that cell horizontally or vertically, using the selected palette color. Diagonal contact alone does not connect cells. Filling with the same color must leave the icon unchanged. For example, filling the left white eye cyan must not change the right eye or the outline.

Add a visible button with id="bucket". Keep the starter's appearance, original robot, palette, Pencil, Reset and actual 8×8 opaque PNG download working. Preserve the original DOM contract: #board is the visible editable 8×8 canvas; #pencil, #reset and #download are buttons; #palette contains buttons with the original data-color hex values. Keep the canvas mapping and colors unchanged. Implement only this ticket.

Do not use tools. Return the entire standalone HTML document, including all CSS and JavaScript, with no Markdown fences, commentary or external dependencies. The source to revise follows.
