/*
 * Dr.Prompt · PSD compact frame pass (P12)
 * Keep exactly two meaningful surfaces per block: an outer module frame and
 * one inner content frame. All intermediary layout wrappers stay invisible.
 */
:root {
  --df-p12-line: rgba(255, 255, 255, .14);
  --df-p12-outer: rgba(8, 8, 11, .34);
  --df-p12-inner: rgba(8, 8, 11, .66);
}

/* --------------------------------------------------------------------------
   Creative Engine: outer composer frame + inner text-entry frame only.
   -------------------------------------------------------------------------- */
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio > .reactor-shell,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .reactor-flow-map,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .reactor-core,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-studio-top,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottombar {
  box-sizing: border-box !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio > .reactor-shell,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .reactor-flow-map,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .reactor-core,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-studio-top,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottombar {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio {
  overflow: hidden !important;
  padding: 0 0 8px !important;
  border: 1px solid var(--df-p12-line) !important;
  border-radius: 20px !important;
  background: var(--df-p12-outer) !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-studio-top {
  min-height: 44px !important;
  padding: 0 16px !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-stage {
  box-sizing: border-box !important;
  width: calc(100% - 20px) !important;
  max-width: calc(100% - 20px) !important;
  margin: 10px !important;
  padding: 0 !important;
  border: 1px solid var(--df-p12-line) !important;
  border-radius: 14px !important;
  background: var(--df-p12-inner) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035) !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-stage > .idea-input,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-stage > textarea.idea-input,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .idea-input.studio-input {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 190px !important;
  margin: 0 !important;
  padding: 16px 16px 40px !important;
  border: 0 !important;
  border-radius: inherit !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* The counter and style launcher live inside the inner frame without creating
   another rectangle. */
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-meta-readout-inline,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .quick-start-style-dock {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Compact embedded action row: no third frame, no tall empty gutters. */
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottombar {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 6px !important;
  width: calc(100% - 20px) !important;
  max-width: calc(100% - 20px) !important;
  margin: 0 10px !important;
  padding: 0 !important;
}
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-right {
  display: flex !important;
  align-items: center !important;
  align-content: center !important;
  flex-wrap: nowrap !important;
  gap: 6px !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-right {
  justify-content: flex-end !important;
  display: flex !important;
}
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-trigger,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-styles-trigger,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .first-frame-toggle-compact,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-right > .composer-reset-btn {
  min-height: 34px !important;
  height: 34px !important;
  margin: 0 !important;
}
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .reference-upload-group,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-control,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-styles-trigger,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .first-frame-toggle-compact {
  border: 0 !important;
  border-radius: 8px !important;
  background: rgba(255,255,255,.045) !important;
  box-shadow: none !important;
}
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio #run-demo-btn {
  width: 40px !important;
  min-width: 40px !important;
  height: 34px !important;
  min-height: 34px !important;
  border-radius: 9px !important;
  margin: 0 !important;
}

/* --------------------------------------------------------------------------
   Other functional pages: retain one outer frame and one intentional inner
   surface; intermediate layout wrappers do not paint cards of their own.
   -------------------------------------------------------------------------- */
#app[data-active-view]:not([data-active-view="home"]) .panel > .panel-head,
#app[data-active-view]:not([data-active-view="home"]) .panel > .result-head,
#app[data-active-view]:not([data-active-view="home"]) .panel > .section-head,
#app[data-active-view]:not([data-active-view="home"]) .panel > .page-hero,
#app[data-active-view]:not([data-active-view="home"]) .panel > .workflow-board,
#app[data-active-view]:not([data-active-view="home"]) .panel > .schema-grid,
#app[data-active-view]:not([data-active-view="home"]) .panel > .project-log-grid,
#app[data-active-view]:not([data-active-view="home"]) .panel > .model-service-detail-stack {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#app[data-active-view]:not([data-active-view="home"]) .template-use-workspace,
#app[data-active-view]:not([data-active-view="home"]) .task-session-board,
#app[data-active-view]:not([data-active-view="home"]) .model-service-workspace,
#app[data-active-view]:not([data-active-view="home"]) .project-log-page,
#app[data-active-view]:not([data-active-view="home"]) .schema-grid,
#app[data-active-view]:not([data-active-view="home"]) .workflow-board,
#app[data-active-view]:not([data-active-view="home"]) .output-panel {
  box-sizing: border-box !important;
  border: 1px solid var(--df-p12-line) !important;
  border-radius: 18px !important;
  background: var(--df-p12-outer) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035) !important;
}

#app[data-active-view]:not([data-active-view="home"]) .template-use-editor-card,
#app[data-active-view]:not([data-active-view="home"]) .template-editor,
#app[data-active-view]:not([data-active-view="home"]) .schema-code,
#app[data-active-view]:not([data-active-view="home"]) .provider-config,
#app[data-active-view]:not([data-active-view="home"]) .provider-guide,
#app[data-active-view]:not([data-active-view="home"]) .project-log-detail,
#app[data-active-view]:not([data-active-view="home"]) .project-log-summary,
#app[data-active-view]:not([data-active-view="home"]) .prompt-body,
#app[data-active-view]:not([data-active-view="home"]) .model-service-detail-card {
  box-sizing: border-box !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 12px !important;
  background: var(--df-p12-inner) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03) !important;
}

/* Do not impose one height/padding on every functional-page button. These
   modules contain compact icon actions, multi-line navigation choices, and
   form controls; each retains its component-specific geometry. Only reduce
   decorative shadows so their existing inlaid treatment remains. */
#app[data-active-view]:not([data-active-view="home"]) .panel button:not(.primary-btn):not(.composer-send-btn),
#app[data-active-view]:not([data-active-view="home"]) .template-use-workspace button,
#app[data-active-view]:not([data-active-view="home"]) .task-session-board button,
#app[data-active-view]:not([data-active-view="home"]) .model-service-workspace button,
#app[data-active-view]:not([data-active-view="home"]) .project-log-page button {
  box-shadow: none !important;
}

@media (max-width: 600px) {
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottombar {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 4px !important;
  }
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: center !important;
    gap: 6px !important;
  }
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left > *,
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left > .composer-more-control {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left > .reference-upload-group {
    height: 34px !important;
    min-height: 34px !important;
  }
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left .composer-more-trigger,
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left .composer-styles-trigger,
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left .first-frame-toggle-compact {
    width: 100% !important;
    min-width: 0 !important;
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    padding-inline: 8px !important;
  }
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-right {
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
  }
}

/* Global spacing and control safety pass (P12 v3). Earlier PSD layers style
   outer modules and their content; this pass removes inherited fixed heights
   and prevents flex/grid children from forcing overflow or empty space. */
#app[data-active-view]:not([data-active-view="home"]) .view > .page-scroll,
#app[data-active-view]:not([data-active-view="home"]) .workbench-grid {
  min-width: 0 !important;
  max-width: 100% !important;
}

#app[data-active-view]:not([data-active-view="home"]) .panel,
#app[data-active-view]:not([data-active-view="home"]) .panel > *,
#app[data-active-view]:not([data-active-view="home"]) .page-scroll > *,
#app[data-active-view]:not([data-active-view="home"]) .task-session-board > *,
#app[data-active-view]:not([data-active-view="home"]) .model-service-workspace > *,
#app[data-active-view]:not([data-active-view="home"]) .project-log-page > * {
  min-width: 0;
  box-sizing: border-box;
}

#app[data-active-view]:not([data-active-view="home"]) .panel {
  min-height: 0 !important;
}

/* Output prompt text should wrap instead of widening the whole module. */
#app[data-active-view="workbench"] .output-panel,
#app[data-active-view="workbench"] .prompt-body,
#app[data-active-view="workbench"] .prompt-body pre,
#app[data-active-view="workbench"] .prompt-body code {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-wrap: anywhere;
}

/* Component buttons retain their intrinsic height. Only guard against a
   flex/grid parent stretching compact actions vertically. */
#app[data-active-view]:not([data-active-view="home"]) .panel button,
#app[data-active-view]:not([data-active-view="home"]) .page-scroll button,
#app[data-active-view]:not([data-active-view="home"]) .page-scroll select,
#app[data-active-view]:not([data-active-view="home"]) .page-scroll input {
  flex: 0 0 auto;
}

@media (max-width: 820px) {
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottombar {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 4px !important;
  }
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: center !important;
    gap: 6px !important;
  }
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left > *,
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left > .composer-more-control {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
}

@media (max-width: 600px) {
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio {
    padding-bottom: 8px !important;
  }
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-stage {
    width: calc(100% - 20px) !important;
    max-width: calc(100% - 20px) !important;
  }
  #app[data-active-view]:not([data-active-view="home"]) .page-scroll {
    overflow-x: clip;
  }
}

/* Final measured correction: older release overrides reserve a 122px
   bottom bar for the previous card layout even when its contents are 44px. */
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottombar {
  min-height: 0 !important;
  height: auto !important;
  align-items: center !important;
}

@media (min-width: 821px) {
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left {
    min-width: 0 !important;
    flex-wrap: wrap !important;
  }
}

@media (max-width: 600px) {
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .reference-preview.reference-slot-grid {
    display: flex !important;
    gap: 4px !important;
    width: auto !important;
  }
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .reference-preview.reference-slot-grid .reference-upload-slot {
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 !important;
  }
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .reference-preview.reference-slot-grid .reference-upload-slot small {
    display: none !important;
  }
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .reference-upload-group {
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
}

@media (max-width: 600px) {
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-right {
    justify-content: flex-end !important;
  }
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-right .composer-reset-btn {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
  }
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-right #run-demo-btn {
    flex: 0 0 40px !important;
    width: 40px !important;
    min-width: 40px !important;
  }
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .reference-upload-group {
    flex: 0 0 auto !important;
    width: max-content !important;
  }
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-reference-strip {
    flex: 0 0 auto !important;
    width: max-content !important;
  }
}

@media (min-width: 601px) and (max-width: 1000px) {
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .reference-upload-group { width: 190px !important; }
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-control { width: 124px !important; }
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-styles-trigger { width: 112px !important; }
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .first-frame-toggle-compact { width: 106px !important; }
}

@media (max-width: 820px) {
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  }
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .reference-upload-group {
    display: flex !important;
    flex: 0 0 auto !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    width: max-content !important;
    max-width: 100% !important;
    gap: 0 !important;
  }
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .reference-upload-heading { display: none !important; }
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-reference-strip {
    flex: 0 0 auto !important;
    width: max-content !important;
    max-width: 100% !important;
  }
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .reference-preview.reference-slot-grid {
    display: flex !important;
    grid-template-columns: none !important;
    width: max-content !important;
    gap: 4px !important;
  }
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-control {
    width: min(100%, 148px) !important;
    max-width: 148px !important;
  }
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-styles-trigger {
    width: min(100%, 132px) !important;
    max-width: 132px !important;
  }
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .first-frame-toggle-compact {
    width: min(100%, 120px) !important;
    max-width: 120px !important;
  }
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio #reset-demo-btn {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
  }
}

@media (max-width: 820px) {
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left > .composer-more-control {
    justify-self: start !important;
    width: min(100%, 148px) !important;
    max-width: 148px !important;
  }
}

/* Keep the expanded Size sheet viewport-bound on tablet and mobile widths.
   The open trigger's hover filter otherwise becomes the containing block for
   position: fixed, shrinking/repositioning the sheet to the trigger itself. */
