/* UI-only hotfix for the 2026-09-11 review screenshots. No selectors below
   change generation state or event handlers. */
.reference-ui-shell .right-view { min-width: 0 !important; }
.reference-ui-shell .works-inner,
.reference-ui-shell #view-work > *,
.reference-ui-shell #view-projects > .content-head,
.reference-ui-shell #view-projects > .project-manager { max-width: 1600px !important; }
.reference-ui-shell .reference-composer-slot {
  left: 16px !important; right: 16px !important; width: auto !important;
  max-width: none !important; padding-left: 0 !important; padding-right: 0 !important;
}
/* The fixed production dock spans both gutters; only its painted composer is capped. */
.reference-ui-shell #view-work > .reference-work-composer-slot {
  max-width: none !important;
}
.reference-ui-shell .reference-composer-slot > .compose[data-reference-surface] {
  width: min(1600px, 100%) !important; max-width: none !important; margin-inline: auto !important;
}
.reference-ui-shell .reference-composer-settings {
  width: min(520px, calc(100vw - 32px)) !important;
  max-width: calc(100vw - 32px) !important;
}
.reference-ui-shell .reference-composer-settings-section {
  grid-template-columns: minmax(0, 1fr) !important;
  align-items: stretch !important;
}
.reference-ui-shell .reference-composer-settings-section > .field,
.reference-ui-shell .reference-composer-settings-section > .audio-panel,
.reference-ui-shell .reference-composer-settings-section > #videoParamGrid,
.reference-ui-shell .reference-composer-settings-section > #imageRatioField {
  grid-column: 1 !important; width: 100% !important; min-width: 0 !important;
}
.reference-ui-shell .reference-composer-settings-section .field-head { margin-bottom: 6px !important; }
.reference-ui-shell #referenceComposerParametersPanel :is(#videoParamGrid,#imageRatioField) { gap: 8px !important; }
@media (max-width: 700px) {
  .reference-ui-shell .reference-composer-slot { left: 8px !important; right: 8px !important; }
  .reference-ui-shell .reference-composer-settings { width: calc(100vw - 16px) !important; max-width: calc(100vw - 16px) !important; }
}
