/* ── INBOX: session items, tabs, filtros, badges ─────────────────── */
.session-item {
  padding: 10px 14px 10px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.1s;
  border-left: 3px solid transparent;
}
.session-item:hover { background: var(--surface); }
.session-item.active { background: var(--bg); border-left-color: var(--purple); }
.session-item.unread { border-left-color: var(--purple); }
.session-item.unread .si-name { font-weight: 700; }
.si-top { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
.si-name { font-size: 13px; color: var(--ink); font-weight: 500; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.si-time { font-size: 11px; color: var(--muted); flex-shrink: 0; }
.si-preview { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 4px; }
.si-badges { display: flex; gap: 4px; }
.ch-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.ch-dot.web { background: var(--purple); }
.ch-dot.whatsapp { background: #25D366; }

/* List tabs */
.list-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  padding: 0 16px;
  background: var(--white);
  flex-shrink: 0;
}
.list-tab {
  flex: 1;
  padding: 10px 0;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all 0.15s;
  margin-bottom: -1px;
}
.list-tab:hover { color: var(--ink); }
.list-tab.active { color: var(--purple); font-weight: 600; border-bottom-color: var(--purple); }

/* Tier filters */
.tier-filters {
  display: flex;
  gap: 6px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  flex-shrink: 0;
  flex-wrap: wrap;
}
.tier-pill {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  background: var(--surface);
  color: var(--muted);
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all 0.15s;
}
.tier-pill:hover { opacity: 0.85; }
.tier-pill.active { background: var(--purple); color: white; }
.tier-pill[data-tier="HOT"].active  { background: #FF4444; }
.tier-pill[data-tier="WARM"].active { background: #FF9500; }

/* Channel icons */
.channel-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.channel-icon.wa  { background: #25D366; }
.channel-icon.web { background: var(--purple); }

/* Agent badge */
.agent-badge {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  background: rgba(105,28,255,0.08);
  color: var(--purple);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.agent-badge.mine { border: 2px solid var(--purple); background: rgba(105,28,255,0.1); }

/* Badges */
.badge { display: inline-flex; padding: 2px 7px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.badge-hot  { background: rgba(255,68,68,0.15); color: #FF4444; }
.badge-warm { background: rgba(255,149,0,0.15); color: #FF9500; }
.badge-cool { background: rgba(227,229,236,0.5); color: var(--muted); }
.badge-bajo { background: rgba(227,229,236,0.3); color: var(--muted); font-weight: 400; }
.badge-nuevo   { background: rgba(0,214,197,0.15); color: #00D6C5; }
.badge-encurso { background: rgba(105,28,255,0.15); color: var(--purple); }
