# Production Theme Notch Styling Issue - Diagnostic Report **Date**: 2026-02-10 **Status**: CRITICAL - CSS rules missing in production --- ## Executive Summary The theme notch component appears as plain buttons in normal document flow on production (https://santhoshj.com) because **the CSS rules for `.theme-notch` and related selectors are completely absent from the served `/styles/global.css` file**. --- ## Evidence ### 1. CSS File Status - **Local file**: `site/public/styles/global.css` ✅ **CONTAINS** `.theme-notch` rules (lines 306-457) - **Production file**: `https://santhoshj.com/styles/global.css` ❌ **MISSING** `.theme-notch` rules - **File size**: Local = 1215 lines; Production = ~17,628 bytes (109 CSS rules) - **Network status**: [200] OK - file loads successfully ### 2. CSS Rules Missing in Production **Local CSS (lines 306-457) includes:** ```css .theme-notch { position: fixed; top: var(--theme-notch-top); right: max(8px, env(safe-area-inset-right)); z-index: 12; display: flex; align-items: center; gap: 10px; pointer-events: none; } .theme-notch-panel { position: absolute; right: 60px; top: 0; display: grid; gap: 6px; padding: 12px; border-radius: 16px; border: 1px solid var(--stroke-mid); background: var(--surface-1); opacity: 0; transform: translateX(10px) scale(0.98); visibility: hidden; pointer-events: none; transition: opacity 160ms ease, transform 160ms ease, visibility 0s linear 160ms; } .theme-notch-handle { ... } .theme-notch-glyph { ... } .theme-notch-option { ... } .theme-notch-dot { ... } /* + media queries and forced-colors rules */ ``` **Production CSS**: ❌ **ZERO** matches for `.theme-notch*` selectors ### 3. Computed Styles on Production **Actual computed styles (from browser DevTools):** ``` .theme-notch: position: static (WRONG - should be: fixed) top: auto (WRONG - should be: 84px) right: auto (WRONG - should be: max(8px, env(safe-area-inset-right))) display: block (CORRECT - but only by accident) opacity: 1 (CORRECT - but only by accident) visibility: visible (CORRECT - but only by accident) z-index: auto (WRONG - should be: 12) .theme-notch-panel: position: static (WRONG - should be: absolute) top: auto (WRONG - should be: 0) right: auto (WRONG - should be: 60px) display: block (WRONG - should be: grid) opacity: 1 (WRONG - should be: 0 initially) visibility: visible (WRONG - should be: hidden initially) ``` ### 4. HTML Markup Status ✅ **Present and correct:** - `