/* AI 工作台 · 右下角悬浮球直接打开弹窗 */
.cfa-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #67a6ff 0%, #2f6bff 48%, #1d4ed8 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .5px;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(37, 99, 235, .38), 0 4px 12px rgba(29, 78, 216, .26), inset 0 1px 0 rgba(255, 255, 255, .38);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.cfa-fab:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 18px 40px rgba(37, 99, 235, .44), 0 6px 16px rgba(29, 78, 216, .3), inset 0 1px 0 rgba(255, 255, 255, .45);
}

.cfa-fab:focus-visible {
  outline: 3px solid rgba(59, 130, 246, .4);
  outline-offset: 2px;
}

.cfa-msg {
  display: flex;
  margin-bottom: 10px;
}

.cfa-msg.user {
  justify-content: flex-end;
}

.cfa-bubble {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}

.cfa-msg.assistant .cfa-bubble {
  border: 1px solid #e9eef8;
  border-radius: 14px 14px 14px 4px;
  background: #fff;
  color: var(--text-primary, #1a2033);
}

.cfa-msg.user .cfa-bubble {
  border-radius: 14px 14px 4px 14px;
  background: #2f5fd0;
  color: #fff;
}

.cfa-meta {
  display: block;
  margin-top: 6px;
  color: var(--text-muted, #9ca3c0);
  font-size: 10px;
  line-height: 1.4;
  white-space: normal;
}

.cfa-msg.user .cfa-meta {
  color: rgba(255, 255, 255, .72);
}

.cfa-copy {
  display: block;
  margin-top: 6px;
  padding: 2px 8px;
  border: 1px solid #dfe6f3;
  border-radius: 6px;
  background: #fff;
  color: #41557a;
  font-family: inherit;
  font-size: 10.5px;
  line-height: 1.5;
  cursor: pointer;
}

.cfa-copy:hover {
  border-color: #9db9ec;
  color: #2f5fd0;
}

.cfa-msg.system {
  justify-content: center;
}

.cfa-msg.system .cfa-bubble {
  max-width: 100%;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef2f9;
  color: var(--text-secondary, #6b7694);
  font-size: 11px;
  white-space: normal;
}

.cfa-typing .cfa-bubble {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 34px;
}

.cfa-typing i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #9aa6c2;
  animation: cfa-blink 1.1s infinite ease-in-out;
}

.cfa-typing i:nth-child(2) {
  animation-delay: .15s;
}

.cfa-typing i:nth-child(3) {
  animation-delay: .3s;
}

@keyframes cfa-blink {
  0%, 80%, 100% { opacity: .3; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-2px); }
}

@media (max-width: 640px) {
  .cfa-fab {
    right: 14px;
    bottom: 14px;
    width: 52px;
    height: 52px;
  }
}

/* ── AI 工作台弹窗（悬浮球展开态） ─────────────── */
body.cfw-lock {
  overflow: hidden;
}

.cfw-root {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(18, 28, 48, .46);
  backdrop-filter: blur(3px);
}

.cfw-root.open {
  display: flex;
  animation: cfw-fade .16s ease;
}

.cfw-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(1180px, 96vw);
  height: min(760px, calc(100vh - 48px));
  min-height: 0;
  padding: 18px 20px 20px;
  border: 1px solid #e2e9f5;
  border-radius: 20px;
  background: linear-gradient(180deg, #f8faff 0%, #eef3fb 100%);
  box-shadow: 0 32px 80px rgba(15, 23, 42, .3), 0 8px 24px rgba(15, 23, 42, .12);
  overflow: hidden;
  animation: cfw-pop .18s ease;
}

@keyframes cfw-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes cfw-pop {
  from { opacity: 0; transform: translateY(8px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.cfw-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: 0 0 auto;
  padding-bottom: 13px;
  border-bottom: 1px solid #e3eaf5;
}

.cfw-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.cfw-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #67a6ff 0%, #2f6bff 48%, #1d4ed8 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .4px;
  box-shadow: 0 10px 22px rgba(37, 99, 235, .3), inset 0 1px 0 rgba(255, 255, 255, .4);
}

.cfw-brand strong {
  display: block;
  color: #14203c;
  font-size: 18px;
  line-height: 1.25;
}

.cfw-brand small {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: #68769a;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cfw-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.cfw-scope-select {
  max-width: 270px;
  height: 34px;
  padding: 0 30px 0 12px;
  border: 1px solid #d9e2f1;
  border-radius: 10px;
  background: #fff url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='6'%3E%3Cpath d='M1 1l3 3 3-3' stroke='%235a6b8c' fill='none' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 11px center;
  color: #26334f;
  font-size: 12px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: 0 2px 6px rgba(20, 32, 60, .04);
}

.cfw-top-actions button {
  height: 34px;
  padding: 0 13px;
  border: 1px solid #d9e2f1;
  border-radius: 10px;
  background: #fff;
  color: #3b4a69;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(20, 32, 60, .04);
}

.cfw-top-actions button:hover {
  border-color: #b8cdf0;
  color: #2455bd;
}

.cfw-top-actions .cfw-close {
  width: 34px;
  padding: 0;
  color: #66738f;
  font-size: 18px;
  line-height: 1;
}

.cfw-main {
  display: grid;
  grid-template-columns: 288px minmax(0, 1fr);
  gap: 14px;
  flex: 1 1 auto;
  min-height: 0;
}

.cfw-main.reports-open {
  grid-template-columns: 288px minmax(0, 1fr) 372px;
}

.cfw-main .cfw-col.cfw-right {
  display: none;
}

.cfw-main.reports-open .cfw-col.cfw-right {
  display: flex;
}

.cfw-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
}

.cfw-card {
  flex: 0 0 auto;
  padding: 14px;
  border: 1px solid #e4eaf5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(20, 32, 60, .05);
}

.cfw-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.cfw-card-head h3 {
  margin: 0;
  color: #1a2540;
  font-size: 13px;
  font-weight: 700;
}

.cfw-card-head span {
  color: #8d99b5;
  font-size: 11px;
}

.cfw-card-head button {
  height: 26px;
  padding: 0 9px;
  border: 1px solid #e1e8f4;
  border-radius: 8px;
  background: #fff;
  color: #5c6b8c;
  font-size: 11px;
  cursor: pointer;
}

.cfw-card-head button:hover {
  border-color: #b8cdf0;
  color: #2455bd;
}

.cfw-folds {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 10px;
}

.cfw-fold-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
}

