/* 仅覆盖六个生产工作区；原业务脚本继续维护任务、配额、表单值与结果。 */
[data-production-workspace].studio-creation-page {
  --sc-muted: #718078;
  --sc-brand-soft: #eef5f0;
  width: min(100%, 1560px);
  min-width: 0;
  gap: 22px;
  color: var(--ni-ink, #202a29);
  font-size: 14px;
}
[data-production-workspace] *,
[data-production-workspace] *::before,
[data-production-workspace] *::after { box-sizing: border-box; }
[data-production-workspace] .production-workspace__header {
  padding: 0 0 3px;
  margin: 0;
  min-width: 0;
  align-items: flex-start;
}
[data-production-workspace] .production-workspace__header :is(h1, h2) {
  margin: 0;
  font-size: 29px;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -.8px;
  color: var(--ni-ink, #202a29);
}
[data-production-workspace] .production-workspace__header p:last-child {
  max-width: 760px;
  margin: 9px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--sc-muted);
}
[data-production-workspace] .production-workspace__eyebrow {
  margin: 0 0 7px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.8px;
  line-height: 1.5;
  color: var(--ni-brand, #26715d);
}
/* 旧页面有 ID 级网格与表面样式；仅对布局和白卡片外观作有界覆盖。 */
[data-production-workspace] .studio-creation-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 36fr) minmax(0, 64fr) !important;
  gap: 22px !important;
  align-items: stretch !important;
  min-width: 0;
}
[data-production-workspace] .studio-creation-layout > * {
  grid-area: auto !important;
  grid-column: auto !important;
  width: 100%;
  min-width: 0;
  height: auto;
}
[data-production-workspace] :is(.production-workspace__form, .production-workspace__reference, .production-workspace__result) {
  min-width: 0;
  height: auto;
  align-self: stretch;
}
[data-production-workspace] .studio-creation-layout > .studio-creation-result {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
[data-production-workspace] .studio-creation-result > * { flex-shrink: 0; }
[data-production-workspace] .studio-creation-result > .studio-creation-result-body {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
[data-production-workspace] .studio-creation-result-body > * { flex-shrink: 0; min-width: 0; }
[data-production-workspace] .studio-creation-result-body > .stage { flex: 1 0 auto; }
[data-production-workspace] .studio-creation-result-body .prompt-output { flex: 1 0 auto; min-height: 0; padding: 0; }
[data-production-workspace] .studio-creation-result-body .prompt-output > * { flex-shrink: 0; }
[data-production-workspace] .studio-creation-scroll-hint {
  margin: 0;
  padding: 8px 20px;
  border-bottom: 1px solid var(--ni-border, #e6eae8);
  background: var(--sc-brand-soft);
  color: var(--ni-brand, #26715d);
  font-size: 11px;
  line-height: 1.6;
}
[data-production-workspace] .studio-creation-result-body:focus-visible { outline: 3px solid #9ecabb; outline-offset: -3px; }
[data-production-workspace] :is(.card, .wechat-panel, .studio-creation-article-output) {
  min-width: 0;
  border: 1px solid var(--ni-border, #e6eae8) !important;
  border-radius: 12px !important;
  background: var(--ni-surface, #fff) !important;
  box-shadow: 0 2px 5px rgb(32 42 41 / 2%) !important;
}
[data-production-workspace] :is(.card-head, .wechat-panel-head) {
  padding: 20px 22px 18px !important;
  border-bottom: 1px solid var(--ni-border, #e6eae8) !important;
  background: transparent !important;
}
[data-production-workspace] :is(.card-head, .wechat-panel-head) :is(h2, h3) {
  margin: 0;
  color: var(--ni-ink, #202a29);
  font-size: 17px;
  font-weight: 620;
  line-height: 1.5;
  letter-spacing: -.3px;
}
[data-production-workspace] :is(.card-head, .wechat-panel-head) p {
  margin: 7px 0 0;
  color: var(--sc-muted);
  font-size: 12px;
  line-height: 1.7;
}
[data-production-workspace] .studio-creation-input > :is(.card-head, .wechat-panel-head)::before,
[data-production-workspace] .studio-creation-result > :is(.card-head, .wechat-panel-head)::before {
  display: block;
  margin-bottom: 5px;
  color: #839087;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 1px;
}
[data-production-workspace] .studio-creation-input > :is(.card-head, .wechat-panel-head)::before { content: '01 / INPUT'; }
[data-production-workspace] .studio-creation-result > :is(.card-head, .wechat-panel-head)::before { content: '02 / RESULT'; }
[data-production-workspace] :is(.card-body, .wechat-panel-body) {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 16px;
  padding: 20px !important;
  background: transparent !important;
}
[data-production-workspace] .field {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 8px;
  margin: 0;
}
[data-production-workspace] .field + .field { margin-top: 0; }
[data-production-workspace] .field > label {
  margin: 0;
  color: #344a40;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
}
[data-production-workspace] :is(input:not([type='file']):not([type='radio']):not([type='checkbox']), select, textarea) {
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--ni-border, #e6eae8);
  border-radius: 7px;
  color: var(--ni-ink, #202a29);
  background: var(--ni-surface, #fff);
  font: inherit;
  font-size: 13px;
  line-height: 1.8;
  box-shadow: none;
}
[data-production-workspace] :is(input:not([type='file']):not([type='radio']):not([type='checkbox']), select) { min-height: 42px; padding: 9px 11px; }
[data-production-workspace] textarea { width: 100%; padding: 12px 13px; resize: vertical; }
[data-production-workspace] :is(input, select, textarea):focus { border-color: #7ba68e; }
[data-production-workspace] :is(input, textarea)::placeholder { color: #89928d; opacity: 1; }
[data-production-workspace] :is(button, a, summary, input, select, textarea) { touch-action: manipulation; }
[data-production-workspace] :is(button, a, summary, input, select, textarea):focus-visible {
  outline: 3px solid #9ecabb;
  outline-offset: 3px;
}
[data-production-workspace] .control-grid,
[data-production-workspace] .wechat-options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
  gap: 16px;
}
[data-production-workspace] .size-custom-pair { min-width: 0; gap: 7px; }
[data-production-workspace] .size-custom-pair input { width: 100%; min-width: 0; }
[data-production-workspace] :is(.size-custom-hint, .production-reference-note) { color: var(--sc-muted); font-size: 11px; line-height: 1.7; }
[data-production-workspace] .production-workspace__actions,
[data-production-workspace] .studio-creation-result-actions,
[data-production-workspace] .prototype-actions,
[data-production-workspace] .prototype-secondary-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
}
[data-production-workspace] .studio-creation-result-actions { padding-top: 16px; border-top: 1px solid var(--ni-border, #e6eae8); }
[data-production-workspace] :is(.primary-btn, .ghost-btn, .tool-btn, .compact-btn, .file-action, .file-upload-button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid var(--ni-border, #e6eae8);
  border-radius: 7px;
  background: var(--ni-surface, #fff);
  color: #51645a;
  font: inherit;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.5;
  text-align: center;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  text-decoration: none;
  box-shadow: none !important;
  transform: none !important;
  cursor: pointer;
}
[data-production-workspace] .primary-btn {
  border-color: var(--ni-brand, #26715d) !important;
  background: var(--ni-brand, #26715d) !important;
  color: #fff !important;
}
[data-production-workspace] .primary-btn:hover:not(:disabled) { border-color: #205d4d !important; background: #205d4d !important; }
[data-production-workspace] :is(.ghost-btn, .tool-btn, .compact-btn, .file-action, .file-upload-button):hover:not(:disabled) { border-color: #bfd2c7; background: var(--sc-brand-soft); color: var(--ni-brand, #26715d); }
[data-production-workspace] :is(.tool-btn, .compact-btn) { min-height: 32px; padding: 6px 10px; font-size: 11px; }
[data-production-workspace] .file-action { min-height: 29px; padding: 5px 7px; font-size: 10px; }
[data-production-workspace] button:disabled { opacity: .46; cursor: not-allowed; }
[data-production-workspace]#textToImagePage .production-workspace__actions {
  display: flex !important;
  flex-wrap: wrap;
  gap: 6px;
}
[data-production-workspace]#textToImagePage .production-workspace__actions > button {
  grid-column: auto !important;
  width: auto;
  flex: 1 1 5rem;
  padding-inline: 5px;
  font-size: 11px;
  white-space: normal;
}
[data-production-workspace] .studio-creation-details {
  min-width: 0;
  border-top: 1px solid var(--ni-border, #e6eae8);
  border-bottom: 1px solid var(--ni-border, #e6eae8);
}
[data-production-workspace] .studio-creation-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 46px;
  padding: 12px 0;
  color: #52685b;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.6;
  list-style: none;
  cursor: pointer;
}
[data-production-workspace] .studio-creation-details > summary::-webkit-details-marker { display: none; }
[data-production-workspace] .studio-creation-details > summary::after {
  content: '';
  width: 7px;
  height: 7px;
  margin: -3px 4px 0 0;
  flex: 0 0 auto;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}
[data-production-workspace] .studio-creation-details[open] > summary { margin-bottom: 0; }
[data-production-workspace] .studio-creation-details[open] > summary::after { margin-top: 3px; transform: rotate(225deg); }
[data-production-workspace] .studio-creation-details-body { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 3px 0 14px; }
[data-production-workspace]#textToImagePage .generation-rail {
  width: 100%;
  height: auto;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
[data-production-workspace]#textToImagePage .generation-rail .card-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 !important; gap: 14px; }
[data-production-workspace] .dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 18px 12px;
  border: 1px dashed #cbd8cf;
  border-radius: 8px;
  background: #fafcf9;
  text-align: center;
}
[data-production-workspace] .dropzone:hover,
[data-production-workspace] .dropzone:focus-within { border-color: #91b79d; background: var(--sc-brand-soft); }
[data-production-workspace] .dropzone:focus-within { outline: 3px solid #9ecabb; outline-offset: 3px; }
[data-production-workspace] .dropzone > span { color: var(--sc-muted); font-size: 11px; line-height: 1.7; }
[data-production-workspace] .file-upload-control { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; min-width: 0; width: 100%; }
[data-production-workspace] .file-upload-text { min-width: 0; max-width: 100%; color: var(--sc-muted); font-size: 11px; overflow-wrap: anywhere; }
[data-production-workspace] .file-list { display: flex; flex-direction: column; gap: 8px; margin: 0; min-width: 0; }
[data-production-workspace] .file-list:empty { display: none; }
[data-production-workspace] .file-item { display: grid; grid-template-columns: 54px minmax(0, 1fr); align-items: center; gap: 10px; padding: 9px; min-width: 0; border: 1px solid var(--ni-border, #e6eae8); border-radius: 8px; background: var(--ni-surface, #fff); }
[data-production-workspace] .file-item-thumb,
[data-production-workspace] .file-item img { width: 54px; height: 54px; border-radius: 5px; object-fit: cover; }
[data-production-workspace] .file-name { color: #536259; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
[data-production-workspace] .file-meta { margin-top: 3px; color: var(--sc-muted); font-size: 10px; }
[data-production-workspace] .file-actions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
[data-production-workspace] .status-box,
[data-production-workspace] .wechat-status-card { padding: 12px 14px; border: 1px solid #e4ece6; border-radius: 8px; background: #f7faf7; color: #617267; font-size: 12px; line-height: 1.75; overflow-wrap: anywhere; }
[data-production-workspace] .task-progress { margin-top: 9px; }
[data-production-workspace] .message { margin: 0; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
[data-production-workspace] .card-title-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
/* 显隐由原业务的 .visible 状态控制，避免空态暴露预览和下载。 */
[data-production-workspace] .image-tools { flex-wrap: wrap; gap: 6px; }
[data-production-workspace] .stage {
  min-height: 240px;
  overflow: visible;
  padding: 16px;
  border: 1px solid var(--ni-border, #e6eae8);
  border-radius: 9px;
  background: var(--ni-paper, #f7f8fa);
}
[data-production-workspace]#imageEditPage .production-workspace__result--side .stage { min-height: 240px; flex: 1 0 auto; }
[data-production-workspace] .stage .empty { padding: 30px 16px; color: var(--sc-muted); font-size: 13px; line-height: 1.8; }
[data-production-workspace] .production-workspace__result .result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; min-height: 0; height: auto; padding: 0; }
[data-production-workspace] .result-grid > .result-item:only-child { grid-column: 1 / -1; }
[data-production-workspace] .production-workspace__result .result-item { border: 1px solid var(--ni-border, #e6eae8); border-radius: 8px; background: var(--ni-surface, #fff); box-shadow: none; }
[data-production-workspace] .production-workspace__result .result-item-media { aspect-ratio: 4 / 3; background: #f0f2ef; }
[data-production-workspace] .production-workspace__result .result-item-media img { object-fit: contain; }
[data-production-workspace] .production-workspace__result .result-item-footer { grid-template-columns: minmax(0, 1fr); gap: 8px; min-height: 0; padding: 11px; }
[data-production-workspace] .production-workspace__result .result-item-preview-btn { width: 100%; min-height: 32px; }
[data-production-workspace] .prompt-output { display: flex; flex-direction: column; min-width: 0; gap: 18px; }
[data-production-workspace] .analysis-box { padding: 14px; border: 1px solid var(--ni-border, #e6eae8); border-radius: 8px; background: #fafcfb; color: #52645a; font-size: 13px; line-height: 1.85; overflow-wrap: anywhere; }
[data-production-workspace] .tabs,
[data-production-workspace] .studio-creation-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-width: 0; border-bottom: 1px solid var(--ni-border, #e6eae8); }
[data-production-workspace] .tab-btn,
[data-production-workspace] .studio-creation-tab { min-width: 0; min-height: 40px; padding: 9px 12px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--sc-muted); font: inherit; font-size: 12px; line-height: 1.5; cursor: pointer; box-shadow: none; }
[data-production-workspace] .tab-btn.active,
[data-production-workspace] .studio-creation-tab[aria-selected='true'] { border-bottom-color: var(--ni-brand, #26715d); color: var(--ni-brand, #26715d); background: var(--sc-brand-soft); font-weight: 600; }
[data-production-workspace]#textToImagePage #imagePrompt,
[data-production-workspace]#textToImagePage #imageNegativePrompt { min-height: 132px; height: 132px; max-height: 132px; overflow: auto; resize: none; font-size: 13px; }
[data-production-workspace]#imageEditPage #editInstruction { min-height: 120px; height: 140px; }
[data-production-workspace]#promptOptimizePage #optimizePrompt { min-height: 260px; height: auto; flex: 1 1 auto; }
[data-production-workspace]#imageToPromptPage #generatedPrompt { flex: 0 0 auto; min-height: 320px; height: auto; max-height: none; overflow: hidden; resize: none; }
[data-production-workspace]#imageToPromptPage #promptAnalysis,
[data-production-workspace]#imageToPromptPage #englishPrompt { flex: 1 0 auto; min-height: 320px; height: auto; overflow: visible; }
[data-production-workspace]#promptOptimizePage :is(#optimizedPrompt, #optimizedEnglishPrompt, #optimizedEnglishNegativePrompt) { flex: 0 0 auto; min-height: 220px; height: 220px; max-height: 220px; overflow: auto; resize: none; padding: 15px 17px; line-height: 1.9; background: #f8faf9; border-radius: 9px; }
[data-production-workspace]#promptOptimizePage .studio-creation-input { display: flex; flex-direction: column; }
[data-production-workspace]#promptOptimizePage .studio-creation-input > .card-body { flex: 1 1 auto; }
[data-production-workspace]#promptOptimizePage .optimize-description-field { flex: 1 1 auto; }
[data-production-workspace]#promptOptimizePage .studio-optimize-title-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
[data-production-workspace]#promptOptimizePage #sendOptimizedBtn { min-height: 40px; padding: 9px 16px; flex: 0 0 auto; white-space: nowrap; }
[data-production-workspace]#promptOptimizePage .studio-output-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
[data-production-workspace]#promptOptimizePage .studio-output-heading .file-action { min-height: 32px; padding: 5px 8px; font-size: 11px; }
[data-production-workspace]#productPrototypePage #prototypePromptPreview { min-height: 180px; height: 220px; }
[data-production-workspace]#productPrototypePage .prototype-mode-switch { padding: 5px; gap: 5px; border: 1px solid var(--ni-border, #e6eae8); border-radius: 8px; background: var(--ni-paper, #f7f8fa); }
[data-production-workspace]#productPrototypePage .prototype-mode-option { min-height: 40px; padding: 9px 6px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #66776c; font-size: 12px; box-shadow: none; }
[data-production-workspace]#productPrototypePage .prototype-mode-switch input:checked + .prototype-mode-option { border-color: #d6e3da; background: var(--ni-surface, #fff); color: var(--ni-brand, #26715d); box-shadow: 0 1px 3px rgb(32 42 41 / 4%); }
[data-production-workspace]#productPrototypePage .prototype-mode-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
[data-production-workspace]#productPrototypePage .prototype-mode-fields > .field:last-child { grid-column: 1 / -1; }
[data-production-workspace]#productPrototypePage :is(#prototypeCoreFeatures, #prototypeStructureDetail, #prototypeComponentStates) { min-height: 80px; height: 96px; }
[data-production-workspace]#productPrototypePage :is(.prototype-actions, .prototype-secondary-actions) { display: flex; flex-wrap: wrap; margin: 0; }
[data-production-workspace]#productPrototypePage :is(.prototype-actions, .prototype-secondary-actions) > button { width: auto; flex: 1 1 8rem; }
[data-production-workspace] .production-workspace__history { grid-column: 1 / -1; min-width: 0; margin: 0; }
[data-production-workspace] .recent-history-head h2 { font-size: 16px; }
[data-production-workspace] .recent-history-head p { font-size: 12px; }
[data-production-workspace] .recent-history-body { gap: 16px; }
[data-production-workspace] .recent-history-table-wrap { min-width: 0; max-width: 100%; overflow-x: auto; border-color: var(--ni-border, #e6eae8); border-radius: 8px; }
[data-production-workspace] .recent-history-pagination { flex-wrap: wrap; gap: 8px; min-width: 0; }
[data-production-workspace]#wechatArticlePage .wechat-hero { display: block; grid-template-columns: none; gap: 0; margin: 0; }
[data-production-workspace]#wechatArticlePage .wechat-hero-main { min-height: 0; padding: 0 0 3px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
[data-production-workspace]#wechatArticlePage .wechat-hero-main::after { content: none; }
[data-production-workspace]#wechatArticlePage .wechat-hero h2 { margin: 0; font-size: 29px; line-height: 1.3; letter-spacing: -.8px; color: var(--ni-ink, #202a29); }
[data-production-workspace]#wechatArticlePage .wechat-hero p { margin: 9px 0 0; font-size: 13px; line-height: 1.7; color: var(--sc-muted); }
[data-production-workspace]#wechatArticlePage .wechat-hero .wechat-kicker { margin: 0 0 7px; color: var(--ni-brand, #26715d); font-size: 10px; font-weight: 600; letter-spacing: 1.8px; }
[data-production-workspace]#wechatArticlePage .wechat-panel-head h3 { font-size: 17px; letter-spacing: -.3px; }
[data-production-workspace]#wechatArticlePage .studio-creation-input { display: flex; flex-direction: column; }
[data-production-workspace]#wechatArticlePage .studio-creation-input > .wechat-panel-body { flex: 1 1 auto; }
[data-production-workspace]#wechatArticlePage .wechat-source-field { flex: 1 1 auto; }
[data-production-workspace]#wechatArticlePage #wechatSourceText { min-height: 260px; height: auto; flex: 1 1 auto; }
[data-production-workspace]#wechatArticlePage .wechat-options-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
[data-production-workspace]#wechatArticlePage .wechat-toggle-row { flex-wrap: wrap; gap: 7px; padding: 12px; border-color: var(--ni-border, #e6eae8); border-radius: 8px; background: #f8fbf8; }
[data-production-workspace]#wechatArticlePage .wechat-toggle-row label { font-size: 12px; font-weight: 550; color: #425c4c; }
[data-production-workspace]#wechatArticlePage .wechat-toggle-row input { accent-color: var(--ni-brand, #26715d); }
[data-production-workspace]#wechatArticlePage .wechat-toggle-row > span { color: var(--sc-muted); font-size: 11px; }
[data-production-workspace] .studio-creation-results { display: flex; flex-direction: column; min-width: 0; gap: 0; }
/* 公众号复用原状态卡作主卡，标题和全部输出保持满宽。 */
[data-production-workspace] .studio-creation-results > * { width: 100%; min-width: 0; align-self: stretch; }
[data-production-workspace] .studio-creation-article-output { overflow: visible; }
[data-production-workspace] .studio-creation-tabs { padding: 9px 15px 0; }
[data-production-workspace]#wechatArticlePage .studio-creation-tab-panel { width: 100%; margin: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
[data-production-workspace]#wechatArticlePage .studio-creation-tab-panel.wechat-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
[data-production-workspace]#wechatArticlePage .studio-creation-tab-panel > .wechat-panel { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
[data-production-workspace]#wechatArticlePage .wechat-preview { min-height: 340px; height: auto; max-height: none; overflow: visible; padding: 22px; border: 1px solid var(--ni-border, #e6eae8); border-radius: 8px; background: var(--ni-surface, #fff); color: var(--ni-ink, #202a29); font-size: 14px; line-height: 1.9; overflow-wrap: anywhere; }
[data-production-workspace]#wechatArticlePage .wechat-preview img { max-width: 100%; height: auto; border-radius: 7px; }
[data-production-workspace]#wechatArticlePage .wechat-code { min-height: 340px; height: auto; max-height: none; overflow: hidden; resize: none; padding: 16px; border-color: var(--ni-border, #e6eae8); border-radius: 8px; background: #f8faf9; color: #40574a; font-size: 12px; line-height: 1.8; }
[data-production-workspace]#wechatArticlePage .wechat-result-actions { display: flex; flex-wrap: wrap; gap: 8px; }
[data-production-workspace]#wechatArticlePage .wechat-chip,
[data-production-workspace]#wechatArticlePage .wechat-plan-item,
[data-production-workspace]#wechatArticlePage .wechat-check-item { padding: 12px 14px; border: 1px solid var(--ni-border, #e6eae8); border-radius: 7px; background: #fafcfb; color: #56675b; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
[data-production-workspace]#wechatArticlePage .wechat-panel-body { display: flex; flex-direction: column; }
[data-production-workspace]#wechatArticlePage .wechat-panel-body > div > h3 { margin: 0 0 10px; color: #42584a; font-size: 13px; font-weight: 600; }
[data-production-workspace]#wechatArticlePage .wechat-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
[data-production-workspace]#wechatArticlePage .wechat-gallery figure { border: 1px solid var(--ni-border, #e6eae8); border-radius: 8px; box-shadow: none; }

/* 只隔离桌面结果的内在尺寸；输入自然高度决定整行，长结果留在可聚焦滚动区。 */
@media (min-width: 1101px) {
  [data-production-workspace] .studio-creation-result > .studio-creation-result-body { contain: size; overflow: auto; scrollbar-gutter: stable; }
}
@media (max-width: 1100px) {
  [data-production-workspace] .studio-creation-result > .studio-creation-result-body { contain: none; overflow: visible; flex: 0 0 auto; }
  [data-production-workspace] .studio-creation-scroll-hint { display: none; }
  [data-production-workspace] .studio-creation-layout { grid-template-columns: minmax(0, 1fr) !important; gap: 18px !important; }
  [data-production-workspace] .stage,
  [data-production-workspace]#imageEditPage .production-workspace__result--side .stage { min-height: 320px; }
}
@media (max-width: 560px) {
  [data-production-workspace].studio-creation-page { gap: 18px; }
  [data-production-workspace] .production-workspace__header :is(h1, h2),
  [data-production-workspace]#wechatArticlePage .wechat-hero h2 { font-size: 26px; }
  [data-production-workspace] :is(.card-head, .wechat-panel-head) { padding: 17px 16px 15px !important; }
  [data-production-workspace] :is(.card-body, .wechat-panel-body) { padding: 16px !important; gap: 17px; }
  [data-production-workspace]#textToImagePage .generation-rail .card-body,
  [data-production-workspace]#productPrototypePage .prototype-mode-fields,
  [data-production-workspace] :is(.control-grid, .wechat-options-grid),
  [data-production-workspace]#wechatArticlePage .wechat-options-grid { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  [data-production-workspace] .production-workspace__actions > button { flex: 1 1 auto; padding-inline: 10px; }
  [data-production-workspace]#textToImagePage .production-workspace__actions > button { padding-inline: 4px; }
  [data-production-workspace] .production-workspace__result .result-grid,
  [data-production-workspace]#wechatArticlePage .wechat-gallery { grid-template-columns: minmax(0, 1fr); }
  [data-production-workspace] .studio-creation-tabs { padding-inline: 9px; }
  [data-production-workspace] .studio-creation-tab { padding-inline: 8px; font-size: 11px; }
  [data-production-workspace] .stage,
  [data-production-workspace]#imageEditPage .production-workspace__result--side .stage { min-height: 260px; padding: 10px; }
  [data-production-workspace]#wechatArticlePage .wechat-preview { padding: 16px; }
}
[data-production-workspace].hidden,
[data-production-workspace] .hidden,
[data-production-workspace] [hidden],
[data-production-workspace] .studio-creation-redundant { display: none !important; }

/* 文字与图文主结果卡自然撑高并与输入卡等高；优化长文仅在固定输出框内滚动。 */
[data-production-workspace]#wechatArticlePage .studio-creation-result > .studio-creation-result-body,
[data-production-workspace]#imageToPromptPage .studio-creation-result > .studio-creation-result-body,
[data-production-workspace]#promptOptimizePage .studio-creation-result > .studio-creation-result-body { contain: none; overflow: visible; }
[data-production-workspace]#textToImagePage .studio-reference-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
[data-production-workspace]#textToImagePage .studio-reference-optional { margin-left: 6px; color: #86968c; font-size: 11px; font-weight: 400; }
[data-production-workspace]#textToImagePage .studio-reference-count { color: #84938b; font-size: 11px; font-variant-numeric: tabular-nums; }
[data-production-workspace]:is(#textToImagePage, #imageToPromptPage, #imageEditPage) .studio-reference-picker { padding: 19px 15px 16px; border-color: #cbdcd2; border-radius: 10px; background: #f8fbf9; }
[data-production-workspace]:is(#textToImagePage, #imageToPromptPage, #imageEditPage) .studio-reference-picker:is(:hover, .is-dragging) { border-color: #6f9c87; background: #eff7f2; }
[data-production-workspace]:is(#textToImagePage, #imageToPromptPage, #imageEditPage) .studio-reference-picker-main { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px; }
[data-production-workspace]:is(#textToImagePage, #imageToPromptPage, #imageEditPage) .studio-reference-choose { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 14px; min-height: 40px; margin: 0; border: 1px solid #bfd3c7; border-radius: 7px; background: #fff; color: #2c715d; font-size: 12px; font-weight: 550; cursor: pointer; overflow: hidden; }
[data-production-workspace]:is(#textToImagePage, #imageToPromptPage, #imageEditPage) .studio-reference-choose:hover { border-color: #7ba58f; background: #f3f8f5; }
[data-production-workspace]:is(#textToImagePage, #imageToPromptPage, #imageEditPage) .studio-reference-choose:focus-within { outline: 3px solid #9ecabb; outline-offset: 3px; }
[data-production-workspace]:is(#textToImagePage, #imageToPromptPage, #imageEditPage) .studio-reference-choose input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
[data-production-workspace]:is(#textToImagePage, #imageToPromptPage, #imageEditPage) .is-disabled .studio-reference-choose { opacity: .55; }
[data-production-workspace]:is(#textToImagePage, #imageToPromptPage, #imageEditPage) .studio-reference-choose input[type="file"]:disabled { cursor: not-allowed; }
[data-production-workspace]:is(#textToImagePage, #imageToPromptPage, #imageEditPage) .studio-reference-drag-hint { color: #718479; font-size: 11px; }
[data-production-workspace]:is(#textToImagePage, #imageToPromptPage, #imageEditPage) .studio-reference-help { margin: 11px 0 0; color: #7b8a81; font-size: 11px; line-height: 1.8; text-align: center; }
@media (max-width: 1100px) {
  [data-production-workspace]#promptOptimizePage #optimizePrompt { min-height: 190px; }
}
@media (max-width: 560px) {
  [data-production-workspace]:is(#textToImagePage, #imageToPromptPage, #imageEditPage) .studio-reference-choose { min-height: 44px; }
  [data-production-workspace]#promptOptimizePage :is(#optimizedPrompt, #optimizedEnglishPrompt, #optimizedEnglishNegativePrompt) { padding: 13px; font-size: 14px; }
}

/* 删除及移除操作保持危险色，不继承普通按钮的绿色悬浮态。 */
[data-production-workspace] button.danger { color: var(--ni-danger, #b42318); border-color: #f0d5ce; background: #fff7f5; }
[data-production-workspace] button.danger:hover:not(:disabled) { color: #923e35; border-color: #ddb0a4; background: #fbe5de; }
