/* Shared operation-page controls. This file is the final authority for repeated actions. */
body.toolbox-body .tb-app[data-app-shell] {
  --tb-control-height: 42px;
  --tb-control-radius: 10px;
  --tb-control-border: #d9dee7;
  --tb-control-border-hover: #b7c0ce;
  --tb-control-surface: #fff;
  --tb-control-surface-hover: #f7f8fa;
  --tb-control-text: #2c3440;
  --tb-control-muted: #687384;
  --tb-control-primary: #e84b25;
  --tb-control-primary-hover: #ca3b19;
  --tb-control-primary-active: #ad3115;
  --tb-control-focus: rgba(232, 75, 37, .22);
  --tb-control-context-surface: #fff8f4;
  --tb-control-context-border: #efb7a7;
  --tb-control-upload-surface: #eef9f7;
  --tb-control-upload-hover: #e2f5f1;
  --tb-control-upload-border: #76bfb3;
  --tb-control-upload-text: #17665e;
}

/* Content hub cards: keep copy, mode choices, and the action in separate rows. */
.toolbox-body .tb-app[data-app-shell][data-ui-coherence="unified-v3"]
  [data-tool-hub-slug="content-hub"] .tb-category-tool-card--clustered {
  grid-template-columns: 44px minmax(0, 1fr) max-content !important;
  grid-template-rows: auto auto auto !important;
  column-gap: 12px !important;
  row-gap: 12px !important;
  min-height: 226px !important;
  align-content: start !important;
  overflow: hidden !important;
}

.toolbox-body .tb-app[data-app-shell][data-ui-coherence="unified-v3"]
  [data-tool-hub-slug="content-hub"] .tb-category-tool-card--clustered > .tb-category-tool-icon {
  grid-column: 1 !important;
  grid-row: 1 !important;
}

.toolbox-body .tb-app[data-app-shell][data-ui-coherence="unified-v3"]
  [data-tool-hub-slug="content-hub"] .tb-category-tool-card--clustered > .tb-category-tool-copy {
  grid-column: 2 / 3 !important;
  grid-row: 1 !important;
  align-self: start !important;
  min-width: 0 !important;
}

.toolbox-body .tb-app[data-app-shell][data-ui-coherence="unified-v3"]
  [data-tool-hub-slug="content-hub"] .tb-category-tool-card--clustered > .tb-category-tool-modes {
  position: static !important;
  grid-column: 1 / -1 !important;
  grid-row: 2 !important;
  align-self: start !important;
  justify-self: stretch !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  min-height: 28px !important;
  max-height: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: wrap !important;
  place-items: normal !important;
  gap: 6px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: inherit !important;
  font-size: inherit !important;
  overflow: visible !important;
}

.toolbox-body .tb-app[data-app-shell][data-ui-coherence="unified-v3"]
  [data-tool-hub-slug="content-hub"] .tb-category-tool-card--clustered > .tb-category-tool-modes > span {
  width: auto !important;
  max-width: 100% !important;
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 9px !important;
  white-space: nowrap !important;
}

.toolbox-body .tb-app[data-app-shell][data-ui-coherence="unified-v3"]
  [data-tool-hub-slug="content-hub"] .tb-category-tool-card--clustered > .tb-category-tool-action {
  grid-column: 1 / -1 !important;
  grid-row: 3 !important;
  align-self: end !important;
}

