SSR-safe wrapper around browser storage with namespacing, serialization control, and full TypeScript key safety.
Namespacing prevents collisions and allows scoped clearing.