/* R69 Review3: readable legacy fallback and targeted low-end GPU relief. */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  html, body { background:#f7f8fa; color:#1b1d21; }
  html[data-theme=dark], html[data-theme=dark] body { background:#111; color:#eee; }

  /* Static var() fallbacks for the most visible surfaces */
  .v54-shell-width, .v64-home, .v65-home-copy, .v64-notice,
  .v64-cloud, .v65-home-specimen, .v54-site-footer { background:#fff; color:#1b1d21; }
  html[data-theme=dark] .v54-shell-width,
  html[data-theme=dark] .v64-home,
  html[data-theme=dark] .v65-home-copy,
  html[data-theme=dark] .v64-notice,
  html[data-theme=dark] .v64-cloud,
  html[data-theme=dark] .v65-home-specimen,
  html[data-theme=dark] .v54-site-footer { background:#191919; color:#eee; }
  a, a:visited { color:#2b6cb0; }
  html[data-theme=dark] a, html[data-theme=dark] a:visited { color:#8ab4f8; }

  /* :is() expansion - backdrop canvases / scene shell */
  #vineGlassScene {
    display:block; position:fixed; left:0; right:0; top:0;
    width:100%; height:100vh; max-width:100%; overflow:hidden;
    z-index:-4; pointer-events:none; isolation:isolate;
  }
  #vineGlassBackdrop, #vineGlassBackdropNext {
    display:block; position:fixed; top:0; left:0;
    width:100%; height:100vh; max-width:none; border:0;
    z-index:-4; pointer-events:none; user-select:none;
  }
  /* IE has no WebGL optical layer here; keep a static scene instead of black */
  #vineGlassScene { background-color:#f7f8fa; background-size:cover; background-position:center; }
  html[data-theme=dark] #vineGlassScene { background-color:#111; }
  #vineGlassBackdrop, #vineGlassBackdropNext { visibility:hidden; }

  /* <dialog> is an unknown inline element in IE: give it block + positioning */
  dialog.v64-portal { display:none; }
  dialog.v64-portal[open] {
    display:block; position:fixed; left:50%; top:50%;
    width:90%; max-width:520px; max-height:84vh; overflow:auto;
    background:#fff; color:#1b1d21; border:1px solid #d9dde3;
    z-index:9999; -ms-transform:translate(-50%,-50%); transform:translate(-50%,-50%);
  }
  html[data-theme=dark] dialog.v64-portal[open] { background:#191919; color:#eee; border-color:#3a3a3a; }
  .v62-portal-scroll { padding:4px 22px 12px; overflow:auto; }


  /* Grid -> block. Two service cards stack full width, same as R68 mobile. */
  .v69-service-row, .v64-home-bottom { display:block; width:100%; }
  .v64-home-bottom > *, .v69-service-row > * { display:block; width:100%; margin:0 0 16px 0; box-sizing:border-box; }
  .v65-home-specimen, .v64-cloud { min-height:auto; }

  /* No native support anyway; keep text crisp and avoid invisible overlays */
  .v60-portal, .v54-header-inner, .v54-desktop-links, .v54-mobile-links { background:transparent; }
  * { -ms-filter:none; }
  .v54-main { padding-left:20px; padding-right:20px; }
  .v54-site-footer { padding-bottom:20px; }
  html, body { overflow-x:hidden; }
}


@supports not (height:100lvh){
 html body.v54-shell.v60-glass #vineGlassScene{left:0;right:0;top:0;width:100%;max-width:100%;height:100vh;contain:paint;overflow:hidden}
 html body.v54-shell.v60-glass #vineGlassBackdrop,html body.v54-shell.v60-glass #vineGlassBackdropNext,
 html body.v54-shell.v60-glass #vineGlassVeil,html body.v54-shell.v60-glass #vineGlassVeilDark{position:absolute;left:0;right:0;top:0;bottom:0;width:100%;height:100%;max-width:100%}
}
html[data-vine-lowend="1"] *{will-change:auto!important;mix-blend-mode:normal!important}
html[data-vine-lowend="1"] .v54-header-inner,html[data-vine-lowend="1"] .v54-mobile-links,
html[data-vine-lowend="1"] dialog.v64-portal,html[data-vine-lowend="1"] .v65-home-specimen,
html[data-vine-lowend="1"] .v64-cloud{backdrop-filter:blur(3px)!important;-webkit-backdrop-filter:blur(3px)!important;box-shadow:0 2px 8px rgba(0,0,0,.08)!important;filter:none!important}
/* Low-end retains short opacity feedback; only the expensive wallpaper loop is disabled. */
html[data-vine-lowend="1"]{--v69-content-in-duration:210ms}
html[data-vine-lowend="1"] #vineGlassBackdrop,html[data-vine-lowend="1"] #vineGlassBackdropNext{animation:none!important;image-rendering:auto}

html[data-vine-lowend="1"].v66-palette-change,
html[data-vine-lowend="1"].v67-material-changing,
html[data-vine-lowend="1"].v66-palette-change body.v54-shell,
html[data-vine-lowend="1"].v67-material-changing body.v54-shell,
html[data-vine-lowend="1"].v66-palette-change body.v54-shell :is(#siteHeader .v54-header-inner,dialog.v69-portal,#homePage .v65-home-specimen,#homePage .v64-cloud),
html[data-vine-lowend="1"].v67-material-changing body.v54-shell :is(#siteHeader .v54-header-inner,dialog.v69-portal,#homePage .v65-home-specimen,#homePage .v64-cloud){transition-duration:220ms!important}

html[data-vine-lowend="1"].v69-document-enter body.v54-shell main[data-v69-navigation-shell]{animation-duration:210ms}
