/* v20261001c：AI 助手 Pro 样式（会话侧栏 / 流式 / 追问 chips / 消息操作 / 状态条） */

#assistantView .assistant-layout.assistant-pro-layout {
  display: grid !important;
  grid-template-columns: 220px minmax(0, 1fr) 300px !important;
  /* v20261002：styles.css 后段 #assistantView .assistant-layout { display:block; max-width:1080/1120px; margin:0 auto }
     把三栏限宽居中 → 中间对话区只剩 ~550px（手机既视感）。这里同权重解除，PC 铺满屏宽。 */
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  align-items: start !important;
}

.assistant-pro-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 10px;
  background: var(--panel-bg, #fff);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  max-height: 78vh;
  overflow: auto;
}

.assistant-pro-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 12px;
  color: #64748b;
  letter-spacing: 0.04em;
}

.assistant-pro-new {
  width: 100%;
  border: 1px solid rgba(79, 70, 229, 0.35);
  background: rgba(79, 70, 229, 0.06);
  color: #4338ca;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease;
}

.assistant-pro-new:hover { background: rgba(79, 70, 229, 0.12); }

.assistant-pro-search {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 9px;
  padding: 6px 8px;
  font-size: 12px;
  outline: none;
}

.assistant-pro-group {
  font-size: 11px;
  color: #94a3b8;
  padding: 6px 4px 2px;
}

.assistant-pro-session {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 8px;
  border-radius: 9px;
  font-size: 12.5px;
  color: #334155;
  cursor: pointer;
  border: 1px solid transparent;
}

.assistant-pro-session:hover { background: rgba(15, 23, 42, 0.04); }

.assistant-pro-session.is-active {
  background: rgba(79, 70, 229, 0.1);
  border-color: rgba(79, 70, 229, 0.35);
  color: #3730a3;
}

.assistant-pro-session-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assistant-pro-session-del {
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 6px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.assistant-pro-session:hover .assistant-pro-session-del { opacity: 1; }
.assistant-pro-session-del:hover { color: #b91c1c; background: rgba(185, 28, 28, 0.08); }

.assistant-pro-empty { font-size: 12px; color: #94a3b8; padding: 8px 6px; }

.assistant-pro-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 11.5px;
  color: #64748b;
}

.assistant-pro-chip {
  background: rgba(79, 70, 229, 0.1);
  color: #4338ca;
  border-radius: 999px;
  padding: 2px 9px;
}

.assistant-pro-stat { color: #94a3b8; }

.assistant-pro-stage {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 8px;
  font-size: 12px;
  color: #64748b;
}

.assistant-pro-stage-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #818cf8;
  animation: assistantProPulse 1s ease-in-out infinite;
}

@keyframes assistantProPulse {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1); }
}

.assistant-pro-followups {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.assistant-pro-followup {
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: #475569;
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.assistant-pro-followup:hover {
  border-color: rgba(79, 70, 229, 0.4);
  color: #4338ca;
  background: rgba(79, 70, 229, 0.05);
}

.assistant-pro-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-size: 12px;
  color: #94a3b8;
}

.assistant-pro-action {
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 12px;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 6px;
}

.assistant-pro-action:hover { color: #4338ca; background: rgba(79, 70, 229, 0.08); }
.assistant-pro-action.is-on { color: #4338ca; font-weight: 500; }

.assistant-pro-mention {
  position: absolute;
  bottom: 100%;
  left: 12px;
  margin-bottom: 6px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  max-height: 220px;
  overflow: auto;
  z-index: 30;
  min-width: 200px;
}

.assistant-pro-mention button {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 7px 10px;
  font-size: 12.5px;
  color: #334155;
  cursor: pointer;
}

.assistant-pro-mention button:hover { background: rgba(79, 70, 229, 0.08); color: #4338ca; }
.assistant-pro-mention small { color: #94a3b8; margin-left: 6px; }

body[data-viewport-mode="mobile"] #assistantView .assistant-layout.assistant-pro-layout,
body[data-viewport-mode="tablet"] #assistantView .assistant-layout.assistant-pro-layout {
  grid-template-columns: minmax(0, 1fr) !important;
}

@media (max-width: 1100px) {
  #assistantView .assistant-layout.assistant-pro-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .assistant-pro-sidebar {
    max-height: 260px;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
  .assistant-pro-sidebar .assistant-pro-new { width: auto; }
  .assistant-pro-sidebar .assistant-pro-search { width: 180px; }
  .assistant-pro-session { width: auto; max-width: 240px; border: 1px solid rgba(15, 23, 42, 0.08); }
  .assistant-pro-sidebar-head, .assistant-pro-group { display: none; }
}

body[data-viewport-mode="mobile"] .assistant-pro-sidebar,
body[data-viewport-mode="tablet"] .assistant-pro-sidebar { max-height: none; }

/* ===== v20261002：候选人主档「简历附件/速览」重构 ===== */
.candidate-profile-block .profile-empty-inline { padding: 8px 2px 4px; }
.candidate-profile-block .profile-empty-inline p { margin: 0 0 4px; font-size: 13px; color: #475569; }
.candidate-profile-block .profile-empty-inline .profile-empty-sub { font-size: 12px; color: #94a3b8; }
.profile-keywords-wall { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0 2px; }
.profile-keywords-wall .profile-keyword-item {
  border: 1px solid rgba(37, 99, 235, 0.22);
  background: rgba(37, 99, 235, 0.06);
  color: #1d4ed8;
  border-radius: 999px;
  padding: 3px 11px;
  font-size: 12px;
  line-height: 1.6;
  max-width: 100%;
  white-space: normal;
  word-break: break-all;
}
.profile-keywords-wall .profile-keyword-item mark.peek-hit { background: #fef08a; color: inherit; }
.profile-peek-tip { margin: 8px 0 0; font-size: 12px; color: #94a3b8; }
.candidate-resume-peek details[open] pre { max-height: 480px; }
.candidate-resume-peek details[open] summary { margin-bottom: 8px; }
.candidate-resume-peek .resume-file-bar-inline { margin: 2px 0 10px; gap: 8px; }