.toolbox-body .tb-app[data-app-shell][data-ui-coherence="unified-v3"]
  [data-tool-hub-slug="content-hub"] .tb-category-tool-card--clustered > b {
  grid-column: 3 !important;
  grid-row: 1 !important;
  align-self: start !important;
  justify-self: end !important;
  max-width: none !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

@media (max-width: 680px) {
  .toolbox-body .tb-app[data-app-shell][data-ui-coherence="unified-v3"]
    [data-tool-hub-slug="content-hub"] .tb-category-tool-card--clustered {
    min-height: 0 !important;
  }
}

/* Model wear: full-width operation flow with matched examples below. */
body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
.tb-page-content {
  padding-inline: 0 !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
.tb-tool-form-panel:has(.tb-wear-page) {
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
.tb-wear-page {
  width: min(1180px, 100%) !important;
  max-width: 1180px !important;
  min-width: 0 !important;
  margin-inline: auto !important;
  padding: 10px !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
.tb-wear-layout {
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  display: block !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
.tb-wear-layout > form.tb-wear-form {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  display: grid !important;
  gap: 14px !important;
  padding: 10px !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
.tb-wear-upload-stack[data-unified-upload-legacy="hidden"] {
  display: none !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
.tb-wear-upload-stack > *,
body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
.tb-wear-upload-block,
body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
.tb-wear-upload {
  width: 100% !important;
  min-width: 0 !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
.tb-wear-upload {
  height: auto !important;
  min-height: 128px !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
.tb-prompt-card textarea {
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 150px !important;
  resize: vertical !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
.tb-wear-action-row {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 148px 134px !important;
  align-items: flex-end !important;
  gap: 3px !important;
  padding: 2px 0 8px !important;
  overflow: visible !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
.tb-wear-action-scroll {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: flex-end !important;
  gap: 3px !important;
  padding: 0 0 6px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  overscroll-behavior-inline: contain !important;
  scrollbar-width: thin !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
.tb-wear-action-scroll > .tb-field {
  flex: 0 0 72px !important;
  width: 72px !important;
  min-width: 72px !important;
  max-width: 72px !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
.tb-wear-action-scroll > .tb-field:has([name="field_3"]) {
  flex-basis: 62px !important;
  width: 62px !important;
  min-width: 62px !important;
  max-width: 62px !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
.tb-wear-action-scroll > .tb-field:has([name="size"]) {
  flex-basis: 72px !important;
  width: 72px !important;
  min-width: 72px !important;
  max-width: 72px !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
.tb-wear-action-scroll > .tb-field:has([name="count"]) {
  flex-basis: 52px !important;
  width: 52px !important;
  min-width: 52px !important;
  max-width: 52px !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
.tb-wear-action-scroll > .tb-field > label {
  min-height: 18px !important;
  margin-bottom: 5px !important;
  color: #596475 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 18px !important;
  white-space: nowrap !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
.tb-wear-action-row .tb-select-shell,
body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
.tb-wear-action-row .tb-select-trigger {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 4px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 14px !important;
  gap: 0 !important;
  font-size: 11px !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
.tb-wear-action-row .tb-select-trigger > span {
  min-width: 0 !important;
  overflow: visible !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
.tb-wear-action-row .tb-select-trigger > i {
  width: 14px !important;
  min-width: 14px !important;
  font-size: 10px !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
.tb-wear-action-scroll > .tb-image-resolution-control {
  flex: 0 0 108px !important;
  width: 108px !important;
  min-width: 108px !important;
  max-width: 108px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: 18px 42px !important;
  gap: 5px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
.tb-wear-action-scroll > .tb-image-resolution-control > div:first-child {
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: 100% !important;
  min-height: 18px !important;
  display: block !important;
  color: #596475 !important;
  font-size: 11px !important;
  line-height: 18px !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
.tb-wear-action-scroll > .tb-image-resolution-control > div:first-child > span,
body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
.tb-wear-action-scroll > .tb-image-resolution-control > output {
  display: none !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
.tb-wear-action-row .tb-resolution-segments {
  grid-column: 1 !important;
  grid-row: 2 !important;
  width: 100% !important;
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 2px !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
.tb-wear-action-row .tb-resolution-segments > button {
  width: 100% !important;
  min-width: 0 !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 1px !important;
  border-radius: 9px !important;
  font-size: 10px !important;
  white-space: nowrap !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
.tb-wear-action-row .tb-resolution-segments > button > small {
  display: none !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
.tb-wear-action-row > .tb-generation-context {
  flex: 0 0 148px !important;
  width: 148px !important;
  min-width: 148px !important;
  max-width: 148px !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  order: 0 !important;
  align-self: flex-end !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
.tb-wear-action-row > .tb-generation-context > :is(header, .tb-context-selected, .tb-context-feedback) {
  display: none !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
.tb-wear-action-row > .tb-generation-context > .tb-generation-context-grid {
  width: 148px !important;
  min-width: 148px !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
.tb-wear-action-row .tb-context-picker,
body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
.tb-wear-action-row .tb-context-trigger.tb-control-context {
  width: 71px !important;
  min-width: 71px !important;
  max-width: 71px !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
.tb-wear-action-row .tb-context-trigger.tb-control-context {
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 4px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  border: 1px solid var(--tb-control-context-border) !important;
  border-radius: 10px !important;
  background: var(--tb-control-context-surface) !important;
  color: #873b27 !important;
  overflow: visible !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
.tb-wear-action-row .tb-context-trigger.tb-control-context > span {
  width: auto !important;
  min-width: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  overflow: visible !important;
  color: inherit !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
.tb-wear-action-row .tb-context-trigger.tb-control-context > span > i {
  display: none !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
.tb-wear-action-row .tb-context-trigger.tb-control-context > :is(em, i:last-child) {
  display: none !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
.tb-wear-action-row > .tb-btn.primary[type="submit"] {
  flex: 0 0 134px !important;
  width: 134px !important;
  min-width: 134px !important;
  max-width: 134px !important;
  height: 42px !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 0 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  white-space: nowrap !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
.tb-wear-action-row > .tb-btn.primary[type="submit"] > small {
  display: inline !important;
  margin: 0 !important;
  color: currentColor !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  opacity: .9 !important;
  white-space: nowrap !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
.tb-wear-action-row:has(.tb-select-shell.open) {
  overflow: visible !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
.tb-form-actions.sticky-bottom {
  position: static !important;
  inset: auto !important;
  z-index: auto !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 14px 0 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 14px !important;
  border-top: 1px solid #e1e5eb !important;
  background: transparent !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
.tb-form-actions.sticky-bottom > [data-wear-option-status] {
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 38px !important;
  height: auto !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
[data-real-case-gallery="model-wear"] {
  width: 100% !important;
  min-width: 0 !important;
  margin-top: 22px !important;
  padding: 20px !important;
  display: grid !important;
  gap: 16px !important;
  border: 1px solid #e1e5eb !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: none !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
[data-real-case-gallery="model-wear"] > header {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
[data-real-case-gallery="model-wear"] .tb-real-case-grid {
  width: 100% !important;
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
[data-real-case-gallery="model-wear"] .tb-real-case-card,
body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
[data-real-case-gallery="model-wear"] .tb-case-preview {
  width: 100% !important;
  min-width: 0 !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
[data-real-case-gallery="model-wear"] img {
  width: 100% !important;
  aspect-ratio: 4 / 5 !important;
  display: block !important;
  object-fit: cover !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
.tb-wear-page > [data-model-wear-result-sink] {
  display: none !important;
}

@media (max-width: 900px) {
  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
  .tb-wear-upload-stack:not([data-unified-upload-legacy="hidden"]) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
  .tb-wear-layout > form.tb-wear-form {
    padding: 10px !important;
    gap: 14px !important;
  }

  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
  .tb-wear-upload-stack:not([data-unified-upload-legacy="hidden"]) {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
  .tb-form-actions.sticky-bottom {
    align-items: flex-start !important;
    flex-direction: row !important;
  }

  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
  .tb-form-actions.sticky-bottom > [data-wear-option-status] {
    flex: 0 0 auto !important;
    width: 100% !important;
  }

  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
  [data-real-case-gallery="model-wear"] {
    padding: 14px !important;
  }

  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
  [data-real-case-gallery="model-wear"] .tb-real-case-grid {
    grid-template-columns: repeat(3, minmax(250px, 82vw)) !important;
    overflow-x: auto !important;
    scroll-snap-type: x proximity !important;
    padding-bottom: 6px !important;
  }

  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
  [data-real-case-gallery="model-wear"] .tb-real-case-card {
    scroll-snap-align: start !important;
  }
}

/* Sidebar collapse control: keep the action explicit in both visual states. */
body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"] .tb-sidebar-head {
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 6px !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"] .tb-sidebar
.tb-sidebar-collapse-control[data-sidebar-collapse] {
  width: auto !important;
  min-width: 64px !important;
  height: 40px !important;
  min-height: 40px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  padding: 0 8px !important;
  border: 1px solid #4b4036 !important;
  border-radius: 8px !important;
  background: #2b241d !important;
  color: #e9e3db !important;
  box-shadow: none !important;
  overflow: visible !important;
  white-space: nowrap !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"] .tb-sidebar
.tb-sidebar-collapse-control[data-sidebar-collapse] > i {
  flex: 0 0 auto !important;
  font-size: 14px !important;
  line-height: 1 !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"] .tb-sidebar
.tb-sidebar-collapse-control[data-sidebar-collapse] > [data-sidebar-collapse-label] {
  display: inline !important;
  min-width: 0 !important;
  color: inherit !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"] .tb-sidebar
.tb-sidebar-collapse-control[data-sidebar-collapse]:hover {
  border-color: #6b5a4a !important;
  background: #352d25 !important;
  color: #fff !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-sidebar-collapsed="true"] .tb-sidebar-head {
  grid-template-columns: 1fr !important;
  justify-items: center !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-sidebar-collapsed="true"] .tb-sidebar
.tb-sidebar-collapse-control[data-sidebar-collapse] {
  width: 52px !important;
  min-width: 52px !important;
  height: 50px !important;
  min-height: 50px !important;
  flex-direction: column !important;
  gap: 3px !important;
  padding: 5px 2px !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-sidebar-collapsed="true"] .tb-sidebar
.tb-sidebar-collapse-control[data-sidebar-collapse] > [data-sidebar-collapse-label] {
  font-size: 11px !important;
}

@media (max-width: 768px) {
  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"] .tb-sidebar
  .tb-sidebar-collapse-control[data-sidebar-collapse] {
    display: none !important;
  }
}

body.toolbox-body.toolbox-body
.tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"]
.tb-main.tb-main-tool .tb-control {
  box-sizing: border-box !important;
  min-height: var(--tb-control-height) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  border: 1px solid var(--tb-control-border) !important;
  border-radius: var(--tb-control-radius) !important;
  background: var(--tb-control-surface) !important;
  color: var(--tb-control-text) !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, box-shadow 150ms ease, transform 150ms ease !important;
}

body.toolbox-body.toolbox-body
.tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"]
.tb-main.tb-main-tool .tb-control > :where(span, strong, b, em, small) {
  min-width: 0 !important;
  display: inline !important;
  overflow: visible !important;
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
  font: inherit !important;
  line-height: inherit !important;
  opacity: 1 !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
}

body.toolbox-body.toolbox-body
.tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"]
.tb-main.tb-main-tool .tb-control > small {
  font-size: 11px !important;
  font-weight: 600 !important;
  opacity: .82 !important;
}

body.toolbox-body.toolbox-body
.tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"]
.tb-main.tb-main-tool .tb-control:hover {
  border-color: var(--tb-control-border-hover) !important;
  background: var(--tb-control-surface-hover) !important;
  color: #171d25 !important;
  transform: translateY(-1px) !important;
}

body.toolbox-body.toolbox-body
.tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"]
.tb-main.tb-main-tool .tb-control:active {
  transform: translateY(0) scale(.985) !important;
}

body.toolbox-body.toolbox-body
.tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"]
.tb-main.tb-main-tool :is(.tb-control, .tb-control-upload):focus-visible {
  outline: 3px solid var(--tb-control-focus) !important;
  outline-offset: 2px !important;
}

body.toolbox-body.toolbox-body
.tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"]
.tb-main.tb-main-tool .tb-control-primary {
  min-width: 126px !important;
  border-color: var(--tb-control-primary) !important;
  background: var(--tb-control-primary) !important;
  color: #fff !important;
  box-shadow: 0 3px 8px rgba(185, 54, 23, .2) !important;
}

body.toolbox-body.toolbox-body
.tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"]
.tb-main.tb-main-tool .tb-control-primary:hover {
  border-color: var(--tb-control-primary-hover) !important;
  background: var(--tb-control-primary-hover) !important;
  color: #fff !important;
  box-shadow: 0 4px 8px rgba(185, 54, 23, .24) !important;
}

body.toolbox-body.toolbox-body
.tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"]
.tb-main.tb-main-tool .tb-control-primary:active {
  border-color: var(--tb-control-primary-active) !important;
  background: var(--tb-control-primary-active) !important;
  box-shadow: 0 3px 8px rgba(185, 54, 23, .18) !important;
}

body.toolbox-body.toolbox-body
.tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"]
.tb-main.tb-main-tool .tb-control-primary[aria-busy="true"]::before {
  width: 14px !important;
  height: 14px !important;
  flex: 0 0 14px !important;
  content: "" !important;
  border: 2px solid rgba(255, 255, 255, .45) !important;
  border-top-color: #fff !important;
  border-radius: 50% !important;
  animation: tb-control-spin .7s linear infinite !important;
}

body.toolbox-body.toolbox-body
.tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"]
.tb-main.tb-main-tool .tb-control-context {
  width: auto !important;
  min-width: 116px !important;
  max-width: 176px !important;
  height: var(--tb-control-height) !important;
  grid-template-columns: none !important;
  padding-inline: 12px !important;
  border-color: var(--tb-control-context-border) !important;
  background: var(--tb-control-context-surface) !important;
  color: #873b27 !important;
}

body.toolbox-body.toolbox-body
.tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"]
.tb-main.tb-main-tool .tb-context-round-actions .tb-context-picker {
  width: auto !important;
  min-width: 116px !important;
  max-width: 176px !important;
  grid-template-columns: minmax(0, 1fr) !important;
  justify-items: stretch !important;
}

body.toolbox-body.toolbox-body
.tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"]
.tb-main.tb-main-tool .tb-context-round-actions .tb-context-picker::after {
  display: none !important;
  content: none !important;
}

body.toolbox-body.toolbox-body
.tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"]
.tb-main.tb-main-tool .tb-control-context > span {
  width: auto !important;
  height: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

body.toolbox-body.toolbox-body
.tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"]
.tb-main.tb-main-tool .tb-control-context > em {
  overflow: hidden !important;
  max-width: 52px !important;
  color: #a05d4b !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  text-overflow: ellipsis !important;
}

body.toolbox-body.toolbox-body
.tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"]
.tb-main.tb-main-tool .tb-control-context > i:last-child {
  display: none !important;
}

body.toolbox-body.toolbox-body
.tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"]
.tb-main.tb-main-tool .tb-context-picker:has(input[data-context-choice]:checked) .tb-control-context,
body.toolbox-body.toolbox-body
.tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"]
.tb-main.tb-main-tool .tb-control-context[aria-expanded="true"] {
  border-color: var(--tb-control-primary) !important;
  background: #fff0ea !important;
  color: #a53519 !important;
  box-shadow: 0 0 0 2px rgba(232, 75, 37, .09) !important;
}

body.toolbox-body.toolbox-body
.tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"]
.tb-main.tb-main-tool .tb-control-upload {
  box-sizing: border-box !important;
  border: 1px solid var(--tb-control-upload-border) !important;
  border-radius: var(--tb-control-radius) !important;
  background: var(--tb-control-upload-surface) !important;
  color: var(--tb-control-upload-text) !important;
  box-shadow: none !important;
  letter-spacing: 0 !important;
  cursor: pointer !important;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease, transform 150ms ease !important;
}

body.toolbox-body.toolbox-body
.tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"]
.tb-main.tb-main-tool .tb-control-upload:hover {
  border-color: #4ca89a !important;
  background: var(--tb-control-upload-hover) !important;
  color: #0f5d55 !important;
  transform: translateY(-1px) !important;
}

body.toolbox-body.toolbox-body
.tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"]
.tb-main.tb-main-tool .tb-control-upload:is(.has-files, .has-file) {
  border-color: #299282 !important;
  background: #dff4ef !important;
  box-shadow: 0 0 0 2px rgba(41, 146, 130, .1) !important;
}

body.toolbox-body.toolbox-body
.tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"]
.tb-main.tb-main-tool .tb-control-upload-compact {
  min-width: 104px !important;
  min-height: var(--tb-control-height) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  padding: 0 12px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

body.toolbox-body.toolbox-body
.tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"]
.tb-main.tb-main-tool .tb-control-upload-card {
  min-height: 108px !important;
}

body.toolbox-body.toolbox-body
.tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"]
.tb-main.tb-main-tool .tb-control-segment {
  min-height: 38px !important;
  border-color: transparent !important;
  background: transparent !important;
  color: var(--tb-control-muted) !important;
  box-shadow: none !important;
}

body.toolbox-body.toolbox-body
.tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"]
.tb-main.tb-main-tool .tb-control-segment:is(.active, [aria-selected="true"], [aria-pressed="true"]) {
  border-color: var(--tb-control-border) !important;
  background: #fff !important;
  color: var(--tb-control-text) !important;
  box-shadow: 0 3px 9px rgba(30, 38, 49, .07) !important;
}

body.toolbox-body.toolbox-body
.tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"]
.tb-main.tb-main-tool :is(.tb-control, .tb-control-upload):disabled,
body.toolbox-body.toolbox-body
.tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"]
.tb-main.tb-main-tool :is(.tb-control, .tb-control-upload)[aria-disabled="true"] {
  border-color: #e3e6eb !important;
  background: #f1f2f4 !important;
  color: #9299a3 !important;
  box-shadow: none !important;
  opacity: 1 !important;
  transform: none !important;
  cursor: not-allowed !important;
}

body.toolbox-body.toolbox-body
.tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-theme="night"] {
  --tb-control-border: #464038;
  --tb-control-border-hover: #665d52;
  --tb-control-surface: #24211d;
  --tb-control-surface-hover: #302c26;
  --tb-control-text: #f2eee8;
  --tb-control-muted: #b8b0a5;
  --tb-control-context-surface: #30231e;
  --tb-control-context-border: #754b3e;
  --tb-control-upload-surface: #172b29;
  --tb-control-upload-hover: #1c3632;
  --tb-control-upload-border: #397b71;
  --tb-control-upload-text: #a7ddd5;
}

body.toolbox-body.toolbox-body
.tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-theme="night"]
.tb-main.tb-main-tool .tb-control:hover {
  color: #fff !important;
}

body.toolbox-body.toolbox-body
.tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-theme="night"]
.tb-main.tb-main-tool .tb-control-context {
  color: #ffb39d !important;
}

body.toolbox-body.toolbox-body
.tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-theme="night"]
.tb-main.tb-main-tool .tb-control-segment:is(.active, [aria-selected="true"], [aria-pressed="true"]) {
  border-color: #514a40 !important;
  background: #302c26 !important;
  color: #fff !important;
}

@keyframes tb-control-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 760px) {
  body.toolbox-body.toolbox-body
  .tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"]
  .tb-main.tb-main-tool .tb-control {
    min-height: 44px !important;
  }

  body.toolbox-body.toolbox-body
  .tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"]
  .tb-main.tb-main-tool .tb-control-primary {
    min-width: 120px !important;
  }

  body.toolbox-body.toolbox-body
  .tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"]
  .tb-main.tb-main-tool .tb-control-context {
    min-width: 112px !important;
    height: 44px !important;
  }

  body.toolbox-body.toolbox-body
  .tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"]
  .tb-main.tb-main-tool .tb-control-upload-compact {
    min-height: 44px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.toolbox-body .tb-app[data-app-shell] :is(.tb-control, .tb-control-upload) {
    transition: none !important;
  }
}

/* Compatibility authority for historical round-only context controls. */
body.toolbox-body.toolbox-body
.tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page-family="creator"][data-page]
.tb-main.tb-main-tool .tb-simple-tool-page.tb-simple-tool-page
.tb-context-round-actions .tb-context-picker,
body.toolbox-body.toolbox-body
.tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="content"]
.tb-main.tb-main-tool .tb-yiju-context .tb-context-round-actions .tb-context-picker {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 116px !important;
  max-width: 176px !important;
  grid-template-columns: minmax(0, 1fr) !important;
  justify-items: stretch !important;
  gap: 0 !important;
}

body.toolbox-body.toolbox-body
.tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page-family="creator"][data-page]
.tb-main.tb-main-tool .tb-simple-tool-page.tb-simple-tool-page
.tb-context-round-actions .tb-context-picker::after,
body.toolbox-body.toolbox-body
.tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="content"]
.tb-main.tb-main-tool .tb-yiju-context .tb-context-round-actions .tb-context-picker::after {
  display: none !important;
  content: none !important;
}

body.toolbox-body.toolbox-body
.tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page-family="creator"][data-page]
.tb-main.tb-main-tool .tb-simple-tool-page.tb-simple-tool-page
.tb-context-round-actions .tb-context-trigger.tb-control-context,
body.toolbox-body.toolbox-body
.tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="content"]
.tb-main.tb-main-tool .tb-yiju-context .tb-context-round-actions .tb-context-trigger.tb-control-context {
  width: auto !important;
  min-width: 116px !important;
  max-width: 176px !important;
  height: var(--tb-control-height) !important;
  min-height: var(--tb-control-height) !important;
  max-height: var(--tb-control-height) !important;
  display: inline-flex !important;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
  place-items: initial !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  padding: 0 12px !important;
  border: 1px solid var(--tb-control-context-border) !important;
  border-radius: var(--tb-control-radius) !important;
  background: var(--tb-control-context-surface) !important;
  color: #873b27 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

body.toolbox-body.toolbox-body
.tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page-family="creator"][data-page]
.tb-main.tb-main-tool .tb-simple-tool-page.tb-simple-tool-page
.tb-context-round-actions .tb-context-trigger.tb-control-context > span,
body.toolbox-body.toolbox-body
.tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="content"]
.tb-main.tb-main-tool .tb-yiju-context .tb-context-round-actions .tb-context-trigger.tb-control-context > span {
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  display: inline-flex !important;
  place-items: initial !important;
  align-items: center !important;
  gap: 6px !important;
  color: inherit !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

body.toolbox-body.toolbox-body
.tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page-family="creator"][data-page]
.tb-main.tb-main-tool .tb-simple-tool-page.tb-simple-tool-page
.tb-context-round-actions .tb-context-trigger.tb-control-context > span > i,
body.toolbox-body.toolbox-body
.tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="content"]
.tb-main.tb-main-tool .tb-yiju-context .tb-context-round-actions .tb-context-trigger.tb-control-context > span > i {
  position: static !important;
  width: auto !important;
  height: auto !important;
  display: inline-block !important;
  overflow: visible !important;
  clip: auto !important;
  color: currentColor !important;
  font-size: 15px !important;
  line-height: 1 !important;
}

body.toolbox-body.toolbox-body
.tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page-family="creator"][data-page]
.tb-main.tb-main-tool .tb-simple-tool-page.tb-simple-tool-page
.tb-context-round-actions .tb-context-trigger.tb-control-context > em,
body.toolbox-body.toolbox-body
.tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="content"]
.tb-main.tb-main-tool .tb-yiju-context .tb-context-round-actions .tb-context-trigger.tb-control-context > em {
  position: static !important;
  width: auto !important;
  height: auto !important;
  display: inline !important;
  overflow: hidden !important;
  clip: auto !important;
  max-width: 48px !important;
  color: #a05d4b !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  text-overflow: ellipsis !important;
}

/* Shared components must never reveal retired or currently inactive upload shells. */
body.toolbox-body #toolboxApp[data-app-shell] .tb-main.tb-main-tool :is(
  .tb-control-upload[hidden],
  .tb-control-upload[aria-hidden="true"],
  .tb-control-upload[data-unified-upload-legacy="hidden"]
) {
  display: none !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"]
.tb-main.tb-main-tool .tb-unified-media-plus.tb-control-upload.tb-control-upload {
  border-color: var(--tb-control-upload-border) !important;
  background: var(--tb-control-upload-surface) !important;
  color: var(--tb-control-upload-text) !important;
  box-shadow: none !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"]
.tb-main.tb-main-tool .tb-unified-media-plus.tb-control-upload.tb-control-upload:is(:hover, :focus-visible) {
  border-color: #4ca89a !important;
  background: var(--tb-control-upload-hover) !important;
  color: #0f5d55 !important;
}

/* Restore labels hidden by retired round-only persona/template controls. */
body.toolbox-body.toolbox-body
#toolboxApp.tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"]
.tb-main.tb-main-tool .tb-context-round-actions .tb-context-picker::after {
  display: none !important;
  content: none !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"]
.tb-main.tb-main-tool .tb-context-round-actions .tb-context-picker,
body.toolbox-body.toolbox-body
#toolboxApp.tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"]
.tb-main.tb-main-tool .tb-context-round-actions .tb-context-trigger.tb-control-context {
  width: auto !important;
  min-width: 144px !important;
  max-width: 176px !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"]
.tb-main.tb-main-tool .tb-context-round-actions .tb-context-trigger.tb-control-context > span {
  position: static !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  display: inline-flex !important;
  place-items: initial !important;
  align-items: center !important;
  gap: 6px !important;
  overflow: visible !important;
  clip: auto !important;
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"]
.tb-main.tb-main-tool .tb-context-round-actions .tb-context-trigger.tb-control-context > span > i {
  position: static !important;
  width: auto !important;
  height: auto !important;
  display: inline-block !important;
  overflow: visible !important;
  clip: auto !important;
  color: currentColor !important;
  -webkit-text-fill-color: currentColor !important;
  font-size: 15px !important;
  line-height: 1 !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"]
.tb-main.tb-main-tool .tb-context-round-actions .tb-context-trigger.tb-control-context > em {
  position: static !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 52px !important;
  height: auto !important;
  display: inline !important;
  overflow: hidden !important;
  clip: auto !important;
  color: #a05d4b !important;
  -webkit-text-fill-color: currentColor !important;
  font-size: 11px !important;
  font-style: normal !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"]
.tb-main.tb-main-tool .tb-context-round-actions .tb-context-trigger.tb-control-context > i:last-child {
  display: none !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-theme="night"]
.tb-main.tb-main-tool .tb-context-round-actions .tb-context-trigger.tb-control-context > em {
  color: #d9a08f !important;
}

/* Content workbench controls stay readable while preserving the single action row. */
body.toolbox-body.toolbox-body
#toolboxApp.tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="content"]
.tb-main.tb-main-tool .tb-yiju-action-row .tb-yiju-upload.tb-control-upload {
  width: 124px !important;
  min-width: 124px !important;
  max-width: 124px !important;
  padding-inline: 10px !important;
  overflow: hidden !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="content"]
.tb-main.tb-main-tool .tb-yiju-action-row .tb-yiju-upload > span,
body.toolbox-body.toolbox-body
#toolboxApp.tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="content"]
.tb-main.tb-main-tool .tb-yiju-action-row .tb-yiju-upload > span > b {
  grid-column: auto !important;
  grid-row: auto !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  overflow: visible !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="content"]
.tb-main.tb-main-tool .tb-yiju-action-row .tb-yiju-upload > span {
  flex: 1 1 auto !important;
  justify-content: center !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="content"]
.tb-main.tb-main-tool .tb-yiju-action-row .tb-yiju-image-count {
  flex: 0 0 96px !important;
  width: 96px !important;
  min-width: 96px !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="content"]
.tb-main.tb-main-tool .tb-yiju-action-row .tb-yiju-inline-select:not(.tb-yiju-image-count, .compact) {
  flex: 0 0 112px !important;
  width: 112px !important;
  min-width: 112px !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="content"]
.tb-main.tb-main-tool .tb-yiju-action-row .tb-yiju-inline-select.compact {
  flex: 0 0 88px !important;
  width: 88px !important;
  min-width: 88px !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="content"]
.tb-main.tb-main-tool .tb-yiju-action-row .tb-select-trigger {
  gap: 6px !important;
  padding-inline: 8px !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="content"]
.tb-main.tb-main-tool .tb-yiju-action-row .tb-select-trigger > span {
  min-width: 0 !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="content"]
.tb-main.tb-main-tool .tb-yiju-action-row .tb-select-trigger > i {
  width: 18px !important;
  min-width: 18px !important;
  flex-basis: 18px !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="content"]
.tb-main.tb-main-tool .tb-yiju-context {
  flex: 0 0 232px !important;
  width: 232px !important;
  min-width: 232px !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="content"]
.tb-main.tb-main-tool .tb-yiju-context .tb-context-round-actions .tb-context-picker,
body.toolbox-body.toolbox-body
#toolboxApp.tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="content"]
.tb-main.tb-main-tool .tb-yiju-context .tb-context-round-actions .tb-context-trigger.tb-control-context {
  flex: 0 0 113px !important;
  width: 113px !important;
  min-width: 113px !important;
  max-width: 113px !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="content"]
.tb-main.tb-main-tool .tb-yiju-context .tb-context-trigger.tb-control-context > em {
  display: none !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="content"]
.tb-main.tb-main-tool .tb-yiju-action-row > .tb-inline-cost-summary {
  display: none !important;
}

@media (max-width: 720px) {
  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="content"]
  .tb-main.tb-main-tool .tb-yiju-context {
    flex-basis: auto !important;
    width: auto !important;
    min-width: 0 !important;
  }
}

/* Repeated controls own their content width; command labels never ellipsize. */
body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"]
.tb-main.tb-main-tool :is(
  .tb-product-image-result > header > a.tb-control,
  .tb-inline-generated-result > header > a.tb-control,
  a.tb-control-secondary
) {
  width: auto !important;
  min-width: 88px !important;
  max-width: none !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="template-library"]
.tb-template-market-search form > button.tb-btn.primary {
  width: auto !important;
  min-width: 96px !important;
  max-width: none !important;
  min-height: 42px !important;
  padding-inline: 16px !important;
  overflow: visible !important;
  color: #fff !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="template-library"]
.tb-template-market-search form > button.tb-btn.primary > span {
  display: inline !important;
  overflow: visible !important;
  color: inherit !important;
  font: inherit !important;
  white-space: nowrap !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="crop-image"]
.tb-local-settings :is(.tb-select-shell, .tb-select-trigger) {
  width: 100% !important;
  min-width: 132px !important;
  max-width: none !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="crop-image"]
.tb-local-settings .tb-select-trigger > span {
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
}

/* Product-talk is one composer: upload left, context and parameters center, submit right. */
@media (min-width: 901px) {
  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-talk"]
  .tb-smart-composer-footer.tb-unified-settings-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: end !important;
    gap: 8px !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    scrollbar-width: thin !important;
  }

  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-talk"]
  .tb-smart-composer-footer > .tb-generation-context {
    flex: 0 0 216px !important;
    width: 216px !important;
    min-width: 216px !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-talk"]
  .tb-smart-composer-footer > .tb-generation-context > :is(header, .tb-context-selected) {
    display: none !important;
  }

  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-talk"]
  .tb-generation-context-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
  }

  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-talk"]
  .tb-generation-context-grid .tb-context-picker,
  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-talk"]
  .tb-generation-context-grid .tb-context-trigger.tb-control-context {
    flex: 0 0 104px !important;
    width: 104px !important;
    min-width: 104px !important;
    max-width: 104px !important;
  }

  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-talk"]
  .tb-generation-context-grid .tb-context-trigger > em {
    display: none !important;
  }

  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-talk"]
  .tb-smart-composer-footer > .tb-unified-inline-select {
    flex: 1 1 118px !important;
    min-width: 108px !important;
  }

  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-talk"]
  .tb-smart-composer-footer > .tb-unified-count {
    flex: 0 0 90px !important;
    min-width: 90px !important;
  }

  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-talk"]
  .tb-smart-composer-footer > .tb-unified-extra {
    flex: 0 0 124px !important;
    min-width: 124px !important;
  }

  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-talk"]
  .tb-smart-composer-footer > .tb-unified-generate {
    flex: 0 0 196px !important;
    width: 196px !important;
    min-width: 196px !important;
  }
}

/* Digital-human keeps the optimization action beside its input parameters. */
@media (min-width: 901px) {
  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="digital-human"]
  .tb-digital-human-composer-footer.has-unified-media {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: end !important;
    gap: 10px !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    scrollbar-width: thin !important;
  }

  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="digital-human"]
  .tb-digital-human-composer-footer > .tb-unified-media-rail {
    flex: 0 0 104px !important;
    width: 104px !important;
    min-width: 104px !important;
  }

  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="digital-human"]
  .tb-digital-human-composer-footer > .tb-smart-audience {
    flex: 1 1 300px !important;
    min-width: 220px !important;
  }

  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="digital-human"]
  .tb-digital-human-composer-footer > .tb-smart-tone {
    flex: 0 0 190px !important;
    min-width: 190px !important;
  }

  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="digital-human"]
  .tb-digital-human-composer-footer > .tb-smart-optimize {
    flex: 0 0 158px !important;
    width: 158px !important;
    min-width: 158px !important;
    max-width: 158px !important;
  }
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="digital-human"]
.tb-smart-facts-field {
  display: grid !important;
  gap: 8px !important;
  padding: 0 14px 14px !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="digital-human"]
.tb-smart-facts-field > span {
  color: #626b76 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="digital-human"]
.tb-smart-facts-field > textarea {
  width: 100% !important;
  margin: 0 !important;
}

/* The sidebar remains compact visually while every group header has a safe hit area. */
body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"] .tb-side-group-title {
  min-height: 44px !important;
  display: flex !important;
  align-items: center !important;
  box-sizing: border-box !important;
}

/* Image-home night mode uses dark surfaces instead of light cards with white text. */
body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="image"][data-theme="night"]
.tb-image-home-studio {
  border-color: #393630 !important;
  background: #1d1b18 !important;
  color: #f2eee8 !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="image"][data-theme="night"]
.tb-image-home-studio > header {
  border-color: #3a3630 !important;
  background: #24211d !important;
  color: #f2eee8 !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="image"][data-theme="night"]
.tb-image-home-studio > header :is(h2, p, span) {
  color: #f2eee8 !important;
  -webkit-text-fill-color: currentColor !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="image"][data-theme="night"]
:is(.tb-image-home-types, .tb-image-home-form, .tb-image-home-result) {
  border-color: #3a3630 !important;
  background: #24211d !important;
  color: #f2eee8 !important;
}

@media (max-width: 900px) {
  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-page="product-talk"]
  .tb-smart-composer-footer > .tb-generation-context {
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* Product-set examples are complete five-image suites, not unrelated gallery tiles. */
body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-set"]
.tb-product-set-studio {
  width: 100% !important;
  max-width: none !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto !important;
  grid-template-areas: none !important;
  gap: 16px !important;
  overflow: visible !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-set"]
.tb-product-set-studio > :is(.tb-ecom-title, .tb-design-tabs, form.tb-ecom-board, .tb-product-suite-showcase) {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  grid-column: 1 !important;
  grid-row: auto !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-set"]
.tb-product-set-studio > form.tb-ecom-board {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto !important;
  gap: 16px !important;
  overflow: visible !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-set"]
.tb-product-set-upload[hidden][data-unified-upload-legacy="hidden"] {
  display: none !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-set"]
.tb-ecom-product-panel.tb-product-set-composer-panel {
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 14px !important;
  padding: 16px !important;
  overflow: visible !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-set"]
.tb-product-set-meta-row {
  width: 100% !important;
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) max-content !important;
  gap: 12px !important;
  align-items: end !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-set"]
.tb-product-set-meta-row .tb-product-brand {
  width: 100% !important;
  min-width: 0 !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-set"]
.tb-product-generation-settings {
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  display: grid !important;
  gap: 10px !important;
  padding: 0 !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-set"]
.tb-product-generation-settings > div {
  width: 100% !important;
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-set"]
.tb-product-generation-settings > div > label {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 6px !important;
  align-items: start !important;
  color: #626b76 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-set"]
.tb-product-generation-settings :is(.tb-select-shell, .tb-select-trigger, select) {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-set"]
.tb-product-generation-settings .tb-select-native {
  position: absolute !important;
  inset: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-set"]
.tb-product-generation-settings .tb-select-trigger {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 16px !important;
  overflow: hidden !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-set"]
.tb-product-generation-settings .tb-select-trigger > span {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-set"]
.tb-ecom-textareas {
  width: 100% !important;
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-set"]
.tb-ecom-textareas > .tb-ecom-textarea {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-set"]
.tb-ecom-textareas textarea {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  resize: vertical !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-set"]
.tb-product-set-studio > [data-product-set-result-sink] {
  display: none !important;
}

/* Batch main image: one full-width creation flow; results stay in the global task dialog. */
body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="batch-main-image"]
.tb-batch-main-studio {
  width: min(1180px, 100%) !important;
  max-width: 1180px !important;
  min-width: 0 !important;
  margin-inline: auto !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="batch-main-image"]
.tb-batch-main-studio > form.tb-specific-form {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  margin: 0 !important;
  padding: 20px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 16px !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="batch-main-image"]
.tb-batch-main-upload {
  width: 100% !important;
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr) !important;
  gap: 16px !important;
  align-items: stretch !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="batch-main-image"]
.tb-batch-main-upload > label {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="batch-main-image"]
.tb-batch-main-upload textarea {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 168px !important;
  resize: vertical !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="batch-main-image"]
.tb-batch-main-fields {
  width: 100% !important;
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 16px !important;
  align-items: end !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="batch-main-image"]
.tb-batch-main-fields > label {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="batch-main-image"]
.tb-batch-main-fields > label:nth-child(-n + 2) {
  grid-column: span 3 !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="batch-main-image"]
.tb-batch-main-fields > label:nth-child(n + 3) {
  grid-column: span 2 !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="batch-main-image"]
.tb-batch-main-fields :is(textarea, select),
body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="batch-main-image"]
.tb-batch-main-fields .tb-select-trigger {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="batch-main-image"]
.tb-batch-main-fields textarea {
  min-height: 128px !important;
  resize: vertical !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="batch-main-image"]
.tb-studio-submit {
  width: 100% !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  flex-wrap: wrap !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="batch-main-image"]
.tb-studio-submit > div {
  min-width: 0 !important;
  flex: 1 1 320px !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="batch-main-image"]
.tb-studio-submit > button {
  flex: 0 0 auto !important;
  min-width: 180px !important;
  min-height: 44px !important;
  white-space: nowrap !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="batch-main-image"]
.tb-batch-main-studio > [data-batch-main-result-sink] {
  display: none !important;
}

@media (max-width: 900px) {
  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="batch-main-image"]
  .tb-batch-main-upload {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="batch-main-image"]
  .tb-batch-main-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="batch-main-image"]
  .tb-batch-main-fields > label:nth-child(-n + 2) {
    grid-column: 1 / -1 !important;
  }

  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="batch-main-image"]
  .tb-batch-main-fields > label:nth-child(n + 3) {
    grid-column: auto !important;
  }
}

@media (max-width: 640px) {
  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="batch-main-image"]
  .tb-batch-main-studio > form.tb-specific-form {
    padding: 14px !important;
    gap: 14px !important;
  }

  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="batch-main-image"]
  .tb-batch-main-fields {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
  }

  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="batch-main-image"]
  .tb-batch-main-fields > label {
    grid-column: 1 / -1 !important;
  }

  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="batch-main-image"]
  .tb-studio-submit {
    align-items: stretch !important;
  }

  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="batch-main-image"]
  .tb-studio-submit > button {
    width: 100% !important;
  }
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-set"]
.tb-product-suite-showcase {
  display: grid !important;
  gap: 20px !important;
  margin-top: 22px !important;
  padding: 22px !important;
  border: 1px solid #e1e5eb !important;
  border-radius: 8px !important;
  background: #f7f8fa !important;
  box-shadow: none !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-set"]
.tb-product-suite-showcase > header {
  display: flex !important;
  align-items: end !important;
  justify-content: space-between !important;
  gap: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-set"]
.tb-product-suite-showcase > header > div {
  min-width: 0 !important;
  display: grid !important;
  gap: 5px !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-set"]
.tb-product-suite-showcase > header span {
  color: #e84b25 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-set"]
.tb-product-suite-showcase > header strong {
  color: #1c222b !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-set"]
.tb-product-suite-showcase > header small {
  color: #687384 !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-set"]
.tb-product-suite-showcase > header > b {
  flex: 0 0 auto !important;
  padding: 7px 10px !important;
  border: 1px solid #cbd2dc !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: #3f4855 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-set"]
.tb-product-suite-row {
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-set"]
.tb-product-suite-card {
  min-width: 0 !important;
  display: grid !important;
  grid-template-rows: auto auto minmax(0, 1fr) auto !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 14px !important;
  border: 1px solid #dfe4eb !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: 0 8px 24px rgba(25, 34, 45, .06) !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-set"]
.tb-product-suite-card > header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-set"]
.tb-product-suite-card > header > div {
  min-width: 0 !important;
  display: grid !important;
  gap: 2px !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-set"]
.tb-product-suite-card > header span {
  color: #8a94a3 !important;
  font-size: 10px !important;
  font-weight: 800 !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-set"]
.tb-product-suite-card > header strong {
  overflow: hidden !important;
  color: #20262f !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-set"]
.tb-product-suite-card > header em {
  flex: 0 0 auto !important;
  padding: 5px 8px !important;
  border: 1px solid #f2b8a9 !important;
  border-radius: 5px !important;
  background: #fff2ed !important;
  color: #a63d23 !important;
  font-size: 10px !important;
  font-style: normal !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-set"]
.tb-product-suite-card > p {
  min-height: 38px !important;
  margin: 0 !important;
  color: #66717f !important;
  font-size: 12px !important;
  line-height: 1.55 !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-set"]
.tb-product-suite-phone {
  min-width: 0 !important;
  overflow: hidden !important;
  border: 6px solid #191d23 !important;
  border-radius: 20px !important;
  background: #191d23 !important;
  box-shadow: 0 14px 30px rgba(20, 25, 32, .18) !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-set"]
.tb-product-suite-phone-bar {
  height: 34px !important;
  display: grid !important;
  grid-template-columns: 12px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 0 9px !important;
  color: #d8dde5 !important;
  font-size: 9px !important;
  font-weight: 700 !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-set"]
.tb-product-suite-phone-bar > i {
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: #43c8a0 !important;
  box-shadow: 0 0 0 3px rgba(67, 200, 160, .16) !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-set"]
.tb-product-suite-phone-bar > b {
  color: #98a2b1 !important;
  font-size: 9px !important;
  font-weight: 700 !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-set"]
.tb-product-suite-scroll {
  height: 430px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  border-radius: 12px !important;
  background: #eceff3 !important;
  scroll-behavior: smooth !important;
  scroll-snap-type: y proximity !important;
  scrollbar-color: #aab2bf transparent !important;
  scrollbar-width: thin !important;
  overscroll-behavior: contain !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-set"]
.tb-product-suite-scroll figure {
  min-width: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid #d8dde5 !important;
  border-radius: 0 !important;
  background: #fff !important;
  scroll-snap-align: start !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-set"]
.tb-product-suite-scroll figure > button {
  position: relative !important;
  width: 100% !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  cursor: zoom-in !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-set"]
.tb-product-suite-scroll figure > button:focus-visible {
  outline: 3px solid #e84b25 !important;
  outline-offset: -3px !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-set"]
.tb-product-suite-scroll figure img {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  display: block !important;
  object-fit: cover !important;
  transition: transform 180ms ease !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-set"]
.tb-product-suite-scroll figure > button:hover img {
  transform: scale(1.015) !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-set"]
.tb-product-suite-scroll figure > button > span {
  position: absolute !important;
  right: 8px !important;
  bottom: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 28px !important;
  height: 24px !important;
  padding: 0 6px !important;
  border: 1px solid rgba(255, 255, 255, .42) !important;
  border-radius: 5px !important;
  background: rgba(18, 22, 28, .76) !important;
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  backdrop-filter: blur(5px) !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-set"]
.tb-product-suite-scroll figcaption {
  min-width: 0 !important;
  display: grid !important;
  gap: 3px !important;
  padding: 10px 11px 12px !important;
  color: #222a34 !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-set"]
.tb-product-suite-scroll figcaption strong {
  color: #222a34 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-set"]
.tb-product-suite-scroll figcaption small {
  color: #738091 !important;
  font-size: 10px !important;
  line-height: 1.5 !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-set"]
.tb-product-suite-card > footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-set"]
.tb-product-suite-card > footer > span {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  color: #748091 !important;
  font-size: 10px !important;
  font-weight: 700 !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-set"]
.tb-product-suite-card > footer > button {
  min-height: 32px !important;
  padding: 0 10px !important;
  border: 1px solid #ccd3dd !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: #394452 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  cursor: zoom-in !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-set"]
.tb-product-suite-card > footer > button:hover {
  border-color: #e84b25 !important;
  color: #b8381b !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-set"][data-theme="night"]
.tb-product-suite-showcase {
  border-color: #383c43 !important;
  background: #1d2025 !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-set"][data-theme="night"]
:is(.tb-product-suite-card, .tb-product-suite-showcase > header > b) {
  border-color: #3d424a !important;
  background: #25292f !important;
  color: #edf0f4 !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-set"][data-theme="night"]
:is(.tb-product-suite-showcase > header strong, .tb-product-suite-card > header strong) {
  color: #f1f3f6 !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-set"][data-theme="night"]
:is(.tb-product-suite-showcase > header small, .tb-product-suite-card > p) {
  color: #aeb6c2 !important;
}

@media (max-width: 1100px) {
  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-set"]
  .tb-product-suite-row {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-set"]
  .tb-product-suite-card {
    scroll-snap-align: start !important;
  }
}

@media (min-width: 681px) and (max-width: 860px) {
  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-set"]
  .tb-product-suite-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 680px) {
  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-set"]
  .tb-product-suite-showcase {
    gap: 16px !important;
    margin-inline: -4px !important;
    padding: 16px 12px !important;
  }

  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-set"]
  .tb-product-suite-showcase > header {
    align-items: start !important;
    flex-direction: column !important;
  }

  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-set"]
  .tb-product-suite-showcase > header strong {
    font-size: 17px !important;
  }

  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-set"]
  .tb-product-suite-row {
    grid-template-columns: repeat(3, minmax(258px, 82vw)) !important;
    overflow-x: auto !important;
    padding-bottom: 8px !important;
    scroll-snap-type: x proximity !important;
    scrollbar-width: thin !important;
  }

  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-set"]
  .tb-product-suite-scroll {
    height: 390px !important;
  }

  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-set"]
  .tb-product-set-meta-row,
  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-set"]
  .tb-product-generation-settings > div,
  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-set"]
  .tb-ecom-textareas {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-set"]
  .tb-product-set-meta-row > .tb-btn {
    width: 100% !important;
  }
}

/* Final cross-page layout contract: enhanced selects expose one visible control only. */
body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"]
.tb-main.tb-main-tool .tb-select-shell {
  position: relative !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: visible !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"]
.tb-main.tb-main-tool .tb-select-shell > select.tb-select-native {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  width: 1px !important;
  min-width: 1px !important;
  max-width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  appearance: none !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"]
.tb-main.tb-main-tool .tb-select-shell > .tb-select-trigger {
  position: relative !important;
  z-index: 1 !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 28px !important;
  overflow: hidden !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"]
.tb-main.tb-main-tool .tb-select-shell > .tb-select-trigger > span {
  min-width: 0 !important;
  min-height: 18px !important;
  overflow: hidden !important;
  line-height: 1.4 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"]
.tb-main.tb-main-tool .tb-select-shell.open {
  z-index: 1500 !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"]
.tb-main.tb-main-tool .tb-select-shell.open > .tb-select-menu {
  z-index: 1510 !important;
}

/* Composite choice cards keep their own information layout. */
body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-page="topic-helper"]
.tb-main.tb-main-tool .tb-topic-cards > button.tb-control {
  min-height: 124px !important;
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr) !important;
  grid-template-rows: auto 1fr auto !important;
  align-items: start !important;
  justify-content: stretch !important;
  padding: 12px !important;
  text-align: left !important;
  white-space: normal !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-page="topic-helper"]
.tb-main.tb-main-tool .tb-topic-cards > button.tb-control > :where(span, strong, em, small) {
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  display: block !important;
  overflow: visible !important;
  line-height: 1.4 !important;
  text-overflow: clip !important;
  white-space: normal !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-page="topic-helper"]
.tb-main.tb-main-tool .tb-topic-cards > button.tb-control > span {
  width: 34px !important;
  height: 34px !important;
  display: grid !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-page="template-library"]
.tb-template-market-copy strong {
  min-height: 38px !important;
  line-height: 1.45 !important;
  white-space: normal !important;
  -webkit-line-clamp: 2 !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-page="structure-analysis"]
.tb-structure-form > .tb-unified-settings-row {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  display: flex !important;
  flex-wrap: wrap !important;
  overflow: visible !important;
  white-space: normal !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-page="structure-analysis"]
.tb-structure-form > .tb-unified-settings-row > :is(label, details, .tb-unified-choice, .tb-unified-inline-select) {
  flex: 1 1 150px !important;
  min-width: 140px !important;
  max-width: 220px !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-page="big-poster-note"]
.tb-creator-warning > strong {
  width: auto !important;
  min-width: max-content !important;
  max-width: none !important;
  flex: 0 0 auto !important;
  overflow: visible !important;
  white-space: nowrap !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-page="big-poster-note"]
.tb-example-image-strip article > small {
  position: static !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 38px !important;
  display: flex !important;
  align-items: center !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: #313845 !important;
  padding: 8px 10px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
  white-space: normal !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"]
:is(.tb-discover-thumb, .tb-viral-library-cover):focus-visible {
  outline: 3px solid var(--tb-control-focus) !important;
  outline-offset: 2px !important;
}

@media (max-width: 760px) {
  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"]
  .tb-main.tb-main-tool .tb-unified-media-rail {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    overflow: visible !important;
    white-space: normal !important;
  }

  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"]
  .tb-main.tb-main-tool .tb-unified-media-rail > .tb-unified-media-plus {
    flex: 1 1 92px !important;
    width: auto !important;
    min-width: 88px !important;
    max-width: 100% !important;
  }

  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"]
  .tb-main.tb-main-tool :is(.tb-context-round-actions, .tb-unified-composer-footer, .tb-smart-composer-footer, .tb-unified-settings-row) {
    min-width: 0 !important;
    max-width: 100% !important;
    flex-wrap: wrap !important;
    overflow: visible !important;
    white-space: normal !important;
  }

  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"]
  .tb-main.tb-main-tool .tb-unified-inline-select {
    flex: 1 1 128px !important;
    min-width: 104px !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"]
  .tb-main.tb-main-tool .tb-unified-settings-row > :is(label, details, .tb-unified-choice, .tb-unified-inline-select) {
    flex: 1 1 128px !important;
    width: auto !important;
    min-width: 104px !important;
    max-width: 100% !important;
  }

  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"]
  .tb-main.tb-main-tool .tb-unified-settings-row > :is(.tb-unified-generate, .tb-btn.primary) {
    flex: 1 0 100% !important;
    width: 100% !important;
    min-height: 52px !important;
    height: auto !important;
    margin-left: 0 !important;
    padding-block: 8px !important;
    white-space: normal !important;
  }

  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"]
  .tb-main.tb-main-tool .tb-unified-settings-row .tb-v6-cta-cost {
    display: block !important;
    overflow: visible !important;
    line-height: 1.35 !important;
    text-overflow: clip !important;
    white-space: normal !important;
  }

  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"]
  .tb-main.tb-main-tool .tb-select-shell > .tb-select-trigger {
    height: auto !important;
    min-height: 44px !important;
  }

  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"]
  .tb-main.tb-main-tool .tb-select-shell > .tb-select-trigger > span {
    overflow: visible !important;
    line-height: 1.35 !important;
    text-overflow: clip !important;
    white-space: normal !important;
  }

  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"]
  .tb-main.tb-main-tool .tb-tool-submit-bar > .tb-control-primary {
    width: 100% !important;
    min-height: 52px !important;
    height: auto !important;
    padding-block: 8px !important;
    overflow: visible !important;
    white-space: normal !important;
  }

  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"]
  .tb-main.tb-main-tool .tb-tool-submit-bar .tb-v6-cta-cost {
    display: block !important;
    overflow: visible !important;
    line-height: 1.35 !important;
    text-overflow: clip !important;
    white-space: normal !important;
  }

  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-page="discover-notes"]
  .tb-filter-line .tb-chip {
    width: auto !important;
    min-width: max-content !important;
    padding-inline: 10px !important;
    overflow: visible !important;
  }

  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-page="product-set"]
  .tb-product-generation-settings .tb-select-trigger > span,
  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-page="product-set"]
  .tb-product-count-stepper span {
    min-height: 18px !important;
    line-height: 18px !important;
  }

  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-page="topic-helper"]
  .tb-main.tb-main-tool .tb-topic-cards {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Model wear terminal precedence: historical select rules must not squeeze this toolbar. */
body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
.tb-main.tb-main-tool .tb-wear-action-row .tb-select-shell {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  display: block !important;
  grid-template-columns: none !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
.tb-main.tb-main-tool .tb-wear-action-row .tb-select-shell > .tb-select-trigger {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 4px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 14px !important;
  gap: 0 !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
.tb-main.tb-main-tool .tb-wear-action-row .tb-select-shell > .tb-select-trigger > span {
  min-width: 0 !important;
  overflow: visible !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
.tb-main.tb-main-tool .tb-wear-action-row .tb-resolution-segments {
  height: 42px !important;
  min-height: 42px !important;
  align-items: stretch !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
.tb-main.tb-main-tool .tb-wear-action-row .tb-resolution-segments > button {
  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  padding-block: 0 !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
.tb-main.tb-main-tool .tb-wear-action-row .tb-context-trigger.tb-control-context > span > i,
body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
.tb-main.tb-main-tool .tb-wear-action-row .tb-context-trigger.tb-control-context > em,
body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
.tb-main.tb-main-tool .tb-wear-action-row .tb-context-trigger.tb-control-context > i:last-child {
  display: none !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
.tb-main.tb-main-tool .tb-wear-action-row .tb-context-trigger.tb-control-context > span {
  overflow: visible !important;
  color: inherit !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
.tb-main.tb-main-tool .tb-wear-action-row .tb-context-picker,
body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
.tb-main.tb-main-tool .tb-wear-action-row .tb-context-trigger.tb-control-context {
  flex: 0 0 71px !important;
  width: 71px !important;
  min-width: 71px !important;
  max-width: 71px !important;
}

/* Model wear modes stay fully visible; narrow toolbars scroll only their settings track. */
body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
.tb-main.tb-main-tool .tb-wear-tabs {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 5px !important;
  padding: 6px !important;
  overflow: visible !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
.tb-main.tb-main-tool .tb-wear-tabs > label {
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 72px !important;
  margin: 0 !important;
  padding: 8px 8px 8px 32px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  align-content: center !important;
  gap: 3px !important;
  overflow: visible !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
.tb-main.tb-main-tool .tb-wear-tabs > label > input[type="radio"] {
  position: absolute !important;
  top: 10px !important;
  left: 9px !important;
  margin: 0 !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
.tb-main.tb-main-tool .tb-wear-tabs > label > :is(span, small) {
  grid-column: 1 !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: 100% !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
.tb-main.tb-main-tool .tb-wear-tabs > label > span {
  display: block !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
.tb-main.tb-main-tool .tb-wear-tabs > label > small {
  display: block !important;
  color: #687384 !important;
  font-size: 10px !important;
  line-height: 1.3 !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
.tb-main.tb-main-tool .tb-wear-tabs > a {
  grid-column: 1 / -1 !important;
  justify-self: end !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
.tb-main.tb-main-tool .tb-wear-action-row > .tb-wear-action-scroll {
  grid-column: 1 !important;
  grid-row: 1 !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
.tb-main.tb-main-tool .tb-wear-action-row > .tb-generation-context {
  grid-column: 2 !important;
  grid-row: 1 !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
.tb-main.tb-main-tool .tb-wear-action-row > .tb-btn.primary[type="submit"] {
  grid-column: 3 !important;
  grid-row: 1 !important;
}

@media (max-width: 1100px) {
  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
  .tb-main.tb-main-tool .tb-wear-tabs {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 820px) {
  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
  .tb-main.tb-main-tool .tb-wear-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
  .tb-main.tb-main-tool .tb-wear-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
  .tb-main.tb-main-tool .tb-wear-action-row {
    grid-template-columns: minmax(72px, 1fr) 136px 110px !important;
  }

  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
  .tb-main.tb-main-tool .tb-wear-action-row > .tb-generation-context,
  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
  .tb-main.tb-main-tool .tb-wear-action-row > .tb-generation-context > .tb-generation-context-grid {
    width: 136px !important;
    min-width: 136px !important;
    max-width: 136px !important;
  }

  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
  .tb-main.tb-main-tool .tb-wear-action-row .tb-context-picker,
  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
  .tb-main.tb-main-tool .tb-wear-action-row .tb-context-trigger.tb-control-context {
    flex-basis: 65px !important;
    width: 65px !important;
    min-width: 65px !important;
    max-width: 65px !important;
    padding-inline: 4px !important;
  }

  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="model-wear"]
  .tb-main.tb-main-tool .tb-wear-action-row > .tb-btn.primary[type="submit"] {
    flex-basis: 110px !important;
    width: 110px !important;
    min-width: 110px !important;
    max-width: 110px !important;
    padding-inline: 4px !important;
  }
}

/* Final sidebar collapsed-state authority: the sidebar body must really shrink. */
body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-sidebar-collapsed="true"],
body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"].is-sidebar-collapsed,
body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"].tb-sidebar-collapsed {
  --lx-sidebar: 68px !important;
  --tb-final-sidebar: 68px !important;
  grid-template-columns: 68px minmax(0, 1fr) !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-sidebar-collapsed="true"] > .tb-sidebar,
body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"].is-sidebar-collapsed > .tb-sidebar,
body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"].tb-sidebar-collapsed > .tb-sidebar {
  flex: 0 0 68px !important;
  flex-basis: 68px !important;
  width: 68px !important;
  min-width: 68px !important;
  max-width: 68px !important;
  padding: 14px 8px 12px !important;
  overflow: hidden !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-sidebar-collapsed="true"] .tb-sidebar-head,
body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"].is-sidebar-collapsed .tb-sidebar-head,
body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"].tb-sidebar-collapsed .tb-sidebar-head {
  display: grid !important;
  grid-template-columns: 1fr !important;
  justify-items: center !important;
  padding-inline: 0 !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-sidebar-collapsed="true"] .tb-sidebar :is(.tb-brand-text, .tb-side-hubs > strong, .tb-side-hubs > a span, .tb-side-hubs > a small, .tb-side-group-title > span, .tb-side-pill span, .tb-side-pill em, .tb-sidebar-profile > div, .tb-sidebar-profile > span, .tb-sidebar-profile > em, .tb-sidebar-foot span, .tb-sidebar-foot strong, .tb-sidebar-foot small, .tb-sidebar-foot em, .tb-sidebar-foot div),
body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"].is-sidebar-collapsed .tb-sidebar :is(.tb-brand-text, .tb-side-hubs > strong, .tb-side-hubs > a span, .tb-side-hubs > a small, .tb-side-group-title > span, .tb-side-pill span, .tb-side-pill em, .tb-sidebar-profile > div, .tb-sidebar-profile > span, .tb-sidebar-profile > em, .tb-sidebar-foot span, .tb-sidebar-foot strong, .tb-sidebar-foot small, .tb-sidebar-foot em, .tb-sidebar-foot div),
body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"].tb-sidebar-collapsed .tb-sidebar :is(.tb-brand-text, .tb-side-hubs > strong, .tb-side-hubs > a span, .tb-side-hubs > a small, .tb-side-group-title > span, .tb-side-pill span, .tb-side-pill em, .tb-sidebar-profile > div, .tb-sidebar-profile > span, .tb-sidebar-profile > em, .tb-sidebar-foot span, .tb-sidebar-foot strong, .tb-sidebar-foot small, .tb-sidebar-foot em, .tb-sidebar-foot div) {
  display: none !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-sidebar-collapsed="true"] .tb-sidebar :is(.tb-side-hubs > a, .tb-side-pill, .tb-sidebar-profile, .tb-sidebar-foot),
body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"].is-sidebar-collapsed .tb-sidebar :is(.tb-side-hubs > a, .tb-side-pill, .tb-sidebar-profile, .tb-sidebar-foot),
body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"].tb-sidebar-collapsed .tb-sidebar :is(.tb-side-hubs > a, .tb-side-pill, .tb-sidebar-profile, .tb-sidebar-foot) {
  grid-template-columns: 1fr !important;
  justify-items: center !important;
  justify-content: center !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

@media (max-width: 768px) {
  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-sidebar-collapsed="true"],
  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"].is-sidebar-collapsed,
  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"].tb-sidebar-collapsed {
    display: block !important;
    grid-template-columns: none !important;
  }

  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-sidebar-collapsed="true"] > .tb-sidebar,
  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"].is-sidebar-collapsed > .tb-sidebar,
  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"].tb-sidebar-collapsed > .tb-sidebar {
    width: min(286px, calc(100vw - 48px)) !important;
    min-width: 0 !important;
    max-width: none !important;
  }
}

/* Final icon-only navigation contract for the actual V1 details-based sidebar. */
body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-sidebar-collapsed="true"] .tb-side-group > a,
body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"].is-sidebar-collapsed .tb-side-group > a,
body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"].tb-sidebar-collapsed .tb-side-group > a,
body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-sidebar-collapsed="true"] .tb-side-primary > a,
body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"].is-sidebar-collapsed .tb-side-primary > a,
body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"].tb-sidebar-collapsed .tb-side-primary > a {
  display: grid !important;
  grid-template-columns: 1fr !important;
  align-items: center !important;
  justify-items: center !important;
  width: 52px !important;
  min-width: 52px !important;
  max-width: 52px !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 10px !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-sidebar-collapsed="true"] .tb-side-group > a.active,
body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"].is-sidebar-collapsed .tb-side-group > a.active,
body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"].tb-sidebar-collapsed .tb-side-group > a.active {
  background: transparent !important;
  color: #f4eee6 !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-sidebar-collapsed="true"] .tb-side-group > a > :is(span, small),
body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"].is-sidebar-collapsed .tb-side-group > a > :is(span, small),
body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"].tb-sidebar-collapsed .tb-side-group > a > :is(span, small),
body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-sidebar-collapsed="true"] .tb-side-primary > a > :is(span, small, em),
body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"].is-sidebar-collapsed .tb-side-primary > a > :is(span, small, em),
body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"].tb-sidebar-collapsed .tb-side-primary > a > :is(span, small, em) {
  display: none !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-sidebar-collapsed="true"] .tb-side-group-title,
body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"].is-sidebar-collapsed .tb-side-group-title,
body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"].tb-sidebar-collapsed .tb-side-group-title {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 52px !important;
  min-width: 52px !important;
  max-width: 52px !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: transparent !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-sidebar-collapsed="true"] .tb-side-group-title > :is(span, em),
body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"].is-sidebar-collapsed .tb-side-group-title > :is(span, em),
body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"].tb-sidebar-collapsed .tb-side-group-title > :is(span, em),
body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-sidebar-collapsed="true"] .tb-side-group-title::after,
body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"].is-sidebar-collapsed .tb-side-group-title::after,
body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"].tb-sidebar-collapsed .tb-side-group-title::after {
  display: none !important;
}

/* Product image is an authoring page: operation first, examples and real results below. */
body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-image"]
.tb-main.tb-main-tool .tb-product-image-studio {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-areas:
    "head"
    "tabs"
    "form"
    "cases"
    "result" !important;
  gap: 14px !important;
  align-items: start !important;
  margin: 0 !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-image"]
.tb-main.tb-main-tool .tb-product-image-studio > header {
  grid-area: head !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 58px !important;
  height: auto !important;
  margin: 0 !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-image"]
.tb-main.tb-main-tool .tb-product-image-studio > .tb-design-tabs {
  grid-area: tabs !important;
  min-width: 0 !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-image"]
.tb-main.tb-main-tool form[data-tool-slug="product-image"] {
  grid-area: form !important;
  width: 100% !important;
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 14px !important;
  padding: 18px !important;
  overflow: visible !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-image"]
.tb-main.tb-main-tool .tb-product-image-upload {
  grid-row: auto !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 172px !important;
  height: auto !important;
  padding: 18px !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-image"]
.tb-main.tb-main-tool form[data-tool-slug="product-image"] > .tb-form-grid {
  width: 100% !important;
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-image"]
.tb-main.tb-main-tool form[data-tool-slug="product-image"] > .tb-form-grid > .full {
  grid-column: 1 / -1 !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-image"]
.tb-main.tb-main-tool form[data-tool-slug="product-image"] > .tb-form-grid textarea {
  min-height: 112px !important;
  height: 112px !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-image"]
.tb-main.tb-main-tool form[data-tool-slug="product-image"] > .tb-studio-submit {
  position: static !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 58px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  padding: 12px 0 0 !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-image"]
.tb-main.tb-main-tool form[data-tool-slug="product-image"] > .tb-studio-submit .tb-btn.primary {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 180px !important;
  min-height: 44px !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-image"]
.tb-main.tb-main-tool .tb-product-image-studio > .tb-real-case-gallery {
  grid-area: cases !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  margin: 4px 0 0 !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-image"]
.tb-main.tb-main-tool .tb-product-image-studio > .tb-product-image-result {
  grid-area: result !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-image"]
.tb-main.tb-main-tool .tb-product-image-studio > .tb-product-image-result:has(#toolResult > .tb-empty) {
  display: none !important;
}

/* Keep the permanent shell controls inside their actual hit areas. */
body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"]
.tb-sidebar-head > .tb-brand {
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: calc(100% - 48px) !important;
  gap: 6px !important;
  overflow: hidden !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"]
.tb-sidebar-head > .tb-brand .tb-brand-mark {
  flex: 0 0 36px !important;
  width: 36px !important;
  min-width: 36px !important;
  height: 36px !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"]
.tb-sidebar-head > .tb-brand .tb-brand-mark img {
  width: 32px !important;
  height: 32px !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"]
.tb-sidebar-head > .tb-brand .tb-brand-text {
  min-width: 0 !important;
  font-size: 12px !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"]
.tb-sidebar-head > .tb-brand .tb-brand-text small {
  font-size: 9px !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"]
.tb-theme-toggle {
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  padding: 0 !important;
  overflow: hidden !important;
  font-size: 16px !important;
  line-height: 1 !important;
}

body.toolbox-body.toolbox-body
#toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"]
.tb-theme-toggle > i {
  width: 18px !important;
  height: 18px !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 18px !important;
}

@media (max-width: 1240px) {
  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-image"]
  .tb-main.tb-main-tool form[data-tool-slug="product-image"] > .tb-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 620px) {
  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-image"]
  .tb-main.tb-main-tool form[data-tool-slug="product-image"] {
    gap: 12px !important;
    padding: 14px !important;
  }

  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-image"]
  .tb-main.tb-main-tool form[data-tool-slug="product-image"] > .tb-form-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-image"]
  .tb-main.tb-main-tool form[data-tool-slug="product-image"] > .tb-form-grid > .full {
    grid-column: auto !important;
  }

  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-image"]
  .tb-main.tb-main-tool form[data-tool-slug="product-image"] > .tb-studio-submit {
    align-items: stretch !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-image"]
  .tb-main.tb-main-tool form[data-tool-slug="product-image"] > .tb-studio-submit .tb-btn.primary {
    width: 100% !important;
    min-width: 0 !important;
  }

  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-image"]
  .tb-main.tb-main-tool form[data-tool-slug="product-image"] > .tb-generation-context,
  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-image"]
  .tb-main.tb-main-tool form[data-tool-slug="product-image"] > .tb-generation-context > .tb-generation-context-grid {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-image"]
  .tb-main.tb-main-tool form[data-tool-slug="product-image"] > .tb-generation-context > .tb-generation-context-grid {
    overflow-x: auto !important;
    overflow-y: visible !important;
    overscroll-behavior-inline: contain !important;
  }

  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-image"]
  .tb-main.tb-main-tool form[data-tool-slug="product-image"] > .tb-image-resolution-control {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    overflow: hidden !important;
  }

  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-image"]
  .tb-main.tb-main-tool form[data-tool-slug="product-image"] > .tb-image-resolution-control > :is(div, output),
  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-image"]
  .tb-main.tb-main-tool form[data-tool-slug="product-image"] .tb-resolution-segments {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-image"]
  .tb-main.tb-main-tool form[data-tool-slug="product-image"] .tb-resolution-segments {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  body.toolbox-body.toolbox-body
  #toolboxApp.tb-app[data-app-shell][data-ui-revision="3"][data-ui-coherence="unified-v3"][data-page="product-image"]
  .tb-main.tb-main-tool form[data-tool-slug="product-image"] .tb-resolution-segments > button {
    width: auto !important;
    min-width: 0 !important;
    padding-inline: 4px !important;
  }
}
