The initial situation is that there is a ready-made layout of part of the product for a telemedicine service (personal account for a patient and a doctor) using Next.js 13 (app router) + React 18 + TypeScript + TailwindCSS. Layouts in Figma have been updated, but the current layout was put together quickly and now breaks on mobile, has accessibility issues and is unstable in Safari. Additionally, Radix UI components, tables on TanStack Table, and forms on React Hook Form are used. Assembly via Vite is not used, only Next build. Subject area - medical questionnaires, appointment schedule, list of documents and chat consultation. It is important to carefully handle long texts, RU/EN localization, different time zones and download states. What should happen is an adapted, stable and accessible layout of key screens without changing the business logic. Only the UI layer needs to be reworked - CSS/components/markup - with minimal JSX edits, without touching the API and application state. Scope of work and stages 1) Audit of the current layout and discrepancies with Figma - fixing a list of problems, proposals for unifying Tailwind UI tokens, identifying class conflicts, places with fragile layout and invalid semantics. 2) Adaptation for breakpoints - 360, 768, 1024, 1440. Screens: dashboard, schedule with filters, appointment card, medical questionnaire with a multi-step form, table of documents, chat. You cannot use crutches like fixed heights for blocks with dynamic content. 3) Fixing cross-browser problems - Safari 16+, iOS Safari 16+, Chrome, Firefox. Particular attention is given to position: sticky in containers, overflow, scrolling in Radix modal windows, display of input type=date and custom selectors. 4) Accessibility and navigation - correct roles, aria attributes, focus styles, tab navigation, focus trap in modals, readable field labels, warnings about form errors. Requirement - no regressions in Radix UI and React Hook Form. 5) Performance and visual stability - eliminate layout jumps (CLS) on screens with tables and skeletons, optimize the rendering of long lists within the layout (without introducing new virtualization libraries, only layout techniques where possible). 6) Preparing for support - bring styles to a unified approach: reused Tailwind classes via @apply or utilities, consistent indentation/typography, removal of duplicate classes, neat comments in places of non-standard solutions. Restrictions - You cannot change server components and API contracts, you cannot rewrite routing. - You cannot connect heavy UI frameworks and CSS-in-JS libraries, we remain on Tailwind + the current stack. - i18n coverage cannot be reduced - lines are already translated through the existing mechanism, the layout must support longer English text. - All changes must be submitted as a PR to the GitHub repository, with clear commits. Measurable acceptance criteria - Pixel proximity to Figma at key breakpoints - deviations of no more than 8px on the grid and indents, fonts and weights without unauthorized replacements. - There is no horizontal scroll at 360px width on any of the specified screens. - Cross-browser - the same scrolling logic in modals and sticky elements in Chrome/Firefox/Safari, without jerking or overlap. - Lighthouse (Mobile) for account pages - Accessibility no lower than 90, Best Practices no lower than 90, Performance no lower than 75 with a clean profile without extensions (we understand that Next and data influence - we evaluate it within the limits of layout edits). - A11y - all interactive elements are accessible from the keyboard, the visible focus ring is not disabled, form errors are readable by a screen reader. - No visual regressions in existing components - confirmed by before/after screenshots for 6 screens on 2 breakpoints. The customer will provide access to the repository, a link to Figma with updated layouts and a list of problems noticed by QA.