.list {
  flex: 1;
  overflow-y: auto;
  padding: 0 8px 6px;
}

.list::-webkit-scrollbar {
  width: 4px;
}

.list::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 2px;
}

.empty {
  padding: 16px 10px;
  color: #bbb;
  font-size: 12px;
  text-align: center;
}

.emptyInline {
  padding: 10px 10px 4px;
  color: #ccc;
  font-size: 12px;
  text-align: center;
}

.item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 10px;
  transition: background 0.15s;
  margin-bottom: 3px;
}

.item:hover {
  background: #f5f5f5;
}

.active {
  background: #f0f7ff;
}

.pinned {
  background: #fffbeb;
}

.pinned.active {
  background: #fef3c7;
}

.ephemeral {
  margin-bottom: 6px;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 6px;
}

.ephemeral .main {
  cursor: pointer;
}

.main {
  min-width: 0;
  text-align: left;
  padding: 8px 2px 8px 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 100%;
}

.name {
  font-size: 13px;
  font-weight: 500;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

.titleRow {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.titleRow .name {
  flex: 1;
  min-width: 0;
}

.renameInput {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 500;
  color: #1a1a1a;
  padding: 2px 6px;
  border: 1px solid #2563eb;
  border-radius: 4px;
  background: #fff;
  outline: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

.meta {
  font-size: 10px;
  color: #bbb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  margin-top: 4px;
}

.actions {
  display: flex;
  align-items: center;
  gap: 0;
  margin-right: 2px;
  flex-shrink: 0;
}

.pinBtn,
.renameBtn,
.deleteBtn {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: #bbb;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.pinBtnActive {
  color: #ca8a04;
}

.pinBtn:hover,
.pinBtnActive:hover {
  color: #ca8a04;
  background: #fef9c3;
}

.renameBtn:hover {
  color: #2563eb;
  background: #eff6ff;
}

.deleteBtn:hover {
  color: #dc2626;
  background: #fee2e2;
}
