/* Public video/image creation modes. The legacy intelligent-agent implementation stays hidden. */
body.studio-manual-mode #appPanel #studioView #imageCreatePanel.image-create-panel {
  position: relative !important;
  z-index: 3 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.studio-manual-mode #appPanel #studioView #imageCreatePanel.image-create-panel.hidden {
  display: none !important;
}

body.studio-image-mode #appPanel #studioView #imageCreatePanel .image-create-price {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 13px;
  border: 1px solid rgba(226, 189, 94, 0.72);
  border-radius: 18px;
  color: #f2cf73;
  -webkit-text-fill-color: currentColor;
  background: rgba(20, 14, 43, 0.24);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

body.studio-image-mode #appPanel #studioView #imageCreatePanel .image-create-title-actions {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

body.studio-image-mode #appPanel #studioView #imageCreatePanel .image-create-resolution {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 32px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 17px;
  background: rgba(20, 14, 43, 0.24);
}

body.studio-image-mode #appPanel #studioView #imageCreatePanel .image-create-resolution button {
  min-width: 38px;
  min-height: 24px;
  padding: 0 8px;
  border: 0;
  border-radius: 13px;
  color: rgba(255, 255, 255, 0.55);
  -webkit-text-fill-color: currentColor;
  background: transparent;
  box-shadow: none;
  font-size: 11px;
  font-weight: 700;
  line-height: 24px;
}

body.studio-image-mode #appPanel #studioView #imageCreatePanel .image-create-resolution button.active {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  background: linear-gradient(135deg, #4b41e0 0%, #7a70f5 100%);
}

body.studio-image-mode #appPanel #studioView #imageCreatePanel .image-create-editor {
  min-height: 250px !important;
}

body.studio-image-mode #appPanel #studioView #imageCreatePanel #imageCreatePrompt {
  min-height: 250px !important;
  padding-bottom: 24px !important;
}

body.studio-image-mode #appPanel #studioView #imageCreatePanel .image-create-reference {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-top: 14px;
}

body.studio-image-mode #appPanel #studioView #imageCreatePanel .image-create-reference-action {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 58px;
  padding: 8px 11px;
  border: 1px solid #e7e3f4;
  border-radius: 16px;
  color: #565260;
  -webkit-text-fill-color: currentColor;
  background: #fbfaff;
  box-shadow: 0 5px 16px rgba(68, 54, 137, 0.06);
  cursor: pointer;
}

body.studio-image-mode #appPanel #studioView #imageCreatePanel .image-create-reference.selected .image-create-reference-action {
  border-color: rgba(101, 81, 230, 0.32);
  background: rgba(111, 91, 235, 0.06);
}

body.studio-image-mode #appPanel #studioView #imageCreatePanel .image-create-reference-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  background: linear-gradient(135deg, #4b41e0 0%, #7a70f5 100%);
  font-size: 23px;
  font-weight: 400;
  line-height: 1;
}

body.studio-image-mode #appPanel #studioView #imageCreatePanel .image-create-reference-preview {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  object-fit: cover;
  background: #ece9f5;
}

body.studio-image-mode #appPanel #studioView #imageCreatePanel .image-create-reference-preview.visible {
  display: block;
}

body.studio-image-mode #appPanel #studioView #imageCreatePanel .image-create-reference.selected .image-create-reference-icon {
  display: none;
}

body.studio-image-mode #appPanel #studioView #imageCreatePanel .image-create-reference-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

body.studio-image-mode #appPanel #studioView #imageCreatePanel .image-create-reference-copy strong {
  overflow: hidden;
  color: #2d2938;
  -webkit-text-fill-color: currentColor;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.studio-image-mode #appPanel #studioView #imageCreatePanel .image-create-reference-copy small {
  overflow: hidden;
  color: #9691a1;
  -webkit-text-fill-color: currentColor;
  font-size: 10px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.studio-image-mode #appPanel #studioView #imageCreatePanel .image-create-reference-action-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 14px;
  color: #6450df;
  -webkit-text-fill-color: currentColor;
  background: rgba(101, 80, 226, 0.10);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

body.studio-image-mode #appPanel #studioView #imageCreatePanel .image-create-reference-remove {
  min-width: 50px;
  min-height: 58px;
  padding: 0 10px;
  border: 1px solid #ece8f3;
  border-radius: 16px;
  color: #827d8d;
  -webkit-text-fill-color: currentColor;
  background: #ffffff;
  box-shadow: none;
  font-size: 11px;
  font-weight: 600;
}

body.studio-image-mode #appPanel #studioView #imageCreatePanel .image-create-hint {
  margin: 11px 2px 0;
  color: #9693a0;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

body.studio-image-mode #appPanel #studioView #imageCreatePanel .image-create-status {
  min-height: 22px;
  margin-top: 6px;
  color: #7461dd;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

body.studio-image-mode #appPanel #studioView #imageCreatePanel .image-create-status.error {
  color: #d74747;
}

body.studio-image-mode #appPanel #studioView #imageCreatePanel .image-create-result-actions {
  display: flex;
  justify-content: center;
  margin-top: 4px;
}

body.studio-image-mode #appPanel #studioView #imageCreatePanel .image-create-result-actions.hidden {
  display: none !important;
}