.cfw-fold-head:hover {
  background: #f6f9ff;
}

.cfw-fold-head strong {
  flex: 1 1 auto;
  color: #3b4a69;
  font-size: 12px;
  font-weight: 600;
}

.cfw-fold-head:hover strong {
  color: #2455bd;
}

.cfw-caret {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin: -3px 3px 0 0;
  border-right: 1.5px solid #98a3bd;
  border-bottom: 1.5px solid #98a3bd;
  transform: rotate(45deg);
  transition: transform .15s ease;
}

.cfw-fold.open .cfw-caret {
  margin-top: 3px;
  transform: rotate(-135deg);
}

.cfw-tasks-body {
  display: none;
  padding: 0 2px 4px;
}

.cfw-fold.open .cfw-tasks-body {
  display: block;
}

.cfw-top-actions #cfwReportsToggle b {
  display: inline-block;
  min-width: 16px;
  margin-left: 2px;
  padding: 0 5px;
  border-radius: 999px;
  background: #eef3fb;
  color: #4b5d80;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
}

.cfw-top-actions #cfwReportsToggle.on {
  border-color: #b8cdf0;
  background: #f4f8ff;
  color: #2455bd;
}

.cfw-top-actions #cfwReportsToggle.on b {
  background: #dfe9ff;
  color: #2455bd;
}

.cfw-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}

.cfw-kpis > div {
  padding: 8px 6px;
  border-radius: 10px;
  background: #f5f8ff;
  text-align: center;
}

.cfw-kpis b {
  display: block;
  color: #1f3f8f;
  font-size: 15px;
  line-height: 1.3;
}

.cfw-kpis span {
  color: #7b88a6;
  font-size: 10px;
}

