/* Agent 模块与 Super-agent 输入框高度与左侧 + 按钮对齐 */
#user-input {
  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  padding: 8px 52px 8px 10px !important;
}

body #agent-textarea {
  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  padding: 6px 12px !important;
}

/* 42px 输入框下缩小上下文圆环，避免被裁切 */
.input-field-wrap .context-progress-ring {
  width: 30px;
  height: 30px;
  right: 6px;
  bottom: 6px;
}

.input-field-wrap .context-ring-label {
  font-size: 0.48rem;
}

/* 语音 HUD：去掉文字提示和取消/编辑标签，只保留圆环与手势 */
.voice-gesture__transcript {
  display: none !important;
}

/* 取消/编辑只保留文字，中间用渐变分隔线；左半圆取消、右半圆编辑 */
.voice-gesture__choices {
  display: flex !important;
  gap: 0;
  align-items: center;
}
.voice-gesture__choice {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  min-width: 0 !important;
  height: auto !important;
  padding: 10px 30px !important;
  border-radius: 0 !important;
  font-size: 1.1rem !important;
  color: rgba(220, 240, 255, 0.65);
  opacity: 0.65;
  letter-spacing: 0.14em;
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}
.voice-gesture__choice::before,
.voice-gesture__choice::after {
  display: none !important;
}
.voice-gesture__choice.is-active {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #ffffff;
  opacity: 1;
  text-shadow: 0 0 10px rgba(64, 224, 255, 0.7);
  transform: none;
}





/* 保留原来的绿色发光块；选择时把对应半边柔和地染成橙色，不画线 */
.voice-gesture__arc {
  border-top-color: transparent !important;
}

.voice-gesture__arc::after {
  display: none !important;
}

.voice-gesture__arc::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 160ms ease;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(255, 170, 95, 0.3), rgba(255, 170, 95, 0.16) 55%, rgba(255, 170, 95, 0.04) 90%, rgba(255, 170, 95, 0) 100%),
    radial-gradient(180% 150% at 25% 110%, rgba(255, 170, 95, 0.4), rgba(255, 170, 95, 0) 80%);
  box-shadow: 0 -8px 34px rgba(255, 150, 60, 0.3);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 40%, transparent 60%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 40%, transparent 60%, transparent 100%);
}

.voice-gesture.is-cancel .voice-gesture__arc::before {
  opacity: 1;
}

.voice-gesture.is-edit .voice-gesture__arc::before {
  opacity: 1;
  background:
    linear-gradient(to top, rgba(255, 170, 95, 0.3), rgba(255, 170, 95, 0.16) 55%, rgba(255, 170, 95, 0.04) 90%, rgba(255, 170, 95, 0) 100%),
    radial-gradient(180% 150% at 75% 110%, rgba(255, 170, 95, 0.4), rgba(255, 170, 95, 0) 80%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 40%, #000 60%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, transparent 40%, #000 60%, #000 100%);
}

.voice-gesture__choice.is-active {
  color: #ffb15e !important;
  text-shadow: 0 0 10px rgba(255, 150, 60, 0.7);
}


/* 导入菜单：透明面板 + 绿色发光按钮（与右下角 .cyber-button 一致） */
.attachment-menu {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  padding: 0 !important;
  min-width: 0 !important;
}

.attachment-menu.active {
  gap: 8px !important;
}

.attachment-menu button {
  width: 100% !important;
  min-width: 96px !important;
  height: 34px !important;
  padding: 0 12px !important;
  background: transparent !important;
  border: 2px solid #2ecc71 !important;
  border-radius: 6px !important;
  color: var(--text) !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  letter-spacing: 1px !important;
  text-align: center !important;
  text-transform: none !important;
  box-shadow: 0 0 8px rgba(46, 204, 113, 0.5), inset 0 0 4px rgba(46, 204, 113, 0.5) !important;
  transition: all 0.3s ease !important;
}

.attachment-menu button:hover {
  background: rgba(46, 204, 113, 0.08) !important;
  border-color: #2ecc71 !important;
  color: #eafff2 !important;
  box-shadow: 0 0 14px rgba(46, 204, 113, 0.65), inset 0 0 6px rgba(46, 204, 113, 0.3) !important;
}


/* 侧边栏 M Agent 标题：保留霓虹发光，去掉大范围发光底边 */
.sidebar-title h2,
.sidebar:hover .sidebar-title h2,
.sidebar.sidebar-pinned .sidebar-title h2 {
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: #fff !important;
  -webkit-text-stroke: 0 !important;
  color: #fff !important;
  text-shadow:
    0 0 5px #fff,
    0 0 10px #fff,
    0 0 20px #2eccbf !important;
}

/* 展开态允许发光溢出标题盒，避免出现明显的矩形边框 */
.sidebar:hover .sidebar-title,
.sidebar.sidebar-pinned .sidebar-title {
  overflow: visible !important;
}

/* 欢迎卡右下角“使用说明”按钮：样式同“换一批”，只靠右 */
.agent-welcome-guide-btn {
  position: absolute !important;
  right: 0 !important;
  bottom: 0 !important;
  left: auto !important;
  width: max-content !important;
  height: auto !important;
  min-height: 0 !important;
  line-height: 1.6 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: rgba(142, 231, 255, 0.6) !important;
  font: inherit !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.6px !important;
  cursor: pointer !important;
}

.agent-welcome-guide-btn:hover {
  color: rgba(142, 231, 255, 0.95) !important;
}

.agent-welcome-actions-spacer {
  display: none !important;
}

/* 欢迎操作行铺满，使用说明按钮靠右 */
.agent-welcome-actions {
  position: relative !important;
  width: 100% !important;
}

/* 侧边栏标题随侧栏平滑收拢：只做透明度和高度过渡，不缩放字号 */
.sidebar-title {
  max-height: 96px !important;
  opacity: 1;
  overflow: hidden !important;
  transition:
    max-height 0.28s ease,
    opacity 0.18s ease,
    padding 0.28s ease,
    margin 0.28s ease !important;
}

.sidebar:not(:hover):not(.sidebar-pinned) .sidebar-title {
  max-height: 0 !important;
  opacity: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

.sidebar:hover .sidebar-title h2,
.sidebar.sidebar-pinned .sidebar-title h2 {
  font-size: 1.4rem !important;
}


/* App 化：左右侧边栏和 UI 组件文字不可选中；聊天正文/输入框保留可选中 */
#sidebar,
.chat-sidebar,
#agent-plugin-panel,
#engineering-status-panel,
.input-actions,
.agent-orb,
.agent-welcome-actions,
.agent-welcome-title,
.agent-welcome-guides,
.chat-mobile-header,
.agent-plugin-head,
.agent-plugin-section,
.engineering-status-metrics,
.engineering-status-list,
.engineering-status-row,
#sidebar *:not(input):not(textarea),
.chat-sidebar *:not(input):not(textarea) {
  -webkit-user-select: none !important;
  user-select: none !important;
}

#sidebar input,
#sidebar textarea,
.chat-sidebar input,
.chat-sidebar textarea,
#agent-plugin-panel input,
#agent-plugin-panel textarea,
#agent-plugin-panel select,
#user-input,
#agent-textarea,
.message-content,
.message-content *,
pre,
code {
  -webkit-user-select: text !important;
  user-select: text !important;
}
