What problem does it solve? Direct calls to browser globals like window, document, and localStorage break server-side rendering and make Angular code untestable. This rule defines how to reach the runtime environment through dependency injection tokens instead of touching the global object directly. ## Core Features & Use Cases - DI Token Mapping: Replaces direct global calls with inject(WINDOW), inject(DOCUMENT), and PlatformService from @rt-tools/core, with a lookup table for common patterns like window.open and crypto.randomUUID. - SSR Pitfall Guidance: Documents failure modes under server-side rendering, such as the WINDOW token factory throwing when the document has no defaultView, and when a running SSR server is needed to verify a change. - Pure Function Handling: Specifies that *.logic.ts and *.util.ts files receive the window as a parameter since they have no dependency injection. - Use Case: When adding a feature that reads localStorage or checks the platform in an Angular service, load this rule to write the code with the correct tokens and avoid SSR crashes that only appear on a running page-rendering server. ## Quick Start Load the platform-access rule before editing any Angular code that touches window, document, localStorage, or PLATFORM_ID.