/* Image-only presentation. Preserve the native controls and their submission values. */
.reference-ui-shell #workspace:not([data-creation-type="image"]) #imageComposerModelPicker { display: none !important; }
.reference-ui-shell #workspace[data-creation-type="image"] #referenceComposerModelPanel > #imageModelField,
.reference-ui-shell #workspace[data-creation-type="image"] #imageModelField,
.reference-ui-shell #workspace[data-creation-type="image"] #imageRatioField > label,
.reference-ui-shell #workspace[data-creation-type="image"] #imageRatioField > select { display: none !important; }
.reference-ui-shell #workspace[data-creation-type="image"] #referenceComposerSettingsPanel[data-active-section="model"] > header span { display: none !important; }
.reference-ui-shell #workspace[data-creation-type="image"] .image-model-picker { display: grid !important; gap: 14px !important; }
.reference-ui-shell #workspace[data-creation-type="image"] .image-model-channel-tabs { display: flex !important; flex-wrap: wrap !important; gap: 6px !important; border-bottom: 1px solid var(--ref-border); padding-bottom: 12px; }
.reference-ui-shell #workspace[data-creation-type="image"] .image-model-channel-tab { flex: 0 1 auto; min-width: 0; min-height: 36px !important; padding: 8px 13px !important; border: 1px solid transparent !important; border-radius: 9px !important; background: transparent !important; color: var(--ref-sub) !important; font-size: 12px !important; cursor: pointer; }
.reference-ui-shell #workspace[data-creation-type="image"] .image-model-channel-tab.active { color: var(--ref-primary-2) !important; border-color: color-mix(in srgb, var(--ref-primary-2) 40%, transparent) !important; background: color-mix(in srgb, var(--ref-primary) 12%, var(--ref-surface)) !important; }
.reference-ui-shell #workspace[data-creation-type="image"] .image-model-card-list { display: grid !important; gap: 7px !important; overflow-y: auto !important; max-height: min(330px, var(--reference-popover-menu-max-height, 330px)) !important; padding: 1px; }
.reference-ui-shell #workspace[data-creation-type="image"] .image-model-card { display: grid !important; grid-template-columns: 8px minmax(0, 1fr) 20px !important; align-items: center; gap: 10px; width: 100%; min-height: 63px !important; padding: 11px 13px !important; border-radius: 12px !important; border: 1px solid var(--ref-border) !important; color: var(--ref-text) !important; background: var(--ref-bg-2) !important; text-align: left; cursor: pointer; }
.reference-ui-shell #workspace[data-creation-type="image"] .image-model-card.active,
.reference-ui-shell #workspace[data-creation-type="image"] .image-model-card:hover:not(:disabled) { border-color: var(--ref-primary-2) !important; background: color-mix(in srgb, var(--ref-primary) 10%, var(--ref-surface)) !important; }
.reference-ui-shell #workspace[data-creation-type="image"] .image-model-card-dot { width: 7px; height: 7px; border-radius: 50%; background: #28a878; }
.reference-ui-shell #workspace[data-creation-type="image"] .image-model-card-copy { min-width: 0; }
.reference-ui-shell #workspace[data-creation-type="image"] .image-model-card-copy strong { display: block; font-size: 13px !important; white-space: normal !important; overflow-wrap: anywhere; }
.reference-ui-shell #workspace[data-creation-type="image"] .image-model-card-copy small { display: block; margin-top: 5px; font-size: 11px !important; color: var(--ref-sub) !important; }
.reference-ui-shell #workspace[data-creation-type="image"] .image-model-card-check { color: var(--ref-primary-2); }
.reference-ui-shell #workspace[data-creation-type="image"] .image-model-card:disabled { opacity: .5; cursor: not-allowed; }
.reference-ui-shell #workspace[data-creation-type="image"] .image-model-card:disabled .image-model-card-dot { background: var(--ref-sub); }
/* The shared parameter section used to reserve two columns. Image ratios
   own the whole section, not one legacy parameter cell. */
.reference-ui-shell #workspace[data-creation-type="image"] #referenceComposerParametersPanel[data-active-subsection="ratio"] { grid-template-columns: minmax(0, 1fr) !important; width: 100% !important; min-width: 0 !important; }
.reference-ui-shell #workspace[data-creation-type="image"] #referenceComposerParametersPanel[data-active-subsection="ratio"] #imageRatioField { grid-column: 1 / -1 !important; width: 100% !important; min-width: 0 !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; }
.reference-ui-shell #workspace[data-creation-type="image"] #imageRatioChoices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(84px, 100%), 1fr)); gap: 8px; width: 100%; min-width: 0; }
.reference-ui-shell #workspace[data-creation-type="image"] #imageRatioChoices button { display: grid; place-items: center; align-content: center; gap: 5px; min-height: 92px; padding: 10px 4px; border-radius: 12px; border: 1px solid var(--ref-border); background: var(--ref-bg-2); color: var(--ref-text); cursor: pointer; }
.reference-ui-shell #workspace[data-creation-type="image"] #imageRatioChoices i { display: block; border: 1.5px solid currentColor; border-radius: 3px; opacity: .8; }
.reference-ui-shell #workspace[data-creation-type="image"] #imageRatioChoices strong { font-size: 12px; }
.reference-ui-shell #workspace[data-creation-type="image"] #imageRatioChoices span { color: var(--ref-sub); font-size: 11px; }
.reference-ui-shell #workspace[data-creation-type="image"] #imageRatioChoices button[aria-pressed="true"] { border-color: var(--ref-primary-2); color: var(--ref-primary-2); background: color-mix(in srgb, var(--ref-primary) 12%, var(--ref-surface)); }
.reference-ui-shell #workspace[data-creation-type="image"] :is(.image-model-channel-tab,.image-model-card,#imageRatioChoices button):focus-visible { outline: 2px solid var(--ref-primary-2); outline-offset: 2px; }
.reference-ui-shell #workspace[data-creation-type="image"] #referenceComposerRatioButton:disabled { cursor: default; opacity: .75; }
.reference-ui-shell #referenceComposerParametersPanel #imageResolutionField { min-width: 0; width: 100%; }
.reference-ui-shell #referenceComposerParametersPanel #imageResolutionField[hidden],
.reference-ui-shell #referenceComposerParametersPanel #imageResolutionField > label,
.reference-ui-shell #referenceComposerParametersPanel #imageOutputNote[hidden] { display: none !important; }
.reference-ui-shell #referenceComposerParametersPanel #imageResDirectChoices .direct-choices-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.reference-ui-shell #referenceComposerParametersPanel #imageOutputNote { display: block; margin-top: 12px; color: var(--ref-muted); font-size: 11px; line-height: 1.5; text-align: center; }
.reference-ui-shell #workspace[data-creation-type="image"] .image-model-selection-note { margin: 0; padding: 10px 12px; border: 1px solid var(--ref-border); border-radius: 9px; color: var(--ref-text); background: var(--ref-bg-2); font-size: 12px; line-height: 1.6; }
