.studio-handoff__direct {
  display: inline-flex;
  align-items: center;
  min-height: var(--sc-control-height);
  color: var(--sc-color-brand-700);
  font: inherit;
  font-weight: 700;
}

/* Keep redundant guidance available to assistive technology; actionable
   validation continues to appear in the visible status region. */
.studio-handoff .model-workspace__heading,
.studio-handoff .model-workspace__submit-help {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.studio-handoff .model-workspace__form { gap: var(--sc-space-3); }
.studio-handoff .model-workspace__reference-trust { flex: 1 1 12rem; }
.studio-handoff .model-workspace__reference-list:not(:empty) { flex-basis: 100%; }
.studio-handoff .model-workspace__toolbar { padding-top: var(--sc-space-2); }

/* Model landings and the homepage use the same compact composer geometry as
   Studio while keeping the landing-only draft handoff behavior. */
:is([data-model-page], .home-reference) .studio-handoff:not(.studio-handoff--purpose):not(.studio-handoff--composer):not(.sc-preset-workspace):not(.shared-image-composer) {
  --sc-import-card-width: 4.5rem;
  width: min(100%, var(--sc-composer-width));
  margin-inline: auto;
  padding: var(--sc-space-2);
  gap: 0;
  border-color: var(--sc-color-border);
  border-radius: var(--sc-radius-xl);
  background: var(--sc-color-surface);
  box-shadow: var(--sc-shadow-md);
}

:is([data-model-page], .home-reference) .studio-handoff:not(.studio-handoff--purpose):not(.studio-handoff--composer):not(.sc-preset-workspace):not(.shared-image-composer) .model-workspace__form {
  gap: var(--sc-space-2);
}

:is([data-model-page], .home-reference) .studio-handoff:not(.studio-handoff--purpose):not(.studio-handoff--composer):not(.sc-preset-workspace):not(.shared-image-composer) .model-workspace__references {
  min-height: 4.5rem;
  margin: var(--sc-space-2) var(--sc-space-2) 0;
  padding: var(--sc-space-2) var(--sc-space-3);
  border-radius: var(--sc-radius-lg) var(--sc-radius-lg) 0 0;
  background: var(--sc-color-surface);
}

:is([data-model-page], .home-reference) .studio-handoff:not(.studio-handoff--purpose):not(.studio-handoff--composer):not(.sc-preset-workspace):not(.shared-image-composer) .model-workspace__prompt-field {
  gap: 0;
}

:is([data-model-page], .home-reference) .studio-handoff:not(.studio-handoff--purpose):not(.studio-handoff--composer):not(.sc-preset-workspace):not(.shared-image-composer) .model-workspace__prompt-field .sc-label,
:is([data-model-page], .home-reference) .studio-handoff:not(.studio-handoff--purpose):not(.studio-handoff--composer):not(.sc-preset-workspace):not(.shared-image-composer) [data-workspace-prompt-count] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

:is([data-model-page], .home-reference) .studio-handoff:not(.studio-handoff--purpose):not(.studio-handoff--composer):not(.sc-preset-workspace):not(.shared-image-composer) .model-workspace__prompt {
  min-height: 3.75rem;
  height: clamp(3.75rem, 12vh, 7rem);
  padding: 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);
}

:is([data-model-page], .home-reference) .studio-handoff:not(.studio-handoff--purpose):not(.studio-handoff--composer):not(.sc-preset-workspace):not(.shared-image-composer) .model-workspace__prompt:focus,
:is([data-model-page], .home-reference) .studio-handoff:not(.studio-handoff--purpose):not(.studio-handoff--composer):not(.sc-preset-workspace):not(.shared-image-composer) .model-workspace__prompt:focus-visible {
  border-color: transparent !important;
  outline: 0 !important;
  box-shadow: none !important;
}

:is([data-model-page], .home-reference) .studio-handoff:not(.studio-handoff--purpose):not(.studio-handoff--composer):not(.sc-preset-workspace):not(.shared-image-composer) .model-workspace__toolbar {
  margin: 0 var(--sc-space-2) var(--sc-space-2);
  padding-top: var(--sc-space-1);
}

@media (max-width: 640px) {
  :is([data-model-page], .home-reference) .studio-handoff:not(.studio-handoff--purpose):not(.studio-handoff--composer):not(.sc-preset-workspace):not(.shared-image-composer) {
    --sc-import-card-width: 3.75rem;
  }
}

.studio-handoff__direct:focus-visible {
  outline: 3px solid var(--sc-color-brand-200);
  outline-offset: var(--sc-space-1);
}

