/* shadow */
/* sizing */
/* spacing */
.semi-aiChatInput {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--semi-color-border);
  box-sizing: border-box;
}
.semi-aiChatInput-skill {
  padding: 4px 0px;
  border-radius: 8px;
  overflow: scroll;
}
.semi-aiChatInput-skill-item {
  display: flex;
  align-items: center;
  column-gap: 8px;
  padding: 8px 20px;
  cursor: pointer;
}
.semi-aiChatInput-skill-item-active {
  background-color: var(--semi-color-fill-0);
}
.semi-aiChatInput-popover-suggestion {
  box-shadow: none;
}
.semi-aiChatInput-suggestion {
  overflow: scroll;
}
.semi-aiChatInput-suggestion-item {
  border-radius: 6px;
  padding: 8px 20px;
  color: var(--semi-color-text-0);
  font-size: 14px;
  line-height: 20px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.semi-aiChatInput-suggestion-item-active {
  background-color: var(--semi-color-fill-0);
}
.semi-aiChatInput-reference-icon {
  width: 16px;
  height: 16px;
  border-radius: 2px;
  margin-right: 4px;
}
.semi-aiChatInput-ref-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--semi-color-white);
  flex-shrink: 0;
}
.semi-aiChatInput-ref-icon-word {
  background-color: rgba(var(--semi-blue-4), 1);
}
.semi-aiChatInput-ref-icon-pdf {
  background-color: rgba(var(--semi-red-4), 1);
}
.semi-aiChatInput-ref-icon-code {
  background-color: rgba(var(--semi-teal-5), 1);
}
.semi-aiChatInput-ref-icon-excel {
  background-color: rgba(var(--semi-green-5), 1);
}
.semi-aiChatInput-ref-icon-video {
  background-color: rgba(var(--semi-purple-4), 1);
}
.semi-aiChatInput-ref-icon-audio {
  background-color: rgba(var(--semi-purple-4), 1);
}
.semi-aiChatInput-ref-icon-unknown {
  background-color: rgba(var(--semi-grey-5), 1);
}
.semi-aiChatInput-references {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 8px;
  font-size: 12px;
  line-height: 16px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--semi-color-text-2);
  column-gap: 4px;
  row-gap: 4px;
}
.semi-aiChatInput-references > .semi-aiChatInput-reference:only-child {
  width: 100%;
}
.semi-aiChatInput-references > .semi-aiChatInput-reference:nth-last-child(2):first-child, .semi-aiChatInput-references > .semi-aiChatInput-reference:nth-child(2):nth-last-child(1) {
  flex-basis: calc(50% - 4px);
  max-width: calc(50% - 4px);
}
.semi-aiChatInput-references > .semi-aiChatInput-reference:nth-last-child(n+3):nth-child(1),
.semi-aiChatInput-references > .semi-aiChatInput-reference:nth-last-child(n+3):nth-child(1) ~ .semi-aiChatInput-reference {
  width: calc(33.333% - 4px);
}
.semi-aiChatInput-reference {
  padding: 8px 12px;
  box-sizing: border-box;
  border-radius: 6px;
  background: var(--semi-color-fill-0);
  flex-shrink: 1;
  display: flex;
  align-items: center;
  column-gap: 8px;
}
.semi-aiChatInput-reference-content {
  display: flex;
  align-items: center;
  flex-grow: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.semi-aiChatInput-reference-img {
  width: 16px;
  height: 16px;
  margin-right: 4px;
}
.semi-aiChatInput-reference-name {
  display: inline-block;
  text-overflow: ellipsis;
  overflow: hidden;
  word-break: break-all;
}
.semi-aiChatInput-reference-delete {
  cursor: pointer;
  padding: 2px;
  border-radius: 50%;
}
.semi-aiChatInput-reference-delete:hover {
  background: var(--semi-color-fill-1);
}
.semi-aiChatInput-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  align-items: center;
  user-select: none;
  -webkit-user-select: none;
}
.semi-aiChatInput-footer-round .semi-aiChatInput-footer-configure-select, .semi-aiChatInput-footer-round .semi-aiChatInput-footer-configure-button,
.semi-aiChatInput-footer-round .semi-aiChatInput-footer-configure-radio-button, .semi-aiChatInput-footer-round .semi-aiChatInput-footer-configure-mcp-trigger,
.semi-aiChatInput-footer-round .semi-aiChatInput-footer-action-button, .semi-aiChatInput-footer-round .semi-aiChatInput-footer-action-upload,
.semi-aiChatInput-footer-round .semi-radio-addon-buttonRadio {
  border-radius: 9999px;
}
.semi-aiChatInput-footer-action {
  display: flex;
  align-items: center;
  column-gap: 8px;
}
.semi-aiChatInput-footer-action button {
  padding: 0px;
  border: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.semi-aiChatInput-footer-action-button {
  width: 32px;
  height: 32px;
  cursor: pointer;
  border-radius: 8px;
}
.semi-aiChatInput-footer-action-send {
  background-color: var(--semi-color-primary);
  color: rgba(var(--semi-white), 1);
}
.semi-aiChatInput-footer-action-send:hover:not(.semi-aiChatInput-footer-action-send-disabled) {
  background-color: var(--semi-color-primary-hover);
}
.semi-aiChatInput-footer-action-send:active:not(.semi-aiChatInput-footer-action-send-disabled) {
  background-color: var(--semi-color-primary-active);
}
.semi-aiChatInput-footer-action-send-disabled {
  background-color: var(--semi-color-fill-2);
}
.semi-aiChatInput-footer-action-stop {
  background-color: var(--semi-color-primary);
  color: rgba(var(--semi-white), 1);
}
.semi-aiChatInput-footer-action-stop:hover:not(.semi-aiChatInput-footer-action-send-disabled) {
  background-color: var(--semi-color-primary-hover);
}
.semi-aiChatInput-footer-action-stop:active:not(.semi-aiChatInput-footer-action-send-disabled) {
  background-color: var(--semi-color-primary-active);
}
.semi-aiChatInput-footer-action-stop-disabled {
  background-color: var(--semi-color-fill-2);
}
.semi-aiChatInput-footer-action-upload {
  background: transparent;
  color: var(--semi-color-text-1);
}
.semi-aiChatInput-footer-action-upload:hover {
  background-color: var(--semi-color-fill-0);
}
.semi-aiChatInput-footer-action-upload:active {
  background-color: var(--semi-color-fill-1);
}
.semi-aiChatInput-footer-configure {
  display: flex;
  flex-direction: row;
  column-gap: 8px;
}
.semi-aiChatInput-footer-configure-button {
  border: 1px solid var(--semi-color-primary);
}
.semi-aiChatInput-footer-configure-button-active.semi-button-tertiary.semi-button-outline {
  border: 1px solid var(--semi-color-primary);
  color: var(--semi-color-primary);
  background-color: var(--semi-color-primary-light-default);
}
.semi-aiChatInput-footer-configure-select {
  border: 1px solid var(--semi-color-border);
  background: transparent;
}
.semi-aiChatInput-footer-configure-select.semi-select-focus, .semi-aiChatInput-footer-configure-select .semi-select-selection-text {
  font-weight: 600;
  color: var(--semi-color-text-1);
}
.semi-aiChatInput-footer-configure-select.semi-select:hover {
  border-color: var(--semi-color-border);
}
.semi-aiChatInput-footer-configure-select.semi-select:focus {
  border: 1px solid var(--semi-color-border);
  background: transparent;
}
.semi-aiChatInput-footer-configure-radio-button .semi-radio-addon-buttonRadio {
  height: 16px;
  padding: 4px;
  font-size: 14px;
}
.semi-aiChatInput-footer-configure-radio-button .semi-radio-addon-buttonRadio-checked {
  color: var(--semi-color-text-1);
  background: var(--semi-color-bg-2);
}
.semi-aiChatInput-footer-configure-mcp-header {
  padding: 8px 16px 0px;
  font-size: 12px;
  line-height: 16px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  height: 16px;
  align-items: center;
  display: flex;
  justify-content: space-between;
  column-gap: 4px;
}
.semi-aiChatInput-footer-configure-mcp-header-title {
  color: var(--semi-color-text-2);
}
.semi-aiChatInput-footer-configure-mcp-header-config.semi-button {
  padding: 0px;
  border: 0px;
  height: fit-content;
  font-size: 12px;
  line-height: 16px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.semi-aiChatInput-attachment {
  position: relative;
  display: flex;
  align-items: center;
  column-gap: 8px;
  border-radius: 6px;
  background: var(--semi-color-fill-0);
  padding: 8px;
  width: 224px;
  height: 36px;
  overflow: hidden;
  letter-spacing: 0;
  flex-shrink: 0;
}
.semi-aiChatInput-attachment-icon, .semi-aiChatInput-attachment-img {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  width: 36px;
  height: 36px;
}
.semi-aiChatInput-attachment-img {
  object-fit: cover;
}
.semi-aiChatInput-attachment-content {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  align-items: flex-start;
  width: 180px;
}
.semi-aiChatInput-attachment-content-name {
  flex-shrink: 0;
  width: 180px;
  height: 20px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--semi-color-text-0);
  font-size: 12px;
  line-height: 16px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 600;
}
.semi-aiChatInput-attachment-content-size {
  display: flex;
  flex-shrink: 0;
  align-items: flex-start;
  column-gap: 4px;
  color: var(--semi-color-text-2);
  font-size: 12px;
  line-height: 16px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-transform: uppercase;
}
.semi-aiChatInput-attachment-delete {
  display: none;
}
.semi-aiChatInput-attachment:hover > .semi-aiChatInput-attachment-delete {
  cursor: pointer;
  position: absolute;
  top: 0px;
  right: 0px;
  background: rgba(var(--semi-grey-7), 1);
  color: var(--semi-color-white);
  border-radius: 50%;
  width: 16px;
  height: 16px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.semi-aiChatInput-attachment-progress.semi-progress-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.semi-aiChatInput-scroll-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}
.semi-aiChatInput-scroll-container {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  /* Hide scrollbar */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  column-gap: 8px;
  /* hidden Webkit (Chrome, Safari) scrollbar */
}
.semi-aiChatInput-scroll-container::-webkit-scrollbar {
  display: none;
}
.semi-aiChatInput-scroll-button {
  padding: 0px;
  border: 0px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--semi-color-white);
  box-shadow: var(--semi-shadow-elevated);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.2s, box-shadow 0.2s;
}
.semi-aiChatInput-scroll-button .semi-icon {
  font-size: 12px;
  color: var(--semi-color-text-2);
}
.semi-aiChatInput-scroll-button:active {
  transform: translateY(-50%) scale(0.95);
}
.semi-aiChatInput-scroll-button-left-icon {
  transform: rotate(180deg);
}
.semi-aiChatInput-scroll-button.semi-aiChatInput-scroll-button-left {
  left: 10px;
}
.semi-aiChatInput-scroll-button.semi-aiChatInput-scroll-button-right {
  right: 10px;
}
.semi-aiChatInput-editor-content {
  flex: 1 1 0%;
  min-height: 0;
  margin-top: -4px;
  padding-top: 4px;
  overflow: auto;
}
.semi-aiChatInput-editor-content .tiptap {
  font-size: 14px;
  line-height: 24px;
}
.semi-aiChatInput-editor-content .tiptap p.is-editor-empty:first-child::before {
  color: var(--semi-color-text-2);
  content: attr(data-placeholder);
  float: left;
  height: 0;
  pointer-events: none;
}
.semi-aiChatInput-editor-content .tiptap p {
  margin: 0px;
  white-space: pre-wrap;
}
.semi-aiChatInput-editor-content .tiptap:focus {
  outline: none;
}
.semi-aiChatInput-editor-content .tiptap .node-inputSlot {
  display: inline-block;
  font-size: 14px;
  line-height: 20px;
}
.semi-aiChatInput-editor-content .tiptap .input-slot {
  display: inline-block;
  box-sizing: content-box;
  background-color: var(--semi-color-primary-light-default);
  border-radius: 4px;
  padding: 2px 4px;
  position: relative;
  margin: 2px 2px;
  font-weight: 600;
  min-width: 2px;
}
.semi-aiChatInput-editor-content .tiptap .input-slot .content {
  color: var(--semi-color-primary);
}
.semi-aiChatInput-editor-content .tiptap .input-slot .input-slot-placeholder {
  user-select: none;
  position: absolute;
  top: 2px;
  left: 4px;
  pointer-events: none;
  white-space: pre;
  z-index: 1;
  color: var(--semi-color-primary-disabled);
}
.semi-aiChatInput-editor-content .tiptap .node-selectSlot {
  display: inline-flex;
}
.semi-aiChatInput-editor-content .tiptap .select-slot {
  font-size: 14px;
  line-height: 20px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  height: 24px;
  padding: 2px 4px;
  border-radius: 4px;
  background-color: var(--semi-color-primary-light-default);
}
.semi-aiChatInput-editor-content .tiptap .select-slot:first-child {
  margin-left: 0px;
}
.semi-aiChatInput-editor-content .tiptap .select-slot-wrapper {
  display: inline-flex;
  margin: 2px 4px;
}
.semi-aiChatInput-editor-content .tiptap .select-slot .semi-select-selection {
  color: var(--semi-color-primary);
  font-weight: bold;
  margin-left: 0px;
}
.semi-aiChatInput-editor-content .tiptap .select-slot .semi-select-arrow {
  color: var(--semi-color-text-2);
  width: 16px;
}
.semi-aiChatInput-editor-content .tiptap .select-slot.semi-select-open, .semi-aiChatInput-editor-content .tiptap .select-slot.semi-select-focus {
  border-color: transparent;
}
.semi-aiChatInput-editor-content .tiptap .select-slot.semi-select:focus {
  border-color: transparent;
}
.semi-aiChatInput-editor-content .tiptap .node-skillSlot {
  display: inline-flex;
}
.semi-aiChatInput-editor-content .tiptap .skill-slot {
  color: var(--semi-color-primary);
  font-weight: 600;
  outline: none;
}
.semi-aiChatInput-editor-content .tiptap .skill-slot-wrapper {
  display: inline-flex;
  position: relative;
  padding: 0px 4px;
  margin: 2px 2px;
  border-radius: 4px;
}
.semi-aiChatInput-editor-content .tiptap .skill-slot-wrapper:hover {
  background-color: var(--semi-color-primary-light-default);
}
.semi-aiChatInput-editor-content .tiptap .skill-slot-wrapper:hover .skill-slot-delete {
  cursor: pointer;
  position: absolute;
  top: 0px;
  right: 0px;
  background: rgba(var(--semi-grey-7), 1);
  color: var(--semi-color-white);
  transform: translate(50%, -50%);
  border-radius: 50%;
  width: 12px;
  height: 12px;
  font-size: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.semi-aiChatInput-editor-content .tiptap .skill-slot-delete {
  display: none;
}