/* iOS paint canvas only. Layout heights and control safe areas belong to the
   viewport manager; screen measurements must never size their containers. */
html:root[data-lovemi-ios-edge-background] {
    background-color: var(--lovemi-edge-bg-color, #fff) !important;
    background-image: var(--lovemi-edge-bg-image, none) !important;
    background-size: var(--lovemi-edge-bg-size, auto) !important;
    background-position: var(--lovemi-edge-bg-position, 0 0) !important;
    background-repeat: var(--lovemi-edge-bg-repeat, no-repeat) !important;
    background-origin: border-box !important;
    background-clip: border-box !important;
    background-attachment: scroll !important;
}

/* The old fixed bubble decoration can reach farther than the clipped app box.
   Home/boot already supply their complete artwork, so it must not tint only
   their newly exposed edge. Other pages keep their existing decoration. */
html:root[data-lovemi-ios-edge-background="boot"] body::before,
html:root[data-lovemi-ios-edge-background="home"] body::before {
    display: none !important;
}

html[data-lovemi-ios-edge-background="home"] #home-screen > .home-screen-bg-layer {
    height: var(--lovemi-paint-height, 100%) !important;
    bottom: auto !important;
}

html[data-lovemi-ios-edge-background="home"][data-lovemi-ios-edge-home-gradient="1"] #home-screen {
    background-size: var(--lovemi-edge-home-gradient-size) !important;
}

