/* One image composer for the homepage and image landings. Route layout,
   navigation and defaults stay outside this shared control surface. */
.studio-shell:has(> [data-compact-composer]) { background:transparent!important; box-shadow:none!important; border:0; }
.model-workspace.studio-handoff.shared-image-composer {
  --sc-import-card-width:4.5rem;
  display:block; width:min(100%,46rem,calc(100vw - 32px)); max-width:46rem; min-width:0; margin-inline:auto;
  padding:var(--sc-space-2); gap:0; box-sizing:border-box;
  border-color:var(--sc-color-border); border-radius:var(--sc-radius-xl);
  color:var(--sc-color-text); background:var(--sc-color-surface); box-shadow:none; text-align:left;
  font-family:var(--sc-font-sans);
}
.model-workspace.studio-handoff.shared-image-composer *, .model-workspace.studio-handoff.shared-image-composer *::before, .model-workspace.studio-handoff.shared-image-composer *::after { box-sizing:border-box; }
.model-workspace.studio-handoff.shared-image-composer [hidden] { display:none!important; }
.model-workspace.studio-handoff.shared-image-composer button,.model-workspace.studio-handoff.shared-image-composer a { -webkit-tap-highlight-color:transparent; }
.model-workspace.studio-handoff.shared-image-composer a:focus-visible,.model-workspace.studio-handoff.shared-image-composer button:focus-visible { outline:2px solid var(--sc-color-focus); outline-offset:4px; }
.model-workspace.studio-handoff.shared-image-composer .sc-button { border-radius:24px; min-height:44px; font-weight:600; box-shadow:none; }
.model-workspace.studio-handoff.shared-image-composer .sc-button--primary { background:var(--sc-color-brand-600); border-color:var(--sc-color-brand-600); color:var(--sc-color-ink); }
.model-workspace.studio-handoff.shared-image-composer .sc-button--secondary { background:var(--sc-color-control); border-color:var(--sc-color-border); color:var(--sc-color-ink); }
.model-workspace.studio-handoff.shared-image-composer .model-workspace__form { display:flex; flex-direction:column; gap:var(--sc-space-2); }
.model-workspace.studio-handoff.shared-image-composer .model-workspace__references {
  flex-wrap:nowrap; align-items:stretch; min-height:0;
  margin:var(--sc-space-1) var(--sc-space-1) 0; padding:var(--sc-space-1);
  overflow-x:auto; scrollbar-width:thin;
  border-radius:var(--sc-radius-lg) var(--sc-radius-lg) 0 0; background:var(--sc-color-surface);
}
.model-workspace.studio-handoff.shared-image-composer .model-workspace__reference-list:not(:empty) {
  flex:0 0 auto; flex-basis:auto; flex-wrap:nowrap; max-width:none; overflow:visible;
}
.model-workspace.studio-handoff.shared-image-composer .model-workspace__references:focus-visible { outline:2px solid var(--sc-color-focus); outline-offset:2px; }
.model-workspace.studio-handoff.shared-image-composer .model-workspace__model-field { align-self:flex-end; min-width:0; max-width:100%; gap:0; }
.model-workspace.studio-handoff.shared-image-composer .model-workspace__prompt-field {
  display:grid; grid-template-rows:minmax(max(var(--sc-control-height),2.6rem),1fr) max-content;
  height:clamp(6.75rem,12svh,8rem); min-height:min-content; gap:0;
}
.model-workspace.studio-handoff.shared-image-composer .model-workspace__prompt-field .sc-label,
.model-workspace.studio-handoff.shared-image-composer .model-workspace__heading,
.model-workspace.studio-handoff.shared-image-composer .model-workspace__submit-help,
.model-workspace.studio-handoff.shared-image-composer [data-workspace-prompt-count] {
  position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap;
}
.model-workspace.studio-handoff.shared-image-composer .model-workspace__prompt {
  grid-row:1; contain:size; min-height:max(var(--sc-control-height),2.6rem); height:100%;
  padding:var(--sc-space-2) var(--sc-space-4); resize:vertical; border:0; border-radius:0; outline:0!important;
  color:var(--sc-color-ink); background:transparent!important; box-shadow:none!important; caret-color:var(--sc-color-brand-700); font-size:.875rem;
}
.model-workspace.studio-handoff.shared-image-composer .model-workspace__prompt:focus,
.model-workspace.studio-handoff.shared-image-composer .model-workspace__prompt:focus-visible {
  border-color:transparent!important; outline:0!important; box-shadow:none!important;
}
/* The hidden endpoint labels reserve the localized promotion height, so model,
   subscription and reference changes never move the toolbar under the pointer. */
