html,
body,
.ant-col,
.ant-switch,
.ant-row,
.ant-input,
.ant-tabs,
.ant-btn {
  font-family: "Noto Sans SC", system-ui, sans-serif !important;
}
#app.__ps_darkest__ {
  --sdppp-host-background-color: #535353;
  --sdppp-host-text-color: #F0F0F0;
  --sdppp-host-text-color-secondary: #F0F0F0;
  --sdppp-widget-hover-text-color: #efefef;
  --sdppp-widget-background-color: #252525;
  --sdppp-widget-hover-background-color: #080808;
  --sdppp-widget-border-color: #252525;
  --sdppp-widget-box-background: #252525;
  --sdppp-primary-color: #FEDDAF;
}
#app.__ps_dark__ {
  --sdppp-host-background-color: #535353;
  --sdppp-host-text-color: #F0F0F0;
  --sdppp-host-text-color-secondary: #F0F0F0;
  --sdppp-widget-hover-text-color: #efefef;
  --sdppp-widget-background-color: #252525;
  --sdppp-widget-hover-background-color: #252525;
  --sdppp-widget-border-color: #252525;
  --sdppp-widget-box-background: #252525;
  --sdppp-primary-color: #FEDDAF;
}
#app.__ps_light__ {
  --sdppp-host-background-color: #6c6c6c;
  --sdppp-host-text-color: #fff;
  --sdppp-host-text-color-secondary: #d6d6d6;
  --sdppp-widget-hover-text-color: #efefef;
  --sdppp-widget-background-color: #8d8d8d;
  --sdppp-widget-hover-background-color: #7d7d7d;
  --sdppp-widget-border-color: #c3c3c3;
}
#app.__ps_lightest__ {
  --sdppp-host-background-color: #939393;
  --sdppp-host-text-color: #000000;
  --sdppp-host-text-color-secondary: #333333;
  --sdppp-widget-hover-text-color: #323232;
  --sdppp-widget-background-color: #d0d0d0;
  --sdppp-widget-hover-background-color: #c8c8c8;
  --sdppp-widget-border-color: #bcbcbc;
}
#app {
  background-color: var(--sdppp-host-background-color);
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 8px;
  overflow-y: scroll;
  scrollbar-width: none;
}
#app .app-select {
  margin-bottom: 8px;
}
#app .ant-slider-handle::after {
  background-color: #fff !important;
}
#app .ant-slider .ant-slider-track {
  background-color: #FEDDAF !important;
}
#app .ant-input,
#app .ant-select-selector {
  border: none !important;
  box-shadow: none !important;
  border-radius: 5px !important;
  padding: 0 9px !important;
  font-size: 10px;
  background-color: var(--sdppp-widget-box-background);
}
#app .ant-select {
  height: 28px;
}
#app .ant-select-dropdown {
  background-color: #252525;
}
#app .ant-select-dropdown .ant-select-item-option-active:not(.ant-select-item-option-disabled) {
  background-color: #3E3E3E;
}
#app .ant-select-dropdown .ant-select-item-option-selected:not(.ant-select-item-option-disabled) {
  background-color: #FEDDAF;
  color: #000;
}
#app textarea.ant-input {
  padding: 2px 9px !important;
  min-height: 78px !important;
  line-height: 19px !important;
  background-color: var(--sdppp-widget-box-background) !important;
}
#app .ant-select-dropdown .ant-select-item {
  font-size: 10px;
  line-height: 18px;
}
#app .param-label {
  font-size: 13px;
  line-height: 19px;
  color: #F0F0F0;
}
.edit {
  /* display: none; */
  width: 100%;
  height: 100%;
  padding: 20px;
  overflow-y: auto;
  color: var(--sdppp-host-text-color);
  flex-grow: 1;
}
.list-error-label {
  display: block;
  color: #ff4d4f;
  font-size: 12px;
  line-height: 1.2;
  margin-bottom: 10px;
}
.edit.active {
  display: block;
}
.edit h3 {
  margin-bottom: 15px;
  color: #34d178;
}
.category-info {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  margin-bottom: 15px;
}
.progress-container {
  margin: 15px 0;
}
.progress-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}
.progress-bar {
  width: 100%;
  height: 6px;
  background-color: #384152;
  border-radius: 3px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background-color: #34d178;
  border-radius: 3px;
  transition: width 0.3s ease;
}
.execute-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  gap: 10px;
}
.execute-btn {
  flex: 1;
  height: 30px;
  background-color: #34d178;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.cancel-btn {
  flex: 1;
  height: 30px;
  background-color: #ff4d4f;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* 新增重置按钮样式 */
.reset-actions {
  margin-top: 15px;
  display: flex;
  justify-content: flex-end;
}
.reset-btn {
  width: 100%;
  height: 30px;
  background-color: #384152;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}
.queue-info {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}
.params-title {
  font-size: 14px;
  color: #34d178;
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.param-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
}
.param-input {
  width: 100%;
  height: 25px;
  background-color: #384152;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  padding: 0 8px;
  color: white;
  font-size: 12px;
}
.param-select {
  width: 100%;
  height: 25px;
  background-color: #384152;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  padding: 0 8px;
  color: white;
  font-size: 12px;
}
.param-textarea {
  width: 100%;
  min-height: 60px;
  background-color: #384152;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  padding: 8px;
  color: white;
  font-size: 12px;
  resize: vertical;
}
.inline-params-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.inline-param {
  width: 48%;
}
.inline-param .param-label {
  margin-bottom: 5px;
}
.inline-param .param-input {
  width: 100%;
}
.sdppp-menu-workflow-edit-wrap {
  font-size: 12px;
  width: 100%;
  height: 100%;
}
.sdppp-menu-workflow-edit-wrap p {
  margin: 0;
  padding: 0;
  color: var(--descrip-text);
}
.workflow-edit-content {
  color: var(--sdppp-host-text-color-secondary);
  gap: 8px;
  display: flex;
  flex-direction: column;
}
/* .workflow-edit-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
} */
.workflow-edit-field {
  display: flex;
  flex-direction: column;
  width: 100%;
  word-break: break-all;
}
/* @media (min-width: 639px) {
    .workflow-edit-content {
        flex-wrap: wrap;
        height: 100%;
        overflow-y: hidden;
        overflow-x: scroll;
    }

    .workflow-edit-field {
        max-width: 320px;
    }
} */
/* .workflow-edit-field-title {
    color: var(--fg-color);
    font-size: 14px;
    border-left: 4px solid rgba(127, 127, 127, .4);
    padding: 2px 2px 2px 5px;
    margin: 3px 0;
    display: inline-flex;
} */
.workflow-edit-field {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 4px;
}
.workflow-edit-field img {
  background-color: rgba(255, 255, 255, 0.1);
}
.quick-setup {
  flex: 12;
}
.quick-setup button {
  padding: 4px 8px;
  /* 增加垂直内边距 */
  background-color: rgba(39, 174, 96, 0.5);
  border-radius: 4px;
  border: none;
  color: white;
  font-size: 12px;
  letter-spacing: 1px;
  cursor: pointer;
  text-align: center;
  /* 文字居中 */
  white-space: nowrap;
  width: 100%;
}
.image-select-container {
  border-radius: 8px;
  transition: all 0.3s;
}
.image-select-container .ant-upload-wrapper {
  width: 100%;
}
.image-select-container .ant-upload-wrapper .ant-upload {
  width: 100%;
  display: flex;
}
.image-select-container .image-select-empty {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--sdppp-widget-border-color);
  border-radius: 6px;
  margin-bottom: 16px;
}
.image-select-container .image-select-empty .empty-content {
  text-align: center;
}
.image-select-container .image-preview-container {
  position: relative;
  background: var(--sdppp-widget-box-background);
  border-radius: 8px;
}
.image-select-container .image-preview-container .preview-action-buttons {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: flex;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}
.image-select-container .image-preview-container:hover .preview-action-buttons {
  opacity: 1;
}
.image-select-container .image-preview-container .image-preview-empty {
  height: 100%;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-select-container .image-preview-container .image-preview-empty .empty-content {
  text-align: center;
  color: var(--sdppp-host-text-color-secondary);
}
.image-select-container .image-preview-container .image-preview-row {
  height: 100%;
  min-height: 96px;
}
.image-select-container .image-preview-container .image-preview-row.single-image .image-info-col {
  display: flex;
  align-items: stretch;
}
.image-select-container .image-preview-container .image-preview-row.single-image .image-info-panel {
  width: 100%;
  height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.image-select-container .image-preview-container .image-preview-row.single-image .image-info-panel .info-header .info-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--sdppp-host-text-color);
  margin-bottom: 2px;
}
.image-select-container .image-preview-container .image-preview-row.single-image .image-info-panel .info-header .info-status {
  font-size: 10px;
  color: var(--sdppp-host-text-color-secondary);
  padding: 1px 6px;
  background-color: var(--sdppp-widget-border-color);
  border-radius: 8px;
  display: inline-block;
}
.image-select-container .image-preview-container .image-preview-row.single-image .image-info-panel .info-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 4px;
  margin: 6px 0;
}
.image-select-container .image-preview-container .image-preview-row.single-image .image-info-panel .info-details .info-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}
.image-select-container .image-preview-container .image-preview-row.single-image .image-info-panel .info-details .info-item .info-label {
  color: var(--sdppp-host-text-color-secondary);
  font-weight: normal;
}
.image-select-container .image-preview-container .image-preview-row.single-image .image-info-panel .info-details .info-item .info-value {
  color: var(--sdppp-host-text-color);
  font-weight: 500;
}
.image-select-container .image-preview-container .image-preview-row.single-image .image-info-panel .info-actions {
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-select-container .image-preview-container .image-preview-row.single-image .image-info-panel .info-actions .ant-btn {
  height: 24px;
  font-size: 11px;
  border-radius: 3px;
}
.image-select-container .image-preview-container .image-preview-row.single-image .preview-image-col {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.image-select-container .image-preview-container .image-preview-row .preview-image-col {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.image-select-container .image-preview-container .image-preview-row .preview-image-wrapper {
  width: 100%;
  height: 100px;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  transition: border-color 0.2s ease-in-out;
  position: relative;
}
.image-select-container .image-preview-container .image-preview-row .preview-image-wrapper:hover {
  border-color: var(--sdppp-widget-border-color);
}
.image-select-container .image-preview-container .image-preview-row .preview-image-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
  pointer-events: none;
  z-index: 1;
}
.image-select-container .image-preview-container .image-preview-row .preview-image-wrapper:hover::after {
  opacity: 1;
}
.image-select-container .image-preview-container .image-preview-row .preview-image-wrapper::before {
  content: '🔍';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 16px;
  color: white;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
  z-index: 2;
  pointer-events: none;
}
.image-select-container .image-preview-container .image-preview-row .preview-image-wrapper:hover::before {
  opacity: 1;
}
.image-select-container .image-preview-container .image-preview-row .preview-image-wrapper.single {
  background-color: var(--sdppp-widget-background-color);
  border: 1px solid var(--sdppp-widget-border-color);
}
.image-select-container .image-preview-container .image-preview-row .preview-image-wrapper.ellipsis {
  border: 1px dashed var(--sdppp-widget-border-color);
  color: var(--sdppp-host-text-color-secondary);
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}
.image-select-container .image-preview-container .image-preview-row .preview-image-wrapper.ellipsis::after,
.image-select-container .image-preview-container .image-preview-row .preview-image-wrapper.ellipsis::before {
  display: none;
}
.image-select-container .image-preview-container .image-preview-row .preview-image-wrapper.ellipsis:hover {
  background-color: var(--sdppp-widget-border-color);
  border-color: var(--sdppp-host-text-color-secondary);
  color: var(--sdppp-host-text-color);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.image-select-container .image-preview-container .image-preview-row .preview-image-wrapper.ellipsis:active {
  transform: translateY(0);
}
.image-select-container .image-preview-container .image-preview-row .preview-image-wrapper.ellipsis .ellipsis-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 16px;
  transition: all 0.2s ease-in-out;
}
.image-select-container .image-preview-container .image-preview-row .preview-image-wrapper.ellipsis .ellipsis-content .ellipsis-count {
  font-size: 12px;
  opacity: 0.7;
  transition: opacity 0.2s ease-in-out;
}
.image-select-container .image-preview-container .image-preview-row .preview-image-wrapper.ellipsis:hover .ellipsis-content .ellipsis-count {
  opacity: 1;
}
.image-select-container .image-preview-container .image-preview-row .preview-image-wrapper .preview-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.image-select-container .image-preview-container .image-preview-row .preview-image-wrapper .ant-image-mask {
  background-color: rgba(255, 255, 255, 0.5);
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}
.image-select-container .image-preview-container .image-preview-row .preview-image-wrapper .ant-image-mask .ant-image-mask-info {
  color: var(--sdppp-host-text-color);
  font-size: 14px;
}
.image-select-container .image-preview-container .image-preview-row .preview-image-wrapper:hover .ant-image-mask {
  opacity: 1;
}
.image-select-container .image-preview-container .image-preview-row-process {
  position: relative;
}
.image-select-container .image-preview-container .image-preview-row-process .image-info-col {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  pointer-events: none;
}
.image-select-container .image-preview-container .image-preview-row-process .image-info-col .image-info-panel {
  background: none !important;
  width: auto !important;
  height: auto !important;
  border: none !important;
  color: #F0F0F0;
  opacity: 0.5;
}
.image-select-container .image-preview-container .image-preview-row-process .image-info-col h4 {
  font-weight: normal;
  font-size: 12px;
  margin: 0;
  padding: 0 8px;
}
.image-select-container .image-preview-container .image-preview-row-process .image-info-col p {
  font-size: 10px;
  margin: 2px 0;
  padding: 0 8px;
}
.image-select-container .image-preview-container .image-preview-row-process .image-info-col .icon_placeholder {
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  opacity: 0.2;
}
.image-select-container .image-preview-container .image-preview-row-process .preview-image-col {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  padding: 2px;
  background: var(--sdppp-widget-box-background);
}
.image-select-container .image-preview-container .image-preview-row-process .preview-image-col .preview-image-wrapper.single {
  position: relative;
  background: none !important;
  border: none !important;
  height: calc(100% - 4px);
}
.image-select-container .image-preview-container .image-preview-row-process .preview-image-col img {
  background: none !important;
}
.image-select-container .image-preview-container .image-preview-row-process .hidden {
  visibility: hidden;
}
.image-select-container .image-preview-container .ant-select {
  top: -2px;
}
.image-select-container .preview-group-container {
  position: relative;
}
.image-select-container .preview-group-container .uploading-overlay-cover {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: 8px;
}
.image-select-container .preview-group-container .uploading-overlay-cover .uploading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: white;
}
.image-select-container .preview-group-container .uploading-overlay-cover .uploading-content .uploading-text {
  font-size: 14px;
  font-weight: 500;
}
.image-select-container .preview-group-container .uploading-overlay-cover .uploading-content .ant-spin .ant-spin-dot i {
  background-color: white;
}
.image-select-container .button-group-row {
  margin-top: 8px;
  padding: 8px;
  background: var(--sdppp-widget-box-background);
  border: 1px solid var(--sdppp-widget-border-color);
  border-radius: 8px;
}
.image-select-container .button-group-row .ant-col {
  display: flex;
  align-items: stretch;
}
@media screen and (max-width: 400px) {
  .image-select-container .image-preview-container {
    padding: 6px;
    min-height: 110px;
  }
  .image-select-container .image-preview-container .image-preview-row {
    min-height: 110px;
  }
  .image-select-container .image-preview-container .image-preview-row.single-image .image-info-col {
    flex: 0 0 35%;
    max-width: 35%;
  }
  .image-select-container .image-preview-container .image-preview-row.single-image .preview-image-col {
    flex: 0 0 65%;
    max-width: 65%;
  }
  .image-select-container .image-preview-container .image-preview-row.single-image .image-info-panel {
    height: 110px;
    padding: 4px;
  }
  .image-select-container .image-preview-container .image-preview-row.single-image .image-info-panel .info-header .info-title {
    font-size: 11px;
    margin-bottom: 1px;
  }
  .image-select-container .image-preview-container .image-preview-row.single-image .image-info-panel .info-header .info-status {
    font-size: 8px;
    padding: 1px 3px;
  }
  .image-select-container .image-preview-container .image-preview-row.single-image .image-info-panel .info-details {
    margin: 3px 0;
    gap: 1px;
  }
  .image-select-container .image-preview-container .image-preview-row.single-image .image-info-panel .info-details .info-item {
    font-size: 9px;
  }
  .image-select-container .image-preview-container .image-preview-row.single-image .image-info-panel .info-details .info-item .info-label,
  .image-select-container .image-preview-container .image-preview-row.single-image .image-info-panel .info-details .info-item .info-value {
    display: block;
    text-align: left;
  }
  .image-select-container .image-preview-container .image-preview-row.single-image .image-info-panel .info-details .info-item .info-label {
    font-size: 8px;
    margin-bottom: 1px;
  }
  .image-select-container .image-preview-container .image-preview-row.single-image .image-info-panel .info-actions .ant-btn {
    height: 18px;
    font-size: 9px;
    padding: 0 4px;
  }
  .image-select-container .image-preview-container .image-preview-row .preview-image-wrapper {
    height: 110px;
  }
  .image-select-container .image-preview-container .image-preview-row .preview-image-wrapper.ellipsis .ellipsis-content {
    font-size: 12px;
  }
  .image-select-container .image-preview-container .image-preview-row .preview-image-wrapper.ellipsis .ellipsis-content .ellipsis-count {
    font-size: 9px;
  }
}
.image-select-container .button-group {
  display: flex;
  gap: 8px;
}
.image-select-container .image-select-preview {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.image-select-container .image-select-preview .image-item {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
}
.image-select-container .image-select-preview .image-item:hover {
  border-color: #1890ff;
}
.image-select-container .image-select-preview .image-item:hover .image-actions {
  opacity: 1;
}
.image-select-container .image-select-preview .image-item .image-actions {
  position: absolute;
  top: 4px;
  right: 4px;
  opacity: 0;
  transition: opacity 0.2s;
}
.image-select-container .image-select-preview .image-item .image-actions .delete-btn {
  width: 20px;
  height: 20px;
  padding: 0;
  color: var(--sdppp-host-text-color);
  border: none;
}
.image-select-container .image-select-preview .image-item .image-actions .delete-btn:hover {
  color: var(--sdppp-host-text-color);
}
.image-select-container .image-select-preview .image-item.more-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--sdppp-widget-border-color);
  color: var(--sdppp-host-text-color);
}
.image-select-container .image-select-preview .image-item.more-indicator .more-content {
  text-align: center;
}
.image-select-container .image-select-actions {
  display: flex;
  justify-content: flex-start;
}
.image-select-container .image-select-actions .ant-space {
  width: 100%;
}
.image-select-container .layer-select-container .layer-select-control {
  position: relative;
  background: none;
  border: 1px solid var(--sdppp-host-background-color);
  border-radius: 8px;
  padding: 4px 2px 1px 1px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.image-select-container .layer-select-container .layer-select-control .ant-select {
  width: 100%;
}
.image-select-container .layer-select-container .layer-select-control .ant-select .ant-select-selector {
  background: transparent !important;
  border: 1px solid var(--sdppp-host-background-color) !important;
  border-radius: 6px;
  transition: all 0.2s ease-in-out;
}
.image-select-container .layer-select-container .layer-select-control .ant-select:hover .ant-select-selector,
.image-select-container .layer-select-container .layer-select-control .ant-select.ant-select-focused .ant-select-selector {
  border-color: var(--sdppp-host-background-color) !important;
  box-shadow: 0 0 0 2px rgba(119, 119, 119, 0.12);
  background: transparent !important;
}
.image-select-container .layer-select-container .layer-select-control .ant-select .ant-select-selection-placeholder,
.image-select-container .layer-select-container .layer-select-control .ant-select .ant-select-selection-item {
  color: var(--sdppp-host-text-color);
}
.image-select-container .layer-select-container .layer-preview-container {
  margin-top: 8px;
  background: var(--sdppp-widget-box-background);
  border-radius: 8px;
  padding: 8px;
  border: 1px solid var(--sdppp-widget-border-color);
}
.image-select-container .layer-select-container .layer-preview-placeholder {
  margin-top: 8px;
  background: var(--sdppp-widget-background-color);
  border-radius: 8px;
  border: 1px dashed var(--sdppp-widget-border-color);
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.workflow-edit-controls-grid {
  display: flex;
  align-items: stretch;
  gap: 4px;
  margin: 12px 0;
}
.workflow-edit-controls-main {
  display: flex;
  justify-content: start;
  flex-direction: column;
  flex: 1 1 0;
  min-width: 0;
}
.workflow-edit-controls-main-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.workflow-edit-controls-main-bottom {
  display: flex;
  align-items: center;
  justify-content: stretch;
  flex: 1;
}
.workflow-run-status {
  flex: 1;
}
.workflow-edit-controls-left {
  display: flex;
  align-items: center;
}
.workflow-edit-controls-right {
  display: flex;
  align-items: center;
}
.workflow-edit-controls-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
}
.workflow-edit-multibuttons-vertical {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.workflow-edit-controls-center .ant-btn-primary {
  width: 81px;
  height: 81px;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.workflow-edit-multibuttons-vertical .ant-btn {
  width: 25px;
  height: 25px;
  font-size: 8px;
  padding: 0;
  min-width: 24px;
}
.workflow-edit-controls-left .ant-btn,
.workflow-edit-controls-right .ant-btn {
  width: 32px;
  height: 32px;
  font-size: 16px;
}
.workflow-edit__action {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 30px 0 30px;
}
.workflow-edit__action .btn-cancel {
  width: 24px;
  height: 24px;
  min-width: 24px !important;
  line-height: 24px !important;
  font-size: 14px;
  background-color: #FFFFFF !important;
  color: #707070 !important;
}
.workflow-edit__progress {
  margin: 10px 0;
}
.workflow-edit__progress .ant-typography {
  display: block;
  line-height: 11px !important;
}
.workflow-edit__progress .ant-progress {
  height: 0px;
  top: -10px;
  margin-bottom: -10px;
}
.workflow-edit-wrap {
  font-size: 14px;
}
.workflow-edit-wrap .workflow-list__tabs_sub {
  margin-bottom: -10px;
}
.workflow-edit-wrap .workflow-list__tabs_sub .ant-tabs-nav-list {
  flex-wrap: nowrap;
}
.workflow-edit-wrap .tabs-scroll-wrapper {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 3px;
  margin-bottom: 5px;
}
.workflow-edit-wrap .tabs-scroll-wrapper::-webkit-scrollbar {
  height: 4px;
}
.workflow-edit-wrap .tabs-scroll-wrapper::-webkit-scrollbar-track {
  background: transparent;
}
.workflow-edit-wrap .tabs-scroll-wrapper::-webkit-scrollbar-thumb {
  background-color: rgba(212, 212, 212, 0.3);
  border-radius: 2px;
  transition: background-color 0.2s ease;
}
.workflow-edit-wrap .tabs-scroll-wrapper:hover::-webkit-scrollbar-thumb {
  background-color: #d4d4d4;
}
.workflow-edit-wrap .tabs-scroll-wrapper::-webkit-scrollbar-thumb:hover {
  background-color: #a8a8a8;
}
.workflow-edit-wrap .tabs-scroll-wrapper .ant-tabs {
  min-width: fit-content;
  margin: 0;
}
.workflow-edit-wrap .tabs-scroll-wrapper .ant-tabs-nav {
  margin-bottom: 0 !important;
}
.workflow-edit-wrap .tabs-scroll-wrapper .ant-tabs-nav-list {
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
}
.workflow-edit-wrap .tabs-scroll-wrapper .ant-tabs-tab {
  flex-shrink: 0 !important;
  margin-bottom: 0 !important;
}
.workflow-edit-wrap .ant-tabs-nav-list .ant-tabs-tab {
  height: 20px;
  border-radius: 20px !important;
  padding: 0 15px !important;
  width: auto !important;
  font-size: 10px !important;
}
.workflow-edit-wrap .ant-tabs-tab-btn {
  min-width: auto !important;
}
.workflow-edit-wrap .ant-tabs-tab-active {
  box-shadow: none !important;
}
.workflow-edit-wrap .ant-tabs-nav-operations {
  display: none !important;
}
.workflow-edit-wrap .ant-tabs-nav-more {
  display: none !important;
}
.workflow-edit-wrap .ant-typography,
.workflow-edit-wrap .ant-switch,
.workflow-edit-wrap .ant-switch .ant-switch-inner .ant-switch-inner-checked,
.workflow-edit-wrap .ant-switch .ant-switch-inner .ant-switch-inner-unchecked {
  font-size: 10px;
  line-height: 28px;
}
.workflow-edit-wrap .ant-switch {
  height: 28px;
}
.workflow-edit-wrap .ant-switch .ant-switch-handle {
  height: 28px;
  width: 28px;
  border-radius: 28px;
  inset-inline-start: 0 ;
  top: 0;
}
.workflow-edit-wrap .ant-switch .ant-switch-handle::before {
  border-radius: 28px;
}
.workflow-edit-wrap .ant-switch .ant-switch-inner-checked {
  display: none;
}
.workflow-edit-wrap .ant-switch .ant-switch-inner-unchecked {
  margin-top: 0;
  margin-inline-start: 10px;
}
.workflow-edit-wrap .ant-switch.ant-switch-checked .ant-switch-inner {
  padding-inline-end: 34px;
}
.workflow-edit-wrap .ant-switch.ant-switch-checked .ant-switch-inner .ant-switch-inner-checked {
  display: block;
}
.workflow-edit-wrap .ant-switch.ant-switch-checked .ant-switch-handle {
  inset-inline-start: calc(100% - 28px);
}
.workflow-edit-wrap .ant-tabs-nav-list .ant-tabs-tab {
  height: 20px;
  border-radius: 20px !important;
  padding: 0 15px !important;
  width: auto !important;
  font-size: 10px !important;
}
.workflow-edit-wrap .ant-tabs-tab-btn {
  min-width: auto !important;
}
.workflow-edit-wrap .ant-tabs-tab-active {
  box-shadow: none !important;
}
.workflow-edit-wrap .ant-slider-horizontal .ant-slider-step,
.workflow-edit-wrap .ant-slider-horizontal .ant-slider-track,
.workflow-edit-wrap .ant-slider-horizontal .ant-slider-rail {
  height: 3px;
}
.workflow-edit-wrap .ant-slider-horizontal .ant-slider-rail {
  background-color: var(--sdppp-widget-box-background);
}
.workflow-edit-wrap .workflow-list__tabs .ant-tabs-nav::before {
  border-bottom-color: #424242;
}
.workflow-edit-wrap .row_scroll {
  display: flex;
  white-space: nowrap;
  overflow-x: auto;
}
.workflow-edit-wrap .row_scroll::-webkit-scrollbar {
  border: 1px solid #f00;
}
.workflow-edit-wrap .row_scroll::-webkit-scrollbar-track {
  border: 1px solid #f00;
  background-color: #424242;
}
.workflow-edit-wrap .row_scroll::-webkit-scrollbar-thumb {
  height: 4px;
  background-color: #7E7E7E;
}
.workflow-edit-wrap .row_scroll::-webkit-scrollbar-button {
  color: green;
  background-color: blue;
}
.workflow-edit-wrap .ant-btn {
  line-height: 30px;
  height: auto !important;
  border: none !important;
  box-shadow: none;
  font-size: 10px;
}
.workflow-edit-wrap .ant-btn + .ant-btn {
  margin-left: 1px;
}
.workflow-edit-wrap .ant-btn-primary {
  background: #FEDDAF;
  box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.5);
}
.workflow-edit-wrap .ant-btn-primary:hover {
  background-color: #FEDDAF;
}
.workflow-edit-wrap .btn-run {
  width: 120px;
  line-height: 32px;
  font-size: 13px;
  border-radius: 5px;
}
.workflow-edit-wrap .ant-select .ant-select-arrow {
  width: 14px;
  height: 12px;
}
.image-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background-color: var(--sdppp-widget-background-color);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.image-preview__close-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 20;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  color: white;
  opacity: 0;
  transition: all 0.3s ease;
}
.image-preview__close-btn:hover {
  background: rgba(0, 0, 0, 0.6) !important;
  color: white !important;
  transform: scale(1.1);
}
.image-preview__close-btn .anticon {
  font-size: 12px;
}
.image-preview:hover .image-preview__close-btn {
  opacity: 1;
}
.image-preview__container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
@supports (aspect-ratio: 1) {
  .image-preview__container {
    position: relative;
  }
}
.image-preview__image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-preview__image .ant-image {
  width: 100%;
  height: 100%;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.image-preview__image .ant-image-img {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
}
.image-preview__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.image-preview__nav--prev {
  left: 8px;
}
.image-preview__nav--next {
  right: 8px;
}
.image-preview:hover .image-preview__nav {
  opacity: 0.8;
}
.image-preview:hover .image-preview__nav:hover {
  opacity: 1;
}
.image-preview__indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.image-preview:hover .image-preview__indicator {
  opacity: 1;
}
.image-preview__send-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  min-width: 80px;
  height: 32px;
  border-radius: 16px;
  font-weight: 500;
  font-size: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.image-preview:hover .image-preview__send-btn {
  opacity: 1;
}
.image-preview__floating-buttons {
  position: absolute;
  bottom: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.image-preview:hover .image-preview__floating-buttons {
  opacity: 1;
}
.image-preview__floating-btn {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(0, 0, 0, 0.6) !important;
  border: none !important;
  border-radius: 50% !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
  transition: all 0.3s ease !important;
  padding: 0 !important;
}
.image-preview__floating-btn:hover {
  background: rgba(0, 0, 0, 0.8) !important;
  transform: scale(1.1) !important;
}
.image-preview__floating-btn .anticon {
  font-size: 16px !important;
}
.image-preview__floating-btn.ant-btn {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  border-radius: 50% !important;
  padding: 0 !important;
  border: none !important;
}
.image-preview__floating-btn.ant-btn:focus,
.image-preview__floating-btn.ant-btn:hover,
.image-preview__floating-btn.ant-btn:active {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  border: none !important;
}
.image-preview__floating-btn--delete {
  background: rgba(255, 59, 48, 0.8) !important;
}
.image-preview__floating-btn--delete:hover {
  background: #ff3b30 !important;
  transform: scale(1.1) !important;
}
.history .history__delete-btn.ant-btn.ant-btn-text,
.history__delete-btn.ant-btn.ant-btn-text,
.history__delete-btn[class*="css-dev-only-do-not-override"].ant-btn-sm.ant-btn-icon-only,
.history__delete-btn[class*="css-dev-only-do-not-override"].ant-btn,
:not(#nonexistent).history__delete-btn.ant-btn-sm.ant-btn-icon-only,
:not(#nonexistent).history__delete-btn.ant-btn {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  border-radius: 50% !important;
  padding: 0 !important;
  border: none !important;
}
.image-preview__right-buttons {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.image-preview__right-buttons .image-preview__nav {
  position: static;
  transform: none;
  opacity: 1;
}
.image-preview__right-buttons .image-preview__floating-btn {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(0, 0, 0, 0.6) !important;
  border: none !important;
  border-radius: 50% !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
  transition: all 0.3s ease !important;
  padding: 0 !important;
}
.image-preview__right-buttons .image-preview__floating-btn:hover {
  background: rgba(0, 0, 0, 0.8) !important;
  transform: scale(1.1) !important;
}
.image-preview__right-buttons .image-preview__floating-btn .anticon {
  font-size: 16px !important;
}
.image-preview__right-buttons .image-preview__floating-btn.ant-btn {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  border-radius: 50% !important;
  padding: 0 !important;
  border: none !important;
}
.image-preview__right-buttons .image-preview__floating-btn.ant-btn:focus,
.image-preview__right-buttons .image-preview__floating-btn.ant-btn:hover,
.image-preview__right-buttons .image-preview__floating-btn.ant-btn:active {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  border: none !important;
}
.image-preview__bottom-right-buttons {
  position: absolute;
  bottom: 8px;
  right: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 10;
}
.image-preview:hover .image-preview__right-buttons {
  opacity: 1;
}
.image-preview__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--sdppp-host-text-color-secondary);
}
.image-preview__sending-status {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  z-index: 20;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
}
.history {
  position: relative;
  width: 100%;
  background-color: #707070;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  gap: 6px;
  padding: 10px 10px;
}
.history__close-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 20;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  color: white;
  opacity: 0;
  transition: all 0.3s ease;
}
.history__close-btn:hover {
  background: rgba(0, 0, 0, 0.6) !important;
  color: white !important;
  transform: scale(1.1);
}
.history__close-btn .anticon {
  font-size: 18px;
}
.history:hover .history__close-btn {
  opacity: 1;
}
.history__container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0;
  width: calc(33.333% - 4px);
}
.history__container:hover .history__floating-btn--clear {
  display: block;
}
.history__container:hover .history__send-btn {
  opacity: 1;
}
.history__container:hover .history__delete-btn {
  opacity: 1;
}
.history__delete-btn {
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 15;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255, 59, 48, 0.8) !important;
  border: none !important;
  border-radius: 50% !important;
  color: white !important;
  opacity: 0;
  transition: all 0.3s ease;
  padding: 0 !important;
  box-sizing: border-box !important;
}
.history__delete-btn:hover {
  background: #ff3b30 !important;
  color: white !important;
  transform: scale(1.1);
}
.history__delete-btn:focus,
.history__delete-btn:active {
  width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
  border: none !important;
}
.history__delete-btn .anticon {
  font-size: 12px;
}
.history__delete-btn.ant-btn {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  border-radius: 50% !important;
  padding: 0 !important;
  border: none !important;
}
.history__delete-btn.ant-btn:focus,
.history__delete-btn.ant-btn:hover,
.history__delete-btn.ant-btn:active {
  width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
  border: none !important;
}
@supports (aspect-ratio: 1) {
  .history__container {
    position: relative;
  }
}
.history__image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.history__image .ant-image {
  width: 100%;
  height: 100%;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.history__image .ant-image-img {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
}
.history__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.history__nav--prev {
  left: 8px;
}
.history__nav--next {
  right: 8px;
}
.history:hover .history__nav {
  opacity: 0.8;
}
.history:hover .history__nav:hover {
  opacity: 1;
}
.history__indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 18px;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.history:hover .history__indicator {
  opacity: 1;
}
.history__send-btn {
  position: absolute;
  bottom: 4px;
  right: 4px;
  min-width: 60px;
  height: 20px;
  border-radius: 5px;
  font-weight: 500;
  font-size: 13px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.history__send-btn:hover {
  color: #000 !important;
}
.history__floating-buttons {
  position: absolute;
  bottom: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.history:hover .history__floating-buttons {
  opacity: 1;
}
.history__floating-btn {
  position: absolute;
  bottom: 10px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}
.history__floating-btn--clear {
  left: 5px;
  top: 5px;
  bottom: auto;
  display: none;
  width: 25px !important;
  min-width: 25px !important;
  height: 25px;
}
.history__floating-btn:hover {
  background: rgba(0, 0, 0, 0.8) !important;
  transform: scale(1.1);
}
.history__floating-btn .anticon {
  font-size: 18px;
}
.history__item_img {
  display: block;
  aspect-ratio: 55 / 81;
  height: 111px !important;
  object-fit: cover;
}
.history__right-buttons {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.history__right-buttons .history__nav {
  position: static;
  transform: none;
  opacity: 1;
}
.history__right-buttons .history__floating-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}
.history__right-buttons .history__floating-btn:hover {
  background: rgba(0, 0, 0, 0.8) !important;
  transform: scale(1.1);
}
.history__right-buttons .history__floating-btn .anticon {
  font-size: 18px;
}
.history:hover .history__right-buttons {
  opacity: 1;
}
.history__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--sdppp-host-text-color-secondary);
}
.image-preview__eye-icon {
  position: absolute;
  top: 8px;
  right: 8px;
  color: #DFDFDF;
  font-size: 16px;
  cursor: pointer;
  transition: color 0.2s ease;
}
.image-preview__eye-icon svg {
  filter: drop-shadow(0.2px 1.1px 1.2px #000);
}
.image-preview__eye-icon:hover {
  color: var(--sdppp-host-text-color);
}
.image-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background-color: var(--sdppp-widget-background-color);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.image-preview__close-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 20;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  color: white;
  opacity: 0;
  transition: all 0.3s ease;
}
.image-preview__close-btn:hover {
  background: rgba(0, 0, 0, 0.6) !important;
  color: white !important;
  transform: scale(1.1);
}
.image-preview__close-btn .anticon {
  font-size: 12px;
}
.image-preview:hover .image-preview__close-btn {
  opacity: 1;
}
.image-preview__container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
@supports (aspect-ratio: 1) {
  .image-preview__container {
    position: relative;
  }
}
.image-preview__image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-preview__image .ant-image {
  width: 100%;
  height: 100%;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.image-preview__image .ant-image-img {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
}
.image-preview__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.image-preview__nav--prev {
  left: 8px;
}
.image-preview__nav--next {
  right: 8px;
}
.image-preview:hover .image-preview__nav {
  opacity: 0.8;
}
.image-preview:hover .image-preview__nav:hover {
  opacity: 1;
}
.image-preview__indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.image-preview:hover .image-preview__indicator {
  opacity: 1;
}
.image-preview__send-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  min-width: 80px;
  height: 32px;
  border-radius: 16px;
  font-weight: 500;
  font-size: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.image-preview:hover .image-preview__send-btn {
  opacity: 1;
}
.image-preview__floating-buttons {
  position: absolute;
  bottom: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.image-preview:hover .image-preview__floating-buttons {
  opacity: 1;
}
.image-preview__floating-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}
.image-preview__floating-btn:hover {
  background: rgba(0, 0, 0, 0.8) !important;
  transform: scale(1.1);
}
.image-preview__floating-btn .anticon {
  font-size: 16px;
}
.image-preview__right-buttons {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.image-preview__right-buttons .image-preview__nav {
  position: static;
  transform: none;
  opacity: 1;
}
.image-preview__right-buttons .image-preview__floating-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}
.image-preview__right-buttons .image-preview__floating-btn:hover {
  background: rgba(0, 0, 0, 0.8) !important;
  transform: scale(1.1);
}
.image-preview__right-buttons .image-preview__floating-btn .anticon {
  font-size: 16px;
}
.image-preview:hover .image-preview__right-buttons {
  opacity: 1;
}
.image-preview__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--sdppp-host-text-color-secondary);
}
.workflow-list-item {
  cursor: pointer;
  transition: all 0.3s ease;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 10px;
  margin-bottom: 6px;
}
.workflow-list-item:hover {
  outline: 2px solid #FEDDAF;
}
.workflow-list-item__left {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.workflow-list-item__right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.workflow-list-item .ant-list-item-actions .ant-space {
  display: flex;
  align-items: center;
}
.workflow-list-item .ant-list-item-actions .ant-space .ant-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 4px;
}
.workflow-list-item .ant-list-item {
  padding: 8px 16px;
}
.workflow-list-item .ant-list-item .ant-list-item-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: 8px;
}
.workflow-list-item .ant-btn {
  border-radius: 4px;
}
.workflow-list-item .ant-btn.ant-btn-text {
  color: var(--sdppp-host-text-color);
}
.workflow-list-item .ant-space {
  gap: 4px !important;
  width: 100%;
  overflow: hidden;
}
.workflow-list-item .ant-space .ant-typography {
  flex: 1;
  min-width: 0;
}
.workflow-list-item .ant-typography {
  max-width: 100%;
}
.workflow-list-item__left {
  flex-direction: column;
  width: 100%;
}
.workflow-item__image {
  width: 100%;
  aspect-ratio: 140 / 106;
  border-radius: 10px 10px;
}
.workflow-item__name {
  margin: 12px 0;
  font-size: 15px;
  width: 100%;
  max-width: 100%;
  text-align: center;
  padding: 0 5px;
}
.workflow-item__btn {
  width: 90%;
  height: 21px;
  font-size: 13px;
  margin-bottom: 11px;
  border-radius: 10px !important;
  border: 0 !important;
  color: #292929;
  box-shadow: none !important;
}
.workflow-item__btn:hover {
  color: #000000 !important;
  background-color: #FEDDAF !important;
  box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.5) !important;
}
.workflow-list .ant-list {
  background: transparent;
}
.workflow-list .ant-list .ant-list-item {
  border-radius: 6px;
  margin-bottom: 4px;
}
.workflow-list .ant-list .ant-list-item:last-child {
  margin-bottom: 0;
}
.workflow-list .ant-divider {
  margin: 16px 0;
}
.workflow-list .ant-alert {
  margin-bottom: 16px;
}
.tabs-scroll-wrapper {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 3px;
  margin-bottom: 8px;
}
.tabs-scroll-wrapper::-webkit-scrollbar {
  height: 4px;
}
.tabs-scroll-wrapper::-webkit-scrollbar-track {
  background: transparent;
}
.tabs-scroll-wrapper::-webkit-scrollbar-thumb {
  background-color: rgba(212, 212, 212, 0.3);
  border-radius: 2px;
  transition: background-color 0.2s ease;
}
.tabs-scroll-wrapper:hover::-webkit-scrollbar-thumb {
  background-color: #d4d4d4;
}
.tabs-scroll-wrapper::-webkit-scrollbar-thumb:hover {
  background-color: #a8a8a8;
}
.tabs-scroll-wrapper .ant-tabs {
  min-width: fit-content;
  margin: 0;
}
.tabs-scroll-wrapper .ant-tabs-nav {
  margin-bottom: 0 !important;
}
.tabs-scroll-wrapper .ant-tabs-nav::before {
  display: none !important;
}
.tabs-scroll-wrapper .ant-tabs-nav-list {
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
}
.tabs-scroll-wrapper .ant-tabs-tab {
  flex-shrink: 0 !important;
  margin-bottom: 0 !important;
}
.login-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 1000;
  background: #535353;
  font-size: 13px;
}
.login-form-container {
  background: #424242;
  border-radius: 16px;
  margin: 16px;
  padding: 30px;
  max-width: 90vw;
  box-sizing: border-box;
}
.login-alert {
  margin-bottom: 16px;
  border-radius: 8px;
}
.login-form .ant-form-item-label > label {
  color: #ffffff;
  font-size: 13px;
  font-weight: 400;
  margin-bottom: 8px;
}
.login-form .ant-form-item-label > label::after {
  display: none;
}
.login-form .ant-form-item-label > label::before {
  display: none !important;
}
.ant-input-outlined {
  border: none !important;
  box-shadow: none !important;
}
.login-input {
  border: none !important;
  border-radius: 8px;
  color: #ffffff;
  padding: 0 10px 0 0;
}
.login-input::before {
  display: none !important;
}
.login-input::placeholder {
  color: #aaaaaa;
}
.login-input:focus,
.login-input.ant-input-focused {
  box-shadow: 0 0 0 2px rgba(244, 162, 97, 0.2);
  background: #5a5a5a;
}
.login-input .ant-input {
  background: transparent;
  border: none;
  color: #ffffff;
}
.login-input .ant-input::placeholder {
  color: #aaaaaa;
}
.login-input .anticon {
  color: #aaaaaa;
}
.forgot-password {
  color: #ffffff;
  font-size: 13px;
  cursor: pointer;
  margin-bottom: 24px;
  text-align: left;
}
.forgot-password:hover {
  color: #ffffff;
}
.login-button-item {
  margin-bottom: 12px;
}
.register-button-item {
  margin-bottom: 0;
}
.login-button {
  border: none;
  border-radius: 5px;
  height: 32px;
  font-size: 13px;
  font-weight: 600;
  color: #000000;
  box-shadow: none !important;
}
.register-button {
  border: none;
  border-radius: 5px;
  height: 32px;
  font-size: 13px;
  font-weight: 600;
  color: #000000;
  box-shadow: none !important;
}
.login-footer {
  text-align: center;
  color: #aaaaaa;
  font-size: 13px;
  margin-top: 24px;
  line-height: 1.4;
}
#login .ant-input,
#register .ant-input,
#verificationCode .ant-input {
  padding: 10px 10px !important;
  border-radius: 5px !important;
}
.member-center {
  padding: 8px;
  background: var(--sdppp-widget-box-background);
  color: var(--sdppp-host-text-color);
  height: 100%;
  border-radius: 8px;
  overflow-y: auto;
}
.member-center .member-row {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  padding: 6px 8px;
  background: var(--sdppp-widget-background-color);
  border-radius: 4px;
  border: 1px solid var(--sdppp-widget-border-color, #333);
  font-size: 13px;
}
.member-center .member-row:last-child {
  margin-bottom: 0;
}
.member-center .member-row .row-icon {
  font-size: 13px;
  margin-right: 6px;
  flex-shrink: 0;
}
.member-center .member-row .row-label {
  color: var(--sdppp-host-text-color-secondary);
  margin-right: 8px;
  flex-shrink: 0;
  min-width: 60px;
}
.member-center .member-row .membership-info {
  flex: 1;
  color: var(--sdppp-host-text-color);
  font-size: 13px;
}
.member-center .member-row .membership-info .remaining-days {
  color: var(--sdppp-primary-color);
  font-weight: 600;
}
.member-center .member-row .redeem-form {
  display: flex;
  flex: 1;
  gap: 6px;
  align-items: center;
}
.member-center .member-row .redeem-form .redeem-input {
  flex: 1;
  padding: 4px 6px;
  border: 1px solid #707070;
  border-radius: 3px;
  background: var(--sdppp-widget-box-background);
  color: var(--sdppp-host-text-color);
  font-size: 13px;
  min-width: 0;
}
.member-center .member-row .redeem-form .redeem-input::placeholder {
  color: var(--sdppp-host-text-color-secondary);
}
.member-center .member-row .redeem-form .redeem-input:focus {
  outline: none;
  border-color: var(--sdppp-primary-color);
}
.member-center .member-row .redeem-form .redeem-button {
  padding: 4px 8px;
  background: var(--sdppp-primary-color);
  color: #000;
  border: none;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.member-center .member-row .redeem-form .redeem-button:hover:not(:disabled) {
  opacity: 0.8;
}
.member-center .member-row .redeem-form .redeem-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.member-center .member-row .contact-service-button {
  flex: 1;
  padding: 4px 8px;
  background: var(--sdppp-widget-background-color);
  color: var(--sdppp-host-text-color);
  border: 1px solid var(--sdppp-widget-border-color, #333);
  border-radius: 3px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.member-center .member-row .contact-service-button:hover {
  background: var(--sdppp-widget-box-background);
  border-color: var(--sdppp-primary-color);
  color: var(--sdppp-primary-color);
}
@media (prefers-color-scheme: dark) {
  .member-center .member-row .redeem-form .redeem-input:focus {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
  }
}
.comfy-frontend-renderer {
  align-items: stretch;
}
.workflow-list__tabs {
  user-select: none;
}
.workflow-list__tabs .ant-tabs-nav::before {
  display: none !important;
}
.workflow-list__tabs .ant-tabs-nav-list {
  flex-wrap: nowrap;
}
.workflow-list__tabs .ant-tabs-tab {
  height: 24px;
  line-height: 24px;
  background-color: #707070;
  padding: 0 20px !important;
  min-width: 120px;
  width: auto;
  border-radius: 5px;
  margin-right: 8px !important;
  margin-left: 0 !important;
  font-size: 13px !important;
  justify-content: center;
  flex-shrink: 0;
}
.workflow-list__tabs .ant-tabs-tab .ant-tabs-tab-btn {
  text-align: center;
  user-select: none;
  white-space: nowrap;
}
.workflow-list__tabs .ant-tabs-tab-active {
  background-color: var(--sdppp-primary-color);
  box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.5);
}
.workflow-list__tabs .ant-tabs-tab-active .ant-tabs-tab-btn {
  color: #000000 !important;
}
.workflow-list__tabs .ant-tabs-nav-operations {
  display: none !important;
}
.workflow-list__tabs .ant-tabs-nav-more {
  display: none !important;
}
.workflow-list__main .ant-list-items {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 13px 23px;
  padding: 0 7px;
}
.workflow-list-item {
  width: calc((100vw - 23px - 30px)/2);
  box-sizing: border-box;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 8px 12px;
  flex-wrap: nowrap;
  display: flex;
  align-items: center;
  background: var(--sdppp-widget-box-background);
  margin-bottom: 0;
}
.workflow-list-item a {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.workflow-list-item:hover {
  border-left: 5px solid var(--sdppp-host-text-color);
  padding-left: 4px;
}
.workflow-list-item:hover .workflow-arrow {
  color: var(--sdppp-host-text-color);
}
.workflow-list-item .workflow-arrow {
  color: var(--sdppp-host-text-color-secondary);
  font-size: 12px;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-left: 8px;
}
.connect_dot {
  width: 12px;
  height: 12px;
  border-radius: 100%;
}
#app .input_connect {
  border-radius: 20px !important;
  height: 20px;
  border-color: var(--sdppp-widget-background-color);
}
.btn_connect {
  display: inline-flex;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  padding: 0;
  background-color: var(--sdppp-widget-background-color);
  border-radius: 100%;
  border-color: var(--sdppp-widget-background-color);
}
.icon_connect {
  width: 14px;
  height: 14px;
  fill: var(--sdppp-host-text-color-secondary);
}
.ant-btn-primary,
.ant-segmented-item-selected,
.ant-switch-inner-checked {
  color: #000000 !important;
}
.main-tabs .ant-tabs-tab {
  font-size: 13px;
}
.comfy-frontend-renderer {
  align-items: stretch;
}
.workflow-list-item {
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 8px 12px;
  flex-wrap: nowrap;
  display: flex;
  align-items: center;
}
.workflow-list-item a {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.workflow-list-item:hover {
  border-left: 5px solid var(--sdppp-host-text-color);
  padding-left: 4px;
  background-color: rgba(255, 255, 255, 0.05);
}
.workflow-list-item:hover .workflow-arrow {
  color: var(--sdppp-host-text-color);
}
.workflow-list-item .workflow-arrow {
  color: var(--sdppp-host-text-color-secondary);
  font-size: 12px;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-left: 8px;
}
.workflow-list-item {
  cursor: pointer;
  transition: all 0.3s ease;
}
.workflow-list-item:hover {
  background-color: rgba(0, 0, 0, 0.04);
}
.workflow-list-item__left {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.workflow-list-item__right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.workflow-list-item .ant-list-item-actions .ant-space {
  display: flex;
  align-items: center;
}
.workflow-list-item .ant-list-item-actions .ant-space .ant-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 4px;
}
.workflow-list-item .ant-list-item {
  padding: 8px 16px;
}
.workflow-list-item .ant-list-item .ant-list-item-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: 8px;
}
.workflow-list-item .ant-btn {
  border-radius: 4px;
}
.workflow-list-item .ant-btn.ant-btn-text {
  color: var(--sdppp-host-text-color);
}
.workflow-list-item .ant-space {
  gap: 4px !important;
  width: 100%;
  overflow: hidden;
}
.workflow-list-item .ant-space .ant-typography {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.workflow-list-item .ant-typography {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.workflow-edit-controls-grid {
  display: flex;
  align-items: stretch;
  gap: 4px;
  margin: 12px 0;
}
.workflow-edit-controls-main {
  display: flex;
  justify-content: start;
  flex-direction: column;
  flex: 1 1 0;
  min-width: 0;
}
.workflow-edit-controls-main-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.workflow-edit-controls-main-bottom {
  display: flex;
  align-items: center;
  justify-content: stretch;
  flex: 1;
}
.workflow-run-status {
  flex: 1;
}
.workflow-edit-controls-left {
  display: flex;
  align-items: center;
}
.workflow-edit-controls-right {
  display: flex;
  align-items: center;
}
.workflow-edit-controls-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
}
.workflow-edit-multibuttons-vertical {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.workflow-edit-controls-center .ant-btn-primary {
  width: 81px;
  height: 81px;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.workflow-edit-multibuttons-vertical .ant-btn {
  width: 25px;
  height: 25px;
  font-size: 8px;
  padding: 0;
  min-width: 24px;
}
.workflow-edit-controls-left .ant-btn,
.workflow-edit-controls-right .ant-btn {
  width: 32px;
  height: 32px;
  font-size: 16px;
}
.image-select-container {
  border-radius: 8px;
  transition: all 0.3s;
}
.image-select-container .ant-upload-wrapper {
  width: 100%;
}
.image-select-container .ant-upload-wrapper .ant-upload {
  width: 100%;
  display: flex;
}
.image-select-container .image-select-empty {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--sdppp-widget-border-color);
  border-radius: 6px;
  margin-bottom: 16px;
}
.image-select-container .image-select-empty .empty-content {
  text-align: center;
}
.image-select-container .image-preview-container {
  position: relative;
  margin-bottom: 8px;
  min-height: 115px;
  border: 1px solid var(--sdppp-widget-border-color);
  border-radius: 8px;
  padding: 8px;
}
.image-select-container .image-preview-container .preview-action-buttons {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: flex;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}
.image-select-container .image-preview-container:hover .preview-action-buttons {
  opacity: 1;
}
.image-select-container .image-preview-container .image-preview-empty {
  height: 100%;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-select-container .image-preview-container .image-preview-empty .empty-content {
  text-align: center;
  color: var(--sdppp-host-text-color-secondary);
}
.image-select-container .image-preview-container .image-preview-row {
  height: 100%;
  min-height: 100px;
}
.image-select-container .image-preview-container .image-preview-row.single-image .image-info-col {
  display: flex;
  align-items: stretch;
}
.image-select-container .image-preview-container .image-preview-row.single-image .image-info-panel {
  width: 100%;
  height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.image-select-container .image-preview-container .image-preview-row.single-image .image-info-panel .info-header .info-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--sdppp-host-text-color);
  margin-bottom: 2px;
}
.image-select-container .image-preview-container .image-preview-row.single-image .image-info-panel .info-header .info-status {
  font-size: 10px;
  color: var(--sdppp-host-text-color-secondary);
  padding: 1px 6px;
  background-color: var(--sdppp-widget-border-color);
  border-radius: 8px;
  display: inline-block;
}
.image-select-container .image-preview-container .image-preview-row.single-image .image-info-panel .info-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 4px;
  margin: 6px 0;
}
.image-select-container .image-preview-container .image-preview-row.single-image .image-info-panel .info-details .info-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}
.image-select-container .image-preview-container .image-preview-row.single-image .image-info-panel .info-details .info-item .info-label {
  color: var(--sdppp-host-text-color-secondary);
  font-weight: normal;
}
.image-select-container .image-preview-container .image-preview-row.single-image .image-info-panel .info-details .info-item .info-value {
  color: var(--sdppp-host-text-color);
  font-weight: 500;
}
.image-select-container .image-preview-container .image-preview-row.single-image .image-info-panel .info-actions {
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-select-container .image-preview-container .image-preview-row.single-image .image-info-panel .info-actions .ant-btn {
  height: 24px;
  font-size: 11px;
  border-radius: 3px;
}
.image-select-container .image-preview-container .image-preview-row.single-image .preview-image-col {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.image-select-container .image-preview-container .image-preview-row .preview-image-col {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.image-select-container .image-preview-container .image-preview-row .preview-image-wrapper {
  width: 100%;
  height: 100px;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  transition: border-color 0.2s ease-in-out;
  position: relative;
}
.image-select-container .image-preview-container .image-preview-row .preview-image-wrapper:hover {
  border-color: var(--sdppp-widget-border-color);
}
.image-select-container .image-preview-container .image-preview-row .preview-image-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
  pointer-events: none;
  z-index: 1;
}
.image-select-container .image-preview-container .image-preview-row .preview-image-wrapper:hover::after {
  opacity: 1;
}
.image-select-container .image-preview-container .image-preview-row .preview-image-wrapper::before {
  content: '🔍';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 16px;
  color: white;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
  z-index: 2;
  pointer-events: none;
}
.image-select-container .image-preview-container .image-preview-row .preview-image-wrapper:hover::before {
  opacity: 1;
}
.image-select-container .image-preview-container .image-preview-row .preview-image-wrapper.single {
  background-color: var(--sdppp-widget-background-color);
  border: 1px solid var(--sdppp-widget-border-color);
}
.image-select-container .image-preview-container .image-preview-row .preview-image-wrapper.ellipsis {
  border: 1px dashed var(--sdppp-widget-border-color);
  color: var(--sdppp-host-text-color-secondary);
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}
.image-select-container .image-preview-container .image-preview-row .preview-image-wrapper.ellipsis::after,
.image-select-container .image-preview-container .image-preview-row .preview-image-wrapper.ellipsis::before {
  display: none;
}
.image-select-container .image-preview-container .image-preview-row .preview-image-wrapper.ellipsis:hover {
  background-color: var(--sdppp-widget-border-color);
  border-color: var(--sdppp-host-text-color-secondary);
  color: var(--sdppp-host-text-color);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.image-select-container .image-preview-container .image-preview-row .preview-image-wrapper.ellipsis:active {
  transform: translateY(0);
}
.image-select-container .image-preview-container .image-preview-row .preview-image-wrapper.ellipsis .ellipsis-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 16px;
  transition: all 0.2s ease-in-out;
}
.image-select-container .image-preview-container .image-preview-row .preview-image-wrapper.ellipsis .ellipsis-content .ellipsis-count {
  font-size: 12px;
  opacity: 0.7;
  transition: opacity 0.2s ease-in-out;
}
.image-select-container .image-preview-container .image-preview-row .preview-image-wrapper.ellipsis:hover .ellipsis-content .ellipsis-count {
  opacity: 1;
}
.image-select-container .image-preview-container .image-preview-row .preview-image-wrapper .preview-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.image-select-container .image-preview-container .image-preview-row .preview-image-wrapper .ant-image-mask {
  background-color: rgba(255, 255, 255, 0.5);
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}
.image-select-container .image-preview-container .image-preview-row .preview-image-wrapper .ant-image-mask .ant-image-mask-info {
  color: var(--sdppp-host-text-color);
  font-size: 14px;
}
.image-select-container .image-preview-container .image-preview-row .preview-image-wrapper:hover .ant-image-mask {
  opacity: 1;
}
.image-select-container .button-group-row .ant-col {
  display: flex;
  align-items: stretch;
}
@media screen and (max-width: 400px) {
  .image-select-container .image-preview-container {
    padding: 6px;
    min-height: 110px;
  }
  .image-select-container .image-preview-container .image-preview-row {
    min-height: 110px;
  }
  .image-select-container .image-preview-container .image-preview-row.single-image .image-info-col {
    flex: 0 0 35%;
    max-width: 35%;
  }
  .image-select-container .image-preview-container .image-preview-row.single-image .preview-image-col {
    flex: 0 0 65%;
    max-width: 65%;
  }
  .image-select-container .image-preview-container .image-preview-row.single-image .image-info-panel {
    height: 110px;
    padding: 4px;
  }
  .image-select-container .image-preview-container .image-preview-row.single-image .image-info-panel .info-header .info-title {
    font-size: 11px;
    margin-bottom: 1px;
  }
  .image-select-container .image-preview-container .image-preview-row.single-image .image-info-panel .info-header .info-status {
    font-size: 8px;
    padding: 1px 3px;
  }
  .image-select-container .image-preview-container .image-preview-row.single-image .image-info-panel .info-details {
    margin: 3px 0;
    gap: 1px;
  }
  .image-select-container .image-preview-container .image-preview-row.single-image .image-info-panel .info-details .info-item {
    font-size: 9px;
  }
  .image-select-container .image-preview-container .image-preview-row.single-image .image-info-panel .info-details .info-item .info-label,
  .image-select-container .image-preview-container .image-preview-row.single-image .image-info-panel .info-details .info-item .info-value {
    display: block;
    text-align: left;
  }
  .image-select-container .image-preview-container .image-preview-row.single-image .image-info-panel .info-details .info-item .info-label {
    font-size: 8px;
    margin-bottom: 1px;
  }
  .image-select-container .image-preview-container .image-preview-row.single-image .image-info-panel .info-actions .ant-btn {
    height: 18px;
    font-size: 9px;
    padding: 0 4px;
  }
  .image-select-container .image-preview-container .image-preview-row .preview-image-wrapper {
    height: 110px;
  }
  .image-select-container .image-preview-container .image-preview-row .preview-image-wrapper.ellipsis .ellipsis-content {
    font-size: 12px;
  }
  .image-select-container .image-preview-container .image-preview-row .preview-image-wrapper.ellipsis .ellipsis-content .ellipsis-count {
    font-size: 9px;
  }
}
.image-select-container .button-group {
  display: flex;
  gap: 8px;
}
.image-select-container .image-select-preview {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.image-select-container .image-select-preview .image-item {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
}
.image-select-container .image-select-preview .image-item:hover {
  border-color: #1890ff;
}
.image-select-container .image-select-preview .image-item:hover .image-actions {
  opacity: 1;
}
.image-select-container .image-select-preview .image-item .image-actions {
  position: absolute;
  top: 4px;
  right: 4px;
  opacity: 0;
  transition: opacity 0.2s;
}
.image-select-container .image-select-preview .image-item .image-actions .delete-btn {
  width: 20px;
  height: 20px;
  padding: 0;
  color: var(--sdppp-host-text-color);
  border: none;
}
.image-select-container .image-select-preview .image-item .image-actions .delete-btn:hover {
  color: var(--sdppp-host-text-color);
}
.image-select-container .image-select-preview .image-item.more-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--sdppp-widget-border-color);
  color: var(--sdppp-host-text-color);
}
.image-select-container .image-select-preview .image-item.more-indicator .more-content {
  text-align: center;
}
.image-select-container .image-select-actions {
  display: flex;
  justify-content: flex-start;
}
.image-select-container .image-select-actions .ant-space {
  width: 100%;
}
