/* 项目创作的 AI 润色弹窗沿用画布 / 智能体窗口的视觉布局。 */
html .modal-card.prompt-polish-modal {
  width: min(850px, calc(100vw - 40px));
  max-height: 90dvh;
  box-sizing: border-box;
  display: block;
  overflow: auto;
  padding: 22px;
  border-radius: 14px;
}
html .prompt-polish-modal > .modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  margin: 0 0 12px;
  border: 0;
}
html .prompt-polish-modal > .modal-head .kicker,
html .prompt-polish-modal > .modal-head p {display:none}
html .prompt-polish-modal > .modal-head h2 {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
}
html .prompt-polish-modal .prompt-polish-body {
  display: grid;
  gap: 0;
  overflow: visible;
  padding: 0;
}
html .prompt-polish-modal .prompt-polish-body label {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  color: inherit;
  font-size: 13px;
}
html .prompt-polish-modal .prompt-polish-body select {
  width: 100%;
  box-sizing: border-box;
}
html .prompt-polish-modal .prompt-polish-body textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 140px;
  height: 140px;
  max-height: 50dvh;
  margin: 14px 0;
  padding: 12px;
  resize: vertical;
  line-height: 1.5;
  font-size: 14px;
  border-radius: 8px;
}
html .prompt-polish-modal .prompt-polish-estimate {
  margin: 12px 0;
  padding: 0;
  border: 0;
  background: transparent;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
html .prompt-polish-modal .prompt-polish-estimate small {font-size:12px}
html .prompt-polish-modal > .modal-actions {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  border: 0;
}
html .prompt-polish-modal > .modal-actions button {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 7px;
  font-size: 13px;
}
/* 画布润色操作按钮采用中性描边，深浅色均保持清晰。 */
html[data-theme=dark] .prompt-polish-modal > .modal-actions button {
  background: #191919 !important;
  color: #ededf1 !important;
  border: 1px solid #555 !important;
}
html[data-theme=light] .prompt-polish-modal > .modal-actions button {
  background: #fff !important;
  color: #24242a !important;
  border: 1px solid #c3c6b9 !important;
}
html .prompt-polish-modal > .modal-actions button:disabled {opacity:.45;cursor:not-allowed}

/* 项目 AI 创作的当前媒体模式使用品牌紫光。 */
html[data-theme] .preserved-composer .composer-media-type-switch > button[aria-selected="true"] {
  background: linear-gradient(145deg, #c4ed39, #87a520) !important;
  border-color: #e3ff83 !important;
  color: #fff !important;
  box-shadow: inset 0 0 8px #edffaf55, 0 0 12px #c5ed3a85 !important;
}
html[data-theme] .preserved-composer .composer-media-type-switch > button[aria-selected="true"] > svg {
  color: #fff !important;
  filter: drop-shadow(0 0 4px #f0ffbb);
}
html[data-theme] .preserved-composer .composer-media-type-switch > button:focus-visible {
  outline-color: #e3ff83;
}