.model-workspace.studio-handoff.shared-image-composer .home-composer__offer-slot { grid-row:2; position:relative; display:grid; min-width:0; margin-inline:var(--sc-space-3); }
.model-workspace.studio-handoff.shared-image-composer .home-composer__offer-measure {
  grid-area:1/1; visibility:hidden; pointer-events:none; display:flex; align-items:center;
  min-width:0; min-height:var(--sc-control-height); gap:var(--sc-space-1); padding:var(--sc-space-1) 0;
  font-family:inherit; font-size:.75rem; font-weight:750; line-height:1.45; text-align:start; overflow-wrap:anywhere;
}
.model-workspace.studio-handoff.shared-image-composer .home-composer__offer-slot>.sc-image-subscription-offer { position:absolute; inset:0 auto auto 0; max-width:100%; overflow-wrap:anywhere; }
.model-workspace.studio-handoff.shared-image-composer .model-workspace__toolbar {
  margin:0 var(--sc-space-2) var(--sc-space-2); padding-top:var(--sc-space-1); align-items:flex-end;
  border:0;
}
.model-workspace.studio-handoff.shared-image-composer[data-compact-composer] .model-workspace__toolbar { min-width:0; max-width:calc(100% - var(--sc-space-4)); }
.model-workspace.studio-handoff.shared-image-composer[data-compact-composer] .model-workspace__toolbar>.sc-parameter-row { flex:1 1 auto; min-width:0; }
.model-workspace.studio-handoff.shared-image-composer[data-compact-composer] .model-workspace__cost { flex:0 0 auto; border:0; }
.model-workspace.studio-handoff.shared-image-composer[data-compact-composer] .model-picker__fixed-value { display:block; min-width:0; min-height:var(--sc-control-height); padding:0; border:0; background:transparent; line-height:var(--sc-control-height); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.model-workspace.studio-handoff.shared-image-composer[data-compact-composer] .model-picker__fixed-value .sc-model-name { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.model-workspace.studio-handoff.shared-image-composer[data-compact-composer] .model-workspace__reference { width:4.5rem; min-width:4.5rem; height:6rem; flex:0 0 4.5rem; }
.model-workspace.studio-handoff.shared-image-composer[data-compact-composer] .video-reference-rail { display:flex; flex-wrap:nowrap; width:auto; min-width:0; padding:0; border:0; background:transparent; gap:var(--sc-space-2); }
.model-workspace.studio-handoff.shared-image-composer[data-compact-composer] .video-reference-rail__items { display:flex; gap:var(--sc-space-2); }
.model-workspace.studio-handoff.shared-image-composer[data-compact-composer] .video-reference-rail__items:empty { display:none; }
.model-workspace.studio-handoff.shared-image-composer[data-compact-composer] .video-reference-rail :is(.video-reference-rail__item,.video-reference-rail__preview,[data-video-file-trigger]) { width:4.5rem; min-width:4.5rem; max-width:4.5rem; height:6rem; min-height:6rem; flex:0 0 4.5rem; padding:0; border-radius:var(--sc-radius-md); }
.model-workspace.studio-handoff.shared-image-composer[data-compact-composer] .video-reference-rail__count,
.model-workspace.studio-handoff.shared-image-composer[data-compact-composer] .video-composer__reference-copy { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.model-workspace.studio-handoff.shared-image-composer[data-compact-composer] .video-reference-rail__preview { position:relative; overflow:hidden; }
.model-workspace.studio-handoff.shared-image-composer[data-compact-composer] .video-reference-rail__preview img { width:100%; height:100%; object-fit:cover; }
.model-workspace.studio-handoff.shared-image-composer[data-compact-composer] :is(.video-reference-rail__remove,.studio-handoff__reference-remove,.model-workspace__reference-remove) { position:absolute; inset:0 0 auto auto; min-width:44px; max-width:44px; width:44px; min-height:44px; height:44px; display:grid; place-items:center; padding:0 0 20px 20px; isolation:isolate; z-index:1; border:0; border-radius:0; color:var(--sc-color-canvas); background:transparent; font-size:20px; line-height:1; }
.model-workspace.studio-handoff.shared-image-composer[data-compact-composer] :is(.video-reference-rail__remove,.studio-handoff__reference-remove,.model-workspace__reference-remove)::before { content:''; position:absolute; inset:0 0 auto auto; z-index:-1; width:24px; height:24px; border-radius:50%; background:var(--sc-color-ink); }
.model-workspace.studio-handoff.shared-image-composer[data-compact-composer] .video-workspace__tasks { border:0; }
.model-workspace.studio-handoff.shared-image-composer.video-workspace--compact .video-workspace__tasks:has([data-video-task-list]:empty):not(:has([data-video-history-more]:not([hidden]))):not(:has([data-video-history-loading]:not([hidden]))) { display:none; }
.model-workspace.studio-handoff.shared-image-composer[data-compact-composer] [data-workspace-reference-help]:not([data-i18n="studioHandoff.referencesUnsupportedHint"]) { display:none; }
/* One border-box height for the actual controls in every compact toolbar,
   including fixed model labels and localized submit copy. */
.model-workspace.studio-handoff.shared-image-composer[data-compact-composer] .model-workspace__toolbar :is(.model-picker__trigger,.model-picker__fixed-value,.model-workspace__submit) { min-height:var(--sc-control-height); height:var(--sc-control-height); padding-block:0; white-space:nowrap; }
.model-workspace.studio-handoff.shared-image-composer[data-compact-composer] .home-specifications__desktop-summary { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.model-workspace.studio-handoff.shared-image-composer .sc-parameter-row[data-parameter-row] { align-items:flex-end; padding-block:0; }
.model-workspace.studio-handoff.shared-image-composer .model-workspace__toolbar .sc-parameter-row .model-picker__trigger { max-width:100%; width:100%; white-space:normal; }
.model-workspace.studio-handoff.shared-image-composer .home-specifications { max-width:100%; }
.model-workspace.studio-handoff.shared-image-composer .home-specifications__trigger { max-width:100%; white-space:normal; }
.model-workspace.studio-handoff.shared-image-composer .model-workspace__select { min-width:0; max-width:100%; color:var(--sc-color-text); background-color:var(--sc-color-surface-muted); font-size:.75rem; }
.model-workspace.studio-handoff.shared-image-composer .model-workspace__submit { padding:var(--sc-space-3) var(--sc-space-4); font-size:.8125rem; }
.model-workspace.studio-handoff.shared-image-composer .model-workspace__status,.model-workspace.studio-handoff.shared-image-composer .studio-handoff__direct { grid-column:1/-1; font-size:.75rem; }
.model-workspace.studio-handoff.shared-image-composer .studio-handoff__direct { min-height:var(--sc-control-height); color:var(--sc-color-muted); display:flex; align-items:center; }
.model-workspace.studio-handoff.shared-image-composer form:not(:has([data-workspace-status]:not([hidden]))) .studio-handoff__direct { display:none; }

@media(min-width:768px) {
  .model-workspace.studio-handoff.shared-image-composer .model-workspace__toolbar>.sc-parameter-row[data-parameter-row] { flex-wrap:nowrap; overflow:visible; mask-image:none; }
  .model-workspace.studio-handoff.shared-image-composer[data-compact-composer] .model-workspace__model-field { flex:1 1 11rem; width:11rem; }
  .model-workspace.studio-handoff.shared-image-composer[data-compact-composer] .home-specifications { flex:0 0 auto; }
  .model-workspace.studio-handoff.shared-image-composer[data-compact-composer] .home-specifications { width:8rem; flex-basis:8rem; }
  .model-workspace.studio-handoff.shared-image-composer[data-compact-composer] .model-workspace__cost { width:10rem; min-width:10rem; }
  .model-workspace.studio-handoff.shared-image-composer.video-workspace--compact .home-specifications { width:14rem; flex-basis:14rem; }
  .model-workspace.studio-handoff.shared-image-composer.video-workspace--compact .model-workspace__cost { width:5rem; min-width:5rem; }
  .model-workspace.studio-handoff.shared-image-composer[data-compact-composer] [data-model-picker-value] { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
}
/* Compact input presentation is shared by home and explicitly enrolled public composers. */
@media(max-width:767px) {
 .model-workspace.studio-handoff.shared-image-composer[data-compact-composer] { padding:var(--sc-space-2); }
 .model-workspace.studio-handoff.shared-image-composer[data-compact-composer] .model-workspace__form { gap:var(--sc-space-2); }
 .model-workspace.studio-handoff.shared-image-composer[data-compact-composer] .model-workspace__prompt-field { order:0; display:grid; grid-template-rows:minmax(var(--sc-control-height),1fr) max-content; height:clamp(6.75rem,12svh,8rem); gap:0; }
 .model-workspace.studio-handoff.shared-image-composer[data-compact-composer] .model-workspace__prompt-field .sc-label,
 .model-workspace.studio-handoff.shared-image-composer[data-compact-composer] [data-workspace-prompt-count],
 .model-workspace.studio-handoff.shared-image-composer[data-compact-composer] .model-workspace__model-field>.sc-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
 .model-workspace.studio-handoff.shared-image-composer[data-compact-composer] .model-workspace__prompt { contain:size; height:100%; min-height:var(--sc-control-height); padding:var(--sc-space-2) var(--sc-space-4); border:0; border-radius:0; background:transparent!important; font-size:1rem; }
 /* Image and video entries share a thumbnail rail and a separate model limit. */
 .model-workspace.studio-handoff.shared-image-composer[data-compact-composer] .model-workspace__references { order:0; flex-wrap:nowrap; align-items:stretch; margin:0; padding:var(--sc-space-2) var(--sc-space-2) 0; border:0; border-radius:0; background:transparent; }
 .model-workspace.studio-handoff.shared-image-composer[data-compact-composer] .model-workspace__reference-list:not(:empty) { flex:0 0 auto; flex-basis:auto; flex-wrap:nowrap; align-items:stretch; max-width:none; overflow:visible; padding:0; }
 .model-workspace.studio-handoff.shared-image-composer[data-compact-composer] .model-workspace__references .model-workspace__reference-button { display:grid; grid-template-columns:1fr; place-items:center; flex:0 0 3.75rem; width:3.75rem; min-width:3.75rem; max-width:none; height:5rem; min-height:5rem; padding:0; border:1px dashed var(--sc-color-border); border-radius:var(--sc-radius-md); background:var(--sc-color-surface-muted); color:var(--sc-color-brand-700); font-size:1.75rem; }
 .model-workspace.studio-handoff.shared-image-composer[data-compact-composer] .model-workspace__reference-button>span:first-child { grid-area:auto; width:auto; height:auto; border:0; color:inherit; font-size:inherit; }
 .model-workspace.studio-handoff.shared-image-composer[data-compact-composer] .model-workspace__reference-button>span:not(:first-child) { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
 .model-workspace.studio-handoff.shared-image-composer[data-compact-composer] :is(.studio-handoff__reference,.model-workspace__reference) { width:3.75rem; min-width:3.75rem; height:5rem; flex:0 0 3.75rem; }
 .model-workspace.studio-handoff.shared-image-composer[data-compact-composer] .video-reference-rail :is(.video-reference-rail__item,.video-reference-rail__preview,[data-video-file-trigger]) { width:3.75rem; min-width:3.75rem; max-width:3.75rem; height:5rem; min-height:5rem; flex-basis:3.75rem; }
 .model-workspace.studio-handoff.shared-image-composer[data-compact-composer] .home-composer__reference-hint { order:0; display:block; position:static; width:auto; height:auto; margin:0; padding-inline:var(--sc-space-3); overflow:visible; clip-path:none; white-space:normal; }
 .model-workspace.studio-handoff.shared-image-composer[data-compact-composer] .home-composer__offer-slot { order:0; grid-row:2; position:relative; display:grid; justify-content:normal; min-width:0; margin-inline:var(--sc-space-2); }
 .model-workspace.studio-handoff.shared-image-composer[data-compact-composer] .home-composer__offer-measure { grid-area:1/1; display:flex; }
 .model-workspace.studio-handoff.shared-image-composer[data-compact-composer] .home-composer__offer-slot>.sc-image-subscription-offer { position:absolute; }
 .model-workspace.studio-handoff.shared-image-composer[data-compact-composer] .model-workspace__toolbar { order:0; position:relative; display:grid; grid-template-columns:minmax(0,1fr) var(--sc-control-height); align-items:center; gap:var(--sc-space-2); margin:0 var(--sc-space-2) var(--sc-space-2); padding-top:var(--sc-space-1); }
 /* The action stays fixed while long parameters can slide beneath its fade. */
 .model-workspace.studio-handoff.shared-image-composer[data-compact-composer] .model-workspace__toolbar::before { content:""; grid-column:2; grid-row:1; align-self:stretch; z-index:1; margin-inline-start:calc(-1 * var(--sc-space-6)); background:linear-gradient(to right,transparent,var(--sc-color-surface) var(--sc-space-6)); pointer-events:none; }
 .model-workspace.studio-handoff.shared-image-composer[data-compact-composer] .model-workspace__toolbar>.sc-parameter-row[data-parameter-row] { display:flex; grid-column:1/-1; grid-row:1; width:100%; min-width:0; flex-wrap:nowrap; align-items:center; gap:var(--sc-space-1); --sc-parameter-action-inset:calc(var(--sc-control-height) + var(--sc-space-2)); padding:0 var(--sc-parameter-action-inset) 0 0; overflow-x:auto; overflow-y:hidden; mask-image:none; scrollbar-width:none; scroll-padding-inline-end:var(--sc-parameter-action-inset); }
 .model-workspace.studio-handoff.shared-image-composer[data-compact-composer] .model-workspace__toolbar>.sc-parameter-row:is([data-scroll-edges="left"],[data-scroll-edges="both"]) { mask-image:linear-gradient(to right,transparent,#000 var(--sc-space-4)); }
 .model-workspace.studio-handoff.shared-image-composer[data-compact-composer] .model-workspace__toolbar>.sc-parameter-row::-webkit-scrollbar { display:none; }
 .model-workspace.studio-handoff.shared-image-composer[data-compact-composer] .model-workspace__toolbar :is(.model-workspace__model-field,.home-media__model) { display:block; flex:0 0 11rem; grid-area:auto; width:11rem; min-width:var(--sc-control-height); max-width:calc(100% - var(--sc-control-height)); align-self:center; }
 .model-workspace.studio-handoff.shared-image-composer[data-compact-composer] .model-workspace__toolbar .model-picker,
 .model-workspace.studio-handoff.shared-image-composer[data-compact-composer] .model-workspace__toolbar .model-picker__trigger { width:100%; min-width:0; max-width:100%; }
 .model-workspace.studio-handoff.shared-image-composer[data-compact-composer] .model-workspace__toolbar .model-picker__trigger { height:var(--sc-control-height); min-height:var(--sc-control-height); gap:min(var(--sc-space-1),4px); padding-inline:min(var(--sc-space-2),8px); border-radius:var(--sc-radius-md); white-space:nowrap; }
 .model-workspace.studio-handoff.shared-image-composer[data-compact-composer] .model-workspace__toolbar .model-picker__chevron { font-size:min(1.125rem,18px); }
 .model-workspace.studio-handoff.shared-image-composer[data-compact-composer] .model-workspace__toolbar [data-model-picker-value] { display:block; flex:1 1 0; min-width:0; overflow:hidden; }
 .model-workspace.studio-handoff.shared-image-composer[data-compact-composer] .model-workspace__toolbar .sc-model-identity,
 .model-workspace.studio-handoff.shared-image-composer[data-compact-composer] .model-workspace__toolbar [data-model-picker-value]>.sc-model-identity { display:flex; width:100%; max-width:100%; min-width:0; gap:var(--sc-space-1); white-space:nowrap; }
 .model-workspace.studio-handoff.shared-image-composer[data-compact-composer] .model-workspace__toolbar .sc-model-name { display:block; flex:1 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; overflow-wrap:normal; text-align:start; }
 .model-workspace.studio-handoff.shared-image-composer[data-compact-composer] .model-workspace__toolbar .sc-model-logo { width:min(var(--sc-space-6),24px); min-width:min(var(--sc-space-6),24px); height:min(var(--sc-space-6),24px); flex:0 0 min(var(--sc-space-6),24px); }
 .model-workspace.studio-handoff.shared-image-composer[data-compact-composer] .home-specifications { grid-area:auto; flex:0 0 6rem; width:6rem; min-width:min(5rem,100%); max-width:100%; }
 .model-workspace.studio-handoff.shared-image-composer.video-workspace--compact .home-specifications { flex-basis:14rem; width:14rem; }
 .model-workspace.studio-handoff.shared-image-composer[data-compact-composer] .home-specifications__trigger { min-height:var(--sc-control-height); height:var(--sc-control-height); padding-inline:var(--sc-space-2); white-space:nowrap; }
 .model-workspace.studio-handoff.shared-image-composer[data-compact-composer] .home-specifications__desktop-summary { display:block; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:var(--sc-font-size-sm); }
 .model-workspace.studio-handoff.shared-image-composer[data-compact-composer] .home-specifications__desktop-summary::before { margin-inline-end:var(--sc-space-2); vertical-align:middle; }
 .model-workspace.studio-handoff.shared-image-composer[data-compact-composer] .sc-parameter-summary { display:none; }
 .model-workspace.studio-handoff.shared-image-composer[data-compact-composer] .model-workspace__toolbar>.model-workspace__cost { grid-column:1/-1; grid-row:2; display:block; margin:0; padding:0; border:0; font-size:var(--sc-font-size-sm); }
 .model-workspace.studio-handoff.shared-image-composer[data-compact-composer] .model-workspace__cost::before { content:none; }
 .model-workspace.studio-handoff.shared-image-composer[data-compact-composer] .model-workspace__toolbar>.model-workspace__submit { grid-column:2; grid-row:1; z-index:2; position:relative; display:flex; align-items:center; justify-content:center; gap:0; width:var(--sc-control-height); min-width:var(--sc-control-height); height:var(--sc-control-height); min-height:var(--sc-control-height); padding:0; border-radius:var(--sc-radius-pill); font-size:0; line-height:0; }
 .model-workspace.studio-handoff.shared-image-composer[data-compact-composer] .model-workspace__submit::after { content:""; position:absolute; inset:0; margin:auto; width:var(--sc-space-6); height:var(--sc-space-6); max-width:55%; max-height:55%; pointer-events:none; background:currentColor; mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6.5 11.5 5.5-5.5 5.5 5.5M12 6v12' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
 .model-workspace.studio-handoff.shared-image-composer[data-compact-composer] .model-workspace__submit[data-preflight-checking="true"]::after { width:var(--sc-space-5); height:var(--sc-space-5); background:transparent; mask:none; border:2px solid currentColor; border-right-color:transparent; border-radius:var(--sc-radius-pill); animation:home-preflight-spin .7s linear infinite; }
 @keyframes home-preflight-spin { to { transform:rotate(360deg); } }
}

@media(max-width:640px) { .model-workspace.studio-handoff.shared-image-composer { --sc-import-card-width:3.75rem; } }
@media(prefers-reduced-motion:reduce) {
  .model-workspace.studio-handoff.shared-image-composer *, .model-workspace.studio-handoff.shared-image-composer *::before, .model-workspace.studio-handoff.shared-image-composer *::after { transition:none!important; animation:none!important; scroll-behavior:auto!important; }
}

/* v5b supplementary input states. */
.model-workspace.studio-handoff.shared-image-composer[data-compact-composer] .image-composer__prompt-meta { display:flex; align-items:center; justify-content:flex-end; gap:10px; min-height:22px; opacity:0; transition:opacity .2s; }
.model-workspace.studio-handoff.shared-image-composer[data-compact-composer] .model-workspace__prompt-field:focus-within .image-composer__prompt-meta,
.model-workspace.studio-handoff.shared-image-composer[data-compact-composer] .image-composer__prompt-meta[data-has-value="true"] { opacity:1; }
.model-workspace.studio-handoff.shared-image-composer[data-compact-composer] .image-composer__prompt-meta [data-workspace-prompt-count] { position:static; width:auto; height:auto; margin:0; padding:0; overflow:visible; clip-path:none; color:var(--sc-color-muted); font:500 11.5px/22px var(--sc-font-mono); }
.model-workspace.studio-handoff.shared-image-composer[data-compact-composer] .image-composer__prompt-meta[data-over-limit="true"] [data-workspace-prompt-count] { color:var(--sc-color-danger-ink); }
.image-composer__prompt-clear { display:inline-flex; align-items:center; justify-content:center; min-height:22px; padding:0 8px; border:0; border-radius:999px; color:var(--sc-color-muted); background:transparent; font:600 11.5px/22px var(--sc-font-sans); cursor:pointer; }
.image-composer__prompt-clear:hover:not(:disabled) { color:var(--sc-color-ink); background:var(--sc-color-control-hover); }
.image-composer__prompt-clear:disabled { opacity:.4; cursor:default; }
.model-workspace.studio-handoff.shared-image-composer[data-reference-drag="active"] { outline:2px dashed var(--sc-color-brand-500); outline-offset:4px; }
.model-workspace.studio-handoff.shared-image-composer[data-prompt-over-limit="true"] { outline:1px solid var(--sc-color-danger); outline-offset:4px; }
.model-workspace.studio-handoff .studio-handoff__reference { position:relative; }
.model-workspace.studio-handoff .studio-handoff__reference::after { content:attr(data-reference-index); position:absolute; top:5px; left:5px; z-index:1; min-width:18px; height:18px; padding:0 5px; border-radius:9px; background:rgba(17,12,9,.75); color:var(--sc-color-ink); font:600 10.5px/18px var(--sc-font-mono); text-align:center; pointer-events:none; }
.model-workspace.studio-handoff .studio-handoff__reference-open { position:absolute; inset:0; z-index:0; width:100%; height:100%; padding:0; border:0; border-radius:inherit; background:transparent; cursor:zoom-in; }
.model-workspace.studio-handoff .studio-handoff__reference-open:disabled { cursor:progress; }
.model-workspace.studio-handoff .studio-handoff__reference[data-reference-over-limit="true"] img { filter:grayscale(1) brightness(.45); }
.model-workspace.studio-handoff .studio-handoff__reference[aria-busy="true"] .sc-reference-preview-placeholder::after { content:""; width:30px; height:30px; border:3px solid rgba(244,232,214,.2); border-top-color:var(--sc-color-brand-500); border-radius:50%; animation:sc-reference-spin .8s linear infinite; }
.model-workspace.studio-handoff .studio-handoff__reference .sc-reference-preview-placeholder:not(.sc-skeleton) { color:var(--sc-color-danger-ink); background:rgba(229,83,58,.1); box-shadow:inset 0 0 0 1.5px var(--sc-color-danger); }
@keyframes sc-reference-spin { to { transform:rotate(360deg); } }
@media(prefers-reduced-motion:reduce) { .model-workspace.studio-handoff .studio-handoff__reference[aria-busy="true"] .sc-reference-preview-placeholder::after { animation:none; } .model-workspace.studio-handoff.shared-image-composer[data-compact-composer] .image-composer__prompt-meta { transition:none; } }
.model-workspace.studio-handoff.shared-image-composer[data-compact-composer] .image-composer__prompt-meta { order:2; flex:none; }
.model-workspace.studio-handoff.shared-image-composer[data-compact-composer] :is(.studio-handoff__reference,.model-workspace__reference) { width:64px; min-width:64px; height:64px; flex:0 0 64px; border-radius:14px; }
.model-workspace.studio-handoff.shared-image-composer[data-compact-composer] :is(.video-reference-rail__remove,.studio-handoff__reference-remove,.model-workspace__reference-remove) { opacity:0; color:var(--sc-color-ink); padding:0 0 18px 18px; }
.model-workspace.studio-handoff.shared-image-composer[data-compact-composer] :is(.video-reference-rail__remove,.studio-handoff__reference-remove,.model-workspace__reference-remove)::before { width:22px; height:22px; top:4px; right:4px; background:rgba(17,12,9,.8); }
.model-workspace.studio-handoff.shared-image-composer[data-compact-composer] :is(.studio-handoff__reference,.model-workspace__reference,.video-reference-rail__item):is(:hover,:focus-within) :is(.video-reference-rail__remove,.studio-handoff__reference-remove,.model-workspace__reference-remove) { opacity:1; }
@media(hover:none) { .model-workspace.studio-handoff.shared-image-composer[data-compact-composer] :is(.video-reference-rail__remove,.studio-handoff__reference-remove,.model-workspace__reference-remove) { opacity:1; } }
@media(max-width:767px) { .model-workspace.studio-handoff.shared-image-composer[data-compact-composer] :is(.studio-handoff__reference,.model-workspace__reference) { width:56px; min-width:56px; height:56px; flex-basis:56px; } }
.model-workspace.studio-handoff.shared-image-composer[data-compact-composer] .image-composer__reference-summary { order:2; flex:1 0 100%; margin:0; padding-top:6px; color:var(--sc-color-muted); font:400 11.5px/1.5 var(--sc-font-mono); }
