# Implementation
Inspect repository instructions and framework before editing. Use native landmarks, logical headings, buttons for actions, links for navigation, labeled inputs and meaningful alt text. Prefer native controls; use ARIA only when necessary. Manage focus on dialogs and route changes; support keyboard, visible focus, escape and accessible status announcements. Avoid hidden focusable elements. Test zoom and reflow.
Use Grid/Flexbox, semantic tokens and component reuse. Keep business logic separate from presentation where practical. Preserve existing APIs, routing and design conventions. Do not replace working functionality with mock UI. Handle loading, empty, error, success and permissions. Avoid unnecessary dependencies. Use feature detection and progressive enhancement; core content should survive missing decorative CSS/JS where feasible.
Performance: reserve image dimensions, optimize fonts and images, avoid unnecessary hydration and expensive animations. Prefer transform/opacity, but profile actual costs. Target good field Core Web Vitals: LCP <=2.5s, INP <=200ms, CLS <=0.1 at p75; local tests are proxies, not field proof. Respect reduced motion. Never claim tests ran if they did not.
