/* 小香常面板 版本: 20260908_v4 */
.xc-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(160deg, #1ad1c2, #3d7dff);
  color: #062033;
  font-weight: 700;
  font-size: 20px;
  cursor: pointer;
  z-index: 1040;
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.35);
}
.xc-fab[hidden],
.xc-panel[hidden] { display: none !important; }
.xc-fab-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: #ff6b4a;
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  padding: 0 5px;
}
.xc-panel {
  position: fixed;
  right: 22px;
  bottom: 88px;
  width: 380px;
  height: 640px;
  max-height: calc(100vh - 110px);
  display: flex;
  flex-direction: column;
  background: rgba(12, 28, 48, 0.96);
  color: #d7ecff;
  border: 1px solid rgba(0, 217, 255, 0.28);
  border-radius: 16px;
  box-shadow: 0 0 24px rgba(0, 217, 255, 0.12);
  z-index: 1039;
  overflow: hidden;
  font-size: 14px;
}
.xc-head, .xc-composer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0, 217, 255, 0.2);
}
.xc-composer { border-bottom: 0; border-top: 1px solid rgba(0, 217, 255, 0.2); }
.xc-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(160deg, #1ad1c2, #3d7dff);
  color: #062033;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.xc-head strong { font-size: 15px; }
.xc-tag { color: #ffb36b; font-size: 11px; margin-left: 6px; }
.xc-close {
  margin-left: auto;
  background: transparent;
  border: 0;
  color: #7aa0c2;
  cursor: pointer;
  font-size: 18px;
}
.xc-settings {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(0, 217, 255, 0.15);
  font-size: 13px;
}
.xc-settings label { display: flex; gap: 8px; align-items: center; margin: 6px 0; }
.xc-hint, .xc-muted { color: #7aa0c2; font-size: 12px; }
.xc-digest {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(0, 217, 255, 0.15);
  white-space: pre-wrap;
  max-height: 110px;
  overflow: auto;
}
.xc-messages {
  flex: 1;
  overflow: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.xc-bubble {
  max-width: 92%;
  padding: 8px 10px;
  border-radius: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
}
.xc-bubble.bot {
  align-self: flex-start;
  background: rgba(0, 217, 255, 0.08);
  border: 1px solid rgba(0, 217, 255, 0.25);
}
.xc-bubble.me {
  align-self: flex-end;
  background: rgba(255, 179, 107, 0.12);
  border: 1px solid rgba(255, 179, 107, 0.3);
}
.xc-skill { font-size: 11px; color: #00d9ff; margin-bottom: 4px; }
.xc-cards { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.xc-cards a {
  color: #00d9ff;
  text-decoration: none;
  border: 1px solid rgba(0, 217, 255, 0.28);
  border-radius: 10px;
  padding: 6px 8px;
  font-size: 12px;
}
.xc-chip-hint { padding: 0 12px 6px; }
.xc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 12px 8px;
}
.xc-chips button, .xc-composer button {
  border: 1px solid rgba(0, 217, 255, 0.28);
  background: transparent;
  color: #d7ecff;
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 12px;
}
.xc-composer input {
  flex: 1;
  border-radius: 10px;
  border: 1px solid rgba(0, 217, 255, 0.28);
  background: #06101c;
  color: #d7ecff;
  padding: 8px 10px;
}
.xc-page-hero {
  max-width: 720px;
  margin: 24px auto;
  padding: 16px;
}
@media (max-width: 480px) {
  .xc-panel {
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
  }
  .xc-fab { right: 16px; bottom: 16px; }
}
.xc-report {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(0, 217, 255, 0.15);
  font-size: 13px;
}
.xc-sandbox-banner {
  color: #ffb36b;
  font-size: 12px;
  margin-bottom: 6px;
}
.xc-report-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}
.xc-report-actions a,
.xc-report-actions button {
  border: 1px solid rgba(0, 217, 255, 0.28);
  background: transparent;
  color: #00d9ff;
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 12px;
  text-decoration: none;
}
.xc-sandbox-page .xc-sandbox-thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}
.xc-sandbox-page .xc-bubble {
  max-width: 92%;
}