.cfw-kpis .warn b {
  color: #d14343;
}

.cfw-task {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-bottom: 6px;
  padding: 9px 10px;
  border: 1px solid #e9eef8;
  border-radius: 12px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}

.cfw-task:hover {
  border-color: #b9cdf2;
  background: #f7faff;
}

.cfw-task-main {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
}

.cfw-task-main strong {
  display: block;
  overflow: hidden;
  color: #1c2842;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cfw-task-main small {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: #7a88a6;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cfw-task-main em {
  display: -webkit-box;
  margin-top: 3px;
  overflow: hidden;
  color: #56658a;
  font-size: 10px;
  font-style: normal;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.cfw-task-go {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eaf1ff;
  color: #2f5fd0;
  font-size: 10px;
}

.cfw-sources {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cfw-source {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 2px;
  border-bottom: 1px solid #f0f3f9;
  color: #5f6d8c;
  font-size: 12px;
}

.cfw-source:last-child {
  border-bottom: 0;
}

.cfw-source b {
  color: #1c2842;
  font-size: 12px;
}

.cfw-source b.ok {
  color: #1c8a58;
}

.cfw-chat {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #e4eaf5;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(20, 32, 60, .06);
}

.cfw-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-bottom: 1px solid #eef2f8;
}

.cfw-chat-title strong {
  display: block;
  color: #1a2540;
  font-size: 13px;
}

.cfw-chat-title small {
  display: block;
  margin-top: 2px;
  color: #8d99b5;
  font-size: 11px;
}

.cfw-skillbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 14px;
  border-bottom: 1px solid #eef2f8;
  background: #fbfcff;
}

.cfw-skill-pick {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.cfw-skill-pick span {
  flex: 0 0 auto;
  color: #7d8bab;
  font-size: 11px;
}

.cfw-skill-pick select {
  max-width: 220px;
  height: 28px;
  padding: 0 26px 0 9px;
  border: 1px solid #dfe6f3;
  border-radius: 8px;
  background: #fff;
  color: #253352;
  font-family: inherit;
  font-size: 12px;
  outline: none;
  cursor: pointer;
}

.cfw-skill-pick select:focus {
  border-color: #8fb1ea;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .1);
}

.cfw-skillbar small {
  flex: 1 1 200px;
  min-width: 0;
  overflow: hidden;
  color: #98a3bd;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cfw-skill-badge {
  flex: 0 0 auto;
  padding: 4px 10px;
  border: 1px solid #c9daf7;
  border-radius: 999px;
  background: linear-gradient(135deg, #eef4ff, #dfeaff);
  color: #2f5fd0;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
}

.cfw-skill-badge:hover {
  border-color: #9db9ec;
}

.cfw-skill-badge.off {
  border-color: #e5e9f0;
  background: #f3f5f9;
  color: #9aa5bf;
}

.cfw-skill-badge.off:hover {
  border-color: #cfd8e8;
  color: #6b7694;
}

.cfw-follow-btn {
  flex: 0 0 auto;
  height: 28px;
  padding: 0 12px;
  border: 1px solid #b8cdf0;
  border-radius: 8px;
  background: #fff;
  color: #2455bd;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.cfw-follow-btn:hover:not(:disabled) {
  background: #f4f8ff;
}

.cfw-follow-btn:disabled {
  border-color: #e5e9f0;
  color: #aab3c7;
  cursor: default;
}

body.cfw-lock .modal-overlay.visible,
body.cfw-lock #fuQuickModal.visible,
body.cfw-lock .fu-feedback-card.visible {
  z-index: 1600;
}

.cfw-messages {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 16px;
  background: #f8faff;
  overscroll-behavior: contain;
}

.cfw-messages .cfa-bubble {
  max-width: min(78%, 760px);
  font-size: 13px;
}

.cfw-composer {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 14px 8px;
  border-top: 1px solid #eef2f8;
  background: #fff;
}

.cfw-composer textarea {
  flex: 1 1 auto;
  min-width: 0;
  max-height: 120px;
  padding: 9px 11px;
  resize: none;
  border: 1px solid #dfe6f3;
  border-radius: 12px;
  background: #fff;
  color: #1a2033;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.5;
  outline: none;
}

.cfw-composer textarea:focus {
  border-color: #8fb1ea;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .1);
}

.cfw-composer button {
  flex: 0 0 auto;
  height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #3d7bff, #2455bd);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.cfw-composer button:disabled {
  background: #b9c5dc;
  cursor: default;
}

.cfw-status {
  padding: 0 14px 10px;
  color: #9aa5bf;
  font-size: 10px;
  line-height: 1.4;
  background: #fff;
}

.cfw-reports-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
  padding-bottom: 8px;
}

.cfw-report-headbar {
  margin-bottom: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #eef2f9;
}

.cfw-tabbar {
  display: flex;
  gap: 4px;
}

.cfw-card-head .cfw-tab {
  height: 26px;
  padding: 0 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #7a86a3;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.cfw-card-head .cfw-tab b {
  margin-left: 3px;
  color: inherit;
  font-size: 10px;
  font-weight: 700;
  opacity: .75;
}

.cfw-card-head .cfw-tab:hover {
  background: #f3f7ff;
  color: #2f5fd0;
}

.cfw-card-head .cfw-tab.on {
  background: #eaf1ff;
  color: #2455bd;
}

.cfw-pane {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-top: 8px;
}

.cfw-company-pane[hidden] {
  display: none;
}

.cfw-co-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eef2f9;
}

