.ai-picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: aiPickerFadeIn 0.2s ease;
}

.ai-picker-overlay.hidden {
  display: none !important;
}

@keyframes aiPickerFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.ai-picker-dialog {
  width: min(920px, 100%);
  height: min(640px, calc(100vh - 48px));
  background: #fff;
  border-radius: 12px;
  display: flex;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

.ai-picker-sidebar {
  width: 200px;
  flex-shrink: 0;
  background: #fafafa;
  border-right: 1px solid #f0f0f0;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-picker-sidebar-title {
  font-size: 15px;
  font-weight: 600;
  color: #1f1f1f;
  margin-bottom: 8px;
  padding: 0 8px;
}

.ai-picker-create-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 40px;
  margin-top: auto;
  border: none;
  border-radius: 8px;
  background: #ff4d4f;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 77, 79, 0.35);
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}

.ai-picker-create-btn:hover {
  background: #e63e40;
  box-shadow: 0 4px 12px rgba(255, 77, 79, 0.45);
}

.ai-picker-create-btn:active {
  transform: scale(0.98);
}

.ai-picker-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #666;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s, color 0.2s;
}

.ai-picker-nav-item:hover {
  background: #f5f5f5;
}

.ai-picker-nav-item.active {
  background: #fff1f0;
  color: #ff4d4f;
}

.ai-picker-nav-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ai-picker-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 20px 24px;
}

.ai-picker-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.ai-picker-header-left h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1f1f1f;
  margin: 0 0 4px;
}

.ai-picker-count {
  font-size: 13px;
  color: #999;
}

.ai-picker-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-picker-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  height: 34px;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  background: #fafafa;
  min-width: 180px;
}

.ai-picker-search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  font-family: inherit;
  color: #333;
  width: 120px;
}

.ai-picker-search input::placeholder {
  color: #bbb;
}

.ai-picker-close {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  color: #999;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.ai-picker-close:hover {
  background: #f5f5f5;
  color: #666;
}

.ai-picker-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  flex-shrink: 0;
  min-height: 32px;
}

.ai-picker-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid #ffccc7;
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  color: #333;
}

.ai-picker-tag-icon {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
}

.ai-picker-tag-remove {
  border: none;
  background: transparent;
  color: #ff4d4f;
  cursor: pointer;
  padding: 0;
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
}

.ai-picker-list {
  flex: 1;
  overflow-y: auto;
  border-top: 1px solid #f0f0f0;
}

.ai-picker-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 4px;
  border-bottom: 1px solid #f5f5f5;
}

.ai-picker-item-selectable {
  cursor: pointer;
  transition: background 0.2s ease;
}

.ai-picker-item-selectable:hover {
  background: #fafafa;
}

.ai-picker-item-active {
  background: #fff5f5;
}

.ai-picker-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.ai-picker-item-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #e6f4ff;
}

.ai-picker-item-body {
  flex: 1;
  min-width: 0;
}

.ai-picker-item-title {
  font-size: 14px;
  font-weight: 600;
  color: #1f1f1f;
  margin-bottom: 4px;
}

.ai-picker-item-desc {
  font-size: 12px;
  color: #999;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-picker-item-action {
  flex-shrink: 0;
}

.ai-picker-check {
  width: 24px;
  height: 24px;
  color: #ff4d4f;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-picker-add-btn {
  height: 30px;
  padding: 0 16px;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  background: #fff;
  color: #666;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.ai-picker-add-btn:hover {
  border-color: #ff4d4f;
  color: #ff4d4f;
}

.ai-picker-empty {
  padding: 48px 0;
  text-align: center;
  color: #bbb;
  font-size: 14px;
}