@media (max-width: 820px) {
  #app#app[data-active-view="workbench"][data-creation-entry="fast"]
    .composer-more-control.is-open {
    filter: none !important;
    transform: none !important;
  }

  #app#app[data-active-view="workbench"][data-creation-entry="fast"]
    .composer-more-panel {
    position: fixed !important;
    inset: auto 16px 16px !important;
    box-sizing: border-box !important;
    width: auto !important;
    max-width: none !important;
    max-height: calc(100dvh - 32px) !important;
    overflow: auto !important;
    overscroll-behavior: contain !important;
  }
}
@media (max-width: 820px) {
  #app#app[data-active-view="workbench"][data-creation-entry="fast"]
    .composer-more-control.is-open:hover,
  #app#app[data-active-view="workbench"][data-creation-entry="fast"]
    .composer-more-control.is-open:focus-within {
    filter: none !important;
    transform: none !important;
  }
}

/* P12 control alignment pass: keep labels, segmented choices, and value
   inputs optically centered without forcing oversized mobile segments. */
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-more-panel,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-more-panel * {
  box-sizing: border-box !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-more-panel .composer-control-label {
  display: flex !important;
  align-items: center !important;
  min-height: 34px !important;
  line-height: 1.25 !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-more-panel .segmented.compact {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 3px !important;
  min-width: 0 !important;
  min-height: 40px !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-more-panel .segmented.compact > .segment,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-more-panel .segment-value-option > .segment,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] #first-frame-size-selector > button {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: max-content !important;
  min-height: 34px !important;
  height: 34px !important;
  padding: 0 10px !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  vertical-align: middle !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-more-panel .segment-value-option {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 4px !important;
  min-width: 0 !important;
  min-height: 34px !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-more-panel .duration-row.compact {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 30px !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-more-panel .duration-row.compact input {
  box-sizing: border-box !important;
  height: 30px !important;
  min-height: 30px !important;
  line-height: 1.2 !important;
  text-align: center !important;
}

@media (max-width: 760px) {
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-more-panel .composer-more-section {
    align-items: start !important;
  }

  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-more-panel .composer-control-label {
    min-height: 18px !important;
  }

  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-more-panel .segmented.compact {
    align-content: center !important;
    min-height: 40px !important;
  }
}

@media (max-width: 760px) {
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-more-panel .segmented.compact > .segment,
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-more-panel .segment-value-option {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: 100% !important;
  }

  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-more-panel .segment-value-option {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
  }

  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-more-panel .segmented.compact > .segment {
    white-space: nowrap !important;
  }
}

/* --------------------------------------------------------------------------
   P13 · Creative Engine typography, control alignment, and clean output cards
   Keep the PSD's two-surface language: one outer module frame and one inner
   working surface. This pass changes layout only; no controls are added.
   -------------------------------------------------------------------------- */
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-studio-top,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .creative-brief-heading,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottombar,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-right {
  box-sizing: border-box !important;
}

/* Keep the title's icon and type on one optical centre line. */
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-studio-top {
  display: flex !important;
  align-items: center !important;
  min-height: 58px !important;
  padding: 0 18px !important;
  border-bottom: 0 !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .creative-brief-heading {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  min-height: 0 !important;
  height: 100% !important;
  padding: 0 !important;
  border: 0 !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .creative-brief-mark {
  display: inline-grid !important;
  flex: 0 0 30px !important;
  width: 30px !important;
  height: 30px !important;
  place-items: center !important;
  line-height: 1 !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .creative-brief-heading strong {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 30px !important;
  font-size: clamp(21px, 1.8vw, 24px) !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

/* The editable surface owns its height; the counter is anchored to this
   surface rather than to the outer composer card. */
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-stage {
  min-height: 218px !important;
  height: 218px !important;
  margin: 10px !important;
  padding: 0 !important;
  overflow: visible !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-stage > .idea-input,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-stage > textarea.idea-input,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .idea-input.studio-input {
  display: block !important;
  height: 100% !important;
  min-height: 0 !important;
  padding: 15px 16px 38px !important;
  line-height: 1.62 !important;
  overflow: auto !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-meta-readout-inline {
  right: 12px !important;
  bottom: 10px !important;
  min-height: 22px !important;
  height: 22px !important;
  padding: 0 8px !important;
  border: 0 !important;
  background: rgba(71, 48, 132, .64) !important;
  box-shadow: none !important;
  line-height: 1 !important;
}

/* One compact, common control height. Every child is centred inside its own
   hit area so labels cannot drift or stretch the row. */
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottombar {
  align-items: center !important;
  min-height: 40px !important;
  height: 40px !important;
  margin: 0 10px !important;
  padding: 0 !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-right,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .reference-upload-group,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-reference-strip,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .reference-preview {
  align-items: center !important;
  align-content: center !important;
  height: 40px !important;
  min-height: 40px !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .reference-upload-group,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-control,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-styles-trigger,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .first-frame-toggle-compact,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-trigger,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-right > .composer-reset-btn,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio #run-demo-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 40px !important;
  min-height: 40px !important;
  margin: 0 !important;
  line-height: 1 !important;
  vertical-align: middle !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .reference-upload-group {
  justify-content: flex-start !important;
  gap: 7px !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .reference-upload-heading,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .reference-upload-heading strong,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-trigger-copy,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-trigger-copy strong,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-trigger-copy small,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-styles-trigger-copy,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .first-frame-toggle-label {
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1 !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-trigger-copy {
  justify-content: center !important;
  gap: 4px !important;
}

/* Never let the info bubble be clipped by the card's visual boundary. */
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio > .reactor-shell,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .reactor-flow-map,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .reactor-core,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottombar,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .first-frame-toggle-compact,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .first-frame-info-anchor {
  overflow: visible !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .first-frame-info-anchor {
  z-index: 30 !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .first-frame-info-popover {
  z-index: 120 !important;
}

/* Output hierarchy: same one-line title treatment, no ornamental rules. */
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .output-panel > .panel-head.result-head,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .output-title-group {
  display: flex !important;
  align-items: center !important;
  min-height: 40px !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .output-title-group {
  gap: 10px !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .output-title-group h2 {
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 !important;
  font-size: clamp(21px, 1.8vw, 24px) !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .output-stage-premium .prompt-stage-card,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .output-stage-premium .prompt-primary,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .output-stage-premium .first-frame-card {
  border-top: 0 !important;
  border-bottom: 0 !important;
  border-left: 1px solid rgba(255,255,255,.13) !important;
  box-shadow: none !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .output-stage-premium .prompt-stage-card .prompt-head,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .output-stage-premium .prompt-stage-card .first-frame-pane-head {
  min-height: 40px !important;
  padding: 0 !important;
  margin: 0 0 8px !important;
  border: 0 !important;
  align-items: center !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .output-stage-premium .prompt-stage-card .prompt-head::before,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .output-stage-premium .prompt-stage-card .prompt-head::after,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .output-stage-premium .prompt-stage-card .first-frame-pane-head::before,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .output-stage-premium .prompt-stage-card .first-frame-pane-head::after {
  display: none !important;
  content: none !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .output-stage-premium .prompt-primary .prompt-title-row,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .output-stage-premium .first-frame-card .prompt-head > div:first-child {
  display: inline-flex !important;
  align-items: center !important;
  min-width: 0 !important;
  height: 40px !important;
  white-space: nowrap !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .output-stage-premium .prompt-primary .prompt-title-row > span:first-child {
  display: inline-flex !important;
  align-items: center !important;
  height: 40px !important;
  color: #c6a8ff !important;
  font-size: clamp(19px, 1.55vw, 22px) !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .output-stage-premium .first-frame-card .prompt-head > div:first-child > span {
  display: inline-flex !important;
  align-items: center !important;
  height: 40px !important;
  color: #8bd3cf !important;
  font-size: clamp(16px, 1.25vw, 18px) !important;
  font-weight: 760 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .output-stage-premium .prompt-stage-card .prompt-toolbar {
  align-items: center !important;
  gap: 6px !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: visible !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .output-stage-premium .prompt-stage-card .prompt-toolbar > button,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .output-stage-premium .prompt-stage-card .prompt-toolbar .first-frame-output-switch {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 30px !important;
  height: 30px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .output-stage-premium .prompt-stage-card .prompt-body {
  border-top: 0 !important;
  border-bottom: 0 !important;
  margin-top: 0 !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .output-stage-premium .first-frame-card {
  border-left: 1px solid rgba(255,255,255,.13) !important;
  background: transparent !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .output-stage-premium .first-frame-card .first-frame-prompt {
  margin-top: 0 !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

@media (max-width: 760px) {
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-studio-top {
    min-height: 52px !important;
  }

  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-stage {
    height: 204px !important;
    min-height: 204px !important;
  }

  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottombar {
    height: auto !important;
    min-height: 40px !important;
    align-items: center !important;
  }

  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left {
    align-items: center !important;
    flex-wrap: wrap !important;
    row-gap: 4px !important;
  }

  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .first-frame-info-popover {
    position: fixed !important;
    top: auto !important;
    right: 12px !important;
    bottom: 72px !important;
    left: auto !important;
    width: min(248px, calc(100vw - 24px)) !important;
    min-width: 0 !important;
    max-width: calc(100vw - 24px) !important;
    transform: none !important;
  }

  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .first-frame-info-popover::before {
    top: auto !important;
    right: 24px !important;
    bottom: -5px !important;
    left: auto !important;
    transform: rotate(225deg) !important;
  }

  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .output-panel > .panel-head.result-head {
    min-height: 40px !important;
    align-items: center !important;
  }

  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .output-stage-premium .prompt-stage-card .prompt-head {
    align-items: flex-start !important;
    flex-wrap: wrap !important;
    row-gap: 4px !important;
  }

  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .output-stage-premium .prompt-stage-card .prompt-toolbar {
    width: 100% !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
  }
}

/* P13 follow-up · Mobile rows use flex wrapping, not a centered grid. The
   previous two-column grid could have more row height than its container and
   visibly lift controls above the bar. */
@media (max-width: 820px) {
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottombar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-auto-rows: auto !important;
    height: auto !important;
    min-height: 40px !important;
    align-items: center !important;
    row-gap: 4px !important;
  }

  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left {
    display: flex !important;
    width: 100% !important;
    height: auto !important;
    min-height: 40px !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    align-content: center !important;
    row-gap: 4px !important;
  }

  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left > .reference-upload-group {
    width: auto !important;
    max-width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;
    align-self: center !important;
  }

  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left > .composer-more-control,
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left > .composer-styles-trigger,
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left > .first-frame-toggle-compact {
    align-self: center !important;
  }

  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-right {
    width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;
    align-self: center !important;
  }

  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio #reset-demo-btn {
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    line-height: 1 !important;
  }

  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .output-stage-premium .prompt-stage-card .prompt-head {
    flex-wrap: nowrap !important;
    align-items: center !important;
    min-width: 0 !important;
  }

  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .output-stage-premium .prompt-stage-card .prompt-head > div:first-child {
    flex: 0 0 auto !important;
    min-width: 0 !important;
  }

  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .output-stage-premium .prompt-stage-card .prompt-toolbar {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: 100% !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    justify-content: flex-end !important;
    scrollbar-width: none !important;
  }

  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .output-stage-premium .prompt-stage-card .prompt-toolbar::-webkit-scrollbar {
    display: none !important;
  }
}

/* P14 · Keep output headings compact on narrow viewports. The legacy mobile
   grid made action buttons stack into tall rows, so the prompt header could
   grow far beyond its content. Preserve one centered row and let only the
   action strip scroll horizontally when space is tight. */
@media (max-width: 820px) {
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .output-stage-premium .prompt-stage-card .prompt-head {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    align-content: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 40px !important;
    height: 40px !important;
    max-height: 40px !important;
    overflow: visible !important;
  }

  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .output-stage-premium .prompt-stage-card .prompt-title-row {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    align-self: center !important;
    width: max-content !important;
    min-width: max-content !important;
    max-width: max-content !important;
    height: 40px !important;
    min-height: 40px !important;
    white-space: nowrap !important;
  }

  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .output-stage-premium .prompt-stage-card .prompt-toolbar {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    align-content: center !important;
    justify-content: flex-end !important;
    align-self: center !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 30px !important;
    min-height: 30px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
    scrollbar-width: none !important;
  }

  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .output-stage-premium .prompt-stage-card .prompt-toolbar::-webkit-scrollbar {
    display: none !important;
  }

  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .output-stage-premium .prompt-stage-card .prompt-toolbar > button,
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .output-stage-premium .prompt-stage-card .prompt-toolbar .first-frame-output-switch {
    flex: 0 0 auto !important;
    align-self: center !important;
    width: auto !important;
    min-width: max-content !important;
    max-width: none !important;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    white-space: nowrap !important;
  }
}

/* P14 follow-up · Reset all four inset sides together. A later legacy rule
   supplied negative top/left values; setting only top/left individually left
   a mixed inset in Chromium and pushed the help popover outside narrow views. */
@media (max-width: 760px) {
  html body #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left .first-frame-info-anchor > .first-frame-info-popover {
    position: fixed !important;
    inset: auto 12px 72px auto !important;
    width: min(248px, calc(100vw - 24px)) !important;
    min-width: 0 !important;
    max-width: calc(100vw - 24px) !important;
    transform: none !important;
  }
}

/* P14 follow-up · The checked first-frame label is also the popover's
   containing block. Prevent the hover lift from creating a transformed
   containing block for the viewport-anchored help bubble. */
@media (max-width: 760px) {
  html body #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left .first-frame-toggle-compact:hover,
  html body #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left .first-frame-toggle-compact:focus-within,
  html body #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left .first-frame-toggle-compact:active {
    transform: none !important;
  }
}

/* P14 follow-up · A hover brightness filter also establishes a containing
   block for fixed descendants in Chromium, even when transform is none.
   Keep the first-frame info anchor in the viewport coordinate space while
   its help bubble is open/hovered. */
@media (max-width: 760px) {
  html body #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left .first-frame-toggle-compact:hover,
  html body #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left .first-frame-toggle-compact:focus-within,
  html body #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left .first-frame-toggle-compact:active {
    filter: none !important;
  }
}

/* P15 · Remove the reserved composer height that left an empty band below
   the collapsed Creative workflow disclosure. The shell already owns the
   complete content height at each breakpoint, so let the outer card follow it
   instead of preserving the old 518px minimum. */
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .workbench-grid > .setup-panel {
  min-height: 0 !important;
}

/* P15 · The video prompt uses the same compact circular marker as the
   first-frame prompt, while its legacy violet top rule is intentionally
   removed. */
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .output-stage-premium .prompt-primary::before {
  display: none !important;
  content: none !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .output-stage-premium .prompt-primary .prompt-title-row {
  align-items: center !important;
  gap: 8px !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .output-stage-premium .prompt-primary .prompt-title-row::before {
  content: "" !important;
  display: block !important;
  flex: 0 0 auto !important;
  width: 9px !important;
  height: 9px !important;
  border: 2px solid rgba(198, 168, 255, .78) !important;
  border-radius: 50% !important;
  background: rgba(118, 88, 232, .26) !important;
  box-shadow: 0 0 0 3px rgba(118, 88, 232, .10) !important;
}

/* P15 · Keep both prompt headers free of decorative top rules. The prompt
   cards retain their intended inset surfaces and title markers instead. */
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .output-stage-premium .first-frame-card::before {
  display: none !important;
  content: none !important;
}

/* P16 · Tighten prompt-stage title breathing room and lock the Creative Engine
   heading to a shared optical centerline. Keep the existing two-surface cards,
   controls, and responsive behavior; this is spacing/alignment only. */
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .output-stage-premium .prompt-stage-card {
  padding-top: 8px !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-studio-top .creative-brief-heading {
  display: inline-flex !important;
  align-items: center !important;
  align-self: center !important;
  flex: 0 0 auto !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  grid-template-columns: none !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-studio-top .creative-brief-mark {
  align-self: center !important;
  width: 30px !important;
  height: 30px !important;
  margin: 0 !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-studio-top .creative-brief-heading strong {
  align-self: center !important;
  height: 32px !important;
  min-height: 32px !important;
  margin: 0 !important;
  line-height: 1 !important;
}

/* P16 follow-up · On narrow layouts the title rail becomes a column. Center
   its only heading on the vertical axis instead of leaving it pinned to the
   rail's top edge. */
@media (max-width: 760px) {
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-studio-top {
    justify-content: center !important;
  }
}

/* P17 · Compact output labels and simplify the reference upload rail. Keep
   both output headers on one centered, low-profile row; remove only the
   redundant section label/background around the existing upload controls. */
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .output-stage-premium .prompt-stage-card {
  padding-top: 4px !important;
  padding-bottom: 12px !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .output-stage-premium .prompt-stage-card .prompt-head {
  height: 32px !important;
  min-height: 32px !important;
  margin-bottom: 4px !important;
  align-items: center !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .output-stage-premium .prompt-stage-card .prompt-title-row,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .output-stage-premium .prompt-stage-card .prompt-head > div:first-child {
  height: 32px !important;
  min-height: 32px !important;
  align-items: center !important;
  align-self: center !important;
  margin: 0 !important;
  line-height: 1 !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .output-stage-premium .prompt-stage-card .prompt-title-row > span:first-child,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .output-stage-premium .prompt-stage-card .prompt-head > div:first-child > span {
  display: inline-flex !important;
  align-items: center !important;
  align-self: center !important;
  height: 32px !important;
  line-height: 1 !important;
  margin: 0 !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .output-stage-premium .prompt-stage-card .prompt-toolbar {
  height: 32px !important;
  min-height: 32px !important;
  align-items: center !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .reference-upload-group {
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .reference-upload-heading {
  display: none !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-reference-strip,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .reference-preview {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Keep the disclosure immediately below the input controls while retaining a
   small optical separation from the control row. */
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .reactor-flow-map > .creative-workflow-disclosure {
  margin-top: 8px !important;
}


/* P18 · Final compactness pass for the current Creative Engine request.
   Keep the title rails and toolbars on the same optical centerline while
   removing only decorative vertical air; preserve the button hit areas. */
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .output-stage-premium .prompt-stage-card {
  padding-top: 2px !important;
  padding-bottom: 8px !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .output-stage-premium .prompt-stage-card .prompt-head,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .output-stage-premium .prompt-stage-card .prompt-title-row,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .output-stage-premium .prompt-stage-card .prompt-head > div:first-child,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .output-stage-premium .prompt-stage-card .prompt-title-row > span:first-child,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .output-stage-premium .prompt-stage-card .prompt-head > div:first-child > span {
  height: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  align-items: center !important;
  align-self: center !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .output-stage-premium .prompt-stage-card .prompt-head {
  margin-bottom: 2px !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .output-stage-premium .prompt-stage-card .prompt-toolbar {
  height: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  align-items: center !important;
  align-self: center !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .reactor-flow-map > .creative-workflow-disclosure {
  margin-top: 8px !important;
  transform: translateY(1px) !important;
}

/* P19 · Solid premium control treatment and final vertical rhythm.
   Keep the three existing controls and their behavior; only refine their
   surfaces, contrast, and optical alignment. */
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-trigger,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-styles-trigger,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .first-frame-toggle-compact {
  box-sizing: border-box !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  border-radius: 10px !important;
  color: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 6px 14px rgba(9,6,18,.14) !important;
  transition: filter 140ms ease, transform 140ms ease, box-shadow 140ms ease !important;
}

/* Solid color coding: size / styles / first frame. */
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-trigger {
  background: #c96b2d !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-styles-trigger {
  background: #704fc2 !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .first-frame-toggle-compact {
  background: #2f8a63 !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-trigger:hover,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-styles-trigger:hover,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .first-frame-toggle-compact:hover {
  filter: brightness(1.08) saturate(1.04) !important;
  transform: translateY(-1px) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.24), 0 8px 18px rgba(9,6,18,.2) !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-trigger:active,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-styles-trigger:active,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .first-frame-toggle-compact:active {
  transform: translateY(0) !important;
  filter: brightness(.96) !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-trigger:focus-visible,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-styles-trigger:focus-visible,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .first-frame-toggle-compact:focus-within {
  outline: 2px solid rgba(255,255,255,.9) !important;
  outline-offset: 2px !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-trigger-icon,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-styles-trigger-icon,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .first-frame-toggle-label {
  color: #fff !important;
  text-shadow: 0 1px 1px rgba(0,0,0,.18) !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-trigger-copy,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-styles-trigger-copy {
  gap: 3px !important;
  color: #fff !important;
  text-align: left !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-trigger-copy strong,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-styles-trigger-copy strong,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .first-frame-toggle-label {
  color: #fff !important;
  font-weight: 780 !important;
  letter-spacing: .01em !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-trigger-copy small,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-styles-trigger-copy small {
  color: rgba(255,255,255,.78) !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .first-frame-info {
  border-color: rgba(255,255,255,.62) !important;
  background: rgba(0,0,0,.14) !important;
  color: #fff !important;
}

/* Remove the last empty strip below the workflow disclosure. */
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio {
  padding-bottom: 0 !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .reactor-flow-map > .creative-workflow-disclosure {
  margin-top: 8px !important;
  transform: translateY(1px) !important;
}

/* A small, deliberate breathing space under each output body. */
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .output-stage-premium .prompt-stage-card {
  padding-bottom: 10px !important;
}

@media (max-width: 600px) {
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-trigger,
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-styles-trigger,
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .first-frame-toggle-compact {
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
  }
}
/* P20 · Add a small breathing gap below output title rows.
   Keep the title rail compact and centered while giving the prompt body a little
   more separation; this does not change the card's bottom padding. */
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .output-stage-premium .prompt-stage-card .prompt-head {
  margin-bottom: 6px !important;
}


/* P21 · Remove intermediary Creative Engine bottom surfaces and make the
   Size sheet fully opaque. Keep the outer composer frame, inner input frame,
   upload slots, and the three functional controls themselves. */
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottombar,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-right,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .reference-upload-group,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-reference-strip,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .reference-preview,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-control {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* The Size trigger owns its orange surface; its wrapper must not paint a
   second translucent rectangle around it. */
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-control {
  align-self: center !important;
  height: 34px !important;
  min-height: 34px !important;
  border-radius: 0 !important;
}

/* Use an opaque sheet so the timing/frame choices remain legible over the
   moving page background. */
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-panel {
  background: #241d34 !important;
  background-color: #241d34 !important;
  background-image: none !important;
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* P22 · Make the Size sheet visibly solid in every viewport. The sheet is a
   real control surface, not a glass layer: remove all alpha, blend, and
   backdrop effects so page artwork cannot show through it. */
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-control.is-open > .composer-more-panel,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-panel[aria-hidden="false"] {
  background: #28233a !important;
  background-color: #28233a !important;
  background-image: none !important;
  background-blend-mode: normal !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
  isolation: isolate !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  border: 1px solid rgba(255, 255, 255, .22) !important;
  box-shadow: none !important;
}

/* P23 · Make the entire Size popover read as one unmistakably solid panel.
   The panel itself was already opaque, but transparent section wrappers made
   the surface look like the page was showing through. Paint the full sheet
   and each layout section with the same solid color, then keep controls above
   the backing layer. */
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-control.is-open > .composer-more-panel {
  isolation: isolate !important;
  overflow: hidden !important;
  background: #201a2d !important;
  background-color: #201a2d !important;
  background-image: none !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-control.is-open > .composer-more-panel::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  display: block !important;
  border-radius: inherit !important;
  background: #201a2d !important;
  opacity: 1 !important;
  pointer-events: none !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-control.is-open > .composer-more-panel > *,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-control.is-open > .composer-more-panel .composer-more-section,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-control.is-open > .composer-more-panel .composer-inline-control {
  position: relative !important;
  z-index: 1 !important;
}


/* P24 · The panel background alone is not enough: transparent section wrappers
   allow the page artwork to remain perceptually present between controls. Paint
   every structural surface of the open Size sheet with the same opaque color.
   Segmented controls remain separate dark layers by design. */
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-control.is-open > .composer-more-panel {
  background-color: #201a2d !important;
  background-image: none !important;
  background-clip: padding-box !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-control.is-open > .composer-more-panel > .composer-more-section,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-control.is-open > .composer-more-panel > .composer-inline-control,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-control.is-open > .composer-more-panel > .composer-more-section .duration-row {
  background-color: #201a2d !important;
  background-image: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
}

/* P25 · Make the open Size sheet visibly solid from the first paint.
   The previous reveal animation started at opacity: 0, and the glass parent
   could still brighten the sheet while it opened. The Size sheet is a solid
   utility panel, so it must not fade through the page or inherit the parent's
   hover filter. */
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-control.is-open {
  filter: none !important;
  mix-blend-mode: normal !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-control.is-open > .composer-more-panel,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-panel[aria-hidden="false"] {
  opacity: 1 !important;
  visibility: visible !important;
  animation: none !important;
  transition: none !important;
  isolation: isolate !important;
  contain: paint !important;
  background: #111117 !important;
  background-color: #111117 !important;
  background-image: none !important;
  background-blend-mode: normal !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  mix-blend-mode: normal !important;
  box-shadow: none !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-control.is-open > .composer-more-panel::before {
  background: #111117 !important;
  background-color: #111117 !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-control.is-open > .composer-more-panel > .composer-more-section,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-control.is-open > .composer-more-panel > .composer-inline-control,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-control.is-open > .composer-more-panel > .composer-more-section .duration-row {
  opacity: 1 !important;
  background: #111117 !important;
  background-color: #111117 !important;
  background-image: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  mix-blend-mode: normal !important;
}

/* P26 · Final opaque Size-sheet contract.
   Keep the entire popover as one visibly solid surface. This intentionally uses
   a distinct non-alpha color and a hard border so the sheet cannot visually
   merge with the glass composer behind it. No backdrop-filter, gradients, or
   fade-in are allowed while the sheet is open. */
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-control.is-open > .composer-more-panel,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-panel[aria-hidden="false"] {
  position: absolute !important;
  z-index: 999 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
  contain: paint !important;
  isolation: isolate !important;
  overflow: hidden !important;
  border: 1px solid #5a4a75 !important;
  border-radius: 14px !important;
  background: #241d34 !important;
  background-color: #241d34 !important;
  background-image: none !important;
  background-blend-mode: normal !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  mix-blend-mode: normal !important;
  box-shadow: none !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-control.is-open > .composer-more-panel::before,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-control.is-open > .composer-more-panel::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  display: block !important;
  border: 0 !important;
  border-radius: inherit !important;
  background: #241d34 !important;
  background-color: #241d34 !important;
  background-image: none !important;
  opacity: 1 !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  mix-blend-mode: normal !important;
  pointer-events: none !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-control.is-open > .composer-more-panel > *,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-control.is-open > .composer-more-panel .composer-more-section,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-control.is-open > .composer-more-panel .composer-inline-control,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-control.is-open > .composer-more-panel .duration-row,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-control.is-open > .composer-more-panel .segment-value-option {
  position: relative !important;
  z-index: 1 !important;
  opacity: 1 !important;
  background: #241d34 !important;
  background-color: #241d34 !important;
  background-image: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  mix-blend-mode: normal !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-control.is-open > .composer-more-panel #duration-mode,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-control.is-open > .composer-more-panel #shot-mode,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-control.is-open > .composer-more-panel #first-frame-size-selector {
  background: #0d0d11 !important;
  background-color: #0d0d11 !important;
  background-image: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* P27 · Preserve the solid Size sheet as a viewport-bound panel on narrow
   screens. P26 intentionally owns paint; this rule only restores mobile
   geometry so the opaque surface is fully visible and usable. */
@media (max-width: 820px) {
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-control.is-open > .composer-more-panel,
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-panel[aria-hidden="false"] {
    position: fixed !important;
    inset: auto 16px 16px 16px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    max-height: calc(100dvh - 90px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
  }
}

/* P28 · Fit the desktop Size sheet to its real controls.
   Keep the verified opaque paint contract unchanged; only reduce horizontal
   excess so Duration, Shot mode, and Frame remain readable without stretching
   the popover wider than its contents. */
@media (min-width: 821px) {
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-control.is-open > .composer-more-panel,
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-panel[aria-hidden="false"] {
    width: 460px !important;
    min-width: 460px !important;
    max-width: calc(100vw - 32px) !important;
  }
}

/* P30 · Remove the redundant translucent perimeter around the Creative Engine
   composer. The text-entry stage remains the sole outlined input surface;
   titles, uploads, controls, and actions keep their existing layout and
   behavior without another rectangular glass frame around them. */
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio {
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* P31 · Give the transparent composer perimeter a rounded geometry without
   restoring any visible outline, fill, or shadow. Keep overflow visible while
   an anchored control sheet is open so Size and Styles remain fully usable. */
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio {
  border-radius: 24px !important;
  overflow: hidden !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio:has(.composer-more-control.is-open),
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio:has(.composer-style-tray.open) {
  overflow: visible !important;
}


/* P32 · Round the actual outer setup shell, not only the inner composer.
   This is the lowest Creative Engine perimeter: transparent, borderless,
   shadowless, and geometrically aligned with the Output outer shell. */
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .workbench-grid > .setup-panel {
  border: 0 !important;
  outline: 0 !important;
  border-radius: 24px !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  transition: none !important;
  overflow: hidden !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .workbench-grid > .setup-panel:has(.composer-more-control.is-open),
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .workbench-grid > .setup-panel:has(.composer-style-tray.open),
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .workbench-grid > .setup-panel:has(.composer-reference-tray.open) {
  overflow: visible !important;
}

/* P33 · Keep the inner composer perimeter equally quiet so no historical
   translucent card can reappear during refresh or stylesheet transition. */
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio {
  border: 0 !important;
  outline: 0 !important;
  border-radius: 24px !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  transition: none !important;
  overflow: hidden !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio:has(.composer-more-control.is-open),
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio:has(.composer-style-tray.open),
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio:has(.composer-reference-tray.open) {
  overflow: visible !important;
}

/* P34 · Size utility sheet: eliminate the refresh/open translucent frame.
   Keep the already-solid sheet mounted and hidden instead of switching from
   display:none to display:grid at click time. The panel is absolute/fixed, so
   this does not reserve layout space; it only removes the compositor flash. */
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-panel {
  display: grid !important;
  visibility: hidden !important;
  pointer-events: none !important;
  isolation: isolate !important;
  contain: paint !important;
  background: #241d34 !important;
  background-color: #241d34 !important;
  background-image: none !important;
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  mix-blend-mode: normal !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-control.is-open > .composer-more-panel,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-panel[aria-hidden="false"] {
  visibility: visible !important;
  pointer-events: auto !important;
}

/* P35 · Compact, predictable Size controls. Hidden numeric rows must remain
   truly hidden; otherwise their forced inline-flex display widens Shot mode,
   causes mobile wrapping, and makes Set/Shot count feel detached from the
   option that owns them. */
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-more-panel .duration-row[hidden] {
  display: none !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-more-panel .composer-more-section {
  min-height: 52px !important;
  padding: 6px 0 !important;
  align-items: center !important;
  gap: 12px !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-more-panel .composer-control-label {
  min-height: 32px !important;
  align-items: center !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-more-panel .segmented.compact {
  min-height: 38px !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 3px !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-more-panel .segmented.compact > .segment,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-more-panel .segment-value-option > .segment,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] #first-frame-size-selector > button {
  height: 32px !important;
  min-height: 32px !important;
  padding-inline: 9px !important;
  line-height: 1 !important;
  flex: 0 0 auto !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-more-panel .segment-value-option {
  min-height: 32px !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  gap: 4px !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-more-panel .duration-row.compact {
  min-height: 28px !important;
  height: 28px !important;
  align-items: center !important;
  gap: 4px !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-more-panel .duration-row.compact input {
  width: 62px !important;
  min-width: 62px !important;
  height: 28px !important;
  min-height: 28px !important;
  padding-inline: 7px !important;
  border-radius: 8px !important;
}

@media (min-width: 821px) {
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-control.is-open > .composer-more-panel,
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-panel[aria-hidden="false"] {
    width: 390px !important;
    min-width: 390px !important;
    max-width: calc(100vw - 32px) !important;
  }
}

@media (max-width: 820px) {
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-more-panel .composer-more-section {
    align-items: center !important;
    gap: 6px !important;
  }

  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-more-panel .composer-control-label {
    min-height: 24px !important;
    justify-content: center !important;
  }

  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-more-panel .segmented.compact {
    width: 100% !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
  }

  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-more-panel .segmented.compact::-webkit-scrollbar {
    display: none !important;
  }
}

/* P36 · Size interaction polish: keep the two compound options coherent on
   narrow screens. The value row belongs to its Set/Shot count button, so it
   may shrink with the available segment width but may never protrude outside
   the opaque utility sheet. */
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-more-panel #shot-mode .segment-value-option,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-more-panel #duration-mode .segment-value-option {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-more-panel #shot-mode .segment-value-option {
  flex: 0 1 auto !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-more-panel #shot-mode .segment[data-value="count"] {
  min-width: 0 !important;
  padding-inline: 7px !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-more-panel .shot-count-row {
  flex: 0 1 auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-more-panel .shot-count-row input {
  width: 48px !important;
  min-width: 48px !important;
  max-width: 48px !important;
  padding-inline: 5px !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-more-panel .shot-count-row span {
  flex: 0 0 auto !important;
  font-size: 10px !important;
  white-space: nowrap !important;
}

@media (max-width: 820px) {
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-more-panel #shot-mode .segment-value-option {
    gap: 3px !important;
  }

  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-more-panel #shot-mode .segment[data-value="count"] {
    padding-inline: 5px !important;
  }
}

/* P37 · The workflow disclosure is part of the same quiet outer Creative
   Engine shell. Remove its historical second card surface; the disclosure
   keeps its native open/close behavior and content, but no longer paints an
   independent rectangle inside the input module. */
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .workbench-grid > .setup-panel {
  overflow: visible !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .workbench-grid > .setup-panel .creative-workflow-disclosure,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .creative-workflow-disclosure {
  margin: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  border-radius: 0 0 24px 24px !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .creative-workflow-disclosure .creative-workflow-summary {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* P38 · Give the expanded Shot count compound control enough room on desktop
   instead of allowing its input to sit outside the panel. The panel remains
   compact for the normal Auto/Single-take state and widens only when the
   additional numeric control is actually in use. */
@media (min-width: 821px) {
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-more-panel:has(#shot-mode .segment[data-value="count"].active) {
    width: 460px !important;
    min-width: 460px !important;
  }
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-more-panel #shot-count-input {
  width: 48px !important;
  min-width: 48px !important;
  max-width: 48px !important;
}

/* P39 · Creative Engine compact title/control pass.
   The reference upload is now a real sibling of the title, while the three
   utility controls stay in one tight, left-aligned row. The workflow disclosure
   is an independent solid rounded module rather than a transparent continuation. */
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-studio-top {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  min-height: 50px !important;
  padding: 0 16px !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-studio-top .reference-upload-group {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  align-self: center !important;
  width: auto !important;
  height: 34px !important;
  min-height: 34px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-studio-top .composer-reference-strip,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-studio-top .reference-preview {
  display: flex !important;
  align-items: center !important;
  align-self: center !important;
  width: auto !important;
  height: 34px !important;
  min-height: 34px !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 5px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-studio-top .reference-upload-slot,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-studio-top .reference-thumb,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-studio-top .reference-thumb-main {
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  margin: 0 !important;
  border-radius: 11px !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: nowrap !important;
  gap: 6px !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left > .composer-more-control,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left > .composer-styles-trigger,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left > .first-frame-toggle-compact {
  flex: 0 0 auto !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  margin: 0 !important;
  border-radius: 18px !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left > .composer-more-control {
  width: 116px !important;
  min-width: 116px !important;
  background: transparent !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left > .composer-more-control > .composer-more-trigger,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left > .composer-styles-trigger,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left > .first-frame-toggle-compact {
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  border-radius: 18px !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left > .composer-styles-trigger {
  width: 108px !important;
  min-width: 108px !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left > .first-frame-toggle-compact {
  width: 112px !important;
  min-width: 112px !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left > .composer-more-control > .composer-more-trigger,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left > .composer-styles-trigger,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left > .first-frame-toggle-compact {
  padding-block: 0 !important;
  align-items: center !important;
  justify-content: center !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .creative-workflow-disclosure {
  display: block !important;
  margin: 10px 0 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 18px !important;
  background: #17161d !important;
  background-image: none !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045) !important;
  overflow: hidden !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .creative-workflow-disclosure .creative-workflow-summary {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-height: 46px !important;
  margin: 0 !important;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #17161d !important;
  box-shadow: none !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .creative-workflow-disclosure .creative-workflow-panel {
  background: #17161d !important;
  border: 0 !important;
}

@media (max-width: 620px) {
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-studio-top {
    gap: 8px !important;
    padding-inline: 12px !important;
  }

  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left {
    gap: 5px !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
  }

  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left::-webkit-scrollbar {
    display: none !important;
  }
}

/* P40 · Final compact shell alignment.
   Keep the workflow disclosure visually independent from the composer body,
   keep the title/upload pair optically centered, and make the utility row a
   tight pill group without introducing another painted frame. */
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .creative-workflow-disclosure {
  display: block !important;
  box-sizing: border-box !important;
  width: calc(100% - 20px) !important;
  margin: 10px 10px 0 !important;
  min-height: 46px !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 22px !important;
  background: #17161d !important;
  background-color: #17161d !important;
  background-image: none !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045) !important;
  overflow: hidden !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .creative-workflow-disclosure .creative-workflow-summary,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .creative-workflow-disclosure .creative-workflow-panel {
  background: #17161d !important;
  background-color: #17161d !important;
  background-image: none !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-studio-top {
  min-height: 48px !important;
  height: 48px !important;
  gap: 6px !important;
  align-items: center !important;
  padding-block: 0 !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .creative-brief-heading,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-studio-top .reference-upload-group {
  align-self: center !important;
  margin-block: 0 !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left {
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 4px !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left > .composer-more-control,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left > .composer-more-control > .composer-more-trigger,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left > .composer-styles-trigger,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left > .first-frame-toggle-compact {
  border-radius: 999px !important;
  align-items: center !important;
  align-self: center !important;
}

/* Transparent means no dark overlay or backdrop veil; only the active route
   button is intentionally painted. */

/* P41 · Title/reference capsule and lighter lower Creative Engine shell.
   Keep the existing controls and upload behavior; only strengthen the two
   visible title hit areas and give the composer a quieter, longer lower edge. */
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio {
  padding-bottom: 18px !important;
  border: 1px solid rgba(255,255,255,.095) !important;
  border-radius: 24px !important;
  background: rgba(8, 8, 11, .16) !important;
  background-color: rgba(8, 8, 11, .16) !important;
  background-image: none !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025) !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .creative-brief-heading,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-studio-top .reference-upload-group {
  box-sizing: border-box !important;
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  align-self: center !important;
  height: 40px !important;
  min-height: 40px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.055) !important;
  background-image: none !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035) !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .creative-brief-heading {
  gap: 9px !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .creative-brief-heading .creative-brief-mark {
  width: 28px !important;
  height: 28px !important;
  flex-basis: 28px !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-studio-top .reference-upload-group {
  padding-inline: 8px !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-studio-top .composer-reference-strip,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-studio-top .reference-preview {
  height: 40px !important;
  min-height: 40px !important;
  align-items: center !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-studio-top .reference-upload-slot,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-studio-top .reference-thumb,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-studio-top .reference-thumb-main {
  width: 36px !important;
  min-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  border-radius: 12px !important;
}

@media (max-width: 620px) {
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .creative-brief-heading,
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-studio-top .reference-upload-group {
    height: 38px !important;
    min-height: 38px !important;
  }

  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-studio-top .composer-reference-strip,
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-studio-top .reference-preview {
    height: 38px !important;
    min-height: 38px !important;
  }

  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-studio-top .reference-upload-slot,
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-studio-top .reference-thumb,
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-studio-top .reference-thumb-main {
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
  }
}

/* P42 · Visual language for the three embedded generation controls.
   Icons are inline SVG inside the existing controls; no new actions or
   interaction paths are introduced. */
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-action-icon {
  display: inline-flex !important;
  flex: 0 0 24px !important;
  width: 24px !important;
  height: 24px !important;
  align-items: center !important;
  justify-content: center !important;
  color: currentColor !important;
  line-height: 1 !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-action-icon svg {
  display: block !important;
  width: 22px !important;
  height: 22px !important;
  overflow: visible !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-size-icon svg,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-styles-icon svg {
  fill: none !important;
  stroke: currentColor !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  stroke-width: 1.6 !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-size-icon circle {
  fill: currentColor !important;
  stroke: none !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-size-icon path:last-child {
  stroke-width: 1.25 !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-styles-icon svg {
  stroke-width: 1.7 !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .first-frame-toggle-icon {
  flex-basis: 24px !important;
  width: 24px !important;
  height: 24px !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .first-frame-toggle-icon svg {
  fill: none !important;
  stroke: currentColor !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  stroke-width: 1.5 !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .first-frame-toggle-icon text {
  fill: currentColor !important;
  stroke: none !important;
  font-family: inherit !important;
  font-size: 8px !important;
  font-weight: 800 !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .first-frame-toggle-label {
  display: inline-flex !important;
  align-items: center !important;
}

@media (max-width: 620px) {
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-action-icon {
    flex-basis: 22px !important;
    width: 22px !important;
    height: 22px !important;
  }

  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-action-icon svg {
    width: 20px !important;
    height: 20px !important;
  }
}


/* P43 · Harden the three control capsules against icon/text collisions.
   The controls remain the same actions; this only gives their existing content
   a stable inline layout at desktop and on the horizontally scrollable narrow row. */
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left {
  align-items: center !important;
  flex-wrap: nowrap !important;
  overflow: visible !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left > .composer-more-control,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left > .composer-more-control > .composer-more-trigger,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left > .composer-styles-trigger,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left > .first-frame-toggle-compact {
  box-sizing: border-box !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  align-self: center !important;
  min-height: 36px !important;
  height: 36px !important;
  max-height: 36px !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}

/* The labels contain a primary line and, for More/Styles, a secondary line.
   Give each capsule enough room for the icon, copy, chevron and inner padding;
   do not force the copy through the icon box. */
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left > .composer-more-control {
  width: 142px !important;
  min-width: 142px !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left > .composer-more-control > .composer-more-trigger {
  width: 142px !important;
  min-width: 142px !important;
  padding-inline: 9px !important;
  gap: 7px !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left > .composer-styles-trigger {
  width: 132px !important;
  min-width: 132px !important;
  padding-inline: 9px !important;
  gap: 7px !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left > .first-frame-toggle-compact {
  width: 128px !important;
  min-width: 128px !important;
  padding-inline: 9px !important;
  gap: 7px !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-trigger-copy,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-styles-trigger-copy {
  display: inline-flex !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-trigger-copy strong,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-trigger-copy small,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-styles-trigger-copy strong,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-styles-trigger-copy small,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .first-frame-toggle-label {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-action-icon {
  position: relative !important;
  z-index: 0 !important;
  display: inline-flex !important;
  flex: 0 0 24px !important;
  width: 24px !important;
  min-width: 24px !important;
  height: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: center !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
  vertical-align: middle !important;
  overflow: visible !important;
  pointer-events: none !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-action-icon svg {
  display: block !important;
  flex: 0 0 auto !important;
  width: 22px !important;
  min-width: 22px !important;
  height: 22px !important;
  min-height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  transform: none !important;
  transform-origin: center !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-action-icon svg * {
  vector-effect: non-scaling-stroke !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .first-frame-toggle-icon text {
  dominant-baseline: central !important;
  paint-order: normal !important;
}

@media (max-width: 620px) {
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left > .composer-more-control,
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left > .composer-more-control > .composer-more-trigger {
    width: 136px !important;
    min-width: 136px !important;
  }

  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left > .composer-styles-trigger {
    width: 126px !important;
    min-width: 126px !important;
  }

  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left > .first-frame-toggle-compact {
    width: 122px !important;
    min-width: 122px !important;
  }

  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-action-icon {
    flex-basis: 22px !important;
    width: 22px !important;
    min-width: 22px !important;
    height: 22px !important;
    min-height: 22px !important;
    max-height: 22px !important;
  }

  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-action-icon svg {
    width: 20px !important;
    min-width: 20px !important;
    height: 20px !important;
    min-height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
  }
}

/* P44 · Final icon hardening.
   Keep the existing controls and interactions, but remove the native checkbox
   from the first-frame visual layout. It remains keyboard/focus accessible;
   the image-with-1 SVG is the sole visible first-frame icon. */
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-action-icon,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-action-icon svg {
  box-sizing: border-box !important;
  aspect-ratio: 1 / 1 !important;
  flex-shrink: 0 !important;
  transform: none !important;
  transform-origin: center center !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-trigger-icon,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-styles-trigger-icon,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .first-frame-toggle-icon {
  flex: 0 0 22px !important;
  width: 22px !important;
  min-width: 22px !important;
  max-width: 22px !important;
  height: 22px !important;
  min-height: 22px !important;
  max-height: 22px !important;
  align-self: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-trigger-icon svg,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-styles-trigger-icon svg,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .first-frame-toggle-icon svg {
  display: block !important;
  flex: 0 0 20px !important;
  width: 20px !important;
  min-width: 20px !important;
  max-width: 20px !important;
  height: 20px !important;
  min-height: 20px !important;
  max-height: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  shape-rendering: geometricPrecision !important;
}

/* The native checkbox remains functional and focusable, but must not consume
   horizontal space or appear as a second, competing icon. */
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .first-frame-toggle-compact > input#include-first-frame-prompt-toggle {
  position: absolute !important;
  width: 1px !important;
  min-width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .first-frame-toggle-label {
  flex: 0 1 auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  align-items: center !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .first-frame-info {
  flex: 0 0 16px !important;
  width: 16px !important;
  min-width: 16px !important;
  height: 16px !important;
  min-height: 16px !important;
  align-self: center !important;
}


/* P45 · Icon geometry and first-frame visibility fix.
   Keep the three existing controls and interactions; make the icon boxes and
   labels optically stable at desktop and narrow widths. */
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-action-icon {
  display: inline-flex !important;
  flex: 0 0 20px !important;
  width: 20px !important;
  min-width: 20px !important;
  max-width: 20px !important;
  height: 20px !important;
  min-height: 20px !important;
  max-height: 20px !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: center !important;
  line-height: 0 !important;
  overflow: visible !important;
  transform: none !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-action-icon svg {
  display: block !important;
  flex: 0 0 20px !important;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  overflow: visible !important;
  preserve-aspect-ratio: xMidYMid meet !important;
  transform: none !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-action-icon svg circle,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-action-icon svg rect,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-action-icon svg path {
  vector-effect: none !important;
  stroke: currentColor !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-action-icon svg text {
  vector-effect: none !important;
  fill: currentColor !important;
  stroke: none !important;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif !important;
  font-size: 8px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  dominant-baseline: central !important;
  text-anchor: middle !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .first-frame-toggle-label {
  display: inline-flex !important;
  flex: 0 1 auto !important;
  align-self: center !important;
  align-items: center !important;
  height: 18px !important;
  min-height: 18px !important;
  max-height: 18px !important;
  font-size: 14px !important;
  line-height: 18px !important;
  letter-spacing: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-trigger-copy,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-styles-trigger-copy {
  align-self: center !important;
  height: 26px !important;
  min-height: 26px !important;
  max-height: 26px !important;
  justify-content: center !important;
  line-height: 1 !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-trigger-copy strong,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-styles-trigger-copy strong {
  display: block !important;
  height: 15px !important;
  line-height: 15px !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-trigger-copy small,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-styles-trigger-copy small {
  display: block !important;
  height: 11px !important;
  line-height: 11px !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .first-frame-info {
  position: relative !important;
  z-index: 1 !important;
  flex: 0 0 16px !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  align-self: center !important;
  line-height: 1 !important;
}

@media (max-width: 620px) {
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-action-icon {
    flex-basis: 20px !important;
    width: 20px !important;
    min-width: 20px !important;
    height: 20px !important;
    min-height: 20px !important;
  }

  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-action-icon svg {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
  }

  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .first-frame-toggle-label {
    font-size: 13px !important;
  }
}

/* P46 · Keep first-frame fully visible.
   The control remains the same interaction, but its label now has enough room
   for the complete text and the info affordance without clipping. */
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left > .first-frame-toggle-compact {
  box-sizing: border-box !important;
  width: 140px !important;
  min-width: 140px !important;
  max-width: 140px !important;
  padding-inline: 8px !important;
  gap: 6px !important;
  overflow: visible !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .first-frame-toggle-compact .first-frame-toggle-label {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: max-content !important;
  max-width: none !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
}

@media (max-width: 620px) {
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left > .first-frame-toggle-compact {
    width: 136px !important;
    min-width: 136px !important;
    max-width: 136px !important;
    padding-inline: 7px !important;
    gap: 5px !important;
  }
}

/* P47 · Separate the Creative Engine frame from the workflow module and
   remove decorative icon rectangles.  The existing controls and interactions
   remain unchanged; only their visual layers are simplified. */
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio {
  padding-bottom: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  overflow: visible !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .reactor-core {
  box-sizing: border-box !important;
  min-height: 356px !important;
  border: 0 !important;
  border-radius: 24px !important;
  background: rgba(8, 8, 11, .20) !important;
  background-color: rgba(8, 8, 11, .20) !important;
  background-image: none !important;
  box-shadow: none !important;
  backdrop-filter: blur(30px) saturate(1.5) !important;
  -webkit-backdrop-filter: blur(30px) saturate(1.5) !important;
  overflow: visible !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .reactor-core::before {
  content: none !important;
}

/* Icon hosts must not paint a second capsule, square, focus plate, or shadow.
   The parent buttons retain their intended orange/purple/green surfaces. */
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-trigger-icon,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-styles-trigger-icon,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .first-frame-toggle-icon {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  filter: none !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-action-icon::before,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-action-icon::after {
  content: none !important;
  display: none !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-action-icon svg {
  overflow: visible !important;
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  filter: none !important;
}

/* The workflow is a separate purple module below the input frame. */
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .creative-workflow-disclosure {
  width: calc(100% - 20px) !important;
  margin: 10px 10px 0 !important;
  border: 0 !important;
  border-radius: 20px !important;
  background: #17161d !important;
  background-color: #17161d !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .creative-workflow-disclosure .creative-workflow-summary {
  min-height: 46px !important;
  border: 0 !important;
  border-radius: 20px !important;
  background: #704fc2 !important;
  background-color: #704fc2 !important;
  color: #fff !important;
  box-shadow: none !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .creative-workflow-disclosure .creative-workflow-summary-copy,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .creative-workflow-disclosure .creative-workflow-summary-action {
  color: #fff !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .creative-workflow-disclosure .creative-workflow-panel {
  border: 0 !important;
  background: #17161d !important;
  background-color: #17161d !important;
  background-image: none !important;
}

/* P48 · Reliable utility controls and explicit first-frame state.
   More remains the existing settings control; first-frame keeps its native
   checkbox while adding an in-control visual switch. */
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-control {
  position: relative !important;
  z-index: 32 !important;
  overflow: visible !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-control.is-open {
  z-index: 160 !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-panel {
  pointer-events: none !important;
  visibility: hidden !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-control.is-open > .composer-more-panel,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-more-panel[aria-hidden="false"] {
  z-index: 180 !important;
  pointer-events: auto !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Three nodes and three directional arcs form one recycling-like cycle.
   The icon is line art only; no rectangular host plate is allowed. */
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-size-icon svg {
  overflow: visible !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-size-icon circle {
  fill: currentColor !important;
  stroke: none !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-size-icon path {
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.55 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

/* Make the first-frame pictogram a true square with one centered numeral. */
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .first-frame-toggle-icon svg rect {
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.55 !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .first-frame-toggle-icon svg text {
  font-size: 9px !important;
  font-weight: 800 !important;
  dominant-baseline: central !important;
  text-anchor: middle !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left > .first-frame-toggle-compact {
  position: relative !important;
  width: 178px !important;
  min-width: 178px !important;
  max-width: 178px !important;
  padding-inline: 8px !important;
  gap: 6px !important;
  overflow: visible !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .first-frame-toggle-label {
  flex: 0 0 auto !important;
  min-width: max-content !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .first-frame-switch {
  position: relative !important;
  display: inline-flex !important;
  flex: 0 0 30px !important;
  width: 30px !important;
  min-width: 30px !important;
  height: 18px !important;
  min-height: 18px !important;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, .34) !important;
  border-radius: 999px !important;
  background: rgba(15, 39, 25, .52) !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .22) !important;
  align-items: center !important;
  transition: background-color 150ms ease, border-color 150ms ease !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .first-frame-switch-thumb {
  display: block !important;
  width: 14px !important;
  height: 14px !important;
  border-radius: 50% !important;
  background: #f7fff9 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .34) !important;
  transform: translateX(1px) !important;
  transition: transform 150ms ease !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio #include-first-frame-prompt-toggle:checked ~ .first-frame-switch {
  border-color: rgba(255, 255, 255, .64) !important;
  background: #1f8f52 !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio #include-first-frame-prompt-toggle:checked ~ .first-frame-switch .first-frame-switch-thumb {
  transform: translateX(13px) !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio #include-first-frame-prompt-toggle:focus-visible ~ .first-frame-switch {
  outline: 2px solid rgba(255, 255, 255, .92) !important;
  outline-offset: 2px !important;
}

/* The help bubble is positioned by app.js from the actual ! button geometry.
   Fixed positioning prevents a scrolling or transformed ancestor from moving
   the bubble away from its trigger. */
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .first-frame-info-popover {
  position: fixed !important;
  inset: auto !important;
  z-index: 1000 !important;
  width: min(248px, calc(100vw - 24px)) !important;
  min-width: 0 !important;
  max-width: calc(100vw - 24px) !important;
  transform: none !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .first-frame-info-popover::before {
  top: auto !important;
  right: var(--first-frame-popover-arrow-right, 18px) !important;
  bottom: -5px !important;
  left: auto !important;
  transform: rotate(225deg) !important;
}

@media (max-width: 620px) {
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left > .first-frame-toggle-compact {
    width: 170px !important;
    min-width: 170px !important;
    max-width: 170px !important;
    padding-inline: 7px !important;
    gap: 5px !important;
  }
}

/* Keep the first-frame capsule from becoming a containing block while its
   nested help button is hovered or focused. Otherwise a fixed tooltip is
   offset by the capsule's historical hover transform/filter. */
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .first-frame-toggle-compact:hover,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .first-frame-toggle-compact:focus-within,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .first-frame-toggle-compact:active {
  transform: none !important;
  filter: none !important;
}


/* P49 · Interaction hardening after live browser validation.
   The More wrapper must release its capsule clipping while open, otherwise
   the visible settings sheet is painted beneath the input and cannot receive
   pointer events. The first-frame tooltip is anchored to its own capsule so
   the composer backdrop-filter cannot offset it. */
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left > .composer-more-control.is-open {
  overflow: visible !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .first-frame-info-popover {
  position: absolute !important;
  inset: auto !important;
  z-index: 1000 !important;
  transform: none !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .first-frame-info-popover[data-placement="above"]::before {
  top: auto !important;
  bottom: -5px !important;
  transform: rotate(225deg) !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .first-frame-info-popover[data-placement="below"]::before {
  top: -5px !important;
  bottom: auto !important;
  transform: rotate(45deg) !important;
}

/* P49 follow-up · Override legacy inset rules on the help tooltip. The
   tooltip is now positioned relative to its first-frame capsule; every inset
   side must stay available for the coordinates written by app.js. */
html body #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-bottom-left > .first-frame-toggle-compact > .first-frame-info-popover {
  position: absolute !important;
  inset: auto !important;
  right: auto !important;
  bottom: auto !important;
}

/* P51 · Final Creative Engine header/upload alignment. The title capsule and
   the three upload controls share one exact height and one vertical center;
   the upload glyph uses a square image frame rather than a portrait card. */
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-studio-top {
  align-items: center !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-studio-top .creative-brief-heading,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-studio-top .reference-upload-group,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-studio-top .reference-upload-slot,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-studio-top .reference-thumb,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-studio-top .reference-thumb-main {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: center !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  line-height: 1 !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-studio-top .creative-brief-heading,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-studio-top .reference-upload-group {
  height: 40px !important;
  min-height: 40px !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-studio-top .reference-upload-slot,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-studio-top .reference-thumb,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-studio-top .reference-thumb-main {
  width: 40px !important;
  min-width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-studio-top .reference-upload-slot > .reference-upload-icon {
  display: inline-flex !important;
  width: 22px !important;
  height: 22px !important;
  flex: 0 0 22px !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 0 !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-studio-top .reference-upload-icon > svg {
  display: block !important;
  width: 22px !important;
  height: 22px !important;
  overflow: visible !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-studio-top .reference-upload-icon-frame {
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.55 !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-studio-top .reference-upload-icon-mountain,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-studio-top .reference-upload-icon-plus {
  fill: none !important;
  stroke: currentColor !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  stroke-width: 1.55 !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-studio-top .reference-upload-icon-sun {
  fill: currentColor !important;
  stroke: none !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-studio-top .reference-upload-slot > small,
#app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-studio-top .reference-upload-slot > span:not(.reference-upload-icon) {
  display: none !important;
}

@media (max-width: 620px) {
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-studio-top .creative-brief-heading,
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-studio-top .reference-upload-group {
    height: 38px !important;
    min-height: 38px !important;
  }

  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-studio-top .reference-upload-slot,
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-studio-top .reference-thumb,
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] .composer-card.composer-studio .composer-studio-top .reference-thumb-main {
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
  }
}

/* P52 · Isolate the SVG reference-upload glyph from legacy icon/text rules.
   The upload slots now have one source of truth: the inline SVG in app.js. */
#app#app[data-active-view="workbench"][data-creation-entry="fast"]
.composer-card.composer-studio
.composer-studio-top .reference-upload-slot::before,
#app#app[data-active-view="workbench"][data-creation-entry="fast"]
.composer-card.composer-studio
.composer-studio-top .reference-upload-slot::after {
  content: none !important;
  display: none !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"]
.composer-card.composer-studio
.composer-studio-top .reference-upload-slot {
  display: inline-flex !important;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
  grid-auto-flow: unset !important;
  place-items: unset !important;
  gap: 0 !important;
  overflow: visible !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"]
.composer-card.composer-studio
.composer-studio-top .reference-upload-slot > .reference-upload-icon {
  display: inline-flex !important;
  position: static !important;
  width: 22px !important;
  height: 22px !important;
  flex: 0 0 22px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: currentColor !important;
  font-size: 0 !important;
  line-height: 0 !important;
  transform: none !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"]
.composer-card.composer-studio
.composer-studio-top .reference-upload-slot > .reference-upload-icon > svg {
  display: block !important;
  width: 22px !important;
  height: 22px !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  overflow: visible !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"]
.composer-card.composer-studio
.composer-studio-top .reference-upload-icon rect,
#app#app[data-active-view="workbench"][data-creation-entry="fast"]
.composer-card.composer-studio
.composer-studio-top .reference-upload-icon path,
#app#app[data-active-view="workbench"][data-creation-entry="fast"]
.composer-card.composer-studio
.composer-studio-top .reference-upload-icon circle {
  transform: none !important;
}

/* P59 · Reference upload controls — final isolation for the active reactor DOM.
   The current Creative Engine renders .reactor-core/.composer-studio-top rather
   than the legacy .composer-card wrapper.  Earlier P51/P52 rules therefore did
   not match this live tree, leaving the legacy grid/pseudo-element rules in
   control of the three upload buttons.  Keep this fix visual-only: the existing
   data-reference-upload buttons and file-input flow are untouched. */
html body #app#app[data-active-view="workbench"][data-creation-entry="fast"]
.reactor-core .composer-studio-top .reference-upload-slot,
html body #app#app[data-active-view="workbench"][data-creation-entry="fast"]
.composer-studio-top .reference-upload-slot {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: center !important;
  box-sizing: border-box !important;
  width: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
  overflow: hidden !important;
  place-items: center !important;
  grid-template: none !important;
  grid-auto-flow: unset !important;
  color: #d9d0ff !important;
  -webkit-text-fill-color: #d9d0ff !important;
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  transform: none !important;
}

html body #app#app[data-active-view="workbench"][data-creation-entry="fast"]
.reactor-core .composer-studio-top .reference-upload-slot::before,
html body #app#app[data-active-view="workbench"][data-creation-entry="fast"]
.reactor-core .composer-studio-top .reference-upload-slot::after,
html body #app#app[data-active-view="workbench"][data-creation-entry="fast"]
.composer-studio-top .reference-upload-slot::before,
html body #app#app[data-active-view="workbench"][data-creation-entry="fast"]
.composer-studio-top .reference-upload-slot::after {
  content: none !important;
  display: none !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

html body #app#app[data-active-view="workbench"][data-creation-entry="fast"]
.reactor-core .composer-studio-top .reference-upload-slot > .reference-upload-icon,
html body #app#app[data-active-view="workbench"][data-creation-entry="fast"]
.composer-studio-top .reference-upload-slot > .reference-upload-icon {
  display: inline-flex !important;
  position: static !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 22px !important;
  box-sizing: border-box !important;
  width: 22px !important;
  min-width: 22px !important;
  max-width: 22px !important;
  height: 22px !important;
  min-height: 22px !important;
  max-height: 22px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #d9d0ff !important;
  -webkit-text-fill-color: #d9d0ff !important;
  font-size: 0 !important;
  line-height: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
  transform: none !important;
  pointer-events: none !important;
}

html body #app#app[data-active-view="workbench"][data-creation-entry="fast"]
.reactor-core .composer-studio-top .reference-upload-slot > .reference-upload-icon > svg,
html body #app#app[data-active-view="workbench"][data-creation-entry="fast"]
.composer-studio-top .reference-upload-slot > .reference-upload-icon > svg {
  display: block !important;
  box-sizing: border-box !important;
  width: 22px !important;
  min-width: 22px !important;
  max-width: 22px !important;
  height: 22px !important;
  min-height: 22px !important;
  max-height: 22px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  color: #d9d0ff !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  shape-rendering: geometricPrecision !important;
}

html body #app#app[data-active-view="workbench"][data-creation-entry="fast"]
.reactor-core .composer-studio-top .reference-upload-icon-frame,
html body #app#app[data-active-view="workbench"][data-creation-entry="fast"]
.composer-studio-top .reference-upload-icon-frame {
  width: 13px !important;
  height: 13px !important;
  fill: none !important;
  stroke: #d9d0ff !important;
  stroke-width: 1.55 !important;
  vector-effect: non-scaling-stroke !important;
  transform: none !important;
}

html body #app#app[data-active-view="workbench"][data-creation-entry="fast"]
.reactor-core .composer-studio-top .reference-upload-icon-mountain,
html body #app#app[data-active-view="workbench"][data-creation-entry="fast"]
.reactor-core .composer-studio-top .reference-upload-icon-plus,
html body #app#app[data-active-view="workbench"][data-creation-entry="fast"]
.composer-studio-top .reference-upload-icon-mountain,
html body #app#app[data-active-view="workbench"][data-creation-entry="fast"]
.composer-studio-top .reference-upload-icon-plus {
  fill: none !important;
  stroke: #d9d0ff !important;
  stroke-width: 1.55 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  vector-effect: non-scaling-stroke !important;
  transform: none !important;
}

html body #app#app[data-active-view="workbench"][data-creation-entry="fast"]
.reactor-core .composer-studio-top .reference-upload-icon-sun,
html body #app#app[data-active-view="workbench"][data-creation-entry="fast"]
.composer-studio-top .reference-upload-icon-sun {
  fill: #d9d0ff !important;
  stroke: none !important;
  transform: none !important;
}

html body #app#app[data-active-view="workbench"][data-creation-entry="fast"]
.reactor-core .composer-studio-top .reference-upload-slot > small,
html body #app#app[data-active-view="workbench"][data-creation-entry="fast"]
.reactor-core .composer-studio-top .reference-upload-slot > span:not(.reference-upload-icon),
html body #app#app[data-active-view="workbench"][data-creation-entry="fast"]
.composer-studio-top .reference-upload-slot > small,
html body #app#app[data-active-view="workbench"][data-creation-entry="fast"]
.composer-studio-top .reference-upload-slot > span:not(.reference-upload-icon) {
  display: none !important;
}


/* P59.1 · Explicit flex alignment guard. Some browser builds normalize
   button align-items to `normal` despite the surrounding reset; the icon
   must remain mathematically centered inside every slot. */
html body #app#app[data-active-view="workbench"][data-creation-entry="fast"]
.reactor-core .composer-studio-top .reference-upload-slot,
html body #app#app[data-active-view="workbench"][data-creation-entry="fast"]
.composer-studio-top .reference-upload-slot {
  align-items: center !important;
  justify-items: center !important;
  place-items: center !important;
}

@media (max-width: 620px) {
  html body #app#app[data-active-view="workbench"][data-creation-entry="fast"]
  .reactor-core .composer-studio-top .reference-upload-slot,
  html body #app#app[data-active-view="workbench"][data-creation-entry="fast"]
  .composer-studio-top .reference-upload-slot {
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
  }
}

/* P59.2 · Geometry fallback for upload glyph centering. Use the button as the
   containing block so the icon cannot inherit the old two-row grid baseline. */
html body #app#app[data-active-view="workbench"][data-creation-entry="fast"]
.reactor-core .composer-studio-top .reference-upload-slot > .reference-upload-icon,
html body #app#app[data-active-view="workbench"][data-creation-entry="fast"]
.composer-studio-top .reference-upload-slot > .reference-upload-icon {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
}

/* P60 · Center reference-upload artwork using one real grid cell.
   The prior absolute-position fallback lost the cascade to an older, more
   specific `position: static` rule on the current `.reactor-core` tree. */
html body #app#app[data-active-view="workbench"][data-creation-entry="fast"]
.reactor-core .composer-studio-top .reference-upload-slot {
  display: grid !important;
  grid-template: none !important;
  grid-template-areas: "glyph" !important;
  place-items: center !important;
  align-items: center !important;
  justify-items: center !important;
}

html body #app#app[data-active-view="workbench"][data-creation-entry="fast"]
.reactor-core .composer-studio-top .reference-upload-slot > .reference-upload-icon {
  position: static !important;
  inset: auto !important;
  grid-area: glyph !important;
  align-self: center !important;
  justify-self: center !important;
  transform: none !important;
}

/* P61 · Creative Engine identity pill and independent reference upload tiles. */
html body #app#app#app#app[data-active-view="workbench"][data-creation-entry="fast"]
.reactor-core .composer-studio-top {
  align-items: center !important;
  gap: 10px !important;
}

html body #app#app#app#app[data-active-view="workbench"][data-creation-entry="fast"]
.reactor-core .creative-brief-heading {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 9px !important;
  min-width: 0 !important;
  height: 44px !important;
  box-sizing: border-box !important;
  padding: 0 15px !important;
  border: 1px solid rgba(255, 255, 255, .12) !important;
  border-radius: 999px !important;
  background: #09090b !important;
  color: #fff !important;
}

html body #app#app#app#app[data-active-view="workbench"][data-creation-entry="fast"]
.reactor-core .creative-brief-heading .creative-brief-mark {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 20px !important;
  height: 20px !important;
  flex: 0 0 20px !important;
  color: #fff !important;
  font-size: 17px !important;
  line-height: 1 !important;
}

html body #app#app#app#app[data-active-view="workbench"][data-creation-entry="fast"]
.reactor-core .creative-brief-heading strong {
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

html body #app#app#app#app[data-active-view="workbench"][data-creation-entry="fast"]
.reactor-core .reference-upload-group,
html body #app#app#app#app[data-active-view="workbench"][data-creation-entry="fast"]
.reactor-core .composer-reference-strip,
html body #app#app#app#app[data-active-view="workbench"][data-creation-entry="fast"]
.reactor-core .reference-preview {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex: 0 1 auto !important;
  gap: 7px !important;
  width: auto !important;
  min-width: 0 !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body #app#app#app#app[data-active-view="workbench"][data-creation-entry="fast"]
.reactor-core .reference-preview .reference-upload-slot {
  position: relative !important;
  display: flex !important;
  flex: 0 0 58px !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 1px !important;
  width: 58px !important;
  min-width: 58px !important;
  max-width: 58px !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 3px 4px !important;
  border: 1px solid rgba(255, 255, 255, .17) !important;
  border-radius: 11px !important;
  background: #09090b !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

html body #app#app#app#app[data-active-view="workbench"][data-creation-entry="fast"]
.reactor-core .reference-preview .reference-upload-plus {
  display: block !important;
  width: 100% !important;
  color: #fff !important;
  font-family: Arial, sans-serif !important;
  font-size: 21px !important;
  font-weight: 400 !important;
  line-height: 19px !important;
  text-align: center !important;
}

html body #app#app#app#app[data-active-view="workbench"][data-creation-entry="fast"]
.reactor-core .reference-preview .reference-upload-label {
  display: block !important;
  max-width: 100% !important;
  margin: 0 !important;
  color: rgba(255, 255, 255, .78) !important;
  font-size: 8px !important;
  font-weight: 600 !important;
  letter-spacing: .02em !important;
  line-height: 10px !important;
  text-align: center !important;
  text-transform: lowercase !important;
  white-space: nowrap !important;
}

@media (max-width: 620px) {
  html body #app#app#app#app[data-active-view="workbench"][data-creation-entry="fast"]
  .reactor-core .composer-studio-top { gap: 6px !important; }
  html body #app#app#app#app[data-active-view="workbench"][data-creation-entry="fast"]
  .reactor-core .creative-brief-heading { height: 40px !important; padding-inline: 10px !important; gap: 6px !important; }
  html body #app#app#app#app[data-active-view="workbench"][data-creation-entry="fast"]
  .reactor-core .creative-brief-heading strong { font-size: 13px !important; }
  html body #app#app#app#app[data-active-view="workbench"][data-creation-entry="fast"]
  .reactor-core .reference-upload-group,
  html body #app#app#app#app[data-active-view="workbench"][data-creation-entry="fast"]
  .reactor-core .composer-reference-strip,
  html body #app#app#app#app[data-active-view="workbench"][data-creation-entry="fast"]
  .reactor-core .reference-preview { height: 40px !important; min-height: 40px !important; gap: 4px !important; }
  html body #app#app#app#app[data-active-view="workbench"][data-creation-entry="fast"]
  .reactor-core .reference-preview .reference-upload-slot {
    flex-basis: 48px !important; width: 48px !important; min-width: 48px !important; max-width: 48px !important;
    height: 40px !important; min-height: 40px !important; max-height: 40px !important;
    border-radius: 9px !important;
  }
  html body #app#app#app#app[data-active-view="workbench"][data-creation-entry="fast"]
  .reactor-core .reference-preview .reference-upload-label { font-size: 7px !important; }
}

/* P61.1 · Lock equal title/upload heights above legacy fixed-size rules. */
html body #app#app#app#app#app#app[data-active-view="workbench"][data-creation-entry="fast"]
.reactor-core .composer-studio-top .creative-brief-heading {
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  padding: 0 15px !important;
  align-self: center !important;
}

html body #app#app#app#app#app#app[data-active-view="workbench"][data-creation-entry="fast"]
.reactor-core .composer-studio-top .creative-brief-mark {
  filter: grayscale(1) brightness(0) invert(1) !important;
}

@media (max-width: 620px) {
  html body #app#app#app#app#app#app[data-active-view="workbench"][data-creation-entry="fast"]
  .reactor-core .composer-studio-top .creative-brief-heading {
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    padding-inline: 10px !important;
  }
}

/* P62 · Final Creative Engine heading/upload geometry and vertical-rhythm pass.
   Keeps behavior unchanged while making the title and upload tiles share the
   same neutral input surface. */
html body #app#app#app#app#app#app[data-active-view="workbench"][data-creation-entry="fast"]
.reactor-core .composer-studio-top {
  align-items: center !important;
  min-height: 64px !important;
  padding: 14px 16px 6px !important;
  gap: 8px !important;
}

html body #app#app#app#app#app#app[data-active-view="workbench"][data-creation-entry="fast"]
.reactor-core .composer-studio-top .creative-brief-heading {
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  padding: 0 15px !important;
  gap: 8px !important;
  border: 1px solid rgba(255, 255, 255, .10) !important;
  border-radius: 999px !important;
  background: var(--df-p12-inner, rgba(8, 8, 11, .66)) !important;
  box-shadow: none !important;
}

/* The sparkle belongs to the label content, not to a nested icon tile. */
html body #app#app#app#app#app#app[data-active-view="workbench"][data-creation-entry="fast"]
.reactor-core .composer-studio-top .creative-brief-heading .creative-brief-mark {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: 17px !important;
  line-height: 1 !important;
}

html body #app#app#app#app#app#app[data-active-view="workbench"][data-creation-entry="fast"]
.reactor-core .composer-studio-top .creative-brief-heading .creative-brief-mark::before,
html body #app#app#app#app#app#app[data-active-view="workbench"][data-creation-entry="fast"]
.reactor-core .composer-studio-top .creative-brief-heading .creative-brief-mark::after {
  content: none !important;
  display: none !important;
}

html body #app#app#app#app#app#app[data-active-view="workbench"][data-creation-entry="fast"]
.reactor-core .composer-studio-top :is(.reference-upload-group, .composer-reference-strip, .reference-preview) {
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
}

html body #app#app#app#app#app#app[data-active-view="workbench"][data-creation-entry="fast"]
.reactor-core .composer-studio-top .reference-preview .reference-upload-slot {
  flex: 0 0 44px !important;
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  aspect-ratio: 1 / 1 !important;
  padding: 3px !important;
  border: 1px solid rgba(255, 255, 255, .10) !important;
  border-radius: 12px !important;
  background: var(--df-p12-inner, rgba(8, 8, 11, .66)) !important;
  box-shadow: none !important;
}

/* Tighten the space after the utility controls without changing their size. */
html body #app#app#app#app#app#app[data-active-view="workbench"][data-creation-entry="fast"]
.reactor-core .composer-bottombar {
  padding-bottom: 8px !important;
  margin-bottom: 0 !important;
}

html body #app#app#app#app#app#app[data-active-view="workbench"][data-creation-entry="fast"]
.creative-workflow-disclosure {
  margin-bottom: 0 !important;
}

html body #app#app#app#app#app#app[data-active-view="workbench"][data-creation-entry="fast"]
.creative-workflow-disclosure > .creative-workflow-summary {
  margin-bottom: 0 !important;
}

html body #app#app#app#app#app#app[data-active-view="workbench"][data-creation-entry="fast"]
.composer-shell {
  padding-bottom: 8px !important;
}

@media (max-width: 620px) {
  html body #app#app#app#app#app#app[data-active-view="workbench"][data-creation-entry="fast"]
  .reactor-core .composer-studio-top {
    min-height: 58px !important;
    padding: 12px 10px 6px !important;
    gap: 5px !important;
  }

  html body #app#app#app#app#app#app[data-active-view="workbench"][data-creation-entry="fast"]
  .reactor-core .composer-studio-top .creative-brief-heading {
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    padding-inline: 10px !important;
    gap: 6px !important;
  }

  html body #app#app#app#app#app#app[data-active-view="workbench"][data-creation-entry="fast"]
  .reactor-core .composer-studio-top :is(.reference-upload-group, .composer-reference-strip, .reference-preview) {
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
  }

  html body #app#app#app#app#app#app[data-active-view="workbench"][data-creation-entry="fast"]
  .reactor-core .composer-studio-top .reference-preview .reference-upload-slot {
    flex-basis: 40px !important;
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    border-radius: 11px !important;
  }
}

/* P62.1 · Remove the remaining reserved bands below the utility row and the
   collapsed workflow strip. On narrow screens, wrap the three existing
   controls instead of allowing first-frame to run outside the composer. */
html body #app#app#app#app#app#app[data-active-view="workbench"][data-creation-entry="fast"]
.creative-workflow-disclosure {
  margin-top: 2px !important;
}

html body #app#app#app#app#app#app[data-active-view="workbench"][data-creation-entry="fast"]
.composer-shell {
  padding-bottom: 0 !important;
}

html body #app#app#app#app#app#app[data-active-view="workbench"][data-creation-entry="fast"]
.workbench-grid {
  row-gap: 18px !important;
}

@media (max-width: 620px) {
  html body #app#app#app#app#app#app[data-active-view="workbench"][data-creation-entry="fast"]
  .composer-card.composer-studio .composer-bottombar {
    height: auto !important;
    min-height: 0 !important;
    padding-bottom: 6px !important;
  }

  html body #app#app#app#app#app#app[data-active-view="workbench"][data-creation-entry="fast"]
  .composer-card.composer-studio .composer-bottom-left {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: center !important;
    gap: 6px !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  html body #app#app#app#app#app#app[data-active-view="workbench"][data-creation-entry="fast"]
  .composer-card.composer-studio .composer-bottom-left > :is(.composer-more-control, .composer-styles-trigger, .first-frame-toggle-compact) {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  html body #app#app#app#app#app#app[data-active-view="workbench"][data-creation-entry="fast"]
  .composer-card.composer-studio .composer-bottom-left > .first-frame-toggle-compact {
    grid-column: 1 / -1 !important;
  }

  html body #app#app#app#app#app#app[data-active-view="workbench"][data-creation-entry="fast"]
  .workbench-grid {
    row-gap: 10px !important;
  }
}

/* Keep the percentage in a dedicated lower band; the earlier relative-flow
   override could place it on top of the centered play/loading icon. */
#app#app[data-active-view="workbench"][data-creation-entry="fast"] #run-demo-btn[data-show-progress="true"] .composer-send-arrow {
  top: 32% !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] #run-demo-btn[data-show-progress="true"] .composer-send-progress {
  position: absolute !important;
  left: 50% !important;
  bottom: 3px !important;
  width: 100% !important;
  min-width: 0 !important;
  line-height: 9px !important;
  transform: translateX(-50%) !important;
}


/* 20261006 · Determinate generate progress.
   The circular indicator and percentage now share the same workflow progress
   value; the old free-running spinner is intentionally disabled. */
#app#app[data-active-view="workbench"][data-creation-entry="fast"] #run-demo-btn .composer-send-arrow[data-icon-state="loading"] {
  width: 17px !important;
  height: 17px !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  animation: none !important;
  transform: translate(-50%, -50%) !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] #run-demo-btn .composer-send-progress-ring {
  display: block !important;
  width: 17px !important;
  height: 17px !important;
  overflow: visible !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] #run-demo-btn .composer-send-progress-ring circle {
  fill: none !important;
  stroke-width: 2.25 !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] #run-demo-btn .composer-send-progress-track {
  stroke: rgba(255, 255, 255, .26) !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"] #run-demo-btn .composer-send-progress-value {
  stroke: rgba(255, 255, 255, .98) !important;
  stroke-dasharray: 100 !important;
  stroke-linecap: round !important;
  transform: rotate(-90deg) !important;
  transform-origin: 50% 50% !important;
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  #app#app[data-active-view="workbench"][data-creation-entry="fast"] #run-demo-btn .composer-send-progress-value {
    transition: none !important;
  }
}


/* 20261006 · Video-prompt output actions.
   Keep the three remaining actions compact, right-aligned and visually
   anchored to the title without reserving space for the removed presentation
   copy action. */
#app#app[data-active-view="workbench"][data-creation-entry="fast"]
.output-stage-premium .prompt-primary .prompt-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  column-gap: 14px !important;
  align-items: center !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"]
.output-stage-premium .prompt-primary .prompt-toolbar {
  display: flex !important;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 6px !important;
  overflow: visible !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"]
.output-stage-premium .prompt-primary .prompt-toolbar > button {
  flex: 0 0 auto !important;
  width: auto !important;
  margin: 0 !important;
  white-space: nowrap !important;
}

#app#app[data-active-view="workbench"][data-creation-entry="fast"]
.output-stage-premium .prompt-primary #copy-prompt-btn {
  min-width: 172px !important;
}

@media (max-width: 680px) {
  #app#app[data-active-view="workbench"][data-creation-entry="fast"]
  .output-stage-premium .prompt-primary .prompt-head {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    row-gap: 6px !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  #app#app[data-active-view="workbench"][data-creation-entry="fast"]
  .output-stage-premium .prompt-primary .prompt-toolbar {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    width: 100% !important;
    height: 30px !important;
    min-height: 30px !important;
    overflow: visible !important;
  }

  #app#app[data-active-view="workbench"][data-creation-entry="fast"]
  .output-stage-premium .prompt-primary #copy-prompt-btn {
    width: 100% !important;
    min-width: 0 !important;
  }
}