.cfw-co-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #5c6b8c;
  font-size: 11px;
}

.cfw-co-field span {
  font-weight: 600;
}

.cfw-co-field i {
  color: #9aa5bf;
  font-style: normal;
  font-weight: 400;
}

.cfw-co-field input {
  height: 30px;
  padding: 0 9px;
  border: 1px solid #dfe7f4;
  border-radius: 8px;
  background: #fbfcff;
  color: #1a2540;
  font-size: 12px;
  outline: none;
}

.cfw-co-field input:focus {
  border-color: #9db9ec;
  background: #fff;
}

.cfw-co-run {
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #3b74f0, #2f5fd0);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.cfw-co-run:disabled {
  opacity: .6;
  cursor: default;
}

.cfw-co-note {
  margin: 0;
  color: #9aa5bf;
  font-size: 10px;
  line-height: 1.5;
}

.cfw-co-paste {
  padding: 6px 9px;
  border: 1px dashed #dfe7f4;
  border-radius: 8px;
  background: #fbfcff;
  color: #5c6b8c;
  font-size: 10.5px;
}

.cfw-co-paste summary {
  cursor: pointer;
  font-weight: 600;
}

.cfw-co-paste textarea {
  box-sizing: border-box;
  width: 100%;
  margin-top: 7px;
  padding: 7px 8px;
  border: 1px solid #dfe7f4;
  border-radius: 7px;
  background: #fff;
  color: #1a2540;
  font-size: 11px;
  line-height: 1.5;
  resize: vertical;
  outline: none;
}

.cfw-co-paste textarea:focus {
  border-color: #9db9ec;
}

.cfw-co-paste button {
  width: 100%;
  height: 27px;
  margin-top: 6px;
  border: 1px solid #cfe0ff;
  border-radius: 7px;
  background: #f2f7ff;
  color: #2f6bd8;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.cfw-co-paste button:hover {
  background: #e9f2ff;
}

.cfw-co-history {
  padding: 6px 9px;
  border: 1px dashed #e6ecf7;
  border-radius: 8px;
  background: #fcfdff;
  color: #5c6b8c;
  font-size: 10.5px;
}

.cfw-co-history summary {
  cursor: pointer;
  font-weight: 600;
}

.cfw-co-history summary em {
  margin-left: 3px;
  font-style: normal;
  color: #8b99b5;
}

.cfw-co-history-list {
  display: grid;
  gap: 5px;
  margin-top: 6px;
}

.cfw-co-history-list .cfw-co-empty-line {
  margin: 0;
  text-align: left;
}

