/* bot_chat.css — 右下角命令助手，克制专业暗色风格 */
#bot-chat-root .bc-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 2000;
  width: 64px !important;
  height: 64px !important;
  min-width: 64px !important;
  min-height: 64px !important;
  padding: 0 !important;
  border-radius: 50%;
  border: 1px solid rgba(165, 180, 252, .4);
  background: #1a1a1f;
  color: #a5b4fc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .5);
  transition: background-color .15s ease, border-color .15s ease;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
#bot-chat-root .bc-fab:hover {
  background: #22222a;
  border-color: #818cf8;
}
#bot-chat-root .bc-fab.bc-dragging {
  cursor: grabbing;
  transition: none;
}
#bot-chat-root .bc-fab:hover {
  background: #222227;
  border-color: rgba(165, 180, 252, .4);
  transform: translateY(-1px);
}
#bot-chat-root .bc-fab:active { transform: translateY(0); }

#bot-chat-root .bc-panel {
  position: fixed;
  right: 24px;
  bottom: 100px;
  z-index: 2000;
  width: 420px;
  max-width: calc(100vw - 48px);
  height: 540px;
  max-height: calc(100vh - 140px);
  display: flex;
  flex-direction: column;
  background: #131317;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .5);
  overflow: hidden;
}
#bot-chat-root .bc-panel[hidden] { display: none; }

#bot-chat-root .bc-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: #17171c;
  font-size: 15px;
  font-weight: 600;
  color: #e5e7eb;
}
#bot-chat-root .bc-sub {
  font-size: 12px;
  font-weight: 400;
  color: #6b7280;
  flex: 1;
}
#bot-chat-root .bc-close {
  border: none;
  background: none;
  color: #6b7280;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}
#bot-chat-root .bc-close:hover { color: #e5e7eb; }

#bot-chat-root .bc-log {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#bot-chat-root .bc-msg { display: flex; }
#bot-chat-root .bc-user { justify-content: flex-end; }
#bot-chat-root .bc-bot { justify-content: flex-start; }

#bot-chat-root .bc-bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
#bot-chat-root .bc-user .bc-bubble {
  background: #4f46e5;
  color: #fff;
  border-bottom-right-radius: 3px;
}
#bot-chat-root .bc-bot .bc-bubble {
  background: #1e1e24;
  color: #d1d5db;
  border: 1px solid rgba(255, 255, 255, .06);
  border-bottom-left-radius: 3px;
}

#bot-chat-root .bc-inputrow {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: #17171c;
}
#bot-chat-root .bc-input {
  flex: 1;
  background: #0b0c0e;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  color: #e5e7eb;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
  transition: border-color .15s ease;
}
#bot-chat-root .bc-input:focus { border-color: rgba(165, 180, 252, .5); }
#bot-chat-root .bc-send {
  border: none;
  background: #4f46e5;
  color: #fff;
  border-radius: 8px;
  padding: 0 18px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color .15s ease;
}
#bot-chat-root .bc-send:hover { background: #4338ca; }