The app rendered a fake macOS window (traffic-light dots, framed titlebar,
max-width:1200px postcard, border-radius, box-shadow) inside the REAL
browser window/tab whenever it wasn't running as an installed standalone
PWA — i.e. every normal browser-tab visit (Firefox included). That's a
literal window-inside-a-window: the real browser chrome plus a fake one,
letterboxed to 1200px with visible padding around it instead of filling
the viewport.
Removed the isStandalone detection + the standalone/browser branching
entirely (matchMedia state, showFauxChrome, `<MacWindow>`, the 3 `<Dot>`
traffic lights) — the app now always renders full-bleed like the
standalone case already did. The status bar (mode pill, SSO badge, page
title, brand button) is kept and always shown; only the fake window
controls and letterboxing are gone. The prototype's own "browser inside a
mac window" mockup is still viewable directly at docs/prototype/
Prospector.html for design comparisons — the live app doesn't need to
re-simulate it.
Also found and worked around a separate pre-existing bug while verifying
this: the app's styled-components `GlobalStyle` (main.tsx, ui/global.tsx —
untouched by this change, predates this session per `git log`) sets
html/body background via CSS-in-JS, but that injection never actually
lands at runtime (confirmed via the live stylesheet's cssRules — zero
global rules, only scoped component classes) for reasons not yet
root-caused. Until AppShell's own background covered the full width, this
was invisible; with the fake window's max-width gone it would have shown
as a white edge around the app on any overscroll/bounce or before the
JS-driven styles apply. Added a static `<style>` in index.html hardcoding
html/body's background to the luxe-dark primary tone (#0a0a0f, matching
@cocotte/site-themes' luxeDarkTheme) as a bulletproof fallback that
doesn't depend on React/styled-components mounting at all.
Verified in Chrome across routes at multiple window sizes: full-bleed,
no white edges, no double chrome. 387 backend + 19 web tests, typecheck,
and build all green.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>