/* Card shell (reuses your token palette) */
.agent-card{
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
  position: sticky;            /* keeps it pinned on desktop */
  top: 18px;
}

.agent-head{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.agent-avatar{
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.agent-meta{
  min-width: 0;
}

.agent-name{
  margin: 0 0 2px 0;
  font-weight: 700;
  color: var(--ink-1);
  font-size: clamp(16px, 1.8vw, 18px);
}

.agent-role{
  color: var(--ink-2);
  font-size: 13px;
}

.agent-lines{
  display: grid;
  gap: 10px;
  margin: 12px 0 16px 0;
}

.agent-line{
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.4;
  word-break: break-word;
}

.agent-line i{
  color: var(--brand);
  font-size: 18px;
}

/* Actions */
.agent-actions{
  display: grid;
  gap: 10px;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .7rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn-primary{
  background: var(--brand);
  color: #FFF;
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
}
.btn-primary:hover{ filter: brightness(1.05); }

.btn-ghost{
  background: #fff;
  color: var(--ink-1);
  border-color: var(--line);
}
.btn-ghost:hover{ background:#fafafa; border-color:#e5e7eb; }

/* Mobile: full width, no sticky */
@media (max-width: 900px){
  .agent-card{ position: static; }
}
