/* The illustration fills the original 640 × 400 canvas while its parts move. */
.resource-visual { position: relative; display: block; width: 100%; aspect-ratio: 8 / 5; }
.resource-visual > svg, .resource-visual > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.resource-visual > svg { overflow: hidden; }
.resource-visual.resource-detail-image { height: auto; max-height: none; overflow: hidden; }
.resource-preview-toolbar { margin-top: 12px; gap: 10px; }
.resource-preview-toolbar .preview-label { line-height: 1.6; }
.resource-preview-toolbar .preview-toggle { flex-shrink: 0; }
.resource-preview-toolbar .preview-toggle:disabled { opacity: .55; cursor: default; }
.resource-visual .resource-motion-part { animation-play-state: paused !important; }
.resource-visual.is-playing .resource-motion-part { animation-play-state: running !important; }
body:not(.motion-on) .resource-visual .resource-motion-part,
body.page-backgrounded .resource-visual .resource-motion-part { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  .resource-visual .resource-motion-part { animation: none !important; }
}
