/* The shelf straddles the panel edge; its labels align with the mode control.
   Decorative icons use pseudo-elements so original controls/events stay intact. */
html .reference-ui-shell #workspace #creationComposer[data-reference-surface] {
  --shelf-height:84px;
  --shelf-card-width:128px;
  --shelf-icon-size:24px;
  --shelf-icon-gap:12px;
  --shelf-label-bottom:12px;
}
html .reference-ui-shell #workspace #creationComposer[data-reference-surface]:not([data-inline-audio=true]):not(:has(#assetField[style*="display: none"]))::before {
  top:42px;
}
html .reference-ui-shell #workspace #creationComposer[data-reference-surface]:not([data-inline-audio=true]):has(#generationForm):not(:has(#assetField[style*="display: none"])) #generationForm {
  padding-top:100px!important;
}
html .reference-ui-shell #workspace #creationComposer[data-reference-surface] #generationForm #assetField,
html .reference-ui-shell #workspace #creationComposer #generationForm #assetGrid {
  align-items:flex-start!important;
  height:var(--shelf-height)!important;
  min-height:var(--shelf-height)!important;
  max-height:var(--shelf-height)!important;
}
html .reference-ui-shell #workspace #creationComposer #generationForm #assetGrid {
  height:calc(var(--shelf-height) + 8px)!important;
  min-height:calc(var(--shelf-height) + 8px)!important;
  max-height:calc(var(--shelf-height) + 8px)!important;
  scrollbar-width:thin;
  scrollbar-color:var(--ref-border-2) transparent;
  scroll-padding-inline:4px;
}
html .reference-ui-shell #workspace #creationComposer #generationForm #assetGrid::-webkit-scrollbar {height:6px}
html .reference-ui-shell #workspace #creationComposer #generationForm #assetGrid::-webkit-scrollbar-thumb {background:var(--ref-border-2);border-radius:4px}
html .reference-ui-shell #workspace #creationComposer #generationForm #assetGrid>.asset-add {
  grid-template-columns:repeat(2,var(--shelf-card-width))!important;
  flex-basis:calc(var(--shelf-card-width)*2 + 8px)!important;
  width:calc(var(--shelf-card-width)*2 + 8px)!important;
  min-width:calc(var(--shelf-card-width)*2 + 8px)!important;
  height:var(--shelf-height)!important;
  min-height:var(--shelf-height)!important;
  max-height:var(--shelf-height)!important;
}
html .reference-ui-shell #workspace #creationComposer #assetGrid>.asset-add :is(.asset-add-primary,.asset-add-option) {
  position:relative!important;
  height:var(--shelf-height)!important;
  min-height:var(--shelf-height)!important;
  justify-content:flex-end!important;
  padding:8px 10px var(--shelf-label-bottom)!important;
  gap:var(--shelf-icon-gap)!important;
  border-radius:10px!important;
  border:1px solid var(--ref-border-2)!important;
  background:var(--ref-surface)!important;
  box-shadow:0 2px 4px #10223f06!important;
  color:var(--ref-sub)!important;
  font-size:12px!important;
  font-weight:500!important;
  line-height:18px!important;
  transition:background-color .15s ease,border-color .15s ease,color .15s ease;
}
html .reference-ui-shell #workspace #creationComposer #assetGrid>.asset-add :is(.asset-add-primary,.asset-add-option):hover {
  background:var(--refine-soft)!important;
  border-color:var(--ref-primary)!important;
  color:var(--ref-primary)!important;
}
html .reference-ui-shell #workspace #creationComposer #assetGrid>.asset-add :is(.asset-add-primary,.asset-add-option):focus-visible {
  outline:2px solid var(--ref-primary)!important;
  outline-offset:-3px!important;
}
html .reference-ui-shell #workspace #creationComposer #assetGrid>.asset-add .asset-add-primary strong {
  display:block!important;
  width:var(--shelf-icon-size);
  height:var(--shelf-icon-size);
  flex:0 0 var(--shelf-icon-size);
  font-size:0!important;
  background:currentColor;
  mask:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V4m-4 4 4-4 4 4M5 15v4a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-4'/%3E%3C/g%3E%3C/svg%3E");
}
html .reference-ui-shell #workspace #creationComposer #assetGrid>.asset-add .asset-add-primary>span {
  margin:0!important;
  font-size:12px!important;
  line-height:18px!important;
}
html .reference-ui-shell #workspace #creationComposer #assetGrid>.asset-add .asset-add-option::before {
  content:"";
  display:block;
  width:var(--shelf-icon-size);
  height:var(--shelf-icon-size);
  flex:0 0 var(--shelf-icon-size);
  background:currentColor;
  mask:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7a2 2 0 0 1 2-2h5l2 2h7a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2Z'/%3E%3Cpath d='M8 15h8m-4-4v8'/%3E%3C/g%3E%3C/svg%3E");
}
html .reference-ui-shell #workspace #creationComposer #assetGrid>.asset-add .asset-add-primary>small {
  position:absolute;
  top:5px;
  left:8px;
  margin:0!important;
  font-size:10px!important;
  line-height:12px;
  color:var(--ref-muted)!important;
}
html .reference-ui-shell #workspace #creationComposer #assetGrid>.asset-tile:not(.asset-add) {
  flex-basis:120px!important;
  width:120px!important;
  min-width:120px!important;
  height:var(--shelf-height)!important;
  min-height:var(--shelf-height)!important;
  max-height:var(--shelf-height)!important;
  border-radius:10px!important;
}
@media(max-width:700px) {
  html .reference-ui-shell #workspace #creationComposer[data-reference-surface] {
    --shelf-height:72px;
    --shelf-card-width:120px;
    --shelf-icon-size:20px;
    --shelf-icon-gap:8px;
    --shelf-label-bottom:10px;
  }
  html .reference-ui-shell #workspace #creationComposer[data-reference-surface]:not([data-inline-audio=true]):not(:has(#assetField[style*="display: none"]))::before {top:36px}
  html .reference-ui-shell #workspace #creationComposer[data-reference-surface]:not([data-inline-audio=true]):not(:has(#assetField[style*="display: none"])) .seg {top:84px!important}
  html .reference-ui-shell #workspace #creationComposer[data-reference-surface]:not([data-inline-audio=true]):has(#generationForm):not(:has(#assetField[style*="display: none"])) #generationForm {padding-top:136px!important}
}
@media(prefers-reduced-motion:reduce) {
  html .reference-ui-shell #workspace #creationComposer #assetGrid>.asset-add :is(.asset-add-primary,.asset-add-option) {transition:none!important}
}
.image-resolution-choices{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:12px;padding-top:10px;border-top:1px solid rgba(148,163,184,.22)}
.image-resolution-label{font-size:12px;color:#64748b;font-weight:650;margin-right:2px}
.image-resolution-choices button{border:1px solid rgba(37,99,235,.22);background:#f8fbff;color:#1d4ed8;border-radius:10px;padding:7px 14px;font-weight:700;cursor:pointer}
.image-resolution-choices button[aria-pressed="true"]{background:#2563eb;color:white;box-shadow:0 5px 14px rgba(37,99,235,.2)}
.image-output-note{color:#64748b;font-size:11px;margin-left:auto}