/* Guided entry keeps the shared controls and handoff lifecycle, with visible
   labels for visitors preparing their first image. */
.model-workspace.studio-handoff--guided {
  max-width: var(--sc-composer-width);
  margin-inline: auto;
  padding: var(--sc-space-4);
}

.studio-handoff--cyberpunk .model-workspace__heading {
  position: static;
  inline-size: auto;
  block-size: auto;
  margin: 0;
  padding: 0;
  overflow: visible;
  clip-path: none;
  white-space: normal;
}
.studio-handoff--cyberpunk .model-workspace__title { font-size: clamp(1.25rem, 2vw, 1.6rem); }
.studio-handoff--cyberpunk .model-workspace__subtitle { margin: var(--sc-space-2) 0 0; color: var(--sc-color-muted); font-size: var(--sc-font-size-sm); line-height: var(--sc-leading-copy); }
.studio-handoff--cyberpunk .studio-handoff__prompt-presets { display: grid; gap: var(--sc-space-2); }
.studio-handoff--cyberpunk .studio-handoff__prompt-preset { width: 100%; min-height: var(--sc-control-height); }
.studio-handoff--cyberpunk .model-workspace__model-field[hidden] { display: none; }

.studio-handoff--guided .model-workspace__form { gap: var(--sc-space-4); }
.studio-handoff--guided .studio-handoff__prompt-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sc-space-3);
}
.studio-handoff--guided [data-workspace-prompt-count] {
  flex: none;
  font-size: var(--sc-font-size-sm);
}
.model-workspace.studio-handoff--guided .model-workspace__prompt {
  height: var(--sc-space-24);
  min-height: var(--sc-space-24);
  font-size: max(1rem, 16px);
}
.studio-handoff--guided .model-workspace__references {
  flex-wrap: nowrap;
  gap: var(--sc-space-2) var(--sc-space-3);
}
.model-workspace.studio-handoff--guided .studio-handoff__reference-entry {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: var(--sc-space-3);
  width: 100%;
  max-width: none;
  aspect-ratio: auto;
  border: 0;
  background: transparent;
  text-align: start;
}
.studio-handoff--guided .studio-handoff__reference-entry > span:first-child {
  flex: 0 0 var(--sc-import-card-width);
  width: var(--sc-import-card-width);
  height: auto;
  aspect-ratio: 3 / 4;
  border: 1px dashed var(--sc-color-border-strong);
  border-radius: var(--sc-radius-md);
  background: var(--sc-color-control);
}
.studio-handoff--guided .studio-handoff__reference-entry:hover:not(:disabled):not([aria-disabled="true"]) > span:first-child {
  border-color: var(--sc-color-brand-700);
  background: var(--sc-color-control-hover);
}
.studio-handoff--guided .studio-handoff__reference-entry > .studio-handoff__reference-guide {
  display: grid;
  flex: 1;
  min-width: 0;
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  clip-path: none;
  white-space: normal;
  align-content: center;
  gap: var(--sc-space-1);
}
.studio-handoff--guided .studio-handoff__reference-guide .sc-help {
  font-size: var(--sc-font-size-sm);
  line-height: 1.5;
}
.model-workspace.studio-handoff--guided .model-workspace__references:has(.model-workspace__reference-list:not(:empty)) .studio-handoff__reference-entry {
  flex: 0 0 var(--sc-import-card-width);
  width: var(--sc-import-card-width);
}
.studio-handoff--guided .model-workspace__references:has(.model-workspace__reference-list:not(:empty)) .studio-handoff__reference-guide {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.model-workspace.studio-handoff--guided .model-workspace__reference-list:not(:empty) {
  flex: 1 1 0;
  max-width: calc(100% - var(--sc-import-card-width) - var(--sc-space-3));
}
.model-workspace.studio-handoff--guided .model-workspace__toolbar {
  gap: var(--sc-space-3);
  padding-top: var(--sc-space-3);
  border-top: 1px solid var(--sc-color-border);
}
.model-workspace.studio-handoff--guided .model-workspace__toolbar > .sc-parameter-row {
  flex-basis: 100%;
  width: 100%;
  align-items: flex-end;
}
.studio-handoff--guided .sc-parameter-row .sc-label {
  display: block;
  margin-bottom: var(--sc-space-1);
  color: var(--sc-color-muted);
  font-size: var(--sc-font-size-sm);
}
.studio-handoff--guided .sc-parameter-row .sc-field { gap: 0; }
.studio-handoff--guided .studio-handoff__settings-hint {
  display: none;
  flex-basis: 100%;
  font-size: var(--sc-font-size-sm);
}
.studio-handoff--guided .model-workspace__toolbar:has(.sc-parameter-row[data-scroll-edges]:not([data-scroll-edges="none"])) .studio-handoff__settings-hint { display: block; }
.model-workspace.studio-handoff--guided .model-workspace__cost {
  margin: 0;
  font-size: var(--sc-font-size-sm);
}
.model-workspace.studio-handoff--guided .model-workspace__submit {
  margin-left: auto;
}
.model-workspace.studio-handoff.studio-handoff--guided [data-workspace-form] .model-workspace__submit-help[data-workspace-submit-help] {
  display: block;
  position: static;
  width: auto;
  height: auto;
  margin: calc(-1 * var(--sc-space-2)) 0 0;
  padding: 0;
  overflow: visible;
  clip-path: none;
  white-space: normal;
  font-size: var(--sc-font-size-sm);
}

@media (max-width: 640px) {
  .model-workspace.studio-handoff--guided { padding: var(--sc-space-3); }
  .model-workspace.studio-handoff--guided .model-workspace__form { gap: var(--sc-space-3); }
  .model-workspace.studio-handoff--guided .model-workspace__submit { flex-basis: 100%; }
}

.studio-handoff__reference {
  width: var(--sc-import-card-width);
  min-width: var(--sc-import-card-width);
  flex: 0 0 var(--sc-import-card-width);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--sc-color-border);
  border-radius: var(--sc-radius-md);
  background: var(--sc-color-surface-muted);
  aspect-ratio: 3 / 4;
}

