Abilities: four small things that would make multi-page agent builds more reliable

Hi guys! A few requests from building complete sites through the 2.4 abilities. Each one costs us a round trip or a manual fix today.

1. Global class name collisions during import: let us choose what happens

Importing a second page whose CSS has .card with identical declarations reuses the existing class, which is great. If the declarations differ by even one value, the whole import fails with bricks_conflict_duplicate_global_class_name. Setting options.create_global_classes: false avoids that, but then the rule lands in the section’s _cssCustom rather than in native controls.

On a multi-page build this comes up all the time (a hero variant, a slightly different card padding). An option such as global_class_conflict: "fail" | "reuse" | "update" | "suffix" would let the caller decide. Including the differing declarations in the error data would also help.

2. The HTML/CSS import: per-declaration report (a reminder of #40291)

responseFormat: "detailed" gives customCssGlobalClassCount and customCssBytes, which is a good start. A list of {selector, property, breakpoint, target: native|custom, reason} would tell us exactly which source line to rewrite before handover.

3. Local images in the import (a reminder of #40295)

On 2.4.4 an <img> whose src is this site’s own uploads URL still becomes {"url":…,"external":true} with no attachment ID and no srcset. Resolving it with attachment_url_to_postid() would make “upload, then import” a clean two-call flow.

And one that isn’t about the importer:

4. A loud error instead of a silent drop when element-count changes aren’t permitted

On a site where the agent role lacked builder access, bricks/add-element correctly failed with bricks_forbidden_builder_access. A direct meta write that added elements, however, “succeeded” while the stored tree stayed unchanged, because of the user_can_modify_element_count() guard. A _doing_it_wrong notice, or at least a debug-log line, when that guard discards a write would have saved us an afternoon.