/* ── Conversations Component ──────────────────────
   Conversation list, items, group headers, skeleton loading.
   ──────────────────────────────────────────────────── */

/* Conversation nav — flex child that shrinks, scroll delegated to .drawer-list */
.drawer-conversations {
  flex: 1;
  min-height: 0;           /* allow flex shrink below content height */
  display: flex;
  flex-direction: column;
}

/* Conversation list — sole scroll container via .scroll-region-flex in HTML */
.drawer-list {
  flex: 1;
  padding: 6px 0;
}

.conv-item {
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
  position: relative;
  border-left: 2px solid transparent;
  transition: background var(--duration-fast) ease;
  min-height: 58px;
  touch-action: manipulation;
}
.conv-item + .conv-item {
  border-top: 0.5px solid var(--color-border-light);
}

.conv-item:hover {
  background: var(--color-surface-secondary);
}

.conv-item.active {
  background: rgba(139, 111, 71, 0.04);
  border-left-color: var(--color-brand);
}

.conv-title {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--ink-1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 24px;
  line-height: 1.4;
}

.conv-date {
  font-size: 12px;
  color: var(--ink-3);
}

.conv-delete {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--color-brand-light);
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  min-width: var(--touch-min);
  min-height: var(--touch-min);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.35;
  touch-action: manipulation;
  transition: opacity var(--duration-fast) var(--easing-standard);
}

.conv-item:hover .conv-delete,
.conv-delete:focus-visible {
  opacity: 1;
}

@media (max-width: 640px) {
  .conv-delete { opacity: 0.72; }
}

.drawer-group-header {
  font-size: 12px;
  color: var(--ink-2);
  padding: var(--space-3) var(--space-4) var(--space-2);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0;
}

.drawer-list-empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--color-gold-soft);
  font-size: var(--font-size-base);
}

/* Drawer skeleton loading */
.drawer-list-skeleton { padding: var(--space-2) var(--space-4); }
.drawer-sk-row {
  padding: 10px 0;
  border-bottom: 0.5px solid var(--color-border-light);
}
.drawer-sk-line {
  height: 10px;
  border-radius: 5px;
  background: var(--color-surface-secondary);
  margin-bottom: 6px;
  animation: skPulse 2s ease-in-out infinite;
}
.drawer-sk-line:last-child { margin-bottom: 0; }
.drawer-sk-line.w70 { width: 70%; }
.drawer-sk-line.w60 { width: 60%; }
.drawer-sk-line.w50 { width: 50%; }
.drawer-sk-line.w40 { width: 40%; }
.drawer-sk-line.w30 { width: 30%; }
