/* Keep the existing shelf height and half-exposed edge; only one entry occupies it. */
html body.reference-ui-shell[data-studio-ui] #workspace #creationComposer #generationForm #assetGrid > .studio-upload-chooser {
  display:block!important;
  grid-template-columns:none!important;
  flex-basis:var(--shelf-card-width,128px)!important;
  width:var(--shelf-card-width,128px)!important;
  min-width:var(--shelf-card-width,128px)!important;
  max-width:var(--shelf-card-width,128px)!important;
  padding:0!important;
  aspect-ratio:auto!important;
}
html body.reference-ui-shell[data-studio-ui] #workspace #creationComposer #assetGrid > .studio-upload-chooser > .studio-upload-trigger {
  width:100%!important;
  min-width:0!important;
  height:var(--shelf-height,84px)!important;
  min-height:var(--shelf-height,84px)!important;
}
html body.reference-ui-shell[data-studio-ui] #workspace #creationComposer #assetGrid > .studio-upload-chooser > input[type=file] {display:none!important;}
.studio-upload-menu[hidden] {display:none!important;}
.studio-upload-menu {
  position:fixed;
  z-index:1700;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  width:246px;
  max-width:calc(100vw - 24px);
  padding:8px;
  box-sizing:border-box;
  border:1px solid var(--studio-line,#34373e);
  border-radius:16px;
  background:var(--studio-surface,#202225);
  color:var(--studio-text,#f0f1f4);
  box-shadow:0 12px 40px #0003,0 2px 8px #0001;
}
.studio-upload-menu::before {
  content:"";
  position:absolute;
  left:0;
  right:0;
  height:11px;
}
.studio-upload-menu[data-direction=down]::before {bottom:100%;}
.studio-upload-menu[data-direction=up]::before {top:100%;}
.studio-upload-menu > button {
  appearance:none;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  height:86px;
  min-width:0;
  padding:10px 4px;
  border:1px solid var(--studio-line,#34373e);
  border-radius:10px;
  background:var(--studio-soft,#292c31);
  color:var(--studio-sub,#c9cbd2);
  font-size:12px;
  font-weight:500;
  line-height:1.4;
  font-family:inherit;
  cursor:pointer;
  transition:background-color .14s ease,border-color .14s ease,color .14s ease;
}
.studio-upload-menu > button:hover,
.studio-upload-menu > button:focus-visible {
  border-color:var(--studio-accent,#7387ff);
  background:var(--studio-tint,#303750);
  color:var(--studio-accent,#7387ff);
  outline:none;
}
.studio-upload-menu > button:focus-visible {box-shadow:0 0 0 2px var(--studio-tint,#303750);}
.studio-upload-menu svg {width:24px;height:24px;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;}
.studio-upload-menu span {white-space:nowrap;font-size:12px;font-weight:500;line-height:18px;}
@media(prefers-reduced-motion:reduce) {.studio-upload-menu > button {transition:none;}}