.studio-handoff__reference img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.studio-handoff__reference-remove {
  width: 1.25rem;
  height: 1.25rem;
  min-width: 1.25rem;
  min-height: 1.25rem;
  position: absolute;
  top: var(--sc-space-1);
  right: var(--sc-space-1);
  border: 1px solid var(--sc-color-border);
  border-radius: var(--sc-radius-pill);
  color: var(--sc-color-ink);
  background: var(--sc-color-surface);
  font: 700 0.75rem/1 var(--sc-font-sans);
  cursor: pointer;
}

.studio-handoff__reference-remove::before {
  content: '';
  position: absolute;
  top: calc(-1 * var(--sc-space-1));
  right: calc(-1 * var(--sc-space-1));
  width: 2.75rem;
  height: 2.75rem;
}

.studio-handoff[aria-busy="true"] [data-workspace-submit] {
  cursor: wait;
}

.model-workspace__submit-help {
  display: block;
  margin-top: var(--sc-space-2, 8px);
}

.model-workspace__reference-trust {
  display: block;
  margin-top: var(--sc-space-1, 4px);
  color: var(--sc-color-muted);
  font-size: var(--sc-font-size-sm, 12px);
  line-height: 1.4;
}

@media (prefers-reduced-motion: reduce) {
  .studio-handoff * { scroll-behavior: auto; }
}

