html,
body {
    min-height: 100%;
}

body[data-community-preview="true"] {
    margin: 0;
    /* Tenant Community CSS remains the visual authority; do not impose the admin theme. */
}

body.body-community[data-community-preview="true"] {
    /* Legacy hides .body-community until fadeIn. Core sends usable first HTML and must remain
       visible without JavaScript; this scoped rule also wins over the old class-only rule. */
    display: block;
}

body[data-community-preview="true"] .pageform.clearfix::after {
    content: "";
    display: block;
    clear: both;
}

#sb-community-root[aria-busy="true"] {
    cursor: progress;
    /* Keep the current page fully painted until its replacement is ready. Dimming the entire
       header/content/footer on every GET caused a visible flash, not useful loading feedback. */
}

.sb-community-state {
    max-width: 42rem;
    margin: 4rem auto;
    padding: 2rem;
    border: 1px solid #dbe4ee;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 .75rem 2rem rgb(15 23 42 / 8%);
}
