/* Embedded previews paint with the page's styles, without another image request. */
.image-frame {
    position: relative;
    display: block;
    flex-shrink: 0;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}
.image-frame--global { aspect-ratio: 646 / 224; }
.image-frame--globcode { aspect-ratio: 646 / 208; }
.image-frame--workspace { aspect-ratio: 646 / 224; }
.image-frame > .image-frame__full {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
[data-image-frame] > .image-frame__full {
    opacity: 0;
}
/* The opaque illustration fades over its preview. Transparent logos swap in
   one paint, so removing their preview cannot create a gap or double edges. */
.login-panel-left[data-image-frame] > .image-frame__full {
    transition: opacity 160ms ease-out;
}
[data-image-frame][data-image-state="ready"] > .image-frame__full { opacity: 1; }
.image-frame[data-image-state="ready"] { background-image: none; }
.image-frame__label {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    overflow: hidden;
    color: #334155;
    font: 600 11px/1.15 "Inter", "Segoe UI", sans-serif;
    text-align: center;
}
.image-frame[data-image-state="ready"] > .image-frame__label { visibility: hidden; }
.profile-menu-avatar[data-image-frame] { position: relative; }
.profile-menu-avatar > .image-frame__full { position: absolute; inset: 0; object-fit: cover; }
.profile-menu-avatar[data-image-state="ready"] > svg { visibility: hidden; }
[data-image-frame].image-frame--cached > .image-frame__full { transition: none; }
@media (prefers-reduced-motion: reduce) {
    .login-panel-left[data-image-frame] > .image-frame__full { transition: none; }
}