@media(max-width:720px) {
  .studio-handoff .model-workspace__form { gap:var(--sc-space-2); }
  .studio-handoff .model-workspace__references { flex-wrap:nowrap; align-items:stretch; }
  .studio-handoff:not(.sc-preset-workspace) .model-workspace__reference-list:not(:empty) { flex:1 1 auto; flex-basis:auto; max-width:calc(100% - var(--sc-import-card-width) - var(--sc-space-2)); }
  .studio-handoff .model-workspace__toolbar { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .studio-handoff .model-workspace__submit { grid-column:2; }
  :is([data-model-page], .home-reference) .studio-handoff:not(.studio-handoff--purpose):not(.studio-handoff--composer):not(.sc-preset-workspace):not(.shared-image-composer) { padding:var(--sc-space-2); }
  :is([data-model-page], .home-reference) .studio-handoff:not(.studio-handoff--purpose):not(.studio-handoff--composer):not(.sc-preset-workspace):not(.shared-image-composer) .model-workspace__references { margin-inline:0; padding-inline:var(--sc-space-2); }
  :is([data-model-page], .home-reference) .studio-handoff:not(.studio-handoff--purpose):not(.studio-handoff--composer):not(.sc-preset-workspace):not(.shared-image-composer) .model-workspace__toolbar { margin-inline:0; }
}

.studio-handoff--purpose .studio-handoff__reference-purpose { display: none; }
.model-workspace.studio-handoff--purpose .studio-handoff__reference-guide { gap: 0; }
.model-workspace.studio-handoff--purpose [data-workspace-form] .model-workspace__submit-help[data-workspace-submit-help] { margin: 0; line-height: 1.5; }

/* Model pages use Studio's actual home-chat input primitives and stylesheet.
   These rules only place the landing-only fixed identity and draft action. */
.studio-handoff--composer { width: min(100%, var(--sc-composer-width)); margin-inline: auto; }
.studio-handoff--composer .home-chat { width: 100%; margin-inline: auto; }
.studio-handoff--composer .home-chat__mobile-field--references { grid-area: attachments; min-width: 0; }
.studio-handoff--composer .home-chat__toolbar { grid-template-columns: repeat(3, max-content); }
.studio-handoff--composer .studio-composer__identity { cursor: default; }
.studio-handoff--composer .model-picker--fixed { padding: 0; border: 0; background: transparent; }
.studio-handoff--composer .studio-composer__identity::after { display: none !important; }
/* Preserve the desktop control width occupied by the removed duplicate glyph. */
.studio-composer__indicator-space { width:7px; flex:0 0 7px; }
@media(max-width:767px) { .studio-composer__indicator-space { display:none; } }
.studio-handoff--composer .studio-composer__help,
.studio-handoff--composer .studio-composer__retry { grid-column: 1 / -1; }
.studio-handoff--composer .studio-composer__parameter { min-width: 0; }
@media (min-width: 769px) {
 .studio-handoff--composer .home-chat__mobile-field-label,
 .studio-handoff--composer .home-chat__mobile-field-heading,
 .studio-handoff--composer [data-workspace-prompt-count] { display: none; }
 .studio-handoff--composer .home-chat__input { height: 6rem; }
}
@media (max-width: 768px) {
 .studio-handoff--composer .home-chat { max-height: none; overflow: visible; padding-bottom: var(--sc-space-4); }
 .studio-handoff--composer .home-chat__toolbar { display: contents; }
 .studio-handoff--composer .studio-composer__model { order: 2; }
 .studio-handoff--composer .home-chat__mobile-field--references { grid-area: auto; order: 1; }
 .studio-handoff--composer .home-chat__mobile-field--prompt { order: 0; }
 .studio-handoff--composer .studio-composer__parameter { order: 3; display: grid; gap: var(--sc-space-2); }
 .studio-handoff--composer .studio-composer__parameter[hidden] { display: none; }
 .studio-handoff--composer .studio-composer__parameter .home-chat__menu-button { width: 100%; min-height: 3.75rem; }
 .studio-handoff--composer .home-chat__submit { order: 4; position: static; margin: 0; }
 .studio-handoff--composer .studio-composer__help,
 .studio-handoff--composer .studio-composer__retry,
 .studio-handoff--composer [data-workspace-status] { order: 5; }
}
.studio-handoff--composer [hidden] { display: none !important; }
.model-workspace--composer { width:min(100%,var(--sc-composer-width)); padding:0; border:0; background:transparent; }
.model-workspace--composer .home-chat { width:100%; }
.model-workspace--composer .home-chat__toolbar { grid-template-columns:minmax(0,1fr); }
.model-workspace--composer .home-chat__toolbar .sc-parameter-row { display:flex; width:max-content; gap:var(--sc-space-2); align-items:center; }
.model-workspace--composer .model-workspace__model-field { width:16rem; }
.model-workspace--composer .model-workspace__control { width:5.5rem; min-width:5.5rem; }
.model-workspace--composer .model-workspace__results { margin-top:var(--sc-space-6); }
.video-workspace--composer { width:min(100%,var(--sc-composer-width)); padding:0; border:0; background:transparent; }
.video-workspace--composer .home-chat { width:100%; }
.video-workspace--composer .home-chat__toolbar { display:flex; flex-wrap:wrap; max-width:100%; }
.video-workspace--composer .studio-composer__parameter { max-width:100%; }
.video-composer__reference img { width:100%; height:100%; object-fit:cover; border-radius:inherit; }
.video-workspace--composer .home-chat__attachments { gap:var(--sc-space-2); }
.video-workspace--composer .video-workspace__tasks { margin-top:var(--sc-space-6); }
@media(max-width:767px) {
 .model-workspace--composer .home-chat__toolbar .sc-parameter-row { display:grid; grid-template-columns:minmax(0,1fr); width:100%; }
 .model-workspace--composer :is(.model-workspace__model-field,.model-workspace__control) { width:100%; }
 .model-workspace--composer .home-chat__toolbar { display:block; }
 .model-workspace--composer .home-chat__submit { order:4; }
 .video-workspace--composer .home-chat__attachments { grid-area:auto; order:1; }
 .video-workspace--composer .home-chat__submit { order:4; }
}
.studio-handoff.studio-handoff--composer { padding: 0; border: 0; background: transparent; box-shadow: none; }
.studio-handoff--composer .studio-composer__help { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.studio-handoff--composer .studio-handoff__reference { min-width: 4rem; width: 4rem; height: 4rem; flex: 0 0 4rem; }
.studio-handoff--composer .home-chat .home-chat__toolbar.sc-parameter-row[data-grouped-parameters],
.studio-handoff--composer .home-chat .home-chat__toolbar .sc-parameter-row[data-grouped-parameters],
.model-landing[data-model-page] .studio-handoff--composer .home-chat__toolbar .sc-parameter-row[data-grouped-parameters],
.model-workspace--composer .home-chat__toolbar .sc-parameter-row[data-grouped-parameters] { display: flex; flex-wrap: nowrap; align-items: center; width: 100%; min-width: 0; max-width: 100%; overflow-x: auto; overflow-y: hidden; }
.studio-handoff--composer .home-chat .home-chat__toolbar:has(> .sc-parameter-row[data-grouped-parameters]) { display: block; width: 100%; max-width: 100%; margin: 0; order: 2; }
.studio-handoff--composer .home-chat .home-chat__toolbar[data-grouped-parameters] #homeChatModelControl,
.studio-handoff--composer .home-chat .sc-parameter-row[data-grouped-parameters] #homeChatModelControl,
.model-workspace--composer .sc-parameter-row[data-grouped-parameters] .model-workspace__model-field { flex: 0 0 auto; width: auto; }
.studio-handoff--composer .home-chat .sc-parameter-row[data-grouped-parameters] #homeChatModelControl { display: block; order: 0; }
.studio-handoff--composer .home-chat__toolbar[data-grouped-parameters] .studio-composer__parameter { flex: 0 0 auto; order: 0; }
@media (max-width: 768px) {
 .studio-handoff--composer .home-chat .home-chat__mobile-field-label { display: block; }
 .studio-handoff--composer .home-chat #homeChatModelControl { display: grid; width: 100%; gap: var(--sc-space-2); }
 .studio-handoff--composer .home-chat #homeChatModelControl > .home-chat__mobile-field-label { display: block; }
 .studio-handoff--composer .studio-composer__identity { width: 100%; }
}

/* An unused result placeholder must not enlarge the shared composer. */
.model-workspace--composer [data-workspace-tasks]:has([data-workspace-result-list]:empty):not(:has([data-workspace-history-more]:not([hidden]))):not(:has([data-workspace-history-loading]:not([hidden]))),
.video-workspace--composer .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; }
.studio-handoff.sc-preset-workspace .studio-handoff__reference-entry { display:flex; flex-direction:column; width:100%; max-width:none; aspect-ratio:auto; }
.studio-handoff.sc-preset-workspace .studio-handoff__reference-guide { display:grid; gap:var(--sc-space-1); }
.studio-handoff.sc-preset-workspace .studio-handoff__reference-purpose { display:none; }
.studio-handoff.sc-preset-workspace .model-workspace__references:has(.studio-handoff__reference) .sc-preset-workspace__upload { flex:none; height:44px; flex-direction:row; }
.studio-handoff.sc-preset-workspace .model-workspace__reference-list:not(:empty) { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); flex:1; min-height:0; overflow:auto; }
.studio-handoff.sc-preset-workspace .studio-handoff__reference { width:100%; height:7rem; }
.studio-handoff.sc-preset-workspace .studio-handoff__reference img { object-fit:contain; }
@media(max-width:480px) {
 .studio-handoff--composer .home-chat .home-chat__toolbar.sc-parameter-row[data-grouped-parameters],
 .studio-handoff--composer .home-chat .home-chat__toolbar .sc-parameter-row[data-grouped-parameters] { flex-wrap:wrap; overflow:visible; row-gap:var(--sc-space-2); }
 .studio-handoff--composer .home-chat .model-workspace__model-field,
 .studio-handoff--composer .home-chat .studio-composer__model { max-width:100%; }
}

