Generates a unique id string with the given prefix.
Combines a module-level counter with a short random suffix so ids remain
unique across multiple adapter instances on the same page. Deliberately
avoids crypto.randomUUID(), which is unavailable outside secure contexts.
Generates a unique id string with the given prefix.
Combines a module-level counter with a short random suffix so ids remain unique across multiple adapter instances on the same page. Deliberately avoids
crypto.randomUUID(), which is unavailable outside secure contexts.