/* 用户管理 */

.users-editor .users-summary {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.users-stat {
  flex: 1;
  padding: 20px 24px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--border);
}

.users-stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}

.users-stat-label {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.users-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.users-toolbar-hint {
  font-size: 13px;
  color: var(--text-muted);
}

.users-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.user-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}

.user-avatar-wrap {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.user-avatar-wrap .user-avatar,
.user-avatar-wrap .placeholder {
  width: 56px;
  height: 56px;
}

.user-row:hover {
  border-color: rgba(94, 179, 246, 0.35);
}

.user-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(94, 179, 246, 0.25);
  background: rgba(94, 179, 246, 0.08);
}

.user-avatar.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--accent);
}

.user-info {
  flex: 1;
  min-width: 0;
}

.user-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-meta {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.user-status {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.user-status.complete {
  background: rgba(7, 193, 96, 0.12);
  color: #07c160;
}

.user-status.incomplete {
  background: rgba(255, 193, 7, 0.12);
  color: #ffc107;
}

.users-empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  border-radius: 12px;
  border: 1px dashed var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.users-preview-card {
  padding: 16px;
  color: #e8eaed;
}

.users-preview-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.users-preview-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.users-preview-item:last-child {
  border-bottom: none;
}

.users-preview-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(94, 179, 246, 0.12);
}

.users-preview-name {
  font-size: 13px;
  font-weight: 600;
}

.users-preview-more {
  margin-top: 10px;
  font-size: 12px;
  color: #7a8494;
  text-align: center;
}

.user-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.user-admin-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  color: #f472b6;
  background: rgba(244, 114, 182, 0.12);
  border: 1px solid rgba(244, 114, 182, 0.25);
  vertical-align: middle;
}

#pointsDelta {
  width: 100%;
  margin: 12px 0 16px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  box-sizing: border-box;
}
