/* 用户列表面板（与运营端 user.vue 子结构接近：子 Tab + 列表 + 底部查找） */
#video-right .chat-main.chat-main-with-tabs #panel-user.assistant-panel {
  background: #1a1d21;
}

.user-panel-inner {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  color: #e6e8ea;
}

.user-subtabs {
  flex: 0 0 auto;
  display: flex;
  gap: 12px;
  padding: 8px 10px 6px;
  border-bottom: 1px solid #2d3238;
  font-size: 13px;
}

.user-subtab {
  padding: 0 2px 6px;
  color: #cfd3d7;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}

.user-subtab:hover {
  color: #fff;
}

.user-subtab.active {
  color: #ff6a00;
  border-bottom-color: #ff6a00;
}

.user-offline-toolbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  background: #252830;
  border-bottom: 1px solid #2d3238;
}

.user-offline-toolbar[hidden] {
  display: none !important;
}

.user-offline-select {
  flex: 1;
  max-width: 140px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid #3c3e46;
  border-radius: 4px;
  background: #fff;
  color: #333;
  font-size: 12px;
}

.user-offline-export {
  flex: 0 0 auto;
  min-width: 72px;
  height: 28px;
  padding: 0 10px;
  border: none;
  border-radius: 4px;
  background: #fff;
  color: #333;
  font-size: 12px;
  cursor: pointer;
}

.user-offline-export:hover {
  color: #ff842f;
  background: #f2e7d8;
}

.user-offline-sale {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: #9aa0a6;
  line-height: 1.3;
}

.user-list-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 6px 0;
}

.user-lists {
  list-style: none;
  margin: 0;
  padding: 0;
}

.user-pre-list {
  position: relative;
  min-height: 40px;
  padding: 6px 10px 6px 48px;
  margin: 4px 6px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.35;
  color: #fff;
}

.user-pre-list--with-tools {
  padding-right: 118px;
}

.user-pre-list--flagged.user-pre-list--with-tools {
  padding-right: 168px;
}

.user-tools {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0.4;
}

.user-pre-list:hover .user-tools {
  opacity: 1;
}

.user-tools--shift {
  right: 58px;
}

.user-tool-btn {
  width: 20px;
  height: 20px;
  border: none;
  padding: 0;
  cursor: pointer;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: transparent;
  flex-shrink: 0;
}

.user-ban-txt {
  position: absolute;
  right: 8px;
  top: 18px;
  font-size: 11px;
  color: #e85d5d;
  white-space: nowrap;
}

.user-pre-list:hover {
  background: #ccc;
  color: #333!important;
}

.user-avator-wrap {
  position: absolute;
  left: 10px;
  top: 6px;
  width: 32px;
  height: 32px;
}

.user-avator-fallback {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: #3c3e46;
  border: 1px solid #555b63;
  box-sizing: border-box;
}

.user-avator-fallback.role-publisher {
  background: #c2410c;
  border-color: #ff6a00;
}

.user-avator-fallback.role-teacher {
  background: #1d4ed8;
  border-color: #60a5fa;
}

.user-avator-fallback.role-host {
  background: #6d28d9;
  border-color: #a78bfa;
}

.user-avator-fallback.role-student {
  background: #374151;
  border-color: #6b7280;
}

.user-role-badge {
  position: absolute;
  left: 50%;
  bottom: -2px;
  transform: translateX(-50%);
  max-width: 36px;
  padding: 0 3px;
  font-size: 9px;
  line-height: 14px;
  text-align: center;
  border-radius: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role-badge.publisher {
  background: #ff6a00;
  color: #fff;
}

.user-role-badge.teacher {
  background: #3b82f6;
  color: #fff;
}

.user-role-badge.host {
  background: #8b5cf6;
  color: #fff;
}

.user-line-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  padding-right: 4px;
}

.user-role-prefix {
  color: #ff9f66;
  font-weight: 500;
}

.user-name-text {
  color: #fff;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-ip-text {
  color: #9aa0a6;
  font-size: 11px;
  word-break: break-all;
}

.user-empty {
  padding: 28px 14px;
  text-align: center;
  font-size: 12px;
  color: #6b7078;
  line-height: 1.6;
}

.user-footer-search {
  flex: 0 0 auto;
  padding: 8px;
  border-top: 1px solid #2d3238;
  background: #24292e;
}

.user-footer-search .user-search-row {
  display: flex;
  gap: 6px;
  align-items: stretch;
}

.user-footer-search input {
  flex: 1;
  min-width: 0;
  height: 30px;
  padding: 0 8px;
  border: 1px solid #3c424a;
  border-radius: 4px;
  background: #1a1d21;
  color: #e6e8ea;
  font-size: 12px;
}

.user-footer-search input:focus {
  outline: none;
  border-color: #ff6a00;
}

.user-footer-search .user-search-btn {
  flex: 0 0 auto;
  min-width: 52px;
  padding: 0 12px;
  height: 30px;
  line-height: 30px;
  border: none;
  border-radius: 4px;
  background: #ff6a00;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
}

.user-footer-search .user-search-btn:hover {
  filter: brightness(1.05);
}

.user-hint-bar {
  font-size: 10px;
  color: #6b7078;
  margin-top: 4px;
  line-height: 1.4;
}

.user-ban-modal-bd {
  text-align: center;
}

.user-ban-modal-q {
  margin: 0 0 16px;
  font-size: 14px;
  color: #333;
  line-height: 1.5;
}

.user-ban-modal-opt {
  display: block;
  margin: 0 0 8px;
  font-size: 12px;
  color: #666;
  cursor: pointer;
  text-align: center;
}

.user-ban-modal-opt input {
  margin-right: 4px;
  vertical-align: middle;
}