/* The mobile image handoff follows the same stacked controls as Studio. */
@media(max-width:767px) {
 .studio-handoff--composer:not(.video-workspace--composer) .home-chat { display:flex; flex-direction:column; gap:var(--sc-space-4); max-height:none; overflow:visible; padding:var(--sc-space-4); }
 .studio-handoff--composer:not(.video-workspace--composer) .home-chat__mobile-field--prompt { order:0; gap:var(--sc-space-2); }
 .studio-handoff--composer:not(.video-workspace--composer) .home-chat__mobile-field--prompt .home-chat__mobile-field-heading { display:block; margin:0; }
 .studio-handoff--composer:not(.video-workspace--composer) #homeChatPromptLabel { position:static; width:auto; height:auto; margin:0; padding:0; overflow:visible; clip-path:none; }
 .studio-handoff--composer:not(.video-workspace--composer) .home-chat__input { height:8rem; min-height:8rem; border:1px solid var(--sc-color-border); border-radius:var(--sc-radius-lg); background:var(--sc-color-control); padding:var(--sc-space-3); font-size:1rem; }
 .studio-handoff--composer:not(.video-workspace--composer) .home-chat__mobile-field--references { order:1; display:grid; grid-template-columns:2.75rem minmax(0,1fr); gap:var(--sc-space-2) var(--sc-space-3); min-height:4.5rem; padding:var(--sc-space-3); border:1px solid var(--sc-color-border); border-radius:var(--sc-radius-lg); background:var(--sc-color-control); }
 .studio-handoff--composer:not(.video-workspace--composer) .home-chat__mobile-field--references .home-chat__mobile-field-heading { grid-column:2; grid-row:1; display:flex; flex-direction:column; justify-content:center; align-items:flex-start; gap:var(--sc-space-1); margin:0; min-width:0; }
 .studio-handoff--composer:not(.video-workspace--composer) #homeChatReferenceHint { text-align:start; overflow-wrap:anywhere; max-width:100%; }
 .studio-handoff--composer:not(.video-workspace--composer) .home-chat__attachments { display:contents; }
 .studio-handoff--composer:not(.video-workspace--composer) .home-chat.home-chat--responsive .home-chat__attach:not(.sc-reference-rail__add) { grid-column:1; grid-row:1; width:2.75rem; min-width:2.75rem; max-width:2.75rem; height:2.75rem; min-height:2.75rem; aspect-ratio:auto; align-self:center; border:1px solid var(--sc-color-border-strong); }
 .studio-handoff--composer:not(.video-workspace--composer) .home-chat__attachment-items { grid-column:1/-1; grid-row:2; max-width:100%; overflow:auto; }
 .studio-handoff--composer:not(.video-workspace--composer) .home-chat__attachment-items:empty { display:none; }
 .studio-handoff--composer:not(.video-workspace--composer) .home-chat .home-chat__toolbar:has(>.sc-parameter-row[data-grouped-parameters]) { order:2; display:block; margin:0; padding:0; }
 .studio-handoff--composer:not(.video-workspace--composer) .home-chat .home-chat__toolbar .sc-parameter-row[data-grouped-parameters] { display:flex; flex-direction:column; gap:var(--sc-space-4); width:100%; padding:0; overflow:visible; mask-image:none; }
 .studio-handoff--composer:not(.video-workspace--composer) .home-chat .sc-parameter-row[data-grouped-parameters] #homeChatModelControl { display:grid; gap:var(--sc-space-2); width:100%; max-width:100%; }
 .studio-handoff--composer:not(.video-workspace--composer) .home-chat .sc-parameter-row[data-grouped-parameters] #homeChatModelControl>.home-chat__mobile-field-label { display:block; }
 .studio-handoff--composer:not(.video-workspace--composer) :is(.model-picker,.home-specifications) { width:100%; min-width:0; }
 .studio-handoff--composer:not(.video-workspace--composer) #homeChatModelControl .model-picker__trigger,
 .studio-handoff--composer:not(.video-workspace--composer) #homeChatModelControl .studio-composer__identity { width:100%; min-height:3.25rem; padding:var(--sc-space-3); border-radius:var(--sc-radius-lg); }
 .studio-handoff--composer:not(.video-workspace--composer) .sc-model-identity { min-width:0; max-width:100%; }
 .studio-handoff--composer:not(.video-workspace--composer) [data-model-picker-value] { flex:1; min-width:0; }
 .studio-handoff--composer:not(.video-workspace--composer) :is([data-model-picker-value],[data-workspace-model-fixed])>.sc-model-identity { display:grid; grid-template-columns:1.5rem minmax(0,1fr); width:100%; }
 .studio-handoff--composer:not(.video-workspace--composer) .sc-model-name { text-align:center; }
 .studio-handoff--composer:not(.video-workspace--composer) .sc-model-name { min-width:0; white-space:normal; overflow-wrap:anywhere; }
 .studio-handoff--composer:not(.video-workspace--composer) .home-specifications__trigger { width:100%; min-height:3rem; border-radius:var(--sc-radius-lg); }
 .model-workspace--composer .home-chat .sc-parameter-row[data-grouped-parameters] [data-workspace-model-control] { display:grid; width:100%; max-width:100%; align-self:stretch; gap:var(--sc-space-2); }
 .model-workspace--composer [data-workspace-model-control]>.sc-sr-only { position:static; width:auto; height:auto; margin:0; overflow:visible; clip-path:none; }
 .model-workspace--composer [data-workspace-model-fixed] { display:flex; width:100%; min-height:3.25rem; align-items:center; justify-content:flex-start; padding:var(--sc-space-3); border:1px solid var(--sc-color-border); border-radius:var(--sc-radius-lg); background:var(--sc-color-control); }
 .studio-handoff--composer:not(.video-workspace--composer) .home-chat__submit { order:3; display:grid; grid-template-columns:minmax(0,1fr); gap:var(--sc-space-4); width:100%; margin:0; padding:0; position:static; }
 .studio-handoff--composer:not(.video-workspace--composer) [data-workspace-cost] { display:flex; width:100%; justify-content:space-between; gap:var(--sc-space-3); margin:0; padding-top:var(--sc-space-4); border-top:1px solid var(--sc-color-border); font-size:.8125rem; }
 .studio-handoff--composer:not(.video-workspace--composer) [data-workspace-cost]::before { content:attr(data-mobile-cost-label); color:var(--sc-color-muted); }
 .studio-handoff--composer:not(.video-workspace--composer) .home-chat__send { width:100%; min-height:3.25rem; padding:var(--sc-space-3); border-radius:var(--sc-radius-lg); font-size:1rem; line-height:1.4; }
 .studio-handoff--composer:not(.video-workspace--composer) .home-composer__offer-slot { order:4; display:flex; justify-content:center; }
 .studio-handoff--composer:not(.video-workspace--composer) .home-composer__offer-measure { display:none; }
 .studio-handoff--composer:not(.video-workspace--composer) [data-workspace-status] { order:5; }
}