body.studio-image-mode #appPanel #studioView #imageCreatePanel #imageCreateToVideoBtn {
  min-height: 36px;
  padding: 0 18px;
  border: 1px solid rgba(101, 80, 226, 0.18);
  border-radius: 18px;
  color: #6551e2;
  -webkit-text-fill-color: currentColor;
  background: rgba(101, 80, 226, 0.08);
  box-shadow: none;
  font-size: 12px;
  font-weight: 700;
}

body.studio-video-mode #appPanel #studioView #personForm .video-create-reference {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-top: 10px;
}

body.studio-video-mode #appPanel #studioView #personForm .video-create-reference-action {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 58px;
  padding: 8px 11px;
  border: 1px solid #e7e3f4;
  border-radius: 16px;
  color: #565260;
  -webkit-text-fill-color: currentColor;
  background: #fbfaff;
  box-shadow: 0 5px 16px rgba(68, 54, 137, 0.06);
  cursor: pointer;
}

body.studio-video-mode #appPanel #studioView #personForm .video-create-reference.selected .video-create-reference-action {
  border-color: rgba(101, 81, 230, 0.32);
  background: rgba(111, 91, 235, 0.06);
}

body.studio-video-mode #appPanel #studioView #personForm .video-create-reference-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  background: linear-gradient(135deg, #4b41e0 0%, #7a70f5 100%);
  font-size: 23px;
  font-weight: 400;
  line-height: 1;
}

body.studio-video-mode #appPanel #studioView #personForm .video-create-reference-preview {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  object-fit: cover;
  background: #ece9f5;
}

body.studio-video-mode #appPanel #studioView #personForm .video-create-reference-preview.visible {
  display: block;
}

body.studio-video-mode #appPanel #studioView #personForm .video-create-reference.selected .video-create-reference-icon {
  display: none;
}

body.studio-video-mode #appPanel #studioView #personForm .video-create-reference-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

body.studio-video-mode #appPanel #studioView #personForm .video-create-reference-copy strong,
body.studio-video-mode #appPanel #studioView #personForm .video-create-reference-copy small {
  overflow: hidden;
  color: #2d2938;
  -webkit-text-fill-color: currentColor;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.studio-video-mode #appPanel #studioView #personForm .video-create-reference-copy small {
  color: #9691a1;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.3;
}

body.studio-video-mode #appPanel #studioView #personForm .video-create-reference-action-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 14px;
  color: #6450df;
  -webkit-text-fill-color: currentColor;
  background: rgba(101, 80, 226, 0.10);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

body.studio-video-mode #appPanel #studioView #personForm .video-create-reference-remove {
  min-width: 50px;
  min-height: 58px;
  padding: 0 10px;
  border: 1px solid #ece8f3;
  border-radius: 16px;
  color: #827d8d;
  -webkit-text-fill-color: currentColor;
  background: #ffffff;
  box-shadow: none;
  font-size: 11px;
  font-weight: 600;
}

body.studio-video-mode #appPanel #studioView #personForm .video-create-reference-status {
  min-height: 18px;
  margin-top: 4px;
  color: #7461dd;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}

body.studio-video-mode #appPanel #studioView #personForm .video-create-reference-status.error {
  color: #d74747;
}

body.studio-image-mode #appPanel #studioView #imageCreatePanel .image-create-submit-wrap {
  margin-top: 0 !important;
}

body.studio-image-mode #appPanel #studioView #imageCreatePanel .image-create-my-works {
  align-self: center;
  min-height: 38px;
  margin: -2px 0 4px;
  padding: 0 20px;
  border: 0;
  color: #6e6a79;
  -webkit-text-fill-color: currentColor;
  background: transparent;
  box-shadow: none;
  font-size: 13px;
}

@media (max-width: 360px) {
  body.studio-image-mode #appPanel #studioView #imageCreatePanel .image-create-editor,
  body.studio-image-mode #appPanel #studioView #imageCreatePanel #imageCreatePrompt {
    min-height: 220px !important;
  }

  body.studio-image-mode #appPanel #studioView #imageCreatePanel .image-create-reference-action {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 7px;
    padding: 7px 8px;
  }

  body.studio-image-mode #appPanel #studioView #imageCreatePanel .image-create-reference-icon,
  body.studio-image-mode #appPanel #studioView #imageCreatePanel .image-create-reference-preview {
    width: 34px;
    height: 34px;
  }

  body.studio-image-mode #appPanel #studioView #imageCreatePanel .image-create-reference-action-text {
    padding: 0 8px;
  }

  body.studio-image-mode #appPanel #studioView #imageCreatePanel .image-create-title-actions {
    gap: 4px;
  }

  body.studio-image-mode #appPanel #studioView #imageCreatePanel .image-create-price {
    padding: 0 9px;
  }

  body.studio-image-mode #appPanel #studioView #imageCreatePanel .image-create-resolution button {
    min-width: 33px;
    padding: 0 6px;
  }

  body.studio-video-mode #appPanel #studioView #personForm .video-create-reference-action {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 7px;
    padding: 7px 8px;
  }

  body.studio-video-mode #appPanel #studioView #personForm .video-create-reference-icon,
  body.studio-video-mode #appPanel #studioView #personForm .video-create-reference-preview {
    width: 34px;
    height: 34px;
  }

  body.studio-video-mode #appPanel #studioView #personForm .video-create-reference-action-text {
    padding: 0 8px;
  }
}
