/* F v4 only; same document scroll, install identity, geometry and unpainted raw toolbar. */
body[data-f-v4] #heading{filter:blur(var(--f-v4-title-blur,0px))}
body[data-f-v4] .compact{visibility:visible}
body[data-f-v4] [data-f-mask=v4-hidden]{opacity:0}
body[data-f-v4] [data-f-mask=v4-ramp]{
 -webkit-mask-image:var(--f-v4-gradient);mask-image:var(--f-v4-gradient);
 filter:blur(var(--f-v4-blur,0px));
}
/* The original 310px hero stays exactly where it was at rest.
   An independently painted sky extension sits ABOVE it, not over controls.
   Root colour is a separate rubber-band fallback: native host may ignore it. */
html[data-f-v4-sky]{background-color:#779cb3}
html[data-f-v4-sky] body[data-view=art] .art::before{
 content:"";position:absolute;inset:-240px 0 auto;height:240px;
 background:linear-gradient(to bottom,#65889f,#779cb3);pointer-events:none;
}
body[data-f-v4][data-f-refinement=v4-elastic][data-view=art] .art{
 transform-origin:center bottom;transform:scaleY(var(--f-v4-art-scale,1));
}
/* The backing is switched off when scrolling normally or on plain lists. */
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more){
 body[data-f-v4] [data-f-mask=v4-ramp]{-webkit-mask-image:none;mask-image:none;filter:none}
 body[data-f-v4] [data-f-mask=v4-hidden]{opacity:1}
 body[data-f-v4] #heading{filter:none}
}
@media(prefers-reduced-motion:reduce){
 body[data-f-v4][data-f-refinement=v4-elastic][data-view=art] .art{transform:none}
}