/* Landing generation forms keep model/settings and the charged action in
   separate rows. The homepage's compact shared-image-composer is independent. */
.studio-handoff--composer .home-chat.home-chat--responsive {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "prompt" "attachments" "options" "submit" "status";
  gap: var(--sc-space-5);
  max-height: none;
  overflow: visible;
  padding: var(--sc-space-5);
}
.studio-handoff--composer .home-chat__mobile-field--prompt { grid-area: prompt; order: 0; }
.studio-handoff--composer .home-chat__mobile-field--prompt .home-chat__mobile-field-heading { display: block; margin: 0; }
.studio-handoff--composer .home-chat #homeChatPromptLabel { display: block; position: static; width: auto; height: auto; margin: 0; padding: 0; overflow: visible; clip-path: none; font-weight: 650; }
.studio-handoff--composer .home-chat__mobile-field--references,
.studio-handoff--composer.video-workspace--composer .home-chat__attachments { grid-area: attachments; order: 1; }
.studio-handoff--composer .home-chat.home-chat--responsive .home-chat__toolbar,
.studio-handoff--composer .home-chat .home-chat__toolbar:has(> .sc-parameter-row[data-grouped-parameters]) {
  display: block;
  grid-area: options;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
}
.studio-handoff--composer .home-chat .home-chat__toolbar.sc-parameter-row[data-grouped-parameters],
.studio-handoff--composer .home-chat .home-chat__toolbar .sc-parameter-row[data-grouped-parameters] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--sc-space-4);
  width: 100%;
  max-width: 100%;
  overflow: visible;
  mask-image: none;
  padding: 0;
  align-items: end;
}
.studio-handoff--composer .home-chat :is(#homeChatModelControl, [data-workspace-model-control], [data-video-control="model"], .home-specifications) {
  display: grid;
  gap: var(--sc-space-2);
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.studio-handoff--composer .home-chat :is(#studioHandoffModelLabel, #modelWorkspaceModelLabel, [data-video-control="model"] > .home-chat__mobile-field-label),
.studio-handoff--composer .home-chat #homeChatModelControl > .home-chat__mobile-field-label,
.studio-handoff--composer .studio-composer__parameters-label {
  display: block;
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip-path: none;
  white-space: normal;
  color: var(--sc-color-ink);
  font: 650 .875rem/var(--sc-leading-copy) var(--sc-font-sans);
}
.studio-handoff--composer .home-chat :is(.model-picker, .model-picker__trigger, .studio-composer__identity) { min-width: 0; max-width: 100%; width: 100%; }
.studio-handoff--composer .home-chat :is(.model-picker__trigger, .studio-composer__identity) { min-height: 3.25rem; height: auto; padding: var(--sc-space-3); white-space: normal; }
.studio-handoff--composer .home-chat :is([data-model-picker-value], .sc-model-identity, .sc-model-name, .home-specifications__desktop-summary) { min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.studio-handoff--composer .home-chat .home-chat__submit {
  display: grid;
  grid-area: submit;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  gap: var(--sc-space-4);
  position: static;
}
.studio-handoff--composer .studio-composer__cost-row {
  display: flex;
  width: 100%;
  min-width: 0;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--sc-space-2) var(--sc-space-4);
  padding-top: var(--sc-space-4);
  border-top: 1px solid var(--sc-color-border);
  color: var(--sc-color-muted);
  font-size: .875rem;
}
.studio-handoff--composer .studio-composer__cost-row [data-workspace-cost],
.studio-handoff--composer .studio-composer__cost-row [data-video-mobile-cost] {
  display: block;
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--sc-color-ink);
  font-size: inherit;
  line-height: var(--sc-leading-copy);
  text-align: right;
  white-space: normal;
}
.studio-handoff--composer .studio-composer__cost-row [data-workspace-cost]::before { content: none; }
.studio-handoff--composer .home-chat .home-chat__send.sc-button--coral { width: 100%; min-width: 0; min-height: 3.25rem; padding: var(--sc-space-3); font-size: 1rem; line-height: var(--sc-leading-copy); white-space: normal; overflow-wrap: anywhere; }
.studio-handoff--composer :is([data-video-submit-separator], [data-video-submit-cost]):not(.sc-generation-action__cost) { display: none !important; }
.studio-handoff--composer.video-workspace--composer .video-composer__reference-copy { min-width: 0; display: grid; gap: var(--sc-space-1); }
.studio-handoff--composer.video-workspace--composer .video-composer__reference-copy small { overflow-wrap: anywhere; }
.studio-handoff--composer.video-workspace--composer .home-chat__attachments { margin: 0; padding: var(--sc-space-3); border: 1px solid var(--sc-color-border); border-radius: var(--sc-radius-lg); background: var(--sc-color-control); }
.studio-handoff--composer.video-workspace--composer .home-chat__input { width: 100%; min-height: 7rem; margin: 0; padding: var(--sc-space-3); border: 1px solid var(--sc-color-border); border-radius: var(--sc-radius-lg); }
.studio-handoff--composer.video-workspace--composer [data-video-reference-feedback] { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip-path: none; white-space: normal; }
.studio-handoff--composer.video-workspace--composer .home-chat.home-chat--responsive .video-composer__reference:not(.sc-reference-rail__add) { flex: 0 0 2.75rem; width: 2.75rem; min-width: 2.75rem; max-width: 2.75rem; height: 2.75rem; min-height: 2.75rem; aspect-ratio: auto; }
.studio-handoff--composer.video-workspace--composer [data-video-remove] { position: absolute; top: 0; left: 2.25rem; display: grid; place-items: center; width: 2.75rem; min-width: 2.75rem; height: 2.75rem; margin: 0; padding: 0; font-size: 0; border-radius: var(--sc-radius-pill); }
.studio-handoff--composer.video-workspace--composer [data-video-remove]::before { content: "×"; font-size: 1.25rem; line-height: 1; }
@media (max-width: 767px) {
  .studio-handoff--composer .home-chat.home-chat--responsive { gap: var(--sc-space-4); padding: var(--sc-space-4); }
  .studio-handoff--composer .home-chat .home-chat__toolbar.sc-parameter-row[data-grouped-parameters],
  .studio-handoff--composer .home-chat .home-chat__toolbar .sc-parameter-row[data-grouped-parameters] { grid-template-columns: minmax(0, 1fr); }
}

/* Empty loading text reserves the same line box as the settled count/hint. */
.studio-handoff--composer .home-chat :is([data-workspace-prompt-count], [data-workspace-reference-help]) { min-block-size: 1lh; }
.studio-handoff--composer .home-chat #homeChatModelControl .model-picker__trigger { width: 100%; min-height: 3.25rem; }
.studio-handoff--composer .home-chat #homeChatModelControl [data-model-picker-value] { display: flex; align-items: center; }
.studio-handoff--composer .home-chat [data-workspace-cost] { min-block-size: 1lh; }
@media (min-width: 768px) {
  .studio-handoff--composer .home-chat [data-workspace-prompt-count] { display: none !important; }
}
@media (max-width: 767px) {
  .studio-handoff--composer .home-chat [data-workspace-cost] { min-block-size: max(2.75rem, calc(1lh + var(--sc-space-4) + 1px)); }
}
.home-reference #home-media-panel-image [data-workspace-submit] {
  color: var(--sc-color-ink);
}
