/* wm-glass.css - blur budget (Claude plan step 2, 31 Oct 2026).
   Real backdrop-filter is kept ONLY on: the top bar (header.topbar / .wmtop), the pill (#wmC, .wcpill,
   .wcglass, .wmpill, .wmknob, nav.tabbar, nav.lgp, .sheet.mp - untouched, exactly as wm-shell.css draws it)
   and sheets (only one is ever open; capped at 20px). Everything else becomes fake glass: its own tint,
   gradient and inner border stay exactly as before and only the live backdrop blur is switched off. Over
   the site's flat page background a blurred and an unblurred backdrop look the same, so cards, chips,
   wx pills and buttons keep their look while iOS stops building hundreds of blur layers.
   Undo: remove the <link href=".../wm-glass.css"> lines (or empty this file) and run
   node tools/version_assets.js. Nothing else was changed. */

/* 1. No backdrop blur outside the allowed surfaces (elements and their ::before/::after).
   The :not(#_g) chain lifts specificity above the strongest existing !important rules. */
html:not(#_g1):not(#_g2):not(#_g3):not(#_g4):not(#_g5):not(#_g6) body :not(:is(header.topbar,.wmtop,#wmC,#wmC *,.wcpill,.wcpill *,.wcglass,.wmpill,.wmpill *,.wmknob,nav.tabbar,nav.tabbar *,nav.lgp,nav.lgp *,.sheet.mp,.sheet.glass,.fs-spot,.wmf-sh,.wx-menu,.wds-sm,.ipop,.sug,.wm-tcard)),
html:not(#_g1):not(#_g2):not(#_g3):not(#_g4):not(#_g5):not(#_g6) body :not(:is(header.topbar,.wmtop,#wmC,#wmC *,.wcpill,.wcpill *,.wcglass,.wmpill,.wmpill *,.wmknob,nav.tabbar,nav.tabbar *,nav.lgp,nav.lgp *,.sheet.mp,.sheet.glass,.fs-spot,.wmf-sh,.wx-menu,.wds-sm,.ipop,.sug,.wm-tcard))::before,
html:not(#_g1):not(#_g2):not(#_g3):not(#_g4):not(#_g5):not(#_g6) body :not(:is(header.topbar,.wmtop,#wmC,#wmC *,.wcpill,.wcpill *,.wcglass,.wmpill,.wmpill *,.wmknob,nav.tabbar,nav.tabbar *,nav.lgp,nav.lgp *,.sheet.mp,.sheet.glass,.fs-spot,.wmf-sh,.wx-menu,.wds-sm,.ipop,.sug,.wm-tcard))::after{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}

/* 2. Sheets keep real blur, capped at 20px (was 24-30px). Blur inside a sheet is removed by rule 1,
   so blur is never nested. */
html:not(#_g1):not(#_g2):not(#_g3):not(#_g4):not(#_g5):not(#_g6) body :is(.sheet.glass,.fs-spot,.wmf-sh,.wx-menu,.wds-sm,.ipop,.sug,.wm-tcard):not(.mp){-webkit-backdrop-filter:blur(20px) saturate(170%)!important;backdrop-filter:blur(20px) saturate(170%)!important}
