--- convoy: scanner-mobile-checkout brief_number: 1 depends_on: [] recommended_model: composer-2.5-fast model_tier: fast files: - components/Layout.js - test/components/Layout.test.js cross_brief_commitments: - brief: 4 description: | Brief 4 passes `chrome="immersive"` on `` from `pages/scanner.js` for authenticated scanner sessions. This brief only adds the prop and mobile-only hiding behavior; Brief 4 owns when it is set. --- # Brief 1: Layout immersive chrome ## Goal (1 sentence) Add a narrow `chrome="immersive"` prop to `Layout` that hides global app chrome on viewports `< md` without restyling the desktop sidebar. ## Files in scope (do not edit anything else) - `components/Layout.js` - `test/components/Layout.test.js` ## Conventions to follow - Extend the existing `Layout` signature: `export default function Layout({ children, user = null, showSearch = false })` → add `chrome = 'default'`. - Immersive is **mobile-only** (`md:hidden` / `max-md:` patterns). At `md+`, immersive behaves like `default` (sidebar + TopSearchBar unchanged per D3 desktop note). - Hide when `chrome === 'immersive'` on `< md`: - `` (line ~674) - `` (line ~986) - Desktop `