.cfw-co-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 7px;
  border: 1px solid #e6ecf7;
  border-radius: 7px;
  background: #fff;
  color: #1a2540;
  text-align: left;
  cursor: pointer;
}

.cfw-co-history-item:hover {
  border-color: #b9cdf2;
  background: #f6faff;
}

.cfw-co-history-item span {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.cfw-co-history-item b {
  overflow: hidden;
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cfw-co-history-item small {
  color: #8b99b5;
  font-size: 10px;
}

.cfw-co-history-item i {
  flex: none;
  color: #2f6bd8;
  font-size: 10.5px;
  font-style: normal;
}

.cfw-co-loading-line {
  text-align: center;
}

.cfw-co-result {
  padding-top: 10px;
}

.cfw-co-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.cfw-co-head small {
  display: block;
  color: #8d99b5;
  font-size: 10px;
}

.cfw-co-head strong {
  display: block;
  margin-top: 2px;
  color: #1a2540;
  font-size: 13px;
  word-break: break-all;
}

.cfw-co-head p {
  margin: 6px 0 0;
  color: #5c6b8c;
  font-size: 11px;
  line-height: 1.55;
}

.cfw-co-score {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.cfw-co-score b {
  color: #2455bd;
  font-size: 20px;
  line-height: 1;
}

.cfw-co-score b i {
  margin-left: 1px;
  color: #93a0ba;
  font-size: 10px;
  font-style: normal;
  font-weight: 500;
}

.cfw-co-dots {
  display: flex;
  gap: 2px;
}

.cfw-co-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e3eaf6;
}

.cfw-co-dots i.on {
  background: #3b74f0;
}

.cfw-co-score em {
  color: #5c6b8c;
  font-size: 10px;
  font-style: normal;
}

.cfw-co-model {
  margin: 10px 0 0;
  color: #41557a;
  font-size: 11px;
  line-height: 1.55;
}

.cfw-co-model span {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 6px;
  border-radius: 6px;
  background: #f1f6ff;
  color: #2f5fd0;
  font-size: 10px;
}

.cfw-co-result h4 {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 14px 0 6px;
  color: #1a2540;
  font-size: 11.5px;
  font-weight: 700;
}

.cfw-co-result h4 small {
  color: #9aa5bf;
  font-size: 9.5px;
  font-weight: 400;
}

.cfw-co-group {
  margin-bottom: 8px;
}

.cfw-co-group h5 {
  margin: 6px 0 5px;
  color: #5c6b8c;
  font-size: 10.5px;
  font-weight: 700;
}

.cfw-co-registry {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.cfw-co-cell {
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid #eef2f9;
  border-radius: 8px;
  background: #fbfcff;
}

.cfw-co-cell span {
  display: block;
  color: #93a0ba;
  font-size: 9.5px;
}

.cfw-co-cell b {
  display: block;
  margin-top: 2px;
  color: #1a2540;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
  word-break: break-all;
}

.cfw-co-cell.unknown b {
  color: #b0b9cc;
  font-weight: 400;
}

.cfw-co-signals,
.cfw-co-risks,
.cfw-co-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cfw-co-signals li,
.cfw-co-risks li {
  display: flex;
  gap: 6px;
  padding: 5px 0;
  border-bottom: 1px dashed #eef2f9;
  color: #41557a;
  font-size: 11px;
  line-height: 1.5;
}

.cfw-co-signals li:last-child,
.cfw-co-risks li:last-child {
  border-bottom: 0;
}

.cfw-co-basis {
  flex: none;
  height: 16px;
  padding: 0 6px;
  border-radius: 6px;
  font-size: 9.5px;
  font-style: normal;
  line-height: 16px;
}

.cfw-co-basis.known {
  background: #e8f7ee;
  color: #1a8a4a;
}

.cfw-co-basis.guess {
  background: #fff4e5;
  color: #b26a00;
}

.cfw-co-level {
  flex: none;
  height: 16px;
  padding: 0 6px;
  border-radius: 6px;
  font-size: 9.5px;
  line-height: 16px;
}

.cfw-co-level.high {
  background: #fdeaea;
  color: #c22f2f;
}

.cfw-co-level.mid {
  background: #fff4e5;
  color: #b26a00;
}

.cfw-co-level.low {
  background: #eef2f9;
  color: #5c6b8c;
}

.cfw-co-risks b {
  display: block;
  color: #1a2540;
  font-size: 11px;
}

.cfw-co-risks small {
  display: block;
  margin-top: 2px;
  color: #7a86a3;
  font-size: 10px;
  line-height: 1.5;
}

.cfw-co-list li {
  position: relative;
  padding: 4px 0 4px 12px;
  color: #41557a;
  font-size: 11px;
  line-height: 1.55;
}

.cfw-co-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #9db9ec;
}

.cfw-co-empty-line {
  margin: 0;
  color: #9aa5bf;
  font-size: 10.5px;
}

.cfw-co-sources {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}

.cfw-co-sources a {
  display: block;
  padding: 5px 8px;
  border: 1px solid #eef2f9;
  border-radius: 8px;
  background: #fbfcff;
  color: #2f6bd8;
  font-size: 10.5px;
  line-height: 1.5;
  text-decoration: none;
  word-break: break-all;
}

.cfw-co-sources a:hover {
  border-color: #cfe0ff;
  background: #f2f7ff;
}

.cfw-co-disclaimer {
  margin: 14px 0 0;
  padding: 7px 9px;
  border-radius: 8px;
  background: #f7f9fd;
  color: #8d99b5;
  font-size: 10px;
  line-height: 1.55;
}

.cfw-co-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.cfw-co-footer span {
  color: #9aa5bf;
  font-size: 9.5px;
}

.cfw-report {
  margin-bottom: 8px;
  overflow: hidden;
  border: 1px solid #e8edf7;
  border-radius: 13px;
  background: #fff;
}

.cfw-report-head {
  display: block;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.cfw-report-head:hover {
  background: #fafcff;
}

.cfw-report-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
}

.cfw-report-meta time {
  color: #93a0ba;
  font-size: 10px;
}

.cfw-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1.5;
}

.cfw-chip.company {
  background: #eaf1ff;
  color: #2f5fd0;
}

.cfw-chip.owner {
  background: #eef9f2;
  color: #1c8a58;
}

.cfw-report-head strong {
  display: block;
  color: #1c2842;
  font-size: 12px;
  line-height: 1.5;
}

.cfw-report-head p {
  display: -webkit-box;
  margin: 4px 0 0;
  overflow: hidden;
  color: #62708f;
  font-size: 11px;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.cfw-report-body {
  display: none;
  padding: 0 12px 11px;
}

.cfw-report.open .cfw-report-body {
  display: block;
}

.cfw-report-body h5 {
  margin: 10px 0 5px;
  color: #8b97b2;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .4px;
}

.cfw-findings {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cfw-findings li {
  padding: 6px 0;
  border-top: 1px dashed #eef2f8;
  color: #3f4c69;
  font-size: 11px;
  line-height: 1.6;
}

.cfw-findings li:first-child {
  border-top: 0;
}

.cfw-findings b {
  display: block;
  color: #202c47;
  font-size: 11px;
}

.cfw-findings span {
  display: block;
  margin-top: 2px;
  color: #6a7896;
}

.cfw-findings em {
  display: inline-block;
  margin-right: 5px;
  padding: 0 5px;
  border-radius: 4px;
  background: #fff2ef;
  color: #c4512f;
  font-size: 9px;
  font-style: normal;
}

.cfw-actions em {
  background: #eef3ff;
  color: #3b63c7;
}

.cfw-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.cfw-metric {
  padding: 5px 8px;
  border-radius: 8px;
  background: #f5f8ff;
}

.cfw-metric small {
  display: block;
  color: #8a97b3;
  font-size: 9px;
}

.cfw-metric b {
  display: block;
  margin-top: 1px;
  color: #1f3f8f;
  font-size: 11px;
}

.cfw-report-body footer {
  margin-top: 9px;
  color: #a0abc2;
  font-size: 9px;
}

.cfw-empty {
  padding: 22px 14px;
  border: 1px dashed #dce4f2;
  border-radius: 13px;
  background: #fbfcff;
  text-align: center;
}

.cfw-empty.small {
  padding: 14px 10px;
  text-align: left;
}

.cfw-empty strong {
  display: block;
  color: #40506f;
  font-size: 12px;
}

.cfw-empty p {
  margin: 5px 0 0;
  color: #8894ad;
  font-size: 11px;
  line-height: 1.65;
}

.cfw-empty button {
  height: 28px;
  margin-top: 10px;
  padding: 0 12px;
  border: 1px solid #d9e2f1;
  border-radius: 8px;
  background: #fff;
  color: #33508c;
  font-size: 11px;
  cursor: pointer;
}

.cfw-report-loading {
  display: flex;
  gap: 5px;
  justify-content: center;
  padding: 26px 0;
}

.cfw-report-loading i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a9b8d6;
  animation: cfa-blink 1.1s infinite ease-in-out;
}

.cfw-report-loading i:nth-child(2) {
  animation-delay: .15s;
}

.cfw-report-loading i:nth-child(3) {
  animation-delay: .3s;
}

/* 产品推荐 */
.cfw-product-pane[hidden] {
  display: none;
}

.cfw-prod-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eef2f9;
}

.cfw-prod-customer {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 8px;
  background: #f5f8ff;
  color: #5c6b8c;
  font-size: 11px;
}

.cfw-prod-customer span {
  flex: none;
  color: #93a0ba;
}

.cfw-prod-customer b {
  min-width: 0;
  overflow: hidden;
  color: #1a2540;
  font-size: 11.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cfw-prod-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #5c6b8c;
  font-size: 11px;
}

.cfw-prod-field span {
  font-weight: 600;
}

.cfw-prod-field input,
.cfw-prod-field select {
  box-sizing: border-box;
  width: 100%;
  height: 30px;
  padding: 0 9px;
  border: 1px solid #dfe7f4;
  border-radius: 8px;
  background: #fbfcff;
  color: #1a2540;
  font-size: 12px;
  outline: none;
}

.cfw-prod-field select {
  cursor: pointer;
}

.cfw-prod-field input:focus,
.cfw-prod-field select:focus {
  border-color: #9db9ec;
  background: #fff;
}

.cfw-prod-brief {
  margin: 0;
  color: #5c6b8c;
  font-size: 10.5px;
  line-height: 1.55;
}

.cfw-prod-brief:empty {
  display: none;
}

.cfw-prod-brief span {
  display: inline-block;
  margin-right: 5px;
  padding: 1px 6px;
  border-radius: 6px;
  background: #f1f6ff;
  color: #2f5fd0;
  font-size: 10px;
}

.cfw-prod-brief em {
  display: block;
  margin-top: 3px;
  color: #9aa5bf;
  font-style: normal;
}

.cfw-prod-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.cfw-prod-actions button {
  height: 30px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}

.cfw-prod-run {
  border: 0;
  background: linear-gradient(135deg, #3b74f0, #2f5fd0);
  color: #fff;
}

.cfw-prod-pick-btn {
  border: 1px solid #cfe0ff;
  background: #f2f7ff;
  color: #2f6bd8;
}

.cfw-prod-actions button:disabled {
  opacity: .55;
  cursor: default;
}

.cfw-prod-note {
  margin: 0;
  color: #9aa5bf;
  font-size: 10px;
  line-height: 1.5;
}

.cfw-prod-report {
  padding-top: 2px;
}

.cfw-prod-list {
  margin: 0;
  padding-left: 16px;
  color: #41557a;
  font-size: 11px;
  line-height: 1.6;
}

.cfw-prod-list li {
  margin-bottom: 3px;
}

.cfw-prod-list.warn li {
  color: #a56a1e;
}

.cfw-prod-opener {
  margin: 0;
  padding: 8px 10px;
  border-left: 3px solid #9db9ec;
  border-radius: 0 8px 8px 0;
  background: #f6f9ff;
  color: #1a2540;
  font-size: 11.5px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.cfw-prod-copy {
  flex: none;
  height: 20px;
  margin-left: auto;
  padding: 0 7px;
  border: 1px solid #dfe7f4;
  border-radius: 6px;
  background: #fbfcff;
  color: #5c6b8c;
  font-size: 10px;
  font-weight: 500;
  cursor: pointer;
}

.cfw-prod-copy:hover {
  background: #eef4ff;
  color: #2f5fd0;
}

.cfw-prod-qa-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cfw-prod-qa {
  padding: 7px 9px;
  border: 1px solid #eef2f9;
  border-radius: 8px;
  background: #fbfcff;
}

.cfw-prod-qa b {
  display: block;
  color: #1a2540;
  font-size: 11px;
}

.cfw-prod-qa p {
  margin: 3px 0 0;
  color: #5c6b8c;
  font-size: 10.5px;
  line-height: 1.55;
}

.cfw-prod-next {
  margin: 0;
  padding: 7px 9px;
  border-radius: 8px;
  background: #f2f7ff;
  color: #2f5fd0;
  font-size: 11px;
  line-height: 1.55;
}

.cfw-prod-pick-head {
  margin-bottom: 8px;
  color: #5c6b8c;
  font-size: 10.5px;
  font-weight: 600;
}

.cfw-prod-pick {
  margin-bottom: 8px;
  padding: 9px;
  border: 1px solid #e8edf7;
  border-radius: 12px;
  background: #fff;
}

.cfw-prod-pick header {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.cfw-prod-pick header div {
  flex: 1 1 auto;
  min-width: 0;
}

.cfw-prod-pick header small {
  display: block;
  color: #8d99b5;
  font-size: 9.5px;
}

.cfw-prod-pick header strong {
  display: block;
  margin-top: 2px;
  color: #1a2540;
  font-size: 12px;
  line-height: 1.4;
}

.cfw-prod-rank {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 7px;
  background: #eaf1ff;
  color: #2455bd;
  font-size: 11px;
  font-weight: 700;
}

.cfw-prod-pick-score {
  flex: none;
  color: #2455bd;
  font-size: 15px;
  line-height: 1;
}

.cfw-prod-pick-score i {
  color: #93a0ba;
  font-size: 9px;
  font-style: normal;
  font-weight: 500;
}

.cfw-prod-pick p {
  margin: 7px 0;
  color: #5c6b8c;
  font-size: 11px;
  line-height: 1.55;
}

.cfw-prod-pick .cfw-prod-opener {
  font-size: 11px;
}

.cfw-prod-pick-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.cfw-prod-pick-actions button {
  flex: 1 1 0;
  height: 26px;
  border: 1px solid #cfe0ff;
  border-radius: 7px;
  background: #f2f7ff;
  color: #2f6bd8;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
}

.cfw-prod-pick-actions button.ghost {
  border-color: #dfe7f4;
  background: #fbfcff;
  color: #5c6b8c;
}

.cfw-prod-pick-actions button:hover {
  background: #e9f2ff;
}

.cfw-prod-note-line {
  margin: 8px 0 0;
  color: #9aa5bf;
  font-size: 10px;
  line-height: 1.5;
}

@media (max-width: 1240px) {
  .cfw-main {
    grid-template-columns: 248px minmax(0, 1fr);
  }

  .cfw-main.reports-open {
    grid-template-columns: 248px minmax(0, 1fr) 320px;
  }
}

@media (max-width: 980px) {
  .cfw-root {
    padding: 10px;
  }

  .cfw-shell {
    width: 100%;
    height: calc(100vh - 20px);
    padding: 14px;
    border-radius: 16px;
  }

  .cfw-main {
    grid-template-columns: minmax(0, 1fr);
    overflow-y: auto;
  }

  .cfw-main.reports-open {
    grid-template-columns: minmax(0, 1fr);
  }

  .cfw-col {
    overflow: visible;
  }

  .cfw-chat {
    min-height: 420px;
  }

  .cfw-skill-pick {
    flex: 1 1 100%;
  }

  .cfw-skill-pick select {
    max-width: none;
    width: 100%;
  }

  .cfw-skillbar small {
    display: none;
  }
}
