/* Give every reference a reserved action row, independent of the image's intrinsic ratio. */
#main-page .studio-settings .panel-upload :is(.single-ref-tray,.shared-ref-tray){display:flex;align-items:flex-start;gap:7px;max-height:none;padding:2px 1px 6px;overflow-x:auto;overflow-y:hidden}
#main-page .studio-settings .panel-upload :is(.single-ref-tray,.shared-ref-tray) .preview-item{box-sizing:border-box;display:grid;grid-template-rows:54px 26px;flex:0 0 56px;width:56px;min-width:56px;height:82px;aspect-ratio:auto;overflow:hidden;border-radius:7px;background:#14151b}
#main-page .studio-settings .panel-upload :is(.single-ref-tray,.shared-ref-tray) .preview-item>img{display:block;grid-row:1;width:100%;height:100%;min-width:0;min-height:0;aspect-ratio:auto;object-fit:contain;background:#14151b}
#main-page .studio-settings .panel-upload :is(.single-ref-tray,.shared-ref-tray) .replace-image-btn{box-sizing:border-box;position:static;grid-row:2;display:block;align-self:stretch;width:100%;height:26px;min-height:26px;padding:0 2px;line-height:25px;white-space:nowrap;color:#e9d99f;background:#282730;border-top:1px solid #ffffff1b}
#main-page .studio-settings .panel-upload :is(.single-ref-tray,.shared-ref-tray) .replace-image-btn:hover{background:#403925;color:#ffdf79}
#main-page .studio-settings .panel-upload :is(.single-ref-tray,.shared-ref-tray) .replace-image-btn:focus-visible{outline:2px solid #f4d16c;outline-offset:-3px;background:#403925}
