/* =========================================
   TAB 2 – BUSINESS / AGENT PLATFORM (业务)
   ========================================= */
#tab-business {
  flex-direction: row;
  border-radius: 0;
  overflow: hidden;
}

/* ---- Sidebar ---- */
.biz-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: #f5f5f5;
  border-right: 0.5px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  padding: 12px 12px 0;
  overflow-y: auto;
  position: relative;
}
.biz-sidebar::before {
  display: none;
}
.biz-sidebar > * { position: relative; z-index: 1; }

/* Search input */
.biz-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #f5f5f5;
  border-radius: 12px;
  margin-bottom: 4px;
}
.biz-search-icon {
  width: 16px; height: 16px;
  flex-shrink: 0;
  color: rgba(0,0,0,0.35);
}
.biz-search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: rgba(0,0,0,0.82);
  font-family: inherit;
}
.biz-search-input::placeholder {
  color: rgba(0,0,0,0.35);
}

.biz-sidebar-section { display: flex; flex-direction: column; gap: 2px; }

.biz-nav-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 6px 10px;
}

.biz-nav-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
  font-size: 14px;
  color: rgba(0,0,0,0.82);
  transition: all 0.2s ease;
  font-weight: 400;
}
.biz-nav-item:hover { background: rgba(255,255,255,0.6); }
.biz-nav-item.active { background: #FFFFFF; color: rgba(0,0,0,0.82); font-weight: 600; border-radius: 20px; box-shadow: 0 2px 6px rgba(6,6,6,0.04); font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif; }
.biz-nav-item.disabled { color: rgba(0,0,0,0.46); cursor: default; }
.biz-nav-item.biz-nav-muted { color: rgba(0,0,0,0.35); }
.biz-nav-item.biz-nav-muted .biz-nav-icon { opacity: 0.4; }
.biz-nav-item.biz-nav-muted:hover { color: rgba(0,0,0,0.55); }
.biz-nav-item.biz-nav-muted:hover .biz-nav-icon { opacity: 0.6; }
.biz-nav-item.biz-nav-muted.active { color: rgba(0,0,0,0.82); }
.biz-nav-item.biz-nav-muted.active .biz-nav-icon { opacity: 1; }

/* CEO Workspace sub-menu */
.biz-nav-has-sub { position: relative; }
.biz-nav-has-sub .biz-nav-arrow {
  margin-left: auto;
  transition: transform 0.2s;
  color: rgba(0,0,0,0.3);
  flex-shrink: 0;
}
.biz-nav-has-sub.expanded .biz-nav-arrow { transform: rotate(180deg); }
.biz-nav-sub {
  padding: 2px 0 4px 0;
}
.biz-nav-sub-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 18px;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(0,0,0,0.6);
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.15s;
  margin: 1px 8px;
}
.biz-nav-sub-item:hover { background: rgba(0,0,0,0.03); color: rgba(0,0,0,0.78); }
.biz-nav-sub-item.active { background: rgba(41,112,255,0.06); color: #2970ff; font-weight: 600; }
.biz-nav-sub-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.biz-nav-sub-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.biz-nav-sub-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: rgba(0,0,0,0.4);
}
.biz-new-conv {
  font-weight: 600;
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 14px;
  margin-bottom: 0;
}
.biz-nav-icon {
  width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.biz-nav-icon svg, .biz-nav-icon img { width: 20px; height: 20px; }

.biz-section-label {
  font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: rgba(0,0,0,0.46);
  padding: 14px 14px 6px;
  letter-spacing: 0.5px;
}

.biz-agent-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 14px;
  cursor: pointer;
  font-size: 14px;
  color: rgba(0,0,0,0.75);
  transition: background 0.15s;
}
.biz-agent-item:hover { background: rgba(39,111,245,0.07); }
.biz-agent-item.active { background: #f0f5ff; }
.biz-agent-avatar {
  width: 22px; height: 22px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: #fff; font-weight: 700;
  flex-shrink: 0;
}

.biz-history-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 13px;
  color: rgba(0,0,0,0.6);
  cursor: pointer;
  border-radius: 10px;
  transition: background 0.15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.biz-history-item:hover { background: #f5f5f5; }
.biz-history-avatar {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.biz-history-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.biz-history-avatar.chat-icon {
  background: #f0f0f0;
}
.biz-history-avatar.chat-icon svg {
  width: 14px;
  height: 14px;
}
.biz-history-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.biz-history-more-btn {
  font-size: 11px; color: rgba(0,0,0,0.35); cursor: pointer;
}

/* 历史任务列表页 */
.history-list-search-wrap {
  display: flex; align-items: center; gap: 6px;
  background: #f5f5f5; border-radius: 8px; padding: 6px 10px;
  color: rgba(0,0,0,0.3);
}
.history-list-search {
  border: none; outline: none; background: transparent;
  font-size: 13px; color: #1a1a1a; width: 180px;
}
.history-list-search::placeholder { color: rgba(0,0,0,0.3); }
.history-list-content {
  flex: 1; overflow-y: auto; padding: 0 28px 24px;
}
.history-list-group { margin-bottom: 20px; }
.history-list-group-title {
  font-size: 12px; font-weight: 600; color: rgba(0,0,0,0.4);
  padding: 12px 0 8px; border-bottom: 1px solid #f0f0f0; margin-bottom: 4px;
}
.history-list-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 8px; cursor: pointer; transition: background 0.15s;
}
.history-list-item:hover { background: #f5f5f5; }
.history-list-item-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden;
}
.history-list-item-icon img { width: 100%; height: 100%; object-fit: cover; }
.history-list-item-icon.chat-type { background: #f0f0f0; }
.history-list-item-icon.chat-type svg { width: 16px; height: 16px; }
.history-list-item-body { flex: 1; min-width: 0; }
.history-list-item-title {
  font-size: 13px; font-weight: 500; color: #1a1a1a;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.history-list-item-meta {
  font-size: 11px; color: rgba(0,0,0,0.35); margin-top: 2px;
  display: flex; align-items: center; gap: 8px;
}
.history-list-item-tag {
  font-size: 10px; padding: 1px 6px; border-radius: 4px;
  background: #eef2ff; color: #276ff5;
}

/* Agent-specific history header */
.biz-history-agent-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-top: 12px;
  margin-bottom: 4px;
  cursor: pointer;
  border-radius: 10px;
  transition: background 0.15s;
}
.biz-history-agent-header:hover {
  background: #f5f5f5;
}
.biz-history-back-icon {
  width: 16px;
  height: 16px;
  min-width: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0,0,0,0.4);
}
.biz-history-agent-info {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  flex: 1;
}
.biz-history-agent-avatar {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  overflow: hidden;
}
.biz-history-agent-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.biz-history-agent-name {
  font-size: 13px;
  font-weight: 600;
  color: rgba(0,0,0,0.75);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.biz-history-agent-tag {
  font-size: 10px;
  color: #276ff5;
  background: rgba(39,111,245,0.08);
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

/* Workspace items in sidebar */
.biz-workspace-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-radius: 10px;
  transition: background 0.15s; cursor: default;
}
.biz-workspace-item:hover { background: #f5f5f5; }
.biz-ws-item-icon { font-size: 14px; flex-shrink: 0; width: 22px; text-align: center; }
.biz-ws-item-info { flex: 1; min-width: 0; }
.biz-ws-item-name {
  font-size: 13px; color: rgba(0,0,0,0.7);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.biz-ws-item-meta { font-size: 11px; color: rgba(0,0,0,0.35); margin-top: 1px; }
.biz-ws-item-status {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}
.biz-ws-item-status.running { background: #22c55e; }
.biz-ws-item-status.paused { background: #f59e0b; }

/* Config management item - pinned near bottom */
.biz-sidebar-bottom-pinned {
  margin-top: auto;
  position: sticky;
  bottom: 0;
  background: #f5f5f5;
  padding: 8px 0 12px;
  flex-shrink: 0;
}

.biz-config-item {
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-weight: 500;
  color: #666666;
}

.biz-sidebar-top {
  padding: 0 0 12px;
  margin-bottom: 4px;
  margin-left: -12px; margin-right: -12px;
  padding-left: 12px; padding-right: 12px;
  border-bottom: 1px solid #f0f0f0;
}
.biz-sidebar-bottom {
  padding: 12px 0;
  border-top: 1px solid #f0f0f0;
  margin-left: -12px; margin-right: -12px;
  padding-left: 12px; padding-right: 12px;
}
.biz-user-row {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 8px 10px; border-radius: 10px;
  transition: background 0.15s;
}
.biz-user-row:hover { background: #f5f5f5; }
.biz-user-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, #f97316, #fb923c);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: #fff; font-weight: 600;
}
.biz-user-info { flex: 1; min-width: 0; }
.biz-user-name { font-size: 13px; font-weight: 500; color: rgba(0,0,0,0.82); }
.biz-user-role { font-size: 11px; color: rgba(0,0,0,0.4); }
.biz-user-more { color: rgba(0,0,0,0.3); cursor: pointer; padding: 4px; }

/* ---- Main Area ---- */
.biz-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: #fff;
}

/* Background orbs */
.biz-bg-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  display: none;
}
.biz-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  animation: orbFloat 8s ease-in-out infinite;
}
.orb1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #a78bfa, #7c3aed);
  right: -80px; bottom: -80px;
  animation-delay: 0s;
}
.orb2 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, #60a5fa, #2563eb);
  left: 10%; bottom: 20%;
  animation-delay: -3s;
}
.orb3 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, #f0abfc, #c026d3);
  right: 30%; top: 10%;
  animation-delay: -5s;
  opacity: 0.12;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(20px, -20px) scale(1.05); }
  66%  { transform: translate(-15px, 15px) scale(0.97); }
}

/* Welcome state */
.biz-welcome {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 0 24px 24px;
  overflow-y: auto;
}

.biz-agent-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

/* Animated Globe */
.biz-agent-globe {
  width: 100px; height: 100px;
  position: relative;
  animation: globeFloat 4s ease-in-out infinite;
}
.biz-xiaok-avatar {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(147, 130, 220, 0.4));
}
@keyframes globeFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}
.biz-globe-inner {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #7c9fff, #276ff5, #1a3fa0);
  position: relative;
  box-shadow: 0 16px 48px rgba(39,111,245,0.4), 0 0 0 8px rgba(39,111,245,0.08);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.biz-globe-ring {
  position: absolute;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
}
.ring1 {
  width: 80px; height: 25px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotateX(70deg);
  animation: ringRotate 4s linear infinite;
}
.ring2 {
  width: 100px; height: 30px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotateX(70deg) rotateZ(60deg);
  animation: ringRotate 6s linear infinite reverse;
  opacity: 0.5;
}
@keyframes ringRotate {
  from { transform: translate(-50%, -50%) rotateX(70deg) rotateZ(0deg); }
  to   { transform: translate(-50%, -50%) rotateX(70deg) rotateZ(360deg); }
}
.biz-globe-core {
  font-size: 32px; font-weight: 700; color: #fff;
  position: relative; z-index: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.biz-agent-name-row {
  display: flex; align-items: baseline; gap: 10px;
}
.biz-agent-label {
  font-size: 34px;
  font-weight: 700;
  color: #222;
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
.biz-agent-tagline {
  font-size: 30px;
  font-weight: 700;
  background: linear-gradient(90deg, #c13c82, #8647b2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.biz-agent-subtitle {
  font-family: 'DingTalk JinBuTi', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 32px;
  color: rgba(0,0,0,0.82);
  text-align: center;
  line-height: 1.5;
}
.biz-greeting-highlight {
  background: linear-gradient(90deg, #10b981, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Inline globe + subtitle */
.biz-agent-globe-inline {
  display: flex; align-items: center; gap: 10px; justify-content: center;
}
.biz-agent-globe-inline .biz-agent-subtitle {
  margin: 0;
}

/* Center group - matches dev tab layout */
.biz-center-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-top: 28vh;
}

.biz-greeting {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  max-width: 580px;
  width: 100%;
  margin-bottom: 32px;
}

.biz-greeting-row {
  display: flex;
  align-items: center;
  width: 100%;
}

.biz-greeting-avatar {
  width: 40px;
  height: 40px;
  margin-right: 12px;
  flex-shrink: 0;
  object-fit: contain;
}

.biz-greeting-text {
  font-family: 'DingTalk JinBuTi', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 32px;
  color: rgba(0,0,0,0.82);
  white-space: nowrap;
  line-height: 1.4;
}

.biz-greeting-sub {
  font-family: 'DingTalk JinBuTi', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 32px;
  color: rgba(0,0,0,0.82);
  white-space: nowrap;
  line-height: 1.4;
  margin-left: 0.3em;
}

.biz-greeting-line {
  height: auto;
  width: 142px;
  margin-left: auto;
  margin-top: 4px;
}

.biz-greeting-line img {
  width: 100%;
  height: auto;
  display: block;
}
.biz-xiaok-avatar-sm {
  width: 48px; height: 48px; object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(147, 130, 220, 0.35));
  animation: globeFloat 4s ease-in-out infinite;
}

/* Quick action cards */
.biz-quick-actions {
  display: none;
}
.biz-quick-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(39,111,245,0.12);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s;
  width: 220px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  backdrop-filter: blur(8px);
}
.biz-quick-card:hover {
  border-color: #276ff5;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 4px 20px rgba(39,111,245,0.15);
  transform: translateY(-2px);
}
.biz-quick-icon { font-size: 20px; }
.biz-quick-title { font-size: 13px; font-weight: 600; color: rgba(0,0,0,0.82); margin-bottom: 3px; }
.biz-quick-desc  { font-size: 12px; color: rgba(0,0,0,0.45); line-height: 1.4; }

/* Chat area */
.biz-chat-area {
  flex: 1; overflow-y: auto; padding: 20px 40px;
  display: flex; flex-direction: column;
}
.biz-messages { display: flex; flex-direction: column; gap: 16px; flex: 1; }

/* Chat message bubbles */
.biz-msg { display: flex; gap: 10px; max-width: 85%; }
.biz-msg-user { align-self: flex-end; flex-direction: row-reverse; }
.biz-msg-ai { align-self: flex-start; }
.biz-msg-avatar { flex-shrink: 0; }
.biz-msg-avatar img { width: 32px; height: 32px; border-radius: 50%; object-fit: contain; }
.biz-msg-bubble {
  padding: 12px 16px; border-radius: 14px; font-size: 14px; line-height: 1.6;
  word-break: break-word;
}
.biz-msg-user .biz-msg-bubble {
  background: #276ff5; color: #fff; border-bottom-right-radius: 4px;
}
.biz-msg-ai .biz-msg-bubble {
  background: #f5f6f8; color: rgba(0,0,0,0.82); border-bottom-left-radius: 4px;
}

/* Input wrap — centered inside welcome by default */
.biz-input-wrap {
  width: 100%;
  max-width: 710px;
  padding: 0;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  transition: all 0.35s ease;
  margin-top: 32px;
}
/* When input is moved to bottom slot during chat */
.biz-input-wrap.at-bottom {
  padding: 12px 40px 16px;
  max-width: 100%;
}
.biz-input-box {
  background: #fff;
  border: 1px solid #EAEEF2;
  border-radius: 28px;
  padding: 16px 10px 10px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.03);
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
}
.biz-input-box:focus-within {
  border-color: #c0d0e0;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}
.biz-input-inner {
  display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; padding: 0 10px;
}
.biz-mention {
  background: #eff4ff;
  color: #276ff5;
  font-size: 13px;
  padding: 2px 8px;
  border-radius: 8px;
  white-space: nowrap;
  font-weight: 500;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 1px;
}
.biz-input-field {
  flex: 1; border: none; outline: none;
  font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
  font-size: 16px; color: rgba(0,0,0,0.82);
  resize: none; min-height: 24px; max-height: 120px;
  line-height: 1.5; background: transparent;
}
.biz-input-field::placeholder { color: rgba(0,0,0,0.28); }
.biz-input-actions {
  display: flex; align-items: center; justify-content: space-between;
}
.biz-input-left-actions { display: flex; gap: 8px; }
.biz-tool-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: rgba(0,0,0,0.64);
  transition: background 0.15s, color 0.15s;
}
.biz-tool-btn:hover { background: #f0f2f5; color: rgba(0,0,0,0.7); }
.biz-tool-btn svg { width: 20px; height: 20px; }
.biz-send-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #276ff5, #3b82f6);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  box-shadow: 0 2px 8px rgba(39,111,245,0.3);
}
.biz-send-btn:hover { background: #1a56cc; transform: scale(1.08); }
.biz-send-btn svg { width: 16px; height: 16px; color: #fff; }

.biz-input-right-actions {
  display: flex; align-items: center; gap: 8px; margin-left: auto;
}

/* ---- 工作区入口 ---- */
.biz-workspace-btn {
  display: none;
}
.biz-workspace-btn:hover { background: #f0f2f5; color: rgba(0,0,0,0.7); }
.biz-workspace-btn svg { flex-shrink: 0; }

.biz-ws-popup {
  position: fixed;
  background: #fff; border: 1px solid #e8e8e8; border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1); padding: 6px; z-index: 1000;
  min-width: 160px; animation: bizPopupIn 0.15s ease;
}

/* ---- 模型选择入口 ---- */
.biz-model-btn {
  display: none;
}
.biz-model-btn:hover { background: #f0f2f5; color: rgba(0,0,0,0.7); }

.biz-model-popup {
  position: fixed;
  background: #fff; border: 1px solid #e8e8e8; border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14); padding: 8px; z-index: 1000;
  min-width: 280px; animation: bizPopupIn 0.15s ease;
}
.biz-model-popup-title {
  font-size: 12px; font-weight: 600; color: rgba(0,0,0,0.35);
  padding: 6px 12px 8px; letter-spacing: 0.3px;
}
.biz-model-option {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 10px; cursor: pointer;
  transition: background 0.15s;
}
.biz-model-option:hover { background: #f5f7fa; }
.biz-model-icon { font-size: 18px; flex-shrink: 0; width: 28px; text-align: center; }
.biz-model-name { font-size: 13px; font-weight: 500; color: #1a1a1a; }
.biz-model-desc { font-size: 11px; color: rgba(0,0,0,0.4); margin-top: 1px; }
.biz-model-check { display: none; color: #276ff5; font-size: 14px; margin-left: auto; flex-shrink: 0; }
.biz-model-option.active .biz-model-check { display: block; }
.biz-model-option.active { background: #f0f5ff; }

/* Add popup (small popover) */
.biz-add-popup {
  position: fixed;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  padding: 6px;
  z-index: 1000;
  min-width: 150px;
  animation: bizPopupIn 0.15s ease;
}
@keyframes bizPopupIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.biz-add-popup-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 14px;
  color: rgba(0,0,0,0.7);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s;
  white-space: nowrap;
}
.biz-add-popup-item:hover {
  background: #f5f5f5;
}
.biz-add-popup-item svg {
  color: rgba(0,0,0,0.4);
  flex-shrink: 0;
}

/* ===== @ Mention Popover ===== */
.at-overlay {
  position: absolute;
  bottom: 100%;
  left: 0;
  z-index: 300;
  margin-bottom: 8px;
  animation: atFadeIn 0.15s ease;
}
@keyframes atFadeIn { from { opacity: 0; } to { opacity: 1; } }
.at-modal {
  width: 560px; max-height: 320px;
  background: #fff; border-radius: 14px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.04);
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: atSlideIn 0.2s ease;
}
@keyframes atSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.at-tabs {
  display: flex; gap: 0; padding: 0 24px;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}
.at-tab {
  padding: 12px 16px; font-size: 13px; color: rgba(0,0,0,0.45);
  cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -1px; white-space: nowrap; transition: all 0.15s; font-weight: 500;
}
.at-tab:hover { color: rgba(0,0,0,0.8); }
.at-tab.active { color: #276ff5; border-bottom-color: #276ff5; }

.at-section { padding: 16px 24px 0; overflow-y: auto; }
.at-section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.at-section-title {
  font-size: 14px; font-weight: 700; color: #1a1a1a;
  cursor: pointer; user-select: none;
  display: flex; align-items: center; gap: 6px;
}
.at-section-title::after {
  content: '▾'; font-size: 11px; color: rgba(0,0,0,0.3); transition: transform 0.2s;
}
.at-section-title.expanded::after { transform: rotate(180deg); }
.at-section-clear { font-size: 14px; cursor: pointer; opacity: 0.3; transition: opacity 0.15s; }
.at-section-clear:hover { opacity: 0.7; }

.at-chips {
  display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 16px;
  max-height: 42px; overflow: hidden; transition: max-height 0.25s ease;
}
.at-chips.expanded { max-height: 500px; }
.at-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 6px; background: #f8f9fa;
  border: 1px solid #eee; border-radius: 20px;
  cursor: pointer; transition: all 0.15s; font-size: 13px; color: rgba(0,0,0,0.7);
  max-width: 220px;
}
.at-chip:hover { border-color: #c7d2fe; background: #eef2ff; }
.at-chip-icon {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; flex-shrink: 0;
}
.at-chip-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.at-ai-list { display: flex; flex-direction: column; gap: 2px; padding-bottom: 20px; }
.at-ai-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  cursor: pointer; transition: all 0.15s;
  font-size: 14px; color: rgba(0,0,0,0.7);
}
.at-ai-item:hover { background: #f5f5f5; }
.at-ai-item svg { color: rgba(0,0,0,0.3); flex-shrink: 0; }

/* Recommend agent cards */
.biz-rec-cards {
  display: none;
}
.biz-rec-card {
  flex: 1;
  max-width: 240px;
  padding: 16px;
  border: 1px solid #eee;
  border-radius: 14px;
  background: rgba(255,255,255,0.85);
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(6px);
}
.biz-rec-card:hover {
  border-color: #d0d0d0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}
.biz-rec-card-top {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.biz-rec-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
  overflow: hidden;
}
.biz-rec-name {
  font-size: 14px; font-weight: 600; color: #1a1a1a;
  margin-bottom: 3px;
}
.biz-rec-desc {
  font-size: 12px; color: rgba(0,0,0,0.45); line-height: 1.4;
}
.biz-rec-card-bottom {
  display: flex; align-items: center;
  justify-content: space-between;
}
.biz-rec-tags {
  display: flex; gap: 6px;
}
.biz-rec-tags span {
  padding: 2px 8px; font-size: 11px;
  color: rgba(0,0,0,0.4); background: #f5f5f5;
  border-radius: 4px;
}
.biz-rec-status {
  font-size: 11px; white-space: nowrap;
}
.biz-rec-status.added { color: rgba(0,0,0,0.35); }
.biz-rec-status.count { color: #276ff5; }

/* Skill chips (ghost buttons) */
.biz-skill-chips {
  display: none;
}
.biz-schip {
  padding: 7px 18px;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  background: transparent;
  font-size: 13px;
  color: rgba(0,0,0,0.6);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  user-select: none;
}
.biz-schip:hover {
  border-color: #276ff5;
  color: #276ff5;
  background: rgba(39,111,245,0.04);
}

.biz-disclaimer {
  text-align: center; font-size: 11px; color: rgba(0,0,0,0.28);
  margin-top: 8px;
}
.biz-footer-disclaimer {
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 12px;
  color: rgba(0,0,0,0.28);
  text-align: center;
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
}
/* Bottom slot that receives the input during chat */
#biz-input-bottom-slot {
  flex-shrink: 0;
}
#biz-input-bottom-slot .biz-input-wrap {
  padding: 12px 40px 16px;
  max-width: 100%;
}


/* =========================================
   SCHEDULED TASKS PAGE (定时任务)
   ========================================= */
.sched-page {
  flex: 1;
  padding: 32px 40px;
  overflow-y: auto;
  background: #fff;
}
.sched-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.sched-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}
.sched-new-btn {
  padding: 8px 20px;
  background: #276ff5;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}
.sched-new-btn:hover {
  background: #1a56cc;
}

/* Template cards */
.sched-templates {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}
.sched-tpl-card {
  flex: 1;
  padding: 20px;
  border: 1px solid #eee;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.sched-tpl-card:hover {
  border-color: #d0d0d0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.sched-tpl-icon {
  font-size: 20px;
  margin-bottom: 10px;
}
.sched-tpl-name {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
}
.sched-tpl-desc {
  font-size: 13px;
  color: rgba(0,0,0,0.5);
  line-height: 1.6;
}

/* Table section */
.sched-table-section {
  margin-top: 8px;
}
.sched-table-title {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 16px;
}
.sched-table {
  width: 100%;
  border-collapse: collapse;
}
.sched-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(0,0,0,0.45);
  border-bottom: 1px solid #f0f0f0;
}
.sched-table td {
  padding: 14px 16px;
  font-size: 14px;
  color: rgba(0,0,0,0.75);
  border-bottom: 1px solid #f5f5f5;
}
.sched-table tr:hover td {
  background: #fafafa;
}
.sched-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  padding: 3px 10px;
  border-radius: 20px;
}
.sched-status.active {
  background: #e6f7ee;
  color: #16a34a;
}
.sched-status.paused {
  background: #fff7e6;
  color: #d97706;
}
.sched-status.active::before,
.sched-status.paused::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.sched-actions-cell {
  display: flex;
  gap: 8px;
}
.sched-action-btn {
  padding: 4px 10px;
  font-size: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #fff;
  color: rgba(0,0,0,0.6);
  cursor: pointer;
  transition: all 0.15s;
}
.sched-action-btn:hover {
  border-color: #276ff5;
  color: #276ff5;
}
.sched-action-btn.danger:hover {
  border-color: #ef4444;
  color: #ef4444;
}

/* Empty state */
.sched-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 0;
}
.sched-empty-img {
  margin-bottom: 12px;
  opacity: 0.6;
}
.sched-empty-text {
  font-size: 14px;
  color: rgba(0,0,0,0.3);
}

/* Modal */
.sched-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.sched-modal {
  background: #fff;
  border-radius: 16px;
  width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.sched-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 0;
}
.sched-modal-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}
.sched-modal-close {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: rgba(0,0,0,0.4);
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s;
}
.sched-modal-close:hover {
  background: #f0f0f0;
}
.sched-modal-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sched-label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(0,0,0,0.7);
  margin-top: 8px;
}
.sched-input,
.sched-textarea,
.sched-select {
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  color: #1a1a1a;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s;
}
.sched-input:focus,
.sched-textarea:focus,
.sched-select:focus {
  border-color: #276ff5;
}
.sched-textarea {
  resize: vertical;
  min-height: 60px;
}
.sched-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px 20px;
}
.sched-modal-cancel {
  padding: 8px 20px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  color: rgba(0,0,0,0.6);
  cursor: pointer;
  transition: all 0.15s;
}
.sched-modal-cancel:hover {
  background: #f5f5f5;
}
.sched-modal-confirm {
  padding: 8px 20px;
  border: none;
  border-radius: 8px;
  background: #276ff5;
  font-size: 14px;
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}
.sched-modal-confirm:hover {
  background: #1a56cc;
}

/* ---- v2 新增样式 ---- */
/* 任务名称+提示词预览 */
.sched-task-name-cell { display: flex; flex-direction: column; gap: 2px; }
.sched-task-title { font-weight: 600; color: rgba(0,0,0,0.85); }
.sched-task-prompt-preview { font-size: 12px; color: rgba(0,0,0,0.35); }

/* Toggle switch */
.sched-toggle-switch { position: relative; display: inline-block; width: 36px; height: 20px; cursor: pointer; }
.sched-toggle-switch input { opacity: 0; width: 0; height: 0; }
.sched-toggle-slider {
  position: absolute; inset: 0; background: #ccc; border-radius: 20px; transition: 0.2s;
}
.sched-toggle-slider::before {
  content: ''; position: absolute; width: 16px; height: 16px; left: 2px; bottom: 2px;
  background: #fff; border-radius: 50%; transition: 0.2s;
}
.sched-toggle-switch input:checked + .sched-toggle-slider { background: #276ff5; }
.sched-toggle-switch input:checked + .sched-toggle-slider::before { transform: translateX(16px); }

/* 运行状态 */
.sched-run-status { font-size: 12px; color: rgba(0,0,0,0.45); }
.sched-status.enabled { background: #e6f7ee; color: #16a34a; }
.sched-status.disabled { background: #f5f5f5; color: rgba(0,0,0,0.35); }

/* 三点菜单 */
.sched-more-wrap { position: relative; }
.sched-more-btn {
  width: 28px; height: 28px; border: none; background: transparent; border-radius: 6px;
  cursor: pointer; color: rgba(0,0,0,0.35); display: flex; align-items: center; justify-content: center;
  transition: background 0.12s;
}
.sched-more-btn:hover { background: #f0f0f0; color: rgba(0,0,0,0.6); }
.sched-more-menu {
  position: absolute; right: 0; top: 100%; min-width: 130px; background: #fff;
  border-radius: 10px; box-shadow: 0 4px 20px rgba(0,0,0,0.12); border: 1px solid #eee;
  padding: 4px; z-index: 100;
}
.sched-more-option {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px; font-size: 13px;
  color: rgba(0,0,0,0.7); border-radius: 6px; cursor: pointer; transition: background 0.12s;
}
.sched-more-option:hover { background: #f5f5f5; }
.sched-more-option.danger { color: #ef4444; }
.sched-more-option.danger:hover { background: #fef2f2; }

/* Toast */
.sched-toast {
  position: fixed; top: 24px; left: 50%; transform: translateX(-50%); padding: 10px 24px;
  border-radius: 8px; font-size: 14px; font-weight: 500; z-index: 9999;
  opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.sched-toast-show { opacity: 1; }
.sched-toast-success { background: #e6f7ee; color: #16a34a; border: 1px solid #bbf7d0; }
.sched-toast-error { background: #fef2f2; color: #ef4444; border: 1px solid #fecaca; }

/* 触发方式面板 */
.sched-trigger-panel { margin-top: 8px; }
.sched-trigger-row { display: flex; gap: 10px; align-items: center; margin-top: 6px; }
.sched-trigger-row .sched-input,
.sched-trigger-row .sched-select { flex: 1; }
.sched-trigger-hint { font-size: 11px; color: rgba(0,0,0,0.35); margin-top: 4px; }
.sched-trigger-config-card {
  background: #f9fafb; border: 1px solid #eee; border-radius: 10px;
  padding: 14px 16px; margin-top: 8px;
}
.sched-trigger-field { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.sched-trigger-field label { font-size: 12px; color: rgba(0,0,0,0.45); }

/* 提示词输入框（含@按钮） */
.sched-prompt-box {
  border: 1px solid #e0e0e0; border-radius: 10px; padding: 10px 12px 6px;
  transition: border-color 0.15s;
}
.sched-prompt-box:focus-within { border-color: #276ff5; }
.sched-prompt-box .sched-textarea { outline: none; width: 100%; font-family: inherit; font-size: 14px; resize: vertical; min-height: 60px; }
.sched-prompt-inner-toolbar { display: flex; align-items: center; gap: 6px; padding-top: 6px; margin-top: 4px; }
.sched-at-btn-inline {
  width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: rgba(0,0,0,0.35); transition: all 0.12s; position: relative;
}
.sched-at-btn-inline:hover { background: #f0f0f0; color: rgba(0,0,0,0.6); }

/* @搭档提示条 */
.sched-at-hint {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 8px;
  font-size: 12px; color: #276ff5; margin-top: 8px;
}

/* 文件上传拖拽区 */
.sched-file-drop {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 24px 16px; border: 2px dashed #e0e0e0; border-radius: 10px;
  cursor: pointer; transition: all 0.15s; margin-top: 4px;
}
.sched-file-drop:hover { border-color: #276ff5; background: #fafbff; }

/* 事件触发提示 */
.sched-event-hint {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px;
  font-size: 12px; color: #92400e; margin-top: 10px;
}
/* 事件标签（列表中） */
.sched-event-tag {
  display: inline-block; padding: 2px 8px; background: #fef3c7; color: #d97706;
  border-radius: 4px; font-size: 11px; font-weight: 500;
}

/* 每月日历网格 */
.sched-day-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 8px;
}
.sched-day-cell {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border-radius: 6px; font-size: 13px; color: rgba(0,0,0,0.6); cursor: pointer;
  border: 1px solid transparent; transition: all 0.12s;
}
.sched-day-cell:hover { background: #f0f5ff; border-color: #276ff5; }
.sched-day-cell.selected { background: #276ff5; color: #fff; border-color: #276ff5; }
.sched-day-hint { display: flex; align-items: center; gap: 6px; font-size: 11px; color: rgba(0,0,0,0.35); margin-top: 6px; }

/* 文件上传 */
.sched-upload-area { margin-top: 8px; }
.sched-upload-list { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.sched-upload-item {
  display: flex; align-items: center; gap: 6px; padding: 6px 10px;
  background: #f9fafb; border-radius: 6px; font-size: 12px;
}
.sched-upload-name { flex: 1; color: rgba(0,0,0,0.7); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sched-upload-size { color: rgba(0,0,0,0.3); font-size: 11px; }
.sched-upload-remove { cursor: pointer; color: rgba(0,0,0,0.3); font-size: 16px; line-height: 1; }
.sched-upload-remove:hover { color: #ef4444; }

/* @ 菜单 */
.sched-prompt-toolbar { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.sched-at-btn {
  width: 28px; height: 28px; border: 1px solid #e0e0e0; background: #fff; border-radius: 6px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: rgba(0,0,0,0.4); transition: all 0.12s; position: relative;
}
.sched-at-btn:hover { border-color: #276ff5; color: #276ff5; }
.sched-at-menu {
  position: absolute; bottom: 100%; left: 0; min-width: 140px; background: #fff;
  border-radius: 10px; box-shadow: 0 4px 20px rgba(0,0,0,0.12); border: 1px solid #eee;
  padding: 4px; z-index: 100; margin-bottom: 4px;
}
.sched-at-option {
  padding: 8px 12px; font-size: 13px; color: rgba(0,0,0,0.7); border-radius: 6px;
  cursor: pointer; transition: background 0.12s;
}
.sched-at-option:hover { background: #f5f5f5; }

/* 执行记录弹窗 */
.sched-records-header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.sched-records-header select { padding: 6px 10px; border: 1px solid #e0e0e0; border-radius: 6px; font-size: 12px; }
.sched-record-result { font-size: 12px; padding: 2px 8px; border-radius: 10px; }
.sched-record-result.success { background: #e6f7ee; color: #16a34a; }
.sched-record-result.failed { background: #fef2f2; color: #ef4444; }
.sched-trigger-by { font-size: 12px; padding: 2px 8px; border-radius: 10px; }
.sched-trigger-by.auto { background: #e8f0fe; color: #276ff5; }
.sched-trigger-by.manual { background: #fff7e6; color: #d97706; }
.sched-rerun-btn {
  padding: 4px 10px; font-size: 12px; border: 1px solid #e0e0e0; background: #fff;
  border-radius: 6px; cursor: pointer; transition: all 0.12s;
}
.sched-rerun-btn:hover { border-color: #276ff5; color: #276ff5; }

/* 侧边栏定时任务分栏 */
.sched-sb-section { padding: 0 8px; margin-top: 8px; }
.sched-sb-header {
  display: flex; align-items: center; gap: 6px; padding: 6px 4px;
  font-size: 12px; font-weight: 600; color: rgba(0,0,0,0.35); cursor: pointer;
  user-select: none;
}
.sched-sb-arrow { transition: transform 0.15s; color: rgba(0,0,0,0.3); }
.sched-sb-arrow-open { transform: rotate(90deg); }
.sched-sb-task { margin-bottom: 2px; }
.sched-sb-task-header {
  display: flex; align-items: center; gap: 6px; padding: 5px 8px;
  border-radius: 6px; cursor: pointer; transition: background 0.12s; font-size: 12px;
}
.sched-sb-task-header:hover { background: #f5f7fa; }
.sched-sb-icon { color: rgba(0,0,0,0.35); flex-shrink: 0; }
.sched-sb-task-name { flex: 1; color: rgba(0,0,0,0.6); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sched-sb-task-count { font-size: 10px; color: rgba(0,0,0,0.25); background: #f0f0f0; padding: 1px 5px; border-radius: 8px; }
.sched-sb-sessions { padding-left: 28px; }
.sched-sb-session {
  display: flex; align-items: center; gap: 6px; padding: 3px 8px;
  font-size: 11px; color: rgba(0,0,0,0.45); border-radius: 4px; cursor: default;
}
.sched-sb-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.sched-sb-dot-ok { background: #22c55e; }
.sched-sb-dot-fail { background: #ef4444; }
.sched-sb-session-time { flex: 1; }
.sched-sb-session-tag { font-size: 10px; color: rgba(0,0,0,0.25); }

/* =========================================
   AI EMPLOYEE PAGE (AI员工)
   ========================================= */
.aistaff-page {
  /* 颜色 — 浅色氛围主题 */
  --ai-primary: #6366f1;
  --ai-primary-light: #818cf8;
  --ai-accent: #f59e0b;
  --ai-success: #10b981;
  --ai-bg-gradient: #fff;
  --ai-card-bg: rgba(255, 255, 255, 0.72);
  --ai-card-border: rgba(0, 0, 0, 0.06);
  --ai-card-hover-border: rgba(99, 102, 241, 0.25);
  --ai-text-primary: rgba(0, 0, 0, 0.88);
  --ai-text-secondary: rgba(0, 0, 0, 0.55);
  --ai-text-muted: rgba(0, 0, 0, 0.32);

  /* 阴影 */
  --ai-card-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.03);
  --ai-card-hover-shadow: 0 8px 30px rgba(99, 102, 241, 0.10), 0 2px 8px rgba(0, 0, 0, 0.06);

  /* 间距 */
  --ai-space-xs: 4px;
  --ai-space-sm: 8px;
  --ai-space-md: 16px;
  --ai-space-lg: 24px;
  --ai-space-xl: 32px;

  /* 圆角 */
  --ai-radius-sm: 8px;
  --ai-radius-md: 14px;
  --ai-radius-lg: 20px;
  --ai-radius-pill: 9999px;

  /* 字体 */
  --ai-font-display: 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
  --ai-font-body: 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;

  /* 动效 */
  --ai-transition-fast: 150ms ease;
  --ai-transition-normal: 250ms ease;
  --ai-transition-slow: 350ms ease;
  --ai-stagger-delay: 60ms;

  /* 模糊 */
  --ai-blur-card: 20px;
  --ai-blur-tab: 12px;

  /* 原有属性 */
  flex: 1;
  padding: 28px 36px;
  overflow-y: auto;
  background: var(--ai-bg-gradient);
  position: relative;
}
.aistaff-page::before {
  display: none;
}
.aistaff-page > * {
  position: relative;
  z-index: 1;
}
.aistaff-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.aistaff-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  flex-shrink: 0;
}
.aistaff-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.aistaff-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  width: 220px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.aistaff-search-wrap:focus-within {
  border-color: var(--ai-primary-light);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.10);
}
.aistaff-search-wrap svg { width: 15px; height: 15px; color: rgba(0,0,0,0.3); flex-shrink: 0; }
.aistaff-search {
  border: none; outline: none; background: transparent;
  font-size: 13px; color: rgba(0,0,0,0.82); font-family: inherit; width: 100%;
}
.aistaff-search::placeholder { color: rgba(0,0,0,0.3); }
.aistaff-category-tabs {
  display: flex; gap: 4px;
}
.aistaff-tab {
  padding: 5px 14px;
  font-size: 13px;
  border-radius: var(--ai-radius-pill);
  cursor: pointer;
  color: rgba(0,0,0,0.55);
  transition: all 0.15s;
  white-space: nowrap;
}
.aistaff-tab:hover { background: #f0f0f0; }
.aistaff-tab.active {
  background: var(--ai-primary);
  color: #fff;
}

/* Card grid */
.aistaff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
  position: relative;
}

/* Individual card */
.aistaff-card {
  background: var(--ai-card-bg);
  backdrop-filter: blur(var(--ai-blur-card));
  -webkit-backdrop-filter: blur(var(--ai-blur-card));
  border: 1px solid var(--ai-card-border);
  border-radius: var(--ai-radius-md);
  box-shadow: var(--ai-card-shadow);
  padding: 22px 20px 16px;
  position: relative;
  transition: border-color var(--ai-transition-slow), box-shadow var(--ai-transition-slow), transform var(--ai-transition-slow);
  cursor: default;
  overflow: hidden;
  animation: cardFadeUp 0.4s ease both;
}
.aistaff-card:hover {
  border-color: var(--ai-card-hover-border);
  box-shadow: var(--ai-card-hover-shadow);
  transform: translateY(-2px);
}

/* Avatar area with gradient bg */
.aistaff-card-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}
.aistaff-card-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  color: #fff;
  font-weight: 700;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 2px var(--ai-primary-light);
}
.aistaff-card-avatar::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  opacity: 0.15;
}
.aistaff-card-avatar .aistaff-avatar-emoji {
  font-size: 28px;
  line-height: 1;
  position: relative;
  z-index: 1;
}
.aistaff-card-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ai-text-primary);
  font-family: var(--ai-font-display);
  margin-bottom: 4px;
}
.aistaff-card-desc {
  font-size: 13px;
  color: var(--ai-text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Tags row */
.aistaff-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.aistaff-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1;
}
.aistaff-tag {
  padding: 2px 10px;
  font-size: 12px;
  border-radius: var(--ai-radius-pill);
  background: rgba(99,102,241,0.08);
  color: var(--ai-primary);
  border: 1px solid rgba(99,102,241,0.2);
  white-space: nowrap;
}
.aistaff-card-status {
  font-size: 12px;
  color: rgba(0,0,0,0.35);
  white-space: nowrap;
  flex-shrink: 0;
}
.aistaff-card-status.added {
  color: #16a34a;
}
.aistaff-card-status.added::before {
  content: '✓ ';
}

/* Add button & added state on cards */
.aistaff-add-btn {
  padding: 5px 14px; border: 1px solid var(--ai-primary); border-radius: 8px;
  background: #fff; color: var(--ai-primary); font-size: 12px; font-weight: 500;
  cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.aistaff-add-btn:hover { background: rgba(99,102,241,0.06); filter: brightness(1.1); transform: scale(1.04); }
.aistaff-card-added {
  font-size: 12px; color: var(--ai-success); white-space: nowrap;
}

/* ===== 排行榜面板 ===== */
.aistaff-market-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.aistaff-market-left {
  flex: 1;
  min-width: 0;
}
.aistaff-market-layout .aistaff-grid {
  flex: 1;
  min-width: 0;
}
.aistaff-ranking-panel {
  width: 320px;
  flex-shrink: 0;
  background: linear-gradient(170deg, #f8faff 0%, #fff 40%, #faf8ff 100%);
  border: 1px solid rgba(99,102,241,0.10);
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(99,102,241,0.06), 0 8px 32px rgba(99,102,241,0.04);
  padding: 22px 20px 18px;
  position: sticky;
  top: 0;
  overflow: hidden;
  z-index: 1;
}

/* 氛围光晕 */
.ranking-bg-glow {
  position: absolute;
  top: -60px; right: -60px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: rkGlowPulse 4s ease-in-out infinite;
}
@keyframes rkGlowPulse {
  0%,100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* 粒子动效 */
.ranking-bg-particles {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.rk-particle {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  opacity: 0;
  animation: rkFloat 6s ease-in-out infinite;
}
.rk-particle.p1 { background: #FFD700; left: 15%; top: 20%; animation-delay: 0s; }
.rk-particle.p2 { background: #818cf8; left: 75%; top: 10%; animation-delay: 1.2s; }
.rk-particle.p3 { background: #f59e0b; left: 85%; top: 55%; animation-delay: 2.4s; width: 3px; height: 3px; }
.rk-particle.p4 { background: #10b981; left: 10%; top: 70%; animation-delay: 3.6s; }
.rk-particle.p5 { background: #f472b6; left: 50%; top: 85%; animation-delay: 4.8s; width: 3px; height: 3px; }
@keyframes rkFloat {
  0% { opacity: 0; transform: translateY(0) scale(0.5); }
  20% { opacity: 0.7; transform: translateY(-8px) scale(1); }
  80% { opacity: 0.5; transform: translateY(-24px) scale(0.8); }
  100% { opacity: 0; transform: translateY(-36px) scale(0.3); }
}

/* 头部 */
.ranking-header {
  position: relative; z-index: 1;
  margin-bottom: 14px;
}
.ranking-title-row {
  display: flex; align-items: center; gap: 6px; margin-bottom: 4px;
}
.ranking-trophy {
  font-size: 22px;
  animation: rkTrophyBounce 2s ease-in-out infinite;
  display: inline-block;
}
@keyframes rkTrophyBounce {
  0%,100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-3px) rotate(-5deg); }
  75% { transform: translateY(-1px) rotate(3deg); }
}
.ranking-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  font-family: var(--ai-font-display);
}
.ranking-subtitle {
  font-size: 12px;
  color: rgba(0,0,0,0.4);
  margin: 0;
  line-height: 1.5;
}

/* 多维度Tab */
.ranking-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 18px;
  position: relative; z-index: 1;
  background: #f0f1f5;
  border-radius: 10px;
  padding: 3px;
}
.ranking-tab {
  flex: 1;
  text-align: center;
  padding: 6px 4px;
  font-size: 11px;
  font-weight: 500;
  color: rgba(0,0,0,0.45);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  user-select: none;
}
.ranking-tab:hover { color: rgba(0,0,0,0.7); }
.ranking-tab.active {
  background: #fff;
  color: #6366f1;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* ===== 领奖台 Top3 ===== */
.ranking-podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 0 0;
  position: relative; z-index: 1;
}
.podium-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.podium-slot .podium-avatar-wrap {
  position: relative;
  margin-bottom: 6px;
}
.podium-avatar {
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s;
}
.podium-slot:hover .podium-avatar { transform: scale(1.08); }
.podium-avatar img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
/* 金银铜头像尺寸和边框 */
.podium-slot.gold .podium-avatar {
  width: 56px; height: 56px;
  border-color: #FFD700;
  box-shadow: 0 0 12px rgba(255,215,0,0.35), 0 2px 8px rgba(0,0,0,0.1);
}
.podium-slot.silver .podium-avatar {
  width: 48px; height: 48px;
  border-color: #C0C0C0;
  box-shadow: 0 0 8px rgba(192,192,192,0.3), 0 2px 6px rgba(0,0,0,0.08);
}
.podium-slot.bronze .podium-avatar {
  width: 48px; height: 48px;
  border-color: #CD7F32;
  box-shadow: 0 0 8px rgba(205,127,50,0.3), 0 2px 6px rgba(0,0,0,0.08);
}
/* 奖牌徽章 */
.podium-medal {
  position: absolute;
  bottom: -4px; right: -4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; color: #fff;
  border: 2px solid #fff;
  z-index: 2;
}
.podium-slot.gold .podium-medal { background: linear-gradient(135deg, #FFD700, #FFA500); }
.podium-slot.silver .podium-medal { background: linear-gradient(135deg, #C0C0C0, #8a8a8a); }
.podium-slot.bronze .podium-medal { background: linear-gradient(135deg, #CD7F32, #a0622a); }

.podium-name {
  font-size: 11px; font-weight: 600; color: rgba(0,0,0,0.75);
  text-align: center; max-width: 72px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 4px;
}
.podium-value {
  font-size: 10px; color: rgba(0,0,0,0.35);
  text-align: center; white-space: nowrap;
  margin-bottom: 6px;
}
/* 台座 */
.podium-base {
  width: 72px;
  border-radius: 8px 8px 0 0;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 6px;
  font-size: 14px; font-weight: 800; color: #fff;
  position: relative; overflow: hidden;
}
.podium-base::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, transparent 60%);
  pointer-events: none;
}
.podium-slot.gold .podium-base {
  height: 56px;
  background: linear-gradient(180deg, #FFD700, #e6a800);
}
.podium-slot.silver .podium-base {
  height: 40px;
  background: linear-gradient(180deg, #C0C0C0, #999);
}
.podium-slot.bronze .podium-base {
  height: 30px;
  background: linear-gradient(180deg, #CD7F32, #a0622a);
}

/* 冠军光环动画 */
.podium-slot.gold .podium-avatar-wrap::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, rgba(255,215,0,0.3), transparent, rgba(255,215,0,0.2), transparent);
  animation: rkHaloSpin 4s linear infinite;
  z-index: -1;
}
@keyframes rkHaloSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ===== 4~10名列表 ===== */
.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative; z-index: 1;
}
.ranking-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 8px;
  border-radius: 10px;
  transition: all 0.2s;
  cursor: default;
  animation: rkItemSlideIn 0.35s ease both;
}
.ranking-item:hover {
  background: rgba(99,102,241,0.04);
}
.ranking-index {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  color: rgba(0,0,0,0.3);
  background: #f0f1f5;
}
.ranking-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 1.5px solid #eee;
}
.ranking-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ranking-info {
  flex: 1;
  min-width: 0;
}
.ranking-name {
  font-size: 13px;
  font-weight: 600;
  color: rgba(0,0,0,0.78);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ranking-metric {
  font-size: 11px;
  color: rgba(0,0,0,0.35);
  margin-top: 1px;
}
.ranking-trend {
  font-size: 11px;
  font-weight: 600;
  color: #10b981;
  flex-shrink: 0;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(16,185,129,0.08);
}
.ranking-trend.down {
  color: #ef4444;
  background: rgba(239,68,68,0.08);
}
@keyframes rkItemSlideIn {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Custom agent enable/disable toggle button */
.custom-agent-toggle-btn {
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid #276ff5;
  background: #fff;
  color: #276ff5;
  white-space: nowrap;
  font-family: inherit;
}
.custom-agent-toggle-btn:hover {
  background: #f0f5ff;
}
.custom-agent-toggle-btn.enabled {
  background: #ecfdf5;
  border-color: #bbf7d0;
  color: #16a34a;
}
.custom-agent-toggle-btn.enabled:hover {
  border-color: #ef4444;
  color: #ef4444;
  background: #fef2f2;
}
.custom-agent-enabled-text {
  font-size: 12px;
  color: #16a34a;
  white-space: nowrap;
}

/* Toast notification */
.aistaff-toast {
  position: fixed; bottom: 40px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #1a1a1a; color: #fff; padding: 12px 28px; border-radius: 12px;
  font-size: 14px; font-weight: 500; z-index: 9999;
  opacity: 0; pointer-events: none; transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.aistaff-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }

/* ---- Onboarding Flow Modal ---- */
.onboard-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 1100;
  animation: onboardOverlayIn 0.25s ease;
}
@keyframes onboardOverlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.onboard-modal {
  background: #fff;
  border-radius: 20px;
  width: 640px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.18);
  position: relative;
  padding: 0;
}
.onboard-close {
  position: absolute; top: 16px; right: 20px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: rgba(0,0,0,0.35);
  cursor: pointer; border-radius: 8px;
  transition: background 0.15s; z-index: 2;
}
.onboard-close:hover { background: #f0f0f0; }

/* Page transition */
.onboard-page {
  animation: onboardPageIn 0.35s ease;
  padding: 36px 40px 32px;
}
@keyframes onboardPageIn {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Welcome page */
.onboard-welcome {
  text-align: center;
  padding: 48px 40px 36px;
}
.onboard-welcome-avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  margin: 0 auto 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(39,111,245,0.15);
  border: 3px solid #e8eeff;
}
.onboard-welcome-avatar img {
  width: 100%; height: 100%; object-fit: cover;
}
.onboard-welcome-title {
  font-size: 22px; font-weight: 700;
  color: #1a1a1a; margin: 0 0 12px;
}
.onboard-welcome-desc {
  font-size: 15px; color: rgba(0,0,0,0.55);
  line-height: 1.7; margin: 0 0 8px;
  max-width: 420px; margin-left: auto; margin-right: auto;
}
.onboard-welcome-hint {
  font-size: 13px; color: rgba(0,0,0,0.35);
  margin: 16px 0 0;
}

/* Step indicator */
.onboard-steps-bar {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin-bottom: 32px; padding: 0 20px;
}
.onboard-step-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
  background: #f0f0f0; color: rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.onboard-step-dot.active {
  background: #276ff5; color: #fff;
  box-shadow: 0 2px 10px rgba(39,111,245,0.3);
}
.onboard-step-dot.done {
  background: #10b981; color: #fff;
}
.onboard-step-line {
  flex: 1; height: 2px;
  background: #e5e7eb;
  margin: 0 4px;
  transition: background 0.3s;
}
.onboard-step-line.done {
  background: #10b981;
}
.onboard-step-label {
  font-size: 11px; color: rgba(0,0,0,0.35);
  text-align: center; margin-top: 6px;
}
.onboard-step-item {
  display: flex; flex-direction: column; align-items: center;
  flex-shrink: 0;
}

/* Page title */
.onboard-page-title {
  font-size: 18px; font-weight: 700;
  color: #1a1a1a; margin: 0 0 6px;
}
.onboard-page-subtitle {
  font-size: 13px; color: rgba(0,0,0,0.45);
  margin: 0 0 24px;
}

/* Form fields */
.onboard-field {
  margin-bottom: 20px;
}
.onboard-field-label {
  font-size: 13px; font-weight: 600;
  color: rgba(0,0,0,0.65); margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.onboard-field-label .required {
  color: #ef4444; font-size: 14px;
}
.onboard-input {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px; font-size: 14px;
  color: #1a1a1a; background: #fafafa;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none; box-sizing: border-box;
  font-family: inherit;
}
.onboard-input:focus {
  border-color: #276ff5;
  box-shadow: 0 0 0 3px rgba(39,111,245,0.1);
  background: #fff;
}
.onboard-textarea {
  resize: vertical; min-height: 80px;
  line-height: 1.6;
}
.onboard-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 5l3 3 3-3' fill='none' stroke='%23999' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

/* Skill tags selection */
.onboard-skill-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.onboard-skill-tag {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  border: 1.5px solid #e5e7eb;
  background: #fff;
  color: rgba(0,0,0,0.6);
  cursor: pointer;
  transition: all 0.15s;
}
.onboard-skill-tag:hover {
  border-color: #c0d0f0;
  background: #f5f8ff;
}
.onboard-skill-tag.selected {
  border-color: #276ff5;
  background: #eef3ff;
  color: #276ff5;
  font-weight: 500;
}

/* Permission radio group */
.onboard-radio-group {
  display: flex; flex-direction: column; gap: 10px;
}
.onboard-radio-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 16px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.onboard-radio-item:hover {
  border-color: #c0d0f0;
  background: #fafbff;
}
.onboard-radio-item.selected {
  border-color: #276ff5;
  background: #f5f8ff;
}
.onboard-radio-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  flex-shrink: 0;
  margin-top: 1px;
  transition: all 0.15s;
  position: relative;
}
.onboard-radio-item.selected .onboard-radio-dot {
  border-color: #276ff5;
}
.onboard-radio-item.selected .onboard-radio-dot::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #276ff5;
}
.onboard-radio-info {
  flex: 1;
}
.onboard-radio-title {
  font-size: 14px; font-weight: 600;
  color: #1a1a1a; margin-bottom: 2px;
}
.onboard-radio-desc {
  font-size: 12px; color: rgba(0,0,0,0.45);
}

/* Footer buttons */
.onboard-footer {
  display: flex; justify-content: flex-end;
  gap: 12px; margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
}
.onboard-btn {
  padding: 10px 28px;
  border-radius: 10px;
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
  font-family: inherit;
}
.onboard-btn-cancel {
  background: #f5f5f5; color: rgba(0,0,0,0.55);
  border: 1px solid #e5e7eb;
}
.onboard-btn-cancel:hover {
  background: #eee;
}
.onboard-btn-primary {
  background: #276ff5; color: #fff;
}
.onboard-btn-primary:hover {
  background: #1d5fd3;
  box-shadow: 0 2px 10px rgba(39,111,245,0.3);
}
.onboard-btn-success {
  background: #10b981; color: #fff;
}
.onboard-btn-success:hover {
  background: #059669;
  box-shadow: 0 2px 10px rgba(16,185,129,0.3);
}

/* Complete page */
.onboard-complete {
  text-align: center;
  padding: 48px 40px 36px;
}
.onboard-complete-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #34d399);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 36px; color: #fff;
  box-shadow: 0 4px 20px rgba(16,185,129,0.25);
}
.onboard-complete-title {
  font-size: 22px; font-weight: 700;
  color: #1a1a1a; margin: 0 0 10px;
}
.onboard-complete-desc {
  font-size: 14px; color: rgba(0,0,0,0.5);
  line-height: 1.6; margin: 0 0 28px;
}
.onboard-complete-btns {
  display: flex; justify-content: center; gap: 12px;
}

/* Summary card on complete page */
.onboard-summary {
  background: #f8f9fc;
  border-radius: 14px;
  padding: 20px 24px;
  margin: 24px auto;
  max-width: 400px;
  text-align: left;
}
.onboard-summary-row {
  display: flex; justify-content: space-between;
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px solid #f0f0f0;
}
.onboard-summary-row:last-child { border-bottom: none; }
.onboard-summary-label {
  color: rgba(0,0,0,0.45);
}
.onboard-summary-value {
  color: #1a1a1a; font-weight: 500;
  max-width: 220px; text-align: right;
}

/* Avatar picker */
.onboard-avatar-picker {
  display: flex; gap: 12px; flex-wrap: wrap;
}
.onboard-avatar-opt {
  width: 52px; height: 52px;
  border-radius: 50%;
  overflow: hidden;
  border: 2.5px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}
.onboard-avatar-opt:hover {
  border-color: #c0d0f0;
}
.onboard-avatar-opt.selected {
  border-color: #276ff5;
  box-shadow: 0 0 0 3px rgba(39,111,245,0.15);
}
.onboard-avatar-opt img {
  width: 100%; height: 100%; object-fit: cover;
}

/* Bot suggestion items */
.onboard-bot-item {
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.15s;
}
.onboard-bot-item:hover {
  background: #f0f5ff;
}

/* Doc grid for ERP authorization */
/* === 卡片式逐级下钻授权 === */
.onboard-auth-wrap {
  min-height: 320px;
}

/* 面包屑导航 */
.onboard-auth-breadcrumb {
  display: flex; align-items: center; gap: 4px;
  margin-bottom: 16px; font-size: 13px; flex-wrap: wrap;
}
.onboard-auth-crumb {
  color: #276ff5; cursor: pointer; font-weight: 500;
  padding: 2px 4px; border-radius: 4px;
  transition: background 0.15s;
}
.onboard-auth-crumb:hover { background: #f0f5ff; }
.onboard-auth-crumb.current {
  color: #1a1a1a; cursor: default; font-weight: 600;
}
.onboard-auth-crumb.current:hover { background: transparent; }
.onboard-auth-crumb-sep {
  color: rgba(0,0,0,0.25); font-size: 12px;
  user-select: none;
}

/* 一级 & 二级：大卡片 */
.onboard-auth-cards {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px;
  animation: authFadeIn 0.25s ease;
}
@keyframes authFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.onboard-auth-card {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px;
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.18s;
  background: #fff;
  position: relative;
}
.onboard-auth-card:hover {
  border-color: #b8ccf5;
  background: #f8faff;
  box-shadow: 0 2px 12px rgba(39,111,245,0.08);
  transform: translateY(-1px);
}
.onboard-auth-card .card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eef3ff 0%, #dce6ff 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.onboard-auth-card .card-body { flex: 1; min-width: 0; }
.onboard-auth-card .card-name {
  font-size: 14px; font-weight: 600; color: #1a1a1a;
  margin-bottom: 2px;
}
.onboard-auth-card .card-meta {
  font-size: 12px; color: rgba(0,0,0,0.4);
}
.onboard-auth-card .card-arrow {
  color: rgba(0,0,0,0.2); font-size: 16px;
  transition: color 0.15s;
}
.onboard-auth-card:hover .card-arrow { color: #276ff5; }
.onboard-auth-card .card-badge {
  position: absolute; top: 10px; right: 12px;
  background: #276ff5; color: #fff;
  font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: 10px;
  display: none;
}
.onboard-auth-card .card-badge.visible { display: inline-block; }

/* 三级：应用勾选列表 */
.onboard-auth-apps {
  display: flex; flex-direction: column; gap: 8px;
  animation: authFadeIn 0.25s ease;
}
.onboard-auth-apps-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 4px;
}
.onboard-auth-apps-title {
  font-size: 13px; font-weight: 600; color: rgba(0,0,0,0.5);
}
.onboard-auth-apps-actions {
  display: flex; gap: 12px;
}
.onboard-auth-apps-action {
  font-size: 12px; color: #276ff5; cursor: pointer;
  font-weight: 500;
}
.onboard-auth-apps-action:hover { text-decoration: underline; }

.onboard-auth-app-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.onboard-auth-app-item:hover {
  border-color: #c0d0f0; background: #fafbff;
}
.onboard-auth-app-item.selected {
  border-color: #276ff5; background: #f5f8ff;
}
.onboard-auth-app-check {
  width: 22px; height: 22px; border-radius: 6px;
  border: 1.5px solid #d0d5dd;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: transparent;
  flex-shrink: 0; transition: all 0.15s;
}
.onboard-auth-app-item.selected .onboard-auth-app-check {
  background: #276ff5; border-color: #276ff5; color: #fff;
}
.onboard-auth-app-info { flex: 1; }
.onboard-auth-app-name {
  font-size: 14px; font-weight: 600; color: #1a1a1a;
}
.onboard-auth-app-desc {
  font-size: 12px; color: rgba(0,0,0,0.4); margin-top: 2px;
}

/* 底部已选汇总 */
.onboard-auth-summary {
  display: flex; align-items: center; gap: 8px;
  margin-top: 14px; padding: 10px 16px;
  background: #f0f5ff; border-radius: 10px;
  font-size: 13px; color: #276ff5;
}
.onboard-auth-summary-count {
  font-weight: 700; font-size: 16px;
}

/* 旧样式保留兼容 */
.onboard-doc-grid {
  display: flex; flex-direction: column; gap: 8px;
}
.onboard-doc-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.onboard-doc-item:hover {
  border-color: #c0d0f0;
  background: #fafbff;
}
.onboard-doc-item.selected {
  border-color: #276ff5;
  background: #f5f8ff;
}
.onboard-doc-icon {
  font-size: 22px; flex-shrink: 0;
  width: 36px; text-align: center;
}
.onboard-doc-info {
  flex: 1;
}
.onboard-doc-name {
  font-size: 14px; font-weight: 600; color: #1a1a1a;
}
.onboard-doc-desc {
  font-size: 12px; color: rgba(0,0,0,0.4); margin-top: 2px;
}
.onboard-doc-check {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  color: #276ff5; flex-shrink: 0;
}
.onboard-doc-item.selected .onboard-doc-check {
  background: #276ff5; color: #fff;
  font-size: 12px;
}

/* Learn area */
.onboard-learn-area {
  text-align: center;
  padding: 24px 0;
}
.onboard-learn-ready,
.onboard-learn-progress,
.onboard-learn-done {
  display: flex; flex-direction: column; align-items: center;
}
/* Spinner */
.onboard-learn-spinner {
  width: 48px; height: 48px;
  border: 4px solid #e5e7eb;
  border-top-color: #276ff5;
  border-radius: 50%;
  animation: onboardSpin 0.8s linear infinite;
  margin-bottom: 16px;
}
@keyframes onboardSpin {
  to { transform: rotate(360deg); }
}
.onboard-learn-progress-title {
  font-size: 15px; font-weight: 600; color: #1a1a1a;
  margin-bottom: 16px;
}
.onboard-learn-progress-bar {
  width: 100%; max-width: 360px;
  height: 8px; background: #e5e7eb;
  border-radius: 4px; overflow: hidden;
  margin-bottom: 12px;
}
.onboard-learn-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #276ff5, #60a5fa);
  border-radius: 4px;
  width: 0%;
  transition: width 0.4s ease;
}
.onboard-learn-progress-text {
  font-size: 13px; color: rgba(0,0,0,0.45);
}
/* Learn done */
.onboard-learn-done-icon {
  font-size: 48px; margin-bottom: 12px;
}
.onboard-learn-done-title {
  font-size: 18px; font-weight: 700; color: #059669;
  margin-bottom: 8px;
}
.onboard-learn-done-desc {
  font-size: 13px; color: rgba(0,0,0,0.5);
  margin-bottom: 20px;
}
.onboard-learn-summary {
  display: flex; gap: 24px;
  background: #f0fdf4; border-radius: 12px;
  padding: 16px 24px;
}
.onboard-learn-summary-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: rgba(0,0,0,0.6);
}
.onboard-learn-summary-icon {
  font-size: 16px;
}

/* ---- Purchase Modal ---- */
.aistaff-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.aistaff-modal {
  background: #fff;
  border-radius: 20px;
  width: 560px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.18);
  position: relative;
  padding: 28px 32px;
}
.aistaff-modal-close {
  position: absolute;
  top: 16px; right: 20px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  color: rgba(0,0,0,0.35);
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s;
}
.aistaff-modal-close:hover { background: #f0f0f0; }

.aistaff-step { animation: aistaffFadeIn 0.25s ease; }
@keyframes aistaffFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.aistaff-modal-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.aistaff-modal-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  flex-shrink: 0;
}
.aistaff-modal-info h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 4px;
}
.aistaff-modal-info p {
  font-size: 14px;
  color: rgba(0,0,0,0.5);
  margin: 0;
  line-height: 1.5;
}

.aistaff-modal-section {
  margin-bottom: 20px;
}
.aistaff-modal-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(0,0,0,0.55);
  margin-bottom: 10px;
}
.aistaff-modal-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.aistaff-modal-tags .aistaff-tag {
  padding: 4px 14px;
  font-size: 13px;
}
.aistaff-modal-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.aistaff-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: rgba(0,0,0,0.7);
  line-height: 1.5;
}
.aistaff-feature-item::before {
  content: '✦';
  color: #276ff5;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Plan cards */
.aistaff-plan-cards {
  display: flex;
  gap: 12px;
}
.aistaff-plan {
  flex: 1;
  padding: 16px;
  border: 2px solid #eee;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}
.aistaff-plan:hover { border-color: #c0d0f0; }
.aistaff-plan.selected {
  border-color: #276ff5;
  background: #f5f8ff;
}
.aistaff-plan-name {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
}
.aistaff-plan-price {
  font-size: 22px;
  font-weight: 700;
  color: #276ff5;
}
.aistaff-plan-price small {
  font-size: 12px;
  font-weight: 400;
  color: rgba(0,0,0,0.4);
}
.aistaff-plan-note {
  font-size: 12px;
  color: rgba(0,0,0,0.4);
  margin-top: 4px;
}

/* Footer */
.aistaff-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}
.aistaff-price-display {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.aistaff-price-label {
  font-size: 14px;
  color: rgba(0,0,0,0.5);
}
.aistaff-price-value {
  font-size: 24px;
  font-weight: 700;
  color: #276ff5;
}
.aistaff-buy-btn {
  padding: 10px 36px;
  background: linear-gradient(135deg, #276ff5, #5b9aff);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 4px 16px rgba(39,111,245,0.25);
}
.aistaff-buy-btn:hover {
  background: linear-gradient(135deg, #1a56cc, #4a8aee);
  transform: translateY(-1px);
}
.aistaff-footer-btns {
  display: flex; gap: 10px; align-items: center;
}
.aistaff-wishlist-btn {
  padding: 10px 24px;
  background: #fff;
  color: rgba(0,0,0,0.6);
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s;
}
.aistaff-wishlist-btn:hover {
  border-color: #f59e0b; color: #f59e0b; background: #fffbeb;
}
.aistaff-wishlist-btn.added {
  border-color: #f59e0b; color: #b45309; background: #fef3c7;
  cursor: default;
  pointer-events: none;
  font-weight: 600;
}
.aistaff-back-btn {
  padding: 10px 28px;
  background: #fff;
  color: rgba(0,0,0,0.6);
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
}
.aistaff-back-btn:hover { background: #f5f5f5; }

/* Step 2: Order summary */
.aistaff-step-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 20px;
}
.aistaff-order-summary {
  background: #f9fafb;
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 20px;
}
.aistaff-order-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
  color: rgba(0,0,0,0.65);
}
.aistaff-order-row.total {
  border-top: 1px solid #e8e8e8;
  margin-top: 8px;
  padding-top: 12px;
  font-weight: 600;
  color: #1a1a1a;
}
.aistaff-order-row.total span:last-child {
  color: #276ff5;
  font-size: 18px;
}

/* Payment methods */
.aistaff-pay-methods { margin-bottom: 8px; }
.aistaff-pay-options {
  display: flex;
  gap: 10px;
}
.aistaff-pay-option {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border: 2px solid #eee;
  border-radius: 12px;
  cursor: pointer;
  font-size: 13px;
  color: rgba(0,0,0,0.7);
  transition: all 0.15s;
}
.aistaff-pay-option:has(input:checked) {
  border-color: #276ff5;
  background: #f5f8ff;
}
.aistaff-pay-option input { display: none; }
.aistaff-pay-icon { font-size: 18px; }

/* Step 3: Success */
.aistaff-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 0 20px;
  gap: 12px;
  text-align: center;
}
.aistaff-success-icon {
  font-size: 48px;
  margin-bottom: 8px;
}
.aistaff-success h3 {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}
.aistaff-success p {
  font-size: 14px;
  color: rgba(0,0,0,0.45);
  margin: 0 0 16px;
}

/* ---- AI员工主Tab（玻璃拟态） ---- */
.aistaff-main-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 0;
  padding: 0 36px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(var(--ai-blur-tab));
  -webkit-backdrop-filter: blur(var(--ai-blur-tab));
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.aistaff-main-tab {
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color var(--ai-transition-fast);
  font-family: var(--ai-font-body);
}
.aistaff-main-tab:hover { color: var(--ai-text-secondary); }
.aistaff-main-tab.active { color: var(--ai-primary); border-bottom: 2.5px solid var(--ai-primary); }
.aistaff-main-tab.dimmed { color: rgba(0, 0, 0, 0.18); }
.aistaff-main-tab.dimmed:hover { color: rgba(0, 0, 0, 0.3); }
.aistaff-main-tab.dimmed.active { color: var(--ai-primary); opacity: 0.4; border-bottom-color: var(--ai-primary); }

/* ---- 员工管理面板 ---- */
.aimgr-layout { display:flex; height:calc(100% - 52px); }
.aimgr-sidebar {
  width:240px; background:#fff; border-right:1px solid #eee;
  overflow-y:auto; flex-shrink:0; padding:0;
}
.aimgr-sb-title {
  padding:16px 18px 12px; font-size:12px; font-weight:700;
  color:rgba(0,0,0,0.3); text-transform:uppercase; letter-spacing:0.5px;
  border-bottom:1px solid #f0f0f0;
}
.aimgr-sb-item {
  display:flex; align-items:center; gap:12px;
  padding:14px 18px; cursor:pointer; transition:all 0.15s; border-left:3px solid transparent;
}
.aimgr-sb-item:hover { background:#f8f8f8; }
.aimgr-sb-item.active { background:#eef2ff; border-left-color:#276ff5; }
.aimgr-sb-avatar {
  width:40px; height:40px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:20px; flex-shrink:0; position:relative;
}
.aimgr-sb-dot {
  position:absolute; bottom:0; right:0;
  width:10px; height:10px; border-radius:50%; border:2px solid #fff;
}
.aimgr-dot-green { background:#16a34a; }
.aimgr-dot-yellow { background:#d97706; }
.aimgr-sb-info { flex:1; min-width:0; }
.aimgr-sb-name { font-size:13px; font-weight:600; color:#1a1a1a; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.aimgr-sb-role { font-size:11px; color:rgba(0,0,0,0.4); margin-top:2px; }

.aimgr-main { flex:1; display:flex; flex-direction:column; overflow:hidden; position:relative; background:#fafbfc; }
.aimgr-header {
  padding:18px 24px; background:#fff; border-bottom:1px solid #eee;
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px;
}
.aimgr-h-left { display:flex; align-items:center; gap:14px; }
.aimgr-h-avatar {
  width:48px; height:48px; border-radius:50%;
  display:flex; align-items:center; justify-content:center; font-size:24px; flex-shrink:0;
}
.aimgr-h-name { font-size:17px; font-weight:700; color:#1a1a1a; }
.aimgr-h-type { font-size:11px; padding:2px 8px; background:#eef2ff; color:#276ff5; border-radius:6px; font-weight:500; margin-left:8px; }
.aimgr-h-meta { font-size:12px; color:rgba(0,0,0,0.4); margin-top:3px; }
.aimgr-h-actions { display:flex; align-items:center; gap:10px; }
.aimgr-h-status {
  padding:4px 14px; font-size:12px; font-weight:500; border-radius:20px;
}
.aimgr-st-running { background:#ecfdf5; color:#16a34a; }
.aimgr-st-idle { background:#fffbeb; color:#d97706; }

.aimgr-tabs {
  display:flex; gap:0; background:#fff; border-bottom:1px solid #eee; padding:0 24px;
}
.aimgr-content { flex:1; overflow-y:auto; padding:20px 24px 120px; }

/* Chat */
.aimgr-chat {
  position:absolute; bottom:14px; left:50%; transform:translateX(-50%);
  width:90%; max-width:600px; background:#fff; border-radius:14px;
  box-shadow:0 6px 24px rgba(0,0,0,0.1); border:1px solid #e8e8e8; z-index:50; overflow:hidden;
}
.aimgr-chat-msgs { max-height:200px; overflow-y:auto; padding:14px; }
.aimgr-chat-quick { display:flex; gap:6px; padding:8px 14px 0; overflow-x:auto; }
.aimgr-chat-bar { display:flex; align-items:center; padding:10px 12px; gap:8px; }
.aimgr-chat-input {
  flex:1; border:1px solid #eee; border-radius:10px; padding:10px 14px;
  font-size:13px; outline:none; background:#fafafa; transition:all 0.15s;
}
.aimgr-chat-input:focus { border-color:#276ff5; background:#fff; }
.aimgr-chat-send {
  width:34px; height:34px; border-radius:10px; border:none;
  background:#276ff5; color:#fff; display:flex; align-items:center; justify-content:center;
  cursor:pointer; transition:background 0.15s;
}
.aimgr-chat-send:hover { background:#1a56cc; }


/* =========================================
   AI EMPLOYEE CENTER (员工中心)
   ========================================= */
/* Unified panel header for all three tabs */
.ai-panel-header {
  margin-bottom: 28px;
  padding: 4px 0;
}
.ai-panel-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--ai-text-primary);
  font-family: var(--ai-font-display);
  margin: 0 0 6px;
  letter-spacing: -0.3px;
}
.ai-panel-subtitle {
  font-size: 14px;
  color: var(--ai-text-muted);
  margin: 0;
  line-height: 1.5;
}
.aictr-header { margin-bottom: 24px; }
.aictr-title { font-size: 22px; font-weight: 700; color: #1a1a1a; margin: 0 0 4px; }
.aictr-sub { font-size: 14px; color: rgba(0,0,0,0.4); margin: 0; }
.aictr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.aictr-card {
  background: var(--ai-card-bg);
  backdrop-filter: blur(var(--ai-blur-card));
  -webkit-backdrop-filter: blur(var(--ai-blur-card));
  border: 1px solid var(--ai-card-border);
  border-radius: var(--ai-radius-md);
  box-shadow: var(--ai-card-shadow);
  padding: 16px 18px;
  cursor: default;
  position: relative;
  transition: border-color var(--ai-transition-slow), box-shadow var(--ai-transition-slow), transform var(--ai-transition-slow);
}
.aictr-card:hover {
  border-color: var(--ai-card-hover-border);
  box-shadow: var(--ai-card-hover-shadow);
  transform: translateY(-2px);
}
.aictr-chat-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid #e8e8e8;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
  color: rgba(0,0,0,0.35);
}
.aictr-chat-btn:hover {
  border-color: #276ff5;
  color: #276ff5;
  background: #f0f5ff;
  box-shadow: 0 2px 8px rgba(39,111,245,0.15);
}
.aictr-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.aictr-avatar {
  width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: #f0f0f0;
  box-shadow: 0 0 0 2px var(--ai-primary-light);
}
.aictr-avatar img { width: 100%; height: 100%; object-fit: cover; }
.aictr-info { flex: 1; min-width: 0; }
.aictr-name { font-size: 14px; font-weight: 600; color: var(--ai-text-primary); font-family: var(--ai-font-display); }
.aictr-role { font-size: 12px; color: rgba(0,0,0,0.4); margin-top: 2px; }
.aictr-badge {
  padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 500;
  white-space: nowrap; flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
}
.aictr-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor;
}
.aictr-badge.working { background: #ecfdf5; color: #16a34a; }
.aictr-badge.standby { background: #f5f5f5; color: rgba(0,0,0,0.4); }
.aictr-body { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.aictr-row { display: flex; gap: 12px; font-size: 13px; line-height: 1.5; color: rgba(0,0,0,0.75); }
.aictr-lbl { color: rgba(0,0,0,0.4); min-width: 64px; flex-shrink: 0; }
.aictr-link { color: #276ff5; cursor: pointer; }
.aictr-link:hover { text-decoration: underline; }
.aictr-skill-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.aictr-skill-tag {
  display: inline-block; padding: 3px 10px; border-radius: var(--ai-radius-pill);
  font-size: 12px; background: rgba(99,102,241,0.08); color: var(--ai-primary); border: 1px solid rgba(99,102,241,0.2);
  white-space: nowrap;
}
/* Card sections: 关键产出 & 衡量指标 */
.aictr-card-section {
  padding: 6px 0 0;
}
.aictr-card-sec-title {
  font-size: 12px; color: var(--ai-text-muted); margin-bottom: 5px; font-weight: 500;
}
.aictr-card-sec-items {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.aictr-card-sec-item {
  font-size: 12px; color: rgba(0,0,0,0.6); background: #f7f8fa; padding: 3px 10px;
  border-radius: 8px; white-space: nowrap;
}
.aictr-card-kpis {
  display: flex; gap: 16px;
}
.aictr-card-kpi {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.aictr-kpi-val {
  font-size: 16px; font-weight: 700; color: #1a1a1a;
}
.aictr-kpi-label {
  font-size: 11px; color: rgba(0,0,0,0.35);
}
.aictr-metrics {
  display: flex; gap: 20px; padding-top: 14px; border-top: 1px solid #f0f0f0;
  align-items: center;
}
.aictr-metric {
  display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0;
}
.aictr-metric-label {
  font-size: 12px; color: rgba(0,0,0,0.4); white-space: nowrap; flex-shrink: 0;
}
.aictr-metric-bar-wrap {
  display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0;
}
.aictr-metric-bar {
  flex: 1; height: 6px; background: #f0f0f0; border-radius: 3px; overflow: hidden;
}
.aictr-metric-bar-fill {
  height: 100%; border-radius: 3px; transition: width 0.5s ease;
}
.aictr-metric-bar-fill.high { background: linear-gradient(90deg, #f59e0b, #ef4444); }
.aictr-metric-bar-fill.medium { background: linear-gradient(90deg, #276ff5, #60a5fa); }
.aictr-metric-bar-fill.idle { background: #d1d5db; }
.aictr-metric-val {
  font-size: 12px; color: rgba(0,0,0,0.55); white-space: nowrap; font-weight: 500;
}
.aictr-metric-val.fast { color: #16a34a; }
.aictr-metric-val.normal { color: #d97706; }
.aictr-metric-val.slow { color: #ef4444; }
/* cursor already set on .aictr-card above */
.aictr-skill-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.aictr-skill-tag { display: inline-block; padding: 3px 10px; border-radius: var(--ai-radius-pill); font-size: 12px; color: var(--ai-primary); background: rgba(99,102,241,0.08); border: 1px solid rgba(99,102,241,0.2); white-space: nowrap; }
.aictr-count { font-size: 14px; font-weight: 500; color: #276ff5; background: #eff6ff; padding: 2px 10px; border-radius: 20px; margin-left: 8px; }
.aictr-group-tag { padding: 3px 10px; border-radius: 6px; font-size: 11px; font-weight: 500; background: #f8f9fa; color: rgba(0,0,0,0.5); border: 1px solid #eee; white-space: nowrap; flex-shrink: 0; }
.aictr-list { margin: 0; padding: 0 0 0 16px; font-size: 12px; color: var(--ai-text-secondary); line-height: 1.7; list-style: disc; }
.aictr-list li { padding-left: 2px; }
.aictr-card-metrics-row { display: flex; flex-wrap: wrap; gap: 8px; }
.aictr-metric-pill { display: inline-block; padding: 3px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; border: 1px solid; }
.aictr-metric-pill.green { color: #16a34a; border-color: #bbf7d0; background: #f0fdf4; }
.aictr-metric-pill.orange { color: #d97706; border-color: #fde68a; background: #fffbeb; }
.aictr-metric-pill.red { color: #dc2626; border-color: #fecaca; background: #fef2f2; }
.aictr-metric-pill.blue { color: #2563eb; border-color: #bfdbfe; background: #eff6ff; }
.aictr-email { font-size: 13px; color: #276ff5; }
.aictr-card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid #f0f0f0; margin-top: 4px; }
.aictr-skill-count { font-size: 12px; font-weight: 600; color: #276ff5; padding: 3px 12px; border: 1px solid #bfdbfe; border-radius: 20px; background: #eff6ff; }
.aictr-run-status { font-size: 12px; color: rgba(0,0,0,0.5); display: flex; align-items: center; gap: 6px; }
.aictr-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; }
.aictr-dot.green { background: #16a34a; }
.aictr-section-divider { font-size: 14px; color: rgba(0,0,0,0.4); font-weight: 400; padding: 24px 0 12px; margin-top: 8px; border-top: 1px solid #f0f0f0; }

/* Card entrance animation */
@keyframes cardFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.aictr-card {
  animation: cardFadeUp 0.4s ease both;
}
.aictr-grid .aictr-card:nth-child(1) { animation-delay: calc(var(--ai-stagger-delay) * 1); }
.aictr-grid .aictr-card:nth-child(2) { animation-delay: calc(var(--ai-stagger-delay) * 2); }
.aictr-grid .aictr-card:nth-child(3) { animation-delay: calc(var(--ai-stagger-delay) * 3); }
.aictr-grid .aictr-card:nth-child(4) { animation-delay: calc(var(--ai-stagger-delay) * 4); }
.aictr-grid .aictr-card:nth-child(5) { animation-delay: calc(var(--ai-stagger-delay) * 5); }
.aictr-grid .aictr-card:nth-child(6) { animation-delay: calc(var(--ai-stagger-delay) * 6); }
.aictr-grid .aictr-card:nth-child(7) { animation-delay: calc(var(--ai-stagger-delay) * 7); }

/* ---- 我的AI搭档 卡牌布局 ---- */
.myai-agent-cards { display:flex; gap:14px; overflow-x:auto; padding:4px 0 18px; }
.myai-agent-cards::-webkit-scrollbar { height:4px; }
.myai-agent-cards::-webkit-scrollbar-thumb { background:#ddd; border-radius:4px; }
.myai-agent-card { min-width:150px; max-width:180px; padding:16px 14px; border-radius:14px; border:2px solid transparent; background:#fff; box-shadow:0 1px 4px rgba(0,0,0,0.06); cursor:pointer; display:flex; flex-direction:column; align-items:center; gap:8px; transition:all 0.2s; flex-shrink:0; text-align:center; position:relative; }
.myai-agent-card:hover { border-color:rgba(39,111,245,0.3); box-shadow:0 4px 16px rgba(39,111,245,0.1); }
.myai-agent-card.active { border-color:#276ff5; background:#f0f4ff; box-shadow:0 4px 16px rgba(39,111,245,0.15); }
.myai-agent-card-avatar { width:52px; height:52px; border-radius:14px; overflow:hidden; background:#f0f0f0; flex-shrink:0; }
.myai-agent-card-avatar img { width:100%; height:100%; object-fit:cover; }
.myai-agent-card-name { font-size:14px; font-weight:600; color:#1a1a1a; line-height:1.3; }
.myai-agent-card-sub { font-size:11px; color:rgba(0,0,0,0.4); }
.myai-agent-card.not-onboarded { opacity:0.5; border-style:dashed; border-color:#d1d5db; }
.myai-agent-card.not-onboarded.active { opacity:1; border-color:#276ff5; }

/* Just-onboarded highlight animation */
.myai-agent-card.just-onboarded {
  animation: onboardedPulse 1.5s ease 2;
  border-color: #10b981 !important;
  box-shadow: 0 0 0 4px rgba(16,185,129,0.15), 0 4px 20px rgba(16,185,129,0.2) !important;
}
@keyframes onboardedPulse {
  0% { box-shadow: 0 0 0 4px rgba(16,185,129,0.15), 0 4px 20px rgba(16,185,129,0.2); }
  50% { box-shadow: 0 0 0 8px rgba(16,185,129,0.08), 0 4px 30px rgba(16,185,129,0.3); }
  100% { box-shadow: 0 0 0 4px rgba(16,185,129,0.15), 0 4px 20px rgba(16,185,129,0.2); }
}
/* New badge for just-onboarded card */
.myai-agent-card.just-onboarded::after {
  content: '✓ 刚入职';
  position: absolute;
  top: -8px; right: -8px;
  background: linear-gradient(135deg, #10b981, #34d399);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(16,185,129,0.3);
  animation: badgeBounce 0.5s ease;
}
@keyframes badgeBounce {
  0% { transform: scale(0); }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
.myai-clone-header { display:flex; align-items:center; justify-content:space-between; margin:0 0 14px; }
.myai-clone-header-title { font-size:16px; font-weight:700; color:#1a1a1a; }
.myai-clone-header-title small { font-weight:400; color:rgba(0,0,0,0.4); margin-left:6px; font-size:13px; }
.myai-add-clone-btn { font-size:13px; color:#276ff5; cursor:pointer; background:none; border:1px dashed #276ff5; border-radius:8px; padding:6px 16px; transition:background 0.15s; }
.myai-add-clone-btn:hover { background:#f0f4ff; }

/* ---- 分身卡片 v2 ---- */
.myai-clone-card-v2 { cursor:pointer; position:relative; overflow:hidden; }
.myai-clone-copy-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: rgba(0,0,0,0.4);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: all 0.15s;
  z-index: 2;
}
.myai-clone-card-v2:hover .myai-clone-copy-btn {
  opacity: 1;
}
.myai-clone-copy-btn:hover {
  border-color: #276ff5;
  color: #276ff5;
  background: #f5f8ff;
}
/* 分身卡片小头像 */
.myai-clone-avatar-mini {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid #f0f0f0;
  flex-shrink: 0;
}
.myai-clone-avatar-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 刚复制标记 */
.myai-copied-badge {
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 10px;
  background: #eef3ff;
  color: #276ff5;
  border: 1px solid #dbeafe;
  font-weight: 500;
  animation: myaiCopiedPulse 0.6s ease;
  margin-left: 4px;
}
/* 新添加 — 右上角丝带标签 */
.myai-ribbon-wrap {
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
}
.myai-ribbon {
  position: absolute;
  top: 16px; right: -24px;
  width: 100px;
  text-align: center;
  padding: 4px 0;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  transform: rotate(45deg);
  box-shadow: 0 2px 6px rgba(22,163,106,0.3);
  letter-spacing: 0.5px;
  animation: myaiRibbonIn 0.5s ease;
}
@keyframes myaiRibbonIn {
  0% { opacity: 0; transform: rotate(45deg) scale(0.7); }
  60% { transform: rotate(45deg) scale(1.05); }
  100% { opacity: 1; transform: rotate(45deg) scale(1); }
}
.myai-just-added {
  animation: myaiJustAddedIn 0.6s ease;
  border-color: #bbf7d0 !important;
  box-shadow: 0 0 0 2px rgba(22,163,106,0.12), 0 4px 16px rgba(22,163,106,0.08) !important;
}
@keyframes myaiJustAddedIn {
  0% { transform: scale(0.92); opacity: 0; }
  60% { transform: scale(1.02); }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes myaiCopiedPulse {
  0% { transform: scale(0.8); opacity: 0; }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}
/* 刚复制的卡片高亮 */
.myai-clone-just-copied {
  animation: myaiCardCopiedIn 0.5s ease;
  border-color: #276ff5 !important;
  box-shadow: 0 0 0 3px rgba(39,111,245,0.1);
}
@keyframes myaiCardCopiedIn {
  0% { opacity: 0; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}
.myai-clone-status-row { display:flex; align-items:center; gap:8px; margin-bottom:8px; }
.myai-status-dot { width:8px; height:8px; border-radius:50%; flex-shrink:0; }
.myai-clone-card-name { font-size:15px; font-weight:600; color:#1a1a1a; }
.myai-clone-meta-row { font-size:12px; color:rgba(0,0,0,0.45); margin-bottom:4px; }
.myai-clone-output-row { font-size:12px; color:rgba(0,0,0,0.55); margin-bottom:8px; }
.myai-clone-skill-tags { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:10px; }
.myai-skill-pill { font-size:11px; padding:2px 10px; border-radius:12px; background:#f0f4ff; color:#276ff5; border:1px solid #dbeafe; }
.myai-card-actions { display:flex; gap:8px; flex-wrap:wrap; padding-top:8px; border-top:1px solid #f0f0f0; }
.myai-card-action { font-size:12px; padding:5px 14px; border-radius:6px; border:1px solid #e5e5e5; background:#fff; color:#333; cursor:pointer; transition:all 0.15s; }
.myai-card-action:hover { border-color:#276ff5; color:#276ff5; background:#f0f4ff; }
.myai-card-action.primary { background:#6366f1; color:#fff; border-color:#6366f1; }
.myai-card-action.primary:hover { background:#4f46e5; }

/* ---- 启用/停用切换按钮 ---- */
.myai-toggle-btn { margin-left:auto; font-size:11px; padding:2px 10px; border-radius:12px; border:none; cursor:pointer; transition:all 0.2s; font-weight:500; line-height:1.6; }
.myai-toggle-btn.enabled { background:#ecfdf5; color:#16a34a; }
.myai-toggle-btn.enabled:hover { background:#dcfce7; color:#15803d; }
.myai-toggle-btn.disabled { background:#f5f5f5; color:#999; }
.myai-toggle-btn.disabled:hover { background:#fee2e2; color:#dc2626; }

/* ---- 分身详情弹窗 ---- */
.myai-dt-overlay { position:fixed; inset:0; background:rgba(0,0,0,0.4); display:flex; align-items:center; justify-content:center; z-index:1000; }
.myai-dt-modal { background:#fff; border-radius:20px; width:820px; height:80vh; max-height:80vh; overflow:hidden; box-shadow:0 24px 80px rgba(0,0,0,0.18); position:relative; display:flex; flex-direction:column; }
.myai-dt-body { display:flex; flex-direction:column; height:100%; min-height:0; }
.myai-dt-close { position:absolute; top:16px; right:20px; width:32px; height:32px; display:flex; align-items:center; justify-content:center; border-radius:8px; cursor:pointer; font-size:20px; color:rgba(0,0,0,0.4); transition:background 0.15s; z-index:2; }
.myai-dt-close:hover { background:#f0f0f0; }
.myai-dt-header { display:flex; align-items:center; gap:16px; padding:28px 32px 20px; border-bottom:1px solid #f0f0f0; flex-shrink:0; }
.myai-dt-avatar { width:56px; height:56px; border-radius:50%; overflow:hidden; flex-shrink:0; background:#f0f0f0; }
.myai-dt-avatar img { width:100%; height:100%; object-fit:cover; }
.myai-dt-hinfo { flex:1; min-width:0; }
.myai-dt-name { font-size:20px; font-weight:700; color:#1a1a1a; margin-bottom:4px; }
.myai-dt-sub { font-size:13px; color:rgba(0,0,0,0.4); margin-bottom:4px; }
.myai-dt-status-line { font-size:13px; color:rgba(0,0,0,0.6); display:flex; align-items:center; }
.myai-dt-stats-mini { display:flex; gap:24px; flex-shrink:0; }
.myai-dt-stat-mini { text-align:center; }
.myai-dt-stat-val { font-size:22px; font-weight:700; color:#1a1a1a; }
.myai-dt-stat-lbl { font-size:11px; color:rgba(0,0,0,0.4); }
.myai-dt-tabs { display:flex; gap:0; padding:0 32px; border-bottom:1px solid #f0f0f0; flex-shrink:0; }
.myai-dt-tab { padding:12px 20px; font-size:14px; color:rgba(0,0,0,0.45); cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-1px; transition:all 0.15s; font-weight:500; }
.myai-dt-tab:hover { color:rgba(0,0,0,0.8); }
.myai-dt-tab.active { color:#6366f1; border-bottom-color:#6366f1; }
.myai-dt-content { padding:24px 32px 32px; flex:1; overflow-y:auto; min-height:0; }
.myai-dt-section-title { font-size:15px; font-weight:600; color:#1a1a1a; margin:0 0 14px; }
.myai-dt-section-title:not(:first-child) { margin-top:28px; }
.myai-dt-stat-cards { display:flex; gap:16px; }
.myai-dt-stat-card { flex:1; text-align:center; padding:20px 16px; border:1px solid #f0f0f0; border-radius:12px; background:#fafafa; }
.myai-dt-sc-icon { font-size:20px; margin-bottom:8px; }
.myai-dt-sc-val { font-size:28px; font-weight:700; color:#1a1a1a; }
.myai-dt-sc-label { font-size:12px; color:rgba(0,0,0,0.4); margin-top:4px; }
.myai-dt-task-list { border:1px solid #f0f0f0; border-radius:10px; overflow:hidden; }
.myai-dt-task-row { display:flex; align-items:center; padding:12px 16px; border-bottom:1px solid #f5f5f5; font-size:13px; }
.myai-dt-task-row:last-child { border-bottom:none; }
.myai-dt-task-time { width:100px; color:rgba(0,0,0,0.4); flex-shrink:0; }
.myai-dt-task-name { flex:1; color:#1a1a1a; font-weight:500; }
.myai-dt-task-status { color:#16a34a; font-size:12px; flex-shrink:0; }
.myai-dt-skill-bars { display:flex; flex-direction:column; gap:10px; }
.myai-dt-skill-bar-row { display:flex; align-items:center; gap:12px; }
.myai-dt-skill-bar-label { width:60px; font-size:13px; color:rgba(0,0,0,0.6); text-align:right; flex-shrink:0; }
.myai-dt-skill-bar-track { flex:1; height:20px; background:#f0f0f0; border-radius:4px; overflow:hidden; }
.myai-dt-skill-bar-fill { height:100%; background:linear-gradient(90deg,#6366f1,#818cf8); border-radius:4px; min-width:4px; }
.myai-dt-skill-bar-count { font-size:12px; color:rgba(0,0,0,0.45); width:40px; flex-shrink:0; }

/* Detail modal - skill tab */
.myai-dt-skill-list { display:flex; flex-direction:column; gap:0; border:1px solid #f0f0f0; border-radius:10px; overflow:hidden; }
.myai-dt-skill-item { padding:14px 16px; border-bottom:1px solid #f5f5f5; }
.myai-dt-skill-item:last-child { border-bottom:none; }
.myai-dt-skill-item-top { display:flex; align-items:center; gap:10px; margin-bottom:4px; }
.myai-dt-skill-icon-lg { font-size:18px; }
.myai-dt-skill-item-name { font-size:14px; font-weight:600; color:#1a1a1a; }
.myai-dt-skill-type-badge { font-size:11px; padding:2px 8px; border-radius:4px; background:#f0f4ff; color:#6366f1; }
.myai-dt-skill-item-meta { font-size:12px; color:rgba(0,0,0,0.4); padding-left:28px; }

/* Detail modal - memory tab */
.myai-dt-mem-layer { border:1px solid #f0f0f0; border-radius:10px; margin-bottom:12px; overflow:hidden; }
.myai-dt-mem-layer-head { display:flex; align-items:center; justify-content:space-between; padding:12px 16px; background:#fafafa; border-bottom:1px solid #f0f0f0; }
.myai-dt-mem-layer-title { font-size:14px; font-weight:600; color:#1a1a1a; }
.myai-dt-mem-layer-tag { font-size:11px; padding:2px 8px; border-radius:4px; background:#f5f5f5; color:rgba(0,0,0,0.45); }
.myai-dt-mem-items { padding:10px 16px; }
.myai-dt-mem-item { font-size:13px; color:rgba(0,0,0,0.6); padding:3px 0; line-height:1.6; }

/* Detail modal - artifacts tab */
.myai-dt-folders { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:8px; }
.myai-dt-folder { padding:8px 16px; border:1px solid #e5e5e5; border-radius:8px; font-size:13px; color:rgba(0,0,0,0.6); cursor:pointer; transition:all 0.15s; }
.myai-dt-folder:hover { border-color:#276ff5; color:#276ff5; }
.myai-dt-folder.active { border-color:#276ff5; background:#f0f4ff; color:#276ff5; }

/* Detail modal - settings tab */
.myai-dt-settings { display:flex; flex-direction:column; gap:0; }
.myai-dt-setting-group { padding:16px 0; border-bottom:1px solid #f0f0f0; }
.myai-dt-setting-group:last-child { border-bottom:none; }
.myai-dt-setting-label { font-size:14px; font-weight:600; color:#1a1a1a; margin-bottom:10px; }
.myai-dt-setting-row { display:flex; align-items:center; gap:12px; padding:4px 0; font-size:13px; }
.myai-dt-setting-key { width:80px; color:rgba(0,0,0,0.4); flex-shrink:0; }

/* ---- Clone Creation Wizard ---- */
.cw-add-card {
  border: 2px dashed #d1d5db;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  cursor: pointer;
  transition: all 0.2s;
  background: #fafbfc;
}
.cw-add-card:hover {
  border-color: #276ff5;
  background: #f5f8ff;
}
.cw-add-card-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #f0f4ff;
  color: #276ff5;
  font-size: 24px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
  transition: all 0.2s;
}
.cw-add-card:hover .cw-add-card-icon {
  background: #276ff5;
  color: #fff;
}
.cw-add-card-text {
  font-size: 13px;
  color: rgba(0,0,0,0.4);
  font-weight: 500;
}
.cw-add-card:hover .cw-add-card-text {
  color: #276ff5;
}

/* Clone intro in onboarding welcome */
.cw-clone-intro {
  text-align: left;
  background: #f8faff;
  border: 1px solid #e8eeff;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 20px auto 0;
  max-width: 440px;
}
.cw-clone-intro-title {
  font-size: 13px;
  font-weight: 600;
  color: #276ff5;
  margin-bottom: 8px;
}
.cw-clone-intro-text {
  font-size: 13px;
  color: rgba(0,0,0,0.55);
  line-height: 1.7;
}
.cw-clone-intro-text b {
  color: #1a1a1a;
  font-weight: 600;
}
.cw-clone-intro-example {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.cw-clone-intro-tag {
  font-size: 11px;
  color: rgba(0,0,0,0.35);
  flex-shrink: 0;
}
.cw-clone-intro-item {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 14px;
  background: #eef3ff;
  color: #276ff5;
  border: 1px solid #dbeafe;
}

.cw-avatar-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.cw-avatar-option {
  width: 56px; height: 56px;
  border-radius: 50%;
  overflow: hidden;
  border: 2.5px solid #e5e7eb;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
}
.cw-avatar-option img {
  width: 100%; height: 100%; object-fit: cover;
}
.cw-avatar-option:hover {
  border-color: #93b4f5;
  transform: scale(1.08);
}
.cw-avatar-option.selected {
  border-color: #276ff5;
  box-shadow: 0 0 0 3px rgba(39,111,245,0.2);
}
.cw-avatar-check {
  position: absolute; bottom: -2px; right: -2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #276ff5;
  color: #fff;
  font-size: 11px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.cw-scope-presets {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.cw-skill-list {
  display: flex; flex-direction: column; gap: 8px;
  max-height: 320px; overflow-y: auto;
}
.cw-skill-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.cw-skill-row:hover {
  border-color: #c0d0f0;
  background: #fafbff;
}
.cw-skill-row.checked {
  border-color: #276ff5;
  background: #f5f8ff;
}
.cw-skill-check {
  width: 22px; height: 22px;
  border-radius: 6px;
  border: 2px solid #d1d5db;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  color: transparent;
  flex-shrink: 0;
  transition: all 0.15s;
}
.cw-skill-row.checked .cw-skill-check {
  background: #276ff5;
  border-color: #276ff5;
  color: #fff;
}
.cw-skill-icon {
  font-size: 20px; flex-shrink: 0;
}
.cw-skill-info { flex: 1; min-width: 0; }
.cw-skill-name {
  font-size: 14px; font-weight: 600; color: #1a1a1a;
  margin-bottom: 2px;
}
.cw-skill-desc {
  font-size: 12px; color: rgba(0,0,0,0.45);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cw-summary {
  text-align: left;
  background: #f8f9fb;
  border-radius: 14px;
  padding: 20px 24px;
  margin: 20px auto 28px;
  max-width: 440px;
}
.cw-complete-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #276ff5, #5b9aff);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 36px; color: #fff;
  box-shadow: 0 4px 20px rgba(39,111,245,0.25);
}
.cw-summary-row {
  display: flex; justify-content: space-between;
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px solid #f0f0f0;
}
.cw-summary-row:last-child { border-bottom: none; }
.cw-summary-label {
  color: rgba(0,0,0,0.45);
  flex-shrink: 0;
  width: 80px;
}
.cw-summary-row > span:last-child {
  color: #1a1a1a;
  font-weight: 500;
  text-align: right;
  flex: 1;
}

/* ---- AI Recommendation Bar (智能推荐) ---- */
.ai-rec-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #f8faff 0%, #f0f4ff 100%);
  border: 1.5px solid #dbeafe;
  border-radius: 14px;
  padding: 8px 12px 8px 16px;
  margin-bottom: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ai-rec-bar:focus-within {
  border-color: #276ff5;
  box-shadow: 0 0 0 3px rgba(39,111,245,0.1);
  background: #fff;
}
.ai-rec-icon {
  font-size: 18px;
  flex-shrink: 0;
}
.ai-rec-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  color: #1a1a1a;
  outline: none;
  font-family: inherit;
}
.ai-rec-input::placeholder {
  color: rgba(0,0,0,0.35);
}
.ai-rec-btn {
  padding: 7px 20px;
  border-radius: 10px;
  border: none;
  background: #276ff5;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  flex-shrink: 0;
}
.ai-rec-btn:hover {
  background: #1d5fd3;
  box-shadow: 0 2px 8px rgba(39,111,245,0.3);
}
.ai-rec-btn:disabled {
  background: #93b4f5;
  cursor: not-allowed;
}
.ai-rec-result {
  margin-bottom: 20px;
  animation: aiRecFadeIn 0.4s ease;
}
@keyframes aiRecFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.ai-rec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.ai-rec-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ai-rec-header-icon {
  font-size: 16px;
}
.ai-rec-header-text {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}
.ai-rec-header-sub {
  font-size: 12px;
  color: rgba(0,0,0,0.4);
  margin-left: 4px;
  font-weight: 400;
}
.ai-rec-close {
  font-size: 12px;
  color: rgba(0,0,0,0.35);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s;
}
.ai-rec-close:hover {
  background: #f0f0f0;
  color: rgba(0,0,0,0.6);
}
.ai-rec-cards {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.ai-rec-card {
  flex-shrink: 0;
  width: 220px;
  background: #fff;
  border: 1.5px solid #e8eeff;
  border-radius: 14px;
  padding: 16px;
  transition: all 0.2s;
  cursor: pointer;
}
.ai-rec-card:hover {
  border-color: #276ff5;
  box-shadow: 0 4px 16px rgba(39,111,245,0.1);
  transform: translateY(-2px);
}
.ai-rec-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.ai-rec-card-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid #f0f0f0;
}
.ai-rec-card-avatar img {
  width: 100%; height: 100%; object-fit: cover;
}
.ai-rec-card-name {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}
.ai-rec-card-match {
  font-size: 11px;
  color: #276ff5;
  background: #eef3ff;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: auto;
  flex-shrink: 0;
}
.ai-rec-card-reason {
  font-size: 12px;
  color: rgba(0,0,0,0.5);
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ai-rec-card-btn {
  width: 100%;
  padding: 7px 0;
  border-radius: 8px;
  border: 1.5px solid #276ff5;
  background: transparent;
  color: #276ff5;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.ai-rec-card-btn:hover {
  background: #276ff5;
  color: #fff;
}
.ai-rec-card-btn.added {
  border-color: #d1d5db;
  color: rgba(0,0,0,0.35);
  cursor: default;
}
.ai-rec-card-btn.added:hover {
  background: transparent;
  color: rgba(0,0,0,0.35);
}
/* Typing animation */
.ai-rec-typing {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: #f8faff;
  border: 1px solid #e8eeff;
  border-radius: 14px;
  margin-bottom: 16px;
}
.ai-rec-typing-dots {
  display: flex;
  gap: 4px;
}
.ai-rec-typing-dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #276ff5;
  animation: aiRecDot 1.2s infinite;
}
.ai-rec-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.ai-rec-typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes aiRecDot {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1); }
}
.ai-rec-typing-text {
  font-size: 13px;
  color: rgba(0,0,0,0.5);
}

/* ---- AI Partner Store (AI搭档市场) ---- */
.aistore-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; margin-top: 16px;
}
.aistore-card {
  background: var(--ai-card-bg);
  backdrop-filter: blur(var(--ai-blur-card));
  -webkit-backdrop-filter: blur(var(--ai-blur-card));
  border: 1px solid var(--ai-card-border);
  border-radius: var(--ai-radius-md);
  box-shadow: var(--ai-card-shadow);
  padding: 18px 20px; transition: all 0.2s; display: flex; flex-direction: column;
  animation: cardFadeUp 0.4s ease both;
}
.aistore-card:hover {
  border-color: var(--ai-card-hover-border);
  box-shadow: var(--ai-card-hover-shadow);
  transform: translateY(-2px);
}
.aistore-purchased { border-color: rgba(99,102,241,0.2); background: rgba(238,242,255,0.5); }
.aistore-purchased:hover { border-color: rgba(99,102,241,0.35); }
.aistore-card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.aistore-avatar {
  width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: #f0f0f0;
  box-shadow: 0 0 0 2px var(--ai-primary-light);
}
.aistore-avatar img { width: 100%; height: 100%; object-fit: cover; }
.aistore-card-hinfo { flex: 1; min-width: 0; }
.aistore-card-name { font-size: 15px; font-weight: 600; color: var(--ai-text-primary); font-family: var(--ai-font-display); }
.aistore-card-channel { font-size: 12px; color: var(--ai-text-muted); margin-top: 2px; }
.aistore-status {
  font-size: 11px; font-weight: 600; padding: 2px 10px; border-radius: 20px; flex-shrink: 0; white-space: nowrap;
}
.aistore-status-bought { color: var(--ai-primary); background: rgba(99,102,241,0.08); border: 1px solid rgba(99,102,241,0.2); }
.aistore-status-new { color: rgba(0,0,0,0.35); background: #f5f5f5; border: 1px solid #e8e8e8; }
.aistore-card-desc {
  font-size: 13px; color: var(--ai-text-secondary); line-height: 1.6; margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.aistore-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.aistore-tag {
  font-size: 11px; padding: 2px 10px; border-radius: var(--ai-radius-pill);
  background: rgba(99,102,241,0.08); color: var(--ai-primary); border: 1px solid rgba(99,102,241,0.2);
}
.aistore-purchased .aistore-tag { background: rgba(99,102,241,0.06); border-color: rgba(99,102,241,0.15); }
.aistore-card-skills {
  font-size: 12px; color: rgba(0,0,0,0.4); margin-bottom: 12px; line-height: 1.5;
}
.aistore-skills-label { color: rgba(0,0,0,0.3); }
.aistore-card-footer {
  display: flex; align-items: center; gap: 10px;
  padding-top: 12px; border-top: 1px solid var(--ai-card-border); margin-top: auto;
}
.aistore-price { font-size: 14px; font-weight: 700; color: var(--ai-accent); }
.aistore-purchased .aistore-price { color: var(--ai-text-muted); text-decoration: line-through; }
.aistore-uses { font-size: 12px; color: rgba(0,0,0,0.3); flex: 1; }
.aistore-btn {
  padding: 5px 20px; font-size: 13px; font-weight: 500; border-radius: 8px;
  cursor: pointer; transition: all 0.15s; border: 1px solid; flex-shrink: 0;
}
.aistore-btn-buy { background: var(--ai-primary); color: #fff; border-color: var(--ai-primary); }
.aistore-btn-buy:hover { background: #4f46e5; border-color: #4f46e5; }
.aistore-btn-bought {
  background: transparent; color: var(--ai-text-muted); border-color: var(--ai-card-border);
  cursor: default; pointer-events: none;
}
.aistore-btn-applied {
  background: #f0fdf4; color: #16a34a; border-color: #bbf7d0;
  cursor: default; pointer-events: none;
}
.aistore-status-applied {
  color: #16a34a; background: #f0fdf4; border: 1px solid #bbf7d0;
}
.aistore-applied {
  background: #fafffe; border-color: #d1fae5;
}
.aistore-applied:hover { border-color: #a7f3d0; box-shadow: 0 2px 12px rgba(22,163,106,0.06); }

/* ---- Employee Detail Modal ---- */
.aictr-detail-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4);
  display: flex; align-items: center; justify-content: center; z-index: 1000;
}
.aictr-detail {
  background: #fff; border-radius: 20px; width: 780px; max-height: 88vh;
  overflow-y: auto; box-shadow: 0 24px 80px rgba(0,0,0,0.18);
  position: relative; display: flex; flex-direction: column;
}
.aictr-detail-close {
  position: absolute; top: 16px; right: 20px; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: rgba(0,0,0,0.35); cursor: pointer; border-radius: 8px;
  transition: background 0.15s; z-index: 2;
}
.aictr-detail-close:hover { background: #f0f0f0; }
.aictr-detail-header {
  display: flex; align-items: center; gap: 16px; padding: 28px 32px 20px;
}
.aictr-detail-avatar {
  width: 52px; height: 52px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: #f0f0f0;
}
.aictr-detail-avatar img { width: 100%; height: 100%; object-fit: cover; }
.aictr-detail-hinfo { flex: 1; min-width: 0; }
.aictr-detail-name-row { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.aictr-detail-name { font-size: 20px; font-weight: 700; color: #1a1a1a; }
.aictr-detail-title-badge {
  padding: 2px 10px; border-radius: 6px; font-size: 12px; font-weight: 500;
  background: #ecfdf5; color: #16a34a;
}
.aictr-detail-meta { font-size: 13px; color: rgba(0,0,0,0.4); }
.aictr-detail-hactions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.aictr-detail-status {
  padding: 5px 14px; border-radius: 20px; font-size: 13px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
}
.aictr-detail-status.working { background: #ecfdf5; color: #16a34a; }
.aictr-detail-status.standby { background: #f5f5f5; color: rgba(0,0,0,0.4); }
.aictr-detail-status::before { content:''; width:6px; height:6px; border-radius:50%; background:currentColor; }
.aictr-detail-pause-btn {
  padding: 6px 16px; border: 1px solid #e0e0e0; border-radius: 10px;
  background: #fff; font-size: 13px; color: rgba(0,0,0,0.6); cursor: pointer;
  transition: all 0.15s;
}
.aictr-detail-pause-btn:hover { border-color: #ef4444; color: #ef4444; }

/* Detail tabs */
.aictr-detail-tabs {
  display: flex; gap: 0; padding: 0 32px; border-bottom: 1px solid #f0f0f0;
}
.aictr-dtab {
  padding: 12px 20px; font-size: 14px; font-weight: 500; color: rgba(0,0,0,0.45);
  cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: all 0.15s; white-space: nowrap;
}
.aictr-dtab:hover { color: rgba(0,0,0,0.75); }
.aictr-dtab.active { color: #276ff5; border-bottom-color: #276ff5; }

/* Panels */
.aictr-dpanel { padding: 24px 32px; }

/* Stat cards */
.aictr-stat-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 24px; }
.aictr-stat-card {
  padding: 20px; border-radius: 14px; border: none;
  background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s;
}
.aictr-stat-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.aictr-stat-card:nth-child(1) .aictr-stat-val { color: #16a34a; }
.aictr-stat-card:nth-child(2) .aictr-stat-val { color: #276ff5; }
.aictr-stat-card:nth-child(3) .aictr-stat-val { color: #f59e0b; }
.aictr-stat-card:nth-child(4) .aictr-stat-val { color: #8b5cf6; }
.aictr-stat-label { font-size: 12px; color: rgba(0,0,0,0.4); margin-bottom: 8px; }
.aictr-stat-val { font-size: 26px; font-weight: 700; color: #1a1a1a; }
.aictr-stat-val small { font-size: 13px; font-weight: 400; color: rgba(0,0,0,0.35); margin-left: 2px; }
.aictr-stat-bar { margin-top: 10px; height: 6px; background: #f0f0f0; border-radius: 3px; overflow: hidden; }
.aictr-stat-bar-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg,#276ff5,#60a5fa); }
/* Task table */
.aictr-task-section { background: #fafbfc; border-radius: 14px; padding: 20px; }
.aictr-task-title { font-size: 15px; font-weight: 600; color: #1a1a1a; margin-bottom: 14px; }
.aictr-task-table { width: 100%; border-collapse: collapse; }
.aictr-task-table th {
  text-align: left; padding: 10px 14px; font-size: 12px; font-weight: 500;
  color: rgba(0,0,0,0.4); border-bottom: 1px solid #eee;
}
.aictr-task-table td {
  padding: 12px 14px; font-size: 13px; color: rgba(0,0,0,0.7); border-bottom: 1px solid #f5f5f5;
}
.aictr-task-status { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; }
.aictr-task-status.running { color: #276ff5; }
.aictr-task-status.warning { color: #ef4444; }

/* Bottom command area */
.aictr-detail-bottom { padding: 16px 32px 24px; border-top: 1px solid #f0f0f0; }
.aictr-quick-cmds { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.aictr-qcmd {
  padding: 6px 16px; border: 1px solid #e0e0e0; border-radius: 20px;
  font-size: 13px; color: rgba(0,0,0,0.6); cursor: pointer; background: #fff;
  transition: all 0.15s; white-space: nowrap;
}
.aictr-qcmd:hover { border-color: #276ff5; color: #276ff5; background: #f0f5ff; }
.aictr-cmd-input-wrap { display: flex; gap: 10px; }
.aictr-cmd-input {
  flex: 1; padding: 10px 16px; border: 1px solid #e0e0e0; border-radius: 12px;
  font-size: 14px; color: #1a1a1a; outline: none; font-family: inherit;
  transition: border-color 0.15s;
}
.aictr-cmd-input:focus { border-color: #276ff5; }
.aictr-cmd-input::placeholder { color: rgba(0,0,0,0.3); }
.aictr-cmd-send {
  width: 40px; height: 40px; border-radius: 50%; background: #276ff5; border: none;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background 0.15s; flex-shrink: 0;
}
.aictr-cmd-send:hover { background: #1a56cc; }

/* Reports list */
.aictr-report-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid #f5f5f5; font-size: 13px;
}
.aictr-report-icon { font-size: 18px; flex-shrink: 0; }
.aictr-report-name { flex: 1; color: #276ff5; cursor: pointer; }
.aictr-report-name:hover { text-decoration: underline; }
.aictr-report-date { color: rgba(0,0,0,0.35); font-size: 12px; }

/* Skills list */
.aictr-skill-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  background: #fafbfc; border-radius: 10px; margin-bottom: 8px;
}
.aictr-skill-icon { font-size: 18px; }
.aictr-skill-name { flex: 1; font-size: 14px; font-weight: 500; color: #1a1a1a; }
.aictr-skill-badge { padding: 2px 10px; border-radius: 10px; font-size: 11px; background: #ecfdf5; color: #16a34a; }

/* Memory list */
.aictr-mem-item { padding: 14px 0; border-bottom: 1px solid #f5f5f5; }
.aictr-mem-title { font-size: 14px; font-weight: 500; color: #1a1a1a; margin-bottom: 4px; }
.aictr-mem-text { font-size: 13px; color: rgba(0,0,0,0.55); line-height: 1.5; }


/* =========================================
   SKILL CENTER PAGE (技能中心)
   ========================================= */
.skill-page {
  flex: 1; padding: 32px 40px; overflow-y: auto; background: #fff;
}

/* Main tabs (same style as AI搭档) */
.skill-main-tabs {
  display: flex; gap: 0; align-items: center; margin-bottom: 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.skill-main-tab {
  padding: 14px 28px; font-size: 15px; font-weight: 600; color: #1a1a1a;
  cursor: pointer; transition: all 0.15s; user-select: none;
  border-bottom: 2.5px solid transparent; margin-bottom: -1px;
}
.skill-main-tab:hover { color: rgba(0,0,0,0.6); }
.skill-main-tab.active { color: #2970FF; border-bottom-color: #2970FF; }
.skill-main-tab.dimmed { color: rgba(0,0,0,0.18); }
.skill-main-tab.dimmed:hover { color: rgba(0,0,0,0.3); }
.skill-main-tab.dimmed.active { color: #2970FF; opacity: 0.4; border-bottom-color: #2970FF; }
.skill-installed-count {
  font-size: 13px; color: rgba(0,0,0,0.4); font-weight: 400; margin-left: 4px;
}
.skill-main-tab.active .skill-installed-count { color: rgba(0,0,0,0.6); }

/* Explore layout (left grid + right ranking) */
.skill-explore-topbar {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px;
}
.skill-explore-topbar .skill-cat-chips {
  flex: 1; min-width: 0; margin-bottom: 0;
}
.skill-explore-topbar .skill-cat-chip-dev {
  flex-shrink: 0; white-space: nowrap;
}
.skill-explore-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.skill-explore-left {
  flex: 1;
  min-width: 0;
}
.skill-explore-left .skill-grid {
  grid-template-columns: repeat(2, 1fr);
}

/* Ranking panel for skills (reuses AI搭档 ranking styles) */
.skill-ranking-panel {
  width: 320px;
  flex-shrink: 0;
  background: linear-gradient(170deg, #f8faff 0%, #fff 40%, #faf8ff 100%);
  border: 1px solid rgba(99,102,241,0.10);
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(99,102,241,0.06), 0 8px 32px rgba(99,102,241,0.04);
  padding: 22px 20px 18px;
  position: sticky;
  top: 0;
  overflow: hidden;
  z-index: 1;
}

/* Skill podium icon (emoji instead of avatar) */
.skill-podium-icon {
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.skill-ranking-icon {
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* New skill button */
.skill-new-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 20px; border: 1px solid #e0e0e0; border-radius: 10px;
  background: #fff; font-size: 14px; color: #333;
  cursor: pointer; transition: all 0.15s; font-weight: 500;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.skill-new-btn:hover { border-color: #276ff5; color: #276ff5; box-shadow: 0 2px 8px rgba(39,111,245,0.1); }

/* 新技能下拉菜单 */
.skill-new-menu {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 160px;
  background: #fff; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  border: 1px solid #eee; padding: 4px; z-index: 100;
}
.skill-new-menu-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; font-size: 14px; color: rgba(0,0,0,0.7);
  border-radius: 8px; cursor: pointer; transition: background 0.12s; white-space: nowrap;
}
.skill-new-menu-item:hover { background: #f5f5f5; }
.skill-new-menu-item svg { color: rgba(0,0,0,0.4); flex-shrink: 0; }

/* 技能图标选择器 */
.skill-icon-picker {
  display: flex; flex-direction: column; gap: 6px;
}
.skill-icon-grid {
  display: flex; flex-wrap: wrap; gap: 6px;
  max-height: 80px; overflow-y: auto; padding: 2px;
  transition: max-height 0.25s ease;
}
.skill-icon-grid.expanded { max-height: 240px; }
.skill-icon-option {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  font-size: 18px; border: 1px solid #eee; border-radius: 8px;
  cursor: pointer; transition: all 0.12s; flex-shrink: 0;
}
.skill-icon-option:hover { border-color: #276ff5; background: #f0f5ff; }
.skill-icon-option.selected { border-color: #276ff5; background: #276ff5; box-shadow: 0 0 0 2px rgba(39,111,245,0.2); }
.skill-icon-toggle {
  font-size: 12px; color: #276ff5; cursor: pointer; text-align: center;
  padding: 4px 0; user-select: none;
}
.skill-icon-toggle:hover { text-decoration: underline; }

/* 字数统计 */
.skill-char-count {
  font-size: 11px; color: rgba(0,0,0,0.3); text-align: right; margin-top: 2px;
}

/* 解析中 spinner */
.skill-parse-spinner {
  width: 40px; height: 40px; border: 3px solid #e0e0e0; border-top-color: #276ff5;
  border-radius: 50%; margin: 0 auto;
  animation: skillSpin 0.8s linear infinite;
}
@keyframes skillSpin { to { transform: rotate(360deg); } }

/* 解析成功文件指示 */
.skill-parsed-file {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px;
  font-size: 13px; color: rgba(0,0,0,0.7); margin-bottom: 16px;
}

/* 解析失败原因列表 */
.skill-fail-reasons {
  text-align: left; max-width: 380px; margin: 0 auto;
}
.skill-fail-reason {
  display: flex; align-items: flex-start; gap: 8px; padding: 6px 0;
  font-size: 13px; color: rgba(0,0,0,0.6); line-height: 1.5;
}
.skill-fail-reason svg { flex-shrink: 0; margin-top: 2px; }

/* Category chips */
.skill-cat-chips {
  display: flex; flex-direction: column; gap: 12px;
}
.skill-cat-chips-inner {
  display: flex; gap: 8px; flex-wrap: nowrap;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.skill-cat-chips-inner::-webkit-scrollbar { display: none; }
.skill-cat-chip {
  padding: 8px 20px; font-size: 14px; border: 1px solid #e8e8e8; border-radius: 24px;
  cursor: pointer; color: rgba(0,0,0,0.65); background: #fff; transition: all 0.15s; font-weight: 500;
  white-space: nowrap; flex-shrink: 0;
}
.skill-cat-chip:hover { border-color: #c0c0c0; }
.skill-cat-chip.active { background: #2970FF; color: #fff; border-color: #2970FF; }

/* Divider between regular chips and self-built */
.skill-cat-divider {
  display: inline-block;
  width: 1px;
  height: 20px;
  background: rgba(0,0,0,0.12);
  margin: 0 8px;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Skill cards grid */
.skill-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.skc-card {
  border: 1px solid #eee; border-radius: 14px; padding: 22px;
  cursor: pointer; transition: all 0.2s; background: #fff;
  position: relative;
}
.skc-card:hover { border-color: #d0d0d0; box-shadow: 0 2px 12px rgba(0,0,0,0.05); }
.skc-card-icon { font-size: 22px; margin-bottom: 12px; }
.skc-card-name { font-size: 15px; font-weight: 600; color: #1a1a1a; margin-bottom: 8px; }
.skc-card-desc {
  font-size: 13px; color: rgba(0,0,0,0.5); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* 卡片右上角更多按钮 */
.skc-card-more {
  position: absolute; top: 14px; right: 14px;
  width: 28px; height: 28px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; transition: opacity 0.15s, background 0.15s;
}
.skc-card:hover .skc-card-more { opacity: 1; }
.skc-card-more:hover { background: rgba(0,0,0,0.06); }

/* 卡片下拉菜单 */
.skc-card-menu {
  position: absolute; top: 44px; right: 14px;
  background: #fff; border: 1px solid #eee; border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  padding: 4px; min-width: 140px; z-index: 100;
}
.skc-card-menu-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; font-size: 13px; color: rgba(0,0,0,0.7);
  border-radius: 6px; cursor: pointer; transition: background 0.12s;
  white-space: nowrap;
}
.skc-card-menu-item:hover { background: #f5f5f5; }
.skc-card-menu-item svg { flex-shrink: 0; }
.skc-card-menu-danger { color: #ef4444; }
.skc-card-menu-danger:hover { background: #fef2f2; }
.skc-card-menu-warn { color: #d97706; }
.skc-card-menu-warn:hover { background: #fffbeb; }
.skc-card-menu-disabled { color: rgba(0,0,0,0.3); cursor: default; pointer-events: none; }
.skc-card-menu-divider { height: 1px; background: #f0f0f0; margin: 4px 0; }

/* 开发技能卡片 — 范围+分组标签 */
.skc-card-meta {
  display: flex; align-items: center; gap: 6px;
  margin-top: 10px; padding-top: 10px; border-top: 1px solid #f5f5f5;
}
.skc-vis-tag {
  font-size: 11px; padding: 2px 8px; border-radius: 4px; font-weight: 500;
}
.skc-vis-public { background: #f0fdf4; color: #15803d; }
.skc-vis-private { background: #f5f5f5; color: rgba(0,0,0,0.4); }
.skc-group-tag {
  font-size: 11px; padding: 2px 8px; border-radius: 4px;
  background: #eef2ff; color: #276ff5; font-weight: 500;
}

/* 开发技能状态标签 */
.skc-status-badge {
  display: inline-flex; padding: 2px 8px; font-size: 11px; font-weight: 500;
  border-radius: 4px; margin-left: 4px; vertical-align: middle;
}
.skc-st-reviewing { background: #fffbeb; color: #b45309; }
.skc-st-rejected { background: #fef2f2; color: #dc2626; }
.skc-st-published { background: #f0fdf4; color: #15803d; }
.skc-st-delisting { background: #fff7ed; color: #c2410c; }
.skc-st-delisted { background: #f5f5f5; color: rgba(0,0,0,0.35); }

/* 操作提示文字 */
.skc-action-hint {
  font-size: 12px; color: rgba(0,0,0,0.35); font-style: italic;
}
.skc-reject-hint {
  display: block; font-size: 12px; color: #dc2626; margin-top: 6px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.skc-btn-danger {
  border-color: #fecaca !important; color: #dc2626 !important;
}
.skc-btn-danger:hover { background: #fef2f2 !important; }
.skc-type-badge {
  display: inline-flex; padding: 1px 8px; font-size: 11px; border: 1px solid #e0e0e0;
  border-radius: 4px; color: rgba(0,0,0,0.4); font-weight: 400; vertical-align: middle; margin-left: 6px;
}
.skc-empty { grid-column: 1/-1; text-align: center; padding: 60px 0; color: rgba(0,0,0,0.3); font-size: 14px; }

/* Install button */
.skc-card-action { margin-top: 14px; padding-top: 12px; border-top: 1px solid #f5f5f5; }
.skc-install-btn {
  padding: 6px 18px; font-size: 13px; font-weight: 500; border-radius: 8px;
  cursor: pointer; transition: all 0.15s; border: 1px solid #e0e0e0;
  background: #fff; color: rgba(0,0,0,0.65);
}
.skc-install-btn:hover { border-color: #276ff5; color: #276ff5; background: #f5f8ff; }
.skc-install-btn.skc-installed {
  border-color: transparent; background: transparent;
  color: rgba(0,0,0,0.3); cursor: default; pointer-events: none;
}

/* Self-built card styles */
.skc-card-selfbuilt { position: relative; }
.skc-card-selfbuilt .skc-card-header-row {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px;
}
.skc-card-selfbuilt .skc-card-icon { margin-bottom: 0; }
.skc-dev-status {
  font-size: 11px; padding: 2px 8px; border-radius: 6px; font-weight: 500;
}
.skc-dev-published { background: #f0fdf4; color: #16a34a; }
.skc-dev-testing { background: #eff6ff; color: #276ff5; }
.skc-dev-draft { background: #f5f5f5; color: rgba(0,0,0,0.35); }
.skc-card-meta-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 8px; font-size: 12px; color: rgba(0,0,0,0.35);
}
.skc-card-author { display: flex; align-items: center; gap: 2px; }
.skc-install-btn.skc-dev-pending {
  border-color: transparent; background: #f5f5f5;
  color: rgba(0,0,0,0.3); cursor: default;
}

/* ---- Skill Market Cards ---- */
.skill-market-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.skm-card {
  border: 1px solid #eee; border-radius: 14px; padding: 20px;
  background: #fff; transition: all 0.2s; cursor: default;
  display: flex; flex-direction: column;
}
.skm-card:hover { border-color: #d0d0d0; box-shadow: 0 2px 12px rgba(0,0,0,0.05); }
.skm-purchased {
  background: #fafcff; border-color: #d6e4ff;
}
.skm-purchased:hover { border-color: #a3bffa; box-shadow: 0 2px 12px rgba(39,111,245,0.08); }
.skm-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.skm-card-icon { font-size: 24px; }
.skm-status-tag { font-size: 11px; font-weight: 600; padding: 2px 10px; border-radius: 20px; }
.skm-tag-purchased { color: #276ff5; background: #eff6ff; border: 1px solid #bfdbfe; }
.skm-tag-unpurchased { color: rgba(0,0,0,0.35); background: #f5f5f5; border: 1px solid #e8e8e8; }
.skm-card-name { font-size: 15px; font-weight: 600; color: #1a1a1a; margin-bottom: 4px; }
.skm-card-channel { font-size: 12px; color: rgba(0,0,0,0.35); margin-bottom: 8px; }
.skm-card-desc {
  font-size: 13px; color: rgba(0,0,0,0.5); line-height: 1.6; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.skm-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid #f0f0f0;
}
.skm-price { font-size: 14px; font-weight: 600; color: #d97706; }
.skm-purchased .skm-price { color: rgba(0,0,0,0.3); }
.skm-btn {
  padding: 5px 18px; font-size: 13px; font-weight: 500; border-radius: 8px;
  cursor: pointer; transition: all 0.15s; border: 1px solid;
}
.skm-btn-buy {
  background: #276ff5; color: #fff; border-color: #276ff5;
}
.skm-btn-buy:hover { background: #1d5ed9; border-color: #1d5ed9; }
.skm-btn-purchased {
  background: transparent; color: rgba(0,0,0,0.3); border-color: #e0e0e0;
  cursor: default; pointer-events: none;
}
.skm-btn-applied {
  background: #f0fdf4; color: #16a34a; border-color: #bbf7d0;
  cursor: default; pointer-events: none;
}
.skm-tag-applied {
  color: #16a34a; background: #f0fdf4; border: 1px solid #bbf7d0;
}
.skm-applied {
  background: #fafffe; border-color: #d1fae5;
}
.skm-applied:hover { border-color: #a7f3d0; box-shadow: 0 2px 12px rgba(22,163,106,0.06); }

/* Skill modals */
.skill-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4);
  display: flex; align-items: center; justify-content: center; z-index: 1000;
}
.skill-modal {
  background: #fff; border-radius: 18px; width: 520px; max-height: 85vh;
  overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  position: relative; padding: 28px 32px;
}
.skill-modal-close {
  position: absolute; top: 16px; right: 20px;
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: rgba(0,0,0,0.35); cursor: pointer; border-radius: 8px; transition: background 0.15s;
}
.skill-modal-close:hover { background: #f0f0f0; }
.skill-modal-title { font-size: 20px; font-weight: 700; color: #1a1a1a; margin: 0 0 6px; }
.skill-modal-desc { font-size: 14px; color: rgba(0,0,0,0.45); margin: 0 0 20px; }
.skill-upload-drop {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 40px; border: 2px dashed #e0e0e0; border-radius: 14px;
  cursor: pointer; color: rgba(0,0,0,0.4); transition: all 0.15s;
}
.skill-upload-drop:hover { border-color: #276ff5; color: #276ff5; }
.skill-upload-hint { font-size: 12px; color: rgba(0,0,0,0.25); }
.skill-form-group { margin-bottom: 16px; }
.skill-form-label { font-size: 13px; font-weight: 500; color: rgba(0,0,0,0.65); margin-bottom: 6px; display: block; }
.skill-form-input, .skill-form-textarea, .skill-form-select {
  width: 100%; padding: 10px 14px; border: 1px solid #e0e0e0; border-radius: 10px;
  font-size: 14px; color: #1a1a1a; outline: none; font-family: inherit; transition: border-color 0.15s;
  box-sizing: border-box;
}
.skill-form-input:focus, .skill-form-textarea:focus, .skill-form-select:focus { border-color: #276ff5; }
.skill-form-textarea { resize: vertical; min-height: 60px; }
.skill-modal-footer {
  display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px;
  padding-top: 16px; border-top: 1px solid #f0f0f0;
}
.skill-modal-cancel {
  padding: 8px 20px; border: 1px solid #e0e0e0; border-radius: 10px;
  background: #fff; font-size: 14px; color: rgba(0,0,0,0.6); cursor: pointer; transition: all 0.15s;
}
.skill-modal-cancel:hover { background: #f5f5f5; }
.skill-modal-confirm {
  padding: 8px 24px; border: none; border-radius: 10px;
  background: #276ff5; font-size: 14px; color: #fff; font-weight: 500;
  cursor: pointer; transition: background 0.15s;
}
.skill-modal-confirm:hover { background: #1a56cc; }

/* =========================================
   PERSONALIZATION PAGE (个性化)
   ========================================= */
.custom-page {
  flex: 1;
  padding: 28px 40px;
  overflow-y: auto;
  background: #fafbfc;
}
.custom-header {
  margin-bottom: 24px;
}
.custom-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 4px;
}
.custom-subtitle {
  font-size: 14px;
  color: rgba(0,0,0,0.45);
  margin: 0;
}

/* Tabs */
.custom-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #e8e8e8;
  margin-bottom: 24px;
}
.custom-tab {
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(0,0,0,0.5);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  margin-bottom: -1px;
}
.custom-tab:hover { color: rgba(0,0,0,0.8); }
.custom-tab.active {
  color: #276ff5;
  border-bottom-color: #276ff5;
}

/* Panel toolbar */
.custom-panel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}
.custom-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  width: 280px;
}
.custom-search-wrap svg { width: 15px; height: 15px; color: rgba(0,0,0,0.3); flex-shrink: 0; }
.custom-search {
  border: none; outline: none; background: transparent;
  font-size: 13px; color: rgba(0,0,0,0.82); font-family: inherit; width: 100%;
}
.custom-search::placeholder { color: rgba(0,0,0,0.3); }
.custom-add-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: #276ff5;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.custom-add-btn:hover { background: #1a56cc; }
.custom-add-btn svg { width: 14px; height: 14px; }

/* ---- Skills list ---- */
.custom-skills-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.custom-skill-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  transition: all 0.15s;
}
.custom-skill-row:hover {
  border-color: #d8d8d8;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.custom-skill-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.custom-skill-info {
  flex: 1;
  min-width: 0;
}
.custom-skill-name {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 2px;
}
.custom-skill-desc {
  font-size: 13px;
  color: rgba(0,0,0,0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.custom-skill-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.custom-skill-badge {
  padding: 3px 10px;
  font-size: 11px;
  border-radius: 20px;
  background: #f0f5ff;
  color: #276ff5;
  white-space: nowrap;
}
.custom-skill-badge.manual {
  background: #fff7e6;
  color: #d97706;
}
.custom-skill-badge.system {
  background: #f0fdf4;
  color: #16a34a;
}
.custom-skill-toggle {
  position: relative;
  width: 44px; height: 24px;
  background: #ddd;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}
.custom-skill-toggle.on { background: #276ff5; }
.custom-skill-toggle::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.custom-skill-toggle.on::after { transform: translateX(20px); }
.custom-skill-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.custom-skill-action-btn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  color: rgba(0,0,0,0.35);
  transition: all 0.15s;
}
.custom-skill-action-btn:hover {
  background: #f0f0f0;
  color: rgba(0,0,0,0.7);
}

/* ---- Connectors grid ---- */
.custom-connectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.custom-conn-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  transition: all 0.15s;
}
.custom-conn-card:hover {
  border-color: #d8d8d8;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.custom-conn-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  background: #f5f5f5;
}
.custom-conn-info {
  flex: 1;
  min-width: 0;
}
.custom-conn-name {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 2px;
}
.custom-conn-desc {
  font-size: 12px;
  color: rgba(0,0,0,0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.custom-conn-status {
  flex-shrink: 0;
}
.custom-conn-btn {
  padding: 6px 16px;
  font-size: 13px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid #e0e0e0;
  background: #fff;
  color: rgba(0,0,0,0.65);
}
.custom-conn-btn:hover {
  border-color: #276ff5;
  color: #276ff5;
}
.custom-conn-btn.connected {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #16a34a;
}
.custom-conn-btn.connected:hover {
  border-color: #ef4444;
  color: #ef4444;
  background: #fef2f2;
}

/* ---- Plugins grid ---- */
.custom-plugins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}
.custom-plugin-card {
  padding: 20px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  transition: all 0.15s;
}
.custom-plugin-card:hover {
  border-color: #d8d8d8;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.custom-plugin-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.custom-plugin-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  background: #f5f5f5;
}
.custom-plugin-name {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 2px;
}
.custom-plugin-author {
  font-size: 12px;
  color: rgba(0,0,0,0.4);
}
.custom-plugin-desc {
  font-size: 13px;
  color: rgba(0,0,0,0.55);
  line-height: 1.5;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.custom-plugin-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.custom-plugin-tags {
  display: flex;
  gap: 6px;
}
.custom-plugin-tag {
  padding: 2px 10px;
  font-size: 11px;
  border-radius: 12px;
  background: #f5f5f5;
  color: rgba(0,0,0,0.5);
}
.custom-plugin-install-btn {
  padding: 6px 18px;
  font-size: 13px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
  background: #276ff5;
  color: #fff;
  font-weight: 500;
}
.custom-plugin-install-btn:hover { background: #1a56cc; }
.custom-plugin-install-btn.installed {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}
.custom-plugin-install-btn.installed:hover {
  background: #fef2f2;
  color: #ef4444;
  border-color: #fecaca;
}

/* ---- Modals ---- */
.custom-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.custom-modal {
  background: #fff;
  border-radius: 18px;
  width: 500px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  position: relative;
  padding: 28px 28px 20px;
}
.custom-modal-wide { width: 680px; }
.custom-modal-close {
  position: absolute;
  top: 16px; right: 18px;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  color: rgba(0,0,0,0.35);
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s;
}
.custom-modal-close:hover { background: #f0f0f0; }
.custom-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 4px;
}
.custom-modal-subtitle {
  font-size: 13px;
  color: rgba(0,0,0,0.45);
  margin: 0 0 20px;
}
.custom-modal-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 16px;
}
.custom-label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(0,0,0,0.65);
  margin-top: 8px;
}
.custom-input,
.custom-textarea,
.custom-select {
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  font-size: 14px;
  color: #1a1a1a;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s;
}
.custom-input:focus,
.custom-textarea:focus,
.custom-select:focus {
  border-color: #276ff5;
}
.custom-textarea { resize: vertical; min-height: 48px; }
.custom-textarea-lg { min-height: 120px; font-family: 'SF Mono', 'Menlo', monospace; font-size: 13px; line-height: 1.6; }
.custom-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}
.custom-cancel-btn {
  padding: 8px 20px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  color: rgba(0,0,0,0.6);
  cursor: pointer;
  transition: all 0.15s;
}
.custom-cancel-btn:hover { background: #f5f5f5; }
.custom-confirm-btn {
  padding: 8px 24px;
  border: none;
  border-radius: 10px;
  background: #276ff5;
  font-size: 14px;
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}
.custom-confirm-btn:hover { background: #1a56cc; }

/* Plugin store inside modal */
.custom-plugin-store {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}
.custom-store-card {
  padding: 16px;
  border: 1px solid #eee;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.custom-store-card:hover {
  border-color: #276ff5;
  background: #f8faff;
}
.custom-store-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.custom-store-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  background: #f5f5f5;
  flex-shrink: 0;
}
.custom-store-name {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}
.custom-store-desc {
  font-size: 12px;
  color: rgba(0,0,0,0.5);
  line-height: 1.5;
}


/* =========================================
   PROJECT PAGE (项目 / Cloud Code)
   ========================================= */
.proj-page {
  flex: 1;
  padding: 28px 36px;
  overflow-y: auto;
  background: #fafbfc;
}
.proj-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.proj-header-left { display: flex; align-items: center; gap: 0; }
.proj-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 2px;
}
.proj-subtitle {
  font-size: 13px;
  color: rgba(0,0,0,0.4);
  margin: 0;
}
.proj-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.proj-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  width: 220px;
}
.proj-search-wrap svg { width: 15px; height: 15px; color: rgba(0,0,0,0.3); flex-shrink: 0; }
.proj-search {
  border: none; outline: none; background: transparent;
  font-size: 13px; color: rgba(0,0,0,0.82); font-family: inherit; width: 100%;
}
.proj-search::placeholder { color: rgba(0,0,0,0.3); }
.proj-new-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: #276ff5;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}
.proj-new-btn:hover { background: #1a56cc; }

/* Type filter tabs */
.proj-type-tabs { display: flex; gap: 4px; margin-left: 16px; }
.proj-type-tab {
  padding: 5px 14px; font-size: 13px; border-radius: 20px;
  cursor: pointer; color: rgba(0,0,0,0.5); transition: all 0.15s; font-weight: 500;
}
.proj-type-tab:hover { background: #f0f0f0; }
.proj-type-tab.active { background: #1a1a1a; color: #fff; }

/* Type badges in list */
.proj-type-badge {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 1px 8px; font-size: 11px; border-radius: 10px; font-weight: 500;
  vertical-align: middle; margin-left: 6px;
}
.proj-badge-local { background: #f0fdf4; color: #16a34a; }
.proj-badge-cloud { background: #eef2ff; color: #276ff5; }

/* Icon colors */
.proj-icon-local { background: #f0f5f0; color: #16a34a; }
.proj-icon-cloud { background: #eef2ff; color: #276ff5; }

/* Method section label in create modal */
.proj-method-section-label {
  font-size: 13px; font-weight: 700; color: rgba(0,0,0,0.5);
  margin-bottom: 8px; margin-top: 4px;
}
.proj-method-cloud { border-color: #e0e7ff; }
.proj-method-cloud:hover { border-color: #a5b4fc; background: #f5f8ff; }
.proj-method-icon-cloud { background: #eef2ff; color: #276ff5; }

/* ---- Project list rows ---- */
.proj-list-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; background: #fff; border: 1px solid #eee; border-radius: 12px;
  margin-bottom: 6px; cursor: pointer; transition: all 0.15s;
}
.proj-list-row:hover {
  border-color: #d0d5e0; box-shadow: 0 2px 12px rgba(0,0,0,0.05); transform: translateY(-1px);
}
.proj-list-icon {
  width: 48px; height: 48px; border-radius: 10px; background: #f0f5f0;
  display: flex; align-items: center; justify-content: center; color: #16a34a; flex-shrink: 0;
}
.proj-list-info { flex: 1; min-width: 0; }
.proj-list-name {
  font-size: 14px; font-weight: 600; color: #1a1a1a; margin-bottom: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.proj-list-path {
  font-size: 12px; color: rgba(0,0,0,0.35);
  font-family: 'SF Mono','Menlo',monospace;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.proj-list-meta { font-size: 12px; color: rgba(0,0,0,0.4); white-space: nowrap; flex-shrink: 0; }
.proj-list-date { font-size: 12px; color: rgba(0,0,0,0.3); white-space: nowrap; flex-shrink: 0; }

/* ---- Modal shared ---- */
.proj-modal-desc { font-size: 14px; color: rgba(0,0,0,0.45); margin: 0 0 16px; }
.proj-method-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.proj-method-item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border: 1px solid #eee; border-radius: 14px;
  cursor: pointer; transition: all 0.15s;
}
.proj-method-item:hover { border-color: #c0d0f0; background: #f8faff; }
.proj-method-icon {
  width: 44px; height: 44px; border-radius: 12px; background: #f0f5ff;
  display: flex; align-items: center; justify-content: center; color: #276ff5; flex-shrink: 0;
}
.proj-method-info { flex: 1; }
.proj-method-name { font-size: 15px; font-weight: 600; color: #1a1a1a; margin-bottom: 2px; }
.proj-method-desc { font-size: 13px; color: rgba(0,0,0,0.45); }
.proj-method-arrow { color: rgba(0,0,0,0.25); flex-shrink: 0; }

.proj-step-back {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; color: rgba(0,0,0,0.4); cursor: pointer;
  padding: 4px 8px; border-radius: 6px; margin-bottom: 12px; transition: all 0.15s;
}
.proj-step-back:hover { background: #f0f0f0; color: rgba(0,0,0,0.7); }

.proj-form-group { margin-bottom: 14px; }
.proj-required { color: #ef4444; }
.proj-folder-select {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border: 1px solid #e0e0e0; border-radius: 10px;
  cursor: pointer; font-size: 13px; color: rgba(0,0,0,0.5); transition: border-color 0.15s;
}
.proj-folder-select:hover { border-color: #276ff5; }
.proj-file-drop {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 28px; border: 2px dashed #e0e0e0; border-radius: 12px;
  cursor: pointer; color: rgba(0,0,0,0.35); font-size: 13px; transition: all 0.15s;
}
.proj-file-drop:hover { border-color: #276ff5; color: #276ff5; }
.proj-memory-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: rgba(0,0,0,0.45); margin-top: 8px;
}

/* Stats cards */
.proj-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.proj-stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  transition: all 0.15s;
}
.proj-stat-card:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.proj-stat-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.proj-stat-num {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
}
.proj-stat-label {
  font-size: 13px;
  color: rgba(0,0,0,0.45);
}

/* Tabs */
.proj-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #e8e8e8;
  margin-bottom: 20px;
}
.proj-tab {
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(0,0,0,0.5);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  margin-bottom: -1px;
}
.proj-tab:hover { color: rgba(0,0,0,0.8); }
.proj-tab.active {
  color: #276ff5;
  border-bottom-color: #276ff5;
}

/* Project cards grid */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.proj-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 22px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.proj-card:hover {
  border-color: #d0d5e0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  transform: translateY(-2px);
}
.proj-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}
.proj-card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.proj-card-actions {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.15s;
}
.proj-card:hover .proj-card-actions { opacity: 1; }
.proj-card-action {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  color: rgba(0,0,0,0.35);
  transition: all 0.15s;
}
.proj-card-action:hover {
  background: #f0f0f0;
  color: rgba(0,0,0,0.7);
}
.proj-card-action.starred { color: #f59e0b; }
.proj-card-name {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 6px;
}
.proj-card-desc {
  font-size: 13px;
  color: rgba(0,0,0,0.5);
  line-height: 1.5;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.proj-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.proj-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1;
}
.proj-tag {
  padding: 2px 10px;
  font-size: 11px;
  border-radius: 12px;
  white-space: nowrap;
}
.proj-tag.lang {
  background: #eef2ff;
  color: #276ff5;
}
.proj-tag.env {
  background: #ecfdf5;
  color: #16a34a;
}
.proj-card-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.proj-card-status::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.proj-card-status.running { background: #ecfdf5; color: #16a34a; }
.proj-card-status.dev { background: #fff7ed; color: #d97706; }
.proj-card-status.deployed { background: #eef2ff; color: #276ff5; }
.proj-card-status.stopped { background: #f5f5f5; color: rgba(0,0,0,0.35); }
.proj-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f5f5f5;
  font-size: 12px;
  color: rgba(0,0,0,0.35);
}
.proj-card-author {
  display: flex;
  align-items: center;
  gap: 6px;
}
.proj-card-avatar {
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: #fff; font-weight: 600;
}

/* Empty state */
.proj-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 0;
  text-align: center;
}
.proj-empty-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.6; }
.proj-empty-text { font-size: 16px; color: rgba(0,0,0,0.4); margin-bottom: 4px; }
.proj-empty-sub { font-size: 13px; color: rgba(0,0,0,0.25); }

/* ---- Project Detail Page ---- */
.proj-detail-page {
  flex: 1;
  padding: 0 36px 28px;
  overflow-y: auto;
  background: #fafbfc;
}
.proj-detail-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 16px;
  position: sticky;
  top: 0;
  background: #fafbfc;
  z-index: 5;
}
.proj-detail-back {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: rgba(0,0,0,0.55);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  transition: all 0.15s;
}
.proj-detail-back:hover { background: #f0f0f0; color: rgba(0,0,0,0.8); }
.proj-detail-actions-top {
  display: flex;
  gap: 8px;
}
.proj-detail-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
}
.proj-detail-btn.outline {
  background: #fff;
  border: 1px solid #e0e0e0;
  color: rgba(0,0,0,0.65);
}
.proj-detail-btn.outline:hover { border-color: #276ff5; color: #276ff5; }
.proj-detail-btn.primary {
  background: #276ff5;
  color: #fff;
}
.proj-detail-btn.primary:hover { background: #1a56cc; }

.proj-detail-header {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 20px;
}
.proj-dh-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.proj-dh-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}
.proj-dh-info {}
.proj-dh-name {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 4px;
}
.proj-dh-desc {
  font-size: 14px;
  color: rgba(0,0,0,0.5);
}
.proj-dh-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.proj-dh-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(0,0,0,0.5);
}
.proj-dh-meta-item svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Detail tabs */
.proj-detail-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #e8e8e8;
  margin-bottom: 20px;
}
.proj-dtab {
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(0,0,0,0.5);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  margin-bottom: -1px;
}
.proj-dtab:hover { color: rgba(0,0,0,0.8); }
.proj-dtab.active {
  color: #276ff5;
  border-bottom-color: #276ff5;
}

/* Detail panels */
.proj-detail-panel {
  animation: projFadeIn 0.2s ease;
}
@keyframes projFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Overview panel */
.proj-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.proj-ov-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 20px;
}
.proj-ov-card.full { grid-column: 1 / -1; }
.proj-ov-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.proj-ov-card-title svg { width: 16px; height: 16px; color: #276ff5; }

/* Activity list */
.proj-activity-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.proj-activity-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: rgba(0,0,0,0.65);
  line-height: 1.5;
}
.proj-activity-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}
.proj-activity-time {
  font-size: 12px;
  color: rgba(0,0,0,0.3);
  margin-left: auto;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Resource bars */
.proj-resource-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.proj-resource-row:last-child { margin-bottom: 0; }
.proj-resource-label {
  font-size: 13px;
  color: rgba(0,0,0,0.6);
  width: 80px;
  flex-shrink: 0;
}
.proj-resource-bar {
  flex: 1;
  height: 8px;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
}
.proj-resource-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}
.proj-resource-val {
  font-size: 12px;
  color: rgba(0,0,0,0.45);
  width: 50px;
  text-align: right;
  flex-shrink: 0;
}

/* Pages list */
.proj-pages-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.proj-page-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  transition: all 0.15s;
}
.proj-page-row:hover {
  border-color: #d8d8d8;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.proj-page-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  background: #f5f5f5;
}
.proj-page-info { flex: 1; min-width: 0; }
.proj-page-name {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 2px;
}
.proj-page-path {
  font-size: 12px;
  color: rgba(0,0,0,0.35);
  font-family: 'SF Mono','Menlo',monospace;
}
.proj-page-badge {
  padding: 3px 10px;
  font-size: 11px;
  border-radius: 20px;
  background: #f0f5ff;
  color: #276ff5;
  white-space: nowrap;
}

/* API list */
.proj-api-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.proj-api-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
}
.proj-api-method {
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  font-family: 'SF Mono','Menlo',monospace;
  white-space: nowrap;
}
.proj-api-method.get { background: #ecfdf5; color: #16a34a; }
.proj-api-method.post { background: #eef2ff; color: #276ff5; }
.proj-api-method.put { background: #fff7ed; color: #d97706; }
.proj-api-method.delete { background: #fef2f2; color: #ef4444; }
.proj-api-path {
  font-size: 13px;
  font-family: 'SF Mono','Menlo',monospace;
  color: rgba(0,0,0,0.7);
  flex: 1;
}
.proj-api-desc {
  font-size: 12px;
  color: rgba(0,0,0,0.4);
  flex-shrink: 0;
}

/* Deploy records */
.proj-deploy-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.proj-deploy-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
}
.proj-deploy-status {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.proj-deploy-status.success { background: #16a34a; }
.proj-deploy-status.failed { background: #ef4444; }
.proj-deploy-status.pending { background: #d97706; }
.proj-deploy-info { flex: 1; min-width: 0; }
.proj-deploy-ver {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 2px;
}
.proj-deploy-msg {
  font-size: 12px;
  color: rgba(0,0,0,0.45);
}
.proj-deploy-time {
  font-size: 12px;
  color: rgba(0,0,0,0.35);
  white-space: nowrap;
  flex-shrink: 0;
}
.proj-deploy-env-badge {
  padding: 3px 10px;
  font-size: 11px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.proj-deploy-env-badge.prod { background: #ecfdf5; color: #16a34a; }
.proj-deploy-env-badge.staging { background: #fff7ed; color: #d97706; }
.proj-deploy-env-badge.dev { background: #eef2ff; color: #276ff5; }

/* Env vars */
.proj-env-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.proj-env-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  font-family: 'SF Mono','Menlo',monospace;
}
.proj-env-key {
  font-size: 13px;
  font-weight: 600;
  color: #276ff5;
  min-width: 180px;
}
.proj-env-val {
  font-size: 13px;
  color: rgba(0,0,0,0.5);
  flex: 1;
}
.proj-env-scope {
  padding: 2px 10px;
  font-size: 11px;
  border-radius: 12px;
  background: #f5f5f5;
  color: rgba(0,0,0,0.45);
  font-family: inherit;
  white-space: nowrap;
}

/* ---- Create Modal ---- */
.proj-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.proj-modal {
  background: #fff;
  border-radius: 20px;
  width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.18);
  position: relative;
  padding: 28px 32px;
}
.proj-modal-close {
  position: absolute;
  top: 16px; right: 20px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  color: rgba(0,0,0,0.35);
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s;
}
.proj-modal-close:hover { background: #f0f0f0; }
.proj-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 4px;
}
.proj-modal-subtitle {
  font-size: 13px;
  color: rgba(0,0,0,0.45);
  margin: 0 0 20px;
}

/* Template grid */
.proj-tpl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.proj-tpl-card {
  padding: 16px;
  border: 2px solid #eee;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}
.proj-tpl-card:hover { border-color: #c0d0f0; }
.proj-tpl-card.selected {
  border-color: #276ff5;
  background: #f5f8ff;
}
.proj-tpl-icon { font-size: 24px; margin-bottom: 6px; }
.proj-tpl-name { font-size: 13px; font-weight: 600; color: #1a1a1a; margin-bottom: 2px; }
.proj-tpl-desc { font-size: 11px; color: rgba(0,0,0,0.4); }

/* Form */
.proj-modal-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.proj-label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(0,0,0,0.65);
  margin-top: 8px;
}
.proj-input,
.proj-textarea,
.proj-select {
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  font-size: 14px;
  color: #1a1a1a;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s;
}
.proj-input:focus,
.proj-textarea:focus,
.proj-select:focus {
  border-color: #276ff5;
}
.proj-textarea { resize: vertical; min-height: 48px; }
.proj-form-row {
  display: flex;
  gap: 12px;
}
.proj-form-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.proj-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}
.proj-cancel-btn {
  padding: 8px 20px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  color: rgba(0,0,0,0.6);
  cursor: pointer;
  transition: all 0.15s;
}
.proj-cancel-btn:hover { background: #f5f5f5; }
.proj-confirm-btn {
  padding: 8px 24px;
  border: none;
  border-radius: 10px;
  background: #276ff5;
  font-size: 14px;
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}
.proj-confirm-btn:hover { background: #1a56cc; }


/* =========================================
   STAFF MANAGEMENT PAGE (员工管理)
   ========================================= */
.sm-page { flex:1; display:block; overflow:hidden; }
.sm-layout { display:flex; height:100%; }
.sm-sidebar {
  width:220px; background:#fff; border-right:1px solid #eee;
  display:flex; flex-direction:column; flex-shrink:0; overflow-y:auto;
}
.sm-sidebar-header { padding:16px 16px 12px; border-bottom:1px solid #f0f0f0; }
.sm-sidebar-title { font-size:12px; font-weight:700; color:rgba(0,0,0,0.35); text-transform:uppercase; letter-spacing:0.5px; }
.sm-role-group { border-bottom:1px solid #f5f5f5; }
.sm-role-name {
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 16px; font-size:13px; font-weight:600; color:rgba(0,0,0,0.6);
  cursor:pointer; transition:all 0.15s;
}
.sm-role-name:hover { background:#f8f8f8; }
.sm-role-group.active .sm-role-name { color:#276ff5; background:#f5f8ff; }
.sm-role-count { font-size:10px; padding:2px 8px; border-radius:10px; background:#f0f0f0; color:rgba(0,0,0,0.4); }
.sm-role-group.active .sm-role-count { background:#e8f0fe; color:#276ff5; }
.sm-agent-btn {
  display:flex; align-items:center; gap:10px;
  padding:10px 16px 10px 28px; font-size:13px; color:rgba(0,0,0,0.6);
  cursor:pointer; transition:all 0.15s;
}
.sm-agent-btn:hover { background:#f5f5f5; }
.sm-agent-btn.active { background:#eef2ff; color:#276ff5; font-weight:600; }
.sm-agent-btn-icon { position:relative; font-size:18px; }
.sm-agent-dot { position:absolute; bottom:-1px; right:-3px; width:8px; height:8px; border-radius:50%; border:1.5px solid #fff; }
.sm-dot-green { background:#16a34a; }
.sm-dot-yellow { background:#d97706; }
.sm-dot-red { background:#ef4444; }
.sm-add-agent-btn {
  display:flex; align-items:center; justify-content:center; gap:6px;
  margin:12px 16px; padding:10px; border:1px dashed #d0d0d0; border-radius:10px;
  background:transparent; font-size:13px; color:rgba(0,0,0,0.4); cursor:pointer; transition:all 0.15s;
}
.sm-add-agent-btn:hover { border-color:#276ff5; color:#276ff5; background:#f5f8ff; }
.sm-main { flex:1; display:flex; flex-direction:column; overflow:hidden; position:relative; background:#fafbfc; }
.sm-agent-header {
  padding:20px 28px; background:#fff; border-bottom:1px solid #eee;
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px;
}
.sm-header-left { display:flex; align-items:center; gap:14px; }
.sm-header-avatar {
  width:52px; height:52px; background:#eef2ff; border-radius:14px;
  display:flex; align-items:center; justify-content:center; font-size:26px; position:relative; flex-shrink:0;
}
.sm-header-dot { position:absolute; bottom:0; right:0; width:14px; height:14px; border-radius:50%; border:2px solid #fff; }
.sm-header-name { font-size:18px; font-weight:700; color:#1a1a1a; }
.sm-header-type { font-size:11px; padding:2px 8px; background:#eef2ff; color:#276ff5; border-radius:6px; font-weight:500; margin-left:8px; }
.sm-header-meta { font-size:13px; color:rgba(0,0,0,0.45); margin-top:4px; }
.sm-header-actions { display:flex; gap:8px; }
.sm-btn {
  display:inline-flex; align-items:center; gap:6px;
  padding:8px 16px; border-radius:8px; font-size:13px; font-weight:500;
  cursor:pointer; border:1px solid transparent; transition:all 0.15s;
}
.sm-btn-warn { background:#fffbeb; color:#d97706; border-color:#fef3c7; }
.sm-btn-warn:hover { background:#fef3c7; }
.sm-btn-success { background:#ecfdf5; color:#16a34a; border-color:#d1fae5; }
.sm-btn-success:hover { background:#d1fae5; }
.sm-btn-outline { background:#fff; color:rgba(0,0,0,0.6); border-color:#e0e0e0; }
.sm-btn-outline:hover { border-color:#276ff5; color:#276ff5; }
.sm-btn-sm { padding:5px 12px; font-size:12px; background:#fff; border:1px solid #e0e0e0; border-radius:6px; cursor:pointer; }
.sm-btn-sm:hover { border-color:#276ff5; color:#276ff5; }
.sm-tabs {
  display:flex; gap:0; background:#fff; border-bottom:1px solid #eee;
  padding:0 28px; overflow-x:auto;
}
.sm-tab {
  padding:14px 20px; font-size:13px; font-weight:500; color:rgba(0,0,0,0.45);
  cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-1px;
  white-space:nowrap; transition:all 0.15s;
}
.sm-tab:hover { color:rgba(0,0,0,0.7); }
.sm-tab.active { color:#276ff5; border-bottom-color:#276ff5; }
.sm-tab-content { flex:1; overflow-y:auto; padding:24px 28px 120px; }
.sm-empty-state { display:flex; flex-direction:column; align-items:center; justify-content:center; padding:80px 0; }
.sm-empty-icon { font-size:48px; margin-bottom:12px; opacity:0.4; }
.sm-empty-text { font-size:16px; color:rgba(0,0,0,0.35); }
.sm-empty-inline { padding:32px; text-align:center; color:rgba(0,0,0,0.35); font-size:13px; }

/* Stats */
.sm-stats-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-bottom:20px; }
.sm-stat-card { background:#fff; border:1px solid #eee; border-radius:12px; padding:16px 18px; border-left:4px solid; }
.sm-stat-blue { border-left-color:#276ff5; }
.sm-stat-green { border-left-color:#16a34a; }
.sm-stat-red { border-left-color:#ef4444; }
.sm-stat-indigo { border-left-color:#6366f1; }
.sm-stat-label { font-size:12px; color:rgba(0,0,0,0.45); margin-bottom:6px; }
.sm-stat-num { font-size:22px; font-weight:700; color:#1a1a1a; }
.sm-stat-num small { font-size:13px; font-weight:400; color:rgba(0,0,0,0.4); }
.sm-progress-bar { height:8px; background:#f0f0f0; border-radius:4px; overflow:hidden; margin-top:10px; }
.sm-progress-fill { height:100%; background:#6366f1; border-radius:4px; transition:width 0.4s; }

/* Section card */
.sm-section-card { background:#fff; border:1px solid #eee; border-radius:14px; overflow:hidden; margin-bottom:16px; }
.sm-section-title { padding:16px 20px; font-size:14px; font-weight:700; color:#1a1a1a; border-bottom:1px solid #f0f0f0; }
.sm-section-desc { padding:0 20px; font-size:13px; color:rgba(0,0,0,0.45); margin:12px 0; }

/* Table */
.sm-table { width:100%; border-collapse:collapse; font-size:13px; }
.sm-table th { padding:10px 20px; font-size:11px; font-weight:600; color:rgba(0,0,0,0.4); text-transform:uppercase; text-align:left; background:#fafafa; border-bottom:1px solid #f0f0f0; }
.sm-table td { padding:12px 20px; border-bottom:1px solid #f5f5f5; color:rgba(0,0,0,0.65); }
.sm-table tr:hover { background:#fafafa; }
.sm-td-link { color:#276ff5; font-weight:600; cursor:pointer; }
.sm-task-processing { color:#276ff5; font-size:12px; }
.sm-task-anomaly { color:#ef4444; font-size:12px; }
.sm-badge { padding:3px 10px; border-radius:6px; font-size:11px; font-weight:500; }
.sm-badge-green { background:#ecfdf5; color:#16a34a; }
.sm-badge-gray { background:#f5f5f5; color:rgba(0,0,0,0.5); }

/* Reports */
.sm-reports-layout { display:flex; flex-direction:column; gap:16px; }
.sm-insight-card { background:linear-gradient(135deg,#eef2ff,#e0e7ff); border:1px solid #c7d2fe; border-radius:14px; padding:20px; }
.sm-insight-title { font-size:14px; font-weight:700; color:#1e3a8a; margin-bottom:10px; }
.sm-insight-card p { font-size:13px; color:#1e40af; line-height:1.7; margin:0; }

/* Memory */
.sm-memory-editor { border:1px solid #eee; border-radius:10px; overflow:hidden; margin:16px 20px 20px; }
.sm-memory-toolbar { padding:8px 14px; background:#fafafa; border-bottom:1px solid #f0f0f0; font-size:11px; color:rgba(0,0,0,0.35); font-family:'SF Mono','Menlo',monospace; }
.sm-memory-textarea {
  width:100%; min-height:280px; padding:16px; border:none; outline:none; resize:vertical;
  font-size:13px; font-family:'SF Mono','Menlo',monospace; line-height:1.7; color:rgba(0,0,0,0.7);
  box-sizing:border-box;
}

/* Skills */
.sm-skills-list { padding:16px 20px; display:flex; flex-direction:column; gap:12px; }
.sm-skill-item { border:1px solid #eee; border-radius:12px; padding:16px; background:#fff; }
.sm-skill-header { display:flex; align-items:center; gap:10px; margin-bottom:8px; }
.sm-skill-tag { font-size:11px; padding:3px 10px; border-radius:6px; font-weight:500; }
.sm-skill-tag-preset { background:#f5f5f5; color:rgba(0,0,0,0.5); }
.sm-skill-tag-custom { background:#ecfdf5; color:#16a34a; }
.sm-skill-tag-smart { background:#eef2ff; color:#276ff5; }
.sm-skill-name { font-size:14px; font-weight:600; color:#1a1a1a; }
.sm-skill-desc { font-size:13px; color:rgba(0,0,0,0.55); line-height:1.6; padding:10px 14px; background:#fafafa; border-radius:8px; }

/* Tools */
.sm-tools-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:14px; padding:16px 20px; }
.sm-tool-card { border:1px solid #eee; border-radius:12px; padding:16px; background:#fff; transition:all 0.15s; }
.sm-tool-card:hover { border-color:#d0d0d0; box-shadow:0 2px 12px rgba(0,0,0,0.05); }
.sm-tool-header { display:flex; align-items:center; gap:10px; margin-bottom:8px; }
.sm-tool-icon { width:32px; height:32px; border-radius:8px; background:#eef2ff; display:flex; align-items:center; justify-content:center; font-size:16px; }
.sm-tool-name { font-size:14px; font-weight:600; color:#1a1a1a; }
.sm-tool-desc { font-size:12px; color:rgba(0,0,0,0.5); line-height:1.5; margin-bottom:10px; }
.sm-tool-footer { font-size:11px; color:rgba(0,0,0,0.35); padding-top:10px; border-top:1px solid #f5f5f5; }
.sm-tool-add {
  border:2px dashed #d0d0d0; border-radius:12px; display:flex; flex-direction:column;
  align-items:center; justify-content:center; gap:6px; padding:24px; min-height:120px;
  color:rgba(0,0,0,0.35); font-size:13px; cursor:pointer; transition:all 0.15s;
}
.sm-tool-add:hover { border-color:#276ff5; color:#276ff5; background:#f5f8ff; }
.sm-tool-add span:first-child { font-size:24px; }

/* Chat float */
.sm-chat-float {
  position:absolute; bottom:16px; left:50%; transform:translateX(-50%);
  width:90%; max-width:640px; background:#fff; border-radius:16px;
  box-shadow:0 8px 30px rgba(0,0,0,0.12); border:1px solid #e8e8e8;
  z-index:50; overflow:hidden;
}
.sm-chat-history { max-height:220px; overflow-y:auto; padding:16px; }
.sm-msg { display:flex; margin-bottom:10px; }
.sm-msg-user { justify-content:flex-end; }
.sm-msg-ai { justify-content:flex-start; gap:8px; }
.sm-msg-avatar { width:28px; height:28px; border-radius:50%; background:#eef2ff; display:flex; align-items:center; justify-content:center; font-size:14px; flex-shrink:0; }
.sm-msg-bubble { max-width:80%; padding:10px 14px; font-size:13px; line-height:1.6; border-radius:14px; }
.sm-msg-user-bubble { background:#276ff5; color:#fff; border-bottom-right-radius:4px; }
.sm-msg-ai-bubble { background:#fff; border:1px solid #eee; color:rgba(0,0,0,0.7); border-bottom-left-radius:4px; }
.sm-chat-quick { display:flex; gap:8px; padding:10px 16px 0; overflow-x:auto; }
.sm-quick-chip {
  padding:6px 14px; font-size:12px; background:#fafafa; border:1px solid #eee;
  border-radius:20px; white-space:nowrap; cursor:pointer; color:rgba(0,0,0,0.55); transition:all 0.15s;
}
.sm-quick-chip:hover { background:#eef2ff; border-color:#c7d2fe; color:#276ff5; }
.sm-chat-input-wrap { display:flex; align-items:center; padding:10px 14px; gap:8px; }
.sm-chat-input {
  flex:1; border:1px solid #eee; border-radius:10px; padding:10px 14px;
  font-size:13px; outline:none; background:#fafafa; transition:all 0.15s;
}
.sm-chat-input:focus { border-color:#276ff5; background:#fff; }
.sm-chat-send {
  width:36px; height:36px; border-radius:10px; border:none;
  background:#276ff5; color:#fff; display:flex; align-items:center; justify-content:center;
  cursor:pointer; transition:background 0.15s;
}
.sm-chat-send:hover { background:#1a56cc; }


/* =========================================
   CONFIG MANAGEMENT PAGE (配置管理)
   ========================================= */
.config-page {
  flex: 1;
  padding: 32px 40px;
  overflow-y: auto;
  background: #fff;
}
.config-header {
  margin-bottom: 24px;
}
.config-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

/* Tabs */
.config-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 28px;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 0;
}
.config-tab {
  padding: 10px 18px;
  font-size: 14px;
  color: rgba(0,0,0,0.5);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  margin-bottom: -1px;
}
.config-tab:hover {
  color: rgba(0,0,0,0.75);
}
.config-tab.active {
  color: #276ff5;
  border-bottom-color: #276ff5;
  font-weight: 500;
}
.config-tab.config-tab-disabled {
  color: rgba(0,0,0,0.15);
}
.config-tab.config-tab-disabled:hover {
  color: rgba(0,0,0,0.15);
}
.config-tab.config-tab-disabled.active {
  color: rgba(0,0,0,0.18);
  border-bottom-color: rgba(0,0,0,0.12);
}

/* Section */
.config-section {
  animation: cfgFadeIn 0.2s ease;
}
@keyframes cfgFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.config-sec-title {
  font-size: 17px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 6px;
}
.config-sec-desc {
  font-size: 13px;
  color: rgba(0,0,0,0.45);
  margin-bottom: 20px;
}

/* Config cards grid */
.config-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.config-card {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 18px;
  transition: all 0.2s;
  position: relative;
}
.config-card:hover {
  border-color: #d0d0d0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.config-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.config-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.config-card-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 20px;
}
.config-card-status.on {
  background: #e6f7ee;
  color: #16a34a;
}
.config-card-status.off {
  background: #f5f5f5;
  color: rgba(0,0,0,0.35);
}
.config-card-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.config-card-name {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 6px;
}
.config-card-desc {
  font-size: 13px;
  color: rgba(0,0,0,0.45);
  line-height: 1.5;
  margin-bottom: 12px;
}
.config-card-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: rgba(0,0,0,0.35);
}

/* Form card */
.config-form-card {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 20px;
}
.config-form-title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 18px;
}
.config-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
}
.config-form-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.config-form-item label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(0,0,0,0.6);
}
.config-select,
.config-input {
  padding: 9px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  color: #1a1a1a;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s;
  background: #fff;
}
.config-select:focus,
.config-input:focus {
  border-color: #276ff5;
}
.config-range {
  width: 100%;
  accent-color: #276ff5;
}
.config-range-val {
  font-size: 13px;
  color: #276ff5;
  font-weight: 500;
}

/* Log table */
.config-log-table {
  width: 100%;
  border-collapse: collapse;
}
.config-log-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(0,0,0,0.45);
  border-bottom: 1px solid #f0f0f0;
}
.config-log-table td {
  padding: 12px 16px;
  font-size: 13px;
  color: rgba(0,0,0,0.7);
  border-bottom: 1px solid #f5f5f5;
}
.config-log-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}
.config-log-status.success {
  background: #e6f7ee;
  color: #16a34a;
}
.config-log-status.fail {
  background: #fef2f2;
  color: #ef4444;
}

/* Save bar */
.config-save-bar {
  display: flex;
  justify-content: flex-end;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
  margin-top: 12px;
}
.config-save-btn {
  padding: 9px 28px;
  background: #276ff5;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}
.config-save-btn:hover {
  background: #1a56cc;
}


/* =========================================
   AGENT DETAIL PAGE (智能体详情)
   ========================================= */
.agent-detail {
  flex: 1;
  display: flex;
  overflow: hidden;
  background: #fff;
}

/* Left main area */
.agd-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.agd-tab-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}
.agd-tab-title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  max-width: 400px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 8px;
}
.agd-title-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.agd-title-avatar-fallback {
  display: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #276ff5, #7c3aed);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.agd-title-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.agd-tabs {
  display: flex;
  background: #f5f5f5;
  border-radius: 8px;
  padding: 2px;
}
.agd-tab {
  padding: 6px 16px;
  font-size: 13px;
  color: rgba(0,0,0,0.5);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}
.agd-tab.active {
  background: #fff;
  color: #1a1a1a;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Memory (Welcome) View */
.agd-memory-view {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 32px 20px;
  gap: 28px;
}
.agd-welcome-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.agd-avatar-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
}
.agd-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 20px rgba(147,130,220,0.35));
}
.agd-avatar-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.agd-welcome-title {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  text-align: center;
}
.agd-highlight {
  background: linear-gradient(90deg, #276ff5, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Features row */
.agd-features-row {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  max-width: 700px;
  width: 100%;
}
.agd-feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}
.agd-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(0,0,0,0.7);
}
.agd-feature-icon {
  font-size: 16px;
  flex-shrink: 0;
}

/* Chat preview */
.agd-chat-preview {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 320px;
}
.agd-preview-bubble {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
}
.agd-preview-bubble.user {
  background: #e8f0fe;
  color: #1a1a1a;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.agd-preview-bubble.ai {
  background: #f5f7fa;
  color: rgba(0,0,0,0.7);
  border-bottom-left-radius: 4px;
}
.agd-preview-status {
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 6px;
  color: rgba(0,0,0,0.5);
}
.agd-preview-text {
  font-size: 12px;
  color: rgba(0,0,0,0.6);
  margin-bottom: 8px;
}
.agd-preview-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.agd-ptag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
}
.agd-ptag.green { background: #e6f7ee; color: #16a34a; }
.agd-ptag.blue { background: #e8f0fe; color: #276ff5; }
.agd-ptag.purple { background: #f3e8ff; color: #7c3aed; }
.agd-preview-tip {
  background: #e8f0fe;
  color: #276ff5;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 10px;
}

/* Quick action buttons */
.agd-quick-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 700px;
}
.agd-qbtn {
  padding: 8px 16px;
  border: 1px solid #e0e5f0;
  border-radius: 20px;
  background: #fff;
  font-size: 13px;
  color: rgba(0,0,0,0.7);
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.agd-qbtn:hover {
  border-color: #276ff5;
  color: #276ff5;
  background: #f0f5ff;
}

/* Input area */
.agd-input-wrap {
  width: 100%;
  max-width: 600px;
  flex-shrink: 0;
}
.agd-input-bottom {
  padding: 12px 32px 16px;
  max-width: 100%;
}
.agd-input-box {
  background: #fff;
  border: 1px solid #e0e5f0;
  border-radius: 16px;
  padding: 12px 14px 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  transition: border-color 0.2s;
}
.agd-input-box:focus-within {
  border-color: #276ff5;
}
.agd-input-field {
  width: 100%;
  border: none;
  outline: none;
  font-size: 14px;
  color: rgba(0,0,0,0.8);
  resize: none;
  min-height: 22px;
  max-height: 100px;
  line-height: 1.5;
  background: transparent;
  font-family: inherit;
  margin-bottom: 8px;
}
.agd-input-field::placeholder { color: rgba(0,0,0,0.3); }
.agd-input-actions {
  display: flex;
  align-items: center;
}
.agd-tool-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(0,0,0,0.35);
  transition: all 0.15s;
}
.agd-tool-btn:hover { background: #f0f2f5; color: rgba(0,0,0,0.6); }
.agd-tool-btn svg { width: 18px; height: 18px; }
.agd-input-spacer { flex: 1; }
.agd-send-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #276ff5;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 2px 8px rgba(39,111,245,0.3);
}
.agd-send-btn:hover { background: #1a56cc; transform: scale(1.05); }
.agd-send-btn svg { width: 16px; height: 16px; color: #fff; }
.agd-disclaimer {
  text-align: center;
  font-size: 11px;
  color: rgba(0,0,0,0.25);
  margin-top: 8px;
}

/* Progress (Chat) View */
.agd-progress-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.agd-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.agd-msg {
  max-width: 85%;
  contain: layout style paint;
  will-change: transform, opacity;
}
.agd-msg.user {
  align-self: flex-end;
}
.agd-msg.user .agd-msg-bubble {
  background: #e8f0fe;
  color: #1a1a1a;
  border-radius: 14px 14px 4px 14px;
}
.agd-msg.ai .agd-msg-bubble {
  background: #f8f9fa;
  color: rgba(0,0,0,0.8);
  border-radius: 14px 14px 14px 4px;
}
.agd-msg-bubble {
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.6;
}
.agd-msg-thinking {
  font-size: 13px;
  color: rgba(0,0,0,0.4);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.agd-msg-thinking::before {
  content: '›';
  font-weight: 700;
}
/* Report card in chat */
.agd-report-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  margin-top: 10px;
}
.agd-report-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #276ff5, #60a5fa);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.agd-report-name {
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
}
.agd-report-meta {
  font-size: 12px;
  color: rgba(0,0,0,0.35);
}
.agd-report-meta .agd-verified {
  color: #276ff5;
  margin-left: 6px;
}
/* Action bar under AI message */
.agd-msg-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  padding-left: 2px;
}
.agd-msg-action {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0,0,0,0.25);
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
  transition: color 0.15s;
}
.agd-msg-action:hover { color: rgba(0,0,0,0.5); }

/* 对话中的选择选项 */
.agd-select-group {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px;
}
.agd-select-option {
  padding: 8px 16px; border: 1px solid #e0e0e0; border-radius: 8px;
  font-size: 13px; color: rgba(0,0,0,0.7); cursor: pointer;
  transition: all 0.15s; background: #fff;
}
.agd-select-option:hover { border-color: #276ff5; color: #276ff5; background: #f0f5ff; }
.agd-select-option.selected { border-color: #276ff5; color: #fff; background: #276ff5; }
.agd-multi-select .agd-select-option.selected { background: #276ff5; color: #fff; }
.agd-confirm-btn {
  padding: 7px 20px; border: none; background: #276ff5; color: #fff;
  border-radius: 8px; font-size: 13px; font-weight: 500; cursor: pointer;
  transition: background 0.15s;
}
.agd-confirm-btn:hover { background: #1a56cc; }

/* 日期选择器 */
.agd-date-picker-row {
  display: flex; gap: 16px; margin-top: 12px;
}
.agd-date-field {
  display: flex; flex-direction: column; gap: 4px; flex: 1;
}
.agd-date-field label {
  font-size: 12px; color: rgba(0,0,0,0.45); font-weight: 500;
}
.agd-date-input {
  padding: 8px 12px; border: 1px solid #e0e0e0; border-radius: 8px;
  font-size: 13px; color: rgba(0,0,0,0.82); outline: none;
  transition: border-color 0.15s;
}
.agd-date-input:focus { border-color: #276ff5; }

/* 二次操作按钮组 */
.agd-action-btns {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px;
}
.agd-action-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border: 1px solid #e0e0e0; border-radius: 8px;
  background: #fff; font-size: 13px; color: rgba(0,0,0,0.7);
  cursor: pointer; transition: all 0.15s;
}
.agd-action-btn:hover { border-color: #276ff5; color: #276ff5; background: #f0f5ff; }
.agd-action-btn svg { flex-shrink: 0; }

/* 追问建议卡片 */
.agd-suggest-cards {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px;
}
.agd-suggest-card {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; background: #f8f9fb; border: 1px solid #f0f0f0;
  border-radius: 10px; font-size: 13px; color: rgba(0,0,0,0.65);
  cursor: pointer; transition: all 0.15s;
}
.agd-suggest-card:hover { border-color: #276ff5; color: #276ff5; background: #f0f5ff; }
.agd-suggest-icon { font-size: 16px; }

/* 一次性表单卡片 */
.agd-form-card {
  margin-top: 14px; padding: 16px; background: #f9fafb;
  border: 1px solid #eee; border-radius: 12px;
}
.agd-form-row {
  display: flex; flex-direction: column; gap: 8px; padding: 4px 0;
}
.agd-form-label {
  font-size: 12px; font-weight: 600; color: rgba(0,0,0,0.5);
}
.agd-form-options { display: flex; flex-wrap: wrap; gap: 6px; }
.agd-form-chip {
  padding: 6px 14px; border: 1px solid #e0e0e0; border-radius: 20px;
  font-size: 13px; color: rgba(0,0,0,0.6); background: #fff;
  cursor: pointer; transition: all 0.15s; user-select: none;
}
.agd-form-chip:hover { border-color: #276ff5; color: #276ff5; }
.agd-form-chip.selected { border-color: #276ff5; background: #276ff5; color: #fff; }
.agd-form-hint { font-size: 11px; color: rgba(0,0,0,0.3); }
.agd-form-divider { height: 1px; background: #eee; margin: 10px 0; }
.agd-form-actions { margin-top: 14px; }

/* 业务流程衔接卡片 */
.agd-workflow-cards {
  display: flex; flex-direction: column; gap: 8px; margin-top: 12px;
}
.agd-workflow-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; background: #fff; border: 1px solid #eee;
  border-radius: 10px; cursor: pointer; transition: all 0.15s;
}
.agd-workflow-card:hover { border-color: #276ff5; box-shadow: 0 2px 8px rgba(39,111,245,0.08); }
.agd-workflow-icon {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.agd-workflow-info { flex: 1; min-width: 0; }
.agd-workflow-title { font-size: 13px; font-weight: 600; color: rgba(0,0,0,0.82); }
.agd-workflow-desc { font-size: 12px; color: rgba(0,0,0,0.4); margin-top: 2px; }

/* 添加搭档 — 定时任务推荐 */
.onboard-sched-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; border: 1px solid #eee; border-radius: 12px;
  margin-bottom: 10px; transition: all 0.15s; background: #fff;
}
.onboard-sched-item:hover { border-color: #d0d8e0; }
.onboard-sched-check { flex-shrink: 0; padding-top: 2px; }
.onboard-sched-info { flex: 1; min-width: 0; }
.onboard-sched-title { font-size: 14px; font-weight: 600; color: rgba(0,0,0,0.82); margin-bottom: 4px; }
.onboard-sched-desc { font-size: 12px; color: rgba(0,0,0,0.45); line-height: 1.5; }
.onboard-sched-config { display: flex; gap: 8px; flex-shrink: 0; align-items: center; }
.onboard-sched-freq {
  padding: 6px 10px; border: 1px solid #e0e0e0; border-radius: 6px;
  font-size: 12px; color: rgba(0,0,0,0.7); outline: none; cursor: pointer;
}
.onboard-sched-time {
  padding: 6px 10px; border: 1px solid #e0e0e0; border-radius: 6px;
  font-size: 12px; color: rgba(0,0,0,0.7); outline: none;
}

/* Right sidebar */
.agd-right {
  width: 300px;
  flex-shrink: 0;
  border-left: 1px solid #f0f0f0;
  overflow-y: auto;
  padding: 16px;
  background: #fafbfc;
}
.agd-sb-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}
.agd-sb-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.agd-sb-toggle {
  font-size: 12px;
  color: rgba(0,0,0,0.3);
  cursor: pointer;
}
.agd-sb-row {
  display: flex;
  gap: 12px;
  padding: 6px 0;
  font-size: 13px;
  color: rgba(0,0,0,0.7);
}
.agd-sb-label {
  color: rgba(0,0,0,0.4);
  min-width: 50px;
  flex-shrink: 0;
}

/* Notes */
.agd-sb-note {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
}
.agd-sb-note:last-child { border-bottom: none; }
.agd-sb-note-icon { font-size: 16px; flex-shrink: 0; margin-top: 2px; }
.agd-sb-note-title { font-size: 13px; font-weight: 500; color: #1a1a1a; margin-bottom: 3px; }
.agd-sb-note-desc { font-size: 12px; color: rgba(0,0,0,0.4); line-height: 1.4; }

/* Lessons */
.agd-sb-lesson {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
}
.agd-sb-lesson:last-child { border-bottom: none; }
.agd-sb-lesson-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f0f5ff;
  color: #276ff5;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.agd-sb-lesson-text { font-size: 13px; color: rgba(0,0,0,0.7); line-height: 1.5; }
.agd-sb-lesson-source { font-size: 11px; color: rgba(0,0,0,0.3); margin-top: 4px; }

/* Progress sidebar: tasks */
.agd-task-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
  font-size: 13px;
  color: rgba(0,0,0,0.6);
}
.agd-task-check {
  color: #16a34a;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}
.agd-task-pending {
  color: rgba(0,0,0,0.2);
}

/* Progress sidebar: results */
.agd-sb-result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
}
.agd-sb-result:last-child { border-bottom: none; }
.agd-sb-result-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: linear-gradient(135deg, #276ff5, #60a5fa);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}
.agd-sb-result-name { font-size: 13px; font-weight: 500; color: #1a1a1a; }
.agd-sb-result-meta { font-size: 11px; color: rgba(0,0,0,0.35); }
.agd-sb-results-more {
  font-size: 12px;
  color: rgba(0,0,0,0.35);
  text-align: right;
  padding-top: 6px;
}

/* Files */
.agd-sb-file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
}
.agd-sb-file:last-child { border-bottom: none; }
.agd-sb-file-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.agd-sb-file-icon.xlsx { background: linear-gradient(135deg, #16a34a, #4ade80); }
.agd-sb-file-icon.csv { background: linear-gradient(135deg, #16a34a, #86efac); }
.agd-sb-file-name { font-size: 13px; font-weight: 500; color: #1a1a1a; }
.agd-sb-file-meta { font-size: 11px; color: rgba(0,0,0,0.35); }

/* Thinking animation */
.agd-thinking-dots span {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #276ff5;
  margin: 0 2px;
  animation: agdDotBounce 1.2s infinite;
}
.agd-thinking-dots span:nth-child(2) { animation-delay: 0.2s; }
.agd-thinking-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes agdDotBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-6px); opacity: 1; }
}

/* Step animation in progress */
.agd-step-anim {
  will-change: transform, opacity;
  animation: agdStepIn 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
@keyframes agdStepIn {
  from { opacity: 0; transform: translate3d(0, 8px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* =========================================
   供应商评估思维链 — 新组件样式
   ========================================= */

/* Thinking Block (collapsible) */
.agd-thinking-block {
  border: none; margin: 0; padding: 0;
}
.agd-thinking-summary {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: #16a34a;
  cursor: pointer; list-style: none; padding: 4px 0;
  user-select: none;
}
.agd-thinking-summary::-webkit-details-marker { display: none; }
.agd-thinking-summary::after {
  content: '›'; font-size: 14px; color: rgba(0,0,0,0.3);
  margin-left: auto; transition: transform 0.2s;
}
.agd-thinking-block[open] .agd-thinking-summary::after { transform: rotate(90deg); }
.agd-thinking-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: #f0fdf4; color: #16a34a; font-size: 12px; font-weight: 700;
}
.agd-thinking-detail {
  font-size: 13px; color: rgba(0,0,0,0.5); padding: 8px 0 4px 28px;
  line-height: 1.6;
}

/* Template Card (Solo-style) */
.agd-template-card {
  border: 1px solid #e8e8e8; border-radius: 12px;
  overflow: hidden; margin-top: 8px;
}
.agd-card-header {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px; background: #fafafa;
  border-bottom: 1px solid #f0f0f0;
}
.agd-card-icon { font-size: 18px; }
.agd-card-title { font-size: 15px; font-weight: 600; color: #1a1a1a; }
.agd-card-body { padding: 16px 18px; }
.agd-card-body p { margin: 0 0 12px; font-size: 14px; color: rgba(0,0,0,0.7); line-height: 1.6; }
.agd-card-field { margin-bottom: 10px; }
.agd-card-field-label {
  font-size: 12px; font-weight: 500; color: rgba(0,0,0,0.4);
  margin-bottom: 4px;
}
.agd-card-field-value {
  font-size: 14px; color: #1a1a1a; font-weight: 500;
  padding: 8px 12px; background: #f8f9fa; border-radius: 8px;
  border: 1px solid #f0f0f0;
}
.agd-card-dims {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px;
}
.agd-card-dim-tag {
  font-size: 12px; padding: 4px 10px; border-radius: 6px;
  background: #eef2ff; color: #4f46e5; font-weight: 500;
}
.agd-card-actions {
  display: flex; gap: 8px; padding: 12px 18px;
  border-top: 1px solid #f0f0f0; background: #fafafa;
}
.agd-card-btn {
  padding: 8px 20px; border-radius: 8px; font-size: 13px;
  font-weight: 500; cursor: pointer; transition: all 0.15s;
  border: 1px solid; font-family: inherit;
}
.agd-card-btn.primary {
  background: #2970FF; color: #fff; border-color: #2970FF;
}
.agd-card-btn.primary:hover { background: #1d5ed9; }
.agd-card-btn.secondary {
  background: #fff; color: rgba(0,0,0,0.6); border-color: #e0e0e0;
}
.agd-card-btn.secondary:hover { border-color: #c0c0c0; }

/* Data Table & Vendor Table */
.agd-data-table, .agd-vendor-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
  margin-top: 8px;
}
.agd-data-table th, .agd-vendor-table th {
  text-align: left; padding: 10px 12px; font-weight: 600;
  color: rgba(0,0,0,0.5); background: #f8f9fa;
  border-bottom: 1px solid #e8e8e8; font-size: 12px;
}
.agd-data-table td, .agd-vendor-table td {
  padding: 10px 12px; border-bottom: 1px solid #f0f0f0;
  color: rgba(0,0,0,0.7); line-height: 1.5;
}
.agd-data-table tr:last-child td, .agd-vendor-table tr:last-child td {
  border-bottom: none;
}
.agd-dt-file { font-family: monospace; font-size: 12px; color: rgba(0,0,0,0.4); }
.agd-dt-check { color: #16a34a; font-weight: 700; text-align: center; width: 30px; }

/* Section title in messages */
.agd-section-title {
  font-size: 16px; font-weight: 700; color: #1a1a1a;
  margin-bottom: 8px;
}

/* Evaluation Framework */
.agd-eval-framework { margin-top: 12px; }
.agd-eval-row {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 8px;
}
.agd-eval-dim {
  font-size: 13px; font-weight: 500; color: rgba(0,0,0,0.7);
  width: 100px; flex-shrink: 0;
}
.agd-eval-bar-track {
  flex: 1; height: 8px; background: #f0f0f0; border-radius: 4px;
  overflow: hidden;
}
.agd-eval-bar {
  height: 100%; background: linear-gradient(90deg, #2970FF, #6366f1);
  border-radius: 4px; transition: width 0.6s ease;
}
.agd-eval-weight {
  font-size: 13px; font-weight: 600; color: rgba(0,0,0,0.5);
  width: 40px; text-align: right;
}

/* Veto note */
.agd-veto-note {
  margin-top: 12px; padding: 12px 16px;
  background: #f8f9fa; border-radius: 8px;
  font-size: 13px; color: rgba(0,0,0,0.5);
  font-style: italic; line-height: 1.6;
}

/* Sidebar spinner */
.agd-spinner {
  display: inline-block; width: 14px; height: 14px;
  border: 2px solid #e0e0e0; border-top-color: #2970FF;
  border-radius: 50%; animation: agdSpin 0.8s linear infinite;
}
@keyframes agdSpin {
  to { transform: rotate(360deg); }
}

/* =========================================
   Subpage shared styles (日历/会议/全部应用)
   ========================================= */
.biz-subpage {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px 32px;
  overflow-y: auto;
}
.biz-subpage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-shrink: 0;
}
.biz-subpage-title {
  font-size: 20px;
  font-weight: 600;
  color: rgba(0,0,0,0.82);
  margin: 0;
}
.biz-subpage-tab {
  padding: 6px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  font-size: 13px;
  color: rgba(0,0,0,0.6);
  cursor: pointer;
  transition: all 0.15s;
}
.biz-subpage-tab.active {
  background: #276ff5;
  color: #fff;
  border-color: #276ff5;
}

/* ---- Calendar (周视图) ---- */
.cal-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px; border-bottom: 1px solid #f0f0f0; flex-shrink: 0;
}
.cal-toolbar-left { display: flex; align-items: center; gap: 8px; }
.cal-toolbar-right { display: flex; align-items: center; gap: 12px; }
.cal-today-btn {
  padding: 5px 14px; font-size: 13px; border: 1px solid #e0e0e0; border-radius: 6px;
  background: #fff; color: rgba(0,0,0,0.7); cursor: pointer; transition: all 0.15s;
}
.cal-today-btn:hover { border-color: #276ff5; color: #276ff5; }
.cal-nav-btn {
  width: 28px; height: 28px; border: 1px solid #e0e0e0; border-radius: 6px;
  background: #fff; font-size: 16px; color: rgba(0,0,0,0.5); cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all 0.15s;
}
.cal-nav-btn:hover { border-color: #276ff5; color: #276ff5; }
.cal-date-range { font-size: 15px; font-weight: 600; color: rgba(0,0,0,0.82); margin-left: 4px; }
.cal-view-tabs {
  display: flex; background: #f0f0f0; border-radius: 8px; padding: 2px; gap: 2px;
}
.cal-view-tab {
  padding: 4px 14px; font-size: 13px; border-radius: 6px; cursor: pointer;
  color: rgba(0,0,0,0.5); transition: all 0.15s; user-select: none;
}
.cal-view-tab:hover { color: rgba(0,0,0,0.7); }
.cal-view-tab.active { background: #fff; color: rgba(0,0,0,0.85); box-shadow: 0 1px 3px rgba(0,0,0,0.08); font-weight: 500; }
.cal-new-btn {
  padding: 6px 16px; font-size: 13px; font-weight: 500; border: none; border-radius: 6px;
  background: #276ff5; color: #fff; cursor: pointer; transition: background 0.15s;
}
.cal-new-btn:hover { background: #1a56cc; }

/* 周视图网格 */
.cal-week-grid {
  flex: 1; overflow-y: auto; display: flex; flex-direction: column;
}
.cal-week-header {
  display: grid; grid-template-columns: 56px repeat(7, 1fr);
  border-bottom: 1px solid #e8e8e8; flex-shrink: 0; position: sticky; top: 0; z-index: 2; background: #fff;
}
.cal-week-header-corner { padding: 0; }
.cal-week-header-day {
  text-align: center; padding: 10px 0 8px; font-size: 12px; color: rgba(0,0,0,0.45);
  border-left: 1px solid #f0f0f0;
}
.cal-week-header-day .cal-day-name { font-weight: 500; }
.cal-week-header-day .cal-day-num { font-size: 18px; font-weight: 600; color: rgba(0,0,0,0.82); margin-top: 2px; }
.cal-week-header-day.cal-today .cal-day-name { color: #276ff5; }
.cal-week-header-day.cal-today .cal-day-num { color: #276ff5; }
/* 全天行 */
.cal-allday-row {
  display: grid; grid-template-columns: 56px repeat(7, 1fr);
  border-bottom: 1px solid #e8e8e8; min-height: 28px;
}
.cal-allday-label { font-size: 11px; color: rgba(0,0,0,0.35); padding: 6px 8px 0; text-align: right; }
.cal-allday-cell { border-left: 1px solid #f0f0f0; }
/* 时间行 */
.cal-time-body { flex: 1; position: relative; }
.cal-time-row {
  display: grid; grid-template-columns: 56px repeat(7, 1fr);
  min-height: 80px; border-bottom: 1px solid #f5f5f5;
}
.cal-time-label {
  font-size: 11px; color: rgba(0,0,0,0.35); padding: 0 8px; text-align: right;
  position: relative; top: -7px;
}
.cal-time-cell { border-left: 1px solid #f0f0f0; }
.cal-time-cell:hover { background: rgba(39,111,245,0.02); }

/* ---- Meeting (redesigned) ---- */
/* 顶部快捷入口 */
.mtg-shortcuts {
  display: flex; gap: 16px; padding: 0 0 24px; width: 100%;
}
.mtg-shortcut-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px; background: #fff; border: 1px solid #eee;
  border-radius: 14px; cursor: pointer; transition: all 0.18s;
  flex: 1; min-width: 0;
}
.mtg-shortcut-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.06); border-color: #ddd; }
.mtg-shortcut-card.mtg-shortcut-primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-color: transparent; color: #fff;
}
.mtg-shortcut-card.mtg-shortcut-primary:hover {
  box-shadow: 0 4px 16px rgba(37,99,235,0.3);
}
.mtg-shortcut-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.mtg-shortcut-primary .mtg-shortcut-icon {
  background: rgba(255,255,255,0.2); border-radius: 50%;
}
.mtg-icon-room { background: #fef3c7; }
.mtg-icon-review { background: #dcfce7; }
.mtg-shortcut-text { min-width: 0; }
.mtg-shortcut-title { font-size: 15px; font-weight: 600; }
.mtg-shortcut-desc { font-size: 12px; opacity: 0.6; margin-top: 2px; }
.mtg-shortcut-primary .mtg-shortcut-title { color: #fff; }
.mtg-shortcut-primary .mtg-shortcut-desc { color: rgba(255,255,255,0.75); }

/* 分区 */
.mtg-section { margin-bottom: 28px; width: 100%; }
.mtg-section-header {
  display: flex; align-items: center; gap: 8px; margin-bottom: 14px;
}
.mtg-section-icon {
  display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; color: #276ff5;
}
.mtg-section-title { font-size: 15px; font-weight: 600; color: rgba(0,0,0,0.82); }
.mtg-section-action {
  margin-left: auto; font-size: 13px; color: rgba(0,0,0,0.4);
  cursor: pointer; transition: color 0.15s;
}
.mtg-section-action:hover { color: #276ff5; }

/* 会议卡片列表 */
.mtg-card-list { display: flex; flex-direction: column; gap: 10px; }

/* 单个会议卡片 */
.mtg-card {
  display: flex; background: #fff; border: 1px solid #f0f0f0;
  border-radius: 12px; overflow: hidden; cursor: pointer;
  transition: all 0.18s;
}
.mtg-card:hover { box-shadow: 0 2px 14px rgba(0,0,0,0.06); border-color: #e0e0e0; }
.mtg-card-color { display: none; }
.mtg-card-body { flex: 1; padding: 14px 18px; min-width: 0; }
.mtg-card-row1 { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.mtg-card-title { font-size: 14px; font-weight: 600; color: rgba(0,0,0,0.82); }
.mtg-card-status {
  font-size: 11px; padding: 2px 10px; border-radius: 10px; white-space: nowrap; flex-shrink: 0;
}
.mtg-card-status.ongoing { background: #f0fdf4; color: #16a34a; }
.mtg-card-status.upcoming { background: #eff6ff; color: #276ff5; }
.mtg-card-status.ended { background: #f5f5f5; color: rgba(0,0,0,0.3); }
.mtg-card-status.scheduled { background: #faf5ff; color: #9333ea; }

.mtg-card-row2 {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-bottom: 10px;
}
.mtg-card-meta {
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; color: rgba(0,0,0,0.4);
}
.mtg-card-date {
  font-size: 11px; padding: 1px 6px; border-radius: 6px;
  background: #eff6ff; color: #276ff5; font-weight: 500; margin-right: 4px;
}

.mtg-card-row3 { display: flex; align-items: center; justify-content: space-between; }
.mtg-card-avatars { display: flex; align-items: center; }
.mtg-card-avatars img {
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff;
  margin-left: -6px; object-fit: cover;
}
.mtg-card-avatars img:first-child { margin-left: 0; }
.mtg-card-avatar-more {
  width: 26px; height: 26px; border-radius: 50%; background: #f0f0f0;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: rgba(0,0,0,0.45); font-weight: 600;
  margin-left: -6px; border: 2px solid #fff;
}
.mtg-card-join {
  padding: 5px 14px; border: none; border-radius: 8px;
  background: #276ff5; color: #fff; font-size: 12px; font-weight: 500;
  cursor: pointer; transition: background 0.15s;
}
.mtg-card-join:hover { background: #1d5ed9; }

/* 空状态 */
.mtg-empty {
  text-align: center; padding: 32px 0; font-size: 13px;
  color: rgba(0,0,0,0.25);
}

/* ---- Old Meeting styles (kept for compat) ---- */
.biz-meeting-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.biz-meeting-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  transition: box-shadow 0.15s;
  cursor: pointer;
}
.biz-meeting-card:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.biz-meeting-time {
  min-width: 60px;
  text-align: center;
}
.biz-meeting-time-main {
  font-size: 16px;
  font-weight: 600;
  color: rgba(0,0,0,0.82);
}
.biz-meeting-time-sub {
  font-size: 11px;
  color: rgba(0,0,0,0.35);
}
.biz-meeting-divider {
  width: 3px;
  height: 40px;
  border-radius: 2px;
  flex-shrink: 0;
}
.biz-meeting-info { flex: 1; min-width: 0; }
.biz-meeting-title {
  font-size: 14px;
  font-weight: 600;
  color: rgba(0,0,0,0.82);
  margin-bottom: 4px;
}
.biz-meeting-desc {
  font-size: 12px;
  color: rgba(0,0,0,0.45);
}
.biz-meeting-avatars {
  display: flex;
  flex-shrink: 0;
}
.biz-meeting-avatars img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -8px;
  object-fit: cover;
}
.biz-meeting-avatars img:first-child { margin-left: 0; }
.biz-meeting-status {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}
.biz-meeting-status.upcoming { background: #eff6ff; color: #276ff5; }
.biz-meeting-status.ongoing { background: #f0fdf4; color: #16a34a; }
.biz-meeting-status.ended { background: #f5f5f5; color: rgba(0,0,0,0.35); }

/* ---- All Apps ---- */
.biz-allapps-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  min-width: 200px;
}
.biz-allapps-search input {
  border: none;
  outline: none;
  font-size: 13px;
  color: rgba(0,0,0,0.7);
  background: transparent;
  flex: 1;
}
.biz-allapps-search input::placeholder { color: rgba(0,0,0,0.25); }
.biz-allapps-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 12px;
  margin-bottom: 20px;
  flex-shrink: 0;
}
.biz-allapps-tab {
  font-size: 14px;
  color: rgba(0,0,0,0.5);
  cursor: pointer;
  padding-bottom: 8px;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
}
.biz-allapps-tab:hover { color: rgba(0,0,0,0.7); }
.biz-allapps-tab.active {
  color: #276ff5;
  border-bottom-color: #276ff5;
  font-weight: 500;
}
.biz-allapps-section-title {
  font-size: 14px;
  font-weight: 600;
  color: rgba(0,0,0,0.7);
  margin-bottom: 16px;
}
.biz-allapps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 20px 16px;
  flex: 1;
}
.biz-app-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: opacity 0.15s;
}
.biz-app-item:hover { opacity: 0.7; }
.biz-app-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  font-weight: 600;
}
.biz-app-name {
  font-size: 12px;
  color: rgba(0,0,0,0.65);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80px;
}


/* =========================================
   ORG CHART PAGE (组织架构) — 垂直树形
   ========================================= */
#orgchart-page {
  flex: 1;
  flex-direction: column;
  overflow: hidden;
  background: #fafbfc;
}
.orgchart-header {
  flex-shrink: 0;
  padding: 16px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f0f0f0;
}
.orgchart-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.orgchart-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.orgchart-search {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; cursor: pointer; transition: background 0.15s;
}
.orgchart-search:hover { background: #f0f0f0; }
.orgchart-layout-toggle {
  display: flex; background: #f5f5f5; border-radius: 8px; padding: 2px; gap: 2px;
}
.orgchart-layout-btn {
  width: 32px; height: 28px; border: none; background: transparent;
  border-radius: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: rgba(0,0,0,0.4); transition: all 0.15s;
}
.orgchart-layout-btn.active { background: #fff; color: rgba(0,0,0,0.8); box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.orgchart-layout-btn:hover { color: rgba(0,0,0,0.7); }
.orgchart-date-picker input {
  border: 1px solid #e0e0e0; border-radius: 8px; padding: 5px 12px;
  font-size: 13px; color: rgba(0,0,0,0.7); background: #fff; cursor: pointer;
  font-family: inherit;
}
.orgchart-date-picker input:hover { border-color: #c0c0c0; }

/* 视图切换 tab */
.orgchart-view-tabs {
  display: flex; background: #f0f0f0; border-radius: 8px; padding: 2px; gap: 2px;
}
.orgchart-view-tab {
  padding: 4px 14px; font-size: 13px; border-radius: 6px;
  cursor: pointer; color: rgba(0,0,0,0.5); transition: all 0.15s;
  user-select: none; white-space: nowrap;
}
.orgchart-view-tab:hover { color: rgba(0,0,0,0.7); }
.orgchart-view-tab.active { background: #fff; color: rgba(0,0,0,0.85); box-shadow: 0 1px 3px rgba(0,0,0,0.08); font-weight: 500; }

/* 汇报关系视图 */
.orgchart-report-view {
  flex: 1; overflow: auto; padding: 40px 36px 60px;
  display: flex; justify-content: center; align-items: flex-start;
}
.oc-report-canvas {
  display: flex; flex-direction: column; align-items: center; gap: 0;
  min-width: 600px; max-width: 960px; width: 100%;
}
/* 上级区域 */
.oc-rpt-superior {
  display: flex; flex-direction: column; align-items: center; margin-bottom: 0;
}
.oc-rpt-superior .oc-rpt-label {
  font-size: 11px; color: rgba(0,0,0,0.35); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px;
}
/* 多上级横排 */
.oc-rpt-superior-row {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 0;
}
/* 汇聚/分叉连线容器 */
.oc-rpt-merge-lines {
  width: 100%; height: 40px; position: relative;
}
.oc-rpt-connector {
  width: 1.5px; height: 28px; background: #276ff5; border-radius: 1px;
}
/* 中心人物卡片 */
.oc-rpt-center {
  display: flex; flex-direction: column; align-items: center;
}
.oc-rpt-center-card {
  background: #fff; border: 2px solid #276ff5; border-radius: 16px;
  padding: 24px 32px; min-width: 280px; max-width: 420px;
  box-shadow: 0 4px 20px rgba(39,111,245,0.12);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.oc-rpt-center-card.has-parttime {
  border-image: linear-gradient(135deg, #276ff5, #f59e0b) 1;
  border-style: solid; border-width: 2px; border-radius: 16px;
  /* fallback for border-image not supporting border-radius */
  border-image: none;
  border-color: #276ff5;
  background: linear-gradient(135deg, rgba(39,111,245,0.02), rgba(245,158,11,0.02));
}
.oc-rpt-center-avatar {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
  border: 3px solid #276ff5;
}
.oc-rpt-center-name { font-size: 18px; font-weight: 700; color: rgba(0,0,0,0.88); }
.oc-rpt-center-title { font-size: 13px; color: rgba(0,0,0,0.45); }
.oc-rpt-center-dept { font-size: 12px; color: #276ff5; background: #eff6ff; padding: 2px 10px; border-radius: 10px; margin-top: 4px; }
.oc-rpt-center-badge { font-size: 11px; padding: 2px 10px; border-radius: 10px; margin-top: 2px; }
.oc-rpt-center-badge.ai { background: rgba(99,102,241,0.1); color: #6366f1; }
.oc-rpt-center-badge.human { background: #ecfdf5; color: #16a34a; }

/* 多部门标签组 */
.oc-rpt-center-depts {
  display: flex; flex-direction: column; gap: 6px; margin-top: 6px; width: 100%;
}
.oc-rpt-dept-tag {
  display: flex; align-items: center; gap: 6px; padding: 5px 12px;
  border-radius: 8px; font-size: 12px;
}
.oc-rpt-dept-tag.primary {
  background: #eff6ff; border: 1px solid rgba(39,111,245,0.15);
}
.oc-rpt-dept-tag.parttime {
  background: #fffbeb; border: 1px solid rgba(245,158,11,0.2);
}
.oc-rpt-dept-name { font-weight: 600; color: rgba(0,0,0,0.7); }
.oc-rpt-dept-role { color: rgba(0,0,0,0.45); }
.oc-rpt-dept-badge {
  font-size: 10px; padding: 1px 6px; border-radius: 6px;
  background: #f59e0b; color: #fff; font-weight: 600; margin-left: auto;
}

/* 新版关系卡片 */
.oc-rpt-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; background: #fff; border: 1px solid #e2e5e9;
  border-radius: 12px; min-width: 220px; max-width: 280px; cursor: pointer;
  transition: all 0.18s; box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  position: relative;
}
.oc-rpt-card:hover { border-color: #276ff5; box-shadow: 0 3px 14px rgba(39,111,245,0.12); transform: translateY(-1px); }
.oc-rpt-card.ai-card { background: #fafaff; border-color: rgba(99,102,241,0.18); }
.oc-rpt-card.parttime-relation {
  border-color: rgba(245,158,11,0.35);
  background: linear-gradient(135deg, #fff, #fffbeb);
  border-style: dashed;
}
.oc-rpt-card.parttime-relation:hover { border-color: #f59e0b; box-shadow: 0 3px 14px rgba(245,158,11,0.15); }
.oc-rpt-card-left { position: relative; flex-shrink: 0; }
.oc-rpt-card-avatar {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
}
.oc-rpt-card-multi-badge {
  position: absolute; bottom: -2px; right: -4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #f59e0b; color: #fff; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff; line-height: 1;
}
.oc-rpt-card-info { flex: 1; min-width: 0; }
.oc-rpt-card-name { font-size: 13px; font-weight: 600; color: rgba(0,0,0,0.82); }
.oc-rpt-card-title { font-size: 11px; color: rgba(0,0,0,0.4); margin-top: 1px; }
.oc-rpt-card-dept { font-size: 10px; color: rgba(0,0,0,0.3); margin-top: 2px; }
.oc-rpt-card-type-badge {
  font-size: 9px; padding: 1px 6px; border-radius: 8px; font-weight: 500;
  margin-top: 3px; display: inline-block; margin-right: 4px;
}
.oc-rpt-card-type-badge.ai { background: rgba(99,102,241,0.1); color: #6366f1; }
.oc-rpt-card-type-badge.parttime { background: #fef3c7; color: #b45309; }
.oc-rpt-card-depts-hint {
  font-size: 10px; color: #f59e0b; margin-top: 2px; display: inline-block;
}

/* 下方区域 */
.oc-rpt-bottom {
  display: flex; gap: 48px; justify-content: center; margin-top: 0;
}
.oc-rpt-section {
  display: flex; flex-direction: column; align-items: center; min-width: 200px;
}
.oc-rpt-section-label {
  font-size: 12px; font-weight: 600; color: rgba(0,0,0,0.4);
  margin-bottom: 12px; padding: 4px 12px; background: #f5f5f5; border-radius: 10px;
}
.oc-rpt-section-list {
  display: flex; flex-direction: column; gap: 8px; align-items: center;
}
.oc-rpt-section-list.multi-col {
  flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px;
  max-width: 600px;
}
/* 旧版小卡片（保留兼容） */
.oc-rpt-mini-card {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; background: #fff; border: 1px solid #e2e5e9;
  border-radius: 10px; min-width: 180px; cursor: pointer;
  transition: all 0.15s; box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.oc-rpt-mini-card:hover { border-color: #276ff5; box-shadow: 0 2px 10px rgba(39,111,245,0.1); }
.oc-rpt-mini-card.ai-card { background: #fafaff; border-color: rgba(99,102,241,0.18); }
.oc-rpt-mini-avatar {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.oc-rpt-mini-info { flex: 1; min-width: 0; }
.oc-rpt-mini-name { font-size: 13px; font-weight: 600; color: rgba(0,0,0,0.82); }
.oc-rpt-mini-title { font-size: 11px; color: rgba(0,0,0,0.4); margin-top: 1px; }
.oc-rpt-mini-badge {
  font-size: 9px; padding: 1px 6px; border-radius: 8px; font-weight: 500; margin-top: 2px; display: inline-block;
}
.oc-rpt-mini-badge.ai { background: rgba(99,102,241,0.1); color: #6366f1; }
/* 分叉连接线 */
.oc-rpt-fork {
  display: flex; justify-content: center; position: relative; height: 32px; width: 100%;
}
.oc-rpt-fork::before {
  content: ''; position: absolute; top: 0; left: 50%;
  width: 1.5px; height: 16px; background: #276ff5; border-radius: 1px; transform: translateX(-50%);
}
.oc-rpt-fork::after {
  content: ''; position: absolute; top: 16px; left: 25%; right: 25%;
  height: 1.5px; background: #276ff5; border-radius: 1px;
}
.oc-rpt-branch-line {
  width: 1.5px; height: 16px; background: #276ff5; border-radius: 1px; margin: 0 auto;
}
/* 空状态 */
.oc-rpt-empty {
  font-size: 13px; color: rgba(0,0,0,0.25); padding: 16px 0;
}
/* 人员选择提示 */
.oc-rpt-prompt {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 80px 0; color: rgba(0,0,0,0.25); gap: 12px;
}
.oc-rpt-prompt svg { opacity: 0.3; }
/* 组织筛选下拉 */
.orgchart-org-filter { position: relative; }
.orgchart-org-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px; background: #fff; border: 1px solid #e0e0e0;
  border-radius: 8px; font-size: 14px; font-weight: 500; color: rgba(0,0,0,0.82);
  cursor: pointer; transition: all 0.15s; user-select: none;
}
.orgchart-org-btn:hover { border-color: #c0c0c0; background: #fafafa; }
.orgchart-org-popup {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 160px;
  background: #fff; border-radius: 10px; box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  border: 1px solid #eee; padding: 4px; z-index: 100;
}
.oc-org-item {
  padding: 8px 14px; font-size: 13px; color: rgba(0,0,0,0.7);
  border-radius: 6px; cursor: pointer; transition: background 0.12s;
}
.oc-org-item:hover { background: #f5f5f5; }
.oc-org-item-active { background: #e8f0fe; color: #276ff5; font-weight: 500; }

.orgchart-legend {
  display: flex; gap: 16px; align-items: center; font-size: 13px; color: rgba(0,0,0,0.55);
}
.orgchart-legend-item { display: flex; align-items: center; gap: 6px; }
.orgchart-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.orgchart-dot-human { background: #22c55e; }
.orgchart-dot-ai { background: linear-gradient(135deg, #818cf8, #6366f1); }
.orgchart-zoom-controls {
  display: flex; align-items: center; gap: 4px;
  background: #fff; border: 1px solid #e8e8e8; border-radius: 8px; padding: 2px 4px;
}
.orgchart-zoom-btn {
  width: 28px; height: 28px; border: none; background: transparent;
  border-radius: 6px; font-size: 16px; color: rgba(0,0,0,0.5);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.orgchart-zoom-btn:hover { background: #f0f0f0; color: rgba(0,0,0,0.8); }
.orgchart-zoom-label { font-size: 12px; color: rgba(0,0,0,0.5); min-width: 36px; text-align: center; }

.orgchart-container { flex: 1; overflow: auto; cursor: grab; padding: 20px 36px 60px; }
.orgchart-canvas {
  display: flex; flex-direction: column; align-items: center; gap: 0;
  min-width: 100%; transform-origin: top center; transition: transform 0.2s ease;
}

/* CEO root card */
.oc-person-block {
  display: flex; flex-direction: column; align-items: center;
}
.oc-card {
  background: #fff;
  border: 1px solid #e2e5e9;
  border-radius: 12px;
  padding: 16px 20px;
  min-width: 200px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s;
  position: relative;
  cursor: default;
}
.oc-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.oc-card.oc-type-ai { background: #fafaff; border-color: rgba(99,102,241,0.18); }
.oc-card.oc-type-human { background: #fff; }
.oc-card-dept-name {
  font-size: 14px; font-weight: 600; color: rgba(0,0,0,0.85);
  margin-bottom: 12px; text-align: center;
}
.oc-card-leader {
  display: flex; align-items: center; gap: 10px;
}
.oc-card-avatar {
  width: 40px; height: 40px; border-radius: 50%; overflow: visible;
  flex-shrink: 0; position: relative;
}
.oc-card-avatar img {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
  border: 2px solid #f0f0f0;
}
.oc-card-info { flex: 1; min-width: 0; }
.oc-card-name { font-size: 14px; font-weight: 600; color: rgba(0,0,0,0.85); }
.oc-card-title { font-size: 12px; color: rgba(0,0,0,0.45); margin-top: 2px; }
.oc-card-counts {
  display: flex; gap: 16px; margin-top: 12px; padding-top: 10px;
  border-top: 1px solid #f0f0f0;
}
.oc-card-count {
  display: flex; align-items: center; gap: 4px;
  font-size: 13px; color: rgba(0,0,0,0.55);
}
.oc-count-dot {
  width: 8px; height: 8px; border-radius: 50%; display: inline-block;
}
.oc-count-dot.oc-dot-ai { background: #6366f1; }
.oc-count-dot.oc-dot-human { background: #22c55e; }
.oc-card-expand {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: #eff6ff; border: 1.5px solid #276ff5;
  cursor: pointer; position: absolute;
  bottom: -14px; left: 50%; transform: translateX(-50%);
  z-index: 2; transition: all 0.15s;
}
.oc-card-expand:hover { background: #dbeafe; }
.oc-card-expand.expanded { background: #276ff5; }
.oc-card-expand.expanded svg { stroke: #fff; }

/* 卡片协作关系按钮（counts行内） */
.oc-card-collab-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 20px;
  cursor: pointer; border-radius: 4px; transition: background 0.15s;
  margin-left: auto;
}
.oc-card-collab-btn:hover { background: #eff4ff; }
.oc-card-collab-tip {
  display: none; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
  margin-bottom: 4px; padding: 4px 10px; background: rgba(0,0,0,0.75); color: #fff;
  font-size: 11px; border-radius: 6px; white-space: nowrap; pointer-events: none;
}
.oc-card-collab-btn:hover .oc-card-collab-tip { display: block; }

/* 卡片右上角更多按钮 */
.oc-card-more {
  position: absolute; top: 8px; right: 8px;
  width: 28px; height: 20px; display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: rgba(0,0,0,0.3); letter-spacing: 1px;
  cursor: pointer; border-radius: 6px; transition: all 0.15s;
  z-index: 3;
}
.oc-card-more:hover { background: #f0f0f0; color: rgba(0,0,0,0.6); }
/* 下拉菜单 */
.oc-card-menu {
  position: absolute; top: 32px; right: 4px; z-index: 100;
  background: #fff; border-radius: 12px; box-shadow: 0 6px 30px rgba(0,0,0,0.15);
  border: 1px solid #eee; min-width: 180px; padding: 6px 0;
  animation: ocMenuIn 0.15s ease;
}
@keyframes ocMenuIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.oc-card-menu-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px; font-size: 13px; color: rgba(0,0,0,0.75);
  cursor: pointer; transition: background 0.12s; white-space: nowrap;
}
.oc-card-menu-item:hover { background: #f5f7fa; }
.oc-card-menu-item svg { flex-shrink: 0; }
.oc-card-menu-collab { color: #276ff5; font-weight: 500; }
.oc-card-menu-collab:hover { background: #eff6ff; }
.oc-card-menu-danger { color: #dc2626; }
.oc-card-menu-danger:hover { background: #fef2f2; }
.oc-card-menu-divider {
  height: 1px; background: #f0f0f0; margin: 4px 12px;
}

/* Sub-member person card */
.oc-person {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px; background: #fff;
  border: 1px solid #e2e5e9; border-radius: 12px;
  cursor: default; transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  min-width: 180px;
}
.oc-person:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.oc-type-ai.oc-person { border-color: rgba(99,102,241,0.18); background: #fafaff; }
.oc-type-human.oc-person { background: #fff; }
.oc-person-avatar {
  width: 44px; height: 44px; border-radius: 50%; overflow: visible;
  flex-shrink: 0; position: relative;
}
.oc-person-avatar img {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
  border: 2px solid #f0f0f0;
}
.oc-type-ai .oc-person-avatar img { border-color: rgba(99,102,241,0.25); }
.oc-person-dot {
  position: absolute; bottom: 0; right: 0; width: 10px; height: 10px;
  border-radius: 50%; border: 2px solid #fff;
}
.oc-dot-human { background: #22c55e; }
.oc-dot-ai { background: linear-gradient(135deg, #818cf8, #6366f1); }
.oc-person-info { display: flex; flex-direction: column; gap: 2px; }
.oc-person-name { font-size: 14px; font-weight: 600; color: rgba(0,0,0,0.85); }
.oc-person-title { font-size: 12px; color: rgba(0,0,0,0.4); }
.oc-person-badge {
  font-size: 10px; padding: 2px 8px; border-radius: 10px;
  font-weight: 500; white-space: nowrap; width: fit-content; margin-top: 2px;
}
.oc-badge-ai { background: rgba(99,102,241,0.1); color: #6366f1; }
.oc-badge-human { background: rgba(34,197,94,0.1); color: #16a34a; }

/* 展开下属按钮 */
.oc-expand-btn {
  display: flex; align-items: center; gap: 6px; justify-content: center;
  padding: 5px 14px; margin-top: 12px;
  background: #fff; border: 1px solid #e0e0e0; border-radius: 20px;
  font-size: 12px; color: rgba(0,0,0,0.5); cursor: pointer;
  transition: all 0.15s; user-select: none;
  position: relative;
}
/* 人员卡片到展开按钮的竖线 */
.oc-expand-btn::before {
  content: ''; position: absolute; top: -12px; left: 50%;
  width: 1.5px; height: 12px; background: #276ff5; border-radius: 1px; transform: translateX(-50%);
}
.oc-expand-btn:hover { border-color: #276ff5; color: #276ff5; background: #f0f5ff; }
.oc-expand-btn.expanded { background: #f0f5ff; border-color: #276ff5; color: #276ff5; }
.oc-expand-icon { font-size: 10px; }

/* 部门分组 */
.oc-dept-group {
  display: flex; flex-direction: column; align-items: center;
  margin-top: 0; position: relative;
  padding-top: 32px;
}
/* 部门顶部竖线：从横线连到部门标签 */
.oc-dept-group::before {
  content: ''; position: absolute; top: 0; left: 50%;
  width: 1.5px; height: 32px; background: #276ff5; border-radius: 1px; transform: translateX(-50%);
}
.oc-dept-label {
  padding: 6px 20px; background: #f0f2f5; border-radius: 20px;
  font-size: 13px; font-weight: 600; color: rgba(0,0,0,0.6);
  margin-bottom: 0; white-space: nowrap; position: relative;
}
.oc-dept-members {
  display: flex; flex-direction: column; align-items: center; gap: 0;
  position: relative; padding-top: 24px;
}
/* 部门标签到成员的竖线 */
.oc-dept-members::before {
  content: ''; position: absolute; top: 0; left: 50%;
  width: 1.5px; height: 24px; background: #276ff5; border-radius: 1px; transform: translateX(-50%);
}
/* 部门内多个成员之间的连接线 */
.oc-dept-members > .oc-person-block + .oc-person-block {
  padding-top: 20px; position: relative;
}
.oc-dept-members > .oc-person-block + .oc-person-block::before {
  content: ''; position: absolute; top: 0; left: 50%;
  width: 1.5px; height: 20px; background: #276ff5; border-radius: 1px; transform: translateX(-50%);
}

/* 展开按钮到下属的连接线 */
.oc-sub-connector {
  width: 1.5px; height: 24px; background: #276ff5; border-radius: 1px; margin: 14px auto 0;
}

/* 下属展开区域 — 竖排排列，左侧连续线 */
.oc-sub-members {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0;
  margin-top: 0; padding: 0 0 0 0;
  background: transparent; border: none; border-radius: 0;
  max-width: none;
  position: relative;
  margin-left: 0;
}
.oc-sub-members .oc-person-block {
  margin: 0; position: relative; padding-top: 16px; padding-left: 20px;
}
/* 每个下属左侧横线连接 — 闭合到卡片 */
.oc-sub-members .oc-person-block::before {
  content: ''; position: absolute; top: 50%; left: 0;
  width: 20px; height: 1.5px; background: #276ff5; border-radius: 1px;
}
/* 竖线贯穿所有子节点 */
.oc-sub-members .oc-person-block::after {
  content: ''; position: absolute; top: 0; left: 0;
  width: 1.5px; height: 100%; background: #276ff5; border-radius: 1px;
}
/* 第一个子节点：竖线从中间开始 */
.oc-sub-members .oc-person-block:first-child::after {
  top: 50%; height: 50%;
}
/* 最后一个子节点：竖线到中间截止 */
.oc-sub-members .oc-person-block:last-child::after {
  height: 50%;
}
/* 只有一个子节点时不需要竖线延伸 */
.oc-sub-members .oc-person-block:first-child:last-child::after {
  display: none;
}
.oc-sub-members .oc-person { min-width: 180px; }

/* 让部门横排排列 */
.orgchart-canvas {
  display: flex; flex-direction: column; align-items: center;
}


/* ERP jump link at sidebar bottom */
.biz-erp-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  margin-top: 6px;
  margin-bottom: 12px;
  border-radius: 10px;
  font-size: 13px;
  color: #276ff5;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s;
  font-weight: 500;
}
.biz-erp-link:hover {
  background: rgba(39,111,245,0.06);
  color: #1a56cc;
}
.biz-erp-link svg {
  flex-shrink: 0;
  stroke: currentColor;
}

/* Config row with more button */
.biz-config-row {
  display: flex;
  align-items: center;
  position: relative;
}
.biz-config-more-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
}
.biz-config-more-btn:hover {
  background: #f0f0f0;
}
.biz-config-more-popup {
  position: absolute;
  bottom: calc(100% + 6px);
  right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04);
  padding: 6px;
  min-width: 160px;
  z-index: 100;
}
.biz-config-more-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  color: #333;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.biz-config-more-item:hover {
  background: rgba(39,111,245,0.06);
  color: #276ff5;
}
.biz-config-more-item svg {
  flex-shrink: 0;
}

/* =========================================
   Apps Popup (应用弹窗)
   ========================================= */
.apps-popup {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14), 0 0 0 1px rgba(0,0,0,0.04);
  padding: 8px;
  z-index: 200;
  animation: appsPopupIn 0.18s ease;
}
@keyframes appsPopupIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.apps-popup-title {
  font-size: 12px;
  font-weight: 600;
  color: rgba(0,0,0,0.35);
  padding: 6px 10px 8px;
  letter-spacing: 0.5px;
}
.apps-popup-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
}
.apps-popup-item:hover {
  background: #f5f7fa;
}
.apps-popup-item:hover .apps-popup-arrow {
  stroke: #276ff5;
}
.apps-popup-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.apps-popup-info {
  flex: 1;
  min-width: 0;
}
.apps-popup-name {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.3;
}
.apps-popup-desc {
  font-size: 11px;
  color: rgba(0,0,0,0.4);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.apps-popup-arrow {
  flex-shrink: 0;
  transition: stroke 0.15s;
}


/* CEO children (departments) wrapper */
.oc-children-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
  justify-content: center;
  margin-top: 0;
  width: 100%;
  position: relative;
  padding-top: 32px;
}
/* CEO到部门的竖线 */
.oc-children-wrap::before {
  content: ''; position: absolute; top: 0; left: 50%;
  width: 1.5px; height: 32px; background: #276ff5; border-radius: 1px; transform: translateX(-50%);
}
/* 横线由JS渲染的 .oc-hline 元素实现 */
.oc-hline {
  position: absolute; top: 32px; height: 1.5px; background: #276ff5; border-radius: 1px;
}


/* =========================================
   KNOWLEDGE SPACE PAGE (知识空间/知识库)
   ========================================= */
/* 头部 */
.kb-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; flex-shrink: 0;
}
.kb-title { font-size: 20px; font-weight: 600; color: rgba(0,0,0,0.88); margin: 0; }
.kb-header-right { display: flex; align-items: center; gap: 12px; }
.kb-ext-link {
  display: flex; align-items: center; gap: 4px;
  font-size: 13px; color: rgba(0,0,0,0.5); cursor: pointer;
  padding: 6px 12px; border-radius: 8px; transition: all 0.15s;
  border: 1px solid #eee; background: #fff;
}
.kb-ext-link:hover { color: #276ff5; border-color: #276ff5; background: #f5f8ff; }
.kb-ext-link svg { flex-shrink: 0; }
.kb-new-btn {
  padding: 8px 18px; font-size: 13px; font-weight: 600; border: none;
  border-radius: 8px; background: #276ff5; color: #fff; cursor: pointer;
  transition: background 0.15s;
}
.kb-new-btn:hover { background: #1d5ed9; }

/* Tab 切换 */
.kb-tabs {
  display: flex; gap: 0; border-bottom: 1px solid #eee; margin-bottom: 24px; flex-shrink: 0;
}
.kb-tab {
  padding: 10px 20px; font-size: 15px; font-weight: 500;
  color: rgba(0,0,0,0.45); cursor: pointer; position: relative;
  transition: color 0.15s; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.kb-tab:hover { color: rgba(0,0,0,0.7); }
.kb-tab.active { color: #276ff5; border-bottom-color: #276ff5; font-weight: 600; }

/* 知识库卡片网格 */
.kb-grid {
  display: flex; flex-direction: column; gap: 10px;
  overflow-y: auto; flex: 1;
}
.kb-card {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border: 1px solid #f0f0f0; border-radius: 12px;
  padding: 16px 20px; cursor: pointer; transition: all 0.18s;
}
.kb-card:hover { border-color: #e0e0e0; box-shadow: 0 2px 12px rgba(0,0,0,0.05); }
.kb-card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.kb-card-body { flex: 1; min-width: 0; }
.kb-card-name { font-size: 15px; font-weight: 600; color: rgba(0,0,0,0.82); margin-bottom: 4px; }
.kb-card-desc {
  font-size: 13px; color: rgba(0,0,0,0.45); line-height: 1.5;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.kb-card-meta {
  display: flex; align-items: center; gap: 14px; margin-top: 6px;
}
.kb-card-stat {
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; color: rgba(0,0,0,0.35);
}
.kb-card-date { font-size: 12px; color: rgba(0,0,0,0.25); }
.kb-card-owner {
  font-size: 11px; padding: 1px 8px; border-radius: 6px;
  background: #f0f5ff; color: #276ff5;
}
.kb-card-actions { flex-shrink: 0; }
.kb-card-action-btn {
  width: 32px; height: 32px; border: none; background: transparent;
  border-radius: 6px; cursor: pointer; color: rgba(0,0,0,0.3);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.kb-card-action-btn:hover { background: #f5f5f5; color: rgba(0,0,0,0.6); }

/* 空状态 */
.kb-empty {
  text-align: center; padding: 80px 0; font-size: 14px;
  color: rgba(0,0,0,0.25); grid-column: 1/-1;
}

/* 新建弹窗 */
.kb-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.3);
  display: flex; align-items: center; justify-content: center; z-index: 1000;
}
.kb-modal {
  background: #fff; border-radius: 16px; padding: 28px 32px;
  width: 420px; max-width: 90vw; position: relative;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.kb-modal-close {
  position: absolute; top: 16px; right: 20px; font-size: 22px;
  color: rgba(0,0,0,0.3); cursor: pointer; line-height: 1;
}
.kb-modal-close:hover { color: rgba(0,0,0,0.6); }
.kb-modal-title { font-size: 18px; font-weight: 600; margin: 0 0 20px; color: rgba(0,0,0,0.82); }
.kb-form-group { margin-bottom: 16px; }
.kb-label { display: block; font-size: 13px; font-weight: 500; color: rgba(0,0,0,0.6); margin-bottom: 6px; }
.kb-input, .kb-textarea {
  width: 100%; padding: 10px 14px; border: 1px solid #e0e0e0; border-radius: 8px;
  font-size: 14px; color: rgba(0,0,0,0.82); outline: none; transition: border-color 0.15s;
  box-sizing: border-box;
}
.kb-input:focus, .kb-textarea:focus { border-color: #276ff5; }
.kb-textarea { resize: vertical; font-family: inherit; }
.kb-type-options { display: flex; gap: 20px; }
.kb-type-opt {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; color: rgba(0,0,0,0.65); cursor: pointer;
}
.kb-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.kb-modal-cancel {
  padding: 8px 20px; border: 1px solid #e0e0e0; border-radius: 8px;
  background: #fff; color: rgba(0,0,0,0.6); font-size: 14px; cursor: pointer;
}
.kb-modal-cancel:hover { border-color: #c0c0c0; }
.kb-modal-confirm {
  padding: 8px 20px; border: none; border-radius: 8px;
  background: #276ff5; color: #fff; font-size: 14px; font-weight: 500; cursor: pointer;
}
.kb-modal-confirm:hover { background: #1d5ed9; }

/* ===== 技能上传历史 (Skill Upload History) ===== */

/* 上传历史入口按钮 */
.skill-history-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 20px; border: 1px solid #e0e0e0; border-radius: 10px;
  background: #fff; font-size: 14px; color: #333;
  cursor: pointer; transition: all 0.15s; font-weight: 500;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.skill-history-btn:hover { border-color: #276ff5; color: #276ff5; background: #f5f8ff; }
.skill-history-btn.active {
  background: #276ff5; color: #fff; border-color: #276ff5;
}
.skill-history-btn svg { width: 14px; height: 14px; }

/* 上传历史面板 */
.suh-panel { padding: 0 4px; }

.suh-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.suh-header-left { display: flex; align-items: center; gap: 8px; }
.suh-back-btn {
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid #e8e8e8;
  background: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.15s; color: rgba(0,0,0,0.5);
}
.suh-back-btn:hover { background: #f5f5f5; border-color: #d0d0d0; }
.suh-title { font-size: 16px; font-weight: 600; color: #1a1a1a; margin: 0; }

/* 筛选标签栏 */
.suh-filter-bar {
  display: flex; gap: 6px; margin-bottom: 18px;
  padding: 3px; background: rgba(0,0,0,0.03); border-radius: 12px;
  width: fit-content;
}
.suh-filter-tag {
  padding: 6px 16px; font-size: 13px; border-radius: 9px;
  background: transparent; color: rgba(0,0,0,0.45);
  cursor: pointer; transition: all 0.15s; white-space: nowrap;
  font-weight: 500; border: none;
}
.suh-filter-tag:hover { color: rgba(0,0,0,0.7); }
.suh-filter-tag.active {
  background: #fff; color: #333;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* 列表容器 */
.suh-list {
  display: flex; flex-direction: column; gap: 0;
}

/* 列表项 */
.suh-item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid #f0f0f0;
  background: transparent; transition: all 0.15s;
}
.suh-item:last-child { border-bottom: none; }
.suh-item:hover { background: rgba(0,0,0,0.015); }
.suh-item-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
  background: #f5f7fa; border: 1px solid #eee;
}
.suh-item-body { flex: 1; min-width: 0; }
.suh-item-name {
  font-size: 14px; font-weight: 600; color: #1a1a1a; margin-bottom: 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.suh-item-meta {
  font-size: 12px; color: rgba(0,0,0,0.35); display: flex; align-items: center; gap: 6px;
}
.suh-item-meta-sep {
  width: 3px; height: 3px; border-radius: 50%; background: rgba(0,0,0,0.15);
  flex-shrink: 0;
}
.suh-item-filename {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px;
}

/* 审核状态标签 */
.suh-status-badge {
  display: inline-flex; align-items: center; padding: 4px 10px; font-size: 12px; font-weight: 500;
  border-radius: 6px; white-space: nowrap; flex-shrink: 0;
  letter-spacing: 0.01em;
}
.suh-status-pending { background: #fffbeb; color: #b45309; }
.suh-status-approved { background: #f0fdf4; color: #15803d; }
.suh-status-rejected { background: #fef2f2; color: #dc2626; }

/* 审核不通过备注 */
.suh-remark {
  margin: 0 0 0 54px; padding: 10px 14px;
  background: #fafafa; border-radius: 10px;
  font-size: 12px; color: rgba(0,0,0,0.5); line-height: 1.6;
  border: 1px solid #f0f0f0;
  position: relative;
  margin-top: -4px; margin-bottom: 8px;
}
.suh-remark::before {
  content: '⚠';
  margin-right: 6px;
}

/* 空状态 */
.suh-empty {
  text-align: center; padding: 60px 0; color: rgba(0,0,0,0.3); font-size: 14px;
}
.suh-empty-icon { font-size: 32px; margin-bottom: 12px; opacity: 0.5; }
.suh-empty-hint { font-size: 12px; color: rgba(0,0,0,0.2); margin-top: 6px; }

/* ===== 技能详情弹窗 (Skill Detail Modal) ===== */
.skd-header {
  display: flex; align-items: center; gap: 16px;
  padding-bottom: 20px; border-bottom: 1px solid #f0f0f0; margin-bottom: 24px;
}
.skd-header-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: #f5f7fa; border: 1px solid #eee;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0;
}
.skd-header-info { flex: 1; min-width: 0; }
.skd-header-name { font-size: 20px; font-weight: 700; color: #1a1a1a; margin-bottom: 6px; }
.skd-header-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.skd-cat-tag {
  padding: 3px 10px; font-size: 12px; border-radius: 6px;
  background: #f5f5f5; color: rgba(0,0,0,0.5); font-weight: 500;
}
.skd-type-tag {
  padding: 3px 10px; font-size: 12px; border-radius: 6px;
  background: #eef2ff; color: #276ff5; font-weight: 500;
}
.skd-installs { font-size: 12px; color: rgba(0,0,0,0.35); }

.skd-section { margin-bottom: 28px; }
.skd-section:last-child { margin-bottom: 0; }
.skd-section-title {
  font-size: 15px; font-weight: 600; color: #1a1a1a;
  margin: 0 0 12px; padding: 0;
}
.skd-section-text {
  font-size: 14px; color: rgba(0,0,0,0.6); line-height: 1.8; margin: 0;
}

/* 核心特性 */
.skd-features {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px;
}
.skd-feature-item {
  font-size: 13px; color: rgba(0,0,0,0.6); display: flex; align-items: center; gap: 8px;
  line-height: 1.8;
}
.skd-feature-dot { color: #22c55e; font-size: 8px; flex-shrink: 0; }

/* 典型场景 */
.skd-scenarios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.skd-scenario-card {
  padding: 18px; border: 1px solid #f0f0f0; border-radius: 12px;
  background: #fff; transition: all 0.15s;
}
.skd-scenario-card:hover { border-color: #e0e0e0; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.skd-scenario-icon { font-size: 22px; margin-bottom: 10px; }
.skd-scenario-title { font-size: 14px; font-weight: 600; color: #1a1a1a; margin-bottom: 6px; }
.skd-scenario-desc { font-size: 12px; color: rgba(0,0,0,0.45); line-height: 1.6; }

/* 使用条件与边界 */
.skd-conditions {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  padding: 18px 20px; border: 1px solid #f0f0f0; border-radius: 12px;
}
.skd-cond-label {
  font-size: 13px; font-weight: 600; margin-bottom: 10px;
}
.skd-cond-ok { color: #15803d; }
.skd-cond-warn { color: #b45309; }
.skd-cond-item { font-size: 13px; color: rgba(0,0,0,0.5); line-height: 2; }

/* 试试这些问题 */
.skd-prompts { display: flex; flex-direction: column; gap: 10px; }
.skd-prompt-item {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 18px; border: 1px solid #f0f0f0; border-radius: 12px;
  background: #fff; transition: all 0.15s; cursor: pointer;
}
.skd-prompt-item:hover { border-color: #e0e0e0; background: #fafbfc; }
.skd-prompt-q { font-size: 14px; color: #1a1a1a; font-weight: 500; }
.skd-prompt-hint {
  font-size: 12px; color: rgba(0,0,0,0.3); text-align: right;
  max-width: 280px; flex-shrink: 0;
}

/* ===== 帮助文档弹窗内容样式 ===== */
.skh-section { margin-bottom: 28px; }
.skh-h { font-size: 15px; font-weight: 600; color: #1a1a1a; margin: 0 0 10px; }
.skh-p { font-size: 14px; color: rgba(0,0,0,0.6); line-height: 1.8; margin: 0 0 12px; }
.skh-p code { background: #f5f5f5; padding: 1px 6px; border-radius: 4px; font-size: 13px; color: #1a1a1a; }
.skh-code {
  background: #f8f9fa; border: 1px solid #eee; border-radius: 10px;
  padding: 14px 18px; margin-bottom: 12px; overflow-x: auto;
}
.skh-code pre { margin: 0; font-size: 13px; line-height: 1.7; color: #1a1a1a; font-family: 'SF Mono', 'Menlo', monospace; }
.skh-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 12px; }
.skh-table th { text-align: left; padding: 8px 12px; background: #f8f9fa; border-bottom: 1px solid #eee; color: rgba(0,0,0,0.5); font-weight: 500; }
.skh-table td { padding: 8px 12px; border-bottom: 1px solid #f5f5f5; color: rgba(0,0,0,0.7); }
.skh-table code { background: #f0f0f0; padding: 1px 6px; border-radius: 4px; font-size: 12px; }
.skh-faq { margin-bottom: 14px; }
.skh-faq-q { font-size: 13px; font-weight: 600; color: #1a1a1a; margin-bottom: 4px; }
.skh-faq-a { font-size: 13px; color: rgba(0,0,0,0.55); line-height: 1.7; padding-left: 20px; }
.skh-faq-a code { background: #f5f5f5; padding: 1px 6px; border-radius: 4px; font-size: 12px; }
.skh-list { margin: 0 0 12px; padding-left: 20px; font-size: 14px; color: rgba(0,0,0,0.6); line-height: 2; }

/* ===== 更多技能子Tab（购买技能/开发技能） ===== */
.skill-cat-divider {
  width: 1px; height: 20px; background: #e0e0e0; flex-shrink: 0; margin: 0 4px;
}
.skill-cat-chip-dev {
  border: 1px solid #276ff5; background: #f5f8ff; color: #276ff5;
}
.skill-cat-chip-dev.active {
  background: #276ff5; color: #fff; border-color: #276ff5;
}


/* =========================================
   CEO DASHBOARD (经营驾驶舱)
   ========================================= */
.ceo-dashboard {
  flex: 1;
  padding: 0;
  overflow: hidden;
  background: #f8f9fb;
  display: flex;
  flex-direction: row;
  gap: 0;
  position: absolute;
  inset: 0;
  z-index: 5;
}

/* Default: no split — right panel takes full width, left hidden */
.ceo-split-left {
  width: 380px;
  min-width: 320px;
  max-width: 420px;
  flex-shrink: 0;
  display: none;
  flex-direction: column;
  background: #fff;
  border-right: 1px solid rgba(0,0,0,0.08);
  overflow: hidden;
}

/* Split mode: show left chat panel */
.ceo-dashboard.ceo-dashboard--split .ceo-split-left {
  display: flex;
}

/* When split is active, shrink cards to 2 columns */
.ceo-dashboard.ceo-dashboard--split .ceo-section-cards {
  grid-template-columns: repeat(2, 1fr);
}
.ceo-dashboard.ceo-dashboard--split .ceo-section-cards--biz {
  grid-template-columns: 1fr 1fr;
}
.ceo-dashboard.ceo-dashboard--split .ceo-section-cards--todo {
  grid-template-columns: repeat(3, 1fr);
}
/* When split, feed doesn't need its own scroll */
.ceo-dashboard.ceo-dashboard--split .ceo-partner-feed {
  overflow-y: visible;
}
.ceo-dashboard.ceo-dashboard--split .ceo-main-layout {
  flex: none;
}

/* Chat Header */
.ceo-chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  flex-shrink: 0;
  background: #fff;
}
.ceo-chat-header-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.ceo-chat-header-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ceo-chat-header-name {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
}
.ceo-chat-header-status {
  font-size: 12px;
  color: #16a34a;
}

/* Close button in chat header */
.ceo-chat-close-btn {
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(0,0,0,0.35);
  transition: all 0.15s;
}
.ceo-chat-close-btn:hover {
  background: rgba(0,0,0,0.06);
  color: rgba(0,0,0,0.7);
}

/* Pin button in chat header */
.ceo-chat-pin-btn {
  margin-left: auto;
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(0,0,0,0.35);
  transition: all 0.15s;
}
.ceo-chat-pin-btn:hover {
  background: rgba(0,0,0,0.06);
  color: rgba(0,0,0,0.7);
}
.ceo-chat-pin-btn.pinned {
  color: #2970ff;
  background: rgba(41,112,255,0.08);
}
.ceo-chat-pin-btn.pinned:hover {
  background: rgba(41,112,255,0.14);
}

/* Chat Messages Area */
.ceo-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ceo-chat-messages::-webkit-scrollbar { width: 4px; }
.ceo-chat-messages::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.08); border-radius: 4px; }

/* Chat Message Rows */
.ceo-chat-msg {
  display: flex;
  gap: 10px;
  max-width: 92%;
}
.ceo-chat-msg--ai {
  align-self: flex-start;
}
.ceo-chat-msg--user {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.ceo-chat-msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  margin-top: 2px;
}
.ceo-chat-msg-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ceo-chat-msg-name {
  font-size: 12px;
  color: rgba(0,0,0,0.45);
  padding-left: 2px;
}
.ceo-chat-msg--user .ceo-chat-msg-name {
  text-align: right;
  padding-right: 2px;
  padding-left: 0;
}
.ceo-chat-msg-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(0,0,0,0.8);
  word-break: break-word;
}
.ceo-chat-msg--ai .ceo-chat-msg-bubble {
  background: #f3f4f6;
  border-top-left-radius: 4px;
}
.ceo-chat-msg--user .ceo-chat-msg-bubble {
  background: #2970ff;
  color: #fff;
  border-top-right-radius: 4px;
}
.ceo-chat-msg-time {
  font-size: 11px;
  color: rgba(0,0,0,0.3);
  padding-left: 2px;
}
.ceo-chat-msg--user .ceo-chat-msg-time {
  text-align: right;
  padding-right: 2px;
  padding-left: 0;
}

/* Chat message with card preview */
.ceo-chat-msg-card {
  margin-top: 8px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  cursor: pointer;
  transition: box-shadow 0.15s;
}
.ceo-chat-msg-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.ceo-chat-msg-card-title {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
}
.ceo-chat-msg-card-desc {
  font-size: 12px;
  color: rgba(0,0,0,0.5);
  line-height: 1.5;
}
.ceo-chat-msg-card-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 12px;
  color: #2970ff;
  font-weight: 500;
}

/* Chat Input Area */
.ceo-chat-input-area {
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(0,0,0,0.06);
  flex-shrink: 0;
  background: #fff;
}
.ceo-chat-input-wrap {
  background: #f7f8fa;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 20px;
  padding: 10px 14px 8px;
  transition: border-color 0.2s;
}
.ceo-chat-input-wrap:focus-within {
  border-color: #2970ff;
  background: #fff;
}
.ceo-chat-input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 14px;
  color: rgba(0,0,0,0.82);
  resize: none;
  min-height: 22px;
  max-height: 100px;
  line-height: 1.5;
  background: transparent;
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
.ceo-chat-input::placeholder {
  color: rgba(0,0,0,0.3);
}
.ceo-chat-input-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}
.ceo-chat-input-tools {
  display: flex;
  gap: 4px;
}
.ceo-chat-tool-btn {
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(0,0,0,0.35);
  transition: all 0.15s;
}
.ceo-chat-tool-btn:hover {
  background: rgba(0,0,0,0.05);
  color: rgba(0,0,0,0.6);
}
.ceo-chat-send-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: #2970ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: all 0.15s;
}
.ceo-chat-send-btn:hover {
  background: #1d5ed9;
}

/* ===== Split-screen: Right Content Panel ===== */
.ceo-split-right {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px 20px;
  background: #f8f9fb;
  gap: 20px;
}
.ceo-split-right::-webkit-scrollbar { width: 4px; }
.ceo-split-right::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.08); border-radius: 4px; }

/* Title row with avatar */
.ceo-dash-title-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.15s;
}
.ceo-dash-title-avatar:hover {
  box-shadow: 0 0 0 3px rgba(41,112,255,0.2);
  transform: scale(1.05);
}
.ceo-dash-title-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ceo-dash-title-name {
  font-size: 13px;
  font-weight: 500;
  color: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  gap: 6px;
}
.ceo-dash-title-brief {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

/* ---- New Main Layout: Centered Feed ---- */
.ceo-main-layout {
  display: flex;
  justify-content: center;
  flex: 1;
  min-height: 0;
}

/* Partner Card Feed */
.ceo-partner-feed {
  width: 100%;
  min-width: 0;
  flex: 1;
  overflow-y: auto;
  padding: 0 12px;
}
.ceo-partner-feed::-webkit-scrollbar { width: 4px; }
.ceo-partner-feed::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.08); border-radius: 4px; }

/* Grid layout — 3 cards per row */
.ceo-pf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Each partner group — horizontal layout */
.ceo-pf-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  cursor: pointer;
}

/* Part 1: Header */
.ceo-pf-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 2px 8px;
}
.ceo-pf-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.ceo-pf-name {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}
.ceo-pf-time {
  font-size: 11px;
  color: rgba(0,0,0,0.25);
  margin-left: auto;
}

/* Part 2: Bubble — full width summary text */
.ceo-pf-bubble {
  padding: 0 2px 10px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(0,0,0,0.58);
}
.ceo-pf-bubble strong { color: rgba(0,0,0,0.82); }

/* Part 3: Visual — full width card below */
.ceo-pf-visual {
  padding: 12px 16px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #eff1f4;
  transition: box-shadow 0.2s;
}
.ceo-pf-card:hover .ceo-pf-visual {
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.ceo-pf-vis-title {
  font-size: 11px;
  font-weight: 600;
  color: rgba(0,0,0,0.35);
  margin-bottom: 8px;
}

/* Entrance */
@keyframes pfCardIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.ceo-pf-grid .ceo-pf-card {
  animation: pfCardIn 0.35s ease both;
}
.ceo-pf-grid .ceo-pf-card:nth-child(2) { animation-delay: 0.05s; }
.ceo-pf-grid .ceo-pf-card:nth-child(3) { animation-delay: 0.1s; }
.ceo-pf-grid .ceo-pf-card:nth-child(4) { animation-delay: 0.15s; }
.ceo-pf-grid .ceo-pf-card:nth-child(5) { animation-delay: 0.2s; }
.ceo-pf-grid .ceo-pf-card:nth-child(6) { animation-delay: 0.25s; }

/* --- Card type: standard --- */
.ceo-pf-card {
  margin-bottom: 0;
  break-inside: avoid;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

/* Part 1: Header — avatar + name + time */
.ceo-pf-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px 8px;
}
.ceo-pf-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.ceo-pf-name {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}
.ceo-pf-time {
  font-size: 11px;
  color: rgba(0,0,0,0.28);
  margin-left: auto;
}

/* Part 2: Bubble — message content */
.ceo-pf-bubble {
  background: #f4f5f7;
  border-radius: 4px 14px 14px 14px;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(0,0,0,0.68);
  transition: box-shadow 0.2s;
}
.ceo-pf-card:hover .ceo-pf-bubble {
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.ceo-pf-bubble strong {
  color: rgba(0,0,0,0.88);
}

/* Part 3: Visual attachment — separate block below bubble */
.ceo-pf-visual {
  margin-top: 6px;
  margin-left: 12px;
  padding: 12px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #eef0f3;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s, transform 0.15s;
}
.ceo-pf-card:hover .ceo-pf-visual {
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  transform: translateY(-1px);
}

/* --- Visual sub-components --- */

/* --- Metrics visual --- */
.ceo-pf-vis-metrics {
  display: flex;
  gap: 16px;
}
.ceo-pf-metric {
  flex: 1;
  text-align: center;
  padding: 6px 0;
}
.ceo-pf-metric-val {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
}
.ceo-pf-metric-label {
  font-size: 11px;
  color: rgba(0,0,0,0.38);
  margin-top: 2px;
}

/* --- Key-value report visual — vertical cards --- */
.ceo-pf-vis-kv {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ceo-pf-kv {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
}
.ceo-pf-kv:last-child { border-bottom: none; }
.ceo-pf-kv-k {
  font-size: 12px;
  color: rgba(0,0,0,0.4);
  margin-right: 8px;
}
.ceo-pf-kv-v {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
}
.ceo-pf-kv-v em {
  font-style: normal;
  font-size: 11px;
  font-weight: 500;
}
.ceo-pf-kv-v em.up { color: #16a34a; }
.ceo-pf-kv-v em.down { color: #dc2626; }

/* --- Risk alert visual — vertical cards --- */
.ceo-pf-vis-risk-items {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ceo-pf-risk-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  font-size: 12px;
  color: rgba(0,0,0,0.6);
  border-bottom: 1px solid #f0f0f0;
}
.ceo-pf-risk-item:last-child { border-bottom: none; }
.ceo-pf-risk-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ceo-pf-risk-item.critical .ceo-pf-risk-dot { background: #dc2626; }
.ceo-pf-risk-item.warning .ceo-pf-risk-dot { background: #f59e0b; }
.ceo-pf-risk-badge {
  margin-left: auto;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 500;
}
.ceo-pf-risk-item.critical .ceo-pf-risk-badge { background: #fef2f2; color: #dc2626; }
.ceo-pf-risk-item.warning .ceo-pf-risk-badge { background: #fff7e6; color: #d97706; }

/* Entrance animation */
@keyframes pfCardIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.ceo-pf-masonry .ceo-pf-card {
  animation: pfCardIn 0.4s ease both;
}
.ceo-pf-masonry .ceo-pf-card:nth-child(1) { animation-delay: 0s; }
.ceo-pf-masonry .ceo-pf-card:nth-child(2) { animation-delay: 0.05s; }
.ceo-pf-masonry .ceo-pf-card:nth-child(3) { animation-delay: 0.1s; }
.ceo-pf-masonry .ceo-pf-card:nth-child(4) { animation-delay: 0.15s; }
.ceo-pf-masonry .ceo-pf-card:nth-child(5) { animation-delay: 0.2s; }
.ceo-pf-masonry .ceo-pf-card:nth-child(6) { animation-delay: 0.25s; }
.ceo-pf-masonry .ceo-pf-card:nth-child(7) { animation-delay: 0.3s; }
.ceo-pf-masonry .ceo-pf-card:nth-child(8) { animation-delay: 0.35s; }
.ceo-pf-masonry .ceo-pf-card:nth-child(9) { animation-delay: 0.4s; }
.ceo-pf-masonry .ceo-pf-card:nth-child(10) { animation-delay: 0.45s; }

/* ================================================
   Section-based Layout (3 sections)
   ================================================ */
.ceo-section {
  margin-bottom: 32px;
}
.ceo-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 0 16px;
  cursor: pointer;
}
.ceo-section-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.ceo-section-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f0f4ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.ceo-section-info { flex: 1; min-width: 0; }
.ceo-section-name {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ceo-section-chat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  color: #276ff5;
  cursor: pointer;
  transition: background 0.15s ease;
}
.ceo-section-chat-icon:hover {
  background: rgba(39,111,245,0.1);
}
.ceo-section-desc {
  font-size: 13px;
  color: rgba(0,0,0,0.45);
  margin-top: 2px;
  line-height: 1.5;
}
.ceo-section-more {
  font-size: 12px;
  color: rgba(0,0,0,0.32);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s;
  user-select: none;
}
.ceo-section-more:hover {
  color: rgba(0,0,0,0.56);
  background: rgba(0,0,0,0.03);
}
.ceo-section-more svg {
  flex-shrink: 0;
}

/* --- Section Timestamp Dropdown --- */
.ceo-ts-wrap {
  position: relative; flex-shrink: 0; margin-left: auto;
}
.ceo-ts-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border: 1px solid rgba(39,111,245,0.25);
  border-radius: 8px; background: #fff; cursor: pointer;
  font-size: 12px; color: #276ff5; transition: all 0.2s ease;
  white-space: nowrap;
}
.ceo-ts-btn:hover { border-color: #276ff5; background: #f0f5ff; }
.ceo-ts-wrap.open .ceo-ts-btn { border-color: #276ff5; color: #276ff5; background: #f0f5ff; }
.ceo-ts-btn svg { flex-shrink: 0; }
.ceo-ts-arrow { transition: transform 0.2s ease; }
.ceo-ts-wrap.open .ceo-ts-arrow { transform: rotate(180deg); }
.ceo-ts-label { font-weight: 500; }

.ceo-ts-dropdown {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 120;
  min-width: 220px; background: #fff; border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 1px 4px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.06);
  padding: 6px; opacity: 0; transform: translateY(-6px);
  pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease;
}
.ceo-ts-wrap.open .ceo-ts-dropdown {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}
.ceo-ts-dd-title {
  font-size: 11px; font-weight: 600; color: rgba(0,0,0,0.35);
  padding: 6px 10px 4px; text-transform: uppercase; letter-spacing: 0.5px;
}
.ceo-ts-dd-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 8px; cursor: pointer;
  font-size: 13px; color: rgba(0,0,0,0.7); transition: background 0.15s ease;
}
.ceo-ts-dd-item:hover { background: #f5f7fa; }
.ceo-ts-dd-item.active { color: #276ff5; font-weight: 600; background: #f0f5ff; }
.ceo-ts-dd-item-label { flex: 1; }
.ceo-ts-dd-item-tag {
  font-size: 10px; font-weight: 600; color: #04B545;
  background: #EDFFF4; padding: 1px 6px; border-radius: 4px;
}

/* --- Peek / "more" half-card at end of grid --- */
.ceo-sec-card--peek {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fafbfc;
  border: 1px dashed #e0e4ea;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 120px;
  padding: 20px;
}
.ceo-sec-card--peek:hover {
  background: #f0f4ff;
  border-color: #c0d0f0;
}
.ceo-sec-peek-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.ceo-sec-card--peek:hover .ceo-sec-peek-icon {
  background: rgba(41,112,255,0.08);
}
.ceo-sec-peek-icon svg {
  color: rgba(0,0,0,0.28);
  transition: color 0.2s;
}
.ceo-sec-card--peek:hover .ceo-sec-peek-icon svg {
  color: #2970FF;
}
.ceo-sec-peek-text {
  font-size: 12px;
  color: rgba(0,0,0,0.36);
  font-weight: 500;
  transition: color 0.2s;
}
.ceo-sec-card--peek:hover .ceo-sec-peek-text {
  color: #2970FF;
}
.ceo-sec-peek-count {
  font-size: 11px;
  color: rgba(0,0,0,0.2);
}

/* --- Full list overlay --- */
.ceo-fulllist-overlay {
  position: fixed;
  inset: 0;
  z-index: 99990;
  background: rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: ceoFulllistFadeIn 0.2s ease;
}
@keyframes ceoFulllistFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.ceo-fulllist-panel {
  background: #fff;
  border-radius: 20px;
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  animation: ceoFulllistSlideUp 0.3s cubic-bezier(0.23,1,0.32,1);
  overflow: hidden;
}
@keyframes ceoFulllistSlideUp {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.ceo-fulllist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  flex-shrink: 0;
}
.ceo-fulllist-title {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
}
.ceo-fulllist-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0,0,0,0.36);
  transition: all 0.15s;
}
.ceo-fulllist-close:hover {
  background: rgba(0,0,0,0.04);
  color: rgba(0,0,0,0.64);
}
.ceo-fulllist-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px 24px;
}
.ceo-fulllist-body::-webkit-scrollbar { width: 4px; }
.ceo-fulllist-body::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.08); border-radius: 4px; }
.ceo-fulllist-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

/* --- Wide panel variant for insight full list --- */
.ceo-fulllist-panel--wide {
  max-width: 960px;
}
.ceo-fulllist-grid--insight {
  grid-template-columns: repeat(3, 1fr);
}

/* --- Insight stats bar --- */
.ceo-insight-stats {
  display: flex;
  gap: 0;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  flex-shrink: 0;
}
.ceo-insight-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  position: relative;
}
.ceo-insight-stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: rgba(0,0,0,0.06);
}
.ceo-insight-stat-num {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
}
.ceo-insight-stat-num.ceo-insight-stat-high {
  color: #ef4444;
}
.ceo-insight-stat-label {
  font-size: 11px;
  color: rgba(0,0,0,0.36);
}

/* --- Insight filter tags --- */
.ceo-insight-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  flex-shrink: 0;
}
.ceo-insight-filter {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  color: rgba(0,0,0,0.5);
  background: rgba(0,0,0,0.03);
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid transparent;
}
.ceo-insight-filter:hover {
  background: rgba(41,112,255,0.06);
  color: #2970FF;
}
.ceo-insight-filter.active {
  background: #EEF5FF;
  color: #2970FF;
  border-color: rgba(41,112,255,0.15);
  font-weight: 500;
}

/* --- Insight full card (richer) --- */
.ceo-insight-full-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.2s, border-color 0.2s;
  cursor: default;
}
.ceo-insight-full-card:hover {
  border-color: rgba(41,112,255,0.15);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.ceo-insight-full-top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ceo-insight-full-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}
.ceo-insight-full-impact {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
}
.ceo-insight-full-impact.high {
  background: #FEF2F2;
  color: #ef4444;
}
.ceo-insight-full-impact.mid {
  background: #FFF7E6;
  color: #d97706;
}
.ceo-insight-full-impact.low {
  background: #F0FDF4;
  color: #16a34a;
}
.ceo-insight-full-date {
  font-size: 11px;
  color: rgba(0,0,0,0.3);
  margin-left: auto;
  flex-shrink: 0;
}
.ceo-insight-full-source {
  font-size: 11px;
  color: rgba(0,0,0,0.28);
  margin-top: 2px;
}

/* --- Customer full card (rich) --- */
.ceo-cust-full-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.ceo-cust-full-card:hover {
  border-color: rgba(41,112,255,0.15);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.ceo-cust-full-header {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ceo-cust-full-name {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}
.ceo-cust-full-level {
  font-size: 11px;
  color: rgba(0,0,0,0.36);
  margin-left: auto;
}
.ceo-cust-full-health {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 10px;
  border-radius: 10px;
  flex-shrink: 0;
}
.ceo-cust-trend-up { color: #16a34a; }
.ceo-cust-trend-down { color: #ef4444; }
.ceo-cust-trend-stable { color: #d97706; }
.ceo-cust-full-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ceo-cust-full-revenue {
  font-size: 12px;
  color: rgba(0,0,0,0.45);
}
.ceo-cust-full-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  padding: 8px 0;
  border-top: 1px solid rgba(0,0,0,0.04);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.ceo-cust-full-info-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ceo-cust-full-info-label {
  font-size: 11px;
  color: rgba(0,0,0,0.3);
  flex-shrink: 0;
  min-width: 42px;
}
.ceo-cust-full-info-val {
  font-size: 12px;
  color: rgba(0,0,0,0.7);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ceo-cust-full-metrics {
  display: flex;
  gap: 8px;
}
.ceo-cust-full-metric {
  flex: 1;
  background: #f8f9fb;
  border-radius: 8px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.ceo-cust-full-metric-label {
  font-size: 10px;
  color: rgba(0,0,0,0.3);
}
.ceo-cust-full-metric-val {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
}
.ceo-cust-full-update {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 12px;
  color: rgba(0,0,0,0.45);
  line-height: 1.5;
}
.ceo-cust-full-update-text {
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* 3-column card grid */
.ceo-section-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

/* 经营分析专家: 2x2 layout */
.ceo-section-cards--biz {
  grid-template-columns: 1fr 1fr;
  min-height: 180px;
}
.ceo-section-cards--biz .ceo-sec-card {
  min-height: 170px;
}

/* Combo card: KV left + Chart right */
.ceo-sec-card--combo {
  padding: 16px 20px;
  grid-column: 1 / -1;
}
.ceo-sec-combo-top {
  display: flex;
  gap: 24px;
  flex: 1;
}
.ceo-sec-combo-kv {
  flex: 1;
  min-width: 0;
}
.ceo-sec-combo-chart {
  flex: 1.2;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.ceo-sec-combo-chart .ceo-sec-chart {
  flex: 1;
}
.ceo-sec-combo-chart .ceo-sec-sparkline {
  height: 70px;
}

/* Goal card: centered ring */
.ceo-sec-card--goal {
  padding: 16px 20px;
}
.ceo-sec-card--goal .ceo-sec-ring-wrap {
  flex: 1;
  justify-content: center;
}
.ceo-sec-card--goal .ceo-sec-ring-svg {
  width: 90px;
  height: 90px;
}

/* Unified card base */
.ceo-sec-card {
  background: #fff;
  border: 1px solid #eff1f4;
  border-radius: 14px;
  padding: 16px;
  transition: box-shadow 0.2s, transform 0.15s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
}
.ceo-sec-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

/* Card chat icon — hover to show */
.ceo-card-chat-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: none;
  background: rgba(41,112,255,0.10);
  color: #2970FF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.2s, transform 0.2s, background 0.15s;
  z-index: 2;
}
.ceo-sec-card:hover .ceo-card-chat-btn {
  opacity: 0;
  transform: scale(0.85);
  pointer-events: none;
}
/* Hide time label when chat button appears on hover */
.ceo-sec-card:hover .ceo-insight-rich-time {
  opacity: 0;
  pointer-events: none;
}
.ceo-card-chat-btn:hover {
  background: rgba(41,112,255,0.16);
}
.ceo-sec-card-title {
  font-size: 12px;
  font-weight: 600;
  color: rgba(0,0,0,0.38);
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}

/* --- Card Type: KV 指标 --- */
.ceo-sec-card-kv {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ceo-sec-kv-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid #f5f5f5;
}
.ceo-sec-kv-row:last-child { border-bottom: none; }
.ceo-sec-kv-k {
  font-size: 13px;
  color: rgba(0,0,0,0.5);
}
.ceo-sec-kv-v {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}
.ceo-sec-kv-v em {
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
  margin-left: 4px;
}
.ceo-sec-kv-v em.up { color: #16a34a; }
.ceo-sec-kv-v em.down { color: #dc2626; }

/* --- Card Type: Sparkline Chart --- */
.ceo-sec-chart {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.ceo-sec-sparkline {
  width: 100%;
  height: 60px;
}
.ceo-sec-chart-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 10px;
  color: rgba(0,0,0,0.3);
}

/* --- Card Type: Ring Progress --- */
.ceo-sec-ring-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}
.ceo-sec-ring { flex-shrink: 0; }
.ceo-sec-ring-svg { width: 80px; height: 80px; }
.ceo-sec-ring-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ceo-sec-ring-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ceo-sec-ring-label {
  font-size: 12px;
  color: rgba(0,0,0,0.45);
}
.ceo-sec-ring-val {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
}

/* --- Card Type: Insight (左图右文) --- */
.ceo-sec-insight-lr {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.ceo-sec-insight-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f0f4ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.ceo-sec-insight-body { flex: 1; min-width: 0; }
.ceo-sec-insight-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  color: #2970ff;
  background: rgba(41,112,255,0.08);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}
.ceo-sec-insight-title {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
  line-height: 1.4;
}
.ceo-sec-insight-text {
  font-size: 12px;
  color: rgba(0,0,0,0.5);
  line-height: 1.6;
}

/* --- Card Type: Insight (上文下图 — bar chart) --- */
.ceo-sec-insight-tb {
  display: flex;
  flex-direction: column;
}
.ceo-sec-insight-tb .ceo-sec-insight-tag { margin-bottom: 6px; }
.ceo-sec-insight-tb .ceo-sec-insight-title { margin-bottom: 4px; }
.ceo-sec-insight-tb .ceo-sec-insight-text { margin-bottom: 12px; }
.ceo-sec-insight-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ceo-sec-bar-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ceo-sec-bar-label {
  font-size: 11px;
  color: rgba(0,0,0,0.45);
  width: 36px;
  flex-shrink: 0;
}
.ceo-sec-bar-track {
  flex: 1;
  height: 8px;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
}
.ceo-sec-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
}
.ceo-sec-bar-val {
  font-size: 11px;
  font-weight: 600;
  color: #1a1a1a;
  width: 36px;
  text-align: right;
  flex-shrink: 0;
}

/* --- Rich Insight Card --- */

/* ---- Insight Filter Tabs ---- */
.ceo-insight-filter-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 0 14px;
  flex-wrap: wrap;
}
.ceo-insight-filter-tab {
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(0,0,0,0.5);
  padding: 5px 14px;
  border-radius: 16px;
  background: rgba(0,0,0,0.03);
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
  border: 1px solid transparent;
}
.ceo-insight-filter-tab:hover {
  background: rgba(41,112,255,0.06);
  color: #2970ff;
}
.ceo-insight-filter-tab.active {
  background: #2970ff;
  color: #fff;
  border-color: #2970ff;
}

.ceo-sec-card--insight-rich {
  gap: 8px;
}
.ceo-insight-rich-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---- Simplified Insight Card Elements ---- */
.ceo-insight-tag-simple {
  font-size: 11px;
  font-weight: 600;
  color: rgba(0,0,0,0.5);
  padding: 2px 8px;
  background: rgba(0,0,0,0.04);
  border-radius: 4px;
}
.ceo-insight-time-simple {
  font-size: 11px;
  color: rgba(0,0,0,0.3);
  margin-left: auto;
}
.ceo-insight-kpi-row {
  display: flex;
  gap: 16px;
  padding: 8px 0;
}
.ceo-insight-kpi {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
}
.ceo-insight-kpi em {
  display: block;
  font-style: normal;
  font-size: 11px;
  font-weight: 400;
  color: rgba(0,0,0,0.4);
  margin-top: 2px;
}
.ceo-insight-decision {
  font-size: 12.5px;
  color: rgba(0,0,0,0.6);
  line-height: 1.6;
  padding: 8px 12px;
  background: rgba(0,0,0,0.025);
  border-radius: 8px;
  border-left: none;
}
.ceo-insight-decision-label {
  font-size: 11px;
  font-weight: 600;
  color: #1a1a1a;
  margin-right: 6px;
}
.ceo-insight-exec {
  font-size: 12.5px;
  color: rgba(0,0,0,0.5);
  line-height: 1.6;
  padding: 8px 12px;
  background: #F7F8FA;
  border-radius: 8px;
  border-left: none;
  margin-top: 6px;
}
.ceo-insight-exec-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(0,0,0,0.55);
  margin-right: 6px;
}

/* --- Insight action types --- */
.ceo-insight-action {
  font-size: 12.5px;
  color: rgba(0,0,0,0.6);
  line-height: 1.6;
  padding: 8px 12px;
  border-radius: 8px;
  margin-top: 6px;
}
.ceo-insight-action-label {
  font-size: 11px;
  font-weight: 600;
  margin-right: 6px;
  display: inline;
}
/* Risk warning — orange text, gray bg */
.ceo-insight-action--risk {
  background: #F7F8FA;
  border-left: none;
}
.ceo-insight-action--risk .ceo-insight-action-label { color: #E8953A; }
/* Opportunity window — gray bg */
.ceo-insight-action--opportunity {
  background: #F7F8FA;
  border-left: none;
}
.ceo-insight-action--opportunity .ceo-insight-action-label { color: rgba(0,0,0,0.55); }
/* Impact / chain effect — gray bg */
.ceo-insight-action--impact {
  background: #F7F8FA;
  border-left: none;
}
.ceo-insight-action--impact .ceo-insight-action-label { color: rgba(0,0,0,0.55); }

/* Impact inline parties */
.ceo-impact-parties {
  display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap;
}
.ceo-impact-party {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 10px 4px 4px; background: #fff;
  border-radius: 20px; border: 1px solid rgba(0,0,0,0.06);
}
.ceo-impact-party img {
  width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.ceo-impact-party span {
  font-size: 12px; font-weight: 600; color: #1a1a1a; white-space: nowrap;
}
.ceo-impact-party em {
  font-size: 11px; font-style: normal; color: rgba(0,0,0,0.4); white-space: nowrap;
}
.ceo-impact-party--add {
  padding: 4px 12px; border-style: dashed; border-color: rgba(0,0,0,0.15);
  color: rgba(0,0,0,0.4); font-size: 12px; cursor: pointer;
  transition: all 0.2s ease;
}
.ceo-impact-party--add:hover {
  border-color: #276ff5; color: #276ff5; background: #f8faff;
}
.ceo-impact-notify-btn {
  margin-top: 10px; padding: 6px 20px; border: none; border-radius: 8px;
  background: #276ff5; color: #fff; font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all 0.2s ease;
}
.ceo-impact-notify-btn:hover { background: #1a5cd4; }
.ceo-impact-notify-btn.notified {
  background: #04B545; pointer-events: none;
}
/* Options / plan comparison — neutral gray */
.ceo-insight-action--options {
  background: #F7F8FA;
  border-left: none;
}
.ceo-insight-action--options .ceo-insight-action-label { color: rgba(0,0,0,0.55); }
.ceo-insight-options-list {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ceo-insight-option {
  font-size: 12px;
  color: rgba(0,0,0,0.6);
  line-height: 1.6;
  padding: 6px 10px;
  background: rgba(255,255,255,0.7);
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.04);
}
.ceo-insight-option-tag {
  font-size: 11px;
  font-weight: 600;
  color: #276ff5;
  margin-right: 6px;
  white-space: nowrap;
}

/* --- Insight row with action button --- */
.ceo-insight-row-with-action {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.ceo-insight-row-content { flex: 1; min-width: 0; }

/* Action buttons base */
.ceo-ia-btn {
  flex-shrink: 0;
  padding: 4px 12px;
  border: 1px solid rgba(39,111,245,0.25);
  border-radius: 6px;
  background: #fff;
  color: #276ff5;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  margin-top: 1px;
}
.ceo-ia-btn:hover { background: #f0f5ff; border-color: #276ff5; }

/* Adopt button */
.ceo-ia-btn--adopt.adopted {
  background: #276ff5; color: #fff; border-color: #276ff5;
  pointer-events: none;
}

/* Follow button with dropdown */
.ceo-ia-follow-wrap { position: relative; flex-shrink: 0; margin-top: 1px; }
.ceo-ia-btn--follow {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px;
  border: 1px solid rgba(39,111,245,0.25);
  border-radius: 6px;
  background: #fff;
  color: #276ff5;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.ceo-ia-btn--follow:hover { background: #f0f5ff; border-color: #276ff5; }
.ceo-ia-btn--follow svg { transition: transform 0.2s ease; }
.ceo-ia-follow-wrap.open .ceo-ia-btn--follow svg { transform: rotate(180deg); }
.ceo-ia-btn--follow.followed {
  background: #276ff5; color: #fff; border-color: #276ff5;
  pointer-events: none;
}

/* Follow dropdown */
.ceo-ia-follow-dd {
  position: absolute; top: calc(100% + 4px); right: 0; z-index: 120;
  min-width: 160px; background: #fff; border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
  border: 1px solid rgba(0,0,0,0.06);
  padding: 4px; opacity: 0; transform: translateY(-4px);
  pointer-events: none; transition: opacity 0.18s ease, transform 0.18s ease;
}
.ceo-ia-follow-wrap.open .ceo-ia-follow-dd {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}
.ceo-ia-follow-item {
  padding: 7px 10px; border-radius: 6px; font-size: 12px;
  color: rgba(0,0,0,0.7); cursor: pointer; transition: background 0.12s;
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  position: relative;
}
.ceo-ia-follow-item:hover { background: #f5f7fa; }
.ceo-ia-follow-item--has-sub { position: relative; }
.ceo-ia-follow-sub {
  position: absolute; left: calc(100% + 4px); top: -4px;
  min-width: 110px; background: #fff; border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
  border: 1px solid rgba(0,0,0,0.06);
  padding: 4px; opacity: 0; transform: translateX(-4px);
  pointer-events: none; transition: opacity 0.15s ease, transform 0.15s ease;
}
.ceo-ia-follow-sub.open {
  opacity: 1; transform: translateX(0); pointer-events: auto;
}

/* Urge button */
.ceo-ia-btn--urge.urged {
  background: #276ff5; color: #fff; border-color: #276ff5;
  pointer-events: none;
}

/* Notify button */
.ceo-ia-btn--notify.notified {
  background: #276ff5; color: #fff; border-color: #276ff5;
  pointer-events: none;
}

/* Remind button */
.ceo-ia-btn--remind.reminded {
  background: #276ff5; color: #fff; border-color: #276ff5;
  pointer-events: none;
}

/* Adopt confirm modal */
.ceo-ia-modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0); display: flex;
  align-items: center; justify-content: center;
  transition: background 0.25s ease;
}
.ceo-ia-modal-overlay.visible { background: rgba(0,0,0,0.35); }
.ceo-ia-modal {
  width: 380px; background: #fff; border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  padding: 28px; text-align: center;
  transform: scale(0.92) translateY(8px); opacity: 0;
  transition: transform 0.28s cubic-bezier(.22,1,.36,1), opacity 0.22s ease;
}
.ceo-ia-modal-overlay.visible .ceo-ia-modal {
  transform: scale(1) translateY(0); opacity: 1;
}
.ceo-ia-modal-icon { font-size: 36px; margin-bottom: 12px; }
.ceo-ia-modal-title { font-size: 16px; font-weight: 700; color: #1a1a1a; margin-bottom: 8px; }
.ceo-ia-modal-desc { font-size: 13px; color: rgba(0,0,0,0.5); line-height: 1.6; margin-bottom: 20px; }
.ceo-ia-modal-btns { display: flex; gap: 10px; justify-content: center; }
.ceo-ia-modal-btn {
  padding: 8px 24px; border-radius: 8px; font-size: 13px;
  font-weight: 600; cursor: pointer; border: none; transition: all 0.2s ease;
}
.ceo-ia-modal-btn--cancel {
  background: #f0f2f5; color: rgba(0,0,0,0.6);
}
.ceo-ia-modal-btn--cancel:hover { background: #e4e7eb; }
.ceo-ia-modal-btn--confirm {
  background: #276ff5; color: #fff;
}
.ceo-ia-modal-btn--confirm:hover { background: #1a5cd4; }

/* Notify modal */
.ceo-notify-modal {
  width: 460px; max-height: 80vh; background: #fff;
  border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  overflow: hidden; display: flex; flex-direction: column;
  transform: scale(0.92) translateY(8px); opacity: 0;
  transition: transform 0.28s cubic-bezier(.22,1,.36,1), opacity 0.22s ease;
}
.ceo-notify-modal-overlay.visible .ceo-notify-modal {
  transform: scale(1) translateY(0); opacity: 1;
}
.ceo-notify-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px 0;
}
.ceo-notify-modal-title { font-size: 16px; font-weight: 700; color: #1a1a1a; }
.ceo-notify-modal-close {
  width: 30px; height: 30px; border: none; background: rgba(0,0,0,0.06);
  border-radius: 50%; font-size: 18px; color: rgba(0,0,0,0.4);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease; line-height: 1;
}
.ceo-notify-modal-close:hover { background: rgba(0,0,0,0.12); color: rgba(0,0,0,0.7); }
.ceo-notify-modal-desc {
  font-size: 13px; color: rgba(0,0,0,0.45); padding: 8px 22px 16px; line-height: 1.5;
}
.ceo-notify-cards {
  padding: 0 22px; display: flex; flex-direction: column; gap: 8px;
  overflow-y: auto; flex: 1; max-height: 340px;
}
.ceo-notify-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 10px; border: 1.5px solid rgba(0,0,0,0.06);
  background: #fff; cursor: pointer; transition: all 0.2s ease;
}
.ceo-notify-card:hover { border-color: rgba(39,111,245,0.2); background: #fafbff; }
.ceo-notify-card.checked { border-color: #276ff5; background: #f0f5ff; }
.ceo-notify-card-check {
  width: 22px; height: 22px; border-radius: 6px;
  border: 1.5px solid rgba(0,0,0,0.15); background: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: transparent; transition: all 0.2s ease;
}
.ceo-notify-card.checked .ceo-notify-card-check {
  background: #276ff5; border-color: #276ff5; color: #fff;
}
.ceo-notify-card-avatar {
  width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.ceo-notify-card-info { flex: 1; min-width: 0; }
.ceo-notify-card-name { font-size: 14px; font-weight: 600; color: #1a1a1a; }
.ceo-notify-card-meta { font-size: 12px; color: rgba(0,0,0,0.45); margin-top: 2px; }
.ceo-notify-modal-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px; border-top: 1px solid rgba(0,0,0,0.06);
}
.ceo-notify-btn-add {
  padding: 8px 16px; border: 1px dashed rgba(0,0,0,0.15);
  border-radius: 8px; background: #fff; color: rgba(0,0,0,0.5);
  font-size: 13px; cursor: pointer; transition: all 0.2s ease;
}
.ceo-notify-btn-add:hover { border-color: #276ff5; color: #276ff5; background: #f8faff; }
.ceo-notify-btn-send {
  padding: 8px 28px; border: none; border-radius: 8px;
  background: #276ff5; color: #fff; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all 0.2s ease;
}
.ceo-notify-btn-send:hover { background: #1a5cd4; }
.ceo-insight-attribution {
  font-size: 11px;
  color: rgba(0,0,0,0.3);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(0,0,0,0.04);
}

.ceo-insight-rich-impact {
  font-size: 10px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 10px;
}
.ceo-insight-rich-impact.high {
  background: #FEF2F2;
  color: #ef4444;
}
.ceo-insight-rich-impact.mid {
  background: #FFF7E6;
  color: #d97706;
}
.ceo-insight-rich-impact.low {
  background: #F0FDF4;
  color: #16a34a;
}
.ceo-insight-rich-time {
  font-size: 10px;
  color: rgba(0,0,0,0.25);
  margin-left: auto;
  transition: opacity 0.2s;
}
.ceo-insight-rich-metrics {
  display: flex;
  gap: 6px;
  margin: 4px 0;
}
.ceo-insight-rich-metric {
  flex: 1;
  background: #f8f9fb;
  border-radius: 8px;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}
.ceo-insight-rich-metric-val {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
}
.ceo-insight-rich-metric-val.danger { color: #ef4444; }
.ceo-insight-rich-metric-val.warning { color: #d97706; }
.ceo-insight-rich-metric-val.good { color: #16a34a; }
.ceo-insight-rich-metric-label {
  font-size: 10px;
  color: rgba(0,0,0,0.3);
  white-space: nowrap;
}
.ceo-insight-rich-bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 2px 0;
}
.ceo-insight-rich-action {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  background: #F0F7FF;
  border-radius: 8px;
  padding: 8px 10px;
  margin: 2px 0;
}
.ceo-insight-rich-action-icon {
  flex-shrink: 0;
  font-size: 12px;
  line-height: 1.5;
}
.ceo-insight-rich-action-text {
  font-size: 11px;
  color: #2970FF;
  line-height: 1.5;
}
.ceo-insight-rich-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
  border-top: 1px solid rgba(0,0,0,0.04);
}
.ceo-insight-rich-source {
  font-size: 10px;
  color: rgba(0,0,0,0.25);
}
.ceo-insight-rich-confidence {
  font-size: 10px;
  color: rgba(0,0,0,0.3);
}
.ceo-insight-rich-confidence strong {
  color: #16a34a;
  font-weight: 600;
}
.ceo-insight-rich-trend {
  margin: 2px 0;
}
.ceo-insight-rich-spark {
  width: 100%;
  height: 40px;
  display: block;
}
.ceo-insight-rich-trend-labels {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: rgba(0,0,0,0.2);
  margin-top: 2px;
}

/* --- Insight Checklist --- */
.ceo-insight-rich-checklist {
  margin: 4px 0;
  padding: 8px 10px;
  background: #f8f9fb;
  border-radius: 8px;
}
.ceo-insight-rich-checklist-title {
  font-size: 11px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 6px;
}
.ceo-insight-rich-checklist-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 0;
}
.ceo-insight-check {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
}
.ceo-insight-check--pass {
  background: #DCFCE7;
  color: #16a34a;
}
.ceo-insight-check-text {
  font-size: 11px;
  color: #444;
  line-height: 1.4;
}

/* --- Insight Progress --- */
.ceo-insight-rich-progress {
  margin: 4px 0;
  padding: 8px 10px;
  background: #f8f9fb;
  border-radius: 8px;
}
.ceo-insight-rich-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.ceo-insight-rich-progress-title {
  font-size: 11px;
  font-weight: 600;
  color: #1a1a1a;
}
.ceo-insight-rich-progress-pct {
  font-size: 11px;
  font-weight: 700;
  color: #2970FF;
}
.ceo-insight-rich-progress-track {
  width: 100%;
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}
.ceo-insight-rich-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2970FF, #60a5fa);
  border-radius: 3px;
  transition: width 0.6s ease;
}
.ceo-insight-rich-progress-steps {
  display: flex;
  gap: 4px;
}
.ceo-insight-step {
  flex: 1;
  text-align: center;
  font-size: 9px;
  color: rgba(0,0,0,0.25);
  padding: 3px 0;
  border-radius: 4px;
  background: #f0f0f0;
}
.ceo-insight-step--done {
  background: #DCFCE7;
  color: #16a34a;
  font-weight: 500;
}
.ceo-insight-step--active {
  background: #DBEAFE;
  color: #2970FF;
  font-weight: 500;
}

/* --- Insight Mini Timeline --- */
.ceo-insight-rich-timeline-mini {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 4px 0;
  padding: 8px 10px;
  background: #f8f9fb;
  border-radius: 8px;
}
.ceo-insight-mini-tl-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 5px;
  position: relative;
  font-size: 10px;
  color: rgba(0,0,0,0.25);
}
.ceo-insight-mini-tl-item:not(:last-child)::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e0e0e0;
  margin: 0 6px;
}
.ceo-insight-mini-tl-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e0e0e0;
  flex-shrink: 0;
}
.ceo-insight-mini-tl--done .ceo-insight-mini-tl-dot {
  background: #16a34a;
}
.ceo-insight-mini-tl--done .ceo-insight-mini-tl-text {
  color: #16a34a;
  font-weight: 500;
}
.ceo-insight-mini-tl--active .ceo-insight-mini-tl-dot {
  background: #2970FF;
  box-shadow: 0 0 0 3px rgba(41,112,255,0.15);
}
.ceo-insight-mini-tl--active .ceo-insight-mini-tl-text {
  color: #2970FF;
  font-weight: 500;
}

/* ========== V2 Design Refresh (Figma 4802:20538) ========== */

/* Section v2 */
.ceo-section--v2 {
  margin-bottom: 28px;
}

/* ================================================
   全部概览 — Overview Grid
   ================================================ */
.ceo-section--overview {
  margin-bottom: 24px;
}
.ceo-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.ceo-ov-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.ceo-ov-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.1);
}

/* Card header: avatar + label + badge */
.ceo-ov-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ceo-ov-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.ceo-ov-label {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
}
.ceo-ov-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: rgba(0,0,0,0.4);
  background: rgba(0,0,0,0.04);
  padding: 2px 8px;
  border-radius: 6px;
}
.ceo-ov-badge.high {
  color: #ef4444;
  background: #fef2f2;
}
.ceo-ov-badge.urgent {
  color: #ef4444;
  background: #fef2f2;
}

/* Metrics row */
.ceo-ov-metrics {
  display: flex;
  gap: 20px;
}
.ceo-ov-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ceo-ov-metric-val {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
}
.ceo-ov-metric-label {
  font-size: 11.5px;
  color: rgba(0,0,0,0.4);
}
.ceo-ov-metric-change {
  font-size: 11.5px;
  font-weight: 600;
}
.ceo-ov-metric-change.up { color: #04B545; }
.ceo-ov-metric-change.down { color: #FF293B; }

/* Hint */
.ceo-ov-hint {
  font-size: 12px;
  color: rgba(0,0,0,0.5);
  background: linear-gradient(135deg, rgba(41,112,255,0.04), rgba(186,133,254,0.04));
  border-radius: 8px;
  padding: 8px 10px;
  line-height: 1.5;
}

/* Item rows */
.ceo-ov-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(0,0,0,0.65);
  line-height: 1.5;
}
.ceo-ov-item-tag {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 5px;
  white-space: nowrap;
  flex-shrink: 0;
}
.ceo-ov-item-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ceo-ov-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Status labels */
.ceo-ov-status {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 5px;
  white-space: nowrap;
  flex-shrink: 0;
}
.ceo-ov-status.ongoing { background: #EEF5FF; color: #2970ff; }
.ceo-ov-status.upcoming { background: #f0fbe4; color: #5fba04; }

/* Priority + due */
.ceo-ov-priority {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 5px;
  white-space: nowrap;
  flex-shrink: 0;
}
.ceo-ov-priority.urgent { background: #fef2f2; color: #ef4444; }
.ceo-ov-due {
  margin-left: auto;
  font-size: 11.5px;
  color: rgba(0,0,0,0.35);
  white-space: nowrap;
  flex-shrink: 0;
}
.ceo-ov-due.overdue { color: #ef4444; }

/* AI Summary banner */
.ceo-ov-summary {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(41,112,255,0.05), rgba(186,133,254,0.06));
  border: 1px solid rgba(41,112,255,0.1);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 14px;
}
.ceo-ov-summary-icon {
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}
.ceo-ov-summary-content { flex: 1; min-width: 0; }
.ceo-ov-summary-title {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 6px;
}
.ceo-ov-summary-text {
  font-size: 13.5px;
  color: rgba(0,0,0,0.6);
  line-height: 1.7;
}

/* ========== Briefing + Decisions two-column layout ========== */
.ceo-ov-briefing-layout {
  display: flex;
  gap: 20px;
  margin-bottom: 18px;
}
.ceo-ov-briefing {
  flex: 3;
  min-width: 0;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ceo-ov-briefing-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 22px 14px;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  color: #1a1a1a;
}
.ceo-ov-briefing-icon { font-size: 20px; }
.ceo-ov-briefing-title {
  font-size: 16px;
  font-weight: 700;
  flex: 1;
  color: #1a1a1a;
}
.ceo-ov-briefing-meta {
  font-size: 12px;
  color: rgba(0,0,0,0.4);
  white-space: nowrap;
}
.ceo-ov-briefing-body {
  padding: 20px 22px;
  flex: 1;
}
.ceo-ov-brief-section {
  margin-bottom: 22px;
}
.ceo-ov-brief-section:last-child { margin-bottom: 0; }
.ceo-ov-brief-section-title {
  font-size: 13px;
  font-weight: 600;
  color: rgba(0,0,0,0.5);
  margin-bottom: 0;
  letter-spacing: 0.3px;
}
.ceo-ov-brief-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.ask-ai-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(41,112,255,0.08), rgba(124,58,237,0.08));
  color: #5B6BF7;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  border: 1px solid rgba(91,107,247,0.12);
}
.ask-ai-tag:hover {
  background: linear-gradient(135deg, rgba(41,112,255,0.14), rgba(124,58,237,0.14));
  border-color: rgba(91,107,247,0.25);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(91,107,247,0.15);
}
.ask-ai-tag svg {
  flex-shrink: 0;
}

/* -- Metrics Row (经营概览) -- */
.ceo-ov-metrics-row {
  display: flex;
  gap: 0;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.ceo-ov-metric-item {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border-right: 1px solid rgba(0,0,0,0.06);
}
.ceo-ov-metric-item:last-child { border-right: none; }
.ceo-ov-metric-item:first-child { padding-left: 0; }
.ceo-ov-metric-label {
  font-size: 11.5px;
  color: rgba(0,0,0,0.45);
  margin-bottom: 4px;
  font-weight: 500;
}
.ceo-ov-metric-value {
  font-size: 26px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
  margin-bottom: 6px;
}
.ceo-ov-metric-unit {
  font-size: 14px;
  font-weight: 500;
  color: rgba(0,0,0,0.4);
}
.ceo-ov-metric-change {
  font-size: 12px;
  font-weight: 600;
}
.ceo-ov-metric-change.up { color: #16a34a; }
.ceo-ov-metric-change.down { color: #ef4444; }
.ceo-ov-metric-sub {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.ceo-ov-metric-rate {
  color: rgba(0,0,0,0.45);
  font-weight: 500;
}

/* -- Brief detail (interpretation paragraph) -- */
.ceo-ov-brief-detail {
  font-size: 13px;
  color: rgba(0,0,0,0.55);
  line-height: 1.7;
  margin-top: 8px;
}

/* -- Callout (risk/attention) -- */
.ceo-ov-brief-callout {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(239, 68, 68, 0.04);
  border-radius: 10px;
  border-left: 3px solid rgba(239, 68, 68, 0.4);
  font-size: 12.5px;
  color: rgba(0,0,0,0.6);
  line-height: 1.6;
}
.ceo-ov-brief-callout-icon {
  color: #ef4444;
  font-weight: 700;
  flex-shrink: 0;
  font-size: 14px;
  margin-top: 1px;
}

/* -- Insight List (外部洞察) -- */
.ceo-ov-insight-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ceo-ov-insight-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.ceo-ov-insight-item:last-child { border-bottom: none; }
.ceo-ov-insight-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2970FF;
  flex-shrink: 0;
  margin-top: 7px;
}
.ceo-ov-insight-dot.compete { background: #f59e0b; }
.ceo-ov-insight-dot.policy { background: #7C3AED; }
.ceo-ov-insight-content {
  flex: 1;
  min-width: 0;
}
.ceo-ov-insight-headline {
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(0,0,0,0.8);
  line-height: 1.5;
}
.ceo-ov-insight-headline strong {
  font-weight: 650;
  color: #1a1a1a;
}
.ceo-ov-insight-summary {
  font-size: 12.5px;
  color: rgba(0,0,0,0.5);
  line-height: 1.5;
  margin-top: 3px;
}
.ceo-ov-insight-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
}
.ceo-ov-insight-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 500;
  line-height: 1.4;
}
.ceo-ov-insight-tag.market { background: rgba(41,112,255,0.08); color: #2970FF; }
.ceo-ov-insight-tag.compete { background: rgba(245,158,11,0.1); color: #d97706; }
.ceo-ov-insight-tag.policy { background: rgba(124,58,237,0.08); color: #7C3AED; }
.ceo-ov-insight-time {
  font-size: 11px;
  color: rgba(0,0,0,0.35);
}

/* -- Customer List (客户动态) -- */
.ceo-ov-customer-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ceo-ov-customer-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.ceo-ov-customer-item:last-child { border-bottom: none; }
.ceo-ov-customer-name {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  white-space: nowrap;
  min-width: 68px;
}
.ceo-ov-customer-desc {
  font-size: 13px;
  color: rgba(0,0,0,0.6);
  line-height: 1.5;
}
.ceo-ov-customer-amount {
  font-weight: 600;
  color: #2970FF;
}
.ceo-ov-customer-status {
  display: inline-block;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 500;
  margin-left: 6px;
}
.ceo-ov-customer-status.opportunity { background: rgba(22,163,74,0.08); color: #16a34a; }
.ceo-ov-customer-status.pending { background: rgba(245,158,11,0.1); color: #d97706; }
.ceo-ov-customer-status.risk { background: rgba(239,68,68,0.06); color: #ef4444; }

/* -- Schedule List (今日日程) -- */
.ceo-ov-schedule-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ceo-ov-schedule-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.ceo-ov-schedule-item:last-child { border-bottom: none; }
.ceo-ov-schedule-time {
  font-size: 13px;
  font-weight: 600;
  color: rgba(0,0,0,0.7);
  min-width: 46px;
  font-variant-numeric: tabular-nums;
}
.ceo-ov-schedule-name {
  font-size: 13px;
  color: rgba(0,0,0,0.75);
  flex: 1;
}
.ceo-ov-schedule-badge {
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 500;
}
.ceo-ov-schedule-badge.important { background: rgba(239,68,68,0.08); color: #ef4444; }
.ceo-ov-schedule-badge.normal { background: rgba(0,0,0,0.04); color: rgba(0,0,0,0.5); }
.ceo-ov-schedule-note {
  font-size: 11.5px;
  color: rgba(0,0,0,0.4);
  margin-left: 58px;
  margin-top: -4px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.ceo-ov-brief-text {
  font-size: 13.5px;
  color: rgba(0,0,0,0.65);
  line-height: 1.8;
}
.ceo-ov-brief-text strong {
  color: rgba(0,0,0,0.85);
  font-weight: 600;
}
.ceo-ov-up {
  color: #16a34a;
  font-weight: 600;
}
.ceo-ov-down {
  color: #ef4444;
  font-weight: 600;
}
.ceo-ov-brief-link {
  color: #2970FF;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ceo-ov-briefing-toolbar {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px 14px;
  border-top: 1px solid rgba(0,0,0,0.04);
}
.ceo-ov-briefing-tool {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(0,0,0,0.4);
  transition: all 0.15s;
}
.ceo-ov-briefing-tool:hover {
  border-color: #2970ff;
  color: #2970ff;
  background: rgba(41,112,255,0.04);
}

/* Decisions column (right) */
.ceo-ov-decisions {
  flex: 2;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ceo-ov-decisions-header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ceo-ov-decisions-label {
  font-size: 14px;
  font-weight: 500;
  color: rgba(0,0,0,0.65);
}
.ceo-ov-decisions-more {
  margin-left: auto;
  font-size: 12px;
  font-weight: 500;
  color: #2970ff;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s;
}
.ceo-ov-decisions-more:hover {
  background: rgba(41,112,255,0.06);
}
/* Filter tabs */
.ceo-ov-decisions-filters {
  display: flex;
  gap: 4px;
  background: #f5f5f5;
  border-radius: 8px;
  padding: 3px;
}
.ceo-ov-decisions-filter {
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(0,0,0,0.45);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}
.ceo-ov-decisions-filter:hover {
  color: rgba(0,0,0,0.7);
}
.ceo-ov-decisions-filter.active {
  background: #fff;
  color: #2970ff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  font-weight: 600;
}
/* Tag variants */
.ceo-ov-decision-tag--urgent {
  color: #4a6cf7;
  background: rgba(74,108,247,0.08);
}
.ceo-ov-decision-tag--approval {
  color: #d97706;
  background: rgba(217,119,6,0.08);
}
.ceo-ov-decision-tag--decision {
  color: #16a34a;
  background: rgba(22,163,74,0.08);
}
/* Show all link */
.ceo-ov-decisions-show-all {
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: #2970ff;
  padding: 10px 0;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s;
}
.ceo-ov-decisions-show-all:hover {
  background: rgba(41,112,255,0.04);
}

/* Decision modal overlay */
.ceo-decision-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.2s;
}
.ceo-decision-modal-overlay.visible {
  opacity: 1;
}
.ceo-decision-modal {
  background: #fff;
  border-radius: 18px;
  width: 640px;
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  transform: translateY(12px);
  transition: transform 0.2s;
}
.ceo-decision-modal-overlay.visible .ceo-decision-modal {
  transform: translateY(0);
}
.ceo-decision-modal-header {
  display: flex;
  align-items: center;
  padding: 20px 24px 0;
}
.ceo-decision-modal-title {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
  flex: 1;
}
.ceo-decision-modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(0,0,0,0.04);
  border-radius: 8px;
  font-size: 18px;
  color: rgba(0,0,0,0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.ceo-decision-modal-close:hover {
  background: rgba(0,0,0,0.08);
  color: rgba(0,0,0,0.7);
}
.ceo-decision-modal-filters {
  display: flex;
  gap: 4px;
  padding: 16px 24px 0;
}
.ceo-decision-modal-filter {
  padding: 5px 16px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(0,0,0,0.45);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
  border: 1px solid transparent;
}
.ceo-decision-modal-filter:hover {
  color: rgba(0,0,0,0.7);
  background: rgba(0,0,0,0.03);
}
.ceo-decision-modal-filter.active {
  background: rgba(41,112,255,0.08);
  color: #2970ff;
  border-color: rgba(41,112,255,0.15);
  font-weight: 600;
}
.ceo-decision-modal-body {
  padding: 16px 24px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ceo-decision-modal-body .ceo-ov-decision-card {
  margin: 0;
}
.ceo-decision-modal-empty {
  text-align: center;
  padding: 40px 0;
  font-size: 14px;
  color: rgba(0,0,0,0.35);
}
.ceo-ov-decisions-subtitle {
  font-size: 13px;
  font-weight: 600;
  color: rgba(0,0,0,0.82);
}
.ceo-ov-decision-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.ceo-ov-decision-card:hover {
  border-color: rgba(41,112,255,0.15);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.ceo-ov-decision-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #4a6cf7;
  background: rgba(74,108,247,0.08);
  padding: 3px 10px;
  border-radius: 10px;
  align-self: flex-start;
}
.ceo-ov-decision-title {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
}
.ceo-ov-decision-desc {
  font-size: 13px;
  color: rgba(0,0,0,0.6);
  line-height: 1.7;
}
.ceo-ov-decision-desc strong {
  color: rgba(0,0,0,0.82);
}
.ceo-ov-decision-detail {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  color: rgba(0,0,0,0.55);
  line-height: 1.6;
  padding: 8px 12px;
  background: rgba(0,0,0,0.02);
  border-radius: 10px;
}
.ceo-ov-decision-bullet {
  color: rgba(0,0,0,0.25);
  flex-shrink: 0;
  margin-top: 1px;
}
.ceo-ov-decision-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: rgba(0,0,0,0.4);
}
.ceo-ov-decision-actions {
  display: flex;
  gap: 10px;
  padding-top: 4px;
}
.ceo-ov-decision-btn {
  padding: 8px 22px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(0,0,0,0.1);
  background: #fff;
  color: rgba(0,0,0,0.65);
  cursor: pointer;
  transition: all 0.15s;
}
.ceo-ov-decision-btn:hover {
  border-color: #276ff5;
  color: #276ff5;
}
.ceo-ov-decision-btn.primary {
  background: #276ff5;
  color: #fff;
  border-color: #276ff5;
}
.ceo-ov-decision-btn.primary:hover {
  background: #1a5cd4;
}
.ceo-ov-decision-btn--dismiss {
  margin-left: auto;
  color: rgba(0,0,0,0.35);
  border-color: transparent;
  background: none;
  padding: 8px 14px;
}
.ceo-ov-decision-btn--dismiss:hover {
  color: rgba(0,0,0,0.55);
  background: rgba(0,0,0,0.04);
  border-color: transparent;
}

/* Decision complete message */
.ceo-decision-complete {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  gap: 12px;
  animation: decisionCompleteIn 0.4s ease;
}
@keyframes decisionCompleteIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.ceo-decision-complete-icon {
  margin-bottom: 4px;
}
.ceo-decision-complete-title {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
}
.ceo-decision-complete-desc {
  font-size: 14px;
  color: rgba(0,0,0,0.4);
}

/* "详情 ›" link */
.ceo-ov-more {
  margin-left: auto;
  font-size: 12px;
  color: #2970ff;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Full-width card */
.ceo-ov-card--wide {
  grid-column: 1 / -1;
}

/* Mini bar chart */
.ceo-ov-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ceo-ov-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.ceo-ov-bar-label {
  width: 32px;
  color: rgba(0,0,0,0.5);
  flex-shrink: 0;
  text-align: right;
}
.ceo-ov-bar-track {
  flex: 1;
  height: 6px;
  background: rgba(0,0,0,0.04);
  border-radius: 3px;
  overflow: hidden;
}
.ceo-ov-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
}
.ceo-ov-bar-val {
  width: 70px;
  color: rgba(0,0,0,0.6);
  font-weight: 600;
  font-size: 11.5px;
  flex-shrink: 0;
}

/* Customer row */
.ceo-ov-customer-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 4px 0;
}
.ceo-ov-customer-name {
  font-weight: 600;
  color: #1a1a1a;
  min-width: 60px;
}
.ceo-ov-customer-level {
  font-size: 11px;
  color: rgba(0,0,0,0.4);
  background: rgba(0,0,0,0.04);
  padding: 1px 6px;
  border-radius: 4px;
}
.ceo-ov-customer-health {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.ceo-ov-customer-health.good { background: #f0fbe4; color: #16a34a; }
.ceo-ov-customer-health.warning { background: #fff7ed; color: #f59e0b; }
.ceo-ov-customer-health.danger { background: #fef2f2; color: #ef4444; }
.ceo-ov-customer-rev {
  font-size: 12px;
  color: rgba(0,0,0,0.4);
  width: 80px;
  text-align: right;
}

/* Schedule stats */
.ceo-ov-sched-stats {
  display: flex;
  gap: 16px;
}
.ceo-ov-sched-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.ceo-ov-sched-stat-num {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
}
.ceo-ov-sched-stat-num.accent { color: #2970ff; }
.ceo-ov-sched-stat-num.danger { color: #ef4444; }
.ceo-ov-sched-stat-label {
  font-size: 11px;
  color: rgba(0,0,0,0.4);
}

/* Todo grid */
.ceo-ov-todo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.ceo-ov-todo-item {
  background: rgba(0,0,0,0.015);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ceo-ov-todo-top {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ceo-ov-todo-source {
  font-size: 11px;
  color: rgba(0,0,0,0.35);
}
.ceo-ov-todo-text {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.4;
}
.ceo-ov-todo-bottom {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.ceo-ov-todo-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}
.ceo-ov-todo-assignee {
  font-size: 11.5px;
  color: rgba(0,0,0,0.4);
}
.ceo-ov-todo-btn {
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 600;
  color: #2970ff;
  background: #EEF5FF;
  border: none;
  border-radius: 6px;
  padding: 4px 12px;
  cursor: pointer;
  transition: background 0.15s;
}
.ceo-ov-todo-btn:hover { background: #dbeafe; }

.ceo-ov-priority.normal { background: #EEF5FF; color: #2970ff; }
.ceo-ov-priority.low { background: rgba(0,0,0,0.04); color: rgba(0,0,0,0.4); }

.ceo-ov-item--high { font-weight: 500; }

/* Section header v2: avatar with blue ring */
.ceo-section-header--v2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  cursor: pointer;
}
.ceo-section-avatar-wrap {
  width: 52px;
  height: 52px;
  border-radius: 52px;
  border: 0.52px solid rgba(0,0,0,0.08);
  background: #BCD8FF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.ceo-section-header--v2 .ceo-section-avatar {
  width: 52px;
  height: 52px;
  border-radius: 52px;
  object-fit: cover;
}
.ceo-section-header--v2 .ceo-section-name {
  font-size: 16px;
  font-weight: 500;
  color: rgba(0,0,0,0.94);
  line-height: 1.5;
}
.ceo-section-header--v2 .ceo-section-desc {
  font-size: 14px;
  color: rgba(0,0,0,0.64);
  line-height: 1.43;
}

/* Cards v2: refined border-radius and shadow */
.ceo-section-cards--v2 {
  gap: 16px;
}
.ceo-sec-card--v2 {
  border-radius: 24px;
  border: 1px solid rgba(0,0,0,0.08);
  background: linear-gradient(180deg, #fff 50%, rgba(255,255,255,0.8) 100%);
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  padding: 16px 20px;
}
.ceo-sec-card--v2:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}
.ceo-sec-card--combo.ceo-sec-card--v2 {
  border-color: rgba(0,0,0,0.12);
}
.ceo-sec-card--v2 .ceo-card-chat-btn {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: rgba(0,0,0,0.03);
  color: rgba(0,0,0,0.46);
  top: 12px;
  right: 12px;
}

/* KV rows v2: with background fills */
.ceo-sec-card-kv--v2 .ceo-sec-kv-row--v2 {
  padding: 8px 12px;
  border-bottom: none;
  border-radius: 16px;
}
.ceo-sec-card-kv--v2 .ceo-sec-kv-row--highlight {
  background: rgba(0,0,0,0.03);
}
.ceo-sec-card-kv--v2 .ceo-sec-kv-k {
  font-size: 14px;
  font-weight: 500;
  color: rgba(0,0,0,0.94);
}
.ceo-sec-card-kv--v2 .ceo-sec-kv-v {
  font-size: 14px;
  font-weight: 500;
  color: rgba(0,0,0,0.94);
}
.ceo-sec-card-kv--v2 .ceo-sec-kv-v em.up {
  color: #04B545;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.ceo-sec-card-kv--v2 .ceo-sec-kv-v em.down {
  color: #FF293B;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

/* Ring v2: larger ring with gradient stroke */
.ceo-sec-ring-wrap--v2 {
  gap: 20px;
}
.ceo-sec-ring-svg--v2 {
  width: 120px !important;
  height: 120px !important;
}
.ceo-sec-ring-info--v2 {
  gap: 8px;
}
.ceo-sec-ring-info--v2 .ceo-sec-ring-item--v2 {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 16px;
}
.ceo-sec-ring-info--v2 .ceo-sec-ring-item--v2:first-child {
  background: rgba(0,0,0,0.03);
}
.ceo-sec-ring-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ceo-sec-ring-info--v2 .ceo-sec-ring-label {
  font-size: 14px;
  font-weight: 500;
  color: rgba(0,0,0,0.94);
  flex: 1;
}
.ceo-sec-ring-info--v2 .ceo-sec-ring-val {
  font-size: 14px;
  font-weight: 400;
  color: rgba(0,0,0,0.64);
}
.ceo-sec-ring-info--v2 .ceo-sec-ring-item--v2:first-child .ceo-sec-ring-val {
  font-weight: 500;
  color: rgba(0,0,0,0.94);
}

/* ---- Row-level "问AI" hover button ---- */
.ceo-sec-kv-row--v2,
.ceo-sec-bar-group,
.ceo-sec-ring-item--v2 {
  position: relative;
}
.ceo-row-ask-ai {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 500;
  color: #2970ff;
  background: rgba(41,112,255,0.08);
  border: 1px solid rgba(41,112,255,0.18);
  border-radius: 12px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s, background 0.15s;
  white-space: nowrap;
  line-height: 1;
  flex-shrink: 0;
  margin-left: 8px;
}
.ceo-sec-kv-row--v2:hover .ceo-row-ask-ai,
.ceo-sec-bar-group:hover .ceo-row-ask-ai,
.ceo-sec-ring-item--v2:hover .ceo-row-ask-ai {
  opacity: 1;
  pointer-events: auto;
}
.ceo-row-ask-ai:hover {
  background: rgba(41,112,255,0.16);
  border-color: rgba(41,112,255,0.32);
}
.ceo-row-ask-ai svg {
  flex-shrink: 0;
}
.ceo-sec-bar-group .ceo-row-ask-ai {
  margin-left: 8px;
}

/* Insight tag color variants */
.ceo-sec-insight-tag--policy {
  background: rgba(41,112,255,0.08);
  color: #2970FF;
}
.ceo-sec-insight-tag--compete {
  background: rgba(255,153,28,0.08);
  color: #d97706;
}
.ceo-sec-insight-tag--macro {
  background: rgba(22,163,106,0.08);
  color: #16a34a;
}

/* --- Section 3: Timeline --- */
.ceo-sec-timeline {
  margin-bottom: 14px;
  overflow-x: auto;
}
.ceo-sec-tl-track {
  display: flex;
  align-items: center;
  position: relative;
  padding: 8px 0;
  min-width: max-content;
}
.ceo-sec-tl-track::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 12px;
  right: 12px;
  height: 2px;
  background: #e8e8e8;
  transform: translateY(-50%);
}
.ceo-sec-tl-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  position: relative;
  z-index: 1;
  min-width: 60px;
}
.ceo-sec-tl-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d4d4d4;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #e8e8e8;
  transition: all 0.2s;
}
.ceo-sec-tl-node.done .ceo-sec-tl-dot {
  background: #a3a3a3;
  box-shadow: 0 0 0 2px #d4d4d4;
}
.ceo-sec-tl-node.active .ceo-sec-tl-dot {
  background: #2970ff;
  box-shadow: 0 0 0 3px rgba(41,112,255,0.25);
  width: 12px;
  height: 12px;
}
.ceo-sec-tl-time {
  font-size: 11px;
  color: rgba(0,0,0,0.35);
  font-weight: 500;
}
.ceo-sec-tl-node.active .ceo-sec-tl-time {
  color: #2970ff;
  font-weight: 600;
}

/* --- Card Type: Schedule --- */
.ceo-sec-card--schedule {
  position: relative;
  min-width: 240px;
  max-width: 280px;
  flex-shrink: 0;
  gap: 6px;
}
.ceo-sec-card--schedule.done {
  opacity: 0.5;
}
.ceo-sec-card--schedule.ongoing {
  border-color: rgba(41,112,255,0.2);
}

/* Schedule summary stats */
.ceo-sched-summary {
  display: flex;
  gap: 20px;
  margin-bottom: 10px;
}
.ceo-sched-stat {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.ceo-sched-stat-val {
  font-size: 15px;
  font-weight: 700;
  color: rgba(0,0,0,0.6);
}
.ceo-sched-stat-val.accent { color: #2970ff; }
.ceo-sched-stat-val.danger { color: #ef4444; }
.ceo-sched-stat-val.warning { color: #f59e0b; }
.ceo-sched-stat-label {
  font-size: 11px;
  color: rgba(0,0,0,0.35);
}

/* Schedule card header */
.ceo-sec-sched-header {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ceo-sec-sched-type {
  font-size: 10px;
  font-weight: 500;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(41,112,255,0.08);
  color: #2970ff;
}
.ceo-sec-sched-time {
  font-size: 11px;
  color: rgba(0,0,0,0.3);
}
.ceo-sec-sched-name {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.4;
}
.ceo-sec-sched-detail {
  font-size: 12px;
  color: rgba(0,0,0,0.4);
}

/* Agenda / Insight / Decision / Prep / Conflict — unified subtle style */
.ceo-sec-sched-agenda,
.ceo-sec-sched-insight,
.ceo-sec-sched-decision,
.ceo-sec-sched-prep,
.ceo-sec-sched-conflict {
  font-size: 11px;
  line-height: 1.5;
  color: rgba(0,0,0,0.5);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ceo-sec-sched-agenda-icon,
.ceo-sec-sched-insight-icon,
.ceo-sec-sched-decision-icon,
.ceo-sec-sched-prep-icon,
.ceo-sec-sched-conflict-icon {
  margin-right: 3px;
  font-size: 11px;
}
.ceo-sec-sched-insight {
  color: #2970ff;
}
.ceo-sec-sched-decision {
  color: #16a34a;
}
.ceo-sec-sched-conflict {
  color: #d97706;
}

/* Schedule toolbar: stats + view tabs */
.ceo-sched-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.ceo-sched-view-tabs {
  display: flex;
  gap: 2px;
  background: #f3f4f6;
  border-radius: 8px;
  padding: 2px;
}
.ceo-sched-view-tab {
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(0,0,0,0.45);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}
.ceo-sched-view-tab:hover { color: rgba(0,0,0,0.7); }
.ceo-sched-view-tab.active {
  background: #fff;
  color: #2970ff;
  box-shadow: 0 0 0 1.5px #2970ff;
}

/* Tags */
.ceo-sched-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}
.ceo-sched-tag {
  font-size: 10px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
  background: #f3f4f6;
  color: rgba(0,0,0,0.5);
  cursor: default;
}
.ceo-sched-tag.briefing {
  background: rgba(41,112,255,0.08);
  color: #2970ff;
  cursor: pointer;
}
.ceo-sched-tag.briefing:hover {
  background: rgba(41,112,255,0.15);
}
.ceo-sched-tag.minutes {
  background: rgba(22,163,106,0.08);
  color: #16a34a;
}
.ceo-sched-tag.followup {
  background: rgba(245,158,11,0.1);
  color: #d97706;
}

/* Conflict highlight on card */
.ceo-sec-card--schedule.has-conflict {
  border-color: rgba(245,158,11,0.3);
}

/* Week view */
.ceo-sched-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  min-height: 200px;
}
.ceo-sched-week-col {
  background: #fafbfc;
  border-radius: 10px;
  padding: 10px 8px;
  min-width: 0;
}
.ceo-sched-week-col.today {
  background: rgba(41,112,255,0.04);
  border: 1px solid rgba(41,112,255,0.15);
}
.ceo-sched-week-header {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.ceo-sched-week-day {
  font-size: 12px;
  font-weight: 600;
  color: #1a1a1a;
}
.ceo-sched-week-date {
  font-size: 10px;
  color: rgba(0,0,0,0.3);
}
.ceo-sched-week-today-badge {
  font-size: 9px;
  font-weight: 600;
  color: #fff;
  background: #2970ff;
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: auto;
}
.ceo-sched-week-empty {
  font-size: 11px;
  color: rgba(0,0,0,0.2);
  text-align: center;
  padding: 20px 0;
}
.ceo-sched-week-item {
  display: flex;
  gap: 6px;
  padding: 6px 4px;
  border-radius: 6px;
  margin-bottom: 4px;
  transition: background 0.15s;
}
.ceo-sched-week-item:hover { background: rgba(0,0,0,0.03); }
.ceo-sched-week-item.has-conflict {
  background: rgba(245,158,11,0.06);
}
.ceo-sched-week-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}
.ceo-sched-week-dot.dot-high { background: #ef4444; }
.ceo-sched-week-dot.dot-mid { background: #f59e0b; }
.ceo-sched-week-dot.dot-low { background: #d4d4d4; }
.ceo-sched-week-item-body { min-width: 0; flex: 1; }
.ceo-sched-week-item-time {
  font-size: 10px;
  color: rgba(0,0,0,0.35);
}
.ceo-sched-week-item-name {
  font-size: 11.5px;
  font-weight: 500;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ceo-sched-week-conflict {
  font-size: 9px;
  color: #d97706;
  margin-top: 2px;
}

/* Month view — Figma calendar grid */
.ceo-cal-grid {
  display: grid;
  grid-template-columns: 100px repeat(7, 1fr);
  border: 1px solid #f5f5f5;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  max-height: 620px;
}
.ceo-cal-corner {
  background: #fff;
  border-right: 1px solid #f5f5f5;
  border-bottom: 1px solid #f5f5f5;
}
.ceo-cal-day-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
  background: rgba(0,0,0,0.01);
  border-right: 1px solid #f5f5f5;
  border-bottom: 1px solid #f5f5f5;
}
.ceo-cal-day-header:last-of-type { border-right: none; }
.ceo-cal-day-label {
  font-size: 14px;
  font-weight: 400;
  color: rgba(0,0,0,0.46);
  line-height: 1.7;
}
.ceo-cal-day-date {
  font-size: 14px;
  font-weight: 400;
  color: rgba(0,0,0,0.46);
  line-height: 1.7;
}
.ceo-cal-time {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 400;
  color: rgba(0,0,0,0.46);
  padding: 10px;
  border-right: 1px solid #f5f5f5;
  border-bottom: 1px solid #f5f5f5;
  min-height: 70px;
}
.ceo-cal-time.allday {
  font-size: 14px;
  font-weight: 600;
  color: rgba(0,0,0,0.82);
  min-height: 44px;
}
.ceo-cal-cell {
  border-right: 1px solid #f5f5f5;
  border-bottom: 1px solid #f5f5f5;
  min-height: 70px;
}

/* Event cards — placed in the same grid via grid-column/grid-row */
.ceo-cal-event {
  border-radius: 12px;
  padding: 10px 12px;
  margin: 2px 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: filter 0.15s;
  z-index: 1;
}
.ceo-cal-event:hover { filter: brightness(0.97); }
.ceo-cal-ev-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 2;
}
.ceo-cal-ev-time {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}
.ceo-cal-ev-avatar-row {
  display: flex;
  align-items: center;
  gap: 4px;
}
.ceo-cal-ev-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  background: #BCD8FF;
}
.ceo-cal-ev-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 2;
}
.ceo-cal-ev-sub {
  font-size: 12px;
  color: rgba(0,0,0,0.64);
  line-height: 1.4;
}

/* Month calendar view — 月维度日历 */
.ceo-month-cal {
  background: #fff;
  border-radius: 12px;
}
.ceo-month-cal-title {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  padding: 12px 0 8px;
}
.ceo-month-cal-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-bottom: 1px solid #f0f0f0;
}
.ceo-month-cal-wday {
  font-size: 13px;
  font-weight: 500;
  color: rgba(0,0,0,0.4);
  text-align: center;
  padding: 8px 0;
}
.ceo-month-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.ceo-month-cal-cell {
  min-height: 100px;
  padding: 8px 6px;
  border-right: 1px solid #f5f5f5;
  border-bottom: 1px solid #f5f5f5;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ceo-month-cal-cell:nth-child(7n) { border-right: none; }
.ceo-month-cal-cell.empty { background: #fafbfc; }
.ceo-month-cal-cell.today { background: rgba(41,112,255,0.03); }
.ceo-month-cal-day {
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1;
  margin-bottom: 4px;
}
.ceo-month-cal-day.today {
  color: #fff;
  background: #2970ff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 12px;
}
.ceo-month-cal-events {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.ceo-month-cal-ev {
  font-size: 10px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.6;
}
.ceo-month-cal-more {
  font-size: 10px;
  color: rgba(0,0,0,0.35);
  padding: 1px 6px;
}

/* ================================================
   Schedule Card Popup — 日程卡片弹窗
   ================================================ */
.sched-card-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 99995;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: scpFadeIn 0.2s ease;
}
@keyframes scpFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.sched-card-popup {
  background: #fff;
  border-radius: 24px;
  padding: 32px 28px 24px;
  max-width: 1200px;
  width: 95vw;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.18);
  position: relative;
  animation: scpSlideUp 0.3s cubic-bezier(0.23,1,0.32,1);
}
@keyframes scpSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.sched-card-popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(0,0,0,0.04);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(0,0,0,0.4);
  transition: background 0.15s;
  z-index: 2;
}
.sched-card-popup-close:hover {
  background: rgba(0,0,0,0.08);
  color: rgba(0,0,0,0.7);
}

/* Three cards row */
.sched-card-popup-cards {
  display: flex;
  gap: 20px;
}

/* Individual card */
.scp-card {
  flex: 1;
  border: 1px solid #F5F5F5;
  border-radius: 24px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  min-width: 0;
}

/* Avatar */
.scp-avatar-wrap {
  width: 64px;
  height: 64px;
  border-radius: 64px;
  overflow: hidden;
  flex-shrink: 0;
  margin-bottom: 20px;
}
.scp-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Name + tag row */
.scp-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}
.scp-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.scp-name {
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #0F172B;
  line-height: 1.56;
  letter-spacing: -0.024em;
}
.scp-tag {
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #0F172B;
  background: #F1F5F9;
  padding: 2px 8px;
  border-radius: 4px;
  line-height: 1.4;
  white-space: nowrap;
}
.scp-company {
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: rgba(0,0,0,0.64);
  line-height: 1.71;
}

/* Collaborators row */
.scp-collab-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.scp-collab-label {
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: rgba(0,0,0,0.82);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.scp-collab-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.scp-collab-avatars {
  display: flex;
  align-items: center;
}
.scp-collab-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #fff;
  object-fit: cover;
  margin-left: -6px;
}
.scp-collab-avatar:first-child {
  margin-left: 0;
}
.scp-collab-extra {
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #90A1B9;
  letter-spacing: 0.05em;
}

/* Task brief section */
.scp-brief {
  background: #FAFAFA;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.scp-brief-header {
  display: flex;
  align-items: center;
  gap: 4px;
}
.scp-brief-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.scp-brief-title {
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: rgba(0,0,0,0.46);
  text-transform: uppercase;
}
.scp-brief-body {
  flex: 1;
}
.scp-brief-text {
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: rgba(0,0,0,0.82);
  line-height: 1.43;
}
.scp-brief-body--link .scp-brief-text {
  margin-bottom: 6px;
}
.scp-brief-link {
  display: flex;
  align-items: center;
  gap: 2px;
  cursor: pointer;
}
.scp-brief-link span {
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 12px;
  color: rgba(0,0,0,0.46);
  line-height: 1.67;
}
.scp-brief-link:hover span {
  color: rgba(0,0,0,0.7);
}

/* Phone icon (top-right of card) */
.scp-phone {
  position: absolute;
  top: 30px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.15s;
}
.scp-phone:hover {
  background: rgba(0,0,0,0.04);
}

/* Bottom finance row */
.scp-finance-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding-left: 8px;
}
.scp-finance-label {
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: rgba(0,0,0,0.46);
}

/* Card active / hover state */
.scp-card {
  cursor: pointer;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.scp-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* Single card popup variant */
.sched-card-popup--single {
  max-width: 480px;
}
.scp-single-card {
  border: 1px solid #F5F5F5;
  border-radius: 24px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Visit detail sections (below single card) */
.scp-visit-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
  animation: scpDetailFadeIn 0.3s ease;
}
@keyframes scpDetailFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.scp-visit-section {
  background: #FAFBFC;
  border-radius: 12px;
  padding: 14px;
}
.scp-visit-sec-heading {
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #0F172B;
  margin-bottom: 10px;
  line-height: 1.5;
}
.scp-visit-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.scp-visit-list li {
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 12px;
  color: rgba(0,0,0,0.68);
  line-height: 1.6;
  padding-left: 12px;
  position: relative;
}
.scp-visit-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #2970FF;
  opacity: 0.45;
}

/* Briefing modal */
.ceo-briefing-overlay {
  position: fixed;
  inset: 0;
  z-index: 99990;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: loginFadeIn 0.2s ease;
}
.ceo-briefing-panel {
  background: #fff;
  border-radius: 16px;
  width: 560px;
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  animation: loginSlideUp 0.3s cubic-bezier(0.23,1,0.32,1);
}
.ceo-briefing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #f0f0f0;
}
.ceo-briefing-title {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
}
.ceo-briefing-close {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: rgba(0,0,0,0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ceo-briefing-close:hover { background: #f5f5f5; color: rgba(0,0,0,0.7); }
.ceo-briefing-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}
.ceo-briefing-section {
  margin-bottom: 18px;
}
.ceo-briefing-sec-title {
  font-size: 13px;
  font-weight: 600;
  color: rgba(0,0,0,0.7);
  margin-bottom: 8px;
}
.ceo-briefing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
}
.ceo-briefing-field {
  display: flex;
  gap: 8px;
  font-size: 13px;
}
.ceo-briefing-label {
  color: rgba(0,0,0,0.4);
  flex-shrink: 0;
  min-width: 48px;
}
.ceo-briefing-text {
  font-size: 13px;
  color: rgba(0,0,0,0.65);
  line-height: 1.6;
}
.ceo-briefing-text.highlight {
  color: #2970ff;
  background: rgba(41,112,255,0.04);
  padding: 8px 12px;
  border-radius: 8px;
  border-left: 3px solid #2970ff;
}
.ceo-briefing-list {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: rgba(0,0,0,0.65);
  line-height: 1.8;
}
.ceo-briefing-list.warning li {
  color: #d97706;
}

/* ================================================
   Chat Flow Cards (拜访简章 + 找人)
   ================================================ */
/* Sources list */
.biz-flow-sources {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.biz-flow-source-title {
  font-size: 13px;
  font-weight: 600;
  color: rgba(0,0,0,0.7);
  margin-bottom: 4px;
}
.biz-flow-source-item {
  font-size: 12.5px;
  color: rgba(0,0,0,0.55);
  padding: 2px 0;
}

/* Briefing card in chat */
.biz-flow-briefing-card {
  background: #fff;
  border: 1px solid #eff1f4;
  border-radius: 14px;
  padding: 20px;
  max-width: 520px;
}

/* Executive Briefing card */
.eb-card { max-width: 480px; border: 1px solid #e0e4ea; border-radius: 14px; overflow: hidden; background: #fff; }
.eb-card.eb-card--horizontal { max-width: 680px; }
.eb-card-body-h { display: flex; min-height: 0; }
.eb-card-col-left { flex: 1; min-width: 0; padding: 16px 20px; display: flex; flex-direction: column; gap: 16px; }
.eb-card-left-divider { height: 1px; background: #eff1f4; }
.eb-card-col-right { flex: 1; min-width: 0; border-left: 1px solid #eff1f4; display: flex; flex-direction: column; }
/* Remove default section borders inside horizontal layout */
.eb-card--horizontal .eb-card-body-h .eb-card-section { border-bottom: none; padding: 0; }
.eb-card-col-right .eb-card-section { padding: 16px 20px; flex: 1; }
.eb-card-opp-total { display: flex; justify-content: space-between; align-items: center; padding: 10px 20px; background: #f8f9fb; border-top: 1px solid #eff1f4; }
.eb-card-opp-total-label { font-size: 12px; font-weight: 500; color: rgba(0,0,0,0.4); }
.eb-card-opp-total-val { font-size: 15px; font-weight: 700; color: #2970ff; }
.eb-card-footer-h { padding: 12px 20px; border-top: 1px solid #eff1f4; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.eb-card-header { background: #1e293b; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; }
.eb-card-header-left { display: flex; align-items: center; gap: 12px; }
.eb-card-logo { width: 32px; height: 32px; border-radius: 8px; background: rgba(255,255,255,0.15); color: #fff; font-weight: 700; font-size: 16px; display: flex; align-items: center; justify-content: center; }
.eb-card-title { font-size: 14px; font-weight: 600; color: #fff; }
.eb-card-subtitle { font-size: 11px; color: rgba(255,255,255,0.55); margin-top: 2px; }
.eb-card-badge { font-size: 9px; font-weight: 600; color: rgba(255,255,255,0.5); letter-spacing: 1px; text-transform: uppercase; }
.eb-card-section { padding: 14px 20px; border-bottom: 1px solid #f0f0f0; }
.eb-card-sec-title { font-size: 11px; font-weight: 600; color: rgba(0,0,0,0.4); margin-bottom: 8px; letter-spacing: 0.3px; }
.eb-card-fields { display: flex; flex-direction: column; gap: 6px; }
.eb-card-field { display: flex; gap: 12px; font-size: 13px; }
.eb-card-label { color: rgba(0,0,0,0.4); min-width: 64px; flex-shrink: 0; }
.eb-card-val { color: #1a1a1a; font-weight: 500; }
.eb-card-exec { display: flex; align-items: center; gap: 12px; }
.eb-card-exec-avatar { width: 36px; height: 36px; border-radius: 50%; background: #ef4444; color: #fff; font-weight: 600; font-size: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.eb-card-exec-name { font-size: 14px; font-weight: 600; color: #1a1a1a; }
.eb-card-exec-role { font-size: 11.5px; color: rgba(0,0,0,0.45); margin-top: 1px; }
.eb-card-opps { display: flex; flex-direction: column; gap: 4px; }
.eb-card-opp { display: flex; justify-content: space-between; align-items: center; font-size: 13px; padding: 4px 0; }
.eb-card-opp-name { color: rgba(0,0,0,0.65); }
.eb-card-opp-budget { font-weight: 600; color: #1a1a1a; }
.eb-card-footer { padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.eb-card-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.eb-card-tag { font-size: 10px; padding: 2px 8px; border-radius: 4px; background: #f3f4f6; color: rgba(0,0,0,0.45); }
.eb-card-detail-btn { font-size: 12px; font-weight: 500; color: #2970ff; background: none; border: 1px solid #2970ff; border-radius: 16px; padding: 4px 14px; cursor: pointer; transition: all 0.15s; }
.eb-card-detail-btn:hover { background: #2970ff; color: #fff; }

/* Companion selection */
.eb-companions { max-width: 440px; }
.eb-comp-title { font-size: 13px; font-weight: 600; color: rgba(0,0,0,0.6); margin-bottom: 10px; }
.eb-comp-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.eb-comp-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #eff1f4; border-radius: 10px; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.eb-comp-item:hover { border-color: #c5d4ff; background: rgba(41,112,255,0.02); }
.eb-comp-check { width: 16px; height: 16px; accent-color: #2970ff; flex-shrink: 0; }
.eb-comp-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.eb-comp-name { font-size: 13px; font-weight: 600; color: #1a1a1a; }
.eb-comp-role { font-size: 11px; color: rgba(0,0,0,0.4); margin-top: 1px; }
.eb-comp-actions { display: flex; gap: 8px; }
.eb-comp-btn { padding: 8px 20px; border-radius: 8px; border: 1px solid #e0e0e0; background: #fff; font-size: 12.5px; font-weight: 500; color: rgba(0,0,0,0.55); cursor: pointer; transition: all 0.15s; }
.eb-comp-btn:hover { background: #f5f5f5; }
.eb-comp-btn.primary { background: #2970ff; color: #fff; border-color: #2970ff; }
.eb-comp-btn.primary:hover { background: #1d5ed9; }

/* Schedule card */
.eb-schedule-card { max-width: 440px; border: 1px solid #e0e4ea; border-radius: 14px; overflow: hidden; background: #fff; margin-bottom: 8px; }
.eb-sched-header { background: linear-gradient(135deg, #2970ff, #1d5ed9); padding: 16px 20px; display: flex; align-items: center; gap: 12px; }
.eb-sched-header-icon { font-size: 20px; }
.eb-sched-header-title { font-size: 14px; font-weight: 600; color: #fff; }
.eb-sched-header-sub { font-size: 11px; color: rgba(255,255,255,0.6); margin-top: 2px; }
.eb-sched-date { padding: 12px 20px 0; font-size: 13px; font-weight: 600; color: #2970ff; }
.eb-sched-timeline { padding: 10px 20px; }
.eb-sched-tl-item { display: flex; gap: 12px; padding: 8px 0; border-left: 2px solid #2970ff; padding-left: 14px; margin-left: 4px; }
.eb-sched-tl-time { font-size: 12px; color: rgba(0,0,0,0.5); white-space: nowrap; min-width: 90px; }
.eb-sched-tl-name { font-size: 13px; font-weight: 600; color: #1a1a1a; }
.eb-sched-tl-loc { font-size: 11px; color: rgba(0,0,0,0.4); margin-top: 2px; }
.eb-sched-people { padding: 0 20px 14px; display: flex; flex-direction: column; gap: 4px; }
.eb-sched-people-row { display: flex; gap: 8px; font-size: 12.5px; }
.eb-sched-people-label { color: rgba(0,0,0,0.35); min-width: 28px; flex-shrink: 0; }
.eb-sched-confirm-btn { display: block; margin: 0 20px 16px; padding: 10px 0; width: calc(100% - 40px); border-radius: 10px; border: none; background: #2970ff; color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; transition: background 0.15s; }
.eb-sched-confirm-btn:hover { background: #1d5ed9; }
.eb-sched-confirm-btn:disabled { cursor: default; }
.eb-sched-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.eb-sched-chip { font-size: 12px; padding: 6px 14px; border-radius: 18px; border: 1px solid #2970ff; color: #2970ff; background: #fff; cursor: pointer; transition: all 0.15s; }
.eb-sched-chip:hover { background: rgba(41,112,255,0.06); }

/* Right-side briefing panel */
.eb-panel-overlay { position: fixed; inset: 0; z-index: 99990; background: rgba(0,0,0,0.35); display: flex; align-items: center; justify-content: center; animation: loginFadeIn 0.2s ease; }
.eb-panel { width: 100%; max-width: 720px; height: 90vh; max-height: 90vh; background: #fff; box-shadow: 0 20px 60px rgba(0,0,0,0.15); display: flex; flex-direction: column; animation: loginSlideUp 0.3s cubic-bezier(0.23,1,0.32,1); border-radius: 16px; margin: auto; }
@keyframes ebPanelSlide { from { transform: translateX(100%); } to { transform: translateX(0); } }
.eb-panel-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #f0f0f0; flex-shrink: 0; }
.eb-panel-title { font-size: 15px; font-weight: 600; color: #1a1a1a; }
.eb-panel-close { width: 28px; height: 28px; border-radius: 6px; border: none; background: transparent; color: rgba(0,0,0,0.4); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.eb-panel-close:hover { background: #f5f5f5; color: rgba(0,0,0,0.7); }
.eb-panel-body { flex: 1; overflow-y: auto; padding: 0; }
.eb-panel-banner { background: #1e293b; padding: 20px; color: #fff; }
.eb-panel-banner-label { font-size: 10px; color: rgba(255,255,255,0.4); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; }
.eb-panel-banner-title { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.eb-panel-banner-sub { font-size: 12px; color: rgba(255,255,255,0.6); line-height: 1.5; }
.eb-panel-sec { padding: 16px 20px; border-bottom: 1px solid #f5f5f5; }
.eb-panel-sec-title { font-size: 13px; font-weight: 600; color: #1a1a1a; margin-bottom: 10px; }
.eb-panel-grid { display: flex; flex-direction: column; gap: 8px; }
.eb-panel-field { display: flex; gap: 10px; font-size: 12.5px; line-height: 1.5; }
.eb-panel-label { color: rgba(0,0,0,0.4); min-width: 48px; flex-shrink: 0; }
.eb-panel-text { font-size: 12.5px; color: rgba(0,0,0,0.6); line-height: 1.7; }
.eb-panel-highlight { margin-top: 10px; padding: 10px 14px; background: rgba(41,112,255,0.04); border-left: 3px solid #2970ff; border-radius: 0 8px 8px 0; font-size: 12px; color: #2970ff; line-height: 1.6; }
.eb-panel-kpi-row { display: flex; gap: 12px; margin-top: 12px; }
.eb-panel-kpi { flex: 1; text-align: center; padding: 10px; background: #f8f9fb; border-radius: 8px; }
.eb-panel-kpi-val { display: block; font-size: 16px; font-weight: 700; color: #1a1a1a; }
.eb-panel-kpi-label { display: block; font-size: 10px; color: rgba(0,0,0,0.4); margin-top: 2px; }
.eb-panel-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.eb-panel-table th { text-align: left; font-weight: 500; color: rgba(0,0,0,0.4); padding: 6px 0; border-bottom: 1px solid #f0f0f0; }
.eb-panel-table td { padding: 8px 0; border-bottom: 1px solid #f8f8f8; color: rgba(0,0,0,0.65); }
.eb-panel-timeline { display: flex; flex-direction: column; gap: 8px; }
.eb-panel-tl-item { display: flex; gap: 10px; font-size: 12px; line-height: 1.5; }
.eb-panel-tl-date { color: rgba(0,0,0,0.35); min-width: 56px; flex-shrink: 0; font-weight: 500; }
.biz-flow-briefing-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}
.biz-flow-briefing-icon {
  font-size: 24px;
}
.biz-flow-briefing-title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
}
.biz-flow-briefing-sub {
  font-size: 12px;
  color: rgba(0,0,0,0.4);
  margin-top: 2px;
}
.biz-flow-briefing-sections {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.biz-flow-brief-sec-title {
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(0,0,0,0.7);
  margin-bottom: 4px;
}
.biz-flow-brief-sec-text {
  font-size: 12.5px;
  color: rgba(0,0,0,0.55);
  line-height: 1.6;
}
.biz-flow-briefing-actions {
  display: flex;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}
.biz-flow-btn {
  padding: 6px 16px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  background: #fff;
  font-size: 12.5px;
  color: rgba(0,0,0,0.6);
  cursor: pointer;
  transition: all 0.15s;
}
.biz-flow-btn:hover { background: #f5f5f5; }
.biz-flow-btn.primary {
  background: #2970ff;
  color: #fff;
  border-color: #2970ff;
}
.biz-flow-btn.primary:hover { background: #1d5ed9; }

/* Data card (cost analysis) */
.biz-flow-data-card {
  background: #fff;
  border: 1px solid #eff1f4;
  border-radius: 14px;
  padding: 18px;
  max-width: 480px;
}
.biz-flow-data-title {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 14px;
}
.biz-flow-data-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.biz-flow-data-item {
  text-align: center;
}
.biz-flow-data-val {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
}
.biz-flow-data-label {
  display: block;
  font-size: 10px;
  color: rgba(0,0,0,0.4);
  margin-top: 2px;
}
.biz-flow-data-breakdown {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.biz-flow-data-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}
.biz-flow-data-bar-label {
  font-size: 11px;
  color: rgba(0,0,0,0.5);
  width: 64px;
  flex-shrink: 0;
}
.biz-flow-data-bar-track {
  flex: 1;
  height: 6px;
  background: #f0f0f0;
  border-radius: 3px;
  overflow: hidden;
}
.biz-flow-data-bar-fill {
  height: 100%;
  border-radius: 3px;
}
.biz-flow-data-bar-val {
  font-size: 11px;
  font-weight: 600;
  color: rgba(0,0,0,0.6);
  width: 28px;
  text-align: right;
}

/* Person recommendation cards */
.biz-flow-recommend-title {
  font-size: 14px;
  font-weight: 500;
  color: rgba(0,0,0,0.7);
  margin-bottom: 14px;
}
.biz-flow-person-card.best {
  background: #fff;
  border: 1px solid #d0dcf0;
  border-left: 4px solid #2970ff;
  border-radius: 14px;
  padding: 20px;
  position: relative;
  margin-bottom: 6px;
}
.biz-flow-person-badge {
  position: absolute;
  top: 0;
  right: 16px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: #2970ff;
  padding: 4px 12px;
  border-radius: 0 0 8px 8px;
}
.biz-flow-person-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.biz-flow-person-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.biz-flow-person-name {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
}
.biz-flow-person-role {
  font-size: 12.5px;
  color: rgba(0,0,0,0.45);
  margin-top: 2px;
}
.biz-flow-person-reason {
  font-size: 13px;
  color: rgba(0,0,0,0.6);
  line-height: 1.7;
  margin-bottom: 12px;
  background: #f8f9fb;
  padding: 10px 14px;
  border-radius: 8px;
}
.biz-flow-person-tags {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.biz-flow-ptag {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 4px;
  background: rgba(41,112,255,0.06);
  color: #2970ff;
}
.biz-flow-ptag.accent {
  background: rgba(239,68,68,0.08);
  color: #ef4444;
}
.biz-flow-person-actions {
  display: flex;
  gap: 10px;
}
.biz-flow-person-btn {
  flex: 1;
  padding: 10px 0;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: rgba(0,0,0,0.6);
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}
.biz-flow-person-btn:hover { background: #f5f5f5; }
.biz-flow-person-btn.primary {
  background: #2970ff;
  color: #fff;
  border-color: #2970ff;
}
.biz-flow-person-btn.primary:hover { background: #1d5ed9; }
.biz-flow-others-title {
  font-size: 13px;
  font-weight: 600;
  color: rgba(0,0,0,0.55);
  margin: 16px 0 10px;
}
.biz-flow-others-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.biz-flow-person-card-sm {
  background: #fff;
  border: 1px solid #eff1f4;
  border-radius: 12px;
  padding: 16px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.biz-flow-person-avatar-sm {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 8px;
}
.biz-flow-person-name-sm {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 2px;
}
.biz-flow-person-role-sm {
  font-size: 11.5px;
  color: rgba(0,0,0,0.4);
  margin-bottom: 8px;
}
.biz-flow-person-tags-sm {
  display: flex;
  gap: 4px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.biz-flow-ptag-sm {
  font-size: 10px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(41,112,255,0.06);
  color: #2970ff;
}
.biz-flow-ptag-sm.accent {
  background: rgba(239,68,68,0.08);
  color: #ef4444;
}
.biz-flow-ptag-sm.green {
  background: rgba(22,163,74,0.08);
  color: #16a34a;
}
.biz-flow-ptag.green {
  background: rgba(22,163,74,0.08);
  color: #16a34a;
}
.biz-flow-person-desc-sm {
  font-size: 11px;
  color: rgba(0,0,0,0.45);
  line-height: 1.5;
  margin-bottom: 10px;
  min-height: 32px;
}
.biz-flow-person-actions-sm {
  display: flex;
  gap: 6px;
  width: 100%;
}
.biz-flow-person-btn-sm {
  flex: 1;
  padding: 6px 0;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  background: #fff;
  font-size: 11.5px;
  font-weight: 500;
  color: rgba(0,0,0,0.55);
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}
.biz-flow-person-btn-sm:hover { background: #f5f5f5; }
.biz-flow-person-btn-sm.primary {
  background: #2970ff;
  color: #fff;
  border-color: #2970ff;
}
.biz-flow-person-btn-sm.primary:hover { background: #1d5ed9; }

/* ---- AI Project Flow: Match Score Ring ---- */
.biz-flow-person-header-info { flex: 1; }
.biz-flow-match-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.biz-flow-match-ring {
  position: relative;
  width: 52px;
  height: 52px;
}
.biz-flow-match-ring svg {
  width: 52px;
  height: 52px;
}
.biz-flow-match-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #2970ff;
}
.biz-flow-match-label {
  font-size: 10px;
  color: rgba(0,0,0,0.4);
  font-weight: 500;
}

/* ---- AI Project Flow: Thinking Steps ---- */
.biz-flow-thinking {
  background: #f8f9fb;
  border-radius: 10px;
  padding: 14px 16px;
}
.biz-flow-thinking-title {
  font-size: 13px;
  font-weight: 600;
  color: #2970ff;
  margin-bottom: 10px;
}
.biz-flow-thinking-steps {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.biz-flow-thinking-step {
  font-size: 12.5px;
  color: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  gap: 8px;
}
.biz-flow-step-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d0d5dd;
  flex-shrink: 0;
}
.biz-flow-step-dot.done {
  background: #16a34a;
}
.biz-flow-step-count {
  font-size: 11px;
  color: rgba(0,0,0,0.35);
  margin-left: 4px;
}

/* ---- AI Project Flow: HR Data Section ---- */
.biz-flow-hr-section {
  background: #f8f9fb;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.biz-flow-hr-block {}
.biz-flow-hr-title {
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(0,0,0,0.7);
  margin-bottom: 6px;
}
.biz-flow-hr-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.biz-flow-hr-item {
  font-size: 12.5px;
  color: rgba(0,0,0,0.55);
  line-height: 1.65;
}

/* ---- AI Project Flow: Small Card Match Badge ---- */
.biz-flow-person-card-sm {
  position: relative;
}
.biz-flow-match-badge-sm {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 10px;
  font-weight: 600;
  color: #2970ff;
  background: rgba(41,112,255,0.08);
  padding: 2px 8px;
  border-radius: 4px;
}

.biz-flow-meeting-card {
  background: #f8f9fb;
  border-radius: 10px;
  padding: 12px 16px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.biz-flow-meeting-row {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: rgba(0,0,0,0.6);
}
.biz-flow-meeting-label {
  color: rgba(0,0,0,0.4);
  flex-shrink: 0;
}
.biz-flow-person-metrics {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: rgba(0,0,0,0.5);
}
.ceo-sec-sched-status {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}
.ceo-sec-sched-status.done { background: #f5f5f5; color: #a3a3a3; }
.ceo-sec-sched-status.ongoing { background: rgba(41,112,255,0.08); color: #2970ff; }
.ceo-sec-sched-status.upcoming { background: #f0fdf4; color: #16a34a; }
.ceo-sec-sched-people {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: auto;
}
.ceo-sec-sched-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  margin-left: -6px;
}
.ceo-sec-sched-avatar:first-child { margin-left: 0; }
.ceo-sec-sched-more {
  font-size: 10px;
  color: rgba(0,0,0,0.35);
}

/* --- Schedule horizontal scroll (single row) --- */
.ceo-sched-hscroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
}
.ceo-sched-hscroll::-webkit-scrollbar { height: 4px; }
.ceo-sched-hscroll::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.08); border-radius: 4px; }
.ceo-sched-hscroll > .ceo-sec-card {
  scroll-snap-align: start;
  min-width: 240px;
  max-width: 260px;
  flex-shrink: 0;
}

/* ================================================
   Day View — Horizontal Timeline + Horizontal Cards
   ================================================ */
.ceo-day-view {
  overflow-x: auto;
  padding-bottom: 8px;
}
.ceo-day-view::-webkit-scrollbar { height: 4px; }
.ceo-day-view::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.08); border-radius: 4px; }

.ceo-day-tl-row {
  display: flex;
  position: relative;
  padding: 16px 0 12px;
  min-width: max-content;
}
.ceo-day-tl-row::before {
  content: '';
  position: absolute;
  top: 21px;
  left: 0;
  right: 0;
  height: 2px;
  background: #e5e7eb;
}
.ceo-day-tl-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 220px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.ceo-day-tl-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d4d4d4;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #e5e7eb;
  transition: all 0.2s;
}
.ceo-day-tl-cell.done .ceo-day-tl-dot { background: #a3a3a3; box-shadow: 0 0 0 2px #d4d4d4; }
.ceo-day-tl-cell.active .ceo-day-tl-dot { width: 12px; height: 12px; background: #2970ff; box-shadow: 0 0 0 3px rgba(41,112,255,0.25); }
.ceo-day-tl-time { font-size: 12px; color: rgba(0,0,0,0.35); font-weight: 500; white-space: nowrap; }
.ceo-day-tl-cell.active .ceo-day-tl-time { color: #2970ff; font-weight: 700; font-size: 13px; }

.ceo-day-cards-row {
  display: flex;
  gap: 12px;
  min-width: max-content;
  padding: 0 0 4px;
  align-items: stretch;
}
.ceo-day-card {
  width: 210px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  padding: 16px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.ceo-day-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); border-color: rgba(0,0,0,0.1); }
.ceo-day-card--active { border-color: #2970ff; background: linear-gradient(180deg, rgba(41,112,255,0.03) 0%, #fff 100%); box-shadow: 0 0 0 1px rgba(41,112,255,0.12); }
.ceo-day-card--done { opacity: 0.55; }

.ceo-day-card-header { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.ceo-day-card-time { font-size: 11.5px; color: rgba(0,0,0,0.4); font-weight: 500; }
.ceo-day-card-type { font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.ceo-day-card-title { font-size: 14px; font-weight: 600; color: #1a1a1a; line-height: 1.4; }
.ceo-day-card-detail { font-size: 11.5px; color: rgba(0,0,0,0.4); line-height: 1.4; }
.ceo-day-card-insight,
.ceo-day-card-decision,
.ceo-day-card-prep { font-size: 11.5px; color: rgba(0,0,0,0.5); line-height: 1.55; display: flex; gap: 4px; align-items: flex-start; }
.ceo-day-card-conflict { font-size: 11.5px; color: #ef4444; background: #fef2f2; border-radius: 8px; padding: 6px 8px; line-height: 1.5; }
.ceo-day-card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.ceo-day-tag { font-size: 11px; padding: 3px 8px; border-radius: 6px; cursor: pointer; transition: background 0.15s; }
.ceo-day-tag.briefing { background: #eef5ff; color: #2970ff; }
.ceo-day-tag.briefing:hover { background: #dbeafe; }
.ceo-day-tag.minutes { background: #f0fbe4; color: #5fba04; }
.ceo-day-tag.followup { background: #fff7ed; color: #f59e0b; }
.ceo-day-card-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 4px; }
.ceo-day-card-status { font-size: 11px; font-weight: 600; }
.ceo-day-card-status.done { color: #a3a3a3; }
.ceo-day-card-status.ongoing { color: #2970ff; }
.ceo-day-card-status.upcoming { color: #16a34a; }
.ceo-day-card-people { display: flex; align-items: center; }
.ceo-day-card-avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; margin-left: -6px; }
.ceo-day-card-avatar:first-child { margin-left: 0; }
.ceo-day-card-more { font-size: 11px; color: rgba(0,0,0,0.35); margin-left: 4px; }

/* ================================================
   Day View V2 — Vertical Timeline (图片参考风格)
   ================================================ */

/* Two-column layout: timeline left + sidebar right */
.ceo-dayv2-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.ceo-dayv2 {
  display: flex;
  flex-direction: column;
  flex: 5;
  min-width: 0;
  gap: 0;
  padding: 4px 0 12px;
}

/* Each row: left (time + timeline) + right (card) */
.ceo-dayv2-row {
  display: flex;
  align-items: stretch;
  min-height: 0;
}

/* Left column: time + dot + line */
.ceo-dayv2-left {
  display: flex;
  align-items: flex-start;
  gap: 0;
  width: 90px;
  flex-shrink: 0;
  padding-top: 18px;
}

.ceo-dayv2-time {
  font-size: 14px;
  font-weight: 600;
  color: rgba(0,0,0,0.7);
  width: 50px;
  text-align: right;
  flex-shrink: 0;
  line-height: 1;
}
.ceo-dayv2-row--done .ceo-dayv2-time {
  color: rgba(0,0,0,0.3);
}
.ceo-dayv2-row--active .ceo-dayv2-time {
  color: #2970ff;
}

/* Timeline track: dot + continuous vertical line */
.ceo-dayv2-tl {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 30px;
  flex-shrink: 0;
  position: relative;
}

/* Continuous line spanning full row height */
.ceo-dayv2-row:not(:last-child) .ceo-dayv2-tl::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: #e5e7eb;
  z-index: 1;
}
.ceo-dayv2-row--done:not(:last-child) .ceo-dayv2-tl::after {
  background: #d4d4d4;
}

.ceo-dayv2-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c4c9d4;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  transition: all 0.2s;
}
.ceo-dayv2-dot.active {
  width: 12px;
  height: 12px;
  background: #2970ff;
  box-shadow: 0 0 0 4px rgba(41,112,255,0.18);
}
.ceo-dayv2-dot.done {
  background: #a3a3a3;
}

/* Right: card */
.ceo-dayv2-card {
  flex: 1;
  min-width: 0;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
}
.ceo-dayv2-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.1);
}
.ceo-dayv2-card--active {
  border-color: rgba(41,112,255,0.2);
  background: linear-gradient(180deg, rgba(41,112,255,0.02) 0%, #fff 100%);
  box-shadow: 0 2px 12px rgba(41,112,255,0.06);
}
.ceo-dayv2-card--done {
  opacity: 0.55;
}

/* Type tag */
.ceo-dayv2-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
  width: fit-content;
  letter-spacing: 0.3px;
}

/* Title */
.ceo-dayv2-title {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.4;
}

/* Time range */
.ceo-dayv2-timerange {
  font-size: 13px;
  color: rgba(0,0,0,0.35);
  font-weight: 500;
}

/* Description */
.ceo-dayv2-desc {
  font-size: 13.5px;
  color: rgba(0,0,0,0.5);
  line-height: 1.6;
  margin-top: 2px;
}

/* Bottom: avatars + status */
.ceo-dayv2-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 4px;
}

.ceo-dayv2-people {
  display: flex;
  align-items: center;
}
.ceo-dayv2-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  margin-left: -8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.ceo-dayv2-avatar:first-child {
  margin-left: 0;
}
.ceo-dayv2-more {
  font-size: 12px;
  color: rgba(0,0,0,0.35);
  margin-left: 6px;
  font-weight: 500;
}

/* Status label */
.ceo-dayv2-status {
  font-size: 12.5px;
  font-weight: 600;
}
.ceo-dayv2-status.done {
  color: #a3a3a3;
}
.ceo-dayv2-status.ongoing {
  color: #2970ff;
}
.ceo-dayv2-status.upcoming {
  color: #2970ff;
}

/* Selected row */
.ceo-dayv2-row--selected .ceo-dayv2-card {
  border-color: #2970ff;
  box-shadow: 0 2px 12px rgba(41,112,255,0.1);
}

/* ---- Day View Sidebar ---- */
.ceo-dayv2-sidebar {
  flex: 4;
  min-width: 280px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: sticky;
  top: 0;
  max-height: 70vh;
  overflow-y: auto;
}
.ceo-dayv2-sidebar::-webkit-scrollbar { width: 3px; }
.ceo-dayv2-sidebar::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.08); border-radius: 3px; }

.ceo-dayv2-sb-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.ceo-dayv2-sb-status {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: auto;
}
.ceo-dayv2-sb-status.done { background: #f5f5f5; color: #a3a3a3; }
.ceo-dayv2-sb-status.ongoing { background: rgba(41,112,255,0.08); color: #2970ff; }
.ceo-dayv2-sb-status.upcoming { background: #f0fdf4; color: #16a34a; }

.ceo-dayv2-sb-title {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 4px;
  line-height: 1.35;
}
.ceo-dayv2-sb-meta {
  font-size: 12.5px;
  color: rgba(0,0,0,0.4);
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.ceo-dayv2-sb-section {
  margin-bottom: 16px;
}
.ceo-dayv2-sb-section:last-child { margin-bottom: 0; }

.ceo-dayv2-sb-section-title {
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(0,0,0,0.65);
  margin-bottom: 8px;
}

.ceo-dayv2-sb-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ceo-dayv2-sb-list-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  color: rgba(0,0,0,0.6);
  line-height: 1.55;
}
.ceo-dayv2-sb-bullet {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #2970ff;
  flex-shrink: 0;
  margin-top: 6px;
}
.ceo-dayv2-sb-bullet.risk {
  background: #d97706;
}

.ceo-dayv2-sb-insight {
  font-size: 12.5px;
  color: rgba(0,0,0,0.55);
  line-height: 1.6;
  padding: 10px 12px;
  background: linear-gradient(135deg, rgba(41,112,255,0.04), rgba(186,133,254,0.04));
  border-radius: 8px;
  border-left: 3px solid #2970ff;
}

.ceo-dayv2-sb-alert {
  font-size: 12.5px;
  color: #92400e;
  line-height: 1.55;
  padding: 10px 12px;
  background: #FFFBE6;
  border-radius: 8px;
  border-left: 3px solid #d97706;
}

.ceo-dayv2-sb-materials {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ceo-dayv2-sb-material-item {
  display: flex;
  align-items: center;
  font-size: 12.5px;
  color: rgba(0,0,0,0.6);
  padding: 8px 10px;
  background: #f8f9fb;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}
.ceo-dayv2-sb-material-item:hover {
  background: rgba(41,112,255,0.06);
  color: #2970ff;
}

.ceo-dayv2-sb-strategy {
  font-size: 12.5px;
  color: rgba(0,0,0,0.6);
  line-height: 1.6;
  padding: 10px 12px;
  background: #f0fdf4;
  border-radius: 8px;
  border-left: 3px solid #16a34a;
}

.ceo-dayv2-sb-decision {
  font-size: 12.5px;
  color: #15803d;
  line-height: 1.55;
  padding: 10px 12px;
  background: #f0fdf4;
  border-radius: 8px;
}

.ceo-dayv2-sb-people {
  display: flex;
  align-items: center;
  gap: 0;
}
.ceo-dayv2-sb-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  margin-left: -6px;
}
.ceo-dayv2-sb-avatar:first-child { margin-left: 0; }
.ceo-dayv2-sb-more-count {
  font-size: 12px;
  color: rgba(0,0,0,0.4);
  margin-left: 8px;
}

/* ---- Horizontal Todo Cards in Feed ---- */
.ceo-section-cards--todo {
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.ceo-sec-card--todo {
  position: relative;
  padding: 16px;
  gap: 0;
}
/* Priority accent — top-left dot instead of left border */
.ceo-sec-card--todo::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 16px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d4d4d4;
}
.ceo-sec-card--todo.urgent::before { background: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,0.12); }
.ceo-sec-card--todo.normal::before { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,0.10); }
.ceo-sec-card--todo.low::before { background: #d4d4d4; }
.ceo-sec-todo-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-left: 16px;
}
.ceo-sec-todo-priority {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}
.ceo-sec-todo-priority.urgent { background: #fef2f2; color: #dc2626; }
.ceo-sec-todo-priority.normal { background: #fff7e6; color: #d97706; }
.ceo-sec-todo-priority.low { background: #f5f5f5; color: rgba(0,0,0,0.4); }
.ceo-sec-todo-source {
  font-size: 10px;
  color: rgba(0,0,0,0.32);
}
.ceo-sec-todo-text {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.5;
  margin-bottom: 6px;
}
.ceo-sec-todo-detail {
  font-size: 11px;
  color: rgba(0,0,0,0.4);
  line-height: 1.5;
  margin-bottom: 10px;
}
.ceo-sec-todo-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,0.04);
}
.ceo-sec-todo-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.ceo-sec-todo-assignee {
  font-size: 11px;
  color: rgba(0,0,0,0.45);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ceo-sec-todo-due {
  font-size: 10px;
  color: rgba(0,0,0,0.3);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 3px;
}
.ceo-sec-todo-due.overdue {
  color: #dc2626;
  font-weight: 500;
}
.ceo-sec-todo-action-row {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.ceo-sec-todo-action {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.ceo-sec-todo-action.primary {
  background: rgba(41,112,255,0.08);
  color: #2970FF;
}
.ceo-sec-todo-action.primary:hover {
  background: rgba(41,112,255,0.14);
}
.ceo-sec-todo-action.ghost {
  background: transparent;
  color: rgba(0,0,0,0.36);
}
.ceo-sec-todo-action.ghost:hover {
  background: rgba(0,0,0,0.04);
  color: rgba(0,0,0,0.56);
}

/* Section entrance animation */
.ceo-section {
  animation: pfCardIn 0.4s ease both;
}
.ceo-section:nth-child(2) { animation-delay: 0.1s; }
.ceo-section:nth-child(3) { animation-delay: 0.2s; }
.ceo-section:nth-child(4) { animation-delay: 0.3s; }

/* Schedule cards — flexible grid for variable count */
.ceo-section:last-child .ceo-section-cards {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

/* ---- Floating Sidebar ---- */
.ceo-sidebar-float {
  flex: 1;
  min-width: 240px;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ceo-sidebar-float::-webkit-scrollbar { width: 3px; }
.ceo-sidebar-float::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.06); border-radius: 3px; }

.ceo-sidebar-card--todo-only {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #eef0f3;
  padding: 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ceo-sidebar-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #eef0f3;
  padding: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.ceo-sidebar-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.ceo-sidebar-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}
.ceo-sidebar-card .ceo-card-detail-btn {
  font-size: 11px;
  padding: 3px 8px;
}
.ceo-sidebar-card .ceo-todo-item {
  padding: 6px 0;
}
.ceo-sidebar-card .ceo-todo-text {
  font-size: 12px;
}
.ceo-sidebar-card .ceo-todo-source {
  display: none;
}

/* ---- Todo Cards (sidebar) ---- */
.ceo-todo-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  overflow-y: auto;
}
.ceo-todo-cards::-webkit-scrollbar { width: 3px; }
.ceo-todo-cards::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.06); border-radius: 3px; }

.ceo-todo-card {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #eef0f3;
  background: #fff;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.15s, border-color 0.2s;
}
.ceo-todo-card:hover {
  box-shadow: 0 3px 12px rgba(0,0,0,0.06);
  transform: translateY(-1px);
  border-color: #dde0e4;
}
.ceo-todo-card.urgent {
  border-left: 3px solid #dc2626;
}
.ceo-todo-card.normal {
  border-left: 3px solid #f59e0b;
}
.ceo-todo-card.low {
  border-left: 3px solid #d4d4d4;
}
.ceo-todo-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.ceo-todo-card-priority {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}
.ceo-todo-card-priority.urgent { background: #fef2f2; color: #dc2626; }
.ceo-todo-card-priority.normal { background: #fff7e6; color: #d97706; }
.ceo-todo-card-priority.low { background: #f5f5f5; color: rgba(0,0,0,0.4); }
.ceo-todo-card-source {
  font-size: 10px;
  color: rgba(0,0,0,0.32);
}
.ceo-todo-card-text {
  font-size: 13px;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.5;
  margin-bottom: 4px;
}
.ceo-todo-card-detail {
  font-size: 11px;
  color: rgba(0,0,0,0.4);
  line-height: 1.4;
}

.ceo-sidebar-card .ceo-schedule-timeline-wrap {
  max-height: 320px;
  overflow-y: auto;
}
.ceo-sidebar-card .ceo-schedule-timeline-wrap::-webkit-scrollbar { width: 3px; }
.ceo-sidebar-card .ceo-schedule-timeline-wrap::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.06); border-radius: 3px; }

/* Schedule cards */
.ceo-sidebar-card .ceo-schedule-timeline {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-left: 0;
  padding-left: 0;
}
.ceo-sidebar-card .ceo-schedule-timeline::before { display: none; }

.ceo-sc-card {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #eee;
  background: #f8f9fb;
  transition: transform 0.15s;
}
.ceo-sc-card:hover {
  transform: translateY(-1px);
}
.ceo-sc-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.ceo-sc-card-name {
  font-size: 12px;
  font-weight: 600;
  color: #1a1a1a;
}
.ceo-sc-card-status {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 6px;
  font-weight: 500;
  flex-shrink: 0;
}
.ceo-sc-card-status.done { background: #f0f0f0; color: rgba(0,0,0,0.35); }
.ceo-sc-card-status.ongoing { background: #dcfce7; color: #16a34a; }
.ceo-sc-card-status.upcoming { background: #dbeafe; color: #2563eb; }
.ceo-sc-card-time {
  font-size: 11px;
  color: rgba(0,0,0,0.4);
  line-height: 1.5;
}

.ceo-dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.ceo-dash-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ceo-dash-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}
.ceo-dash-date {
  font-size: 13px;
  color: rgba(0,0,0,0.36);
}
.ceo-dash-refresh {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #e8e8e8;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(0,0,0,0.5);
  transition: all 0.15s;
}
.ceo-dash-refresh:hover {
  background: #f5f5f5;
  color: rgba(0,0,0,0.8);
}

/* ---- Pinned AI Partners (Sidebar) ---- */
.sidebar-pinned-partners {
  padding: 0;
  margin-bottom: 4px;
}
.sidebar-pinned-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar-pinned-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
}
.sidebar-pinned-item:hover {
  background: rgba(41,112,255,0.06);
}
.sidebar-pinned-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.sidebar-pinned-name {
  font-size: 13px;
  color: rgba(0,0,0,0.7);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Filter Dimension Tabs */
.ceo-filter-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.ceo-filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(0,0,0,0.5);
  background: #fff;
  border: 1px solid #eee;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  user-select: none;
}
.ceo-filter-tab:hover {
  color: rgba(0,0,0,0.8);
  border-color: #d0d0d0;
  background: #fafafa;
}
.ceo-filter-tab.active {
  color: #2970FF;
  background: #EEF5FF;
  border-color: #c5d8ff;
}
.ceo-filter-tab svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* KPI Row */
.ceo-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  flex-shrink: 0;
  position: relative;
}
.ceo-kpi-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid #f0f0f0;
  transition: box-shadow 0.2s;
  position: relative;
}
.ceo-kpi-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}
.ceo-kpi-ask-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 14px;
  border: 1px solid rgba(41,112,255,0.2);
  background: rgba(41,112,255,0.06);
  color: #2970FF;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  font-family: inherit;
}
.ceo-kpi-ask-btn:hover {
  background: rgba(41,112,255,0.12);
  border-color: rgba(41,112,255,0.35);
  box-shadow: 0 2px 8px rgba(41,112,255,0.15);
}
.ceo-kpi-label {
  font-size: 13px;
  color: rgba(0,0,0,0.46);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ceo-kpi-value {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
}
.ceo-kpi-change {
  font-size: 12px;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.ceo-kpi-change.up { color: #16a34a; }
.ceo-kpi-change.down { color: #dc2626; }
.ceo-kpi-change.flat { color: rgba(0,0,0,0.36); }

/* 3-column grid */
.ceo-dash-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 16px;
  flex-shrink: 0;
}

/* Cards */
.ceo-dash-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid #f0f0f0;
}
.ceo-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.ceo-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ceo-card-icon {
  flex-shrink: 0;
  vertical-align: middle;
}
.ceo-card-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ceo-card-ask-ai {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid rgba(41,112,255,0.2);
  background: rgba(41,112,255,0.06);
  color: #2970FF;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  font-family: inherit;
  flex-shrink: 0;
}
.ceo-card-ask-ai:hover {
  background: rgba(41,112,255,0.12);
  border-color: rgba(41,112,255,0.35);
  box-shadow: 0 2px 8px rgba(41,112,255,0.15);
}
.ceo-card-detail-btn {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px 0;
  border: none;
  background: transparent;
  color: rgba(0,0,0,0.36);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s ease;
  white-space: nowrap;
  font-family: inherit;
  flex-shrink: 0;
}
.ceo-card-detail-btn:hover {
  color: #2970FF;
}
.ceo-card-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  background: #fef2f2;
  color: #dc2626;
  font-weight: 600;
}

/* Alerts */
.ceo-alerts-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ceo-alert-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s;
}
.ceo-alert-item:hover { background: #fafafa; }
.ceo-alert-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}
.ceo-alert-dot.critical { background: #dc2626; }
.ceo-alert-dot.warning { background: #f59e0b; }
.ceo-alert-dot.info { background: #3b82f6; }
.ceo-alert-text {
  font-size: 13px;
  color: rgba(0,0,0,0.72);
  line-height: 1.5;
}
.ceo-alert-meta {
  font-size: 11px;
  color: rgba(0,0,0,0.36);
  margin-top: 4px;
}

/* AI Insights */
.ceo-insights-content {
  font-size: 14px;
  color: rgba(0,0,0,0.72);
  line-height: 1.8;
}
.ceo-insights-content p { margin: 0 0 8px; }
.ceo-insights-content p:last-child { margin-bottom: 0; }
.ceo-insights-content strong { color: rgba(0,0,0,0.88); }

.ceo-insight-section {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fafbfc;
  border: 1px solid rgba(0,0,0,0.04);
}
.ceo-insight-section:last-child { margin-bottom: 0; }
.ceo-insight-section-title {
  margin-bottom: 8px;
}
.ceo-insight-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 6px;
}
.ceo-insight-badge.internal {
  background: #eef5ff;
  color: #2970FF;
}
.ceo-insight-badge.external {
  background: #f0fdf4;
  color: #16a34a;
}
.ceo-insight-badge.recommend {
  background: #fff7ed;
  color: #d97706;
}
.ceo-insights-actions {
  margin-top: 16px;
  display: flex;
  gap: 8px;
}
.ceo-insight-btn {
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  background: #fff;
  font-size: 13px;
  color: rgba(0,0,0,0.64);
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.ceo-insight-btn:hover {
  border-color: #2970FF;
  color: #2970FF;
  background: #f0f5ff;
}

/* Todo */
.ceo-todo-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ceo-todo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
}
.ceo-todo-item:hover { background: #fafafa; }
.ceo-todo-priority {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
  flex-shrink: 0;
}
.ceo-todo-priority.urgent { background: #fef2f2; color: #dc2626; }
.ceo-todo-priority.normal { background: #fff7e6; color: #d97706; }
.ceo-todo-priority.low { background: #f5f5f5; color: rgba(0,0,0,0.4); }
.ceo-todo-text {
  font-size: 13px;
  color: rgba(0,0,0,0.72);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ceo-todo-source {
  font-size: 11px;
  color: rgba(0,0,0,0.3);
  flex-shrink: 0;
}

/* ── Todo view toggle ── */
.ceo-todo-view-toggle {
  display: flex;
  gap: 0;
  background: #f5f5f5;
  border-radius: 6px;
  padding: 2px;
}
.ceo-todo-view-btn {
  font-size: 11px;
  padding: 3px 10px;
  border: none;
  border-radius: 5px;
  background: transparent;
  color: rgba(0,0,0,0.45);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  font-weight: 500;
}
.ceo-todo-view-btn:hover { color: rgba(0,0,0,0.7); }
.ceo-todo-view-btn.active {
  background: #fff;
  color: #1a1a1a;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* ── Staff view todo items ── */
.ceo-todo-item.staff-view {
  flex-wrap: wrap;
  gap: 6px 0;
  padding: 8px 10px;
}
.staff-todo-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.staff-todo-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: rgba(0,0,0,0.35);
}
.staff-todo-assignee {
  color: rgba(0,0,0,0.55);
  font-weight: 500;
}
.staff-todo-dept {
  color: rgba(0,0,0,0.3);
}
.staff-todo-due {
  color: rgba(0,0,0,0.35);
}
.staff-todo-status {
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 500;
}
.staff-todo-status.pending  { background: #fff7e6; color: #d97706; }
.staff-todo-status.claimed  { background: #eff6ff; color: #2563eb; }
.staff-todo-status.progress { background: #f0fdf4; color: #16a34a; }

.staff-todo-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  align-items: center;
}
.staff-todo-btn {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 4px;
  border: 1px solid #e5e5e5;
  background: #fff;
  color: rgba(0,0,0,0.55);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.staff-todo-btn:hover { border-color: #d0d0d0; color: rgba(0,0,0,0.75); }
.staff-todo-btn.claim   { background: #2970FF; color: #fff; border-color: #2970FF; }
.staff-todo-btn.claim:hover { background: #1d5de0; }
.staff-todo-btn.start   { background: #16a34a; color: #fff; border-color: #16a34a; }
.staff-todo-btn.start:hover { background: #15803d; }
.staff-todo-btn.done    { background: #16a34a; color: #fff; border-color: #16a34a; }
.staff-todo-btn.done:hover  { background: #15803d; }
.staff-todo-btn.urge    { background: #fff7e6; color: #d97706; border-color: #fde68a; }
.staff-todo-btn.urge:hover  { background: #fef3c7; }

/* Section divider between todo and watched */
.ceo-section-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 14px 0;
  border: none;
}

/* Watched items */
.ceo-watched-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ceo-watched-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}
.ceo-watched-item:hover { background: #f0f5ff; }
.ceo-watched-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2970FF;
  flex-shrink: 0;
}
.ceo-watched-text {
  font-size: 13px;
  color: rgba(0,0,0,0.72);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ceo-watched-source {
  font-size: 11px;
  color: rgba(0,0,0,0.3);
  flex-shrink: 0;
}
.ceo-watched-empty {
  font-size: 12px;
  color: rgba(0,0,0,0.25);
  text-align: center;
  padding: 12px 0;
}

/* Task board watch button */
.margin-watch-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 500;
  color: rgba(0,0,0,0.35);
  background: none;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 14px;
  padding: 2px 10px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  margin-left: auto;
  margin-right: 8px;
}
.margin-watch-btn:hover {
  color: #2970FF;
  border-color: rgba(41,112,255,0.3);
  background: rgba(41,112,255,0.04);
}
.margin-watch-btn.watched {
  color: #2970FF;
  border-color: rgba(41,112,255,0.25);
  background: rgba(41,112,255,0.06);
}

/* Schedule */
.ceo-schedule-card {
  flex-shrink: 0;
  overflow: visible;
}
.ceo-schedule-list {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
}
.ceo-schedule-list::-webkit-scrollbar { display: none; }
.ceo-schedule-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid #f0f0f0;
  background: #fafbfc;
  flex-shrink: 0;
  min-width: 240px;
  cursor: pointer;
  transition: all 0.15s;
}
.ceo-schedule-item:hover {
  border-color: #d0d4da;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.ceo-schedule-time {
  font-size: 14px;
  font-weight: 600;
  color: #2970FF;
  white-space: nowrap;
}
.ceo-schedule-info {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.ceo-schedule-name {
  font-size: 13px;
  font-weight: 500;
  color: #1a1a1a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ceo-schedule-detail {
  font-size: 11px;
  color: rgba(0,0,0,0.36);
  margin-top: 2px;
}

/* Timer badge for scheduled meetings */
.ceo-schedule-timer-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
  position: relative;
  cursor: pointer;
  vertical-align: middle;
}
.ceo-schedule-item.has-timer {
  position: relative;
}
.ceo-schedule-timer-badge::after {
  content: '定时任务：会议结束后，AI 将自动把会议纪要和待办事项发送给对应的参会人员';
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: rgba(0,0,0,0.72);
  font-size: 12px;
  line-height: 1.6;
  padding: 10px 14px;
  border-radius: 10px;
  width: 240px;
  white-space: normal;
  word-break: break-all;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10), 0 1px 4px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.06);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 100;
}
.ceo-schedule-timer-badge:hover::after {
  opacity: 1;
  visibility: visible;
}


/* Dashboard 2-column grid */
.ceo-dash-grid-2col {
  grid-template-columns: 1fr 1fr;
}

/* Decision Simulation */
.ceo-decision-desc {
  font-size: 13px;
  color: rgba(0,0,0,0.5);
  line-height: 1.6;
  margin-bottom: 16px;
}
.ceo-decision-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.ceo-decision-tag {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid #e8e8e8;
  background: #fafafa;
  font-size: 12px;
  color: rgba(0,0,0,0.6);
  cursor: pointer;
  transition: all 0.15s;
}
.ceo-decision-tag:hover {
  border-color: #2970FF;
  color: #2970FF;
  background: #f0f5ff;
}
.ceo-decision-input-row {
  display: flex;
  gap: 8px;
}
.ceo-decision-input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  font-size: 13px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s;
}
.ceo-decision-input:focus { border-color: #2970FF; }
.ceo-decision-btn {
  padding: 10px 20px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #2970FF, #3b82f6);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  white-space: nowrap;
}
.ceo-decision-btn:hover {
  box-shadow: 0 4px 12px rgba(41,112,255,0.3);
}

/* Org Health */
.ceo-org-score {
  font-size: 20px;
  font-weight: 700;
  color: #16a34a;
}
.ceo-org-metrics {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.ceo-org-metric {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ceo-org-metric-label {
  font-size: 13px;
  color: rgba(0,0,0,0.6);
  width: 80px;
  flex-shrink: 0;
}
.ceo-org-bar-track {
  flex: 1;
  height: 8px;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
}
.ceo-org-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
}
.ceo-org-bar.good { background: #16a34a; }
.ceo-org-bar.warn { background: #f59e0b; }
.ceo-org-bar.bad { background: #dc2626; }
.ceo-org-metric-value {
  font-size: 13px;
  font-weight: 600;
  color: rgba(0,0,0,0.72);
  width: 40px;
  text-align: right;
  flex-shrink: 0;
}
.ceo-org-risks {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ceo-org-risk {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #fef8f0;
  font-size: 12px;
  color: rgba(0,0,0,0.64);
  cursor: pointer;
  transition: background 0.15s;
}
.ceo-org-risk:hover { background: #fef2e0; }
.ceo-org-risk-icon { flex-shrink: 0; }

/* ================================================
   Scroll-Down Hint Arrow (to Kanban)
   ================================================ */
.scroll-down-hint {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 50;
  opacity: 0.4;
  transition: opacity 0.3s ease;
  animation: scrollHintBounce 2s ease-in-out infinite;
}
.scroll-down-hint:hover {
  opacity: 0.7;
}
.scroll-down-arrow {
  color: rgba(0,0,0,0.4);
}
@keyframes scrollHintBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}


/* ================================================
   CEO Dashboard — AI Partner Recommendations
   ================================================ */
.ceo-ai-partners {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.ceo-ai-partner-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #fafafa;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
  border: 1px solid rgba(0,0,0,0.04);
}
.ceo-ai-partner-card:hover {
  background: #f5f5f5;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.ceo-partner-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fff;
  display: block;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  object-fit: cover;
}
.ceo-partner-info {
  min-width: 0;
}
.ceo-partner-name {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.3;
}
.ceo-partner-desc {
  font-size: 11px;
  color: rgba(0,0,0,0.4);
  line-height: 1.4;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}


/* ================================================
   Smart Schedule Hint Bar
   ================================================ */
.biz-schedule-hint {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 420px;
  margin: 24px auto 0;
  animation: hintSlideIn 0.5s cubic-bezier(0.23,1,0.32,1);
}
@keyframes hintSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.biz-schedule-hint.dismissed {
  animation: hintFadeOut 0.3s ease-in forwards;
}
@keyframes hintFadeOut {
  to { opacity: 0; transform: translateY(-6px); height: 0; margin: 0; overflow: hidden; }
}
.biz-hint-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  margin-top: -10px;
  margin-left: 36px;
  animation: hintAvatarPop 2s ease-out forwards;
}
@keyframes hintAvatarPop {
  0%   { transform: scale(0.3) rotate(-15deg); opacity: 0; }
  25%  { transform: scale(1.15) rotate(5deg); opacity: 1; }
  40%  { transform: scale(0.95) rotate(-3deg); }
  55%  { transform: scale(1.05) rotate(1deg); }
  70%  { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
.biz-hint-bubble {
  position: relative;
  background: #f7f7f8;
  border-radius: 2px 14px 14px 14px;
  padding: 12px 16px;
  flex: 1;
}
.biz-hint-bubble-arrow {
  position: absolute;
  left: -6px;
  top: 10px;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-right: 6px solid #f7f7f8;
}
.biz-hint-msg {
  font-size: 13px;
  color: #333;
  line-height: 1.6;
  margin: 0 0 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.biz-hint-msg em {
  font-style: normal;
  font-weight: 600;
  color: #2970FF;
}
.biz-hint-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}
.biz-hint-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  color: #2970FF;
  background: rgba(41,112,255,0.06);
  border: 1px solid rgba(41,112,255,0.15);
  border-radius: 16px;
  padding: 5px 14px;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.biz-hint-btn-primary:hover {
  background: rgba(41,112,255,0.12);
}
.biz-hint-btn-ghost {
  font-size: 12px;
  color: rgba(0,0,0,0.3);
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px 8px;
  transition: color 0.15s;
  white-space: nowrap;
}
.biz-hint-btn-ghost:hover {
  color: rgba(0,0,0,0.5);
}


/* ================================================
   华东毛利率分析 — 对话链样式
   ================================================ */

/* Thinking animation */
.margin-thinking {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: rgba(0,0,0,0.45);
}
.margin-thinking-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #276ff5;
  animation: marginPulse 1s ease-in-out infinite;
}
@keyframes marginPulse {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Analysis card */
.margin-analysis { font-size: 13.5px; line-height: 1.7; }
.margin-analysis-title { font-size: 15px; font-weight: 700; margin-bottom: 8px; color: #1a1a1a; }
.margin-analysis-summary { color: rgba(0,0,0,0.7); margin-bottom: 14px; }
.margin-analysis-items { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.margin-analysis-item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 12px; background: #fafbfc; border-radius: 10px; border: 1px solid rgba(0,0,0,0.04);
}
.margin-item-num {
  width: 22px; height: 22px; border-radius: 50%; background: #276ff5; color: #fff;
  font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px;
}
.margin-analysis-item div { font-size: 13px; color: rgba(0,0,0,0.72); }
.margin-analysis-item strong { color: #1a1a1a; }
.margin-analysis-footer {
  padding: 10px 14px; background: #FFF8E6; border-radius: 8px; font-size: 13px; color: #8B6914;
  border-left: 3px solid #F5A623;
}

/* Task assignment */
.margin-task-assign-title { font-size: 14px; font-weight: 600; color: #1a1a1a; }

/* Task board (embedded in chat) */
.margin-task-board-wrap {
  width: 100%; max-width: 680px; margin: 8px 0 8px 42px;
}
.margin-task-board {
  background: #fff; border: 1px solid rgba(0,0,0,0.08); border-radius: 14px;
  overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.margin-board-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 14px; font-weight: 600; color: #1a1a1a;
}
.margin-board-badge {
  font-size: 11px; font-weight: 500; background: #F0F5FF; color: #276ff5;
  padding: 2px 10px; border-radius: 20px;
}
.margin-board-cards { display: flex; flex-direction: column; gap: 1px; background: rgba(0,0,0,0.03); }
.margin-board-card { padding: 14px 18px; background: #fff; }
.margin-card-priority {
  display: inline-block; font-size: 10px; font-weight: 600; padding: 1px 8px;
  border-radius: 4px; margin-bottom: 6px;
}
.margin-card-priority.high { background: #FFF0ED; color: #E8553A; }
.margin-card-priority.medium { background: #FFF8E6; color: #C08800; }
.margin-card-top {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px;
}
.margin-card-title { font-size: 13.5px; font-weight: 600; color: #1a1a1a; margin-bottom: 4px; }
.margin-card-desc { font-size: 12.5px; color: rgba(0,0,0,0.5); margin-bottom: 12px; line-height: 1.5; }
.margin-card-due {
  font-size: 11px; color: rgba(0,0,0,0.4); background: #f5f6f8;
  padding: 2px 8px; border-radius: 4px; white-space: nowrap;
}

/* Role rows inside task card */
.margin-card-roles { display: flex; flex-direction: column; gap: 8px; }
.margin-role {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 10px; border-radius: 8px;
}
.margin-role-human { background: #F8FAFC; border: 1px solid rgba(0,0,0,0.05); }
.margin-role-ai { background: #F0F5FF; border: 1px solid rgba(39,111,245,0.08); }
.margin-role-avatar {
  width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.margin-role-info { flex: 1; min-width: 0; }
.margin-role-name {
  font-size: 13px; font-weight: 600; color: #1a1a1a;
  display: flex; align-items: center; gap: 6px;
}
.margin-role-badge {
  font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 4px;
  white-space: nowrap;
}
.margin-role-badge.human { background: #E8F5E9; color: #2E7D32; }
.margin-role-badge.ai { background: #E3F2FD; color: #1565C0; }
.margin-role-title {
  font-size: 11px; color: rgba(0,0,0,0.4); margin-top: 1px;
}
.margin-role-duty {
  font-size: 12px; color: rgba(0,0,0,0.6); margin-top: 4px; line-height: 1.5;
}

/* Approval detail card (from todo click) */
.margin-approval-detail-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  overflow: hidden;
}
.margin-adc-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.margin-adc-icon {
  font-size: 22px;
  flex-shrink: 0;
}
.margin-adc-title-group {
  flex: 1;
  min-width: 0;
}
.margin-adc-title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 2px;
}
.margin-adc-meta {
  font-size: 11px;
  color: rgba(0,0,0,0.38);
}
.margin-adc-status {
  font-size: 11px;
  font-weight: 600;
  color: #d97706;
  background: #fff7e6;
  padding: 3px 10px;
  border-radius: 6px;
  flex-shrink: 0;
  white-space: nowrap;
}
.margin-adc-body {
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.margin-adc-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 13px;
  line-height: 1.6;
}
.margin-adc-label {
  color: rgba(0,0,0,0.4);
  flex-shrink: 0;
  width: 70px;
  text-align: right;
}
.margin-adc-value {
  color: rgba(0,0,0,0.78);
  flex: 1;
}
.margin-adc-footer {
  padding: 12px 18px;
  border-top: 1px solid rgba(0,0,0,0.05);
  background: #fafbfc;
}
.margin-adc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #276ff5;
  cursor: pointer;
  transition: opacity 0.15s;
}
.margin-adc-link:hover {
  opacity: 0.75;
}

/* Skill recommendation */
.margin-skill-recommend {
  font-size: 13px;
}
.margin-sr-text {
  color: rgba(0,0,0,0.65);
  margin-bottom: 10px;
  line-height: 1.6;
}
.margin-sr-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #F7F9FC;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  padding: 14px 16px;
}
.margin-sr-icon {
  font-size: 22px;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: #EEF5FF;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.margin-sr-info {
  flex: 1;
  min-width: 0;
}
.margin-sr-name {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 2px;
}
.margin-sr-desc {
  font-size: 12px;
  color: rgba(0,0,0,0.45);
  line-height: 1.5;
}
.margin-sr-btn {
  flex-shrink: 0;
  padding: 7px 18px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  font-family: inherit;
}
.margin-sr-btn.primary {
  background: #276ff5;
  color: #fff;
}
.margin-sr-btn.primary:hover {
  background: #1d5fd9;
}
.margin-sr-btn.secondary {
  background: #f5f5f5;
  color: rgba(0,0,0,0.55);
}
.margin-sr-btn.secondary:hover {
  background: #ebebeb;
}
.margin-sr-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.margin-sr-chosen {
  font-size: 12px;
  font-weight: 500;
  color: #16a34a;
}
.margin-sr-chosen.secondary {
  color: rgba(0,0,0,0.4);
}

/* Approval flow */
.margin-approval-flow { font-size: 13px; }
.margin-approval-title { font-size: 14px; font-weight: 600; color: #1a1a1a; margin-bottom: 14px; }
.margin-approval-steps { display: flex; flex-direction: column; gap: 0; position: relative; padding-left: 14px; }
.margin-step {
  display: flex; align-items: flex-start; gap: 12px; padding-bottom: 18px;
  position: relative;
}
.margin-step:not(:last-child)::before {
  content: ''; position: absolute; left: 8px; top: 22px; bottom: 0;
  width: 2px; background: rgba(0,0,0,0.08);
}
.margin-step.done:not(:last-child)::before { background: #04B545; }
.margin-step.active:not(:last-child)::before { background: linear-gradient(to bottom, #276ff5 50%, rgba(0,0,0,0.08) 50%); }
.margin-step:last-child { padding-bottom: 0; }
.margin-step-icon {
  width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 10px; flex-shrink: 0; position: relative; z-index: 1;
}
.margin-step.done .margin-step-icon { background: #04B545; color: #fff; font-size: 11px; }
.margin-step.active .margin-step-icon { background: #276ff5; }
.margin-step.pending .margin-step-icon { background: #f0f0f0; color: rgba(0,0,0,0.25); font-size: 12px; }
.margin-step-pulse {
  width: 8px; height: 8px; border-radius: 50%; background: #fff;
  animation: marginStepPulse 1.5s ease-in-out infinite;
}
@keyframes marginStepPulse {
  0%, 100% { opacity: 0.6; } 50% { opacity: 1; }
}
.margin-step-info { display: flex; flex-direction: column; gap: 1px; }
.margin-step-name { font-size: 13px; font-weight: 500; color: #1a1a1a; }
.margin-step.pending .margin-step-name { color: rgba(0,0,0,0.35); }
.margin-step-time { font-size: 11px; color: rgba(0,0,0,0.35); }

/* CEO Decision */
.margin-ceo-decision { font-size: 13px; }
.margin-ceo-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.margin-ceo-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.margin-ceo-name { font-size: 14px; font-weight: 600; color: #1a1a1a; }
.margin-ceo-label { font-size: 11px; color: rgba(0,0,0,0.4); }
.margin-skill-tag {
  display: inline-block; font-size: 12px; font-weight: 500; color: #276ff5;
  background: #F0F5FF; padding: 4px 12px; border-radius: 6px; margin-bottom: 14px;
}

/* Decision model card */
.margin-decision-model {
  background: #fafbfc; border: 1px solid rgba(0,0,0,0.06); border-radius: 12px;
  padding: 18px; margin-bottom: 14px;
}
.margin-model-title { font-size: 14px; font-weight: 700; color: #1a1a1a; margin-bottom: 14px; }
.margin-model-section { margin-bottom: 16px; }
.margin-model-section:last-child { margin-bottom: 0; }
.margin-model-subtitle {
  font-size: 12.5px; font-weight: 600; color: rgba(0,0,0,0.55); margin-bottom: 8px;
  text-transform: uppercase; letter-spacing: 0.3px;
}
.margin-model-params {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
}
.margin-param {
  display: flex; justify-content: space-between; padding: 6px 10px;
  background: #fff; border-radius: 6px; border: 1px solid rgba(0,0,0,0.04);
}
.margin-param-label { font-size: 12px; color: rgba(0,0,0,0.5); }
.margin-param-val { font-size: 12px; font-weight: 600; color: #1a1a1a; }

/* Range sliders */
.margin-sliders { display: flex; flex-direction: column; gap: 14px; }
.margin-slider-row { display: flex; flex-direction: column; gap: 6px; }
.margin-slider-label {
  display: flex; justify-content: space-between; align-items: center;
}
.margin-slider-label span:first-child { font-size: 12.5px; color: rgba(0,0,0,0.55); }
.margin-slider-val {
  font-size: 13px; font-weight: 700; color: #276ff5;
  min-width: 80px; text-align: right;
}
.margin-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; border-radius: 3px;
  background: #e8ecf0; outline: none;
  transition: background 0.15s;
}
.margin-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: #276ff5; cursor: pointer;
  box-shadow: 0 1px 4px rgba(39,111,245,0.3);
  transition: transform 0.15s, box-shadow 0.15s;
}
.margin-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 2px 8px rgba(39,111,245,0.4);
}
.margin-slider::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; border: none;
  background: #276ff5; cursor: pointer;
  box-shadow: 0 1px 4px rgba(39,111,245,0.3);
}
.margin-editable-hint {
  font-size: 10.5px; font-weight: 400; color: #276ff5; margin-left: 6px;
  background: #F0F5FF; padding: 1px 8px; border-radius: 4px;
  letter-spacing: 0; text-transform: none;
}

/* Pricing comparison table */
.margin-pricing-table { font-size: 12px; border-radius: 8px; overflow: hidden; border: 1px solid rgba(0,0,0,0.06); }
.margin-pricing-header, .margin-pricing-row {
  display: grid; grid-template-columns: 90px 1fr 1fr 1fr; gap: 0;
}
.margin-pricing-header {
  background: #f0f2f5; font-weight: 600; color: rgba(0,0,0,0.6);
}
.margin-pricing-header span, .margin-pricing-row span {
  padding: 8px 10px; border-bottom: 1px solid rgba(0,0,0,0.04);
}
.margin-pricing-row { background: #fff; }
.margin-pricing-row span:first-child { font-weight: 500; color: rgba(0,0,0,0.55); }
.margin-recommended {
  background: #F0F5FF !important; color: #276ff5 !important; font-weight: 700 !important;
}

/* Advice items */
.margin-model-advice { display: flex; flex-direction: column; gap: 6px; }
.margin-advice-item {
  font-size: 12.5px; color: rgba(0,0,0,0.65); padding: 6px 0; line-height: 1.5;
}

/* Decision actions */
.margin-decision-actions { text-align: center; }
.margin-decision-summary {
  font-size: 13px; color: rgba(0,0,0,0.65); margin-bottom: 12px; line-height: 1.6;
}
.margin-approve-btn {
  display: inline-block; padding: 10px 32px; background: #276ff5; color: #fff;
  border: none; border-radius: 10px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.3s ease;
}
.margin-approve-btn:hover { background: #1a5cd4; }
.margin-approve-btn.approved {
  background: #04B545; pointer-events: none;
  animation: marginApproveFlash 0.4s ease;
}
@keyframes marginApproveFlash {
  0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); }
}

/* Final status */
.margin-final-status {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: #1a1a1a; line-height: 1.6;
  padding: 12px 16px; background: #F0FFF4; border-radius: 10px;
  border: 1px solid rgba(4,181,69,0.15);
}
.margin-final-status svg { flex-shrink: 0; }


/* Margin demo — step confirm buttons */
.margin-confirm-wrap {
  width: 100%; max-width: 680px; margin: 10px 0 10px 42px;
}
.margin-confirm-box {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 18px; background: #FAFBFC; border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
}
.margin-confirm-text {
  font-size: 13px; color: rgba(0,0,0,0.6); flex: 1;
}
.margin-confirm-btn {
  padding: 7px 20px; background: #276ff5; color: #fff; border: none;
  border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer;
  white-space: nowrap; transition: all 0.2s ease;
}
.margin-confirm-btn:hover { background: #1a5cd4; }
.margin-confirm-btn.confirmed {
  background: #04B545; pointer-events: none;
}

/* Plan selection step */
.margin-plan-select { font-size: 13.5px; line-height: 1.6; }
.margin-plan-title { font-size: 15px; font-weight: 700; margin-bottom: 4px; color: #1a1a1a; }
.margin-plan-subtitle { font-size: 13px; color: rgba(0,0,0,0.5); margin-bottom: 16px; }
.margin-plan-cards { display: flex; gap: 12px; margin-bottom: 16px; }
.margin-plan-card {
  flex: 1; border-radius: 12px; border: 1.5px solid rgba(0,0,0,0.08);
  background: #fff; cursor: pointer; transition: all 0.25s ease;
  overflow: hidden; position: relative;
}
.margin-plan-card:hover { border-color: rgba(39,111,245,0.3); box-shadow: 0 2px 12px rgba(39,111,245,0.08); }
.margin-plan-card.selected { border-color: #276ff5; box-shadow: 0 2px 16px rgba(39,111,245,0.15); }
.margin-plan-card.selected::after {
  content: '✓'; position: absolute; top: 10px; right: 10px;
  width: 22px; height: 22px; background: #276ff5; color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.margin-plan-card-header {
  padding: 12px 14px; display: flex; align-items: center; gap: 8px;
}
.margin-plan-card-header.aggressive { background: linear-gradient(135deg, #FFF0ED 0%, #FFE4DE 100%); }
.margin-plan-card-header.conservative { background: linear-gradient(135deg, #EDF6FF 0%, #DCEEFF 100%); }
.margin-plan-card-header.balanced { background: linear-gradient(135deg, #EDFFF4 0%, #DCFAE8 100%); }
.margin-plan-icon { font-size: 18px; }
.margin-plan-label { font-size: 14px; font-weight: 700; color: #1a1a1a; }
.margin-plan-recommend {
  font-size: 11px; font-weight: 600; color: #fff; background: #04B545;
  padding: 2px 8px; border-radius: 10px; margin-left: auto;
}
.margin-plan-card-body { padding: 14px; }
.margin-plan-target { font-size: 13px; color: rgba(0,0,0,0.7); margin-bottom: 4px; }
.margin-plan-target strong { color: #1a1a1a; font-size: 18px; }
.margin-plan-period { font-size: 12px; color: rgba(0,0,0,0.5); margin-bottom: 10px; }
.margin-plan-period strong { color: rgba(0,0,0,0.7); }
.margin-plan-desc { font-size: 12px; color: rgba(0,0,0,0.55); line-height: 1.6; margin-bottom: 12px; }
.margin-plan-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.margin-plan-tag {
  font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 6px;
}
.margin-plan-tag.risk-high { background: #FFEDE9; color: #D4380D; }
.margin-plan-tag.reward-high { background: #FFF7E6; color: #D48806; }
.margin-plan-tag.risk-low { background: #E6F7FF; color: #1890FF; }
.margin-plan-tag.reward-low { background: #E6F7FF; color: #1890FF; }
.margin-plan-tag.risk-mid { background: #FFF7E6; color: #D48806; }
.margin-plan-tag.reward-mid { background: #F0FFF4; color: #389E0D; }
.margin-plan-confirm-btn {
  width: 100%; padding: 10px 0; border: none; border-radius: 10px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  background: #E8ECF0; color: rgba(0,0,0,0.3); transition: all 0.25s ease;
}
.margin-plan-confirm-btn:disabled { cursor: not-allowed; }
.margin-plan-confirm-btn.active {
  background: #276ff5; color: #fff;
}
.margin-plan-confirm-btn.active:hover { background: #1a5cd4; }
.margin-plan-confirm-btn.confirmed {
  background: #04B545; color: #fff; pointer-events: none;
}

/* Plan detail button */
.margin-plan-detail-btn {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 10px; padding: 0; border: none; background: none;
  font-size: 12px; color: #276ff5; cursor: pointer; font-weight: 500;
  transition: color 0.2s ease;
}
.margin-plan-detail-btn:hover { color: #1a5cd4; }

/* Plan detail modal overlay */
.margin-plan-modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0); display: flex;
  align-items: center; justify-content: center;
  transition: background 0.25s ease;
}
.margin-plan-modal-overlay.visible { background: rgba(0,0,0,0.35); }

/* Modal panel */
.margin-plan-modal {
  width: 520px; max-height: 80vh; background: #fff;
  border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  overflow: hidden; display: flex; flex-direction: column;
  transform: scale(0.92) translateY(12px); opacity: 0;
  transition: transform 0.28s cubic-bezier(.22,1,.36,1), opacity 0.22s ease;
}
.margin-plan-modal-overlay.visible .margin-plan-modal {
  transform: scale(1) translateY(0); opacity: 1;
}

/* Modal header */
.margin-plan-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; flex-shrink: 0;
}
.margin-plan-modal-header.aggressive { background: linear-gradient(135deg, #FFF0ED 0%, #FFE4DE 100%); }
.margin-plan-modal-header.conservative { background: linear-gradient(135deg, #EDF6FF 0%, #DCEEFF 100%); }
.margin-plan-modal-header.balanced { background: linear-gradient(135deg, #EDFFF4 0%, #DCFAE8 100%); }
.margin-plan-modal-header-left { display: flex; align-items: center; gap: 10px; }
.margin-plan-modal-icon { font-size: 22px; }
.margin-plan-modal-title { font-size: 16px; font-weight: 700; color: #1a1a1a; }
.margin-plan-modal-close {
  width: 30px; height: 30px; border: none; background: rgba(0,0,0,0.06);
  border-radius: 50%; font-size: 18px; color: rgba(0,0,0,0.4);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease; line-height: 1;
}
.margin-plan-modal-close:hover { background: rgba(0,0,0,0.12); color: rgba(0,0,0,0.7); }

/* Modal body */
.margin-plan-modal-body {
  padding: 22px; overflow-y: auto; flex: 1;
}

/* Overview row */
.margin-modal-overview {
  display: flex; gap: 16px; margin-bottom: 4px;
}
.margin-modal-overview-item {
  flex: 1; display: flex; flex-direction: column; gap: 4px;
  padding: 12px 14px; background: #FAFBFC; border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.04);
}
.margin-modal-overview-label { font-size: 11px; color: rgba(0,0,0,0.45); font-weight: 500; }
.margin-modal-overview-item strong { font-size: 18px; color: #1a1a1a; }

.margin-modal-divider { height: 1px; background: rgba(0,0,0,0.06); margin: 18px 0; }
.margin-modal-subtitle { font-size: 14px; font-weight: 700; color: #1a1a1a; margin-bottom: 14px; }

/* Detail sections */
.margin-modal-section {
  margin-bottom: 14px; padding: 12px 14px;
  background: #FAFBFC; border-radius: 10px; border: 1px solid rgba(0,0,0,0.04);
}
.margin-modal-section-label {
  font-size: 12px; font-weight: 600; color: rgba(0,0,0,0.5);
  margin-bottom: 6px;
}
.margin-modal-section-content {
  font-size: 13px; color: rgba(0,0,0,0.72); line-height: 1.7;
}

/* Metric rows */
.margin-modal-metric-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; font-size: 13px; color: rgba(0,0,0,0.6);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.margin-modal-metric-row:last-child { border-bottom: none; }
.margin-modal-metric-row strong { font-size: 14px; }


/* =========================================
   Role Switch in Avatar Dropdown
   ========================================= */
.role-switch-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  color: rgba(0,0,0,0.72);
  transition: background 0.15s;
}
.role-switch-item:hover {
  background: #f5f5f5;
}
.role-switch-item.active {
  background: #EEF5FF;
  color: #2970FF;
  font-weight: 500;
}
.role-switch-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.role-switch-name {
  margin-left: auto;
  font-size: 11px;
  color: rgba(0,0,0,0.36);
}
.role-switch-item.active .role-switch-name {
  color: rgba(41,112,255,0.6);
}


/* =========================================
   Login Overlay
   ========================================= */
.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: linear-gradient(135deg, #f8fafc 0%, #e8f0fe 50%, #f0f5ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: loginFadeIn 0.5s ease;
}
.login-skip-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.05);
  color: rgba(0,0,0,0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  z-index: 10;
}
.login-skip-btn:hover {
  background: rgba(0,0,0,0.10);
  color: rgba(0,0,0,0.7);
}
@keyframes loginFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.login-card {
  position: relative;
  background: #fff;
  border-radius: 24px;
  padding: 48px 40px;
  width: 400px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
  animation: loginSlideUp 0.6s cubic-bezier(0.23,1,0.32,1);
}
@keyframes loginSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.login-logo {
  text-align: center;
  margin-bottom: 36px;
}
.login-logo-img {
  width: 64px;
  height: 64px;
  margin-bottom: 12px;
}
.login-logo-text {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
.login-logo-sub {
  font-size: 13px;
  color: rgba(0,0,0,0.36);
  margin-top: 4px;
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.login-label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(0,0,0,0.64);
}
.login-input {
  padding: 12px 16px;
  border: 1px solid #e0e4e8;
  border-radius: 12px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}
.login-input:focus {
  border-color: #2970FF;
  box-shadow: 0 0 0 3px rgba(41,112,255,0.1);
}
.login-btn {
  padding: 14px;
  background: linear-gradient(135deg, #2970FF, #1d5ed9);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  margin-top: 8px;
}
.login-btn:hover {
  background: linear-gradient(135deg, #1d5ed9, #1a4fc0);
  box-shadow: 0 4px 16px rgba(41,112,255,0.3);
  transform: translateY(-1px);
}
.login-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 4px;
}
.login-link {
  font-size: 13px;
  color: #2970FF;
  cursor: pointer;
}
.login-link:hover {
  text-decoration: underline;
}
.login-divider {
  color: rgba(0,0,0,0.15);
  font-size: 12px;
}

/* =========================================
   Onboarding Guide — Chat Style
   ========================================= */
.guide-overlay {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: linear-gradient(180deg, #f0f4ff 0%, #fff 40%);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: guideFadeIn 0.4s ease;
}
.guide-skip-btn {
  position: absolute;
  top: 16px;
  right: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.05);
  color: rgba(0,0,0,0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  z-index: 10;
}
.guide-skip-btn:hover {
  background: rgba(0,0,0,0.10);
  color: rgba(0,0,0,0.7);
}
@keyframes guideFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.guide-chat-container {
  position: relative;
  width: 100%;
  max-width: 680px;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 48px 24px 0;
  overflow: hidden;
}
.guide-chat-messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 24px;
  scroll-behavior: smooth;
}
.guide-chat-messages::-webkit-scrollbar { width: 4px; }
.guide-chat-messages::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.08); border-radius: 4px; }

/* --- AI message row --- */
.guide-msg-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: guideMsgIn 0.4s cubic-bezier(0.23,1,0.32,1);
}
@keyframes guideMsgIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.guide-chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
}
.guide-msg-bubble {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 2px 18px 18px 18px;
  padding: 14px 20px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(0,0,0,0.78);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  max-width: 520px;
}
.guide-msg-bubble .guide-msg-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 4px;
}
.guide-msg-bubble .guide-msg-sub {
  font-size: 13px;
  color: rgba(0,0,0,0.46);
}

/* --- User reply row (right aligned) --- */
.guide-msg-row.user {
  justify-content: flex-end;
}
.guide-user-bubble {
  background: linear-gradient(135deg, #2970FF, #1d5ed9);
  color: #fff;
  border-radius: 18px 2px 18px 18px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 2px 12px rgba(41,112,255,0.18);
  max-width: 400px;
}

/* --- Tag choices (inside AI bubble) --- */
.guide-chat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.guide-chat-tag {
  padding: 8px 18px;
  border: 1.5px solid #e0e4ea;
  border-radius: 20px;
  font-size: 13px;
  color: rgba(0,0,0,0.64);
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
  background: #fff;
}
.guide-chat-tag:hover {
  border-color: #a0b4ff;
  background: #f0f4ff;
  color: #2970FF;
}
.guide-chat-tag.selected {
  border-color: #2970FF;
  background: #EEF5FF;
  color: #2970FF;
  font-weight: 600;
}

/* --- Recommendation cards (standalone rows, not inside bubble) --- */
.guide-rec-block {
  margin-left: 48px;
  max-width: 520px;
  animation: guideMsgIn 0.4s cubic-bezier(0.23,1,0.32,1);
}
.guide-rec-block-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(0,0,0,0.3);
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  margin-top: 4px;
}
.guide-rec-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.guide-rec-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
  background: transparent;
  border: none;
}
.guide-rec-card:hover {
  background: rgba(0,0,0,0.03);
}
.guide-rec-card.selected {
  background: rgba(0,0,0,0.03);
}
.guide-rec-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.guide-rec-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.guide-rec-info {
  flex: 1;
  min-width: 0;
}
.guide-rec-name {
  font-size: 13px;
  font-weight: 500;
  color: rgba(0,0,0,0.78);
}
.guide-rec-desc {
  font-size: 11px;
  color: rgba(0,0,0,0.36);
  margin-top: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.guide-rec-check {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid #d0d5dc;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  font-size: 0;
  background: #fff;
}
.guide-rec-card.selected .guide-rec-check {
  border-color: rgba(0,0,0,0.5);
  background: rgba(0,0,0,0.7);
  font-size: 10px;
}
.guide-rec-card.selected .guide-rec-check::after {
  content: '✓';
  color: #fff;
  font-weight: 700;
}
.guide-rec-card:not(.selected) .guide-rec-name {
  color: rgba(0,0,0,0.36);
}
.guide-rec-card:not(.selected) .guide-rec-desc {
  color: rgba(0,0,0,0.2);
}
.guide-rec-card:not(.selected) .guide-rec-avatar,
.guide-rec-card:not(.selected) .guide-rec-icon {
  opacity: 0.45;
}

/* --- Action buttons in chat --- */
.guide-chat-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

/* --- Guide input field (replaces tag selection) --- */
.guide-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}
.guide-input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid #e0e4ea;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: #1a1a1a;
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
}
.guide-input:focus {
  border-color: #2970FF;
  box-shadow: 0 0 0 3px rgba(41,112,255,0.08);
}
.guide-input:disabled {
  background: #f5f5f5;
  color: rgba(0,0,0,0.4);
}
.guide-input-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #2970FF, #1d5ed9);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: box-shadow 0.2s, transform 0.15s;
}
.guide-input-btn:hover {
  box-shadow: 0 2px 12px rgba(41,112,255,0.25);
  transform: translateY(-1px);
}
.guide-input-btn:disabled {
  background: #d0d5dd;
  cursor: default;
  transform: none;
  box-shadow: none;
}

/* --- Bottom chat-style input bar --- */
.guide-chat-inputbar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px 20px;
  border-top: 1px solid rgba(0,0,0,0.06);
  background: #fff;
  flex-shrink: 0;
}
.guide-chat-inputbar-inner {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 600px;
  background: #f5f7fa;
  border: 1.5px solid #e0e4ea;
  border-radius: 24px;
  padding: 4px 4px 4px 18px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.guide-chat-inputbar-inner:focus-within {
  border-color: #2970FF;
  box-shadow: 0 0 0 3px rgba(41,112,255,0.08);
  background: #fff;
}
.guide-chat-inputbar-field {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  font-family: inherit;
  color: #1a1a1a;
  padding: 8px 0;
  line-height: 1.5;
}
.guide-chat-inputbar-field::placeholder {
  color: rgba(0,0,0,0.3);
}
.guide-chat-inputbar-send {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #2970FF, #1d5ed9);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: box-shadow 0.2s, transform 0.15s;
}
.guide-chat-inputbar-send:hover {
  box-shadow: 0 2px 12px rgba(41,112,255,0.3);
  transform: scale(1.05);
}

/* --- Showcase grid (visual partner cards) --- */
.guide-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.guide-showcase-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  padding: 16px 12px;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.15s;
}
.guide-showcase-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}
.guide-showcase-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 8px;
}
.guide-showcase-name {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
}
.guide-showcase-desc {
  font-size: 11px;
  color: rgba(0,0,0,0.4);
  line-height: 1.4;
}

/* --- Skill pills (horizontal wrap) --- */
.guide-skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.guide-skill-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px 6px 6px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 20px;
  transition: box-shadow 0.2s;
}
.guide-skill-pill:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.guide-skill-pill-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.guide-skill-pill-name {
  font-size: 12px;
  font-weight: 500;
  color: rgba(0,0,0,0.72);
  white-space: nowrap;
}

/* --- Tip card --- */
.guide-tip-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: linear-gradient(135deg, #f0f7ff, #f8f4ff);
  border: 1px solid rgba(41,112,255,0.1);
  border-radius: 14px;
  padding: 14px 16px;
  margin-top: 4px;
}
.guide-tip-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}
.guide-tip-text {
  font-size: 13px;
  color: rgba(0,0,0,0.6);
  line-height: 1.6;
}
.guide-tip-at {
  display: inline-block;
  background: #2970FF;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  border-radius: 5px;
  margin: 0 2px;
  vertical-align: middle;
}
.guide-chat-btn {
  padding: 10px 28px;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.guide-chat-btn.primary {
  background: linear-gradient(135deg, #2970FF, #1d5ed9);
  color: #fff;
  box-shadow: 0 2px 12px rgba(41,112,255,0.2);
}
.guide-chat-btn.primary:hover {
  box-shadow: 0 4px 20px rgba(41,112,255,0.35);
  transform: translateY(-1px);
}
.guide-chat-btn.primary:disabled {
  background: #e0e4e8;
  color: rgba(0,0,0,0.28);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.guide-chat-btn.secondary {
  background: transparent;
  color: rgba(0,0,0,0.46);
  border: 1px solid #e0e4e8;
}
.guide-chat-btn.secondary:hover {
  background: #f5f5f5;
  color: rgba(0,0,0,0.72);
}

/* --- Typing indicator --- */
.guide-typing {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 0 16px;
}
.guide-typing-dots {
  display: flex;
  gap: 4px;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 2px 18px 18px 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.guide-typing-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(0,0,0,0.18);
  animation: guideTypingBounce 1.2s ease-in-out infinite;
}
.guide-typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.guide-typing-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes guideTypingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}


/* =========================================
   CEO Dashboard — New 2-Column Layout
   ========================================= */
.ceo-two-col {
  display: flex;
  gap: 20px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  align-items: stretch;
}

/* LEFT: Chat Panel */
.ceo-chat-panel {
  width: 33%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.ceo-chat-shell {
  background: #f7f8fa;
  border-radius: 20px;
  border: 1px solid #eef0f3;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
.ceo-chat-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  flex-shrink: 0;
}
.ceo-chat-topbar-title {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
}
.ceo-chat-topbar-count {
  font-size: 12px;
  color: rgba(0,0,0,0.36);
}

/* Avatar row */
.ceo-chat-avatars {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px 14px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.ceo-chat-avatar-item {
  position: relative;
  cursor: pointer;
  transition: transform 0.15s;
}
.ceo-chat-avatar-item:hover {
  transform: scale(1.1);
}
.ceo-chat-avatar-item.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 3px;
  background: #2970FF;
  border-radius: 2px;
}
.ceo-chat-avatar-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid transparent;
  transition: border-color 0.15s;
}
.ceo-chat-avatar-item.active .ceo-chat-avatar-img {
  border-color: #2970FF;
}
.ceo-chat-avatar-name {
  font-size: 10px;
  color: rgba(0,0,0,0.46);
  text-align: center;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 48px;
}

/* Chat messages */
#ceo-group-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ceo-gmsg {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  animation: gmsgFadeIn 0.4s ease;
}
@keyframes gmsgFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.ceo-gmsg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  margin-top: 2px;
}
.ceo-gmsg-body {
  flex: 1;
  min-width: 0;
}
.ceo-gmsg-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.ceo-gmsg-name {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
}
.ceo-gmsg-time {
  font-size: 11px;
  color: rgba(0,0,0,0.28);
}
.ceo-gmsg-bubble {
  background: #fff;
  border-radius: 2px 16px 16px 16px;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(0,0,0,0.72);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.04);
}
.ceo-gmsg-bubble strong {
  color: rgba(0,0,0,0.88);
}
.ceo-gmsg-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  margin-right: 4px;
}
.ceo-gmsg-tag.critical { background: #fef2f2; color: #dc2626; }
.ceo-gmsg-tag.warning { background: #fff7e6; color: #d97706; }
.ceo-gmsg-tag.info { background: #eef5ff; color: #2970FF; }
.ceo-gmsg-tag.good { background: #e6f7ee; color: #16a34a; }

/* RIGHT: Data Panel */
.ceo-data-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
  overflow-y: auto;
}

/* Schedule Timeline (enriched) */
.ceo-schedule-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ceo-sched-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #f5f5f5;
  position: relative;
}
.ceo-sched-item:last-child {
  border-bottom: none;
}
.ceo-sched-time-col {
  width: 56px;
  flex-shrink: 0;
  text-align: center;
}
.ceo-sched-time-val {
  font-size: 15px;
  font-weight: 700;
  color: #2970FF;
}
.ceo-sched-time-period {
  font-size: 10px;
  color: rgba(0,0,0,0.28);
  margin-top: 2px;
}
.ceo-sched-line {
  width: 2px;
  background: #eef0f3;
  flex-shrink: 0;
  align-self: stretch;
  position: relative;
  margin: 0 4px;
}
.ceo-sched-line::before {
  content: '';
  position: absolute;
  top: 18px;
  left: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2970FF;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #eef0f3;
}
.ceo-sched-item.past .ceo-sched-line::before {
  background: #d0d4da;
}
.ceo-sched-content {
  flex: 1;
  min-width: 0;
}
.ceo-sched-name {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ceo-sched-status {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
}
.ceo-sched-status.upcoming { background: #eef5ff; color: #2970FF; }
.ceo-sched-status.ongoing { background: #e6f7ee; color: #16a34a; }
.ceo-sched-status.done { background: #f5f5f5; color: rgba(0,0,0,0.36); }
.ceo-sched-detail {
  font-size: 12px;
  color: rgba(0,0,0,0.46);
  margin-bottom: 6px;
}
.ceo-sched-people {
  display: flex;
  align-items: center;
  gap: 4px;
}
.ceo-sched-person {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  margin-left: -6px;
}
.ceo-sched-person:first-child {
  margin-left: 0;
}
.ceo-sched-person-more {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: rgba(0,0,0,0.46);
  margin-left: -6px;
}
.ceo-sched-timer {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #2970FF;
  background: #eef5ff;
  padding: 2px 8px;
  border-radius: 8px;
  margin-left: 8px;
}


/* Twin cards: Todo + Watched side by side, equal height */
.ceo-twin-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}
.ceo-twin-cards .ceo-dash-card {
  display: flex;
  flex-direction: column;
}
.ceo-twin-cards .ceo-todo-list,
.ceo-twin-cards .ceo-watched-list {
  flex: 1;
}

/* Enhanced timeline feel */
.ceo-schedule-timeline-wrap {
  max-height: 280px;
  overflow-y: auto;
  position: relative;
}
.ceo-schedule-timeline-wrap::-webkit-scrollbar {
  width: 4px;
}
.ceo-schedule-timeline-wrap::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.1);
  border-radius: 4px;
}
.ceo-schedule-timeline {
  position: relative;
  padding-left: 0;
  margin-left: 70px;
}
.ceo-schedule-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #2970FF 0%, #a4bafd 60%, #eef0f3 100%);
  border-radius: 2px;
}
.ceo-sched-line {
  display: none;
}
.ceo-sched-item {
  position: relative;
  padding: 16px 0 16px 28px;
  border-bottom: none;
  gap: 0;
}
.ceo-sched-item::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 22px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid #2970FF;
  z-index: 1;
}
.ceo-sched-item.past::before {
  border-color: #d0d4da;
  background: #f5f5f5;
}
.ceo-sched-item:not(.past):first-child::before {
  box-shadow: 0 0 0 4px rgba(41,112,255,0.15);
}
.ceo-sched-time-col {
  position: absolute;
  left: -70px;
  top: 14px;
  width: 56px;
  text-align: right;
}
.ceo-sched-time-val {
  font-size: 15px;
  font-weight: 700;
  color: #2970FF;
}
.ceo-sched-item.past .ceo-sched-time-val {
  color: rgba(0,0,0,0.28);
}
.ceo-sched-time-period {
  font-size: 10px;
  color: rgba(0,0,0,0.24);
  margin-top: 2px;
}


/* Chat input bar at bottom of group chat */
.ceo-chat-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid rgba(0,0,0,0.06);
  flex-shrink: 0;
  background: #fff;
  border-radius: 0 0 20px 20px;
}
.ceo-chat-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #eef0f3;
  border-radius: 20px;
  font-size: 13px;
  outline: none;
  background: #f7f8fa;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}
.ceo-chat-input:focus {
  border-color: #2970FF;
  box-shadow: 0 0 0 3px rgba(41,112,255,0.08);
  background: #fff;
}
.ceo-chat-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #2970FF, #1d5ed9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s, box-shadow 0.15s;
}
.ceo-chat-send-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 3px 12px rgba(41,112,255,0.35);
}

/* =========================================
   SCHEME TOGGLE (方案1 / 方案2)
   ========================================= */
.ceo-scheme-toggle {
  display: flex;
  background: rgba(0,0,0,0.04);
  border-radius: 20px;
  padding: 3px;
  gap: 2px;
}
.ceo-scheme-btn {
  padding: 6px 16px;
  border: none;
  border-radius: 18px;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: rgba(0,0,0,0.46);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.ceo-scheme-btn.active {
  background: #fff;
  color: rgba(0,0,0,0.82);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.ceo-scheme-btn:hover:not(.active) {
  color: rgba(0,0,0,0.64);
}

/* =========================================
   SCHEME 2: Card-based Insight Feed (s2-*)
   ========================================= */
.ceo-scheme2-feed {
  max-width: 100%;
  display: block;
  overflow-y: auto;
}

/* Scheme 2: single long image */
.s2-image-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}
.s2-full-image {
  width: 70%;
  max-width: 672px;
  height: auto;
  display: block;
  border-radius: 24px;
}

/* Card */
.s2-card {
  background: #fff;
  border: 1px solid #F0F0F0;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s;
}
.s2-card:hover {
  box-shadow: 0 8px 40px rgba(0,0,0,0.07);
}

/* Hero image area */
.s2-card-hero {
  width: 100%;
  height: 200px;
  position: relative;
  overflow: hidden;
}
.s2-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Card body */
.s2-card-body {
  padding: 28px 32px 24px;
}
.s2-card-agent {
  font-size: 13px;
  font-weight: 400;
  color: rgba(0,0,0,0.46);
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.s2-agent-en {
  font-family: 'Inter', monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(0,0,0,0.36);
}
.s2-card-time {
  font-family: 'Inter', monospace;
  font-size: 12px;
  color: rgba(0,0,0,0.3);
  margin-bottom: 12px;
}
.s2-card-title {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 16px;
  line-height: 1.35;
}

/* Quote bubble */
.s2-card-quote {
  background: #F7F7F8;
  border-radius: 20px;
  padding: 24px 28px;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(0,0,0,0.56);
  font-style: italic;
  margin-bottom: 24px;
}

/* Metrics row */
.s2-card-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}
.s2-metric {
  border: 1px solid #F0F0F0;
  border-radius: 20px;
  padding: 20px 24px;
}
.s2-metric-label {
  font-size: 12px;
  color: rgba(0,0,0,0.4);
  margin-bottom: 6px;
}
.s2-metric-value {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
}
.s2-val-up { color: #1a1a1a; }
.s2-val-up svg { flex-shrink: 0; }
.s2-val-down { color: #1a1a1a; }
.s2-val-down svg { flex-shrink: 0; }

/* Footer: tags + actions */
.s2-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 4px;
}
.s2-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.s2-tag {
  font-size: 12px;
  color: rgba(0,0,0,0.4);
  border: 1px solid #E8E8E8;
  border-radius: 20px;
  padding: 5px 12px;
  white-space: nowrap;
}
.s2-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.s2-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border: 1px solid #E0E0E0;
  border-radius: 24px;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: rgba(0,0,0,0.7);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.s2-btn-outline:hover {
  background: #f8f8f8;
  border-color: #ccc;
}
.s2-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border: none;
  border-radius: 24px;
  background: #6C3AED;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.s2-btn-primary:hover {
  background: #5B21B6;
}

/* =========================================
   关键客户更新 (Key Customer Updates)
   ========================================= */

/* Customer tabs */
.ceo-customer-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.ceo-customer-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 20px;
  border: 1px solid #E8E8E8;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: rgba(0,0,0,0.6);
  cursor: pointer;
  transition: all 0.15s;
}
.ceo-customer-tab:hover {
  border-color: #ccc;
  background: #fafafa;
}
.ceo-customer-tab.active {
  background: rgba(0,0,0,0.06);
  border-color: transparent;
  color: rgba(0,0,0,0.82);
  font-weight: 600;
}
.ceo-customer-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Overview row: status + metrics */
.ceo-cust-overview {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.ceo-cust-status-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  border-radius: 16px;
  background: #f8f9fb;
  min-width: 100px;
}
.ceo-cust-status-card.warning { background: #FFF8F0; }
.ceo-cust-status-card.danger { background: #FFF0F0; }
.ceo-cust-status-card.up { background: #F0FFF4; }
.ceo-cust-status-card.normal { background: #F0F9FF; }
.ceo-cust-level {
  font-size: 11px;
  color: rgba(0,0,0,0.4);
}
.ceo-cust-status-text {
  font-size: 14px;
  font-weight: 600;
  color: rgba(0,0,0,0.82);
}
.ceo-cust-status-card.warning .ceo-cust-status-text { color: #d97706; }
.ceo-cust-status-card.danger .ceo-cust-status-text { color: #dc2626; }
.ceo-cust-status-card.up .ceo-cust-status-text { color: #16a34a; }
.ceo-cust-status-card.normal .ceo-cust-status-text { color: #2970FF; }

.ceo-cust-metric {
  padding: 14px 18px;
  border-radius: 16px;
  background: #f8f9fb;
  flex: 1;
  min-width: 0;
}
.ceo-cust-metric-label {
  font-size: 11px;
  color: rgba(0,0,0,0.4);
  margin-bottom: 4px;
}
.ceo-cust-metric-value {
  font-size: 18px;
  font-weight: 700;
  color: #0F172A;
  font-family: Inter, sans-serif;
}

/* Timeline updates */
.ceo-cust-updates {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ceo-cust-update {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  align-items: flex-start;
}
.ceo-cust-update:last-child { border-bottom: none; }
.ceo-cust-update-time {
  font-size: 12px;
  color: rgba(0,0,0,0.36);
  white-space: nowrap;
  min-width: 80px;
  padding-top: 2px;
  font-family: Inter, sans-serif;
}
.ceo-cust-update-body {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
}
.ceo-cust-update-tag {
  font-size: 11px;
  font-weight: 500;
  color: #2970FF;
  background: #EEF5FF;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}
.ceo-cust-update-text {
  font-size: 13px;
  color: rgba(0,0,0,0.72);
  line-height: 1.5;
}

/* ========== Customer V2 Design (Figma 4802:20541) ========== */

/* Customer tabs v2 */
.ceo-customer-tabs--v2 {
  gap: 8px;
  margin-bottom: 0;
}
.ceo-customer-tab--v2 {
  border: none;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 14px;
  background: transparent;
}
.ceo-customer-tab--v2.active {
  background: transparent;
  border: 1px solid #2970FF;
  color: #2970FF;
}
.ceo-customer-tab--v2:not(.active) {
  border: none;
  color: rgba(0,0,0,0.46);
}

/* Customer card v2 */
.ceo-cust-card-v2 {
  border-radius: 24px;
  border: 1px solid rgba(0,0,0,0.08);
  background: linear-gradient(180deg, #fff 50%, rgba(255,255,255,0.8) 100%);
  overflow: hidden;
}

/* Top row: status + metrics */
.ceo-cust-top-v2 {
  display: flex;
  min-height: 70px;
}
.ceo-cust-status-v2 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 12px 20px;
  min-width: 138px;
  border-radius: 16px;
}
.ceo-cust-level-v2 {
  font-size: 12px;
  color: rgba(0,0,0,0.46);
}
.ceo-cust-status-text-v2 {
  font-size: 14px;
  font-weight: 500;
}
.ceo-cust-metrics-v2 {
  display: flex;
  flex: 1;
  background: #FAFBFC;
  border-radius: 16px;
}
.ceo-cust-metric-v2 {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
  padding: 12px 8px;
}
.ceo-cust-metric-label-v2 {
  font-size: 12px;
  color: rgba(0,0,0,0.46);
  text-align: center;
}
.ceo-cust-metric-value-v2 {
  font-size: 20px;
  font-weight: 500;
  color: rgba(0,0,0,0.94);
  text-align: center;
}

/* Timeline v2 */
.ceo-cust-timeline-v2 {
  padding: 16px 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ceo-cust-tl-row-v2 {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  padding: 10px 0;
  padding-left: 18px;
}
.ceo-cust-tl-dot-v2 {
  position: absolute;
  left: 0;
  top: 17px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2970FF;
  border: 2px solid rgba(41,112,255,0.12);
  box-sizing: content-box;
  z-index: 1;
}
.ceo-cust-tl-line-v2 {
  position: absolute;
  left: 4.5px;
  top: 29px;
  width: 0.5px;
  height: 30px;
  background: #EAF1FF;
}
.ceo-cust-tl-content-v2 {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.ceo-cust-tl-time-v2 {
  font-size: 12px;
  color: rgba(0,0,0,0.46);
  white-space: nowrap;
  min-width: 60px;
}
.ceo-cust-tl-tag-v2 {
  font-size: 12px;
  font-weight: 400;
  color: #2970FF;
  background: rgba(41,112,255,0.08);
  padding: 1px 8px;
  border-radius: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}
.ceo-cust-tl-text-v2 {
  font-size: 14px;
  color: rgba(0,0,0,0.64);
  line-height: 1.43;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Customer summary stats bar */
.ceo-cust-summary-bar {
  display: flex;
  gap: 16px;
  padding: 14px 20px;
  background: #FAFBFC;
  border-radius: 14px;
  margin-bottom: 12px;
  border: 1px solid rgba(0,0,0,0.04);
  justify-content: space-between;
}
.ceo-cust-summary-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.ceo-cust-summary-num {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
  white-space: nowrap;
}
.ceo-cust-summary-num.good { color: #16a34a; }
.ceo-cust-summary-num.danger { color: #ef4444; }
.ceo-cust-summary-label {
  font-size: 11.5px;
  color: rgba(0,0,0,0.4);
}

/* Header grid: left info + right health ring */
.ceo-cust-header-grid {
  display: flex;
  gap: 20px;
  padding: 0 0 8px;
}
.ceo-cust-header-left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ceo-cust-header-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  flex-shrink: 0;
}

/* Health ring */
.ceo-cust-health-ring {
  position: relative;
}
.ceo-cust-health-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ceo-cust-health-label {
  font-size: 13px;
  font-weight: 700;
}
.ceo-cust-health-trend {
  font-size: 12px;
  font-weight: 600;
}

/* Customer profile info */
.ceo-cust-profile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
  padding: 10px 14px;
  background: rgba(0,0,0,0.02);
  border-radius: 10px;
}
.ceo-cust-profile-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.ceo-cust-profile-k {
  color: rgba(0,0,0,0.4);
  white-space: nowrap;
  min-width: 48px;
}
.ceo-cust-profile-v {
  color: #1a1a1a;
  font-weight: 500;
}

/* Section title inside card */
.ceo-cust-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  padding: 8px 20px 0;
}

/* AI analysis box */
.ceo-cust-ai-box {
  margin: 8px 20px 0;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(41,112,255,0.04), rgba(186,133,254,0.04));
  border: 1px solid rgba(41,112,255,0.08);
  border-radius: 12px;
}
.ceo-cust-ai-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.ceo-cust-ai-icon { font-size: 16px; }
.ceo-cust-ai-title {
  font-size: 13px;
  font-weight: 700;
  color: #1a1a1a;
}
.ceo-cust-ai-text {
  font-size: 13px;
  color: rgba(0,0,0,0.6);
  line-height: 1.6;
}

/* Quick action buttons */
.ceo-cust-actions {
  display: flex;
  gap: 8px;
  padding: 14px 20px 18px;
  flex-wrap: wrap;
}

/* ========== Customer V3: 3-column card grid ========== */
.ceo-cust-grid-v3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.ceo-cust-card-v3 {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.ceo-cust-card-v3:hover {
  border-color: rgba(41,112,255,0.18);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.ceo-cust-v3-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ceo-cust-v3-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.ceo-cust-v3-name {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ceo-cust-v3-level {
  font-size: 11px;
  color: rgba(0,0,0,0.36);
  white-space: nowrap;
  flex-shrink: 0;
}
.ceo-cust-v3-status {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}
.ceo-cust-v3-metrics {
  display: flex;
  gap: 0;
  background: #FAFBFC;
  border-radius: 12px;
  overflow: hidden;
}
.ceo-cust-v3-metric {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 6px;
}
.ceo-cust-v3-metric + .ceo-cust-v3-metric {
  border-left: 1px solid rgba(0,0,0,0.04);
}
.ceo-cust-v3-metric-label {
  font-size: 10.5px;
  color: rgba(0,0,0,0.4);
  text-align: center;
  white-space: nowrap;
}
.ceo-cust-v3-metric-value {
  font-size: 16px;
  font-weight: 600;
  color: rgba(0,0,0,0.88);
  text-align: center;
}
.ceo-cust-v3-info-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ceo-cust-v3-health {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.ceo-cust-v3-trend {
  font-size: 14px;
  font-weight: 600;
}
.ceo-cust-v3-profile {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.ceo-cust-v3-profile-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.ceo-cust-v3-pk {
  color: rgba(0,0,0,0.36);
  white-space: nowrap;
  min-width: 36px;
}
.ceo-cust-v3-pv {
  color: rgba(0,0,0,0.72);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ceo-cust-v3-update {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 8px 10px;
  background: rgba(0,0,0,0.02);
  border-radius: 10px;
}
.ceo-cust-v3-update-tag {
  font-size: 11px;
  font-weight: 500;
  color: #2970FF;
  background: rgba(41,112,255,0.08);
  padding: 1px 8px;
  border-radius: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}
.ceo-cust-v3-update-text {
  font-size: 12px;
  color: rgba(0,0,0,0.55);
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.ceo-cust-v3-ai {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: linear-gradient(135deg, rgba(41,112,255,0.04), rgba(186,133,254,0.04));
  border-radius: 10px;
  border: 1px solid rgba(41,112,255,0.06);
}
.ceo-cust-v3-ai-icon { font-size: 13px; }
.ceo-cust-v3-ai-text {
  font-size: 12px;
  color: rgba(0,0,0,0.55);
}
.ceo-cust-v3-actions {
  display: flex;
  gap: 6px;
}
/* Pagination dots */
.ceo-cust-pager {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 14px 0 4px;
}
.ceo-cust-pager-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0,0,0,0.1);
  cursor: pointer;
  transition: all 0.2s;
}
.ceo-cust-pager-dot.active {
  background: #2970FF;
  width: 20px;
  border-radius: 4px;
}

/* ========== Customer Pyramid Layout ========== */
/* (pyramid removed — tier stats is now full-width) */
.ceo-cust-tier-stats--full {
  width: 100%;
  margin-top: 16px;
}
.ceo-tier-stat-row--clickable {
  cursor: pointer;
}
.ceo-tier-stat-row--clickable:hover {
  background: rgba(41,112,255,0.03);
}

/* Tier distribution stats (right side) */
.ceo-cust-tier-stats {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.06);
  overflow: hidden;
}
.ceo-cust-tier-stats-title {
  font-size: 13px;
  font-weight: 600;
  color: rgba(0,0,0,0.72);
  padding: 14px 18px 10px;
}
.ceo-tier-stat-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px;
  border-top: 1px solid rgba(0,0,0,0.04);
  transition: background 0.12s;
}
.ceo-tier-stat-row:hover {
  background: rgba(0,0,0,0.015);
}
.ceo-tier-stat-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(0,0,0,0.72);
  min-width: 90px;
  flex-shrink: 0;
}
.ceo-tier-stat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ceo-tier-stat-cells {
  display: flex;
  flex: 1;
  gap: 0;
}
.ceo-tier-stat-cell {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.ceo-tier-stat-val {
  font-size: 16px;
  font-weight: 600;
  color: rgba(0,0,0,0.82);
}
.ceo-tier-stat-val.danger {
  color: #ef4444;
}
.ceo-tier-stat-lbl {
  font-size: 10.5px;
  color: rgba(0,0,0,0.36);
}
.ceo-cust-action-btn {
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
  color: rgba(0,0,0,0.65);
  cursor: pointer;
  transition: all 0.15s;
}
.ceo-cust-action-btn:hover {
  border-color: #2970ff;
  color: #2970ff;
  background: rgba(41,112,255,0.04);
}
.ceo-cust-action-btn.primary {
  background: #2970ff;
  color: #fff;
  border-color: #2970ff;
}
.ceo-cust-action-btn.primary:hover {
  background: #1d5ed9;
}

/* ================================================
   经营分析详情页 (biz-analysis-detail / bad-*)
   ================================================ */
.biz-analysis-detail {
  display: none;
  flex-direction: column;
  width: 100%;
  flex: 1;
  background: #f7f8fa;
  overflow: hidden;
}
.bad-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  flex-shrink: 0;
  background: #fff;
}
.bad-header-agent {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}
.bad-header-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}
.bad-header-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bad-header-title {
  font-size: 16px;
  font-weight: 600;
  color: rgba(0,0,0,0.88);
}
.bad-header-desc {
  font-size: 12.5px;
  color: rgba(0,0,0,0.45);
}
.bad-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 1px solid #e0e3e8;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 13px;
  color: rgba(0,0,0,0.72);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.bad-back-btn:hover {
  background: #f5f6f8;
  border-color: #c8ccd2;
}
.bad-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px 40px;
}
.bad-section {
  margin-bottom: 24px;
}
.bad-sec-title {
  font-size: 15px;
  font-weight: 600;
  color: rgba(0,0,0,0.88);
  margin-bottom: 14px;
}

/* AI 智能洞察 */
.bad-insights {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bad-insight {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(0,0,0,0.82);
}
.bad-insight--warning {
  background: #fff8f0;
  border: 1px solid #ffe0b2;
}
.bad-insight--good {
  background: #f0faf4;
  border: 1px solid #b9e6cc;
}
.bad-insight-icon {
  flex-shrink: 0;
  font-size: 16px;
}
.bad-insight-text {
  flex: 1;
}
.bad-ask-ai-btn {
  flex-shrink: 0;
  background: #2970ff;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 5px 14px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.bad-ask-ai-btn:hover {
  background: #1a5ce0;
}
.bad-ask-ai-btn--sm {
  padding: 4px 10px;
  font-size: 12px;
}
.bad-ask-ai-btn--disabled {
  pointer-events: none;
  opacity: 0.45;
}

/* Hover-reveal "问AI" button — hidden by default, shown on parent hover */
.bad-ask-ai-btn--hover {
  opacity: 0;
  transform: translateX(4px);
  transition: all 0.2s ease;
  pointer-events: none;
}
/* Show on parent hover */
.bad-kpi-card:hover .bad-ask-ai-btn--hover,
.bad-tr-hoverable:hover .bad-ask-ai-btn--hover,
.bad-highlight-item:hover .bad-ask-ai-btn--hover,
.bad-bottom-card:hover .bad-ask-ai-btn--hover {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
/* KPI card hover button positioning */
.bad-ask-ai-btn--kpi {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  font-size: 11px;
}

/* Alert button — always visible, more prominent */
.bad-ask-ai-btn--alert {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #2970ff;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.bad-ask-ai-btn--alert:hover {
  background: #1a5ce0;
  box-shadow: 0 2px 8px rgba(41,112,255,0.25);
}

/* ---- 异常数据警报区 ---- */
.bad-alert-zone {
  background: linear-gradient(135deg, #FFF8F0 0%, #FFF3E6 100%);
  border: 1px solid #FFE0B2;
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 20px;
}
.bad-alert-zone-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.bad-alert-zone-icon {
  font-size: 18px;
}
.bad-alert-zone-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
}
.bad-alert-zone-count {
  font-size: 12px;
  background: #FF293B;
  color: #fff;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}
.bad-alert-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.bad-alert-card {
  background: #fff;
  border-radius: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.2s;
}
.bad-alert-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.bad-alert-card--high {
  border-left: 3px solid #FF293B;
}
.bad-alert-card--mid {
  border-left: 3px solid #f59e0b;
}
.bad-alert-card-top {
  display: flex;
  align-items: center;
  gap: 6px;
}
.bad-alert-card-icon {
  font-size: 14px;
}
.bad-alert-card-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #1a1a1a;
}
.bad-alert-card-desc {
  font-size: 12px;
  color: rgba(0,0,0,0.5);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bad-alert-card-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px solid rgba(0,0,0,0.04);
}
.bad-alert-card-metric {
  display: flex;
  flex-direction: column;
}
.bad-alert-metric-val {
  font-size: 16px;
  font-weight: 700;
  color: #FF293B;
}
.bad-alert-card--mid .bad-alert-metric-val {
  color: #d97706;
}
.bad-alert-metric-label {
  font-size: 10px;
  color: rgba(0,0,0,0.4);
}
.bad-alert-card-threshold {
  font-size: 11px;
  color: rgba(0,0,0,0.36);
  flex: 1;
}

/* ---- 经营亮点 ---- */
.bad-highlights {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bad-highlight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #f0faf4;
  border: 1px solid #b9e6cc;
  border-radius: 10px;
  font-size: 13px;
  color: rgba(0,0,0,0.78);
  transition: all 0.15s;
}
.bad-highlight-item:hover {
  background: #e8f8ee;
}
.bad-highlight-icon {
  flex-shrink: 0;
  font-size: 15px;
}
.bad-highlight-text {
  flex: 1;
}

/* ---- 底部三卡片 ---- */
.bad-bottom-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.bad-bottom-card {
  background: #fff;
  border: 1px solid #eff1f4;
  border-radius: 12px;
  padding: 18px 18px 14px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow 0.2s;
}
.bad-bottom-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}
.bad-bottom-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.bad-bottom-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}
.bad-bottom-card-hint {
  font-size: 12px;
  color: rgba(0,0,0,0.5);
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,0.04);
  line-height: 1.5;
}

/* Cost bar rows */
.bad-cost-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bad-cost-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bad-cost-name {
  font-size: 12.5px;
  color: rgba(0,0,0,0.6);
  width: 60px;
  flex-shrink: 0;
}
.bad-cost-bar-track {
  flex: 1;
  height: 8px;
  background: rgba(0,0,0,0.04);
  border-radius: 4px;
  overflow: hidden;
}
.bad-cost-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}
.bad-cost-pct {
  font-size: 13px;
  font-weight: 600;
  color: rgba(0,0,0,0.7);
  width: 32px;
  text-align: right;
}
.bad-cost-change {
  font-size: 11px;
  font-weight: 500;
  width: 36px;
}
.bad-cost-change--up { color: #FF293B; }
.bad-cost-change--down { color: #04B545; }

/* Product bar rows */
.bad-product-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bad-product-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bad-product-row-top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bad-product-name {
  font-size: 12.5px;
  color: rgba(0,0,0,0.7);
  font-weight: 500;
}
.bad-product-rev {
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(0,0,0,0.8);
  margin-left: auto;
}
.bad-product-growth {
  font-size: 11px;
  font-weight: 500;
}
.bad-product-growth--up { color: #04B545; }
.bad-product-growth--down { color: #FF293B; }
.bad-product-bar-track {
  height: 6px;
  background: rgba(0,0,0,0.04);
  border-radius: 3px;
  overflow: hidden;
}
.bad-product-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #2970ff, #60a5fa);
  border-radius: 3px;
  transition: width 0.5s ease;
}

/* Goal bar rows */
.bad-goal-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bad-goal-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bad-goal-name {
  font-size: 12.5px;
  color: rgba(0,0,0,0.6);
  width: 60px;
  flex-shrink: 0;
}
.bad-goal-bar-track {
  flex: 1;
  height: 10px;
  background: rgba(0,0,0,0.04);
  border-radius: 5px;
  overflow: hidden;
}
.bad-goal-bar-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 0.5s ease;
}
.bad-goal-pct {
  font-size: 14px;
  font-weight: 700;
  width: 40px;
  text-align: right;
}

/* KPI 卡片行 */
.bad-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.bad-kpi-card {
  background: #fff;
  border: 1px solid #eff1f4;
  border-radius: 12px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  transition: box-shadow 0.2s;
}
.bad-kpi-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.bad-kpi-label {
  font-size: 12.5px;
  color: rgba(0,0,0,0.5);
}
.bad-kpi-value {
  font-size: 22px;
  font-weight: 700;
  color: rgba(0,0,0,0.88);
  margin: 2px 0;
}
.bad-kpi-change {
  font-size: 13px;
  font-weight: 500;
}
.bad-kpi-change--up { color: #04B545; }
.bad-kpi-change--down { color: #FF293B; }
.bad-kpi-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 10px;
  width: fit-content;
  margin-top: 2px;
}
.bad-kpi-tag--good {
  background: #e8f8ee;
  color: #04B545;
}
.bad-kpi-tag--warn {
  background: #fff3e0;
  color: #e67e00;
}

/* 区域经营明细表格 */
.bad-table-wrap {
  overflow-x: auto;
}
.bad-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #eff1f4;
}
.bad-table th {
  background: #f7f8fa;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(0,0,0,0.55);
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid #eff1f4;
}
.bad-table td {
  font-size: 13.5px;
  color: rgba(0,0,0,0.78);
  padding: 12px 14px;
  border-bottom: 1px solid #f3f4f6;
}
.bad-table tr:last-child td { border-bottom: none; }
.bad-td-name {
  font-weight: 600;
  color: rgba(0,0,0,0.88) !important;
}
.bad-td-up { color: #04B545 !important; font-weight: 500; }
.bad-td-down { color: #FF293B !important; font-weight: 500; }
.bad-td-note {
  font-size: 12.5px !important;
  color: rgba(0,0,0,0.5) !important;
}

/* 产品线明细 */
.bad-product-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bad-product-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #eff1f4;
  border-radius: 10px;
  padding: 14px 18px;
}
.bad-product-name {
  font-size: 14px;
  font-weight: 600;
  color: rgba(0,0,0,0.85);
  min-width: 100px;
}
.bad-product-rev {
  font-size: 15px;
  font-weight: 700;
  color: rgba(0,0,0,0.88);
}
.bad-product-tag {
  font-size: 11.5px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: auto;
}
.bad-product-tag--good {
  background: #e8f8ee;
  color: #04B545;
}

/* ================================================
   问AI 聊天响应样式 (bad-chat-*)
   ================================================ */
.bad-chat-breadcrumb {
  font-size: 12px;
  color: rgba(0,0,0,0.4);
  margin-bottom: 10px;
}
.bad-chat-callout {
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.65;
  margin-bottom: 14px;
}
.bad-chat-callout--warning {
  background: #fff8f0;
  border-left: 3px solid #f5a623;
}
.bad-chat-callout--good {
  background: #f0faf4;
  border-left: 3px solid #04B545;
}
.bad-chat-callout strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}
.bad-chat-breakdown {
  margin-bottom: 14px;
}
.bad-chat-breakdown-title {
  font-size: 13px;
  font-weight: 600;
  color: rgba(0,0,0,0.72);
  margin-bottom: 10px;
}
.bad-chat-bar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.bad-chat-bar-label {
  font-size: 12.5px;
  color: rgba(0,0,0,0.65);
  min-width: 70px;
  flex-shrink: 0;
}
.bad-chat-bar {
  flex: 1;
  height: 8px;
  background: #f0f1f3;
  border-radius: 4px;
  overflow: hidden;
}
.bad-chat-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: #2970ff;
  transition: width 0.6s ease;
}
.bad-chat-bar--warning { background: #f5a623; }
.bad-chat-bar--good { background: #04B545; }
.bad-chat-bar-val {
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(0,0,0,0.72);
  min-width: 70px;
  text-align: right;
  flex-shrink: 0;
}
.bad-chat-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.bad-chat-action-btn {
  background: #f5f6f8;
  border: 1px solid #e0e3e8;
  border-radius: 8px;
  padding: 7px 16px;
  font-size: 13px;
  color: rgba(0,0,0,0.72);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.bad-chat-action-btn:hover {
  background: #eef0f3;
  border-color: #c8ccd2;
}

/* ========== Insight Detail Overlay (cid-) — PPT Layout ========== */
.ceo-insight-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 99995;
  background: rgba(0,0,0,0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cidFadeIn 0.2s ease;
}
@keyframes cidFadeIn { from { opacity:0 } to { opacity:1 } }

.cid-ppt-layout {
  background: #fff;
  border-radius: 20px;
  width: 94%;
  max-width: 1100px;
  height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(0,0,0,0.16);
  animation: cidSlideUp 0.3s cubic-bezier(0.23,1,0.32,1);
  overflow: hidden;
}
@keyframes cidSlideUp {
  from { opacity:0; transform:translateY(30px) scale(0.97) }
  to { opacity:1; transform:translateY(0) scale(1) }
}

/* Header */
.cid-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px 12px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  flex-shrink: 0;
}
.cid-header-title {
  font-size: 15px;
  font-weight: 600;
  color: rgba(0,0,0,0.7);
}
.cid-back {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font-size: 14px;
  color: rgba(0,0,0,0.5);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  transition: all 0.15s;
}
.cid-back:hover { background: rgba(0,0,0,0.04); color: rgba(0,0,0,0.8); }
.cid-close {
  width: 32px; height: 32px;
  border-radius: 8px; border: none;
  background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: rgba(0,0,0,0.36);
  transition: all 0.15s;
}
.cid-close:hover { background: rgba(0,0,0,0.04); color: rgba(0,0,0,0.64); }

/* PPT Body: sidebar + main */
.cid-ppt-body {
  flex: 1;
  display: flex;
  overflow: hidden;
  min-height: 0;
}

/* Left sidebar thumbnails */
.cid-ppt-sidebar {
  width: 180px;
  flex-shrink: 0;
  border-right: 1px solid rgba(0,0,0,0.06);
  background: #f5f6f8;
  overflow-y: auto;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cid-ppt-sidebar::-webkit-scrollbar { width: 3px; }
.cid-ppt-sidebar::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.08); border-radius: 3px; }

/* Thumbnail card — vertical PPT slide style */
.cid-thumb {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.cid-thumb-num {
  width: 18px;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  color: rgba(0,0,0,0.3);
  text-align: center;
  padding-top: 6px;
  line-height: 1;
}
.cid-thumb--active .cid-thumb-num {
  color: #2970ff;
}
.cid-thumb-preview {
  flex: 1;
  min-width: 0;
  background: #fff;
  border-radius: 6px;
  border: 2px solid transparent;
  padding: 8px 8px 6px;
  transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  /* Vertical aspect ratio to mimic right-side content */
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.cid-thumb:hover .cid-thumb-preview {
  border-color: rgba(41,112,255,0.25);
  box-shadow: 0 2px 8px rgba(41,112,255,0.1);
}
.cid-thumb--active .cid-thumb-preview {
  border-color: #2970ff;
  box-shadow: 0 2px 12px rgba(41,112,255,0.15);
}

/* Mini hero area inside thumb */
.cid-thumb-hero {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 4px;
}
.cid-thumb-tag {
  font-size: 7px;
  padding: 1px 4px;
  border-radius: 2px;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.4;
}
.cid-thumb-tag.ceo-sec-insight-tag--compete { background: #FFF4ED; color: #FF5522; }
.cid-thumb-tag.ceo-sec-insight-tag--macro { background: #EEF5FF; color: #2970ff; }
.cid-thumb-tag.ceo-sec-insight-tag--policy { background: #EEF5FF; color: #2970ff; }
.cid-thumb-impact {
  font-size: 7px;
  padding: 1px 4px;
  border-radius: 2px;
  font-weight: 600;
  line-height: 1.4;
}
.cid-thumb-impact.high { background: #FEE2E2; color: #dc2626; }
.cid-thumb-impact.mid { background: #FEF3C7; color: #d97706; }
.cid-thumb-title {
  font-size: 10px;
  font-weight: 600;
  color: rgba(0,0,0,0.75);
  line-height: 1.35;
  margin-bottom: 5px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Mini metrics row inside thumb */
.cid-thumb-metrics {
  display: flex;
  gap: 4px;
  margin-bottom: 5px;
}
.cid-thumb-metric {
  flex: 1;
  text-align: center;
  background: #f8f9fb;
  border-radius: 3px;
  padding: 2px 0;
}
.cid-thumb-metric-val {
  font-size: 8px;
  font-weight: 700;
  color: rgba(0,0,0,0.55);
}

/* Decorative content lines inside thumb */
.cid-thumb-lines {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: auto;
}
.cid-thumb-line {
  height: 2px;
  background: rgba(0,0,0,0.06);
  border-radius: 1px;
}

/* Right main detail panel */
.cid-ppt-main {
  flex: 1;
  overflow-y: auto;
  min-width: 0;
}
.cid-ppt-main::-webkit-scrollbar { width: 4px; }
.cid-ppt-main::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.08); border-radius: 4px; }

/* Hero */
.cid-hero {
  padding: 28px 32px 24px;
  background: linear-gradient(135deg, #FFF7ED 0%, #FEF3C7 50%, #FFFBEB 100%);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.cid-hero-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.cid-hero-time {
  font-size: 12px;
  color: rgba(0,0,0,0.36);
}
.cid-hero-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 10px;
  line-height: 1.35;
}
.cid-hero-subtitle {
  font-size: 14px;
  color: rgba(0,0,0,0.55);
  margin: 0;
  line-height: 1.6;
}

/* Metrics row */
.cid-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 20px 32px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.cid-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
}
.cid-metric:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 4px; bottom: 4px;
  width: 1px;
  background: rgba(0,0,0,0.06);
}
.cid-metric-val {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
}
.cid-metric-val.good { color: #16a34a; }
.cid-metric-val.warning { color: #d97706; }
.cid-metric-val.danger { color: #dc2626; }
.cid-metric-label {
  font-size: 12px;
  color: rgba(0,0,0,0.4);
}

/* Sections */
.cid-section {
  padding: 24px 32px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.cid-section:last-of-type { border-bottom: none; }
.cid-section-title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 16px;
}
.cid-section-body p {
  font-size: 13.5px;
  color: rgba(0,0,0,0.6);
  line-height: 1.75;
  margin: 0 0 16px;
}

/* Info grid */
.cid-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}
.cid-info-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(0,0,0,0.06);
}
.cid-info-label {
  font-size: 12.5px;
  color: rgba(0,0,0,0.4);
  flex-shrink: 0;
  min-width: 64px;
}
.cid-info-val {
  font-size: 13px;
  color: rgba(0,0,0,0.72);
  font-weight: 500;
}
.cid-info-val.highlight {
  color: #ea580c;
  font-weight: 600;
}

/* Table */
.cid-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.cid-table th {
  background: #f8f9fb;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  color: rgba(0,0,0,0.55);
  font-size: 12px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.cid-table td {
  padding: 12px 14px;
  color: rgba(0,0,0,0.7);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.cid-table tr:last-child td { border-bottom: none; }
.cid-table tr:hover td { background: rgba(41,112,255,0.02); }

/* Match cards */
.cid-match-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cid-match-card {
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  padding: 16px 20px;
  background: #fafbfc;
  transition: box-shadow 0.2s;
}
.cid-match-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.05); }
.cid-match--high { border-left: 3px solid #16a34a; }
.cid-match--mid { border-left: 3px solid #d97706; }
.cid-match-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.cid-match-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}
.cid-match-badge.high { background: #DCFCE7; color: #15803d; }
.cid-match-badge.mid { background: #FEF3C7; color: #92400e; }
.cid-match-name {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}
.cid-match-detail {
  font-size: 13px;
  color: rgba(0,0,0,0.55);
  line-height: 1.65;
  margin-bottom: 12px;
}
.cid-match-detail strong { color: #16a34a; }
.cid-match-progress {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cid-match-bar {
  flex: 1;
  height: 6px;
  background: rgba(0,0,0,0.06);
  border-radius: 3px;
  overflow: hidden;
}
.cid-match-fill {
  height: 100%;
  background: linear-gradient(90deg, #16a34a, #22c55e);
  border-radius: 3px;
  transition: width 0.6s ease;
}
.cid-match-fill.mid {
  background: linear-gradient(90deg, #d97706, #f59e0b);
}
.cid-match-pct {
  font-size: 12px;
  color: rgba(0,0,0,0.4);
  flex-shrink: 0;
}

/* Timeline */
.cid-timeline {
  position: relative;
  padding-left: 24px;
}
.cid-tl-item {
  position: relative;
  padding-bottom: 20px;
  padding-left: 20px;
}
.cid-tl-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 10px;
  bottom: -10px;
  width: 2px;
  background: rgba(0,0,0,0.08);
}
.cid-tl-dot {
  position: absolute;
  left: -29px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(0,0,0,0.15);
}
.cid-tl--done .cid-tl-dot {
  background: #16a34a;
  border-color: #16a34a;
}
.cid-tl--done::before { background: #16a34a !important; }
.cid-tl--current .cid-tl-dot {
  background: #2970ff;
  border-color: #2970ff;
  box-shadow: 0 0 0 4px rgba(41,112,255,0.15);
}
.cid-tl-date {
  font-size: 12px;
  font-weight: 600;
  color: rgba(0,0,0,0.5);
  margin-bottom: 2px;
}
.cid-tl--current .cid-tl-date { color: #2970ff; }
.cid-tl-text {
  font-size: 13px;
  color: rgba(0,0,0,0.6);
}

/* Action items */
.cid-section--action {
  background: linear-gradient(135deg, #EFF6FF 0%, #F0F9FF 100%);
  border-radius: 0;
}
.cid-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cid-action-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.8);
  border-radius: 10px;
  border: 1px solid rgba(41,112,255,0.08);
}
.cid-action-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #2970ff;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.cid-action-text {
  font-size: 13px;
  color: rgba(0,0,0,0.6);
  line-height: 1.65;
}
.cid-action-text strong {
  color: #1a1a1a;
  display: block;
  margin-bottom: 2px;
}

/* Footer */
.cid-footer {
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(0,0,0,0.06);
  flex-shrink: 0;
}
.cid-footer-source,
.cid-footer-time {
  font-size: 11.5px;
  color: rgba(0,0,0,0.3);
}

/* ================================================
   问AI 内嵌分析面板 (bad-ai-*)
   ================================================ */
.bad-ai-panel {
  padding: 0;
  animation: badAiFadeIn 0.35s ease;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
@keyframes badAiFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Context bubble — the original insight shown at top right */
.bad-ai-context-bubble {
  max-width: 72%;
  margin-left: auto;
  margin-bottom: 20px;
  padding: 12px 18px;
  background: #7c5cfc;
  color: #fff;
  border-radius: 16px 16px 4px 16px;
  font-size: 13.5px;
  line-height: 1.6;
  box-shadow: 0 4px 16px rgba(124,92,252,0.18);
}

/* AI response wrapper */
.bad-ai-response {
  opacity: 1;
  transition: opacity 0.3s ease;
}
.bad-ai-response--visible {
  opacity: 1;
}

/* Typing indicator */
.bad-ai-typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 16px 0;
}
.bad-ai-typing span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c0c4cc;
  animation: badAiTypingBounce 1.2s infinite ease-in-out;
}
.bad-ai-typing span:nth-child(2) { animation-delay: 0.15s; }
.bad-ai-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes badAiTypingBounce {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* AI intro text */
.bad-ai-intro {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(0,0,0,0.78);
  margin-bottom: 18px;
}
.bad-ai-intro strong {
  color: rgba(0,0,0,0.92);
}

/* Data card */
.bad-ai-card {
  background: #fff;
  border: 1px solid #ebedf0;
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* Breadcrumb */
.bad-ai-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 12px;
  color: rgba(0,0,0,0.38);
  margin-bottom: 14px;
}
.bad-ai-bc-item {
  cursor: pointer;
  transition: color 0.15s;
}
.bad-ai-bc-item:hover {
  color: rgba(0,0,0,0.6);
}
.bad-ai-bc-active {
  color: rgba(0,0,0,0.72);
  font-weight: 600;
}
.bad-ai-bc-sep {
  color: rgba(0,0,0,0.2);
  font-size: 11px;
}

/* Drill up / down */
.bad-ai-drill-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.bad-ai-drill-btn {
  background: #fff;
  border: 1px solid #e0e3e8;
  border-radius: 8px;
  padding: 5px 14px;
  font-size: 12.5px;
  color: rgba(0,0,0,0.6);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.bad-ai-drill-btn:hover {
  background: #f5f6f8;
  border-color: #c8ccd2;
}

/* Section head with core tag */
.bad-ai-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.bad-ai-section-title {
  font-size: 14.5px;
  font-weight: 600;
  color: rgba(0,0,0,0.88);
}
.bad-ai-core-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: rgba(0,0,0,0.55);
  background: #f5f6f8;
  border-radius: 6px;
  padding: 3px 10px;
}
.bad-ai-core-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.bad-ai-core-dot--red { background: #e74c3c; }
.bad-ai-core-dot--green { background: #04B545; }

/* Region rows */
.bad-ai-region-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  cursor: pointer;
  transition: background 0.12s;
}
.bad-ai-region-row:last-child {
  border-bottom: none;
}
.bad-ai-region-row:hover {
  background: #fafbfc;
}
.bad-ai-region-row--highlight {
  background: #fef9f5;
}
.bad-ai-region-row--highlight:hover {
  background: #fdf3ea;
}
.bad-ai-region-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.bad-ai-region-dot--red { background: #e74c3c; }
.bad-ai-region-dot--green { background: #04B545; }
.bad-ai-region-dot--orange { background: #f5a623; }
.bad-ai-region-dot--gray { background: #c0c4cc; }
.bad-ai-region-name {
  flex: 1;
  font-size: 13.5px;
  color: rgba(0,0,0,0.78);
}
.bad-ai-region-value {
  font-size: 14px;
  font-weight: 600;
  color: rgba(0,0,0,0.85);
  min-width: 80px;
  text-align: right;
}
.bad-ai-region-change {
  font-size: 13px;
  font-weight: 500;
  min-width: 56px;
  text-align: right;
}
.bad-ai-change--red { color: #e74c3c; }
.bad-ai-change--green { color: #04B545; }
.bad-ai-region-arrow {
  color: rgba(0,0,0,0.2);
  font-size: 13px;
  flex-shrink: 0;
}

/* Bottom analysis summary */
.bad-ai-summary {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(0,0,0,0.5);
  margin-bottom: 18px;
  padding: 0 2px;
}
.bad-ai-summary-icon {
  flex-shrink: 0;
  font-size: 14px;
  color: rgba(0,0,0,0.35);
  margin-top: 1px;
}

/* Progress indicator */
.bad-ai-progress {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}
.bad-ai-progress-track {
  display: flex;
  align-items: center;
  gap: 0;
}
.bad-ai-progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #dde0e5;
  flex-shrink: 0;
  transition: background 0.2s;
}
.bad-ai-progress-dot--active {
  background: #5b8def;
}
.bad-ai-progress-line {
  width: 36px;
  height: 3px;
  background: #dde0e5;
  transition: background 0.2s;
}
.bad-ai-progress-line--active {
  background: #5b8def;
}

/* Action buttons */
.bad-ai-actions {
  display: flex;
  gap: 12px;
}
.bad-ai-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #e0e3e8;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 13.5px;
  color: rgba(0,0,0,0.72);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.bad-ai-action-btn:hover {
  background: #f8f9fb;
  border-color: #c8ccd2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.bad-ai-action-icon {
  font-size: 15px;
}

/* ========== 找相关负责人 — 人员卡片 ========== */
.bad-person-typing {
  padding: 16px 0 8px;
}
.bad-person-section {
  margin-top: 20px;
  animation: badPersonFadeIn 0.4s ease;
}
.bad-person-cards-row {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}
@keyframes badPersonFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.bad-person-intro {
  font-size: 13.5px;
  color: rgba(0,0,0,0.65);
  margin-bottom: 16px;
  line-height: 1.6;
}
.bad-person-card {
  flex: 1;
  min-width: 0;
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 14px;
  padding: 16px;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.bad-person-card:hover {
  border-color: #d8dce3;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.bad-person-card--primary {
  border-color: #c8d6f0;
  background: linear-gradient(135deg, #fafbff 0%, #f5f8ff 100%);
}
.bad-person-card--primary:hover {
  border-color: #a8bde8;
  box-shadow: 0 4px 20px rgba(39,111,245,0.1);
}
.bad-person-badge {
  position: absolute;
  top: 0;
  right: 14px;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 0 0 6px 6px;
  letter-spacing: 0.3px;
}
.bad-person-badge--primary {
  background: #2970ff;
  color: #fff;
}
.bad-person-badge--info {
  background: #e8f0fe;
  color: #2970ff;
}
.bad-person-badge--warning {
  background: #fff3e0;
  color: #e67e22;
}
.bad-person-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.bad-person-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #f0f2f5;
  flex-shrink: 0;
}
.bad-person-card--primary .bad-person-avatar {
  border-color: #d0dcf0;
}
.bad-person-info {
  flex: 1;
  min-width: 0;
}
.bad-person-name {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}
.bad-person-role {
  font-size: 11.5px;
  color: rgba(0,0,0,0.45);
  margin-top: 1px;
}
.bad-person-metrics {
  display: flex;
  gap: 0;
  margin-bottom: 10px;
  background: #f8f9fb;
  border-radius: 8px;
  overflow: hidden;
}
.bad-person-card--primary .bad-person-metrics {
  background: #eef3ff;
}
.bad-person-metric {
  flex: 1;
  text-align: center;
  padding: 8px 4px;
  border-right: 1px solid rgba(0,0,0,0.05);
}
.bad-person-metric:last-child {
  border-right: none;
}
.bad-person-metric-val {
  font-size: 13px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1px;
}
.bad-person-metric-label {
  font-size: 10px;
  color: rgba(0,0,0,0.4);
}
.bad-person-desc {
  font-size: 12px;
  color: rgba(0,0,0,0.55);
  line-height: 1.55;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bad-person-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 12px;
}
.bad-person-tag {
  font-size: 10.5px;
  padding: 2px 8px;
  border-radius: 10px;
  background: #f3f4f6;
  color: rgba(0,0,0,0.55);
}
.bad-person-card--primary .bad-person-tag {
  background: #e8eeff;
  color: #2970ff;
}
.bad-person-actions {
  display: flex;
  gap: 8px;
}
.bad-person-btn {
  flex: 1;
  padding: 7px 0;
  border: 1px solid #e0e3e8;
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  font-weight: 500;
  color: rgba(0,0,0,0.65);
  cursor: pointer;
  text-align: center;
  transition: background 0.15s, border-color 0.15s;
}
.bad-person-btn:hover {
  background: #f5f6f8;
  border-color: #c8ccd2;
}
.bad-person-btn--primary {
  background: #2970ff;
  color: #fff;
  border-color: #2970ff;
}
.bad-person-btn--primary:hover {
  background: #1d5ed9;
  border-color: #1d5ed9;
}
.bad-person-suggestion {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
  padding: 14px 16px;
  background: #fffbf0;
  border: 1px solid #fde8b0;
  border-radius: 12px;
  font-size: 13px;
  color: rgba(0,0,0,0.6);
  line-height: 1.6;
}
.bad-person-suggestion-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}
.bad-person-notice {
  margin-top: 10px;
  padding: 10px 14px;
  background: #f0faf4;
  border: 1px solid #c6f0d6;
  border-radius: 10px;
  font-size: 13px;
  color: #16a34a;
  line-height: 1.5;
  animation: badPersonFadeIn 0.3s ease;
}

/* ---- Directive Panel ---- */
.bad-directive-panel {
  margin-top: 14px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  animation: badPersonFadeIn 0.25s ease;
}
.bad-directive-header {
  margin-bottom: 12px;
}
.bad-directive-to {
  font-size: 13.5px;
  color: rgba(0,0,0,0.7);
}
.bad-directive-prompts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.bad-directive-prompt {
  padding: 10px 14px;
  background: #f8f9fb;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  font-size: 13px;
  color: rgba(0,0,0,0.65);
  line-height: 1.55;
  cursor: pointer;
  transition: all 0.15s;
}
.bad-directive-prompt:hover {
  background: rgba(41,112,255,0.04);
  border-color: rgba(41,112,255,0.2);
  color: #2970ff;
}
.bad-directive-prompt.selected {
  background: rgba(41,112,255,0.06);
  border-color: #2970ff;
  color: #2970ff;
}
.bad-directive-input-wrap {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
.bad-directive-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 10px;
  font-size: 13px;
  color: #1a1a1a;
  resize: none;
  outline: none;
  font-family: inherit;
  line-height: 1.5;
  transition: border-color 0.15s;
}
.bad-directive-input:focus {
  border-color: #2970ff;
}
.bad-directive-send {
  padding: 10px 20px;
  background: #2970ff;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
  flex-shrink: 0;
}
.bad-directive-send:hover {
  background: #1d5ed9;
}

/* ===== Customer Detail Page (客户详情页) ===== */
.ceo-custdetail-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}
.ceo-custdetail-panel {
  width: 92%;
  max-width: 780px;
  max-height: 88vh;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ceo-custdetail-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid #f0f0f0;
}
.ceo-custdetail-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  font-size: 13px;
  color: rgba(0,0,0,0.5);
  cursor: pointer;
  padding: 0;
  margin-bottom: 10px;
}
.ceo-custdetail-back:hover { color: #2970ff; }
.ceo-custdetail-title-area {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ceo-custdetail-name {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
}
.ceo-custdetail-status {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}
.ceo-custdetail-meta {
  font-size: 12px;
  color: rgba(0,0,0,0.45);
  margin-top: 6px;
}
.ceo-custdetail-toggle {
  display: flex;
  gap: 0;
  padding: 12px 24px 0;
}
.ceo-custdetail-toggle-btn {
  padding: 6px 18px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #e5e5e5;
  background: #fff;
  color: rgba(0,0,0,0.55);
  cursor: pointer;
  transition: all 0.15s;
}
.ceo-custdetail-toggle-btn:first-child { border-radius: 8px 0 0 8px; }
.ceo-custdetail-toggle-btn:last-child { border-radius: 0 8px 8px 0; border-left: none; }
.ceo-custdetail-toggle-btn.active {
  background: #2970ff;
  color: #fff;
  border-color: #2970ff;
}
.ceo-custdetail-body {
  padding: 16px 24px 24px;
  overflow-y: auto;
  flex: 1;
}
.ceo-custdetail-section {
  margin-bottom: 18px;
  padding: 14px 16px;
  background: #fafafa;
  border-radius: 12px;
  border: 1px solid #f0f0f0;
}
.ceo-custdetail-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
}
.ceo-custdetail-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 8px;
}
.ceo-custdetail-metrics-row:last-child { margin-bottom: 0; }
.ceo-custdetail-metric {
  text-align: center;
}
.ceo-custdetail-metric-val {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
}
.ceo-custdetail-metric-val.danger { color: #F45517; }
.ceo-custdetail-metric-val.warning { color: #d97706; }
.ceo-custdetail-metric-label {
  font-size: 11px;
  color: rgba(0,0,0,0.45);
  margin-top: 2px;
}

/* Customer Detail Tabs */
.ceo-custdetail-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #f0f0f0;
  margin: 4px 0 14px;
}
.ceo-custdetail-tab {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(0,0,0,0.45);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
}
.ceo-custdetail-tab:hover { color: rgba(0,0,0,0.7); }
.ceo-custdetail-tab.active {
  color: #2970ff;
  border-bottom-color: #2970ff;
}

/* Contract detail sub-section */
.ceo-custdetail-subtoggle {
  display: flex;
  gap: 0;
  margin-bottom: 12px;
}
.ceo-custdetail-subtoggle-btn {
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #e5e5e5;
  background: #fff;
  color: rgba(0,0,0,0.5);
  cursor: pointer;
}
.ceo-custdetail-subtoggle-btn:first-child { border-radius: 6px 0 0 6px; }
.ceo-custdetail-subtoggle-btn:last-child { border-radius: 0 6px 6px 0; border-left: none; }
.ceo-custdetail-subtoggle-btn.active {
  background: #2970ff;
  color: #fff;
  border-color: #2970ff;
}
.ceo-custdetail-contract-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(41,112,255,0.04), rgba(41,112,255,0.02));
  border-radius: 10px;
  border: 1px solid rgba(41,112,255,0.08);
  margin-bottom: 12px;
}
.ceo-custdetail-contract-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ceo-custdetail-contract-label {
  font-size: 12px;
  color: rgba(0,0,0,0.5);
}
.ceo-custdetail-contract-val {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
}
.ceo-custdetail-sort-row {
  display: flex;
  gap: 8px;
}
.ceo-custdetail-sort-btn {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  border: 1px solid #e5e5e5;
  background: #fff;
  color: rgba(0,0,0,0.55);
  cursor: pointer;
  transition: all 0.15s;
}
.ceo-custdetail-sort-btn.active {
  background: #2970ff;
  color: #fff;
  border-color: #2970ff;
}
.ceo-custdetail-sort-btn:hover:not(.active) {
  border-color: #2970ff;
  color: #2970ff;
}

/* Danger/warning metric value color in card */
.ceo-cust-v3-metric-value.danger { color: #F45517; font-weight: 700; }
.ceo-cust-full-metric-val.danger { color: #F45517; }
.ceo-cust-full-metric-val.warning { color: #d97706; }

/* Industry tag in card header */
.ceo-cust-v3-industry-tag {
  font-size: 10px;
  color: rgba(0,0,0,0.4);
  background: rgba(0,0,0,0.04);
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 4px;
}

/* Secondary KPI metrics row */
.ceo-cust-v3-metrics--secondary {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px dashed rgba(0,0,0,0.06);
}
.ceo-cust-v3-metrics--secondary .ceo-cust-v3-metric-value {
  font-size: 15px;
}
.ceo-cust-v3-metric-value.warning { color: #d97706; font-weight: 700; }

/* Action buttons in card */
.ceo-cust-v3-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,0.05);
}
.ceo-cust-action-btn {
  flex: 1;
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 600;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #fff;
  color: rgba(0,0,0,0.6);
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}
.ceo-cust-action-btn:hover {
  border-color: #2970ff;
  color: #2970ff;
}
.ceo-cust-action-btn.primary {
  background: #2970ff;
  color: #fff;
  border-color: #2970ff;
}
.ceo-cust-action-btn.primary:hover {
  background: #1d5ed9;
}

/* AI 客户经营洞察 panel */
.ceo-cust-insight-panel {
  margin-top: 16px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(41,112,255,0.03), rgba(124,58,237,0.03));
  border: 1px solid rgba(41,112,255,0.08);
  border-radius: 14px;
}
.ceo-cust-insight-title {
  font-size: 13px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ceo-cust-insight-title-icon {
  font-size: 15px;
}
.ceo-cust-insight-item {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.05);
}
.ceo-cust-insight-item--danger {
  border-left: 3px solid #F45517;
}
.ceo-cust-insight-item--warning {
  border-left: 3px solid #d97706;
}
.ceo-cust-insight-item--up {
  border-left: 3px solid #16a34a;
}
.ceo-cust-insight-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}
.ceo-cust-insight-content {
  flex: 1;
  min-width: 0;
}
.ceo-cust-insight-text {
  font-size: 12.5px;
  color: #1a1a1a;
  line-height: 1.5;
}
.ceo-cust-insight-text strong {
  font-weight: 700;
}
.ceo-cust-insight-action {
  font-size: 11.5px;
  color: rgba(0,0,0,0.5);
  margin-top: 4px;
  padding-left: 0;
  font-style: italic;
}
.ceo-cust-insight-summary {
  display: flex;
  gap: 20px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.ceo-cust-insight-summary-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.ceo-cust-insight-summary-label {
  font-size: 11px;
  color: rgba(0,0,0,0.4);
}
.ceo-cust-insight-summary-val {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
}

/* ===== Schedule New Layout (今日日程与待办) ===== */
.sched-new-layout {
  padding: 4px 0;
}
.sched-new-title {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 4px;
}
.sched-new-subtitle {
  font-size: 13px;
  color: rgba(0,0,0,0.45);
  margin-bottom: 14px;
}
.sched-new-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.sched-new-stat-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.sched-new-stat-card:hover {
  background: #f8fbff;
  border-color: rgba(41,112,255,0.12);
}
.sched-new-stat-card--active {
  background: #f0f7ff;
  border-color: rgba(41,112,255,0.15);
}
.sched-new-stat-label {
  font-size: 12px;
  color: rgba(0,0,0,0.5);
  font-weight: 500;
}
.sched-new-stat-label--highlight {
  color: #2970ff;
  font-weight: 600;
}
.sched-new-stat-val {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
}
.sched-new-stat-note {
  font-size: 11px;
  color: rgba(0,0,0,0.4);
  margin-top: 1px;
}
.sched-new-stat-highlight {
  color: #2970ff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Schedule items */
.sched-new-items {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.sched-new-item {
  border-top: 1px solid rgba(0,0,0,0.06);
}
.sched-new-item:last-child {
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.sched-new-item-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 4px;
  cursor: pointer;
  transition: background 0.15s;
}
.sched-new-item-header:hover {
  background: rgba(0,0,0,0.015);
}
.sched-new-item-time {
  font-size: 16px;
  font-weight: 600;
  color: #2970ff;
  min-width: 50px;
  flex-shrink: 0;
}
.sched-new-item-info {
  flex: 1;
  min-width: 0;
}
.sched-new-item-title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 2px;
}
.sched-new-item-meta {
  font-size: 13px;
  color: rgba(0,0,0,0.45);
}
.sched-new-item-toggle {
  color: rgba(0,0,0,0.3);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.sched-new-item--expanded .sched-new-item-toggle {
  transform: rotate(180deg);
}

/* Item detail body */
.sched-new-item-body {
  padding: 0 4px 24px 70px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sched-new-detail-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sched-new-detail-label {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}
.sched-new-detail-text {
  font-size: 14px;
  color: rgba(0,0,0,0.7);
  line-height: 1.6;
}
.sched-new-detail-people {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sched-new-people-avatars {
  display: flex;
  align-items: center;
}
.sched-new-people-avatars img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  margin-left: -6px;
}
.sched-new-people-avatars img:first-child {
  margin-left: 0;
}
.sched-new-people-text {
  font-size: 13px;
  color: rgba(0,0,0,0.6);
}

/* Tags */
.sched-new-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sched-new-tag {
  font-size: 13px;
  color: #2970ff;
  background: rgba(41,112,255,0.06);
  border: 1px solid rgba(41,112,255,0.15);
  border-radius: 6px;
  padding: 6px 14px;
  font-weight: 500;
}

/* AI suggestion */
.sched-new-ai-suggestion {
  background: linear-gradient(135deg, rgba(41,112,255,0.04), rgba(186,133,254,0.04));
  border: 1px solid rgba(41,112,255,0.1);
  border-radius: 10px;
  padding: 14px 16px;
}
.sched-new-ai-title {
  font-size: 13px;
  font-weight: 600;
  color: #2970ff;
  margin-bottom: 8px;
}
.sched-new-ai-text {
  font-size: 13px;
  color: rgba(0,0,0,0.7);
  line-height: 1.7;
}

/* Todo checklist */
.sched-new-todo-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sched-new-todo-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: rgba(0,0,0,0.7);
}
.sched-new-todo-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid rgba(0,0,0,0.2);
  cursor: pointer;
  accent-color: #2970ff;
}
