/* Shared by the pre-JavaScript shell and React loading boundaries. */ html, body, #root { margin: 0; width: 100%; height: 100%; } .motion-loading { display: grid; place-items: center; align-content: center; gap: var(--motion-space-16); flex: 1; width: 100%; height: 100%; min-height: 0; box-sizing: border-box; padding: var(--motion-space-24); border-radius: inherit; background: var(--motion-bg); color: var(--motion-text); } .motion-loading-mark { display: block; width: var(--motion-space-40); height: var(--motion-space-40); background: currentColor; -webkit-mask: url('./brand/loading-mark.svg') center / contain no-repeat; mask: url('./brand/loading-mark.svg') center / contain no-repeat; } .motion-loading[data-overlay] { position: absolute; inset: 0; background: transparent; } .motion-loading-label { color: var(--motion-muted); font: var(--motion-text-sm)/var(--motion-leading-body) var(--motion-font-sans); text-align: center; } /* The first paint has the same narrow inset as the ready workspace. */ #root > .motion-loading { width: calc(100% - var(--motion-space-8)); height: calc(100% - var(--motion-space-8)); margin: var(--motion-space-4); border-radius: var(--motion-radius-step-10); } body:has(#root > .motion-loading) { background: var(--motion-shell); }