html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* Avoid inline/line-box vertical offset; match Compose’s layout size to the visual viewport. */
body {
    display: block;
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Center the pre-Compose spinner without flex/text-align on body (avoids affecting the canvas root). */
body > svg[role="presentation"] {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}