# Broker Accounts Page — Implementation Plan > **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking. **Goal:** Migrate broker-accounts page area to use `@moex-vibe/design-system` components. **Architecture:** Replace legacy CSS classes, inline styles, and shared/components with DS equivalents. Keep business logic and data layer unchanged. The hero gradient section is intentionally left as custom CSS. **Tech Stack:** React 18, MUI 6.5, `@moex-vibe/design-system` 0.1.0 --- ## Files ### Modify - `apps/frontend/src/pages/broker-accounts/ui/BrokerAccountsPage.tsx` - `apps/frontend/src/widgets/broker-accounts-summary/ui/BrokerAccountsSummary.tsx` - `apps/frontend/src/widgets/broker-account-card/ui/BrokerAccountCard.tsx` - `apps/frontend/src/shared/ui/broker-allocation-bar/BrokerAllocationBar.tsx` - `apps/frontend/src/styles.css` — удалить осиротевшие классы ### No changes - Entity layer (`entities/broker-account/`, `entities/broker-position/`) — бизнес-логика не меняется - Shared formatters (`shared/lib/formatters.ts`) — используются для форматирования значений - Shared API layer (`shared/api/`) — не меняется --- ## Task 1: BrokerAllocationBar Replace inline HTML + CSS classes with `` + ``. - Empty: `

` → `` - Track: `

` → `` with `sx` - Segment: `` → `` with `sx` - Legend: `
    ` / `
  • ` → `` with `sx` flex layout - Swatch: `` with inline style → `` with `sx` Segment width/background и swatch colors остаются как inline styles (dynamic per item, from ALLOCATION_CONFIG). ## Task 2: BrokerAccountCard Replace legacy shared components and CSS with DS equivalents. - Skeleton block: `` → `` from DS - Eyebrow: `

    ` → `` - Title: `

    ` → `` - Stat labels/values: `` + `` → `` + `` - Card wrapper: `
    ` → `` with `component={Link}` or `` with `sx` - Error: `
    ` → `` + `` + `