.sidebar-chats {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 3px 8px 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  color-scheme: dark;
  scrollbar-width: thin;
  scrollbar-color: rgba(205, 222, 217, .22) transparent;
  scrollbar-gutter: stable;
}

.sidebar-chats::-webkit-scrollbar { width: 5px; }
.sidebar-chats::-webkit-scrollbar-track { background: transparent; }
.sidebar-chats::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background: rgba(205, 222, 217, .22);
}
.sidebar-chats::-webkit-scrollbar-thumb:hover { background: rgba(205, 222, 217, .4); }
.sidebar-chats::-webkit-scrollbar-button { display: none; }

.chat-list-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #c3d3d0;
  font-size: .875rem;
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
  text-decoration: none;
  transition: background-color .12s ease, color .12s ease;
}

.chat-list-item:hover { background: rgba(255, 255, 255, .065); color: #f3f7f5; }
.chat-list-item.is-current { background: rgba(255, 255, 255, .12); color: #fff; }
.chat-list-item.is-current:hover { background: rgba(255, 255, 255, .15); }
.chat-list-item:focus-visible {
  outline: 2px solid #86bcb2;
  outline-offset: -2px;
}
.chat-list-title {
  display: block;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.chat-list-empty { margin: 8px 10px; color: #9cb3ae; font-size: .875rem; line-height: 1.5; }

.sidebar-section-head:has(+ .sidebar-chats) {
  margin: 16px 6px 6px 10px;
  color: #9cb3ae;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.sidebar-section-head .sidebar-new-chat {
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  border-radius: 6px;
  color: #b7ccc6;
  font-size: 20px;
  font-weight: 400;
}
.sidebar-section-head .sidebar-new-chat:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.sidebar-section-head .sidebar-new-chat:focus-visible {
  outline: 2px solid #86bcb2;
  outline-offset: 1px;
}

@media (pointer: coarse) {
  .chat-list-item { min-height: 44px; }
  .sidebar-section-head .sidebar-new-chat { width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .chat-list-item { transition: none; }
}
