html, body, #root {
  width: 100%;
  height: 100%;
  margin: 0;
}

*, :before, :after {
  box-sizing: border-box;
}

.gedit-selector-bounds-background {
  cursor: move;
  display: none !important;
}

.gedit-selector-bounds-foreground {
  cursor: move;
  outline: 1px solid var(--g-playground-selectBox-outline);
  z-index: 33;
  background-color: var(--g-playground-selectBox-background);
  width: 0;
  height: 0;
  position: absolute;
  top: 0;
  left: 0;
}

@keyframes blink {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.node-running {
  border-radius: 8px;
  border: 1px dashed #4e40e5 !important;
}

.demo-editor {
  flex-grow: 1;
  height: 100%;
  position: relative;
}

.demo-container {
  flex-direction: column;
  width: 100%;
  height: 100%;
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
}

.demo-tools {
  justify-content: space-between;
  padding: 10px;
  display: flex;
}

.demo-tools-group > * {
  margin-right: 8px;
}

.mouse-pad-option-icon {
  justify-content: center;
  align-items: center;
  display: flex;
}

.workflow-group-render {
  pointer-events: none;
  border-radius: 8px;
}

.workflow-group-header {
  pointer-events: auto;
  background-color: #fefce8;
  border: 1px solid #facc15;
  border-radius: 8px;
  width: -moz-fit-content;
  width: fit-content;
  height: 30px;
  padding-right: 8px;
}

.workflow-group-ungroup {
  cursor: pointer;
  pointer-events: auto;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  display: flex;
  position: absolute;
  top: 35px;
  right: 0;
}

.workflow-group-ungroup .semi-button {
  color: #9ca3af;
}

.workflow-group-ungroup:hover .semi-button {
  color: #374151;
}

.workflow-group-background {
  pointer-events: none;
  background-color: #fddf4729;
  border: 1px solid #fde047;
  border-radius: 8px;
  width: 100%;
  position: absolute;
  top: 0;
}

.workflow-group-render.selected .workflow-group-background {
  border: 1px solid #facc15;
}

.workflow-group-tools {
  cursor: move;
  color: #45556c;
  color: color(display-p3 .283418 .332214 .416355);
  color: lab(35.5623% -1.74978 -15.4316);
  justify-content: flex-start;
  align-items: center;
  gap: 4px;
  height: 100%;
  font-size: 14px;
  display: flex;
}

.workflow-group-title {
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 242px;
  margin: 0;
  font-weight: 500;
  overflow: hidden;
}

.workflow-group-tools-drag {
  justify-content: center;
  align-items: center;
  height: 100%;
  padding-left: 4px;
  display: flex;
}

.workflow-group-color {
  cursor: pointer;
  background-color: #fde047;
  border-radius: 8px;
  width: 16px;
  height: 16px;
  margin-left: 4px;
}

.workflow-group-title-input {
  color: #374151;
  border: none;
  width: 242px;
}

.workflow-group-color-palette {
  grid-template-columns: repeat(6, 24px);
  gap: 12px;
  margin: 8px;
  padding: 8px;
  display: grid;
}

.workflow-group-color-item {
  cursor: pointer;
  background-color: #fde047;
  border: 3px solid;
  border-radius: 50%;
  width: 24px;
  height: 24px;
}

.line-add-button {
  cursor: pointer;
  width: 24px;
  height: 24px;
  color: inherit;
  position: absolute;
  transform: translate(-50%, -60%);
}

.node-placeholder {
  background-color: #fcfcff;
  border: 1px solid #44538240;
  border-radius: 8px;
  width: 360px;
  box-shadow: 0 4px 12px #00000005, 0 2px 6px #0000000a;
}

.node-placeholder-skeleton {
  background-color: #fcfcff;
  border-radius: 8px;
  width: 100%;
  padding: 12px;
}

.node-placeholder-skeleton .semi-skeleton-avatar {
  background-color: #44538240;
}

.node-placeholder-skeleton .semi-skeleton-title {
  background-color: #52649a21;
  border-radius: 4px;
  height: 16px;
}

.node-placeholder-hd {
  align-items: center;
  margin-bottom: 12px;
  display: flex;
}

.node-placeholder-avatar {
  border-radius: 6px;
  width: 24px;
  height: 24px;
  margin-right: 8px;
}

.node-placeholder-content {
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  display: flex;
}

.node-placeholder-footer {
  flex-direction: row;
  align-items: center;
  gap: 2.5px;
  display: flex;
}

.workflow-comment {
  width: auto;
  min-width: 120px;
  height: auto;
  min-height: 80px;
}

.workflow-comment-container {
  border-radius: 8px;
  outline: 1px solid;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
  height: 100%;
  padding: 6px 2px 6px 10px;
  display: flex;
  overflow: hidden auto;
}

.workflow-comment-drag-area {
  cursor: move;
  justify-content: center;
  align-items: center;
  display: flex;
  position: absolute;
}

.workflow-comment-content-drag-area {
  width: calc(100% - 22px);
  height: 100%;
  position: absolute;
}

.workflow-comment-resize-area {
  width: 10px;
  height: 10px;
  position: absolute;
}

.workflow-comment-editor {
  width: 100%;
  height: 100%;
}

.workflow-comment-editor-placeholder {
  pointer-events: none;
  color: #37436a61;
  margin: 0;
  font-weight: 500;
  position: absolute;
}

.workflow-comment-editor-textarea {
  box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%;
  height: 100%;
  color: inherit;
  resize: none;
  background: none;
  border: none;
  outline: none;
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-size: 16px;
}

.workflow-comment-more-button {
  position: absolute;
  right: 6px;
}

.workflow-comment-more-button > .semi-button {
  color: #fff0;
  background: none;
}

.workflow-comment-more-button > .semi-button:hover {
  color: #ffa100;
  -webkit-backdrop-filter: blur(1px);
  backdrop-filter: blur(1px);
  background: #fbf2d2cc;
}

.workflow-comment-more-button-focused > .semi-button:hover {
  color: #ff811a;
  -webkit-backdrop-filter: blur(1px);
  backdrop-filter: blur(1px);
  background: #ffe3cecc;
}

.workflow-comment-more-button > .semi-button:active {
  color: #f2b600;
  -webkit-backdrop-filter: blur(1px);
  backdrop-filter: blur(1px);
  background: #ede5c7cc;
}

.workflow-comment-more-button-focused > .semi-button:active {
  color: #ff811a;
  -webkit-backdrop-filter: blur(1px);
  backdrop-filter: blur(1px);
  background: #eed5c1cc;
}

.form-item-type-tag {
  color: inherit;
  vertical-align: middle;
  flex-grow: 0;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  padding: 0 2px;
}

.ui-mouse-pad-selector {
  box-sizing: border-box;
  border: 1px solid #1d1c2314;
  border-radius: 8px;
  align-items: center;
  width: 68px;
  height: 32px;
  padding: 8px 12px;
  display: flex;
  position: relative;
}

.ui-mouse-pad-selector-icon {
  height: 20px;
  margin-right: 12px;
}

.ui-mouse-pad-selector-arrow {
  height: 16px;
  font-size: 12px;
}

.ui-mouse-pad-selector-popover {
  padding: 16px;
}

.ui-mouse-pad-selector-popover-options {
  gap: 12px;
  margin-top: 12px;
  display: flex;
}

.ui-mouse-pad-selector-popover .mouse-pad-option {
  box-sizing: border-box;
  text-align: center;
  background: var(--coz-mg-card, #fff);
  border: 1px solid var(--coz-stroke-plus, #06070926);
  border-radius: var(--default, 8px);
  width: 220px;
  padding-bottom: 20px;
}

.ui-mouse-pad-selector-popover .mouse-pad-option-icon {
  padding-top: 26px;
}

.ui-mouse-pad-selector-popover .mouse-pad-option-title {
  padding-top: 8px;
}

.ui-mouse-pad-selector-popover .mouse-pad-option-subTitle {
  padding: 4px 12px 0;
}

.ui-mouse-pad-selector-popover .mouse-pad-option-icon-selected {
  color: #1300dd;
}

.ui-mouse-pad-selector-popover .mouse-pad-option-title-selected, .ui-mouse-pad-selector-popover .mouse-pad-option-subTitle-selected {
  color: var(--coz-fg-hglt, #4e40e5);
}

.ui-mouse-pad-selector-popover .mouse-pad-option-selected {
  cursor: pointer;
  background-color: var(--coz-mg-hglt, #bac0ff33);
  border: 1px solid var(--coz-stroke-hglt, #4e40e5);
  border-radius: var(--default, 8px);
}

.ui-mouse-pad-selector-popover .mouse-pad-option:hover:not(.ui-mouse-pad-selector-popover .mouse-pad-option-selected) {
  cursor: pointer;
  background-color: var(--coz-mg-card-hovered, #fff);
  border: 1px solid var(--coz-stroke-plus, #06070926);
  border-radius: var(--default, 8px);
  box-shadow: 0 8px 24px #00000029, 0 16px 48px #00000014;
}

.ui-mouse-pad-selector-popover .mouse-pad-option:active:not(.ui-mouse-pad-selector-popover .mouse-pad-option-selected) {
  background-color: #2e2e381f;
}

.ui-mouse-pad-selector-popover .mouse-pad-option:last-of-type {
  padding-top: 13px;
}

.ui-mouse-pad-selector:hover {
  cursor: pointer;
  background-color: #2e2e3814;
  border-color: #4d53e8;
}

.ui-mouse-pad-selector:active, .ui-mouse-pad-selector:focus {
  background-color: #2e2e381f;
  border-color: #4d53e8;
}

.ui-mouse-pad-selector-active {
  border-color: #4d53e8;
}

.loading-dots {
  align-items: center;
  display: inline-flex;
}

.loading-dots span {
  background-color: #1890ff;
  border-radius: 50%;
  width: 8px;
  height: 8px;
  margin: 0 4px;
  animation: 1.4s ease-in-out infinite both pulse;
  display: inline-block;
}

.loading-dots span:first-child {
  animation-delay: -.32s;
}

.loading-dots span:nth-child(2) {
  animation-delay: -.16s;
}

@keyframes pulse {
  0%, 80%, 100% {
    transform: scale(0);
  }

  40% {
    transform: scale(1);
  }
}

::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: none;
}

::-webkit-scrollbar-thumb {
  background-color: #0003;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #0000004d;
}

.slide-in {
  animation: .5s forwards slideIn;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(0);
  }
}

.result-panel-header {
  border-bottom: 1px solid #e8e8e8;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding: 10px 0;
  display: flex;
}

.result-panel-title {
  color: #1890ff;
  font-size: 16px;
  font-weight: 600;
}

.result-summary {
  background-color: #f8f9fa;
  border-left: 4px solid #52c41a;
  border-radius: 4px;
  margin-bottom: 20px;
  padding: 12px 16px;
}

.panel-transition {
  transition: all .5s;
}

.user-avatar {
  color: #fff;
  background-color: #1890ff;
}

.ai-avatar {
  color: #fff;
  background-color: #52c41a;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message-bubble {
  animation: .3s ease-out forwards fadeIn;
}

.agent-chat-layout {
  background: #f5f5f5;
}

.agent-main-container {
  flex-direction: column;
  height: 100vh;
  display: flex;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  overflow: hidden;
}

.agent-content-container {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.agent-sidebar {
  color: #333;
  background: linear-gradient(#eef6ff 0%, #f4f9ff 100%);
  border-right: 1px solid #e8e8e8;
  flex-direction: column;
  transition: width .3s;
  display: flex;
  position: relative;
  overflow: hidden;
}

.agent-sidebar.visible {
  width: 260px;
}

.agent-sidebar.collapsed {
  width: 48px;
}

.agent-sidebar:after {
  content: "";
  pointer-events: none;
  background: linear-gradient(#f4f9ff 0%, #eef6ff 100%);
  border-top: 1px solid #eef2f7;
  height: 52px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.sidebar-title {
  color: #1e293b;
  background: linear-gradient(135deg, #e8f2ff, #eef6ff);
  border-bottom: 1px solid #cfe6ff;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  font-weight: 600;
  display: flex;
}

.sidebar-title-text {
  font-size: 18px;
  font-weight: bold;
}

.toggle-button {
  cursor: pointer;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  display: flex;
}

.toggle-button:hover {
  background-color: #f5f5f5;
}

.sidebar-actions {
  align-items: center;
  gap: 8px;
  display: flex;
}

.icon-button {
  cursor: pointer;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  display: flex;
}

.icon-button:hover {
  background-color: #f5f5f5;
}

.section-divider {
  background-color: #e8e8e8;
  height: 1px;
  margin: 0 10px;
}

.section-title {
  color: #334155;
  background: #eef6ff;
  border-left: 3px solid #cfe6ff;
  padding: 8px 10px;
  font-weight: 600;
}

.sidebar-search {
  background: linear-gradient(#f7fbff 0%, #fff 100%);
  border-top: 1px solid #eef2f7;
  border-bottom: 1px solid #eef2f7;
  margin: 8px 0 10px;
  padding: 0 10px;
}

.sidebar-search .semi-input-wrapper {
  border-radius: 8px;
}

.collapsed-bar {
  justify-content: center;
  align-items: flex-start;
  padding: 8px;
  display: flex;
}

.new-chat-button {
  will-change: transform, box-shadow;
  justify-content: flex-start;
  width: 93%;
  height: 60%;
  margin: 14px 10px 20px;
  transition: transform .16s, box-shadow .16s, background-color .16s;
  color: #1e293b !important;
  background: linear-gradient(135deg, #f8fbff, #eef4ff) !important;
  border: 1px solid #d7eaff !important;
}

.new-chat-button:hover {
  animation: .18s ease-out button-pop;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px #00000014;
  background: linear-gradient(135deg, #f2f7ff, #eef3ff) !important;
}

.new-chat-button:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px #0000000f;
}

.new-chat-button .semi-icon {
  transition: transform .16s;
}

.new-chat-button:hover .semi-icon {
  transform: translateX(2px)rotate(6deg);
}

@keyframes button-pop {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-2px);
  }

  100% {
    transform: translateY(-1px);
  }
}

.chat-history-list {
  background: linear-gradient(#eef6ff 0%, #f4f9ff 100%);
  flex: 1;
  padding: 0 10px 52px;
  overflow-y: auto;
}

.chat-history-item {
  cursor: pointer;
  color: #333;
  border-radius: 8px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding: 10px 12px;
  display: flex;
  position: relative;
}

.chat-history-item:hover {
  background-color: #f0f7ff;
}

.chat-history-item:before {
  content: "";
  background: #e6eef7;
  border-radius: 3px;
  width: 3px;
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 0;
}

.chat-history-item:hover:before {
  background: #cfe6ff;
}

.chat-history-item.active:before {
  background: #9ccdf6;
}

.chat-history-title {
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  overflow: hidden;
}

.chat-history-item.active {
  background-color: #f6fbff;
  border-left: 3px solid #bfe3ff;
}

.chat-history-empty {
  text-align: center;
  color: #999;
  padding: 10px;
}

.main-content {
  background: linear-gradient(#e8f2ff 0%, #f2f7ff 100%);
  flex-direction: column;
  flex: 1;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.main-content.intro-center {
  justify-content: center;
}

.main-content.intro-center .tab-container, .main-content.intro-center .panels-container {
  display: none;
}

.main-content.intro-center .bottom-input-area {
  background: none;
  border-top: none;
  justify-content: center;
  padding: 0;
  display: flex;
}

.main-content.intro-center .query-composer {
  width: max(303px, min(64vw, 1000px));
}

.main-content.intro-center .intro-banner {
  margin-bottom: 22px;
}

.tab-container {
  background: linear-gradient(#eef6ff 0%, #f4f9ff 100%);
  border-bottom: 1px solid #d7eaff;
  display: flex;
}

.tab {
  cursor: pointer;
  color: #1e293b;
  padding: 12px 20px;
}

.tab.active {
  color: #0f4a8d;
  border-bottom: 2px solid #bfe3ff;
  font-weight: 600;
}

.tab-mode-toggle {
  margin-left: auto;
  margin-right: 10px;
}

.panels-container {
  flex: 1;
  min-height: 0;
  transition: all .5s;
  display: flex;
  position: relative;
  overflow: hidden;
}

.panels-container.stacked {
  flex-direction: column;
}

.panels-container.side-by-side {
  flex-direction: row;
}

.panel {
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
  will-change: transform;
  background: linear-gradient(#e8f2ff 0%, #f2f7ff 100%);
  width: 100%;
  min-height: 0;
  padding: 20px;
  transition: transform .35s, opacity .35s;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  overflow: hidden auto;
}

.panels-container.stacked .panel {
  width: 100%;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.panels-container.stacked .panel.visible {
  z-index: 2;
  opacity: 1 !important;
  transform: translateX(0) !important;
}

.panels-container.stacked .panel.hidden {
  z-index: 1;
  pointer-events: none;
  opacity: 0 !important;
}

.panels-container.stacked .panel.thinking.hidden {
  transform: translateX(-100%) !important;
}

.panels-container.stacked .panel.result.hidden {
  transform: translateX(100%) !important;
}

.panel.visible.stacked {
  z-index: 2;
  opacity: 1;
  width: 100%;
  left: 0;
  transform: translateX(0);
}

.panel.hidden.stacked {
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  width: 100%;
  left: 0;
  transform: translateX(-100%);
}

.panel.slide-in.stacked.visible {
  opacity: 1;
  left: 0;
  transform: translateX(0);
}

.panel.slide-in.stacked.hidden {
  opacity: 0;
  left: 0;
  transform: translateX(100%);
}

.panel.thinking.stacked.hidden {
  transform: translateX(-100%);
}

.panel.result.stacked.hidden {
  transform: translateX(100%);
}

.panel.side-by-side {
  width: 50%;
}

.panel.side-by-side.thinking {
  left: 0;
}

.panel.side-by-side.result {
  border-left: 1px solid #e8e8e8;
  left: 50%;
}

.message-container {
  margin-bottom: 20px;
}

.message-bubble {
  align-items: flex-start;
  max-width: 100%;
  margin-bottom: 20px;
  display: flex;
}

.message-bubble.user {
  flex-direction: row-reverse;
  padding-right: 0;
}

.panel.thinking .message-bubble.user {
  padding-right: 0;
}

.avatar {
  color: #fff;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  font-weight: bold;
  display: flex;
}

.avatar.user {
  background-color: #1890ff;
  margin: 0 12px;
}

.avatar.ai {
  background-color: #a3ebae;
  margin: 0 12px 0 0;
}

.message-content {
  flex: 1;
  max-width: calc(100% - 60px);
  display: flex;
  overflow: hidden;
}

.message-content.user {
  justify-content: flex-end;
}

.message-content.ai {
  justify-content: flex-start;
}

.user-message {
  word-break: break-word;
  overflow-wrap: anywhere;
  background-color: #e6f7ff;
  border-left: 4px solid #1890ff;
  border-radius: 8px 0 8px 8px;
  max-width: 100%;
  margin-bottom: 4px;
  padding: 12px 16px;
  transition: all .3s;
  animation: .5s ease-out forwards fadeIn;
  display: inline-block;
  overflow: hidden;
}

.ai-message {
  word-break: break-word;
  overflow-wrap: anywhere;
  background: linear-gradient(#eef6ff 0%, #f4f9ff 100%);
  border: 1px solid #d7eaff;
  border-radius: 8px;
  max-width: calc(100% - 30px);
  margin-bottom: 4px;
  margin-right: 24px;
  padding: 12px 16px;
  font-family: monospace;
  transition: all .3s;
  animation: .5s ease-out forwards fadeIn;
  overflow: hidden;
  box-shadow: 0 2px 8px #407bff14;
}

.result-message-block {
  background: linear-gradient(#e8f2ff 0%, #f4f9ff 100%);
  border-left: 4px solid #bfe3ff;
  border-radius: 12px;
  flex: 1;
  max-width: calc(100% - 76px);
  margin-bottom: 8px;
  padding: 16px 18px;
  font-family: monospace;
  overflow: hidden;
  box-shadow: 0 2px 10px #407bff14;
}

.result-message-block .markdown-content {
  background: none;
  border: none;
  border-radius: 8px;
  padding: 0;
}

.stage-indicator {
  color: #666;
  background-color: #f5f5f5;
  border-radius: 4px;
  margin-bottom: 8px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 500;
  display: inline-block;
}

.stage-indicator.stage-complete, .stage-indicator.stage-summary {
  color: #fff;
  background-color: #52c41a;
}

.stage-indicator.stage-analysis {
  color: #fff;
  background-color: #1890ff;
}

.stage-indicator.stage-execution {
  color: #fff;
  background-color: #5b72e7;
}

.stage-indicator.stage-supervision {
  color: #fff;
  background-color: #ff4d4f;
}

.stage-indicator.subtype-analysis_tools, .stage-indicator.subtype-planning, .stage-indicator.subtype-sort_planning, .stage-indicator.subtype-success {
  color: #fff;
  background-color: #52c41a;
}

.stage-indicator.subtype-observation {
  color: #fff;
  background-color: #ff4d4f;
}

.stage-indicator.subtype-fail {
  color: #fff;
  background-color: #b90707;
}

.bottom-input-area {
  background: linear-gradient(#eef6ff 0%, #f4f9ff 100%);
  border-top: 1px solid #e8e8e8;
  padding: 15px 20px;
}

.main-content:not(.intro-center) .bottom-input-area {
  container-type: inline-size;
}

.input-container {
  flex-direction: column;
  gap: 10px;
  display: flex;
}

.input-wrapper {
  display: block;
}

.intro-banner {
  text-align: center;
  letter-spacing: .02em;
  color: #515050;
  margin-bottom: 12px;
  font-size: 30px;
  font-weight: 100;
  animation: .6s ease-out both introFloatIn;
}

@keyframes introFloatIn {
  0% {
    opacity: 0;
    filter: blur(2px);
    transform: translateY(8px)scale(.98);
  }

  100% {
    opacity: 1;
    filter: blur();
    transform: translateY(0)scale(1);
  }
}

.agent-textarea .semi-input-wrapper {
  border-radius: 8px;
}

.query-composer {
  background: linear-gradient(#eef6ff 0%, #f4f9ff 100%);
  border: 1px solid #cfe6ff;
  border-radius: 24px;
  min-width: 303px;
  padding: 12px 16px;
  box-shadow: 0 2px 6px #0000000a;
}

.composer-main {
  align-items: center;
  display: flex;
}

.composer-input {
  resize: none;
  background: none;
  border: none;
  outline: none;
  flex: 1;
  padding: 8px 0;
  font-size: 16px;
  line-height: 22px;
}

.composer-input::placeholder {
  color: #8aa8c8;
}

.composer-right {
  align-items: center;
  gap: 12px;
  margin-left: 12px;
  display: flex;
}

.composer-icon {
  color: #6b6f76;
  cursor: pointer;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  display: flex;
}

.composer-icon:hover {
  background: #f5f6f8;
}

.send-round {
  justify-content: center;
  align-items: center;
  display: flex;
  box-shadow: 0 6px 12px #407bff2e;
  color: #0f4a8d !important;
  background: linear-gradient(135deg, #d9ecff, #eef6ff) !important;
  border: 1px solid #cfe6ff !important;
  border-radius: 50% !important;
  width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
}

.send-round.disabled {
  box-shadow: 0 6px 12px #407bff2e;
  color: #0f4a8d !important;
  background: linear-gradient(135deg, #d9ecff, #eef6ff) !important;
  border: 1px solid #cfe6ff !important;
}

.composer-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  display: flex;
}

.composer-actions .agent-dropdown-button {
  color: #1e293b;
  cursor: pointer;
  background: linear-gradient(#eef6ff 0%, #f4f9ff 100%);
  border: 1px solid #cfe6ff;
  border-radius: 999px;
  width: 160px;
  height: 32px;
  padding: 6px 12px;
}

.composer-actions .agent-dropdown-button:hover {
  background: linear-gradient(#e8f2ff 0%, #eef6ff 100%);
}

.composer-actions .agent-step-selector {
  gap: 8px;
}

.composer-actions .agent-step-label {
  color: #1e293b;
}

.composer-actions .agent-step-button {
  color: #1e293b;
  background: linear-gradient(#eef6ff 0%, #f4f9ff 100%);
  border: 1px solid #cfe6ff;
  border-radius: 999px;
  height: 32px;
  padding: 6px 12px;
}

.composer-actions .agent-step-button:hover {
  background: linear-gradient(#e8f2ff 0%, #eef6ff 100%);
}

.composer-actions .agent-step-button.selected {
  background: #edf7ff;
  border-color: #bfe3ff;
}

.composer-chip {
  color: #4a4f57;
  cursor: pointer;
  background: #f7f8fa;
  border: 1px solid #eceef1;
  border-radius: 999px;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 13px;
  display: inline-flex;
}

.composer-chip:hover {
  background: #eef1f6;
}

.composer-chip.more {
  color: #8a8f98;
}

.case-dropdown .semi-button {
  color: #1e293b !important;
  background: linear-gradient(#eef6ff 0%, #f4f9ff 100%) !important;
  border: 1px solid #cfe6ff !important;
  border-radius: 999px !important;
  padding: 6px 12px !important;
}

.case-dropdown .semi-button:hover {
  background: linear-gradient(#e8f2ff 0%, #eef6ff 100%) !important;
}

.composer-actions .send-round.action {
  margin-left: auto;
}

.markdown-content {
  word-break: break-word;
  overflow-wrap: anywhere;
  padding-right: 16px;
  font-size: 14px;
  line-height: 1.6;
}

.markdown-content h1, .markdown-content h2, .markdown-content h3, .markdown-content h4, .markdown-content h5, .markdown-content h6 {
  margin-top: 24px;
  margin-bottom: 16px;
  font-weight: 600;
  line-height: 1.25;
}

.markdown-content h1 {
  font-size: 2em;
}

.markdown-content h2 {
  font-size: 1.5em;
}

.markdown-content h3 {
  font-size: 1.25em;
}

.markdown-content p {
  margin-top: 0;
  margin-bottom: 16px;
}

.markdown-content a {
  color: #1890ff;
  text-decoration: none;
}

.markdown-content a:hover {
  text-decoration: underline;
}

.markdown-content pre {
  background: linear-gradient(#eef6ff 0%, #f4f9ff 100%);
  border: 1px solid #cfe6ff;
  border-radius: 8px;
  max-width: 100%;
  margin-bottom: 16px;
  padding: 16px;
  font-size: 85%;
  line-height: 1.45;
  overflow: auto;
}

.markdown-content code {
  background-color: #eef6ff;
  border: 1px solid #d7eaff;
  border-radius: 4px;
  margin: 0;
  padding: .2em .4em;
  font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;
  font-size: 85%;
}

.markdown-content pre > code {
  word-break: normal;
  white-space: pre;
  background: none;
  border: 0;
  margin: 0;
  padding: 0;
  font-size: 100%;
}

.markdown-content ul, .markdown-content ol {
  margin-top: 0;
  margin-bottom: 16px;
  padding-left: 1.2em;
  list-style-position: inside;
}

.markdown-content blockquote {
  color: #465a6b;
  background: linear-gradient(#f7fbff 0%, #fbfdff 100%);
  border-left: 4px solid #cfe6ff;
  border-radius: 8px;
  margin: 0 0 16px;
  padding: 12px 16px;
}

.markdown-content li {
  word-break: break-word;
  overflow-wrap: anywhere;
  box-sizing: border-box;
  max-width: 100%;
}

.markdown-content table {
  border-collapse: collapse;
  background: none;
  border: 1px solid #cfe6ff;
  width: 100%;
  margin-bottom: 16px;
  display: block;
  overflow-x: auto;
}

.markdown-content table th, .markdown-content table td {
  border: 1px solid #cfe6ff;
  padding: 8px 13px;
}

.markdown-content table tr {
  background-color: #f2f8ff;
  border-top: 1px solid #cfe6ff;
}

.markdown-content table tr:nth-child(2n) {
  background-color: #f2f8ff;
}

.markdown-content table th {
  color: #0f4a8d;
  background-color: #eaf5ff;
}

.loading-container {
  color: #1890ff;
  justify-content: center;
  align-items: center;
  padding: 20px;
  display: flex;
}

.case-dropdown {
  position: relative;
}

.case-dropdown-content {
  z-index: 1000;
  background: linear-gradient(#eef6ff 0%, #f4f9ff 100%);
  border: 1px solid #cfe6ff;
  border-radius: 8px;
  width: 300px;
  max-height: 400px;
  display: none;
  position: absolute;
  top: auto;
  bottom: calc(100% + 6px);
  left: 0;
  overflow-y: auto;
  box-shadow: 0 4px 12px #0000001a;
}

.case-dropdown-content.visible {
  display: block;
}

.case-dropdown-item {
  cursor: pointer;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding: 10px 15px;
  overflow: hidden;
}

.case-dropdown-item:hover {
  background-color: #eef6ff;
}

.case-dropdown-category {
  white-space: nowrap;
  text-overflow: ellipsis;
  background: linear-gradient(#eef6ff 0%, #f4f9ff 100%);
  border-bottom: none;
  padding: 0 15px;
  font-weight: 600;
  overflow: hidden;
}

.agent-dropdown-arrow {
  margin-left: 8px;
  transition: transform .3s;
}

.agent-dropdown-arrow.open {
  transform: rotate(180deg);
}

.loading-margin-left {
  margin-left: 8px;
}

.agent-controls-row {
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  display: flex;
}

.agent-step-selector {
  align-items: center;
  gap: 5px;
  display: flex;
}

.agent-step-label {
  color: #1e293b;
  font-size: 14px;
  line-height: 1;
}

.agent-step-button {
  cursor: pointer;
  color: #1e293b;
  background: linear-gradient(#eef6ff 0%, #f4f9ff 100%);
  border: 1px solid #cfe6ff;
  border-radius: 16px;
  padding: 6px 10px;
  font-size: 14px;
  transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s;
}

.agent-step-button:hover {
  background: linear-gradient(#e8f2ff 0%, #eef6ff 100%);
}

.agent-step-button.selected {
  color: #0f4a8d;
  background: linear-gradient(#eaf5ff 0%, #edf7ff 100%);
  border-color: #bfe3ff;
  box-shadow: 0 0 0 3px #bfe3ff59;
}

.agent-dropdown-wrapper {
  display: inline-block;
  position: relative;
}

.agent-dropdown-button {
  color: #6b6f76;
  cursor: pointer;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  justify-content: space-between;
  align-items: center;
  width: 200px;
  max-width: 200px;
  padding: 8px 12px;
  font-weight: 500;
  display: flex;
}

.agent-dropdown-button:hover {
  background-color: #f9f9f9;
}

.agent-button-text {
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  margin-right: 8px;
  overflow: hidden;
}

.agent-dropdown-content {
  z-index: 1000;
  background: linear-gradient(#eef6ff 0%, #f4f9ff 100%);
  border: 1px solid #cfe6ff;
  border-radius: 12px;
  width: 210px;
  max-width: 210px;
  max-height: 230px;
  padding: 8px;
  display: none;
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  overflow-y: auto;
  box-shadow: 0 4px 12px #00000014;
}

.agent-dropdown-content.visible {
  display: block;
}

.agent-dropdown-item {
  cursor: pointer;
  background-color: #0000;
  border: 1px solid #0000;
  border-radius: 8px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
  padding: 8px 12px;
  transition: background-color .2s, border-color .2s;
  display: flex;
}

.agent-dropdown-item:last-child {
  margin-bottom: 0;
}

.agent-dropdown-item:hover {
  background-color: #eef6ff;
}

.agent-dropdown-item.selected {
  background-color: #edf7ff;
  border-color: #bfe3ff;
}

.agent-item-info {
  flex-direction: column;
  flex: 1;
  gap: 4px;
  min-width: 0;
  display: flex;
}

.agent-item-name {
  color: #111;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 550;
  overflow: hidden;
}

.agent-item-desc {
  color: #6b7280;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.2;
  overflow: hidden;
}

.agent-item-right {
  flex: 0 0 24px;
  justify-content: center;
  align-items: center;
  display: flex;
}

.sidebar-user-avatar {
  z-index: 5;
  cursor: pointer;
  position: absolute;
  bottom: 12px;
  right: 12px;
}

.sidebar-user-popover {
  cursor: pointer;
  background: linear-gradient(#eef6ff 0%, #f4f9ff 100%);
  border: 1px solid #cfe6ff;
  border-radius: 12px;
  width: 290px;
  padding: 12px 8px;
}

.sidebar-user-header {
  border-bottom: 1px solid #d7eaff;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  display: flex;
}

.sidebar-user-basic {
  flex-direction: column;
  display: flex;
}

.sidebar-user-name {
  color: #333;
}

.sidebar-user-uid {
  color: #999;
  font-size: 12px;
}

.sidebar-user-actions {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  display: flex;
}

.user-action-item {
  color: #333;
  border-radius: 8px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 70px;
  height: 70px;
  padding: 5px 8px;
  transition: background-color .2s;
  display: flex;
}

.user-action-item:hover {
  background-color: #eef6ff;
}

.user-action-item span {
  font-size: 13px;
}

.sidebar-user-footer {
  display: none;
}

@media (max-width: 405px) {
  .main-content:not(.intro-center) .input-wrapper {
    justify-content: center;
    display: flex;
  }
}

.query-composer:has(.send-round.disabled) {
  background: linear-gradient(#eef6ff 0%, #f4f9ff 100%);
  border-color: #cfe6ff;
}

