/* 侧栏对话区：未登录 / 已登录（Figma 931:3553） */

.ai-chat__history.is-guest .ai-chat__history-list,
.AI-panel__history.is-guest .AI-panel__history-list {
  display: none !important;
}

.ai-chat__history.is-authed .ai-chat__history-list,
.AI-panel__history.is-authed .AI-panel__history-list {
  display: flex !important;
}

.ai-chat__history.is-authed .ai-chat__history-login,
.AI-panel__history.is-authed .AI-panel__history-login {
  display: none !important;
}

.ai-chat__history-login,
.AI-panel__history-login {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 160px;
  padding: 0 16px;
  box-sizing: border-box;
}

.ai-chat__history-login-tip,
.AI-panel__history-login-tip {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
  color: #9b9fa8;
}

.ai-chat__history-login-btn,
.AI-panel__history-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 12px 28px;
  border: 1px solid transparent;
  border-radius: 20px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, #0175e8 0%, #9436ff 100%) border-box;
  cursor: pointer;
  transition: opacity 0.2s;
}

.ai-chat__history-login-btn span,
.AI-panel__history-login-btn span {
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  background: linear-gradient(90deg, #0175e8 0%, #9436ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.ai-chat__history-login-btn:hover,
.AI-panel__history-login-btn:hover {
  opacity: 0.88;
}

.ai-chat__history-login-btn:disabled,
.AI-panel__history-login-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ai-chat__history-list,
.AI-panel__history-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.ai-chat__history-list {
  flex: 1 1 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.ai-chat__history-login {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.AI-panel__history-list {
  flex: 1 1 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.AI-panel__history-login {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.ai-chat__history-empty,
.AI-panel__history-empty {
  margin: 8px 16px 0;
  font-size: 12px;
  line-height: 1.5;
  color: #9b9fa8;
  text-align: center;
}

.ai-chat__history-loading,
.AI-panel__history-loading {
  margin: 8px 16px 0;
  font-size: 12px;
  color: #9b9fa8;
  text-align: center;
}
