/* 协同聊天窗样式（类名前缀 aicc-，避免与站点 app.css 冲突） */

.aicc-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #f5b942, #e09a2a);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
  transition: transform .15s ease, box-shadow .15s ease;
}
.aicc-fab:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .28); }
.aicc-fab-icon {
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; position: relative; flex: 0 0 auto;
}
.aicc-fab-icon::after {
  content: ""; position: absolute; left: 5px; top: 8px; width: 0; height: 0;
  border-left: 5px solid #e09a2a; border-top: 4px solid transparent; border-bottom: 4px solid transparent;
}

.aicc-panel {
  position: fixed;
  right: 22px;
  bottom: 86px;
  z-index: 9999;
  width: 360px;
  max-width: calc(100vw - 24px);
  height: 480px;
  max-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px) scale(.98);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.aicc-panel.aicc-open { opacity: 1; transform: none; pointer-events: auto; }

.aicc-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  background: linear-gradient(135deg, #f5b942, #e09a2a);
  color: #fff;
}
.aicc-panel-title { font-weight: 600; font-size: 14px; }
.aicc-close {
  border: none; background: transparent; color: #fff; font-size: 22px;
  line-height: 1; cursor: pointer; padding: 0 4px;
}

.aicc-msgs { flex: 1 1 auto; overflow-y: auto; padding: 14px; background: #f6f7f9; }
.aicc-row { display: flex; margin-bottom: 10px; }
.aicc-user { justify-content: flex-end; }
.aicc-assistant { justify-content: flex-start; }
.aicc-bubble {
  max-width: 82%;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.55;
  word-break: break-word;
  white-space: pre-wrap;
}
.aicc-user .aicc-bubble { background: #e09a2a; color: #fff; border-bottom-right-radius: 4px; }
.aicc-assistant .aicc-bubble { background: #fff; color: #222; border: 1px solid #e6e8eb; border-bottom-left-radius: 4px; }
.aicc-typing { color: #999; }

.aicc-profile { display: flex; gap: 8px; padding: 8px 12px 0; background: #fff; }
.aicc-input {
  flex: 1; min-width: 0; border: 1px solid #e6e8eb; border-radius: 8px;
  padding: 7px 9px; font-size: 12px; color: #333; outline: none;
}
.aicc-input:focus { border-color: #e09a2a; }

.aicc-composer { display: flex; gap: 8px; padding: 10px 12px 12px; background: #fff; }
.aicc-textarea {
  flex: 1; resize: none; border: 1px solid #e6e8eb; border-radius: 8px;
  padding: 9px 11px; font-size: 14px; line-height: 1.4; outline: none; max-height: 110px;
  font-family: inherit; color: #333;
}
.aicc-textarea:focus { border-color: #e09a2a; }
.aicc-send {
  border: none; border-radius: 8px; background: #e09a2a; color: #fff;
  padding: 0 16px; font-size: 14px; cursor: pointer;
}
.aicc-send:disabled { opacity: .55; cursor: not-allowed; }

@media (max-width: 480px) {
  .aicc-panel { right: 12px; left: 12px; width: auto; bottom: 80px; }
  .aicc-fab { right: 12px; bottom: 12px; }
}
