@import url("/suite/css/desktop/sidebar-sidebar.css");


.chat-sidebar-conv-item:hover {
  background: var(--win-caption-hover, rgba(255,255,255,0.06));
}

.chat-sidebar-conv-item.active {
  background: var(--surface-active, rgba(255,255,255,0.10));
}

.chat-sidebar-conv-info {
  flex: 1;
  min-width: 0;
}

.chat-sidebar-conv-name {
  font-size: var(--text-xs);
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-sidebar-conv-item.active .chat-sidebar-conv-name {
  color: var(--text);
  font-weight: 600;
}

.chat-sidebar-conv-time {
  font-size: var(--text-2xs);
  color: var(--text-secondary);
  flex-shrink: 0;
}

.chat-sidebar-history-empty,
.chat-sidebar-signin-hint {
  margin: 6px 4px;
  padding: 12px;
  border-radius: 8px;
  font-size: var(--text-2xs);
  color: var(--text-secondary);
  text-align: center;
}

.chat-sidebar-signin-hint {
  border: 1px dashed var(--shell-border, rgba(255,255,255,0.15));
  cursor: pointer;
  transition: all 150ms;
}

.chat-sidebar-signin-hint:hover {
  border-color: var(--primary, var(--accent, var(--primary)));
  color: var(--primary, var(--accent, var(--primary)));
}

/* ── Theme selector row ── */
.chat-sidebar-theme {
  flex-shrink: 0;
  padding: 0 12px 6px;
}

.chat-sidebar-theme .theme-dropdown {
  width: 100%;
  padding: 7px 26px 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--shell-border, rgba(255,255,255,0.12));
  font-size: var(--text-2xs);
}

.chat-sidebar-theme .theme-dropdown option {
  background: var(--surface);
  color: var(--text);
}

/* ── User footer ── */
.chat-sidebar-user {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  margin: 4px 8px 8px;
  border-radius: 10px;
  cursor: pointer;
  border-top: 1px solid transparent;
  background: var(--surface-hover, rgba(255,255,255,0.04));
  transition: background 150ms;
  user-select: none;
}

.chat-sidebar-user:hover {
  background: var(--win-caption-hover, rgba(255,255,255,0.08));
}

.sidebar-user-avatar {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary, var(--accent, var(--primary)));
  color: #111;
  font-size: var(--text-2xs);
  font-weight: 700;
  flex-shrink: 0;
}

.sidebar-user-avatar-anon {
  background: var(--surface-active, rgba(255,255,255,0.12));
  color: var(--text-secondary);
}

.sidebar-user-name {
  flex: 1;
  min-width: 0;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-chevron {
  font-size: var(--text-2xs);
  color: var(--text-secondary);
  flex-shrink: 0;
}

/* ── Collapsed icons ── */
.chat-sidebar-collapsed-icons {
  display: none;
  flex-direction: column;
  align-items: center;
  padding-top: 8px;
  gap: 4px;
}

.chat-sidebar.collapsed .chat-sidebar-collapsed-icons {
  display: flex;
}

.chat-sidebar-collapsed-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 10px;
  transition: all 150ms;
  color: var(--text-secondary);
}

.chat-sidebar-collapsed-icon:hover {
  background: var(--win-caption-hover, rgba(255,255,255,0.08));
  color: var(--text);
}

.chat-sidebar-collapsed-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

/* ── Public mode / fullscreen sidebar hide ── */
body.public-mode .chat-sidebar { /* always visible */ }

body.fullscreen .chat-sidebar {
  display: none !important;
}

/* ── Sidebar feedback box (#2237) ── */
.gb-sidebar-feedback {
  padding: 8px 10px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.gb-sidebar-feedback-label {
  font-size: var(--text-2xs);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.gb-sidebar-feedback-text {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  min-height: 3.6em;
  max-height: 10em;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: var(--text-2xs);
  line-height: 1.3;
}
.gb-sidebar-feedback-btn {
  align-self: flex-end;
  padding: 4px 10px;
  font-size: var(--text-2xs);
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--accent, var(--primary));
  color: #fff;
  cursor: pointer;
}
.gb-sidebar-feedback-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.chat-sidebar.collapsed .gb-sidebar-feedback {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
