/* Reserve a full result stage while its authenticated image loads and decodes. */
html body :is(.result-image-open,.design-conversation-image,[data-vector-preview]):is(.result-image-loading,.result-image-load-failed){
  position:relative!important;isolation:isolate;min-height:227px!important;overflow:hidden!important;background:#fff!important;
}
html body :is(.result-image-open,.design-conversation-image,[data-vector-preview]):is(.result-image-loading,.result-image-load-failed)>img:not([data-result-image-ready]){
  opacity:0!important;transition:none!important;
}
html body .result-image-handoff{
  display:flex!important;position:absolute!important;inset:0!important;z-index:2;flex-direction:column;justify-content:center;align-items:stretch;
  background:#fff!important;box-shadow:none!important;border:0!important;pointer-events:none;color:#171b22!important;
}
html body .result-image-handoff>.cr-render-stage{display:block!important;flex:1;min-height:150px;aspect-ratio:1114/626;}
html body .result-image-handoff-label{
  display:block!important;position:static!important;padding:10px!important;margin:0!important;background:#fff!important;color:#171b22!important;
  font-size:13px!important;font-weight:400!important;line-height:19px!important;text-align:left!important;transform:none!important;animation:none!important;
}
html body .result-image-load-failed .result-image-handoff{justify-content:center;}
html body .result-image-load-failed .result-image-handoff-label{text-align:center!important;color:#667085!important;}
html body .result-image-handoff>[hidden]{display:none!important;}

html body.workspace-readable #resultsView.result-gallery #resultGrid#resultGrid#resultGrid .result-image-open:is(.result-image-loading,.result-image-load-failed){min-height:227px!important;}

/* 8K uses the generation stage until the delivered image has decoded. */
html body .result-image-handoff.result-image-handoff-hd{
  border-radius:inherit!important;opacity:1!important;
}
html body.workspace-readable #resultsView.result-gallery #resultGrid#resultGrid#resultGrid .result-image-open > .result-image-handoff-hd{
  display:flex!important;
}
html body .result-image-handoff-hd > span{opacity:1!important;transition:none!important;}
html body .result-image-handoff-hd > .cr-render-stage{
  padding:0;border-radius:inherit;background:#fff!important;backdrop-filter:none;
}
html body .result-image-loading > .result-image-handoff-hd > .result-image-handoff-label{
  position:absolute!important;width:1px;height:1px;overflow:hidden;
  clip-path:inset(50%);white-space:nowrap;padding:0!important;
}

.hd-original-loader{display:none}
html body #assetPreviewModal #assetPreviewStage[data-hd-original-state]{
  position:relative;min-height:210px!important;
}
#assetPreviewStage[data-hd-original-state]>#assetPreviewImage{visibility:hidden}
#assetPreviewStage[data-hd-original-state="loading"]>.hd-original-loader{
  display:flex;position:absolute;inset:0;align-items:stretch;justify-content:center;pointer-events:none;
}
#assetPreviewStage .hd-original-loader > .cr-render-stage{flex:1;aspect-ratio:auto;}
/* Suppress the retired indicator if a cached document still contains its markup. */
html body .hd-original-spinner,
html body .result-image-handoff-compact,
html body #assetPreviewStage > .hd-original-loader:not(:has(> .cr-render-stage)) {
  display:none!important;visibility:hidden!important;animation:none!important;
}
