/* ==========================================================================
   fix 7 rule 5 on the older pages: every other glass variant (other opacities, blurs, dark glass) resolves to the three
   recipes of assets/fix7/system.css. Loaded only while ui_fix7 is on, after every older sheet (f7_head() at the end of
   v4_head()); the live rules stay in their files for the switch-off site. Only the material changes here (fill, blur,
   edge + shadow, and ink text on the floating ones): never sizes, radii of round buttons or layout.
   The full list, with what each one became: docs/fix7/core/_glass-inventory.txt
   fix 8 (PROMPT 0.1): the clear and ink recipes are now exactly the live header pill's (ring .12, no bottom inset, 16 %).
   The floating group (.26 / blur 36, ink text) is kept until its text is measured like the .bf-pop pop-ups.
   ========================================================================== */

/* the shared tokens the older sheets read */
:root:root,html body,html body.v3{
  --pill-bg:rgba(255,255,255,.16); --pill-filter:blur(20px) saturate(1.7);
  --pill-edge:inset 0 1px 0 rgba(255,255,255,.55),inset 0 0 0 1px rgba(255,255,255,.18),inset 0 -1px 1px rgba(255,255,255,.1);
  --pill-shadow:0 10px 28px -14px rgba(15,21,25,.28);
  --glass-clear:rgba(255,255,255,.16);
  --glass-shadow:inset 0 1px 0 rgba(255,255,255,.55),inset 0 0 0 1px rgba(255,255,255,.12),0 10px 28px -14px rgba(15,21,25,.28);
  --sheet-bg:rgba(255,255,255,.26);
  --glass:rgba(255,255,255,.16); --glass-dark:rgba(255,255,255,.16); --glass-light:rgba(255,255,255,.16);
  --gc-bg:rgba(255,255,255,.16); --gc-filter:blur(20px) saturate(1.7);
  --gc-edge:inset 0 1px 0 rgba(255,255,255,.55),inset 0 0 0 1px rgba(255,255,255,.12);
  --gc-shadow:0 10px 28px -14px rgba(15,21,25,.28);
  --gc-float:rgba(255,255,255,.26); --gc-float-filter:blur(36px) saturate(1.8);
  --gc-float-edge:inset 0 1px 0 rgba(255,255,255,.75),inset 0 0 0 1px rgba(255,255,255,.4),0 24px 48px -20px rgba(15,21,25,.28);
  --bfp-bg:rgba(255,255,255,.26); --bfp-filter:blur(36px) saturate(1.8);
  --bfp-shadow:inset 0 1px 0 rgba(255,255,255,.75),inset 0 0 0 1px rgba(255,255,255,.4),0 24px 48px -20px rgba(15,21,25,.28);
}

/* .bf-glass: clear glass on a field, white text (16 %, blur 20 saturate 1.7) */
html:root body :is(.glass,.v3 .glass,.v3 .frost,.f3p-glass,.f3p-cpill,.f3p-more,.f4t-cpill,.f3-glassbtn,.v3 .btn.glassy,.chip.g,.v3 .chip.g,
  .v4-hdr .v4-codechip,.v3 .av.g,.v3 .seg.on-field,.v3 .v3-helpsearch,.v5p-chip,.v5p-draft,.v5p-back,.v5p-bar,.v5p-tile,.v5-glass,
  .v5-pill.ghost,.v5-pass .av,.v5-pass .qr,.v4 .lc-initial span,.v4 .lc-state,.lc-herocode,.v4-site .bf-errpage .btn.ghost,.v4-hdr .v4-back,
  .f3b-make,.f4b-choose,.sheet-glass .btn.dark,.bf-drawer-cta,.pp-head-photo .btn.dark){
  background:rgba(255,255,255,.16)!important;-webkit-backdrop-filter:blur(20px) saturate(1.7)!important;backdrop-filter:blur(20px) saturate(1.7)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.55),inset 0 0 0 1px rgba(255,255,255,.12),0 10px 28px -14px rgba(15,21,25,.28)!important}

/* .bf-glass-ink: panels on a field with ink text — fix 8 (0.1): the one glass, 16 % (was 22 %; glass.css's "A" panels were .36) */
html:root body :is(.sheet,.v3 .sheet,.pit-sheet,.pf-glass,.held2-msg--out,.ask-mini,.p2-ex,.pv-card,body.has-bg .card.center){
  background:rgba(255,255,255,.16)!important;-webkit-backdrop-filter:blur(20px) saturate(1.7)!important;backdrop-filter:blur(20px) saturate(1.7)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.55),inset 0 0 0 1px rgba(255,255,255,.12),0 10px 28px -14px rgba(15,21,25,.28)!important;
  color:#0E1417}

/* .bf-pop: everything that floats — menus, sheets, dialogs, toasts, docks, the cookie card (26 %, blur 36, ink text) */
html:root body :is(.sheet-glass,.bf-nav-popover,.bf-nav-drawer-panel,.v3 .v3-pop,.v3 .v3-sheetpanel,.v3-pop,.v3-sheetpanel,.bf-language-popover,
  .bf-drawer-langlist,.bf-cc-card,.v3 dialog,.v3 .v3-toast,.f4-toast,.pv-dock){
  background:rgba(255,255,255,.26)!important;-webkit-backdrop-filter:blur(36px) saturate(1.8)!important;backdrop-filter:blur(36px) saturate(1.8)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.75),inset 0 0 0 1px rgba(255,255,255,.4),0 24px 48px -20px rgba(15,21,25,.28)!important;
  color:#0E1417!important}
html:root body .bf-pop:not(.f7-pop):not(.f7-drawer){border-radius:28px}

/* kept as the older sheets have them: no second blur inside a floating panel (glass.css, v3.css) */
html:root body :is(.sheet,.sheet-glass,.pit-sheet,.v3-pop,.v3-sheetpanel,.bf-pop) :is(.btn.glassy,.chip.g,.av.g){-webkit-backdrop-filter:none!important;backdrop-filter:none!important}

/* fallbacks: solid light, ink text, never dark (low-memory phones: html.v3-lite, as v3.css) */
html.v3-lite:root body :is(.glass,.frost,.f3p-glass,.chip.g,.v5-glass,.sheet,.sheet-glass,.pit-sheet,.v3-pop,.v3-sheetpanel,.v3-toast){
  -webkit-backdrop-filter:none!important;backdrop-filter:none!important;background:rgba(255,255,255,.94)!important;color:#0E1417!important}
@supports not ((-webkit-backdrop-filter:blur(1px)) or (backdrop-filter:blur(1px))){
  html:root body :is(.glass,.frost,.f3p-glass,.f3-glassbtn,.chip.g,.v5-glass,.v5p-tile,.sheet,.pf-glass,.pv-card,.sheet-glass,.v3-pop,.v3-sheetpanel,.bf-cc-card,.v3-toast,.f4-toast,.pv-dock){
    background:rgba(255,255,255,.94)!important;color:#0E1417!important}
}
@media (prefers-reduced-transparency:reduce){
  html:root body :is(.glass,.frost,.f3p-glass,.f3-glassbtn,.chip.g,.v5-glass,.v5p-tile,.sheet,.pf-glass,.pv-card,.sheet-glass,.v3-pop,.v3-sheetpanel,.bf-cc-card,.v3-toast,.f4-toast,.pv-dock){
    background:rgba(255,255,255,.94)!important;color:#0E1417!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
}
