/* Company loading: 220px logo group and four bouncing brand dots. */
.framas-loading {
    position: relative;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
.framas-loading-splash {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    padding: 32px 16px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, .7);
    cursor: progress;
}
.framas-loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 220px;
    max-width: 100%;
}
.framas-loading-logo {
    display: block;
    width: 100%;
    height: 60px;
    flex-shrink: 0;
    /* Relative to this stylesheet, so Portal and standalone hosting both work. */
    background: url("../image/framas-loading.png") center / contain no-repeat;
}
.framas-loading-dots {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 24px;
}
.framas-loading-dots > span {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    border-radius: 50%;
    animation: framas-loading-bounce .5s infinite alternate;
}
.framas-loading-dots > span:nth-child(1) { background: #4285f4; animation-delay: -.25s; }
.framas-loading-dots > span:nth-child(2) { background: #ea4335; animation-delay: -.5s; }
.framas-loading-dots > span:nth-child(3) { background: #fbbc05; animation-delay: -.75s; }
.framas-loading-dots > span:nth-child(4) { background: #34a853; animation-delay: -1s; }
.framas-loading-label { margin-top: 20px; color: #333; font-size: .85rem; text-align: center; }
/* Data views reserve the remaining body below their toolbar for the indicator. */
.digital-content-page:not(.document-editor-page):has(> .framas-loading--view),
.documents-module:has(> .documents-main > .framas-loading--view),
.documents-main:has(> .framas-loading--view) {
    display: flex;
    flex-direction: column;
}
.digital-content-page:not(.document-editor-page):has(> .framas-loading--view) {
    min-height: calc(100dvh - 112px);
}
.documents-module:has(> .documents-main > .framas-loading--view) {
    min-height: calc(100dvh - 112px);
}
.documents-main:has(> .framas-loading--view) { flex: 1; }
.digital-content-page:has(> .framas-loading--view) > :not(.framas-loading--view),
.documents-main:has(> .framas-loading--view) > :not(.framas-loading--view) {
    flex-shrink: 0;
}
.framas-loading--view {
    display: flex;
    flex-direction: column;
    flex: 1 0 180px;
    align-self: stretch;
    min-height: 180px;
}
.framas-loading--view > .framas-loading-splash {
    flex: 1;
    min-height: 180px;
    background: transparent;
}
.framas-loading--fullscreen { position: fixed; inset: 0; z-index: 1600; }
.framas-loading--overlay { position: absolute; inset: 0; z-index: 10; }
.framas-loading--fullscreen > .framas-loading-splash,
.framas-loading--overlay > .framas-loading-splash { height: 100%; min-height: 0; }
.framas-loading--compact > .framas-loading-splash { min-height: 112px; padding: 16px; }
.framas-loading--compact .framas-loading-content { width: 132px; }
.framas-loading--compact .framas-loading-logo { height: 36px; }
.framas-loading--compact .framas-loading-dots { margin-top: 16px; }
.framas-loading--compact .framas-loading-dots > span { width: 10px; height: 10px; }
/* Runner autosave belongs in its existing header status, without covering the form. */
.framas-loading--status { width: 72px; flex: 0 0 72px; }
.framas-loading--status > .framas-loading-splash { min-height: 0; padding: 8px 0; background: transparent; }
.framas-loading--status .framas-loading-content { width: 64px; }
.framas-loading--status .framas-loading-logo { height: 18px; }
.framas-loading--status .framas-loading-dots { margin-top: 10px; }
.framas-loading--status .framas-loading-dots > span { width: 5px; height: 5px; }
.framas-loading--wrapped { min-height: 200px; }
.framas-loading--wrapped > .framas-loading-splash { position: absolute; inset: 0; z-index: 10; }
.framas-loading--wrapped[aria-busy="false"] { min-height: 0; }
.framas-loading-children { width: 100%; height: 100%; }
.media-preview-pdf-viewport { position: relative; }
/* The static startup splash hands off when the interactive route first renders. */
body:has(.digital-route-ready) > #digital-startup-loading { display: none; }
@keyframes framas-loading-bounce {
    from { transform: translateY(-8px); }
    to { transform: translateY(4px); }
}
@media (prefers-reduced-motion: reduce) {
    .framas-loading-dots > span { animation: none; }
}
